Files
Shifted/node_modules/chromatic/dist/chunk-QIKU3X32.js
2026-02-10 01:14:19 +00:00

1312 lines
2.9 MiB

'use strict';
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0aaaa9ed-b8ab-54a8-a93f-99e3edf4e7af")}catch(e){}}();
var chunkLAQIPRAO_js = require('./chunk-LAQIPRAO.js');
var chunkO2POOKSN_js = require('./chunk-O2POOKSN.js');
var chunkIM5VGDJQ_js = require('./chunk-IM5VGDJQ.js');
var chunkLTE3MQL2_js = require('./chunk-LTE3MQL2.js');
var chunkHZVCNUTP_js = require('./chunk-HZVCNUTP.js');
var chunkF6FLWRPJ_js = require('./chunk-F6FLWRPJ.js');
var chunkTKGT252T_js = require('./chunk-TKGT252T.js');
var perf_hooks = require('perf_hooks');
var ux = require('path');
var Doe = require('util');
var fs$1 = require('fs');
var R$ = require('child_process');
var wi = require('os');
var readline = require('readline');
var worker_threads = require('worker_threads');
var j1 = require('http');
var Rot = require('https');
var xf = require('stream');
var Hg = require('zlib');
var nc = require('net');
var OF = require('tls');
var Yot = require('module');
var PTe = require('dns');
var buffer = require('buffer');
var url = require('url');
var crypto = require('crypto');
var promises = require('fs/promises');
var ON = require('process');
require('timers/promises');
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n.default = e;
return Object.freeze(n);
}
var ux__namespace = /*#__PURE__*/_interopNamespace(ux);
var Doe__namespace = /*#__PURE__*/_interopNamespace(Doe);
var R$__default = /*#__PURE__*/_interopDefault(R$);
var wi__namespace = /*#__PURE__*/_interopNamespace(wi);
var j1__namespace = /*#__PURE__*/_interopNamespace(j1);
var Rot__namespace = /*#__PURE__*/_interopNamespace(Rot);
var xf__default = /*#__PURE__*/_interopDefault(xf);
var Hg__default = /*#__PURE__*/_interopDefault(Hg);
var nc__namespace = /*#__PURE__*/_interopNamespace(nc);
var OF__namespace = /*#__PURE__*/_interopNamespace(OF);
var Yot__default = /*#__PURE__*/_interopDefault(Yot);
var PTe__default = /*#__PURE__*/_interopDefault(PTe);
var ON__default = /*#__PURE__*/_interopDefault(ON);
var KY=chunkTKGT252T_js.c((CLr,$Y)=>{var GY=Symbol("@@any-observable/REGISTRATION"),Nu;$Y.exports=(e,t)=>(r,n={})=>{let i=n.global!==!1;if(i&&!Nu&&(Nu=e[GY]),Nu&&r&&Nu.implementation!==r)throw new Error(`any-observable already defined as \`${Nu.implementation}\`. You can only register an implementation before the first call to \`require('any-observable')\` and an implementation cannot be changed`);return Nu||(r&&n.Observable?Nu={Observable:n.Observable,implementation:r}:Nu=t(r),i&&(e[GY]=Nu)),Nu};});var JR=chunkTKGT252T_js.c((wLr,WY)=>{WY.exports=KY()(global,YY);function YY(e){let t;if(e==="global.Observable")t={Observable:global.Observable,implementation:"global.Observable"};else if(e){let r=chunkTKGT252T_js.a(e);t={Observable:r.Observable||r.default||r,implementation:e};}else t=uVe();if(!t)throw new Error("Cannot find any-observable implementation nor `global.Observable`. You must install polyfill or call `require('any-observable/register') with your preferred implementation, for example, `require('any-observable/register')('rxjs')` on app load prior to any `require('any-observable').");return t}function uVe(){let e=["rxjs","zen-observable"];for(let t of e)try{return YY(t)}catch{}}});var ZY=chunkTKGT252T_js.c(Wx=>{Object.defineProperty(Wx,"__esModule",{value:!0});Wx.Observable=void 0;function tM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n);}}function rM(e,t,r){return t&&XY(e.prototype,t),r&&XY(e,r),e}var nM=function(){return typeof Symbol=="function"},iM=function(e){return nM()&&!!Symbol[e]},sM=function(e){return iM(e)?Symbol[e]:"@@"+e};nM()&&!iM("observable")&&(Symbol.observable=Symbol("observable"));var lVe=sM("iterator"),ZR=sM("observable"),zY=sM("species");function Kx(e,t){var r=e[t];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function aE(e){var t=e.constructor;return t!==void 0&&(t=t[zY],t===null&&(t=void 0)),t!==void 0?t:Yx}function cVe(e){return e instanceof Yx}function $m(e){$m.log?$m.log(e):setTimeout(function(){throw e});}function $x(e){Promise.resolve().then(function(){try{e();}catch(t){$m(t);}});}function JY(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else {var r=Kx(t,"unsubscribe");r&&r.call(t);}}catch(n){$m(n);}}function eM(e){e._observer=void 0,e._queue=void 0,e._state="closed";}function pVe(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(QY(e,t[r].type,t[r].value),e._state!=="closed");++r);}}function QY(e,t,r){e._state="running";var n=e._observer;try{var i=Kx(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(eM(e),i)i.call(n,r);else throw r;break;case"complete":eM(e),i&&i.call(n);break}}catch(s){$m(s);}e._state==="closed"?JY(e):e._state==="running"&&(e._state="ready");}function QR(e,t,r){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:r});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:r}],$x(function(){return pVe(e)});return}QY(e,t,r);}}var fVe=function(){function e(t,r){tM(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var n=new hVe(this);try{this._cleanup=r.call(void 0,n);}catch(i){n.error(i);}this._state==="initializing"&&(this._state="ready");}return rM(e,[{key:"unsubscribe",value:function(){this._state!=="closed"&&(eM(this),JY(this));}},{key:"closed",get:function(){return this._state==="closed"}}]),e}(),hVe=function(){function e(t){tM(this,e),this._subscription=t;}return rM(e,[{key:"next",value:function(r){QR(this._subscription,"next",r);}},{key:"error",value:function(r){QR(this._subscription,"error",r);}},{key:"complete",value:function(){QR(this._subscription,"complete");}},{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e}(),Yx=function(){function e(t){if(tM(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof t!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=t;}return rM(e,[{key:"subscribe",value:function(r){return (typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new fVe(r,this._subscriber)}},{key:"forEach",value:function(r){var n=this;return new Promise(function(i,s){if(typeof r!="function"){s(new TypeError(r+" is not a function"));return}function a(){o.unsubscribe(),i();}var o=n.subscribe({next:function(u){try{r(u,a);}catch(l){s(l),o.unsubscribe();}},error:s,complete:i});})}},{key:"map",value:function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=aE(this);return new i(function(s){return n.subscribe({next:function(a){try{a=r(a);}catch(o){return s.error(o)}s.next(a);},error:function(a){s.error(a);},complete:function(){s.complete();}})})}},{key:"filter",value:function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=aE(this);return new i(function(s){return n.subscribe({next:function(a){try{if(!r(a))return}catch(o){return s.error(o)}s.next(a);},error:function(a){s.error(a);},complete:function(){s.complete();}})})}},{key:"reduce",value:function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=aE(this),s=arguments.length>1,a=!1,o=arguments[1],u=o;return new i(function(l){return n.subscribe({next:function(c){var p=!a;if(a=!0,!p||s)try{u=r(u,c);}catch(h){return l.error(h)}else u=c;},error:function(c){l.error(c);},complete:function(){if(!a&&!s)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(u),l.complete();}})})}},{key:"concat",value:function(){for(var r=this,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var a=aE(this);return new a(function(o){var u,l=0;function c(p){u=p.subscribe({next:function(h){o.next(h);},error:function(h){o.error(h);},complete:function(){l===i.length?(u=void 0,o.complete()):c(a.from(i[l++]));}});}return c(r),function(){u&&(u.unsubscribe(),u=void 0);}})}},{key:"flatMap",value:function(r){var n=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var i=aE(this);return new i(function(s){var a=[],o=n.subscribe({next:function(l){if(r)try{l=r(l);}catch(p){return s.error(p)}var c=i.from(l).subscribe({next:function(p){s.next(p);},error:function(p){s.error(p);},complete:function(){var p=a.indexOf(c);p>=0&&a.splice(p,1),u();}});a.push(c);},error:function(l){s.error(l);},complete:function(){u();}});function u(){o.closed&&a.length===0&&s.complete();}return function(){a.forEach(function(l){return l.unsubscribe()}),o.unsubscribe();}})}},{key:ZR,value:function(){return this}}],[{key:"from",value:function(r){var n=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var i=Kx(r,ZR);if(i){var s=i.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return cVe(s)&&s.constructor===n?s:new n(function(a){return s.subscribe(a)})}if(iM("iterator")&&(i=Kx(r,lVe),i))return new n(function(a){$x(function(){if(!a.closed){var o=!0,u=!1,l=void 0;try{for(var c=i.call(r)[Symbol.iterator](),p;!(o=(p=c.next()).done);o=!0){var h=p.value;if(a.next(h),a.closed)return}}catch(f){u=!0,l=f;}finally{try{!o&&c.return!=null&&c.return();}finally{if(u)throw l}}a.complete();}});});if(Array.isArray(r))return new n(function(a){$x(function(){if(!a.closed){for(var o=0;o<r.length;++o)if(a.next(r[o]),a.closed)return;a.complete();}});});throw new TypeError(r+" is not observable")}},{key:"of",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var s=typeof this=="function"?this:e;return new s(function(a){$x(function(){if(!a.closed){for(var o=0;o<n.length;++o)if(a.next(n[o]),a.closed)return;a.complete();}});})}},{key:zY,get:function(){return this}}]),e}();Wx.Observable=Yx;nM()&&Object.defineProperty(Yx,Symbol("extensions"),{value:{symbol:ZR,hostReportError:$m},configurable:!0});});var tW=chunkTKGT252T_js.c((DLr,eW)=>{eW.exports=ZY().Observable;});var LW,kW=chunkTKGT252T_js.b(()=>{LW=typeof globalThis=="object"?globalThis:global;});var FW=chunkTKGT252T_js.b(()=>{kW();});var BW=chunkTKGT252T_js.b(()=>{FW();});var jl,KM=chunkTKGT252T_js.b(()=>{jl="1.9.0";});function XVe(e){var t=new Set([e]),r=new Set,n=e.match(jW);if(!n)return function(){return !1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(i.prerelease!=null)return function(u){return u===e};function s(o){return r.add(o),!1}function a(o){return t.add(o),!0}return function(u){if(t.has(u))return !0;if(r.has(u))return !1;var l=u.match(jW);if(!l)return s(u);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||i.major!==c.major?s(u):i.major===0?i.minor===c.minor&&i.patch<=c.patch?a(u):s(u):i.minor<=c.minor?a(u):s(u)}}var jW,UW,qW=chunkTKGT252T_js.b(()=>{KM();jW=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;UW=XVe(jl);});function ju(e,t,r,n){var i;n===void 0&&(n=!1);var s=gE[yE]=(i=gE[yE])!==null&&i!==void 0?i:{version:jl};if(!n&&s[e]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(a.stack||a.message),!1}if(s.version!==jl){var a=new Error("@opentelemetry/api: Registration of version v"+s.version+" for "+e+" does not match previously registered API v"+jl);return r.error(a.stack||a.message),!1}return s[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+jl+"."),!0}function Ia(e){var t,r,n=(t=gE[yE])===null||t===void 0?void 0:t.version;if(!(!n||!UW(n)))return (r=gE[yE])===null||r===void 0?void 0:r[e]}function Uu(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+jl+".");var r=gE[yE];r&&delete r[e];}var zVe,yE,gE,Nh=chunkTKGT252T_js.b(()=>{BW();KM();qW();zVe=jl.split(".")[0],yE=Symbol.for("opentelemetry.js.api."+zVe),gE=LW;});function SE(e,t,r){var n=Ia("diag");if(n)return r.unshift(t),n[e].apply(n,QVe([],JVe(r),!1))}var JVe,QVe,VW,HW=chunkTKGT252T_js.b(()=>{Nh();JVe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},QVe=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},VW=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger";}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return SE("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return SE("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return SE("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return SE("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return SE("verbose",this._namespace,t)},e}();});var ln,gA=chunkTKGT252T_js.b(()=>{(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL";})(ln||(ln={}));});function GW(e,t){e<ln.NONE?e=ln.NONE:e>ln.ALL&&(e=ln.ALL),t=t||{};function r(n,i){var s=t[n];return typeof s=="function"&&e>=i?s.bind(t):function(){}}return {error:r("error",ln.ERROR),warn:r("warn",ln.WARN),info:r("info",ln.INFO),debug:r("debug",ln.DEBUG),verbose:r("verbose",ln.VERBOSE)}}var $W=chunkTKGT252T_js.b(()=>{gA();});var ZVe,e7e,t7e,ls,Rh=chunkTKGT252T_js.b(()=>{HW();$W();gA();Nh();ZVe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},e7e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},t7e="diag",ls=function(){function e(){function t(i){return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var o=Ia("diag");if(o)return o[i].apply(o,e7e([],ZVe(s),!1))}}var r=this,n=function(i,s){var a,o,u;if(s===void 0&&(s={logLevel:ln.INFO}),i===r){var l=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((a=l.stack)!==null&&a!==void 0?a:l.message),!1}typeof s=="number"&&(s={logLevel:s});var c=Ia("diag"),p=GW((o=s.logLevel)!==null&&o!==void 0?o:ln.INFO,i);if(c&&!s.suppressOverrideMessage){var h=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";c.warn("Current logger will be overwritten from "+h),p.warn("Current logger will overwrite one already registered from "+h);}return ju("diag",p,r,!0)};r.setLogger=n,r.disable=function(){Uu(t7e,r);},r.createComponentLogger=function(i){return new VW(i)},r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error");}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}();});var r7e,n7e,KW,YW=chunkTKGT252T_js.b(()=>{r7e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},n7e=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},KW=function(){function e(t){this._entries=t?new Map(t):new Map;}return e.prototype.getEntry=function(t){var r=this._entries.get(t);if(r)return Object.assign({},r)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var r=r7e(t,2),n=r[0],i=r[1];return [n,i]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var s=new e(this._entries);try{for(var a=n7e(n),o=a.next();!o.done;o=a.next()){var u=o.value;s._entries.delete(u);}}catch(l){t={error:l};}finally{try{o&&!o.done&&(r=a.return)&&r.call(a);}finally{if(t)throw t.error}}return s},e.prototype.clear=function(){return new e},e}();});var WW,XW=chunkTKGT252T_js.b(()=>{WW=Symbol("BaggageEntryMetadata");});function zW(e){return e===void 0&&(e={}),new KW(new Map(Object.entries(e)))}function SA(e){return typeof e!="string"&&(i7e.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:WW,toString:function(){return e}}}var i7e,YM=chunkTKGT252T_js.b(()=>{Rh();YW();XW();i7e=ls.instance();});function xs(e){return Symbol.for(e)}var s7e,Qm,TE=chunkTKGT252T_js.b(()=>{s7e=function(){function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(n){return r._currentContext.get(n)},r.setValue=function(n,i){var s=new e(r._currentContext);return s._currentContext.set(n,i),s},r.deleteValue=function(n){var i=new e(r._currentContext);return i._currentContext.delete(n),i};}return e}(),Qm=new s7e;});var WM,JW,QW=chunkTKGT252T_js.b(()=>{WM=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],JW=function(){function e(){function t(n){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(console){var a=console[n];if(typeof a!="function"&&(a=console.log),typeof a=="function")return a.apply(console,i)}}}for(var r=0;r<WM.length;r++)this[WM[r].n]=t(WM[r].c);}return e}();});function ZW(){return zM}var Mh,a7e,TA,o7e,u7e,l7e,c7e,XM,p7e,f7e,h7e,zM,d7e,m7e,y7e,g7e,S7e,T7e,E7e,JM=chunkTKGT252T_js.b(()=>{Mh=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i;}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s]);},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t;}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n);}}(),a7e=function(){function e(){}return e.prototype.createGauge=function(t,r){return m7e},e.prototype.createHistogram=function(t,r){return y7e},e.prototype.createCounter=function(t,r){return d7e},e.prototype.createUpDownCounter=function(t,r){return g7e},e.prototype.createObservableGauge=function(t,r){return T7e},e.prototype.createObservableCounter=function(t,r){return S7e},e.prototype.createObservableUpDownCounter=function(t,r){return E7e},e.prototype.addBatchObservableCallback=function(t,r){},e.prototype.removeBatchObservableCallback=function(t){},e}(),TA=function(){function e(){}return e}(),o7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(TA),u7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n){},t}(TA),l7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(TA),c7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n){},t}(TA),XM=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),p7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(XM),f7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(XM),h7e=function(e){Mh(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(XM),zM=new a7e,d7e=new o7e,m7e=new l7e,y7e=new c7e,g7e=new u7e,S7e=new p7e,T7e=new f7e,E7e=new h7e;});var EA,eX=chunkTKGT252T_js.b(()=>{(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE";})(EA||(EA={}));});var bA,vA,QM=chunkTKGT252T_js.b(()=>{bA={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},vA={set:function(e,t,r){e!=null&&(e[t]=r);}};});var b7e,v7e,tX,rX=chunkTKGT252T_js.b(()=>{TE();b7e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},v7e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},tX=function(){function e(){}return e.prototype.active=function(){return Qm},e.prototype.with=function(t,r,n){for(var i=[],s=3;s<arguments.length;s++)i[s-3]=arguments[s];return r.call.apply(r,v7e([n],b7e(i),!1))},e.prototype.bind=function(t,r){return r},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}();});var _7e,x7e,ZM,A7e,Cp,EE=chunkTKGT252T_js.b(()=>{rX();Nh();Rh();_7e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},x7e=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},ZM="context",A7e=new tX,Cp=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return ju(ZM,t,ls.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,r,n){for(var i,s=[],a=3;a<arguments.length;a++)s[a-3]=arguments[a];return (i=this._getContextManager()).with.apply(i,x7e([t,r,n],_7e(s),!1))},e.prototype.bind=function(t,r){return this._getContextManager().bind(t,r)},e.prototype._getContextManager=function(){return Ia(ZM)||A7e},e.prototype.disable=function(){this._getContextManager().disable(),Uu(ZM,ls.instance());},e}();});var hn,eL=chunkTKGT252T_js.b(()=>{(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED";})(hn||(hn={}));});var Lh,kh,Zm,_A=chunkTKGT252T_js.b(()=>{eL();Lh="0000000000000000",kh="00000000000000000000000000000000",Zm={traceId:kh,spanId:Lh,traceFlags:hn.NONE};});var wp,xA=chunkTKGT252T_js.b(()=>{_A();wp=function(){function e(t){t===void 0&&(t=Zm),this._spanContext=t;}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,r){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return !1},e.prototype.recordException=function(t,r){},e}();});function AA(e){return e.getValue(tL)||void 0}function nX(){return AA(Cp.getInstance().active())}function bE(e,t){return e.setValue(tL,t)}function iX(e){return e.deleteValue(tL)}function sX(e,t){return bE(e,new wp(t))}function PA(e){var t;return (t=AA(e))===null||t===void 0?void 0:t.spanContext()}var tL,rL=chunkTKGT252T_js.b(()=>{TE();xA();EE();tL=xs("OpenTelemetry Context Key SPAN");});function Fh(e){return P7e.test(e)&&e!==kh}function nL(e){return C7e.test(e)&&e!==Lh}function oa(e){return Fh(e.traceId)&&nL(e.spanId)}function aX(e){return new wp(e)}var P7e,C7e,CA=chunkTKGT252T_js.b(()=>{_A();xA();P7e=/^([0-9a-f]{32})$/i,C7e=/^[0-9a-f]{16}$/i;});function w7e(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var iL,wA,sL=chunkTKGT252T_js.b(()=>{EE();rL();xA();CA();iL=Cp.getInstance(),wA=function(){function e(){}return e.prototype.startSpan=function(t,r,n){n===void 0&&(n=iL.active());var i=!!(r!=null&&r.root);if(i)return new wp;var s=n&&PA(n);return w7e(s)&&oa(s)?new wp(s):new wp},e.prototype.startActiveSpan=function(t,r,n,i){var s,a,o;if(!(arguments.length<2)){arguments.length===2?o=r:arguments.length===3?(s=r,o=n):(s=r,a=n,o=i);var u=a??iL.active(),l=this.startSpan(t,s,u),c=bE(u,l);return iL.with(c,o,void 0,l)}},e}();});var I7e,IA,aL=chunkTKGT252T_js.b(()=>{sL();I7e=new wA,IA=function(){function e(t,r,n,i){this._provider=t,this.name=r,this.version=n,this.options=i;}return e.prototype.startSpan=function(t,r,n){return this._getTracer().startSpan(t,r,n)},e.prototype.startActiveSpan=function(t,r,n,i){var s=this._getTracer();return Reflect.apply(s.startActiveSpan,s,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):I7e},e}();});var oX,uX=chunkTKGT252T_js.b(()=>{sL();oX=function(){function e(){}return e.prototype.getTracer=function(t,r,n){return new wA},e}();});var O7e,vE,oL=chunkTKGT252T_js.b(()=>{aL();uX();O7e=new oX,vE=function(){function e(){}return e.prototype.getTracer=function(t,r,n){var i;return (i=this.getDelegateTracer(t,r,n))!==null&&i!==void 0?i:new IA(this,t,r,n)},e.prototype.getDelegate=function(){var t;return (t=this._delegate)!==null&&t!==void 0?t:O7e},e.prototype.setDelegate=function(t){this._delegate=t;},e.prototype.getDelegateTracer=function(t,r,n){var i;return (i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,r,n)},e}();});var ua,lX=chunkTKGT252T_js.b(()=>{(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";})(ua||(ua={}));});var cs,cX=chunkTKGT252T_js.b(()=>{(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER";})(cs||(cs={}));});var Qa,pX=chunkTKGT252T_js.b(()=>{(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR";})(Qa||(Qa={}));});function fX(e){return R7e.test(e)}function hX(e){return M7e.test(e)&&!L7e.test(e)}var uL,D7e,N7e,R7e,M7e,L7e,dX=chunkTKGT252T_js.b(()=>{uL="[_0-9a-z-*/]",D7e="[a-z]"+uL+"{0,255}",N7e="[a-z0-9]"+uL+"{0,240}@[a-z]"+uL+"{0,13}",R7e=new RegExp("^(?:"+D7e+"|"+N7e+")$"),M7e=/^[ -~]{0,255}[!-~]$/,L7e=/,|=/;});var mX,k7e,yX,gX,SX,TX=chunkTKGT252T_js.b(()=>{dX();mX=32,k7e=512,yX=",",gX="=",SX=function(){function e(t){this._internalState=new Map,t&&this._parse(t);}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+gX+t.get(n)),r},[]).join(yX)},e.prototype._parse=function(t){t.length>k7e||(this._internalState=t.split(yX).reverse().reduce(function(r,n){var i=n.trim(),s=i.indexOf(gX);if(s!==-1){var a=i.slice(0,s),o=i.slice(s+1,n.length);fX(a)&&hX(o)&&r.set(a,o);}return r},new Map),this._internalState.size>mX&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,mX))));},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}();});function EX(e){return new SX(e)}var bX=chunkTKGT252T_js.b(()=>{TX();});var gr,vX=chunkTKGT252T_js.b(()=>{EE();gr=Cp.getInstance();});var _t,_X=chunkTKGT252T_js.b(()=>{Rh();_t=ls.instance();});var F7e,xX,AX=chunkTKGT252T_js.b(()=>{JM();F7e=function(){function e(){}return e.prototype.getMeter=function(t,r,n){return zM},e}(),xX=new F7e;});var lL,PX,CX=chunkTKGT252T_js.b(()=>{AX();Nh();Rh();lL="metrics",PX=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return ju(lL,t,ls.instance())},e.prototype.getMeterProvider=function(){return Ia(lL)||xX},e.prototype.getMeter=function(t,r,n){return this.getMeterProvider().getMeter(t,r,n)},e.prototype.disable=function(){Uu(lL,ls.instance());},e}();});var Bh,wX=chunkTKGT252T_js.b(()=>{CX();Bh=PX.getInstance();});var IX,OX=chunkTKGT252T_js.b(()=>{IX=function(){function e(){}return e.prototype.inject=function(t,r){},e.prototype.extract=function(t,r){return t},e.prototype.fields=function(){return []},e}();});function pL(e){return e.getValue(cL)||void 0}function DX(){return pL(Cp.getInstance().active())}function NX(e,t){return e.setValue(cL,t)}function RX(e){return e.deleteValue(cL)}var cL,MX=chunkTKGT252T_js.b(()=>{EE();TE();cL=xs("OpenTelemetry Baggage Key");});var fL,B7e,LX,kX=chunkTKGT252T_js.b(()=>{Nh();OX();QM();MX();YM();Rh();fL="propagation",B7e=new IX,LX=function(){function e(){this.createBaggage=zW,this.getBaggage=pL,this.getActiveBaggage=DX,this.setBaggage=NX,this.deleteBaggage=RX;}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return ju(fL,t,ls.instance())},e.prototype.inject=function(t,r,n){return n===void 0&&(n=vA),this._getGlobalPropagator().inject(t,r,n)},e.prototype.extract=function(t,r,n){return n===void 0&&(n=bA),this._getGlobalPropagator().extract(t,r,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Uu(fL,ls.instance());},e.prototype._getGlobalPropagator=function(){return Ia(fL)||B7e},e}();});var As,FX=chunkTKGT252T_js.b(()=>{kX();As=LX.getInstance();});var hL,BX,jX=chunkTKGT252T_js.b(()=>{Nh();oL();CA();rL();Rh();hL="trace",BX=function(){function e(){this._proxyTracerProvider=new vE,this.wrapSpanContext=aX,this.isSpanContextValid=oa,this.deleteSpan=iX,this.getSpan=AA,this.getActiveSpan=nX,this.getSpanContext=PA,this.setSpan=bE,this.setSpanContext=sX;}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var r=ju(hL,this._proxyTracerProvider,ls.instance());return r&&this._proxyTracerProvider.setDelegate(t),r},e.prototype.getTracerProvider=function(){return Ia(hL)||this._proxyTracerProvider},e.prototype.getTracer=function(t,r){return this.getTracerProvider().getTracer(t,r)},e.prototype.disable=function(){Uu(hL,ls.instance()),this._proxyTracerProvider=new vE;},e}();});var qt,UX=chunkTKGT252T_js.b(()=>{jX();qt=BX.getInstance();});var Gr={};chunkTKGT252T_js.d(Gr,{DiagConsoleLogger:()=>JW,DiagLogLevel:()=>ln,INVALID_SPANID:()=>Lh,INVALID_SPAN_CONTEXT:()=>Zm,INVALID_TRACEID:()=>kh,ProxyTracer:()=>IA,ProxyTracerProvider:()=>vE,ROOT_CONTEXT:()=>Qm,SamplingDecision:()=>ua,SpanKind:()=>cs,SpanStatusCode:()=>Qa,TraceFlags:()=>hn,ValueType:()=>EA,baggageEntryMetadataFromString:()=>SA,context:()=>gr,createContextKey:()=>xs,createNoopMeter:()=>ZW,createTraceState:()=>EX,default:()=>j7e,defaultTextMapGetter:()=>bA,defaultTextMapSetter:()=>vA,diag:()=>_t,isSpanContextValid:()=>oa,isValidSpanId:()=>nL,isValidTraceId:()=>Fh,metrics:()=>Bh,propagation:()=>As,trace:()=>qt});var j7e,pt=chunkTKGT252T_js.b(()=>{YM();TE();QW();gA();JM();eX();QM();aL();oL();lX();cX();pX();eL();bX();CA();_A();vX();_X();wX();FX();UX();j7e={context:gr,diag:_t,metrics:Bh,propagation:As,trace:qt};});function zo(e){return e.setValue(dL,!0)}function qX(e){return e.deleteValue(dL)}function qu(e){return e.getValue(dL)===!0}var dL,_E=chunkTKGT252T_js.b(()=>{pt();dL=xs("OpenTelemetry SDK Context Key SUPPRESS_TRACING");});var VX,OA,ey,DA,HX,GX,$X,mL=chunkTKGT252T_js.b(()=>{VX="=",OA=";",ey=",",DA="baggage",HX=180,GX=4096,$X=8192;});function NA(e){return e.reduce(function(t,r){var n=""+t+(t!==""?ey:"")+r;return n.length>$X?t:n},"")}function RA(e){return e.getAllEntries().map(function(t){var r=U7e(t,2),n=r[0],i=r[1],s=encodeURIComponent(n)+"="+encodeURIComponent(i.value);return i.metadata!==void 0&&(s+=OA+i.metadata.toString()),s})}function xE(e){var t=e.split(OA);if(!(t.length<=0)){var r=t.shift();if(r){var n=r.indexOf(VX);if(!(n<=0)){var i=decodeURIComponent(r.substring(0,n).trim()),s=decodeURIComponent(r.substring(n+1).trim()),a;return t.length>0&&(a=SA(t.join(OA))),{key:i,value:s,metadata:a}}}}}function KX(e){return typeof e!="string"||e.length===0?{}:e.split(ey).map(function(t){return xE(t)}).filter(function(t){return t!==void 0&&t.value.length>0}).reduce(function(t,r){return t[r.key]=r.value,t},{})}var U7e,yL=chunkTKGT252T_js.b(()=>{pt();mL();U7e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s};});var ty,YX=chunkTKGT252T_js.b(()=>{pt();_E();mL();yL();ty=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=As.getBaggage(t);if(!(!i||qu(t))){var s=RA(i).filter(function(o){return o.length<=GX}).slice(0,HX),a=NA(s);a.length>0&&n.set(r,DA,a);}},e.prototype.extract=function(t,r,n){var i=n.get(r,DA),s=Array.isArray(i)?i.join(ey):i;if(!s)return t;var a={};if(s.length===0)return t;var o=s.split(ey);return o.forEach(function(u){var l=xE(u);if(l){var c={value:l.value};l.metadata&&(c.metadata=l.metadata),a[l.key]=c;}}),Object.entries(a).length===0?t:As.setBaggage(t,As.createBaggage(a))},e.prototype.fields=function(){return [DA]},e}();});var WX,XX=chunkTKGT252T_js.b(()=>{WX=function(){function e(t,r){this._monotonicClock=r,this._epochMillis=t.now(),this._performanceMillis=r.now();}return e.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},e}();});function Ip(e){var t,r,n={};if(typeof e!="object"||e==null)return n;try{for(var i=zX(Object.entries(e)),s=i.next();!s.done;s=i.next()){var a=q7e(s.value,2),o=a[0],u=a[1];if(!gL(o)){_t.warn("Invalid attribute key: "+o);continue}if(!AE(u)){_t.warn("Invalid attribute value set for key: "+o);continue}Array.isArray(u)?n[o]=u.slice():n[o]=u;}}catch(l){t={error:l};}finally{try{s&&!s.done&&(r=i.return)&&r.call(i);}finally{if(t)throw t.error}}return n}function gL(e){return typeof e=="string"&&e.length>0}function AE(e){return e==null?!0:Array.isArray(e)?V7e(e):JX(e)}function V7e(e){var t,r,n;try{for(var i=zX(e),s=i.next();!s.done;s=i.next()){var a=s.value;if(a!=null){if(!n){if(JX(a)){n=typeof a;continue}return !1}if(typeof a!==n)return !1}}}catch(o){t={error:o};}finally{try{s&&!s.done&&(r=i.return)&&r.call(i);}finally{if(t)throw t.error}}return !0}function JX(e){switch(typeof e){case"number":case"boolean":case"string":return !0}return !1}var zX,q7e,QX=chunkTKGT252T_js.b(()=>{pt();zX=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},q7e=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s};});function MA(){return function(e){_t.error(H7e(e));}}function H7e(e){return typeof e=="string"?e:JSON.stringify(G7e(e))}function G7e(e){for(var t={},r=e;r!==null;)Object.getOwnPropertyNames(r).forEach(function(n){if(!t[n]){var i=r[n];i&&(t[n]=String(i));}}),r=Object.getPrototypeOf(r);return t}var SL=chunkTKGT252T_js.b(()=>{pt();});function ez(e){ZX=e;}function Jo(e){try{ZX(e);}catch{}}var ZX,TL=chunkTKGT252T_js.b(()=>{SL();ZX=MA();});var la,EL=chunkTKGT252T_js.b(()=>{(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio";})(la||(la={}));});function Y7e(e){return K7e.indexOf(e)>-1}function X7e(e){return W7e.indexOf(e)>-1}function J7e(e){return z7e.indexOf(e)>-1}function Q7e(e,t,r){if(!(typeof r[e]>"u")){var n=String(r[e]);t[e]=n.toLowerCase()==="true";}}function Z7e(e,t,r,n,i){if(n===void 0&&(n=-1/0),i===void 0&&(i=1/0),typeof r[e]<"u"){var s=Number(r[e]);isNaN(s)||(s<n?t[e]=n:s>i?t[e]=i:t[e]=s);}}function eHe(e,t,r,n){n===void 0&&(n=$7e);var i=r[e];typeof i=="string"&&(t[e]=i.split(n).map(function(s){return s.trim()}));}function rHe(e,t,r){var n=r[e];if(typeof n=="string"){var i=tHe[n.toUpperCase()];i!=null&&(t[e]=i);}}function CE(e){var t={};for(var r in PE){var n=r;switch(n){case"OTEL_LOG_LEVEL":rHe(n,t,e);break;default:if(Y7e(n))Q7e(n,t,e);else if(X7e(n))Z7e(n,t,e);else if(J7e(n))eHe(n,t,e);else {var i=e[n];typeof i<"u"&&i!==null&&(t[n]=String(i));}}}return t}var $7e,K7e,W7e,z7e,jh,Uh,bL,vL,PE,tHe,_L=chunkTKGT252T_js.b(()=>{pt();EL();$7e=",",K7e=["OTEL_SDK_DISABLED"];W7e=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];z7e=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];jh=1/0,Uh=128,bL=128,vL=128,PE={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:ln.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:jh,OTEL_ATTRIBUTE_COUNT_LIMIT:Uh,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:jh,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Uh,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:jh,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Uh,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:bL,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:vL,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:la.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};tHe={ALL:ln.ALL,VERBOSE:ln.VERBOSE,DEBUG:ln.DEBUG,INFO:ln.INFO,WARN:ln.WARN,ERROR:ln.ERROR,NONE:ln.NONE};});function Oa(){var e=CE(process.env);return Object.assign({},PE,e)}function ry(){return CE(process.env)}var tz=chunkTKGT252T_js.b(()=>{_L();});var LA,rz=chunkTKGT252T_js.b(()=>{LA=typeof globalThis=="object"?globalThis:global;});function nz(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function kA(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n<e.length;n+=2){var i=nz(e.charCodeAt(n)),s=nz(e.charCodeAt(n+1));t[r++]=i<<4|s;}return t}var xL=chunkTKGT252T_js.b(()=>{});function FA(e){return Buffer.from(kA(e)).toString("base64")}var iz=chunkTKGT252T_js.b(()=>{xL();});function sz(e){return function(){for(var r=0;r<e/4;r++)BA.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,r*4);for(var r=0;r<e&&!(BA[r]>0);r++)r===e-1&&(BA[e-1]=1);return BA.toString("hex",0,e)}}var nHe,az,jA,BA,oz=chunkTKGT252T_js.b(()=>{nHe=8,az=16,jA=function(){function e(){this.generateTraceId=sz(az),this.generateSpanId=sz(nHe);}return e}(),BA=Buffer.allocUnsafe(az);});var Za,uz=chunkTKGT252T_js.b(()=>{Za=perf_hooks.performance;});var UA,AL=chunkTKGT252T_js.b(()=>{UA="1.26.0";});function ii(e){for(var t={},r=e.length,n=0;n<r;n++){var i=e[n];i&&(t[String(i).toUpperCase().replace(/[-.]/g,"_")]=i);}return t}var PL=chunkTKGT252T_js.b(()=>{});var lz,cz,pz,fz,hz,dz,mz,yz,gz,Sz,Tz,Ez,bz,vz,_z,xz,Az,Pz,Cz,wz,Iz,Oz,Dz,Nz,Rz,Mz,Lz,kz,Fz,Bz,jz,Uz,qz,Vz,Hz,Gz,$z,Kz,Yz,Wz,Xz,zz,Jz,Qz,Zz,eJ,tJ,rJ,nJ,iJ,sJ,aJ,oJ,uJ,lJ,cJ,pJ,fJ,hJ,dJ,mJ,yJ,gJ,SJ,TJ,EJ,bJ,vJ,_J,xJ,AJ,PJ,CJ,wJ,IJ,OJ,DJ,NJ,RJ,MJ,LJ,kJ,FJ,BJ,jJ,UJ,qJ,VJ,HJ,GJ,$J,KJ,YJ,WJ,XJ,zJ,JJ,QJ,ZJ,eQ,tQ,rQ,nQ,iQ,sQ,aQ,oQ,uQ,lQ,cQ,pQ,fQ,hQ,dQ,mQ,yQ,gQ,SQ,TQ,EQ,bQ,vQ,_Q,xQ,AQ,PQ,CQ,wQ,sHe,CL,aHe,oHe,uHe,lHe,wL,cHe,pHe,fHe,hHe,dHe,mHe,yHe,gHe,SHe,THe,EHe,bHe,vHe,_He,wE,IE,IL,xHe,OL,AHe,PHe,CHe,wHe,IHe,OHe,DHe,NHe,RHe,MHe,LHe,kHe,FHe,BHe,jHe,UHe,qHe,VHe,HHe,GHe,$He,KHe,YHe,WHe,XHe,zHe,JHe,QHe,ZHe,eGe,tGe,rGe,nGe,iGe,OE,ny,DL,sGe,aGe,qA,oGe,uGe,lGe,cGe,pGe,fGe,hGe,dGe,mGe,yGe,gGe,SGe,TGe,EGe,bGe,vGe,_Ge,xGe,AGe,PGe,CGe,wGe,IGe,OGe,DGe,NGe,RGe,MGe,LGe,kGe,FGe,NL,BGe,jGe,UGe,qGe,VGe,HGe,GGe,$Ge,KGe,YGe,WGe,XGe,zGe,JGe,QGe,ZGe,e$e,t$e,r$e,RL,n$e,ML,i$e,s$e,a$e,o$e,u$e,l$e,c$e,p$e,f$e,IQ,OQ,DQ,NQ,RQ,MQ,LQ,kQ,FQ,BQ,jQ,UQ,qQ,VQ,HQ,GQ,$Q,KQ,YQ,WQ,XQ,zQ,JQ,QQ,ZQ,eZ,tZ,rZ,nZ,iZ,sZ,aZ,oZ,uZ,lZ,cZ,pZ,fZ,hZ,dZ,mZ,yZ,gZ,SZ,TZ,EZ,bZ,h$e,d$e,m$e,y$e,g$e,S$e,T$e,E$e,b$e,v$e,_$e,x$e,A$e,P$e,C$e,w$e,I$e,O$e,D$e,N$e,R$e,M$e,L$e,k$e,F$e,B$e,j$e,U$e,q$e,V$e,H$e,G$e,$$e,K$e,Y$e,W$e,X$e,z$e,J$e,Q$e,Z$e,eKe,tKe,rKe,nKe,iKe,sKe,aKe,vZ,_Z,xZ,AZ,PZ,CZ,wZ,IZ,OZ,DZ,NZ,oKe,uKe,lKe,cKe,pKe,fKe,hKe,dKe,mKe,yKe,gKe,SKe,RZ,MZ,LZ,kZ,FZ,TKe,EKe,bKe,vKe,_Ke,xKe,BZ,jZ,UZ,AKe,PKe,CKe,wKe,qZ,VZ,HZ,GZ,IKe,OKe,DKe,NKe,RKe,$Z,KZ,YZ,WZ,XZ,zZ,JZ,MKe,LKe,kKe,FKe,BKe,jKe,UKe,qKe,QZ,ZZ,eee,tee,ree,VKe,HKe,GKe,$Ke,KKe,YKe,nee,iee,see,aee,oee,uee,lee,cee,pee,fee,hee,dee,mee,yee,gee,See,Tee,Eee,bee,vee,_ee,WKe,XKe,zKe,JKe,QKe,ZKe,eYe,tYe,rYe,nYe,iYe,sYe,aYe,oYe,uYe,lYe,cYe,pYe,fYe,hYe,dYe,mYe,xee,Aee,Pee,Cee,wee,yYe,gYe,SYe,TYe,EYe,bYe,Iee,Oee,vYe,_Ye,xYe,Dee,Nee,AYe,PYe,CYe,Ree,Mee,Lee,kee,Fee,Bee,jee,Uee,qee,Vee,Hee,Gee,$ee,Kee,Yee,Wee,Xee,wYe,IYe,OYe,DYe,NYe,RYe,MYe,LYe,kYe,FYe,BYe,jYe,UYe,qYe,VYe,HYe,GYe,$Ye,zee,Jee,KYe,YYe,WYe,Qee=chunkTKGT252T_js.b(()=>{PL();lz="aws.lambda.invoked_arn",cz="db.system",pz="db.connection_string",fz="db.user",hz="db.jdbc.driver_classname",dz="db.name",mz="db.statement",yz="db.operation",gz="db.mssql.instance_name",Sz="db.cassandra.keyspace",Tz="db.cassandra.page_size",Ez="db.cassandra.consistency_level",bz="db.cassandra.table",vz="db.cassandra.idempotence",_z="db.cassandra.speculative_execution_count",xz="db.cassandra.coordinator.id",Az="db.cassandra.coordinator.dc",Pz="db.hbase.namespace",Cz="db.redis.database_index",wz="db.mongodb.collection",Iz="db.sql.table",Oz="exception.type",Dz="exception.message",Nz="exception.stacktrace",Rz="exception.escaped",Mz="faas.trigger",Lz="faas.execution",kz="faas.document.collection",Fz="faas.document.operation",Bz="faas.document.time",jz="faas.document.name",Uz="faas.time",qz="faas.cron",Vz="faas.coldstart",Hz="faas.invoked_name",Gz="faas.invoked_provider",$z="faas.invoked_region",Kz="net.transport",Yz="net.peer.ip",Wz="net.peer.port",Xz="net.peer.name",zz="net.host.ip",Jz="net.host.port",Qz="net.host.name",Zz="net.host.connection.type",eJ="net.host.connection.subtype",tJ="net.host.carrier.name",rJ="net.host.carrier.mcc",nJ="net.host.carrier.mnc",iJ="net.host.carrier.icc",sJ="peer.service",aJ="enduser.id",oJ="enduser.role",uJ="enduser.scope",lJ="thread.id",cJ="thread.name",pJ="code.function",fJ="code.namespace",hJ="code.filepath",dJ="code.lineno",mJ="http.method",yJ="http.url",gJ="http.target",SJ="http.host",TJ="http.scheme",EJ="http.status_code",bJ="http.flavor",vJ="http.user_agent",_J="http.request_content_length",xJ="http.request_content_length_uncompressed",AJ="http.response_content_length",PJ="http.response_content_length_uncompressed",CJ="http.server_name",wJ="http.route",IJ="http.client_ip",OJ="aws.dynamodb.table_names",DJ="aws.dynamodb.consumed_capacity",NJ="aws.dynamodb.item_collection_metrics",RJ="aws.dynamodb.provisioned_read_capacity",MJ="aws.dynamodb.provisioned_write_capacity",LJ="aws.dynamodb.consistent_read",kJ="aws.dynamodb.projection",FJ="aws.dynamodb.limit",BJ="aws.dynamodb.attributes_to_get",jJ="aws.dynamodb.index_name",UJ="aws.dynamodb.select",qJ="aws.dynamodb.global_secondary_indexes",VJ="aws.dynamodb.local_secondary_indexes",HJ="aws.dynamodb.exclusive_start_table",GJ="aws.dynamodb.table_count",$J="aws.dynamodb.scan_forward",KJ="aws.dynamodb.segment",YJ="aws.dynamodb.total_segments",WJ="aws.dynamodb.count",XJ="aws.dynamodb.scanned_count",zJ="aws.dynamodb.attribute_definitions",JJ="aws.dynamodb.global_secondary_index_updates",QJ="messaging.system",ZJ="messaging.destination",eQ="messaging.destination_kind",tQ="messaging.temp_destination",rQ="messaging.protocol",nQ="messaging.protocol_version",iQ="messaging.url",sQ="messaging.message_id",aQ="messaging.conversation_id",oQ="messaging.message_payload_size_bytes",uQ="messaging.message_payload_compressed_size_bytes",lQ="messaging.operation",cQ="messaging.consumer_id",pQ="messaging.rabbitmq.routing_key",fQ="messaging.kafka.message_key",hQ="messaging.kafka.consumer_group",dQ="messaging.kafka.client_id",mQ="messaging.kafka.partition",yQ="messaging.kafka.tombstone",gQ="rpc.system",SQ="rpc.service",TQ="rpc.method",EQ="rpc.grpc.status_code",bQ="rpc.jsonrpc.version",vQ="rpc.jsonrpc.request_id",_Q="rpc.jsonrpc.error_code",xQ="rpc.jsonrpc.error_message",AQ="message.type",PQ="message.id",CQ="message.compressed_size",wQ="message.uncompressed_size",sHe=lz,CL=cz,aHe=pz,oHe=fz,uHe=hz,lHe=dz,wL=mz,cHe=yz,pHe=gz,fHe=Sz,hHe=Tz,dHe=Ez,mHe=bz,yHe=vz,gHe=_z,SHe=xz,THe=Az,EHe=Pz,bHe=Cz,vHe=wz,_He=Iz,wE=Oz,IE=Dz,IL=Nz,xHe=Rz,OL=Mz,AHe=Lz,PHe=kz,CHe=Fz,wHe=Bz,IHe=jz,OHe=Uz,DHe=qz,NHe=Vz,RHe=Hz,MHe=Gz,LHe=$z,kHe=Kz,FHe=Yz,BHe=Wz,jHe=Xz,UHe=zz,qHe=Jz,VHe=Qz,HHe=Zz,GHe=eJ,$He=tJ,KHe=rJ,YHe=nJ,WHe=iJ,XHe=sJ,zHe=aJ,JHe=oJ,QHe=uJ,ZHe=lJ,eGe=cJ,tGe=pJ,rGe=fJ,nGe=hJ,iGe=dJ,OE=mJ,ny=yJ,DL=gJ,sGe=SJ,aGe=TJ,qA=EJ,oGe=bJ,uGe=vJ,lGe=_J,cGe=xJ,pGe=AJ,fGe=PJ,hGe=CJ,dGe=wJ,mGe=IJ,yGe=OJ,gGe=DJ,SGe=NJ,TGe=RJ,EGe=MJ,bGe=LJ,vGe=kJ,_Ge=FJ,xGe=BJ,AGe=jJ,PGe=UJ,CGe=qJ,wGe=VJ,IGe=HJ,OGe=GJ,DGe=$J,NGe=KJ,RGe=YJ,MGe=WJ,LGe=XJ,kGe=zJ,FGe=JJ,NL=QJ,BGe=ZJ,jGe=eQ,UGe=tQ,qGe=rQ,VGe=nQ,HGe=iQ,GGe=sQ,$Ge=aQ,KGe=oQ,YGe=uQ,WGe=lQ,XGe=cQ,zGe=pQ,JGe=fQ,QGe=hQ,ZGe=dQ,e$e=mQ,t$e=yQ,r$e=gQ,RL=SQ,n$e=TQ,ML=EQ,i$e=bQ,s$e=vQ,a$e=_Q,o$e=xQ,u$e=AQ,l$e=PQ,c$e=CQ,p$e=wQ,f$e=ii([lz,cz,pz,fz,hz,dz,mz,yz,gz,Sz,Tz,Ez,bz,vz,_z,xz,Az,Pz,Cz,wz,Iz,Oz,Dz,Nz,Rz,Mz,Lz,kz,Fz,Bz,jz,Uz,qz,Vz,Hz,Gz,$z,Kz,Yz,Wz,Xz,zz,Jz,Qz,Zz,eJ,tJ,rJ,nJ,iJ,sJ,aJ,oJ,uJ,lJ,cJ,pJ,fJ,hJ,dJ,mJ,yJ,gJ,SJ,TJ,EJ,bJ,vJ,_J,xJ,AJ,PJ,CJ,wJ,IJ,OJ,DJ,NJ,RJ,MJ,LJ,kJ,FJ,BJ,jJ,UJ,qJ,VJ,HJ,GJ,$J,KJ,YJ,WJ,XJ,zJ,JJ,QJ,ZJ,eQ,tQ,rQ,nQ,iQ,sQ,aQ,oQ,uQ,lQ,cQ,pQ,fQ,hQ,dQ,mQ,yQ,gQ,SQ,TQ,EQ,bQ,vQ,_Q,xQ,AQ,PQ,CQ,wQ]),IQ="other_sql",OQ="mssql",DQ="mysql",NQ="oracle",RQ="db2",MQ="postgresql",LQ="redshift",kQ="hive",FQ="cloudscape",BQ="hsqldb",jQ="progress",UQ="maxdb",qQ="hanadb",VQ="ingres",HQ="firstsql",GQ="edb",$Q="cache",KQ="adabas",YQ="firebird",WQ="derby",XQ="filemaker",zQ="informix",JQ="instantdb",QQ="interbase",ZQ="mariadb",eZ="netezza",tZ="pervasive",rZ="pointbase",nZ="sqlite",iZ="sybase",sZ="teradata",aZ="vertica",oZ="h2",uZ="coldfusion",lZ="cassandra",cZ="hbase",pZ="mongodb",fZ="redis",hZ="couchbase",dZ="couchdb",mZ="cosmosdb",yZ="dynamodb",gZ="neo4j",SZ="geode",TZ="elasticsearch",EZ="memcached",bZ="cockroachdb",h$e=IQ,d$e=OQ,m$e=DQ,y$e=NQ,g$e=RQ,S$e=MQ,T$e=LQ,E$e=kQ,b$e=FQ,v$e=BQ,_$e=jQ,x$e=UQ,A$e=qQ,P$e=VQ,C$e=HQ,w$e=GQ,I$e=$Q,O$e=KQ,D$e=YQ,N$e=WQ,R$e=XQ,M$e=zQ,L$e=JQ,k$e=QQ,F$e=ZQ,B$e=eZ,j$e=tZ,U$e=rZ,q$e=nZ,V$e=iZ,H$e=sZ,G$e=aZ,$$e=oZ,K$e=uZ,Y$e=lZ,W$e=cZ,X$e=pZ,z$e=fZ,J$e=hZ,Q$e=dZ,Z$e=mZ,eKe=yZ,tKe=gZ,rKe=SZ,nKe=TZ,iKe=EZ,sKe=bZ,aKe=ii([IQ,OQ,DQ,NQ,RQ,MQ,LQ,kQ,FQ,BQ,jQ,UQ,qQ,VQ,HQ,GQ,$Q,KQ,YQ,WQ,XQ,zQ,JQ,QQ,ZQ,eZ,tZ,rZ,nZ,iZ,sZ,aZ,oZ,uZ,lZ,cZ,pZ,fZ,hZ,dZ,mZ,yZ,gZ,SZ,TZ,EZ,bZ]),vZ="all",_Z="each_quorum",xZ="quorum",AZ="local_quorum",PZ="one",CZ="two",wZ="three",IZ="local_one",OZ="any",DZ="serial",NZ="local_serial",oKe=vZ,uKe=_Z,lKe=xZ,cKe=AZ,pKe=PZ,fKe=CZ,hKe=wZ,dKe=IZ,mKe=OZ,yKe=DZ,gKe=NZ,SKe=ii([vZ,_Z,xZ,AZ,PZ,CZ,wZ,IZ,OZ,DZ,NZ]),RZ="datasource",MZ="http",LZ="pubsub",kZ="timer",FZ="other",TKe=RZ,EKe=MZ,bKe=LZ,vKe=kZ,_Ke=FZ,xKe=ii([RZ,MZ,LZ,kZ,FZ]),BZ="insert",jZ="edit",UZ="delete",AKe=BZ,PKe=jZ,CKe=UZ,wKe=ii([BZ,jZ,UZ]),qZ="alibaba_cloud",VZ="aws",HZ="azure",GZ="gcp",IKe=qZ,OKe=VZ,DKe=HZ,NKe=GZ,RKe=ii([qZ,VZ,HZ,GZ]),$Z="ip_tcp",KZ="ip_udp",YZ="ip",WZ="unix",XZ="pipe",zZ="inproc",JZ="other",MKe=$Z,LKe=KZ,kKe=YZ,FKe=WZ,BKe=XZ,jKe=zZ,UKe=JZ,qKe=ii([$Z,KZ,YZ,WZ,XZ,zZ,JZ]),QZ="wifi",ZZ="wired",eee="cell",tee="unavailable",ree="unknown",VKe=QZ,HKe=ZZ,GKe=eee,$Ke=tee,KKe=ree,YKe=ii([QZ,ZZ,eee,tee,ree]),nee="gprs",iee="edge",see="umts",aee="cdma",oee="evdo_0",uee="evdo_a",lee="cdma2000_1xrtt",cee="hsdpa",pee="hsupa",fee="hspa",hee="iden",dee="evdo_b",mee="lte",yee="ehrpd",gee="hspap",See="gsm",Tee="td_scdma",Eee="iwlan",bee="nr",vee="nrnsa",_ee="lte_ca",WKe=nee,XKe=iee,zKe=see,JKe=aee,QKe=oee,ZKe=uee,eYe=lee,tYe=cee,rYe=pee,nYe=fee,iYe=hee,sYe=dee,aYe=mee,oYe=yee,uYe=gee,lYe=See,cYe=Tee,pYe=Eee,fYe=bee,hYe=vee,dYe=_ee,mYe=ii([nee,iee,see,aee,oee,uee,lee,cee,pee,fee,hee,dee,mee,yee,gee,See,Tee,Eee,bee,vee,_ee]),xee="1.0",Aee="1.1",Pee="2.0",Cee="SPDY",wee="QUIC",yYe=xee,gYe=Aee,SYe=Pee,TYe=Cee,EYe=wee,bYe={HTTP_1_0:xee,HTTP_1_1:Aee,HTTP_2_0:Pee,SPDY:Cee,QUIC:wee},Iee="queue",Oee="topic",vYe=Iee,_Ye=Oee,xYe=ii([Iee,Oee]),Dee="receive",Nee="process",AYe=Dee,PYe=Nee,CYe=ii([Dee,Nee]),Ree=0,Mee=1,Lee=2,kee=3,Fee=4,Bee=5,jee=6,Uee=7,qee=8,Vee=9,Hee=10,Gee=11,$ee=12,Kee=13,Yee=14,Wee=15,Xee=16,wYe=Ree,IYe=Mee,OYe=Lee,DYe=kee,NYe=Fee,RYe=Bee,MYe=jee,LYe=Uee,kYe=qee,FYe=Vee,BYe=Hee,jYe=Gee,UYe=$ee,qYe=Kee,VYe=Yee,HYe=Wee,GYe=Xee,$Ye={OK:Ree,CANCELLED:Mee,UNKNOWN:Lee,INVALID_ARGUMENT:kee,DEADLINE_EXCEEDED:Fee,NOT_FOUND:Bee,ALREADY_EXISTS:jee,PERMISSION_DENIED:Uee,RESOURCE_EXHAUSTED:qee,FAILED_PRECONDITION:Vee,ABORTED:Hee,OUT_OF_RANGE:Gee,UNIMPLEMENTED:$ee,INTERNAL:Kee,UNAVAILABLE:Yee,DATA_LOSS:Wee,UNAUTHENTICATED:Xee},zee="SENT",Jee="RECEIVED",KYe=zee,YYe=Jee,WYe=ii([zee,Jee]);});var Zee=chunkTKGT252T_js.b(()=>{Qee();});var ete,tte,rte,nte,ite,ste,ate,ote,ute,lte,cte,pte,fte,hte,dte,mte,yte,gte,Ste,Tte,Ete,bte,vte,_te,xte,Ate,Pte,Cte,wte,Ite,Ote,Dte,Nte,Rte,Mte,Lte,kte,Fte,Bte,jte,Ute,qte,Vte,Hte,Gte,$te,Kte,Yte,Wte,Xte,zte,Jte,Qte,Zte,ere,tre,rre,nre,ire,sre,are,ore,ure,lre,cre,pre,fre,hre,dre,mre,yre,gre,Sre,Tre,Ere,bre,vre,_re,xre,Are,Pre,XYe,zYe,JYe,QYe,ZYe,eWe,tWe,rWe,nWe,iWe,sWe,aWe,oWe,uWe,lWe,cWe,pWe,fWe,hWe,dWe,mWe,yWe,gWe,SWe,TWe,EWe,bWe,vWe,_We,xWe,AWe,PWe,CWe,wWe,IWe,OWe,DWe,NWe,RWe,MWe,LWe,kWe,FWe,BWe,jWe,UWe,qWe,VWe,HWe,GWe,$We,KWe,YWe,WWe,XWe,zWe,JWe,QWe,ZWe,eXe,tXe,rXe,nXe,iXe,sXe,aXe,oXe,LL,uXe,lXe,kL,FL,cXe,pXe,iy,sy,ay,fXe,hXe,dXe,mXe,yXe,Cre,wre,Ire,Ore,gXe,SXe,TXe,EXe,bXe,Dre,Nre,Rre,Mre,Lre,kre,Fre,Bre,jre,Ure,qre,Vre,Hre,Gre,$re,Kre,Yre,vXe,_Xe,xXe,AXe,PXe,CXe,wXe,IXe,OXe,DXe,NXe,RXe,MXe,LXe,kXe,FXe,BXe,jXe,Wre,Xre,UXe,qXe,VXe,zre,Jre,Qre,Zre,ene,tne,rne,HXe,GXe,$Xe,KXe,YXe,WXe,XXe,zXe,nne,ine,sne,ane,one,une,lne,cne,pne,fne,hne,JXe,QXe,ZXe,eze,tze,rze,nze,ize,sze,aze,oze,uze,dne,mne,yne,gne,Sne,Tne,Ene,bne,vne,_ne,lze,cze,pze,fze,hze,BL,dze,mze,yze,gze,Sze,xne=chunkTKGT252T_js.b(()=>{PL();ete="cloud.provider",tte="cloud.account.id",rte="cloud.region",nte="cloud.availability_zone",ite="cloud.platform",ste="aws.ecs.container.arn",ate="aws.ecs.cluster.arn",ote="aws.ecs.launchtype",ute="aws.ecs.task.arn",lte="aws.ecs.task.family",cte="aws.ecs.task.revision",pte="aws.eks.cluster.arn",fte="aws.log.group.names",hte="aws.log.group.arns",dte="aws.log.stream.names",mte="aws.log.stream.arns",yte="container.name",gte="container.id",Ste="container.runtime",Tte="container.image.name",Ete="container.image.tag",bte="deployment.environment",vte="device.id",_te="device.model.identifier",xte="device.model.name",Ate="faas.name",Pte="faas.id",Cte="faas.version",wte="faas.instance",Ite="faas.max_memory",Ote="host.id",Dte="host.name",Nte="host.type",Rte="host.arch",Mte="host.image.name",Lte="host.image.id",kte="host.image.version",Fte="k8s.cluster.name",Bte="k8s.node.name",jte="k8s.node.uid",Ute="k8s.namespace.name",qte="k8s.pod.uid",Vte="k8s.pod.name",Hte="k8s.container.name",Gte="k8s.replicaset.uid",$te="k8s.replicaset.name",Kte="k8s.deployment.uid",Yte="k8s.deployment.name",Wte="k8s.statefulset.uid",Xte="k8s.statefulset.name",zte="k8s.daemonset.uid",Jte="k8s.daemonset.name",Qte="k8s.job.uid",Zte="k8s.job.name",ere="k8s.cronjob.uid",tre="k8s.cronjob.name",rre="os.type",nre="os.description",ire="os.name",sre="os.version",are="process.pid",ore="process.executable.name",ure="process.executable.path",lre="process.command",cre="process.command_line",pre="process.command_args",fre="process.owner",hre="process.runtime.name",dre="process.runtime.version",mre="process.runtime.description",yre="service.name",gre="service.namespace",Sre="service.instance.id",Tre="service.version",Ere="telemetry.sdk.name",bre="telemetry.sdk.language",vre="telemetry.sdk.version",_re="telemetry.auto.version",xre="webengine.name",Are="webengine.version",Pre="webengine.description",XYe=ete,zYe=tte,JYe=rte,QYe=nte,ZYe=ite,eWe=ste,tWe=ate,rWe=ote,nWe=ute,iWe=lte,sWe=cte,aWe=pte,oWe=fte,uWe=hte,lWe=dte,cWe=mte,pWe=yte,fWe=gte,hWe=Ste,dWe=Tte,mWe=Ete,yWe=bte,gWe=vte,SWe=_te,TWe=xte,EWe=Ate,bWe=Pte,vWe=Cte,_We=wte,xWe=Ite,AWe=Ote,PWe=Dte,CWe=Nte,wWe=Rte,IWe=Mte,OWe=Lte,DWe=kte,NWe=Fte,RWe=Bte,MWe=jte,LWe=Ute,kWe=qte,FWe=Vte,BWe=Hte,jWe=Gte,UWe=$te,qWe=Kte,VWe=Yte,HWe=Wte,GWe=Xte,$We=zte,KWe=Jte,YWe=Qte,WWe=Zte,XWe=ere,zWe=tre,JWe=rre,QWe=nre,ZWe=ire,eXe=sre,tXe=are,rXe=ore,nXe=ure,iXe=lre,sXe=cre,aXe=pre,oXe=fre,LL=hre,uXe=dre,lXe=mre,kL=yre,FL=gre,cXe=Sre,pXe=Tre,iy=Ere,sy=bre,ay=vre,fXe=_re,hXe=xre,dXe=Are,mXe=Pre,yXe=ii([ete,tte,rte,nte,ite,ste,ate,ote,ute,lte,cte,pte,fte,hte,dte,mte,yte,gte,Ste,Tte,Ete,bte,vte,_te,xte,Ate,Pte,Cte,wte,Ite,Ote,Dte,Nte,Rte,Mte,Lte,kte,Fte,Bte,jte,Ute,qte,Vte,Hte,Gte,$te,Kte,Yte,Wte,Xte,zte,Jte,Qte,Zte,ere,tre,rre,nre,ire,sre,are,ore,ure,lre,cre,pre,fre,hre,dre,mre,yre,gre,Sre,Tre,Ere,bre,vre,_re,xre,Are,Pre]),Cre="alibaba_cloud",wre="aws",Ire="azure",Ore="gcp",gXe=Cre,SXe=wre,TXe=Ire,EXe=Ore,bXe=ii([Cre,wre,Ire,Ore]),Dre="alibaba_cloud_ecs",Nre="alibaba_cloud_fc",Rre="aws_ec2",Mre="aws_ecs",Lre="aws_eks",kre="aws_lambda",Fre="aws_elastic_beanstalk",Bre="azure_vm",jre="azure_container_instances",Ure="azure_aks",qre="azure_functions",Vre="azure_app_service",Hre="gcp_compute_engine",Gre="gcp_cloud_run",$re="gcp_kubernetes_engine",Kre="gcp_cloud_functions",Yre="gcp_app_engine",vXe=Dre,_Xe=Nre,xXe=Rre,AXe=Mre,PXe=Lre,CXe=kre,wXe=Fre,IXe=Bre,OXe=jre,DXe=Ure,NXe=qre,RXe=Vre,MXe=Hre,LXe=Gre,kXe=$re,FXe=Kre,BXe=Yre,jXe=ii([Dre,Nre,Rre,Mre,Lre,kre,Fre,Bre,jre,Ure,qre,Vre,Hre,Gre,$re,Kre,Yre]),Wre="ec2",Xre="fargate",UXe=Wre,qXe=Xre,VXe=ii([Wre,Xre]),zre="amd64",Jre="arm32",Qre="arm64",Zre="ia64",ene="ppc32",tne="ppc64",rne="x86",HXe=zre,GXe=Jre,$Xe=Qre,KXe=Zre,YXe=ene,WXe=tne,XXe=rne,zXe=ii([zre,Jre,Qre,Zre,ene,tne,rne]),nne="windows",ine="linux",sne="darwin",ane="freebsd",one="netbsd",une="openbsd",lne="dragonflybsd",cne="hpux",pne="aix",fne="solaris",hne="z_os",JXe=nne,QXe=ine,ZXe=sne,eze=ane,tze=one,rze=une,nze=lne,ize=cne,sze=pne,aze=fne,oze=hne,uze=ii([nne,ine,sne,ane,one,une,lne,cne,pne,fne,hne]),dne="cpp",mne="dotnet",yne="erlang",gne="go",Sne="java",Tne="nodejs",Ene="php",bne="python",vne="ruby",_ne="webjs",lze=dne,cze=mne,pze=yne,fze=gne,hze=Sne,BL=Tne,dze=Ene,mze=bne,yze=vne,gze=_ne,Sze=ii([dne,mne,yne,gne,Sne,Tne,Ene,bne,vne,_ne]);});var Ane=chunkTKGT252T_js.b(()=>{xne();});var Tze,Eze,bze,vze,_ze,xze,Aze,Pze,Cze,wze,Ize,Oze,Dze,Nze,Rze,Mze,Lze,kze,Fze,Bze,jze,Uze,qze,Vze,Hze,Gze,$ze,Kze,Yze,Wze,Xze,zze,Jze,Qze,Zze,eJe,tJe,rJe,nJe,iJe,sJe,DE,aJe,oJe,uJe,lJe,cJe,pJe,fJe,hJe,dJe,mJe,yJe,gJe,SJe,VA,NE,TJe,EJe,bJe,vJe,_Je,xJe,AJe,PJe,CJe,wJe,IJe,OJe,DJe,NJe,RJe,MJe,LJe,kJe,FJe,BJe,jJe,UJe,qJe,VJe,HJe,GJe,$Je,KJe,YJe,WJe,XJe,zJe,JJe,QJe,ZJe,eQe,tQe,jL,UL,rQe,nQe,iQe,sQe,aQe,oQe,uQe,lQe,cQe,oy,pQe,fQe,hQe,dQe,Pne=chunkTKGT252T_js.b(()=>{Tze="aspnetcore.rate_limiting.result",Eze="acquired",bze="endpoint_limiter",vze="global_limiter",_ze="request_canceled",xze="telemetry.sdk.language",Aze="cpp",Pze="dotnet",Cze="erlang",wze="go",Ize="java",Oze="nodejs",Dze="php",Nze="python",Rze="ruby",Mze="rust",Lze="swift",kze="webjs",Fze="telemetry.sdk.name",Bze="telemetry.sdk.version",jze="aspnetcore.diagnostics.handler.type",Uze="aspnetcore.diagnostics.exception.result",qze="aborted",Vze="handled",Hze="skipped",Gze="unhandled",$ze="aspnetcore.rate_limiting.policy",Kze="aspnetcore.request.is_unhandled",Yze="aspnetcore.routing.is_fallback",Wze="aspnetcore.routing.match_status",Xze="failure",zze="success",Jze="client.address",Qze="client.port",Zze="error.type",eJe="_OTHER",tJe="exception.escaped",rJe="exception.message",nJe="exception.stacktrace",iJe="exception.type",sJe=function(e){return "http.request.header."+e},DE="http.request.method",aJe="_OTHER",oJe="CONNECT",uJe="DELETE",lJe="GET",cJe="HEAD",pJe="OPTIONS",fJe="PATCH",hJe="POST",dJe="PUT",mJe="TRACE",yJe="http.request.method_original",gJe="http.request.resend_count",SJe=function(e){return "http.response.header."+e},VA="http.response.status_code",NE="http.route",TJe="jvm.gc.action",EJe="jvm.gc.name",bJe="jvm.memory.pool.name",vJe="jvm.memory.type",_Je="heap",xJe="non_heap",AJe="jvm.thread.daemon",PJe="jvm.thread.state",CJe="blocked",wJe="new",IJe="runnable",OJe="terminated",DJe="timed_waiting",NJe="waiting",RJe="network.local.address",MJe="network.local.port",LJe="network.peer.address",kJe="network.peer.port",FJe="network.protocol.name",BJe="network.protocol.version",jJe="network.transport",UJe="pipe",qJe="quic",VJe="tcp",HJe="udp",GJe="unix",$Je="network.type",KJe="ipv4",YJe="ipv6",WJe="otel.scope.name",XJe="otel.scope.version",zJe="otel.status_code",JJe="ERROR",QJe="OK",ZJe="otel.status_description",eQe="server.address",tQe="server.port",jL="service.name",UL="service.version",rQe="signalr.connection.status",nQe="app_shutdown",iQe="normal_closure",sQe="timeout",aQe="signalr.transport",oQe="long_polling",uQe="server_sent_events",lQe="web_sockets",cQe="url.fragment",oy="url.full",pQe="url.path",fQe="url.query",hQe="url.scheme",dQe="user_agent.original";});var mQe,yQe,gQe,SQe,TQe,EQe,bQe,vQe,_Qe,xQe,AQe,PQe,CQe,wQe,IQe,OQe,DQe,NQe,RQe,MQe,LQe,kQe,FQe,BQe,jQe,UQe,qQe,VQe,HQe,GQe,$Qe,Cne=chunkTKGT252T_js.b(()=>{mQe="aspnetcore.diagnostics.exceptions",yQe="aspnetcore.rate_limiting.active_request_leases",gQe="aspnetcore.rate_limiting.queued_requests",SQe="aspnetcore.rate_limiting.request.time_in_queue",TQe="aspnetcore.rate_limiting.request_lease.duration",EQe="aspnetcore.rate_limiting.requests",bQe="aspnetcore.routing.match_attempts",vQe="http.client.request.duration",_Qe="http.server.request.duration",xQe="jvm.class.count",AQe="jvm.class.loaded",PQe="jvm.class.unloaded",CQe="jvm.cpu.count",wQe="jvm.cpu.recent_utilization",IQe="jvm.cpu.time",OQe="jvm.gc.duration",DQe="jvm.memory.committed",NQe="jvm.memory.limit",RQe="jvm.memory.used",MQe="jvm.memory.used_after_last_gc",LQe="jvm.thread.count",kQe="kestrel.active_connections",FQe="kestrel.active_tls_handshakes",BQe="kestrel.connection.duration",jQe="kestrel.queued_connections",UQe="kestrel.queued_requests",qQe="kestrel.rejected_connections",VQe="kestrel.tls_handshake.duration",HQe="kestrel.upgraded_connections",GQe="signalr.server.active_connections",$Qe="signalr.server.connection.duration";});var si={};chunkTKGT252T_js.d(si,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>qze,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>Vze,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>Hze,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>Gze,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>Eze,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>bze,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>vze,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>_ze,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>Xze,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>zze,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>Uze,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>jze,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>$ze,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>Tze,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>Kze,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>Yze,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>Wze,ATTR_CLIENT_ADDRESS:()=>Jze,ATTR_CLIENT_PORT:()=>Qze,ATTR_ERROR_TYPE:()=>Zze,ATTR_EXCEPTION_ESCAPED:()=>tJe,ATTR_EXCEPTION_MESSAGE:()=>rJe,ATTR_EXCEPTION_STACKTRACE:()=>nJe,ATTR_EXCEPTION_TYPE:()=>iJe,ATTR_HTTP_REQUEST_HEADER:()=>sJe,ATTR_HTTP_REQUEST_METHOD:()=>DE,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>yJe,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>gJe,ATTR_HTTP_RESPONSE_HEADER:()=>SJe,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>VA,ATTR_HTTP_ROUTE:()=>NE,ATTR_JVM_GC_ACTION:()=>TJe,ATTR_JVM_GC_NAME:()=>EJe,ATTR_JVM_MEMORY_POOL_NAME:()=>bJe,ATTR_JVM_MEMORY_TYPE:()=>vJe,ATTR_JVM_THREAD_DAEMON:()=>AJe,ATTR_JVM_THREAD_STATE:()=>PJe,ATTR_NETWORK_LOCAL_ADDRESS:()=>RJe,ATTR_NETWORK_LOCAL_PORT:()=>MJe,ATTR_NETWORK_PEER_ADDRESS:()=>LJe,ATTR_NETWORK_PEER_PORT:()=>kJe,ATTR_NETWORK_PROTOCOL_NAME:()=>FJe,ATTR_NETWORK_PROTOCOL_VERSION:()=>BJe,ATTR_NETWORK_TRANSPORT:()=>jJe,ATTR_NETWORK_TYPE:()=>$Je,ATTR_OTEL_SCOPE_NAME:()=>WJe,ATTR_OTEL_SCOPE_VERSION:()=>XJe,ATTR_OTEL_STATUS_CODE:()=>zJe,ATTR_OTEL_STATUS_DESCRIPTION:()=>ZJe,ATTR_SERVER_ADDRESS:()=>eQe,ATTR_SERVER_PORT:()=>tQe,ATTR_SERVICE_NAME:()=>jL,ATTR_SERVICE_VERSION:()=>UL,ATTR_SIGNALR_CONNECTION_STATUS:()=>rQe,ATTR_SIGNALR_TRANSPORT:()=>aQe,ATTR_TELEMETRY_SDK_LANGUAGE:()=>xze,ATTR_TELEMETRY_SDK_NAME:()=>Fze,ATTR_TELEMETRY_SDK_VERSION:()=>Bze,ATTR_URL_FRAGMENT:()=>cQe,ATTR_URL_FULL:()=>oy,ATTR_URL_PATH:()=>pQe,ATTR_URL_QUERY:()=>fQe,ATTR_URL_SCHEME:()=>hQe,ATTR_USER_AGENT_ORIGINAL:()=>dQe,AWSECSLAUNCHTYPEVALUES_EC2:()=>UXe,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>qXe,AwsEcsLaunchtypeValues:()=>VXe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>vXe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>_Xe,CLOUDPLATFORMVALUES_AWS_EC2:()=>xXe,CLOUDPLATFORMVALUES_AWS_ECS:()=>AXe,CLOUDPLATFORMVALUES_AWS_EKS:()=>PXe,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>wXe,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>CXe,CLOUDPLATFORMVALUES_AZURE_AKS:()=>DXe,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>RXe,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>OXe,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>NXe,CLOUDPLATFORMVALUES_AZURE_VM:()=>IXe,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>BXe,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>FXe,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>LXe,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>MXe,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>kXe,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>gXe,CLOUDPROVIDERVALUES_AWS:()=>SXe,CLOUDPROVIDERVALUES_AZURE:()=>TXe,CLOUDPROVIDERVALUES_GCP:()=>EXe,CloudPlatformValues:()=>jXe,CloudProviderValues:()=>bXe,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>oKe,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>mKe,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>uKe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>dKe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>cKe,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>gKe,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>pKe,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>lKe,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>yKe,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>hKe,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>fKe,DBSYSTEMVALUES_ADABAS:()=>O$e,DBSYSTEMVALUES_CACHE:()=>I$e,DBSYSTEMVALUES_CASSANDRA:()=>Y$e,DBSYSTEMVALUES_CLOUDSCAPE:()=>b$e,DBSYSTEMVALUES_COCKROACHDB:()=>sKe,DBSYSTEMVALUES_COLDFUSION:()=>K$e,DBSYSTEMVALUES_COSMOSDB:()=>Z$e,DBSYSTEMVALUES_COUCHBASE:()=>J$e,DBSYSTEMVALUES_COUCHDB:()=>Q$e,DBSYSTEMVALUES_DB2:()=>g$e,DBSYSTEMVALUES_DERBY:()=>N$e,DBSYSTEMVALUES_DYNAMODB:()=>eKe,DBSYSTEMVALUES_EDB:()=>w$e,DBSYSTEMVALUES_ELASTICSEARCH:()=>nKe,DBSYSTEMVALUES_FILEMAKER:()=>R$e,DBSYSTEMVALUES_FIREBIRD:()=>D$e,DBSYSTEMVALUES_FIRSTSQL:()=>C$e,DBSYSTEMVALUES_GEODE:()=>rKe,DBSYSTEMVALUES_H2:()=>$$e,DBSYSTEMVALUES_HANADB:()=>A$e,DBSYSTEMVALUES_HBASE:()=>W$e,DBSYSTEMVALUES_HIVE:()=>E$e,DBSYSTEMVALUES_HSQLDB:()=>v$e,DBSYSTEMVALUES_INFORMIX:()=>M$e,DBSYSTEMVALUES_INGRES:()=>P$e,DBSYSTEMVALUES_INSTANTDB:()=>L$e,DBSYSTEMVALUES_INTERBASE:()=>k$e,DBSYSTEMVALUES_MARIADB:()=>F$e,DBSYSTEMVALUES_MAXDB:()=>x$e,DBSYSTEMVALUES_MEMCACHED:()=>iKe,DBSYSTEMVALUES_MONGODB:()=>X$e,DBSYSTEMVALUES_MSSQL:()=>d$e,DBSYSTEMVALUES_MYSQL:()=>m$e,DBSYSTEMVALUES_NEO4J:()=>tKe,DBSYSTEMVALUES_NETEZZA:()=>B$e,DBSYSTEMVALUES_ORACLE:()=>y$e,DBSYSTEMVALUES_OTHER_SQL:()=>h$e,DBSYSTEMVALUES_PERVASIVE:()=>j$e,DBSYSTEMVALUES_POINTBASE:()=>U$e,DBSYSTEMVALUES_POSTGRESQL:()=>S$e,DBSYSTEMVALUES_PROGRESS:()=>_$e,DBSYSTEMVALUES_REDIS:()=>z$e,DBSYSTEMVALUES_REDSHIFT:()=>T$e,DBSYSTEMVALUES_SQLITE:()=>q$e,DBSYSTEMVALUES_SYBASE:()=>V$e,DBSYSTEMVALUES_TERADATA:()=>H$e,DBSYSTEMVALUES_VERTICA:()=>G$e,DbCassandraConsistencyLevelValues:()=>SKe,DbSystemValues:()=>aKe,ERROR_TYPE_VALUE_OTHER:()=>eJe,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>CKe,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>PKe,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>AKe,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>IKe,FAASINVOKEDPROVIDERVALUES_AWS:()=>OKe,FAASINVOKEDPROVIDERVALUES_AZURE:()=>DKe,FAASINVOKEDPROVIDERVALUES_GCP:()=>NKe,FAASTRIGGERVALUES_DATASOURCE:()=>TKe,FAASTRIGGERVALUES_HTTP:()=>EKe,FAASTRIGGERVALUES_OTHER:()=>_Ke,FAASTRIGGERVALUES_PUBSUB:()=>bKe,FAASTRIGGERVALUES_TIMER:()=>vKe,FaasDocumentOperationValues:()=>wKe,FaasInvokedProviderValues:()=>RKe,FaasTriggerValues:()=>xKe,HOSTARCHVALUES_AMD64:()=>HXe,HOSTARCHVALUES_ARM32:()=>GXe,HOSTARCHVALUES_ARM64:()=>$Xe,HOSTARCHVALUES_IA64:()=>KXe,HOSTARCHVALUES_PPC32:()=>YXe,HOSTARCHVALUES_PPC64:()=>WXe,HOSTARCHVALUES_X86:()=>XXe,HTTPFLAVORVALUES_HTTP_1_0:()=>yYe,HTTPFLAVORVALUES_HTTP_1_1:()=>gYe,HTTPFLAVORVALUES_HTTP_2_0:()=>SYe,HTTPFLAVORVALUES_QUIC:()=>EYe,HTTPFLAVORVALUES_SPDY:()=>TYe,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>oJe,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>uJe,HTTP_REQUEST_METHOD_VALUE_GET:()=>lJe,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>cJe,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>pJe,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>aJe,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>fJe,HTTP_REQUEST_METHOD_VALUE_POST:()=>hJe,HTTP_REQUEST_METHOD_VALUE_PUT:()=>dJe,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>mJe,HostArchValues:()=>zXe,HttpFlavorValues:()=>bYe,JVM_MEMORY_TYPE_VALUE_HEAP:()=>_Je,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>xJe,JVM_THREAD_STATE_VALUE_BLOCKED:()=>CJe,JVM_THREAD_STATE_VALUE_NEW:()=>wJe,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>IJe,JVM_THREAD_STATE_VALUE_TERMINATED:()=>OJe,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>DJe,JVM_THREAD_STATE_VALUE_WAITING:()=>NJe,MESSAGETYPEVALUES_RECEIVED:()=>YYe,MESSAGETYPEVALUES_SENT:()=>KYe,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>vYe,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>_Ye,MESSAGINGOPERATIONVALUES_PROCESS:()=>PYe,MESSAGINGOPERATIONVALUES_RECEIVE:()=>AYe,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>mQe,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>yQe,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>gQe,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>EQe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>TQe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>SQe,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>bQe,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>vQe,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>_Qe,METRIC_JVM_CLASS_COUNT:()=>xQe,METRIC_JVM_CLASS_LOADED:()=>AQe,METRIC_JVM_CLASS_UNLOADED:()=>PQe,METRIC_JVM_CPU_COUNT:()=>CQe,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>wQe,METRIC_JVM_CPU_TIME:()=>IQe,METRIC_JVM_GC_DURATION:()=>OQe,METRIC_JVM_MEMORY_COMMITTED:()=>DQe,METRIC_JVM_MEMORY_LIMIT:()=>NQe,METRIC_JVM_MEMORY_USED:()=>RQe,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>MQe,METRIC_JVM_THREAD_COUNT:()=>LQe,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>kQe,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>FQe,METRIC_KESTREL_CONNECTION_DURATION:()=>BQe,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>jQe,METRIC_KESTREL_QUEUED_REQUESTS:()=>UQe,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>qQe,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>VQe,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>HQe,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>GQe,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>$Qe,MessageTypeValues:()=>WYe,MessagingDestinationKindValues:()=>xYe,MessagingOperationValues:()=>CYe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>JKe,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>eYe,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>XKe,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>oYe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>QKe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>ZKe,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>sYe,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>WKe,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>lYe,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>tYe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>nYe,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>uYe,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>rYe,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>iYe,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>pYe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>aYe,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>dYe,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>fYe,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>hYe,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>cYe,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>zKe,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>GKe,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>$Ke,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>KKe,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>VKe,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>HKe,NETTRANSPORTVALUES_INPROC:()=>jKe,NETTRANSPORTVALUES_IP:()=>kKe,NETTRANSPORTVALUES_IP_TCP:()=>MKe,NETTRANSPORTVALUES_IP_UDP:()=>LKe,NETTRANSPORTVALUES_OTHER:()=>UKe,NETTRANSPORTVALUES_PIPE:()=>BKe,NETTRANSPORTVALUES_UNIX:()=>FKe,NETWORK_TRANSPORT_VALUE_PIPE:()=>UJe,NETWORK_TRANSPORT_VALUE_QUIC:()=>qJe,NETWORK_TRANSPORT_VALUE_TCP:()=>VJe,NETWORK_TRANSPORT_VALUE_UDP:()=>HJe,NETWORK_TRANSPORT_VALUE_UNIX:()=>GJe,NETWORK_TYPE_VALUE_IPV4:()=>KJe,NETWORK_TYPE_VALUE_IPV6:()=>YJe,NetHostConnectionSubtypeValues:()=>mYe,NetHostConnectionTypeValues:()=>YKe,NetTransportValues:()=>qKe,OSTYPEVALUES_AIX:()=>sze,OSTYPEVALUES_DARWIN:()=>ZXe,OSTYPEVALUES_DRAGONFLYBSD:()=>nze,OSTYPEVALUES_FREEBSD:()=>eze,OSTYPEVALUES_HPUX:()=>ize,OSTYPEVALUES_LINUX:()=>QXe,OSTYPEVALUES_NETBSD:()=>tze,OSTYPEVALUES_OPENBSD:()=>rze,OSTYPEVALUES_SOLARIS:()=>aze,OSTYPEVALUES_WINDOWS:()=>JXe,OSTYPEVALUES_Z_OS:()=>oze,OTEL_STATUS_CODE_VALUE_ERROR:()=>JJe,OTEL_STATUS_CODE_VALUE_OK:()=>QJe,OsTypeValues:()=>uze,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>BYe,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>MYe,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>IYe,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>HYe,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>NYe,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>FYe,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>qYe,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>DYe,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>RYe,RPCGRPCSTATUSCODEVALUES_OK:()=>wYe,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>jYe,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>LYe,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>kYe,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>GYe,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>VYe,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>UYe,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>OYe,RpcGrpcStatusCodeValues:()=>$Ye,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>xGe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>kGe,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>bGe,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>gGe,SEMATTRS_AWS_DYNAMODB_COUNT:()=>MGe,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>IGe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>CGe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>FGe,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>AGe,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>SGe,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>_Ge,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>wGe,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>vGe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>TGe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>EGe,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>LGe,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>DGe,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>NGe,SEMATTRS_AWS_DYNAMODB_SELECT:()=>PGe,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>OGe,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>yGe,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>RGe,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>sHe,SEMATTRS_CODE_FILEPATH:()=>nGe,SEMATTRS_CODE_FUNCTION:()=>tGe,SEMATTRS_CODE_LINENO:()=>iGe,SEMATTRS_CODE_NAMESPACE:()=>rGe,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>dHe,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>THe,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>SHe,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>yHe,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>fHe,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>hHe,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>gHe,SEMATTRS_DB_CASSANDRA_TABLE:()=>mHe,SEMATTRS_DB_CONNECTION_STRING:()=>aHe,SEMATTRS_DB_HBASE_NAMESPACE:()=>EHe,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>uHe,SEMATTRS_DB_MONGODB_COLLECTION:()=>vHe,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>pHe,SEMATTRS_DB_NAME:()=>lHe,SEMATTRS_DB_OPERATION:()=>cHe,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>bHe,SEMATTRS_DB_SQL_TABLE:()=>_He,SEMATTRS_DB_STATEMENT:()=>wL,SEMATTRS_DB_SYSTEM:()=>CL,SEMATTRS_DB_USER:()=>oHe,SEMATTRS_ENDUSER_ID:()=>zHe,SEMATTRS_ENDUSER_ROLE:()=>JHe,SEMATTRS_ENDUSER_SCOPE:()=>QHe,SEMATTRS_EXCEPTION_ESCAPED:()=>xHe,SEMATTRS_EXCEPTION_MESSAGE:()=>IE,SEMATTRS_EXCEPTION_STACKTRACE:()=>IL,SEMATTRS_EXCEPTION_TYPE:()=>wE,SEMATTRS_FAAS_COLDSTART:()=>NHe,SEMATTRS_FAAS_CRON:()=>DHe,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>PHe,SEMATTRS_FAAS_DOCUMENT_NAME:()=>IHe,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>CHe,SEMATTRS_FAAS_DOCUMENT_TIME:()=>wHe,SEMATTRS_FAAS_EXECUTION:()=>AHe,SEMATTRS_FAAS_INVOKED_NAME:()=>RHe,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>MHe,SEMATTRS_FAAS_INVOKED_REGION:()=>LHe,SEMATTRS_FAAS_TIME:()=>OHe,SEMATTRS_FAAS_TRIGGER:()=>OL,SEMATTRS_HTTP_CLIENT_IP:()=>mGe,SEMATTRS_HTTP_FLAVOR:()=>oGe,SEMATTRS_HTTP_HOST:()=>sGe,SEMATTRS_HTTP_METHOD:()=>OE,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>lGe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>cGe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>pGe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>fGe,SEMATTRS_HTTP_ROUTE:()=>dGe,SEMATTRS_HTTP_SCHEME:()=>aGe,SEMATTRS_HTTP_SERVER_NAME:()=>hGe,SEMATTRS_HTTP_STATUS_CODE:()=>qA,SEMATTRS_HTTP_TARGET:()=>DL,SEMATTRS_HTTP_URL:()=>ny,SEMATTRS_HTTP_USER_AGENT:()=>uGe,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>c$e,SEMATTRS_MESSAGE_ID:()=>l$e,SEMATTRS_MESSAGE_TYPE:()=>u$e,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>p$e,SEMATTRS_MESSAGING_CONSUMER_ID:()=>XGe,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>$Ge,SEMATTRS_MESSAGING_DESTINATION:()=>BGe,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>jGe,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>ZGe,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>QGe,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>JGe,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>e$e,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>t$e,SEMATTRS_MESSAGING_MESSAGE_ID:()=>GGe,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>YGe,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>KGe,SEMATTRS_MESSAGING_OPERATION:()=>WGe,SEMATTRS_MESSAGING_PROTOCOL:()=>qGe,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>VGe,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>zGe,SEMATTRS_MESSAGING_SYSTEM:()=>NL,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>UGe,SEMATTRS_MESSAGING_URL:()=>HGe,SEMATTRS_NET_HOST_CARRIER_ICC:()=>WHe,SEMATTRS_NET_HOST_CARRIER_MCC:()=>KHe,SEMATTRS_NET_HOST_CARRIER_MNC:()=>YHe,SEMATTRS_NET_HOST_CARRIER_NAME:()=>$He,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>GHe,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>HHe,SEMATTRS_NET_HOST_IP:()=>UHe,SEMATTRS_NET_HOST_NAME:()=>VHe,SEMATTRS_NET_HOST_PORT:()=>qHe,SEMATTRS_NET_PEER_IP:()=>FHe,SEMATTRS_NET_PEER_NAME:()=>jHe,SEMATTRS_NET_PEER_PORT:()=>BHe,SEMATTRS_NET_TRANSPORT:()=>kHe,SEMATTRS_PEER_SERVICE:()=>XHe,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>ML,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>a$e,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>o$e,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>s$e,SEMATTRS_RPC_JSONRPC_VERSION:()=>i$e,SEMATTRS_RPC_METHOD:()=>n$e,SEMATTRS_RPC_SERVICE:()=>RL,SEMATTRS_RPC_SYSTEM:()=>r$e,SEMATTRS_THREAD_ID:()=>ZHe,SEMATTRS_THREAD_NAME:()=>eGe,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>tWe,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>eWe,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>rWe,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>nWe,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>iWe,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>sWe,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>aWe,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>uWe,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>oWe,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>cWe,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>lWe,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>zYe,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>QYe,SEMRESATTRS_CLOUD_PLATFORM:()=>ZYe,SEMRESATTRS_CLOUD_PROVIDER:()=>XYe,SEMRESATTRS_CLOUD_REGION:()=>JYe,SEMRESATTRS_CONTAINER_ID:()=>fWe,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>dWe,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>mWe,SEMRESATTRS_CONTAINER_NAME:()=>pWe,SEMRESATTRS_CONTAINER_RUNTIME:()=>hWe,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>yWe,SEMRESATTRS_DEVICE_ID:()=>gWe,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>SWe,SEMRESATTRS_DEVICE_MODEL_NAME:()=>TWe,SEMRESATTRS_FAAS_ID:()=>bWe,SEMRESATTRS_FAAS_INSTANCE:()=>_We,SEMRESATTRS_FAAS_MAX_MEMORY:()=>xWe,SEMRESATTRS_FAAS_NAME:()=>EWe,SEMRESATTRS_FAAS_VERSION:()=>vWe,SEMRESATTRS_HOST_ARCH:()=>wWe,SEMRESATTRS_HOST_ID:()=>AWe,SEMRESATTRS_HOST_IMAGE_ID:()=>OWe,SEMRESATTRS_HOST_IMAGE_NAME:()=>IWe,SEMRESATTRS_HOST_IMAGE_VERSION:()=>DWe,SEMRESATTRS_HOST_NAME:()=>PWe,SEMRESATTRS_HOST_TYPE:()=>CWe,SEMRESATTRS_K8S_CLUSTER_NAME:()=>NWe,SEMRESATTRS_K8S_CONTAINER_NAME:()=>BWe,SEMRESATTRS_K8S_CRONJOB_NAME:()=>zWe,SEMRESATTRS_K8S_CRONJOB_UID:()=>XWe,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>KWe,SEMRESATTRS_K8S_DAEMONSET_UID:()=>$We,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>VWe,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>qWe,SEMRESATTRS_K8S_JOB_NAME:()=>WWe,SEMRESATTRS_K8S_JOB_UID:()=>YWe,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>LWe,SEMRESATTRS_K8S_NODE_NAME:()=>RWe,SEMRESATTRS_K8S_NODE_UID:()=>MWe,SEMRESATTRS_K8S_POD_NAME:()=>FWe,SEMRESATTRS_K8S_POD_UID:()=>kWe,SEMRESATTRS_K8S_REPLICASET_NAME:()=>UWe,SEMRESATTRS_K8S_REPLICASET_UID:()=>jWe,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>GWe,SEMRESATTRS_K8S_STATEFULSET_UID:()=>HWe,SEMRESATTRS_OS_DESCRIPTION:()=>QWe,SEMRESATTRS_OS_NAME:()=>ZWe,SEMRESATTRS_OS_TYPE:()=>JWe,SEMRESATTRS_OS_VERSION:()=>eXe,SEMRESATTRS_PROCESS_COMMAND:()=>iXe,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>aXe,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>sXe,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>rXe,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>nXe,SEMRESATTRS_PROCESS_OWNER:()=>oXe,SEMRESATTRS_PROCESS_PID:()=>tXe,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>lXe,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>LL,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>uXe,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>cXe,SEMRESATTRS_SERVICE_NAME:()=>kL,SEMRESATTRS_SERVICE_NAMESPACE:()=>FL,SEMRESATTRS_SERVICE_VERSION:()=>pXe,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>fXe,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>sy,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>iy,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>ay,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>mXe,SEMRESATTRS_WEBENGINE_NAME:()=>hXe,SEMRESATTRS_WEBENGINE_VERSION:()=>dXe,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>nQe,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>iQe,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>sQe,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>oQe,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>uQe,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>lQe,SemanticAttributes:()=>f$e,SemanticResourceAttributes:()=>yXe,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>lze,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>cze,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>pze,TELEMETRYSDKLANGUAGEVALUES_GO:()=>fze,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>hze,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>BL,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>dze,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>mze,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>yze,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>gze,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>Aze,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>Pze,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>Cze,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>wze,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>Ize,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>Oze,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>Dze,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>Nze,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>Rze,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>Mze,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>Lze,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>kze,TelemetrySdkLanguageValues:()=>Sze});var dn=chunkTKGT252T_js.b(()=>{Zee();Ane();Pne();Cne();});var uy,Op,wne=chunkTKGT252T_js.b(()=>{AL();dn();Op=(uy={},uy[iy]="opentelemetry",uy[LL]="node",uy[sy]=BL,uy[ay]=UA,uy);});function ly(e){e.unref();}var Ine=chunkTKGT252T_js.b(()=>{});var One=chunkTKGT252T_js.b(()=>{tz();rz();iz();oz();uz();wne();Ine();});var qL=chunkTKGT252T_js.b(()=>{One();});function Qo(e){var t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*YQe);return [r,n]}function cy(){var e=Za.timeOrigin;if(typeof e!="number"){var t=Za;e=t.timing&&t.timing.fetchStart;}return e}function RE(e){var t=Qo(cy()),r=Qo(typeof e=="number"?e:Za.now());return LE(t,r)}function Nne(e){if(py(e))return e;if(typeof e=="number")return e<cy()?RE(e):Qo(e);if(e instanceof Date)return Qo(e.getTime());throw TypeError("Invalid input type")}function GA(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=HA),[r,n]}function Rne(e){var t=Dne,r=""+"0".repeat(t)+e[1]+"Z",n=r.substr(r.length-t-1),i=new Date(e[0]*1e3).toISOString();return i.replace("000Z",n)}function Mne(e){return e[0]*HA+e[1]}function Lne(e){return e[0]*1e3+e[1]/1e6}function kne(e){return e[0]*1e6+e[1]/1e3}function py(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function ME(e){return py(e)||typeof e=="number"||e instanceof Date}function LE(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=HA&&(r[1]-=HA,r[0]+=1),r}var Dne,KQe,YQe,HA,Fne=chunkTKGT252T_js.b(()=>{qL();Dne=9,KQe=6,YQe=Math.pow(10,KQe),HA=Math.pow(10,Dne);});var fy,Bne=chunkTKGT252T_js.b(()=>{(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED";})(fy||(fy={}));});var WQe,$A,jne=chunkTKGT252T_js.b(()=>{pt();WQe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},$A=function(){function e(t){t===void 0&&(t={});var r;this._propagators=(r=t.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(function(n){return typeof n.fields=="function"?n.fields():[]}).reduce(function(n,i){return n.concat(i)},[])));}return e.prototype.inject=function(t,r,n){var i,s;try{for(var a=WQe(this._propagators),o=a.next();!o.done;o=a.next()){var u=o.value;try{u.inject(t,r,n);}catch(l){_t.warn("Failed to inject with "+u.constructor.name+". Err: "+l.message);}}}catch(l){i={error:l};}finally{try{o&&!o.done&&(s=a.return)&&s.call(a);}finally{if(i)throw i.error}}},e.prototype.extract=function(t,r,n){return this._propagators.reduce(function(i,s){try{return s.extract(i,r,n)}catch(a){_t.warn("Failed to inject with "+s.constructor.name+". Err: "+a.message);}return i},t)},e.prototype.fields=function(){return this._fields.slice()},e}();});function Une(e){return JQe.test(e)}function qne(e){return QQe.test(e)&&!ZQe.test(e)}var VL,XQe,zQe,JQe,QQe,ZQe,Vne=chunkTKGT252T_js.b(()=>{VL="[_0-9a-z-*/]",XQe="[a-z]"+VL+"{0,255}",zQe="[a-z0-9]"+VL+"{0,240}@[a-z]"+VL+"{0,13}",JQe=new RegExp("^(?:"+XQe+"|"+zQe+")$"),QQe=/^[ -~]{0,255}[!-~]$/,ZQe=/,|=/;});var Hne,eZe,Gne,$ne,qh,HL=chunkTKGT252T_js.b(()=>{Vne();Hne=32,eZe=512,Gne=",",$ne="=",qh=function(){function e(t){this._internalState=new Map,t&&this._parse(t);}return e.prototype.set=function(t,r){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n},e.prototype.unset=function(t){var r=this._clone();return r._internalState.delete(t),r},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(r,n){return r.push(n+$ne+t.get(n)),r},[]).join(Gne)},e.prototype._parse=function(t){t.length>eZe||(this._internalState=t.split(Gne).reverse().reduce(function(r,n){var i=n.trim(),s=i.indexOf($ne);if(s!==-1){var a=i.slice(0,s),o=i.slice(s+1,n.length);Une(a)&&qne(o)&&r.set(a,o);}return r},new Map),this._internalState.size>Hne&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Hne))));},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}();});function GL(e){var t=aZe.exec(e);return !t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var kE,FE,tZe,rZe,nZe,iZe,sZe,aZe,KA,Kne=chunkTKGT252T_js.b(()=>{pt();_E();HL();kE="traceparent",FE="tracestate",tZe="00",rZe="(?!ff)[\\da-f]{2}",nZe="(?![0]{32})[\\da-f]{32}",iZe="(?![0]{16})[\\da-f]{16}",sZe="[\\da-f]{2}",aZe=new RegExp("^\\s?("+rZe+")-("+nZe+")-("+iZe+")-("+sZe+")(-.*)?\\s?$");KA=function(){function e(){}return e.prototype.inject=function(t,r,n){var i=qt.getSpanContext(t);if(!(!i||qu(t)||!oa(i))){var s=tZe+"-"+i.traceId+"-"+i.spanId+"-0"+Number(i.traceFlags||hn.NONE).toString(16);n.set(r,kE,s),i.traceState&&n.set(r,FE,i.traceState.serialize());}},e.prototype.extract=function(t,r,n){var i=n.get(r,kE);if(!i)return t;var s=Array.isArray(i)?i[0]:i;if(typeof s!="string")return t;var a=GL(s);if(!a)return t;a.isRemote=!0;var o=n.get(r,FE);if(o){var u=Array.isArray(o)?o.join(","):o;a.traceState=new qh(typeof u=="string"?u:void 0);}return qt.setSpanContext(t,a)},e.prototype.fields=function(){return [kE,FE]},e}();});function Yne(e,t){return e.setValue($L,t)}function Wne(e){return e.deleteValue($L)}function Xne(e){return e.getValue($L)}var $L,YA,zne=chunkTKGT252T_js.b(()=>{pt();$L=xs("OpenTelemetry SDK Context Key RPC_METADATA");(function(e){e.HTTP="http";})(YA||(YA={}));});var BE,KL=chunkTKGT252T_js.b(()=>{pt();BE=function(){function e(){}return e.prototype.shouldSample=function(){return {decision:ua.NOT_RECORD}},e.prototype.toString=function(){return "AlwaysOffSampler"},e}();});var hy,YL=chunkTKGT252T_js.b(()=>{pt();hy=function(){function e(){}return e.prototype.shouldSample=function(){return {decision:ua.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return "AlwaysOnSampler"},e}();});var Jne,Qne=chunkTKGT252T_js.b(()=>{pt();TL();KL();YL();Jne=function(){function e(t){var r,n,i,s;this._root=t.root,this._root||(Jo(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new hy),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new hy,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new BE,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new hy,this._localParentNotSampled=(s=t.localParentNotSampled)!==null&&s!==void 0?s:new BE;}return e.prototype.shouldSample=function(t,r,n,i,s,a){var o=qt.getSpanContext(t);return !o||!oa(o)?this._root.shouldSample(t,r,n,i,s,a):o.isRemote?o.traceFlags&hn.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,i,s,a):this._remoteParentNotSampled.shouldSample(t,r,n,i,s,a):o.traceFlags&hn.SAMPLED?this._localParentSampled.shouldSample(t,r,n,i,s,a):this._localParentNotSampled.shouldSample(t,r,n,i,s,a)},e.prototype.toString=function(){return "ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}();});var Zne,eie=chunkTKGT252T_js.b(()=>{pt();Zne=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295);}return e.prototype.shouldSample=function(t,r){return {decision:Fh(r)&&this._accumulate(r)<this._upperBound?ua.RECORD_AND_SAMPLED:ua.NOT_RECORD}},e.prototype.toString=function(){return "TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n<t.length/8;n++){var i=n*8,s=parseInt(t.slice(i,i+8),16);r=(r^s)>>>0;}return r},e}();});function hZe(e,t){return function(r){return e(t(r))}}function WL(e){if(!dZe(e)||mZe(e)!==oZe)return !1;var t=fZe(e);if(t===null)return !0;var r=nie.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&tie.call(r)===pZe}function dZe(e){return e!=null&&typeof e=="object"}function mZe(e){return e==null?e===void 0?lZe:uZe:Vh&&Vh in Object(e)?yZe(e):gZe(e)}function yZe(e){var t=nie.call(e,Vh),r=e[Vh],n=!1;try{e[Vh]=void 0,n=!0;}catch{}var i=iie.call(e);return n&&(t?e[Vh]=r:delete e[Vh]),i}function gZe(e){return iie.call(e)}var oZe,uZe,lZe,cZe,tie,pZe,fZe,rie,nie,Vh,iie,sie=chunkTKGT252T_js.b(()=>{oZe="[object Object]",uZe="[object Null]",lZe="[object Undefined]",cZe=Function.prototype,tie=cZe.toString,pZe=tie.call(Object),fZe=hZe(Object.getPrototypeOf,Object),rie=Object.prototype,nie=rie.hasOwnProperty,Vh=Symbol?Symbol.toStringTag:void 0,iie=rie.toString;});function zA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=oie(r,e.shift(),0,n);return r}function XL(e){return XA(e)?e.slice():e}function oie(e,t,r,n){r===void 0&&(r=0);var i;if(!(r>SZe)){if(r++,WA(e)||WA(t)||uie(t))i=XL(t);else if(XA(e)){if(i=e.slice(),XA(t))for(var s=0,a=t.length;s<a;s++)i.push(XL(t[s]));else if(jE(t))for(var o=Object.keys(t),s=0,a=o.length;s<a;s++){var u=o[s];i[u]=XL(t[u]);}}else if(jE(e))if(jE(t)){if(!TZe(e,t))return t;i=Object.assign({},e);for(var o=Object.keys(t),s=0,a=o.length;s<a;s++){var u=o[s],l=t[u];if(WA(l))typeof l>"u"?delete i[u]:i[u]=l;else {var c=i[u],p=l;if(aie(e,u,n)||aie(t,u,n))delete i[u];else {if(jE(c)&&jE(p)){var h=n.get(c)||[],f=n.get(p)||[];h.push({obj:e,key:u}),f.push({obj:t,key:u}),n.set(c,h),n.set(p,f);}i[u]=oie(i[u],l,r,n);}}}}else i=t;return i}}function aie(e,t,r){for(var n=r.get(e[t])||[],i=0,s=n.length;i<s;i++){var a=n[i];if(a.key===t&&a.obj===e)return !0}return !1}function XA(e){return Array.isArray(e)}function uie(e){return typeof e=="function"}function jE(e){return !WA(e)&&!XA(e)&&!uie(e)&&typeof e=="object"}function WA(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function TZe(e,t){return !(!WL(e)||!WL(t))}var SZe,lie=chunkTKGT252T_js.b(()=>{sie();SZe=20;});function cie(e,t){var r,n=new Promise(function(s,a){r=setTimeout(function(){a(new zL("Operation timed out."));},t);});return Promise.race([e,n]).then(function(i){return clearTimeout(r),i},function(i){throw clearTimeout(r),i})}var EZe,zL,pie=chunkTKGT252T_js.b(()=>{EZe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i;}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s]);},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t;}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n);}}(),zL=function(e){EZe(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t}(Error);});function JL(e,t){return typeof t=="string"?e===t:!!e.match(t)}function fie(e,t){var r,n;if(!t)return !1;try{for(var i=bZe(t),s=i.next();!s.done;s=i.next()){var a=s.value;if(JL(e,a))return !0}}catch(o){r={error:o};}finally{try{s&&!s.done&&(n=i.return)&&n.call(i);}finally{if(r)throw r.error}}return !1}var bZe,hie=chunkTKGT252T_js.b(()=>{bZe=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};});function UE(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var die=chunkTKGT252T_js.b(()=>{});var mie,yie=chunkTKGT252T_js.b(()=>{mie=function(){function e(){var t=this;this._promise=new Promise(function(r,n){t._resolve=r,t._reject=n;});}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(t){this._resolve(t);},e.prototype.reject=function(t){this._reject(t);},e}();});var vZe,_Ze,JA,gie=chunkTKGT252T_js.b(()=>{yie();vZe=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},_Ze=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},JA=function(){function e(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new mie;}return Object.defineProperty(e.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),e.prototype.call=function(){for(var t,r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,_Ze([this._that],vZe(n),!1))).then(function(s){return r._deferred.resolve(s)},function(s){return r._deferred.reject(s)});}catch(s){this._deferred.reject(s);}}return this._deferred.promise},e}();});function Sie(e,t){return new Promise(function(r){gr.with(zo(gr.active()),function(){e.export(t,function(n){r(n);});});})}var Tie=chunkTKGT252T_js.b(()=>{pt();_E();});var eo={};chunkTKGT252T_js.d(eo,{AlwaysOffSampler:()=>BE,AlwaysOnSampler:()=>hy,AnchoredClock:()=>WX,BindOnceFuture:()=>JA,CompositePropagator:()=>$A,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Uh,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>jh,DEFAULT_ENVIRONMENT:()=>PE,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>bL,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>vL,ExportResultCode:()=>fy,ParentBasedSampler:()=>Jne,RPCType:()=>YA,RandomIdGenerator:()=>jA,SDK_INFO:()=>Op,TRACE_PARENT_HEADER:()=>kE,TRACE_STATE_HEADER:()=>FE,TimeoutError:()=>zL,TraceIdRatioBasedSampler:()=>Zne,TraceState:()=>qh,TracesSamplerValues:()=>la,VERSION:()=>UA,W3CBaggagePropagator:()=>ty,W3CTraceContextPropagator:()=>KA,_globalThis:()=>LA,addHrTimes:()=>LE,baggageUtils:()=>xZe,callWithTimeout:()=>cie,deleteRPCMetadata:()=>Wne,getEnv:()=>Oa,getEnvWithoutDefaults:()=>ry,getRPCMetadata:()=>Xne,getTimeOrigin:()=>cy,globalErrorHandler:()=>Jo,hexToBase64:()=>FA,hexToBinary:()=>kA,hrTime:()=>RE,hrTimeDuration:()=>GA,hrTimeToMicroseconds:()=>kne,hrTimeToMilliseconds:()=>Lne,hrTimeToNanoseconds:()=>Mne,hrTimeToTimeStamp:()=>Rne,internal:()=>AZe,isAttributeKey:()=>gL,isAttributeValue:()=>AE,isTimeInput:()=>ME,isTimeInputHrTime:()=>py,isTracingSuppressed:()=>qu,isUrlIgnored:()=>fie,isWrapped:()=>UE,loggingErrorHandler:()=>MA,merge:()=>zA,millisToHrTime:()=>Qo,otperformance:()=>Za,parseEnvironment:()=>CE,parseTraceParent:()=>GL,sanitizeAttributes:()=>Ip,setGlobalErrorHandler:()=>ez,setRPCMetadata:()=>Yne,suppressTracing:()=>zo,timeInputToHrTime:()=>Nne,unrefTimer:()=>ly,unsuppressTracing:()=>qX,urlMatches:()=>JL});var xZe,AZe,jn=chunkTKGT252T_js.b(()=>{YX();XX();QX();TL();SL();Fne();xL();Bne();yL();qL();jne();Kne();zne();KL();YL();Qne();eie();_E();HL();_L();lie();EL();pie();hie();die();gie();AL();Tie();xZe={getKeyPairs:RA,serializeKeyPairs:NA,parseKeyPairsIntoRecord:KX,parsePairKeyValue:xE},AZe={_export:Sie};});var Eie=chunkTKGT252T_js.c(qE=>{Object.defineProperty(qE,"__esModule",{value:!0});qE.AttributeNames=void 0;(function(e){e.HTTP_ERROR_NAME="http.error_name",e.HTTP_ERROR_MESSAGE="http.error_message",e.HTTP_STATUS_TEXT="http.status_text";})(qE.AttributeNames||(qE.AttributeNames={}));});var QL=chunkTKGT252T_js.c(Et=>{Object.defineProperty(Et,"__esModule",{value:!0});Et.headerCapture=Et.getIncomingRequestMetricAttributesOnResponse=Et.getIncomingRequestAttributesOnResponse=Et.getIncomingRequestMetricAttributes=Et.getIncomingRequestAttributes=Et.getOutgoingRequestMetricAttributesOnResponse=Et.getOutgoingRequestAttributesOnResponse=Et.setAttributesFromHttpKind=Et.getOutgoingRequestMetricAttributes=Et.getOutgoingRequestAttributes=Et.extractHostnameAndPort=Et.isValidOptionsType=Et.getRequestInfo=Et.isCompressed=Et.setResponseContentLengthAttribute=Et.setRequestContentLengthAttribute=Et.setSpanWithError=Et.isIgnored=Et.satisfiesPattern=Et.parseResponseStatus=Et.getAbsoluteUrl=void 0;var VE=(pt(),chunkTKGT252T_js.f(Gr)),ft=(dn(),chunkTKGT252T_js.f(si)),bie=(jn(),chunkTKGT252T_js.f(eo)),QA=chunkTKGT252T_js.a("url"),ZA=Eie(),CZe=(e,t,r="http:")=>{let n=e||{},i=n.protocol||r,s=(n.port||"").toString(),a=n.path||"/",o=n.host||n.hostname||t.host||"localhost";return o.indexOf(":")===-1&&s&&s!=="80"&&s!=="443"&&(o+=`:${s}`),`${i}//${o}${a}`};Et.getAbsoluteUrl=CZe;var wZe=(e,t)=>{let r=e===VE.SpanKind.CLIENT?400:500;return t&&t>=100&&t<r?VE.SpanStatusCode.UNSET:VE.SpanStatusCode.ERROR};Et.parseResponseStatus=wZe;var IZe=(e,t)=>{if(typeof t=="string")return t===e;if(t instanceof RegExp)return t.test(e);if(typeof t=="function")return t(e);throw new TypeError("Pattern is in unsupported datatype")};Et.satisfiesPattern=IZe;var OZe=(e,t,r)=>{if(!t)return !1;try{for(let n of t)if((0,Et.satisfiesPattern)(e,n))return !0}catch(n){r&&r(n);}return !1};Et.isIgnored=OZe;var DZe=(e,t)=>{let r=t.message;e.setAttribute(ZA.AttributeNames.HTTP_ERROR_NAME,t.name),e.setAttribute(ZA.AttributeNames.HTTP_ERROR_MESSAGE,r),e.setStatus({code:VE.SpanStatusCode.ERROR,message:r}),e.recordException(t);};Et.setSpanWithError=DZe;var NZe=(e,t)=>{let r=vie(e.headers);r!==null&&((0, Et.isCompressed)(e.headers)?t[ft.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH]=r:t[ft.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED]=r);};Et.setRequestContentLengthAttribute=NZe;var RZe=(e,t)=>{let r=vie(e.headers);r!==null&&((0, Et.isCompressed)(e.headers)?t[ft.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH]=r:t[ft.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED]=r);};Et.setResponseContentLengthAttribute=RZe;function vie(e){let t=e["content-length"];if(t===void 0)return null;let r=parseInt(t,10);return isNaN(r)?null:r}var MZe=e=>{let t=e["content-encoding"];return !!t&&t!=="identity"};Et.isCompressed=MZe;var LZe=(e,t)=>{let r="/",n="",i;if(typeof e=="string")i=QA.parse(e),r=i.pathname||"/",n=`${i.protocol||"http:"}//${i.host}`,t!==void 0&&Object.assign(i,t);else if(e instanceof QA.URL)i={protocol:e.protocol,hostname:typeof e.hostname=="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,path:`${e.pathname||""}${e.search||""}`},e.port!==""&&(i.port=Number(e.port)),(e.username||e.password)&&(i.auth=`${e.username}:${e.password}`),r=e.pathname,n=e.origin,t!==void 0&&Object.assign(i,t);else {i=Object.assign({protocol:e.host?"http:":void 0},e),r=e.pathname,!r&&i.path&&(r=QA.parse(i.path).pathname||"/");let a=i.host||(i.port!=null?`${i.hostname}${i.port}`:i.hostname);n=`${i.protocol||"http:"}//${a}`;}let s=i.method?i.method.toUpperCase():"GET";return {origin:n,pathname:r,method:s,optionsParsed:i}};Et.getRequestInfo=LZe;var kZe=e=>{if(!e)return !1;let t=typeof e;return t==="string"||t==="object"&&!Array.isArray(e)};Et.isValidOptionsType=kZe;var FZe=e=>{var t;if(e.hostname&&e.port)return {hostname:e.hostname,port:e.port};let r=((t=e.host)===null||t===void 0?void 0:t.match(/^([^:/ ]+)(:\d{1,5})?/))||null,n=e.hostname||(r===null?"localhost":r[1]),i=e.port;return i||(r&&r[2]?i=r[2].substring(1):i=e.protocol==="https:"?"443":"80"),{hostname:n,port:i}};Et.extractHostnameAndPort=FZe;var BZe=(e,t)=>{var r;let n=t.hostname,i=t.port,s=e.method,a=s?s.toUpperCase():"GET",o=e.headers||{},u=o["user-agent"],l={[ft.SEMATTRS_HTTP_URL]:(0, Et.getAbsoluteUrl)(e,o,`${t.component}:`),[ft.SEMATTRS_HTTP_METHOD]:a,[ft.SEMATTRS_HTTP_TARGET]:e.path||"/",[ft.SEMATTRS_NET_PEER_NAME]:n,[ft.SEMATTRS_HTTP_HOST]:(r=o.host)!==null&&r!==void 0?r:`${n}:${i}`};return u!==void 0&&(l[ft.SEMATTRS_HTTP_USER_AGENT]=u),Object.assign(l,t.hookAttributes)};Et.getOutgoingRequestAttributes=BZe;var jZe=e=>{let t={};return t[ft.SEMATTRS_HTTP_METHOD]=e[ft.SEMATTRS_HTTP_METHOD],t[ft.SEMATTRS_NET_PEER_NAME]=e[ft.SEMATTRS_NET_PEER_NAME],t};Et.getOutgoingRequestMetricAttributes=jZe;var UZe=(e,t)=>{e&&(t[ft.SEMATTRS_HTTP_FLAVOR]=e,e.toUpperCase()!=="QUIC"?t[ft.SEMATTRS_NET_TRANSPORT]=ft.NETTRANSPORTVALUES_IP_TCP:t[ft.SEMATTRS_NET_TRANSPORT]=ft.NETTRANSPORTVALUES_IP_UDP);};Et.setAttributesFromHttpKind=UZe;var qZe=e=>{let{statusCode:t,statusMessage:r,httpVersion:n,socket:i}=e,s={};if(i){let{remoteAddress:a,remotePort:o}=i;s[ft.SEMATTRS_NET_PEER_IP]=a,s[ft.SEMATTRS_NET_PEER_PORT]=o;}return (0, Et.setResponseContentLengthAttribute)(e,s),t&&(s[ft.SEMATTRS_HTTP_STATUS_CODE]=t,s[ZA.AttributeNames.HTTP_STATUS_TEXT]=(r||"").toUpperCase()),(0, Et.setAttributesFromHttpKind)(n,s),s};Et.getOutgoingRequestAttributesOnResponse=qZe;var VZe=e=>{let t={};return t[ft.SEMATTRS_NET_PEER_PORT]=e[ft.SEMATTRS_NET_PEER_PORT],t[ft.SEMATTRS_HTTP_STATUS_CODE]=e[ft.SEMATTRS_HTTP_STATUS_CODE],t[ft.SEMATTRS_HTTP_FLAVOR]=e[ft.SEMATTRS_HTTP_FLAVOR],t};Et.getOutgoingRequestMetricAttributesOnResponse=VZe;var HZe=(e,t)=>{let r=e.headers,n=r["user-agent"],i=r["x-forwarded-for"],s=e.method||"GET",a=e.httpVersion,o=e.url?QA.parse(e.url):null,u=(o==null?void 0:o.host)||r.host,l=(o==null?void 0:o.hostname)||(u==null?void 0:u.replace(/^(.*)(:[0-9]{1,5})/,"$1"))||"localhost",c=t.serverName,p={[ft.SEMATTRS_HTTP_URL]:(0, Et.getAbsoluteUrl)(o,r,`${t.component}:`),[ft.SEMATTRS_HTTP_HOST]:u,[ft.SEMATTRS_NET_HOST_NAME]:l,[ft.SEMATTRS_HTTP_METHOD]:s,[ft.SEMATTRS_HTTP_SCHEME]:t.component};return typeof i=="string"&&(p[ft.SEMATTRS_HTTP_CLIENT_IP]=i.split(",")[0]),typeof c=="string"&&(p[ft.SEMATTRS_HTTP_SERVER_NAME]=c),o&&(p[ft.SEMATTRS_HTTP_TARGET]=o.path||"/"),n!==void 0&&(p[ft.SEMATTRS_HTTP_USER_AGENT]=n),(0, Et.setRequestContentLengthAttribute)(e,p),(0, Et.setAttributesFromHttpKind)(a,p),Object.assign(p,t.hookAttributes)};Et.getIncomingRequestAttributes=HZe;var GZe=e=>{let t={};return t[ft.SEMATTRS_HTTP_SCHEME]=e[ft.SEMATTRS_HTTP_SCHEME],t[ft.SEMATTRS_HTTP_METHOD]=e[ft.SEMATTRS_HTTP_METHOD],t[ft.SEMATTRS_NET_HOST_NAME]=e[ft.SEMATTRS_NET_HOST_NAME],t[ft.SEMATTRS_HTTP_FLAVOR]=e[ft.SEMATTRS_HTTP_FLAVOR],t};Et.getIncomingRequestMetricAttributes=GZe;var $Ze=(e,t)=>{let{socket:r}=e,{statusCode:n,statusMessage:i}=t,s=(0, bie.getRPCMetadata)(VE.context.active()),a={};if(r){let{localAddress:o,localPort:u,remoteAddress:l,remotePort:c}=r;a[ft.SEMATTRS_NET_HOST_IP]=o,a[ft.SEMATTRS_NET_HOST_PORT]=u,a[ft.SEMATTRS_NET_PEER_IP]=l,a[ft.SEMATTRS_NET_PEER_PORT]=c;}return a[ft.SEMATTRS_HTTP_STATUS_CODE]=n,a[ZA.AttributeNames.HTTP_STATUS_TEXT]=(i||"").toUpperCase(),(s==null?void 0:s.type)===bie.RPCType.HTTP&&s.route!==void 0&&(a[ft.SEMATTRS_HTTP_ROUTE]=s.route),a};Et.getIncomingRequestAttributesOnResponse=$Ze;var KZe=e=>{let t={};return t[ft.SEMATTRS_HTTP_STATUS_CODE]=e[ft.SEMATTRS_HTTP_STATUS_CODE],t[ft.SEMATTRS_NET_HOST_PORT]=e[ft.SEMATTRS_NET_HOST_PORT],e[ft.SEMATTRS_HTTP_ROUTE]!==void 0&&(t[ft.SEMATTRS_HTTP_ROUTE]=e[ft.SEMATTRS_HTTP_ROUTE]),t};Et.getIncomingRequestMetricAttributesOnResponse=KZe;function YZe(e,t){let r=new Map;for(let n=0,i=t.length;n<i;n++){let s=t[n].toLowerCase();r.set(s,s.replace(/-/g,"_"));}return (n,i)=>{for(let s of r.keys()){let a=i(s);if(a===void 0)continue;let o=r.get(s),u=`http.${e}.header.${o}`;typeof a=="string"?n.setAttribute(u,[a]):Array.isArray(a)?n.setAttribute(u,a):n.setAttribute(u,[a]);}}}Et.headerCapture=YZe;});var _ie=chunkTKGT252T_js.c(eP=>{Object.defineProperty(eP,"__esModule",{value:!0});eP.VERSION=void 0;eP.VERSION="0.53.0";});var ZL,xie=chunkTKGT252T_js.b(()=>{ZL=function(){function e(){}return e.prototype.emit=function(t){},e}(),new ZL;});var WZe,ek,Aie=chunkTKGT252T_js.b(()=>{xie();WZe=function(){function e(){}return e.prototype.getLogger=function(t,r,n){return new ZL},e}(),ek=new WZe;});var tP,Pie=chunkTKGT252T_js.b(()=>{tP=typeof globalThis=="object"?globalThis:global;});var Cie=chunkTKGT252T_js.b(()=>{Pie();});var wie=chunkTKGT252T_js.b(()=>{Cie();});function Iie(e,t,r){return function(n){return n===e?t:r}}var HE,dy,tk,Oie=chunkTKGT252T_js.b(()=>{wie();HE=Symbol.for("io.opentelemetry.js.api.logs"),dy=tP;tk=1;});var Die,Nie=chunkTKGT252T_js.b(()=>{Oie();Aie();Die=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalLoggerProvider=function(t){return dy[HE]?this.getLoggerProvider():(dy[HE]=Iie(tk,t,ek),t)},e.prototype.getLoggerProvider=function(){var t,r;return (r=(t=dy[HE])===null||t===void 0?void 0:t.call(dy,tk))!==null&&r!==void 0?r:ek},e.prototype.getLogger=function(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)},e.prototype.disable=function(){delete dy[HE];},e}();});var rP,rk=chunkTKGT252T_js.b(()=>{Nie();rP=Die.getInstance();});function Rie(e,t,r,n){for(var i=0,s=e.length;i<s;i++){var a=e[i];t&&a.setTracerProvider(t),r&&a.setMeterProvider(r),n&&a.setLoggerProvider&&a.setLoggerProvider(n),a.getConfig().enabled||a.enable();}}function Mie(e){e.forEach(function(t){return t.disable()});}var Lie=chunkTKGT252T_js.b(()=>{});function nP(e){var t,r,n=e.tracerProvider||qt.getTracerProvider(),i=e.meterProvider||Bh.getMeterProvider(),s=e.loggerProvider||rP.getLoggerProvider(),a=(r=(t=e.instrumentations)===null||t===void 0?void 0:t.flat())!==null&&r!==void 0?r:[];return Rie(a,n,i,s),function(){Mie(a);}}var kie=chunkTKGT252T_js.b(()=>{pt();rk();Lie();});var ik=chunkTKGT252T_js.c((w4r,jie)=>{function nk(e){return typeof e=="function"}var Ps=console.error.bind(console);function GE(e,t,r){var n=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r});}function $E(e){e&&e.logger&&(nk(e.logger)?Ps=e.logger:Ps("new logger isn't a function, not replacing"));}function Fie(e,t,r){if(!e||!e[t]){Ps("no original function "+t+" to wrap");return}if(!r){Ps("no wrapper function"),Ps(new Error().stack);return}if(!nk(e[t])||!nk(r)){Ps("original object and wrapper must be functions");return}var n=e[t],i=r(n,t);return GE(i,"__original",n),GE(i,"__unwrap",function(){e[t]===i&&GE(e,t,n);}),GE(i,"__wrapped",!0),GE(e,t,i),i}function XZe(e,t,r){if(e)Array.isArray(e)||(e=[e]);else {Ps("must provide one or more modules to patch"),Ps(new Error().stack);return}if(!(t&&Array.isArray(t))){Ps("must provide one or more functions to wrap on modules");return}e.forEach(function(n){t.forEach(function(i){Fie(n,i,r);});});}function Bie(e,t){if(!e||!e[t]){Ps("no function to unwrap."),Ps(new Error().stack);return}if(!e[t].__unwrap)Ps("no original to unwrap to -- has "+t+" already been unwrapped?");else return e[t].__unwrap()}function zZe(e,t){if(e)Array.isArray(e)||(e=[e]);else {Ps("must provide one or more modules to patch"),Ps(new Error().stack);return}if(!(t&&Array.isArray(t))){Ps("must provide one or more functions to unwrap on modules");return}e.forEach(function(r){t.forEach(function(n){Bie(r,n);});});}$E.wrap=Fie;$E.massWrap=XZe;$E.unwrap=Bie;$E.massUnwrap=zZe;jie.exports=$E;});var Dp,sk,Uie,qie=chunkTKGT252T_js.b(()=>{pt();rk();Dp=chunkTKGT252T_js.e(ik()),sk=function(){return sk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);}return e},sk.apply(this,arguments)},Uie=function(){function e(t,r,n){this.instrumentationName=t,this.instrumentationVersion=r,this._config={},this._wrap=Dp.wrap,this._unwrap=Dp.unwrap,this._massWrap=Dp.massWrap,this._massUnwrap=Dp.massUnwrap,this.setConfig(n),this._diag=_t.createComponentLogger({namespace:t}),this._tracer=qt.getTracer(t,r),this._meter=Bh.getMeter(t,r),this._logger=rP.getLogger(t,r),this._updateMetricInstruments();}return Object.defineProperty(e.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),e.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments();},Object.defineProperty(e.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),e.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion);},e.prototype.getModuleDefinitions=function(){var t,r=(t=this.init())!==null&&t!==void 0?t:[];return Array.isArray(r)?r:[r]},e.prototype._updateMetricInstruments=function(){},e.prototype.getConfig=function(){return this._config},e.prototype.setConfig=function(t){this._config=sk({enabled:!0},t);},e.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion);},Object.defineProperty(e.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),e.prototype._runSpanCustomizationHook=function(t,r,n,i){if(t)try{t(n,i);}catch(s){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},s);}},e}();});var Hie=chunkTKGT252T_js.c((N4r,Vie)=>{var my=1e3,yy=my*60,gy=yy*60,Hh=gy*24,JZe=Hh*7,QZe=Hh*365.25;Vie.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return ZZe(e);if(r==="number"&&isFinite(e))return t.long?tet(e):eet(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ZZe(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*QZe;case"weeks":case"week":case"w":return r*JZe;case"days":case"day":case"d":return r*Hh;case"hours":case"hour":case"hrs":case"hr":case"h":return r*gy;case"minutes":case"minute":case"mins":case"min":case"m":return r*yy;case"seconds":case"second":case"secs":case"sec":case"s":return r*my;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function eet(e){var t=Math.abs(e);return t>=Hh?Math.round(e/Hh)+"d":t>=gy?Math.round(e/gy)+"h":t>=yy?Math.round(e/yy)+"m":t>=my?Math.round(e/my)+"s":e+"ms"}function tet(e){var t=Math.abs(e);return t>=Hh?iP(e,t,Hh,"day"):t>=gy?iP(e,t,gy,"hour"):t>=yy?iP(e,t,yy,"minute"):t>=my?iP(e,t,my,"second"):e+" ms"}function iP(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var ak=chunkTKGT252T_js.c((R4r,Gie)=>{function ret(e){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=a,r.humanize=Hie(),r.destroy=l,Object.keys(e).forEach(c=>{r[c]=e[c];}),r.names=[],r.skips=[],r.formatters={};function t(c){let p=0;for(let h=0;h<c.length;h++)p=(p<<5)-p+c.charCodeAt(h),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(c){let p,h=null,f,d;function m(...y){if(!m.enabled)return;let g=m,v=Number(new Date),E=v-(p||v);g.diff=E,g.prev=p,g.curr=v,p=v,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let S=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(b,A)=>{if(b==="%%")return "%";S++;let D=r.formatters[A];if(typeof D=="function"){let P=y[S];b=D.call(g,P),y.splice(S,1),S--;}return b}),r.formatArgs.call(g,y),(g.log||r.log).apply(g,y);}return m.namespace=c,m.useColors=r.useColors(),m.color=r.selectColor(c),m.extend=n,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(f!==r.namespaces&&(f=r.namespaces,d=r.enabled(c)),d),set:y=>{h=y;}}),typeof r.init=="function"&&r.init(m),m}function n(c,p){let h=r(this.namespace+(typeof p>"u"?":":p)+c);return h.log=this.log,h}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,h=(typeof c=="string"?c:"").split(/[\s,]+/),f=h.length;for(p=0;p<f;p++)h[p]&&(c=h[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")));}function s(){let c=[...r.names.map(o),...r.skips.map(o).map(p=>"-"+p)].join(",");return r.enable(""),c}function a(c){if(c[c.length-1]==="*")return !0;let p,h;for(p=0,h=r.skips.length;p<h;p++)if(r.skips[p].test(c))return !1;for(p=0,h=r.names.length;p<h;p++)if(r.names[p].test(c))return !0;return !1}function o(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return r.enable(r.load()),r}Gie.exports=ret;});var $ie=chunkTKGT252T_js.c((Da,sP)=>{Da.formatArgs=iet;Da.save=set;Da.load=aet;Da.useColors=net;Da.storage=oet();Da.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})();Da.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function net(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return !0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return !1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function iet(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+sP.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r));}),e.splice(n,0,t);}Da.log=console.debug||console.log||(()=>{});function set(e){try{e?Da.storage.setItem("debug",e):Da.storage.removeItem("debug");}catch{}}function aet(){let e;try{e=Da.storage.getItem("debug");}catch{}return !e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function oet(){try{return localStorage}catch{}}sP.exports=ak()(Da);var{formatters:uet}=sP.exports;uet.j=function(e){try{return JSON.stringify(e)}catch(t){return "[UnexpectedJSONParseError]: "+t.message}};});var Yie=chunkTKGT252T_js.c((Mi,oP)=>{var cet=chunkTKGT252T_js.a("tty"),aP=chunkTKGT252T_js.a("util");Mi.init=get;Mi.log=det;Mi.formatArgs=fet;Mi.save=met;Mi.load=yet;Mi.useColors=pet;Mi.destroy=aP.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Mi.colors=[6,2,3,4,5,1];try{let e=chunkF6FLWRPJ_js.B();e&&(e.stderr||e).level>=2&&(Mi.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]);}catch{}Mi.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[t];return /^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function pet(){return "colors"in Mi.inspectOpts?!!Mi.inspectOpts.colors:cet.isatty(process.stderr.fd)}function fet(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
`).join(`
`+s),e.push(i+"m+"+oP.exports.humanize(this.diff)+"\x1B[0m");}else e[0]=het()+t+" "+e[0];}function het(){return Mi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function det(...e){return process.stderr.write(aP.formatWithOptions(Mi.inspectOpts,...e)+`
`)}function met(e){e?process.env.DEBUG=e:delete process.env.DEBUG;}function yet(){return process.env.DEBUG}function get(e){e.inspectOpts={};let t=Object.keys(Mi.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Mi.inspectOpts[t[r]];}oP.exports=ak()(Mi);var{formatters:Kie}=oP.exports;Kie.o=function(e){return this.inspectOpts.colors=this.useColors,aP.inspect(e,this.inspectOpts).split(`
`).map(t=>t.trim()).join(" ")};Kie.O=function(e){return this.inspectOpts.colors=this.useColors,aP.inspect(e,this.inspectOpts)};});var Wie=chunkTKGT252T_js.c((M4r,ok)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ok.exports=$ie():ok.exports=Yie();});var lk=chunkTKGT252T_js.c((L4r,Xie)=>{var uk=chunkTKGT252T_js.a("path");Xie.exports=function(e){var t=e.split(uk.sep),r=t.lastIndexOf("node_modules");if(r!==-1&&t[r+1]){var n=t[r+1][0]==="@",i=n?t[r+1]+"/"+t[r+2]:t[r+1],s=n?3:2;return {name:i,basedir:t.slice(0,r+s).join(uk.sep),path:t.slice(r+s).join(uk.sep)}}};});var zie=chunkTKGT252T_js.c((k4r,Tet)=>{Tet.exports={name:"require-in-the-middle",version:"7.4.0",description:"Module to hook into the Node.js require function",main:"index.js",types:"types/index.d.ts",dependencies:{debug:"^4.3.5","module-details-from-path":"^1.0.3",resolve:"^1.22.8"},devDependencies:{"@babel/core":"^7.9.0","@babel/preset-env":"^7.9.5","@babel/preset-typescript":"^7.9.0","@babel/register":"^7.9.0","ipp-printer":"^1.0.0",patterns:"^1.0.3",roundround:"^0.2.0",semver:"^6.3.0",standard:"^14.3.1",tape:"^4.11.0"},scripts:{test:"npm run test:lint && npm run test:tape && npm run test:babel","test:lint":"standard","test:tape":"tape test/*.js","test:babel":"node test/babel/babel-register.js"},repository:{type:"git",url:"git+https://github.com/elastic/require-in-the-middle.git"},keywords:["require","hook","shim","shimmer","shimming","patch","monkey","monkeypatch","module","load"],files:["types"],author:"Thomas Watson Steen <w@tson.dk> (https://twitter.com/wa7son)",license:"MIT",bugs:{url:"https://github.com/elastic/require-in-the-middle/issues"},homepage:"https://github.com/elastic/require-in-the-middle#readme",engines:{node:">=8.6.0"}};});var hk=chunkTKGT252T_js.c((F4r,fk)=>{var Sy=chunkTKGT252T_js.a("path"),Ul=chunkTKGT252T_js.a("module"),ck=chunkF6FLWRPJ_js.o(),ai=Wie()("require-in-the-middle"),Eet=lk();fk.exports=YE;fk.exports.Hook=YE;var KE;if(Ul.isBuiltin)KE=Ul.isBuiltin;else {let[e,t]=process.versions.node.split(".").map(Number);e===8&&t<8?KE=r=>r==="http2"?!0:!!ck.core[r]:KE=r=>!!ck.core[r];}var bet=/([/\\]index)?(\.js)?$/,pk=class{constructor(){this._localCache=new Map,this._kRitmExports=Symbol("RitmExports");}has(t,r){if(this._localCache.has(t))return !0;if(r)return !1;{let n=chunkTKGT252T_js.a.cache[t];return !!(n&&this._kRitmExports in n)}}get(t,r){let n=this._localCache.get(t);if(n!==void 0)return n;if(!r){let i=chunkTKGT252T_js.a.cache[t];return i&&i[this._kRitmExports]}}set(t,r,n){n?this._localCache.set(t,r):t in chunkTKGT252T_js.a.cache?chunkTKGT252T_js.a.cache[t][this._kRitmExports]=r:(ai('non-core module is unexpectedly not in require.cache: "%s"',t),this._localCache.set(t,r));}};function YE(e,t,r){if(!(this instanceof YE))return new YE(e,t,r);if(typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),typeof Ul._resolveFilename!="function"){console.error("Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!",typeof Ul._resolveFilename),console.error("Please report this error as an issue related to Node.js %s at %s",process.version,zie().bugs.url);return}this._cache=new pk,this._unhooked=!1,this._origRequire=Ul.prototype.require;let n=this,i=new Set,s=t?t.internals===!0:!1,a=Array.isArray(e);ai("registering require hook"),this._require=Ul.prototype.require=function(u){return n._unhooked===!0?(ai("ignoring require call - module is soft-unhooked"),n._origRequire.apply(this,arguments)):o.call(this,arguments,!1)},typeof process.getBuiltinModule=="function"&&(this._origGetBuiltinModule=process.getBuiltinModule,this._getBuiltinModule=process.getBuiltinModule=function(u){return n._unhooked===!0?(ai("ignoring process.getBuiltinModule call - module is soft-unhooked"),n._origGetBuiltinModule.apply(this,arguments)):o.call(this,arguments,!0)});function o(u,l){let c=u[0],p=KE(c),h;if(p){if(h=c,c.startsWith("node:")){let v=c.slice(5);KE(v)&&(h=v);}}else {if(l)return ai("call to process.getBuiltinModule with unknown built-in id"),n._origGetBuiltinModule.apply(this,u);try{h=Ul._resolveFilename(c,this);}catch(v){return ai('Module._resolveFilename("%s") threw %j, calling original Module.require',c,v.message),n._origRequire.apply(this,u)}}let f,d;if(ai("processing %s module require('%s'): %s",p===!0?"core":"non-core",c,h),n._cache.has(h,p)===!0)return ai("returning already patched cached module: %s",h),n._cache.get(h,p);let m=i.has(h);m===!1&&i.add(h);let y=l?n._origGetBuiltinModule.apply(this,u):n._origRequire.apply(this,u);if(m===!0)return ai("module is in the process of being patched already - ignoring: %s",h),y;if(i.delete(h),p===!0){if(a===!0&&e.includes(h)===!1)return ai("ignoring core module not on whitelist: %s",h),y;f=h;}else if(a===!0&&e.includes(h)){let v=Sy.parse(h);f=v.name,d=v.dir;}else {let v=Eet(h);if(v===void 0)return ai("could not parse filename: %s",h),y;f=v.name,d=v.basedir;let E=vet(v);ai("resolved filename to module: %s (id: %s, resolved: %s, basedir: %s)",f,c,E,d);let S=!1;if(a){if(!c.startsWith(".")&&e.includes(c)&&(f=c,S=!0),!e.includes(f)&&!e.includes(E))return y;e.includes(E)&&E!==f&&(f=E,S=!0);}if(!S){let x;try{x=ck.sync(f,{basedir:d});}catch{return ai("could not resolve module: %s",f),n._cache.set(h,y,p),y}if(x!==h)if(s===!0)f=f+Sy.sep+Sy.relative(d,h),ai("preparing to process require of internal file: %s",f);else return ai("ignoring require of non-main module file: %s",x),n._cache.set(h,y,p),y}}n._cache.set(h,y,p),ai("calling require hook: %s",f);let g=r(y,f,d);return n._cache.set(h,g,p),ai("returning module: %s",f),g}}YE.prototype.unhook=function(){this._unhooked=!0,this._require===Ul.prototype.require?(Ul.prototype.require=this._origRequire,ai("require unhook successful")):ai("require unhook unsuccessful"),process.getBuiltinModule!==void 0&&(this._getBuiltinModule===process.getBuiltinModule?(process.getBuiltinModule=this._origGetBuiltinModule,ai("process.getBuiltinModule unhook successful")):ai("process.getBuiltinModule unhook unsuccessful"));};function vet(e){let t=Sy.sep!=="/"?e.path.split(Sy.sep).join("/"):e.path;return Sy.posix.join(e.name,t).replace(bet,"")}});var Jie,Qie,Zie,WE,ese,tse,rse=chunkTKGT252T_js.b(()=>{Jie=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Qie=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},Zie=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},WE="/",ese=function(){function e(){this.hooks=[],this.children=new Map;}return e}(),tse=function(){function e(){this._trie=new ese,this._counter=0;}return e.prototype.insert=function(t){var r,n,i=this._trie;try{for(var s=Jie(t.moduleName.split(WE)),a=s.next();!a.done;a=s.next()){var o=a.value,u=i.children.get(o);u||(u=new ese,i.children.set(o,u)),i=u;}}catch(l){r={error:l};}finally{try{a&&!a.done&&(n=s.return)&&n.call(s);}finally{if(r)throw r.error}}i.hooks.push({hook:t,insertedId:this._counter++});},e.prototype.search=function(t,r){var n,i,s=r===void 0?{}:r,a=s.maintainInsertionOrder,o=s.fullOnly,u=this._trie,l=[],c=!0;try{for(var p=Jie(t.split(WE)),h=p.next();!h.done;h=p.next()){var f=h.value,d=u.children.get(f);if(!d){c=!1;break}o||l.push.apply(l,Zie([],Qie(d.hooks),!1)),u=d;}}catch(m){n={error:m};}finally{try{h&&!h.done&&(i=p.return)&&i.call(p);}finally{if(n)throw n.error}}return o&&c&&l.push.apply(l,Zie([],Qie(u.hooks),!1)),l.length===0?[]:l.length===1?[l[0].hook]:(a&&l.sort(function(m,y){return m.insertedId-y.insertedId}),l.map(function(m){var y=m.hook;return y}))},e}();});function Aet(e){return ux__namespace.sep!==WE?e.split(ux__namespace.sep).join(WE):e}var nse,_et,xet,ise,sse=chunkTKGT252T_js.b(()=>{nse=chunkTKGT252T_js.e(hk());rse();_et=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xet=["afterEach","after","beforeEach","before","describe","it"].every(function(e){return typeof global[e]=="function"}),ise=function(){function e(){this._moduleNameTrie=new tse,this._initialize();}return e.prototype._initialize=function(){var t=this;new nse.Hook(null,{internals:!0},function(r,n,i){var s,a,o=Aet(n),u=t._moduleNameTrie.search(o,{maintainInsertionOrder:!0,fullOnly:i===void 0});try{for(var l=_et(u),c=l.next();!c.done;c=l.next()){var p=c.value.onRequire;r=p(r,n,i);}}catch(h){s={error:h};}finally{try{c&&!c.done&&(a=l.return)&&a.call(l);}finally{if(s)throw s.error}}return r});},e.prototype.register=function(t,r){var n={moduleName:t,onRequire:r};return this._moduleNameTrie.insert(n),n},e.getInstance=function(){var t;return xet?new e:this._instance=(t=this._instance)!==null&&t!==void 0?t:new e},e}();});var lse=chunkTKGT252T_js.c(XE=>{var ase=[],mk=new WeakMap,ose=new Map,use=[],Pet={set(e,t,r){return mk.get(e)[t](r)},defineProperty(e,t,r){if(!("value"in r))throw new Error("Getters/setters are not supported for exports property descriptors.");return mk.get(e)[t](r.value)}};function Cet(e,t,r,n){ose.set(e,n),mk.set(t,r);let i=new Proxy(t,Pet);ase.forEach(s=>s(e,i)),use.push([e,i]);}XE.register=Cet;XE.importHooks=ase;XE.specifiers=ose;XE.toHook=use;});var Sk=chunkTKGT252T_js.c((H4r,Ty)=>{var cse=chunkTKGT252T_js.a("path"),wet=lk(),{fileURLToPath:pse}=chunkTKGT252T_js.a("url"),{MessageChannel:Iet}=chunkTKGT252T_js.a("worker_threads"),{importHooks:yk,specifiers:Oet,toHook:Det}=lse();function hse(e){yk.push(e),Det.forEach(([t,r])=>e(t,r));}function dse(e){let t=yk.indexOf(e);t>-1&&yk.splice(t,1);}function fse(e,t,r,n){let i=e(t,r,n);i&&i!==t&&(t.default=i);}var gk;function Net(){let{port1:e,port2:t}=new Iet,r=0,n;gk=o=>{r++,e.postMessage(o);},e.on("message",()=>{r--,n&&r<=0&&n();}).unref();function i(){let o=setInterval(()=>{},1e3),u=new Promise(l=>{n=l;}).then(()=>{clearInterval(o);});return r===0&&n(),u}let s=t;return {registerOptions:{data:{addHookMessagePort:s,include:[]},transferList:[s]},addHookMessagePort:s,waitForAllMessagesAcknowledged:i}}function zE(e,t,r){if(!(this instanceof zE))return new zE(e,t,r);typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null);let n=t?t.internals===!0:!1;gk&&Array.isArray(e)&&gk(e),this._iitmHook=(i,s)=>{let a=i,o=i.startsWith("node:"),u;if(o)i=i.replace(/^node:/,"");else {if(i.startsWith("file://"))try{i=pse(i);}catch{}let l=wet(i);l&&(i=l.name,u=l.basedir);}if(e){for(let l of e)if(l===i){if(u){if(n)i=i+cse.sep+cse.relative(u,pse(a));else if(!u.endsWith(Oet.get(a)))continue}fse(r,s,i,u);}}else fse(r,s,i,u);},hse(this._iitmHook);}zE.prototype.unhook=function(){dse(this._iitmHook);};Ty.exports=zE;Ty.exports.Hook=zE;Ty.exports.addHook=hse;Ty.exports.removeHook=dse;Ty.exports.createAddHookMessageChannel=Net;});function mse(e,t,r){var n,i;try{i=e();}catch(s){n=s;}finally{if(t(n,i),n&&!r)throw n;return i}}function yse(e,t,r){return Ret(this,void 0,void 0,function(){var n,i,s;return Met(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),[4,e()];case 1:return i=a.sent(),[3,4];case 2:return s=a.sent(),n=s,[3,4];case 3:if(t(n,i),n&&!r)throw n;return [2,i];case 4:return [2]}})})}function uP(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var Ret,Met,Tk=chunkTKGT252T_js.b(()=>{Ret=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s);})}return new(r||(r=Promise))(function(s,a){function o(c){try{l(n.next(c));}catch(p){a(p);}}function u(c){try{l(n.throw(c));}catch(p){a(p);}}function l(c){c.done?s(c.value):i(c.value).then(o,u);}l((n=n.apply(e,t||[])).next());})},Met=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){r.label=l[1];break}if(l[0]===6&&r.label<s[1]){r.label=s[1],s=l;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(l);break}s[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r);}catch(c){l=[6,c],i=0;}finally{n=s=0;}if(l[0]&5)throw l[1];return {value:l[0]?l[1]:void 0,done:!0}}};});function Sse(e,t,r){return typeof t>"u"?e.includes("*"):e.some(function(n){return (0, Tse.satisfies)(t,n,{includePrerelease:r})})}var Tse,QE,Ese,bse,Let,JE,by,vse=chunkTKGT252T_js.b(()=>{Tse=chunkTKGT252T_js.e(chunkHZVCNUTP_js.a()),QE=chunkTKGT252T_js.e(ik());qie();sse();Ese=chunkTKGT252T_js.e(Sk());pt();bse=chunkTKGT252T_js.e(hk());Tk();Let=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i;}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s]);},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t;}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n);}}(),JE=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},by=function(e){Let(t,e);function t(r,n,i){var s=e.call(this,r,n,i)||this;s._hooks=[],s._requireInTheMiddleSingleton=ise.getInstance(),s._enabled=!1,s._wrap=function(o,u,l){if(uP(o[u])&&s._unwrap(o,u),Doe.types.isProxy(o)){var c=(0, QE.wrap)(Object.assign({},o),u,l);return Object.defineProperty(o,u,{value:c}),c}else return (0, QE.wrap)(o,u,l)},s._unwrap=function(o,u){return Doe.types.isProxy(o)?Object.defineProperty(o,u,{value:o[u]}):(0, QE.unwrap)(o,u)},s._massWrap=function(o,u,l){if(o)Array.isArray(o)||(o=[o]);else {_t.error("must provide one or more modules to patch");return}if(!(u&&Array.isArray(u))){_t.error("must provide one or more functions to wrap on modules");return}o.forEach(function(c){u.forEach(function(p){s._wrap(c,p,l);});});},s._massUnwrap=function(o,u){if(o)Array.isArray(o)||(o=[o]);else {_t.error("must provide one or more modules to patch");return}if(!(u&&Array.isArray(u))){_t.error("must provide one or more functions to wrap on modules");return}o.forEach(function(l){u.forEach(function(c){s._unwrap(l,c);});});};var a=s.init();return a&&!Array.isArray(a)&&(a=[a]),s._modules=a||[],s._config.enabled&&s.enable(),s}return t.prototype._warnOnPreloadedModules=function(){var r=this;this._modules.forEach(function(n){var i=n.name;try{var s=chunkTKGT252T_js.a.resolve(i);chunkTKGT252T_js.a.cache[s]&&r._diag.warn("Module "+i+" has been loaded before "+r.instrumentationName+" so it might not work, please initialize it before requiring "+i);}catch{}});},t.prototype._extractPackageVersion=function(r){try{var n=fs$1.readFileSync(ux__namespace.join(r,"package.json"),{encoding:"utf8"}),i=JSON.parse(n).version;return typeof i=="string"?i:void 0}catch{_t.warn("Failed extracting version",r);}},t.prototype._onRequire=function(r,n,i,s){var a=this,o;if(!s)return typeof r.patch=="function"&&(r.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for nodejs core module on require hook",{module:r.name}),r.patch(n)):n;var u=this._extractPackageVersion(s);if(r.moduleVersion=u,r.name===i)return Sse(r.supportedVersions,u,r.includePrerelease)&&typeof r.patch=="function"&&(r.moduleExports=n,this._enabled)?(this._diag.debug("Applying instrumentation patch for module on require hook",{module:r.name,version:r.moduleVersion,baseDir:s}),r.patch(n,r.moduleVersion)):n;var l=(o=r.files)!==null&&o!==void 0?o:[],c=ux__namespace.normalize(i),p=l.filter(function(h){return h.name===c}).filter(function(h){return Sse(h.supportedVersions,u,r.includePrerelease)});return p.reduce(function(h,f){return f.moduleExports=h,a._enabled?(a._diag.debug("Applying instrumentation patch for nodejs module file on require hook",{module:r.name,version:r.moduleVersion,fileName:f.name,baseDir:s}),f.patch(h,r.moduleVersion)):h},n)},t.prototype.enable=function(){var r,n,i,s,a,o,u=this;if(!this._enabled){if(this._enabled=!0,this._hooks.length>0){try{for(var l=JE(this._modules),c=l.next();!c.done;c=l.next()){var p=c.value;typeof p.patch=="function"&&p.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module on instrumentation enabled",{module:p.name,version:p.moduleVersion}),p.patch(p.moduleExports,p.moduleVersion));try{for(var h=(i=void 0,JE(p.files)),f=h.next();!f.done;f=h.next()){var d=f.value;d.moduleExports&&(this._diag.debug("Applying instrumentation patch for nodejs module file on instrumentation enabled",{module:p.name,version:p.moduleVersion,fileName:d.name}),d.patch(d.moduleExports,p.moduleVersion));}}catch(S){i={error:S};}finally{try{f&&!f.done&&(s=h.return)&&s.call(h);}finally{if(i)throw i.error}}}}catch(S){r={error:S};}finally{try{c&&!c.done&&(n=l.return)&&n.call(l);}finally{if(r)throw r.error}}return}this._warnOnPreloadedModules();var m=function(S){var x=function(P,V,X){return u._onRequire(S,P,V,X)},b=function(P,V,X){return u._onRequire(S,P,V,X)},A=ux__namespace.isAbsolute(S.name)?new bse.Hook([S.name],{internals:!0},b):y._requireInTheMiddleSingleton.register(S.name,b);y._hooks.push(A);var D=new Ese.Hook([S.name],{internals:!1},x);y._hooks.push(D);},y=this;try{for(var g=JE(this._modules),v=g.next();!v.done;v=g.next()){var E=v.value;m(E);}}catch(S){a={error:S};}finally{try{v&&!v.done&&(o=g.return)&&o.call(g);}finally{if(a)throw a.error}}}},t.prototype.disable=function(){var r,n,i,s;if(this._enabled){this._enabled=!1;try{for(var a=JE(this._modules),o=a.next();!o.done;o=a.next()){var u=o.value;typeof u.unpatch=="function"&&u.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module on instrumentation disabled",{module:u.name,version:u.moduleVersion}),u.unpatch(u.moduleExports,u.moduleVersion));try{for(var l=(i=void 0,JE(u.files)),c=l.next();!c.done;c=l.next()){var p=c.value;p.moduleExports&&(this._diag.debug("Removing instrumentation patch for nodejs module file on instrumentation disabled",{module:u.name,version:u.moduleVersion,fileName:p.name}),p.unpatch(p.moduleExports,u.moduleVersion));}}catch(h){i={error:h};}finally{try{c&&!c.done&&(s=l.return)&&s.call(l);}finally{if(i)throw i.error}}}}catch(h){r={error:h};}finally{try{o&&!o.done&&(n=a.return)&&n.call(a);}finally{if(r)throw r.error}}}},t.prototype.isEnabled=function(){return this._enabled},t}(Uie);});var _se=chunkTKGT252T_js.b(()=>{});var xse=chunkTKGT252T_js.b(()=>{vse();_se();});var Ek=chunkTKGT252T_js.b(()=>{xse();});var cP,Ase=chunkTKGT252T_js.b(()=>{cP=function(){function e(t,r,n,i,s){this.name=t,this.supportedVersions=r,this.patch=n,this.unpatch=i,this.files=s||[];}return e}();});var ZE,Pse=chunkTKGT252T_js.b(()=>{Ek();ZE=function(){function e(t,r,n,i){this.supportedVersions=r,this.patch=n,this.unpatch=i,this.name=ux.normalize(t);}return e}();});var zn={};chunkTKGT252T_js.d(zn,{InstrumentationBase:()=>by,InstrumentationNodeModuleDefinition:()=>cP,InstrumentationNodeModuleFile:()=>ZE,isWrapped:()=>uP,registerInstrumentations:()=>nP,safeExecuteInTheMiddle:()=>mse,safeExecuteInTheMiddleAsync:()=>yse});var Rn=chunkTKGT252T_js.b(()=>{kie();Ek();Ase();Pse();Tk();});var Ose=chunkTKGT252T_js.c(pP=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.HttpInstrumentation=void 0;var kt=(pt(),chunkTKGT252T_js.f(Gr)),vy=(jn(),chunkTKGT252T_js.f(eo)),Cse=chunkHZVCNUTP_js.a(),wse=chunkTKGT252T_js.a("url"),Mn=QL(),Fet=_ie(),to=(Rn(),chunkTKGT252T_js.f(zn)),Ise=(jn(),chunkTKGT252T_js.f(eo)),bk=chunkTKGT252T_js.a("events"),Bet=(dn(),chunkTKGT252T_js.f(si)),vk=class extends to.InstrumentationBase{constructor(t={}){super("@opentelemetry/instrumentation-http",Fet.VERSION,t),this._spanNotEnded=new WeakSet,this._headerCapture=this._createHeaderCapture();}_updateMetricInstruments(){this._httpServerDurationHistogram=this.meter.createHistogram("http.server.duration",{description:"Measures the duration of inbound HTTP requests.",unit:"ms",valueType:kt.ValueType.DOUBLE}),this._httpClientDurationHistogram=this.meter.createHistogram("http.client.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"ms",valueType:kt.ValueType.DOUBLE});}setConfig(t={}){super.setConfig(t),this._headerCapture=this._createHeaderCapture();}init(){return [this._getHttpsInstrumentation(),this._getHttpInstrumentation()]}_getHttpInstrumentation(){return new to.InstrumentationNodeModuleDefinition("http",["*"],t=>{if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(t,"request",this._getPatchOutgoingRequestFunction("http"));this._wrap(t,"get",this._getPatchOutgoingGetFunction(r));}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(t.Server.prototype,"emit",this._getPatchIncomingRequestFunction("http")),t},t=>{t!==void 0&&(this.getConfig().disableOutgoingRequestInstrumentation||(this._unwrap(t,"request"),this._unwrap(t,"get")),this.getConfig().disableIncomingRequestInstrumentation||this._unwrap(t.Server.prototype,"emit"));})}_getHttpsInstrumentation(){return new to.InstrumentationNodeModuleDefinition("https",["*"],t=>{if(!this.getConfig().disableOutgoingRequestInstrumentation){let r=this._wrap(t,"request",this._getPatchHttpsOutgoingRequestFunction("https"));this._wrap(t,"get",this._getPatchHttpsOutgoingGetFunction(r));}return this.getConfig().disableIncomingRequestInstrumentation||this._wrap(t.Server.prototype,"emit",this._getPatchIncomingRequestFunction("https")),t},t=>{t!==void 0&&(this.getConfig().disableOutgoingRequestInstrumentation||(this._unwrap(t,"request"),this._unwrap(t,"get")),this.getConfig().disableIncomingRequestInstrumentation||this._unwrap(t.Server.prototype,"emit"));})}_getPatchIncomingRequestFunction(t){return r=>this._incomingRequestFunction(t,r)}_getPatchOutgoingRequestFunction(t){return r=>this._outgoingRequestFunction(t,r)}_getPatchOutgoingGetFunction(t){return r=>function(i,...s){let a=t(i,...s);return a.end(),a}}_getPatchHttpsOutgoingRequestFunction(t){return r=>{let n=this;return function(s,...a){var o;return t==="https"&&typeof s=="object"&&((o=s==null?void 0:s.constructor)===null||o===void 0?void 0:o.name)!=="URL"&&(s=Object.assign({},s),n._setDefaultOptions(s)),n._getPatchOutgoingRequestFunction(t)(r)(s,...a)}}}_setDefaultOptions(t){t.protocol=t.protocol||"https:",t.port=t.port||443;}_getPatchHttpsOutgoingGetFunction(t){return r=>{let n=this;return function(s,...a){return n._getPatchOutgoingGetFunction(t)(r)(s,...a)}}}_traceClientRequest(t,r,n,i){this.getConfig().requestHook&&this._callRequestHook(r,t);let s=!1;return t.prependListener("response",a=>{this._diag.debug("outgoingRequest on response()"),t.listenerCount("response")<=1&&a.resume();let o=Mn.getOutgoingRequestAttributesOnResponse(a);r.setAttributes(o),i=Object.assign(i,Mn.getOutgoingRequestMetricAttributesOnResponse(o)),this.getConfig().responseHook&&this._callResponseHook(r,a),this._headerCapture.client.captureRequestHeaders(r,l=>t.getHeader(l)),this._headerCapture.client.captureResponseHeaders(r,l=>a.headers[l]),kt.context.bind(kt.context.active(),a);let u=()=>{if(this._diag.debug("outgoingRequest on end()"),s)return;s=!0;let l;a.aborted&&!a.complete?l={code:kt.SpanStatusCode.ERROR}:l={code:Mn.parseResponseStatus(kt.SpanKind.CLIENT,a.statusCode)},r.setStatus(l),this.getConfig().applyCustomAttributesOnSpan&&(0, to.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(r,t,a),()=>{},!0),this._closeHttpSpan(r,kt.SpanKind.CLIENT,n,i);};a.on("end",u),Cse.lt(process.version,"16.0.0")&&a.on("close",u),a.on(bk.errorMonitor,l=>{this._diag.debug("outgoingRequest on error()",l),!s&&(s=!0,Mn.setSpanWithError(r,l),r.setStatus({code:kt.SpanStatusCode.ERROR,message:l.message}),this._closeHttpSpan(r,kt.SpanKind.CLIENT,n,i));});}),t.on("close",()=>{this._diag.debug("outgoingRequest on request close()"),!(t.aborted||s)&&(s=!0,this._closeHttpSpan(r,kt.SpanKind.CLIENT,n,i));}),t.on(bk.errorMonitor,a=>{this._diag.debug("outgoingRequest on request error()",a),!s&&(s=!0,Mn.setSpanWithError(r,a),this._closeHttpSpan(r,kt.SpanKind.CLIENT,n,i));}),this._diag.debug("http.ClientRequest return request"),t}_incomingRequestFunction(t,r){let n=this;return function(s,...a){if(s!=="request")return r.apply(this,[s,...a]);let o=a[0],u=a[1],l=o.url&&wse.parse(o.url).pathname||"/",c=o.method||"GET";if(n._diag.debug(`${t} instrumentation incomingRequest`),Mn.isIgnored(l,n.getConfig().ignoreIncomingPaths,E=>n._diag.error("caught ignoreIncomingPaths error: ",E))||(0, to.safeExecuteInTheMiddle)(()=>{var E,S;return (S=(E=n.getConfig()).ignoreIncomingRequestHook)===null||S===void 0?void 0:S.call(E,o)},E=>{E!=null&&n._diag.error("caught ignoreIncomingRequestHook error: ",E);},!0))return kt.context.with((0, vy.suppressTracing)(kt.context.active()),()=>(kt.context.bind(kt.context.active(),o),kt.context.bind(kt.context.active(),u),r.apply(this,[s,...a])));let p=o.headers,h=Mn.getIncomingRequestAttributes(o,{component:t,serverName:n.getConfig().serverName,hookAttributes:n._callStartSpanHook(o,n.getConfig().startIncomingSpanHook)}),f={kind:kt.SpanKind.SERVER,attributes:h},d=(0, vy.hrTime)(),m=Mn.getIncomingRequestMetricAttributes(h),y=kt.propagation.extract(kt.ROOT_CONTEXT,p),g=n._startHttpSpan(c,f,y),v={type:Ise.RPCType.HTTP,span:g};return kt.context.with((0, Ise.setRPCMetadata)(kt.trace.setSpan(y,g),v),()=>{kt.context.bind(kt.context.active(),o),kt.context.bind(kt.context.active(),u),n.getConfig().requestHook&&n._callRequestHook(g,o),n.getConfig().responseHook&&n._callResponseHook(g,u),n._headerCapture.server.captureRequestHeaders(g,S=>o.headers[S]);let E=!1;return u.on("close",()=>{E||n._onServerResponseFinish(o,u,g,m,d);}),u.on(bk.errorMonitor,S=>{E=!0,n._onServerResponseError(g,m,d,S);}),(0, to.safeExecuteInTheMiddle)(()=>r.apply(this,[s,...a]),S=>{if(S)throw Mn.setSpanWithError(g,S),n._closeHttpSpan(g,kt.SpanKind.SERVER,d,m),S})})}}_outgoingRequestFunction(t,r){let n=this;return function(s,...a){if(!Mn.isValidOptionsType(s))return r.apply(this,[s,...a]);let o=typeof a[0]=="object"&&(typeof s=="string"||s instanceof wse.URL)?a.shift():void 0,{origin:u,pathname:l,method:c,optionsParsed:p}=Mn.getRequestInfo(s,o);if(t==="http"&&Cse.lt(process.version,"9.0.0")&&p.protocol==="https:")return r.apply(this,[p,...a]);if(Mn.isIgnored(u+l,n.getConfig().ignoreOutgoingUrls,x=>n._diag.error("caught ignoreOutgoingUrls error: ",x))||(0, to.safeExecuteInTheMiddle)(()=>{var x,b;return (b=(x=n.getConfig()).ignoreOutgoingRequestHook)===null||b===void 0?void 0:b.call(x,p)},x=>{x!=null&&n._diag.error("caught ignoreOutgoingRequestHook error: ",x);},!0))return r.apply(this,[p,...a]);let{hostname:h,port:f}=Mn.extractHostnameAndPort(p),d=Mn.getOutgoingRequestAttributes(p,{component:t,port:f,hostname:h,hookAttributes:n._callStartSpanHook(p,n.getConfig().startOutgoingSpanHook)}),m=(0, vy.hrTime)(),y=Mn.getOutgoingRequestMetricAttributes(d),g={kind:kt.SpanKind.CLIENT,attributes:d},v=n._startHttpSpan(c,g),E=kt.context.active(),S=kt.trace.setSpan(E,v);return p.headers?p.headers=Object.assign({},p.headers):p.headers={},kt.propagation.inject(S,p.headers),kt.context.with(S,()=>{let x=a[a.length-1];typeof x=="function"&&(a[a.length-1]=kt.context.bind(E,x));let b=(0, to.safeExecuteInTheMiddle)(()=>r.apply(this,[p,...a]),A=>{if(A)throw Mn.setSpanWithError(v,A),n._closeHttpSpan(v,kt.SpanKind.CLIENT,m,y),A});return n._diag.debug(`${t} instrumentation outgoingRequest`),kt.context.bind(E,b),n._traceClientRequest(b,v,m,y)})}}_onServerResponseFinish(t,r,n,i,s){let a=Mn.getIncomingRequestAttributesOnResponse(t,r);i=Object.assign(i,Mn.getIncomingRequestMetricAttributesOnResponse(a)),this._headerCapture.server.captureResponseHeaders(n,u=>r.getHeader(u)),n.setAttributes(a).setStatus({code:Mn.parseResponseStatus(kt.SpanKind.SERVER,r.statusCode)});let o=a[Bet.SEMATTRS_HTTP_ROUTE];o&&n.updateName(`${t.method||"GET"} ${o}`),this.getConfig().applyCustomAttributesOnSpan&&(0, to.safeExecuteInTheMiddle)(()=>this.getConfig().applyCustomAttributesOnSpan(n,t,r),()=>{},!0),this._closeHttpSpan(n,kt.SpanKind.SERVER,s,i);}_onServerResponseError(t,r,n,i){Mn.setSpanWithError(t,i),this._closeHttpSpan(t,kt.SpanKind.SERVER,n,r);}_startHttpSpan(t,r,n=kt.context.active()){let i=r.kind===kt.SpanKind.CLIENT?this.getConfig().requireParentforOutgoingSpans:this.getConfig().requireParentforIncomingSpans,s,a=kt.trace.getSpan(n);return i===!0&&a===void 0?s=kt.trace.wrapSpanContext(kt.INVALID_SPAN_CONTEXT):i===!0&&(a!=null&&a.spanContext().isRemote)?s=a:s=this.tracer.startSpan(t,r,n),this._spanNotEnded.add(s),s}_closeHttpSpan(t,r,n,i){if(!this._spanNotEnded.has(t))return;t.end(),this._spanNotEnded.delete(t);let s=(0, vy.hrTimeToMilliseconds)((0, vy.hrTimeDuration)(n,(0, vy.hrTime)()));r===kt.SpanKind.SERVER?this._httpServerDurationHistogram.record(s,i):r===kt.SpanKind.CLIENT&&this._httpClientDurationHistogram.record(s,i);}_callResponseHook(t,r){(0, to.safeExecuteInTheMiddle)(()=>this.getConfig().responseHook(t,r),()=>{},!0);}_callRequestHook(t,r){(0, to.safeExecuteInTheMiddle)(()=>this.getConfig().requestHook(t,r),()=>{},!0);}_callStartSpanHook(t,r){if(typeof r=="function")return (0, to.safeExecuteInTheMiddle)(()=>r(t),()=>{},!0)}_createHeaderCapture(){var t,r,n,i,s,a,o,u,l,c,p,h;let f=this.getConfig();return {client:{captureRequestHeaders:Mn.headerCapture("request",(n=(r=(t=f.headersToSpanAttributes)===null||t===void 0?void 0:t.client)===null||r===void 0?void 0:r.requestHeaders)!==null&&n!==void 0?n:[]),captureResponseHeaders:Mn.headerCapture("response",(a=(s=(i=f.headersToSpanAttributes)===null||i===void 0?void 0:i.client)===null||s===void 0?void 0:s.responseHeaders)!==null&&a!==void 0?a:[])},server:{captureRequestHeaders:Mn.headerCapture("request",(l=(u=(o=f.headersToSpanAttributes)===null||o===void 0?void 0:o.server)===null||u===void 0?void 0:u.requestHeaders)!==null&&l!==void 0?l:[]),captureResponseHeaders:Mn.headerCapture("response",(h=(p=(c=f.headersToSpanAttributes)===null||c===void 0?void 0:c.server)===null||p===void 0?void 0:p.responseHeaders)!==null&&h!==void 0?h:[])}}}};pP.HttpInstrumentation=vk;});var Dse=chunkTKGT252T_js.c(Lt=>{Object.defineProperty(Lt,"__esModule",{value:!0});Lt.setSpanWithError=Lt.setResponseContentLengthAttribute=Lt.setRequestContentLengthAttribute=Lt.setAttributesFromHttpKind=Lt.satisfiesPattern=Lt.parseResponseStatus=Lt.isValidOptionsType=Lt.isIgnored=Lt.isCompressed=Lt.headerCapture=Lt.getRequestInfo=Lt.getOutgoingRequestMetricAttributesOnResponse=Lt.getOutgoingRequestMetricAttributes=Lt.getOutgoingRequestAttributesOnResponse=Lt.getOutgoingRequestAttributes=Lt.getIncomingRequestMetricAttributesOnResponse=Lt.getIncomingRequestMetricAttributes=Lt.getIncomingRequestAttributesOnResponse=Lt.getIncomingRequestAttributes=Lt.getAbsoluteUrl=Lt.extractHostnameAndPort=Lt.HttpInstrumentation=void 0;var jet=Ose();Object.defineProperty(Lt,"HttpInstrumentation",{enumerable:!0,get:function(){return jet.HttpInstrumentation}});var oi=QL();Object.defineProperty(Lt,"extractHostnameAndPort",{enumerable:!0,get:function(){return oi.extractHostnameAndPort}});Object.defineProperty(Lt,"getAbsoluteUrl",{enumerable:!0,get:function(){return oi.getAbsoluteUrl}});Object.defineProperty(Lt,"getIncomingRequestAttributes",{enumerable:!0,get:function(){return oi.getIncomingRequestAttributes}});Object.defineProperty(Lt,"getIncomingRequestAttributesOnResponse",{enumerable:!0,get:function(){return oi.getIncomingRequestAttributesOnResponse}});Object.defineProperty(Lt,"getIncomingRequestMetricAttributes",{enumerable:!0,get:function(){return oi.getIncomingRequestMetricAttributes}});Object.defineProperty(Lt,"getIncomingRequestMetricAttributesOnResponse",{enumerable:!0,get:function(){return oi.getIncomingRequestMetricAttributesOnResponse}});Object.defineProperty(Lt,"getOutgoingRequestAttributes",{enumerable:!0,get:function(){return oi.getOutgoingRequestAttributes}});Object.defineProperty(Lt,"getOutgoingRequestAttributesOnResponse",{enumerable:!0,get:function(){return oi.getOutgoingRequestAttributesOnResponse}});Object.defineProperty(Lt,"getOutgoingRequestMetricAttributes",{enumerable:!0,get:function(){return oi.getOutgoingRequestMetricAttributes}});Object.defineProperty(Lt,"getOutgoingRequestMetricAttributesOnResponse",{enumerable:!0,get:function(){return oi.getOutgoingRequestMetricAttributesOnResponse}});Object.defineProperty(Lt,"getRequestInfo",{enumerable:!0,get:function(){return oi.getRequestInfo}});Object.defineProperty(Lt,"headerCapture",{enumerable:!0,get:function(){return oi.headerCapture}});Object.defineProperty(Lt,"isCompressed",{enumerable:!0,get:function(){return oi.isCompressed}});Object.defineProperty(Lt,"isIgnored",{enumerable:!0,get:function(){return oi.isIgnored}});Object.defineProperty(Lt,"isValidOptionsType",{enumerable:!0,get:function(){return oi.isValidOptionsType}});Object.defineProperty(Lt,"parseResponseStatus",{enumerable:!0,get:function(){return oi.parseResponseStatus}});Object.defineProperty(Lt,"satisfiesPattern",{enumerable:!0,get:function(){return oi.satisfiesPattern}});Object.defineProperty(Lt,"setAttributesFromHttpKind",{enumerable:!0,get:function(){return oi.setAttributesFromHttpKind}});Object.defineProperty(Lt,"setRequestContentLengthAttribute",{enumerable:!0,get:function(){return oi.setRequestContentLengthAttribute}});Object.defineProperty(Lt,"setResponseContentLengthAttribute",{enumerable:!0,get:function(){return oi.setResponseContentLengthAttribute}});Object.defineProperty(Lt,"setSpanWithError",{enumerable:!0,get:function(){return oi.setSpanWithError}});});var hae,dae=chunkTKGT252T_js.b(()=>{hae="exception";});var prt,mae,frt,yae,gae=chunkTKGT252T_js.b(()=>{pt();jn();dn();dae();prt=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},mae=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},frt=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},yae=function(){function e(t,r,n,i,s,a,o,u,l,c){o===void 0&&(o=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:Qa.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=i,this.parentSpanId=a,this.kind=s,this.links=o;var p=Date.now();this._performanceStartTime=Za.now(),this._performanceOffset=p-(this._performanceStartTime+cy()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??p),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,c!=null&&this.setAttributes(c),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r);}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return r==null||this._isSpanEnded()?this:t.length===0?(_t.warn("Invalid attribute key: "+t),this):AE(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this):(_t.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var r,n;try{for(var i=prt(Object.entries(t)),s=i.next();!s.done;s=i.next()){var a=mae(s.value,2),o=a[0],u=a[1];this.setAttribute(o,u);}}catch(l){r={error:l};}finally{try{s&&!s.done&&(n=i.return)&&n.call(i);}finally{if(r)throw r.error}}return this},e.prototype.addEvent=function(t,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return _t.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&_t.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),ME(r)&&(ME(n)||(n=r),r=void 0);var i=Ip(r);return this.events.push({name:t,attributes:i,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.addLink=function(t){return this.links.push(t),this},e.prototype.addLinks=function(t){var r;return (r=this.links).push.apply(r,frt([],mae(t),!1)),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=t,this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){_t.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(t),this._duration=GA(this.startTime,this.endTime),this._duration[0]<0&&(_t.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&_t.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this);},e.prototype._getTime=function(t){if(typeof t=="number"&&t<Za.now())return RE(t+this._performanceOffset);if(typeof t=="number")return Qo(t);if(t instanceof Date)return Qo(t.getTime());if(py(t))return t;if(this._startTimeProvided)return Qo(Date.now());var r=Za.now()-this._performanceStartTime;return LE(this.startTime,Qo(r))},e.prototype.isRecording=function(){return this._ended===!1},e.prototype.recordException=function(t,r){var n={};typeof t=="string"?n[IE]=t:t&&(t.code?n[wE]=t.code.toString():t.name&&(n[wE]=t.name),t.message&&(n[IE]=t.message),t.stack&&(n[IL]=t.stack)),n[wE]||n[IE]?this.addEvent(hae,n,r):_t.warn("Failed to record an exception "+t);},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&_t.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substr(0,r)},e.prototype._truncateToSize=function(t){var r=this,n=this._attributeValueLengthLimit;return n<=0?(_t.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(i){return typeof i=="string"?r._truncateToLimitUtil(i,n):i}):t},e}();});var fs,f0=chunkTKGT252T_js.b(()=>{(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";})(fs||(fs={}));});var Dy,Xk=chunkTKGT252T_js.b(()=>{f0();Dy=function(){function e(){}return e.prototype.shouldSample=function(){return {decision:fs.NOT_RECORD}},e.prototype.toString=function(){return "AlwaysOffSampler"},e}();});var Up,zk=chunkTKGT252T_js.b(()=>{f0();Up=function(){function e(){}return e.prototype.shouldSample=function(){return {decision:fs.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return "AlwaysOnSampler"},e}();});var wP,Sae=chunkTKGT252T_js.b(()=>{pt();jn();Xk();zk();wP=function(){function e(t){var r,n,i,s;this._root=t.root,this._root||(Jo(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Up),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new Up,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new Dy,this._localParentSampled=(i=t.localParentSampled)!==null&&i!==void 0?i:new Up,this._localParentNotSampled=(s=t.localParentNotSampled)!==null&&s!==void 0?s:new Dy;}return e.prototype.shouldSample=function(t,r,n,i,s,a){var o=qt.getSpanContext(t);return !o||!oa(o)?this._root.shouldSample(t,r,n,i,s,a):o.isRemote?o.traceFlags&hn.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,i,s,a):this._remoteParentNotSampled.shouldSample(t,r,n,i,s,a):o.traceFlags&hn.SAMPLED?this._localParentSampled.shouldSample(t,r,n,i,s,a):this._localParentNotSampled.shouldSample(t,r,n,i,s,a)},e.prototype.toString=function(){return "ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},e}();});var Jk,Tae=chunkTKGT252T_js.b(()=>{pt();f0();Jk=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295);}return e.prototype.shouldSample=function(t,r){return {decision:Fh(r)&&this._accumulate(r)<this._upperBound?fs.RECORD_AND_SAMPLED:fs.NOT_RECORD}},e.prototype.toString=function(){return "TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n<t.length/8;n++){var i=n*8,s=parseInt(t.slice(i,i+8),16);r=(r^s)>>>0;}return r},e}();});function IP(){var e=Oa();return {sampler:Qk(hrt),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:e.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:e.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:e.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:e.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:e.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:e.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function Qk(e){switch(e===void 0&&(e=Oa()),e.OTEL_TRACES_SAMPLER){case la.AlwaysOn:return new Up;case la.AlwaysOff:return new Dy;case la.ParentBasedAlwaysOn:return new wP({root:new Up});case la.ParentBasedAlwaysOff:return new wP({root:new Dy});case la.TraceIdRatio:return new Jk(Eae(e));case la.ParentBasedTraceIdRatio:return new wP({root:new Jk(Eae(e))});default:return _t.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+drt+'".'),new Up}}function Eae(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return _t.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Ny+"."),Ny;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(_t.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+Ny+"."),Ny):t<0||t>1?(_t.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Ny+"."),Ny):t}var hrt,drt,Ny,Zk=chunkTKGT252T_js.b(()=>{pt();jn();Xk();zk();Sae();Tae();hrt=Oa(),drt=la.AlwaysOn,Ny=1;});function bae(e){var t={sampler:Qk()},r=IP(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function vae(e){var t,r,n,i,s,a,o,u,l,c,p,h,f=Object.assign({},e.spanLimits),d=ry();return f.attributeCountLimit=(a=(s=(i=(r=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&r!==void 0?r:(n=e.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&i!==void 0?i:d.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:d.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:Uh,f.attributeValueLengthLimit=(h=(p=(c=(u=(o=e.spanLimits)===null||o===void 0?void 0:o.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=e.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&c!==void 0?c:d.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:d.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&h!==void 0?h:jh,Object.assign({},e,{spanLimits:f})}var e2=chunkTKGT252T_js.b(()=>{Zk();jn();});var _ae,xae=chunkTKGT252T_js.b(()=>{pt();jn();_ae=function(){function e(t,r){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=Oa();this._maxExportBatchSize=typeof(r==null?void 0:r.maxExportBatchSize)=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof(r==null?void 0:r.maxQueueSize)=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof(r==null?void 0:r.scheduledDelayMillis)=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof(r==null?void 0:r.exportTimeoutMillis)=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new JA(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(_t.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize);}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&hn.SAMPLED&&this._addToBuffer(t);},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&_t.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(_t.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer();},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var i=[],s=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),a=0,o=s;a<o;a++)i.push(t._flushOneBatch());Promise.all(i).then(function(){r();}).catch(n);})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(r,n){var i=setTimeout(function(){n(new Error("Timeout"));},t._exportTimeoutMillis);gr.with(zo(gr.active()),function(){var s;t._finishedSpans.length<=t._maxExportBatchSize?(s=t._finishedSpans,t._finishedSpans=[]):s=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var a=function(){return t._exporter.export(s,function(p){var h;clearTimeout(i),p.code===fy.SUCCESS?r():n((h=p.error)!==null&&h!==void 0?h:new Error("BatchSpanProcessor: span export failed"));})},o=null,u=0,l=s.length;u<l;u++){var c=s[u];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??(o=[]),o.push(c.resource.waitForAsyncAttributes()));}o===null?a():Promise.all(o).then(a,function(p){Jo(p),n(p);});});})},e.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var r=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer());}).catch(function(n){t._isExporting=!1,Jo(n);});};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(function(){return r()},this._scheduledDelayMillis),ly(this._timer));}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0);},e}();});var mrt,OP,Aae=chunkTKGT252T_js.b(()=>{xae();mrt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i;}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s]);},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t;}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n);}}(),OP=function(e){mrt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onShutdown=function(){},t}(_ae);});function Pae(e){return function(){for(var r=0;r<e/4;r++)DP.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,r*4);for(var r=0;r<e&&!(DP[r]>0);r++)r===e-1&&(DP[e-1]=1);return DP.toString("hex",0,e)}}var yrt,Cae,NP,DP,wae=chunkTKGT252T_js.b(()=>{yrt=8,Cae=16,NP=function(){function e(){this.generateTraceId=Pae(Cae),this.generateSpanId=Pae(yrt);}return e}(),DP=Buffer.allocUnsafe(Cae);});var Iae=chunkTKGT252T_js.b(()=>{Aae();wae();});var t2=chunkTKGT252T_js.b(()=>{Iae();});var r2,Oae=chunkTKGT252T_js.b(()=>{pt();jn();gae();e2();t2();r2=function(){function e(t,r,n){this._tracerProvider=n;var i=bae(r);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=r.idGenerator||new NP,this.resource=n.resource,this.instrumentationLibrary=t;}return e.prototype.startSpan=function(t,r,n){var i,s,a;r===void 0&&(r={}),n===void 0&&(n=gr.active()),r.root&&(n=qt.deleteSpan(n));var o=qt.getSpan(n);if(qu(n)){_t.debug("Instrumentation suppressed, returning Noop Span");var u=qt.wrapSpanContext(Zm);return u}var l=o==null?void 0:o.spanContext(),c=this._idGenerator.generateSpanId(),p,h,f;!l||!qt.isSpanContextValid(l)?p=this._idGenerator.generateTraceId():(p=l.traceId,h=l.traceState,f=l.spanId);var d=(i=r.kind)!==null&&i!==void 0?i:cs.INTERNAL,m=((s=r.links)!==null&&s!==void 0?s:[]).map(function(b){return {context:b.context,attributes:Ip(b.attributes)}}),y=Ip(r.attributes),g=this._sampler.shouldSample(n,p,t,d,y,m);h=(a=g.traceState)!==null&&a!==void 0?a:h;var v=g.decision===ua.RECORD_AND_SAMPLED?hn.SAMPLED:hn.NONE,E={traceId:p,spanId:c,traceFlags:v,traceState:h};if(g.decision===ua.NOT_RECORD){_t.debug("Recording is off, propagating context in a non-recording span");var u=qt.wrapSpanContext(E);return u}var S=Ip(Object.assign(y,g.attributes)),x=new yae(this,n,t,E,d,f,m,r.startTime,void 0,S);return x},e.prototype.startActiveSpan=function(t,r,n,i){var s,a,o;if(!(arguments.length<2)){arguments.length===2?o=r:arguments.length===3?(s=r,o=n):(s=r,a=n,o=i);var u=a??gr.active(),l=this.startSpan(t,s,u),c=qt.setSpan(u,l);return gr.with(c,o,void 0,l)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}();});function RP(){return "unknown_service:"+process.argv0}var Dae=chunkTKGT252T_js.b(()=>{});var Nae=chunkTKGT252T_js.b(()=>{Dae();});var Rae=chunkTKGT252T_js.b(()=>{Nae();});var qp,grt,Srt,Trt,Ry,Mae=chunkTKGT252T_js.b(()=>{pt();dn();jn();Rae();qp=function(){return qp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);}return e},qp.apply(this,arguments)},grt=function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s);})}return new(r||(r=Promise))(function(s,a){function o(c){try{l(n.next(c));}catch(p){a(p);}}function u(c){try{l(n.throw(c));}catch(p){a(p);}}function l(c){c.done?s(c.value):i(c.value).then(o,u);}l((n=n.apply(e,t||[])).next());})},Srt=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){r.label=l[1];break}if(l[0]===6&&r.label<s[1]){r.label=s[1],s=l;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(l);break}s[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r);}catch(c){l=[6,c],i=0;}finally{n=s=0;}if(l[0]&5)throw l[1];return {value:l[0]?l[1]:void 0,done:!0}}},Trt=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value);}catch(o){a={error:o};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return s},Ry=function(){function e(t,r){var n=this,i;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(i=this._attributes)!==null&&i!==void 0?i:{},this._asyncAttributesPromise=r==null?void 0:r.then(function(s){return n._attributes=Object.assign({},n._attributes,s),n.asyncAttributesPending=!1,s},function(s){return _t.debug("a resource's async attributes promise rejected: %s",s),n.asyncAttributesPending=!1,{}});}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[kL]=RP(),t[sy]=Op[sy],t[iy]=Op[iy],t[ay]=Op[ay],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&_t.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return grt(this,void 0,void 0,function(){return Srt(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return [2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var i=qp(qp({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(i);var s=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(a){var o,u=Trt(a,2),l=u[0],c=u[1];return qp(qp(qp(qp({},r._syncAttributes),l),(o=t._syncAttributes)!==null&&o!==void 0?o:t.attributes),c)});return new e(i,s)},e.EMPTY=new e({}),e}();});var n2=chunkTKGT252T_js.b(()=>{Mae();});var MP,Lae,kae=chunkTKGT252T_js.b(()=>{jn();MP=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Lae=function(){function e(t){this._spanProcessors=t;}return e.prototype.forceFlush=function(){var t,r,n=[];try{for(var i=MP(this._spanProcessors),s=i.next();!s.done;s=i.next()){var a=s.value;n.push(a.forceFlush());}}catch(o){t={error:o};}finally{try{s&&!s.done&&(r=i.return)&&r.call(i);}finally{if(t)throw t.error}}return new Promise(function(o){Promise.all(n).then(function(){o();}).catch(function(u){Jo(u||new Error("MultiSpanProcessor: forceFlush failed")),o();});})},e.prototype.onStart=function(t,r){var n,i;try{for(var s=MP(this._spanProcessors),a=s.next();!a.done;a=s.next()){var o=a.value;o.onStart(t,r);}}catch(u){n={error:u};}finally{try{a&&!a.done&&(i=s.return)&&i.call(s);}finally{if(n)throw n.error}}},e.prototype.onEnd=function(t){var r,n;try{for(var i=MP(this._spanProcessors),s=i.next();!s.done;s=i.next()){var a=s.value;a.onEnd(t);}}catch(o){r={error:o};}finally{try{s&&!s.done&&(n=i.return)&&n.call(i);}finally{if(r)throw r.error}}},e.prototype.shutdown=function(){var t,r,n=[];try{for(var i=MP(this._spanProcessors),s=i.next();!s.done;s=i.next()){var a=s.value;n.push(a.shutdown());}}catch(o){t={error:o};}finally{try{s&&!s.done&&(r=i.return)&&r.call(i);}finally{if(t)throw t.error}}return new Promise(function(o,u){Promise.all(n).then(function(){o();},u);})},e}();});var Fae,Bae=chunkTKGT252T_js.b(()=>{Fae=function(){function e(){}return e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}();});var Vp,i2,jae=chunkTKGT252T_js.b(()=>{pt();jn();n2();LP();Zk();kae();Bae();t2();e2();(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved";})(Vp||(Vp={}));i2=function(){function e(t){t===void 0&&(t={});var r;this._registeredSpanProcessors=[],this._tracers=new Map;var n=zA({},IP(),vae(t));this.resource=(r=n.resource)!==null&&r!==void 0?r:Ry.empty(),this.resource=Ry.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var i=this._buildExporterFromEnv();if(i!==void 0){var s=new OP(i);this.activeSpanProcessor=s;}else this.activeSpanProcessor=new Fae;}return e.prototype.getTracer=function(t,r,n){var i=t+"@"+(r||"")+":"+((n==null?void 0:n.schemaUrl)||"");return this._tracers.has(i)||this._tracers.set(i,new r2({name:t,version:r,schemaUrl:n==null?void 0:n.schemaUrl},this._config,this)),this._tracers.get(i)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(r){return _t.error("Error while trying to shutdown current span processor",r)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new Lae(this._registeredSpanProcessors);},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),qt.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&gr.setGlobalContextManager(t.contextManager),t.propagator&&As.setGlobalPropagator(t.propagator);},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(function(n){return new Promise(function(i){var s,a=setTimeout(function(){i(new Error("Span processor did not completed within timeout period of "+t+" ms")),s=Vp.timeout;},t);n.forceFlush().then(function(){clearTimeout(a),s!==Vp.timeout&&(s=Vp.resolved,i(s));}).catch(function(o){clearTimeout(a),s=Vp.error,i(o);});})});return new Promise(function(n,i){Promise.all(r).then(function(s){var a=s.filter(function(o){return o!==Vp.resolved});a.length>0?i(a):n();}).catch(function(s){return i([s])});})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var r;return (r=this.constructor._registeredPropagators.get(t))===null||r===void 0?void 0:r()},e.prototype._getSpanExporter=function(t){var r;return (r=this.constructor._registeredExporters.get(t))===null||r===void 0?void 0:r()},e.prototype._buildPropagatorFromEnv=function(){var t=this,r=Array.from(new Set(Oa().OTEL_PROPAGATORS)),n=r.map(function(s){var a=t._getPropagator(s);return a||_t.warn('Propagator "'+s+'" requested through environment variable is unavailable.'),a}),i=n.reduce(function(s,a){return a&&s.push(a),s},[]);if(i.length!==0)return r.length===1?i[0]:new $A({propagators:i})},e.prototype._buildExporterFromEnv=function(){var t=Oa().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var r=this._getSpanExporter(t);return r||_t.error('Exporter "'+t+'" requested through environment variable is unavailable.'),r}},e._registeredPropagators=new Map([["tracecontext",function(){return new KA}],["baggage",function(){return new ty}]]),e._registeredExporters=new Map,e}();});var LP=chunkTKGT252T_js.b(()=>{Oae();jae();f0();});var Eoe=chunkTKGT252T_js.c(Fy=>{Object.defineProperty(Fy,"__esModule",{value:!0});Fy.PACKAGE_NAME=Fy.PACKAGE_VERSION=void 0;Fy.PACKAGE_VERSION="0.6.0";Fy.PACKAGE_NAME="@opentelemetry/instrumentation-undici";});var boe=chunkTKGT252T_js.c(VP=>{Object.defineProperty(VP,"__esModule",{value:!0});VP.SemanticAttributes=void 0;VP.SemanticAttributes={HTTP_CONNECTION_STATE:"http.connection.state",ERROR_TYPE:"error.type",HTTP_REQUEST_BODY_SIZE:"http.request.body.size",HTTP_REQUEST_METHOD:"http.request.method",HTTP_REQUEST_METHOD_ORIGINAL:"http.request.method_original",HTTP_REQUEST_RESEND_COUNT:"http.request.resend_count",HTTP_RESPONSE_BODY_SIZE:"http.response.body.size",HTTP_RESPONSE_STATUS_CODE:"http.response.status_code",HTTP_ROUTE:"http.route",NETWORK_PEER_ADDRESS:"network.peer.address",NETWORK_PEER_PORT:"network.peer.port",NETWORK_PROTOCOL_NAME:"network.protocol.name",NETWORK_PROTOCOL_VERSION:"network.protocol.version",SERVER_ADDRESS:"server.address",SERVER_PORT:"server.port",URL_FULL:"url.full",URL_PATH:"url.path",URL_QUERY:"url.query",URL_SCHEME:"url.scheme",USER_AGENT_ORIGINAL:"user_agent.original"};});var _oe=chunkTKGT252T_js.c(GP=>{Object.defineProperty(GP,"__esModule",{value:!0});GP.UndiciInstrumentation=void 0;var fnt=chunkTKGT252T_js.a("diagnostics_channel"),hnt=chunkTKGT252T_js.a("url"),h0=(Rn(),chunkTKGT252T_js.f(zn)),Ra=(pt(),chunkTKGT252T_js.f(Gr)),voe=Eoe(),Ci=boe(),HP=(jn(),chunkTKGT252T_js.f(eo)),_2=class extends h0.InstrumentationBase{constructor(t={}){super(voe.PACKAGE_NAME,voe.PACKAGE_VERSION,t),this._recordFromReq=new WeakMap;}init(){}disable(){super.disable(),this._channelSubs.forEach(t=>t.channel.unsubscribe(t.onMessage)),this._channelSubs.length=0;}enable(){super.enable(),this._channelSubs=this._channelSubs||[],!(this._channelSubs.length>0)&&(this.subscribeToChannel("undici:request:create",this.onRequestCreated.bind(this)),this.subscribeToChannel("undici:client:sendHeaders",this.onRequestHeaders.bind(this)),this.subscribeToChannel("undici:request:headers",this.onResponseHeaders.bind(this)),this.subscribeToChannel("undici:request:trailers",this.onDone.bind(this)),this.subscribeToChannel("undici:request:error",this.onError.bind(this)));}_updateMetricInstruments(){this._httpClientDurationHistogram=this.meter.createHistogram("http.client.request.duration",{description:"Measures the duration of outbound HTTP requests.",unit:"s",valueType:Ra.ValueType.DOUBLE,advice:{explicitBucketBoundaries:[.005,.01,.025,.05,.075,.1,.25,.5,.75,1,2.5,5,7.5,10]}});}subscribeToChannel(t,r){let n=fnt.channel(t);n.subscribe(r),this._channelSubs.push({name:t,channel:n,onMessage:r});}onRequestCreated({request:t}){let r=this.getConfig(),n=r.enabled!==!1;if((0, h0.safeExecuteInTheMiddle)(()=>{var x;return !n||t.method==="CONNECT"||((x=r.ignoreRequestHook)===null||x===void 0?void 0:x.call(r,t))},x=>x&&this._diag.error("caught ignoreRequestHook error: ",x),!0))return;let s=(0, HP.hrTime)(),a=new hnt.URL(t.origin+t.path),o=a.protocol.replace(":",""),u=this.getRequestMethod(t.method),l={[Ci.SemanticAttributes.HTTP_REQUEST_METHOD]:u,[Ci.SemanticAttributes.HTTP_REQUEST_METHOD_ORIGINAL]:t.method,[Ci.SemanticAttributes.URL_FULL]:a.toString(),[Ci.SemanticAttributes.URL_PATH]:a.pathname,[Ci.SemanticAttributes.URL_QUERY]:a.search,[Ci.SemanticAttributes.URL_SCHEME]:o},c={https:"443",http:"80"},p=a.hostname,h=a.port||c[o];l[Ci.SemanticAttributes.SERVER_ADDRESS]=p,h&&!isNaN(Number(h))&&(l[Ci.SemanticAttributes.SERVER_PORT]=Number(h));let f;if(Array.isArray(t.headers)){let x=t.headers.findIndex(b=>b.toLowerCase()==="user-agent");x>=0&&(f=t.headers[x+1]);}else if(typeof t.headers=="string"){let b=t.headers.split(`\r
`).find(A=>A.toLowerCase().startsWith("user-agent"));f=b&&b.substring(b.indexOf(":")+1).trim();}f&&(l[Ci.SemanticAttributes.USER_AGENT_ORIGINAL]=f);let d=(0, h0.safeExecuteInTheMiddle)(()=>{var x;return (x=r.startSpanHook)===null||x===void 0?void 0:x.call(r,t)},x=>x&&this._diag.error("caught startSpanHook error: ",x),!0);d&&Object.entries(d).forEach(([x,b])=>{l[x]=b;});let m=Ra.context.active(),y=Ra.trace.getSpan(m),g;r.requireParentforSpans&&(!y||!Ra.trace.isSpanContextValid(y.spanContext()))?g=Ra.trace.wrapSpanContext(Ra.INVALID_SPAN_CONTEXT):g=this.tracer.startSpan(u==="_OTHER"?"HTTP":u,{kind:Ra.SpanKind.CLIENT,attributes:l},m),(0, h0.safeExecuteInTheMiddle)(()=>{var x;return (x=r.requestHook)===null||x===void 0?void 0:x.call(r,g,t)},x=>x&&this._diag.error("caught requestHook error: ",x),!0);let v=Ra.trace.setSpan(Ra.context.active(),g),E={};Ra.propagation.inject(v,E);let S=Object.entries(E);for(let x=0;x<S.length;x++){let[b,A]=S[x];typeof t.addHeader=="function"?t.addHeader(b,A):typeof t.headers=="string"?t.headers+=`${b}: ${A}\r
`:Array.isArray(t.headers)&&t.headers.push(b,A);}this._recordFromReq.set(t,{span:g,attributes:l,startTime:s});}onRequestHeaders({request:t,socket:r}){var n;let i=this._recordFromReq.get(t);if(!i)return;let s=this.getConfig(),{span:a}=i,{remoteAddress:o,remotePort:u}=r,l={[Ci.SemanticAttributes.NETWORK_PEER_ADDRESS]:o,[Ci.SemanticAttributes.NETWORK_PEER_PORT]:u};if(!((n=s.headersToSpanAttributes)===null||n===void 0)&&n.requestHeaders){let c=new Set(s.headersToSpanAttributes.requestHeaders.map(h=>h.toLowerCase())),p=Array.isArray(t.headers)?t.headers:t.headers.split(`\r
`);p.forEach((h,f)=>{let d=h.indexOf(":"),m=d!==-1,y=(m?h.substring(0,d):h).toLowerCase(),g=m?h.substring(d+1):p[f+1];c.has(y)&&(l[`http.request.header.${y}`]=g.trim());});}a.setAttributes(l);}onResponseHeaders({request:t,response:r}){var n,i;let s=this._recordFromReq.get(t);if(!s)return;let{span:a,attributes:o}=s,u={[Ci.SemanticAttributes.HTTP_RESPONSE_STATUS_CODE]:r.statusCode},l=this.getConfig();(0, h0.safeExecuteInTheMiddle)(()=>{var p;return (p=l.responseHook)===null||p===void 0?void 0:p.call(l,a,{request:t,response:r})},p=>p&&this._diag.error("caught responseHook error: ",p),!0);let c=new Set;!((n=l.headersToSpanAttributes)===null||n===void 0)&&n.responseHeaders&&((i=l.headersToSpanAttributes)===null||i===void 0||i.responseHeaders.forEach(p=>c.add(p.toLowerCase())));for(let p=0;p<r.headers.length;p=p+2){let h=r.headers[p].toString().toLowerCase(),f=r.headers[p+1];if(c.has(h)&&(u[`http.response.header.${h}`]=f.toString()),h==="content-length"){let d=Number(f.toString());isNaN(d)||(u["http.response.header.content-length"]=d);}}a.setAttributes(u),a.setStatus({code:r.statusCode>=400?Ra.SpanStatusCode.ERROR:Ra.SpanStatusCode.UNSET}),s.attributes=Object.assign(o,u);}onDone({request:t}){let r=this._recordFromReq.get(t);if(!r)return;let{span:n,attributes:i,startTime:s}=r;n.end(),this._recordFromReq.delete(t),this.recordRequestDuration(i,s);}onError({request:t,error:r}){let n=this._recordFromReq.get(t);if(!n)return;let{span:i,attributes:s,startTime:a}=n;i.recordException(r),i.setStatus({code:Ra.SpanStatusCode.ERROR,message:r.message}),i.end(),this._recordFromReq.delete(t),s[Ci.SemanticAttributes.ERROR_TYPE]=r.message,this.recordRequestDuration(s,a);}recordRequestDuration(t,r){let n={};[Ci.SemanticAttributes.HTTP_RESPONSE_STATUS_CODE,Ci.SemanticAttributes.HTTP_REQUEST_METHOD,Ci.SemanticAttributes.SERVER_ADDRESS,Ci.SemanticAttributes.SERVER_PORT,Ci.SemanticAttributes.URL_SCHEME,Ci.SemanticAttributes.ERROR_TYPE].forEach(a=>{a in t&&(n[a]=t[a]);});let s=(0, HP.hrTimeToMilliseconds)((0, HP.hrTimeDuration)(r,(0, HP.hrTime)()))/1e3;this._httpClientDurationHistogram.record(s,n);}getRequestMethod(t){let r={CONNECT:!0,OPTIONS:!0,HEAD:!0,GET:!0,POST:!0,PUT:!0,PATCH:!0,DELETE:!0,TRACE:!0};return t.toUpperCase()in r?t.toUpperCase():"_OTHER"}};GP.UndiciInstrumentation=_2;});var Aoe=chunkTKGT252T_js.c(xoe=>{Object.defineProperty(xoe,"__esModule",{value:!0});});var Coe=chunkTKGT252T_js.c($p=>{var dnt=$p&&$p.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Poe=$p&&$p.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&dnt(t,e,r);};Object.defineProperty($p,"__esModule",{value:!0});Poe(_oe(),$p);Poe(Aoe(),$p);});var KP=chunkTKGT252T_js.c(y0=>{Object.defineProperty(y0,"__esModule",{value:!0});y0.ExpressLayerType=void 0;(function(e){e.ROUTER="router",e.MIDDLEWARE="middleware",e.REQUEST_HANDLER="request_handler";})(y0.ExpressLayerType||(y0.ExpressLayerType={}));});var YP=chunkTKGT252T_js.c(g0=>{Object.defineProperty(g0,"__esModule",{value:!0});g0.AttributeNames=void 0;(function(e){e.EXPRESS_TYPE="express.type",e.EXPRESS_NAME="express.name";})(g0.AttributeNames||(g0.AttributeNames={}));});var w2=chunkTKGT252T_js.c(By=>{Object.defineProperty(By,"__esModule",{value:!0});By._LAYERS_STORE_PROPERTY=By.kLayerPatched=void 0;By.kLayerPatched=Symbol("express-layer-patched");By._LAYERS_STORE_PROPERTY="__ot_middlewares";});var tue=chunkTKGT252T_js.c(so=>{Object.defineProperty(so,"__esModule",{value:!0});so.getLayerPath=so.asErrorAndMessage=so.isLayerIgnored=so.getLayerMetadata=so.storeLayerPath=void 0;var I2=KP(),jy=YP(),O2=w2(),Ait=(e,t)=>{Array.isArray(e[O2._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(e,O2._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),t!==void 0&&e[O2._LAYERS_STORE_PROPERTY].push(t);};so.storeLayerPath=Ait;var Pit=(e,t)=>e.name==="router"?{attributes:{[jy.AttributeNames.EXPRESS_NAME]:t,[jy.AttributeNames.EXPRESS_TYPE]:I2.ExpressLayerType.ROUTER},name:`router - ${t}`}:e.name==="bound dispatch"?{attributes:{[jy.AttributeNames.EXPRESS_NAME]:t??"request handler",[jy.AttributeNames.EXPRESS_TYPE]:I2.ExpressLayerType.REQUEST_HANDLER},name:`request handler${e.path?` - ${t}`:""}`}:{attributes:{[jy.AttributeNames.EXPRESS_NAME]:e.name,[jy.AttributeNames.EXPRESS_TYPE]:I2.ExpressLayerType.MIDDLEWARE},name:`middleware - ${e.name}`};so.getLayerMetadata=Pit;var Cit=(e,t)=>{if(typeof t=="string")return t===e;if(t instanceof RegExp)return t.test(e);if(typeof t=="function")return t(e);throw new TypeError("Pattern is in unsupported datatype")},wit=(e,t,r)=>{var n;if(Array.isArray(r==null?void 0:r.ignoreLayersType)&&(!((n=r==null?void 0:r.ignoreLayersType)===null||n===void 0)&&n.includes(t)))return !0;if(Array.isArray(r==null?void 0:r.ignoreLayers)===!1)return !1;try{for(let i of r.ignoreLayers)if(Cit(e,i))return !0}catch{}return !1};so.isLayerIgnored=wit;var Iit=e=>e instanceof Error?[e,e.message]:[String(e),String(e)];so.asErrorAndMessage=Iit;var Oit=e=>Array.isArray(e[0])?e[0].map(t=>eue(t)||"").join(","):eue(e[0]);so.getLayerPath=Oit;var eue=e=>{if(typeof e=="string")return e;if(e instanceof RegExp||typeof e=="number")return e.toString()};});var rue=chunkTKGT252T_js.c(Uy=>{Object.defineProperty(Uy,"__esModule",{value:!0});Uy.PACKAGE_NAME=Uy.PACKAGE_VERSION=void 0;Uy.PACKAGE_VERSION="0.42.0";Uy.PACKAGE_NAME="@opentelemetry/instrumentation-express";});var oue=chunkTKGT252T_js.c(WP=>{Object.defineProperty(WP,"__esModule",{value:!0});WP.ExpressInstrumentation=void 0;var nue=(jn(),chunkTKGT252T_js.f(eo)),Jh=(pt(),chunkTKGT252T_js.f(Gr)),iue=KP(),sue=YP(),Kp=tue(),aue=rue(),qy=(Rn(),chunkTKGT252T_js.f(zn)),Dit=(dn(),chunkTKGT252T_js.f(si)),S0=w2(),D2=class extends qy.InstrumentationBase{constructor(t={}){super(aue.PACKAGE_NAME,aue.PACKAGE_VERSION,t);}init(){return [new qy.InstrumentationNodeModuleDefinition("express",[">=4.0.0 <5"],t=>{let r=t.Router;return (0, qy.isWrapped)(r.route)&&this._unwrap(r,"route"),this._wrap(r,"route",this._getRoutePatch()),(0, qy.isWrapped)(r.use)&&this._unwrap(r,"use"),this._wrap(r,"use",this._getRouterUsePatch()),(0, qy.isWrapped)(t.application.use)&&this._unwrap(t.application,"use"),this._wrap(t.application,"use",this._getAppUsePatch()),t},t=>{if(t===void 0)return;let r=t.Router;this._unwrap(r,"route"),this._unwrap(r,"use"),this._unwrap(t.application,"use");})]}_getRoutePatch(){let t=this;return function(r){return function(...i){let s=r.apply(this,i),a=this.stack[this.stack.length-1];return t._applyPatch(a,(0, Kp.getLayerPath)(i)),s}}}_getRouterUsePatch(){let t=this;return function(r){return function(...i){let s=r.apply(this,i),a=this.stack[this.stack.length-1];return t._applyPatch(a,(0, Kp.getLayerPath)(i)),s}}}_getAppUsePatch(){let t=this;return function(r){return function(...i){let s=r.apply(this,i),a=this._router.stack[this._router.stack.length-1];return t._applyPatch(a,(0, Kp.getLayerPath)(i)),s}}}_applyPatch(t,r){let n=this;t[S0.kLayerPatched]!==!0&&(t[S0.kLayerPatched]=!0,this._wrap(t,"handle",i=>{if(i.length===4)return i;let s=function(a,o){(0, Kp.storeLayerPath)(a,r);let u=a[S0._LAYERS_STORE_PROPERTY].filter(S=>S!=="/"&&S!=="/*").join("").replace(/\/{2,}/g,"/"),l={[Dit.SEMATTRS_HTTP_ROUTE]:u.length>0?u:"/"},c=(0, Kp.getLayerMetadata)(t,r),p=c.attributes[sue.AttributeNames.EXPRESS_TYPE],h=(0, nue.getRPCMetadata)(Jh.context.active());if((h==null?void 0:h.type)===nue.RPCType.HTTP&&(h.route=u||"/"),(0, Kp.isLayerIgnored)(c.name,p,n.getConfig()))return p===iue.ExpressLayerType.MIDDLEWARE&&a[S0._LAYERS_STORE_PROPERTY].pop(),i.apply(this,arguments);if(Jh.trace.getSpan(Jh.context.active())===void 0)return i.apply(this,arguments);let f=n._getSpanName({request:a,layerType:p,route:u},c.name),d=n.tracer.startSpan(f,{attributes:Object.assign(l,c.attributes)}),{requestHook:m}=n.getConfig();m&&(0, qy.safeExecuteInTheMiddle)(()=>m(d,{request:a,layerType:p,route:u}),S=>{S&&Jh.diag.error("express instrumentation: request hook failed",S);},!0);let y=!1;c.attributes[sue.AttributeNames.EXPRESS_TYPE]!==iue.ExpressLayerType.MIDDLEWARE&&(d.end(),y=!0);let g=()=>{y===!1&&(y=!0,d.end());},v=Array.from(arguments),E=v.findIndex(S=>typeof S=="function");E>=0&&(arguments[E]=function(){var S;let x=arguments[0],b=![void 0,null,"route","router"].includes(x);if(!y&&b){let[D,P]=(0, Kp.asErrorAndMessage)(x);d.recordException(D),d.setStatus({code:Jh.SpanStatusCode.ERROR,message:P});}return y===!1&&(y=!0,(S=a.res)===null||S===void 0||S.removeListener("finish",g),d.end()),a.route&&b||a[S0._LAYERS_STORE_PROPERTY].pop(),v[E].apply(this,arguments)});try{return i.apply(this,arguments)}catch(S){let[x,b]=(0, Kp.asErrorAndMessage)(S);throw d.recordException(x),d.setStatus({code:Jh.SpanStatusCode.ERROR,message:b}),S}finally{y||o.once("finish",g);}};for(let a in i)Object.defineProperty(s,a,{get(){return i[a]},set(o){i[a]=o;}});return s}));}_getSpanName(t,r){var n;let{spanNameHook:i}=this.getConfig();if(!(i instanceof Function))return r;try{return (n=i(t,r))!==null&&n!==void 0?n:r}catch(s){return Jh.diag.error("express instrumentation: error calling span name rewrite hook",s),r}}};WP.ExpressInstrumentation=D2;});var lue=chunkTKGT252T_js.c(uue=>{Object.defineProperty(uue,"__esModule",{value:!0});});var cue=chunkTKGT252T_js.c(Gu=>{var Nit=Gu&&Gu.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),XP=Gu&&Gu.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Nit(t,e,r);};Object.defineProperty(Gu,"__esModule",{value:!0});XP(oue(),Gu);XP(KP(),Gu);XP(YP(),Gu);XP(lue(),Gu);});var N2=chunkTKGT252T_js.c(ru=>{Object.defineProperty(ru,"__esModule",{value:!0});ru.FastifyNames=ru.FastifyTypes=ru.AttributeNames=void 0;(function(e){e.FASTIFY_NAME="fastify.name",e.FASTIFY_TYPE="fastify.type",e.HOOK_NAME="hook.name",e.PLUGIN_NAME="plugin.name";})(ru.AttributeNames||(ru.AttributeNames={}));(function(e){e.MIDDLEWARE="middleware",e.REQUEST_HANDLER="request_handler";})(ru.FastifyTypes||(ru.FastifyTypes={}));(function(e){e.MIDDLEWARE="middleware",e.REQUEST_HANDLER="request handler";})(ru.FastifyNames||(ru.FastifyNames={}));});var yue=chunkTKGT252T_js.c(mue=>{Object.defineProperty(mue,"__esModule",{value:!0});});var R2=chunkTKGT252T_js.c(Vy=>{Object.defineProperty(Vy,"__esModule",{value:!0});Vy.hooksNamesToWrap=Vy.spanRequestSymbol=void 0;Vy.spanRequestSymbol=Symbol("opentelemetry.instrumentation.fastify.request_active_span");Vy.hooksNamesToWrap=new Set(["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError"]);});var Sue=chunkTKGT252T_js.c(Yp=>{Object.defineProperty(Yp,"__esModule",{value:!0});Yp.safeExecuteInTheMiddleMaybePromise=Yp.endSpan=Yp.startSpan=void 0;var Fit=(pt(),chunkTKGT252T_js.f(Gr)),JP=R2();function Bit(e,t,r,n={}){let i=t.startSpan(r,{attributes:n}),s=e[JP.spanRequestSymbol]||[];return s.push(i),Object.defineProperty(e,JP.spanRequestSymbol,{enumerable:!1,configurable:!0,value:s}),i}Yp.startSpan=Bit;function jit(e,t){let r=e[JP.spanRequestSymbol]||[];r.length&&(r.forEach(n=>{t&&(n.setStatus({code:Fit.SpanStatusCode.ERROR,message:t.message}),n.recordException(t)),n.end();}),delete e[JP.spanRequestSymbol]);}Yp.endSpan=jit;function Uit(e,t,r){let n,i;try{i=e(),gue(i)&&i.then(s=>t(void 0,s),s=>t(s));}catch(s){n=s;}finally{if(!gue(i)&&(t(n,i),n&&!r))throw n;return i}}Yp.safeExecuteInTheMiddleMaybePromise=Uit;function gue(e){var t;return typeof e=="object"&&e&&typeof((t=Object.getOwnPropertyDescriptor(e,"then"))===null||t===void 0?void 0:t.value)=="function"||!1}});var Tue=chunkTKGT252T_js.c(Hy=>{Object.defineProperty(Hy,"__esModule",{value:!0});Hy.PACKAGE_NAME=Hy.PACKAGE_VERSION=void 0;Hy.PACKAGE_VERSION="0.39.0";Hy.PACKAGE_NAME="@opentelemetry/instrumentation-fastify";});var vue=chunkTKGT252T_js.c(Xp=>{Object.defineProperty(Xp,"__esModule",{value:!0});Xp.FastifyInstrumentation=Xp.ANONYMOUS_NAME=void 0;var Wp=(pt(),chunkTKGT252T_js.f(Gr)),Eue=(jn(),chunkTKGT252T_js.f(eo)),QP=(Rn(),chunkTKGT252T_js.f(zn)),qit=(dn(),chunkTKGT252T_js.f(si)),Vit=R2(),$u=N2(),Gy=Sue(),bue=Tue();Xp.ANONYMOUS_NAME="anonymous";var M2=class extends QP.InstrumentationBase{constructor(t={}){super(bue.PACKAGE_NAME,bue.PACKAGE_VERSION,t);}init(){return [new QP.InstrumentationNodeModuleDefinition("fastify",[">=3.0.0 <5"],t=>this._patchConstructor(t))]}_hookOnRequest(){let t=this;return function(n,i,s){if(!t.isEnabled())return s();t._wrap(i,"send",t._patchSend());let a=n,o=(0, Eue.getRPCMetadata)(Wp.context.active()),u=a.routeOptions?a.routeOptions.url:n.routerPath;u&&(o==null?void 0:o.type)===Eue.RPCType.HTTP&&(o.route=u),s();}}_wrapHandler(t,r,n,i){let s=this;return this._diag.debug("Patching fastify route.handler function"),function(...a){if(!s.isEnabled())return n.apply(this,a);let o=n.name||t||Xp.ANONYMOUS_NAME,u=`${$u.FastifyNames.MIDDLEWARE} - ${o}`,l=a[1],c=(0, Gy.startSpan)(l,s.tracer,u,{[$u.AttributeNames.FASTIFY_TYPE]:$u.FastifyTypes.MIDDLEWARE,[$u.AttributeNames.PLUGIN_NAME]:t,[$u.AttributeNames.HOOK_NAME]:r}),p=i&&a[a.length-1];return p&&(a[a.length-1]=function(...h){(0, Gy.endSpan)(l),p.apply(this,h);}),Wp.context.with(Wp.trace.setSpan(Wp.context.active(),c),()=>(0, Gy.safeExecuteInTheMiddleMaybePromise)(()=>n.apply(this,a),h=>{h instanceof Error&&(c.setStatus({code:Wp.SpanStatusCode.ERROR,message:h.message}),c.recordException(h)),i||(0, Gy.endSpan)(l);}))}}_wrapAddHook(){let t=this;return this._diag.debug("Patching fastify server.addHook function"),function(r){return function(...i){let s=i[0],a=i[1],o=this.pluginName;if(!Vit.hooksNamesToWrap.has(s))return r.apply(this,i);let u=typeof i[i.length-1]=="function"&&a.constructor.name!=="AsyncFunction";return r.apply(this,[s,t._wrapHandler(o,s,a,u)])}}}_patchConstructor(t){let r=this;function n(...i){let s=t.fastify.apply(this,i);return s.addHook("onRequest",r._hookOnRequest()),s.addHook("preHandler",r._hookPreHandler()),r._wrap(s,"addHook",r._wrapAddHook()),s}return n.fastify=n,n.default=n,n}_patchSend(){let t=this;return this._diag.debug("Patching fastify reply.send function"),function(n){return function(...s){let a=s[0];return t.isEnabled()?(0, QP.safeExecuteInTheMiddle)(()=>n.apply(this,s),o=>{!o&&a instanceof Error&&(o=a),(0, Gy.endSpan)(this,o);}):n.apply(this,s)}}}_hookPreHandler(){let t=this;return this._diag.debug("Patching fastify preHandler function"),function(n,i,s){var a,o;if(!t.isEnabled())return s();let u=n,l=((a=u.routeOptions)===null||a===void 0?void 0:a.handler)||((o=u.context)===null||o===void 0?void 0:o.handler),c=l!=null&&l.name.startsWith("bound ")?l.name.substr(6):l==null?void 0:l.name,p=`${$u.FastifyNames.REQUEST_HANDLER} - ${c||this.pluginName||Xp.ANONYMOUS_NAME}`,h={[$u.AttributeNames.PLUGIN_NAME]:this.pluginName,[$u.AttributeNames.FASTIFY_TYPE]:$u.FastifyTypes.REQUEST_HANDLER,[qit.SEMATTRS_HTTP_ROUTE]:u.routeOptions?u.routeOptions.url:n.routerPath};c&&(h[$u.AttributeNames.FASTIFY_NAME]=c);let f=(0, Gy.startSpan)(i,t.tracer,p,h),{requestHook:d}=t.getConfig();return d&&(0, QP.safeExecuteInTheMiddle)(()=>d(f,{request:n}),m=>{m&&t._diag.error("request hook failed",m);},!0),Wp.context.with(Wp.trace.setSpan(Wp.context.active(),f),()=>{s();})}}};Xp.FastifyInstrumentation=M2;});var _ue=chunkTKGT252T_js.c(Kl=>{var Hit=Kl&&Kl.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),L2=Kl&&Kl.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Hit(t,e,r);};Object.defineProperty(Kl,"__esModule",{value:!0});L2(N2(),Kl);L2(yue(),Kl);L2(vue(),Kl);});var k2=chunkTKGT252T_js.c(nu=>{Object.defineProperty(nu,"__esModule",{value:!0});nu.SpanNames=nu.TokenKind=nu.AllowedOperationTypes=void 0;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription";})(nu.AllowedOperationTypes||(nu.AllowedOperationTypes={}));(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment";})(nu.TokenKind||(nu.TokenKind={}));(function(e){e.EXECUTE="graphql.execute",e.PARSE="graphql.parse",e.RESOLVE="graphql.resolve",e.VALIDATE="graphql.validate",e.SCHEMA_VALIDATE="graphql.validateSchema",e.SCHEMA_PARSE="graphql.parseSchema";})(nu.SpanNames||(nu.SpanNames={}));});var F2=chunkTKGT252T_js.c(T0=>{Object.defineProperty(T0,"__esModule",{value:!0});T0.AttributeNames=void 0;(function(e){e.SOURCE="graphql.source",e.FIELD_NAME="graphql.field.name",e.FIELD_PATH="graphql.field.path",e.FIELD_TYPE="graphql.field.type",e.OPERATION_TYPE="graphql.operation.type",e.OPERATION_NAME="graphql.operation.name",e.VARIABLES="graphql.variables.",e.ERROR_VALIDATION_NAME="graphql.validation.error";})(T0.AttributeNames||(T0.AttributeNames={}));});var ZP=chunkTKGT252T_js.c($y=>{Object.defineProperty($y,"__esModule",{value:!0});$y.OTEL_GRAPHQL_DATA_SYMBOL=$y.OTEL_PATCHED_SYMBOL=void 0;$y.OTEL_PATCHED_SYMBOL=Symbol.for("opentelemetry.patched");$y.OTEL_GRAPHQL_DATA_SYMBOL=Symbol.for("opentelemetry.graphql_data");});var wue=chunkTKGT252T_js.c(eC=>{Object.defineProperty(eC,"__esModule",{value:!0});eC.OPERATION_NOT_SUPPORTED=void 0;ZP();eC.OPERATION_NOT_SUPPORTED="Operation$operationName$not supported";});var Uue=chunkTKGT252T_js.c(Ii=>{Object.defineProperty(Ii,"__esModule",{value:!0});Ii.wrapFieldResolver=Ii.wrapFields=Ii.getSourceFromLocation=Ii.getOperation=Ii.endSpan=Ii.addSpanSource=Ii.addInputVariableAttributes=Ii.isPromise=void 0;var Yy=(pt(),chunkTKGT252T_js.f(Gr)),zp=k2(),Ky=F2(),Yl=ZP(),Iue=Object.values(zp.AllowedOperationTypes),zit=e=>typeof(e==null?void 0:e.then)=="function";Ii.isPromise=zit;var Jit=e=>typeof e=="object"&&e!==null;function B2(e,t,r){Array.isArray(r)?r.forEach((n,i)=>{B2(e,`${t}.${i}`,n);}):r instanceof Object?Object.entries(r).forEach(([n,i])=>{B2(e,`${t}.${n}`,i);}):e.setAttribute(`${Ky.AttributeNames.VARIABLES}${String(t)}`,r);}function Qit(e,t){Object.entries(t).forEach(([r,n])=>{B2(e,r,n);});}Ii.addInputVariableAttributes=Qit;function Rue(e,t,r,n,i){let s=Fue(t,r,n,i);e.setAttribute(Ky.AttributeNames.SOURCE,s);}Ii.addSpanSource=Rue;function Zit(e,t,r,n,i){let s=Mue(r,i),a=!1;if(!s){a=!0;let o=Lue(r,i);s={parent:o,span:est(e,t,r,n,i,o.span),error:null},nst(r,i,s);}return {spanAdded:a,field:s}}function est(e,t,r,n,i,s){var a,o;let u={[Ky.AttributeNames.FIELD_NAME]:n.fieldName,[Ky.AttributeNames.FIELD_PATH]:i.join("."),[Ky.AttributeNames.FIELD_TYPE]:n.returnType.toString()},l=e.startSpan(`${zp.SpanNames.RESOLVE} ${u[Ky.AttributeNames.FIELD_PATH]}`,{attributes:u},s?Yy.trace.setSpan(Yy.context.active(),s):void 0),c=r[Yl.OTEL_GRAPHQL_DATA_SYMBOL].source,p=n.fieldNodes.find(h=>h.kind==="Field");return p&&Rue(l,c.loc,t().allowValues,(a=p.loc)===null||a===void 0?void 0:a.start,(o=p.loc)===null||o===void 0?void 0:o.end),l}function tst(e,t){t&&e.recordException(t),e.end();}Ii.endSpan=tst;function rst(e,t){if(!(!e||!Array.isArray(e.definitions)))return t?e.definitions.filter(r=>{var n;return Iue.indexOf((n=r)===null||n===void 0?void 0:n.operation)!==-1}).find(r=>{var n,i;return t===((i=(n=r)===null||n===void 0?void 0:n.name)===null||i===void 0?void 0:i.value)}):e.definitions.find(r=>{var n;return Iue.indexOf((n=r)===null||n===void 0?void 0:n.operation)!==-1})}Ii.getOperation=rst;function nst(e,t,r){return e[Yl.OTEL_GRAPHQL_DATA_SYMBOL].fields[t.join(".")]=r}function Mue(e,t){return e[Yl.OTEL_GRAPHQL_DATA_SYMBOL].fields[t.join(".")]}function Lue(e,t){for(let r=t.length-1;r>0;r--){let n=Mue(e,t.slice(0,r));if(n)return n}return {span:e[Yl.OTEL_GRAPHQL_DATA_SYMBOL].span}}function ist(e,t){let r=[],n=t;for(;n;){let i=n.key;e&&typeof i=="number"&&(i="*"),r.push(String(i)),n=n.prev;}return r.reverse()}function sst(e){return kue(`
`,e)}function Oue(e){return kue(" ",e)}function kue(e,t){let r="";for(let n=0;n<t;n++)r+=e;return r}var ast=[zp.TokenKind.FLOAT,zp.TokenKind.STRING,zp.TokenKind.INT,zp.TokenKind.BLOCK_STRING];function Fue(e,t=!1,r,n){var i,s;let a="";if(e!=null&&e.startToken){let o=typeof r=="number"?r:e.start,u=typeof n=="number"?n:e.end,l=e.startToken.next,c=1;for(;l;){if(l.start<o){l=l.next,c=l==null?void 0:l.line;continue}if(l.end>u){l=l.next,c=l==null?void 0:l.line;continue}let p=l.value||l.kind,h="";!t&&ast.indexOf(l.kind)>=0&&(p="*"),l.kind===zp.TokenKind.STRING&&(p=`"${p}"`),l.kind===zp.TokenKind.EOF&&(p=""),l.line>c?(a+=sst(l.line-c),c=l.line,h=Oue(l.column-1)):l.line===((i=l.prev)===null||i===void 0?void 0:i.line)&&(h=Oue(l.start-(((s=l.prev)===null||s===void 0?void 0:s.end)||0))),a+=h+p,l&&(l=l.next);}}return a}Ii.getSourceFromLocation=Fue;function Bue(e,t,r){if(!e||typeof e.getFields!="function"||e[Yl.OTEL_PATCHED_SYMBOL])return;let n=e.getFields();e[Yl.OTEL_PATCHED_SYMBOL]=!0,Object.keys(n).forEach(i=>{let s=n[i];if(s&&(s.resolve&&(s.resolve=jue(t,r,s.resolve)),s.type)){let a=s.type;for(;a.ofType;)a=a.ofType;Bue(a,t,r);}});}Ii.wrapFields=Bue;var Due=(e,t,r)=>{r&&(e.recordException(t),e.setStatus({code:Yy.SpanStatusCode.ERROR,message:t.message}),e.end());},Nue=(e,t)=>{t&&e.end();};function jue(e,t,r,n=!1){if(i[Yl.OTEL_PATCHED_SYMBOL]||typeof r!="function")return r;function i(s,a,o,u){if(!r)return;let l=t();if(l.ignoreTrivialResolveSpans&&n&&(Jit(s)||typeof s=="function")&&typeof s[u.fieldName]!="function")return r.call(this,s,a,o,u);if(!o[Yl.OTEL_GRAPHQL_DATA_SYMBOL])return r.call(this,s,a,o,u);let c=ist(l.mergeItems,u&&u.path),p=c.filter(d=>typeof d=="string").length,h,f=!1;if(l.depth>=0&&l.depth<p)h=Lue(o,c);else {let d=Zit(e,t,o,u,c);h=d.field,f=d.spanAdded;}return Yy.context.with(Yy.trace.setSpan(Yy.context.active(),h.span),()=>{try{let d=r.call(this,s,a,o,u);return (0,Ii.isPromise)(d)?d.then(m=>(Nue(h.span,f),m),m=>{throw Due(h.span,m,f),m}):(Nue(h.span,f),d)}catch(d){throw Due(h.span,d,f),d}})}return i[Yl.OTEL_PATCHED_SYMBOL]=!0,i}Ii.wrapFieldResolver=jue;});var que=chunkTKGT252T_js.c(Wy=>{Object.defineProperty(Wy,"__esModule",{value:!0});Wy.PACKAGE_NAME=Wy.PACKAGE_VERSION=void 0;Wy.PACKAGE_VERSION="0.43.0";Wy.PACKAGE_NAME="@opentelemetry/instrumentation-graphql";});var Gue=chunkTKGT252T_js.c(nC=>{Object.defineProperty(nC,"__esModule",{value:!0});nC.GraphQLInstrumentation=void 0;var Wl=(pt(),chunkTKGT252T_js.f(Gr)),ao=(Rn(),chunkTKGT252T_js.f(zn)),E0=k2(),tC=F2(),j2=ZP(),ost=wue(),hs=Uue(),Vue=que(),Hue={mergeItems:!1,depth:-1,allowValues:!1,ignoreResolveSpans:!1},rC=[">=14.0.0 <17"],U2=class extends ao.InstrumentationBase{constructor(t={}){super(Vue.PACKAGE_NAME,Vue.PACKAGE_VERSION,Object.assign(Object.assign({},Hue),t));}setConfig(t={}){super.setConfig(Object.assign(Object.assign({},Hue),t));}init(){let t=new ao.InstrumentationNodeModuleDefinition("graphql",rC);return t.files.push(this._addPatchingExecute()),t.files.push(this._addPatchingParser()),t.files.push(this._addPatchingValidate()),t}_addPatchingExecute(){return new ao.InstrumentationNodeModuleFile("graphql/execution/execute.js",rC,t=>((0, ao.isWrapped)(t.execute)&&this._unwrap(t,"execute"),this._wrap(t,"execute",this._patchExecute(t.defaultFieldResolver)),t),t=>{t&&this._unwrap(t,"execute");})}_addPatchingParser(){return new ao.InstrumentationNodeModuleFile("graphql/language/parser.js",rC,t=>((0, ao.isWrapped)(t.parse)&&this._unwrap(t,"parse"),this._wrap(t,"parse",this._patchParse()),t),t=>{t&&this._unwrap(t,"parse");})}_addPatchingValidate(){return new ao.InstrumentationNodeModuleFile("graphql/validation/validate.js",rC,t=>((0, ao.isWrapped)(t.validate)&&this._unwrap(t,"validate"),this._wrap(t,"validate",this._patchValidate()),t),t=>{t&&this._unwrap(t,"validate");})}_patchExecute(t){let r=this;return function(i){return function(){let a;if(arguments.length>=2){let l=arguments;a=r._wrapExecuteArgs(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],t);}else {let l=arguments[0];a=r._wrapExecuteArgs(l.schema,l.document,l.rootValue,l.contextValue,l.variableValues,l.operationName,l.fieldResolver,l.typeResolver,t);}let o=(0, hs.getOperation)(a.document,a.operationName),u=r._createExecuteSpan(o,a);return a.contextValue[j2.OTEL_GRAPHQL_DATA_SYMBOL]={source:a.document?a.document||a.document[j2.OTEL_GRAPHQL_DATA_SYMBOL]:void 0,span:u,fields:{}},Wl.context.with(Wl.trace.setSpan(Wl.context.active(),u),()=>(0, ao.safeExecuteInTheMiddle)(()=>i.apply(this,[a]),(l,c)=>{r._handleExecutionResult(u,l,c);}))}}}_handleExecutionResult(t,r,n){let i=this.getConfig();if(n===void 0||r){(0, hs.endSpan)(t,r);return}if((0, hs.isPromise)(n))n.then(s=>{if(typeof i.responseHook!="function"){(0, hs.endSpan)(t);return}this._executeResponseHook(t,s);},s=>{(0, hs.endSpan)(t,s);});else {if(typeof i.responseHook!="function"){(0, hs.endSpan)(t);return}this._executeResponseHook(t,n);}}_executeResponseHook(t,r){let{responseHook:n}=this.getConfig();n&&(0, ao.safeExecuteInTheMiddle)(()=>{n(t,r);},i=>{i&&this._diag.error("Error running response hook",i),(0, hs.endSpan)(t,void 0);},!0);}_patchParse(){let t=this;return function(n){return function(s,a){return t._parse(this,n,s,a)}}}_patchValidate(){let t=this;return function(n){return function(s,a,o,u,l){return t._validate(this,n,s,a,o,l,u)}}}_parse(t,r,n,i){let s=this.getConfig(),a=this.tracer.startSpan(E0.SpanNames.PARSE);return Wl.context.with(Wl.trace.setSpan(Wl.context.active(),a),()=>(0, ao.safeExecuteInTheMiddle)(()=>r.call(t,n,i),(o,u)=>{u&&((0, hs.getOperation)(u)?u.loc&&(0, hs.addSpanSource)(a,u.loc,s.allowValues):a.updateName(E0.SpanNames.SCHEMA_PARSE)),(0, hs.endSpan)(a,o);}))}_validate(t,r,n,i,s,a,o){let u=this.tracer.startSpan(E0.SpanNames.VALIDATE,{});return Wl.context.with(Wl.trace.setSpan(Wl.context.active(),u),()=>(0, ao.safeExecuteInTheMiddle)(()=>r.call(t,n,i,s,o,a),(l,c)=>{i.loc||u.updateName(E0.SpanNames.SCHEMA_VALIDATE),c&&c.length&&u.recordException({name:tC.AttributeNames.ERROR_VALIDATION_NAME,message:JSON.stringify(c)}),(0, hs.endSpan)(u,l);}))}_createExecuteSpan(t,r){var n;let i=this.getConfig(),s=this.tracer.startSpan(E0.SpanNames.EXECUTE,{});if(t){let{operation:a,name:o}=t;s.setAttribute(tC.AttributeNames.OPERATION_TYPE,a);let u=o==null?void 0:o.value;u?(s.setAttribute(tC.AttributeNames.OPERATION_NAME,u),s.updateName(`${a} ${u}`)):s.updateName(a);}else {let a=" ";r.operationName&&(a=` "${r.operationName}" `),a=ost.OPERATION_NOT_SUPPORTED.replace("$operationName$",a),s.setAttribute(tC.AttributeNames.OPERATION_NAME,a);}return !((n=r.document)===null||n===void 0)&&n.loc&&(0, hs.addSpanSource)(s,r.document.loc,i.allowValues),r.variableValues&&i.allowValues&&(0, hs.addInputVariableAttributes)(s,r.variableValues),s}_wrapExecuteArgs(t,r,n,i,s,a,o,u,l){if(i||(i={}),i[j2.OTEL_GRAPHQL_DATA_SYMBOL]||this.getConfig().ignoreResolveSpans)return {schema:t,document:r,rootValue:n,contextValue:i,variableValues:s,operationName:a,fieldResolver:o,typeResolver:u};let c=o==null,p=o??l;return o=(0, hs.wrapFieldResolver)(this.tracer,()=>this.getConfig(),p,c),t&&((0, hs.wrapFields)(t.getQueryType(),this.tracer,()=>this.getConfig()),(0, hs.wrapFields)(t.getMutationType(),this.tracer,()=>this.getConfig())),{schema:t,document:r,rootValue:n,contextValue:i,variableValues:s,operationName:a,fieldResolver:o,typeResolver:u}}};nC.GraphQLInstrumentation=U2;});var Kue=chunkTKGT252T_js.c($ue=>{Object.defineProperty($ue,"__esModule",{value:!0});});var Wue=chunkTKGT252T_js.c(Jp=>{var ust=Jp&&Jp.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Yue=Jp&&Jp.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ust(t,e,r);};Object.defineProperty(Jp,"__esModule",{value:!0});Yue(Gue(),Jp);Yue(Kue(),Jp);});var Zue=chunkTKGT252T_js.c(Xy=>{Object.defineProperty(Xy,"__esModule",{value:!0});Xy.PACKAGE_NAME=Xy.PACKAGE_VERSION=void 0;Xy.PACKAGE_VERSION="0.3.0";Xy.PACKAGE_NAME="@opentelemetry/instrumentation-kafkajs";});var ele=chunkTKGT252T_js.c(iC=>{Object.defineProperty(iC,"__esModule",{value:!0});iC.bufferTextMapGetter=void 0;iC.bufferTextMapGetter={get(e,t){var r;if(!e)return;let n=Object.keys(e);for(let i of n)if(i===t||i.toLowerCase()===t)return (r=e[i])===null||r===void 0?void 0:r.toString()},keys(e){return e?Object.keys(e):[]}};});var nle=chunkTKGT252T_js.c(sC=>{Object.defineProperty(sC,"__esModule",{value:!0});sC.KafkaJsInstrumentation=void 0;var zi=(pt(),chunkTKGT252T_js.f(Gr)),Qp=(dn(),chunkTKGT252T_js.f(si)),tle=Zue(),rle=ele(),iu=(Rn(),chunkTKGT252T_js.f(zn)),q2=class extends iu.InstrumentationBase{constructor(t={}){super(tle.PACKAGE_NAME,tle.PACKAGE_VERSION,t);}init(){let t=n=>{var i,s;(0, iu.isWrapped)((i=n==null?void 0:n.Kafka)===null||i===void 0?void 0:i.prototype.producer)&&this._unwrap(n.Kafka.prototype,"producer"),(0, iu.isWrapped)((s=n==null?void 0:n.Kafka)===null||s===void 0?void 0:s.prototype.consumer)&&this._unwrap(n.Kafka.prototype,"consumer");};return new iu.InstrumentationNodeModuleDefinition("kafkajs",[">=0.1.0 <3"],n=>{var i,s;return t(n),this._wrap((i=n==null?void 0:n.Kafka)===null||i===void 0?void 0:i.prototype,"producer",this._getProducerPatch()),this._wrap((s=n==null?void 0:n.Kafka)===null||s===void 0?void 0:s.prototype,"consumer",this._getConsumerPatch()),n},t)}_getConsumerPatch(){let t=this;return r=>function(...i){let s=r.apply(this,i);return (0, iu.isWrapped)(s.run)&&t._unwrap(s,"run"),t._wrap(s,"run",t._getConsumerRunPatch()),s}}_getProducerPatch(){let t=this;return r=>function(...i){let s=r.apply(this,i);return (0, iu.isWrapped)(s.sendBatch)&&t._unwrap(s,"sendBatch"),t._wrap(s,"sendBatch",t._getProducerSendBatchPatch()),(0, iu.isWrapped)(s.send)&&t._unwrap(s,"send"),t._wrap(s,"send",t._getProducerSendPatch()),s}}_getConsumerRunPatch(){let t=this;return r=>function(...i){let s=i[0];return s!=null&&s.eachMessage&&((0, iu.isWrapped)(s.eachMessage)&&t._unwrap(s,"eachMessage"),t._wrap(s,"eachMessage",t._getConsumerEachMessagePatch())),s!=null&&s.eachBatch&&((0, iu.isWrapped)(s.eachBatch)&&t._unwrap(s,"eachBatch"),t._wrap(s,"eachBatch",t._getConsumerEachBatchPatch())),r.call(this,s)}}_getConsumerEachMessagePatch(){let t=this;return r=>function(...i){let s=i[0],a=zi.propagation.extract(zi.ROOT_CONTEXT,s.message.headers,rle.bufferTextMapGetter),o=t._startConsumerSpan(s.topic,s.message,Qp.MESSAGINGOPERATIONVALUES_PROCESS,a),u=zi.context.with(zi.trace.setSpan(a,o),()=>r.apply(this,i));return t._endSpansOnPromise([o],u)}}_getConsumerEachBatchPatch(){return t=>{let r=this;return function(...i){let s=i[0],a=r._startConsumerSpan(s.batch.topic,void 0,Qp.MESSAGINGOPERATIONVALUES_RECEIVE,zi.ROOT_CONTEXT);return zi.context.with(zi.trace.setSpan(zi.context.active(),a),()=>{let o=s.batch.messages.map(l=>{var c;let p=zi.propagation.extract(zi.ROOT_CONTEXT,l.headers,rle.bufferTextMapGetter),h=(c=zi.trace.getSpan(p))===null||c===void 0?void 0:c.spanContext(),f;return h&&(f={context:h}),r._startConsumerSpan(s.batch.topic,l,Qp.MESSAGINGOPERATIONVALUES_PROCESS,void 0,f)}),u=t.apply(this,i);return o.unshift(a),r._endSpansOnPromise(o,u)})}}}_getProducerSendBatchPatch(){let t=this;return r=>function(...i){let o=(i[0].topicMessages||[]).map(l=>l.messages.map(c=>t._startProducerSpan(l.topic,c))).reduce((l,c)=>l.concat(c),[]),u=r.apply(this,i);return t._endSpansOnPromise(o,u)}}_getProducerSendPatch(){let t=this;return r=>function(...i){let s=i[0],a=s.messages.map(u=>t._startProducerSpan(s.topic,u)),o=r.apply(this,i);return t._endSpansOnPromise(a,o)}}_endSpansOnPromise(t,r){return Promise.resolve(r).catch(n=>{let i;throw typeof n=="string"?i=n:typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"message")&&(i=n.message),t.forEach(s=>s.setStatus({code:zi.SpanStatusCode.ERROR,message:i})),n}).finally(()=>{t.forEach(n=>n.end());})}_startConsumerSpan(t,r,n,i,s){let a=this.tracer.startSpan(t,{kind:zi.SpanKind.CONSUMER,attributes:{[Qp.SEMATTRS_MESSAGING_SYSTEM]:"kafka",[Qp.SEMATTRS_MESSAGING_DESTINATION]:t,[Qp.SEMATTRS_MESSAGING_OPERATION]:n},links:s?[s]:[]},i),{consumerHook:o}=this.getConfig();return o&&r&&(0, iu.safeExecuteInTheMiddle)(()=>o(a,{topic:t,message:r}),u=>{u&&this._diag.error("consumerHook error",u);},!0),a}_startProducerSpan(t,r){var n;let i=this.tracer.startSpan(t,{kind:zi.SpanKind.PRODUCER,attributes:{[Qp.SEMATTRS_MESSAGING_SYSTEM]:"kafka",[Qp.SEMATTRS_MESSAGING_DESTINATION]:t}});r.headers=(n=r.headers)!==null&&n!==void 0?n:{},zi.propagation.inject(zi.trace.setSpan(zi.context.active(),i),r.headers);let{producerHook:s}=this.getConfig();return s&&(0, iu.safeExecuteInTheMiddle)(()=>s(i,{topic:t,message:r}),a=>{a&&this._diag.error("producerHook error",a);},!0),i}};sC.KafkaJsInstrumentation=q2;});var sle=chunkTKGT252T_js.c(ile=>{Object.defineProperty(ile,"__esModule",{value:!0});});var ole=chunkTKGT252T_js.c(Zp=>{var cst=Zp&&Zp.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),ale=Zp&&Zp.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&cst(t,e,r);};Object.defineProperty(Zp,"__esModule",{value:!0});ale(nle(),Zp);ale(sle(),Zp);});var fle=chunkTKGT252T_js.c(b0=>{Object.defineProperty(b0,"__esModule",{value:!0});b0.MongodbCommandType=void 0;(function(e){e.CREATE_INDEXES="createIndexes",e.FIND_AND_MODIFY="findAndModify",e.IS_MASTER="isMaster",e.COUNT="count",e.AGGREGATE="aggregate",e.UNKNOWN="unknown";})(b0.MongodbCommandType||(b0.MongodbCommandType={}));});var hle=chunkTKGT252T_js.c(zy=>{Object.defineProperty(zy,"__esModule",{value:!0});zy.PACKAGE_NAME=zy.PACKAGE_VERSION=void 0;zy.PACKAGE_VERSION="0.47.0";zy.PACKAGE_NAME="@opentelemetry/instrumentation-mongodb";});var mle=chunkTKGT252T_js.c(aC=>{Object.defineProperty(aC,"__esModule",{value:!0});aC.MongoDBInstrumentation=void 0;var Un=(pt(),chunkTKGT252T_js.f(Gr)),xn=(Rn(),chunkTKGT252T_js.f(zn)),Xl=(dn(),chunkTKGT252T_js.f(si)),ef=fle(),dle=hle(),V2=class e extends xn.InstrumentationBase{constructor(t={}){super(dle.PACKAGE_NAME,dle.PACKAGE_VERSION,t);}_updateMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter("db.client.connections.usage",{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"});}init(){let{v3PatchConnection:t,v3UnpatchConnection:r}=this._getV3ConnectionPatches(),{v4PatchConnect:n,v4UnpatchConnect:i}=this._getV4ConnectPatches(),{v4PatchConnectionCallback:s,v4PatchConnectionPromise:a,v4UnpatchConnection:o}=this._getV4ConnectionPatches(),{v4PatchConnectionPool:u,v4UnpatchConnectionPool:l}=this._getV4ConnectionPoolPatches(),{v4PatchSessions:c,v4UnpatchSessions:p}=this._getV4SessionsPatches();return [new xn.InstrumentationNodeModuleDefinition("mongodb",[">=3.3.0 <4"],void 0,void 0,[new xn.InstrumentationNodeModuleFile("mongodb/lib/core/wireprotocol/index.js",[">=3.3.0 <4"],t,r)]),new xn.InstrumentationNodeModuleDefinition("mongodb",[">=4.0.0 <7"],void 0,void 0,[new xn.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=4.0.0 <6.4"],s,o),new xn.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection.js",[">=6.4.0 <7"],a,o),new xn.InstrumentationNodeModuleFile("mongodb/lib/cmap/connection_pool.js",[">=4.0.0 <6.4"],u,l),new xn.InstrumentationNodeModuleFile("mongodb/lib/cmap/connect.js",[">=4.0.0 <7"],n,i),new xn.InstrumentationNodeModuleFile("mongodb/lib/sessions.js",[">=4.0.0 <7"],c,p)])]}_getV3ConnectionPatches(){return {v3PatchConnection:t=>((0, xn.isWrapped)(t.insert)&&this._unwrap(t,"insert"),this._wrap(t,"insert",this._getV3PatchOperation("insert")),(0, xn.isWrapped)(t.remove)&&this._unwrap(t,"remove"),this._wrap(t,"remove",this._getV3PatchOperation("remove")),(0, xn.isWrapped)(t.update)&&this._unwrap(t,"update"),this._wrap(t,"update",this._getV3PatchOperation("update")),(0, xn.isWrapped)(t.command)&&this._unwrap(t,"command"),this._wrap(t,"command",this._getV3PatchCommand()),(0, xn.isWrapped)(t.query)&&this._unwrap(t,"query"),this._wrap(t,"query",this._getV3PatchFind()),(0, xn.isWrapped)(t.getMore)&&this._unwrap(t,"getMore"),this._wrap(t,"getMore",this._getV3PatchCursor()),t),v3UnpatchConnection:t=>{t!==void 0&&(this._unwrap(t,"insert"),this._unwrap(t,"remove"),this._unwrap(t,"update"),this._unwrap(t,"command"),this._unwrap(t,"query"),this._unwrap(t,"getMore"));}}}_getV4SessionsPatches(){return {v4PatchSessions:t=>((0, xn.isWrapped)(t.acquire)&&this._unwrap(t,"acquire"),this._wrap(t.ServerSessionPool.prototype,"acquire",this._getV4AcquireCommand()),(0, xn.isWrapped)(t.release)&&this._unwrap(t,"release"),this._wrap(t.ServerSessionPool.prototype,"release",this._getV4ReleaseCommand()),t),v4UnpatchSessions:t=>{t!==void 0&&((0, xn.isWrapped)(t.acquire)&&this._unwrap(t,"acquire"),(0, xn.isWrapped)(t.release)&&this._unwrap(t,"release"));}}}_getV4AcquireCommand(){let t=this;return r=>function(){let i=this.sessions.length,s=r.call(this),a=this.sessions.length;return i===a?t._connectionsUsage.add(1,{state:"used","pool.name":t._poolName}):i-1===a&&(t._connectionsUsage.add(-1,{state:"idle","pool.name":t._poolName}),t._connectionsUsage.add(1,{state:"used","pool.name":t._poolName})),s}}_getV4ReleaseCommand(){let t=this;return r=>function(i){let s=r.call(this,i);return t._connectionsUsage.add(-1,{state:"used","pool.name":t._poolName}),t._connectionsUsage.add(1,{state:"idle","pool.name":t._poolName}),s}}_getV4ConnectionPoolPatches(){return {v4PatchConnectionPool:t=>{let r=t.ConnectionPool.prototype;return (0, xn.isWrapped)(r.checkOut)&&this._unwrap(r,"checkOut"),this._wrap(r,"checkOut",this._getV4ConnectionPoolCheckOut()),t},v4UnpatchConnectionPool:t=>{t!==void 0&&this._unwrap(t.ConnectionPool.prototype,"checkOut");}}}_getV4ConnectPatches(){return {v4PatchConnect:t=>((0, xn.isWrapped)(t.connect)&&this._unwrap(t,"connect"),this._wrap(t,"connect",this._getV4ConnectCommand()),t),v4UnpatchConnect:t=>{t!==void 0&&this._unwrap(t,"connect");}}}_getV4ConnectionPoolCheckOut(){return t=>function(n){let i=Un.context.bind(Un.context.active(),n);return t.call(this,i)}}_getV4ConnectCommand(){let t=this;return r=>function(i,s){if(r.length===1){let o=r.call(this,i);return o&&typeof o.then=="function"&&o.then(()=>t.setPoolName(i),()=>{}),o}let a=function(o,u){if(o||!u){s(o,u);return}t.setPoolName(i),s(o,u);};return r.call(this,i,a)}}_getV4ConnectionPatches(){return {v4PatchConnectionCallback:t=>((0, xn.isWrapped)(t.Connection.prototype.command)&&this._unwrap(t.Connection.prototype,"command"),this._wrap(t.Connection.prototype,"command",this._getV4PatchCommandCallback()),t),v4PatchConnectionPromise:t=>((0, xn.isWrapped)(t.Connection.prototype.command)&&this._unwrap(t.Connection.prototype,"command"),this._wrap(t.Connection.prototype,"command",this._getV4PatchCommandPromise()),t),v4UnpatchConnection:t=>{t!==void 0&&this._unwrap(t.Connection.prototype,"command");}}}_getV3PatchOperation(t){let r=this;return n=>function(s,a,o,u,l){let c=Un.trace.getSpan(Un.context.active()),p=typeof u=="function"?u:l;if(!c||typeof p!="function"||typeof o!="object")return typeof u=="function"?n.call(this,s,a,o,u):n.call(this,s,a,o,u,l);let h=r.tracer.startSpan(`mongodb.${t}`,{kind:Un.SpanKind.CLIENT});r._populateV3Attributes(h,a,s,o[0],t);let f=r._patchEnd(h,p);return typeof u=="function"?n.call(this,s,a,o,f):n.call(this,s,a,o,u,f)}}_getV3PatchCommand(){let t=this;return r=>function(i,s,a,o,u){let l=Un.trace.getSpan(Un.context.active()),c=typeof o=="function"?o:u;if(!l||typeof c!="function"||typeof a!="object")return typeof o=="function"?r.call(this,i,s,a,o):r.call(this,i,s,a,o,u);let p=e._getCommandType(a),h=p===ef.MongodbCommandType.UNKNOWN?"command":p,f=t.tracer.startSpan(`mongodb.${h}`,{kind:Un.SpanKind.CLIENT}),d=p===ef.MongodbCommandType.UNKNOWN?void 0:p;t._populateV3Attributes(f,s,i,a,d);let m=t._patchEnd(f,c);return typeof o=="function"?r.call(this,i,s,a,m):r.call(this,i,s,a,o,m)}}_getV4PatchCommandCallback(){let t=this;return r=>function(i,s,a,o){let u=Un.trace.getSpan(Un.context.active()),l=o,c=Object.keys(s)[0];if(typeof l!="function"||typeof s!="object"||s.ismaster||s.hello)return r.call(this,i,s,a,o);let p;u&&(p=t.tracer.startSpan(`mongodb.${c}`,{kind:Un.SpanKind.CLIENT}),t._populateV4Attributes(p,this,i,s,c));let h=t._patchEnd(p,l,this.id,c);return r.call(this,i,s,a,h)}}_getV4PatchCommandPromise(){let t=this;return r=>function(...i){let[s,a]=i,o=Un.trace.getSpan(Un.context.active()),u=Object.keys(a)[0],l=()=>{};if(typeof a!="object"||a.ismaster||a.hello)return r.apply(this,i);let c;o&&(c=t.tracer.startSpan(`mongodb.${u}`,{kind:Un.SpanKind.CLIENT}),t._populateV4Attributes(c,this,s,a,u));let p=t._patchEnd(c,l,this.id,u),h=r.apply(this,i);return h.then(f=>p(null,f),f=>p(f)),h}}_getV3PatchFind(){let t=this;return r=>function(i,s,a,o,u,l){let c=Un.trace.getSpan(Un.context.active()),p=typeof u=="function"?u:l;if(!c||typeof p!="function"||typeof a!="object")return typeof u=="function"?r.call(this,i,s,a,o,u):r.call(this,i,s,a,o,u,l);let h=t.tracer.startSpan("mongodb.find",{kind:Un.SpanKind.CLIENT});t._populateV3Attributes(h,s,i,a,"find");let f=t._patchEnd(h,p);return typeof u=="function"?r.call(this,i,s,a,o,f):r.call(this,i,s,a,o,u,f)}}_getV3PatchCursor(){let t=this;return r=>function(i,s,a,o,u,l){let c=Un.trace.getSpan(Un.context.active()),p=typeof u=="function"?u:l;if(!c||typeof p!="function")return typeof u=="function"?r.call(this,i,s,a,o,u):r.call(this,i,s,a,o,u,l);let h=t.tracer.startSpan("mongodb.getMore",{kind:Un.SpanKind.CLIENT});t._populateV3Attributes(h,s,i,a.cmd,"getMore");let f=t._patchEnd(h,p);return typeof u=="function"?r.call(this,i,s,a,o,f):r.call(this,i,s,a,o,u,f)}}static _getCommandType(t){return t.createIndexes!==void 0?ef.MongodbCommandType.CREATE_INDEXES:t.findandmodify!==void 0?ef.MongodbCommandType.FIND_AND_MODIFY:t.ismaster!==void 0?ef.MongodbCommandType.IS_MASTER:t.count!==void 0?ef.MongodbCommandType.COUNT:t.aggregate!==void 0?ef.MongodbCommandType.AGGREGATE:ef.MongodbCommandType.UNKNOWN}_populateV4Attributes(t,r,n,i,s){let a,o;if(r){let l=typeof r.address=="string"?r.address.split(":"):"";l.length===2&&(a=l[0],o=l[1]);}let u;i!=null&&i.documents&&i.documents[0]?u=i.documents[0]:i!=null&&i.cursors?u=i.cursors:u=i,this._addAllSpanAttributes(t,n.db,n.collection,a,o,u,s);}_populateV3Attributes(t,r,n,i,s){var a,o,u,l,c,p,h,f;let d,m;if(n&&n.s&&(d=(o=(a=n.s.options)===null||a===void 0?void 0:a.host)!==null&&o!==void 0?o:n.s.host,m=(c=(l=(u=n.s.options)===null||u===void 0?void 0:u.port)!==null&&l!==void 0?l:n.s.port)===null||c===void 0?void 0:c.toString(),d==null||m==null)){let E=(p=n.description)===null||p===void 0?void 0:p.address;if(E){let S=E.split(":");d=S[0],m=S[1];}}let[y,g]=r.toString().split("."),v=(f=(h=i==null?void 0:i.query)!==null&&h!==void 0?h:i==null?void 0:i.q)!==null&&f!==void 0?f:i;this._addAllSpanAttributes(t,y,g,d,m,v,s);}_addAllSpanAttributes(t,r,n,i,s,a,o){if(t.setAttributes({[Xl.SEMATTRS_DB_SYSTEM]:Xl.DBSYSTEMVALUES_MONGODB,[Xl.SEMATTRS_DB_NAME]:r,[Xl.SEMATTRS_DB_MONGODB_COLLECTION]:n,[Xl.SEMATTRS_DB_OPERATION]:o,[Xl.SEMATTRS_DB_CONNECTION_STRING]:`mongodb://${i}:${s}/${r}`}),i&&s){t.setAttribute(Xl.SEMATTRS_NET_PEER_NAME,i);let c=parseInt(s,10);isNaN(c)||t.setAttribute(Xl.SEMATTRS_NET_PEER_PORT,c);}if(!a)return;let{dbStatementSerializer:u}=this.getConfig(),l=typeof u=="function"?u:this._defaultDbStatementSerializer.bind(this);(0, xn.safeExecuteInTheMiddle)(()=>{let c=l(a);t.setAttribute(Xl.SEMATTRS_DB_STATEMENT,c);},c=>{c&&this._diag.error("Error running dbStatementSerializer hook",c);},!0);}_defaultDbStatementSerializer(t){let{enhancedDatabaseReporting:r}=this.getConfig(),n=r?t:this._scrubStatement(t);return JSON.stringify(n)}_scrubStatement(t){return Array.isArray(t)?t.map(r=>this._scrubStatement(r)):typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t).map(([r,n])=>[r,this._scrubStatement(n)])):"?"}_handleExecutionResult(t,r){let{responseHook:n}=this.getConfig();typeof n=="function"&&(0, xn.safeExecuteInTheMiddle)(()=>{n(t,{data:r});},i=>{i&&this._diag.error("Error running response hook",i);},!0);}_patchEnd(t,r,n,i){let s=Un.context.active(),a=this;return function(...u){let l=u[0];if(t){if(l instanceof Error)t==null||t.setStatus({code:Un.SpanStatusCode.ERROR,message:l.message});else {let c=u[1];a._handleExecutionResult(t,c);}t.end();}return Un.context.with(s,()=>(i==="endSessions"&&a._connectionsUsage.add(-1,{state:"idle","pool.name":a._poolName}),r.apply(this,u)))}}setPoolName(t){var r,n;let i=(r=t.hostAddress)===null||r===void 0?void 0:r.host,s=(n=t.hostAddress)===null||n===void 0?void 0:n.port,a=t.dbName,o=`mongodb://${i}:${s}/${a}`;this._poolName=o;}};aC.MongoDBInstrumentation=V2;});var yle=chunkTKGT252T_js.c(v0=>{Object.defineProperty(v0,"__esModule",{value:!0});v0.MongodbCommandType=void 0;(function(e){e.CREATE_INDEXES="createIndexes",e.FIND_AND_MODIFY="findAndModify",e.IS_MASTER="isMaster",e.COUNT="count",e.UNKNOWN="unknown";})(v0.MongodbCommandType||(v0.MongodbCommandType={}));});var Sle=chunkTKGT252T_js.c(tf=>{var dst=tf&&tf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),gle=tf&&tf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&dst(t,e,r);};Object.defineProperty(tf,"__esModule",{value:!0});gle(mle(),tf);gle(yle(),tf);});var Ale=chunkTKGT252T_js.c(rf=>{Object.defineProperty(rf,"__esModule",{value:!0});rf.handleCallbackResponse=rf.handlePromiseResponse=rf.getAttributesFromCollection=void 0;var _le=(pt(),chunkTKGT252T_js.f(Gr)),yst=(Rn(),chunkTKGT252T_js.f(zn)),_0=(dn(),chunkTKGT252T_js.f(si));function gst(e){return {[_0.SEMATTRS_DB_MONGODB_COLLECTION]:e.name,[_0.SEMATTRS_DB_NAME]:e.conn.name,[_0.SEMATTRS_DB_USER]:e.conn.user,[_0.SEMATTRS_NET_PEER_NAME]:e.conn.host,[_0.SEMATTRS_NET_PEER_PORT]:e.conn.port}}rf.getAttributesFromCollection=gst;function xle(e,t={}){e.recordException(t),e.setStatus({code:_le.SpanStatusCode.ERROR,message:`${t.message} ${t.code?`
Mongoose Error Code: ${t.code}`:""}`});}function H2(e,t,r,n=void 0){r&&(0, yst.safeExecuteInTheMiddle)(()=>r(e,{moduleVersion:n,response:t}),i=>{i&&_le.diag.error("mongoose instrumentation: responseHook error",i);},!0);}function Sst(e,t,r,n=void 0){return e instanceof Promise?e.then(i=>(H2(t,i,r,n),i)).catch(i=>{throw xle(t,i),i}).finally(()=>t.end()):(H2(t,e,r,n),t.end(),e)}rf.handlePromiseResponse=Sst;function Tst(e,t,r,n,i,s,a=void 0){let o=0;return i.length===2&&(o=1),i[o]=(u,l)=>(u?xle(n,u):H2(n,l,s,a),n.end(),e(u,l)),t.apply(r,i)}rf.handleCallbackResponse=Tst;});var Ple=chunkTKGT252T_js.c(Jy=>{Object.defineProperty(Jy,"__esModule",{value:!0});Jy.PACKAGE_NAME=Jy.PACKAGE_VERSION=void 0;Jy.PACKAGE_VERSION="0.42.0";Jy.PACKAGE_NAME="@opentelemetry/instrumentation-mongoose";});var Dle=chunkTKGT252T_js.c(Ku=>{Object.defineProperty(Ku,"__esModule",{value:!0});Ku.MongooseInstrumentation=Ku._STORED_PARENT_SPAN=void 0;var ws=(pt(),chunkTKGT252T_js.f(Gr)),Est=(jn(),chunkTKGT252T_js.f(eo)),G2=Ale(),Cle=(Rn(),chunkTKGT252T_js.f(zn)),wle=Ple(),x0=(dn(),chunkTKGT252T_js.f(si)),oC=["deleteOne","deleteMany","find","findOne","estimatedDocumentCount","countDocuments","distinct","where","$where","findOneAndUpdate","findOneAndDelete","findOneAndReplace"],bst=["remove","count","findOneAndRemove",...oC],vst=["count","findOneAndRemove",...oC],_st=[...oC];function Ile(e){return e?e.startsWith("6.")||e.startsWith("5.")?bst:e.startsWith("7.")?vst:_st:oC}function Ole(e){return e&&(e.startsWith("5.")||e.startsWith("6."))||!1}Ku._STORED_PARENT_SPAN=Symbol("stored-parent-span");var $2=class extends Cle.InstrumentationBase{constructor(t={}){super(wle.PACKAGE_NAME,wle.PACKAGE_VERSION,t);}init(){return new Cle.InstrumentationNodeModuleDefinition("mongoose",[">=5.9.7 <9"],this.patch.bind(this),this.unpatch.bind(this))}patch(t,r){return this._wrap(t.Model.prototype,"save",this.patchOnModelMethods("save",r)),t.Model.prototype.$save=t.Model.prototype.save,Ole(r)&&this._wrap(t.Model.prototype,"remove",this.patchOnModelMethods("remove",r)),this._wrap(t.Query.prototype,"exec",this.patchQueryExec(r)),this._wrap(t.Aggregate.prototype,"exec",this.patchAggregateExec(r)),Ile(r).forEach(i=>{this._wrap(t.Query.prototype,i,this.patchAndCaptureSpanContext(i));}),this._wrap(t.Model,"aggregate",this.patchModelAggregate()),t}unpatch(t,r){let n=Ile(r);this._unwrap(t.Model.prototype,"save"),t.Model.prototype.$save=t.Model.prototype.save,Ole(r)&&this._unwrap(t.Model.prototype,"remove"),this._unwrap(t.Query.prototype,"exec"),this._unwrap(t.Aggregate.prototype,"exec"),n.forEach(i=>{this._unwrap(t.Query.prototype,i);}),this._unwrap(t.Model,"aggregate");}patchAggregateExec(t){let r=this;return n=>function(s){var a;if(r.getConfig().requireParentSpan&&ws.trace.getSpan(ws.context.active())===void 0)return n.apply(this,arguments);let o=this[Ku._STORED_PARENT_SPAN],u={},{dbStatementSerializer:l}=r.getConfig();l&&(u[x0.SEMATTRS_DB_STATEMENT]=l("aggregate",{options:this.options,aggregatePipeline:this._pipeline}));let c=r._startSpan(this._model.collection,(a=this._model)===null||a===void 0?void 0:a.modelName,"aggregate",u,o);return r._handleResponse(c,n,this,arguments,s,t)}}patchQueryExec(t){let r=this;return n=>function(s){if(r.getConfig().requireParentSpan&&ws.trace.getSpan(ws.context.active())===void 0)return n.apply(this,arguments);let a=this[Ku._STORED_PARENT_SPAN],o={},{dbStatementSerializer:u}=r.getConfig();u&&(o[x0.SEMATTRS_DB_STATEMENT]=u(this.op,{condition:this._conditions,updates:this._update,options:this.options,fields:this._fields}));let l=r._startSpan(this.mongooseCollection,this.model.modelName,this.op,o,a);return r._handleResponse(l,n,this,arguments,s,t)}}patchOnModelMethods(t,r){let n=this;return i=>function(a,o){if(n.getConfig().requireParentSpan&&ws.trace.getSpan(ws.context.active())===void 0)return i.apply(this,arguments);let u={document:this};a&&!(a instanceof Function)&&(u.options=a);let l={},{dbStatementSerializer:c}=n.getConfig();c&&(l[x0.SEMATTRS_DB_STATEMENT]=c(t,u));let p=n._startSpan(this.constructor.collection,this.constructor.modelName,t,l);return a instanceof Function&&(o=a,a=void 0),n._handleResponse(p,i,this,arguments,o,r)}}patchModelAggregate(){let t=this;return r=>function(){let i=ws.trace.getSpan(ws.context.active()),s=t._callOriginalFunction(()=>r.apply(this,arguments));return s&&(s[Ku._STORED_PARENT_SPAN]=i),s}}patchAndCaptureSpanContext(t){let r=this;return n=>function(){return this[Ku._STORED_PARENT_SPAN]=ws.trace.getSpan(ws.context.active()),r._callOriginalFunction(()=>n.apply(this,arguments))}}_startSpan(t,r,n,i,s){return this.tracer.startSpan(`mongoose.${r}.${n}`,{kind:ws.SpanKind.CLIENT,attributes:Object.assign(Object.assign(Object.assign({},i),(0, G2.getAttributesFromCollection)(t)),{[x0.SEMATTRS_DB_OPERATION]:n,[x0.SEMATTRS_DB_SYSTEM]:"mongoose"})},s?ws.trace.setSpan(ws.context.active(),s):void 0)}_handleResponse(t,r,n,i,s,a=void 0){let o=this;if(s instanceof Function)return o._callOriginalFunction(()=>(0, G2.handleCallbackResponse)(s,r,n,t,i,o.getConfig().responseHook,a));{let u=o._callOriginalFunction(()=>r.apply(n,i));return (0, G2.handlePromiseResponse)(u,t,o.getConfig().responseHook,a)}}_callOriginalFunction(t){return this.getConfig().suppressInternalInstrumentation?ws.context.with((0, Est.suppressTracing)(ws.context.active()),t):t()}};Ku.MongooseInstrumentation=$2;});var Rle=chunkTKGT252T_js.c(Nle=>{Object.defineProperty(Nle,"__esModule",{value:!0});});var Lle=chunkTKGT252T_js.c(nf=>{var xst=nf&&nf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Mle=nf&&nf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&xst(t,e,r);};Object.defineProperty(nf,"__esModule",{value:!0});Mle(Dle(),nf);Mle(Rle(),nf);});var Ule=chunkTKGT252T_js.c(A0=>{Object.defineProperty(A0,"__esModule",{value:!0});A0.AttributeNames=void 0;(function(e){e.MYSQL_VALUES="db.mysql.values";})(A0.AttributeNames||(A0.AttributeNames={}));});var Vle=chunkTKGT252T_js.c(ca=>{Object.defineProperty(ca,"__esModule",{value:!0});ca.getPoolName=ca.arrayStringifyHelper=ca.getSpanName=ca.getDbValues=ca.getDbStatement=ca.getConnectionAttributes=void 0;var zl=(dn(),chunkTKGT252T_js.f(si));function Cst(e){let{host:t,port:r,database:n,user:i}=wst(e),s=parseInt(r,10);return isNaN(s)?{[zl.SEMATTRS_NET_PEER_NAME]:t,[zl.SEMATTRS_DB_CONNECTION_STRING]:qle(t,r,n),[zl.SEMATTRS_DB_NAME]:n,[zl.SEMATTRS_DB_USER]:i}:{[zl.SEMATTRS_NET_PEER_NAME]:t,[zl.SEMATTRS_NET_PEER_PORT]:s,[zl.SEMATTRS_DB_CONNECTION_STRING]:qle(t,r,n),[zl.SEMATTRS_DB_NAME]:n,[zl.SEMATTRS_DB_USER]:i}}ca.getConnectionAttributes=Cst;function wst(e){let{host:t,port:r,database:n,user:i}=e&&e.connectionConfig||e||{};return {host:t,port:r,database:n,user:i}}function qle(e,t,r){let n=`jdbc:mysql://${e||"localhost"}`;return typeof t=="number"&&(n+=`:${t}`),typeof r=="string"&&(n+=`/${r}`),n}function Ist(e){return typeof e=="string"?e:e.sql}ca.getDbStatement=Ist;function Ost(e,t){return K2(typeof e=="string"?t:t||e.values)}ca.getDbValues=Ost;function Dst(e){return typeof e=="object"?e.sql:e.split(" ")[0]}ca.getSpanName=Dst;function K2(e){return e?`[${e.toString()}]`:""}ca.arrayStringifyHelper=K2;function Nst(e){let t=e.config.connectionConfig,r="";return r+=t.host?`host: '${t.host}', `:"",r+=t.port?`port: ${t.port}, `:"",r+=t.database?`database: '${t.database}', `:"",r+=t.user?`user: '${t.user}'`:"",t.user||(r=r.substring(0,r.length-2)),r.trim()}ca.getPoolName=Nst;});var Hle=chunkTKGT252T_js.c(Qy=>{Object.defineProperty(Qy,"__esModule",{value:!0});Qy.PACKAGE_NAME=Qy.PACKAGE_VERSION=void 0;Qy.PACKAGE_VERSION="0.41.0";Qy.PACKAGE_NAME="@opentelemetry/instrumentation-mysql";});var $le=chunkTKGT252T_js.c(lC=>{Object.defineProperty(lC,"__esModule",{value:!0});lC.MySQLInstrumentation=void 0;var pa=(pt(),chunkTKGT252T_js.f(Gr)),Zy=(Rn(),chunkTKGT252T_js.f(zn)),Y2=(dn(),chunkTKGT252T_js.f(si)),Rst=Ule(),eg=Vle(),Gle=Hle(),uC=class e extends Zy.InstrumentationBase{constructor(t={}){super(Gle.PACKAGE_NAME,Gle.PACKAGE_VERSION,t),this._setMetricInstruments();}setMeterProvider(t){super.setMeterProvider(t),this._setMetricInstruments();}_setMetricInstruments(){this._connectionsUsage=this.meter.createUpDownCounter("db.client.connections.usage",{description:"The number of connections that are currently in state described by the state attribute.",unit:"{connection}"});}init(){return [new Zy.InstrumentationNodeModuleDefinition("mysql",[">=2.0.0 <3"],t=>((0, Zy.isWrapped)(t.createConnection)&&this._unwrap(t,"createConnection"),this._wrap(t,"createConnection",this._patchCreateConnection()),(0, Zy.isWrapped)(t.createPool)&&this._unwrap(t,"createPool"),this._wrap(t,"createPool",this._patchCreatePool()),(0, Zy.isWrapped)(t.createPoolCluster)&&this._unwrap(t,"createPoolCluster"),this._wrap(t,"createPoolCluster",this._patchCreatePoolCluster()),t),t=>{t!==void 0&&(this._unwrap(t,"createConnection"),this._unwrap(t,"createPool"),this._unwrap(t,"createPoolCluster"));})]}_patchCreateConnection(){return t=>{let r=this;return function(i){let s=t(...arguments);return r._wrap(s,"query",r._patchQuery(s)),s}}}_patchCreatePool(){return t=>{let r=this;return function(i){let s=t(...arguments);return r._wrap(s,"query",r._patchQuery(s)),r._wrap(s,"getConnection",r._patchGetConnection(s)),r._wrap(s,"end",r._patchPoolEnd(s)),r._setPoolcallbacks(s,r,""),s}}}_patchPoolEnd(t){return r=>{let n=this;return function(s){let a=t._allConnections.length,o=t._freeConnections.length,u=a-o,l=(0, eg.getPoolName)(t);n._connectionsUsage.add(-u,{state:"used",name:l}),n._connectionsUsage.add(-o,{state:"idle",name:l}),r.apply(t,arguments);}}}_patchCreatePoolCluster(){return t=>{let r=this;return function(i){let s=t(...arguments);return r._wrap(s,"getConnection",r._patchGetConnection(s)),r._wrap(s,"add",r._patchAdd(s)),s}}}_patchAdd(t){return r=>{let n=this;return function(s,a){if(!n._enabled)return n._unwrap(t,"add"),r.apply(t,arguments);r.apply(t,arguments);let o=t._nodes;if(o){let u=typeof s=="object"?"CLUSTER::"+t._lastId:String(s),l=o[u].pool;n._setPoolcallbacks(l,n,s);}}}}_patchGetConnection(t){return r=>{let n=this;return function(s,a,o){if(!n._enabled)return n._unwrap(t,"getConnection"),r.apply(t,arguments);if(arguments.length===1&&typeof s=="function"){let u=n._getConnectionCallbackPatchFn(s);return r.call(t,u)}if(arguments.length===2&&typeof a=="function"){let u=n._getConnectionCallbackPatchFn(a);return r.call(t,s,u)}if(arguments.length===3&&typeof o=="function"){let u=n._getConnectionCallbackPatchFn(o);return r.call(t,s,a,u)}return r.apply(t,arguments)}}}_getConnectionCallbackPatchFn(t){let r=this,n=pa.context.active();return function(i,s){s&&((0, Zy.isWrapped)(s.query)||r._wrap(s,"query",r._patchQuery(s))),typeof t=="function"&&pa.context.with(n,t,this,i,s);}}_patchQuery(t){return r=>{let n=this;return function(i,s,a){if(!n._enabled)return n._unwrap(t,"query"),r.apply(t,arguments);let o=n.tracer.startSpan((0, eg.getSpanName)(i),{kind:pa.SpanKind.CLIENT,attributes:Object.assign(Object.assign({},e.COMMON_ATTRIBUTES),(0, eg.getConnectionAttributes)(t.config))});if(o.setAttribute(Y2.SEMATTRS_DB_STATEMENT,(0, eg.getDbStatement)(i)),n.getConfig().enhancedDatabaseReporting){let c;Array.isArray(s)?c=s:arguments[2]&&(c=[s]),o.setAttribute(Rst.AttributeNames.MYSQL_VALUES,(0, eg.getDbValues)(i,c));}let u=Array.from(arguments).findIndex(c=>typeof c=="function"),l=pa.context.active();if(u===-1){let c=pa.context.with(pa.trace.setSpan(pa.context.active(),o),()=>r.apply(t,arguments));return pa.context.bind(l,c),c.on("error",p=>o.setStatus({code:pa.SpanStatusCode.ERROR,message:p.message})).on("end",()=>{o.end();})}else return n._wrap(arguments,u,n._patchCallbackQuery(o,l)),pa.context.with(pa.trace.setSpan(pa.context.active(),o),()=>r.apply(t,arguments))}}}_patchCallbackQuery(t,r){return n=>function(i,s,a){return i&&t.setStatus({code:pa.SpanStatusCode.ERROR,message:i.message}),t.end(),pa.context.with(r,()=>n(...arguments))}}_setPoolcallbacks(t,r,n){let i=n||(0, eg.getPoolName)(t);t.on("connection",s=>{r._connectionsUsage.add(1,{state:"idle",name:i});}),t.on("acquire",s=>{r._connectionsUsage.add(-1,{state:"idle",name:i}),r._connectionsUsage.add(1,{state:"used",name:i});}),t.on("release",s=>{r._connectionsUsage.add(-1,{state:"used",name:i}),r._connectionsUsage.add(1,{state:"idle",name:i});});}};lC.MySQLInstrumentation=uC;uC.COMMON_ATTRIBUTES={[Y2.SEMATTRS_DB_SYSTEM]:Y2.DBSYSTEMVALUES_MYSQL};});var Yle=chunkTKGT252T_js.c(Kle=>{Object.defineProperty(Kle,"__esModule",{value:!0});});var Xle=chunkTKGT252T_js.c(sf=>{var Mst=sf&&sf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Wle=sf&&sf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Mst(t,e,r);};Object.defineProperty(sf,"__esModule",{value:!0});Wle($le(),sf);Wle(Yle(),sf);});var X2=chunkTKGT252T_js.c(cC=>{Object.defineProperty(cC,"__esModule",{value:!0});cC.addSqlCommenterComment=void 0;var W2=(pt(),chunkTKGT252T_js.f(Gr)),kst=(jn(),chunkTKGT252T_js.f(eo));function Fst(e){let t=e.indexOf("--");if(t>=0)return !0;if(e.indexOf("/*")<0)return !1;let n=e.indexOf("*/");return t<n}function Bst(e){return encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function jst(e,t){if(typeof t!="string"||t.length===0||Fst(t))return t;let r=new kst.W3CTraceContextPropagator,n={};r.inject(W2.trace.setSpan(W2.ROOT_CONTEXT,e),n,W2.defaultTextMapSetter);let i=Object.keys(n).sort();if(i.length===0)return t;let s=i.map(a=>{let o=Bst(n[a]);return `${a}='${o}'`}).join(",");return `${t} /*${s}*/`}cC.addSqlCommenterComment=jst;});var tce=chunkTKGT252T_js.c(Yu=>{Object.defineProperty(Yu,"__esModule",{value:!0});Yu.once=Yu.getSpanName=Yu.getDbStatement=Yu.getConnectionAttributes=void 0;var Jl=(dn(),chunkTKGT252T_js.f(si));function Ust(e){let{host:t,port:r,database:n,user:i}=qst(e),s=parseInt(r,10);return isNaN(s)?{[Jl.SEMATTRS_NET_PEER_NAME]:t,[Jl.SEMATTRS_DB_CONNECTION_STRING]:ece(t,r,n),[Jl.SEMATTRS_DB_NAME]:n,[Jl.SEMATTRS_DB_USER]:i}:{[Jl.SEMATTRS_NET_PEER_NAME]:t,[Jl.SEMATTRS_NET_PEER_PORT]:s,[Jl.SEMATTRS_DB_CONNECTION_STRING]:ece(t,r,n),[Jl.SEMATTRS_DB_NAME]:n,[Jl.SEMATTRS_DB_USER]:i}}Yu.getConnectionAttributes=Ust;function qst(e){let{host:t,port:r,database:n,user:i}=e&&e.connectionConfig||e||{};return {host:t,port:r,database:n,user:i}}function ece(e,t,r){let n=`jdbc:mysql://${e||"localhost"}`;return typeof t=="number"&&(n+=`:${t}`),typeof r=="string"&&(n+=`/${r}`),n}function Vst(e,t,r){return typeof e=="string"?r?t(e,r):e:r||e.values?t(e.sql,r||e.values):e.sql}Yu.getDbStatement=Vst;function Hst(e){var t;let r=typeof e=="object"?e.sql:e;return (t=r==null?void 0:r.split(" "))===null||t===void 0?void 0:t[0]}Yu.getSpanName=Hst;var Gst=e=>{let t=!1;return (...r)=>{if(!t)return t=!0,e(...r)}};Yu.once=Gst;});var rce=chunkTKGT252T_js.c(tg=>{Object.defineProperty(tg,"__esModule",{value:!0});tg.PACKAGE_NAME=tg.PACKAGE_VERSION=void 0;tg.PACKAGE_VERSION="0.41.0";tg.PACKAGE_NAME="@opentelemetry/instrumentation-mysql2";});var ace=chunkTKGT252T_js.c(hC=>{Object.defineProperty(hC,"__esModule",{value:!0});hC.MySQL2Instrumentation=void 0;var nce=(pt(),chunkTKGT252T_js.f(Gr)),P0=(Rn(),chunkTKGT252T_js.f(zn)),z2=(dn(),chunkTKGT252T_js.f(si)),ice=X2(),pC=tce(),sce=rce(),fC=class e extends P0.InstrumentationBase{constructor(t={}){super(sce.PACKAGE_NAME,sce.PACKAGE_VERSION,t);}init(){return [new P0.InstrumentationNodeModuleDefinition("mysql2",[">=1.4.2 <4"],t=>{let r=t.Connection.prototype;return (0, P0.isWrapped)(r.query)&&this._unwrap(r,"query"),this._wrap(r,"query",this._patchQuery(t.format,!1)),(0, P0.isWrapped)(r.execute)&&this._unwrap(r,"execute"),this._wrap(r,"execute",this._patchQuery(t.format,!0)),t},t=>{if(t===void 0)return;let r=t.Connection.prototype;this._unwrap(r,"query"),this._unwrap(r,"execute");})]}_patchQuery(t,r){return n=>{let i=this;return function(s,a,o){let u;Array.isArray(a)?u=a:arguments[2]&&(u=[a]);let l=i.tracer.startSpan((0, pC.getSpanName)(s),{kind:nce.SpanKind.CLIENT,attributes:Object.assign(Object.assign(Object.assign({},e.COMMON_ATTRIBUTES),(0, pC.getConnectionAttributes)(this.config)),{[z2.SEMATTRS_DB_STATEMENT]:(0, pC.getDbStatement)(s,t,u)})});!r&&i.getConfig().addSqlCommenterCommentToQueries&&(arguments[0]=s=typeof s=="string"?(0, ice.addSqlCommenterComment)(l,s):Object.assign(s,{sql:(0, ice.addSqlCommenterComment)(l,s.sql)}));let c=(0, pC.once)((p,h)=>{if(p)l.setStatus({code:nce.SpanStatusCode.ERROR,message:p.message});else {let{responseHook:f}=i.getConfig();typeof f=="function"&&(0, P0.safeExecuteInTheMiddle)(()=>{f(l,{queryResults:h});},d=>{d&&i._diag.warn("Failed executing responseHook",d);},!0);}l.end();});if(arguments.length===1){typeof s.onResult=="function"&&i._wrap(s,"onResult",i._patchCallbackQuery(c));let p=n.apply(this,arguments);return p.once("error",h=>{c(h);}).once("result",h=>{c(void 0,h);}),p}return typeof arguments[1]=="function"?i._wrap(arguments,1,i._patchCallbackQuery(c)):typeof arguments[2]=="function"&&i._wrap(arguments,2,i._patchCallbackQuery(c)),n.apply(this,arguments)}}}_patchCallbackQuery(t){return r=>function(n,i,s){return t(n,i),r(...arguments)}}};hC.MySQL2Instrumentation=fC;fC.COMMON_ATTRIBUTES={[z2.SEMATTRS_DB_SYSTEM]:z2.DBSYSTEMVALUES_MYSQL};});var uce=chunkTKGT252T_js.c(oce=>{Object.defineProperty(oce,"__esModule",{value:!0});});var cce=chunkTKGT252T_js.c(af=>{var $st=af&&af.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),lce=af&&af.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&$st(t,e,r);};Object.defineProperty(af,"__esModule",{value:!0});lce(ace(),af);lce(uce(),af);});var mce=chunkTKGT252T_js.c(dC=>{Object.defineProperty(dC,"__esModule",{value:!0});dC.endSpan=void 0;var Yst=(pt(),chunkTKGT252T_js.f(Gr)),Wst=(e,t)=>{t&&(e.recordException(t),e.setStatus({code:Yst.SpanStatusCode.ERROR,message:t.message})),e.end();};dC.endSpan=Wst;});var J2=chunkTKGT252T_js.c(mC=>{Object.defineProperty(mC,"__esModule",{value:!0});mC.defaultDbStatementSerializer=void 0;var Xst=[{regex:/^ECHO/i,args:0},{regex:/^(LPUSH|MSET|PFA|PUBLISH|RPUSH|SADD|SET|SPUBLISH|XADD|ZADD)/i,args:1},{regex:/^(HSET|HMSET|LSET|LINSERT)/i,args:2},{regex:/^(ACL|BIT|B[LRZ]|CLIENT|CLUSTER|CONFIG|COMMAND|DECR|DEL|EVAL|EX|FUNCTION|GEO|GET|HINCR|HMGET|HSCAN|INCR|L[TRLM]|MEMORY|P[EFISTU]|RPOP|S[CDIMORSU]|XACK|X[CDGILPRT]|Z[CDILMPRS])/i,args:-1}],zst=(e,t)=>{var r,n;if(Array.isArray(t)&&t.length){let i=(n=(r=Xst.find(({regex:a})=>a.test(e)))===null||r===void 0?void 0:r.args)!==null&&n!==void 0?n:0,s=i>=0?t.slice(0,i):t;return t.length>s.length&&s.push(`[${t.length-i} other arguments]`),`${e} ${s.join(" ")}`}return e};mC.defaultDbStatementSerializer=zst;});var yce=chunkTKGT252T_js.c(rg=>{Object.defineProperty(rg,"__esModule",{value:!0});rg.PACKAGE_NAME=rg.PACKAGE_VERSION=void 0;rg.PACKAGE_VERSION="0.43.0";rg.PACKAGE_NAME="@opentelemetry/instrumentation-ioredis";});var Ece=chunkTKGT252T_js.c(gC=>{Object.defineProperty(gC,"__esModule",{value:!0});gC.IORedisInstrumentation=void 0;var of=(pt(),chunkTKGT252T_js.f(Gr)),yC=(Rn(),chunkTKGT252T_js.f(zn)),oo=(dn(),chunkTKGT252T_js.f(si)),gce=(Rn(),chunkTKGT252T_js.f(zn)),C0=mce(),Jst=J2(),Sce=yce(),Tce={requireParentSpan:!0},Q2=class extends yC.InstrumentationBase{constructor(t={}){super(Sce.PACKAGE_NAME,Sce.PACKAGE_VERSION,Object.assign(Object.assign({},Tce),t));}setConfig(t={}){super.setConfig(Object.assign(Object.assign({},Tce),t));}init(){return [new yC.InstrumentationNodeModuleDefinition("ioredis",[">=2.0.0 <6"],(t,r)=>{let n=t[Symbol.toStringTag]==="Module"?t.default:t;return (0, yC.isWrapped)(n.prototype.sendCommand)&&this._unwrap(n.prototype,"sendCommand"),this._wrap(n.prototype,"sendCommand",this._patchSendCommand(r)),(0, yC.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._patchConnection()),t},t=>{if(t===void 0)return;let r=t[Symbol.toStringTag]==="Module"?t.default:t;this._unwrap(r.prototype,"sendCommand"),this._unwrap(r.prototype,"connect");})]}_patchSendCommand(t){return r=>this._traceSendCommand(r,t)}_patchConnection(){return t=>this._traceConnection(t)}_traceSendCommand(t,r){let n=this;return function(i){if(arguments.length<1||typeof i!="object")return t.apply(this,arguments);let s=n.getConfig(),a=s.dbStatementSerializer||Jst.defaultDbStatementSerializer,o=of.trace.getSpan(of.context.active())===void 0;if(s.requireParentSpan===!0&&o)return t.apply(this,arguments);let u=n.tracer.startSpan(i.name,{kind:of.SpanKind.CLIENT,attributes:{[oo.SEMATTRS_DB_SYSTEM]:oo.DBSYSTEMVALUES_REDIS,[oo.SEMATTRS_DB_STATEMENT]:a(i.name,i.args)}}),{requestHook:l}=s;l&&(0, gce.safeExecuteInTheMiddle)(()=>l(u,{moduleVersion:r,cmdName:i.name,cmdArgs:i.args}),h=>{h&&of.diag.error("ioredis instrumentation: request hook failed",h);},!0);let{host:c,port:p}=this.options;u.setAttributes({[oo.SEMATTRS_NET_PEER_NAME]:c,[oo.SEMATTRS_NET_PEER_PORT]:p,[oo.SEMATTRS_DB_CONNECTION_STRING]:`redis://${c}:${p}`});try{let h=t.apply(this,arguments),f=i.resolve;i.resolve=function(m){(0,gce.safeExecuteInTheMiddle)(()=>{var y;return (y=s.responseHook)===null||y===void 0?void 0:y.call(s,u,i.name,i.args,m)},y=>{y&&of.diag.error("ioredis instrumentation: response hook failed",y);},!0),(0,C0.endSpan)(u,null),f(m);};let d=i.reject;return i.reject=function(m){(0,C0.endSpan)(u,m),d(m);},h}catch(h){throw (0, C0.endSpan)(u,h),h}}}_traceConnection(t){let r=this;return function(){let n=of.trace.getSpan(of.context.active())===void 0;if(r.getConfig().requireParentSpan===!0&&n)return t.apply(this,arguments);let i=r.tracer.startSpan("connect",{kind:of.SpanKind.CLIENT,attributes:{[oo.SEMATTRS_DB_SYSTEM]:oo.DBSYSTEMVALUES_REDIS,[oo.SEMATTRS_DB_STATEMENT]:"connect"}}),{host:s,port:a}=this.options;i.setAttributes({[oo.SEMATTRS_NET_PEER_NAME]:s,[oo.SEMATTRS_NET_PEER_PORT]:a,[oo.SEMATTRS_DB_CONNECTION_STRING]:`redis://${s}:${a}`});try{let o=t.apply(this,arguments);return (0,C0.endSpan)(i,null),o}catch(o){throw (0, C0.endSpan)(i,o),o}}}};gC.IORedisInstrumentation=Q2;});var vce=chunkTKGT252T_js.c(bce=>{Object.defineProperty(bce,"__esModule",{value:!0});});var xce=chunkTKGT252T_js.c(uf=>{var Qst=uf&&uf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),_ce=uf&&uf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Qst(t,e,r);};Object.defineProperty(uf,"__esModule",{value:!0});_ce(Ece(),uf);_ce(vce(),uf);});var Ace=chunkTKGT252T_js.c(SC=>{Object.defineProperty(SC,"__esModule",{value:!0});SC.getClientAttributes=void 0;var w0=(dn(),chunkTKGT252T_js.f(si));function Zst(e,t){var r,n;return {[w0.SEMATTRS_DB_SYSTEM]:w0.DBSYSTEMVALUES_REDIS,[w0.SEMATTRS_NET_PEER_NAME]:(r=t==null?void 0:t.socket)===null||r===void 0?void 0:r.host,[w0.SEMATTRS_NET_PEER_PORT]:(n=t==null?void 0:t.socket)===null||n===void 0?void 0:n.port,[w0.SEMATTRS_DB_CONNECTION_STRING]:eat(e,t==null?void 0:t.url)}}SC.getClientAttributes=Zst;function eat(e,t){if(typeof t=="string")try{let r=new URL(t);return r.searchParams.delete("user_pwd"),r.username="",r.password="",r.href}catch(r){e.error("failed to sanitize redis connection url",r);}}});var Pce=chunkTKGT252T_js.c(ng=>{Object.defineProperty(ng,"__esModule",{value:!0});ng.PACKAGE_NAME=ng.PACKAGE_VERSION=void 0;ng.PACKAGE_VERSION="0.42.0";ng.PACKAGE_NAME="@opentelemetry/instrumentation-redis-4";});var Dce=chunkTKGT252T_js.c(EC=>{Object.defineProperty(EC,"__esModule",{value:!0});EC.RedisInstrumentation=void 0;var uo=(pt(),chunkTKGT252T_js.f(Gr)),Li=(Rn(),chunkTKGT252T_js.f(zn)),Cce=Ace(),tat=J2(),wce=Pce(),rat=(dn(),chunkTKGT252T_js.f(si)),I0=Symbol("opentelemetry.instrumentation.redis.open_spans"),Ice=Symbol("opentelemetry.instrumentation.redis.multi_command_options"),Oce={requireParentSpan:!1},TC=class e extends Li.InstrumentationBase{constructor(t={}){super(wce.PACKAGE_NAME,wce.PACKAGE_VERSION,Object.assign(Object.assign({},Oce),t));}setConfig(t={}){super.setConfig(Object.assign(Object.assign({},Oce),t));}init(){return [this._getInstrumentationNodeModuleDefinition("@redis/client"),this._getInstrumentationNodeModuleDefinition("@node-redis/client")]}_getInstrumentationNodeModuleDefinition(t){let r=new Li.InstrumentationNodeModuleFile(`${t}/dist/lib/commander.js`,["^1.0.0"],(s,a)=>{let o=s.transformCommandArguments;if(!o)return this._diag.error("internal instrumentation error, missing transformCommandArguments function"),s;let u=a!=null&&a.startsWith("1.0.")?"extendWithCommands":"attachCommands";return (0, Li.isWrapped)(s==null?void 0:s[u])&&this._unwrap(s,u),this._wrap(s,u,this._getPatchExtendWithCommands(o)),s},s=>{(0, Li.isWrapped)(s==null?void 0:s.extendWithCommands)&&this._unwrap(s,"extendWithCommands"),(0, Li.isWrapped)(s==null?void 0:s.attachCommands)&&this._unwrap(s,"attachCommands");}),n=new Li.InstrumentationNodeModuleFile(`${t}/dist/lib/client/multi-command.js`,["^1.0.0"],s=>{var a;let o=(a=s==null?void 0:s.default)===null||a===void 0?void 0:a.prototype;return (0, Li.isWrapped)(o==null?void 0:o.exec)&&this._unwrap(o,"exec"),this._wrap(o,"exec",this._getPatchMultiCommandsExec()),(0, Li.isWrapped)(o==null?void 0:o.addCommand)&&this._unwrap(o,"addCommand"),this._wrap(o,"addCommand",this._getPatchMultiCommandsAddCommand()),s},s=>{var a;let o=(a=s==null?void 0:s.default)===null||a===void 0?void 0:a.prototype;(0, Li.isWrapped)(o==null?void 0:o.exec)&&this._unwrap(o,"exec"),(0, Li.isWrapped)(o==null?void 0:o.addCommand)&&this._unwrap(o,"addCommand");}),i=new Li.InstrumentationNodeModuleFile(`${t}/dist/lib/client/index.js`,["^1.0.0"],s=>{var a;let o=(a=s==null?void 0:s.default)===null||a===void 0?void 0:a.prototype;return o!=null&&o.multi&&((0, Li.isWrapped)(o==null?void 0:o.multi)&&this._unwrap(o,"multi"),this._wrap(o,"multi",this._getPatchRedisClientMulti())),o!=null&&o.MULTI&&((0, Li.isWrapped)(o==null?void 0:o.MULTI)&&this._unwrap(o,"MULTI"),this._wrap(o,"MULTI",this._getPatchRedisClientMulti())),(0, Li.isWrapped)(o==null?void 0:o.sendCommand)&&this._unwrap(o,"sendCommand"),this._wrap(o,"sendCommand",this._getPatchRedisClientSendCommand()),this._wrap(o,"connect",this._getPatchedClientConnect()),s},s=>{var a;let o=(a=s==null?void 0:s.default)===null||a===void 0?void 0:a.prototype;(0, Li.isWrapped)(o==null?void 0:o.multi)&&this._unwrap(o,"multi"),(0, Li.isWrapped)(o==null?void 0:o.MULTI)&&this._unwrap(o,"MULTI"),(0, Li.isWrapped)(o==null?void 0:o.sendCommand)&&this._unwrap(o,"sendCommand");});return new Li.InstrumentationNodeModuleDefinition(t,["^1.0.0"],s=>s,()=>{},[r,n,i])}_getPatchExtendWithCommands(t){let r=this;return function(i){return function(a){var o;if(((o=a==null?void 0:a.BaseClass)===null||o===void 0?void 0:o.name)!=="RedisClient")return i.apply(this,arguments);let u=a.executor;return a.executor=function(l,c){let p=t(l,c).args;return r._traceClientCommand(u,this,arguments,p)},i.apply(this,arguments)}}}_getPatchMultiCommandsExec(){let t=this;return function(n){return function(){let s=n.apply(this,arguments);return typeof(s==null?void 0:s.then)!="function"?(t._diag.error("got non promise result when patching RedisClientMultiCommand.exec"),s):s.then(a=>{let o=this[I0];return t._endSpansWithRedisReplies(o,a),a}).catch(a=>{let o=this[I0];if(!o)t._diag.error("cannot find open spans to end for redis multi command");else {let u=a.constructor.name==="MultiErrorReply"?a.replies:new Array(o.length).fill(a);t._endSpansWithRedisReplies(o,u);}return Promise.reject(a)})}}}_getPatchMultiCommandsAddCommand(){let t=this;return function(n){return function(s){return t._traceClientCommand(n,this,arguments,s)}}}_getPatchRedisClientMulti(){return function(r){return function(){let i=r.apply(this,arguments);return i[Ice]=this.options,i}}}_getPatchRedisClientSendCommand(){let t=this;return function(n){return function(s){return t._traceClientCommand(n,this,arguments,s)}}}_getPatchedClientConnect(){let t=this;return function(n){return function(){let s=this.options,a=(0, Cce.getClientAttributes)(t._diag,s),o=t.tracer.startSpan(`${e.COMPONENT}-connect`,{kind:uo.SpanKind.CLIENT,attributes:a});return uo.context.with(uo.trace.setSpan(uo.context.active(),o),()=>n.apply(this)).then(l=>(o.end(),l)).catch(l=>(o.recordException(l),o.setStatus({code:uo.SpanStatusCode.ERROR,message:l.message}),o.end(),Promise.reject(l)))}}}_traceClientCommand(t,r,n,i){if(uo.trace.getSpan(uo.context.active())===void 0&&this.getConfig().requireParentSpan)return t.apply(r,n);let a=r.options||r[Ice],o=i[0],u=i.slice(1),l=this.getConfig().dbStatementSerializer||tat.defaultDbStatementSerializer,c=(0, Cce.getClientAttributes)(this._diag,a);try{let f=l(o,u);f!=null&&(c[rat.SEMATTRS_DB_STATEMENT]=f);}catch(f){this._diag.error("dbStatementSerializer throw an exception",f,{commandName:o});}let p=this.tracer.startSpan(`${e.COMPONENT}-${o}`,{kind:uo.SpanKind.CLIENT,attributes:c}),h=uo.context.with(uo.trace.setSpan(uo.context.active(),p),()=>t.apply(r,n));if(typeof(h==null?void 0:h.then)=="function")h.then(f=>{this._endSpanWithResponse(p,o,u,f,void 0);},f=>{this._endSpanWithResponse(p,o,u,null,f);});else {let f=h;f[I0]=f[I0]||[],f[I0].push({span:p,commandName:o,commandArgs:u});}return h}_endSpansWithRedisReplies(t,r){if(!t)return this._diag.error("cannot find open spans to end for redis multi command");if(r.length!==t.length)return this._diag.error("number of multi command spans does not match response from redis");for(let n=0;n<t.length;n++){let{span:i,commandName:s,commandArgs:a}=t[n],o=r[n],[u,l]=o instanceof Error?[null,o]:[o,void 0];this._endSpanWithResponse(i,s,a,u,l);}}_endSpanWithResponse(t,r,n,i,s){let{responseHook:a}=this.getConfig();if(!s&&a)try{a(t,r,n,i);}catch(o){this._diag.error("responseHook throw an exception",o);}s&&(t.recordException(s),t.setStatus({code:uo.SpanStatusCode.ERROR,message:s==null?void 0:s.message})),t.end();}};EC.RedisInstrumentation=TC;TC.COMPONENT="redis";});var Rce=chunkTKGT252T_js.c(Nce=>{Object.defineProperty(Nce,"__esModule",{value:!0});});var Lce=chunkTKGT252T_js.c(lf=>{var nat=lf&&lf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Mce=lf&&lf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&nat(t,e,r);};Object.defineProperty(lf,"__esModule",{value:!0});Mce(Dce(),lf);Mce(Rce(),lf);});var $ce=chunkTKGT252T_js.c(ig=>{Object.defineProperty(ig,"__esModule",{value:!0});ig.PACKAGE_NAME=ig.PACKAGE_VERSION=void 0;ig.PACKAGE_VERSION="0.40.0";ig.PACKAGE_NAME="@opentelemetry/instrumentation-nestjs-core";});var rF=chunkTKGT252T_js.c(D0=>{Object.defineProperty(D0,"__esModule",{value:!0});D0.AttributeNames=void 0;(function(e){e.VERSION="nestjs.version",e.TYPE="nestjs.type",e.MODULE="nestjs.module",e.CONTROLLER="nestjs.controller",e.CALLBACK="nestjs.callback",e.PIPES="nestjs.pipes",e.INTERCEPTORS="nestjs.interceptors",e.GUARDS="nestjs.guards";})(D0.AttributeNames||(D0.AttributeNames={}));});var Kce=chunkTKGT252T_js.c(N0=>{Object.defineProperty(N0,"__esModule",{value:!0});N0.NestType=void 0;(function(e){e.APP_CREATION="app_creation",e.REQUEST_CONTEXT="request_context",e.REQUEST_HANDLER="handler";})(N0.NestType||(N0.NestType={}));});var Yce=chunkTKGT252T_js.c(sg=>{Object.defineProperty(sg,"__esModule",{value:!0});sg.NestType=sg.AttributeNames=void 0;var fat=rF();Object.defineProperty(sg,"AttributeNames",{enumerable:!0,get:function(){return fat.AttributeNames}});var hat=Kce();Object.defineProperty(sg,"NestType",{enumerable:!0,get:function(){return hat.NestType}});});var Xce=chunkTKGT252T_js.c(bC=>{Object.defineProperty(bC,"__esModule",{value:!0});bC.NestInstrumentation=void 0;var Wu=(pt(),chunkTKGT252T_js.f(Gr)),R0=(Rn(),chunkTKGT252T_js.f(zn)),Wce=$ce(),nF=(dn(),chunkTKGT252T_js.f(si)),Ma=Yce(),iF=[">=4.0.0 <11"],Ql=class e extends R0.InstrumentationBase{constructor(t={}){super(Wce.PACKAGE_NAME,Wce.PACKAGE_VERSION,t);}init(){let t=new R0.InstrumentationNodeModuleDefinition(e.COMPONENT,iF);return t.files.push(this.getNestFactoryFileInstrumentation(iF),this.getRouterExecutionContextFileInstrumentation(iF)),t}getNestFactoryFileInstrumentation(t){return new R0.InstrumentationNodeModuleFile("@nestjs/core/nest-factory.js",t,(r,n)=>(this.ensureWrapped(r.NestFactoryStatic.prototype,"create",dat(this.tracer,n)),r),r=>{this._unwrap(r.NestFactoryStatic.prototype,"create");})}getRouterExecutionContextFileInstrumentation(t){return new R0.InstrumentationNodeModuleFile("@nestjs/core/router/router-execution-context.js",t,(r,n)=>(this.ensureWrapped(r.RouterExecutionContext.prototype,"create",mat(this.tracer,n)),r),r=>{this._unwrap(r.RouterExecutionContext.prototype,"create");})}ensureWrapped(t,r,n){(0, R0.isWrapped)(t[r])&&this._unwrap(t,r),this._wrap(t,r,n);}};bC.NestInstrumentation=Ql;Ql.COMPONENT="@nestjs/core";Ql.COMMON_ATTRIBUTES={component:Ql.COMPONENT};function dat(e,t){return function(n){return function(s){let a=e.startSpan("Create Nest App",{attributes:Object.assign(Object.assign({},Ql.COMMON_ATTRIBUTES),{[Ma.AttributeNames.TYPE]:Ma.NestType.APP_CREATION,[Ma.AttributeNames.VERSION]:t,[Ma.AttributeNames.MODULE]:s.name})}),o=Wu.trace.setSpan(Wu.context.active(),a);return Wu.context.with(o,async()=>{try{return await n.apply(this,arguments)}catch(u){throw sF(a,u)}finally{a.end();}})}}}function mat(e,t){return function(n){return function(s,a){arguments[1]=yat(e,t,a);let o=n.apply(this,arguments),u=a.name,l=s.constructor&&s.constructor.name?s.constructor.name:"UnnamedInstance",c=u?`${l}.${u}`:l;return function(p,h,f){var d,m;let y=e.startSpan(c,{attributes:Object.assign(Object.assign({},Ql.COMMON_ATTRIBUTES),{[Ma.AttributeNames.VERSION]:t,[Ma.AttributeNames.TYPE]:Ma.NestType.REQUEST_CONTEXT,[nF.SEMATTRS_HTTP_METHOD]:p.method,[nF.SEMATTRS_HTTP_URL]:p.originalUrl||p.url,[nF.SEMATTRS_HTTP_ROUTE]:((d=p.route)===null||d===void 0?void 0:d.path)||((m=p.routeOptions)===null||m===void 0?void 0:m.url)||p.routerPath,[Ma.AttributeNames.CONTROLLER]:l,[Ma.AttributeNames.CALLBACK]:u})}),g=Wu.trace.setSpan(Wu.context.active(),y);return Wu.context.with(g,async()=>{try{return await o.apply(this,arguments)}catch(v){throw sF(y,v)}finally{y.end();}})}}}}function yat(e,t,r){let n=r.name||"anonymous nest handler",i={attributes:Object.assign(Object.assign({},Ql.COMMON_ATTRIBUTES),{[Ma.AttributeNames.VERSION]:t,[Ma.AttributeNames.TYPE]:Ma.NestType.REQUEST_HANDLER,[Ma.AttributeNames.CALLBACK]:r.name})},s=function(){let a=e.startSpan(n,i),o=Wu.trace.setSpan(Wu.context.active(),a);return Wu.context.with(o,async()=>{try{return await r.apply(this,arguments)}catch(u){throw sF(a,u)}finally{a.end();}})};return r.name&&Object.defineProperty(s,"name",{value:r.name}),Reflect.getMetadataKeys(r).forEach(a=>{Reflect.defineMetadata(a,Reflect.getMetadata(a,r),s);}),s}var sF=(e,t)=>(e.recordException(t),e.setStatus({code:Wu.SpanStatusCode.ERROR,message:t.message}),t);});var Jce=chunkTKGT252T_js.c(cf=>{var gat=cf&&cf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),zce=cf&&cf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&gat(t,e,r);};Object.defineProperty(cf,"__esModule",{value:!0});zce(Xce(),cf);zce(rF(),cf);});var uF=chunkTKGT252T_js.c(M0=>{Object.defineProperty(M0,"__esModule",{value:!0});M0.AttributeNames=void 0;(function(e){e.PG_VALUES="db.postgresql.values",e.PG_PLAN="db.postgresql.plan",e.IDLE_TIMEOUT_MILLIS="db.postgresql.idle.timeout.millis",e.MAX_CLIENT="db.postgresql.max.client";})(M0.AttributeNames||(M0.AttributeNames={}));});var lF=chunkTKGT252T_js.c(L0=>{Object.defineProperty(L0,"__esModule",{value:!0});L0.SpanNames=void 0;(function(e){e.QUERY_PREFIX="pg.query",e.CONNECT="pg.connect",e.POOL_CONNECT="pg-pool.connect";})(L0.SpanNames||(L0.SpanNames={}));});var upe=chunkTKGT252T_js.c(Sn=>{Object.defineProperty(Sn,"__esModule",{value:!0});Sn.isObjectWithTextString=Sn.getErrorMessage=Sn.patchClientConnectCallback=Sn.patchCallbackPGPool=Sn.patchCallback=Sn.handleExecutionResult=Sn.handleConfigQuery=Sn.shouldSkipInstrumentation=Sn.getSemanticAttributesFromPool=Sn.getSemanticAttributesFromConnection=Sn.getConnectionString=Sn.getQuerySpanName=void 0;var ff=(pt(),chunkTKGT252T_js.f(Gr)),vC=uF(),Is=(dn(),chunkTKGT252T_js.f(si)),xat=(Rn(),chunkTKGT252T_js.f(zn)),npe=lF();function ipe(e,t){if(!t)return npe.SpanNames.QUERY_PREFIX;let r=typeof t.name=="string"&&t.name?t.name:Aat(t.text);return `${npe.SpanNames.QUERY_PREFIX}:${r}${e?` ${e}`:""}`}Sn.getQuerySpanName=ipe;function Aat(e){let t=e.indexOf(" "),r=t===-1?e:e.slice(0,t);return r=r.toUpperCase(),r.endsWith(";")?r.slice(0,-1):r}function cF(e){let t=e.host||"localhost",r=e.port||5432,n=e.database||"";return `postgresql://${t}:${r}/${n}`}Sn.getConnectionString=cF;function spe(e){if(Number.isInteger(e))return e}function ape(e){return {[Is.SEMATTRS_DB_SYSTEM]:Is.DBSYSTEMVALUES_POSTGRESQL,[Is.SEMATTRS_DB_NAME]:e.database,[Is.SEMATTRS_DB_CONNECTION_STRING]:cF(e),[Is.SEMATTRS_NET_PEER_NAME]:e.host,[Is.SEMATTRS_NET_PEER_PORT]:spe(e.port),[Is.SEMATTRS_DB_USER]:e.user}}Sn.getSemanticAttributesFromConnection=ape;function Pat(e){return {[Is.SEMATTRS_DB_SYSTEM]:Is.DBSYSTEMVALUES_POSTGRESQL,[Is.SEMATTRS_DB_NAME]:e.database,[Is.SEMATTRS_DB_CONNECTION_STRING]:cF(e),[Is.SEMATTRS_NET_PEER_NAME]:e.host,[Is.SEMATTRS_NET_PEER_PORT]:spe(e.port),[Is.SEMATTRS_DB_USER]:e.user,[vC.AttributeNames.IDLE_TIMEOUT_MILLIS]:e.idleTimeoutMillis,[vC.AttributeNames.MAX_CLIENT]:e.maxClient}}Sn.getSemanticAttributesFromPool=Pat;function Cat(e){return e.requireParentSpan===!0&&ff.trace.getSpan(ff.context.active())===void 0}Sn.shouldSkipInstrumentation=Cat;function wat(e,t,r){let{connectionParameters:n}=this,i=n.database,s=ipe(i,r),a=e.startSpan(s,{kind:ff.SpanKind.CLIENT,attributes:ape(n)});if(!r)return a;if(r.text&&a.setAttribute(Is.SEMATTRS_DB_STATEMENT,r.text),t.enhancedDatabaseReporting&&Array.isArray(r.values))try{let o=r.values.map(u=>u==null?"null":u instanceof Buffer?u.toString():typeof u=="object"?typeof u.toPostgres=="function"?u.toPostgres():JSON.stringify(u):u.toString());a.setAttribute(vC.AttributeNames.PG_VALUES,o);}catch(o){ff.diag.error("failed to stringify ",r.values,o);}return typeof r.name=="string"&&a.setAttribute(vC.AttributeNames.PG_PLAN,r.name),a}Sn.handleConfigQuery=wat;function ope(e,t,r){typeof e.responseHook=="function"&&(0, xat.safeExecuteInTheMiddle)(()=>{e.responseHook(t,{data:r});},n=>{n&&ff.diag.error("Error running response hook",n);},!0);}Sn.handleExecutionResult=ope;function Iat(e,t,r){return function(i,s){i?t.setStatus({code:ff.SpanStatusCode.ERROR,message:i.message}):ope(e,t,s),t.end(),r.call(this,i,s);}}Sn.patchCallback=Iat;function Oat(e,t){return function(n,i,s){n&&e.setStatus({code:ff.SpanStatusCode.ERROR,message:n.message}),e.end(),t.call(this,n,i,s);}}Sn.patchCallbackPGPool=Oat;function Dat(e,t){return function(n){n&&e.setStatus({code:ff.SpanStatusCode.ERROR,message:n.message}),e.end(),t.apply(this,arguments);}}Sn.patchClientConnectCallback=Dat;function Nat(e){return typeof e=="object"&&e!==null&&"message"in e?String(e.message):void 0}Sn.getErrorMessage=Nat;function Rat(e){var t;return typeof e=="object"&&typeof((t=e)===null||t===void 0?void 0:t.text)=="string"}Sn.isObjectWithTextString=Rat;});var lpe=chunkTKGT252T_js.c(ug=>{Object.defineProperty(ug,"__esModule",{value:!0});ug.PACKAGE_NAME=ug.PACKAGE_VERSION=void 0;ug.PACKAGE_VERSION="0.44.0";ug.PACKAGE_NAME="@opentelemetry/instrumentation-pg";});var dpe=chunkTKGT252T_js.c(_C=>{Object.defineProperty(_C,"__esModule",{value:!0});_C.PgInstrumentation=void 0;var Zl=(Rn(),chunkTKGT252T_js.f(zn)),mn=(pt(),chunkTKGT252T_js.f(Gr)),fa=upe(),cpe=X2(),ppe=lpe(),fpe=lF(),pF=class extends Zl.InstrumentationBase{constructor(t={}){super(ppe.PACKAGE_NAME,ppe.PACKAGE_VERSION,t);}init(){let t=new Zl.InstrumentationNodeModuleDefinition("pg",[">=8.0.0 <9"],n=>{let i=n[Symbol.toStringTag]==="Module"?n.default:n;return (0, Zl.isWrapped)(i.Client.prototype.query)&&this._unwrap(i.Client.prototype,"query"),(0, Zl.isWrapped)(i.Client.prototype.connect)&&this._unwrap(i.Client.prototype,"connect"),this._wrap(i.Client.prototype,"query",this._getClientQueryPatch()),this._wrap(i.Client.prototype,"connect",this._getClientConnectPatch()),n},n=>{let i=n[Symbol.toStringTag]==="Module"?n.default:n;(0, Zl.isWrapped)(i.Client.prototype.query)&&this._unwrap(i.Client.prototype,"query");}),r=new Zl.InstrumentationNodeModuleDefinition("pg-pool",[">=2.0.0 <4"],n=>((0, Zl.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect"),this._wrap(n.prototype,"connect",this._getPoolConnectPatch()),n),n=>{(0, Zl.isWrapped)(n.prototype.connect)&&this._unwrap(n.prototype,"connect");});return [t,r]}_getClientConnectPatch(){let t=this;return r=>function(i){if(fa.shouldSkipInstrumentation(t.getConfig()))return r.call(this,i);let s=t.tracer.startSpan(fpe.SpanNames.CONNECT,{kind:mn.SpanKind.CLIENT,attributes:fa.getSemanticAttributesFromConnection(this)});if(i){let o=mn.trace.getSpan(mn.context.active());i=fa.patchClientConnectCallback(s,i),o&&(i=mn.context.bind(mn.context.active(),i));}let a=mn.context.with(mn.trace.setSpan(mn.context.active(),s),()=>r.call(this,i));return hpe(s,a)}}_getClientQueryPatch(){let t=this;return r=>(this._diag.debug("Patching pg.Client.prototype.query"),function(...i){if(fa.shouldSkipInstrumentation(t.getConfig()))return r.apply(this,i);let s=i[0],a=typeof s=="string",o=fa.isObjectWithTextString(s),u=a?{text:s,values:Array.isArray(i[1])?i[1]:void 0}:o?s:void 0,l=t.getConfig(),c=fa.handleConfigQuery.call(this,t.tracer,l,u);if(l.addSqlCommenterCommentToQueries&&(i[0]=a?(0, cpe.addSqlCommenterComment)(c,s):o?Object.assign(Object.assign({},s),{text:(0, cpe.addSqlCommenterComment)(c,s.text)}):i[0]),i.length>0){let f=mn.trace.getSpan(mn.context.active());if(typeof i[i.length-1]=="function")i[i.length-1]=fa.patchCallback(l,c,i[i.length-1]),f&&(i[i.length-1]=mn.context.bind(mn.context.active(),i[i.length-1]));else if(typeof(u==null?void 0:u.callback)=="function"){let d=fa.patchCallback(t.getConfig(),c,u.callback);f&&(d=mn.context.bind(mn.context.active(),d)),i[0].callback=d;}}let{requestHook:p}=l;typeof p=="function"&&u&&(0, Zl.safeExecuteInTheMiddle)(()=>{let{database:f,host:d,port:m,user:y}=this.connectionParameters;p(c,{connection:{database:f,host:d,port:m,user:y},query:{text:u.text,values:u.values,name:u.name}});},f=>{f&&t._diag.error("Error running query hook",f);},!0);let h;try{h=r.apply(this,i);}catch(f){throw c.setStatus({code:mn.SpanStatusCode.ERROR,message:fa.getErrorMessage(f)}),c.end(),f}return h instanceof Promise?h.then(f=>new Promise(d=>{fa.handleExecutionResult(t.getConfig(),c,f),c.end(),d(f);})).catch(f=>new Promise((d,m)=>{c.setStatus({code:mn.SpanStatusCode.ERROR,message:f.message}),c.end(),m(f);})):h})}_getPoolConnectPatch(){let t=this;return r=>function(i){if(fa.shouldSkipInstrumentation(t.getConfig()))return r.call(this,i);let s=t.tracer.startSpan(fpe.SpanNames.POOL_CONNECT,{kind:mn.SpanKind.CLIENT,attributes:fa.getSemanticAttributesFromPool(this.options)});if(i){let o=mn.trace.getSpan(mn.context.active());i=fa.patchCallbackPGPool(s,i),o&&(i=mn.context.bind(mn.context.active(),i));}let a=mn.context.with(mn.trace.setSpan(mn.context.active(),s),()=>r.call(this,i));return hpe(s,a)}}};_C.PgInstrumentation=pF;function hpe(e,t){if(!(t instanceof Promise))return t;let r=t;return mn.context.bind(mn.context.active(),r.then(n=>(e.end(),n)).catch(n=>(e.setStatus({code:mn.SpanStatusCode.ERROR,message:fa.getErrorMessage(n)}),e.end(),Promise.reject(n))))}});var ype=chunkTKGT252T_js.c(mpe=>{Object.defineProperty(mpe,"__esModule",{value:!0});});var gpe=chunkTKGT252T_js.c(ec=>{var Mat=ec&&ec.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),fF=ec&&ec.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Mat(t,e,r);};Object.defineProperty(ec,"__esModule",{value:!0});fF(dpe(),ec);fF(ype(),ec);fF(uF(),ec);});var vpe=chunkTKGT252T_js.c(lg=>{Object.defineProperty(lg,"__esModule",{value:!0});lg.PACKAGE_NAME=lg.PACKAGE_VERSION=void 0;lg.PACKAGE_VERSION="0.41.0";lg.PACKAGE_NAME="@opentelemetry/instrumentation-hapi";});var hF=chunkTKGT252T_js.c(Xu=>{Object.defineProperty(Xu,"__esModule",{value:!0});Xu.HapiLifecycleMethodNames=Xu.HapiLayerType=Xu.handlerPatched=Xu.HapiComponentName=void 0;Xu.HapiComponentName="@hapi/hapi";Xu.handlerPatched=Symbol("hapi-handler-patched");Xu.HapiLayerType={ROUTER:"router",PLUGIN:"plugin",EXT:"server.ext"};Xu.HapiLifecycleMethodNames=new Set(["onPreAuth","onCredentials","onPostAuth","onPreHandler","onPostHandler","onPreResponse","onRequest"]);});var dF=chunkTKGT252T_js.c(k0=>{Object.defineProperty(k0,"__esModule",{value:!0});k0.AttributeNames=void 0;(function(e){e.HAPI_TYPE="hapi.type",e.PLUGIN_NAME="hapi.plugin.name",e.EXT_TYPE="server.ext.type";})(k0.AttributeNames||(k0.AttributeNames={}));});var _pe=chunkTKGT252T_js.c(mi=>{Object.defineProperty(mi,"__esModule",{value:!0});mi.getPluginFromInput=mi.getExtMetadata=mi.getRouteMetadata=mi.isPatchableExtMethod=mi.isDirectExtInput=mi.isLifecycleExtEventObj=mi.isLifecycleExtType=mi.getPluginName=void 0;var xC=(dn(),chunkTKGT252T_js.f(si)),F0=hF(),hf=dF();function Fat(e){return e.name?e.name:e.pkg.name}mi.getPluginName=Fat;var Bat=e=>typeof e=="string"&&F0.HapiLifecycleMethodNames.has(e);mi.isLifecycleExtType=Bat;var jat=e=>{var t;let r=(t=e)===null||t===void 0?void 0:t.type;return r!==void 0&&(0, mi.isLifecycleExtType)(r)};mi.isLifecycleExtEventObj=jat;var Uat=e=>Array.isArray(e)&&e.length<=3&&(0, mi.isLifecycleExtType)(e[0])&&typeof e[1]=="function";mi.isDirectExtInput=Uat;var qat=e=>!Array.isArray(e);mi.isPatchableExtMethod=qat;var Vat=(e,t)=>t?{attributes:{[xC.SEMATTRS_HTTP_ROUTE]:e.path,[xC.SEMATTRS_HTTP_METHOD]:e.method,[hf.AttributeNames.HAPI_TYPE]:F0.HapiLayerType.PLUGIN,[hf.AttributeNames.PLUGIN_NAME]:t},name:`${t}: route - ${e.path}`}:{attributes:{[xC.SEMATTRS_HTTP_ROUTE]:e.path,[xC.SEMATTRS_HTTP_METHOD]:e.method,[hf.AttributeNames.HAPI_TYPE]:F0.HapiLayerType.ROUTER},name:`route - ${e.path}`};mi.getRouteMetadata=Vat;var Hat=(e,t)=>t?{attributes:{[hf.AttributeNames.EXT_TYPE]:e,[hf.AttributeNames.HAPI_TYPE]:F0.HapiLayerType.EXT,[hf.AttributeNames.PLUGIN_NAME]:t},name:`${t}: ext - ${e}`}:{attributes:{[hf.AttributeNames.EXT_TYPE]:e,[hf.AttributeNames.HAPI_TYPE]:F0.HapiLayerType.EXT},name:`ext - ${e}`};mi.getExtMetadata=Hat;var Gat=e=>"plugin"in e?"plugin"in e.plugin?e.plugin.plugin:e.plugin:e;mi.getPluginFromInput=Gat;});var Ppe=chunkTKGT252T_js.c(PC=>{Object.defineProperty(PC,"__esModule",{value:!0});PC.HapiInstrumentation=void 0;var La=(pt(),chunkTKGT252T_js.f(Gr)),xpe=(jn(),chunkTKGT252T_js.f(eo)),AC=(Rn(),chunkTKGT252T_js.f(zn)),Ape=vpe(),B0=hF(),tc=_pe(),mF=class extends AC.InstrumentationBase{constructor(t={}){super(Ape.PACKAGE_NAME,Ape.PACKAGE_VERSION,t);}init(){return new AC.InstrumentationNodeModuleDefinition(B0.HapiComponentName,[">=17.0.0 <22"],t=>{let r=t[Symbol.toStringTag]==="Module"?t.default:t;return (0, AC.isWrapped)(r.server)||this._wrap(r,"server",this._getServerPatch.bind(this)),(0, AC.isWrapped)(r.Server)||this._wrap(r,"Server",this._getServerPatch.bind(this)),r},t=>{let r=t[Symbol.toStringTag]==="Module"?t.default:t;this._massUnwrap([r],["server","Server"]);})}_getServerPatch(t){let r=this,n=this;return function(s){let a=t.apply(this,[s]);return n._wrap(a,"route",o=>r._getServerRoutePatch.bind(r)(o)),n._wrap(a,"ext",o=>r._getServerExtPatch.bind(r)(o)),n._wrap(a,"register",r._getServerRegisterPatch.bind(r)),a}}_getServerRegisterPatch(t){let r=this;return function(i,s){if(Array.isArray(i))for(let a of i){let o=(0, tc.getPluginFromInput)(a);r._wrapRegisterHandler(o);}else {let a=(0, tc.getPluginFromInput)(i);r._wrapRegisterHandler(a);}return t.apply(this,[i,s])}}_getServerExtPatch(t,r){let n=this;return function(...s){if(Array.isArray(s[0])){let a=s[0];for(let o=0;o<a.length;o++){let u=a[o];if((0, tc.isLifecycleExtType)(u.type)){let l=u,c=n._wrapExtMethods(l.method,u.type,r);l.method=c,a[o]=l;}}return t.apply(this,s)}else if((0, tc.isDirectExtInput)(s)){let a=s,o=a[1],u=n._wrapExtMethods(o,a[0],r);return t.apply(this,[a[0],u,a[2]])}else if((0, tc.isLifecycleExtEventObj)(s[0])){let a=s[0],o=n._wrapExtMethods(a.method,a.type,r);return a.method=o,t.call(this,a)}return t.apply(this,s)}}_getServerRoutePatch(t,r){let n=this;return function(i){if(Array.isArray(i))for(let s=0;s<i.length;s++){let a=n._wrapRouteHandler.call(n,i[s],r);i[s]=a;}else i=n._wrapRouteHandler.call(n,i,r);return t.apply(this,[i])}}_wrapRegisterHandler(t){let r=this,n=(0, tc.getPluginName)(t),i=t.register,s=this,a=function(o,u){return s._wrap(o,"route",l=>r._getServerRoutePatch.bind(r)(l,n)),s._wrap(o,"ext",l=>r._getServerExtPatch.bind(r)(l,n)),i(o,u)};t.register=a;}_wrapExtMethods(t,r,n){let i=this;if(t instanceof Array){for(let s=0;s<t.length;s++)t[s]=i._wrapExtMethods(t[s],r);return t}else if((0, tc.isPatchableExtMethod)(t))return t[B0.handlerPatched]===!0?t:(t[B0.handlerPatched]=!0,async function(...a){if(La.trace.getSpan(La.context.active())===void 0)return await t.apply(this,a);let o=(0, tc.getExtMetadata)(r,n),u=i.tracer.startSpan(o.name,{attributes:o.attributes});try{return await La.context.with(La.trace.setSpan(La.context.active(),u),t,void 0,...a)}catch(l){throw u.recordException(l),u.setStatus({code:La.SpanStatusCode.ERROR,message:l.message}),l}finally{u.end();}});return t}_wrapRouteHandler(t,r){var n;let i=this;if(t[B0.handlerPatched]===!0)return t;t[B0.handlerPatched]=!0;let s=a=>async function(...o){if(La.trace.getSpan(La.context.active())===void 0)return await a.call(this,...o);let u=(0, xpe.getRPCMetadata)(La.context.active());(u==null?void 0:u.type)===xpe.RPCType.HTTP&&(u.route=t.path);let l=(0, tc.getRouteMetadata)(t,r),c=i.tracer.startSpan(l.name,{attributes:l.attributes});try{return await La.context.with(La.trace.setSpan(La.context.active(),c),()=>a.call(this,...o))}catch(p){throw c.recordException(p),c.setStatus({code:La.SpanStatusCode.ERROR,message:p.message}),p}finally{c.end();}};if(typeof t.handler=="function")t.handler=s(t.handler);else if(typeof t.options=="function"){let a=t.options;t.options=function(o){let u=a(o);return typeof u.handler=="function"&&(u.handler=s(u.handler)),u};}else typeof((n=t.options)===null||n===void 0?void 0:n.handler)=="function"&&(t.options.handler=s(t.options.handler));return t}};PC.HapiInstrumentation=mF;});var wpe=chunkTKGT252T_js.c(df=>{var $at=df&&df.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Cpe=df&&df.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&$at(t,e,r);};Object.defineProperty(df,"__esModule",{value:!0});Cpe(Ppe(),df);Cpe(dF(),df);});var CC=chunkTKGT252T_js.c(j0=>{Object.defineProperty(j0,"__esModule",{value:!0});j0.KoaLayerType=void 0;(function(e){e.ROUTER="router",e.MIDDLEWARE="middleware";})(j0.KoaLayerType||(j0.KoaLayerType={}));});var Rpe=chunkTKGT252T_js.c(cg=>{Object.defineProperty(cg,"__esModule",{value:!0});cg.PACKAGE_NAME=cg.PACKAGE_VERSION=void 0;cg.PACKAGE_VERSION="0.43.0";cg.PACKAGE_NAME="@opentelemetry/instrumentation-koa";});var yF=chunkTKGT252T_js.c(U0=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.AttributeNames=void 0;(function(e){e.KOA_TYPE="koa.type",e.KOA_NAME="koa.name";})(U0.AttributeNames||(U0.AttributeNames={}));});var Lpe=chunkTKGT252T_js.c(pg=>{Object.defineProperty(pg,"__esModule",{value:!0});pg.isLayerIgnored=pg.getMiddlewareMetadata=void 0;var Mpe=CC(),wC=yF(),Xat=(dn(),chunkTKGT252T_js.f(si)),zat=(e,t,r,n)=>{var i;return r?{attributes:{[wC.AttributeNames.KOA_NAME]:n==null?void 0:n.toString(),[wC.AttributeNames.KOA_TYPE]:Mpe.KoaLayerType.ROUTER,[Xat.SEMATTRS_HTTP_ROUTE]:n==null?void 0:n.toString()},name:e._matchedRouteName||`router - ${n}`}:{attributes:{[wC.AttributeNames.KOA_NAME]:(i=t.name)!==null&&i!==void 0?i:"middleware",[wC.AttributeNames.KOA_TYPE]:Mpe.KoaLayerType.MIDDLEWARE},name:`middleware - ${t.name}`}};pg.getMiddlewareMetadata=zat;var Jat=(e,t)=>{var r;return !!(Array.isArray(t==null?void 0:t.ignoreLayersType)&&(!((r=t==null?void 0:t.ignoreLayersType)===null||r===void 0)&&r.includes(e)))};pg.isLayerIgnored=Jat;});var kpe=chunkTKGT252T_js.c(IC=>{Object.defineProperty(IC,"__esModule",{value:!0});IC.kLayerPatched=void 0;IC.kLayerPatched=Symbol("koa-layer-patched");});var Vpe=chunkTKGT252T_js.c(OC=>{Object.defineProperty(OC,"__esModule",{value:!0});OC.KoaInstrumentation=void 0;var zu=(pt(),chunkTKGT252T_js.f(Gr)),q0=(Rn(),chunkTKGT252T_js.f(zn)),Fpe=CC(),Bpe=Rpe(),jpe=Lpe(),Upe=(jn(),chunkTKGT252T_js.f(eo)),qpe=kpe(),gF=class extends q0.InstrumentationBase{constructor(t={}){super(Bpe.PACKAGE_NAME,Bpe.PACKAGE_VERSION,t);}init(){return new q0.InstrumentationNodeModuleDefinition("koa",[">=2.0.0 <3"],t=>{let r=t[Symbol.toStringTag]==="Module"?t.default:t;return r==null?r:((0, q0.isWrapped)(r.prototype.use)&&this._unwrap(r.prototype,"use"),this._wrap(r.prototype,"use",this._getKoaUsePatch.bind(this)),t)},t=>{let r=t[Symbol.toStringTag]==="Module"?t.default:t;(0, q0.isWrapped)(r.prototype.use)&&this._unwrap(r.prototype,"use");})}_getKoaUsePatch(t){let r=this;return function(i){let s;return i.router?s=r._patchRouterDispatch(i):s=r._patchLayer(i,!1),t.apply(this,[s])}}_patchRouterDispatch(t){var r;zu.diag.debug("Patching @koa/router dispatch");let n=t.router,i=(r=n==null?void 0:n.stack)!==null&&r!==void 0?r:[];for(let s of i){let a=s.path,o=s.stack;for(let u=0;u<o.length;u++){let l=o[u];o[u]=this._patchLayer(l,!0,a);}}return t}_patchLayer(t,r,n){let i=r?Fpe.KoaLayerType.ROUTER:Fpe.KoaLayerType.MIDDLEWARE;return t[qpe.kLayerPatched]===!0||(0, jpe.isLayerIgnored)(i,this.getConfig())?t:t.constructor.name==="GeneratorFunction"||t.constructor.name==="AsyncGeneratorFunction"?(zu.diag.debug("ignoring generator-based Koa middleware layer"),t):(t[qpe.kLayerPatched]=!0,zu.diag.debug("patching Koa middleware layer"),async(s,a)=>{if(zu.trace.getSpan(zu.context.active())===void 0)return t(s,a);let u=(0, jpe.getMiddlewareMetadata)(s,t,r,n),l=this.tracer.startSpan(u.name,{attributes:u.attributes}),c=(0, Upe.getRPCMetadata)(zu.context.active());(c==null?void 0:c.type)===Upe.RPCType.HTTP&&s._matchedRoute&&(c.route=s._matchedRoute.toString());let{requestHook:p}=this.getConfig();p&&(0, q0.safeExecuteInTheMiddle)(()=>p(l,{context:s,middlewareLayer:t,layerType:i}),f=>{f&&zu.diag.error("koa instrumentation: request hook failed",f);},!0);let h=zu.trace.setSpan(zu.context.active(),l);return zu.context.with(h,async()=>{try{return await t(s,a)}catch(f){throw l.recordException(f),f}finally{l.end();}})})}};OC.KoaInstrumentation=gF;});var Hpe=chunkTKGT252T_js.c(rc=>{var Qat=rc&&rc.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),SF=rc&&rc.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Qat(t,e,r);};Object.defineProperty(rc,"__esModule",{value:!0});SF(Vpe(),rc);SF(CC(),rc);SF(yF(),rc);});var TF=chunkTKGT252T_js.c(su=>{Object.defineProperty(su,"__esModule",{value:!0});su.ConnectNames=su.ConnectTypes=su.AttributeNames=void 0;(function(e){e.CONNECT_TYPE="connect.type",e.CONNECT_NAME="connect.name";})(su.AttributeNames||(su.AttributeNames={}));(function(e){e.MIDDLEWARE="middleware",e.REQUEST_HANDLER="request_handler";})(su.ConnectTypes||(su.ConnectTypes={}));(function(e){e.MIDDLEWARE="middleware",e.REQUEST_HANDLER="request handler";})(su.ConnectNames||(su.ConnectNames={}));});var Wpe=chunkTKGT252T_js.c(fg=>{Object.defineProperty(fg,"__esModule",{value:!0});fg.PACKAGE_NAME=fg.PACKAGE_VERSION=void 0;fg.PACKAGE_VERSION="0.39.0";fg.PACKAGE_NAME="@opentelemetry/instrumentation-connect";});var Xpe=chunkTKGT252T_js.c(DC=>{Object.defineProperty(DC,"__esModule",{value:!0});DC._LAYERS_STORE_PROPERTY=void 0;DC._LAYERS_STORE_PROPERTY=Symbol("opentelemetry.instrumentation-connect.request-route-stack");});var zpe=chunkTKGT252T_js.c(yf=>{Object.defineProperty(yf,"__esModule",{value:!0});yf.generateRoute=yf.replaceCurrentStackRoute=yf.addNewStackLayer=void 0;var iot=(pt(),chunkTKGT252T_js.f(Gr)),mf=Xpe(),sot=e=>{Array.isArray(e[mf._LAYERS_STORE_PROPERTY])===!1&&Object.defineProperty(e,mf._LAYERS_STORE_PROPERTY,{enumerable:!1,value:[]}),e[mf._LAYERS_STORE_PROPERTY].push("/");let t=e[mf._LAYERS_STORE_PROPERTY].length;return ()=>{t===e[mf._LAYERS_STORE_PROPERTY].length?e[mf._LAYERS_STORE_PROPERTY].pop():iot.diag.warn("Connect: Trying to pop the stack multiple time");}};yf.addNewStackLayer=sot;var aot=(e,t)=>{t&&e[mf._LAYERS_STORE_PROPERTY].splice(-1,1,t);};yf.replaceCurrentStackRoute=aot;var oot=e=>e[mf._LAYERS_STORE_PROPERTY].reduce((t,r)=>t.replace(/\/+$/,"")+r);yf.generateRoute=oot;});var Zpe=chunkTKGT252T_js.c(gf=>{Object.defineProperty(gf,"__esModule",{value:!0});gf.ConnectInstrumentation=gf.ANONYMOUS_NAME=void 0;var uot=(pt(),chunkTKGT252T_js.f(Gr)),Jpe=(jn(),chunkTKGT252T_js.f(eo)),hg=TF(),Qpe=Wpe(),NC=(Rn(),chunkTKGT252T_js.f(zn)),lot=(dn(),chunkTKGT252T_js.f(si)),EF=zpe();gf.ANONYMOUS_NAME="anonymous";var bF=class extends NC.InstrumentationBase{constructor(t={}){super(Qpe.PACKAGE_NAME,Qpe.PACKAGE_VERSION,t);}init(){return [new NC.InstrumentationNodeModuleDefinition("connect",[">=3.0.0 <4"],t=>this._patchConstructor(t))]}_patchApp(t){(0, NC.isWrapped)(t.use)||this._wrap(t,"use",this._patchUse.bind(this)),(0, NC.isWrapped)(t.handle)||this._wrap(t,"handle",this._patchHandle.bind(this));}_patchConstructor(t){let r=this;return function(...n){let i=t.apply(this,n);return r._patchApp(i),i}}_patchNext(t,r){return function(i){let s=t.apply(this,[i]);return r(),s}}_startSpan(t,r){let n,i,s;t?(n=hg.ConnectTypes.REQUEST_HANDLER,s=hg.ConnectNames.REQUEST_HANDLER,i=t):(n=hg.ConnectTypes.MIDDLEWARE,s=hg.ConnectNames.MIDDLEWARE,i=r.name||gf.ANONYMOUS_NAME);let a=`${s} - ${i}`,o={attributes:{[lot.SEMATTRS_HTTP_ROUTE]:t.length>0?t:"/",[hg.AttributeNames.CONNECT_TYPE]:n,[hg.AttributeNames.CONNECT_NAME]:i}};return this.tracer.startSpan(a,o)}_patchMiddleware(t,r){let n=this,i=r.length===4;function s(){if(!n.isEnabled())return r.apply(this,arguments);let[a,o,u]=i?[1,2,3]:[0,1,2],l=arguments[a],c=arguments[o],p=arguments[u];(0, EF.replaceCurrentStackRoute)(l,t);let h=(0, Jpe.getRPCMetadata)(uot.context.active());t&&(h==null?void 0:h.type)===Jpe.RPCType.HTTP&&(h.route=(0, EF.generateRoute)(l));let f="";t?f=`request handler - ${t}`:f=`middleware - ${r.name||gf.ANONYMOUS_NAME}`;let d=n._startSpan(t,r);n._diag.debug("start span",f);let m=!1;function y(){m?n._diag.debug(`span ${d.name} - already finished`):(m=!0,n._diag.debug(`finishing span ${d.name}`),d.end()),c.removeListener("close",y);}return c.addListener("close",y),arguments[u]=n._patchNext(p,y),r.apply(this,arguments)}return Object.defineProperty(s,"length",{value:r.length,writable:!1,configurable:!0}),s}_patchUse(t){let r=this;return function(...n){let i=n[n.length-1],s=n[n.length-2]||"";return n[n.length-1]=r._patchMiddleware(s,i),t.apply(this,n)}}_patchHandle(t){let r=this;return function(){let[n,i]=[0,2],s=arguments[n],a=arguments[i],o=(0, EF.addNewStackLayer)(s);return typeof a=="function"&&(arguments[i]=r._patchOut(a,o)),t.apply(this,arguments)}}_patchOut(t,r){return function(...i){return r(),Reflect.apply(t,this,i)}}};gf.ConnectInstrumentation=bF;});var tfe=chunkTKGT252T_js.c(Sf=>{var cot=Sf&&Sf.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),efe=Sf&&Sf.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&cot(t,e,r);};Object.defineProperty(Sf,"__esModule",{value:!0});efe(TF(),Sf);efe(Zpe(),Sf);});var ofe=chunkTKGT252T_js.c(dg=>{Object.defineProperty(dg,"__esModule",{value:!0});dg.PACKAGE_NAME=dg.PACKAGE_VERSION=void 0;dg.PACKAGE_VERSION="0.39.0";dg.PACKAGE_NAME="@opentelemetry/instrumentation-generic-pool";});var lfe=chunkTKGT252T_js.c(RC=>{Object.defineProperty(RC,"__esModule",{value:!0});RC.GenericPoolInstrumentation=void 0;var mg=(pt(),chunkTKGT252T_js.f(Gr)),Qh=(Rn(),chunkTKGT252T_js.f(zn)),ufe=ofe(),_F="generic-pool",xF=class extends Qh.InstrumentationBase{constructor(t={}){super(ufe.PACKAGE_NAME,ufe.PACKAGE_VERSION,t),this._isDisabled=!1;}init(){return [new Qh.InstrumentationNodeModuleDefinition(_F,[">=3.0.0 <4"],t=>{let r=t.Pool;return (0, Qh.isWrapped)(r.prototype.acquire)&&this._unwrap(r.prototype,"acquire"),this._wrap(r.prototype,"acquire",this._acquirePatcher.bind(this)),t},t=>{let r=t.Pool;return this._unwrap(r.prototype,"acquire"),t}),new Qh.InstrumentationNodeModuleDefinition(_F,[">=2.4.0 <3"],t=>{let r=t.Pool;return (0, Qh.isWrapped)(r.prototype.acquire)&&this._unwrap(r.prototype,"acquire"),this._wrap(r.prototype,"acquire",this._acquireWithCallbacksPatcher.bind(this)),t},t=>{let r=t.Pool;return this._unwrap(r.prototype,"acquire"),t}),new Qh.InstrumentationNodeModuleDefinition(_F,[">=2.0.0 <2.4"],t=>(this._isDisabled=!1,(0, Qh.isWrapped)(t.Pool)&&this._unwrap(t,"Pool"),this._wrap(t,"Pool",this._poolWrapper.bind(this)),t),t=>(this._isDisabled=!0,t))]}_acquirePatcher(t){let r=this;return function(...i){let s=mg.context.active(),a=r.tracer.startSpan("generic-pool.acquire",{},s);return mg.context.with(mg.trace.setSpan(s,a),()=>t.call(this,...i).then(o=>(a.end(),o),o=>{throw a.recordException(o),a.end(),o}))}}_poolWrapper(t){let r=this;return function(){let i=t.apply(this,arguments);return r._wrap(i,"acquire",r._acquireWithCallbacksPatcher.bind(r)),i}}_acquireWithCallbacksPatcher(t){let r=this;return function(i,s){if(r._isDisabled)return t.call(this,i,s);let a=mg.context.active(),o=r.tracer.startSpan("generic-pool.acquire",{},a);return mg.context.with(mg.trace.setSpan(a,o),()=>{t.call(this,(u,l)=>{if(o.end(),i)return i(u,l)},s);})}}};RC.GenericPoolInstrumentation=xF;});var cfe=chunkTKGT252T_js.c(Zh=>{var Sot=Zh&&Zh.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}});}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Tot=Zh&&Zh.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Sot(t,e,r);};Object.defineProperty(Zh,"__esModule",{value:!0});Tot(lfe(),Zh);});var PF=chunkTKGT252T_js.c(MC=>{Object.defineProperty(MC,"__esModule",{value:!0});MC.AbstractAsyncHooksContextManager=void 0;var bot=chunkTKGT252T_js.a("events"),vot=["addListener","on","once","prependListener","prependOnceListener"],AF=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1;}bind(t,r){return r instanceof bot.EventEmitter?this._bindEventEmitter(t,r):typeof r=="function"?this._bindFunction(t,r):r}_bindFunction(t,r){let n=this,i=function(...s){return n.with(t,()=>r.apply(this,s))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),i}_bindEventEmitter(t,r){return this._getPatchMap(r)!==void 0||(this._createPatchMap(r),vot.forEach(i=>{r[i]!==void 0&&(r[i]=this._patchAddListener(r,r[i],t));}),typeof r.removeListener=="function"&&(r.removeListener=this._patchRemoveListener(r,r.removeListener)),typeof r.off=="function"&&(r.off=this._patchRemoveListener(r,r.off)),typeof r.removeAllListeners=="function"&&(r.removeAllListeners=this._patchRemoveAllListeners(r,r.removeAllListeners))),r}_patchRemoveListener(t,r){let n=this;return function(i,s){var a;let o=(a=n._getPatchMap(t))===null||a===void 0?void 0:a[i];if(o===void 0)return r.call(this,i,s);let u=o.get(s);return r.call(this,i,u||s)}}_patchRemoveAllListeners(t,r){let n=this;return function(i){let s=n._getPatchMap(t);return s!==void 0&&(arguments.length===0?n._createPatchMap(t):s[i]!==void 0&&delete s[i]),r.apply(this,arguments)}}_patchAddListener(t,r,n){let i=this;return function(s,a){if(i._wrapped)return r.call(this,s,a);let o=i._getPatchMap(t);o===void 0&&(o=i._createPatchMap(t));let u=o[s];u===void 0&&(u=new WeakMap,o[s]=u);let l=i.bind(n,a);u.set(a,l),i._wrapped=!0;try{return r.call(this,s,l)}finally{i._wrapped=!1;}}}_createPatchMap(t){let r=Object.create(null);return t[this._kOtListeners]=r,r}_getPatchMap(t){return t[this._kOtListeners]}};MC.AbstractAsyncHooksContextManager=AF;});var mfe=chunkTKGT252T_js.c(LC=>{Object.defineProperty(LC,"__esModule",{value:!0});LC.AsyncHooksContextManager=void 0;var _ot=(pt(),chunkTKGT252T_js.f(Gr)),xot=chunkTKGT252T_js.a("async_hooks"),Aot=PF(),CF=class extends Aot.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=xot.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)});}active(){var t;return (t=this._stack[this._stack.length-1])!==null&&t!==void 0?t:_ot.ROOT_CONTEXT}with(t,r,n,...i){this._enterContext(t);try{return r.call(n,...i)}finally{this._exitContext();}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(t,r){if(r==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(t,n);}_destroy(t){this._contexts.delete(t);}_before(t){let r=this._contexts.get(t);r!==void 0&&this._enterContext(r);}_after(){this._exitContext();}_enterContext(t){this._stack.push(t);}_exitContext(){this._stack.pop();}};LC.AsyncHooksContextManager=CF;});var yfe=chunkTKGT252T_js.c(kC=>{Object.defineProperty(kC,"__esModule",{value:!0});kC.AsyncLocalStorageContextManager=void 0;var Pot=(pt(),chunkTKGT252T_js.f(Gr)),Cot=chunkTKGT252T_js.a("async_hooks"),wot=PF(),wF=class extends wot.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new Cot.AsyncLocalStorage;}active(){var t;return (t=this._asyncLocalStorage.getStore())!==null&&t!==void 0?t:Pot.ROOT_CONTEXT}with(t,r,n,...i){let s=n==null?r:r.bind(n);return this._asyncLocalStorage.run(t,s,...i)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};kC.AsyncLocalStorageContextManager=wF;});var gfe=chunkTKGT252T_js.c(yg=>{Object.defineProperty(yg,"__esModule",{value:!0});yg.AsyncLocalStorageContextManager=yg.AsyncHooksContextManager=void 0;var Iot=mfe();Object.defineProperty(yg,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Iot.AsyncHooksContextManager}});var Oot=yfe();Object.defineProperty(yg,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Oot.AsyncLocalStorageContextManager}});});var kfe=chunkTKGT252T_js.c((pWr,NF)=>{var Lfe=(e,t,r)=>new Promise((n,i)=>{if(r=Object.assign({concurrency:1/0},r),typeof t!="function")throw new TypeError("Mapper function is required");let{concurrency:s}=r;if(!(typeof s=="number"&&s>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${s}\` (${typeof s})`);let a=[],o=e[Symbol.iterator](),u=!1,l=!1,c=0,p=0,h=()=>{if(u)return;let f=o.next(),d=p;if(p++,f.done){l=!0,c===0&&n(a);return}c++,Promise.resolve(f.value).then(m=>t(m,d)).then(m=>{a[d]=m,c--,h();},m=>{u=!0,i(m);});};for(let f=0;f<s&&(h(),!l);f++);});NF.exports=Lfe;NF.exports.default=Lfe;});var Bfe=chunkTKGT252T_js.c((fWr,RF)=>{RF.exports=Ffe;RF.exports.default=Ffe;function Ffe(e){return !!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}});var Ufe=chunkTKGT252T_js.c((hWr,jfe)=>{jfe.exports=JR()().Observable;});var Vfe=chunkTKGT252T_js.c((dWr,qfe)=>{var aut=Ufe();function MF(e,t,r){let n=e===!1?!1:e||t;if(r&&!n||n&&typeof n!="string")throw new TypeError(t+"Event must be a string.");return n}qfe.exports=(e,t)=>{t=t||{};let r=!1,n=[],i=t.await,s=MF(t.dataEvent,"data",!0),a=MF(t.errorEvent,"error"),o=MF(t.endEvent,"end");function u(){r=!0,n.forEach(c=>{e.removeListener(s,c);}),n=null;}let l=new Promise((c,p)=>{function h(f){i?i.then(c):c(f);}o?e.once(o,h):i&&h(),a&&e.once(a,p),i&&i.catch(p);}).catch(c=>{throw u(),c}).then(c=>(u(),c));return new aut(c=>{if(l.then(c.complete.bind(c)).catch(c.error.bind(c)),r)return null;let p=h=>{c.next(h);};return e.on(s,p),n.push(p),()=>{if(e.removeListener(s,p),r)return;let h=n.indexOf(p);h!==-1&&n.splice(h,1);}})};});function et(e,t){LF(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var LF,Xr=chunkTKGT252T_js.b(()=>{LF=function(e,t){return LF=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);},LF(e,t)};});function ic(e){return typeof e=="function"}var $0=chunkTKGT252T_js.b(()=>{});var kF,ds,K0=chunkTKGT252T_js.b(()=>{kF=!1,ds={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;""+t.stack;}kF=e;},get useDeprecatedSynchronousErrorHandling(){return kF}};});function sc(e){setTimeout(function(){throw e},0);}var UC=chunkTKGT252T_js.b(()=>{});var gg,FF=chunkTKGT252T_js.b(()=>{K0();UC();gg={closed:!0,next:function(e){},error:function(e){if(ds.useDeprecatedSynchronousErrorHandling)throw e;sc(e);},complete:function(){}};});var qn,lo=chunkTKGT252T_js.b(()=>{qn=function(){return Array.isArray||function(e){return e&&typeof e.length=="number"}}();});function Sg(e){return e!==null&&typeof e=="object"}var qC=chunkTKGT252T_js.b(()=>{});var out,ed,BF=chunkTKGT252T_js.b(()=>{out=function(){function e(t){return Error.call(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t,this}return e.prototype=Object.create(Error.prototype),e}(),ed=out;});function Hfe(e){return e.reduce(function(t,r){return t.concat(r instanceof ed?r.errors:r)},[])}var Dr,Os=chunkTKGT252T_js.b(()=>{lo();qC();$0();BF();Dr=function(){function e(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t);}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this,n=r._parentOrParents,i=r._ctorUnsubscribe,s=r._unsubscribe,a=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(n!==null)for(var o=0;o<n.length;++o){var u=n[o];u.remove(this);}if(ic(s)){i&&(this._unsubscribe=void 0);try{s.call(this);}catch(p){t=p instanceof ed?Hfe(p.errors):[p];}}if(qn(a))for(var o=-1,l=a.length;++o<l;){var c=a[o];if(Sg(c))try{c.unsubscribe();}catch(h){t=t||[],h instanceof ed?t=t.concat(Hfe(h.errors)):t.push(h);}}if(t)throw new ed(t)}},e.prototype.add=function(t){var r=t;if(!t)return e.EMPTY;switch(typeof t){case"function":r=new e(t);case"object":if(r===this||r.closed||typeof r.unsubscribe!="function")return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof e)){var n=r;r=new e,r._subscriptions=[n];}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=r._parentOrParents;if(i===null)r._parentOrParents=this;else if(i instanceof e){if(i===this)return r;r._parentOrParents=[i,this];}else if(i.indexOf(this)===-1)i.push(this);else return r;var s=this._subscriptions;return s===null?this._subscriptions=[r]:s.push(r),r},e.prototype.remove=function(t){var r=this._subscriptions;if(r){var n=r.indexOf(t);n!==-1&&r.splice(n,1);}},e.EMPTY=function(t){return t.closed=!0,t}(new e),e}();});var td,VC=chunkTKGT252T_js.b(()=>{td=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();});var cn,Gfe,ka=chunkTKGT252T_js.b(()=>{Xr();$0();FF();Os();VC();K0();UC();cn=function(e){et(t,e);function t(r,n,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=gg;break;case 1:if(!r){s.destination=gg;break}if(typeof r=="object"){r instanceof t?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new Gfe(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new Gfe(s,r,n,i);break}return s}return t.prototype[td]=function(){return this},t.create=function(r,n,i){var s=new t(r,n,i);return s.syncErrorThrowable=!1,s},t.prototype.next=function(r){this.isStopped||this._next(r);},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r));},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete());},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this));},t.prototype._next=function(r){this.destination.next(r);},t.prototype._error=function(r){this.destination.error(r),this.unsubscribe();},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe();},t.prototype._unsubscribeAndRecycle=function(){var r=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this},t}(Dr),Gfe=function(e){et(t,e);function t(r,n,i,s){var a=e.call(this)||this;a._parentSubscriber=r;var o,u=a;return ic(n)?o=n:n&&(o=n.next,i=n.error,s=n.complete,n!==gg&&(u=Object.create(n),ic(u.unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=o,a._error=i,a._complete=s,a}return t.prototype.next=function(r){if(!this.isStopped&&this._next){var n=this._parentSubscriber;!ds.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,r):this.__tryOrSetError(n,this._next,r)&&this.unsubscribe();}},t.prototype.error=function(r){if(!this.isStopped){var n=this._parentSubscriber,i=ds.useDeprecatedSynchronousErrorHandling;if(this._error)!i||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,r),this.unsubscribe()):(this.__tryOrSetError(n,this._error,r),this.unsubscribe());else if(n.syncErrorThrowable)i?(n.syncErrorValue=r,n.syncErrorThrown=!0):sc(r),this.unsubscribe();else {if(this.unsubscribe(),i)throw r;sc(r);}}},t.prototype.complete=function(){var r=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var i=function(){return r._complete.call(r._context)};!ds.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?(this.__tryOrUnsub(i),this.unsubscribe()):(this.__tryOrSetError(n,i),this.unsubscribe());}else this.unsubscribe();}},t.prototype.__tryOrUnsub=function(r,n){try{r.call(this._context,n);}catch(i){if(this.unsubscribe(),ds.useDeprecatedSynchronousErrorHandling)throw i;sc(i);}},t.prototype.__tryOrSetError=function(r,n,i){if(!ds.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,i);}catch(s){return ds.useDeprecatedSynchronousErrorHandling?(r.syncErrorValue=s,r.syncErrorThrown=!0,!0):(sc(s),!0)}return !1},t.prototype._unsubscribe=function(){var r=this._parentSubscriber;this._context=null,this._parentSubscriber=null,r.unsubscribe();},t}(cn);});function Tg(e){for(;e;){var t=e,r=t.closed,n=t.destination,i=t.isStopped;if(r||i)return !1;n&&n instanceof cn?e=n:e=null;}return !0}var HC=chunkTKGT252T_js.b(()=>{ka();});function $fe(e,t,r){if(e){if(e instanceof cn)return e;if(e[td])return e[td]()}return !e&&!t&&!r?new cn(gg):new cn(e,t,r)}var Kfe=chunkTKGT252T_js.b(()=>{ka();VC();FF();});var co,rd=chunkTKGT252T_js.b(()=>{co=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();});function ac(e){return e}var Y0=chunkTKGT252T_js.b(()=>{});function Yfe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return jF(e)}function jF(e){return e.length===0?ac:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var UF=chunkTKGT252T_js.b(()=>{Y0();});function Wfe(e){if(e||(e=ds.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var Ze,Lr=chunkTKGT252T_js.b(()=>{HC();Kfe();rd();UF();K0();Ze=function(){function e(t){this._isScalar=!1,t&&(this._subscribe=t);}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this.operator,s=$fe(t,r,n);if(i?s.add(i.call(s,this.source)):s.add(this.source||ds.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),ds.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){ds.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=r),Tg(t)?t.error(r):console.warn(r);}},e.prototype.forEach=function(t,r){var n=this;return r=Wfe(r),new r(function(i,s){var a;a=n.subscribe(function(o){try{t(o);}catch(u){s(u),a&&a.unsubscribe();}},s,i);})},e.prototype._subscribe=function(t){var r=this.source;return r&&r.subscribe(t)},e.prototype[co]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.length===0?this:jF(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Wfe(t),new t(function(n,i){var s;r.subscribe(function(a){return s=a},function(a){return i(a)},function(){return n(s)});})},e.create=function(t){return new e(t)},e}();});var uut,po,W0=chunkTKGT252T_js.b(()=>{uut=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),po=uut;});var GC,qF=chunkTKGT252T_js.b(()=>{Xr();Os();GC=function(e){et(t,e);function t(r,n){var i=e.call(this)||this;return i.subject=r,i.subscriber=n,i.closed=!1,i}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var r=this.subject,n=r.observers;if(this.subject=null,!(!n||n.length===0||r.isStopped||r.closed)){var i=n.indexOf(this.subscriber);i!==-1&&n.splice(i,1);}}},t}(Dr);});var VF,oc,Xfe,Eg=chunkTKGT252T_js.b(()=>{Xr();Lr();ka();Os();W0();qF();VC();VF=function(e){et(t,e);function t(r){var n=e.call(this,r)||this;return n.destination=r,n}return t}(cn),oc=function(e){et(t,e);function t(){var r=e.call(this)||this;return r.observers=[],r.closed=!1,r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype[td]=function(){return new VF(this)},t.prototype.lift=function(r){var n=new Xfe(this,this);return n.operator=r,n},t.prototype.next=function(r){if(this.closed)throw new po;if(!this.isStopped)for(var n=this.observers,i=n.length,s=n.slice(),a=0;a<i;a++)s[a].next(r);},t.prototype.error=function(r){if(this.closed)throw new po;this.hasError=!0,this.thrownError=r,this.isStopped=!0;for(var n=this.observers,i=n.length,s=n.slice(),a=0;a<i;a++)s[a].error(r);this.observers.length=0;},t.prototype.complete=function(){if(this.closed)throw new po;this.isStopped=!0;for(var r=this.observers,n=r.length,i=r.slice(),s=0;s<n;s++)i[s].complete();this.observers.length=0;},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null;},t.prototype._trySubscribe=function(r){if(this.closed)throw new po;return e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){if(this.closed)throw new po;return this.hasError?(r.error(this.thrownError),Dr.EMPTY):this.isStopped?(r.complete(),Dr.EMPTY):(this.observers.push(r),new GC(this,r))},t.prototype.asObservable=function(){var r=new Ze;return r.source=this,r},t.create=function(r,n){return new Xfe(r,n)},t}(Ze),Xfe=function(e){et(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n=this.destination;n&&n.next&&n.next(r);},t.prototype.error=function(r){var n=this.destination;n&&n.error&&this.destination.error(r);},t.prototype.complete=function(){var r=this.destination;r&&r.complete&&this.destination.complete();},t.prototype._subscribe=function(r){var n=this.source;return n?this.source.subscribe(r):Dr.EMPTY},t}(oc);});function zfe(){return function(t){return t.lift(new lut(t))}}var lut,cut,Jfe=chunkTKGT252T_js.b(()=>{Xr();ka();lut=function(){function e(t){this.connectable=t;}return e.prototype.call=function(t,r){var n=this.connectable;n._refCount++;var i=new cut(t,n),s=r.subscribe(i);return i.closed||(i.connection=n.connect()),s},e}(),cut=function(e){et(t,e);function t(r,n){var i=e.call(this,r)||this;return i.connectable=n,i}return t.prototype._unsubscribe=function(){var r=this.connectable;if(!r){this.connection=null;return}this.connectable=null;var n=r._refCount;if(n<=0){this.connection=null;return}if(r._refCount=n-1,n>1){this.connection=null;return}var i=this.connection,s=r._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe();},t}(cn);});var Qfe,put,Zfe=chunkTKGT252T_js.b(()=>{Xr();Eg();Lr();Os();Jfe();Qfe=function(e){et(t,e);function t(r,n){var i=e.call(this)||this;return i.source=r,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return t.prototype._subscribe=function(r){return this.getSubject().subscribe(r)},t.prototype.getSubject=function(){var r=this._subject;return (!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var r=this._connection;return r||(this._isComplete=!1,r=this._connection=new Dr,r.add(this.source.subscribe(new put(this.getSubject(),this))),r.closed&&(this._connection=null,r=Dr.EMPTY)),r},t.prototype.refCount=function(){return zfe()(this)},t}(Ze),put=function(e){et(t,e);function t(r,n){var i=e.call(this,r)||this;return i.connectable=n,i}return t.prototype._error=function(r){this._unsubscribe(),e.prototype._error.call(this,r);},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this);},t.prototype._unsubscribe=function(){var r=this.connectable;if(r){this.connectable=null;var n=r._connection;r._refCount=0,r._subject=null,r._connection=null,n&&n.unsubscribe();}},t}(VF);});var ehe,fut,the=chunkTKGT252T_js.b(()=>{Xr();Os();Lr();ehe=function(e){et(t,e);function t(r,n,i){var s=e.call(this)||this;return s.key=r,s.groupSubject=n,s.refCountSubscription=i,s}return t.prototype._subscribe=function(r){var n=new Dr,i=this,s=i.refCountSubscription,a=i.groupSubject;return s&&!s.closed&&n.add(new fut(s)),n.add(a.subscribe(r)),n},t}(Ze),fut=function(e){et(t,e);function t(r){var n=e.call(this)||this;return n.parent=r,r.count++,n}return t.prototype.unsubscribe=function(){var r=this.parent;!r.closed&&!this.closed&&(e.prototype.unsubscribe.call(this),r.count-=1,r.count===0&&r.attemptedToUnsubscribe&&r.unsubscribe());},t}(Dr);});var rhe,nhe=chunkTKGT252T_js.b(()=>{Xr();Eg();W0();rhe=function(e){et(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return n&&!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new po;return this._value},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r);},t}(oc);});var ihe,she=chunkTKGT252T_js.b(()=>{Xr();Os();ihe=function(e){et(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return this},t}(Dr);});var Qu,bg=chunkTKGT252T_js.b(()=>{Xr();she();Qu=function(e){et(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!==null&&this.delay===i&&this.pending===!1)return n;clearInterval(n);},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));},t.prototype._execute=function(r,n){var i=!1,s=void 0;try{this.work(r);}catch(a){i=!0,s=!!a&&a||new Error(a);}if(i)return this.unsubscribe(),s},t.prototype._unsubscribe=function(){var r=this.id,n=this.scheduler,i=n.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,s!==-1&&i.splice(s,1),r!=null&&(this.id=this.recycleAsyncId(n,r,null)),this.delay=null;},t}(ihe);});var ahe,ohe=chunkTKGT252T_js.b(()=>{Xr();bg();ahe=function(e){et(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,i):r.flush(this)},t}(Qu);});var X0,HF=chunkTKGT252T_js.b(()=>{X0=function(){function e(t,r){r===void 0&&(r=e.now),this.SchedulerAction=t,this.now=r;}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.SchedulerAction(this,t).schedule(n,r)},e.now=function(){return Date.now()},e}();});var Zu,vg=chunkTKGT252T_js.b(()=>{Xr();HF();Zu=function(e){et(t,e);function t(r,n){n===void 0&&(n=X0.now);var i=e.call(this,r,function(){return t.delegate&&t.delegate!==i?t.delegate.now():n()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return t.prototype.schedule=function(r,n,i){return n===void 0&&(n=0),t.delegate&&t.delegate!==this?t.delegate.schedule(r,n,i):e.prototype.schedule.call(this,r,n,i)},t.prototype.flush=function(r){var n=this.actions;if(this.active){n.push(r);return}var i;this.active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this.active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}(X0);});var uhe,lhe=chunkTKGT252T_js.b(()=>{Xr();vg();uhe=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Zu);});var GF,$C,$F=chunkTKGT252T_js.b(()=>{ohe();lhe();GF=new uhe(ahe),$C=GF;});function _g(e){return e?hut(e):el}function hut(e){return new Ze(function(t){return e.schedule(function(){return t.complete()})})}var el,Tf=chunkTKGT252T_js.b(()=>{Lr();el=new Ze(function(e){return e.complete()});});function Ds(e){return e&&typeof e.schedule=="function"}var Ef=chunkTKGT252T_js.b(()=>{});var KC,KF=chunkTKGT252T_js.b(()=>{KC=function(e){return function(t){for(var r=0,n=e.length;r<n&&!t.closed;r++)t.next(e[r]);t.complete();}};});function xg(e,t){return new Ze(function(r){var n=new Dr,i=0;return n.add(t.schedule(function(){if(i===e.length){r.complete();return}r.next(e[i++]),r.closed||n.add(this.schedule());})),n})}var YC=chunkTKGT252T_js.b(()=>{Lr();Os();});function tl(e,t){return t?xg(e,t):new Ze(KC(e))}var Ag=chunkTKGT252T_js.b(()=>{Lr();KF();YC();});function Pg(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return Ds(r)?(e.pop(),xg(e,r)):tl(e)}var WC=chunkTKGT252T_js.b(()=>{Ef();Ag();YC();});function XC(e,t){return t?new Ze(function(r){return t.schedule(dut,0,{error:e,subscriber:r})}):new Ze(function(r){return r.error(e)})}function dut(e){var t=e.error,r=e.subscriber;r.error(t);}var YF=chunkTKGT252T_js.b(()=>{Lr();});var zC,Cg,WF=chunkTKGT252T_js.b(()=>{Tf();WC();YF();zC||(zC={});Cg=function(){function e(t,r,n){this.kind=t,this.value=r,this.error=n,this.hasValue=t==="N";}return e.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},e.prototype.do=function(t,r,n){var i=this.kind;switch(i){case"N":return t&&t(this.value);case"E":return r&&r(this.error);case"C":return n&&n()}},e.prototype.accept=function(t,r,n){return t&&typeof t.next=="function"?this.observe(t):this.do(t,r,n)},e.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return Pg(this.value);case"E":return XC(this.error);case"C":return _g()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return typeof t<"u"?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();});var che,mut,phe=chunkTKGT252T_js.b(()=>{Xr();ka();WF();che=function(e){et(t,e);function t(r,n,i){i===void 0&&(i=0);var s=e.call(this,r)||this;return s.scheduler=n,s.delay=i,s}return t.dispatch=function(r){var n=r.notification,i=r.destination;n.observe(i),this.unsubscribe();},t.prototype.scheduleMessage=function(r){var n=this.destination;n.add(this.scheduler.schedule(t.dispatch,this.delay,new mut(r,this.destination)));},t.prototype._next=function(r){this.scheduleMessage(Cg.createNext(r));},t.prototype._error=function(r){this.scheduleMessage(Cg.createError(r)),this.unsubscribe();},t.prototype._complete=function(){this.scheduleMessage(Cg.createComplete()),this.unsubscribe();},t}(cn),mut=function(){function e(t,r){this.notification=t,this.destination=r;}return e}();});var fhe,yut,hhe=chunkTKGT252T_js.b(()=>{Xr();Eg();$F();Os();phe();W0();qF();fhe=function(e){et(t,e);function t(r,n,i){r===void 0&&(r=Number.POSITIVE_INFINITY),n===void 0&&(n=Number.POSITIVE_INFINITY);var s=e.call(this)||this;return s.scheduler=i,s._events=[],s._infiniteTimeWindow=!1,s._bufferSize=r<1?1:r,s._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(s._infiniteTimeWindow=!0,s.next=s.nextInfiniteTimeWindow):s.next=s.nextTimeWindow,s}return t.prototype.nextInfiniteTimeWindow=function(r){if(!this.isStopped){var n=this._events;n.push(r),n.length>this._bufferSize&&n.shift();}e.prototype.next.call(this,r);},t.prototype.nextTimeWindow=function(r){this.isStopped||(this._events.push(new yut(this._getNow(),r)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,r);},t.prototype._subscribe=function(r){var n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,a=i.length,o;if(this.closed)throw new po;if(this.isStopped||this.hasError?o=Dr.EMPTY:(this.observers.push(r),o=new GC(this,r)),s&&r.add(r=new che(r,s)),n)for(var u=0;u<a&&!r.closed;u++)r.next(i[u]);else for(var u=0;u<a&&!r.closed;u++)r.next(i[u].value);return this.hasError?r.error(this.thrownError):this.isStopped&&r.complete(),o},t.prototype._getNow=function(){return (this.scheduler||$C).now()},t.prototype._trimBufferThenGetEvents=function(){for(var r=this._getNow(),n=this._bufferSize,i=this._windowTime,s=this._events,a=s.length,o=0;o<a&&!(r-s[o].time<i);)o++;return a>n&&(o=Math.max(o,a-n)),o>0&&s.splice(0,o),s},t}(oc),yut=function(){function e(t,r){this.time=t,this.value=r;}return e}();});var bf,JC=chunkTKGT252T_js.b(()=>{Xr();Eg();Os();bf=function(e){et(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.value=null,r.hasNext=!1,r.hasCompleted=!1,r}return t.prototype._subscribe=function(r){return this.hasError?(r.error(this.thrownError),Dr.EMPTY):this.hasCompleted&&this.hasNext?(r.next(this.value),r.complete(),Dr.EMPTY):e.prototype._subscribe.call(this,r)},t.prototype.next=function(r){this.hasCompleted||(this.value=r,this.hasNext=!0);},t.prototype.error=function(r){this.hasCompleted||e.prototype.error.call(this,r);},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this);},t}(oc);});function dhe(e){return e in XF?(delete XF[e],!0):!1}var gut,Sut,XF,zF,mhe=chunkTKGT252T_js.b(()=>{gut=1,Sut=function(){return Promise.resolve()}(),XF={};zF={setImmediate:function(e){var t=gut++;return XF[t]=!0,Sut.then(function(){return dhe(t)&&e()}),t},clearImmediate:function(e){dhe(e);}};});var yhe,ghe=chunkTKGT252T_js.b(()=>{Xr();mhe();bg();yhe=function(e){et(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i}return t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,r,n,i):(r.actions.push(this),r.scheduled||(r.scheduled=zF.setImmediate(r.flush.bind(r,null))))},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,i);r.actions.length===0&&(zF.clearImmediate(n),r.scheduled=void 0);},t}(Qu);});var She,The=chunkTKGT252T_js.b(()=>{Xr();vg();She=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this.active=!0,this.scheduled=void 0;var n=this.actions,i,s=-1,a=n.length;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while(++s<a&&(r=n.shift()));if(this.active=!1,i){for(;++s<a&&(r=n.shift());)r.unsubscribe();throw i}},t}(Zu);});var JF,Ehe,bhe=chunkTKGT252T_js.b(()=>{ghe();The();JF=new She(yhe),Ehe=JF;});var QF,nd,QC=chunkTKGT252T_js.b(()=>{bg();vg();QF=new Zu(Qu),nd=QF;});var vhe,_he=chunkTKGT252T_js.b(()=>{Xr();bg();vhe=function(e){et(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i}return t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,r,n,i):(r.actions.push(this),r.scheduled||(r.scheduled=requestAnimationFrame(function(){return r.flush(null)})))},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,i);r.actions.length===0&&(cancelAnimationFrame(n),r.scheduled=void 0);},t}(Qu);});var xhe,Ahe=chunkTKGT252T_js.b(()=>{Xr();vg();xhe=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this.active=!0,this.scheduled=void 0;var n=this.actions,i,s=-1,a=n.length;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while(++s<a&&(r=n.shift()));if(this.active=!1,i){for(;++s<a&&(r=n.shift());)r.unsubscribe();throw i}},t}(Zu);});var ZF,Phe,Che=chunkTKGT252T_js.b(()=>{_he();Ahe();ZF=new xhe(vhe),Phe=ZF;});var whe,eB,Ihe=chunkTKGT252T_js.b(()=>{Xr();bg();vg();whe=function(e){et(t,e);function t(r,n){r===void 0&&(r=eB),n===void 0&&(n=Number.POSITIVE_INFINITY);var i=e.call(this,r,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return t.prototype.flush=function(){for(var r=this,n=r.actions,i=r.maxFrames,s,a;(a=n[0])&&a.delay<=i&&(n.shift(),this.frame=a.delay,!(s=a.execute(a.state,a.delay))););if(s){for(;a=n.shift();)a.unsubscribe();throw s}},t.frameTimeFactor=10,t}(Zu),eB=function(e){et(t,e);function t(r,n,i){i===void 0&&(i=r.index+=1);var s=e.call(this,r,n)||this;return s.scheduler=r,s.work=n,s.index=i,s.active=!0,s.index=r.index=i,s}return t.prototype.schedule=function(r,n){if(n===void 0&&(n=0),!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},t.prototype.requestAsyncId=function(r,n,i){i===void 0&&(i=0),this.delay=r.frame+i;var s=r.actions;return s.push(this),s.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(r,n,i){},t.prototype._execute=function(r,n){if(this.active===!0)return e.prototype._execute.call(this,r,n)},t.sortActions=function(r,n){return r.delay===n.delay?r.index===n.index?0:r.index>n.index?1:-1:r.delay>n.delay?1:-1},t}(Qu);});function ZC(){}var tB=chunkTKGT252T_js.b(()=>{});function Ohe(e){return !!e&&(e instanceof Ze||typeof e.lift=="function"&&typeof e.subscribe=="function")}var Dhe=chunkTKGT252T_js.b(()=>{Lr();});var Tut,Nhe,Rhe=chunkTKGT252T_js.b(()=>{Tut=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),Nhe=Tut;});var Eut,Mhe,Lhe=chunkTKGT252T_js.b(()=>{Eut=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),Mhe=Eut;});var but,khe,Fhe=chunkTKGT252T_js.b(()=>{but=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),khe=but;});function fo(e,t){return function(n){if(typeof e!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new vut(e,t))}}var vut,_ut,id=chunkTKGT252T_js.b(()=>{Xr();ka();vut=function(){function e(t,r){this.project=t,this.thisArg=r;}return e.prototype.call=function(t,r){return r.subscribe(new _ut(t,this.project,this.thisArg))},e}(),_ut=function(e){et(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.project=n,s.count=0,s.thisArg=i||s,s}return t.prototype._next=function(r){var n;try{n=this.project.call(this.thisArg,r,this.count++);}catch(i){this.destination.error(i);return}this.destination.next(n);},t}(cn);});function rB(e,t,r){if(t)if(Ds(t))r=t;else return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return rB(e,r).apply(void 0,n).pipe(fo(function(s){return qn(s)?t.apply(void 0,s):t(s)}))};return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var s=this,a,o={context:s,subject:a,callbackFunc:e,scheduler:r};return new Ze(function(u){if(r){var c={args:n,subscriber:u,params:o};return r.schedule(xut,0,c)}else {if(!a){a=new bf;var l=function(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];a.next(p.length<=1?p[0]:p),a.complete();};try{e.apply(s,n.concat([l]));}catch(p){Tg(a)?a.error(p):console.warn(p);}}return a.subscribe(u)}})}}function xut(e){var t=this,n=e.args,i=e.subscriber,s=e.params,a=s.callbackFunc,o=s.context,u=s.scheduler,l=s.subject;if(!l){l=s.subject=new bf;var c=function(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];var f=p.length<=1?p[0]:p;t.add(u.schedule(Aut,0,{value:f,subject:l}));};try{a.apply(o,n.concat([c]));}catch(p){l.error(p);}}this.add(l.subscribe(i));}function Aut(e){var t=e.value,r=e.subject;r.next(t),r.complete();}var Bhe=chunkTKGT252T_js.b(()=>{Lr();JC();id();HC();lo();Ef();});function nB(e,t,r){if(t)if(Ds(t))r=t;else return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return nB(e,r).apply(void 0,n).pipe(fo(function(s){return qn(s)?t.apply(void 0,s):t(s)}))};return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var s={subject:void 0,args:n,callbackFunc:e,scheduler:r,context:this};return new Ze(function(a){var o=s.context,u=s.subject;if(r)return r.schedule(Put,0,{params:s,subscriber:a,context:o});if(!u){u=s.subject=new bf;var l=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];var h=c.shift();if(h){u.error(h);return}u.next(c.length<=1?c[0]:c),u.complete();};try{e.apply(o,n.concat([l]));}catch(c){Tg(u)?u.error(c):console.warn(c);}}return u.subscribe(a)})}}function Put(e){var t=this,r=e.params,n=e.subscriber,i=e.context,s=r.callbackFunc,a=r.args,o=r.scheduler,u=r.subject;if(!u){u=r.subject=new bf;var l=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];var h=c.shift();if(h)t.add(o.schedule(jhe,0,{err:h,subject:u}));else {var f=c.length<=1?c[0]:c;t.add(o.schedule(Cut,0,{value:f,subject:u}));}};try{s.apply(i,a.concat([l]));}catch(c){this.add(o.schedule(jhe,0,{err:c,subject:u}));}}this.add(u.subscribe(n));}function Cut(e){var t=e.value,r=e.subject;r.next(t),r.complete();}function jhe(e){var t=e.err,r=e.subject;r.error(t);}var Uhe=chunkTKGT252T_js.b(()=>{Lr();JC();id();HC();Ef();lo();});var e1,iB=chunkTKGT252T_js.b(()=>{Xr();ka();e1=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.notifyNext=function(r,n,i,s,a){this.destination.next(n);},t.prototype.notifyError=function(r,n){this.destination.error(r);},t.prototype.notifyComplete=function(r){this.destination.complete();},t}(cn);});var qhe,Vhe=chunkTKGT252T_js.b(()=>{Xr();ka();qhe=function(e){et(t,e);function t(r,n,i){var s=e.call(this)||this;return s.parent=r,s.outerValue=n,s.outerIndex=i,s.index=0,s}return t.prototype._next=function(r){this.parent.notifyNext(this.outerValue,r,this.outerIndex,this.index++,this);},t.prototype._error=function(r){this.parent.notifyError(r,this),this.unsubscribe();},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe();},t}(cn);});var Hhe,Ghe=chunkTKGT252T_js.b(()=>{UC();Hhe=function(e){return function(t){return e.then(function(r){t.closed||(t.next(r),t.complete());},function(r){return t.error(r)}).then(null,sc),t}};});function wut(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Fa,wg=chunkTKGT252T_js.b(()=>{Fa=wut();});var $he,Khe=chunkTKGT252T_js.b(()=>{wg();$he=function(e){return function(t){var r=e[Fa]();do{var n=void 0;try{n=r.next();}catch(i){return t.error(i),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}while(!0);return typeof r.return=="function"&&t.add(function(){r.return&&r.return();}),t}};});var Yhe,Whe=chunkTKGT252T_js.b(()=>{rd();Yhe=function(e){return function(t){var r=e[co]();if(typeof r.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return r.subscribe(t)}};});var t1,sB=chunkTKGT252T_js.b(()=>{t1=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};});function r1(e){return !!e&&typeof e.subscribe!="function"&&typeof e.then=="function"}var aB=chunkTKGT252T_js.b(()=>{});var uc,z0=chunkTKGT252T_js.b(()=>{KF();Ghe();Khe();Whe();sB();aB();qC();wg();rd();uc=function(e){if(e&&typeof e[co]=="function")return Yhe(e);if(t1(e))return KC(e);if(r1(e))return Hhe(e);if(e&&typeof e[Fa]=="function")return $he(e);var t=Sg(e)?"an invalid object":"'"+e+"'",r="You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(r)};});function n1(e,t,r,n,i){if(i===void 0&&(i=new qhe(e,r,n)),!i.closed)return t instanceof Ze?t.subscribe(i):uc(t)(i)}var oB=chunkTKGT252T_js.b(()=>{Vhe();z0();Lr();});function zhe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=void 0,n=void 0;return Ds(e[e.length-1])&&(n=e.pop()),typeof e[e.length-1]=="function"&&(r=e.pop()),e.length===1&&qn(e[0])&&(e=e[0]),tl(e,n).lift(new Iut(r))}var Xhe,Iut,Out,Jhe=chunkTKGT252T_js.b(()=>{Xr();Ef();lo();iB();oB();Ag();Xhe={};Iut=function(){function e(t){this.resultSelector=t;}return e.prototype.call=function(t,r){return r.subscribe(new Out(t,this.resultSelector))},e}(),Out=function(e){et(t,e);function t(r,n){var i=e.call(this,r)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return t.prototype._next=function(r){this.values.push(Xhe),this.observables.push(r);},t.prototype._complete=function(){var r=this.observables,n=r.length;if(n===0)this.destination.complete();else {this.active=n,this.toRespond=n;for(var i=0;i<n;i++){var s=r[i];this.add(n1(this,s,void 0,i));}}},t.prototype.notifyComplete=function(r){(this.active-=1)===0&&this.destination.complete();},t.prototype.notifyNext=function(r,n,i){var s=this.values,a=s[i],o=this.toRespond?a===Xhe?--this.toRespond:this.toRespond:0;s[i]=n,o===0&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()));},t.prototype._tryResultSelector=function(r){var n;try{n=this.resultSelector.apply(this,r);}catch(i){this.destination.error(i);return}this.destination.next(n);},t}(e1);});function Qhe(e,t){return new Ze(function(r){var n=new Dr;return n.add(t.schedule(function(){var i=e[co]();n.add(i.subscribe({next:function(s){n.add(t.schedule(function(){return r.next(s)}));},error:function(s){n.add(t.schedule(function(){return r.error(s)}));},complete:function(){n.add(t.schedule(function(){return r.complete()}));}}));})),n})}var Zhe=chunkTKGT252T_js.b(()=>{Lr();Os();rd();});function ede(e,t){return new Ze(function(r){var n=new Dr;return n.add(t.schedule(function(){return e.then(function(i){n.add(t.schedule(function(){r.next(i),n.add(t.schedule(function(){return r.complete()}));}));},function(i){n.add(t.schedule(function(){return r.error(i)}));})})),n})}var tde=chunkTKGT252T_js.b(()=>{Lr();Os();});function rde(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ze(function(r){var n=new Dr,i;return n.add(function(){i&&typeof i.return=="function"&&i.return();}),n.add(t.schedule(function(){i=e[Fa](),n.add(t.schedule(function(){if(!r.closed){var s,a;try{var o=i.next();s=o.value,a=o.done;}catch(u){r.error(u);return}a?r.complete():(r.next(s),this.schedule());}}));})),n})}var nde=chunkTKGT252T_js.b(()=>{Lr();Os();wg();});function ide(e){return e&&typeof e[co]=="function"}var sde=chunkTKGT252T_js.b(()=>{rd();});function ade(e){return e&&typeof e[Fa]=="function"}var ode=chunkTKGT252T_js.b(()=>{wg();});function i1(e,t){if(e!=null){if(ide(e))return Qhe(e,t);if(r1(e))return ede(e,t);if(t1(e))return xg(e,t);if(ade(e)||typeof e=="string")return rde(e,t)}throw new TypeError((e!==null&&typeof e||e)+" is not observable")}var uB=chunkTKGT252T_js.b(()=>{Zhe();tde();YC();nde();sde();aB();sB();ode();});function ho(e,t){return t?i1(e,t):e instanceof Ze?e:new Ze(uc(e))}var sd=chunkTKGT252T_js.b(()=>{Lr();z0();uB();});function o1(e,t){if(!t.closed){if(e instanceof Ze)return e.subscribe(t);var r;try{r=uc(e)(t);}catch(n){t.error(n);}return r}}var s1,a1,lB=chunkTKGT252T_js.b(()=>{Xr();ka();Lr();z0();s1=function(e){et(t,e);function t(r){var n=e.call(this)||this;return n.parent=r,n}return t.prototype._next=function(r){this.parent.notifyNext(r);},t.prototype._error=function(r){this.parent.notifyError(r),this.unsubscribe();},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe();},t}(cn),a1=function(e){et(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.notifyNext=function(r){this.destination.next(r);},t.prototype.notifyError=function(r){this.destination.error(r);},t.prototype.notifyComplete=function(){this.destination.complete();},t}(cn);});function cB(e,t,r){return r===void 0&&(r=Number.POSITIVE_INFINITY),typeof t=="function"?function(n){return n.pipe(cB(function(i,s){return ho(e(i,s)).pipe(fo(function(a,o){return t(i,a,s,o)}))},r))}:(typeof t=="number"&&(r=t),function(n){return n.lift(new Dut(e,r))})}var Dut,Nut,ude=chunkTKGT252T_js.b(()=>{Xr();id();sd();lB();Dut=function(){function e(t,r){r===void 0&&(r=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=r;}return e.prototype.call=function(t,r){return r.subscribe(new Nut(t,this.project,this.concurrent))},e}(),Nut=function(e){et(t,e);function t(r,n,i){i===void 0&&(i=Number.POSITIVE_INFINITY);var s=e.call(this,r)||this;return s.project=n,s.concurrent=i,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return t.prototype._next=function(r){this.active<this.concurrent?this._tryNext(r):this.buffer.push(r);},t.prototype._tryNext=function(r){var n,i=this.index++;try{n=this.project(r,i);}catch(s){this.destination.error(s);return}this.active++,this._innerSub(n);},t.prototype._innerSub=function(r){var n=new s1(this),i=this.destination;i.add(n);var s=o1(r,n);s!==n&&i.add(s);},t.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe();},t.prototype.notifyNext=function(r){this.destination.next(r);},t.prototype.notifyComplete=function(){var r=this.buffer;this.active--,r.length>0?this._next(r.shift()):this.active===0&&this.hasCompleted&&this.destination.complete();},t}(a1);});function u1(e){return e===void 0&&(e=Number.POSITIVE_INFINITY),cB(ac,e)}var pB=chunkTKGT252T_js.b(()=>{ude();Y0();});function lde(){return u1(1)}var cde=chunkTKGT252T_js.b(()=>{pB();});function pde(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return lde()(Pg.apply(void 0,e))}var fde=chunkTKGT252T_js.b(()=>{WC();cde();});function l1(e){return new Ze(function(t){var r;try{r=e();}catch(i){t.error(i);return}var n=r?ho(r):_g();return n.subscribe(t)})}var fB=chunkTKGT252T_js.b(()=>{Lr();sd();Tf();});function hde(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length===1){var r=e[0];if(qn(r))return c1(r,null);if(Sg(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return c1(n.map(function(s){return r[s]}),n)}}if(typeof e[e.length-1]=="function"){var i=e.pop();return e=e.length===1&&qn(e[0])?e[0]:e,c1(e,null).pipe(fo(function(s){return i.apply(void 0,s)}))}return c1(e,null)}function c1(e,t){return new Ze(function(r){var n=e.length;if(n===0){r.complete();return}for(var i=new Array(n),s=0,a=0,o=function(l){var c=ho(e[l]),p=!1;r.add(c.subscribe({next:function(h){p||(p=!0,a++),i[l]=h;},error:function(h){return r.error(h)},complete:function(){s++,(s===n||!p)&&(a===n&&r.next(t?t.reduce(function(h,f,d){return h[f]=i[d],h},{}):i),r.complete());}}));},u=0;u<n;u++)o(u);})}var dde=chunkTKGT252T_js.b(()=>{Lr();lo();id();qC();sd();});function hB(e,t,r,n){return ic(r)&&(n=r,r=void 0),n?hB(e,t,r).pipe(fo(function(i){return qn(i)?n.apply(void 0,i):n(i)})):new Ze(function(i){function s(a){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(a);}mde(e,t,s,i,r);})}function mde(e,t,r,n,i){var s;if(Lut(e)){var a=e;e.addEventListener(t,r,i),s=function(){return a.removeEventListener(t,r,i)};}else if(Mut(e)){var o=e;e.on(t,r),s=function(){return o.off(t,r)};}else if(Rut(e)){var u=e;e.addListener(t,r),s=function(){return u.removeListener(t,r)};}else if(e&&e.length)for(var l=0,c=e.length;l<c;l++)mde(e[l],t,r,n,i);else throw new TypeError("Invalid event target");n.add(s);}function Rut(e){return e&&typeof e.addListener=="function"&&typeof e.removeListener=="function"}function Mut(e){return e&&typeof e.on=="function"&&typeof e.off=="function"}function Lut(e){return e&&typeof e.addEventListener=="function"&&typeof e.removeEventListener=="function"}var yde=chunkTKGT252T_js.b(()=>{Lr();lo();$0();id();});function dB(e,t,r){return r?dB(e,t).pipe(fo(function(n){return qn(n)?r.apply(void 0,n):r(n)})):new Ze(function(n){var i=function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return n.next(a.length===1?a[0]:a)},s;try{s=e(i);}catch(a){n.error(a);return}if(ic(t))return function(){return t(i,s)}})}var gde=chunkTKGT252T_js.b(()=>{Lr();lo();$0();id();});function Sde(e,t,r,n,i){var s,a;if(arguments.length==1){var o=e;a=o.initialState,t=o.condition,r=o.iterate,s=o.resultSelector||ac,i=o.scheduler;}else n===void 0||Ds(n)?(a=e,s=ac,i=n):(a=e,s=n);return new Ze(function(u){var l=a;if(i)return i.schedule(kut,0,{subscriber:u,iterate:r,condition:t,resultSelector:s,state:l});do{if(t){var c=void 0;try{c=t(l);}catch(h){u.error(h);return}if(!c){u.complete();break}}var p=void 0;try{p=s(l);}catch(h){u.error(h);return}if(u.next(p),u.closed)break;try{l=r(l);}catch(h){u.error(h);return}}while(!0)})}function kut(e){var t=e.subscriber,r=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state);}catch(s){t.error(s);return}else e.needIterate=!0;if(r){var n=void 0;try{n=r(e.state);}catch(s){t.error(s);return}if(!n){t.complete();return}if(t.closed)return}var i;try{i=e.resultSelector(e.state);}catch(s){t.error(s);return}if(!t.closed&&(t.next(i),!t.closed))return this.schedule(e)}}var Tde=chunkTKGT252T_js.b(()=>{Lr();Y0();Ef();});function Ede(e,t,r){return t===void 0&&(t=el),r===void 0&&(r=el),l1(function(){return e()?t:r})}var bde=chunkTKGT252T_js.b(()=>{fB();Tf();});function J0(e){return !qn(e)&&e-parseFloat(e)+1>=0}var mB=chunkTKGT252T_js.b(()=>{lo();});function vde(e,t){return e===void 0&&(e=0),t===void 0&&(t=nd),(!J0(e)||e<0)&&(e=0),(!t||typeof t.schedule!="function")&&(t=nd),new Ze(function(r){return r.add(t.schedule(Fut,e,{subscriber:r,counter:0,period:e})),r})}function Fut(e){var t=e.subscriber,r=e.counter,n=e.period;t.next(r),this.schedule({subscriber:t,counter:r+1,period:n},n);}var _de=chunkTKGT252T_js.b(()=>{Lr();QC();mB();});function xde(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Number.POSITIVE_INFINITY,n=null,i=e[e.length-1];return Ds(i)?(n=e.pop(),e.length>1&&typeof e[e.length-1]=="number"&&(r=e.pop())):typeof i=="number"&&(r=e.pop()),n===null&&e.length===1&&e[0]instanceof Ze?e[0]:u1(r)(tl(e,n))}var Ade=chunkTKGT252T_js.b(()=>{Lr();Ef();pB();Ag();});function Pde(){return yB}var yB,gB=chunkTKGT252T_js.b(()=>{Lr();tB();yB=new Ze(ZC);});function p1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length===0)return el;var r=e[0],n=e.slice(1);return e.length===1&&qn(r)?p1.apply(void 0,r):new Ze(function(i){var s=function(){return i.add(p1.apply(void 0,n).subscribe(i))};return ho(r).subscribe({next:function(a){i.next(a);},error:s,complete:s})})}var Cde=chunkTKGT252T_js.b(()=>{Lr();sd();lo();Tf();});function wde(e,t){return t?new Ze(function(r){var n=Object.keys(e),i=new Dr;return i.add(t.schedule(But,0,{keys:n,index:0,subscriber:r,subscription:i,obj:e})),i}):new Ze(function(r){for(var n=Object.keys(e),i=0;i<n.length&&!r.closed;i++){var s=n[i];e.hasOwnProperty(s)&&r.next([s,e[s]]);}r.complete();})}function But(e){var t=e.keys,r=e.index,n=e.subscriber,i=e.subscription,s=e.obj;if(!n.closed)if(r<t.length){var a=t[r];n.next([a,s[a]]),i.add(this.schedule({keys:t,index:r+1,subscriber:n,subscription:i,obj:s}));}else n.complete();}var Ide=chunkTKGT252T_js.b(()=>{Lr();Os();});function Ode(e,t){function r(){return !r.pred.apply(r.thisArg,arguments)}return r.pred=e,r.thisArg=t,r}var Dde=chunkTKGT252T_js.b(()=>{});function SB(e,t){return function(n){return n.lift(new jut(e,t))}}var jut,Uut,Nde=chunkTKGT252T_js.b(()=>{Xr();ka();jut=function(){function e(t,r){this.predicate=t,this.thisArg=r;}return e.prototype.call=function(t,r){return r.subscribe(new Uut(t,this.predicate,this.thisArg))},e}(),Uut=function(e){et(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.predicate=n,s.thisArg=i,s.count=0,s}return t.prototype._next=function(r){var n;try{n=this.predicate.call(this.thisArg,r,this.count++);}catch(i){this.destination.error(i);return}n&&this.destination.next(r);},t}(cn);});function Rde(e,t,r){return [SB(t,r)(new Ze(uc(e))),SB(Ode(t,r))(new Ze(uc(e)))]}var Mde=chunkTKGT252T_js.b(()=>{Dde();z0();Nde();Lr();});function Lde(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length===1)if(qn(e[0]))e=e[0];else return e[0];return tl(e,void 0).lift(new qut)}var qut,Vut,kde=chunkTKGT252T_js.b(()=>{Xr();lo();Ag();iB();oB();qut=function(){function e(){}return e.prototype.call=function(t,r){return r.subscribe(new Vut(t))},e}(),Vut=function(e){et(t,e);function t(r){var n=e.call(this,r)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return t.prototype._next=function(r){this.observables.push(r);},t.prototype._complete=function(){var r=this.observables,n=r.length;if(n===0)this.destination.complete();else {for(var i=0;i<n&&!this.hasFirst;i++){var s=r[i],a=n1(this,s,void 0,i);this.subscriptions&&this.subscriptions.push(a),this.add(a);}this.observables=null;}},t.prototype.notifyNext=function(r,n,i){if(!this.hasFirst){this.hasFirst=!0;for(var s=0;s<this.subscriptions.length;s++)if(s!==i){var a=this.subscriptions[s];a.unsubscribe(),this.remove(a);}this.subscriptions=null;}this.destination.next(n);},t}(e1);});function Fde(e,t,r){return e===void 0&&(e=0),new Ze(function(n){t===void 0&&(t=e,e=0);var i=0,s=e;if(r)return r.schedule(Hut,0,{index:i,count:t,start:e,subscriber:n});do{if(i++>=t){n.complete();break}if(n.next(s++),n.closed)break}while(!0)})}function Hut(e){var t=e.start,r=e.index,n=e.count,i=e.subscriber;if(r>=n){i.complete();return}i.next(t),!i.closed&&(e.index=r+1,e.start=t+1,this.schedule(e));}var Bde=chunkTKGT252T_js.b(()=>{Lr();});function jde(e,t,r){e===void 0&&(e=0);var n=-1;return J0(t)?n=Number(t)<1&&1||Number(t):Ds(t)&&(r=t),Ds(r)||(r=nd),new Ze(function(i){var s=J0(e)?e:+e-r.now();return r.schedule(Gut,s,{index:0,period:n,subscriber:i})})}function Gut(e){var t=e.index,r=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(r===-1)return n.complete();e.index=t+1,this.schedule(e,r);}}var Ude=chunkTKGT252T_js.b(()=>{Lr();QC();mB();Ef();});function qde(e,t){return new Ze(function(r){var n;try{n=e();}catch(o){r.error(o);return}var i;try{i=t(n);}catch(o){r.error(o);return}var s=i?ho(i):el,a=s.subscribe(r);return function(){a.unsubscribe(),n&&n.unsubscribe();}})}var Vde=chunkTKGT252T_js.b(()=>{Lr();sd();Tf();});function Hde(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return typeof r=="function"&&e.pop(),tl(e,void 0).lift(new $ut(r))}var $ut,Kut,Yut,Wut,Xut,Gde=chunkTKGT252T_js.b(()=>{Xr();Ag();lo();ka();wg();lB();$ut=function(){function e(t){this.resultSelector=t;}return e.prototype.call=function(t,r){return r.subscribe(new Kut(t,this.resultSelector))},e}(),Kut=function(e){et(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.resultSelector=n,s.iterators=[],s.active=0,s.resultSelector=typeof n=="function"?n:void 0,s}return t.prototype._next=function(r){var n=this.iterators;qn(r)?n.push(new Wut(r)):typeof r[Fa]=="function"?n.push(new Yut(r[Fa]())):n.push(new Xut(this.destination,this,r));},t.prototype._complete=function(){var r=this.iterators,n=r.length;if(this.unsubscribe(),n===0){this.destination.complete();return}this.active=n;for(var i=0;i<n;i++){var s=r[i];if(s.stillUnsubscribed){var a=this.destination;a.add(s.subscribe());}else this.active--;}},t.prototype.notifyInactive=function(){this.active--,this.active===0&&this.destination.complete();},t.prototype.checkIterators=function(){for(var r=this.iterators,n=r.length,i=this.destination,s=0;s<n;s++){var a=r[s];if(typeof a.hasValue=="function"&&!a.hasValue())return}for(var o=!1,u=[],s=0;s<n;s++){var a=r[s],l=a.next();if(a.hasCompleted()&&(o=!0),l.done){i.complete();return}u.push(l.value);}this.resultSelector?this._tryresultSelector(u):i.next(u),o&&i.complete();},t.prototype._tryresultSelector=function(r){var n;try{n=this.resultSelector.apply(this,r);}catch(i){this.destination.error(i);return}this.destination.next(n);},t}(cn),Yut=function(){function e(t){this.iterator=t,this.nextResult=t.next();}return e.prototype.hasValue=function(){return !0},e.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},e.prototype.hasCompleted=function(){var t=this.nextResult;return !!(t&&t.done)},e}(),Wut=function(){function e(t){this.array=t,this.index=0,this.length=0,this.length=t.length;}return e.prototype[Fa]=function(){return this},e.prototype.next=function(t){var r=this.index++,n=this.array;return r<this.length?{value:n[r],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Xut=function(e){et(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.parent=n,s.observable=i,s.stillUnsubscribed=!0,s.buffer=[],s.isComplete=!1,s}return t.prototype[Fa]=function(){return this},t.prototype.next=function(){var r=this.buffer;return r.length===0&&this.isComplete?{value:null,done:!0}:{value:r.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete();},t.prototype.notifyNext=function(r){this.buffer.push(r),this.parent.checkIterators();},t.prototype.subscribe=function(){return o1(this.observable,new s1(this))},t}(a1);});var $de={};chunkTKGT252T_js.d($de,{ArgumentOutOfRangeError:()=>Nhe,AsyncSubject:()=>bf,BehaviorSubject:()=>rhe,ConnectableObservable:()=>Qfe,EMPTY:()=>el,EmptyError:()=>Mhe,GroupedObservable:()=>ehe,NEVER:()=>yB,Notification:()=>Cg,NotificationKind:()=>zC,ObjectUnsubscribedError:()=>po,Observable:()=>Ze,ReplaySubject:()=>fhe,Scheduler:()=>X0,Subject:()=>oc,Subscriber:()=>cn,Subscription:()=>Dr,TimeoutError:()=>khe,UnsubscriptionError:()=>ed,VirtualAction:()=>eB,VirtualTimeScheduler:()=>whe,animationFrame:()=>Phe,animationFrameScheduler:()=>ZF,asap:()=>Ehe,asapScheduler:()=>JF,async:()=>nd,asyncScheduler:()=>QF,bindCallback:()=>rB,bindNodeCallback:()=>nB,combineLatest:()=>zhe,concat:()=>pde,config:()=>ds,defer:()=>l1,empty:()=>_g,forkJoin:()=>hde,from:()=>ho,fromEvent:()=>hB,fromEventPattern:()=>dB,generate:()=>Sde,identity:()=>ac,iif:()=>Ede,interval:()=>vde,isObservable:()=>Ohe,merge:()=>xde,never:()=>Pde,noop:()=>ZC,observable:()=>co,of:()=>Pg,onErrorResumeNext:()=>p1,pairs:()=>wde,partition:()=>Rde,pipe:()=>Yfe,queue:()=>$C,queueScheduler:()=>GF,race:()=>Lde,range:()=>Fde,scheduled:()=>i1,throwError:()=>XC,timer:()=>jde,using:()=>qde,zip:()=>Hde});var Kde=chunkTKGT252T_js.b(()=>{Lr();Zfe();the();rd();Eg();nhe();hhe();JC();bhe();QC();$F();Che();Ihe();HF();Os();ka();WF();UF();tB();Y0();Dhe();Rhe();Lhe();W0();BF();Fhe();Bhe();Uhe();Jhe();fde();fB();Tf();dde();sd();yde();gde();Tde();bde();_de();Ade();gB();WC();Cde();Ide();Mde();kde();Bde();YF();Ude();Vde();Gde();uB();Tf();gB();K0();});var Wde=chunkTKGT252T_js.c((ttn,Yde)=>{var TB=class{static get nonTTY(){return !0}render(){}end(){}};Yde.exports=TB;});var Jde=chunkTKGT252T_js.c((rtn,zde)=>{var zut=chunkF6FLWRPJ_js.m(),Xde=process.platform,au={tick:"\u2714",cross:"\u2716",star:"\u2605",square:"\u2587",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",play:"\u25B6",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",circleQuestionMark:"?\u20DD",bullet:"\u25CF",dot:"\u2024",line:"\u2500",ellipsis:"\u2026",pointer:"\u276F",pointerSmall:"\u203A",info:"\u2139",warning:"\u26A0",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",heart:"\u2665",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",questionMarkPrefix:"?\u20DD",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneSeventh:"\u2150",oneEighth:"\u215B",oneNinth:"\u2151",oneTenth:"\u2152",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E"},Jut={tick:"\u221A",cross:"\xD7",star:"*",square:"\u2588",squareSmall:"[ ]",squareSmallFilled:"[\u2588]",play:"\u25BA",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"\u2500",ellipsis:"...",pointer:">",pointerSmall:"\xBB",info:"i",warning:"\u203C",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",heart:au.heart,arrowUp:au.arrowUp,arrowDown:au.arrowDown,arrowLeft:au.arrowLeft,arrowRight:au.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};Xde==="linux"&&(au.questionMarkPrefix="?");var f1=Xde==="win32"?Jut:au,Qut=e=>(f1===au||Object.keys(au).forEach(t=>{au[t]!==f1[t]&&(e=e.replace(new RegExp(zut(au[t]),"g"),f1[t]));}),e);zde.exports=Object.assign(Qut,f1);});var Zde=chunkTKGT252T_js.c((ntn,Qde)=>{Qde.exports=(e,t)=>{for(let r of Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};});var tme=chunkTKGT252T_js.c((itn,eme)=>{var Zut=Zde();eme.exports=(e,t)=>{if(t===!0)throw new TypeError("The second argument is now an options object");if(typeof e!="function")throw new TypeError("Expected a function");t=t||{};let r,n=!1,i=e.displayName||e.name||"<anonymous>",s=function(){if(n){if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r}return n=!0,r=e.apply(this,arguments),e=null,r};return Zut(s,e),s};});var rme=chunkTKGT252T_js.c((stn,h1)=>{h1.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&h1.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&h1.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");});var ome=chunkTKGT252T_js.c((atn,Dg)=>{var Ln=global.process,ad=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};ad(Ln)?(nme=chunkTKGT252T_js.a("assert"),Ig=rme(),ime=/^win/i.test(Ln.platform),Q0=chunkTKGT252T_js.a("events"),typeof Q0!="function"&&(Q0=Q0.EventEmitter),Ln.__signal_exit_emitter__?ki=Ln.__signal_exit_emitter__:(ki=Ln.__signal_exit_emitter__=new Q0,ki.count=0,ki.emitted={}),ki.infinite||(ki.setMaxListeners(1/0),ki.infinite=!0),Dg.exports=function(e,t){if(!ad(global.process))return function(){};nme.equal(typeof e,"function","a callback must be provided for exit handler"),Og===!1&&EB();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){ki.removeListener(r,e),ki.listeners("exit").length===0&&ki.listeners("afterexit").length===0&&d1();};return ki.on(r,e),n},d1=function(){!Og||!ad(global.process)||(Og=!1,Ig.forEach(function(t){try{Ln.removeListener(t,m1[t]);}catch{}}),Ln.emit=y1,Ln.reallyExit=bB,ki.count-=1);},Dg.exports.unload=d1,od=function(t,r,n){ki.emitted[t]||(ki.emitted[t]=!0,ki.emit(t,r,n));},m1={},Ig.forEach(function(e){m1[e]=function(){if(ad(global.process)){var r=Ln.listeners(e);r.length===ki.count&&(d1(),od("exit",null,e),od("afterexit",null,e),ime&&e==="SIGHUP"&&(e="SIGINT"),Ln.kill(Ln.pid,e));}};}),Dg.exports.signals=function(){return Ig},Og=!1,EB=function(){Og||!ad(global.process)||(Og=!0,ki.count+=1,Ig=Ig.filter(function(t){try{return Ln.on(t,m1[t]),!0}catch{return !1}}),Ln.emit=ame,Ln.reallyExit=sme);},Dg.exports.load=EB,bB=Ln.reallyExit,sme=function(t){ad(global.process)&&(Ln.exitCode=t||0,od("exit",Ln.exitCode,null),od("afterexit",Ln.exitCode,null),bB.call(Ln,Ln.exitCode));},y1=Ln.emit,ame=function(t,r){if(t==="exit"&&ad(global.process)){r!==void 0&&(Ln.exitCode=r);var n=y1.apply(this,arguments);return od("exit",Ln.exitCode,null),od("afterexit",Ln.exitCode,null),n}else return y1.apply(this,arguments)}):Dg.exports=function(){return function(){}};var nme,Ig,ime,Q0,ki,d1,od,m1,Og,EB,bB,sme,y1,ame;});var lme=chunkTKGT252T_js.c((otn,ume)=>{var elt=tme(),tlt=ome();ume.exports=elt(()=>{tlt(()=>{process.stderr.write("\x1B[?25h");},{alwaysLast:!0});});});var vB=chunkTKGT252T_js.c(Ng=>{var rlt=lme(),g1=!1;Ng.show=e=>{let t=e||process.stderr;t.isTTY&&(g1=!1,t.write("\x1B[?25h"));};Ng.hide=e=>{let t=e||process.stderr;t.isTTY&&(rlt(),g1=!0,t.write("\x1B[?25l"));};Ng.toggle=(e,t)=>{e!==void 0&&(g1=e),g1?Ng.show(t):Ng.hide(t);};});var pme=chunkTKGT252T_js.c((ltn,cme)=>{cme.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};});var _B=chunkTKGT252T_js.c((ctn,mme)=>{var ud=pme(),dme={};for(S1 in ud)ud.hasOwnProperty(S1)&&(dme[ud[S1]]=S1);var S1,ot=mme.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Ns in ot)if(ot.hasOwnProperty(Ns)){if(!("channels"in ot[Ns]))throw new Error("missing channels property: "+Ns);if(!("labels"in ot[Ns]))throw new Error("missing channel labels property: "+Ns);if(ot[Ns].labels.length!==ot[Ns].channels)throw new Error("channel and label counts mismatch: "+Ns);fme=ot[Ns].channels,hme=ot[Ns].labels,delete ot[Ns].channels,delete ot[Ns].labels,Object.defineProperty(ot[Ns],"channels",{value:fme}),Object.defineProperty(ot[Ns],"labels",{value:hme});}var fme,hme,Ns;ot.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),a=s-i,o,u,l;return s===i?o=0:t===s?o=(r-n)/a:r===s?o=2+(n-t)/a:n===s&&(o=4+(t-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),l=(i+s)/2,s===i?u=0:l<=.5?u=a/(s+i):u=a/(2-s-i),[o,u*100,l*100]};ot.rgb.hsv=function(e){var t,r,n,i,s,a=e[0]/255,o=e[1]/255,u=e[2]/255,l=Math.max(a,o,u),c=l-Math.min(a,o,u),p=function(h){return (l-h)/6/c+1/2};return c===0?i=s=0:(s=c/l,t=p(a),r=p(o),n=p(u),a===l?i=n-r:o===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};ot.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=ot.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};ot.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,a,o;return o=Math.min(1-t,1-r,1-n),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,[i*100,s*100,a*100,o*100]};function nlt(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}ot.rgb.keyword=function(e){var t=dme[e];if(t)return t;var r=1/0,n;for(var i in ud)if(ud.hasOwnProperty(i)){var s=ud[i],a=nlt(e,s);a<r&&(r=a,n=i);}return n};ot.keyword.rgb=function(e){return ud[e]};ot.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return [i*100,s*100,a*100]};ot.rgb.lab=function(e){var t=ot.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,a,o;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,a=500*(r-n),o=200*(n-i),[s,a,o]};ot.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,a,o,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,o=[0,0,0];for(var l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?u=i+(s-i)*6*a:2*a<1?u=s:3*a<2?u=i+(s-i)*(2/3-a)*6:u=i,o[l]=u*255;return o};ot.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),a,o;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r),[t,a*100,o*100]};ot.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),a=255*n*(1-r),o=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return [n,u,a];case 1:return [o,n,a];case 2:return [a,n,u];case 3:return [a,o,n];case 4:return [u,a,n];case 5:return [n,a,o]}};ot.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,a,o;return o=(2-r)*n,s=(2-r)*i,a=r*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,a*100,o*100]};ot.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,a,o,u;i>1&&(r/=i,n/=i),s=Math.floor(6*t),a=1-n,o=6*t-s,s&1&&(o=1-o),u=r+o*(a-r);var l,c,p;switch(s){default:case 6:case 0:l=a,c=u,p=r;break;case 1:l=u,c=a,p=r;break;case 2:l=r,c=a,p=u;break;case 3:l=r,c=u,p=a;break;case 4:l=u,c=r,p=a;break;case 5:l=a,c=r,p=u;break}return [l*255,c*255,p*255]};ot.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,a,o;return s=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),[s*255,a*255,o*255]};ot.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,a;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),[i*255,s*255,a*255]};ot.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),a=200*(r-n),[i,s,a]};ot.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;s=(t+16)/116,i=r/500+s,a=s-n/200;var o=Math.pow(s,3),u=Math.pow(i,3),l=Math.pow(a,3);return s=o>.008856?o:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,s*=100,a*=108.883,[i,s,a]};ot.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),a=Math.sqrt(r*r+n*n),[t,a,s]};ot.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;return a=n/360*2*Math.PI,i=r*Math.cos(a),s=r*Math.sin(a),[t,i,s]};ot.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:ot.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};ot.hsv.ansi16=function(e){return ot.rgb.ansi16(ot.hsv.rgb(e),e[2])};ot.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};ot.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return [n,i,s]};ot.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return [t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return [n,i,s]};ot.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return "000000".substring(r.length)+r};ot.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return [0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,a=n&255;return [i,s,a]};ot.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),a=i-s,o,u;return a<1?o=s/(1-a):o=0,a<=0?u=0:i===t?u=(r-n)/a%6:i===r?u=2+(n-t)/a:u=4+(t-r)/a+4,u/=6,u%=1,[u*360,a*100,o*100]};ot.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};ot.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};ot.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return [n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,a=s%1,o=1-a,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o;}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};ot.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};ot.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};ot.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return [e[0],(n-t)*100,(1-n)*100]};ot.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};ot.apple.rgb=function(e){return [e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ot.rgb.apple=function(e){return [e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ot.gray.rgb=function(e){return [e[0]/100*255,e[0]/100*255,e[0]/100*255]};ot.gray.hsl=ot.gray.hsv=function(e){return [0,0,e[0]]};ot.gray.hwb=function(e){return [0,100,e[0]]};ot.gray.cmyk=function(e){return [0,0,0,e[0]]};ot.gray.lab=function(e){return [e[0],0,0]};ot.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return "000000".substring(n.length)+n};ot.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return [t/255*100]};});var gme=chunkTKGT252T_js.c((ptn,yme)=>{var T1=_B();function ilt(){for(var e={},t=Object.keys(T1),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function slt(e){var t=ilt(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(T1[n]),s=i.length,a=0;a<s;a++){var o=i[a],u=t[o];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(o));}return t}function alt(e,t){return function(r){return t(e(r))}}function olt(e,t){for(var r=[t[e].parent,e],n=T1[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=alt(T1[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}yme.exports=function(e){for(var t=slt(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var a=n[s],o=t[a];o.parent!==null&&(r[a]=olt(a,t));}return r};});var Tme=chunkTKGT252T_js.c((ftn,Sme)=>{var xB=_B(),ult=gme(),Rg={},llt=Object.keys(xB);function clt(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return "conversion"in e&&(t.conversion=e.conversion),t}function plt(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return "conversion"in e&&(t.conversion=e.conversion),t}llt.forEach(function(e){Rg[e]={},Object.defineProperty(Rg[e],"channels",{value:xB[e].channels}),Object.defineProperty(Rg[e],"labels",{value:xB[e].labels});var t=ult(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Rg[e][n]=plt(i),Rg[e][n].raw=clt(i);});});Sme.exports=Rg;});var bme=chunkTKGT252T_js.c((htn,Eme)=>{var Mg=Tme(),E1=(e,t)=>function(){return `\x1B[${e.apply(Mg,arguments)+t}m`},b1=(e,t)=>function(){let r=e.apply(Mg,arguments);return `\x1B[${38+t};5;${r}m`},v1=(e,t)=>function(){let r=e.apply(Mg,arguments);return `\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function flt(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let a of Object.keys(s)){let o=s[a];t[a]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},s[a]=t[a],e.set(o[0],o[1]);}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1});}let r=i=>i,n=(i,s,a)=>[i,s,a];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:E1(r,0)},t.color.ansi256={ansi256:b1(r,0)},t.color.ansi16m={rgb:v1(n,0)},t.bgColor.ansi={ansi:E1(r,10)},t.bgColor.ansi256={ansi256:b1(r,10)},t.bgColor.ansi16m={rgb:v1(n,10)};for(let i of Object.keys(Mg)){if(typeof Mg[i]!="object")continue;let s=Mg[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=E1(s.ansi16,0),t.bgColor.ansi[i]=E1(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=b1(s.ansi256,0),t.bgColor.ansi256[i]=b1(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=v1(s.rgb,0),t.bgColor.ansi16m[i]=v1(s.rgb,10));}return t}Object.defineProperty(Eme,"exports",{enumerable:!0,get:flt});});var _me=chunkTKGT252T_js.c((dtn,vme)=>{vme.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)};});var Ame=chunkTKGT252T_js.c((mtn,xme)=>{var hlt=chunkTKGT252T_js.a("os"),ou=_me(),ms=process.env,Lg;ou("no-color")||ou("no-colors")||ou("color=false")?Lg=!1:(ou("color")||ou("colors")||ou("color=true")||ou("color=always"))&&(Lg=!0);"FORCE_COLOR"in ms&&(Lg=ms.FORCE_COLOR.length===0||parseInt(ms.FORCE_COLOR,10)!==0);function dlt(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function mlt(e){if(Lg===!1)return 0;if(ou("color=16m")||ou("color=full")||ou("color=truecolor"))return 3;if(ou("color=256"))return 2;if(e&&!e.isTTY&&Lg!==!0)return 0;let t=Lg?1:0;if(process.platform==="win32"){let r=hlt.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ms)return ["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in ms)||ms.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in ms)return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ms.TEAMCITY_VERSION)?1:0;if(ms.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ms){let r=parseInt((ms.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ms.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return /-256(color)?$/i.test(ms.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ms.TERM)||"COLORTERM"in ms?1:(ms.TERM==="dumb",t)}function AB(e){let t=mlt(e);return dlt(t)}xme.exports={supportsColor:AB,stdout:AB(process.stdout),stderr:AB(process.stderr)};});var Ome=chunkTKGT252T_js.c((ytn,Ime)=>{var ylt=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Pme=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,glt=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Slt=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Tlt=new Map([["n",`
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function wme(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Tlt.get(e)||e}function Elt(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(glt))r.push(i[2].replace(Slt,(a,o,u)=>o?wme(o):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function blt(e){Pme.lastIndex=0;let t=[],r;for(;(r=Pme.exec(e))!==null;){let n=r[1];if(r[2]){let i=Elt(n,r[2]);t.push([n].concat(i));}else t.push([n]);}return t}function Cme(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i];}return n}Ime.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(ylt,(s,a,o,u,l,c)=>{if(a)i.push(wme(a));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:Cme(e,r)(p)),r.push({inverse:o,styles:blt(u)});}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Cme(e,r)(i.join(""))),i=[],r.pop();}else i.push(c);}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")};});var Lme=chunkTKGT252T_js.c((gtn,eb)=>{var CB=chunkF6FLWRPJ_js.m(),yi=bme(),PB=Ame().stdout,vlt=Ome(),Nme=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Rme=["ansi","ansi","ansi256","ansi16m"],Mme=new Set(["gray"]),kg=Object.create(null);function Dme(e,t){t=t||{};let r=PB?PB.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0;}function Z0(e){if(!this||!(this instanceof Z0)||this.template){let t={};return Dme(t,e),t.template=function(){let r=[].slice.call(arguments);return Alt.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Z0.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Z0,t.template}Dme(this,e);}Nme&&(yi.blue.open="\x1B[94m");for(let e of Object.keys(yi))yi[e].closeRe=new RegExp(CB(yi[e].close),"g"),kg[e]={get(){let t=yi[e];return _1.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};kg.visible={get(){return _1.call(this,this._styles||[],!0,"visible")}};yi.color.closeRe=new RegExp(CB(yi.color.close),"g");for(let e of Object.keys(yi.color.ansi))Mme.has(e)||(kg[e]={get(){let t=this.level;return function(){let n={open:yi.color[Rme[t]][e].apply(null,arguments),close:yi.color.close,closeRe:yi.color.closeRe};return _1.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});yi.bgColor.closeRe=new RegExp(CB(yi.bgColor.close),"g");for(let e of Object.keys(yi.bgColor.ansi)){if(Mme.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);kg[t]={get(){let r=this.level;return function(){let i={open:yi.bgColor[Rme[r]][e].apply(null,arguments),close:yi.bgColor.close,closeRe:yi.bgColor.closeRe};return _1.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}};}var _lt=Object.defineProperties(()=>{},kg);function _1(e,t,r){let n=function(){return xlt.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s;}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s;}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=_lt,n}function xlt(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return "";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=yi.dim.open;Nme&&this.hasGrey&&(yi.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return yi.dim.open=n,r}function Alt(e,t){if(!Array.isArray(t))return [].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return vlt(e,n.join(""))}Object.defineProperties(Z0.prototype,kg);eb.exports=Z0();eb.exports.supportsColor=PB;eb.exports.default=eb.exports;});var Bme=chunkTKGT252T_js.c((Stn,Fme)=>{var kme=6e4;Fme.exports=function(t){var r=new Date(t.getTime()),n=r.getTimezoneOffset();r.setSeconds(0,0);var i=r.getTime()%kme;return n*kme+i};});var wB=chunkTKGT252T_js.c((Ttn,jme)=>{function Plt(e){return e instanceof Date}jme.exports=Plt;});var vf=chunkTKGT252T_js.c((Etn,qme)=>{var IB=Bme(),Clt=wB(),OB=36e5,DB=6e4,wlt=2,Ilt=/[T ]/,Olt=/:/,Dlt=/^(\d{2})$/,Nlt=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],Rlt=/^(\d{4})/,Mlt=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],Llt=/^-(\d{2})$/,klt=/^-?(\d{3})$/,Flt=/^-?(\d{2})-?(\d{2})$/,Blt=/^-?W(\d{2})$/,jlt=/^-?W(\d{2})-?(\d{1})$/,Ult=/^(\d{2}([.,]\d*)?)$/,qlt=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,Vlt=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,Hlt=/([Z+-].*)$/,Glt=/^(Z)$/,$lt=/^([+-])(\d{2})$/,Klt=/^([+-])(\d{2}):?(\d{2})$/;function Ylt(e,t){if(Clt(e))return new Date(e.getTime());if(typeof e!="string")return new Date(e);var r=t||{},n=r.additionalDigits;n==null?n=wlt:n=Number(n);var i=Wlt(e),s=Xlt(i.date,n),a=s.year,o=s.restDateString,u=zlt(o,a);if(u){var l=u.getTime(),c=0,p;if(i.time&&(c=Jlt(i.time)),i.timezone)p=Qlt(i.timezone)*DB;else {var h=l+c,f=new Date(h);p=IB(f);var d=new Date(h);d.setDate(f.getDate()+1);var m=IB(d)-IB(f);m>0&&(p+=m);}return new Date(l+c+p)}else return new Date(e)}function Wlt(e){var t={},r=e.split(Ilt),n;if(Olt.test(r[0])?(t.date=null,n=r[0]):(t.date=r[0],n=r[1]),n){var i=Hlt.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n;}return t}function Xlt(e,t){var r=Nlt[t],n=Mlt[t],i;if(i=Rlt.exec(e)||n.exec(e),i){var s=i[1];return {year:parseInt(s,10),restDateString:e.slice(s.length)}}if(i=Dlt.exec(e)||r.exec(e),i){var a=i[1];return {year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return {year:null}}function zlt(e,t){if(t===null)return null;var r,n,i,s;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=Llt.exec(e),r)return n=new Date(0),i=parseInt(r[1],10)-1,n.setUTCFullYear(t,i),n;if(r=klt.exec(e),r){n=new Date(0);var a=parseInt(r[1],10);return n.setUTCFullYear(t,0,a),n}if(r=Flt.exec(e),r){n=new Date(0),i=parseInt(r[1],10)-1;var o=parseInt(r[2],10);return n.setUTCFullYear(t,i,o),n}if(r=Blt.exec(e),r)return s=parseInt(r[1],10)-1,Ume(t,s);if(r=jlt.exec(e),r){s=parseInt(r[1],10)-1;var u=parseInt(r[2],10)-1;return Ume(t,s,u)}return null}function Jlt(e){var t,r,n;if(t=Ult.exec(e),t)return r=parseFloat(t[1].replace(",",".")),r%24*OB;if(t=qlt.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),r%24*OB+n*DB;if(t=Vlt.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return r%24*OB+n*DB+i*1e3}return null}function Qlt(e){var t,r;return t=Glt.exec(e),t?0:(t=$lt.exec(e),t?(r=parseInt(t[2],10)*60,t[1]==="+"?-r:r):(t=Klt.exec(e),t?(r=parseInt(t[2],10)*60+parseInt(t[3],10),t[1]==="+"?-r:r):0))}function Ume(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,s=t*7+r+1-i;return n.setUTCDate(n.getUTCDate()+s),n}qme.exports=Ylt;});var Hme=chunkTKGT252T_js.c((btn,Vme)=>{var Zlt=vf();function ect(e){var t=Zlt(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}Vme.exports=ect;});var $me=chunkTKGT252T_js.c((vtn,Gme)=>{var tct=vf();function rct(e){var t=tct(e);return t.setHours(0,0,0,0),t}Gme.exports=rct;});var Xme=chunkTKGT252T_js.c((_tn,Wme)=>{var Kme=$me(),Yme=6e4,nct=864e5;function ict(e,t){var r=Kme(e),n=Kme(t),i=r.getTime()-r.getTimezoneOffset()*Yme,s=n.getTime()-n.getTimezoneOffset()*Yme;return Math.round((i-s)/nct)}Wme.exports=ict;});var Jme=chunkTKGT252T_js.c((xtn,zme)=>{var sct=vf(),act=Hme(),oct=Xme();function uct(e){var t=sct(e),r=oct(t,act(t)),n=r+1;return n}zme.exports=uct;});var Zme=chunkTKGT252T_js.c((Atn,Qme)=>{var lct=vf();function cct(e,t){var r=t&&Number(t.weekStartsOn)||0,n=lct(e),i=n.getDay(),s=(i<r?7:0)+i-r;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}Qme.exports=cct;});var x1=chunkTKGT252T_js.c((Ptn,eye)=>{var pct=Zme();function fct(e){return pct(e,{weekStartsOn:1})}eye.exports=fct;});var NB=chunkTKGT252T_js.c((Ctn,rye)=>{var hct=vf(),tye=x1();function dct(e){var t=hct(e),r=t.getFullYear(),n=new Date(0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);var i=tye(n),s=new Date(0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);var a=tye(s);return t.getTime()>=i.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}rye.exports=dct;});var iye=chunkTKGT252T_js.c((wtn,nye)=>{var mct=NB(),yct=x1();function gct(e){var t=mct(e),r=new Date(0);r.setFullYear(t,0,4),r.setHours(0,0,0,0);var n=yct(r);return n}nye.exports=gct;});var aye=chunkTKGT252T_js.c((Itn,sye)=>{var Sct=vf(),Tct=x1(),Ect=iye(),bct=6048e5;function vct(e){var t=Sct(e),r=Tct(t).getTime()-Ect(t).getTime();return Math.round(r/bct)+1}sye.exports=vct;});var uye=chunkTKGT252T_js.c((Otn,oye)=>{var _ct=wB();function xct(e){if(_ct(e))return !isNaN(e);throw new TypeError(toString.call(e)+" is not an instance of Date")}oye.exports=xct;});var cye=chunkTKGT252T_js.c((Dtn,lye)=>{function Act(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function t(r,n,i){i=i||{};var s;return typeof e[r]=="string"?s=e[r]:n===1?s=e[r].one:s=e[r].other.replace("{{count}}",n),i.addSuffix?i.comparison>0?"in "+s:s+" ago":s}return {localize:t}}lye.exports=Act;});var fye=chunkTKGT252T_js.c((Ntn,pye)=>{var Pct=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];function Cct(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);var n=Pct.concat(t).sort().reverse(),i=new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+n.join("|")+"|.)","g");return i}pye.exports=Cct;});var dye=chunkTKGT252T_js.c((Rtn,hye)=>{var wct=fye();function Ict(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Su","Mo","Tu","We","Th","Fr","Sa"],n=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["AM","PM"],a=["am","pm"],o=["a.m.","p.m."],u={MMM:function(c){return e[c.getMonth()]},MMMM:function(c){return t[c.getMonth()]},dd:function(c){return r[c.getDay()]},ddd:function(c){return n[c.getDay()]},dddd:function(c){return i[c.getDay()]},A:function(c){return c.getHours()/12>=1?s[1]:s[0]},a:function(c){return c.getHours()/12>=1?a[1]:a[0]},aa:function(c){return c.getHours()/12>=1?o[1]:o[0]}},l=["M","D","DDD","d","Q","W"];return l.forEach(function(c){u[c+"o"]=function(p,h){return Oct(h[c](p))};}),{formatters:u,formattingTokensRegExp:wct(u)}}function Oct(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}hye.exports=Ict;});var yye=chunkTKGT252T_js.c((Mtn,mye)=>{var Dct=cye(),Nct=dye();mye.exports={distanceInWords:Dct(),format:Nct()};});var _ye=chunkTKGT252T_js.c((Ltn,vye)=>{var gye=Jme(),Sye=aye(),Tye=NB(),Rct=vf(),Mct=uye(),Eye=yye();function Lct(e,t,r){var n=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",i=r||{},s=i.locale,a=Eye.format.formatters,o=Eye.format.formattingTokensRegExp;s&&s.format&&s.format.formatters&&(a=s.format.formatters,s.format.formattingTokensRegExp&&(o=s.format.formattingTokensRegExp));var u=Rct(e);if(!Mct(u))return "Invalid Date";var l=kct(n,a,o);return l(u)}var RB={M:function(e){return e.getMonth()+1},MM:function(e){return ha(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return ha(e.getDate(),2)},DDD:function(e){return gye(e)},DDDD:function(e){return ha(gye(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return Sye(e)},WW:function(e){return ha(Sye(e),2)},YY:function(e){return ha(e.getFullYear(),4).substr(2)},YYYY:function(e){return ha(e.getFullYear(),4)},GG:function(e){return String(Tye(e)).substr(2)},GGGG:function(e){return Tye(e)},H:function(e){return e.getHours()},HH:function(e){return ha(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(e){return ha(RB.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return ha(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return ha(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return ha(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return ha(e.getMilliseconds(),3)},Z:function(e){return bye(e.getTimezoneOffset(),":")},ZZ:function(e){return bye(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function kct(e,t,r){var n=e.match(r),i=n.length,s,a;for(s=0;s<i;s++)a=t[n[s]]||RB[n[s]],a?n[s]=a:n[s]=Fct(n[s]);return function(o){for(var u="",l=0;l<i;l++)n[l]instanceof Function?u+=n[l](o,RB):u+=n[l];return u}}function Fct(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|]$/g,""):e.replace(/\\/g,"")}function bye(e,t){t=t||"";var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),s=n%60;return r+ha(i,2)+t+ha(s,2)}function ha(e,t){for(var r=Math.abs(e).toString();r.length<t;)r="0"+r;return r}vye.exports=Lct;});var Aye=chunkTKGT252T_js.c(xye=>{var Bct=Lme(),jct=_ye();xye.log=(e,t)=>{if(e.dateFormat===!1){console.log(t);return}let r=jct(new Date,e.dateFormat);console.log(Bct.dim(`[${r}]`)+` ${t}`);};});var Oye=chunkTKGT252T_js.c((Ftn,Iye)=>{var Pye=Jde(),Cye=vB(),Uct=Aye(),qct=(e,t,r)=>{let n=Uct.log.bind(void 0,r);if(t.type==="STATE"){let i=e.isPending()?"started":e.state;n(`${e.title} [${i}]`),e.isSkipped()&&e.output&&n(`${Pye.arrowRight} ${e.output}`);}else t.type==="DATA"?n(`${Pye.arrowRight} ${t.data}`):t.type==="TITLE"&&n(`${e.title} [title changed]`);},wye=(e,t)=>{for(let r of e)r.subscribe(n=>{if(n.type==="SUBTASKS"){wye(r.subtasks,t);return}qct(r,n,t);},n=>{console.log(n);});},MB=class{constructor(t,r){this._tasks=t,this._options=Object.assign({dateFormat:"HH:mm:ss"},r);}static get nonTTY(){return !0}render(){Cye.hide(),wye(this._tasks,this._options);}end(){Cye.show();}};Iye.exports=MB;});var Rye=chunkTKGT252T_js.c((Btn,Nye)=>{var Sr=Nye.exports,tn="\x1B[",P1="\x1B]",tb="\x07",A1=";",Dye=process.env.TERM_PROGRAM==="Apple_Terminal";Sr.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?tn+(e+1)+"G":tn+(t+1)+";"+(e+1)+"H"};Sr.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=tn+-e+"D":e>0&&(r+=tn+e+"C"),t<0?r+=tn+-t+"A":t>0&&(r+=tn+t+"B"),r};Sr.cursorUp=e=>tn+(typeof e=="number"?e:1)+"A";Sr.cursorDown=e=>tn+(typeof e=="number"?e:1)+"B";Sr.cursorForward=e=>tn+(typeof e=="number"?e:1)+"C";Sr.cursorBackward=e=>tn+(typeof e=="number"?e:1)+"D";Sr.cursorLeft=tn+"G";Sr.cursorSavePosition=tn+(Dye?"7":"s");Sr.cursorRestorePosition=tn+(Dye?"8":"u");Sr.cursorGetPosition=tn+"6n";Sr.cursorNextLine=tn+"E";Sr.cursorPrevLine=tn+"F";Sr.cursorHide=tn+"?25l";Sr.cursorShow=tn+"?25h";Sr.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=Sr.eraseLine+(r<e-1?Sr.cursorUp():"");return e&&(t+=Sr.cursorLeft),t};Sr.eraseEndLine=tn+"K";Sr.eraseStartLine=tn+"1K";Sr.eraseLine=tn+"2K";Sr.eraseDown=tn+"J";Sr.eraseUp=tn+"1J";Sr.eraseScreen=tn+"2J";Sr.scrollUp=tn+"S";Sr.scrollDown=tn+"T";Sr.clearScreen="\x1Bc";Sr.clearTerminal=process.platform==="win32"?`${Sr.eraseScreen}${tn}0f`:`${Sr.eraseScreen}${tn}3J${tn}H`;Sr.beep=tb;Sr.link=(e,t)=>[P1,"8",A1,A1,t,tb,e,P1,"8",A1,A1,tb].join("");Sr.image=(e,t)=>{t=t||{};let r=P1+"1337;File=inline=1";return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+tb};Sr.iTerm={};Sr.iTerm.setCwd=e=>P1+"50;CurrentDir="+(e||process.cwd())+tb;});var Lye=chunkTKGT252T_js.c((jtn,Mye)=>{Mye.exports=()=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");return new RegExp(e,"g")};});var LB=chunkTKGT252T_js.c((Utn,kye)=>{var Vct=Lye();kye.exports=e=>typeof e=="string"?e.replace(Vct(),""):e;});var Bye=chunkTKGT252T_js.c((qtn,Fye)=>{Fye.exports=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);});var Uye=chunkTKGT252T_js.c((Vtn,jye)=>{var Hct=LB(),Gct=Bye();jye.exports=e=>{if(typeof e!="string"||e.length===0)return 0;e=Hct(e);let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=Gct(n)?2:1);}return t};});var Hye=chunkTKGT252T_js.c((Htn,Vye)=>{var C1=Uye(),$ct=LB(),FB=new Set(["\x1B","\x9B"]),Kct=39,Yct=new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[90,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49]]),qye=e=>`${FB.values().next().value}[${e}m`,Wct=e=>e.split(" ").map(t=>C1(t)),kB=(e,t,r)=>{let n=Array.from(t),i=!1,s=C1($ct(e[e.length-1]));for(let a of n.entries()){let o=a[0],u=a[1],l=C1(u);if(s+l<=r?e[e.length-1]+=u:(e.push(u),s=0),FB.has(u))i=!0;else if(i&&u==="m"){i=!1;continue}i||(s+=l,s===r&&o<n.length-1&&(e.push(""),s=0));}!s&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop());},Xct=(e,t,r)=>{let n=r||{};if(e.trim()==="")return n.trim===!1?e:e.trim();let i="",s="",a,o=Wct(e),u=e.split(" "),l=[""];for(let c of Array.from(u).entries()){let p=c[0],h=c[1];l[l.length-1]=n.trim===!1?l[l.length-1]:l[l.length-1].trim();let f=C1(l[l.length-1]);if((f||h==="")&&(f===t&&n.wordWrap===!1&&(l.push(""),f=0),l[l.length-1]+=" ",f++),o[p]>t&&n.hard){f&&l.push(""),kB(l,h,t);continue}if(f+o[p]>t&&f>0){if(n.wordWrap===!1&&f<t){kB(l,h,t);continue}l.push("");}if(f+o[p]>t&&n.wordWrap===!1){kB(l,h,t);continue}l[l.length-1]+=h;}i=l.map(c=>n.trim===!1?c:c.trim()).join(`
`);for(let c of Array.from(i).entries()){let p=c[0],h=c[1];if(s+=h,FB.has(h)){let d=parseFloat(/\d[^m]*/.exec(i.slice(p,p+4)));a=d===Kct?null:d;}let f=Yct.get(Number(a));a&&f&&(i[p+1]===`
`?s+=qye(f):h===`
`&&(s+=qye(a)));}return s};Vye.exports=(e,t,r)=>String(e).normalize().split(`
`).map(n=>Xct(n,t,r)).join(`
`);});var Kye=chunkTKGT252T_js.c((Gtn,w1)=>{var Gye=Rye(),$ye=vB(),zct=Hye(),Jct=e=>{let t=e.columns;return t?process.platform==="win32"?t-1:t:80},BB=(e,t)=>{t=Object.assign({showCursor:!1},t);let r=0,n=function(){t.showCursor||$ye.hide();let i=[].join.call(arguments," ")+`
`;i=zct(i,Jct(e),{trim:!1,hard:!0,wordWrap:!1}),e.write(Gye.eraseLines(r)+i),r=i.split(`
`).length;};return n.clear=()=>{e.write(Gye.eraseLines(r)),r=0;},n.done=()=>{r=0,t.showCursor||$ye.show();},n};w1.exports=BB(process.stdout);w1.exports.stderr=BB(process.stderr);w1.exports.create=BB;});var Wye=chunkTKGT252T_js.c(($tn,Yye)=>{function Qct(){var e={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return e.colors.grey=e.colors.gray,Object.keys(e).forEach(function(t){var r=e[t];Object.keys(r).forEach(function(n){var i=r[n];e[n]=r[n]={open:"\x1B["+i[0]+"m",close:"\x1B["+i[1]+"m"};}),Object.defineProperty(e,t,{value:r,enumerable:!1});}),e}Object.defineProperty(Yye,"exports",{enumerable:!0,get:Qct});});var I1=chunkTKGT252T_js.c((Ktn,Xye)=>{Xye.exports=function(){return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g};});var jB=chunkTKGT252T_js.c((Ytn,zye)=>{var Zct=I1()();zye.exports=function(e){return typeof e=="string"?e.replace(Zct,""):e};});var Zye=chunkTKGT252T_js.c((Wtn,Qye)=>{var ept=I1(),Jye=new RegExp(ept().source);Qye.exports=Jye.test.bind(Jye);});var nge=chunkTKGT252T_js.c((Xtn,rge)=>{var tge=process.argv,ege=tge.indexOf("--"),ld=function(e){e="--"+e;var t=tge.indexOf(e);return t!==-1&&(ege!==-1?t<ege:!0)};rge.exports=function(){return "FORCE_COLOR"in process.env?!0:ld("no-color")||ld("no-colors")||ld("color=false")?!1:ld("color")||ld("colors")||ld("color=true")||ld("color=always")?!0:process.stdout&&!process.stdout.isTTY?!1:process.platform==="win32"||"COLORTERM"in process.env?!0:process.env.TERM==="dumb"?!1:!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)}();});var O1=chunkTKGT252T_js.c((ztn,Fg)=>{var tpt=chunkF6FLWRPJ_js.m(),lc=Wye(),rpt=jB(),npt=Zye(),ige=nge(),sge=Object.defineProperties,age=process.platform==="win32"&&!/^xterm/i.test(process.env.TERM);function oge(e){this.enabled=!e||e.enabled===void 0?ige:e.enabled;}age&&(lc.blue.open="\x1B[94m");var uge=function(){var e={};return Object.keys(lc).forEach(function(t){lc[t].closeRe=new RegExp(tpt(lc[t].close),"g"),e[t]={get:function(){return lge.call(this,this._styles.concat(t))}};}),e}(),ipt=sge(function(){},uge);function lge(e){var t=function(){return spt.apply(t,arguments)};return t._styles=e,t.enabled=this.enabled,t.__proto__=ipt,t}function spt(){var e=arguments,t=e.length,r=t!==0&&String(arguments[0]);if(t>1)for(var n=1;n<t;n++)r+=" "+e[n];if(!this.enabled||!r)return r;var i=this._styles,s=i.length,a=lc.dim.open;for(age&&(i.indexOf("gray")!==-1||i.indexOf("grey")!==-1)&&(lc.dim.open="");s--;){var o=lc[i[s]];r=o.open+r.replace(o.closeRe,o.open)+o.close;}return lc.dim.open=a,r}function apt(){var e={};return Object.keys(uge).forEach(function(t){e[t]={get:function(){return lge.call(this,[t])}};}),e}sge(oge.prototype,apt());Fg.exports=new oge;Fg.exports.styles=lc;Fg.exports.hasColor=npt;Fg.exports.stripColor=rpt;Fg.exports.supportsColor=ige;});var fge=chunkTKGT252T_js.c((Jtn,pge)=>{var cge=Object.getOwnPropertySymbols,opt=Object.prototype.hasOwnProperty,upt=Object.prototype.propertyIsEnumerable;function lpt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function cpt(){try{if(!Object.assign)return !1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return !1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(n.join("")!=="0123456789")return !1;var i={};return "abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s;}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}pge.exports=cpt()?Object.assign:function(e,t){for(var r,n=lpt(e),i,s=1;s<arguments.length;s++){r=Object(arguments[s]);for(var a in r)opt.call(r,a)&&(n[a]=r[a]);if(cge){i=cge(r);for(var o=0;o<i.length;o++)upt.call(r,i[o])&&(n[i[o]]=r[i[o]]);}}return n};});var UB=chunkTKGT252T_js.c((Qtn,dge)=>{var ppt=fge(),fpt=chunkF6FLWRPJ_js.m(),hge=process.platform,uu={tick:"\u2714",cross:"\u2716",star:"\u2605",square:"\u2587",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",play:"\u25B6",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",circleQuestionMark:"?\u20DD",bullet:"\u25CF",dot:"\u2024",line:"\u2500",ellipsis:"\u2026",pointer:"\u276F",pointerSmall:"\u203A",info:"\u2139",warning:"\u26A0",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",heart:"\u2665",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",questionMarkPrefix:"?\u20DD",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneSeventh:"\u2150",oneEighth:"\u215B",oneNinth:"\u2151",oneTenth:"\u2152",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E"},hpt={tick:"\u221A",cross:"\xD7",star:"*",square:"\u2588",squareSmall:"[ ]",squareSmallFilled:"[\u2588]",play:"\u25BA",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"\u2500",ellipsis:"...",pointer:">",pointerSmall:"\xBB",info:"i",warning:"\u203C",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",heart:uu.heart,arrowUp:uu.arrowUp,arrowDown:uu.arrowDown,arrowLeft:uu.arrowLeft,arrowRight:uu.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};hge==="linux"&&(uu.questionMarkPrefix="?");var D1=hge==="win32"?hpt:uu,dpt=function(e){return D1===uu||Object.keys(uu).forEach(function(t){uu[t]!==D1[t]&&(e=e.replace(new RegExp(fpt(uu[t]),"g"),D1[t]));}),e};dge.exports=ppt(dpt,D1);});var yge=chunkTKGT252T_js.c((Ztn,mge)=>{mge.exports=(e,t,r)=>{let n=typeof r=="object"?Object.assign({indent:" "},r):{indent:r||" "};if(t=t===void 0?1:t,typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof n.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(t===0)return e;let i=n.includeEmptyLines?/^/mg:/^(?!\s*$)/mg;return e.replace(i,n.indent.repeat(t))};});var Ege=chunkTKGT252T_js.c((ern,Tge)=>{var Sge=["\x1B","\x9B"],qB=39,mpt={0:0,1:22,2:22,3:23,4:24,7:27,8:28,9:29,30:39,31:39,32:39,33:39,34:39,35:39,36:39,37:39,90:39,40:49,41:49,42:49,43:49,44:49,45:49,46:49,47:49};function gge(e){return Sge[0]+"["+e+"m"}Tge.exports=function(e,t,r){r=r||e.length;for(var n=!1,i,s=0,a="",o=0;o<e.length;o++){var u=!1,l=e[o];if(Sge.indexOf(l)!==-1){n=!0;var c=/[0-9][^m]*/.exec(e.slice(o,o+4));i=c===qB?null:c;}else n&&l==="m"&&(n=!1,u=!0);if(!n&&!u&&++s,s>t&&s<=r)a+=l;else if(s===t&&i!==void 0&&i!==qB)a+=gge(i);else if(s>=r){i!==void 0&&(a+=gge(mpt[i]||qB));break}}return a};});var vge=chunkTKGT252T_js.c((trn,bge)=>{var ypt=I1()();bge.exports=function(e){return typeof e=="string"?e.replace(ypt,""):e};});var xge=chunkTKGT252T_js.c((rrn,_ge)=>{_ge.exports=function(e,t){if(e==null)throw TypeError();e=String(e);var r=e.length,n=t?Number(t):0;if(Number.isNaN(n)&&(n=0),!(n<0||n>=r)){var i=e.charCodeAt(n);if(i>=55296&&i<=56319&&r>n+1){var s=e.charCodeAt(n+1);if(s>=56320&&s<=57343)return (i-55296)*1024+s-56320+65536}return i}};});var Pge=chunkTKGT252T_js.c((nrn,Age)=>{Age.exports=Number.isNaN||function(e){return e!==e};});var wge=chunkTKGT252T_js.c((irn,Cge)=>{var gpt=Pge();Cge.exports=function(e){return gpt(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)};});var Oge=chunkTKGT252T_js.c((srn,Ige)=>{var Spt=vge(),Tpt=xge(),Ept=wge();Ige.exports=function(e){if(typeof e!="string"||e.length===0)return 0;var t=0;e=Spt(e);for(var r=0;r<e.length;r++){var n=Tpt(e,r);n<=31||n>=127&&n<=159||(n>=65536&&r++,Ept(n)?t+=2:t++);}return t};});var Nge=chunkTKGT252T_js.c((arn,Dge)=>{var N1=Ege(),bpt=Oge();Dge.exports=function(e,t,r){r=r||{};var n=r.position||"end",i="\u2026";if(typeof e!="string")throw new TypeError("Expected `input` to be a string, got "+typeof e);if(typeof t!="number")throw new TypeError("Expected `columns` to be a number, got "+typeof t);if(t<1)return "";if(t===1)return i;var s=bpt(e);if(s<=t)return e;if(n==="start")return i+N1(e,s-t+1,s);if(n==="middle"){var a=Math.floor(t/2);return N1(e,0,a)+i+N1(e,s-(t-a)+1,s)}else if(n==="end")return N1(e,0,t-1)+i;throw new Error("Expected `options.position` to be either `start`, `middle` or `end`, got "+n)};});var Mge=chunkTKGT252T_js.c((orn,Rge)=>{var _f=O1(),vpt={info:_f.blue("\u2139"),success:_f.green("\u2714"),warning:_f.yellow("\u26A0"),error:_f.red("\u2716")},_pt={info:_f.blue("i"),success:_f.green("\u221A"),warning:_f.yellow("\u203C"),error:_f.red("\xD7")};Rge.exports=process.platform==="win32"?_pt:vpt;});var Lge=chunkTKGT252T_js.c((urn,HB)=>{var VB=process.platform==="win32"?["-","\\","|","/"]:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];HB.exports=function(){var e=0;return function(){return VB[e=++e%VB.length]}};HB.exports.frames=VB;});var jge=chunkTKGT252T_js.c($B=>{var GB=O1(),kge=Mge(),Bge=UB(),xpt=Lge(),Fge=GB.yellow(Bge.pointer),Apt=GB.yellow(Bge.arrowDown);$B.isDefined=e=>e!=null;$B.getSymbol=(e,t)=>(e.spinner||(e.spinner=xpt()),e.isPending()?t.showSubtasks!==!1&&e.subtasks.length>0?Fge:GB.yellow(e.spinner()):e.isCompleted()?kge.success:e.hasFailed()?e.subtasks.length>0?Fge:kge.error:e.isSkipped()?Apt:" ");});var XB=chunkTKGT252T_js.c((crn,Gge)=>{var YB=Kye(),Uge=O1(),Ppt=UB(),qge=yge(),Cpt=Nge(),wpt=jB(),KB=jge(),Hge=(e,t,r)=>{r=r||0;let n=[];for(let i of e)if(i.isEnabled()){let s=i.isSkipped()?` ${Uge.dim("[skipped]")}`:"";if(n.push(qge(` ${KB.getSymbol(i,t)} ${i.title}${s}`,r," ")),(i.isPending()||i.isSkipped()||i.hasFailed())&&KB.isDefined(i.output)){let a=i.output;if(typeof a=="string"&&(a=wpt(a.trim().split(`
`).filter(Boolean).pop()),a===""&&(a=void 0)),KB.isDefined(a)){let o=qge(`${Ppt.arrowRight} ${a}`,r," ");n.push(` ${Uge.gray(Cpt(o,process.stdout.columns-3))}`);}}(i.isPending()||i.hasFailed()||t.collapse===!1)&&(i.hasFailed()||t.showSubtasks!==!1)&&i.subtasks.length>0&&(n=n.concat(Hge(i.subtasks,t,r+1)));}return n.join(`
`)},Vge=(e,t)=>{YB(Hge(e,t));},WB=class{constructor(t,r){this._tasks=t,this._options=Object.assign({showSubtasks:!0,collapse:!0,clearOutput:!1},r);}render(){this._id||(this._id=setInterval(()=>{Vge(this._tasks,this._options);},100));}end(t){this._id&&(clearInterval(this._id),this._id=void 0),Vge(this._tasks,this._options),this._options.clearOutput&&t===void 0?YB.clear():YB.done();}};Gge.exports=WB;});var zB=chunkTKGT252T_js.c(Yge=>{var R1={silent:Wde(),verbose:Oye(),default:XB()},$ge=e=>process.stdout.isTTY===!0||e.nonTTY===!0,Kge=e=>typeof e=="string"?R1[e]||R1.default:typeof e=="function"?e:R1.default;Yge.getRenderer=(e,t)=>{let r=Kge(e);return $ge(r)||(r=Kge(t),(!r||!$ge(r))&&(r=R1.verbose)),r};});var JB=chunkTKGT252T_js.c((frn,Wge)=>{var Bg={PENDING:0,COMPLETED:1,FAILED:2,SKIPPED:3};Bg.toString=e=>{switch(e){case Bg.PENDING:return "pending";case Bg.COMPLETED:return "completed";case Bg.FAILED:return "failed";case Bg.SKIPPED:return "skipped";default:return "unknown"}};Wge.exports=Bg;});var zge=chunkTKGT252T_js.c((hrn,Xge)=>{var cc=Xge.exports=function(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"};cc.writable=function(e){return cc(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"};cc.readable=function(e){return cc(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object"};cc.duplex=function(e){return cc.writable(e)&&cc.readable(e)};cc.transform=function(e){return cc.duplex(e)&&typeof e._transform=="function"&&typeof e._transformState=="object"};});function QB(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}var Jge=chunkTKGT252T_js.b(()=>{});var Qge={};chunkTKGT252T_js.d(Qge,{default:()=>Opt});var jg,Ipt,Opt,Zge=chunkTKGT252T_js.b(()=>{Jge();typeof self<"u"?jg=self:typeof window<"u"?jg=window:typeof global<"u"?jg=global:typeof module<"u"?jg=module:jg=Function("return this")();Ipt=QB(jg),Opt=Ipt;});var rSe=chunkTKGT252T_js.c((yrn,tSe)=>{var eSe=(Zge(),chunkTKGT252T_js.f(Qge)).default;tSe.exports=e=>!!(e&&e[eSe]&&e===e[eSe]());});var sSe=chunkTKGT252T_js.c(M1=>{var Dpt=zge(),nSe=typeof Symbol=="function"&&Symbol.observable||"@@observable",iSe=e=>!!(e&&e[nSe]&&e===e[nSe]())||rSe()(e);M1.isListr=e=>!!(e&&e.setRenderer&&e.add&&e.run);M1.isObservable=e=>iSe(e);M1.isStream=e=>Dpt(e)&&!iSe(e);});var L1=chunkTKGT252T_js.c((Srn,aSe)=>{var ZB=class extends Error{constructor(t){super(t),this.name="ListrError";}};aSe.exports=ZB;});var uSe=chunkTKGT252T_js.c((Trn,oSe)=>{var Npt=Bfe(),Rpt=Vfe(),Mpt=(Kde(),chunkTKGT252T_js.f($de)).Subject,Lpt=zB(),pc=JB(),e3=sSe(),kpt=L1(),Fpt=()=>!1,t3=class extends Mpt{constructor(t,r,n){if(super(),!r)throw new TypeError("Expected a task");if(typeof r.title!="string")throw new TypeError(`Expected property \`title\` to be of type \`string\`, got \`${typeof r.title}\``);if(typeof r.task!="function")throw new TypeError(`Expected property \`task\` to be of type \`function\`, got \`${typeof r.task}\``);if(r.skip&&typeof r.skip!="function")throw new TypeError(`Expected property \`skip\` to be of type \`function\`, got \`${typeof r.skip}\``);if(r.enabled&&typeof r.enabled!="function")throw new TypeError(`Expected property \`enabled\` to be of type \`function\`, got \`${typeof r.enabled}\``);this._listr=t,this._options=n||{},this._subtasks=[],this._enabledFn=r.enabled,this._isEnabled=!0,this.output=void 0,this.title=r.title,this.skip=r.skip||Fpt,this.task=r.task;}get subtasks(){return this._subtasks}set state(t){this._state=t,this.next({type:"STATE"});}get state(){return pc.toString(this._state)}check(t){if(this._state===void 0&&this._enabledFn){let r=this._enabledFn(t);this._isEnabled!==r&&(this._isEnabled=r,this.next({type:"ENABLED",data:r}));}}hasSubtasks(){return this._subtasks.length>0}isPending(){return this._state===pc.PENDING}isSkipped(){return this._state===pc.SKIPPED}isCompleted(){return this._state===pc.COMPLETED}isEnabled(){return this._isEnabled}hasFailed(){return this._state===pc.FAILED}run(t,r){let n=i=>e3.isListr(i)?(i._options=Object.assign(this._options,i._options),i.exitOnError=i._options.exitOnError,i.setRenderer(Lpt.getRenderer("silent")),this._subtasks=i.tasks,this.next({type:"SUBTASKS"}),i.run(t)):(e3.isStream(i)&&(i=Rpt(i)),e3.isObservable(i)&&(i=new Promise((s,a)=>{i.subscribe({next:o=>{this.output=o,this.next({type:"DATA",data:o});},error:a,complete:s});})),Npt(i)?i.then(n):i);return Promise.resolve().then(()=>(this.state=pc.PENDING,this.skip(t))).then(i=>{if(i){typeof i=="string"&&(this.output=i),this.state=pc.SKIPPED;return}return n(this.task(t,r))}).then(()=>{this.isPending()&&(this.state=pc.COMPLETED);}).catch(i=>{if(this.state=pc.FAILED,i instanceof kpt){r.report(i);return}if(this.hasSubtasks()||(this.output=i.message),this.next({type:"DATA",data:i.message}),r.report(i),this._listr.exitOnError!==!1)throw i}).then(()=>{this.complete();})}};oSe.exports=t3;});var cSe=chunkTKGT252T_js.c((Ern,lSe)=>{var Bpt=JB(),jpt=L1(),r3=class{constructor(t,r){this._task=t,this._errors=r;}set title(t){this._task.title=t,this._task.next({type:"TITLE",data:t});}set output(t){this._task.output=t,this._task.next({type:"DATA",data:t});}get title(){return this._task.title}report(t){if(t instanceof jpt)for(let r of t.errors)this._errors.push(r);else this._errors.push(t);}skip(t){if(t&&typeof t!="string")throw new TypeError(`Expected \`message\` to be of type \`string\`, got \`${typeof t}\``);t&&(this._task.output=t),this._task.state=Bpt.SKIPPED;}run(t){return this._task.run(t,this)}};lSe.exports=r3;});var hSe=chunkTKGT252T_js.c((brn,fSe)=>{var Upt=kfe(),qpt=uSe(),Vpt=cSe(),pSe=zB(),Hpt=L1(),Gpt=(e,t,r)=>e.isEnabled()?new Vpt(e,r).run(t):Promise.resolve(),n3=class{constructor(t,r){if(t&&!Array.isArray(t)&&typeof t=="object"){if(typeof t.title=="string"&&typeof t.task=="function")throw new TypeError("Expected an array of tasks or an options object, got a task object");r=t,t=[];}if(t&&!Array.isArray(t))throw new TypeError("Expected an array of tasks");this._options=Object.assign({showSubtasks:!0,concurrent:!1,renderer:"default",nonTTYRenderer:"verbose"},r),this._tasks=[],this.concurrency=1,this._options.concurrent===!0?this.concurrency=1/0:typeof this._options.concurrent=="number"&&(this.concurrency=this._options.concurrent),this._RendererClass=pSe.getRenderer(this._options.renderer,this._options.nonTTYRenderer),this.exitOnError=this._options.exitOnError,this.add(t||[]);}_checkAll(t){for(let r of this._tasks)r.check(t);}get tasks(){return this._tasks}setRenderer(t){this._RendererClass=pSe.getRenderer(t);}add(t){let r=Array.isArray(t)?t:[t];for(let n of r)this._tasks.push(new qpt(this,n,this._options));return this}render(){return this._renderer||(this._renderer=new this._RendererClass(this._tasks,this._options)),this._renderer.render()}run(t){this.render(),t=t||Object.create(null);let r=[];return this._checkAll(t),Upt(this._tasks,i=>(this._checkAll(t),Gpt(i,t,r)),{concurrency:this.concurrency}).then(()=>{if(r.length>0){let i=new Hpt("Something went wrong");throw i.errors=r,i}return this._renderer.end(),t}).catch(i=>{throw i.context=t,this._renderer.end(i),i})}};fSe.exports=n3;});var mSe=chunkTKGT252T_js.c((vrn,dSe)=>{function mo(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0));}dSe.exports=mo;mo.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0);};mo.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null;};mo.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return !1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return !1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts);},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts);},r),this._options.unref&&this._timer.unref(),!0};mo.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb();},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts);};mo.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e);};mo.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e);};mo.prototype.start=mo.prototype.try;mo.prototype.errors=function(){return this._errors};mo.prototype.attempts=function(){return this._attempts};mo.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,a=(e[s]||0)+1;e[s]=a,a>=r&&(t=i,r=a);}return t};});var ySe=chunkTKGT252T_js.c(cd=>{var $pt=mSe();cd.operation=function(e){var t=cd.timeouts(e);return new $pt(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};cd.timeouts=function(e){if(e instanceof Array)return [].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,a){return s-a}),n};cd.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};cd.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n);}for(var i=0;i<r.length;i++){var s=r[i],a=e[s];e[s]=function(u){var l=cd.operation(t),c=Array.prototype.slice.call(arguments,1),p=c.pop();c.push(function(h){l.retry(h)||(h&&(arguments[0]=l.mainError()),p.apply(this,arguments));}),l.attempt(function(){u.apply(e,c);});}.bind(e,a),e[s].options=t;}};});var SSe=chunkTKGT252T_js.c((xrn,gSe)=>{gSe.exports=ySe();});var Ug=chunkTKGT252T_js.c((Arn,TSe)=>{var Kpt=SSe();function Ypt(e,t){function r(n,i){var s=t||{},a;"randomize"in s||(s.randomize=!0),a=Kpt.operation(s);function o(c){i(c||new Error("Aborted"));}function u(c,p){if(c.bail){o(c);return}a.retry(c)?s.onRetry&&s.onRetry(c,p):i(a.mainError());}function l(c){var p;try{p=e(o,c);}catch(h){u(h,c);return}Promise.resolve(p).then(n).catch(function(f){u(f,c);});}a.attempt(l);}return new Promise(r)}TSe.exports=Ypt;});var VSe=chunkTKGT252T_js.c(ya=>{var pft=ya&&ya.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i);}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),fft=ya&&ya.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),USe=ya&&ya.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&pft(t,e,r);return fft(t,e),t};Object.defineProperty(ya,"__esModule",{value:!0});ya.req=ya.json=ya.toBuffer=void 0;var hft=USe(chunkTKGT252T_js.a("http")),dft=USe(chunkTKGT252T_js.a("https"));async function qSe(e){let t=0,r=[];for await(let n of e)t+=n.length,r.push(n);return Buffer.concat(r,t)}ya.toBuffer=qSe;async function mft(e){let r=(await qSe(e)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}ya.json=mft;function yft(e,t={}){let n=((typeof e=="string"?e:e.href).startsWith("https:")?dft:hft).request(e,t),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end();});return n.then=i.then.bind(i),n}ya.req=yft;});var KSe=chunkTKGT252T_js.c(Ba=>{var GSe=Ba&&Ba.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i);}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),gft=Ba&&Ba.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),$Se=Ba&&Ba.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&GSe(t,e,r);return gft(t,e),t},Sft=Ba&&Ba.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&GSe(t,e,r);};Object.defineProperty(Ba,"__esModule",{value:!0});Ba.Agent=void 0;var Tft=$Se(chunkTKGT252T_js.a("net")),HSe=$Se(chunkTKGT252T_js.a("http")),Eft=chunkTKGT252T_js.a("https");Sft(VSe(),Ba);var nl=Symbol("AgentBaseInternalState"),c3=class extends HSe.Agent{constructor(t){super(t),this[nl]={};}isSecureEndpoint(t){if(t){if(typeof t.secureEndpoint=="boolean")return t.secureEndpoint;if(typeof t.protocol=="string")return t.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(t){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[t]||(this.sockets[t]=[]);let r=new Tft.Socket({writable:!1});return this.sockets[t].push(r),this.totalSocketCount++,r}decrementSockets(t,r){if(!this.sockets[t]||r===null)return;let n=this.sockets[t],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[t]);}getName(t){return (typeof t.secureEndpoint=="boolean"?t.secureEndpoint:this.isSecureEndpoint(t))?Eft.Agent.prototype.getName.call(this,t):super.getName(t)}createSocket(t,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(t,i)).then(o=>{if(this.decrementSockets(s,a),o instanceof HSe.Agent)return o.addRequest(t,i);this[nl].currentSocket=o,super.createSocket(t,r,n);},o=>{this.decrementSockets(s,a),n(o);});}createConnection(){let t=this[nl].currentSocket;if(this[nl].currentSocket=void 0,!t)throw new Error("No socket was returned in the `connect()` function");return t}get defaultPort(){return this[nl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(t){this[nl]&&(this[nl].defaultPort=t);}get protocol(){return this[nl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(t){this[nl]&&(this[nl].protocol=t);}};Ba.Agent=c3;});var YSe=chunkTKGT252T_js.c($g=>{var bft=$g&&$g.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($g,"__esModule",{value:!0});$g.parseProxyResponse=void 0;var vft=bft(chunkHZVCNUTP_js.D()),G1=(0, vft.default)("https-proxy-agent:parse-proxy-response");function _ft(e){return new Promise((t,r)=>{let n=0,i=[];function s(){let c=e.read();c?l(c):e.once("readable",s);}function a(){e.removeListener("end",o),e.removeListener("error",u),e.removeListener("readable",s);}function o(){a(),G1("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"));}function u(c){a(),G1("onerror %o",c),r(c);}function l(c){i.push(c),n+=c.length;let p=Buffer.concat(i,n),h=p.indexOf(`\r
\r
`);if(h===-1){G1("have not received end of HTTP headers yet..."),s();return}let f=p.slice(0,h).toString("ascii").split(`\r
`),d=f.shift();if(!d)return e.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=d.split(" "),y=+m[1],g=m.slice(2).join(" "),v={};for(let E of f){if(!E)continue;let S=E.indexOf(":");if(S===-1)return e.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${E}"`));let x=E.slice(0,S).toLowerCase(),b=E.slice(S+1).trimStart(),A=v[x];typeof A=="string"?v[x]=[A,b]:Array.isArray(A)?A.push(b):v[x]=b;}G1("got proxy server response: %o %o",d,v),a(),t({connect:{statusCode:y,statusText:g,headers:v},buffered:p});}e.on("error",u),e.on("end",o),s();})}$g.parseProxyResponse=_ft;});var QSe=chunkTKGT252T_js.c(To=>{var xft=To&&To.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i);}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r];}),Aft=To&&To.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),zSe=To&&To.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&xft(t,e,r);return Aft(t,e),t},JSe=To&&To.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(To,"__esModule",{value:!0});To.HttpsProxyAgent=void 0;var ib=zSe(chunkTKGT252T_js.a("net")),WSe=zSe(chunkTKGT252T_js.a("tls")),Pft=JSe(chunkTKGT252T_js.a("assert")),Cft=JSe(chunkHZVCNUTP_js.D()),wft=KSe(),Ift=chunkTKGT252T_js.a("url"),Oft=YSe(),sb=(0, Cft.default)("https-proxy-agent"),$1=class extends wft.Agent{constructor(t,r){super(r),this.options={path:void 0},this.proxy=typeof t=="string"?new Ift.URL(t):t,this.proxyHeaders=(r==null?void 0:r.headers)??{},sb("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?XSe(r,"headers"):null,host:n,port:i};}async connect(t,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(n.protocol==="https:"){sb("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;i=WSe.connect({...this.connectOpts,servername:h&&ib.isIP(h)?void 0:h});}else sb("Creating `net.Socket`: %o",this.connectOpts),i=ib.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=ib.isIPv6(r.host)?`[${r.host}]`:r.host,o=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let h=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`;}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))o+=`${h}: ${s[h]}\r
`;let u=(0, Oft.parseProxyResponse)(i);i.write(`${o}\r
`);let{connect:l,buffered:c}=await u;if(t.emit("proxyConnect",l),this.emit("proxyConnect",l,t),l.statusCode===200){if(t.once("socket",Dft),r.secureEndpoint){sb("Upgrading socket connection to TLS");let h=r.servername||r.host;return WSe.connect({...XSe(r,"host","path","port"),socket:i,servername:ib.isIP(h)?void 0:h})}return i}i.destroy();let p=new ib.Socket({writable:!1});return p.readable=!0,t.once("socket",h=>{sb("Replaying proxy buffer for failed request"),(0, Pft.default)(h.listenerCount("data")>0),h.push(c),h.push(null);}),p}};$1.protocols=["http","https"];To.HttpsProxyAgent=$1;function Dft(e){e.resume();}function XSe(e,...t){let r={},n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}});var eTe=chunkTKGT252T_js.c((Bnn,ZSe)=>{ZSe.exports=function(t,r){if(r=r.split(":")[0],t=+t,!t)return !1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return !1}return t!==0};});var nTe=chunkTKGT252T_js.c(p3=>{var Nft=Object.prototype.hasOwnProperty,Rft;function tTe(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function rTe(e){try{return encodeURIComponent(e)}catch{return null}}function Mft(e){for(var t=/([^=?#&]+)=?([^&]*)/g,r={},n;n=t.exec(e);){var i=tTe(n[1]),s=tTe(n[2]);i===null||s===null||i in r||(r[i]=s);}return r}function Lft(e,t){t=t||"";var r=[],n,i;typeof t!="string"&&(t="?");for(i in e)if(Nft.call(e,i)){if(n=e[i],!n&&(n===null||n===Rft||isNaN(n))&&(n=""),i=rTe(i),n=rTe(n),i===null||n===null)continue;r.push(i+"="+n);}return r.length?t+r.join("&"):""}p3.stringify=Lft;p3.parse=Mft;});var pTe=chunkTKGT252T_js.c((Unn,cTe)=>{var sTe=eTe(),K1=nTe(),kft=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,aTe=/[\n\r\t]/g,Fft=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,oTe=/:\d+$/,Bft=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,jft=/^[a-zA-Z]:/;function h3(e){return (e||"").toString().replace(kft,"")}var f3=[["#","hash"],["?","query"],function(t,r){return il(r.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],iTe={hash:1,query:1};function uTe(e){var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t={};var r=t.location||{};e=e||r;var n={},i=typeof e,s;if(e.protocol==="blob:")n=new sl(unescape(e.pathname),{});else if(i==="string"){n=new sl(e,{});for(s in iTe)delete n[s];}else if(i==="object"){for(s in e)s in iTe||(n[s]=e[s]);n.slashes===void 0&&(n.slashes=Fft.test(e.href));}return n}function il(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function lTe(e,t){e=h3(e),e=e.replace(aTe,""),t=t||{};var r=Bft.exec(e),n=r[1]?r[1].toLowerCase():"",i=!!r[2],s=!!r[3],a=0,o;return i?s?(o=r[2]+r[3]+r[4],a=r[2].length+r[3].length):(o=r[2]+r[4],a=r[2].length):s?(o=r[3]+r[4],a=r[3].length):o=r[4],n==="file:"?a>=2&&(o=o.slice(2)):il(n)?o=r[4]:n?i&&(o=o.slice(2)):a>=2&&il(t.protocol)&&(o=r[4]),{protocol:n,slashes:i||il(n),slashesCount:a,rest:o}}function Uft(e,t){if(e==="")return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,i=r[n-1],s=!1,a=0;n--;)r[n]==="."?r.splice(n,1):r[n]===".."?(r.splice(n,1),a++):a&&(n===0&&(s=!0),r.splice(n,1),a--);return s&&r.unshift(""),(i==="."||i==="..")&&r.push(""),r.join("/")}function sl(e,t,r){if(e=h3(e),e=e.replace(aTe,""),!(this instanceof sl))return new sl(e,t,r);var n,i,s,a,o,u,l=f3.slice(),c=typeof t,p=this,h=0;for(c!=="object"&&c!=="string"&&(r=t,t=null),r&&typeof r!="function"&&(r=K1.parse),t=uTe(t),i=lTe(e||"",t),n=!i.protocol&&!i.slashes,p.slashes=i.slashes||n&&t.slashes,p.protocol=i.protocol||t.protocol||"",e=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||jft.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!il(p.protocol)))&&(l[3]=[/(.*)/,"pathname"]);h<l.length;h++){if(a=l[h],typeof a=="function"){e=a(e,p);continue}s=a[0],u=a[1],s!==s?p[u]=e:typeof s=="string"?(o=s==="@"?e.lastIndexOf(s):e.indexOf(s),~o&&(typeof a[2]=="number"?(p[u]=e.slice(0,o),e=e.slice(o+a[2])):(p[u]=e.slice(o),e=e.slice(0,o)))):(o=s.exec(e))&&(p[u]=o[1],e=e.slice(0,o.index)),p[u]=p[u]||n&&a[3]&&t[u]||"",a[4]&&(p[u]=p[u].toLowerCase());}r&&(p.query=r(p.query)),n&&t.slashes&&p.pathname.charAt(0)!=="/"&&(p.pathname!==""||t.pathname!=="")&&(p.pathname=Uft(p.pathname,t.pathname)),p.pathname.charAt(0)!=="/"&&il(p.protocol)&&(p.pathname="/"+p.pathname),sTe(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(o=p.auth.indexOf(":"),~o?(p.username=p.auth.slice(0,o),p.username=encodeURIComponent(decodeURIComponent(p.username)),p.password=p.auth.slice(o+1),p.password=encodeURIComponent(decodeURIComponent(p.password))):p.username=encodeURIComponent(decodeURIComponent(p.auth)),p.auth=p.password?p.username+":"+p.password:p.username),p.origin=p.protocol!=="file:"&&il(p.protocol)&&p.host?p.protocol+"//"+p.host:"null",p.href=p.toString();}function qft(e,t,r){var n=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(r||K1.parse)(t)),n[e]=t;break;case"port":n[e]=t,sTe(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,oTe.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var i=e==="pathname"?"/":"#";n[e]=t.charAt(0)!==i?i+t:t;}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(n.username=t.slice(0,s),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(s+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t));}for(var a=0;a<f3.length;a++){var o=f3[a];o[4]&&(n[o[1]]=n[o[1]].toLowerCase());}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin=n.protocol!=="file:"&&il(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n}function Vft(e){(!e||typeof e!="function")&&(e=K1.stringify);var t,r=this,n=r.host,i=r.protocol;i&&i.charAt(i.length-1)!==":"&&(i+=":");var s=i+(r.protocol&&r.slashes||il(r.protocol)?"//":"");return r.username?(s+=r.username,r.password&&(s+=":"+r.password),s+="@"):r.password?(s+=":"+r.password,s+="@"):r.protocol!=="file:"&&il(r.protocol)&&!n&&r.pathname!=="/"&&(s+="@"),(n[n.length-1]===":"||oTe.test(r.hostname)&&!r.port)&&(n+=":"),s+=n+r.pathname,t=typeof r.query=="object"?e(r.query):r.query,t&&(s+=t.charAt(0)!=="?"?"?"+t:t),r.hash&&(s+=r.hash),s}sl.prototype={set:qft,toString:Vft};sl.extractProtocol=lTe;sl.location=uTe;sl.trimLeft=h3;sl.qs=K1;cTe.exports=sl;});var hTe=chunkTKGT252T_js.c((qnn,fTe)=>{fTe.exports=function(){try{return global.URL?global.URL:chunkTKGT252T_js.a("url").URL}catch{return pTe()}}();});var yTe=chunkTKGT252T_js.c((Vnn,mTe)=>{function dTe(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t);}dTe.prototype.match=function(e){var t=!0,r=this.parts,n,i=r.length,s;if(typeof e=="string"||e instanceof String)if(!this.hasWild&&this.text!=e)t=!1;else {for(s=(e||"").split(this.separator),n=0;t&&n<i;n++)r[n]!=="*"&&(n<s.length?t=r[n]===s[n]:t=!1);t=t&&s;}else if(typeof e.splice=="function")for(t=[],n=e.length;n--;)this.match(e[n])&&(t[t.length]=e[n]);else if(typeof e=="object"){t={};for(var a in e)this.match(a)&&(t[a]=e[a]);}return t};mTe.exports=function(e,t,r){var n=new dTe(e,r||/[\/\.]/);return typeof t<"u"?n.match(t):n};});var STe=chunkTKGT252T_js.c((Hnn,gTe)=>{var d3=void 0;function Hft(){var e=(process.env.NO_PROXY||"").split(",").map(function(t){return t.trim().toLowerCase().replace(/\.$/,".*").replace(/^\./,"*.")}).reduce(function(t,r){return t.push(r),/^\*\./.test(r)&&t.push(r.substr(2)),t},[]).filter(function(t){return t});d3=e.length?e:[];}gTe.exports=function(){return d3===void 0&&Hft(),d3};});var ETe=chunkTKGT252T_js.c((Gnn,TTe)=>{var Gft=yTe(),$ft=STe();TTe.exports=function(t){var r=String(t||"").toLowerCase();return !!$ft().filter(function(n){return Gft(n,r)}).length};});var vTe=chunkTKGT252T_js.c(($nn,bTe)=>{var Kft=hTe(),Yft=ETe();bTe.exports=function(t){var r=new Kft(t);return Yft(r.host)};});var OTe=chunkTKGT252T_js.c((sin,ITe)=>{ITe.exports=function(e){try{return e()}catch{}};});var FTe=chunkTKGT252T_js.c((ain,kTe)=>{kTe.exports=LTe;LTe.sync=Qft;var g3=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",DTe=chunkTKGT252T_js.a("path"),Jft=g3?";":":",NTe=chunkF6FLWRPJ_js.b();function RTe(e){var t=new Error("not found: "+e);return t.code="ENOENT",t}function MTe(e,t){var r=t.colon||Jft,n=t.path||process.env.PATH||"",i=[""];n=n.split(r);var s="";return g3&&(n.unshift(process.cwd()),s=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM",i=s.split(r),e.indexOf(".")!==-1&&i[0]!==""&&i.unshift("")),(e.match(/\//)||g3&&e.match(/\\/))&&(n=[""]),{env:n,ext:i,extExe:s}}function LTe(e,t,r){typeof t=="function"&&(r=t,t={});var n=MTe(e,t),i=n.env,s=n.ext,a=n.extExe,o=[];(function u(l,c){if(l===c)return t.all&&o.length?r(null,o):r(RTe(e));var p=i[l];p.charAt(0)==='"'&&p.slice(-1)==='"'&&(p=p.slice(1,-1));var h=DTe.join(p,e);!p&&/^\.[\\\/]/.test(e)&&(h=e.slice(0,2)+h),function f(d,m){if(d===m)return u(l+1,c);var y=s[d];NTe(h+y,{pathExt:a},function(g,v){if(!g&&v)if(t.all)o.push(h+y);else return r(null,h+y);return f(d+1,m)});}(0,s.length);})(0,i.length);}function Qft(e,t){t=t||{};for(var r=MTe(e,t),n=r.env,i=r.ext,s=r.extExe,a=[],o=0,u=n.length;o<u;o++){var l=n[o];l.charAt(0)==='"'&&l.slice(-1)==='"'&&(l=l.slice(1,-1));var c=DTe.join(l,e);!l&&/^\.[\\\/]/.test(e)&&(c=e.slice(0,2)+c);for(var p=0,h=i.length;p<h;p++){var f=c+i[p],d;try{if(d=NTe.sync(f,{pathExt:s}),d)if(t.all)a.push(f);else return f}catch{}}}if(t.all&&a.length)return a;if(t.nothrow)return null;throw RTe(e)}});var jTe=chunkTKGT252T_js.c((oin,BTe)=>{BTe.exports=e=>{e=e||{};let t=e.env||process.env;return (e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).find(n=>n.toUpperCase()==="PATH")||"Path"};});var HTe=chunkTKGT252T_js.c((uin,VTe)=>{var UTe=chunkTKGT252T_js.a("path"),Zft=FTe(),eht=jTe()();function qTe(e,t){let r=process.cwd(),n=e.options.cwd!=null;if(n)try{process.chdir(e.options.cwd);}catch{}let i;try{i=Zft.sync(e.command,{path:(e.options.env||process.env)[eht],pathExt:t?UTe.delimiter:void 0});}catch{}finally{process.chdir(r);}return i&&(i=UTe.resolve(n?e.options.cwd:"",i)),i}function tht(e){return qTe(e)||qTe(e,!0)}VTe.exports=tht;});var GTe=chunkTKGT252T_js.c((lin,T3)=>{var S3=/([()\][%!^"`<>&|;, *?])/g;function rht(e){return e=e.replace(S3,"^$1"),e}function nht(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(S3,"^$1"),t&&(e=e.replace(S3,"^$1")),e}T3.exports.command=rht;T3.exports.argument=nht;});var KTe=chunkTKGT252T_js.c((cin,$Te)=>{$Te.exports=/^#!.*/;});var WTe=chunkTKGT252T_js.c((pin,YTe)=>{var iht=KTe();YTe.exports=function(e){var t=e.match(iht);if(!t)return null;var r=t[0].replace(/#! ?/,"").split(" "),n=r[0].split("/").pop(),i=r[1];return n==="env"?i:n+(i?" "+i:"")};});var zTe=chunkTKGT252T_js.c((fin,XTe)=>{var E3=chunkTKGT252T_js.a("fs"),sht=WTe();function aht(e){let r;Buffer.alloc?r=Buffer.alloc(150):(r=new Buffer(150),r.fill(0));let n;try{n=E3.openSync(e,"r"),E3.readSync(n,r,0,150,0),E3.closeSync(n);}catch{}return sht(r.toString())}XTe.exports=aht;});var hEe=chunkTKGT252T_js.c((Ft,fEe)=>{Ft=fEe.exports=Tr;var rn;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?rn=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:rn=function(){};Ft.SEMVER_SPEC_VERSION="2.0.0";var ob=256,Y1=Number.MAX_SAFE_INTEGER||9007199254740991,b3=16,oht=ob-6,ub=Ft.re=[],Tn=Ft.safeRe=[],Ae=Ft.src=[],dr=0,P3="[a-zA-Z0-9-]",v3=[["\\s",1],["\\d",ob],[P3,oht]];function Z1(e){for(var t=0;t<v3.length;t++){var r=v3[t][0],n=v3[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}");}return e}var Kg=dr++;Ae[Kg]="0|[1-9]\\d*";var Yg=dr++;Ae[Yg]="\\d+";var C3=dr++;Ae[C3]="\\d*[a-zA-Z-]"+P3+"*";var QTe=dr++;Ae[QTe]="("+Ae[Kg]+")\\.("+Ae[Kg]+")\\.("+Ae[Kg]+")";var ZTe=dr++;Ae[ZTe]="("+Ae[Yg]+")\\.("+Ae[Yg]+")\\.("+Ae[Yg]+")";var _3=dr++;Ae[_3]="(?:"+Ae[Kg]+"|"+Ae[C3]+")";var x3=dr++;Ae[x3]="(?:"+Ae[Yg]+"|"+Ae[C3]+")";var w3=dr++;Ae[w3]="(?:-("+Ae[_3]+"(?:\\."+Ae[_3]+")*))";var I3=dr++;Ae[I3]="(?:-?("+Ae[x3]+"(?:\\."+Ae[x3]+")*))";var A3=dr++;Ae[A3]=P3+"+";var cb=dr++;Ae[cb]="(?:\\+("+Ae[A3]+"(?:\\."+Ae[A3]+")*))";var O3=dr++,eEe="v?"+Ae[QTe]+Ae[w3]+"?"+Ae[cb]+"?";Ae[O3]="^"+eEe+"$";var D3="[v=\\s]*"+Ae[ZTe]+Ae[I3]+"?"+Ae[cb]+"?",N3=dr++;Ae[N3]="^"+D3+"$";var Qg=dr++;Ae[Qg]="((?:<|>)?=?)";var W1=dr++;Ae[W1]=Ae[Yg]+"|x|X|\\*";var X1=dr++;Ae[X1]=Ae[Kg]+"|x|X|\\*";var hd=dr++;Ae[hd]="[v=\\s]*("+Ae[X1]+")(?:\\.("+Ae[X1]+")(?:\\.("+Ae[X1]+")(?:"+Ae[w3]+")?"+Ae[cb]+"?)?)?";var Xg=dr++;Ae[Xg]="[v=\\s]*("+Ae[W1]+")(?:\\.("+Ae[W1]+")(?:\\.("+Ae[W1]+")(?:"+Ae[I3]+")?"+Ae[cb]+"?)?)?";var tEe=dr++;Ae[tEe]="^"+Ae[Qg]+"\\s*"+Ae[hd]+"$";var rEe=dr++;Ae[rEe]="^"+Ae[Qg]+"\\s*"+Ae[Xg]+"$";var nEe=dr++;Ae[nEe]="(?:^|[^\\d])(\\d{1,"+b3+"})(?:\\.(\\d{1,"+b3+"}))?(?:\\.(\\d{1,"+b3+"}))?(?:$|[^\\d])";var ew=dr++;Ae[ew]="(?:~>?)";var zg=dr++;Ae[zg]="(\\s*)"+Ae[ew]+"\\s+";ub[zg]=new RegExp(Ae[zg],"g");Tn[zg]=new RegExp(Z1(Ae[zg]),"g");var uht="$1~",iEe=dr++;Ae[iEe]="^"+Ae[ew]+Ae[hd]+"$";var sEe=dr++;Ae[sEe]="^"+Ae[ew]+Ae[Xg]+"$";var tw=dr++;Ae[tw]="(?:\\^)";var Jg=dr++;Ae[Jg]="(\\s*)"+Ae[tw]+"\\s+";ub[Jg]=new RegExp(Ae[Jg],"g");Tn[Jg]=new RegExp(Z1(Ae[Jg]),"g");var lht="$1^",aEe=dr++;Ae[aEe]="^"+Ae[tw]+Ae[hd]+"$";var oEe=dr++;Ae[oEe]="^"+Ae[tw]+Ae[Xg]+"$";var R3=dr++;Ae[R3]="^"+Ae[Qg]+"\\s*("+D3+")$|^$";var M3=dr++;Ae[M3]="^"+Ae[Qg]+"\\s*("+eEe+")$|^$";var dd=dr++;Ae[dd]="(\\s*)"+Ae[Qg]+"\\s*("+D3+"|"+Ae[hd]+")";ub[dd]=new RegExp(Ae[dd],"g");Tn[dd]=new RegExp(Z1(Ae[dd]),"g");var cht="$1$2$3",uEe=dr++;Ae[uEe]="^\\s*("+Ae[hd]+")\\s+-\\s+("+Ae[hd]+")\\s*$";var lEe=dr++;Ae[lEe]="^\\s*("+Ae[Xg]+")\\s+-\\s+("+Ae[Xg]+")\\s*$";var cEe=dr++;Ae[cEe]="(<|>)?=?\\s*\\*";for(al=0;al<dr;al++)rn(al,Ae[al]),ub[al]||(ub[al]=new RegExp(Ae[al]),Tn[al]=new RegExp(Z1(Ae[al])));var al;Ft.parse=md;function md(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Tr)return e;if(typeof e!="string"||e.length>ob)return null;var r=t.loose?Tn[N3]:Tn[O3];if(!r.test(e))return null;try{return new Tr(e,t)}catch{return null}}Ft.valid=pht;function pht(e,t){var r=md(e,t);return r?r.version:null}Ft.clean=fht;function fht(e,t){var r=md(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}Ft.SemVer=Tr;function Tr(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Tr){if(e.loose===t.loose)return e;e=e.version;}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>ob)throw new TypeError("version is longer than "+ob+" characters");if(!(this instanceof Tr))return new Tr(e,t);rn("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?Tn[N3]:Tn[O3]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Y1||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Y1||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Y1||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(n){if(/^[0-9]+$/.test(n)){var i=+n;if(i>=0&&i<Y1)return i}return n}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format();}Tr.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version};Tr.prototype.toString=function(){return this.version};Tr.prototype.compare=function(e){return rn("SemVer.compare",this.version,this.options,e),e instanceof Tr||(e=new Tr(e,this.options)),this.compareMain(e)||this.comparePre(e)};Tr.prototype.compareMain=function(e){return e instanceof Tr||(e=new Tr(e,this.options)),Wg(this.major,e.major)||Wg(this.minor,e.minor)||Wg(this.patch,e.patch)};Tr.prototype.comparePre=function(e){if(e instanceof Tr||(e=new Tr(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(rn("prerelease compare",t,r,n),r===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(r===void 0)return -1;if(r===n)continue;return Wg(r,n)}while(++t)};Tr.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else {for(var r=this.prerelease.length;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this};Ft.inc=hht;function hht(e,t,r,n){typeof r=="string"&&(n=r,r=void 0);try{return new Tr(e,r).inc(t,n).version}catch{return null}}Ft.diff=dht;function dht(e,t){if(L3(e,t))return null;var r=md(e),n=md(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease";}for(var a in r)if((a==="major"||a==="minor"||a==="patch")&&r[a]!==n[a])return i+a;return s}Ft.compareIdentifiers=Wg;var JTe=/^[0-9]+$/;function Wg(e,t){var r=JTe.test(e),n=JTe.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}Ft.rcompareIdentifiers=mht;function mht(e,t){return Wg(t,e)}Ft.major=yht;function yht(e,t){return new Tr(e,t).major}Ft.minor=ght;function ght(e,t){return new Tr(e,t).minor}Ft.patch=Sht;function Sht(e,t){return new Tr(e,t).patch}Ft.compare=hc;function hc(e,t,r){return new Tr(e,r).compare(new Tr(t,r))}Ft.compareLoose=Tht;function Tht(e,t){return hc(e,t,!0)}Ft.rcompare=Eht;function Eht(e,t,r){return hc(t,e,r)}Ft.sort=bht;function bht(e,t){return e.sort(function(r,n){return Ft.compare(r,n,t)})}Ft.rsort=vht;function vht(e,t){return e.sort(function(r,n){return Ft.rcompare(r,n,t)})}Ft.gt=lb;function lb(e,t,r){return hc(e,t,r)>0}Ft.lt=z1;function z1(e,t,r){return hc(e,t,r)<0}Ft.eq=L3;function L3(e,t,r){return hc(e,t,r)===0}Ft.neq=pEe;function pEe(e,t,r){return hc(e,t,r)!==0}Ft.gte=k3;function k3(e,t,r){return hc(e,t,r)>=0}Ft.lte=F3;function F3(e,t,r){return hc(e,t,r)<=0}Ft.cmp=J1;function J1(e,t,r,n){switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return L3(e,r,n);case"!=":return pEe(e,r,n);case">":return lb(e,r,n);case">=":return k3(e,r,n);case"<":return z1(e,r,n);case"<=":return F3(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}Ft.Comparator=Eo;function Eo(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Eo){if(e.loose===!!t.loose)return e;e=e.value;}if(!(this instanceof Eo))return new Eo(e,t);e=e.trim().split(/\s+/).join(" "),rn("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===pb?this.value="":this.value=this.operator+this.semver.version,rn("comp",this);}var pb={};Eo.prototype.parse=function(e){var t=this.options.loose?Tn[R3]:Tn[M3],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],this.operator==="="&&(this.operator=""),r[2]?this.semver=new Tr(r[2],this.options.loose):this.semver=pb;};Eo.prototype.toString=function(){return this.value};Eo.prototype.test=function(e){return rn("Comparator.test",e,this.options.loose),this.semver===pb?!0:(typeof e=="string"&&(e=new Tr(e,this.options)),J1(e,this.operator,this.semver,this.options))};Eo.prototype.intersects=function(e,t){if(!(e instanceof Eo))throw new TypeError("a Comparator is required");(!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1});var r;if(this.operator==="")return r=new Vn(e.value,t),Q1(this.value,r,t);if(e.operator==="")return r=new Vn(this.value,t),Q1(e.semver,r,t);var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=J1(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),u=J1(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||s&&a||o||u};Ft.Range=Vn;function Vn(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Vn)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Vn(e.raw,t);if(e instanceof Eo)return new Vn(e.value,t);if(!(this instanceof Vn))return new Vn(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(r){return this.parseRange(r.trim())},this).filter(function(r){return r.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format();}Vn.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range};Vn.prototype.toString=function(){return this.range};Vn.prototype.parseRange=function(e){var t=this.options.loose,r=t?Tn[lEe]:Tn[uEe];e=e.replace(r,Nht),rn("hyphen replace",e),e=e.replace(Tn[dd],cht),rn("comparator trim",e,Tn[dd]),e=e.replace(Tn[zg],uht),e=e.replace(Tn[Jg],lht);var n=t?Tn[R3]:Tn[M3],i=e.split(" ").map(function(s){return xht(s,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(s){return !!s.match(n)})),i=i.map(function(s){return new Eo(s,this.options)},this),i};Vn.prototype.intersects=function(e,t){if(!(e instanceof Vn))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(n){return e.set.some(function(i){return i.every(function(s){return n.intersects(s,t)})})})})};Ft.toComparators=_ht;function _ht(e,t){return new Vn(e,t).set.map(function(r){return r.map(function(n){return n.value}).join(" ").trim().split(" ")})}function xht(e,t){return rn("comp",e,t),e=Cht(e,t),rn("caret",e),e=Aht(e,t),rn("tildes",e),e=Iht(e,t),rn("xrange",e),e=Dht(e,t),rn("stars",e),e}function Rs(e){return !e||e.toLowerCase()==="x"||e==="*"}function Aht(e,t){return e.trim().split(/\s+/).map(function(r){return Pht(r,t)}).join(" ")}function Pht(e,t){var r=t.loose?Tn[sEe]:Tn[iEe];return e.replace(r,function(n,i,s,a,o){rn("tilde",e,n,i,s,a,o);var u;return Rs(i)?u="":Rs(s)?u=">="+i+".0.0 <"+(+i+1)+".0.0":Rs(a)?u=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":o?(rn("replaceTilde pr",o),u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+(+s+1)+".0"):u=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0",rn("tilde return",u),u})}function Cht(e,t){return e.trim().split(/\s+/).map(function(r){return wht(r,t)}).join(" ")}function wht(e,t){rn("caret",e,t);var r=t.loose?Tn[oEe]:Tn[aEe];return e.replace(r,function(n,i,s,a,o){rn("caret",e,n,i,s,a,o);var u;return Rs(i)?u="":Rs(s)?u=">="+i+".0.0 <"+(+i+1)+".0.0":Rs(a)?i==="0"?u=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+".0 <"+(+i+1)+".0.0":o?(rn("replaceCaret pr",o),i==="0"?s==="0"?u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+s+"."+(+a+1):u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+"."+a+"-"+o+" <"+(+i+1)+".0.0"):(rn("no pr"),i==="0"?s==="0"?u=">="+i+"."+s+"."+a+" <"+i+"."+s+"."+(+a+1):u=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+"."+a+" <"+(+i+1)+".0.0"),rn("caret return",u),u})}function Iht(e,t){return rn("replaceXRanges",e,t),e.split(/\s+/).map(function(r){return Oht(r,t)}).join(" ")}function Oht(e,t){e=e.trim();var r=t.loose?Tn[rEe]:Tn[tEe];return e.replace(r,function(n,i,s,a,o,u){rn("xRange",e,n,i,s,a,o,u);var l=Rs(s),c=l||Rs(a),p=c||Rs(o),h=p;return i==="="&&h&&(i=""),l?i===">"||i==="<"?n="<0.0.0":n="*":i&&h?(c&&(a=0),o=0,i===">"?(i=">=",c?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):i==="<="&&(i="<",c?s=+s+1:a=+a+1),n=i+s+"."+a+"."+o):c?n=">="+s+".0.0 <"+(+s+1)+".0.0":p&&(n=">="+s+"."+a+".0 <"+s+"."+(+a+1)+".0"),rn("xRange return",n),n})}function Dht(e,t){return rn("replaceStars",e,t),e.trim().replace(Tn[cEe],"")}function Nht(e,t,r,n,i,s,a,o,u,l,c,p,h){return Rs(r)?t="":Rs(n)?t=">="+r+".0.0":Rs(i)?t=">="+r+"."+n+".0":t=">="+t,Rs(u)?o="":Rs(l)?o="<"+(+u+1)+".0.0":Rs(c)?o="<"+u+"."+(+l+1)+".0":p?o="<="+u+"."+l+"."+c+"-"+p:o="<="+o,(t+" "+o).trim()}Vn.prototype.test=function(e){if(!e)return !1;typeof e=="string"&&(e=new Tr(e,this.options));for(var t=0;t<this.set.length;t++)if(Rht(this.set[t],e,this.options))return !0;return !1};function Rht(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return !1;if(t.prerelease.length&&!r.includePrerelease){for(n=0;n<e.length;n++)if(rn(e[n].semver),e[n].semver!==pb&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return !0}return !1}return !0}Ft.satisfies=Q1;function Q1(e,t,r){try{t=new Vn(t,r);}catch{return !1}return t.test(e)}Ft.maxSatisfying=Mht;function Mht(e,t,r){var n=null,i=null;try{var s=new Vn(t,r);}catch{return null}return e.forEach(function(a){s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new Tr(n,r));}),n}Ft.minSatisfying=Lht;function Lht(e,t,r){var n=null,i=null;try{var s=new Vn(t,r);}catch{return null}return e.forEach(function(a){s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new Tr(n,r));}),n}Ft.minVersion=kht;function kht(e,t){e=new Vn(e,t);var r=new Tr("0.0.0");if(e.test(r)||(r=new Tr("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach(function(s){var a=new Tr(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!r||lb(r,a))&&(r=a);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+s.operator)}});}return r&&e.test(r)?r:null}Ft.validRange=Fht;function Fht(e,t){try{return new Vn(e,t).range||"*"}catch{return null}}Ft.ltr=Bht;function Bht(e,t,r){return B3(e,t,"<",r)}Ft.gtr=jht;function jht(e,t,r){return B3(e,t,">",r)}Ft.outside=B3;function B3(e,t,r,n){e=new Tr(e,n),t=new Vn(t,n);var i,s,a,o,u;switch(r){case">":i=lb,s=F3,a=z1,o=">",u=">=";break;case"<":i=z1,s=k3,a=lb,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Q1(e,t,n))return !1;for(var l=0;l<t.set.length;++l){var c=t.set[l],p=null,h=null;if(c.forEach(function(f){f.semver===pb&&(f=new Eo(">=0.0.0")),p=p||f,h=h||f,i(f.semver,p.semver,n)?p=f:a(f.semver,h.semver,n)&&(h=f);}),p.operator===o||p.operator===u||(!h.operator||h.operator===o)&&s(e,h.semver))return !1;if(h.operator===u&&a(e,h.semver))return !1}return !0}Ft.prerelease=Uht;function Uht(e,t){var r=md(e,t);return r&&r.prerelease.length?r.prerelease:null}Ft.intersects=qht;function qht(e,t,r){return e=new Vn(e,r),t=new Vn(t,r),e.intersects(t)}Ft.coerce=Vht;function Vht(e){if(e instanceof Tr)return e;if(typeof e!="string")return null;var t=e.match(Tn[nEe]);return t==null?null:md(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}});var SEe=chunkTKGT252T_js.c((hin,gEe)=>{var Hht=chunkTKGT252T_js.a("path"),Ght=OTe(),dEe=HTe(),mEe=GTe(),$ht=zTe(),Kht=hEe(),yEe=process.platform==="win32",Yht=/\.(?:com|exe)$/i,Wht=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i,Xht=Ght(()=>Kht.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",!0))||!1;function zht(e){e.file=dEe(e);let t=e.file&&$ht(e.file);return t?(e.args.unshift(e.file),e.command=t,dEe(e)):e.file}function Jht(e){if(!yEe)return e;let t=zht(e),r=!Yht.test(t);if(e.options.forceShell||r){let n=Wht.test(t);e.command=Hht.normalize(e.command),e.command=mEe.command(e.command),e.args=e.args.map(s=>mEe.argument(s,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e}function Qht(e){if(Xht)return e;let t=[e.command].concat(e.args).join(" ");return yEe?(e.command=typeof e.options.shell=="string"?e.options.shell:process.env.comspec||"cmd.exe",e.args=["/d","/s","/c",`"${t}"`],e.options.windowsVerbatimArguments=!0):(typeof e.options.shell=="string"?e.command=e.options.shell:process.platform==="android"?e.command="/system/bin/sh":e.command="/bin/sh",e.args=["-c",t]),e}function Zht(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?Qht(n):Jht(n)}gEe.exports=Zht;});var bEe=chunkTKGT252T_js.c((din,EEe)=>{var j3=process.platform==="win32";function U3(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function edt(e,t){if(!j3)return;let r=e.emit;e.emit=function(n,i){if(n==="exit"){let s=TEe(i,t);if(s)return r.call(e,"error",s)}return r.apply(e,arguments)};}function TEe(e,t){return j3&&e===1&&!t.file?U3(t.original,"spawn"):null}function tdt(e,t){return j3&&e===1&&!t.file?U3(t.original,"spawnSync"):null}EEe.exports={hookChildProcess:edt,verifyENOENT:TEe,verifyENOENTSync:tdt,notFoundError:U3};});var xEe=chunkTKGT252T_js.c((min,Zg)=>{var vEe=chunkTKGT252T_js.a("child_process"),q3=SEe(),V3=bEe();function _Ee(e,t,r){let n=q3(e,t,r),i=vEe.spawn(n.command,n.args,n.options);return V3.hookChildProcess(i,n),i}function rdt(e,t,r){let n=q3(e,t,r),i=vEe.spawnSync(n.command,n.args,n.options);return i.error=i.error||V3.verifyENOENTSync(i.status,n),i}Zg.exports=_Ee;Zg.exports.spawn=_Ee;Zg.exports.sync=rdt;Zg.exports._parse=q3;Zg.exports._enoent=V3;});var PEe=chunkTKGT252T_js.c((yin,H3)=>{var AEe=(e,...t)=>new Promise(r=>{r(e(...t));});H3.exports=AEe;H3.exports.default=AEe;});var wEe=chunkTKGT252T_js.c((gin,G3)=>{var ndt=PEe(),CEe=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()();},i=(o,u,...l)=>{r++;let c=ndt(o,...l);u(c),c.then(n,n);},s=(o,u,...l)=>{r<e?i(o,u,...l):t.push(i.bind(null,o,u,...l));},a=(o,...u)=>new Promise(l=>s(o,l,...u));return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0;}}}),a};G3.exports=CEe;G3.exports.default=CEe;});var DEe=chunkTKGT252T_js.c((Sin,$3)=>{var IEe=wEe(),rw=class extends Error{constructor(t){super(),this.value=t;}},idt=async(e,t)=>t(await e),sdt=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new rw(t[0]);return !1},OEe=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=IEe(r.concurrency),i=[...e].map(a=>[a,n(idt,a,t)]),s=IEe(r.preserveOrder?1:1/0);try{await Promise.all(i.map(a=>s(sdt,a)));}catch(a){if(a instanceof rw)return a.value;throw a}};$3.exports=OEe;$3.exports.default=OEe;});var FEe=chunkTKGT252T_js.c((Tin,K3)=>{var NEe=chunkTKGT252T_js.a("path"),nw=chunkTKGT252T_js.a("fs"),{promisify:REe}=chunkTKGT252T_js.a("util"),adt=DEe(),odt=REe(nw.stat),udt=REe(nw.lstat),MEe={directory:"isDirectory",file:"isFile"};function LEe({type:e}){if(!(e in MEe))throw new Error(`Invalid type specified: ${e}`)}var kEe=(e,t)=>e===void 0||t[MEe[e]]();K3.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},LEe(t);let r=t.allowSymlinks?odt:udt;return adt(e,async n=>{try{let i=await r(NEe.resolve(t.cwd,n));return kEe(t.type,i)}catch{return !1}},t)};K3.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},LEe(t);let r=t.allowSymlinks?nw.statSync:nw.lstatSync;for(let n of e)try{let i=r(NEe.resolve(t.cwd,n));if(kEe(t.type,i))return n}catch{}};});var jEe=chunkTKGT252T_js.c((Ein,Y3)=>{var BEe=chunkTKGT252T_js.a("fs"),{promisify:ldt}=chunkTKGT252T_js.a("util"),cdt=ldt(BEe.access);Y3.exports=async e=>{try{return await cdt(e),!0}catch{return !1}};Y3.exports.sync=e=>{try{return BEe.accessSync(e),!0}catch{return !1}};});var qEe=chunkTKGT252T_js.c((bin,eS)=>{var Af=chunkTKGT252T_js.a("path"),iw=FEe(),UEe=jEe(),W3=Symbol("findUp.stop");eS.exports=async(e,t={})=>{let r=Af.resolve(t.cwd||""),{root:n}=Af.parse(r),i=[].concat(e),s=async a=>{if(typeof e!="function")return iw(i,a);let o=await e(a.cwd);return typeof o=="string"?iw([o],a):o};for(;;){let a=await s({...t,cwd:r});if(a===W3)return;if(a)return Af.resolve(r,a);if(r===n)return;r=Af.dirname(r);}};eS.exports.sync=(e,t={})=>{let r=Af.resolve(t.cwd||""),{root:n}=Af.parse(r),i=[].concat(e),s=a=>{if(typeof e!="function")return iw.sync(i,a);let o=e(a.cwd);return typeof o=="string"?iw.sync([o],a):o};for(;;){let a=s({...t,cwd:r});if(a===W3)return;if(a)return Af.resolve(r,a);if(r===n)return;r=Af.dirname(r);}};eS.exports.exists=UEe;eS.exports.sync.exists=UEe.sync;eS.exports.stop=W3;});var $Ee=chunkTKGT252T_js.c((vin,sw)=>{var VEe=chunkTKGT252T_js.a("path"),HEe=qEe(),GEe=async e=>{let t=await HEe("package.json",{cwd:e});return t&&VEe.dirname(t)};sw.exports=GEe;sw.exports.default=GEe;sw.exports.sync=e=>{let t=HEe.sync("package.json",{cwd:e});return t&&VEe.dirname(t)};});var ow=chunkTKGT252T_js.c((_in,XEe)=>{var KEe=chunkTKGT252T_js.a("fs"),YEe=chunkTKGT252T_js.a("path"),aw=xEe(),pdt=$Ee(),tS,rS,yd;function fdt(){tS=void 0,rS=void 0,yd=void 0;}function WEe(){if(tS!==void 0)return tS;try{let e=aw.sync("yarn",["--version"]);tS=!!(e.stdout&&e.stdout.toString().trim());}catch{tS=!1;}return tS}function hdt(){if(rS!==void 0)return rS;try{let e=aw.sync("npm",["--version"]);rS=!!(e.stdout&&e.stdout.toString().trim());}catch{rS=!1;}return rS}function Pf(){if(yd!==void 0)return yd;let e=pdt.sync();if(e){let t=YEe.join(e,"package-lock.json"),r=YEe.join(e,"yarn.lock");try{return KEe.statSync(r),yd="yarn",yd}catch{}try{return KEe.statSync(t),yd="npm",yd}catch{}}return WEe()?"yarn":"npm"}function ddt(...e){return e.unshift(Pf()),aw(...e)}function mdt(...e){return e.unshift(Pf()),aw.sync(...e)}Pf.hasYarn=WEe;Pf.hasNpm=hdt;Pf.spawn=ddt;Pf.spawn.sync=mdt;Pf.clearCache=fdt;XEe.exports=Pf;});var s0e=chunkTKGT252T_js.c((Oin,i0e)=>{var nS=process.stdin,t0e=process.stdout,Tdt={prompt:bdt,confirm:vdt,multiline:_dt};function Edt(e){let t={},r=0;return new Promise(function(n,i){function s(o){let u=o.key,l=o.msg,c=Tdt[o.fn];if(!u)throw new Error("A value for `key` must be defined for question "+r);if(!l)throw new Error("A value for `msg` must be defined for question "+r);if(!c)throw new Error('A value for `fn` must be "prompt", "confirm", or "multiline" for question '+r);c&&c(l,u,t).then(function(){a();});}function a(){if(r<e.length){var o=e[r];r++,s(o);}else n(t);}a();})}function uw(e,t){return new Promise(function(r){if(t0e.write(e),nS.setEncoding("utf8"),t){let n=[];t0e.write(`
`),nS.on("data",function(i){i==`
`||i==`\r
`?(nS.pause(),nS.removeAllListeners("data"),r(n.join(`
`)),n=null):n.push(i.slice(0,-1));}).resume();}else nS.once("data",function(n){nS.pause(),r(n.slice(0,-1));}).resume();})}function r0e(e){return uw(e,!1).then(function(t){return /^y|yes|ok|true$/i.test(t)})}function n0e(e){return uw(e,!0)}function J3(e,t,r,n){return r=r||{},n(e).then(function(i){return r[t]=i,r})}function bdt(e,t,r){return J3(e,t,r,uw)}function vdt(e,t,r){return J3(e,t,r,r0e)}function _dt(e,t,r){return J3(e,t,r,n0e)}i0e.exports={ask:Edt,confirm:r0e,multiline:n0e,prompt:uw};});var Bs=chunkTKGT252T_js.c(bc=>{var Lbe=chunkLTE3MQL2_js.b().fromCallback,Fs=chunkLTE3MQL2_js.a(),Nyt=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof Fs[e]=="function");Object.assign(bc,Fs);Nyt.forEach(e=>{bc[e]=Lbe(Fs[e]);});bc.exists=function(e,t){return typeof t=="function"?Fs.exists(e,t):new Promise(r=>Fs.exists(e,r))};bc.read=function(e,t,r,n,i,s){return typeof s=="function"?Fs.read(e,t,r,n,i,s):new Promise((a,o)=>{Fs.read(e,t,r,n,i,(u,l,c)=>{if(u)return o(u);a({bytesRead:l,buffer:c});});})};bc.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Fs.write(e,t,...r):new Promise((n,i)=>{Fs.write(e,t,...r,(s,a,o)=>{if(s)return i(s);n({bytesWritten:a,buffer:o});});})};bc.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?Fs.readv(e,t,...r):new Promise((n,i)=>{Fs.readv(e,t,...r,(s,a,o)=>{if(s)return i(s);n({bytesRead:a,buffers:o});});})};bc.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Fs.writev(e,t,...r):new Promise((n,i)=>{Fs.writev(e,t,...r,(s,a,o)=>{if(s)return i(s);n({bytesWritten:a,buffers:o});});})};typeof Fs.realpath.native=="function"?bc.realpath.native=Lbe(Fs.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003");});var Fbe=chunkTKGT252T_js.c((lan,kbe)=>{var Ryt=chunkTKGT252T_js.a("path");kbe.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Ryt.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}};});var qbe=chunkTKGT252T_js.c((can,vj)=>{var Bbe=Bs(),{checkPath:jbe}=Fbe(),Ube=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};vj.exports.makeDir=async(e,t)=>(jbe(e),Bbe.mkdir(e,{mode:Ube(t),recursive:!0}));vj.exports.makeDirSync=(e,t)=>(jbe(e),Bbe.mkdirSync(e,{mode:Ube(t),recursive:!0}));});var fu=chunkTKGT252T_js.c((pan,Vbe)=>{var Myt=chunkLTE3MQL2_js.b().fromPromise,{makeDir:Lyt,makeDirSync:_j}=qbe(),xj=Myt(Lyt);Vbe.exports={mkdirs:xj,mkdirsSync:_j,mkdirp:xj,mkdirpSync:_j,ensureDir:xj,ensureDirSync:_j};});var Nf=chunkTKGT252T_js.c((fan,Gbe)=>{var kyt=chunkLTE3MQL2_js.b().fromPromise,Hbe=Bs();function Fyt(e){return Hbe.access(e).then(()=>!0).catch(()=>!1)}Gbe.exports={pathExists:kyt(Fyt),pathExistsSync:Hbe.existsSync};});var Aj=chunkTKGT252T_js.c((han,$be)=>{var yS=Bs(),Byt=chunkLTE3MQL2_js.b().fromPromise;async function jyt(e,t,r){let n=await yS.open(e,"r+"),i=null;try{await yS.futimes(n,t,r);}finally{try{await yS.close(n);}catch(s){i=s;}}if(i)throw i}function Uyt(e,t,r){let n=yS.openSync(e,"r+");return yS.futimesSync(n,t,r),yS.closeSync(n)}$be.exports={utimesMillis:Byt(jyt),utimesMillisSync:Uyt};});var Ld=chunkTKGT252T_js.c((dan,Xbe)=>{var gS=Bs(),ji=chunkTKGT252T_js.a("path"),Kbe=chunkLTE3MQL2_js.b().fromPromise;function qyt(e,t,r){let n=r.dereference?i=>gS.stat(i,{bigint:!0}):i=>gS.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function Vyt(e,t,r){let n,i=r.dereference?a=>gS.statSync(a,{bigint:!0}):a=>gS.lstatSync(a,{bigint:!0}),s=i(e);try{n=i(t);}catch(a){if(a.code==="ENOENT")return {srcStat:s,destStat:null};throw a}return {srcStat:s,destStat:n}}async function Hyt(e,t,r,n){let{srcStat:i,destStat:s}=await qyt(e,t,n);if(s){if(xb(i,s)){let a=ji.basename(e),o=ji.basename(t);if(r==="move"&&a!==o&&a.toLowerCase()===o.toLowerCase())return {srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Pj(e,t))throw new Error(bw(e,t,r));return {srcStat:i,destStat:s}}function Gyt(e,t,r,n){let{srcStat:i,destStat:s}=Vyt(e,t,n);if(s){if(xb(i,s)){let a=ji.basename(e),o=ji.basename(t);if(r==="move"&&a!==o&&a.toLowerCase()===o.toLowerCase())return {srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Pj(e,t))throw new Error(bw(e,t,r));return {srcStat:i,destStat:s}}async function Ybe(e,t,r,n){let i=ji.resolve(ji.dirname(e)),s=ji.resolve(ji.dirname(r));if(s===i||s===ji.parse(s).root)return;let a;try{a=await gS.stat(s,{bigint:!0});}catch(o){if(o.code==="ENOENT")return;throw o}if(xb(t,a))throw new Error(bw(e,r,n));return Ybe(e,t,s,n)}function Wbe(e,t,r,n){let i=ji.resolve(ji.dirname(e)),s=ji.resolve(ji.dirname(r));if(s===i||s===ji.parse(s).root)return;let a;try{a=gS.statSync(s,{bigint:!0});}catch(o){if(o.code==="ENOENT")return;throw o}if(xb(t,a))throw new Error(bw(e,r,n));return Wbe(e,t,s,n)}function xb(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Pj(e,t){let r=ji.resolve(e).split(ji.sep).filter(i=>i),n=ji.resolve(t).split(ji.sep).filter(i=>i);return r.every((i,s)=>n[s]===i)}function bw(e,t,r){return `Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Xbe.exports={checkPaths:Kbe(Hyt),checkPathsSync:Gyt,checkParentPaths:Kbe(Ybe),checkParentPathsSync:Wbe,isSrcSubdir:Pj,areIdentical:xb};});var eve=chunkTKGT252T_js.c((man,Zbe)=>{var gs=Bs(),Ab=chunkTKGT252T_js.a("path"),{mkdirs:$yt}=fu(),{pathExists:Kyt}=Nf(),{utimesMillis:Yyt}=Aj(),Pb=Ld();async function Wyt(e,t,r={}){typeof r=="function"&&(r={filter:r}),r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:i}=await Pb.checkPaths(e,t,"copy",r);if(await Pb.checkParentPaths(e,n,t,"copy"),!await Jbe(e,t,r))return;let a=Ab.dirname(t);await Kyt(a)||await $yt(a),await Qbe(i,e,t,r);}async function Jbe(e,t,r){return r.filter?r.filter(e,t):!0}async function Qbe(e,t,r,n){let s=await(n.dereference?gs.stat:gs.lstat)(t);if(s.isDirectory())return Qyt(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Xyt(s,e,t,r,n);if(s.isSymbolicLink())return Zyt(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}async function Xyt(e,t,r,n,i){if(!t)return zbe(e,r,n,i);if(i.overwrite)return await gs.unlink(n),zbe(e,r,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}async function zbe(e,t,r,n){if(await gs.copyFile(t,r),n.preserveTimestamps){zyt(e.mode)&&await Jyt(r,e.mode);let i=await gs.stat(t);await Yyt(r,i.atime,i.mtime);}return gs.chmod(r,e.mode)}function zyt(e){return (e&128)===0}function Jyt(e,t){return gs.chmod(e,t|128)}async function Qyt(e,t,r,n,i){t||await gs.mkdir(n);let s=await gs.readdir(r);await Promise.all(s.map(async a=>{let o=Ab.join(r,a),u=Ab.join(n,a);if(!await Jbe(o,u,i))return;let{destStat:c}=await Pb.checkPaths(o,u,"copy",i);return Qbe(c,o,u,i)})),t||await gs.chmod(n,e.mode);}async function Zyt(e,t,r,n){let i=await gs.readlink(t);if(n.dereference&&(i=Ab.resolve(process.cwd(),i)),!e)return gs.symlink(i,r);let s=null;try{s=await gs.readlink(r);}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return gs.symlink(i,r);throw a}if(n.dereference&&(s=Ab.resolve(process.cwd(),s)),Pb.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Pb.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return await gs.unlink(r),gs.symlink(i,r)}Zbe.exports=Wyt;});var sve=chunkTKGT252T_js.c((yan,ive)=>{var js=chunkLTE3MQL2_js.a(),Cb=chunkTKGT252T_js.a("path"),egt=fu().mkdirsSync,tgt=Aj().utimesMillisSync,wb=Ld();function rgt(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=wb.checkPathsSync(e,t,"copy",r);if(wb.checkParentPathsSync(e,n,t,"copy"),r.filter&&!r.filter(e,t))return;let s=Cb.dirname(t);return js.existsSync(s)||egt(s),tve(i,e,t,r)}function tve(e,t,r,n){let s=(n.dereference?js.statSync:js.lstatSync)(t);if(s.isDirectory())return lgt(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return ngt(s,e,t,r,n);if(s.isSymbolicLink())return fgt(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function ngt(e,t,r,n,i){return t?igt(e,r,n,i):rve(e,r,n,i)}function igt(e,t,r,n){if(n.overwrite)return js.unlinkSync(r),rve(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function rve(e,t,r,n){return js.copyFileSync(t,r),n.preserveTimestamps&&sgt(e.mode,t,r),Cj(r,e.mode)}function sgt(e,t,r){return agt(e)&&ogt(r,e),ugt(t,r)}function agt(e){return (e&128)===0}function ogt(e,t){return Cj(e,t|128)}function Cj(e,t){return js.chmodSync(e,t)}function ugt(e,t){let r=js.statSync(e);return tgt(t,r.atime,r.mtime)}function lgt(e,t,r,n,i){return t?nve(r,n,i):cgt(e.mode,r,n,i)}function cgt(e,t,r,n){return js.mkdirSync(r),nve(t,r,n),Cj(r,e)}function nve(e,t,r){js.readdirSync(e).forEach(n=>pgt(n,e,t,r));}function pgt(e,t,r,n){let i=Cb.join(t,e),s=Cb.join(r,e);if(n.filter&&!n.filter(i,s))return;let{destStat:a}=wb.checkPathsSync(i,s,"copy",n);return tve(a,i,s,n)}function fgt(e,t,r,n){let i=js.readlinkSync(t);if(n.dereference&&(i=Cb.resolve(process.cwd(),i)),e){let s;try{s=js.readlinkSync(r);}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return js.symlinkSync(i,r);throw a}if(n.dereference&&(s=Cb.resolve(process.cwd(),s)),wb.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(wb.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return hgt(i,r)}else return js.symlinkSync(i,r)}function hgt(e,t){return js.unlinkSync(t),js.symlinkSync(e,t)}ive.exports=rgt;});var vw=chunkTKGT252T_js.c((gan,ave)=>{var dgt=chunkLTE3MQL2_js.b().fromPromise;ave.exports={copy:dgt(eve()),copySync:sve()};});var Ib=chunkTKGT252T_js.c((San,uve)=>{var ove=chunkLTE3MQL2_js.a(),mgt=chunkLTE3MQL2_js.b().fromCallback;function ygt(e,t){ove.rm(e,{recursive:!0,force:!0},t);}function ggt(e){ove.rmSync(e,{recursive:!0,force:!0});}uve.exports={remove:mgt(ygt),removeSync:ggt};});var yve=chunkTKGT252T_js.c((Tan,mve)=>{var Sgt=chunkLTE3MQL2_js.b().fromPromise,pve=Bs(),fve=chunkTKGT252T_js.a("path"),hve=fu(),dve=Ib(),lve=Sgt(async function(t){let r;try{r=await pve.readdir(t);}catch{return hve.mkdirs(t)}return Promise.all(r.map(n=>dve.remove(fve.join(t,n))))});function cve(e){let t;try{t=pve.readdirSync(e);}catch{return hve.mkdirsSync(e)}t.forEach(r=>{r=fve.join(e,r),dve.removeSync(r);});}mve.exports={emptyDirSync:cve,emptydirSync:cve,emptyDir:lve,emptydir:lve};});var Eve=chunkTKGT252T_js.c((Ean,Tve)=>{var Tgt=chunkLTE3MQL2_js.b().fromPromise,gve=chunkTKGT252T_js.a("path"),vc=Bs(),Sve=fu();async function Egt(e){let t;try{t=await vc.stat(e);}catch{}if(t&&t.isFile())return;let r=gve.dirname(e),n=null;try{n=await vc.stat(r);}catch(i){if(i.code==="ENOENT"){await Sve.mkdirs(r),await vc.writeFile(e,"");return}else throw i}n.isDirectory()?await vc.writeFile(e,""):await vc.readdir(r);}function bgt(e){let t;try{t=vc.statSync(e);}catch{}if(t&&t.isFile())return;let r=gve.dirname(e);try{vc.statSync(r).isDirectory()||vc.readdirSync(r);}catch(n){if(n&&n.code==="ENOENT")Sve.mkdirsSync(r);else throw n}vc.writeFileSync(e,"");}Tve.exports={createFile:Tgt(Egt),createFileSync:bgt};});var Ave=chunkTKGT252T_js.c((ban,xve)=>{var vgt=chunkLTE3MQL2_js.b().fromPromise,bve=chunkTKGT252T_js.a("path"),Rf=Bs(),vve=fu(),{pathExists:_gt}=Nf(),{areIdentical:_ve}=Ld();async function xgt(e,t){let r;try{r=await Rf.lstat(t);}catch{}let n;try{n=await Rf.lstat(e);}catch(a){throw a.message=a.message.replace("lstat","ensureLink"),a}if(r&&_ve(n,r))return;let i=bve.dirname(t);await _gt(i)||await vve.mkdirs(i),await Rf.link(e,t);}function Agt(e,t){let r;try{r=Rf.lstatSync(t);}catch{}try{let s=Rf.lstatSync(e);if(r&&_ve(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=bve.dirname(t);return Rf.existsSync(n)||vve.mkdirsSync(n),Rf.linkSync(e,t)}xve.exports={createLink:vgt(xgt),createLinkSync:Agt};});var Cve=chunkTKGT252T_js.c((van,Pve)=>{var Mf=chunkTKGT252T_js.a("path"),Ob=Bs(),{pathExists:Pgt}=Nf(),Cgt=chunkLTE3MQL2_js.b().fromPromise;async function wgt(e,t){if(Mf.isAbsolute(e)){try{await Ob.lstat(e);}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return {toCwd:e,toDst:e}}let r=Mf.dirname(t),n=Mf.join(r,e);if(await Pgt(n))return {toCwd:n,toDst:e};try{await Ob.lstat(e);}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return {toCwd:e,toDst:Mf.relative(r,e)}}function Igt(e,t){if(Mf.isAbsolute(e)){if(!Ob.existsSync(e))throw new Error("absolute srcpath does not exist");return {toCwd:e,toDst:e}}let r=Mf.dirname(t),n=Mf.join(r,e);if(Ob.existsSync(n))return {toCwd:n,toDst:e};if(!Ob.existsSync(e))throw new Error("relative srcpath does not exist");return {toCwd:e,toDst:Mf.relative(r,e)}}Pve.exports={symlinkPaths:Cgt(wgt),symlinkPathsSync:Igt};});var Ove=chunkTKGT252T_js.c((_an,Ive)=>{var wve=Bs(),Ogt=chunkLTE3MQL2_js.b().fromPromise;async function Dgt(e,t){if(t)return t;let r;try{r=await wve.lstat(e);}catch{return "file"}return r&&r.isDirectory()?"dir":"file"}function Ngt(e,t){if(t)return t;let r;try{r=wve.lstatSync(e);}catch{return "file"}return r&&r.isDirectory()?"dir":"file"}Ive.exports={symlinkType:Ogt(Dgt),symlinkTypeSync:Ngt};});var Mve=chunkTKGT252T_js.c((xan,Rve)=>{var Rgt=chunkLTE3MQL2_js.b().fromPromise,Dve=chunkTKGT252T_js.a("path"),ll=Bs(),{mkdirs:Mgt,mkdirsSync:Lgt}=fu(),{symlinkPaths:kgt,symlinkPathsSync:Fgt}=Cve(),{symlinkType:Bgt,symlinkTypeSync:jgt}=Ove(),{pathExists:Ugt}=Nf(),{areIdentical:Nve}=Ld();async function qgt(e,t,r){let n;try{n=await ll.lstat(t);}catch{}if(n&&n.isSymbolicLink()){let[o,u]=await Promise.all([ll.stat(e),ll.stat(t)]);if(Nve(o,u))return}let i=await kgt(e,t);e=i.toDst;let s=await Bgt(i.toCwd,r),a=Dve.dirname(t);return await Ugt(a)||await Mgt(a),ll.symlink(e,t,s)}function Vgt(e,t,r){let n;try{n=ll.lstatSync(t);}catch{}if(n&&n.isSymbolicLink()){let o=ll.statSync(e),u=ll.statSync(t);if(Nve(o,u))return}let i=Fgt(e,t);e=i.toDst,r=jgt(i.toCwd,r);let s=Dve.dirname(t);return ll.existsSync(s)||Lgt(s),ll.symlinkSync(e,t,r)}Rve.exports={createSymlink:Rgt(qgt),createSymlinkSync:Vgt};});var Vve=chunkTKGT252T_js.c((Aan,qve)=>{var{createFile:Lve,createFileSync:kve}=Eve(),{createLink:Fve,createLinkSync:Bve}=Ave(),{createSymlink:jve,createSymlinkSync:Uve}=Mve();qve.exports={createFile:Lve,createFileSync:kve,ensureFile:Lve,ensureFileSync:kve,createLink:Fve,createLinkSync:Bve,ensureLink:Fve,ensureLinkSync:Bve,createSymlink:jve,createSymlinkSync:Uve,ensureSymlink:jve,ensureSymlinkSync:Uve};});var Gve=chunkTKGT252T_js.c((Pan,Hve)=>{var _w=chunkLTE3MQL2_js.d();Hve.exports={readJson:_w.readFile,readJsonSync:_w.readFileSync,writeJson:_w.writeFile,writeJsonSync:_w.writeFileSync};});var xw=chunkTKGT252T_js.c((Can,Yve)=>{var Hgt=chunkLTE3MQL2_js.b().fromPromise,wj=Bs(),$ve=chunkTKGT252T_js.a("path"),Kve=fu(),Ggt=Nf().pathExists;async function $gt(e,t,r="utf-8"){let n=$ve.dirname(e);return await Ggt(n)||await Kve.mkdirs(n),wj.writeFile(e,t,r)}function Kgt(e,...t){let r=$ve.dirname(e);wj.existsSync(r)||Kve.mkdirsSync(r),wj.writeFileSync(e,...t);}Yve.exports={outputFile:Hgt($gt),outputFileSync:Kgt};});var Xve=chunkTKGT252T_js.c((wan,Wve)=>{var{stringify:Ygt}=chunkLTE3MQL2_js.c(),{outputFile:Wgt}=xw();async function Xgt(e,t,r={}){let n=Ygt(t,r);await Wgt(e,n,r);}Wve.exports=Xgt;});var Jve=chunkTKGT252T_js.c((Ian,zve)=>{var{stringify:zgt}=chunkLTE3MQL2_js.c(),{outputFileSync:Jgt}=xw();function Qgt(e,t,r){let n=zgt(t,r);Jgt(e,n,r);}zve.exports=Qgt;});var Zve=chunkTKGT252T_js.c((Oan,Qve)=>{var Zgt=chunkLTE3MQL2_js.b().fromPromise,Us=Gve();Us.outputJson=Zgt(Xve());Us.outputJsonSync=Jve();Us.outputJSON=Us.outputJson;Us.outputJSONSync=Us.outputJsonSync;Us.writeJSON=Us.writeJson;Us.writeJSONSync=Us.writeJsonSync;Us.readJSON=Us.readJson;Us.readJSONSync=Us.readJsonSync;Qve.exports=Us;});var i_e=chunkTKGT252T_js.c((Dan,n_e)=>{var eSt=Bs(),e_e=chunkTKGT252T_js.a("path"),{copy:tSt}=vw(),{remove:r_e}=Ib(),{mkdirp:rSt}=fu(),{pathExists:nSt}=Nf(),t_e=Ld();async function iSt(e,t,r={}){let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=await t_e.checkPaths(e,t,"move",r);await t_e.checkParentPaths(e,i,t,"move");let a=e_e.dirname(t);return e_e.parse(a).root!==a&&await rSt(a),sSt(e,t,n,s)}async function sSt(e,t,r,n){if(!n){if(r)await r_e(t);else if(await nSt(t))throw new Error("dest already exists.")}try{await eSt.rename(e,t);}catch(i){if(i.code!=="EXDEV")throw i;await aSt(e,t,r);}}async function aSt(e,t,r){return await tSt(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),r_e(e)}n_e.exports=iSt;});var l_e=chunkTKGT252T_js.c((Nan,u_e)=>{var a_e=chunkLTE3MQL2_js.a(),Oj=chunkTKGT252T_js.a("path"),oSt=vw().copySync,o_e=Ib().removeSync,uSt=fu().mkdirpSync,s_e=Ld();function lSt(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=s_e.checkPathsSync(e,t,"move",r);return s_e.checkParentPathsSync(e,i,t,"move"),cSt(t)||uSt(Oj.dirname(t)),pSt(e,t,n,s)}function cSt(e){let t=Oj.dirname(e);return Oj.parse(t).root===t}function pSt(e,t,r,n){if(n)return Ij(e,t,r);if(r)return o_e(t),Ij(e,t,r);if(a_e.existsSync(t))throw new Error("dest already exists.");return Ij(e,t,r)}function Ij(e,t,r){try{a_e.renameSync(e,t);}catch(n){if(n.code!=="EXDEV")throw n;return fSt(e,t,r)}}function fSt(e,t,r){return oSt(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),o_e(e)}u_e.exports=lSt;});var p_e=chunkTKGT252T_js.c((Ran,c_e)=>{var hSt=chunkLTE3MQL2_js.b().fromPromise;c_e.exports={move:hSt(i_e()),moveSync:l_e()};});var Dj=chunkTKGT252T_js.c((Man,f_e)=>{f_e.exports={...Bs(),...vw(),...yve(),...Vve(),...Zve(),...fu(),...p_e(),...xw(),...Nf(),...Ib()};});var Aw={};chunkTKGT252T_js.d(Aw,{dedent:()=>h_e,default:()=>dSt});function h_e(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(o,u){var l=u.match(/\n([\t ]+|(?!\s).)/g);return l?o.concat(l.map(function(c){var p,h;return (h=(p=c.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&h!==void 0?h:0})):o},[]);if(i.length){var s=new RegExp(`
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(o){return o.replace(s,`
`)});}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(o,u){var l=a.match(/(?:^|\n)( *)$/),c=l?l[1]:"",p=o;typeof o=="string"&&o.includes(`
`)&&(p=String(o).split(`
`).map(function(h,f){return f===0?h:""+c+h}).join(`
`)),a+=p+n[u+1];}),a}var dSt,Pw=chunkTKGT252T_js.b(()=>{dSt=h_e;});var Cw=chunkTKGT252T_js.c(Nj=>{Object.defineProperty(Nj,"__esModule",{value:!0});Nj.default=mSt;function mSt(e,t){let r=Object.keys(t);for(let n of r)if(e[n]!==t[n])return !1;return !0}});var Db=chunkTKGT252T_js.c(Rj=>{Object.defineProperty(Rj,"__esModule",{value:!0});Rj.default=ySt;var d_e=new Set;function ySt(e,t,r=""){if(d_e.has(e))return;d_e.add(e);let{internal:n,trace:i}=gSt(1,2);n||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
${i}`);}function gSt(e,t){let{stackTraceLimit:r,prepareStackTrace:n}=Error,i;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){i=o;},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!i)return {internal:!1,trace:""};let s=i.slice(1+e,1+e+t);return {internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map(a=>` at ${a}`).join(`
`)}}});var ci=chunkTKGT252T_js.c(N=>{Object.defineProperty(N,"__esModule",{value:!0});N.isAccessor=Dvt;N.isAnyTypeAnnotation=QTt;N.isArgumentPlaceholder=C0t;N.isArrayExpression=SSt;N.isArrayPattern=yTt;N.isArrayTypeAnnotation=ZTt;N.isArrowFunctionExpression=gTt;N.isAssignmentExpression=TSt;N.isAssignmentPattern=mTt;N.isAwaitExpression=UTt;N.isBigIntLiteral=VTt;N.isBinary=evt;N.isBinaryExpression=ESt;N.isBindExpression=w0t;N.isBlock=nvt;N.isBlockParent=rvt;N.isBlockStatement=xSt;N.isBooleanLiteral=$St;N.isBooleanLiteralTypeAnnotation=tEt;N.isBooleanTypeAnnotation=eEt;N.isBreakStatement=ASt;N.isCallExpression=PSt;N.isCatchClause=CSt;N.isClass=wvt;N.isClassAccessorProperty=YTt;N.isClassBody=STt;N.isClassDeclaration=ETt;N.isClassExpression=TTt;N.isClassImplements=nEt;N.isClassMethod=NTt;N.isClassPrivateMethod=XTt;N.isClassPrivateProperty=WTt;N.isClassProperty=KTt;N.isCompletionStatement=avt;N.isConditional=ovt;N.isConditionalExpression=wSt;N.isContinueStatement=ISt;N.isDebuggerStatement=OSt;N.isDecimalLiteral=L0t;N.isDeclaration=yvt;N.isDeclareClass=iEt;N.isDeclareExportAllDeclaration=hEt;N.isDeclareExportDeclaration=fEt;N.isDeclareFunction=sEt;N.isDeclareInterface=aEt;N.isDeclareModule=oEt;N.isDeclareModuleExports=uEt;N.isDeclareOpaqueType=cEt;N.isDeclareTypeAlias=lEt;N.isDeclareVariable=pEt;N.isDeclaredPredicate=dEt;N.isDecorator=O0t;N.isDirective=vSt;N.isDirectiveLiteral=_St;N.isDoExpression=D0t;N.isDoWhileStatement=DSt;N.isEmptyStatement=NSt;N.isEmptyTypeAnnotation=AEt;N.isEnumBody=Bvt;N.isEnumBooleanBody=ZEt;N.isEnumBooleanMember=n0t;N.isEnumDeclaration=QEt;N.isEnumDefaultedMember=a0t;N.isEnumMember=jvt;N.isEnumNumberBody=e0t;N.isEnumNumberMember=i0t;N.isEnumStringBody=t0t;N.isEnumStringMember=s0t;N.isEnumSymbolBody=r0t;N.isExistsTypeAnnotation=mEt;N.isExportAllDeclaration=bTt;N.isExportDeclaration=Ivt;N.isExportDefaultDeclaration=vTt;N.isExportDefaultSpecifier=N0t;N.isExportNamedDeclaration=_Tt;N.isExportNamespaceSpecifier=HTt;N.isExportSpecifier=xTt;N.isExpression=Zbt;N.isExpressionStatement=RSt;N.isExpressionWrapper=cvt;N.isFile=MSt;N.isFlow=Rvt;N.isFlowBaseAnnotation=Lvt;N.isFlowDeclaration=kvt;N.isFlowPredicate=Fvt;N.isFlowType=Mvt;N.isFor=pvt;N.isForInStatement=LSt;N.isForOfStatement=ATt;N.isForStatement=kSt;N.isForXStatement=fvt;N.isFunction=hvt;N.isFunctionDeclaration=FSt;N.isFunctionExpression=BSt;N.isFunctionParent=dvt;N.isFunctionTypeAnnotation=yEt;N.isFunctionTypeParam=gEt;N.isGenericTypeAnnotation=SEt;N.isIdentifier=jSt;N.isIfStatement=USt;N.isImmutable=bvt;N.isImport=qTt;N.isImportAttribute=I0t;N.isImportDeclaration=PTt;N.isImportDefaultSpecifier=CTt;N.isImportExpression=OTt;N.isImportNamespaceSpecifier=wTt;N.isImportOrExportDeclaration=m_e;N.isImportSpecifier=ITt;N.isIndexedAccessType=o0t;N.isInferredPredicate=TEt;N.isInterfaceDeclaration=bEt;N.isInterfaceExtends=EEt;N.isInterfaceTypeAnnotation=vEt;N.isInterpreterDirective=bSt;N.isIntersectionTypeAnnotation=_Et;N.isJSX=Uvt;N.isJSXAttribute=l0t;N.isJSXClosingElement=c0t;N.isJSXClosingFragment=_0t;N.isJSXElement=p0t;N.isJSXEmptyExpression=f0t;N.isJSXExpressionContainer=h0t;N.isJSXFragment=b0t;N.isJSXIdentifier=m0t;N.isJSXMemberExpression=y0t;N.isJSXNamespacedName=g0t;N.isJSXOpeningElement=S0t;N.isJSXOpeningFragment=v0t;N.isJSXSpreadAttribute=T0t;N.isJSXSpreadChild=d0t;N.isJSXText=E0t;N.isLVal=Svt;N.isLabeledStatement=qSt;N.isLiteral=Evt;N.isLogicalExpression=YSt;N.isLoop=uvt;N.isMemberExpression=WSt;N.isMetaProperty=DTt;N.isMethod=_vt;N.isMiscellaneous=qvt;N.isMixedTypeAnnotation=xEt;N.isModuleDeclaration=zvt;N.isModuleExpression=k0t;N.isModuleSpecifier=Ovt;N.isNewExpression=XSt;N.isNoop=x0t;N.isNullLiteral=GSt;N.isNullLiteralTypeAnnotation=rEt;N.isNullableTypeAnnotation=PEt;N.isNumberLiteral=Kvt;N.isNumberLiteralTypeAnnotation=CEt;N.isNumberTypeAnnotation=wEt;N.isNumericLiteral=HSt;N.isObjectExpression=JSt;N.isObjectMember=xvt;N.isObjectMethod=QSt;N.isObjectPattern=RTt;N.isObjectProperty=ZSt;N.isObjectTypeAnnotation=IEt;N.isObjectTypeCallProperty=DEt;N.isObjectTypeIndexer=NEt;N.isObjectTypeInternalSlot=OEt;N.isObjectTypeProperty=REt;N.isObjectTypeSpreadProperty=MEt;N.isOpaqueType=LEt;N.isOptionalCallExpression=$Tt;N.isOptionalIndexedAccessType=u0t;N.isOptionalMemberExpression=GTt;N.isParenthesizedExpression=nTt;N.isPattern=Cvt;N.isPatternLike=gvt;N.isPipelineBareFunction=j0t;N.isPipelinePrimaryTopicReference=U0t;N.isPipelineTopicExpression=B0t;N.isPlaceholder=A0t;N.isPrivate=Nvt;N.isPrivateName=zTt;N.isProgram=zSt;N.isProperty=Avt;N.isPureish=mvt;N.isQualifiedTypeIdentifier=kEt;N.isRecordExpression=R0t;N.isRegExpLiteral=KSt;N.isRegexLiteral=Yvt;N.isRestElement=eTt;N.isRestProperty=Wvt;N.isReturnStatement=tTt;N.isScopable=tvt;N.isSequenceExpression=rTt;N.isSpreadElement=MTt;N.isSpreadProperty=Xvt;N.isStandardized=Qbt;N.isStatement=ivt;N.isStaticBlock=JTt;N.isStringLiteral=VSt;N.isStringLiteralTypeAnnotation=FEt;N.isStringTypeAnnotation=BEt;N.isSuper=LTt;N.isSwitchCase=iTt;N.isSwitchStatement=sTt;N.isSymbolTypeAnnotation=jEt;N.isTSAnyKeyword=z0t;N.isTSArrayType=ybt;N.isTSAsExpression=Lbt;N.isTSBaseType=$vt;N.isTSBigIntKeyword=Q0t;N.isTSBooleanKeyword=J0t;N.isTSCallSignatureDeclaration=$0t;N.isTSConditionalType=_bt;N.isTSConstructSignatureDeclaration=K0t;N.isTSConstructorType=pbt;N.isTSDeclareFunction=V0t;N.isTSDeclareMethod=H0t;N.isTSEntityName=Tvt;N.isTSEnumDeclaration=Bbt;N.isTSEnumMember=jbt;N.isTSExportAssignment=Kbt;N.isTSExpressionWithTypeArguments=Obt;N.isTSExternalModuleReference=Gbt;N.isTSFunctionType=cbt;N.isTSImportEqualsDeclaration=Hbt;N.isTSImportType=Vbt;N.isTSIndexSignature=X0t;N.isTSIndexedAccessType=Cbt;N.isTSInferType=xbt;N.isTSInstantiationExpression=Mbt;N.isTSInterfaceBody=Nbt;N.isTSInterfaceDeclaration=Dbt;N.isTSIntersectionType=vbt;N.isTSIntrinsicKeyword=Z0t;N.isTSLiteralType=Ibt;N.isTSMappedType=wbt;N.isTSMethodSignature=W0t;N.isTSModuleBlock=qbt;N.isTSModuleDeclaration=Ubt;N.isTSNamedTupleMember=Ebt;N.isTSNamespaceExportDeclaration=Ybt;N.isTSNeverKeyword=ebt;N.isTSNonNullExpression=$bt;N.isTSNullKeyword=tbt;N.isTSNumberKeyword=rbt;N.isTSObjectKeyword=nbt;N.isTSOptionalType=Sbt;N.isTSParameterProperty=q0t;N.isTSParenthesizedType=Abt;N.isTSPropertySignature=Y0t;N.isTSQualifiedName=G0t;N.isTSRestType=Tbt;N.isTSSatisfiesExpression=kbt;N.isTSStringKeyword=ibt;N.isTSSymbolKeyword=sbt;N.isTSThisType=lbt;N.isTSTupleType=gbt;N.isTSType=Gvt;N.isTSTypeAliasDeclaration=Rbt;N.isTSTypeAnnotation=Wbt;N.isTSTypeAssertion=Fbt;N.isTSTypeElement=Hvt;N.isTSTypeLiteral=mbt;N.isTSTypeOperator=Pbt;N.isTSTypeParameter=Jbt;N.isTSTypeParameterDeclaration=zbt;N.isTSTypeParameterInstantiation=Xbt;N.isTSTypePredicate=hbt;N.isTSTypeQuery=dbt;N.isTSTypeReference=fbt;N.isTSUndefinedKeyword=abt;N.isTSUnionType=bbt;N.isTSUnknownKeyword=obt;N.isTSVoidKeyword=ubt;N.isTaggedTemplateExpression=kTt;N.isTemplateElement=FTt;N.isTemplateLiteral=BTt;N.isTerminatorless=svt;N.isThisExpression=aTt;N.isThisTypeAnnotation=UEt;N.isThrowStatement=oTt;N.isTopicReference=F0t;N.isTryStatement=uTt;N.isTupleExpression=M0t;N.isTupleTypeAnnotation=qEt;N.isTypeAlias=HEt;N.isTypeAnnotation=GEt;N.isTypeCastExpression=$Et;N.isTypeParameter=KEt;N.isTypeParameterDeclaration=YEt;N.isTypeParameterInstantiation=WEt;N.isTypeScript=Vvt;N.isTypeofTypeAnnotation=VEt;N.isUnaryExpression=lTt;N.isUnaryLike=Pvt;N.isUnionTypeAnnotation=XEt;N.isUpdateExpression=cTt;N.isUserWhitespacable=vvt;N.isV8IntrinsicIdentifier=P0t;N.isVariableDeclaration=pTt;N.isVariableDeclarator=fTt;N.isVariance=zEt;N.isVoidTypeAnnotation=JEt;N.isWhile=lvt;N.isWhileStatement=hTt;N.isWithStatement=dTt;N.isYieldExpression=jTt;var B=Cw(),Nb=Db();function SSt(e,t){return !e||e.type!=="ArrayExpression"?!1:t==null||(0, B.default)(e,t)}function TSt(e,t){return !e||e.type!=="AssignmentExpression"?!1:t==null||(0, B.default)(e,t)}function ESt(e,t){return !e||e.type!=="BinaryExpression"?!1:t==null||(0, B.default)(e,t)}function bSt(e,t){return !e||e.type!=="InterpreterDirective"?!1:t==null||(0, B.default)(e,t)}function vSt(e,t){return !e||e.type!=="Directive"?!1:t==null||(0, B.default)(e,t)}function _St(e,t){return !e||e.type!=="DirectiveLiteral"?!1:t==null||(0, B.default)(e,t)}function xSt(e,t){return !e||e.type!=="BlockStatement"?!1:t==null||(0, B.default)(e,t)}function ASt(e,t){return !e||e.type!=="BreakStatement"?!1:t==null||(0, B.default)(e,t)}function PSt(e,t){return !e||e.type!=="CallExpression"?!1:t==null||(0, B.default)(e,t)}function CSt(e,t){return !e||e.type!=="CatchClause"?!1:t==null||(0, B.default)(e,t)}function wSt(e,t){return !e||e.type!=="ConditionalExpression"?!1:t==null||(0, B.default)(e,t)}function ISt(e,t){return !e||e.type!=="ContinueStatement"?!1:t==null||(0, B.default)(e,t)}function OSt(e,t){return !e||e.type!=="DebuggerStatement"?!1:t==null||(0, B.default)(e,t)}function DSt(e,t){return !e||e.type!=="DoWhileStatement"?!1:t==null||(0, B.default)(e,t)}function NSt(e,t){return !e||e.type!=="EmptyStatement"?!1:t==null||(0, B.default)(e,t)}function RSt(e,t){return !e||e.type!=="ExpressionStatement"?!1:t==null||(0, B.default)(e,t)}function MSt(e,t){return !e||e.type!=="File"?!1:t==null||(0, B.default)(e,t)}function LSt(e,t){return !e||e.type!=="ForInStatement"?!1:t==null||(0, B.default)(e,t)}function kSt(e,t){return !e||e.type!=="ForStatement"?!1:t==null||(0, B.default)(e,t)}function FSt(e,t){return !e||e.type!=="FunctionDeclaration"?!1:t==null||(0, B.default)(e,t)}function BSt(e,t){return !e||e.type!=="FunctionExpression"?!1:t==null||(0, B.default)(e,t)}function jSt(e,t){return !e||e.type!=="Identifier"?!1:t==null||(0, B.default)(e,t)}function USt(e,t){return !e||e.type!=="IfStatement"?!1:t==null||(0, B.default)(e,t)}function qSt(e,t){return !e||e.type!=="LabeledStatement"?!1:t==null||(0, B.default)(e,t)}function VSt(e,t){return !e||e.type!=="StringLiteral"?!1:t==null||(0, B.default)(e,t)}function HSt(e,t){return !e||e.type!=="NumericLiteral"?!1:t==null||(0, B.default)(e,t)}function GSt(e,t){return !e||e.type!=="NullLiteral"?!1:t==null||(0, B.default)(e,t)}function $St(e,t){return !e||e.type!=="BooleanLiteral"?!1:t==null||(0, B.default)(e,t)}function KSt(e,t){return !e||e.type!=="RegExpLiteral"?!1:t==null||(0, B.default)(e,t)}function YSt(e,t){return !e||e.type!=="LogicalExpression"?!1:t==null||(0, B.default)(e,t)}function WSt(e,t){return !e||e.type!=="MemberExpression"?!1:t==null||(0, B.default)(e,t)}function XSt(e,t){return !e||e.type!=="NewExpression"?!1:t==null||(0, B.default)(e,t)}function zSt(e,t){return !e||e.type!=="Program"?!1:t==null||(0, B.default)(e,t)}function JSt(e,t){return !e||e.type!=="ObjectExpression"?!1:t==null||(0, B.default)(e,t)}function QSt(e,t){return !e||e.type!=="ObjectMethod"?!1:t==null||(0, B.default)(e,t)}function ZSt(e,t){return !e||e.type!=="ObjectProperty"?!1:t==null||(0, B.default)(e,t)}function eTt(e,t){return !e||e.type!=="RestElement"?!1:t==null||(0, B.default)(e,t)}function tTt(e,t){return !e||e.type!=="ReturnStatement"?!1:t==null||(0, B.default)(e,t)}function rTt(e,t){return !e||e.type!=="SequenceExpression"?!1:t==null||(0, B.default)(e,t)}function nTt(e,t){return !e||e.type!=="ParenthesizedExpression"?!1:t==null||(0, B.default)(e,t)}function iTt(e,t){return !e||e.type!=="SwitchCase"?!1:t==null||(0, B.default)(e,t)}function sTt(e,t){return !e||e.type!=="SwitchStatement"?!1:t==null||(0, B.default)(e,t)}function aTt(e,t){return !e||e.type!=="ThisExpression"?!1:t==null||(0, B.default)(e,t)}function oTt(e,t){return !e||e.type!=="ThrowStatement"?!1:t==null||(0, B.default)(e,t)}function uTt(e,t){return !e||e.type!=="TryStatement"?!1:t==null||(0, B.default)(e,t)}function lTt(e,t){return !e||e.type!=="UnaryExpression"?!1:t==null||(0, B.default)(e,t)}function cTt(e,t){return !e||e.type!=="UpdateExpression"?!1:t==null||(0, B.default)(e,t)}function pTt(e,t){return !e||e.type!=="VariableDeclaration"?!1:t==null||(0, B.default)(e,t)}function fTt(e,t){return !e||e.type!=="VariableDeclarator"?!1:t==null||(0, B.default)(e,t)}function hTt(e,t){return !e||e.type!=="WhileStatement"?!1:t==null||(0, B.default)(e,t)}function dTt(e,t){return !e||e.type!=="WithStatement"?!1:t==null||(0, B.default)(e,t)}function mTt(e,t){return !e||e.type!=="AssignmentPattern"?!1:t==null||(0, B.default)(e,t)}function yTt(e,t){return !e||e.type!=="ArrayPattern"?!1:t==null||(0, B.default)(e,t)}function gTt(e,t){return !e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0, B.default)(e,t)}function STt(e,t){return !e||e.type!=="ClassBody"?!1:t==null||(0, B.default)(e,t)}function TTt(e,t){return !e||e.type!=="ClassExpression"?!1:t==null||(0, B.default)(e,t)}function ETt(e,t){return !e||e.type!=="ClassDeclaration"?!1:t==null||(0, B.default)(e,t)}function bTt(e,t){return !e||e.type!=="ExportAllDeclaration"?!1:t==null||(0, B.default)(e,t)}function vTt(e,t){return !e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0, B.default)(e,t)}function _Tt(e,t){return !e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0, B.default)(e,t)}function xTt(e,t){return !e||e.type!=="ExportSpecifier"?!1:t==null||(0, B.default)(e,t)}function ATt(e,t){return !e||e.type!=="ForOfStatement"?!1:t==null||(0, B.default)(e,t)}function PTt(e,t){return !e||e.type!=="ImportDeclaration"?!1:t==null||(0, B.default)(e,t)}function CTt(e,t){return !e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0, B.default)(e,t)}function wTt(e,t){return !e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0, B.default)(e,t)}function ITt(e,t){return !e||e.type!=="ImportSpecifier"?!1:t==null||(0, B.default)(e,t)}function OTt(e,t){return !e||e.type!=="ImportExpression"?!1:t==null||(0, B.default)(e,t)}function DTt(e,t){return !e||e.type!=="MetaProperty"?!1:t==null||(0, B.default)(e,t)}function NTt(e,t){return !e||e.type!=="ClassMethod"?!1:t==null||(0, B.default)(e,t)}function RTt(e,t){return !e||e.type!=="ObjectPattern"?!1:t==null||(0, B.default)(e,t)}function MTt(e,t){return !e||e.type!=="SpreadElement"?!1:t==null||(0, B.default)(e,t)}function LTt(e,t){return !e||e.type!=="Super"?!1:t==null||(0, B.default)(e,t)}function kTt(e,t){return !e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0, B.default)(e,t)}function FTt(e,t){return !e||e.type!=="TemplateElement"?!1:t==null||(0, B.default)(e,t)}function BTt(e,t){return !e||e.type!=="TemplateLiteral"?!1:t==null||(0, B.default)(e,t)}function jTt(e,t){return !e||e.type!=="YieldExpression"?!1:t==null||(0, B.default)(e,t)}function UTt(e,t){return !e||e.type!=="AwaitExpression"?!1:t==null||(0, B.default)(e,t)}function qTt(e,t){return !e||e.type!=="Import"?!1:t==null||(0, B.default)(e,t)}function VTt(e,t){return !e||e.type!=="BigIntLiteral"?!1:t==null||(0, B.default)(e,t)}function HTt(e,t){return !e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0, B.default)(e,t)}function GTt(e,t){return !e||e.type!=="OptionalMemberExpression"?!1:t==null||(0, B.default)(e,t)}function $Tt(e,t){return !e||e.type!=="OptionalCallExpression"?!1:t==null||(0, B.default)(e,t)}function KTt(e,t){return !e||e.type!=="ClassProperty"?!1:t==null||(0, B.default)(e,t)}function YTt(e,t){return !e||e.type!=="ClassAccessorProperty"?!1:t==null||(0, B.default)(e,t)}function WTt(e,t){return !e||e.type!=="ClassPrivateProperty"?!1:t==null||(0, B.default)(e,t)}function XTt(e,t){return !e||e.type!=="ClassPrivateMethod"?!1:t==null||(0, B.default)(e,t)}function zTt(e,t){return !e||e.type!=="PrivateName"?!1:t==null||(0, B.default)(e,t)}function JTt(e,t){return !e||e.type!=="StaticBlock"?!1:t==null||(0, B.default)(e,t)}function QTt(e,t){return !e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function ZTt(e,t){return !e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function eEt(e,t){return !e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function tEt(e,t){return !e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function rEt(e,t){return !e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function nEt(e,t){return !e||e.type!=="ClassImplements"?!1:t==null||(0, B.default)(e,t)}function iEt(e,t){return !e||e.type!=="DeclareClass"?!1:t==null||(0, B.default)(e,t)}function sEt(e,t){return !e||e.type!=="DeclareFunction"?!1:t==null||(0, B.default)(e,t)}function aEt(e,t){return !e||e.type!=="DeclareInterface"?!1:t==null||(0, B.default)(e,t)}function oEt(e,t){return !e||e.type!=="DeclareModule"?!1:t==null||(0, B.default)(e,t)}function uEt(e,t){return !e||e.type!=="DeclareModuleExports"?!1:t==null||(0, B.default)(e,t)}function lEt(e,t){return !e||e.type!=="DeclareTypeAlias"?!1:t==null||(0, B.default)(e,t)}function cEt(e,t){return !e||e.type!=="DeclareOpaqueType"?!1:t==null||(0, B.default)(e,t)}function pEt(e,t){return !e||e.type!=="DeclareVariable"?!1:t==null||(0, B.default)(e,t)}function fEt(e,t){return !e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0, B.default)(e,t)}function hEt(e,t){return !e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0, B.default)(e,t)}function dEt(e,t){return !e||e.type!=="DeclaredPredicate"?!1:t==null||(0, B.default)(e,t)}function mEt(e,t){return !e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function yEt(e,t){return !e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function gEt(e,t){return !e||e.type!=="FunctionTypeParam"?!1:t==null||(0, B.default)(e,t)}function SEt(e,t){return !e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function TEt(e,t){return !e||e.type!=="InferredPredicate"?!1:t==null||(0, B.default)(e,t)}function EEt(e,t){return !e||e.type!=="InterfaceExtends"?!1:t==null||(0, B.default)(e,t)}function bEt(e,t){return !e||e.type!=="InterfaceDeclaration"?!1:t==null||(0, B.default)(e,t)}function vEt(e,t){return !e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function _Et(e,t){return !e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function xEt(e,t){return !e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function AEt(e,t){return !e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function PEt(e,t){return !e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function CEt(e,t){return !e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function wEt(e,t){return !e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function IEt(e,t){return !e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function OEt(e,t){return !e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0, B.default)(e,t)}function DEt(e,t){return !e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0, B.default)(e,t)}function NEt(e,t){return !e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0, B.default)(e,t)}function REt(e,t){return !e||e.type!=="ObjectTypeProperty"?!1:t==null||(0, B.default)(e,t)}function MEt(e,t){return !e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0, B.default)(e,t)}function LEt(e,t){return !e||e.type!=="OpaqueType"?!1:t==null||(0, B.default)(e,t)}function kEt(e,t){return !e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0, B.default)(e,t)}function FEt(e,t){return !e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function BEt(e,t){return !e||e.type!=="StringTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function jEt(e,t){return !e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function UEt(e,t){return !e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function qEt(e,t){return !e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function VEt(e,t){return !e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function HEt(e,t){return !e||e.type!=="TypeAlias"?!1:t==null||(0, B.default)(e,t)}function GEt(e,t){return !e||e.type!=="TypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function $Et(e,t){return !e||e.type!=="TypeCastExpression"?!1:t==null||(0, B.default)(e,t)}function KEt(e,t){return !e||e.type!=="TypeParameter"?!1:t==null||(0, B.default)(e,t)}function YEt(e,t){return !e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0, B.default)(e,t)}function WEt(e,t){return !e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0, B.default)(e,t)}function XEt(e,t){return !e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function zEt(e,t){return !e||e.type!=="Variance"?!1:t==null||(0, B.default)(e,t)}function JEt(e,t){return !e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function QEt(e,t){return !e||e.type!=="EnumDeclaration"?!1:t==null||(0, B.default)(e,t)}function ZEt(e,t){return !e||e.type!=="EnumBooleanBody"?!1:t==null||(0, B.default)(e,t)}function e0t(e,t){return !e||e.type!=="EnumNumberBody"?!1:t==null||(0, B.default)(e,t)}function t0t(e,t){return !e||e.type!=="EnumStringBody"?!1:t==null||(0, B.default)(e,t)}function r0t(e,t){return !e||e.type!=="EnumSymbolBody"?!1:t==null||(0, B.default)(e,t)}function n0t(e,t){return !e||e.type!=="EnumBooleanMember"?!1:t==null||(0, B.default)(e,t)}function i0t(e,t){return !e||e.type!=="EnumNumberMember"?!1:t==null||(0, B.default)(e,t)}function s0t(e,t){return !e||e.type!=="EnumStringMember"?!1:t==null||(0, B.default)(e,t)}function a0t(e,t){return !e||e.type!=="EnumDefaultedMember"?!1:t==null||(0, B.default)(e,t)}function o0t(e,t){return !e||e.type!=="IndexedAccessType"?!1:t==null||(0, B.default)(e,t)}function u0t(e,t){return !e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0, B.default)(e,t)}function l0t(e,t){return !e||e.type!=="JSXAttribute"?!1:t==null||(0, B.default)(e,t)}function c0t(e,t){return !e||e.type!=="JSXClosingElement"?!1:t==null||(0, B.default)(e,t)}function p0t(e,t){return !e||e.type!=="JSXElement"?!1:t==null||(0, B.default)(e,t)}function f0t(e,t){return !e||e.type!=="JSXEmptyExpression"?!1:t==null||(0, B.default)(e,t)}function h0t(e,t){return !e||e.type!=="JSXExpressionContainer"?!1:t==null||(0, B.default)(e,t)}function d0t(e,t){return !e||e.type!=="JSXSpreadChild"?!1:t==null||(0, B.default)(e,t)}function m0t(e,t){return !e||e.type!=="JSXIdentifier"?!1:t==null||(0, B.default)(e,t)}function y0t(e,t){return !e||e.type!=="JSXMemberExpression"?!1:t==null||(0, B.default)(e,t)}function g0t(e,t){return !e||e.type!=="JSXNamespacedName"?!1:t==null||(0, B.default)(e,t)}function S0t(e,t){return !e||e.type!=="JSXOpeningElement"?!1:t==null||(0, B.default)(e,t)}function T0t(e,t){return !e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0, B.default)(e,t)}function E0t(e,t){return !e||e.type!=="JSXText"?!1:t==null||(0, B.default)(e,t)}function b0t(e,t){return !e||e.type!=="JSXFragment"?!1:t==null||(0, B.default)(e,t)}function v0t(e,t){return !e||e.type!=="JSXOpeningFragment"?!1:t==null||(0, B.default)(e,t)}function _0t(e,t){return !e||e.type!=="JSXClosingFragment"?!1:t==null||(0, B.default)(e,t)}function x0t(e,t){return !e||e.type!=="Noop"?!1:t==null||(0, B.default)(e,t)}function A0t(e,t){return !e||e.type!=="Placeholder"?!1:t==null||(0, B.default)(e,t)}function P0t(e,t){return !e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0, B.default)(e,t)}function C0t(e,t){return !e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0, B.default)(e,t)}function w0t(e,t){return !e||e.type!=="BindExpression"?!1:t==null||(0, B.default)(e,t)}function I0t(e,t){return !e||e.type!=="ImportAttribute"?!1:t==null||(0, B.default)(e,t)}function O0t(e,t){return !e||e.type!=="Decorator"?!1:t==null||(0, B.default)(e,t)}function D0t(e,t){return !e||e.type!=="DoExpression"?!1:t==null||(0, B.default)(e,t)}function N0t(e,t){return !e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0, B.default)(e,t)}function R0t(e,t){return !e||e.type!=="RecordExpression"?!1:t==null||(0, B.default)(e,t)}function M0t(e,t){return !e||e.type!=="TupleExpression"?!1:t==null||(0, B.default)(e,t)}function L0t(e,t){return !e||e.type!=="DecimalLiteral"?!1:t==null||(0, B.default)(e,t)}function k0t(e,t){return !e||e.type!=="ModuleExpression"?!1:t==null||(0, B.default)(e,t)}function F0t(e,t){return !e||e.type!=="TopicReference"?!1:t==null||(0, B.default)(e,t)}function B0t(e,t){return !e||e.type!=="PipelineTopicExpression"?!1:t==null||(0, B.default)(e,t)}function j0t(e,t){return !e||e.type!=="PipelineBareFunction"?!1:t==null||(0, B.default)(e,t)}function U0t(e,t){return !e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0, B.default)(e,t)}function q0t(e,t){return !e||e.type!=="TSParameterProperty"?!1:t==null||(0, B.default)(e,t)}function V0t(e,t){return !e||e.type!=="TSDeclareFunction"?!1:t==null||(0, B.default)(e,t)}function H0t(e,t){return !e||e.type!=="TSDeclareMethod"?!1:t==null||(0, B.default)(e,t)}function G0t(e,t){return !e||e.type!=="TSQualifiedName"?!1:t==null||(0, B.default)(e,t)}function $0t(e,t){return !e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0, B.default)(e,t)}function K0t(e,t){return !e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0, B.default)(e,t)}function Y0t(e,t){return !e||e.type!=="TSPropertySignature"?!1:t==null||(0, B.default)(e,t)}function W0t(e,t){return !e||e.type!=="TSMethodSignature"?!1:t==null||(0, B.default)(e,t)}function X0t(e,t){return !e||e.type!=="TSIndexSignature"?!1:t==null||(0, B.default)(e,t)}function z0t(e,t){return !e||e.type!=="TSAnyKeyword"?!1:t==null||(0, B.default)(e,t)}function J0t(e,t){return !e||e.type!=="TSBooleanKeyword"?!1:t==null||(0, B.default)(e,t)}function Q0t(e,t){return !e||e.type!=="TSBigIntKeyword"?!1:t==null||(0, B.default)(e,t)}function Z0t(e,t){return !e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0, B.default)(e,t)}function ebt(e,t){return !e||e.type!=="TSNeverKeyword"?!1:t==null||(0, B.default)(e,t)}function tbt(e,t){return !e||e.type!=="TSNullKeyword"?!1:t==null||(0, B.default)(e,t)}function rbt(e,t){return !e||e.type!=="TSNumberKeyword"?!1:t==null||(0, B.default)(e,t)}function nbt(e,t){return !e||e.type!=="TSObjectKeyword"?!1:t==null||(0, B.default)(e,t)}function ibt(e,t){return !e||e.type!=="TSStringKeyword"?!1:t==null||(0, B.default)(e,t)}function sbt(e,t){return !e||e.type!=="TSSymbolKeyword"?!1:t==null||(0, B.default)(e,t)}function abt(e,t){return !e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0, B.default)(e,t)}function obt(e,t){return !e||e.type!=="TSUnknownKeyword"?!1:t==null||(0, B.default)(e,t)}function ubt(e,t){return !e||e.type!=="TSVoidKeyword"?!1:t==null||(0, B.default)(e,t)}function lbt(e,t){return !e||e.type!=="TSThisType"?!1:t==null||(0, B.default)(e,t)}function cbt(e,t){return !e||e.type!=="TSFunctionType"?!1:t==null||(0, B.default)(e,t)}function pbt(e,t){return !e||e.type!=="TSConstructorType"?!1:t==null||(0, B.default)(e,t)}function fbt(e,t){return !e||e.type!=="TSTypeReference"?!1:t==null||(0, B.default)(e,t)}function hbt(e,t){return !e||e.type!=="TSTypePredicate"?!1:t==null||(0, B.default)(e,t)}function dbt(e,t){return !e||e.type!=="TSTypeQuery"?!1:t==null||(0, B.default)(e,t)}function mbt(e,t){return !e||e.type!=="TSTypeLiteral"?!1:t==null||(0, B.default)(e,t)}function ybt(e,t){return !e||e.type!=="TSArrayType"?!1:t==null||(0, B.default)(e,t)}function gbt(e,t){return !e||e.type!=="TSTupleType"?!1:t==null||(0, B.default)(e,t)}function Sbt(e,t){return !e||e.type!=="TSOptionalType"?!1:t==null||(0, B.default)(e,t)}function Tbt(e,t){return !e||e.type!=="TSRestType"?!1:t==null||(0, B.default)(e,t)}function Ebt(e,t){return !e||e.type!=="TSNamedTupleMember"?!1:t==null||(0, B.default)(e,t)}function bbt(e,t){return !e||e.type!=="TSUnionType"?!1:t==null||(0, B.default)(e,t)}function vbt(e,t){return !e||e.type!=="TSIntersectionType"?!1:t==null||(0, B.default)(e,t)}function _bt(e,t){return !e||e.type!=="TSConditionalType"?!1:t==null||(0, B.default)(e,t)}function xbt(e,t){return !e||e.type!=="TSInferType"?!1:t==null||(0, B.default)(e,t)}function Abt(e,t){return !e||e.type!=="TSParenthesizedType"?!1:t==null||(0, B.default)(e,t)}function Pbt(e,t){return !e||e.type!=="TSTypeOperator"?!1:t==null||(0, B.default)(e,t)}function Cbt(e,t){return !e||e.type!=="TSIndexedAccessType"?!1:t==null||(0, B.default)(e,t)}function wbt(e,t){return !e||e.type!=="TSMappedType"?!1:t==null||(0, B.default)(e,t)}function Ibt(e,t){return !e||e.type!=="TSLiteralType"?!1:t==null||(0, B.default)(e,t)}function Obt(e,t){return !e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0, B.default)(e,t)}function Dbt(e,t){return !e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0, B.default)(e,t)}function Nbt(e,t){return !e||e.type!=="TSInterfaceBody"?!1:t==null||(0, B.default)(e,t)}function Rbt(e,t){return !e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0, B.default)(e,t)}function Mbt(e,t){return !e||e.type!=="TSInstantiationExpression"?!1:t==null||(0, B.default)(e,t)}function Lbt(e,t){return !e||e.type!=="TSAsExpression"?!1:t==null||(0, B.default)(e,t)}function kbt(e,t){return !e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0, B.default)(e,t)}function Fbt(e,t){return !e||e.type!=="TSTypeAssertion"?!1:t==null||(0, B.default)(e,t)}function Bbt(e,t){return !e||e.type!=="TSEnumDeclaration"?!1:t==null||(0, B.default)(e,t)}function jbt(e,t){return !e||e.type!=="TSEnumMember"?!1:t==null||(0, B.default)(e,t)}function Ubt(e,t){return !e||e.type!=="TSModuleDeclaration"?!1:t==null||(0, B.default)(e,t)}function qbt(e,t){return !e||e.type!=="TSModuleBlock"?!1:t==null||(0, B.default)(e,t)}function Vbt(e,t){return !e||e.type!=="TSImportType"?!1:t==null||(0, B.default)(e,t)}function Hbt(e,t){return !e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0, B.default)(e,t)}function Gbt(e,t){return !e||e.type!=="TSExternalModuleReference"?!1:t==null||(0, B.default)(e,t)}function $bt(e,t){return !e||e.type!=="TSNonNullExpression"?!1:t==null||(0, B.default)(e,t)}function Kbt(e,t){return !e||e.type!=="TSExportAssignment"?!1:t==null||(0, B.default)(e,t)}function Ybt(e,t){return !e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0, B.default)(e,t)}function Wbt(e,t){return !e||e.type!=="TSTypeAnnotation"?!1:t==null||(0, B.default)(e,t)}function Xbt(e,t){return !e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0, B.default)(e,t)}function zbt(e,t){return !e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0, B.default)(e,t)}function Jbt(e,t){return !e||e.type!=="TSTypeParameter"?!1:t==null||(0, B.default)(e,t)}function Qbt(e,t){if(!e)return !1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return !1}break;default:return !1}return t==null||(0, B.default)(e,t)}function Zbt(e,t){if(!e)return !1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return !1}break;default:return !1}return t==null||(0, B.default)(e,t)}function evt(e,t){if(!e)return !1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return !1}return t==null||(0, B.default)(e,t)}function tvt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return !1}return t==null||(0, B.default)(e,t)}function rvt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return !1}return t==null||(0, B.default)(e,t)}function nvt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return !1}return t==null||(0, B.default)(e,t)}function ivt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return !1}break;default:return !1}return t==null||(0, B.default)(e,t)}function svt(e,t){if(!e)return !1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return !1}return t==null||(0, B.default)(e,t)}function avt(e,t){if(!e)return !1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function ovt(e,t){if(!e)return !1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function uvt(e,t){if(!e)return !1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function lvt(e,t){if(!e)return !1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function cvt(e,t){if(!e)return !1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return !1}return t==null||(0, B.default)(e,t)}function pvt(e,t){if(!e)return !1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function fvt(e,t){if(!e)return !1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return !1}return t==null||(0, B.default)(e,t)}function hvt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return !1}return t==null||(0, B.default)(e,t)}function dvt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return !1}return t==null||(0, B.default)(e,t)}function mvt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return !1}return t==null||(0, B.default)(e,t)}function yvt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return !1}return t==null||(0, B.default)(e,t)}function gvt(e,t){if(!e)return !1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return !1}break;default:return !1}return t==null||(0, B.default)(e,t)}function Svt(e,t){if(!e)return !1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return !1}break;default:return !1}return t==null||(0, B.default)(e,t)}function Tvt(e,t){if(!e)return !1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return !1}return t==null||(0, B.default)(e,t)}function Evt(e,t){if(!e)return !1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return !1}return t==null||(0, B.default)(e,t)}function bvt(e,t){if(!e)return !1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return !1}return t==null||(0, B.default)(e,t)}function vvt(e,t){if(!e)return !1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return !1}return t==null||(0, B.default)(e,t)}function _vt(e,t){if(!e)return !1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return !1}return t==null||(0, B.default)(e,t)}function xvt(e,t){if(!e)return !1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return !1}return t==null||(0, B.default)(e,t)}function Avt(e,t){if(!e)return !1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return !1}return t==null||(0, B.default)(e,t)}function Pvt(e,t){if(!e)return !1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return !1}return t==null||(0, B.default)(e,t)}function Cvt(e,t){if(!e)return !1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return !1}return t==null||(0, B.default)(e,t)}function wvt(e,t){if(!e)return !1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return !1}return t==null||(0, B.default)(e,t)}function m_e(e,t){if(!e)return !1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return !1}return t==null||(0, B.default)(e,t)}function Ivt(e,t){if(!e)return !1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return !1}return t==null||(0, B.default)(e,t)}function Ovt(e,t){if(!e)return !1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return !1}return t==null||(0, B.default)(e,t)}function Dvt(e,t){if(!e)return !1;switch(e.type){case"ClassAccessorProperty":break;default:return !1}return t==null||(0, B.default)(e,t)}function Nvt(e,t){if(!e)return !1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return !1}return t==null||(0, B.default)(e,t)}function Rvt(e,t){if(!e)return !1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return !1}return t==null||(0, B.default)(e,t)}function Mvt(e,t){if(!e)return !1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return !1}return t==null||(0, B.default)(e,t)}function Lvt(e,t){if(!e)return !1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return !1}return t==null||(0, B.default)(e,t)}function kvt(e,t){if(!e)return !1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return !1}return t==null||(0, B.default)(e,t)}function Fvt(e,t){if(!e)return !1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return !1}return t==null||(0, B.default)(e,t)}function Bvt(e,t){if(!e)return !1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return !1}return t==null||(0, B.default)(e,t)}function jvt(e,t){if(!e)return !1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return !1}return t==null||(0, B.default)(e,t)}function Uvt(e,t){if(!e)return !1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return !1}return t==null||(0, B.default)(e,t)}function qvt(e,t){if(!e)return !1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return !1}return t==null||(0, B.default)(e,t)}function Vvt(e,t){if(!e)return !1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return !1}return t==null||(0, B.default)(e,t)}function Hvt(e,t){if(!e)return !1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return !1}return t==null||(0, B.default)(e,t)}function Gvt(e,t){if(!e)return !1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return !1}return t==null||(0, B.default)(e,t)}function $vt(e,t){if(!e)return !1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return !1}return t==null||(0, B.default)(e,t)}function Kvt(e,t){return (0, Nb.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0, B.default)(e,t)}function Yvt(e,t){return (0, Nb.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0, B.default)(e,t)}function Wvt(e,t){return (0, Nb.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0, B.default)(e,t)}function Xvt(e,t){return (0, Nb.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0, B.default)(e,t)}function zvt(e,t){return (0, Nb.default)("isModuleDeclaration","isImportOrExportDeclaration"),m_e(e,t)}});var Lj=chunkTKGT252T_js.c(Mj=>{Object.defineProperty(Mj,"__esModule",{value:!0});Mj.default=Jvt;var Rb=ci();function Jvt(e,t,r){if(!(0, Rb.isMemberExpression)(e))return !1;let n=Array.isArray(t)?t:t.split("."),i=[],s;for(s=e;(0, Rb.isMemberExpression)(s);s=s.object)i.push(s.property);if(i.push(s),i.length<n.length||!r&&i.length>n.length)return !1;for(let a=0,o=i.length-1;a<n.length;a++,o--){let u=i[o],l;if((0, Rb.isIdentifier)(u))l=u.name;else if((0, Rb.isStringLiteral)(u))l=u.value;else if((0, Rb.isThisExpression)(u))l="this";else return !1;if(n[a]!==l)return !1}return !0}});var Fj=chunkTKGT252T_js.c(kj=>{Object.defineProperty(kj,"__esModule",{value:!0});kj.default=Zvt;var Qvt=Lj();function Zvt(e,t){let r=e.split(".");return n=>(0, Qvt.default)(n,r,t)}});var y_e=chunkTKGT252T_js.c(ww=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.default=void 0;var e_t=Fj(),t_t=(0, e_t.default)("React.Component");ww.default=t_t;});var g_e=chunkTKGT252T_js.c(Bj=>{Object.defineProperty(Bj,"__esModule",{value:!0});Bj.default=r_t;function r_t(e){return !!e&&/^[a-z]/.test(e)}});var jj=chunkTKGT252T_js.c((Han,S_e)=>{var Mb=null;function Lb(e){if(Mb!==null&&typeof Mb.property){let t=Mb;return Mb=Lb.prototype=null,t}return Mb=Lb.prototype=e??Object.create(null),new Lb}Lb();S_e.exports=function(t){return Lb(t)};});var Iw=chunkTKGT252T_js.c(Uj=>{Object.defineProperty(Uj,"__esModule",{value:!0});Uj.default=n_t;var T_e=xo();function n_t(e,t){if(e===t)return !0;if(e==null||T_e.ALIAS_KEYS[t])return !1;let r=T_e.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return !0;for(let n of r)if(e===n)return !0}return !1}});var Vj=chunkTKGT252T_js.c(qj=>{Object.defineProperty(qj,"__esModule",{value:!0});qj.default=s_t;var i_t=xo();function s_t(e,t){if(e===t)return !0;let r=i_t.PLACEHOLDERS_ALIAS[e];if(r){for(let n of r)if(t===n)return !0}return !1}});var SS=chunkTKGT252T_js.c(Hj=>{Object.defineProperty(Hj,"__esModule",{value:!0});Hj.default=c_t;var a_t=Cw(),o_t=Iw(),u_t=Vj(),l_t=xo();function c_t(e,t,r){return t?(0, o_t.default)(t.type,e)?typeof r>"u"?!0:(0, a_t.default)(t,r):!r&&t.type==="Placeholder"&&e in l_t.FLIPPED_ALIAS_KEYS?(0, u_t.default)(t.expectedNode,e):!1:!1}});var TS=chunkTKGT252T_js.c($j=>{Object.defineProperty($j,"__esModule",{value:!0});$j.default=p_t;var Gj=chunkF6FLWRPJ_js.k();function p_t(e,t=!0){return typeof e!="string"||t&&((0, Gj.isKeyword)(e)||(0, Gj.isStrictReservedWord)(e,!0))?!1:(0, Gj.isIdentifierName)(e)}});var __e=chunkTKGT252T_js.c(kb=>{Object.defineProperty(kb,"__esModule",{value:!0});kb.readCodePoint=v_e;kb.readInt=b_e;kb.readStringContents=h_t;var f_t=function(t){return t>=48&&t<=57},E_e={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ow={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function h_t(e,t,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:h}=t;for(;;){if(r>=h){s.unterminated(a,o,u),l+=t.slice(p,r);break}let f=t.charCodeAt(r);if(d_t(e,f,t,r)){l+=t.slice(p,r);break}if(f===92){l+=t.slice(p,r);let d=m_t(t,r,n,i,e==="template",s);d.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=d.ch,{pos:r,lineStart:n,curLine:i}=d,p=r;}else f===8232||f===8233?(++r,++i,n=r):f===10||f===13?e==="template"?(l+=t.slice(p,r)+`
`,++r,f===13&&t.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(a,o,u):++r;}return {pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function d_t(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function m_t(e,t,r,n,i,s){let a=!i;t++;let o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(`
`);case 114:return o("\r");case 120:{let l;return {code:l,pos:t}=Kj(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return {code:l,pos:t}=v_e(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let l=t-1,p=e.slice(l,t+2).match(/^[0-7]+/)[0],h=parseInt(p,8);h>255&&(p=p.slice(0,-1),h=parseInt(p,8)),t+=p.length-1;let f=e.charCodeAt(t);if(p!=="0"||f===56||f===57){if(i)return o(null);s.strictNumericEscape(l,r,n);}return o(String.fromCharCode(h))}return o(String.fromCharCode(u))}}function Kj(e,t,r,n,i,s,a,o){let u=t,l;return {n:l,pos:t}=b_e(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function b_e(e,t,r,n,i,s,a,o,u,l){let c=t,p=i===16?E_e.hex:E_e.decBinOct,h=i===16?Ow.hex:i===10?Ow.dec:i===8?Ow.oct:Ow.bin,f=!1,d=0;for(let m=0,y=s??1/0;m<y;++m){let g=e.charCodeAt(t),v;if(g===95&&o!=="bail"){let E=e.charCodeAt(t-1),S=e.charCodeAt(t+1);if(o){if(Number.isNaN(S)||!h(S)||p.has(E)||p.has(S)){if(l)return {n:null,pos:t};u.unexpectedNumericSeparator(t,r,n);}}else {if(l)return {n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n);}++t;continue}if(g>=97?v=g-97+10:g>=65?v=g-65+10:f_t(g)?v=g-48:v=1/0,v>=i){if(v<=9&&l)return {n:null,pos:t};if(v<=9&&u.invalidDigit(t,r,n,i))v=0;else if(a)v=0,f=!0;else break}++t,d=d*i+v;}return t===c||s!=null&&t-c!==s||f?{n:null,pos:t}:{n:d,pos:t}}function v_e(e,t,r,n,i,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Kj(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return {code:null,pos:t}}else ({code:o,pos:t}=Kj(e,t,r,n,4,!1,i,s));return {code:o,pos:t}}});var Lf=chunkTKGT252T_js.c(Kt=>{Object.defineProperty(Kt,"__esModule",{value:!0});Kt.UPDATE_OPERATORS=Kt.UNARY_OPERATORS=Kt.STRING_UNARY_OPERATORS=Kt.STATEMENT_OR_BLOCK_KEYS=Kt.NUMBER_UNARY_OPERATORS=Kt.NUMBER_BINARY_OPERATORS=Kt.NOT_LOCAL_BINDING=Kt.LOGICAL_OPERATORS=Kt.INHERIT_KEYS=Kt.FOR_INIT_KEYS=Kt.FLATTENABLE_KEYS=Kt.EQUALITY_BINARY_OPERATORS=Kt.COMPARISON_BINARY_OPERATORS=Kt.COMMENT_KEYS=Kt.BOOLEAN_UNARY_OPERATORS=Kt.BOOLEAN_NUMBER_BINARY_OPERATORS=Kt.BOOLEAN_BINARY_OPERATORS=Kt.BLOCK_SCOPED_SYMBOL=Kt.BINARY_OPERATORS=Kt.ASSIGNMENT_OPERATORS=void 0;Kt.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];Kt.FLATTENABLE_KEYS=["body","expressions"];Kt.FOR_INIT_KEYS=["left","init"];Kt.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];var y_t=Kt.LOGICAL_OPERATORS=["||","&&","??"];Kt.UPDATE_OPERATORS=["++","--"];var g_t=Kt.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],S_t=Kt.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],T_t=Kt.COMPARISON_BINARY_OPERATORS=[...S_t,"in","instanceof"],E_t=Kt.BOOLEAN_BINARY_OPERATORS=[...T_t,...g_t],x_e=Kt.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];Kt.BINARY_OPERATORS=["+",...x_e,...E_t,"|>"];Kt.ASSIGNMENT_OPERATORS=["=","+=",...x_e.map(e=>e+"="),...y_t.map(e=>e+"=")];var b_t=Kt.BOOLEAN_UNARY_OPERATORS=["delete","!"],v_t=Kt.NUMBER_UNARY_OPERATORS=["+","-","~"],__t=Kt.STRING_UNARY_OPERATORS=["typeof"];Kt.UNARY_OPERATORS=["void","throw",...b_t,...v_t,...__t];Kt.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};Kt.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");Kt.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding");});var _c=chunkTKGT252T_js.c(wr=>{Object.defineProperty(wr,"__esModule",{value:!0});wr.VISITOR_KEYS=wr.NODE_PARENT_VALIDATIONS=wr.NODE_FIELDS=wr.FLIPPED_ALIAS_KEYS=wr.DEPRECATED_KEYS=wr.BUILDER_KEYS=wr.ALIAS_KEYS=void 0;wr.arrayOf=P_e;wr.arrayOfType=C_e;wr.assertEach=w_e;wr.assertNodeOrValueType=L_t;wr.assertNodeType=Wj;wr.assertOneOf=M_t;wr.assertOptionalChainStart=F_t;wr.assertShape=k_t;wr.assertValueType=Jj;wr.chain=I_e;wr.default=O_e;wr.defineAliasedType=U_t;wr.typeIs=Rw;wr.validate=zj;wr.validateArrayOfType=R_t;wr.validateOptional=D_t;wr.validateOptionalType=N_t;wr.validateType=O_t;var A_e=SS(),Nw=Mw(),x_t=wr.VISITOR_KEYS={},A_t=wr.ALIAS_KEYS={},Yj=wr.FLIPPED_ALIAS_KEYS={},P_t=wr.NODE_FIELDS={},C_t=wr.BUILDER_KEYS={},w_t=wr.DEPRECATED_KEYS={},I_t=wr.NODE_PARENT_VALIDATIONS={};function Dw(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function zj(e){return {validate:e}}function Rw(e){return typeof e=="string"?Wj(e):Wj(...e)}function O_t(e){return zj(Rw(e))}function D_t(e){return {validate:e,optional:!0}}function N_t(e){return {validate:Rw(e),optional:!0}}function P_e(e){return I_e(Jj("array"),w_e(e))}function C_e(e){return P_e(Rw(e))}function R_t(e){return zj(C_e(e))}function w_e(e){function t(r,n,i){if(Array.isArray(i))for(let s=0;s<i.length;s++){let a=`${n}[${s}]`,o=i[s];e(r,a,o),process.env.BABEL_TYPES_8_BREAKING&&(0, Nw.validateChild)(r,a,o);}}return t.each=e,t}function M_t(...e){function t(r,n,i){if(e.indexOf(i)<0)throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(i)}`)}return t.oneOf=e,t}function Wj(...e){function t(r,n,i){for(let s of e)if((0, A_e.default)(s,i)){(0, Nw.validateChild)(r,n,i);return}throw new TypeError(`Property ${n} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i==null?void 0:i.type)}`)}return t.oneOfNodeTypes=e,t}function L_t(...e){function t(r,n,i){for(let s of e)if(Dw(i)===s||(0, A_e.default)(s,i)){(0, Nw.validateChild)(r,n,i);return}throw new TypeError(`Property ${n} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i==null?void 0:i.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function Jj(e){function t(r,n,i){if(!(Dw(i)===e))throw new TypeError(`Property ${n} expected type of ${e} but got ${Dw(i)}`)}return t.type=e,t}function k_t(e){function t(r,n,i){let s=[];for(let a of Object.keys(e))try{(0,Nw.validateField)(r,a,i[a],e[a]);}catch(o){if(o instanceof TypeError){s.push(o.message);continue}throw o}if(s.length)throw new TypeError(`Property ${n} of ${r.type} expected to have the following:
${s.join(`
`)}`)}return t.shapeOf=e,t}function F_t(){function e(t){var r;let n=t;for(;t;){let{type:i}=n;if(i==="OptionalCallExpression"){if(n.optional)return;n=n.callee;continue}if(i==="OptionalMemberExpression"){if(n.optional)return;n=n.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=n)==null?void 0:r.type}`)}return e}function I_e(...e){function t(...r){for(let n of e)n(...r);}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var B_t=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],j_t=["default","optional","deprecated","validate"],Xj={};function U_t(...e){return (t,r={})=>{let n=r.aliases;if(!n){var i;r.inherits&&(n=(i=Xj[r.inherits].aliases)==null?void 0:i.slice()),(n)!=null||(n=[]),r.aliases=n;}let a=e.filter(o=>!n.includes(o));n.unshift(...a),O_e(t,r);}}function O_e(e,t={}){let r=t.inherits&&Xj[t.inherits]||{},n=t.fields;if(!n&&(n={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let u of o){let l=r.fields[u],c=l.default;if(Array.isArray(c)?c.length>0:c&&typeof c=="object")throw new Error("field defaults can only be primitives or empty arrays currently");n[u]={default:Array.isArray(c)?[]:c,optional:l.optional,deprecated:l.deprecated,validate:l.validate};}}let i=t.visitor||r.visitor||[],s=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(B_t.indexOf(o)===-1)throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(w_t[t.deprecatedAlias]=e);for(let o of i.concat(a))n[o]=n[o]||{};for(let o of Object.keys(n)){let u=n[o];u.default!==void 0&&a.indexOf(o)===-1&&(u.optional=!0),u.default===void 0?u.default=null:!u.validate&&u.default!=null&&(u.validate=Jj(Dw(u.default)));for(let l of Object.keys(u))if(j_t.indexOf(l)===-1)throw new Error(`Unknown field key "${l}" on ${e}.${o}`)}x_t[e]=t.visitor=i,C_t[e]=t.builder=a,P_t[e]=t.fields=n,A_t[e]=t.aliases=s,s.forEach(o=>{Yj[o]=Yj[o]||[],Yj[o].push(e);}),t.validate&&(I_t[e]=t.validate),Xj[e]=t;}});var Zj=chunkTKGT252T_js.c(Sa=>{Object.defineProperty(Sa,"__esModule",{value:!0});Sa.patternLikeCommon=Sa.functionTypeAnnotationCommon=Sa.functionDeclarationCommon=Sa.functionCommon=Sa.classMethodOrPropertyCommon=Sa.classMethodOrDeclareMethodCommon=void 0;var qs=SS(),q_t=TS(),D_e=chunkF6FLWRPJ_js.k(),V_t=__e(),Fb=Lf(),w=_c(),Oe=(0, w.defineAliasedType)("Standardized");Oe("ArrayExpression",{fields:{elements:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});Oe("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, w.assertValueType)("string");let e=(0, w.assertOneOf)(...Fb.ASSIGNMENT_OPERATORS),t=(0, w.assertOneOf)("=");return function(r,n,i){((0, qs.default)("Pattern",r.left)?t:e)(r,n,i);}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, w.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0, w.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});Oe("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0, w.assertOneOf)(...Fb.BINARY_OPERATORS)},left:{validate:function(){let e=(0, w.assertNodeType)("Expression"),t=(0, w.assertNodeType)("Expression","PrivateName");return Object.assign(function(n,i,s){(n.operator==="in"?t:e)(n,i,s);},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0, w.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});Oe("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0, w.assertValueType)("string")}}});Oe("Directive",{visitor:["value"],fields:{value:{validate:(0, w.assertNodeType)("DirectiveLiteral")}}});Oe("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0, w.assertValueType)("string")}}});Oe("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Directive"))),default:[]},body:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]});Oe("BreakStatement",{visitor:["label"],fields:{label:{validate:(0, w.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Oe("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0, w.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, w.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0, w.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0, w.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Oe("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0, w.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0, w.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});Oe("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0, w.assertNodeType)("Expression")},consequent:{validate:(0, w.assertNodeType)("Expression")},alternate:{validate:(0, w.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});Oe("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0, w.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Oe("DebuggerStatement",{aliases:["Statement"]});Oe("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0, w.assertNodeType)("Expression")},body:{validate:(0, w.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});Oe("EmptyStatement",{aliases:["Statement"]});Oe("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0, w.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});Oe("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0, w.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.assertEach)((0, w.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0, w.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});Oe("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, w.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0, w.assertNodeType)("Expression")},body:{validate:(0, w.assertNodeType)("Statement")}}});Oe("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0, w.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0, w.assertNodeType)("Expression"),optional:!0},update:{validate:(0, w.assertNodeType)("Expression"),optional:!0},body:{validate:(0, w.assertNodeType)("Statement")}}});var ES=()=>({params:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}});Sa.functionCommon=ES;var kd=()=>({returnType:{validate:(0, w.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0, w.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});Sa.functionTypeAnnotationCommon=kd;var N_e=()=>Object.assign({},ES(),{declare:{validate:(0, w.assertValueType)("boolean"),optional:!0},id:{validate:(0, w.assertNodeType)("Identifier"),optional:!0}});Sa.functionDeclarationCommon=N_e;Oe("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},N_e(),kd(),{body:{validate:(0, w.assertNodeType)("BlockStatement")},predicate:{validate:(0, w.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return ()=>{};let e=(0, w.assertNodeType)("Identifier");return function(t,r,n){(0, qs.default)("ExportDefaultDeclaration",t)||e(n,"id",n.id);}}()});Oe("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},ES(),kd(),{id:{validate:(0, w.assertNodeType)("Identifier"),optional:!0},body:{validate:(0, w.assertNodeType)("BlockStatement")},predicate:{validate:(0, w.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var bS=()=>({typeAnnotation:{validate:(0, w.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0, w.assertValueType)("boolean"),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0}});Sa.patternLikeCommon=bS;Oe("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},bS(),{name:{validate:(0, w.chain)((0, w.assertValueType)("string"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&!(0, q_t.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"}))}}),validate(e,t,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let n=/\.(\w+)$/.exec(t);if(!n)return;let[,i]=n,s={computed:!1};if(i==="property"){if((0, qs.default)("MemberExpression",e,s)||(0, qs.default)("OptionalMemberExpression",e,s))return}else if(i==="key"){if((0, qs.default)("Property",e,s)||(0, qs.default)("Method",e,s))return}else if(i==="exported"){if((0, qs.default)("ExportSpecifier",e))return}else if(i==="imported"){if((0, qs.default)("ImportSpecifier",e,{imported:r}))return}else if(i==="meta"&&(0, qs.default)("MetaProperty",e,{meta:r}))return;if(((0, D_e.isKeyword)(r.name)||(0, D_e.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}});Oe("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0, w.assertNodeType)("Expression")},consequent:{validate:(0, w.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0, w.assertNodeType)("Statement")}}});Oe("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0, w.assertNodeType)("Identifier")},body:{validate:(0, w.assertNodeType)("Statement")}}});Oe("StringLiteral",{builder:["value"],fields:{value:{validate:(0, w.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Oe("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0, w.chain)((0, w.assertValueType)("number"),Object.assign(function(e,t,r){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});Oe("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});Oe("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0, w.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});Oe("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0, w.assertValueType)("string")},flags:{validate:(0, w.chain)((0, w.assertValueType)("string"),Object.assign(function(e,t,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let n=/[^gimsuy]/.exec(r);if(n)throw new TypeError(`"${n[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}});Oe("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0, w.assertOneOf)(...Fb.LOGICAL_OPERATORS)},left:{validate:(0, w.assertNodeType)("Expression")},right:{validate:(0, w.assertNodeType)("Expression")}}});Oe("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0, w.assertNodeType)("Expression","Super")},property:{validate:function(){let e=(0, w.assertNodeType)("Identifier","PrivateName"),t=(0, w.assertNodeType)("Expression"),r=function(n,i,s){(n.computed?t:e)(n,i,s);};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, w.assertOneOf)(!0,!1),optional:!0}})});Oe("NewExpression",{inherits:"CallExpression"});Oe("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0, w.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0, w.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Directive"))),default:[]},body:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]});Oe("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}});Oe("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},ES(),kd(),{kind:Object.assign({validate:(0, w.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let e=(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0, w.assertNodeType)("Expression"),r=function(n,i,s){(n.computed?t:e)(n,i,s);};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0, w.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});Oe("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){let e=(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0, w.assertNodeType)("Expression");return Object.assign(function(n,i,s){(n.computed?t:e)(n,i,s);},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0, w.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0, w.chain)((0, w.assertValueType)("boolean"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")},{type:"boolean"}),function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!(0, qs.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}),default:!1},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){let e=(0, w.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0, w.assertNodeType)("Expression");return function(r,n,i){if(!process.env.BABEL_TYPES_8_BREAKING)return;((0, qs.default)("ObjectPattern",r)?e:t)(i,"value",i.value);}}()});Oe("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},bS(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, w.assertNodeType)("LVal")}}),validate(e,t){if(!process.env.BABEL_TYPES_8_BREAKING)return;let r=/(\w+)\[(\d+)\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");let[,n,i]=r;if(e[n].length>+i+1)throw new TypeError(`RestElement must be last element of ${n}`)}});Oe("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, w.assertNodeType)("Expression"),optional:!0}}});Oe("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Expression")))}},aliases:["Expression"]});Oe("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0, w.assertNodeType)("Expression")}}});Oe("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0, w.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Statement")))}}});Oe("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0, w.assertNodeType)("Expression")},cases:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("SwitchCase")))}}});Oe("ThisExpression",{aliases:["Expression"]});Oe("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, w.assertNodeType)("Expression")}}});Oe("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0, w.chain)((0, w.assertNodeType)("BlockStatement"),Object.assign(function(e){if(process.env.BABEL_TYPES_8_BREAKING&&!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0, w.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0, w.assertNodeType)("BlockStatement")}}});Oe("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0, w.assertNodeType)("Expression")},operator:{validate:(0, w.assertOneOf)(...Fb.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});Oe("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.assertNodeType)("Identifier","MemberExpression"):(0, w.assertNodeType)("Expression")},operator:{validate:(0, w.assertOneOf)(...Fb.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});Oe("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0, w.assertValueType)("boolean"),optional:!0},kind:{validate:(0, w.assertOneOf)("var","let","const","using","await using")},declarations:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("VariableDeclarator")))}},validate(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&(0, qs.default)("ForXStatement",e,{left:r})&&r.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`)}});Oe("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, w.assertNodeType)("LVal");let e=(0, w.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),t=(0, w.assertNodeType)("Identifier");return function(r,n,i){(r.init?e:t)(r,n,i);}}()},definite:{optional:!0,validate:(0, w.assertValueType)("boolean")},init:{optional:!0,validate:(0, w.assertNodeType)("Expression")}}});Oe("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0, w.assertNodeType)("Expression")},body:{validate:(0, w.assertNodeType)("Statement")}}});Oe("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0, w.assertNodeType)("Expression")},body:{validate:(0, w.assertNodeType)("Statement")}}});Oe("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},bS(),{left:{validate:(0, w.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0, w.assertNodeType)("Expression")},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0}})});Oe("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},bS(),{elements:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeOrValueType)("null","PatternLike","LVal")))}})});Oe("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},ES(),kd(),{expression:{validate:(0, w.assertValueType)("boolean")},body:{validate:(0, w.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0, w.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});Oe("ClassBody",{visitor:["body"],fields:{body:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}});Oe("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0, w.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0, w.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0, w.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0, w.assertNodeType)("Expression")},superTypeParameters:{validate:(0, w.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0, w.assertNodeType)("InterfaceExtends"),optional:!0}}});Oe("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0, w.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0, w.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0, w.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0, w.assertNodeType)("Expression")},superTypeParameters:{validate:(0, w.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0, w.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0, w.assertValueType)("boolean"),optional:!0},abstract:{validate:(0, w.assertValueType)("boolean"),optional:!0}},validate:function(){let e=(0, w.assertNodeType)("Identifier");return function(t,r,n){process.env.BABEL_TYPES_8_BREAKING&&((0, qs.default)("ExportDefaultDeclaration",t)||e(n,"id",n.id));}}()});Oe("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:(0, w.assertNodeType)("StringLiteral")},exportKind:(0, w.validateOptional)((0, w.assertOneOf)("type","value")),attributes:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))}}});Oe("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0, w.assertNodeType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:(0, w.validateOptional)((0, w.assertOneOf)("value"))}});Oe("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0, w.chain)((0, w.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")},{oneOfNodeTypes:["Declaration"]}),function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")})},attributes:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)(function(){let e=(0, w.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0, w.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?function(r,n,i){(r.source?e:t)(r,n,i);}:e}()))},source:{validate:(0, w.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0, w.validateOptional)((0, w.assertOneOf)("type","value"))}});Oe("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, w.assertNodeType)("Identifier")},exported:{validate:(0, w.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0, w.assertOneOf)("type","value"),optional:!0}}});Oe("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, w.assertNodeType)("VariableDeclaration","LVal");let e=(0, w.assertNodeType)("VariableDeclaration"),t=(0, w.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(r,n,i){(0, qs.default)("VariableDeclaration",i)?e(r,n,i):t(r,n,i);}}()},right:{validate:(0, w.assertNodeType)("Expression")},body:{validate:(0, w.assertNodeType)("Statement")},await:{default:!1}}});Oe("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportAttribute")))},module:{optional:!0,validate:(0, w.assertValueType)("boolean")},phase:{default:null,validate:(0, w.assertOneOf)("source","defer")},specifiers:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0, w.assertNodeType)("StringLiteral")},importKind:{validate:(0, w.assertOneOf)("type","typeof","value"),optional:!0}}});Oe("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, w.assertNodeType)("Identifier")}}});Oe("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, w.assertNodeType)("Identifier")}}});Oe("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, w.assertNodeType)("Identifier")},imported:{validate:(0, w.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0, w.assertOneOf)("type","typeof","value"),optional:!0}}});Oe("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0, w.assertOneOf)("source","defer")},source:{validate:(0, w.assertNodeType)("Expression")},options:{validate:(0, w.assertNodeType)("Expression"),optional:!0}}});Oe("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0, w.chain)((0, w.assertNodeType)("Identifier"),Object.assign(function(e,t,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let n;switch(r.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta";break}if(!(0, qs.default)("Identifier",e.property,{name:n}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0, w.assertNodeType)("Identifier")}}});var Lw=()=>({abstract:{validate:(0, w.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0, w.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0, w.assertValueType)("boolean"),optional:!0},key:{validate:(0, w.chain)(function(){let e=(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0, w.assertNodeType)("Expression");return function(r,n,i){(r.computed?t:e)(r,n,i);}}(),(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});Sa.classMethodOrPropertyCommon=Lw;var Qj=()=>Object.assign({},ES(),Lw(),{params:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0, w.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0, w.chain)((0, w.assertValueType)("string"),(0, w.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0}});Sa.classMethodOrDeclareMethodCommon=Qj;Oe("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},Qj(),kd(),{body:{validate:(0, w.assertNodeType)("BlockStatement")}})});Oe("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},bS(),{properties:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("RestElement","ObjectProperty")))}})});Oe("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0, w.assertNodeType)("Expression")}}});Oe("Super",{aliases:["Expression"]});Oe("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0, w.assertNodeType)("Expression")},quasi:{validate:(0, w.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0, w.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Oe("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0, w.chain)((0, w.assertShape)({raw:{validate:(0, w.assertValueType)("string")},cooked:{validate:(0, w.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,n=!1,i=()=>{throw new Error("Internal @babel/types error.")},{str:s,firstInvalidLoc:a}=(0, V_t.readStringContents)("template",r,0,0,0,{unterminated(){n=!0;},strictNumericEscape:i,invalidEscapeSequence:i,numericSeparatorInEscapeSequence:i,unexpectedNumericSeparator:i,invalidDigit:i,invalidCodePoint:i});if(!n)throw new Error("Invalid raw");t.value.cooked=a?null:s;})},tail:{default:!1}}});Oe("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("TemplateElement")))},expressions:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Oe("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0, w.chain)((0, w.assertValueType)("boolean"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0, w.assertNodeType)("Expression")}}});Oe("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0, w.assertNodeType)("Expression")}}});Oe("Import",{aliases:["Expression"]});Oe("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0, w.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Oe("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, w.assertNodeType)("Identifier")}}});Oe("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0, w.assertNodeType)("Expression")},property:{validate:function(){let e=(0, w.assertNodeType)("Identifier"),t=(0, w.assertNodeType)("Expression");return Object.assign(function(n,i,s){(n.computed?t:e)(n,i,s);},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.chain)((0, w.assertValueType)("boolean"),(0, w.assertOptionalChainStart)()):(0, w.assertValueType)("boolean")}}});Oe("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0, w.assertNodeType)("Expression")},arguments:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, w.chain)((0, w.assertValueType)("boolean"),(0, w.assertOptionalChainStart)()):(0, w.assertValueType)("boolean")},typeArguments:{validate:(0, w.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0, w.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}});Oe("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Lw(),{value:{validate:(0, w.assertNodeType)("Expression"),optional:!0},definite:{validate:(0, w.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0, w.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0, w.assertValueType)("boolean"),optional:!0},declare:{validate:(0, w.assertValueType)("boolean"),optional:!0},variance:{validate:(0, w.assertNodeType)("Variance"),optional:!0}})});Oe("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Lw(),{key:{validate:(0, w.chain)(function(){let e=(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0, w.assertNodeType)("Expression");return function(r,n,i){(r.computed?t:e)(r,n,i);}}(),(0, w.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0, w.assertNodeType)("Expression"),optional:!0},definite:{validate:(0, w.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0, w.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0, w.assertValueType)("boolean"),optional:!0},declare:{validate:(0, w.assertValueType)("boolean"),optional:!0},variance:{validate:(0, w.assertNodeType)("Variance"),optional:!0}})});Oe("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0, w.assertNodeType)("PrivateName")},value:{validate:(0, w.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0, w.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Decorator"))),optional:!0},static:{validate:(0, w.assertValueType)("boolean"),default:!1},readonly:{validate:(0, w.assertValueType)("boolean"),optional:!0},definite:{validate:(0, w.assertValueType)("boolean"),optional:!0},variance:{validate:(0, w.assertNodeType)("Variance"),optional:!0}}});Oe("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Qj(),kd(),{kind:{validate:(0, w.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0, w.assertNodeType)("PrivateName")},body:{validate:(0, w.assertNodeType)("BlockStatement")}})});Oe("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0, w.assertNodeType)("Identifier")}}});Oe("StaticBlock",{visitor:["body"],fields:{body:{validate:(0, w.chain)((0, w.assertValueType)("array"),(0, w.assertEach)((0, w.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]});});var R_e=chunkTKGT252T_js.c(()=>{var ee=_c(),nt=(0, ee.defineAliasedType)("Flow"),eU=e=>{let t=e==="DeclareClass";nt(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),extends:(0, ee.validateOptional)((0, ee.arrayOfType)("InterfaceExtends"))},t?{mixins:(0, ee.validateOptional)((0, ee.arrayOfType)("InterfaceExtends")),implements:(0, ee.validateOptional)((0, ee.arrayOfType)("ClassImplements"))}:{},{body:(0, ee.validateType)("ObjectTypeAnnotation")})});};nt("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0, ee.validateType)("FlowType")}});nt("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterInstantiation")}});eU("DeclareClass");nt("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier"),predicate:(0, ee.validateOptionalType)("DeclaredPredicate")}});eU("DeclareInterface");nt("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)(["Identifier","StringLiteral"]),body:(0, ee.validateType)("BlockStatement"),kind:(0, ee.validateOptional)((0, ee.assertOneOf)("CommonJS","ES"))}});nt("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0, ee.validateType)("TypeAnnotation")}});nt("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),right:(0, ee.validateType)("FlowType")}});nt("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, ee.validateOptionalType)("FlowType"),impltype:(0, ee.validateOptionalType)("FlowType")}});nt("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier")}});nt("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0, ee.validateOptionalType)("Flow"),specifiers:(0, ee.validateOptional)((0, ee.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0, ee.validateOptionalType)("StringLiteral"),default:(0, ee.validateOptional)((0, ee.assertValueType)("boolean"))}});nt("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0, ee.validateType)("StringLiteral"),exportKind:(0, ee.validateOptional)((0, ee.assertOneOf)("type","value"))}});nt("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0, ee.validateType)("Flow")}});nt("ExistsTypeAnnotation",{aliases:["FlowType"]});nt("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),params:(0, ee.validate)((0, ee.arrayOfType)("FunctionTypeParam")),rest:(0, ee.validateOptionalType)("FunctionTypeParam"),this:(0, ee.validateOptionalType)("FunctionTypeParam"),returnType:(0, ee.validateType)("FlowType")}});nt("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0, ee.validateOptionalType)("Identifier"),typeAnnotation:(0, ee.validateType)("FlowType"),optional:(0, ee.validateOptional)((0, ee.assertValueType)("boolean"))}});nt("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0, ee.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0, ee.validateOptionalType)("TypeParameterInstantiation")}});nt("InferredPredicate",{aliases:["FlowPredicate"]});nt("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0, ee.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0, ee.validateOptionalType)("TypeParameterInstantiation")}});eU("InterfaceDeclaration");nt("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0, ee.validateOptional)((0, ee.arrayOfType)("InterfaceExtends")),body:(0, ee.validateType)("ObjectTypeAnnotation")}});nt("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, ee.validate)((0, ee.arrayOfType)("FlowType"))}});nt("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0, ee.validateType)("FlowType")}});nt("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, ee.validate)((0, ee.assertValueType)("number"))}});nt("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0, ee.validate)((0, ee.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:(0, ee.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0, ee.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0, ee.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0, ee.assertValueType)("boolean"),default:!1},inexact:(0, ee.validateOptional)((0, ee.assertValueType)("boolean"))}});nt("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0, ee.validateType)("Identifier"),value:(0, ee.validateType)("FlowType"),optional:(0, ee.validate)((0, ee.assertValueType)("boolean")),static:(0, ee.validate)((0, ee.assertValueType)("boolean")),method:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0, ee.validateType)("FlowType"),static:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0, ee.validateOptionalType)("Identifier"),key:(0, ee.validateType)("FlowType"),value:(0, ee.validateType)("FlowType"),static:(0, ee.validate)((0, ee.assertValueType)("boolean")),variance:(0, ee.validateOptionalType)("Variance")}});nt("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0, ee.validateType)(["Identifier","StringLiteral"]),value:(0, ee.validateType)("FlowType"),kind:(0, ee.validate)((0, ee.assertOneOf)("init","get","set")),static:(0, ee.validate)((0, ee.assertValueType)("boolean")),proto:(0, ee.validate)((0, ee.assertValueType)("boolean")),optional:(0, ee.validate)((0, ee.assertValueType)("boolean")),variance:(0, ee.validateOptionalType)("Variance"),method:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0, ee.validateType)("FlowType")}});nt("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, ee.validateOptionalType)("FlowType"),impltype:(0, ee.validateType)("FlowType")}});nt("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0, ee.validateType)("Identifier"),qualification:(0, ee.validateType)(["Identifier","QualifiedTypeIdentifier"])}});nt("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, ee.validate)((0, ee.assertValueType)("string"))}});nt("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, ee.validate)((0, ee.arrayOfType)("FlowType"))}});nt("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0, ee.validateType)("FlowType")}});nt("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, ee.validateType)("Identifier"),typeParameters:(0, ee.validateOptionalType)("TypeParameterDeclaration"),right:(0, ee.validateType)("FlowType")}});nt("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0, ee.validateType)("FlowType")}});nt("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0, ee.validateType)("Expression"),typeAnnotation:(0, ee.validateType)("TypeAnnotation")}});nt("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0, ee.validate)((0, ee.assertValueType)("string")),bound:(0, ee.validateOptionalType)("TypeAnnotation"),default:(0, ee.validateOptionalType)("FlowType"),variance:(0, ee.validateOptionalType)("Variance")}});nt("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0, ee.validate)((0, ee.arrayOfType)("TypeParameter"))}});nt("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0, ee.validate)((0, ee.arrayOfType)("FlowType"))}});nt("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, ee.validate)((0, ee.arrayOfType)("FlowType"))}});nt("Variance",{builder:["kind"],fields:{kind:(0, ee.validate)((0, ee.assertOneOf)("minus","plus"))}});nt("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});nt("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0, ee.validateType)("Identifier"),body:(0, ee.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}});nt("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, ee.validate)((0, ee.assertValueType)("boolean")),members:(0, ee.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, ee.validate)((0, ee.assertValueType)("boolean")),members:(0, ee.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, ee.validate)((0, ee.assertValueType)("boolean")),members:(0, ee.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0, ee.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});nt("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, ee.validateType)("Identifier"),init:(0, ee.validateType)("BooleanLiteral")}});nt("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, ee.validateType)("Identifier"),init:(0, ee.validateType)("NumericLiteral")}});nt("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, ee.validateType)("Identifier"),init:(0, ee.validateType)("StringLiteral")}});nt("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, ee.validateType)("Identifier")}});nt("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, ee.validateType)("FlowType"),indexType:(0, ee.validateType)("FlowType")}});nt("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, ee.validateType)("FlowType"),indexType:(0, ee.validateType)("FlowType"),optional:(0, ee.validate)((0, ee.assertValueType)("boolean"))}});});var M_e=chunkTKGT252T_js.c(()=>{var kr=_c(),Vs=(0, kr.defineAliasedType)("JSX");Vs("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0, kr.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0, kr.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});Vs("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0, kr.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});Vs("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0, kr.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0, kr.assertNodeType)("JSXClosingElement")},children:{validate:(0, kr.chain)((0, kr.assertValueType)("array"),(0, kr.assertEach)((0, kr.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:(0, kr.assertValueType)("boolean"),optional:!0}})});Vs("JSXEmptyExpression",{});Vs("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, kr.assertNodeType)("Expression","JSXEmptyExpression")}}});Vs("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, kr.assertNodeType)("Expression")}}});Vs("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0, kr.assertValueType)("string")}}});Vs("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0, kr.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0, kr.assertNodeType)("JSXIdentifier")}}});Vs("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0, kr.assertNodeType)("JSXIdentifier")},name:{validate:(0, kr.assertNodeType)("JSXIdentifier")}}});Vs("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0, kr.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0, kr.chain)((0, kr.assertValueType)("array"),(0, kr.assertEach)((0, kr.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0, kr.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Vs("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0, kr.assertNodeType)("Expression")}}});Vs("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0, kr.assertValueType)("string")}}});Vs("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0, kr.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0, kr.assertNodeType)("JSXClosingFragment")},children:{validate:(0, kr.chain)((0, kr.assertValueType)("array"),(0, kr.assertEach)((0, kr.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}});Vs("JSXOpeningFragment",{aliases:["Immutable"]});Vs("JSXClosingFragment",{aliases:["Immutable"]});});var nU=chunkTKGT252T_js.c(kf=>{Object.defineProperty(kf,"__esModule",{value:!0});kf.PLACEHOLDERS_FLIPPED_ALIAS=kf.PLACEHOLDERS_ALIAS=kf.PLACEHOLDERS=void 0;var H_t=_c(),G_t=kf.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],rU=kf.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of G_t){let t=H_t.ALIAS_KEYS[e];t!=null&&t.length&&(rU[e]=t);}var tU=kf.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(rU).forEach(e=>{rU[e].forEach(t=>{hasOwnProperty.call(tU,t)||(tU[t]=[]),tU[t].push(e);});});});var L_e=chunkTKGT252T_js.c(()=>{var kw=_c(),$_t=nU(),iU=(0, kw.defineAliasedType)("Miscellaneous");iU("Noop",{visitor:[]});iU("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0, kw.assertNodeType)("Identifier")},expectedNode:{validate:(0, kw.assertOneOf)(...$_t.PLACEHOLDERS)}}});iU("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0, kw.assertValueType)("string")}}});});var k_e=chunkTKGT252T_js.c(()=>{var Ir=_c();(0, Ir.default)("ArgumentPlaceholder",{});(0, Ir.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0, Ir.assertNodeType)("Expression")},callee:{validate:(0, Ir.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0, Ir.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0, Ir.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0, Ir.assertNodeType)("StringLiteral")}}});(0, Ir.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0, Ir.assertNodeType)("Expression")}}});(0, Ir.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0, Ir.assertNodeType)("BlockStatement")},async:{validate:(0, Ir.assertValueType)("boolean"),default:!1}}});(0, Ir.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, Ir.assertNodeType)("Identifier")}}});(0, Ir.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0, Ir.chain)((0, Ir.assertValueType)("array"),(0, Ir.assertEach)((0, Ir.assertNodeType)("ObjectProperty","SpreadElement")))}}});(0, Ir.default)("TupleExpression",{fields:{elements:{validate:(0, Ir.chain)((0, Ir.assertValueType)("array"),(0, Ir.assertEach)((0, Ir.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]});(0, Ir.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0, Ir.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0, Ir.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0, Ir.assertNodeType)("Program")}},aliases:["Expression"]});(0, Ir.default)("TopicReference",{aliases:["Expression"]});(0, Ir.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0, Ir.assertNodeType)("Expression")}},aliases:["Expression"]});(0, Ir.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0, Ir.assertNodeType)("Expression")}},aliases:["Expression"]});(0, Ir.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});});var G_e=chunkTKGT252T_js.c(()=>{var he=_c(),F_e=Zj(),K_t=SS(),bt=(0, he.defineAliasedType)("TypeScript"),Ta=(0, he.assertValueType)("boolean"),B_e=()=>({returnType:{validate:(0, he.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0, he.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});bt("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0, he.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0, he.assertValueType)("boolean"),optional:!0},parameter:{validate:(0, he.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0, he.assertValueType)("boolean"),optional:!0},decorators:{validate:(0, he.chain)((0, he.assertValueType)("array"),(0, he.assertEach)((0, he.assertNodeType)("Decorator"))),optional:!0}}});bt("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0, F_e.functionDeclarationCommon)(),B_e())});bt("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0, F_e.classMethodOrDeclareMethodCommon)(),B_e())});bt("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0, he.validateType)("TSEntityName"),right:(0, he.validateType)("Identifier")}});var Fw=()=>({typeParameters:(0, he.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0, he.validateArrayOfType)(["ArrayPattern","Identifier","ObjectPattern","RestElement"]),typeAnnotation:(0, he.validateOptionalType)("TSTypeAnnotation")}),j_e={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:Fw()};bt("TSCallSignatureDeclaration",j_e);bt("TSConstructSignatureDeclaration",j_e);var U_e=()=>({key:(0, he.validateType)("Expression"),computed:{default:!1},optional:(0, he.validateOptional)(Ta)});bt("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},U_e(),{readonly:(0, he.validateOptional)(Ta),typeAnnotation:(0, he.validateOptionalType)("TSTypeAnnotation"),kind:{validate:(0, he.assertOneOf)("get","set")}})});bt("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},Fw(),U_e(),{kind:{validate:(0, he.assertOneOf)("method","get","set")}})});bt("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0, he.validateOptional)(Ta),static:(0, he.validateOptional)(Ta),parameters:(0, he.validateArrayOfType)("Identifier"),typeAnnotation:(0, he.validateOptionalType)("TSTypeAnnotation")}});var Y_t=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of Y_t)bt(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});bt("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var q_e={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};bt("TSFunctionType",Object.assign({},q_e,{fields:Fw()}));bt("TSConstructorType",Object.assign({},q_e,{fields:Object.assign({},Fw(),{abstract:(0, he.validateOptional)(Ta)})}));bt("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0, he.validateType)("TSEntityName"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterInstantiation")}});bt("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0, he.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0, he.validateOptionalType)("TSTypeAnnotation"),asserts:(0, he.validateOptional)(Ta)}});bt("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0, he.validateType)(["TSEntityName","TSImportType"]),typeParameters:(0, he.validateOptionalType)("TSTypeParameterInstantiation")}});bt("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0, he.validateArrayOfType)("TSTypeElement")}});bt("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0, he.validateType)("TSType")}});bt("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0, he.validateArrayOfType)(["TSType","TSNamedTupleMember"])}});bt("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, he.validateType)("TSType")}});bt("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, he.validateType)("TSType")}});bt("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0, he.validateType)("Identifier"),optional:{validate:Ta,default:!1},elementType:(0, he.validateType)("TSType")}});var V_e={aliases:["TSType"],visitor:["types"],fields:{types:(0, he.validateArrayOfType)("TSType")}};bt("TSUnionType",V_e);bt("TSIntersectionType",V_e);bt("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0, he.validateType)("TSType"),extendsType:(0, he.validateType)("TSType"),trueType:(0, he.validateType)("TSType"),falseType:(0, he.validateType)("TSType")}});bt("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0, he.validateType)("TSTypeParameter")}});bt("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, he.validateType)("TSType")}});bt("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0, he.validate)((0, he.assertValueType)("string")),typeAnnotation:(0, he.validateType)("TSType")}});bt("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0, he.validateType)("TSType"),indexType:(0, he.validateType)("TSType")}});bt("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0, he.validateOptional)((0, he.assertOneOf)(!0,!1,"+","-")),typeParameter:(0, he.validateType)("TSTypeParameter"),optional:(0, he.validateOptional)((0, he.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0, he.validateOptionalType)("TSType"),nameType:(0, he.validateOptionalType)("TSType")}});bt("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let e=(0, he.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0, he.assertOneOf)("-"),r=(0, he.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function n(i,s,a){(0, K_t.default)("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):r(i,s,a);}return n.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],n}()}}});bt("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0, he.validateType)("TSEntityName"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterInstantiation")}});bt("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0, he.validateOptional)(Ta),id:(0, he.validateType)("Identifier"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0, he.validateOptional)((0, he.arrayOfType)("TSExpressionWithTypeArguments")),body:(0, he.validateType)("TSInterfaceBody")}});bt("TSInterfaceBody",{visitor:["body"],fields:{body:(0, he.validateArrayOfType)("TSTypeElement")}});bt("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0, he.validateOptional)(Ta),id:(0, he.validateType)("Identifier"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0, he.validateType)("TSType")}});bt("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0, he.validateType)("Expression"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterInstantiation")}});var H_e={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0, he.validateType)("Expression"),typeAnnotation:(0, he.validateType)("TSType")}};bt("TSAsExpression",H_e);bt("TSSatisfiesExpression",H_e);bt("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0, he.validateType)("TSType"),expression:(0, he.validateType)("Expression")}});bt("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0, he.validateOptional)(Ta),const:(0, he.validateOptional)(Ta),id:(0, he.validateType)("Identifier"),members:(0, he.validateArrayOfType)("TSEnumMember"),initializer:(0, he.validateOptionalType)("Expression")}});bt("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0, he.validateType)(["Identifier","StringLiteral"]),initializer:(0, he.validateOptionalType)("Expression")}});bt("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0, he.validateOptional)(Ta),global:(0, he.validateOptional)(Ta),id:(0, he.validateType)(["Identifier","StringLiteral"]),body:(0, he.validateType)(["TSModuleBlock","TSModuleDeclaration"])}});bt("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0, he.validateArrayOfType)("Statement")}});bt("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0, he.validateType)("StringLiteral"),qualifier:(0, he.validateOptionalType)("TSEntityName"),typeParameters:(0, he.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0, he.assertNodeType)("Expression"),optional:!0}}});bt("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0, he.validate)(Ta),id:(0, he.validateType)("Identifier"),moduleReference:(0, he.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0, he.assertOneOf)("type","value"),optional:!0}}});bt("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0, he.validateType)("StringLiteral")}});bt("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0, he.validateType)("Expression")}});bt("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0, he.validateType)("Expression")}});bt("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0, he.validateType)("Identifier")}});bt("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0, he.assertNodeType)("TSType")}}});bt("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0, he.chain)((0, he.assertValueType)("array"),(0, he.assertEach)((0, he.assertNodeType)("TSType")))}}});bt("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0, he.chain)((0, he.assertValueType)("array"),(0, he.assertEach)((0, he.assertNodeType)("TSTypeParameter")))}}});bt("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0, he.assertValueType)("string")},in:{validate:(0, he.assertValueType)("boolean"),optional:!0},out:{validate:(0, he.assertValueType)("boolean"),optional:!0},const:{validate:(0, he.assertValueType)("boolean"),optional:!0},constraint:{validate:(0, he.assertNodeType)("TSType"),optional:!0},default:{validate:(0, he.assertNodeType)("TSType"),optional:!0}}});});var $_e=chunkTKGT252T_js.c(Bw=>{Object.defineProperty(Bw,"__esModule",{value:!0});Bw.DEPRECATED_ALIASES=void 0;Bw.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"};});var xo=chunkTKGT252T_js.c(Hs=>{Object.defineProperty(Hs,"__esModule",{value:!0});Object.defineProperty(Hs,"ALIAS_KEYS",{enumerable:!0,get:function(){return Ui.ALIAS_KEYS}});Object.defineProperty(Hs,"BUILDER_KEYS",{enumerable:!0,get:function(){return Ui.BUILDER_KEYS}});Object.defineProperty(Hs,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return sU.DEPRECATED_ALIASES}});Object.defineProperty(Hs,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return Ui.DEPRECATED_KEYS}});Object.defineProperty(Hs,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return Ui.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Hs,"NODE_FIELDS",{enumerable:!0,get:function(){return Ui.NODE_FIELDS}});Object.defineProperty(Hs,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return Ui.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Hs,"PLACEHOLDERS",{enumerable:!0,get:function(){return Bb.PLACEHOLDERS}});Object.defineProperty(Hs,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Bb.PLACEHOLDERS_ALIAS}});Object.defineProperty(Hs,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Bb.PLACEHOLDERS_FLIPPED_ALIAS}});Hs.TYPES=void 0;Object.defineProperty(Hs,"VISITOR_KEYS",{enumerable:!0,get:function(){return Ui.VISITOR_KEYS}});var Ff=jj();Zj();R_e();M_e();L_e();k_e();G_e();var Ui=_c(),Bb=nU(),sU=$_e();Object.keys(sU.DEPRECATED_ALIASES).forEach(e=>{Ui.FLIPPED_ALIAS_KEYS[e]=Ui.FLIPPED_ALIAS_KEYS[sU.DEPRECATED_ALIASES[e]];});Ff(Ui.VISITOR_KEYS);Ff(Ui.ALIAS_KEYS);Ff(Ui.FLIPPED_ALIAS_KEYS);Ff(Ui.NODE_FIELDS);Ff(Ui.BUILDER_KEYS);Ff(Ui.DEPRECATED_KEYS);Ff(Bb.PLACEHOLDERS_ALIAS);Ff(Bb.PLACEHOLDERS_FLIPPED_ALIAS);Hs.TYPES=[].concat(Object.keys(Ui.VISITOR_KEYS),Object.keys(Ui.FLIPPED_ALIAS_KEYS),Object.keys(Ui.DEPRECATED_KEYS));});var Mw=chunkTKGT252T_js.c(jb=>{Object.defineProperty(jb,"__esModule",{value:!0});jb.default=W_t;jb.validateChild=W_e;jb.validateField=Y_e;var K_e=xo();function W_t(e,t,r){if(!e)return;let n=K_e.NODE_FIELDS[e.type];if(!n)return;let i=n[t];Y_e(e,t,r,i),W_e(e,t,r);}function Y_e(e,t,r,n){n!=null&&n.validate&&(n.optional&&r==null||n.validate(e,t,r));}function W_e(e,t,r){if(r==null)return;let n=K_e.NODE_PARENT_VALIDATIONS[r.type];n&&n(e,t,r);}});var X_e=chunkTKGT252T_js.c(aU=>{Object.defineProperty(aU,"__esModule",{value:!0});aU.default=J_t;var X_t=Mw(),z_t=gi();function J_t(e){let t=z_t.BUILDER_KEYS[e.type];for(let r of t)(0, X_t.default)(e,r,e[r]);return e}});var Gs=chunkTKGT252T_js.c(I=>{Object.defineProperty(I,"__esModule",{value:!0});I.anyTypeAnnotation=wAt;I.argumentPlaceholder=nCt;I.arrayExpression=Q_t;I.arrayPattern=Yxt;I.arrayTypeAnnotation=IAt;I.arrowFunctionExpression=Wxt;I.assignmentExpression=Z_t;I.assignmentPattern=Kxt;I.awaitExpression=yAt;I.bigIntLiteral=SAt;I.binaryExpression=ext;I.bindExpression=iCt;I.blockStatement=ixt;I.booleanLiteral=xxt;I.booleanLiteralTypeAnnotation=DAt;I.booleanTypeAnnotation=OAt;I.breakStatement=sxt;I.callExpression=axt;I.catchClause=oxt;I.classAccessorProperty=_At;I.classBody=Xxt;I.classDeclaration=Jxt;I.classExpression=zxt;I.classImplements=RAt;I.classMethod=lAt;I.classPrivateMethod=AAt;I.classPrivateProperty=xAt;I.classProperty=vAt;I.conditionalExpression=uxt;I.continueStatement=lxt;I.debuggerStatement=cxt;I.decimalLiteral=pCt;I.declareClass=MAt;I.declareExportAllDeclaration=HAt;I.declareExportDeclaration=VAt;I.declareFunction=LAt;I.declareInterface=kAt;I.declareModule=FAt;I.declareModuleExports=BAt;I.declareOpaqueType=UAt;I.declareTypeAlias=jAt;I.declareVariable=qAt;I.declaredPredicate=GAt;I.decorator=aCt;I.directive=rxt;I.directiveLiteral=nxt;I.doExpression=oCt;I.doWhileStatement=pxt;I.emptyStatement=fxt;I.emptyTypeAnnotation=tPt;I.enumBooleanBody=IPt;I.enumBooleanMember=RPt;I.enumDeclaration=wPt;I.enumDefaultedMember=kPt;I.enumNumberBody=OPt;I.enumNumberMember=MPt;I.enumStringBody=DPt;I.enumStringMember=LPt;I.enumSymbolBody=NPt;I.existsTypeAnnotation=$At;I.exportAllDeclaration=Qxt;I.exportDefaultDeclaration=Zxt;I.exportDefaultSpecifier=uCt;I.exportNamedDeclaration=eAt;I.exportNamespaceSpecifier=TAt;I.exportSpecifier=tAt;I.expressionStatement=hxt;I.file=dxt;I.forInStatement=mxt;I.forOfStatement=rAt;I.forStatement=yxt;I.functionDeclaration=gxt;I.functionExpression=Sxt;I.functionTypeAnnotation=KAt;I.functionTypeParam=YAt;I.genericTypeAnnotation=WAt;I.identifier=Txt;I.ifStatement=Ext;I.import=gAt;I.importAttribute=sCt;I.importDeclaration=nAt;I.importDefaultSpecifier=iAt;I.importExpression=oAt;I.importNamespaceSpecifier=sAt;I.importSpecifier=aAt;I.indexedAccessType=FPt;I.inferredPredicate=XAt;I.interfaceDeclaration=JAt;I.interfaceExtends=zAt;I.interfaceTypeAnnotation=QAt;I.interpreterDirective=txt;I.intersectionTypeAnnotation=ZAt;I.jSXAttribute=I.jsxAttribute=jPt;I.jSXClosingElement=I.jsxClosingElement=UPt;I.jSXClosingFragment=I.jsxClosingFragment=ZPt;I.jSXElement=I.jsxElement=qPt;I.jSXEmptyExpression=I.jsxEmptyExpression=VPt;I.jSXExpressionContainer=I.jsxExpressionContainer=HPt;I.jSXFragment=I.jsxFragment=JPt;I.jSXIdentifier=I.jsxIdentifier=$Pt;I.jSXMemberExpression=I.jsxMemberExpression=KPt;I.jSXNamespacedName=I.jsxNamespacedName=YPt;I.jSXOpeningElement=I.jsxOpeningElement=WPt;I.jSXOpeningFragment=I.jsxOpeningFragment=QPt;I.jSXSpreadAttribute=I.jsxSpreadAttribute=XPt;I.jSXSpreadChild=I.jsxSpreadChild=GPt;I.jSXText=I.jsxText=zPt;I.labeledStatement=bxt;I.logicalExpression=Axt;I.memberExpression=Pxt;I.metaProperty=uAt;I.mixedTypeAnnotation=ePt;I.moduleExpression=fCt;I.newExpression=Cxt;I.noop=eCt;I.nullLiteral=_xt;I.nullLiteralTypeAnnotation=NAt;I.nullableTypeAnnotation=rPt;I.numberLiteral=w1t;I.numberLiteralTypeAnnotation=nPt;I.numberTypeAnnotation=iPt;I.numericLiteral=z_e;I.objectExpression=Ixt;I.objectMethod=Oxt;I.objectPattern=cAt;I.objectProperty=Dxt;I.objectTypeAnnotation=sPt;I.objectTypeCallProperty=oPt;I.objectTypeIndexer=uPt;I.objectTypeInternalSlot=aPt;I.objectTypeProperty=lPt;I.objectTypeSpreadProperty=cPt;I.opaqueType=pPt;I.optionalCallExpression=bAt;I.optionalIndexedAccessType=BPt;I.optionalMemberExpression=EAt;I.parenthesizedExpression=Mxt;I.pipelineBareFunction=mCt;I.pipelinePrimaryTopicReference=yCt;I.pipelineTopicExpression=dCt;I.placeholder=tCt;I.privateName=PAt;I.program=wxt;I.qualifiedTypeIdentifier=fPt;I.recordExpression=lCt;I.regExpLiteral=J_e;I.regexLiteral=I1t;I.restElement=Q_e;I.restProperty=O1t;I.returnStatement=Nxt;I.sequenceExpression=Rxt;I.spreadElement=Z_e;I.spreadProperty=D1t;I.staticBlock=CAt;I.stringLiteral=vxt;I.stringLiteralTypeAnnotation=hPt;I.stringTypeAnnotation=dPt;I.super=pAt;I.switchCase=Lxt;I.switchStatement=kxt;I.symbolTypeAnnotation=mPt;I.taggedTemplateExpression=fAt;I.templateElement=hAt;I.templateLiteral=dAt;I.thisExpression=Fxt;I.thisTypeAnnotation=yPt;I.throwStatement=Bxt;I.topicReference=hCt;I.tryStatement=jxt;I.tSAnyKeyword=I.tsAnyKeyword=PCt;I.tSArrayType=I.tsArrayType=KCt;I.tSAsExpression=I.tsAsExpression=p1t;I.tSBigIntKeyword=I.tsBigIntKeyword=wCt;I.tSBooleanKeyword=I.tsBooleanKeyword=CCt;I.tSCallSignatureDeclaration=I.tsCallSignatureDeclaration=bCt;I.tSConditionalType=I.tsConditionalType=ZCt;I.tSConstructSignatureDeclaration=I.tsConstructSignatureDeclaration=vCt;I.tSConstructorType=I.tsConstructorType=qCt;I.tSDeclareFunction=I.tsDeclareFunction=SCt;I.tSDeclareMethod=I.tsDeclareMethod=TCt;I.tSEnumDeclaration=I.tsEnumDeclaration=d1t;I.tSEnumMember=I.tsEnumMember=m1t;I.tSExportAssignment=I.tsExportAssignment=v1t;I.tSExpressionWithTypeArguments=I.tsExpressionWithTypeArguments=a1t;I.tSExternalModuleReference=I.tsExternalModuleReference=E1t;I.tSFunctionType=I.tsFunctionType=UCt;I.tSImportEqualsDeclaration=I.tsImportEqualsDeclaration=T1t;I.tSImportType=I.tsImportType=S1t;I.tSIndexSignature=I.tsIndexSignature=ACt;I.tSIndexedAccessType=I.tsIndexedAccessType=n1t;I.tSInferType=I.tsInferType=e1t;I.tSInstantiationExpression=I.tsInstantiationExpression=c1t;I.tSInterfaceBody=I.tsInterfaceBody=u1t;I.tSInterfaceDeclaration=I.tsInterfaceDeclaration=o1t;I.tSIntersectionType=I.tsIntersectionType=QCt;I.tSIntrinsicKeyword=I.tsIntrinsicKeyword=ICt;I.tSLiteralType=I.tsLiteralType=s1t;I.tSMappedType=I.tsMappedType=i1t;I.tSMethodSignature=I.tsMethodSignature=xCt;I.tSModuleBlock=I.tsModuleBlock=g1t;I.tSModuleDeclaration=I.tsModuleDeclaration=y1t;I.tSNamedTupleMember=I.tsNamedTupleMember=zCt;I.tSNamespaceExportDeclaration=I.tsNamespaceExportDeclaration=_1t;I.tSNeverKeyword=I.tsNeverKeyword=OCt;I.tSNonNullExpression=I.tsNonNullExpression=b1t;I.tSNullKeyword=I.tsNullKeyword=DCt;I.tSNumberKeyword=I.tsNumberKeyword=NCt;I.tSObjectKeyword=I.tsObjectKeyword=RCt;I.tSOptionalType=I.tsOptionalType=WCt;I.tSParameterProperty=I.tsParameterProperty=gCt;I.tSParenthesizedType=I.tsParenthesizedType=t1t;I.tSPropertySignature=I.tsPropertySignature=_Ct;I.tSQualifiedName=I.tsQualifiedName=ECt;I.tSRestType=I.tsRestType=XCt;I.tSSatisfiesExpression=I.tsSatisfiesExpression=f1t;I.tSStringKeyword=I.tsStringKeyword=MCt;I.tSSymbolKeyword=I.tsSymbolKeyword=LCt;I.tSThisType=I.tsThisType=jCt;I.tSTupleType=I.tsTupleType=YCt;I.tSTypeAliasDeclaration=I.tsTypeAliasDeclaration=l1t;I.tSTypeAnnotation=I.tsTypeAnnotation=x1t;I.tSTypeAssertion=I.tsTypeAssertion=h1t;I.tSTypeLiteral=I.tsTypeLiteral=$Ct;I.tSTypeOperator=I.tsTypeOperator=r1t;I.tSTypeParameter=I.tsTypeParameter=C1t;I.tSTypeParameterDeclaration=I.tsTypeParameterDeclaration=P1t;I.tSTypeParameterInstantiation=I.tsTypeParameterInstantiation=A1t;I.tSTypePredicate=I.tsTypePredicate=HCt;I.tSTypeQuery=I.tsTypeQuery=GCt;I.tSTypeReference=I.tsTypeReference=VCt;I.tSUndefinedKeyword=I.tsUndefinedKeyword=kCt;I.tSUnionType=I.tsUnionType=JCt;I.tSUnknownKeyword=I.tsUnknownKeyword=FCt;I.tSVoidKeyword=I.tsVoidKeyword=BCt;I.tupleExpression=cCt;I.tupleTypeAnnotation=gPt;I.typeAlias=TPt;I.typeAnnotation=EPt;I.typeCastExpression=bPt;I.typeParameter=vPt;I.typeParameterDeclaration=_Pt;I.typeParameterInstantiation=xPt;I.typeofTypeAnnotation=SPt;I.unaryExpression=Uxt;I.unionTypeAnnotation=APt;I.updateExpression=qxt;I.v8IntrinsicIdentifier=rCt;I.variableDeclaration=Vxt;I.variableDeclarator=Hxt;I.variance=PPt;I.voidTypeAnnotation=CPt;I.whileStatement=Gxt;I.withStatement=$xt;I.yieldExpression=mAt;var Q=X_e(),jw=Db();function Q_t(e=[]){return (0, Q.default)({type:"ArrayExpression",elements:e})}function Z_t(e,t,r){return (0, Q.default)({type:"AssignmentExpression",operator:e,left:t,right:r})}function ext(e,t,r){return (0, Q.default)({type:"BinaryExpression",operator:e,left:t,right:r})}function txt(e){return (0, Q.default)({type:"InterpreterDirective",value:e})}function rxt(e){return (0, Q.default)({type:"Directive",value:e})}function nxt(e){return (0, Q.default)({type:"DirectiveLiteral",value:e})}function ixt(e,t=[]){return (0, Q.default)({type:"BlockStatement",body:e,directives:t})}function sxt(e=null){return (0, Q.default)({type:"BreakStatement",label:e})}function axt(e,t){return (0, Q.default)({type:"CallExpression",callee:e,arguments:t})}function oxt(e=null,t){return (0, Q.default)({type:"CatchClause",param:e,body:t})}function uxt(e,t,r){return (0, Q.default)({type:"ConditionalExpression",test:e,consequent:t,alternate:r})}function lxt(e=null){return (0, Q.default)({type:"ContinueStatement",label:e})}function cxt(){return {type:"DebuggerStatement"}}function pxt(e,t){return (0, Q.default)({type:"DoWhileStatement",test:e,body:t})}function fxt(){return {type:"EmptyStatement"}}function hxt(e){return (0, Q.default)({type:"ExpressionStatement",expression:e})}function dxt(e,t=null,r=null){return (0, Q.default)({type:"File",program:e,comments:t,tokens:r})}function mxt(e,t,r){return (0, Q.default)({type:"ForInStatement",left:e,right:t,body:r})}function yxt(e=null,t=null,r=null,n){return (0, Q.default)({type:"ForStatement",init:e,test:t,update:r,body:n})}function gxt(e=null,t,r,n=!1,i=!1){return (0, Q.default)({type:"FunctionDeclaration",id:e,params:t,body:r,generator:n,async:i})}function Sxt(e=null,t,r,n=!1,i=!1){return (0, Q.default)({type:"FunctionExpression",id:e,params:t,body:r,generator:n,async:i})}function Txt(e){return (0, Q.default)({type:"Identifier",name:e})}function Ext(e,t,r=null){return (0, Q.default)({type:"IfStatement",test:e,consequent:t,alternate:r})}function bxt(e,t){return (0, Q.default)({type:"LabeledStatement",label:e,body:t})}function vxt(e){return (0, Q.default)({type:"StringLiteral",value:e})}function z_e(e){return (0, Q.default)({type:"NumericLiteral",value:e})}function _xt(){return {type:"NullLiteral"}}function xxt(e){return (0, Q.default)({type:"BooleanLiteral",value:e})}function J_e(e,t=""){return (0, Q.default)({type:"RegExpLiteral",pattern:e,flags:t})}function Axt(e,t,r){return (0, Q.default)({type:"LogicalExpression",operator:e,left:t,right:r})}function Pxt(e,t,r=!1,n=null){return (0, Q.default)({type:"MemberExpression",object:e,property:t,computed:r,optional:n})}function Cxt(e,t){return (0, Q.default)({type:"NewExpression",callee:e,arguments:t})}function wxt(e,t=[],r="script",n=null){return (0, Q.default)({type:"Program",body:e,directives:t,sourceType:r,interpreter:n})}function Ixt(e){return (0, Q.default)({type:"ObjectExpression",properties:e})}function Oxt(e="method",t,r,n,i=!1,s=!1,a=!1){return (0, Q.default)({type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:i,generator:s,async:a})}function Dxt(e,t,r=!1,n=!1,i=null){return (0, Q.default)({type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:i})}function Q_e(e){return (0, Q.default)({type:"RestElement",argument:e})}function Nxt(e=null){return (0, Q.default)({type:"ReturnStatement",argument:e})}function Rxt(e){return (0, Q.default)({type:"SequenceExpression",expressions:e})}function Mxt(e){return (0, Q.default)({type:"ParenthesizedExpression",expression:e})}function Lxt(e=null,t){return (0, Q.default)({type:"SwitchCase",test:e,consequent:t})}function kxt(e,t){return (0, Q.default)({type:"SwitchStatement",discriminant:e,cases:t})}function Fxt(){return {type:"ThisExpression"}}function Bxt(e){return (0, Q.default)({type:"ThrowStatement",argument:e})}function jxt(e,t=null,r=null){return (0, Q.default)({type:"TryStatement",block:e,handler:t,finalizer:r})}function Uxt(e,t,r=!0){return (0, Q.default)({type:"UnaryExpression",operator:e,argument:t,prefix:r})}function qxt(e,t,r=!1){return (0, Q.default)({type:"UpdateExpression",operator:e,argument:t,prefix:r})}function Vxt(e,t){return (0, Q.default)({type:"VariableDeclaration",kind:e,declarations:t})}function Hxt(e,t=null){return (0, Q.default)({type:"VariableDeclarator",id:e,init:t})}function Gxt(e,t){return (0, Q.default)({type:"WhileStatement",test:e,body:t})}function $xt(e,t){return (0, Q.default)({type:"WithStatement",object:e,body:t})}function Kxt(e,t){return (0, Q.default)({type:"AssignmentPattern",left:e,right:t})}function Yxt(e){return (0, Q.default)({type:"ArrayPattern",elements:e})}function Wxt(e,t,r=!1){return (0, Q.default)({type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null})}function Xxt(e){return (0, Q.default)({type:"ClassBody",body:e})}function zxt(e=null,t=null,r,n=null){return (0, Q.default)({type:"ClassExpression",id:e,superClass:t,body:r,decorators:n})}function Jxt(e=null,t=null,r,n=null){return (0, Q.default)({type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:n})}function Qxt(e){return (0, Q.default)({type:"ExportAllDeclaration",source:e})}function Zxt(e){return (0, Q.default)({type:"ExportDefaultDeclaration",declaration:e})}function eAt(e=null,t=[],r=null){return (0, Q.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r})}function tAt(e,t){return (0, Q.default)({type:"ExportSpecifier",local:e,exported:t})}function rAt(e,t,r,n=!1){return (0, Q.default)({type:"ForOfStatement",left:e,right:t,body:r,await:n})}function nAt(e,t){return (0, Q.default)({type:"ImportDeclaration",specifiers:e,source:t})}function iAt(e){return (0, Q.default)({type:"ImportDefaultSpecifier",local:e})}function sAt(e){return (0, Q.default)({type:"ImportNamespaceSpecifier",local:e})}function aAt(e,t){return (0, Q.default)({type:"ImportSpecifier",local:e,imported:t})}function oAt(e,t=null){return (0, Q.default)({type:"ImportExpression",source:e,options:t})}function uAt(e,t){return (0, Q.default)({type:"MetaProperty",meta:e,property:t})}function lAt(e="method",t,r,n,i=!1,s=!1,a=!1,o=!1){return (0, Q.default)({type:"ClassMethod",kind:e,key:t,params:r,body:n,computed:i,static:s,generator:a,async:o})}function cAt(e){return (0, Q.default)({type:"ObjectPattern",properties:e})}function Z_e(e){return (0, Q.default)({type:"SpreadElement",argument:e})}function pAt(){return {type:"Super"}}function fAt(e,t){return (0, Q.default)({type:"TaggedTemplateExpression",tag:e,quasi:t})}function hAt(e,t=!1){return (0, Q.default)({type:"TemplateElement",value:e,tail:t})}function dAt(e,t){return (0, Q.default)({type:"TemplateLiteral",quasis:e,expressions:t})}function mAt(e=null,t=!1){return (0, Q.default)({type:"YieldExpression",argument:e,delegate:t})}function yAt(e){return (0, Q.default)({type:"AwaitExpression",argument:e})}function gAt(){return {type:"Import"}}function SAt(e){return (0, Q.default)({type:"BigIntLiteral",value:e})}function TAt(e){return (0, Q.default)({type:"ExportNamespaceSpecifier",exported:e})}function EAt(e,t,r=!1,n){return (0, Q.default)({type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:n})}function bAt(e,t,r){return (0, Q.default)({type:"OptionalCallExpression",callee:e,arguments:t,optional:r})}function vAt(e,t=null,r=null,n=null,i=!1,s=!1){return (0, Q.default)({type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:i,static:s})}function _At(e,t=null,r=null,n=null,i=!1,s=!1){return (0, Q.default)({type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:i,static:s})}function xAt(e,t=null,r=null,n=!1){return (0, Q.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:n})}function AAt(e="method",t,r,n,i=!1){return (0, Q.default)({type:"ClassPrivateMethod",kind:e,key:t,params:r,body:n,static:i})}function PAt(e){return (0, Q.default)({type:"PrivateName",id:e})}function CAt(e){return (0, Q.default)({type:"StaticBlock",body:e})}function wAt(){return {type:"AnyTypeAnnotation"}}function IAt(e){return (0, Q.default)({type:"ArrayTypeAnnotation",elementType:e})}function OAt(){return {type:"BooleanTypeAnnotation"}}function DAt(e){return (0, Q.default)({type:"BooleanLiteralTypeAnnotation",value:e})}function NAt(){return {type:"NullLiteralTypeAnnotation"}}function RAt(e,t=null){return (0, Q.default)({type:"ClassImplements",id:e,typeParameters:t})}function MAt(e,t=null,r=null,n){return (0, Q.default)({type:"DeclareClass",id:e,typeParameters:t,extends:r,body:n})}function LAt(e){return (0, Q.default)({type:"DeclareFunction",id:e})}function kAt(e,t=null,r=null,n){return (0, Q.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:n})}function FAt(e,t,r=null){return (0, Q.default)({type:"DeclareModule",id:e,body:t,kind:r})}function BAt(e){return (0, Q.default)({type:"DeclareModuleExports",typeAnnotation:e})}function jAt(e,t=null,r){return (0, Q.default)({type:"DeclareTypeAlias",id:e,typeParameters:t,right:r})}function UAt(e,t=null,r=null){return (0, Q.default)({type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r})}function qAt(e){return (0, Q.default)({type:"DeclareVariable",id:e})}function VAt(e=null,t=null,r=null){return (0, Q.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r})}function HAt(e){return (0, Q.default)({type:"DeclareExportAllDeclaration",source:e})}function GAt(e){return (0, Q.default)({type:"DeclaredPredicate",value:e})}function $At(){return {type:"ExistsTypeAnnotation"}}function KAt(e=null,t,r=null,n){return (0, Q.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:n})}function YAt(e=null,t){return (0, Q.default)({type:"FunctionTypeParam",name:e,typeAnnotation:t})}function WAt(e,t=null){return (0, Q.default)({type:"GenericTypeAnnotation",id:e,typeParameters:t})}function XAt(){return {type:"InferredPredicate"}}function zAt(e,t=null){return (0, Q.default)({type:"InterfaceExtends",id:e,typeParameters:t})}function JAt(e,t=null,r=null,n){return (0, Q.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n})}function QAt(e=null,t){return (0, Q.default)({type:"InterfaceTypeAnnotation",extends:e,body:t})}function ZAt(e){return (0, Q.default)({type:"IntersectionTypeAnnotation",types:e})}function ePt(){return {type:"MixedTypeAnnotation"}}function tPt(){return {type:"EmptyTypeAnnotation"}}function rPt(e){return (0, Q.default)({type:"NullableTypeAnnotation",typeAnnotation:e})}function nPt(e){return (0, Q.default)({type:"NumberLiteralTypeAnnotation",value:e})}function iPt(){return {type:"NumberTypeAnnotation"}}function sPt(e,t=[],r=[],n=[],i=!1){return (0, Q.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:n,exact:i})}function aPt(e,t,r,n,i){return (0, Q.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:n,method:i})}function oPt(e){return (0, Q.default)({type:"ObjectTypeCallProperty",value:e,static:null})}function uPt(e=null,t,r,n=null){return (0, Q.default)({type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:n,static:null})}function lPt(e,t,r=null){return (0, Q.default)({type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null})}function cPt(e){return (0, Q.default)({type:"ObjectTypeSpreadProperty",argument:e})}function pPt(e,t=null,r=null,n){return (0, Q.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:n})}function fPt(e,t){return (0, Q.default)({type:"QualifiedTypeIdentifier",id:e,qualification:t})}function hPt(e){return (0, Q.default)({type:"StringLiteralTypeAnnotation",value:e})}function dPt(){return {type:"StringTypeAnnotation"}}function mPt(){return {type:"SymbolTypeAnnotation"}}function yPt(){return {type:"ThisTypeAnnotation"}}function gPt(e){return (0, Q.default)({type:"TupleTypeAnnotation",types:e})}function SPt(e){return (0, Q.default)({type:"TypeofTypeAnnotation",argument:e})}function TPt(e,t=null,r){return (0, Q.default)({type:"TypeAlias",id:e,typeParameters:t,right:r})}function EPt(e){return (0, Q.default)({type:"TypeAnnotation",typeAnnotation:e})}function bPt(e,t){return (0, Q.default)({type:"TypeCastExpression",expression:e,typeAnnotation:t})}function vPt(e=null,t=null,r=null){return (0, Q.default)({type:"TypeParameter",bound:e,default:t,variance:r,name:null})}function _Pt(e){return (0, Q.default)({type:"TypeParameterDeclaration",params:e})}function xPt(e){return (0, Q.default)({type:"TypeParameterInstantiation",params:e})}function APt(e){return (0, Q.default)({type:"UnionTypeAnnotation",types:e})}function PPt(e){return (0, Q.default)({type:"Variance",kind:e})}function CPt(){return {type:"VoidTypeAnnotation"}}function wPt(e,t){return (0, Q.default)({type:"EnumDeclaration",id:e,body:t})}function IPt(e){return (0, Q.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})}function OPt(e){return (0, Q.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})}function DPt(e){return (0, Q.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})}function NPt(e){return (0, Q.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})}function RPt(e){return (0, Q.default)({type:"EnumBooleanMember",id:e,init:null})}function MPt(e,t){return (0, Q.default)({type:"EnumNumberMember",id:e,init:t})}function LPt(e,t){return (0, Q.default)({type:"EnumStringMember",id:e,init:t})}function kPt(e){return (0, Q.default)({type:"EnumDefaultedMember",id:e})}function FPt(e,t){return (0, Q.default)({type:"IndexedAccessType",objectType:e,indexType:t})}function BPt(e,t){return (0, Q.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null})}function jPt(e,t=null){return (0, Q.default)({type:"JSXAttribute",name:e,value:t})}function UPt(e){return (0, Q.default)({type:"JSXClosingElement",name:e})}function qPt(e,t=null,r,n=null){return (0, Q.default)({type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:n})}function VPt(){return {type:"JSXEmptyExpression"}}function HPt(e){return (0, Q.default)({type:"JSXExpressionContainer",expression:e})}function GPt(e){return (0, Q.default)({type:"JSXSpreadChild",expression:e})}function $Pt(e){return (0, Q.default)({type:"JSXIdentifier",name:e})}function KPt(e,t){return (0, Q.default)({type:"JSXMemberExpression",object:e,property:t})}function YPt(e,t){return (0, Q.default)({type:"JSXNamespacedName",namespace:e,name:t})}function WPt(e,t,r=!1){return (0, Q.default)({type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r})}function XPt(e){return (0, Q.default)({type:"JSXSpreadAttribute",argument:e})}function zPt(e){return (0, Q.default)({type:"JSXText",value:e})}function JPt(e,t,r){return (0, Q.default)({type:"JSXFragment",openingFragment:e,closingFragment:t,children:r})}function QPt(){return {type:"JSXOpeningFragment"}}function ZPt(){return {type:"JSXClosingFragment"}}function eCt(){return {type:"Noop"}}function tCt(e,t){return (0, Q.default)({type:"Placeholder",expectedNode:e,name:t})}function rCt(e){return (0, Q.default)({type:"V8IntrinsicIdentifier",name:e})}function nCt(){return {type:"ArgumentPlaceholder"}}function iCt(e,t){return (0, Q.default)({type:"BindExpression",object:e,callee:t})}function sCt(e,t){return (0, Q.default)({type:"ImportAttribute",key:e,value:t})}function aCt(e){return (0, Q.default)({type:"Decorator",expression:e})}function oCt(e,t=!1){return (0, Q.default)({type:"DoExpression",body:e,async:t})}function uCt(e){return (0, Q.default)({type:"ExportDefaultSpecifier",exported:e})}function lCt(e){return (0, Q.default)({type:"RecordExpression",properties:e})}function cCt(e=[]){return (0, Q.default)({type:"TupleExpression",elements:e})}function pCt(e){return (0, Q.default)({type:"DecimalLiteral",value:e})}function fCt(e){return (0, Q.default)({type:"ModuleExpression",body:e})}function hCt(){return {type:"TopicReference"}}function dCt(e){return (0, Q.default)({type:"PipelineTopicExpression",expression:e})}function mCt(e){return (0, Q.default)({type:"PipelineBareFunction",callee:e})}function yCt(){return {type:"PipelinePrimaryTopicReference"}}function gCt(e){return (0, Q.default)({type:"TSParameterProperty",parameter:e})}function SCt(e=null,t=null,r,n=null){return (0, Q.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:n})}function TCt(e=null,t,r=null,n,i=null){return (0, Q.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:n,returnType:i})}function ECt(e,t){return (0, Q.default)({type:"TSQualifiedName",left:e,right:t})}function bCt(e=null,t,r=null){return (0, Q.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r})}function vCt(e=null,t,r=null){return (0, Q.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r})}function _Ct(e,t=null){return (0, Q.default)({type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null})}function xCt(e,t=null,r,n=null){return (0, Q.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:n,kind:null})}function ACt(e,t=null){return (0, Q.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:t})}function PCt(){return {type:"TSAnyKeyword"}}function CCt(){return {type:"TSBooleanKeyword"}}function wCt(){return {type:"TSBigIntKeyword"}}function ICt(){return {type:"TSIntrinsicKeyword"}}function OCt(){return {type:"TSNeverKeyword"}}function DCt(){return {type:"TSNullKeyword"}}function NCt(){return {type:"TSNumberKeyword"}}function RCt(){return {type:"TSObjectKeyword"}}function MCt(){return {type:"TSStringKeyword"}}function LCt(){return {type:"TSSymbolKeyword"}}function kCt(){return {type:"TSUndefinedKeyword"}}function FCt(){return {type:"TSUnknownKeyword"}}function BCt(){return {type:"TSVoidKeyword"}}function jCt(){return {type:"TSThisType"}}function UCt(e=null,t,r=null){return (0, Q.default)({type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r})}function qCt(e=null,t,r=null){return (0, Q.default)({type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r})}function VCt(e,t=null){return (0, Q.default)({type:"TSTypeReference",typeName:e,typeParameters:t})}function HCt(e,t=null,r=null){return (0, Q.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r})}function GCt(e,t=null){return (0, Q.default)({type:"TSTypeQuery",exprName:e,typeParameters:t})}function $Ct(e){return (0, Q.default)({type:"TSTypeLiteral",members:e})}function KCt(e){return (0, Q.default)({type:"TSArrayType",elementType:e})}function YCt(e){return (0, Q.default)({type:"TSTupleType",elementTypes:e})}function WCt(e){return (0, Q.default)({type:"TSOptionalType",typeAnnotation:e})}function XCt(e){return (0, Q.default)({type:"TSRestType",typeAnnotation:e})}function zCt(e,t,r=!1){return (0, Q.default)({type:"TSNamedTupleMember",label:e,elementType:t,optional:r})}function JCt(e){return (0, Q.default)({type:"TSUnionType",types:e})}function QCt(e){return (0, Q.default)({type:"TSIntersectionType",types:e})}function ZCt(e,t,r,n){return (0, Q.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:n})}function e1t(e){return (0, Q.default)({type:"TSInferType",typeParameter:e})}function t1t(e){return (0, Q.default)({type:"TSParenthesizedType",typeAnnotation:e})}function r1t(e){return (0, Q.default)({type:"TSTypeOperator",typeAnnotation:e,operator:null})}function n1t(e,t){return (0, Q.default)({type:"TSIndexedAccessType",objectType:e,indexType:t})}function i1t(e,t=null,r=null){return (0, Q.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r})}function s1t(e){return (0, Q.default)({type:"TSLiteralType",literal:e})}function a1t(e,t=null){return (0, Q.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t})}function o1t(e,t=null,r=null,n){return (0, Q.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n})}function u1t(e){return (0, Q.default)({type:"TSInterfaceBody",body:e})}function l1t(e,t=null,r){return (0, Q.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r})}function c1t(e,t=null){return (0, Q.default)({type:"TSInstantiationExpression",expression:e,typeParameters:t})}function p1t(e,t){return (0, Q.default)({type:"TSAsExpression",expression:e,typeAnnotation:t})}function f1t(e,t){return (0, Q.default)({type:"TSSatisfiesExpression",expression:e,typeAnnotation:t})}function h1t(e,t){return (0, Q.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:t})}function d1t(e,t){return (0, Q.default)({type:"TSEnumDeclaration",id:e,members:t})}function m1t(e,t=null){return (0, Q.default)({type:"TSEnumMember",id:e,initializer:t})}function y1t(e,t){return (0, Q.default)({type:"TSModuleDeclaration",id:e,body:t})}function g1t(e){return (0, Q.default)({type:"TSModuleBlock",body:e})}function S1t(e,t=null,r=null){return (0, Q.default)({type:"TSImportType",argument:e,qualifier:t,typeParameters:r})}function T1t(e,t){return (0, Q.default)({type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null})}function E1t(e){return (0, Q.default)({type:"TSExternalModuleReference",expression:e})}function b1t(e){return (0, Q.default)({type:"TSNonNullExpression",expression:e})}function v1t(e){return (0, Q.default)({type:"TSExportAssignment",expression:e})}function _1t(e){return (0, Q.default)({type:"TSNamespaceExportDeclaration",id:e})}function x1t(e){return (0, Q.default)({type:"TSTypeAnnotation",typeAnnotation:e})}function A1t(e){return (0, Q.default)({type:"TSTypeParameterInstantiation",params:e})}function P1t(e){return (0, Q.default)({type:"TSTypeParameterDeclaration",params:e})}function C1t(e=null,t=null,r){return (0, Q.default)({type:"TSTypeParameter",constraint:e,default:t,name:r})}function w1t(e){return (0, jw.default)("NumberLiteral","NumericLiteral","The node type "),z_e(e)}function I1t(e,t=""){return (0, jw.default)("RegexLiteral","RegExpLiteral","The node type "),J_e(e,t)}function O1t(e){return (0, jw.default)("RestProperty","RestElement","The node type "),Q_e(e)}function D1t(e){return (0, jw.default)("SpreadProperty","SpreadElement","The node type "),Z_e(e)}});var exe=chunkTKGT252T_js.c(oU=>{Object.defineProperty(oU,"__esModule",{value:!0});oU.default=M1t;var N1t=Gs(),R1t=gi();function M1t(e,t){let r=e.value.split(/\r\n|\n|\r/),n=0;for(let s=0;s<r.length;s++)r[s].match(/[^ \t]/)&&(n=s);let i="";for(let s=0;s<r.length;s++){let a=r[s],o=s===0,u=s===r.length-1,l=s===n,c=a.replace(/\t/g," ");o||(c=c.replace(/^[ ]+/,"")),u||(c=c.replace(/[ ]+$/,"")),c&&(l||(c+=" "),i+=c);}i&&t.push((0, R1t.inherits)((0, N1t.stringLiteral)(i),e));}});var txe=chunkTKGT252T_js.c(lU=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.default=k1t;var uU=ci(),L1t=exe();function k1t(e){let t=[];for(let r=0;r<e.children.length;r++){let n=e.children[r];if((0, uU.isJSXText)(n)){(0, L1t.default)(n,t);continue}(0, uU.isJSXExpressionContainer)(n)&&(n=n.expression),!(0, uU.isJSXEmptyExpression)(n)&&t.push(n);}return t}});var pU=chunkTKGT252T_js.c(cU=>{Object.defineProperty(cU,"__esModule",{value:!0});cU.default=B1t;var F1t=xo();function B1t(e){return !!(e&&F1t.VISITOR_KEYS[e.type])}});var rxe=chunkTKGT252T_js.c(fU=>{Object.defineProperty(fU,"__esModule",{value:!0});fU.default=U1t;var j1t=pU();function U1t(e){if(!(0, j1t.default)(e)){var t;let r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var nxe=chunkTKGT252T_js.c(R=>{Object.defineProperty(R,"__esModule",{value:!0});R.assertAccessor=rRt;R.assertAnyTypeAnnotation=vIt;R.assertArgumentPlaceholder=JOt;R.assertArrayExpression=V1t;R.assertArrayPattern=Uwt;R.assertArrayTypeAnnotation=_It;R.assertArrowFunctionExpression=qwt;R.assertAssignmentExpression=H1t;R.assertAssignmentPattern=jwt;R.assertAwaitExpression=cIt;R.assertBigIntLiteral=fIt;R.assertBinary=xNt;R.assertBinaryExpression=G1t;R.assertBindExpression=QOt;R.assertBlock=CNt;R.assertBlockParent=PNt;R.assertBlockStatement=W1t;R.assertBooleanLiteral=mwt;R.assertBooleanLiteralTypeAnnotation=AIt;R.assertBooleanTypeAnnotation=xIt;R.assertBreakStatement=X1t;R.assertCallExpression=z1t;R.assertCatchClause=J1t;R.assertClass=QNt;R.assertClassAccessorProperty=gIt;R.assertClassBody=Vwt;R.assertClassDeclaration=Gwt;R.assertClassExpression=Hwt;R.assertClassImplements=CIt;R.assertClassMethod=rIt;R.assertClassPrivateMethod=TIt;R.assertClassPrivateProperty=SIt;R.assertClassProperty=yIt;R.assertCompletionStatement=ONt;R.assertConditional=DNt;R.assertConditionalExpression=Q1t;R.assertContinueStatement=Z1t;R.assertDebuggerStatement=ewt;R.assertDecimalLiteral=sDt;R.assertDeclaration=UNt;R.assertDeclareClass=wIt;R.assertDeclareExportAllDeclaration=FIt;R.assertDeclareExportDeclaration=kIt;R.assertDeclareFunction=IIt;R.assertDeclareInterface=OIt;R.assertDeclareModule=DIt;R.assertDeclareModuleExports=NIt;R.assertDeclareOpaqueType=MIt;R.assertDeclareTypeAlias=RIt;R.assertDeclareVariable=LIt;R.assertDeclaredPredicate=BIt;R.assertDecorator=eDt;R.assertDirective=K1t;R.assertDirectiveLiteral=Y1t;R.assertDoExpression=tDt;R.assertDoWhileStatement=twt;R.assertEmptyStatement=rwt;R.assertEmptyTypeAnnotation=XIt;R.assertEnumBody=lRt;R.assertEnumBooleanBody=_Ot;R.assertEnumBooleanMember=COt;R.assertEnumDeclaration=vOt;R.assertEnumDefaultedMember=OOt;R.assertEnumMember=cRt;R.assertEnumNumberBody=xOt;R.assertEnumNumberMember=wOt;R.assertEnumStringBody=AOt;R.assertEnumStringMember=IOt;R.assertEnumSymbolBody=POt;R.assertExistsTypeAnnotation=jIt;R.assertExportAllDeclaration=$wt;R.assertExportDeclaration=eRt;R.assertExportDefaultDeclaration=Kwt;R.assertExportDefaultSpecifier=rDt;R.assertExportNamedDeclaration=Ywt;R.assertExportNamespaceSpecifier=hIt;R.assertExportSpecifier=Wwt;R.assertExpression=_Nt;R.assertExpressionStatement=nwt;R.assertExpressionWrapper=MNt;R.assertFile=iwt;R.assertFlow=iRt;R.assertFlowBaseAnnotation=aRt;R.assertFlowDeclaration=oRt;R.assertFlowPredicate=uRt;R.assertFlowType=sRt;R.assertFor=LNt;R.assertForInStatement=swt;R.assertForOfStatement=Xwt;R.assertForStatement=awt;R.assertForXStatement=kNt;R.assertFunction=FNt;R.assertFunctionDeclaration=owt;R.assertFunctionExpression=uwt;R.assertFunctionParent=BNt;R.assertFunctionTypeAnnotation=UIt;R.assertFunctionTypeParam=qIt;R.assertGenericTypeAnnotation=VIt;R.assertIdentifier=lwt;R.assertIfStatement=cwt;R.assertImmutable=$Nt;R.assertImport=pIt;R.assertImportAttribute=ZOt;R.assertImportDeclaration=zwt;R.assertImportDefaultSpecifier=Jwt;R.assertImportExpression=eIt;R.assertImportNamespaceSpecifier=Qwt;R.assertImportOrExportDeclaration=ZNt;R.assertImportSpecifier=Zwt;R.assertIndexedAccessType=DOt;R.assertInferredPredicate=HIt;R.assertInterfaceDeclaration=$It;R.assertInterfaceExtends=GIt;R.assertInterfaceTypeAnnotation=KIt;R.assertInterpreterDirective=$1t;R.assertIntersectionTypeAnnotation=YIt;R.assertJSX=pRt;R.assertJSXAttribute=ROt;R.assertJSXClosingElement=MOt;R.assertJSXClosingFragment=YOt;R.assertJSXElement=LOt;R.assertJSXEmptyExpression=kOt;R.assertJSXExpressionContainer=FOt;R.assertJSXFragment=$Ot;R.assertJSXIdentifier=jOt;R.assertJSXMemberExpression=UOt;R.assertJSXNamespacedName=qOt;R.assertJSXOpeningElement=VOt;R.assertJSXOpeningFragment=KOt;R.assertJSXSpreadAttribute=HOt;R.assertJSXSpreadChild=BOt;R.assertJSXText=GOt;R.assertLVal=VNt;R.assertLabeledStatement=pwt;R.assertLiteral=GNt;R.assertLogicalExpression=gwt;R.assertLoop=NNt;R.assertMemberExpression=Swt;R.assertMetaProperty=tIt;R.assertMethod=YNt;R.assertMiscellaneous=fRt;R.assertMixedTypeAnnotation=WIt;R.assertModuleDeclaration=bRt;R.assertModuleExpression=aDt;R.assertModuleSpecifier=tRt;R.assertNewExpression=Twt;R.assertNoop=WOt;R.assertNullLiteral=dwt;R.assertNullLiteralTypeAnnotation=PIt;R.assertNullableTypeAnnotation=zIt;R.assertNumberLiteral=gRt;R.assertNumberLiteralTypeAnnotation=JIt;R.assertNumberTypeAnnotation=QIt;R.assertNumericLiteral=hwt;R.assertObjectExpression=bwt;R.assertObjectMember=WNt;R.assertObjectMethod=vwt;R.assertObjectPattern=nIt;R.assertObjectProperty=_wt;R.assertObjectTypeAnnotation=ZIt;R.assertObjectTypeCallProperty=tOt;R.assertObjectTypeIndexer=rOt;R.assertObjectTypeInternalSlot=eOt;R.assertObjectTypeProperty=nOt;R.assertObjectTypeSpreadProperty=iOt;R.assertOpaqueType=sOt;R.assertOptionalCallExpression=mIt;R.assertOptionalIndexedAccessType=NOt;R.assertOptionalMemberExpression=dIt;R.assertParenthesizedExpression=Cwt;R.assertPattern=JNt;R.assertPatternLike=qNt;R.assertPipelineBareFunction=lDt;R.assertPipelinePrimaryTopicReference=cDt;R.assertPipelineTopicExpression=uDt;R.assertPlaceholder=XOt;R.assertPrivate=nRt;R.assertPrivateName=EIt;R.assertProgram=Ewt;R.assertProperty=XNt;R.assertPureish=jNt;R.assertQualifiedTypeIdentifier=aOt;R.assertRecordExpression=nDt;R.assertRegExpLiteral=ywt;R.assertRegexLiteral=SRt;R.assertRestElement=xwt;R.assertRestProperty=TRt;R.assertReturnStatement=Awt;R.assertScopable=ANt;R.assertSequenceExpression=Pwt;R.assertSpreadElement=iIt;R.assertSpreadProperty=ERt;R.assertStandardized=vNt;R.assertStatement=wNt;R.assertStaticBlock=bIt;R.assertStringLiteral=fwt;R.assertStringLiteralTypeAnnotation=oOt;R.assertStringTypeAnnotation=uOt;R.assertSuper=sIt;R.assertSwitchCase=wwt;R.assertSwitchStatement=Iwt;R.assertSymbolTypeAnnotation=lOt;R.assertTSAnyKeyword=EDt;R.assertTSArrayType=UDt;R.assertTSAsExpression=sNt;R.assertTSBaseType=yRt;R.assertTSBigIntKeyword=vDt;R.assertTSBooleanKeyword=bDt;R.assertTSCallSignatureDeclaration=mDt;R.assertTSConditionalType=YDt;R.assertTSConstructSignatureDeclaration=yDt;R.assertTSConstructorType=LDt;R.assertTSDeclareFunction=fDt;R.assertTSDeclareMethod=hDt;R.assertTSEntityName=HNt;R.assertTSEnumDeclaration=uNt;R.assertTSEnumMember=lNt;R.assertTSExportAssignment=yNt;R.assertTSExpressionWithTypeArguments=eNt;R.assertTSExternalModuleReference=dNt;R.assertTSFunctionType=MDt;R.assertTSImportEqualsDeclaration=hNt;R.assertTSImportType=fNt;R.assertTSIndexSignature=TDt;R.assertTSIndexedAccessType=JDt;R.assertTSInferType=WDt;R.assertTSInstantiationExpression=iNt;R.assertTSInterfaceBody=rNt;R.assertTSInterfaceDeclaration=tNt;R.assertTSIntersectionType=KDt;R.assertTSIntrinsicKeyword=_Dt;R.assertTSLiteralType=ZDt;R.assertTSMappedType=QDt;R.assertTSMethodSignature=SDt;R.assertTSModuleBlock=pNt;R.assertTSModuleDeclaration=cNt;R.assertTSNamedTupleMember=GDt;R.assertTSNamespaceExportDeclaration=gNt;R.assertTSNeverKeyword=xDt;R.assertTSNonNullExpression=mNt;R.assertTSNullKeyword=ADt;R.assertTSNumberKeyword=PDt;R.assertTSObjectKeyword=CDt;R.assertTSOptionalType=VDt;R.assertTSParameterProperty=pDt;R.assertTSParenthesizedType=XDt;R.assertTSPropertySignature=gDt;R.assertTSQualifiedName=dDt;R.assertTSRestType=HDt;R.assertTSSatisfiesExpression=aNt;R.assertTSStringKeyword=wDt;R.assertTSSymbolKeyword=IDt;R.assertTSThisType=RDt;R.assertTSTupleType=qDt;R.assertTSType=mRt;R.assertTSTypeAliasDeclaration=nNt;R.assertTSTypeAnnotation=SNt;R.assertTSTypeAssertion=oNt;R.assertTSTypeElement=dRt;R.assertTSTypeLiteral=jDt;R.assertTSTypeOperator=zDt;R.assertTSTypeParameter=bNt;R.assertTSTypeParameterDeclaration=ENt;R.assertTSTypeParameterInstantiation=TNt;R.assertTSTypePredicate=FDt;R.assertTSTypeQuery=BDt;R.assertTSTypeReference=kDt;R.assertTSUndefinedKeyword=ODt;R.assertTSUnionType=$Dt;R.assertTSUnknownKeyword=DDt;R.assertTSVoidKeyword=NDt;R.assertTaggedTemplateExpression=aIt;R.assertTemplateElement=oIt;R.assertTemplateLiteral=uIt;R.assertTerminatorless=INt;R.assertThisExpression=Owt;R.assertThisTypeAnnotation=cOt;R.assertThrowStatement=Dwt;R.assertTopicReference=oDt;R.assertTryStatement=Nwt;R.assertTupleExpression=iDt;R.assertTupleTypeAnnotation=pOt;R.assertTypeAlias=hOt;R.assertTypeAnnotation=dOt;R.assertTypeCastExpression=mOt;R.assertTypeParameter=yOt;R.assertTypeParameterDeclaration=gOt;R.assertTypeParameterInstantiation=SOt;R.assertTypeScript=hRt;R.assertTypeofTypeAnnotation=fOt;R.assertUnaryExpression=Rwt;R.assertUnaryLike=zNt;R.assertUnionTypeAnnotation=TOt;R.assertUpdateExpression=Mwt;R.assertUserWhitespacable=KNt;R.assertV8IntrinsicIdentifier=zOt;R.assertVariableDeclaration=Lwt;R.assertVariableDeclarator=kwt;R.assertVariance=EOt;R.assertVoidTypeAnnotation=bOt;R.assertWhile=RNt;R.assertWhileStatement=Fwt;R.assertWithStatement=Bwt;R.assertYieldExpression=lIt;var q1t=SS(),Ub=Db();function k(e,t,r){if(!(0, q1t.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function V1t(e,t){k("ArrayExpression",e,t);}function H1t(e,t){k("AssignmentExpression",e,t);}function G1t(e,t){k("BinaryExpression",e,t);}function $1t(e,t){k("InterpreterDirective",e,t);}function K1t(e,t){k("Directive",e,t);}function Y1t(e,t){k("DirectiveLiteral",e,t);}function W1t(e,t){k("BlockStatement",e,t);}function X1t(e,t){k("BreakStatement",e,t);}function z1t(e,t){k("CallExpression",e,t);}function J1t(e,t){k("CatchClause",e,t);}function Q1t(e,t){k("ConditionalExpression",e,t);}function Z1t(e,t){k("ContinueStatement",e,t);}function ewt(e,t){k("DebuggerStatement",e,t);}function twt(e,t){k("DoWhileStatement",e,t);}function rwt(e,t){k("EmptyStatement",e,t);}function nwt(e,t){k("ExpressionStatement",e,t);}function iwt(e,t){k("File",e,t);}function swt(e,t){k("ForInStatement",e,t);}function awt(e,t){k("ForStatement",e,t);}function owt(e,t){k("FunctionDeclaration",e,t);}function uwt(e,t){k("FunctionExpression",e,t);}function lwt(e,t){k("Identifier",e,t);}function cwt(e,t){k("IfStatement",e,t);}function pwt(e,t){k("LabeledStatement",e,t);}function fwt(e,t){k("StringLiteral",e,t);}function hwt(e,t){k("NumericLiteral",e,t);}function dwt(e,t){k("NullLiteral",e,t);}function mwt(e,t){k("BooleanLiteral",e,t);}function ywt(e,t){k("RegExpLiteral",e,t);}function gwt(e,t){k("LogicalExpression",e,t);}function Swt(e,t){k("MemberExpression",e,t);}function Twt(e,t){k("NewExpression",e,t);}function Ewt(e,t){k("Program",e,t);}function bwt(e,t){k("ObjectExpression",e,t);}function vwt(e,t){k("ObjectMethod",e,t);}function _wt(e,t){k("ObjectProperty",e,t);}function xwt(e,t){k("RestElement",e,t);}function Awt(e,t){k("ReturnStatement",e,t);}function Pwt(e,t){k("SequenceExpression",e,t);}function Cwt(e,t){k("ParenthesizedExpression",e,t);}function wwt(e,t){k("SwitchCase",e,t);}function Iwt(e,t){k("SwitchStatement",e,t);}function Owt(e,t){k("ThisExpression",e,t);}function Dwt(e,t){k("ThrowStatement",e,t);}function Nwt(e,t){k("TryStatement",e,t);}function Rwt(e,t){k("UnaryExpression",e,t);}function Mwt(e,t){k("UpdateExpression",e,t);}function Lwt(e,t){k("VariableDeclaration",e,t);}function kwt(e,t){k("VariableDeclarator",e,t);}function Fwt(e,t){k("WhileStatement",e,t);}function Bwt(e,t){k("WithStatement",e,t);}function jwt(e,t){k("AssignmentPattern",e,t);}function Uwt(e,t){k("ArrayPattern",e,t);}function qwt(e,t){k("ArrowFunctionExpression",e,t);}function Vwt(e,t){k("ClassBody",e,t);}function Hwt(e,t){k("ClassExpression",e,t);}function Gwt(e,t){k("ClassDeclaration",e,t);}function $wt(e,t){k("ExportAllDeclaration",e,t);}function Kwt(e,t){k("ExportDefaultDeclaration",e,t);}function Ywt(e,t){k("ExportNamedDeclaration",e,t);}function Wwt(e,t){k("ExportSpecifier",e,t);}function Xwt(e,t){k("ForOfStatement",e,t);}function zwt(e,t){k("ImportDeclaration",e,t);}function Jwt(e,t){k("ImportDefaultSpecifier",e,t);}function Qwt(e,t){k("ImportNamespaceSpecifier",e,t);}function Zwt(e,t){k("ImportSpecifier",e,t);}function eIt(e,t){k("ImportExpression",e,t);}function tIt(e,t){k("MetaProperty",e,t);}function rIt(e,t){k("ClassMethod",e,t);}function nIt(e,t){k("ObjectPattern",e,t);}function iIt(e,t){k("SpreadElement",e,t);}function sIt(e,t){k("Super",e,t);}function aIt(e,t){k("TaggedTemplateExpression",e,t);}function oIt(e,t){k("TemplateElement",e,t);}function uIt(e,t){k("TemplateLiteral",e,t);}function lIt(e,t){k("YieldExpression",e,t);}function cIt(e,t){k("AwaitExpression",e,t);}function pIt(e,t){k("Import",e,t);}function fIt(e,t){k("BigIntLiteral",e,t);}function hIt(e,t){k("ExportNamespaceSpecifier",e,t);}function dIt(e,t){k("OptionalMemberExpression",e,t);}function mIt(e,t){k("OptionalCallExpression",e,t);}function yIt(e,t){k("ClassProperty",e,t);}function gIt(e,t){k("ClassAccessorProperty",e,t);}function SIt(e,t){k("ClassPrivateProperty",e,t);}function TIt(e,t){k("ClassPrivateMethod",e,t);}function EIt(e,t){k("PrivateName",e,t);}function bIt(e,t){k("StaticBlock",e,t);}function vIt(e,t){k("AnyTypeAnnotation",e,t);}function _It(e,t){k("ArrayTypeAnnotation",e,t);}function xIt(e,t){k("BooleanTypeAnnotation",e,t);}function AIt(e,t){k("BooleanLiteralTypeAnnotation",e,t);}function PIt(e,t){k("NullLiteralTypeAnnotation",e,t);}function CIt(e,t){k("ClassImplements",e,t);}function wIt(e,t){k("DeclareClass",e,t);}function IIt(e,t){k("DeclareFunction",e,t);}function OIt(e,t){k("DeclareInterface",e,t);}function DIt(e,t){k("DeclareModule",e,t);}function NIt(e,t){k("DeclareModuleExports",e,t);}function RIt(e,t){k("DeclareTypeAlias",e,t);}function MIt(e,t){k("DeclareOpaqueType",e,t);}function LIt(e,t){k("DeclareVariable",e,t);}function kIt(e,t){k("DeclareExportDeclaration",e,t);}function FIt(e,t){k("DeclareExportAllDeclaration",e,t);}function BIt(e,t){k("DeclaredPredicate",e,t);}function jIt(e,t){k("ExistsTypeAnnotation",e,t);}function UIt(e,t){k("FunctionTypeAnnotation",e,t);}function qIt(e,t){k("FunctionTypeParam",e,t);}function VIt(e,t){k("GenericTypeAnnotation",e,t);}function HIt(e,t){k("InferredPredicate",e,t);}function GIt(e,t){k("InterfaceExtends",e,t);}function $It(e,t){k("InterfaceDeclaration",e,t);}function KIt(e,t){k("InterfaceTypeAnnotation",e,t);}function YIt(e,t){k("IntersectionTypeAnnotation",e,t);}function WIt(e,t){k("MixedTypeAnnotation",e,t);}function XIt(e,t){k("EmptyTypeAnnotation",e,t);}function zIt(e,t){k("NullableTypeAnnotation",e,t);}function JIt(e,t){k("NumberLiteralTypeAnnotation",e,t);}function QIt(e,t){k("NumberTypeAnnotation",e,t);}function ZIt(e,t){k("ObjectTypeAnnotation",e,t);}function eOt(e,t){k("ObjectTypeInternalSlot",e,t);}function tOt(e,t){k("ObjectTypeCallProperty",e,t);}function rOt(e,t){k("ObjectTypeIndexer",e,t);}function nOt(e,t){k("ObjectTypeProperty",e,t);}function iOt(e,t){k("ObjectTypeSpreadProperty",e,t);}function sOt(e,t){k("OpaqueType",e,t);}function aOt(e,t){k("QualifiedTypeIdentifier",e,t);}function oOt(e,t){k("StringLiteralTypeAnnotation",e,t);}function uOt(e,t){k("StringTypeAnnotation",e,t);}function lOt(e,t){k("SymbolTypeAnnotation",e,t);}function cOt(e,t){k("ThisTypeAnnotation",e,t);}function pOt(e,t){k("TupleTypeAnnotation",e,t);}function fOt(e,t){k("TypeofTypeAnnotation",e,t);}function hOt(e,t){k("TypeAlias",e,t);}function dOt(e,t){k("TypeAnnotation",e,t);}function mOt(e,t){k("TypeCastExpression",e,t);}function yOt(e,t){k("TypeParameter",e,t);}function gOt(e,t){k("TypeParameterDeclaration",e,t);}function SOt(e,t){k("TypeParameterInstantiation",e,t);}function TOt(e,t){k("UnionTypeAnnotation",e,t);}function EOt(e,t){k("Variance",e,t);}function bOt(e,t){k("VoidTypeAnnotation",e,t);}function vOt(e,t){k("EnumDeclaration",e,t);}function _Ot(e,t){k("EnumBooleanBody",e,t);}function xOt(e,t){k("EnumNumberBody",e,t);}function AOt(e,t){k("EnumStringBody",e,t);}function POt(e,t){k("EnumSymbolBody",e,t);}function COt(e,t){k("EnumBooleanMember",e,t);}function wOt(e,t){k("EnumNumberMember",e,t);}function IOt(e,t){k("EnumStringMember",e,t);}function OOt(e,t){k("EnumDefaultedMember",e,t);}function DOt(e,t){k("IndexedAccessType",e,t);}function NOt(e,t){k("OptionalIndexedAccessType",e,t);}function ROt(e,t){k("JSXAttribute",e,t);}function MOt(e,t){k("JSXClosingElement",e,t);}function LOt(e,t){k("JSXElement",e,t);}function kOt(e,t){k("JSXEmptyExpression",e,t);}function FOt(e,t){k("JSXExpressionContainer",e,t);}function BOt(e,t){k("JSXSpreadChild",e,t);}function jOt(e,t){k("JSXIdentifier",e,t);}function UOt(e,t){k("JSXMemberExpression",e,t);}function qOt(e,t){k("JSXNamespacedName",e,t);}function VOt(e,t){k("JSXOpeningElement",e,t);}function HOt(e,t){k("JSXSpreadAttribute",e,t);}function GOt(e,t){k("JSXText",e,t);}function $Ot(e,t){k("JSXFragment",e,t);}function KOt(e,t){k("JSXOpeningFragment",e,t);}function YOt(e,t){k("JSXClosingFragment",e,t);}function WOt(e,t){k("Noop",e,t);}function XOt(e,t){k("Placeholder",e,t);}function zOt(e,t){k("V8IntrinsicIdentifier",e,t);}function JOt(e,t){k("ArgumentPlaceholder",e,t);}function QOt(e,t){k("BindExpression",e,t);}function ZOt(e,t){k("ImportAttribute",e,t);}function eDt(e,t){k("Decorator",e,t);}function tDt(e,t){k("DoExpression",e,t);}function rDt(e,t){k("ExportDefaultSpecifier",e,t);}function nDt(e,t){k("RecordExpression",e,t);}function iDt(e,t){k("TupleExpression",e,t);}function sDt(e,t){k("DecimalLiteral",e,t);}function aDt(e,t){k("ModuleExpression",e,t);}function oDt(e,t){k("TopicReference",e,t);}function uDt(e,t){k("PipelineTopicExpression",e,t);}function lDt(e,t){k("PipelineBareFunction",e,t);}function cDt(e,t){k("PipelinePrimaryTopicReference",e,t);}function pDt(e,t){k("TSParameterProperty",e,t);}function fDt(e,t){k("TSDeclareFunction",e,t);}function hDt(e,t){k("TSDeclareMethod",e,t);}function dDt(e,t){k("TSQualifiedName",e,t);}function mDt(e,t){k("TSCallSignatureDeclaration",e,t);}function yDt(e,t){k("TSConstructSignatureDeclaration",e,t);}function gDt(e,t){k("TSPropertySignature",e,t);}function SDt(e,t){k("TSMethodSignature",e,t);}function TDt(e,t){k("TSIndexSignature",e,t);}function EDt(e,t){k("TSAnyKeyword",e,t);}function bDt(e,t){k("TSBooleanKeyword",e,t);}function vDt(e,t){k("TSBigIntKeyword",e,t);}function _Dt(e,t){k("TSIntrinsicKeyword",e,t);}function xDt(e,t){k("TSNeverKeyword",e,t);}function ADt(e,t){k("TSNullKeyword",e,t);}function PDt(e,t){k("TSNumberKeyword",e,t);}function CDt(e,t){k("TSObjectKeyword",e,t);}function wDt(e,t){k("TSStringKeyword",e,t);}function IDt(e,t){k("TSSymbolKeyword",e,t);}function ODt(e,t){k("TSUndefinedKeyword",e,t);}function DDt(e,t){k("TSUnknownKeyword",e,t);}function NDt(e,t){k("TSVoidKeyword",e,t);}function RDt(e,t){k("TSThisType",e,t);}function MDt(e,t){k("TSFunctionType",e,t);}function LDt(e,t){k("TSConstructorType",e,t);}function kDt(e,t){k("TSTypeReference",e,t);}function FDt(e,t){k("TSTypePredicate",e,t);}function BDt(e,t){k("TSTypeQuery",e,t);}function jDt(e,t){k("TSTypeLiteral",e,t);}function UDt(e,t){k("TSArrayType",e,t);}function qDt(e,t){k("TSTupleType",e,t);}function VDt(e,t){k("TSOptionalType",e,t);}function HDt(e,t){k("TSRestType",e,t);}function GDt(e,t){k("TSNamedTupleMember",e,t);}function $Dt(e,t){k("TSUnionType",e,t);}function KDt(e,t){k("TSIntersectionType",e,t);}function YDt(e,t){k("TSConditionalType",e,t);}function WDt(e,t){k("TSInferType",e,t);}function XDt(e,t){k("TSParenthesizedType",e,t);}function zDt(e,t){k("TSTypeOperator",e,t);}function JDt(e,t){k("TSIndexedAccessType",e,t);}function QDt(e,t){k("TSMappedType",e,t);}function ZDt(e,t){k("TSLiteralType",e,t);}function eNt(e,t){k("TSExpressionWithTypeArguments",e,t);}function tNt(e,t){k("TSInterfaceDeclaration",e,t);}function rNt(e,t){k("TSInterfaceBody",e,t);}function nNt(e,t){k("TSTypeAliasDeclaration",e,t);}function iNt(e,t){k("TSInstantiationExpression",e,t);}function sNt(e,t){k("TSAsExpression",e,t);}function aNt(e,t){k("TSSatisfiesExpression",e,t);}function oNt(e,t){k("TSTypeAssertion",e,t);}function uNt(e,t){k("TSEnumDeclaration",e,t);}function lNt(e,t){k("TSEnumMember",e,t);}function cNt(e,t){k("TSModuleDeclaration",e,t);}function pNt(e,t){k("TSModuleBlock",e,t);}function fNt(e,t){k("TSImportType",e,t);}function hNt(e,t){k("TSImportEqualsDeclaration",e,t);}function dNt(e,t){k("TSExternalModuleReference",e,t);}function mNt(e,t){k("TSNonNullExpression",e,t);}function yNt(e,t){k("TSExportAssignment",e,t);}function gNt(e,t){k("TSNamespaceExportDeclaration",e,t);}function SNt(e,t){k("TSTypeAnnotation",e,t);}function TNt(e,t){k("TSTypeParameterInstantiation",e,t);}function ENt(e,t){k("TSTypeParameterDeclaration",e,t);}function bNt(e,t){k("TSTypeParameter",e,t);}function vNt(e,t){k("Standardized",e,t);}function _Nt(e,t){k("Expression",e,t);}function xNt(e,t){k("Binary",e,t);}function ANt(e,t){k("Scopable",e,t);}function PNt(e,t){k("BlockParent",e,t);}function CNt(e,t){k("Block",e,t);}function wNt(e,t){k("Statement",e,t);}function INt(e,t){k("Terminatorless",e,t);}function ONt(e,t){k("CompletionStatement",e,t);}function DNt(e,t){k("Conditional",e,t);}function NNt(e,t){k("Loop",e,t);}function RNt(e,t){k("While",e,t);}function MNt(e,t){k("ExpressionWrapper",e,t);}function LNt(e,t){k("For",e,t);}function kNt(e,t){k("ForXStatement",e,t);}function FNt(e,t){k("Function",e,t);}function BNt(e,t){k("FunctionParent",e,t);}function jNt(e,t){k("Pureish",e,t);}function UNt(e,t){k("Declaration",e,t);}function qNt(e,t){k("PatternLike",e,t);}function VNt(e,t){k("LVal",e,t);}function HNt(e,t){k("TSEntityName",e,t);}function GNt(e,t){k("Literal",e,t);}function $Nt(e,t){k("Immutable",e,t);}function KNt(e,t){k("UserWhitespacable",e,t);}function YNt(e,t){k("Method",e,t);}function WNt(e,t){k("ObjectMember",e,t);}function XNt(e,t){k("Property",e,t);}function zNt(e,t){k("UnaryLike",e,t);}function JNt(e,t){k("Pattern",e,t);}function QNt(e,t){k("Class",e,t);}function ZNt(e,t){k("ImportOrExportDeclaration",e,t);}function eRt(e,t){k("ExportDeclaration",e,t);}function tRt(e,t){k("ModuleSpecifier",e,t);}function rRt(e,t){k("Accessor",e,t);}function nRt(e,t){k("Private",e,t);}function iRt(e,t){k("Flow",e,t);}function sRt(e,t){k("FlowType",e,t);}function aRt(e,t){k("FlowBaseAnnotation",e,t);}function oRt(e,t){k("FlowDeclaration",e,t);}function uRt(e,t){k("FlowPredicate",e,t);}function lRt(e,t){k("EnumBody",e,t);}function cRt(e,t){k("EnumMember",e,t);}function pRt(e,t){k("JSX",e,t);}function fRt(e,t){k("Miscellaneous",e,t);}function hRt(e,t){k("TypeScript",e,t);}function dRt(e,t){k("TSTypeElement",e,t);}function mRt(e,t){k("TSType",e,t);}function yRt(e,t){k("TSBaseType",e,t);}function gRt(e,t){(0, Ub.default)("assertNumberLiteral","assertNumericLiteral"),k("NumberLiteral",e,t);}function SRt(e,t){(0, Ub.default)("assertRegexLiteral","assertRegExpLiteral"),k("RegexLiteral",e,t);}function TRt(e,t){(0, Ub.default)("assertRestProperty","assertRestElement"),k("RestProperty",e,t);}function ERt(e,t){(0, Ub.default)("assertSpreadProperty","assertSpreadElement"),k("SpreadProperty",e,t);}function bRt(e,t){(0, Ub.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),k("ModuleDeclaration",e,t);}});var ixe=chunkTKGT252T_js.c(Uw=>{Object.defineProperty(Uw,"__esModule",{value:!0});Uw.default=void 0;var hu=Gs();Uw.default=vRt;function vRt(e){switch(e){case"string":return (0, hu.stringTypeAnnotation)();case"number":return (0, hu.numberTypeAnnotation)();case"undefined":return (0, hu.voidTypeAnnotation)();case"boolean":return (0, hu.booleanTypeAnnotation)();case"function":return (0, hu.genericTypeAnnotation)((0, hu.identifier)("Function"));case"object":return (0, hu.genericTypeAnnotation)((0, hu.identifier)("Object"));case"symbol":return (0, hu.genericTypeAnnotation)((0, hu.identifier)("Symbol"));case"bigint":return (0, hu.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var dU=chunkTKGT252T_js.c(hU=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.default=axe;var qb=ci();function sxe(e){return (0, qb.isIdentifier)(e)?e.name:`${e.id.name}.${sxe(e.qualification)}`}function axe(e){let t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!(s.indexOf(o)>=0)){if((0, qb.isAnyTypeAnnotation)(o))return [o];if((0, qb.isFlowBaseAnnotation)(o)){n.set(o.type,o);continue}if((0, qb.isUnionTypeAnnotation)(o)){i.has(o.types)||(t.push(...o.types),i.add(o.types));continue}if((0, qb.isGenericTypeAnnotation)(o)){let u=sxe(o.id);if(r.has(u)){let l=r.get(u);l.typeParameters?o.typeParameters&&(l.typeParameters.params.push(...o.typeParameters.params),l.typeParameters.params=axe(l.typeParameters.params)):l=o.typeParameters;}else r.set(u,o);continue}s.push(o);}}for(let[,a]of n)s.push(a);for(let[,a]of r)s.push(a);return s}});var oxe=chunkTKGT252T_js.c(mU=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.default=ARt;var _Rt=Gs(),xRt=dU();function ARt(e){let t=(0, xRt.default)(e);return t.length===1?t[0]:(0, _Rt.unionTypeAnnotation)(t)}});var cxe=chunkTKGT252T_js.c(yU=>{Object.defineProperty(yU,"__esModule",{value:!0});yU.default=lxe;var Vb=ci();function uxe(e){return (0, Vb.isIdentifier)(e)?e.name:`${e.right.name}.${uxe(e.left)}`}function lxe(e){let t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!(s.indexOf(o)>=0)){if((0, Vb.isTSAnyKeyword)(o))return [o];if((0, Vb.isTSBaseType)(o)){n.set(o.type,o);continue}if((0, Vb.isTSUnionType)(o)){i.has(o.types)||(t.push(...o.types),i.add(o.types));continue}if((0, Vb.isTSTypeReference)(o)&&o.typeParameters){let u=uxe(o.typeName);if(r.has(u)){let l=r.get(u);l.typeParameters?o.typeParameters&&(l.typeParameters.params.push(...o.typeParameters.params),l.typeParameters.params=lxe(l.typeParameters.params)):l=o.typeParameters;}else r.set(u,o);continue}s.push(o);}}for(let[,a]of n)s.push(a);for(let[,a]of r)s.push(a);return s}});var pxe=chunkTKGT252T_js.c(gU=>{Object.defineProperty(gU,"__esModule",{value:!0});gU.default=IRt;var PRt=Gs(),CRt=cxe(),wRt=ci();function IRt(e){let t=e.map(n=>(0, wRt.isTSTypeAnnotation)(n)?n.typeAnnotation:n),r=(0, CRt.default)(t);return r.length===1?r[0]:(0, PRt.tsUnionType)(r)}});var fxe=chunkTKGT252T_js.c(H=>{Object.defineProperty(H,"__esModule",{value:!0});Object.defineProperty(H,"AnyTypeAnnotation",{enumerable:!0,get:function(){return $.anyTypeAnnotation}});Object.defineProperty(H,"ArgumentPlaceholder",{enumerable:!0,get:function(){return $.argumentPlaceholder}});Object.defineProperty(H,"ArrayExpression",{enumerable:!0,get:function(){return $.arrayExpression}});Object.defineProperty(H,"ArrayPattern",{enumerable:!0,get:function(){return $.arrayPattern}});Object.defineProperty(H,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return $.arrayTypeAnnotation}});Object.defineProperty(H,"ArrowFunctionExpression",{enumerable:!0,get:function(){return $.arrowFunctionExpression}});Object.defineProperty(H,"AssignmentExpression",{enumerable:!0,get:function(){return $.assignmentExpression}});Object.defineProperty(H,"AssignmentPattern",{enumerable:!0,get:function(){return $.assignmentPattern}});Object.defineProperty(H,"AwaitExpression",{enumerable:!0,get:function(){return $.awaitExpression}});Object.defineProperty(H,"BigIntLiteral",{enumerable:!0,get:function(){return $.bigIntLiteral}});Object.defineProperty(H,"BinaryExpression",{enumerable:!0,get:function(){return $.binaryExpression}});Object.defineProperty(H,"BindExpression",{enumerable:!0,get:function(){return $.bindExpression}});Object.defineProperty(H,"BlockStatement",{enumerable:!0,get:function(){return $.blockStatement}});Object.defineProperty(H,"BooleanLiteral",{enumerable:!0,get:function(){return $.booleanLiteral}});Object.defineProperty(H,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return $.booleanLiteralTypeAnnotation}});Object.defineProperty(H,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return $.booleanTypeAnnotation}});Object.defineProperty(H,"BreakStatement",{enumerable:!0,get:function(){return $.breakStatement}});Object.defineProperty(H,"CallExpression",{enumerable:!0,get:function(){return $.callExpression}});Object.defineProperty(H,"CatchClause",{enumerable:!0,get:function(){return $.catchClause}});Object.defineProperty(H,"ClassAccessorProperty",{enumerable:!0,get:function(){return $.classAccessorProperty}});Object.defineProperty(H,"ClassBody",{enumerable:!0,get:function(){return $.classBody}});Object.defineProperty(H,"ClassDeclaration",{enumerable:!0,get:function(){return $.classDeclaration}});Object.defineProperty(H,"ClassExpression",{enumerable:!0,get:function(){return $.classExpression}});Object.defineProperty(H,"ClassImplements",{enumerable:!0,get:function(){return $.classImplements}});Object.defineProperty(H,"ClassMethod",{enumerable:!0,get:function(){return $.classMethod}});Object.defineProperty(H,"ClassPrivateMethod",{enumerable:!0,get:function(){return $.classPrivateMethod}});Object.defineProperty(H,"ClassPrivateProperty",{enumerable:!0,get:function(){return $.classPrivateProperty}});Object.defineProperty(H,"ClassProperty",{enumerable:!0,get:function(){return $.classProperty}});Object.defineProperty(H,"ConditionalExpression",{enumerable:!0,get:function(){return $.conditionalExpression}});Object.defineProperty(H,"ContinueStatement",{enumerable:!0,get:function(){return $.continueStatement}});Object.defineProperty(H,"DebuggerStatement",{enumerable:!0,get:function(){return $.debuggerStatement}});Object.defineProperty(H,"DecimalLiteral",{enumerable:!0,get:function(){return $.decimalLiteral}});Object.defineProperty(H,"DeclareClass",{enumerable:!0,get:function(){return $.declareClass}});Object.defineProperty(H,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return $.declareExportAllDeclaration}});Object.defineProperty(H,"DeclareExportDeclaration",{enumerable:!0,get:function(){return $.declareExportDeclaration}});Object.defineProperty(H,"DeclareFunction",{enumerable:!0,get:function(){return $.declareFunction}});Object.defineProperty(H,"DeclareInterface",{enumerable:!0,get:function(){return $.declareInterface}});Object.defineProperty(H,"DeclareModule",{enumerable:!0,get:function(){return $.declareModule}});Object.defineProperty(H,"DeclareModuleExports",{enumerable:!0,get:function(){return $.declareModuleExports}});Object.defineProperty(H,"DeclareOpaqueType",{enumerable:!0,get:function(){return $.declareOpaqueType}});Object.defineProperty(H,"DeclareTypeAlias",{enumerable:!0,get:function(){return $.declareTypeAlias}});Object.defineProperty(H,"DeclareVariable",{enumerable:!0,get:function(){return $.declareVariable}});Object.defineProperty(H,"DeclaredPredicate",{enumerable:!0,get:function(){return $.declaredPredicate}});Object.defineProperty(H,"Decorator",{enumerable:!0,get:function(){return $.decorator}});Object.defineProperty(H,"Directive",{enumerable:!0,get:function(){return $.directive}});Object.defineProperty(H,"DirectiveLiteral",{enumerable:!0,get:function(){return $.directiveLiteral}});Object.defineProperty(H,"DoExpression",{enumerable:!0,get:function(){return $.doExpression}});Object.defineProperty(H,"DoWhileStatement",{enumerable:!0,get:function(){return $.doWhileStatement}});Object.defineProperty(H,"EmptyStatement",{enumerable:!0,get:function(){return $.emptyStatement}});Object.defineProperty(H,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return $.emptyTypeAnnotation}});Object.defineProperty(H,"EnumBooleanBody",{enumerable:!0,get:function(){return $.enumBooleanBody}});Object.defineProperty(H,"EnumBooleanMember",{enumerable:!0,get:function(){return $.enumBooleanMember}});Object.defineProperty(H,"EnumDeclaration",{enumerable:!0,get:function(){return $.enumDeclaration}});Object.defineProperty(H,"EnumDefaultedMember",{enumerable:!0,get:function(){return $.enumDefaultedMember}});Object.defineProperty(H,"EnumNumberBody",{enumerable:!0,get:function(){return $.enumNumberBody}});Object.defineProperty(H,"EnumNumberMember",{enumerable:!0,get:function(){return $.enumNumberMember}});Object.defineProperty(H,"EnumStringBody",{enumerable:!0,get:function(){return $.enumStringBody}});Object.defineProperty(H,"EnumStringMember",{enumerable:!0,get:function(){return $.enumStringMember}});Object.defineProperty(H,"EnumSymbolBody",{enumerable:!0,get:function(){return $.enumSymbolBody}});Object.defineProperty(H,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return $.existsTypeAnnotation}});Object.defineProperty(H,"ExportAllDeclaration",{enumerable:!0,get:function(){return $.exportAllDeclaration}});Object.defineProperty(H,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return $.exportDefaultDeclaration}});Object.defineProperty(H,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return $.exportDefaultSpecifier}});Object.defineProperty(H,"ExportNamedDeclaration",{enumerable:!0,get:function(){return $.exportNamedDeclaration}});Object.defineProperty(H,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return $.exportNamespaceSpecifier}});Object.defineProperty(H,"ExportSpecifier",{enumerable:!0,get:function(){return $.exportSpecifier}});Object.defineProperty(H,"ExpressionStatement",{enumerable:!0,get:function(){return $.expressionStatement}});Object.defineProperty(H,"File",{enumerable:!0,get:function(){return $.file}});Object.defineProperty(H,"ForInStatement",{enumerable:!0,get:function(){return $.forInStatement}});Object.defineProperty(H,"ForOfStatement",{enumerable:!0,get:function(){return $.forOfStatement}});Object.defineProperty(H,"ForStatement",{enumerable:!0,get:function(){return $.forStatement}});Object.defineProperty(H,"FunctionDeclaration",{enumerable:!0,get:function(){return $.functionDeclaration}});Object.defineProperty(H,"FunctionExpression",{enumerable:!0,get:function(){return $.functionExpression}});Object.defineProperty(H,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return $.functionTypeAnnotation}});Object.defineProperty(H,"FunctionTypeParam",{enumerable:!0,get:function(){return $.functionTypeParam}});Object.defineProperty(H,"GenericTypeAnnotation",{enumerable:!0,get:function(){return $.genericTypeAnnotation}});Object.defineProperty(H,"Identifier",{enumerable:!0,get:function(){return $.identifier}});Object.defineProperty(H,"IfStatement",{enumerable:!0,get:function(){return $.ifStatement}});Object.defineProperty(H,"Import",{enumerable:!0,get:function(){return $.import}});Object.defineProperty(H,"ImportAttribute",{enumerable:!0,get:function(){return $.importAttribute}});Object.defineProperty(H,"ImportDeclaration",{enumerable:!0,get:function(){return $.importDeclaration}});Object.defineProperty(H,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return $.importDefaultSpecifier}});Object.defineProperty(H,"ImportExpression",{enumerable:!0,get:function(){return $.importExpression}});Object.defineProperty(H,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return $.importNamespaceSpecifier}});Object.defineProperty(H,"ImportSpecifier",{enumerable:!0,get:function(){return $.importSpecifier}});Object.defineProperty(H,"IndexedAccessType",{enumerable:!0,get:function(){return $.indexedAccessType}});Object.defineProperty(H,"InferredPredicate",{enumerable:!0,get:function(){return $.inferredPredicate}});Object.defineProperty(H,"InterfaceDeclaration",{enumerable:!0,get:function(){return $.interfaceDeclaration}});Object.defineProperty(H,"InterfaceExtends",{enumerable:!0,get:function(){return $.interfaceExtends}});Object.defineProperty(H,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return $.interfaceTypeAnnotation}});Object.defineProperty(H,"InterpreterDirective",{enumerable:!0,get:function(){return $.interpreterDirective}});Object.defineProperty(H,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return $.intersectionTypeAnnotation}});Object.defineProperty(H,"JSXAttribute",{enumerable:!0,get:function(){return $.jsxAttribute}});Object.defineProperty(H,"JSXClosingElement",{enumerable:!0,get:function(){return $.jsxClosingElement}});Object.defineProperty(H,"JSXClosingFragment",{enumerable:!0,get:function(){return $.jsxClosingFragment}});Object.defineProperty(H,"JSXElement",{enumerable:!0,get:function(){return $.jsxElement}});Object.defineProperty(H,"JSXEmptyExpression",{enumerable:!0,get:function(){return $.jsxEmptyExpression}});Object.defineProperty(H,"JSXExpressionContainer",{enumerable:!0,get:function(){return $.jsxExpressionContainer}});Object.defineProperty(H,"JSXFragment",{enumerable:!0,get:function(){return $.jsxFragment}});Object.defineProperty(H,"JSXIdentifier",{enumerable:!0,get:function(){return $.jsxIdentifier}});Object.defineProperty(H,"JSXMemberExpression",{enumerable:!0,get:function(){return $.jsxMemberExpression}});Object.defineProperty(H,"JSXNamespacedName",{enumerable:!0,get:function(){return $.jsxNamespacedName}});Object.defineProperty(H,"JSXOpeningElement",{enumerable:!0,get:function(){return $.jsxOpeningElement}});Object.defineProperty(H,"JSXOpeningFragment",{enumerable:!0,get:function(){return $.jsxOpeningFragment}});Object.defineProperty(H,"JSXSpreadAttribute",{enumerable:!0,get:function(){return $.jsxSpreadAttribute}});Object.defineProperty(H,"JSXSpreadChild",{enumerable:!0,get:function(){return $.jsxSpreadChild}});Object.defineProperty(H,"JSXText",{enumerable:!0,get:function(){return $.jsxText}});Object.defineProperty(H,"LabeledStatement",{enumerable:!0,get:function(){return $.labeledStatement}});Object.defineProperty(H,"LogicalExpression",{enumerable:!0,get:function(){return $.logicalExpression}});Object.defineProperty(H,"MemberExpression",{enumerable:!0,get:function(){return $.memberExpression}});Object.defineProperty(H,"MetaProperty",{enumerable:!0,get:function(){return $.metaProperty}});Object.defineProperty(H,"MixedTypeAnnotation",{enumerable:!0,get:function(){return $.mixedTypeAnnotation}});Object.defineProperty(H,"ModuleExpression",{enumerable:!0,get:function(){return $.moduleExpression}});Object.defineProperty(H,"NewExpression",{enumerable:!0,get:function(){return $.newExpression}});Object.defineProperty(H,"Noop",{enumerable:!0,get:function(){return $.noop}});Object.defineProperty(H,"NullLiteral",{enumerable:!0,get:function(){return $.nullLiteral}});Object.defineProperty(H,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return $.nullLiteralTypeAnnotation}});Object.defineProperty(H,"NullableTypeAnnotation",{enumerable:!0,get:function(){return $.nullableTypeAnnotation}});Object.defineProperty(H,"NumberLiteral",{enumerable:!0,get:function(){return $.numberLiteral}});Object.defineProperty(H,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return $.numberLiteralTypeAnnotation}});Object.defineProperty(H,"NumberTypeAnnotation",{enumerable:!0,get:function(){return $.numberTypeAnnotation}});Object.defineProperty(H,"NumericLiteral",{enumerable:!0,get:function(){return $.numericLiteral}});Object.defineProperty(H,"ObjectExpression",{enumerable:!0,get:function(){return $.objectExpression}});Object.defineProperty(H,"ObjectMethod",{enumerable:!0,get:function(){return $.objectMethod}});Object.defineProperty(H,"ObjectPattern",{enumerable:!0,get:function(){return $.objectPattern}});Object.defineProperty(H,"ObjectProperty",{enumerable:!0,get:function(){return $.objectProperty}});Object.defineProperty(H,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return $.objectTypeAnnotation}});Object.defineProperty(H,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return $.objectTypeCallProperty}});Object.defineProperty(H,"ObjectTypeIndexer",{enumerable:!0,get:function(){return $.objectTypeIndexer}});Object.defineProperty(H,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return $.objectTypeInternalSlot}});Object.defineProperty(H,"ObjectTypeProperty",{enumerable:!0,get:function(){return $.objectTypeProperty}});Object.defineProperty(H,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return $.objectTypeSpreadProperty}});Object.defineProperty(H,"OpaqueType",{enumerable:!0,get:function(){return $.opaqueType}});Object.defineProperty(H,"OptionalCallExpression",{enumerable:!0,get:function(){return $.optionalCallExpression}});Object.defineProperty(H,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return $.optionalIndexedAccessType}});Object.defineProperty(H,"OptionalMemberExpression",{enumerable:!0,get:function(){return $.optionalMemberExpression}});Object.defineProperty(H,"ParenthesizedExpression",{enumerable:!0,get:function(){return $.parenthesizedExpression}});Object.defineProperty(H,"PipelineBareFunction",{enumerable:!0,get:function(){return $.pipelineBareFunction}});Object.defineProperty(H,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return $.pipelinePrimaryTopicReference}});Object.defineProperty(H,"PipelineTopicExpression",{enumerable:!0,get:function(){return $.pipelineTopicExpression}});Object.defineProperty(H,"Placeholder",{enumerable:!0,get:function(){return $.placeholder}});Object.defineProperty(H,"PrivateName",{enumerable:!0,get:function(){return $.privateName}});Object.defineProperty(H,"Program",{enumerable:!0,get:function(){return $.program}});Object.defineProperty(H,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return $.qualifiedTypeIdentifier}});Object.defineProperty(H,"RecordExpression",{enumerable:!0,get:function(){return $.recordExpression}});Object.defineProperty(H,"RegExpLiteral",{enumerable:!0,get:function(){return $.regExpLiteral}});Object.defineProperty(H,"RegexLiteral",{enumerable:!0,get:function(){return $.regexLiteral}});Object.defineProperty(H,"RestElement",{enumerable:!0,get:function(){return $.restElement}});Object.defineProperty(H,"RestProperty",{enumerable:!0,get:function(){return $.restProperty}});Object.defineProperty(H,"ReturnStatement",{enumerable:!0,get:function(){return $.returnStatement}});Object.defineProperty(H,"SequenceExpression",{enumerable:!0,get:function(){return $.sequenceExpression}});Object.defineProperty(H,"SpreadElement",{enumerable:!0,get:function(){return $.spreadElement}});Object.defineProperty(H,"SpreadProperty",{enumerable:!0,get:function(){return $.spreadProperty}});Object.defineProperty(H,"StaticBlock",{enumerable:!0,get:function(){return $.staticBlock}});Object.defineProperty(H,"StringLiteral",{enumerable:!0,get:function(){return $.stringLiteral}});Object.defineProperty(H,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return $.stringLiteralTypeAnnotation}});Object.defineProperty(H,"StringTypeAnnotation",{enumerable:!0,get:function(){return $.stringTypeAnnotation}});Object.defineProperty(H,"Super",{enumerable:!0,get:function(){return $.super}});Object.defineProperty(H,"SwitchCase",{enumerable:!0,get:function(){return $.switchCase}});Object.defineProperty(H,"SwitchStatement",{enumerable:!0,get:function(){return $.switchStatement}});Object.defineProperty(H,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return $.symbolTypeAnnotation}});Object.defineProperty(H,"TSAnyKeyword",{enumerable:!0,get:function(){return $.tsAnyKeyword}});Object.defineProperty(H,"TSArrayType",{enumerable:!0,get:function(){return $.tsArrayType}});Object.defineProperty(H,"TSAsExpression",{enumerable:!0,get:function(){return $.tsAsExpression}});Object.defineProperty(H,"TSBigIntKeyword",{enumerable:!0,get:function(){return $.tsBigIntKeyword}});Object.defineProperty(H,"TSBooleanKeyword",{enumerable:!0,get:function(){return $.tsBooleanKeyword}});Object.defineProperty(H,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return $.tsCallSignatureDeclaration}});Object.defineProperty(H,"TSConditionalType",{enumerable:!0,get:function(){return $.tsConditionalType}});Object.defineProperty(H,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return $.tsConstructSignatureDeclaration}});Object.defineProperty(H,"TSConstructorType",{enumerable:!0,get:function(){return $.tsConstructorType}});Object.defineProperty(H,"TSDeclareFunction",{enumerable:!0,get:function(){return $.tsDeclareFunction}});Object.defineProperty(H,"TSDeclareMethod",{enumerable:!0,get:function(){return $.tsDeclareMethod}});Object.defineProperty(H,"TSEnumDeclaration",{enumerable:!0,get:function(){return $.tsEnumDeclaration}});Object.defineProperty(H,"TSEnumMember",{enumerable:!0,get:function(){return $.tsEnumMember}});Object.defineProperty(H,"TSExportAssignment",{enumerable:!0,get:function(){return $.tsExportAssignment}});Object.defineProperty(H,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return $.tsExpressionWithTypeArguments}});Object.defineProperty(H,"TSExternalModuleReference",{enumerable:!0,get:function(){return $.tsExternalModuleReference}});Object.defineProperty(H,"TSFunctionType",{enumerable:!0,get:function(){return $.tsFunctionType}});Object.defineProperty(H,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return $.tsImportEqualsDeclaration}});Object.defineProperty(H,"TSImportType",{enumerable:!0,get:function(){return $.tsImportType}});Object.defineProperty(H,"TSIndexSignature",{enumerable:!0,get:function(){return $.tsIndexSignature}});Object.defineProperty(H,"TSIndexedAccessType",{enumerable:!0,get:function(){return $.tsIndexedAccessType}});Object.defineProperty(H,"TSInferType",{enumerable:!0,get:function(){return $.tsInferType}});Object.defineProperty(H,"TSInstantiationExpression",{enumerable:!0,get:function(){return $.tsInstantiationExpression}});Object.defineProperty(H,"TSInterfaceBody",{enumerable:!0,get:function(){return $.tsInterfaceBody}});Object.defineProperty(H,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return $.tsInterfaceDeclaration}});Object.defineProperty(H,"TSIntersectionType",{enumerable:!0,get:function(){return $.tsIntersectionType}});Object.defineProperty(H,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return $.tsIntrinsicKeyword}});Object.defineProperty(H,"TSLiteralType",{enumerable:!0,get:function(){return $.tsLiteralType}});Object.defineProperty(H,"TSMappedType",{enumerable:!0,get:function(){return $.tsMappedType}});Object.defineProperty(H,"TSMethodSignature",{enumerable:!0,get:function(){return $.tsMethodSignature}});Object.defineProperty(H,"TSModuleBlock",{enumerable:!0,get:function(){return $.tsModuleBlock}});Object.defineProperty(H,"TSModuleDeclaration",{enumerable:!0,get:function(){return $.tsModuleDeclaration}});Object.defineProperty(H,"TSNamedTupleMember",{enumerable:!0,get:function(){return $.tsNamedTupleMember}});Object.defineProperty(H,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return $.tsNamespaceExportDeclaration}});Object.defineProperty(H,"TSNeverKeyword",{enumerable:!0,get:function(){return $.tsNeverKeyword}});Object.defineProperty(H,"TSNonNullExpression",{enumerable:!0,get:function(){return $.tsNonNullExpression}});Object.defineProperty(H,"TSNullKeyword",{enumerable:!0,get:function(){return $.tsNullKeyword}});Object.defineProperty(H,"TSNumberKeyword",{enumerable:!0,get:function(){return $.tsNumberKeyword}});Object.defineProperty(H,"TSObjectKeyword",{enumerable:!0,get:function(){return $.tsObjectKeyword}});Object.defineProperty(H,"TSOptionalType",{enumerable:!0,get:function(){return $.tsOptionalType}});Object.defineProperty(H,"TSParameterProperty",{enumerable:!0,get:function(){return $.tsParameterProperty}});Object.defineProperty(H,"TSParenthesizedType",{enumerable:!0,get:function(){return $.tsParenthesizedType}});Object.defineProperty(H,"TSPropertySignature",{enumerable:!0,get:function(){return $.tsPropertySignature}});Object.defineProperty(H,"TSQualifiedName",{enumerable:!0,get:function(){return $.tsQualifiedName}});Object.defineProperty(H,"TSRestType",{enumerable:!0,get:function(){return $.tsRestType}});Object.defineProperty(H,"TSSatisfiesExpression",{enumerable:!0,get:function(){return $.tsSatisfiesExpression}});Object.defineProperty(H,"TSStringKeyword",{enumerable:!0,get:function(){return $.tsStringKeyword}});Object.defineProperty(H,"TSSymbolKeyword",{enumerable:!0,get:function(){return $.tsSymbolKeyword}});Object.defineProperty(H,"TSThisType",{enumerable:!0,get:function(){return $.tsThisType}});Object.defineProperty(H,"TSTupleType",{enumerable:!0,get:function(){return $.tsTupleType}});Object.defineProperty(H,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return $.tsTypeAliasDeclaration}});Object.defineProperty(H,"TSTypeAnnotation",{enumerable:!0,get:function(){return $.tsTypeAnnotation}});Object.defineProperty(H,"TSTypeAssertion",{enumerable:!0,get:function(){return $.tsTypeAssertion}});Object.defineProperty(H,"TSTypeLiteral",{enumerable:!0,get:function(){return $.tsTypeLiteral}});Object.defineProperty(H,"TSTypeOperator",{enumerable:!0,get:function(){return $.tsTypeOperator}});Object.defineProperty(H,"TSTypeParameter",{enumerable:!0,get:function(){return $.tsTypeParameter}});Object.defineProperty(H,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return $.tsTypeParameterDeclaration}});Object.defineProperty(H,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return $.tsTypeParameterInstantiation}});Object.defineProperty(H,"TSTypePredicate",{enumerable:!0,get:function(){return $.tsTypePredicate}});Object.defineProperty(H,"TSTypeQuery",{enumerable:!0,get:function(){return $.tsTypeQuery}});Object.defineProperty(H,"TSTypeReference",{enumerable:!0,get:function(){return $.tsTypeReference}});Object.defineProperty(H,"TSUndefinedKeyword",{enumerable:!0,get:function(){return $.tsUndefinedKeyword}});Object.defineProperty(H,"TSUnionType",{enumerable:!0,get:function(){return $.tsUnionType}});Object.defineProperty(H,"TSUnknownKeyword",{enumerable:!0,get:function(){return $.tsUnknownKeyword}});Object.defineProperty(H,"TSVoidKeyword",{enumerable:!0,get:function(){return $.tsVoidKeyword}});Object.defineProperty(H,"TaggedTemplateExpression",{enumerable:!0,get:function(){return $.taggedTemplateExpression}});Object.defineProperty(H,"TemplateElement",{enumerable:!0,get:function(){return $.templateElement}});Object.defineProperty(H,"TemplateLiteral",{enumerable:!0,get:function(){return $.templateLiteral}});Object.defineProperty(H,"ThisExpression",{enumerable:!0,get:function(){return $.thisExpression}});Object.defineProperty(H,"ThisTypeAnnotation",{enumerable:!0,get:function(){return $.thisTypeAnnotation}});Object.defineProperty(H,"ThrowStatement",{enumerable:!0,get:function(){return $.throwStatement}});Object.defineProperty(H,"TopicReference",{enumerable:!0,get:function(){return $.topicReference}});Object.defineProperty(H,"TryStatement",{enumerable:!0,get:function(){return $.tryStatement}});Object.defineProperty(H,"TupleExpression",{enumerable:!0,get:function(){return $.tupleExpression}});Object.defineProperty(H,"TupleTypeAnnotation",{enumerable:!0,get:function(){return $.tupleTypeAnnotation}});Object.defineProperty(H,"TypeAlias",{enumerable:!0,get:function(){return $.typeAlias}});Object.defineProperty(H,"TypeAnnotation",{enumerable:!0,get:function(){return $.typeAnnotation}});Object.defineProperty(H,"TypeCastExpression",{enumerable:!0,get:function(){return $.typeCastExpression}});Object.defineProperty(H,"TypeParameter",{enumerable:!0,get:function(){return $.typeParameter}});Object.defineProperty(H,"TypeParameterDeclaration",{enumerable:!0,get:function(){return $.typeParameterDeclaration}});Object.defineProperty(H,"TypeParameterInstantiation",{enumerable:!0,get:function(){return $.typeParameterInstantiation}});Object.defineProperty(H,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return $.typeofTypeAnnotation}});Object.defineProperty(H,"UnaryExpression",{enumerable:!0,get:function(){return $.unaryExpression}});Object.defineProperty(H,"UnionTypeAnnotation",{enumerable:!0,get:function(){return $.unionTypeAnnotation}});Object.defineProperty(H,"UpdateExpression",{enumerable:!0,get:function(){return $.updateExpression}});Object.defineProperty(H,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return $.v8IntrinsicIdentifier}});Object.defineProperty(H,"VariableDeclaration",{enumerable:!0,get:function(){return $.variableDeclaration}});Object.defineProperty(H,"VariableDeclarator",{enumerable:!0,get:function(){return $.variableDeclarator}});Object.defineProperty(H,"Variance",{enumerable:!0,get:function(){return $.variance}});Object.defineProperty(H,"VoidTypeAnnotation",{enumerable:!0,get:function(){return $.voidTypeAnnotation}});Object.defineProperty(H,"WhileStatement",{enumerable:!0,get:function(){return $.whileStatement}});Object.defineProperty(H,"WithStatement",{enumerable:!0,get:function(){return $.withStatement}});Object.defineProperty(H,"YieldExpression",{enumerable:!0,get:function(){return $.yieldExpression}});var $=Gs();});var dxe=chunkTKGT252T_js.c(SU=>{Object.defineProperty(SU,"__esModule",{value:!0});SU.buildUndefinedNode=ORt;var hxe=Gs();function ORt(){return (0, hxe.unaryExpression)("void",(0, hxe.numericLiteral)(0),!0)}});var Bf=chunkTKGT252T_js.c(TU=>{Object.defineProperty(TU,"__esModule",{value:!0});TU.default=DRt;var mxe=xo(),yxe=ci(),{hasOwn:xc}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function gxe(e,t,r,n){return e&&typeof e.type=="string"?Txe(e,t,r,n):e}function Sxe(e,t,r,n){return Array.isArray(e)?e.map(i=>gxe(i,t,r,n)):gxe(e,t,r,n)}function DRt(e,t=!0,r=!1){return Txe(e,t,r,new Map)}function Txe(e,t=!0,r=!1,n){if(!e)return e;let{type:i}=e,s={type:e.type};if((0, yxe.isIdentifier)(e))s.name=e.name,xc(e,"optional")&&typeof e.optional=="boolean"&&(s.optional=e.optional),xc(e,"typeAnnotation")&&(s.typeAnnotation=t?Sxe(e.typeAnnotation,!0,r,n):e.typeAnnotation);else if(xc(mxe.NODE_FIELDS,i))for(let a of Object.keys(mxe.NODE_FIELDS[i]))xc(e,a)&&(t?s[a]=(0, yxe.isFile)(e)&&a==="comments"?qw(e.comments,t,r,n):Sxe(e[a],!0,r,n):s[a]=e[a]);else throw new Error(`Unknown node type: "${i}"`);return xc(e,"loc")&&(r?s.loc=null:s.loc=e.loc),xc(e,"leadingComments")&&(s.leadingComments=qw(e.leadingComments,t,r,n)),xc(e,"innerComments")&&(s.innerComments=qw(e.innerComments,t,r,n)),xc(e,"trailingComments")&&(s.trailingComments=qw(e.trailingComments,t,r,n)),xc(e,"extra")&&(s.extra=Object.assign({},e.extra)),s}function qw(e,t,r,n){return !e||!t?e:e.map(i=>{let s=n.get(i);if(s)return s;let{type:a,value:o,loc:u}=i,l={type:a,value:o,loc:u};return r&&(l.loc=null),n.set(i,l),l})}});var Exe=chunkTKGT252T_js.c(EU=>{Object.defineProperty(EU,"__esModule",{value:!0});EU.default=RRt;var NRt=Bf();function RRt(e){return (0, NRt.default)(e,!1)}});var bxe=chunkTKGT252T_js.c(bU=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.default=LRt;var MRt=Bf();function LRt(e){return (0, MRt.default)(e)}});var vxe=chunkTKGT252T_js.c(vU=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.default=FRt;var kRt=Bf();function FRt(e){return (0, kRt.default)(e,!0,!0)}});var _xe=chunkTKGT252T_js.c(_U=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.default=jRt;var BRt=Bf();function jRt(e){return (0, BRt.default)(e,!1,!0)}});var AU=chunkTKGT252T_js.c(xU=>{Object.defineProperty(xU,"__esModule",{value:!0});xU.default=URt;function URt(e,t,r){if(!r||!e)return e;let n=`${t}Comments`;return e[n]?t==="leading"?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r,e}});var xxe=chunkTKGT252T_js.c(PU=>{Object.defineProperty(PU,"__esModule",{value:!0});PU.default=VRt;var qRt=AU();function VRt(e,t,r,n){return (0, qRt.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}});var Vw=chunkTKGT252T_js.c(CU=>{Object.defineProperty(CU,"__esModule",{value:!0});CU.default=HRt;function HRt(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))));}});var IU=chunkTKGT252T_js.c(wU=>{Object.defineProperty(wU,"__esModule",{value:!0});wU.default=$Rt;var GRt=Vw();function $Rt(e,t){(0, GRt.default)("innerComments",e,t);}});var DU=chunkTKGT252T_js.c(OU=>{Object.defineProperty(OU,"__esModule",{value:!0});OU.default=YRt;var KRt=Vw();function YRt(e,t){(0, KRt.default)("leadingComments",e,t);}});var RU=chunkTKGT252T_js.c(NU=>{Object.defineProperty(NU,"__esModule",{value:!0});NU.default=XRt;var WRt=Vw();function XRt(e,t){(0, WRt.default)("trailingComments",e,t);}});var LU=chunkTKGT252T_js.c(MU=>{Object.defineProperty(MU,"__esModule",{value:!0});MU.default=ZRt;var zRt=RU(),JRt=DU(),QRt=IU();function ZRt(e,t){return (0, zRt.default)(e,t),(0, JRt.default)(e,t),(0, QRt.default)(e,t),e}});var Axe=chunkTKGT252T_js.c(kU=>{Object.defineProperty(kU,"__esModule",{value:!0});kU.default=tMt;var eMt=Lf();function tMt(e){return eMt.COMMENT_KEYS.forEach(t=>{e[t]=null;}),e}});var Pxe=chunkTKGT252T_js.c(_e=>{Object.defineProperty(_e,"__esModule",{value:!0});_e.WHILE_TYPES=_e.USERWHITESPACABLE_TYPES=_e.UNARYLIKE_TYPES=_e.TYPESCRIPT_TYPES=_e.TSTYPE_TYPES=_e.TSTYPEELEMENT_TYPES=_e.TSENTITYNAME_TYPES=_e.TSBASETYPE_TYPES=_e.TERMINATORLESS_TYPES=_e.STATEMENT_TYPES=_e.STANDARDIZED_TYPES=_e.SCOPABLE_TYPES=_e.PUREISH_TYPES=_e.PROPERTY_TYPES=_e.PRIVATE_TYPES=_e.PATTERN_TYPES=_e.PATTERNLIKE_TYPES=_e.OBJECTMEMBER_TYPES=_e.MODULESPECIFIER_TYPES=_e.MODULEDECLARATION_TYPES=_e.MISCELLANEOUS_TYPES=_e.METHOD_TYPES=_e.LVAL_TYPES=_e.LOOP_TYPES=_e.LITERAL_TYPES=_e.JSX_TYPES=_e.IMPORTOREXPORTDECLARATION_TYPES=_e.IMMUTABLE_TYPES=_e.FUNCTION_TYPES=_e.FUNCTIONPARENT_TYPES=_e.FOR_TYPES=_e.FORXSTATEMENT_TYPES=_e.FLOW_TYPES=_e.FLOWTYPE_TYPES=_e.FLOWPREDICATE_TYPES=_e.FLOWDECLARATION_TYPES=_e.FLOWBASEANNOTATION_TYPES=_e.EXPRESSION_TYPES=_e.EXPRESSIONWRAPPER_TYPES=_e.EXPORTDECLARATION_TYPES=_e.ENUMMEMBER_TYPES=_e.ENUMBODY_TYPES=_e.DECLARATION_TYPES=_e.CONDITIONAL_TYPES=_e.COMPLETIONSTATEMENT_TYPES=_e.CLASS_TYPES=_e.BLOCK_TYPES=_e.BLOCKPARENT_TYPES=_e.BINARY_TYPES=_e.ACCESSOR_TYPES=void 0;var It=xo();_e.STANDARDIZED_TYPES=It.FLIPPED_ALIAS_KEYS.Standardized;_e.EXPRESSION_TYPES=It.FLIPPED_ALIAS_KEYS.Expression;_e.BINARY_TYPES=It.FLIPPED_ALIAS_KEYS.Binary;_e.SCOPABLE_TYPES=It.FLIPPED_ALIAS_KEYS.Scopable;_e.BLOCKPARENT_TYPES=It.FLIPPED_ALIAS_KEYS.BlockParent;_e.BLOCK_TYPES=It.FLIPPED_ALIAS_KEYS.Block;_e.STATEMENT_TYPES=It.FLIPPED_ALIAS_KEYS.Statement;_e.TERMINATORLESS_TYPES=It.FLIPPED_ALIAS_KEYS.Terminatorless;_e.COMPLETIONSTATEMENT_TYPES=It.FLIPPED_ALIAS_KEYS.CompletionStatement;_e.CONDITIONAL_TYPES=It.FLIPPED_ALIAS_KEYS.Conditional;_e.LOOP_TYPES=It.FLIPPED_ALIAS_KEYS.Loop;_e.WHILE_TYPES=It.FLIPPED_ALIAS_KEYS.While;_e.EXPRESSIONWRAPPER_TYPES=It.FLIPPED_ALIAS_KEYS.ExpressionWrapper;_e.FOR_TYPES=It.FLIPPED_ALIAS_KEYS.For;_e.FORXSTATEMENT_TYPES=It.FLIPPED_ALIAS_KEYS.ForXStatement;_e.FUNCTION_TYPES=It.FLIPPED_ALIAS_KEYS.Function;_e.FUNCTIONPARENT_TYPES=It.FLIPPED_ALIAS_KEYS.FunctionParent;_e.PUREISH_TYPES=It.FLIPPED_ALIAS_KEYS.Pureish;_e.DECLARATION_TYPES=It.FLIPPED_ALIAS_KEYS.Declaration;_e.PATTERNLIKE_TYPES=It.FLIPPED_ALIAS_KEYS.PatternLike;_e.LVAL_TYPES=It.FLIPPED_ALIAS_KEYS.LVal;_e.TSENTITYNAME_TYPES=It.FLIPPED_ALIAS_KEYS.TSEntityName;_e.LITERAL_TYPES=It.FLIPPED_ALIAS_KEYS.Literal;_e.IMMUTABLE_TYPES=It.FLIPPED_ALIAS_KEYS.Immutable;_e.USERWHITESPACABLE_TYPES=It.FLIPPED_ALIAS_KEYS.UserWhitespacable;_e.METHOD_TYPES=It.FLIPPED_ALIAS_KEYS.Method;_e.OBJECTMEMBER_TYPES=It.FLIPPED_ALIAS_KEYS.ObjectMember;_e.PROPERTY_TYPES=It.FLIPPED_ALIAS_KEYS.Property;_e.UNARYLIKE_TYPES=It.FLIPPED_ALIAS_KEYS.UnaryLike;_e.PATTERN_TYPES=It.FLIPPED_ALIAS_KEYS.Pattern;_e.CLASS_TYPES=It.FLIPPED_ALIAS_KEYS.Class;var rMt=_e.IMPORTOREXPORTDECLARATION_TYPES=It.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;_e.EXPORTDECLARATION_TYPES=It.FLIPPED_ALIAS_KEYS.ExportDeclaration;_e.MODULESPECIFIER_TYPES=It.FLIPPED_ALIAS_KEYS.ModuleSpecifier;_e.ACCESSOR_TYPES=It.FLIPPED_ALIAS_KEYS.Accessor;_e.PRIVATE_TYPES=It.FLIPPED_ALIAS_KEYS.Private;_e.FLOW_TYPES=It.FLIPPED_ALIAS_KEYS.Flow;_e.FLOWTYPE_TYPES=It.FLIPPED_ALIAS_KEYS.FlowType;_e.FLOWBASEANNOTATION_TYPES=It.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;_e.FLOWDECLARATION_TYPES=It.FLIPPED_ALIAS_KEYS.FlowDeclaration;_e.FLOWPREDICATE_TYPES=It.FLIPPED_ALIAS_KEYS.FlowPredicate;_e.ENUMBODY_TYPES=It.FLIPPED_ALIAS_KEYS.EnumBody;_e.ENUMMEMBER_TYPES=It.FLIPPED_ALIAS_KEYS.EnumMember;_e.JSX_TYPES=It.FLIPPED_ALIAS_KEYS.JSX;_e.MISCELLANEOUS_TYPES=It.FLIPPED_ALIAS_KEYS.Miscellaneous;_e.TYPESCRIPT_TYPES=It.FLIPPED_ALIAS_KEYS.TypeScript;_e.TSTYPEELEMENT_TYPES=It.FLIPPED_ALIAS_KEYS.TSTypeElement;_e.TSTYPE_TYPES=It.FLIPPED_ALIAS_KEYS.TSType;_e.TSBASETYPE_TYPES=It.FLIPPED_ALIAS_KEYS.TSBaseType;_e.MODULEDECLARATION_TYPES=rMt;});var jU=chunkTKGT252T_js.c(BU=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.default=nMt;var Hw=ci(),FU=Gs();function nMt(e,t){if((0, Hw.isBlockStatement)(e))return e;let r=[];return (0, Hw.isEmptyStatement)(e)?r=[]:((0, Hw.isStatement)(e)||((0, Hw.isFunction)(t)?e=(0, FU.returnStatement)(e):e=(0, FU.expressionStatement)(e)),r=[e]),(0, FU.blockStatement)(r)}});var Cxe=chunkTKGT252T_js.c(UU=>{Object.defineProperty(UU,"__esModule",{value:!0});UU.default=sMt;var iMt=jU();function sMt(e,t="body"){let r=(0, iMt.default)(e[t],e);return e[t]=r,r}});var VU=chunkTKGT252T_js.c(qU=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.default=uMt;var aMt=TS(),oMt=chunkF6FLWRPJ_js.k();function uMt(e){e=e+"";let t="";for(let r of e)t+=(0, oMt.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,n){return n?n.toUpperCase():""}),(0, aMt.default)(t)||(t=`_${t}`),t||"_"}});var wxe=chunkTKGT252T_js.c(HU=>{Object.defineProperty(HU,"__esModule",{value:!0});HU.default=cMt;var lMt=VU();function cMt(e){return e=(0, lMt.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var Ixe=chunkTKGT252T_js.c(GU=>{Object.defineProperty(GU,"__esModule",{value:!0});GU.default=hMt;var pMt=ci(),fMt=Gs();function hMt(e,t=e.key||e.property){return !e.computed&&(0, pMt.isIdentifier)(t)&&(t=(0, fMt.stringLiteral)(t.name)),t}});var Oxe=chunkTKGT252T_js.c(Gw=>{Object.defineProperty(Gw,"__esModule",{value:!0});Gw.default=void 0;var Hb=ci();Gw.default=dMt;function dMt(e){if((0, Hb.isExpressionStatement)(e)&&(e=e.expression),(0, Hb.isExpression)(e))return e;if((0, Hb.isClass)(e)?e.type="ClassExpression":(0, Hb.isFunction)(e)&&(e.type="FunctionExpression"),!(0, Hb.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var YU=chunkTKGT252T_js.c(KU=>{Object.defineProperty(KU,"__esModule",{value:!0});KU.default=$U;var mMt=xo();function $U(e,t,r){if(!e)return;let n=mMt.VISITOR_KEYS[e.type];if(n){r=r||{},t(e,r);for(let i of n){let s=e[i];if(Array.isArray(s))for(let a of s)$U(a,t,r);else $U(s,t,r);}}}});var XU=chunkTKGT252T_js.c(WU=>{Object.defineProperty(WU,"__esModule",{value:!0});WU.default=SMt;var yMt=Lf(),Dxe=["tokens","start","end","loc","raw","rawValue"],gMt=[...yMt.COMMENT_KEYS,"comments",...Dxe];function SMt(e,t={}){let r=t.preserveComments?Dxe:gMt;for(let i of r)e[i]!=null&&(e[i]=void 0);for(let i of Object.keys(e))i[0]==="_"&&e[i]!=null&&(e[i]=void 0);let n=Object.getOwnPropertySymbols(e);for(let i of n)e[i]=null;}});var JU=chunkTKGT252T_js.c(zU=>{Object.defineProperty(zU,"__esModule",{value:!0});zU.default=bMt;var TMt=YU(),EMt=XU();function bMt(e,t){return (0, TMt.default)(e,EMt.default,t),e}});var Rxe=chunkTKGT252T_js.c(QU=>{Object.defineProperty(QU,"__esModule",{value:!0});QU.default=Fd;var Nxe=ci(),vMt=Bf(),_Mt=JU();function Fd(e,t=e.key){let r;return e.kind==="method"?Fd.increment()+"":((0, Nxe.isIdentifier)(t)?r=t.name:(0, Nxe.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0, _Mt.default)((0, vMt.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}Fd.uid=0;Fd.increment=function(){return Fd.uid>=Number.MAX_SAFE_INTEGER?Fd.uid=0:Fd.uid++};});var Mxe=chunkTKGT252T_js.c(Kw=>{Object.defineProperty(Kw,"__esModule",{value:!0});Kw.default=void 0;var $w=ci(),xMt=Gs();Kw.default=AMt;function AMt(e,t){if((0, $w.isStatement)(e))return e;let r=!1,n;if((0, $w.isClass)(e))r=!0,n="ClassDeclaration";else if((0, $w.isFunction)(e))r=!0,n="FunctionDeclaration";else if((0, $w.isAssignmentExpression)(e))return (0, xMt.expressionStatement)(e);if(r&&!e.id&&(n=!1),!n){if(t)return !1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e}});var Lxe=chunkTKGT252T_js.c(Yw=>{Object.defineProperty(Yw,"__esModule",{value:!0});Yw.default=void 0;var PMt=TS(),Ss=Gs();Yw.default=ZU;var CMt=Function.call.bind(Object.prototype.toString);function wMt(e){return CMt(e)==="[object RegExp]"}function IMt(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return !1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function ZU(e){if(e===void 0)return (0, Ss.identifier)("undefined");if(e===!0||e===!1)return (0, Ss.booleanLiteral)(e);if(e===null)return (0, Ss.nullLiteral)();if(typeof e=="string")return (0, Ss.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0, Ss.numericLiteral)(Math.abs(e));else {let r;Number.isNaN(e)?r=(0, Ss.numericLiteral)(0):r=(0, Ss.numericLiteral)(1),t=(0, Ss.binaryExpression)("/",r,(0, Ss.numericLiteral)(0));}return (e<0||Object.is(e,-0))&&(t=(0, Ss.unaryExpression)("-",t)),t}if(wMt(e)){let t=e.source,r=e.toString().match(/\/([a-z]+|)$/)[1];return (0, Ss.regExpLiteral)(t,r)}if(Array.isArray(e))return (0, Ss.arrayExpression)(e.map(ZU));if(IMt(e)){let t=[];for(let r of Object.keys(e)){let n;(0, PMt.default)(r)?n=(0, Ss.identifier)(r):n=(0, Ss.stringLiteral)(r),t.push((0, Ss.objectProperty)(n,ZU(e[r])));}return (0, Ss.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var kxe=chunkTKGT252T_js.c(e4=>{Object.defineProperty(e4,"__esModule",{value:!0});e4.default=DMt;var OMt=Gs();function DMt(e,t,r=!1){return e.object=(0, OMt.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var Bxe=chunkTKGT252T_js.c(t4=>{Object.defineProperty(t4,"__esModule",{value:!0});t4.default=RMt;var Fxe=Lf(),NMt=LU();function RMt(e,t){if(!e||!t)return e;for(let r of Fxe.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r[0]==="_"&&r!=="__clone"&&(e[r]=t[r]);for(let r of Fxe.INHERIT_KEYS.force)e[r]=t[r];return (0, NMt.default)(e,t),e}});var jxe=chunkTKGT252T_js.c(r4=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.default=kMt;var MMt=Gs(),LMt=gi();function kMt(e,t){if((0, LMt.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0, MMt.memberExpression)(t,e.object),e}});var Gb=chunkTKGT252T_js.c(i4=>{Object.defineProperty(i4,"__esModule",{value:!0});i4.default=n4;var jf=ci();function n4(e,t,r,n){let i=[].concat(e),s=Object.create(null);for(;i.length;){let a=i.shift();if(!a||n&&((0, jf.isAssignmentExpression)(a)||(0, jf.isUnaryExpression)(a)))continue;let o=n4.keys[a.type];if((0, jf.isIdentifier)(a)){t?(s[a.name]=s[a.name]||[]).push(a):s[a.name]=a;continue}if((0, jf.isExportDeclaration)(a)&&!(0, jf.isExportAllDeclaration)(a)){(0, jf.isDeclaration)(a.declaration)&&i.push(a.declaration);continue}if(r){if((0, jf.isFunctionDeclaration)(a)){i.push(a.id);continue}if((0, jf.isFunctionExpression)(a))continue}if(o)for(let u=0;u<o.length;u++){let l=o[u],c=a[l];c&&(Array.isArray(c)?i.push(...c):i.push(c));}}return s}n4.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};});var Uxe=chunkTKGT252T_js.c(Ww=>{Object.defineProperty(Ww,"__esModule",{value:!0});Ww.default=void 0;var FMt=Gb();Ww.default=BMt;function BMt(e,t){return (0, FMt.default)(e,t,!0)}});var qxe=chunkTKGT252T_js.c(a4=>{Object.defineProperty(a4,"__esModule",{value:!0});a4.default=UMt;var jMt=xo();function UMt(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:n,exit:i}=t;s4(e,n,i,r,[]);}function s4(e,t,r,n,i){let s=jMt.VISITOR_KEYS[e.type];if(s){t&&t(e,i,n);for(let a of s){let o=e[a];if(Array.isArray(o))for(let u=0;u<o.length;u++){let l=o[u];l&&(i.push({node:e,key:a,index:u}),s4(l,t,r,n,i),i.pop());}else o&&(i.push({node:e,key:a}),s4(o,t,r,n,i),i.pop());}r&&r(e,i,n);}}});var Vxe=chunkTKGT252T_js.c(o4=>{Object.defineProperty(o4,"__esModule",{value:!0});o4.default=VMt;var qMt=Gb();function VMt(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return !1;let n=qMt.default.keys[t.type];if(n)for(let i=0;i<n.length;i++){let s=n[i],a=t[s];if(Array.isArray(a)){if(a.indexOf(e)>=0)return !0}else if(a===e)return !0}return !1}});var l4=chunkTKGT252T_js.c(u4=>{Object.defineProperty(u4,"__esModule",{value:!0});u4.default=$Mt;var HMt=ci(),GMt=Lf();function $Mt(e){return (0, HMt.isVariableDeclaration)(e)&&(e.kind!=="var"||e[GMt.BLOCK_SCOPED_SYMBOL])}});var Gxe=chunkTKGT252T_js.c(c4=>{Object.defineProperty(c4,"__esModule",{value:!0});c4.default=YMt;var Hxe=ci(),KMt=l4();function YMt(e){return (0, Hxe.isFunctionDeclaration)(e)||(0, Hxe.isClassDeclaration)(e)||(0, KMt.default)(e)}});var $xe=chunkTKGT252T_js.c(p4=>{Object.defineProperty(p4,"__esModule",{value:!0});p4.default=zMt;var WMt=Iw(),XMt=ci();function zMt(e){return (0, WMt.default)(e.type,"Immutable")?!0:(0, XMt.isIdentifier)(e)?e.name==="undefined":!1}});var Yxe=chunkTKGT252T_js.c(h4=>{Object.defineProperty(h4,"__esModule",{value:!0});h4.default=f4;var Kxe=xo();function f4(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return !1;let r=Object.keys(Kxe.NODE_FIELDS[e.type]||e.type),n=Kxe.VISITOR_KEYS[e.type];for(let i of r){let s=e[i],a=t[i];if(typeof s!=typeof a)return !1;if(!(s==null&&a==null)){if(s==null||a==null)return !1;if(Array.isArray(s)){if(!Array.isArray(a)||s.length!==a.length)return !1;for(let o=0;o<s.length;o++)if(!f4(s[o],a[o]))return !1;continue}if(typeof s=="object"&&!(n!=null&&n.includes(i))){for(let o of Object.keys(s))if(s[o]!==a[o])return !1;continue}if(!f4(s,a))return !1}}return !0}});var Wxe=chunkTKGT252T_js.c(d4=>{Object.defineProperty(d4,"__esModule",{value:!0});d4.default=JMt;function JMt(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return !1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return !1;case"CatchClause":return !1;case"RestElement":return !1;case"BreakStatement":case"ContinueStatement":return !1;case"FunctionDeclaration":case"FunctionExpression":return !1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return !1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return !1;case"ImportAttribute":return !1;case"JSXAttribute":return !1;case"ObjectPattern":case"ArrayPattern":return !1;case"MetaProperty":return !1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return !0}});var Xxe=chunkTKGT252T_js.c(m4=>{Object.defineProperty(m4,"__esModule",{value:!0});m4.default=QMt;var Bd=ci();function QMt(e,t){return (0, Bd.isBlockStatement)(e)&&((0, Bd.isFunction)(t)||(0, Bd.isCatchClause)(t))?!1:(0, Bd.isPattern)(e)&&((0, Bd.isFunction)(t)||(0, Bd.isCatchClause)(t))?!0:(0, Bd.isScopable)(e)}});var Jxe=chunkTKGT252T_js.c(y4=>{Object.defineProperty(y4,"__esModule",{value:!0});y4.default=ZMt;var zxe=ci();function ZMt(e){return (0, zxe.isImportDefaultSpecifier)(e)||(0, zxe.isIdentifier)(e.imported||e.exported,{name:"default"})}});var Qxe=chunkTKGT252T_js.c(g4=>{Object.defineProperty(g4,"__esModule",{value:!0});g4.default=rLt;var eLt=TS(),tLt=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function rLt(e){return (0, eLt.default)(e)&&!tLt.has(e)}});var Zxe=chunkTKGT252T_js.c(S4=>{Object.defineProperty(S4,"__esModule",{value:!0});S4.default=sLt;var nLt=ci(),iLt=Lf();function sLt(e){return (0, nLt.isVariableDeclaration)(e,{kind:"var"})&&!e[iLt.BLOCK_SCOPED_SYMBOL]}});var eAe=chunkTKGT252T_js.c(E4=>{Object.defineProperty(E4,"__esModule",{value:!0});E4.default=Xw;var aLt=Gb(),jd=ci(),T4=Gs(),oLt=Bf();function Xw(e,t,r){let n=[],i=!0;for(let s of e)if((0, jd.isEmptyStatement)(s)||(i=!1),(0, jd.isExpression)(s))n.push(s);else if((0, jd.isExpressionStatement)(s))n.push(s.expression);else if((0, jd.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let a of s.declarations){let o=(0, aLt.default)(a);for(let u of Object.keys(o))r.push({kind:s.kind,id:(0, oLt.default)(o[u])});a.init&&n.push((0, T4.assignmentExpression)("=",a.id,a.init));}i=!0;}else if((0, jd.isIfStatement)(s)){let a=s.consequent?Xw([s.consequent],t,r):t.buildUndefinedNode(),o=s.alternate?Xw([s.alternate],t,r):t.buildUndefinedNode();if(!a||!o)return;n.push((0, T4.conditionalExpression)(s.test,a,o));}else if((0, jd.isBlockStatement)(s)){let a=Xw(s.body,t,r);if(!a)return;n.push(a);}else if((0, jd.isEmptyStatement)(s))e.indexOf(s)===0&&(i=!0);else return;return i&&n.push(t.buildUndefinedNode()),n.length===1?n[0]:(0, T4.sequenceExpression)(n)}});var tAe=chunkTKGT252T_js.c(b4=>{Object.defineProperty(b4,"__esModule",{value:!0});b4.default=lLt;var uLt=eAe();function lLt(e,t){if(!(e!=null&&e.length))return;let r=[],n=(0, uLt.default)(e,t,r);if(n){for(let i of r)t.push(i);return n}}});var gi=chunkTKGT252T_js.c(De=>{Object.defineProperty(De,"__esModule",{value:!0});var Ac={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(De,"__internal__deprecationWarning",{enumerable:!0,get:function(){return pkt.default}});Object.defineProperty(De,"addComment",{enumerable:!0,get:function(){return bLt.default}});Object.defineProperty(De,"addComments",{enumerable:!0,get:function(){return vLt.default}});Object.defineProperty(De,"appendToMemberExpression",{enumerable:!0,get:function(){return FLt.default}});Object.defineProperty(De,"assertNode",{enumerable:!0,get:function(){return hLt.default}});Object.defineProperty(De,"buildMatchMemberExpression",{enumerable:!0,get:function(){return ckt.default}});Object.defineProperty(De,"clone",{enumerable:!0,get:function(){return gLt.default}});Object.defineProperty(De,"cloneDeep",{enumerable:!0,get:function(){return SLt.default}});Object.defineProperty(De,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return TLt.default}});Object.defineProperty(De,"cloneNode",{enumerable:!0,get:function(){return yLt.default}});Object.defineProperty(De,"cloneWithoutLoc",{enumerable:!0,get:function(){return ELt.default}});Object.defineProperty(De,"createFlowUnionType",{enumerable:!0,get:function(){return rAe.default}});Object.defineProperty(De,"createTSUnionType",{enumerable:!0,get:function(){return mLt.default}});Object.defineProperty(De,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return dLt.default}});Object.defineProperty(De,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return rAe.default}});Object.defineProperty(De,"ensureBlock",{enumerable:!0,get:function(){return wLt.default}});Object.defineProperty(De,"getBindingIdentifiers",{enumerable:!0,get:function(){return HLt.default}});Object.defineProperty(De,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return GLt.default}});Object.defineProperty(De,"inheritInnerComments",{enumerable:!0,get:function(){return _Lt.default}});Object.defineProperty(De,"inheritLeadingComments",{enumerable:!0,get:function(){return xLt.default}});Object.defineProperty(De,"inheritTrailingComments",{enumerable:!0,get:function(){return PLt.default}});Object.defineProperty(De,"inherits",{enumerable:!0,get:function(){return BLt.default}});Object.defineProperty(De,"inheritsComments",{enumerable:!0,get:function(){return ALt.default}});Object.defineProperty(De,"is",{enumerable:!0,get:function(){return YLt.default}});Object.defineProperty(De,"isBinding",{enumerable:!0,get:function(){return WLt.default}});Object.defineProperty(De,"isBlockScoped",{enumerable:!0,get:function(){return XLt.default}});Object.defineProperty(De,"isImmutable",{enumerable:!0,get:function(){return zLt.default}});Object.defineProperty(De,"isLet",{enumerable:!0,get:function(){return JLt.default}});Object.defineProperty(De,"isNode",{enumerable:!0,get:function(){return QLt.default}});Object.defineProperty(De,"isNodesEquivalent",{enumerable:!0,get:function(){return ZLt.default}});Object.defineProperty(De,"isPlaceholderType",{enumerable:!0,get:function(){return ekt.default}});Object.defineProperty(De,"isReferenced",{enumerable:!0,get:function(){return tkt.default}});Object.defineProperty(De,"isScope",{enumerable:!0,get:function(){return rkt.default}});Object.defineProperty(De,"isSpecifierDefault",{enumerable:!0,get:function(){return nkt.default}});Object.defineProperty(De,"isType",{enumerable:!0,get:function(){return ikt.default}});Object.defineProperty(De,"isValidES3Identifier",{enumerable:!0,get:function(){return skt.default}});Object.defineProperty(De,"isValidIdentifier",{enumerable:!0,get:function(){return akt.default}});Object.defineProperty(De,"isVar",{enumerable:!0,get:function(){return okt.default}});Object.defineProperty(De,"matchesPattern",{enumerable:!0,get:function(){return ukt.default}});Object.defineProperty(De,"prependToMemberExpression",{enumerable:!0,get:function(){return jLt.default}});De.react=void 0;Object.defineProperty(De,"removeComments",{enumerable:!0,get:function(){return CLt.default}});Object.defineProperty(De,"removeProperties",{enumerable:!0,get:function(){return ULt.default}});Object.defineProperty(De,"removePropertiesDeep",{enumerable:!0,get:function(){return qLt.default}});Object.defineProperty(De,"removeTypeDuplicates",{enumerable:!0,get:function(){return VLt.default}});Object.defineProperty(De,"shallowEqual",{enumerable:!0,get:function(){return KLt.default}});Object.defineProperty(De,"toBindingIdentifierName",{enumerable:!0,get:function(){return ILt.default}});Object.defineProperty(De,"toBlock",{enumerable:!0,get:function(){return OLt.default}});Object.defineProperty(De,"toComputedKey",{enumerable:!0,get:function(){return DLt.default}});Object.defineProperty(De,"toExpression",{enumerable:!0,get:function(){return NLt.default}});Object.defineProperty(De,"toIdentifier",{enumerable:!0,get:function(){return RLt.default}});Object.defineProperty(De,"toKeyAlias",{enumerable:!0,get:function(){return MLt.default}});Object.defineProperty(De,"toStatement",{enumerable:!0,get:function(){return LLt.default}});Object.defineProperty(De,"traverse",{enumerable:!0,get:function(){return zw.default}});Object.defineProperty(De,"traverseFast",{enumerable:!0,get:function(){return $Lt.default}});Object.defineProperty(De,"validate",{enumerable:!0,get:function(){return lkt.default}});Object.defineProperty(De,"valueToNode",{enumerable:!0,get:function(){return kLt.default}});var cLt=y_e(),pLt=g_e(),fLt=txe(),hLt=rxe(),v4=nxe();Object.keys(v4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===v4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return v4[e]}});});var dLt=ixe(),rAe=oxe(),mLt=pxe(),_4=Gs();Object.keys(_4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===_4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return _4[e]}});});var x4=fxe();Object.keys(x4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===x4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return x4[e]}});});var A4=dxe();Object.keys(A4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===A4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return A4[e]}});});var yLt=Bf(),gLt=Exe(),SLt=bxe(),TLt=vxe(),ELt=_xe(),bLt=xxe(),vLt=AU(),_Lt=IU(),xLt=DU(),ALt=LU(),PLt=RU(),CLt=Axe(),P4=Pxe();Object.keys(P4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===P4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return P4[e]}});});var C4=Lf();Object.keys(C4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===C4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return C4[e]}});});var wLt=Cxe(),ILt=wxe(),OLt=jU(),DLt=Ixe(),NLt=Oxe(),RLt=VU(),MLt=Rxe(),LLt=Mxe(),kLt=Lxe(),w4=xo();Object.keys(w4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===w4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return w4[e]}});});var FLt=kxe(),BLt=Bxe(),jLt=jxe(),ULt=XU(),qLt=JU(),VLt=dU(),HLt=Gb(),GLt=Uxe(),zw=qxe();Object.keys(zw).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===zw[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return zw[e]}});});var $Lt=YU(),KLt=Cw(),YLt=SS(),WLt=Vxe(),XLt=Gxe(),zLt=$xe(),JLt=l4(),QLt=pU(),ZLt=Yxe(),ekt=Vj(),tkt=Wxe(),rkt=Xxe(),nkt=Jxe(),ikt=Iw(),skt=Qxe(),akt=TS(),okt=Zxe(),ukt=Lj(),lkt=Mw(),ckt=Fj(),I4=ci();Object.keys(I4).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Ac,e)||e in De&&De[e]===I4[e]||Object.defineProperty(De,e,{enumerable:!0,get:function(){return I4[e]}});});var pkt=Db();De.react={isReactComponent:cLt.default,isCompatTag:pLt.default,buildChildren:fLt.default};De.toSequenceExpression=tAe().default;});var iAe=chunkTKGT252T_js.c((Jw,nAe)=>{(function(e,t){typeof Jw=="object"&&typeof nAe<"u"?t(Jw):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.setArray={}));})(Jw,function(e){class t{constructor(){this._indexes={__proto__:null},this.array=[];}}function n(o,u){return o._indexes[u]}function i(o,u){let l=n(o,u);if(l!==void 0)return l;let{array:c,_indexes:p}=o,h=c.push(u);return p[u]=h-1}function s(o){let{array:u,_indexes:l}=o;if(u.length===0)return;let c=u.pop();l[c]=void 0;}function a(o,u){let l=n(o,u);if(l===void 0)return;let{array:c,_indexes:p}=o;for(let h=l+1;h<c.length;h++){let f=c[h];c[h-1]=f,p[f]--;}p[u]=void 0,c.pop();}e.SetArray=t,e.get=n,e.pop=s,e.put=i,e.remove=a,Object.defineProperty(e,"__esModule",{value:!0});});});var O4=chunkTKGT252T_js.c((Qw,sAe)=>{(function(e,t){typeof Qw=="object"&&typeof sAe<"u"?t(Qw):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.sourcemapCodec={}));})(Qw,function(e){let t=",".charCodeAt(0),r=";".charCodeAt(0),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),s=new Uint8Array(128);for(let m=0;m<n.length;m++){let y=n.charCodeAt(m);i[m]=y,s[y]=m;}let a=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(m){return Buffer.from(m.buffer,m.byteOffset,m.byteLength).toString()}}:{decode(m){let y="";for(let g=0;g<m.length;g++)y+=String.fromCharCode(m[g]);return y}};function o(m){let y=new Int32Array(5),g=[],v=0;do{let E=u(m,v),S=[],x=!0,b=0;y[0]=0;for(let A=v;A<E;A++){let D;A=l(m,A,y,0);let P=y[0];P<b&&(x=!1),b=P,c(m,A,E)?(A=l(m,A,y,1),A=l(m,A,y,2),A=l(m,A,y,3),c(m,A,E)?(A=l(m,A,y,4),D=[P,y[1],y[2],y[3],y[4]]):D=[P,y[1],y[2],y[3]]):D=[P],S.push(D);}x||p(S),g.push(S),v=E+1;}while(v<=m.length);return g}function u(m,y){let g=m.indexOf(";",y);return g===-1?m.length:g}function l(m,y,g,v){let E=0,S=0,x=0;do{let A=m.charCodeAt(y++);x=s[A],E|=(x&31)<<S,S+=5;}while(x&32);let b=E&1;return E>>>=1,b&&(E=-2147483648|-E),g[v]+=E,y}function c(m,y,g){return y>=g?!1:m.charCodeAt(y)!==t}function p(m){m.sort(h);}function h(m,y){return m[0]-y[0]}function f(m){let y=new Int32Array(5),g=1024*16,v=g-36,E=new Uint8Array(g),S=E.subarray(0,v),x=0,b="";for(let A=0;A<m.length;A++){let D=m[A];if(A>0&&(x===g&&(b+=a.decode(E),x=0),E[x++]=r),D.length!==0){y[0]=0;for(let P=0;P<D.length;P++){let V=D[P];x>v&&(b+=a.decode(S),E.copyWithin(0,v,x),x-=v),P>0&&(E[x++]=t),x=d(E,x,y,V,0),V.length!==1&&(x=d(E,x,y,V,1),x=d(E,x,y,V,2),x=d(E,x,y,V,3),V.length!==4&&(x=d(E,x,y,V,4)));}}}return b+a.decode(E.subarray(0,x))}function d(m,y,g,v,E){let S=v[E],x=S-g[E];g[E]=S,x=x<0?-x<<1|1:x<<1;do{let b=x&31;x>>>=5,x>0&&(b|=32),m[y++]=i[b];}while(x>0);return y}e.decode=o,e.encode=f,Object.defineProperty(e,"__esModule",{value:!0});});});var aAe=chunkTKGT252T_js.c((D4,N4)=>{(function(e,t){typeof D4=="object"&&typeof N4<"u"?N4.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t());})(D4,function(){let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function n(y){return e.test(y)}function i(y){return y.startsWith("//")}function s(y){return y.startsWith("/")}function a(y){return y.startsWith("file:")}function o(y){return /^[.?#]/.test(y)}function u(y){let g=t.exec(y);return c(g[1],g[2]||"",g[3],g[4]||"",g[5]||"/",g[6]||"",g[7]||"")}function l(y){let g=r.exec(y),v=g[2];return c("file:","",g[1]||"","",s(v)?v:"/"+v,g[3]||"",g[4]||"")}function c(y,g,v,E,S,x,b){return {scheme:y,user:g,host:v,port:E,path:S,query:x,hash:b,type:7}}function p(y){if(i(y)){let v=u("http:"+y);return v.scheme="",v.type=6,v}if(s(y)){let v=u("http://foo.com"+y);return v.scheme="",v.host="",v.type=5,v}if(a(y))return l(y);if(n(y))return u(y);let g=u("http://foo.com/"+y);return g.scheme="",g.host="",g.type=y?y.startsWith("?")?3:y.startsWith("#")?2:4:1,g}function h(y){if(y.endsWith("/.."))return y;let g=y.lastIndexOf("/");return y.slice(0,g+1)}function f(y,g){d(g,g.type),y.path==="/"?y.path=g.path:y.path=h(g.path)+y.path;}function d(y,g){let v=g<=4,E=y.path.split("/"),S=1,x=0,b=!1;for(let D=1;D<E.length;D++){let P=E[D];if(!P){b=!0;continue}if(b=!1,P!=="."){if(P===".."){x?(b=!0,x--,S--):v&&(E[S++]=P);continue}E[S++]=P,x++;}}let A="";for(let D=1;D<S;D++)A+="/"+E[D];(!A||b&&!A.endsWith("/.."))&&(A+="/"),y.path=A;}function m(y,g){if(!y&&!g)return "";let v=p(y),E=v.type;if(g&&E!==7){let x=p(g),b=x.type;switch(E){case 1:v.hash=x.hash;case 2:v.query=x.query;case 3:case 4:f(v,x);case 5:v.user=x.user,v.host=x.host,v.port=x.port;case 6:v.scheme=x.scheme;}b>E&&(E=b);}d(v,E);let S=v.query+v.hash;switch(E){case 2:case 3:return S;case 4:{let x=v.path.slice(1);return x?o(g||y)&&!o(x)?"./"+x+S:x+S:S||"."}case 5:return v.path+S;default:return v.scheme+"//"+v.user+v.host+v.port+v.path+S}}return m});});var eI=chunkTKGT252T_js.c((Zw,oAe)=>{(function(e,t){typeof Zw=="object"&&typeof oAe<"u"?t(Zw,O4(),aAe()):typeof define=="function"&&define.amd?define(["exports","@jridgewell/sourcemap-codec","@jridgewell/resolve-uri"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.traceMapping={},e.sourcemapCodec,e.resolveURI));})(Zw,function(e,t,r){function n(ae,ve){return ve&&!ve.endsWith("/")&&(ve+="/"),r(ae,ve)}function i(ae){if(!ae)return "";let ve=ae.lastIndexOf("/");return ae.slice(0,ve+1)}let s=0,a=1,o=2,u=3,l=4,c=1,p=2;function h(ae,ve){let Pe=f(ae,0);if(Pe===ae.length)return ae;ve||(ae=ae.slice());for(let Le=Pe;Le<ae.length;Le=f(ae,Le+1))ae[Le]=m(ae[Le],ve);return ae}function f(ae,ve){for(let Pe=ve;Pe<ae.length;Pe++)if(!d(ae[Pe]))return Pe;return ae.length}function d(ae){for(let ve=1;ve<ae.length;ve++)if(ae[ve][s]<ae[ve-1][s])return !1;return !0}function m(ae,ve){return ve||(ae=ae.slice()),ae.sort(y)}function y(ae,ve){return ae[s]-ve[s]}let g=!1;function v(ae,ve,Pe,Le){for(;Pe<=Le;){let Pt=Pe+(Le-Pe>>1),lt=ae[Pt][s]-ve;if(lt===0)return g=!0,Pt;lt<0?Pe=Pt+1:Le=Pt-1;}return g=!1,Pe-1}function E(ae,ve,Pe){for(let Le=Pe+1;Le<ae.length&&ae[Le][s]===ve;Pe=Le++);return Pe}function S(ae,ve,Pe){for(let Le=Pe-1;Le>=0&&ae[Le][s]===ve;Pe=Le--);return Pe}function x(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}function b(ae,ve,Pe,Le){let{lastKey:Pt,lastNeedle:lt,lastIndex:fr}=Pe,Rr=0,Xt=ae.length-1;if(Le===Pt){if(ve===lt)return g=fr!==-1&&ae[fr][s]===ve,fr;ve>=lt?Rr=fr===-1?0:fr:Xt=fr;}return Pe.lastKey=Le,Pe.lastNeedle=ve,Pe.lastIndex=v(ae,ve,Rr,Xt)}function A(ae,ve){let Pe=ve.map(P);for(let Le=0;Le<ae.length;Le++){let Pt=ae[Le];for(let lt=0;lt<Pt.length;lt++){let fr=Pt[lt];if(fr.length===1)continue;let Rr=fr[a],Xt=fr[o],Hr=fr[u],Pi=Pe[Rr],Ke=Pi[Xt]||(Pi[Xt]=[]),ct=ve[Rr],un=E(Ke,Hr,b(Ke,Hr,ct,Xt));ct.lastIndex=++un,D(Ke,un,[Hr,Le,fr[s]]);}}return Pe}function D(ae,ve,Pe){for(let Le=ae.length;Le>ve;Le--)ae[Le]=ae[Le-1];ae[ve]=Pe;}function P(){return {__proto__:null}}let V=function(ae,ve){let Pe=X(ae);if(!("sections"in Pe))return new ue(Pe,ve);let Le=[],Pt=[],lt=[],fr=[],Rr=[];oe(Pe,ve,Le,Pt,lt,fr,Rr,0,0,1/0,1/0);let Xt={version:3,file:Pe.file,names:fr,sources:Pt,sourcesContent:lt,mappings:Le,ignoreList:Rr};return Ri(Xt)};function X(ae){return typeof ae=="string"?JSON.parse(ae):ae}function oe(ae,ve,Pe,Le,Pt,lt,fr,Rr,Xt,Hr,Pi){let{sections:Ke}=ae;for(let ct=0;ct<Ke.length;ct++){let{map:un,offset:Xn}=Ke[ct],Aa=Hr,yp=Pi;if(ct+1<Ke.length){let gp=Ke[ct+1].offset;Aa=Math.min(Hr,Rr+gp.line),Aa===Hr?yp=Math.min(Pi,Xt+gp.column):Aa<Hr&&(yp=Xt+gp.column);}le(un,ve,Pe,Le,Pt,lt,fr,Rr+Xn.line,Xt+Xn.column,Aa,yp);}}function le(ae,ve,Pe,Le,Pt,lt,fr,Rr,Xt,Hr,Pi){let Ke=X(ae);if("sections"in Ke)return oe(...arguments);let ct=new ue(Ke,ve),un=Le.length,Xn=lt.length,Aa=je(ct),{resolvedSources:yp,sourcesContent:gp,ignoreList:tE}=ct;if(Be(Le,yp),Be(lt,ct.names),gp)Be(Pt,gp);else for(let ne=0;ne<yp.length;ne++)Pt.push(null);if(tE)for(let ne=0;ne<tE.length;ne++)fr.push(tE[ne]+un);for(let ne=0;ne<Aa.length;ne++){let ie=Rr+ne;if(ie>Hr)return;let Ce=be(Pe,ie),Ut=ne===0?Xt:0,as=Aa[ne];for(let Oh=0;Oh<as.length;Oh++){let kl=as[Oh],Rx=Ut+kl[s];if(ie===Hr&&Rx>=Pi)return;if(kl.length===1){Ce.push([Rx]);continue}let iY=un+kl[a],sY=kl[o],aY=kl[u];Ce.push(kl.length===4?[Rx,iY,sY,aY]:[Rx,iY,sY,aY,Xn+kl[l]]);}}}function Be(ae,ve){for(let Pe=0;Pe<ve.length;Pe++)ae.push(ve[Pe]);}function be(ae,ve){for(let Pe=ae.length;Pe<=ve;Pe++)ae[Pe]=[];return ae[ve]}let Ee="`line` must be greater than 0 (lines start at line 1)",Te="`column` must be greater than or equal to 0 (columns start at column 0)",Me=-1,At=1;class ue{constructor(ve,Pe){let Le=typeof ve=="string";if(!Le&&ve._decodedMemo)return ve;let Pt=Le?JSON.parse(ve):ve,{version:lt,file:fr,names:Rr,sourceRoot:Xt,sources:Hr,sourcesContent:Pi}=Pt;this.version=lt,this.file=fr,this.names=Rr||[],this.sourceRoot=Xt,this.sources=Hr,this.sourcesContent=Pi,this.ignoreList=Pt.ignoreList||Pt.x_google_ignoreList||void 0;let Ke=n(Xt||"",i(Pe));this.resolvedSources=Hr.map(un=>n(un||"",Ke));let{mappings:ct}=Pt;typeof ct=="string"?(this._encoded=ct,this._decoded=void 0):(this._encoded=void 0,this._decoded=h(ct,Le)),this._decodedMemo=x(),this._bySources=void 0,this._bySourceMemos=void 0;}}function Se(ae){var ve,Pe;return (ve=(Pe=ae)._encoded)!==null&&ve!==void 0?ve:Pe._encoded=t.encode(ae._decoded)}function je(ae){var ve;return (ve=ae)._decoded||(ve._decoded=t.decode(ae._encoded))}function Ct(ae,ve,Pe){let Le=je(ae);if(ve>=Le.length)return null;let Pt=Le[ve],lt=Xa(Pt,ae._decodedMemo,ve,Pe,At);return lt===-1?null:Pt[lt]}function Nt(ae,ve){let{line:Pe,column:Le,bias:Pt}=ve;if(Pe--,Pe<0)throw new Error(Ee);if(Le<0)throw new Error(Te);let lt=je(ae);if(Pe>=lt.length)return Go(null,null,null,null);let fr=lt[Pe],Rr=Xa(fr,ae._decodedMemo,Pe,Le,Pt||At);if(Rr===-1)return Go(null,null,null,null);let Xt=fr[Rr];if(Xt.length===1)return Go(null,null,null,null);let{names:Hr,resolvedSources:Pi}=ae;return Go(Pi[Xt[a]],Xt[o]+1,Xt[u],Xt.length===5?Hr[Xt[l]]:null)}function fn(ae,ve){let{source:Pe,line:Le,column:Pt,bias:lt}=ve;return Ih(ae,Pe,Le,Pt,lt||At,!1)}function xr(ae,ve){let{source:Pe,line:Le,column:Pt,bias:lt}=ve;return Ih(ae,Pe,Le,Pt,lt||Me,!0)}function Ar(ae,ve){let Pe=je(ae),{names:Le,resolvedSources:Pt}=ae;for(let lt=0;lt<Pe.length;lt++){let fr=Pe[lt];for(let Rr=0;Rr<fr.length;Rr++){let Xt=fr[Rr],Hr=lt+1,Pi=Xt[0],Ke=null,ct=null,un=null,Xn=null;Xt.length!==1&&(Ke=Pt[Xt[1]],ct=Xt[2]+1,un=Xt[3]),Xt.length===5&&(Xn=Le[Xt[4]]),ve({generatedLine:Hr,generatedColumn:Pi,source:Ke,originalLine:ct,originalColumn:un,name:Xn});}}}function di(ae,ve){let{sources:Pe,resolvedSources:Le}=ae,Pt=Pe.indexOf(ve);return Pt===-1&&(Pt=Le.indexOf(ve)),Pt}function Ai(ae,ve){let{sourcesContent:Pe}=ae;if(Pe==null)return null;let Le=di(ae,ve);return Le===-1?null:Pe[Le]}function Ni(ae,ve){let{ignoreList:Pe}=ae;if(Pe==null)return !1;let Le=di(ae,ve);return Le===-1?!1:Pe.includes(Le)}function Ri(ae,ve){let Pe=new ue(Ou(ae,[]),ve);return Pe._decoded=ae.mappings,Pe}function Iu(ae){return Ou(ae,je(ae))}function Ho(ae){return Ou(ae,Se(ae))}function Ou(ae,ve){return {version:ae.version,file:ae.file,names:ae.names,sourceRoot:ae.sourceRoot,sources:ae.sources,sourcesContent:ae.sourcesContent,mappings:ve,ignoreList:ae.ignoreList||ae.x_google_ignoreList}}function Go(ae,ve,Pe,Le){return {source:ae,line:ve,column:Pe,name:Le}}function Du(ae,ve){return {line:ae,column:ve}}function Xa(ae,ve,Pe,Le,Pt){let lt=b(ae,Le,ve,Pe);return g?lt=(Pt===Me?E:S)(ae,Le,lt):Pt===Me&&lt++,lt===-1||lt===ae.length?-1:lt}function xa(ae,ve,Pe,Le,Pt){let lt=Xa(ae,ve,Pe,Le,At);if(!g&&Pt===Me&&lt++,lt===-1||lt===ae.length)return [];let fr=g?Le:ae[lt][s];g||(lt=S(ae,fr,lt));let Rr=E(ae,fr,lt),Xt=[];for(;lt<=Rr;lt++){let Hr=ae[lt];Xt.push(Du(Hr[c]+1,Hr[p]));}return Xt}function Ih(ae,ve,Pe,Le,Pt,lt){var fr;if(Pe--,Pe<0)throw new Error(Ee);if(Le<0)throw new Error(Te);let{sources:Rr,resolvedSources:Xt}=ae,Hr=Rr.indexOf(ve);if(Hr===-1&&(Hr=Xt.indexOf(ve)),Hr===-1)return lt?[]:Du(null,null);let Ke=((fr=ae)._bySources||(fr._bySources=A(je(ae),ae._bySourceMemos=Rr.map(x))))[Hr][Pe];if(Ke==null)return lt?[]:Du(null,null);let ct=ae._bySourceMemos[Hr];if(lt)return xa(Ke,ct,Pe,Le,Pt);let un=Xa(Ke,ct,Pe,Le,Pt);if(un===-1)return Du(null,null);let Xn=Ke[un];return Du(Xn[c]+1,Xn[p])}e.AnyMap=V,e.GREATEST_LOWER_BOUND=At,e.LEAST_UPPER_BOUND=Me,e.TraceMap=ue,e.allGeneratedPositionsFor=xr,e.decodedMap=Iu,e.decodedMappings=je,e.eachMapping=Ar,e.encodedMap=Ho,e.encodedMappings=Se,e.generatedPositionFor=fn,e.isIgnored=Ni,e.originalPositionFor=Nt,e.presortedDecodedMap=Ri,e.sourceContentFor=Ai,e.traceSegment=Ct;});});var R4=chunkTKGT252T_js.c((tI,uAe)=>{(function(e,t){typeof tI=="object"&&typeof uAe<"u"?t(tI,iAe(),O4(),eI()):typeof define=="function"&&define.amd?define(["exports","@jridgewell/set-array","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.genMapping={},e.setArray,e.sourcemapCodec,e.traceMapping));})(tI,function(e,t,r,n){class c{constructor({file:Ee,sourceRoot:Te}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=Ee,this.sourceRoot=Te,this._ignoreList=new t.SetArray;}}function h(be,Ee,Te,Me,At,ue,fe,Se){return b(!1,be,Ee,Te,Me,At,ue,fe,Se)}function f(be,Ee){return Be(!1,be,Ee)}let d=(be,Ee,Te,Me,At,ue,fe,Se)=>b(!0,be,Ee,Te,Me,At,ue,fe,Se),m=(be,Ee)=>Be(!0,be,Ee);function y(be,Ee,Te){let{_sources:Me,_sourcesContent:At}=be,ue=t.put(Me,Ee);At[ue]=Te;}function g(be,Ee,Te=!0){let{_sources:Me,_sourcesContent:At,_ignoreList:ue}=be,fe=t.put(Me,Ee);fe===At.length&&(At[fe]=null),Te?t.put(ue,fe):t.remove(ue,fe);}function v(be){let{_mappings:Ee,_sources:Te,_sourcesContent:Me,_names:At,_ignoreList:ue}=be;return V(Ee),{version:3,file:be.file||void 0,names:At.array,sourceRoot:be.sourceRoot||void 0,sources:Te.array,sourcesContent:Me,mappings:Ee,ignoreList:ue.array}}function E(be){let Ee=v(be);return Object.assign(Object.assign({},Ee),{mappings:r.encode(Ee.mappings)})}function S(be){let Ee=new n.TraceMap(be),Te=new c({file:Ee.file,sourceRoot:Ee.sourceRoot});return X(Te._names,Ee.names),X(Te._sources,Ee.sources),Te._sourcesContent=Ee.sourcesContent||Ee.sources.map(()=>null),Te._mappings=n.decodedMappings(Ee),Ee.ignoreList&&X(Te._ignoreList,Ee.ignoreList),Te}function x(be){let Ee=[],{_mappings:Te,_sources:Me,_names:At}=be;for(let ue=0;ue<Te.length;ue++){let fe=Te[ue];for(let Se=0;Se<fe.length;Se++){let je=fe[Se],Ct={line:ue+1,column:je[0]},Nt,fn,xr;je.length!==1&&(Nt=Me.array[je[1]],fn={line:je[2]+1,column:je[3]},je.length===5&&(xr=At.array[je[4]])),Ee.push({generated:Ct,source:Nt,original:fn,name:xr});}}return Ee}function b(be,Ee,Te,Me,At,ue,fe,Se,je){let{_mappings:Ct,_sources:Nt,_sourcesContent:fn,_names:xr}=Ee,Ar=A(Ct,Te),di=D(Ar,Me);if(!At)return be&&oe(Ar,di)?void 0:P(Ar,di,[Me]);let Ai=t.put(Nt,At),Ni=Se?t.put(xr,Se):-1;if(Ai===fn.length&&(fn[Ai]=je??null),!(be&&le(Ar,di,Ai,ue,fe,Ni)))return P(Ar,di,Se?[Me,Ai,ue,fe,Ni]:[Me,Ai,ue,fe])}function A(be,Ee){for(let Te=be.length;Te<=Ee;Te++)be[Te]=[];return be[Ee]}function D(be,Ee){let Te=be.length;for(let Me=Te-1;Me>=0;Te=Me--){let At=be[Me];if(Ee>=At[0])break}return Te}function P(be,Ee,Te){for(let Me=be.length;Me>Ee;Me--)be[Me]=be[Me-1];be[Ee]=Te;}function V(be){let{length:Ee}=be,Te=Ee;for(let Me=Te-1;Me>=0&&!(be[Me].length>0);Te=Me,Me--);Te<Ee&&(be.length=Te);}function X(be,Ee){for(let Te=0;Te<Ee.length;Te++)t.put(be,Ee[Te]);}function oe(be,Ee){return Ee===0?!0:be[Ee-1].length===1}function le(be,Ee,Te,Me,At,ue){if(Ee===0)return !1;let fe=be[Ee-1];return fe.length===1?!1:Te===fe[1]&&Me===fe[2]&&At===fe[3]&&ue===(fe.length===5?fe[4]:-1)}function Be(be,Ee,Te){let{generated:Me,source:At,original:ue,name:fe,content:Se}=Te;return At?b(be,Ee,Me.line-1,Me.column,At,ue.line-1,ue.column,fe,Se):b(be,Ee,Me.line-1,Me.column,null,null,null,null,null)}e.GenMapping=c,e.addMapping=f,e.addSegment=h,e.allMappings=x,e.fromMap=S,e.maybeAddMapping=m,e.maybeAddSegment=d,e.setIgnore=g,e.setSourceContent=y,e.toDecodedMap=v,e.toEncodedMap=E,Object.defineProperty(e,"__esModule",{value:!0});});});var lAe=chunkTKGT252T_js.c(rI=>{Object.defineProperty(rI,"__esModule",{value:!0});rI.default=void 0;var Uf=R4(),M4=eI(),L4=class{constructor(t,r){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let i=this._map=new Uf.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(n=t.sourceFileName)==null?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new M4.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var s;(0, Uf.setSourceContent)(i,a[o],(s=this._inputMap.sourcesContent)==null?void 0:s[o]);}}if(typeof r=="string"&&!t.inputSourceMap)(0, Uf.setSourceContent)(i,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0, Uf.setSourceContent)(i,a.replace(/\\/g,"/"),r[a]);}get(){return (0, Uf.toEncodedMap)(this._map)}getDecoded(){return (0, Uf.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0, Uf.allMappings)(this._map))}mark(t,r,n,i,s,a){var o;this._rawMappings=void 0;let u;if(r!=null)if(this._inputMap){if(u=(0, M4.originalPositionFor)(this._inputMap,{line:r,column:n}),!u.name&&s){let l=(0, M4.originalPositionFor)(this._inputMap,s);l.name&&(i=l.name);}}else u={source:(a==null?void 0:a.replace(/\\/g,"/"))||this._sourceFileName,line:r,column:n};(0, Uf.maybeAddMapping)(this._map,{name:i,generated:t,source:(o=u)==null?void 0:o.source,original:u});}};rI.default=L4;});var cAe=chunkTKGT252T_js.c(nI=>{Object.defineProperty(nI,"__esModule",{value:!0});nI.default=void 0;var k4=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r;for(let n=0;n<64;n++)this._fastIndentations.push(r.repeat(n));this._allocQueue();}_allocQueue(){let t=this._queue;for(let r=0;r<16;r++)t.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""});}_pushQueue(t,r,n,i,s){let a=this._queueCursor;a===this._queue.length&&this._allocQueue();let o=this._queue[a];o.char=t,o.repeat=r,o.line=n,o.column=i,o.filename=s,this._queueCursor++;}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let t=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:t==null?void 0:t.getDecoded(),get __mergedMap(){return this.map},get map(){let n=t?t.get():null;return r.map=n,n},set map(n){Object.defineProperty(r,"map",{value:n,writable:!0});},get rawMappings(){let n=t==null?void 0:t.getRawMappings();return r.rawMappings=n,n},set rawMappings(n){Object.defineProperty(r,"rawMappings",{value:n,writable:!0});}};return r}append(t,r){this._flush(),this._append(t,this._sourcePosition,r);}appendChar(t){this._flush(),this._appendChar(t,1,this._sourcePosition);}queue(t){if(t===10)for(;this._queueCursor!==0;){let n=this._queue[this._queueCursor-1].char;if(n!==32&&n!==9)break;this._queueCursor--;}let r=this._sourcePosition;this._pushQueue(t,1,r.line,r.column,r.filename);}queueIndentation(t){t!==0&&this._pushQueue(-1,t,void 0,void 0,void 0);}_flush(){let t=this._queueCursor,r=this._queue;for(let n=0;n<t;n++){let i=r[n];this._appendChar(i.char,i.repeat,i);}this._queueCursor=0;}_appendChar(t,r,n){if(this._last=t,t===-1){let i=this._fastIndentations[r];i!==void 0?this._str+=i:this._str+=r>1?this._indentChar.repeat(r):this._indentChar;}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);t!==10?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0);}_append(t,r,n){let i=t.length,s=this._position;if(this._last=t.charCodeAt(i-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t,!n&&!this._map){s.column+=i;return}let{column:a,identifierName:o,identifierNamePos:u,filename:l}=r,c=r.line;(o!=null||u!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let p=t.indexOf(`
`),h=0;for(p!==0&&this._mark(c,a,o,u,l);p!==-1;)s.line++,s.column=0,h=p+1,h<i&&c!==void 0&&this._mark(++c,0,null,null,l),p=t.indexOf(`
`,h);s.column+=i-h;}_mark(t,r,n,i,s){var a;(a=this._map)==null||a.mark(this._position,t,r,n,i,s);}removeTrailingNewline(){let t=this._queueCursor;t!==0&&this._queue[t-1].char===10&&this._queueCursor--;}removeLastSemicolon(){let t=this._queueCursor;t!==0&&this._queue[t-1].char===59&&this._queueCursor--;}getLastChar(){let t=this._queueCursor;return t!==0?this._queue[t-1].char:this._last}getNewlineCount(){let t=this._queueCursor,r=0;if(t===0)return this._last===10?1:0;for(let n=t-1;n>=0&&this._queue[n].char===10;n--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){let t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let n=t.identifierName,i=this._sourcePosition;n&&(this._canMarkIdName=!1,i.identifierName=n),r(),n&&(this._canMarkIdName=!0,i.identifierName=void 0,i.identifierNamePos=void 0),this.source("end",t);}source(t,r){this._map&&this._normalizePosition(t,r,0);}sourceWithOffset(t,r,n){this._map&&this._normalizePosition(t,r,n);}withSource(t,r,n){this._map&&this.source(t,r),n();}_normalizePosition(t,r,n){let i=r[t],s=this._sourcePosition;i&&(s.line=i.line,s.column=Math.max(i.column+n,0),s.filename=r.filename);}getCurrentColumn(){let t=this._queue,r=this._queueCursor,n=-1,i=0;for(let s=0;s<r;s++){let a=t[s];a.char===10&&(n=i),i+=a.repeat;}return n===-1?this._position.column+i:i-1-n}getCurrentLine(){let t=0,r=this._queue;for(let n=0;n<this._queueCursor;n++)r[n].char===10&&t++;return this._position.line+t}};nI.default=k4;});var mAe=chunkTKGT252T_js.c(sI=>{Object.defineProperty(sI,"__esModule",{value:!0});sI.nodes=void 0;var fkt=gi(),{FLIPPED_ALIAS_KEYS:hkt,isArrayExpression:dkt,isAssignmentExpression:fAe,isBinary:hAe,isBlockStatement:mkt,isCallExpression:dAe,isFunction:$b,isIdentifier:iI,isLiteral:ykt,isMemberExpression:F4,isObjectExpression:gkt,isOptionalCallExpression:Skt,isOptionalMemberExpression:Tkt,isStringLiteral:Ekt}=fkt;function vS(e,t){return e&&(F4(e)||Tkt(e)?(vS(e.object,t),e.computed&&vS(e.property,t)):hAe(e)||fAe(e)?(vS(e.left,t),vS(e.right,t)):dAe(e)||Skt(e)?(t.hasCall=!0,vS(e.callee,t)):$b(e)?t.hasFunction=!0:iI(e)&&(t.hasHelper=t.hasHelper||e.callee&&Pc(e.callee))),t}function pAe(e){return vS(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Pc(e){return e?F4(e)?Pc(e.object)||Pc(e.property):iI(e)?e.name==="require"||e.name.charCodeAt(0)===95:dAe(e)?Pc(e.callee):hAe(e)||fAe(e)?iI(e.left)&&Pc(e.left)||Pc(e.right):!1:!1}function bkt(e){return ykt(e)||gkt(e)||dkt(e)||iI(e)||F4(e)}var Ud=sI.nodes={AssignmentExpression(e){let t=pAe(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase(e,t){return (e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if($b(e.left)||$b(e.right))return 2},Literal(e){if(Ekt(e)&&e.value==="use strict")return 2},CallExpression(e){if($b(e.callee)||Pc(e))return 3},OptionalCallExpression(e){if($b(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){let r=e.declarations[t],n=Pc(r.id)&&!bkt(r.init);if(!n&&r.init){let i=pAe(r.init);n=Pc(r.init)&&i.hasCall||i.hasFunction;}if(n)return 3}},IfStatement(e){if(mkt(e.consequent))return 3}};Ud.ObjectProperty=Ud.ObjectTypeProperty=Ud.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1};Ud.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length))return 1};Ud.ObjectTypeIndexer=function(e,t){var r,n;if(t.indexers[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length))return 1};Ud.ObjectTypeInternalSlot=function(e,t){var r,n,i;if(t.internalSlots[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length)&&!((i=t.indexers)!=null&&i.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(hkt[e]||[]).forEach(function(r){let n=t?3:0;Ud[r]=()=>n;});});});var EAe=chunkTKGT252T_js.c(Fr=>{Object.defineProperty(Fr,"__esModule",{value:!0});Fr.ArrowFunctionExpression=zkt;Fr.AssignmentExpression=Qkt;Fr.Binary=Bkt;Fr.BinaryExpression=$kt;Fr.ClassExpression=Wkt;Fr.ConditionalExpression=B4;Fr.DoExpression=Fkt;Fr.FunctionExpression=Xkt;Fr.FunctionTypeAnnotation=Mkt;Fr.Identifier=e2t;Fr.LogicalExpression=Zkt;Fr.NullableTypeAnnotation=Rkt;Fr.ObjectExpression=kkt;Fr.OptionalIndexedAccessType=Ukt;Fr.OptionalCallExpression=Fr.OptionalMemberExpression=Jkt;Fr.SequenceExpression=Kkt;Fr.TSTypeAssertion=Fr.TSSatisfiesExpression=Fr.TSAsExpression=qkt;Fr.TSInferType=Hkt;Fr.TSInstantiationExpression=Gkt;Fr.TSIntersectionType=Fr.TSUnionType=Vkt;Fr.UnaryLike=TAe;Fr.IntersectionTypeAnnotation=Fr.UnionTypeAnnotation=jkt;Fr.UpdateExpression=Lkt;Fr.AwaitExpression=Fr.YieldExpression=Ykt;var vkt=gi(),{isArrayTypeAnnotation:_kt,isArrowFunctionExpression:xkt,isBinaryExpression:Akt,isCallExpression:Pkt,isExportDeclaration:Ckt,isForOfStatement:wkt,isIndexedAccessType:Ikt,isMemberExpression:gAe,isObjectPattern:Okt,isOptionalMemberExpression:Dkt,isYieldExpression:Nkt}=vkt,yAe=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function SAe(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}var aI=(e,t)=>{let r=t.type;return (r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e},Kb=(e,t)=>{let r=t.type;return (r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function Rkt(e,t){return _kt(t)}function Mkt(e,t,r){if(r.length<3)return;let n=t.type;return n==="UnionTypeAnnotation"||n==="IntersectionTypeAnnotation"||n==="ArrayTypeAnnotation"||n==="TypeAnnotation"&&xkt(r[r.length-3])}function Lkt(e,t){return Kb(e,t)||aI(e,t)}function kkt(e,t,r){return Yb(r,3)}function Fkt(e,t,r){return !e.async&&Yb(r,1)}function Bkt(e,t){let r=t.type;if(e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**")return t.left===e;if(aI(e,t)||Kb(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression")return !0;if(r==="BinaryExpression"||r==="LogicalExpression"){let n=yAe.get(t.operator),i=yAe.get(e.operator);if(n===i&&t.right===e&&r!=="LogicalExpression"||n>i)return !0}}function jkt(e,t){let r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function Ukt(e,t){return Ikt(t)&&t.objectType===e}function qkt(){return !0}function Vkt(e,t){let r=t.type;return r==="TSArrayType"||r==="TSOptionalType"||r==="TSIntersectionType"||r==="TSUnionType"||r==="TSRestType"}function Hkt(e,t){let r=t.type;return r==="TSArrayType"||r==="TSOptionalType"}function Gkt(e,t){let r=t.type;return (r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function $kt(e,t){if(e.operator==="in"){let r=t.type;return r==="VariableDeclarator"||r==="ForStatement"||r==="ForInStatement"||r==="ForOfStatement"}return !1}function Kkt(e,t){let r=t.type;return !(r==="ForStatement"||r==="ThrowStatement"||r==="ReturnStatement"||r==="IfStatement"&&t.test===e||r==="WhileStatement"&&t.test===e||r==="ForInStatement"&&t.right===e||r==="SwitchStatement"&&t.discriminant===e||r==="ExpressionStatement"&&t.expression===e)}function Ykt(e,t){let r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||Kb(e,t)||r==="AwaitExpression"&&Nkt(e)||r==="ConditionalExpression"&&e===t.test||aI(e,t)}function Wkt(e,t,r){return Yb(r,5)}function TAe(e,t){return Kb(e,t)||Akt(t)&&t.operator==="**"&&t.left===e||aI(e,t)}function Xkt(e,t,r){return Yb(r,5)}function zkt(e,t){return Ckt(t)||B4(e,t)}function B4(e,t){let r=t.type;return r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||SAe(r)?!0:TAe(e,t)}function Jkt(e,t){return Pkt(t)&&t.callee===e||gAe(t)&&t.object===e}function Qkt(e,t){return Okt(e.left)?!0:B4(e,t)}function Zkt(e,t){let r=t.type;if(SAe(r))return !0;if(r!=="LogicalExpression")return !1;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function e2t(e,t,r){var n;let i=t.type;if((n=e.extra)!=null&&n.parenthesized&&i==="AssignmentExpression"&&t.left===e){let s=t.right.type;if((s==="FunctionExpression"||s==="ClassExpression")&&t.right.id==null)return !0}if(e.name==="let"){let s=gAe(t,{object:e,computed:!0})||Dkt(t,{object:e,computed:!0,optional:!1});return Yb(r,s?57:32)}return e.name==="async"&&wkt(t)&&e===t.left}function Yb(e,t){let r=t&1,n=t&2,i=t&4,s=t&8,a=t&16,o=t&32,u=e.length-1;if(u<=0)return;let l=e[u];u--;let c=e[u];for(;u>=0;){let p=c.type;if(r&&p==="ExpressionStatement"&&c.expression===l||i&&p==="ExportDefaultDeclaration"&&l===c.declaration||n&&p==="ArrowFunctionExpression"&&c.body===l||s&&p==="ForStatement"&&c.init===l||a&&p==="ForInStatement"&&c.left===l||o&&p==="ForOfStatement"&&c.left===l)return !0;if(u>0&&(Kb(l,c)&&p!=="NewExpression"||p==="SequenceExpression"&&c.expressions[0]===l||p==="UpdateExpression"&&!c.prefix||p==="ConditionalExpression"&&c.test===l||(p==="BinaryExpression"||p==="LogicalExpression")&&c.left===l||p==="AssignmentExpression"&&c.left===l))l=c,u--,c=e[u];else return !1}return !1}});var U4=chunkTKGT252T_js.c(_S=>{Object.defineProperty(_S,"__esModule",{value:!0});_S.needsParens=h2t;_S.needsWhitespace=j4;_S.needsWhitespaceAfter=f2t;_S.needsWhitespaceBefore=p2t;var t2t=mAe(),r2t=EAe(),n2t=gi(),{FLIPPED_ALIAS_KEYS:i2t,isCallExpression:s2t,isExpressionStatement:a2t,isMemberExpression:o2t,isNewExpression:u2t}=n2t;function bAe(e){let t=new Map;function r(n,i){let s=t.get(n);t.set(n,s?function(a,o,u){var l;return (l=s(a,o,u))!=null?l:i(a,o,u)}:i);}for(let n of Object.keys(e)){let i=i2t[n];if(i)for(let s of i)r(s,e[n]);else r(n,e[n]);}return t}var l2t=bAe(r2t),c2t=bAe(t2t.nodes);function vAe(e){return s2t(e)?!0:o2t(e)&&vAe(e.object)}function j4(e,t,r){var n;if(!e)return !1;a2t(e)&&(e=e.expression);let i=(n=c2t.get(e.type))==null?void 0:n(e,t);return typeof i=="number"?(i&r)!==0:!1}function p2t(e,t){return j4(e,t,1)}function f2t(e,t){return j4(e,t,2)}function h2t(e,t,r){var n;return t?u2t(t)&&t.callee===e&&vAe(e)?!0:(n=l2t.get(e.type))==null?void 0:n(e,t,r):!1}});var _Ae=chunkTKGT252T_js.c(Wb=>{Object.defineProperty(Wb,"__esModule",{value:!0});Wb.TaggedTemplateExpression=d2t;Wb.TemplateElement=m2t;Wb.TemplateLiteral=y2t;function d2t(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e);}function m2t(e,t){let r=t.quasis[0]===e,n=t.quasis[t.quasis.length-1]===e,i=(r?"`":"}")+e.value.raw+(n?"`":"${");this.token(i,!0);}function y2t(e){let t=e.quasis;for(let r=0;r<t.length;r++)this.print(t[r],e),r+1<t.length&&this.print(e.expressions[r],e);}});var PAe=chunkTKGT252T_js.c($r=>{Object.defineProperty($r,"__esModule",{value:!0});$r.LogicalExpression=$r.BinaryExpression=$r.AssignmentExpression=V2t;$r.AssignmentPattern=q2t;$r.AwaitExpression=F2t;$r.BindExpression=H2t;$r.CallExpression=L2t;$r.ConditionalExpression=A2t;$r.Decorator=N2t;$r.DoExpression=v2t;$r.EmptyStatement=j2t;$r.ExpressionStatement=U2t;$r.Import=k2t;$r.MemberExpression=G2t;$r.MetaProperty=$2t;$r.ModuleExpression=W2t;$r.NewExpression=P2t;$r.OptionalCallExpression=M2t;$r.OptionalMemberExpression=R2t;$r.ParenthesizedExpression=_2t;$r.PrivateName=K2t;$r.SequenceExpression=C2t;$r.Super=I2t;$r.ThisExpression=w2t;$r.UnaryExpression=b2t;$r.UpdateExpression=x2t;$r.V8IntrinsicIdentifier=Y2t;$r.YieldExpression=B2t;$r._shouldPrintDecoratorsBeforeExport=D2t;var g2t=gi(),S2t=U4(),{isCallExpression:T2t,isLiteral:xAe,isMemberExpression:q4,isNewExpression:E2t}=g2t;function b2t(e){let{operator:t}=e;t==="void"||t==="delete"||t==="typeof"||t==="throw"?(this.word(t),this.space()):this.token(t),this.print(e.argument,e);}function v2t(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body,e);}function _2t(e){this.tokenChar(40),this.print(e.expression,e),this.rightParens(e);}function x2t(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.printTerminatorless(e.argument,e,!0),this.token(e.operator));}function A2t(e){this.print(e.test,e),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent,e),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate,e);}function P2t(e,t){this.word("new"),this.space(),this.print(e.callee,e),!(this.format.minified&&e.arguments.length===0&&!e.optional&&!T2t(t,{callee:e})&&!q4(t)&&!E2t(t))&&(this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e));}function C2t(e){this.printList(e.expressions,e);}function w2t(){this.word("this");}function I2t(){this.word("super");}function AAe(e){switch(e.type){case"Identifier":return !0;case"MemberExpression":return !e.computed&&e.property.type==="Identifier"&&AAe(e.object);default:return !1}}function O2t(e){return e.type==="ParenthesizedExpression"?!1:!AAe(e.type==="CallExpression"?e.callee:e)}function D2t(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function N2t(e){this.tokenChar(64);let{expression:t}=e;O2t(t)?(this.tokenChar(40),this.print(t,e),this.tokenChar(41)):this.print(t,e),this.newline();}function R2t(e){let{computed:t}=e,{optional:r,property:n}=e;if(this.print(e.object,e),!t&&q4(n))throw new TypeError("Got a MemberExpression for MemberExpression property");xAe(n)&&typeof n.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(n,e),this.tokenChar(93)):(r||this.tokenChar(46),this.print(n,e));}function M2t(e){this.print(e.callee,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.print(e.typeArguments,e),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e);}function L2t(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e);}function k2t(){this.word("import");}function F2t(e){this.word("await"),e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1));}function B2t(e){this.word("yield",!0),e.delegate?(this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument,e))):e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1));}function j2t(){this.semicolon(!0);}function U2t(e){this.print(e.expression,e),this.semicolon();}function q2t(e){this.print(e.left,e),e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation,e),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e);}function V2t(e,t){let r=this.inForStatementInitCounter&&e.operator==="in"&&!S2t.needsParens(e,t);r&&this.tokenChar(40),this.print(e.left,e),this.space(),e.operator==="in"||e.operator==="instanceof"?this.word(e.operator):this.token(e.operator),this.space(),this.print(e.right,e),r&&this.tokenChar(41);}function H2t(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e);}function G2t(e){if(this.print(e.object,e),!e.computed&&q4(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;xAe(e.property)&&typeof e.property.value=="number"&&(t=!0),t?(this.tokenChar(91),this.print(e.property,e),this.tokenChar(93)):(this.tokenChar(46),this.print(e.property,e));}function $2t(e){this.print(e.meta,e),this.tokenChar(46),this.print(e.property,e);}function K2t(e){this.tokenChar(35),this.print(e.id,e);}function Y2t(e){this.tokenChar(37),this.word(e.name);}function W2t(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t,e),this.dedent(),this.rightBrace(e);}});var OAe=chunkTKGT252T_js.c(Hn=>{Object.defineProperty(Hn,"__esModule",{value:!0});Hn.BreakStatement=iFt;Hn.CatchClause=cFt;Hn.ContinueStatement=sFt;Hn.DebuggerStatement=hFt;Hn.DoWhileStatement=nFt;Hn.ForOfStatement=Hn.ForInStatement=void 0;Hn.ForStatement=tFt;Hn.IfStatement=eFt;Hn.LabeledStatement=uFt;Hn.ReturnStatement=aFt;Hn.SwitchCase=fFt;Hn.SwitchStatement=pFt;Hn.ThrowStatement=oFt;Hn.TryStatement=lFt;Hn.VariableDeclaration=dFt;Hn.VariableDeclarator=mFt;Hn.WhileStatement=rFt;Hn.WithStatement=Z2t;var X2t=gi(),{isFor:CAe,isForStatement:z2t,isIfStatement:J2t,isStatement:Q2t}=X2t;function Z2t(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object,e),this.tokenChar(41),this.printBlock(e);}function eFt(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.space();let t=e.alternate&&J2t(wAe(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e));}function wAe(e){let{body:t}=e;return Q2t(t)===!1?e:wAe(t)}function tFt(e){this.word("for"),this.space(),this.tokenChar(40),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.tokenChar(59),e.test&&(this.space(),this.print(e.test,e)),this.tokenChar(59),e.update&&(this.space(),this.print(e.update,e)),this.tokenChar(41),this.printBlock(e);}function rFt(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.printBlock(e);}function IAe(e){this.word("for"),this.space();let t=e.type==="ForOfStatement";t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.print(e.left,e),this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right,e),this.tokenChar(41),this.printBlock(e);}Hn.ForInStatement=IAe;Hn.ForOfStatement=IAe;function nFt(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.semicolon();}function oI(e,t,r,n){t&&(e.space(),e.printTerminatorless(t,r,n)),e.semicolon();}function iFt(e){this.word("break"),oI(this,e.label,e,!0);}function sFt(e){this.word("continue"),oI(this,e.label,e,!0);}function aFt(e){this.word("return"),oI(this,e.argument,e,!1);}function oFt(e){this.word("throw"),oI(this,e.argument,e,!1);}function uFt(e){this.print(e.label,e),this.tokenChar(58),this.space(),this.print(e.body,e);}function lFt(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e));}function cFt(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.tokenChar(41),this.space()),this.print(e.body,e);}function pFt(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant,e),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return -1}}),this.rightBrace(e);}function fFt(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}));}function hFt(){this.word("debugger"),this.semicolon();}function dFt(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;this.word(r,r==="using"||r==="await using"),this.space();let n=!1;if(!CAe(t))for(let i of e.declarations)i.init&&(n=!0);if(this.printList(e.declarations,e,{separator:n?function(){this.tokenChar(44),this.newline();}:void 0,indent:e.declarations.length>1}),CAe(t)){if(z2t(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon();}function mFt(e){this.print(e.id,e),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init,e));}});var DAe=chunkTKGT252T_js.c(Ao=>{Object.defineProperty(Ao,"__esModule",{value:!0});Ao.ClassAccessorProperty=vFt;Ao.ClassBody=EFt;Ao.ClassExpression=Ao.ClassDeclaration=TFt;Ao.ClassMethod=xFt;Ao.ClassPrivateMethod=AFt;Ao.ClassPrivateProperty=_Ft;Ao.ClassProperty=bFt;Ao.StaticBlock=CFt;Ao._classMethodHead=PFt;var yFt=gi(),{isExportDefaultDeclaration:gFt,isExportNamedDeclaration:SFt}=yFt;function TFt(e,t){(!(gFt(t)||SFt(t))||!this._shouldPrintDecoratorsBeforeExport(t))&&this.printJoin(e.decorators,e),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id,e)),this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body,e);}function EFt(e){this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.endsWith(10)||this.newline(),this.rightBrace(e));}function bFt(e){var t;this.printJoin(e.decorators,e);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon();}function vFt(e){var t;this.printJoin(e.decorators,e);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon();}function _Ft(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space()),this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon();}function xFt(e){this._classMethodHead(e),this.space(),this.print(e.body,e);}function AFt(e){this._classMethodHead(e),this.space(),this.print(e.body,e);}function PFt(e){var t;this.printJoin(e.decorators,e);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this._methodHead(e);}function CFt(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e));}});var NAe=chunkTKGT252T_js.c(du=>{Object.defineProperty(du,"__esModule",{value:!0});du.ArrowFunctionExpression=FFt;du.FunctionDeclaration=du.FunctionExpression=kFt;du._functionHead=LFt;du._methodHead=RFt;du._param=NFt;du._parameters=DFt;du._params=OFt;du._predicate=MFt;var wFt=gi(),{isIdentifier:IFt}=wFt;function OFt(e,t,r){this.print(e.typeParameters,e);let n=jFt.call(this,t,r);n&&this.sourceIdentifierName(n.name,n.pos),this.tokenChar(40),this._parameters(e.params,e),this.tokenChar(41);let i=e.type==="ArrowFunctionExpression";this.print(e.returnType,e,i),this._noLineTerminator=i;}function DFt(e,t){let r=e.length;for(let n=0;n<r;n++)this._param(e[n],t),n<e.length-1&&(this.tokenChar(44),this.space());}function NFt(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e);}function RFt(e){let t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r,e),this.tokenChar(93)):this.print(r,e),e.optional&&this.tokenChar(63),this._params(e,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key,void 0);}function MFt(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,e,t));}function LFt(e,t){e.async&&(this.word("async"),this._endsWithInnerRaw=!1,this.space()),this.word("function"),e.generator&&(this._endsWithInnerRaw=!1,this.tokenChar(42)),this.space(),e.id&&this.print(e.id,e),this._params(e,e.id,t),e.type!=="TSDeclareFunction"&&this._predicate(e);}function kFt(e,t){this._functionHead(e,t),this.space(),this.print(e.body,e);}function FFt(e,t){e.async&&(this.word("async",!0),this.space());let r;!this.format.retainLines&&e.params.length===1&&IFt(r=e.params[0])&&!BFt(e,r)?this.print(r,e,!0):this._params(e,void 0,t),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.print(e.body,e);}function BFt(e,t){var r,n;return !!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||(r=t.leadingComments)!=null&&r.length||(n=t.trailingComments)!=null&&n.length)}function jFt(e,t){let r=e;if(!r&&t){let u=t.type;u==="VariableDeclarator"?r=t.id:u==="AssignmentExpression"||u==="AssignmentPattern"?r=t.left:u==="ObjectProperty"||u==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(u==="ClassPrivateProperty"||u==="ClassAccessorProperty")&&(r=t.key);}if(!r)return;let n;if(r.type==="Identifier"){var i,s;n={pos:(i=r.loc)==null?void 0:i.start,name:((s=r.loc)==null?void 0:s.identifierName)||r.name};}else if(r.type==="PrivateName"){var a;n={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name};}else if(r.type==="StringLiteral"){var o;n={pos:(o=r.loc)==null?void 0:o.start,name:r.value};}return n}});var V4=chunkTKGT252T_js.c($s=>{Object.defineProperty($s,"__esModule",{value:!0});$s.ExportAllDeclaration=QFt;$s.ExportDefaultDeclaration=eBt;$s.ExportDefaultSpecifier=WFt;$s.ExportNamedDeclaration=ZFt;$s.ExportNamespaceSpecifier=zFt;$s.ExportSpecifier=XFt;$s.ImportAttribute=rBt;$s.ImportDeclaration=tBt;$s.ImportDefaultSpecifier=YFt;$s.ImportExpression=iBt;$s.ImportNamespaceSpecifier=nBt;$s.ImportSpecifier=KFt;$s._printAttributes=JFt;var UFt=gi(),{isClassDeclaration:qFt,isExportDefaultSpecifier:VFt,isExportNamespaceSpecifier:HFt,isImportDefaultSpecifier:GFt,isImportNamespaceSpecifier:$Ft,isStatement:MAe}=UFt;function KFt(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e));}function YFt(e){this.print(e.local,e);}function WFt(e){this.print(e.exported,e);}function XFt(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e));}function zFt(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported,e);}var RAe=!1;function JFt(e){let{importAttributesKeyword:t}=this.format,{attributes:r,assertions:n}=e;r&&!t&&!RAe&&(RAe=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let i=t==="assert"||!t&&n;if(this.word(i?"assert":"with"),this.space(),!i&&t!=="with"){this.printList(r||n,e);return}this.tokenChar(123),this.space(),this.printList(r||n,e),this.space(),this.tokenChar(125);}function QFt(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon();}function LAe(e,t){qFt(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators,t);}function ZFt(e){if(LAe(this,e),this.word("export"),this.space(),e.declaration){let n=e.declaration;this.print(n,e),MAe(n)||this.semicolon();}else {e.exportKind==="type"&&(this.word("type"),this.space());let n=e.specifiers.slice(0),i=!1;for(;;){let s=n[0];if(VFt(s)||HFt(s))i=!0,this.print(n.shift(),e),n.length&&(this.tokenChar(44),this.space());else break}if((n.length||!n.length&&!i)&&(this.tokenChar(123),n.length&&(this.space(),this.printList(n,e),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e);}this.semicolon();}}function eBt(e){LAe(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space();let t=e.declaration;this.print(t,e),MAe(t)||this.semicolon();}function tBt(e){var t,r;this.word("import"),this.space();let n=e.importKind==="type"||e.importKind==="typeof";n?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let i=e.specifiers.slice(0),s=!!i.length;for(;s;){let a=i[0];if(GFt(a)||$Ft(a))this.print(i.shift(),e),i.length&&(this.tokenChar(44),this.space());else break}i.length?(this.tokenChar(123),this.space(),this.printList(i,e),this.space(),this.tokenChar(125)):n&&!s&&(this.tokenChar(123),this.tokenChar(125)),(s||n)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon();}function rBt(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value);}function nBt(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local,e);}function iBt(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source,e),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options,e)),this.tokenChar(41);}});var jAe=chunkTKGT252T_js.c((Gln,BAe)=>{var kAe={},sBt=kAe.hasOwnProperty,FAe=(e,t)=>{for(let r in e)sBt.call(e,r)&&t(r,e[r]);},aBt=(e,t)=>(t&&FAe(t,(r,n)=>{e[r]=n;}),e),oBt=(e,t)=>{let r=e.length,n=-1;for(;++n<r;)t(e[n]);},Xb=kAe.toString,uBt=Array.isArray,lBt=Buffer.isBuffer,cBt=e=>Xb.call(e)=="[object Object]",pBt=e=>typeof e=="string"||Xb.call(e)=="[object String]",fBt=e=>typeof e=="number"||Xb.call(e)=="[object Number]",hBt=e=>typeof e=="function",dBt=e=>Xb.call(e)=="[object Map]",mBt=e=>Xb.call(e)=="[object Set]",yBt={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},gBt=/["'\\\b\f\n\r\t]/,SBt=/[0-9]/,TBt=/[ !#-&\(-\[\]-_a-~]/,qf=(e,t)=>{let r=()=>{l=u,++t.indentLevel,u=t.indent.repeat(t.indentLevel);},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;i&&(n.quotes="double",n.wrap=!0),t=aBt(n,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let s=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,u=t.indent.repeat(t.indentLevel),l="",c=t.__inline1__,p=t.__inline2__,h=a?"":`
`,f,d=!0,m=t.numbers=="binary",y=t.numbers=="octal",g=t.numbers=="decimal",v=t.numbers=="hexadecimal";if(i&&e&&hBt(e.toJSON)&&(e=e.toJSON()),!pBt(e)){if(dBt(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+qf(Array.from(e),t)+")");if(mBt(e))return e.size==0?"new Set()":"new Set("+qf(Array.from(e),t)+")";if(lBt(e))return e.length==0?"Buffer.from([])":"Buffer.from("+qf(Array.from(e),t)+")";if(uBt(e))return f=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),p||r(),oBt(e,b=>{d=!1,p&&(t.__inline2__=!1),f.push((a||p?"":u)+qf(b,t));}),d?"[]":p?"["+f.join(", ")+"]":"["+h+f.join(","+h)+h+(a?"":l)+"]";if(fBt(e)){if(i)return JSON.stringify(e);if(g)return String(e);if(v){let b=e.toString(16);return o||(b=b.toUpperCase()),"0x"+b}if(m)return "0b"+e.toString(2);if(y)return "0o"+e.toString(8)}else return cBt(e)?(f=[],t.wrap=!0,r(),FAe(e,(b,A)=>{d=!1,f.push((a?"":u)+qf(b,t)+":"+(a?"":" ")+qf(A,t));}),d?"{}":"{"+h+f.join(","+h)+h+(a?"":l)+"}"):i?JSON.stringify(e)||"null":String(e)}let E=e,S=-1,x=E.length;for(f="";++S<x;){let b=E.charAt(S);if(t.es6){let X=E.charCodeAt(S);if(X>=55296&&X<=56319&&x>S+1){let oe=E.charCodeAt(S+1);if(oe>=56320&&oe<=57343){let Be=((X-55296)*1024+oe-56320+65536).toString(16);o||(Be=Be.toUpperCase()),f+="\\u{"+Be+"}",++S;continue}}}if(!t.escapeEverything){if(TBt.test(b)){f+=b;continue}if(b=='"'){f+=s==b?'\\"':b;continue}if(b=="`"){f+=s==b?"\\`":b;continue}if(b=="'"){f+=s==b?"\\'":b;continue}}if(b=="\0"&&!i&&!SBt.test(E.charAt(S+1))){f+="\\0";continue}if(gBt.test(b)){f+=yBt[b];continue}let A=b.charCodeAt(0);if(t.minimal&&A!=8232&&A!=8233){f+=b;continue}let D=A.toString(16);o||(D=D.toUpperCase());let P=D.length>2||i,V="\\"+(P?"u":"x")+("0000"+D).slice(P?-4:-2);f+=V;}return t.wrap&&(f=s+f+s),s=="`"&&(f=f.replace(/\$\{/g,"\\${")),t.isScriptContext?f.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,i?"\\u003C!--":"\\x3C!--"):f};qf.version="2.5.2";BAe.exports=qf;});var G4=chunkTKGT252T_js.c(Cn=>{Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ArgumentPlaceholder=_Bt;Cn.ArrayPattern=Cn.ArrayExpression=wBt;Cn.BigIntLiteral=kBt;Cn.BooleanLiteral=NBt;Cn.DecimalLiteral=FBt;Cn.Identifier=vBt;Cn.NullLiteral=RBt;Cn.NumericLiteral=MBt;Cn.ObjectPattern=Cn.ObjectExpression=ABt;Cn.ObjectMethod=PBt;Cn.ObjectProperty=CBt;Cn.PipelineBareFunction=UBt;Cn.PipelinePrimaryTopicReference=qBt;Cn.PipelineTopicExpression=jBt;Cn.RecordExpression=IBt;Cn.RegExpLiteral=DBt;Cn.SpreadElement=Cn.RestElement=xBt;Cn.StringLiteral=LBt;Cn.TopicReference=BBt;Cn.TupleExpression=OBt;var EBt=gi(),qAe=jAe(),{isAssignmentPattern:bBt,isIdentifier:H4}=EBt;function vBt(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name),this.word(e.name);}function _Bt(){this.tokenChar(63);}function xBt(e){this.token("..."),this.print(e.argument,e);}function ABt(e){let t=e.properties;this.tokenChar(123),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125);}function PBt(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e);}function CBt(e){if(this.printJoin(e.decorators,e),e.computed)this.tokenChar(91),this.print(e.key,e),this.tokenChar(93);else {if(bBt(e.value)&&H4(e.key)&&e.key.name===e.value.left.name){this.print(e.value,e);return}if(this.print(e.key,e),e.shorthand&&H4(e.key)&&H4(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value,e);}function wBt(e){let t=e.elements,r=t.length;this.tokenChar(91);for(let n=0;n<t.length;n++){let i=t[n];i?(n>0&&this.space(),this.print(i,e),n<r-1&&this.tokenChar(44)):this.tokenChar(44);}this.tokenChar(93);}function IBt(e){let t=e.properties,r,n;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",n="|}";else {if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",n="}";}this.token(r),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.token(n);}function OBt(e){let t=e.elements,r=t.length,n,i;if(this.format.recordAndTupleSyntaxType==="bar")n="[|",i="|]";else if(this.format.recordAndTupleSyntaxType==="hash")n="#[",i="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(n);for(let s=0;s<t.length;s++){let a=t[s];a&&(s>0&&this.space(),this.print(a,e),s<r-1&&this.tokenChar(44));}this.token(i);}function DBt(e){this.word(`/${e.pattern}/${e.flags}`);}function NBt(e){this.word(e.value?"true":"false");}function RBt(){this.word("null");}function MBt(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,n=e.value,i=n+"";r.numbers?this.number(qAe(n,r),n):t==null?this.number(i,n):this.format.minified?this.number(t.length<i.length?t:i,n):this.number(t,n);}function LBt(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=qAe(e.value,this.format.jsescOption);this.token(r);}function kBt(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n");}function FBt(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m");}var UAe=new Set(["^^","@@","^","%","#"]);function BBt(){let{topicToken:e}=this.format;if(UAe.has(e))this.token(e);else {let t=JSON.stringify(e),r=Array.from(UAe,n=>JSON.stringify(n));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function jBt(e){this.print(e.expression,e);}function UBt(e){this.print(e.callee,e);}function qBt(){this.tokenChar(35);}});var HAe=chunkTKGT252T_js.c(Xe=>{Object.defineProperty(Xe,"__esModule",{value:!0});Xe.AnyTypeAnnotation=$Bt;Xe.ArrayTypeAnnotation=KBt;Xe.BooleanLiteralTypeAnnotation=WBt;Xe.BooleanTypeAnnotation=YBt;Xe.DeclareClass=zBt;Xe.DeclareExportAllDeclaration=o3t;Xe.DeclareExportDeclaration=a3t;Xe.DeclareFunction=JBt;Xe.DeclareInterface=e3t;Xe.DeclareModule=t3t;Xe.DeclareModuleExports=r3t;Xe.DeclareOpaqueType=i3t;Xe.DeclareTypeAlias=n3t;Xe.DeclareVariable=s3t;Xe.DeclaredPredicate=ZBt;Xe.EmptyTypeAnnotation=I3t;Xe.EnumBooleanBody=l3t;Xe.EnumBooleanMember=d3t;Xe.EnumDeclaration=u3t;Xe.EnumDefaultedMember=h3t;Xe.EnumNumberBody=c3t;Xe.EnumNumberMember=m3t;Xe.EnumStringBody=p3t;Xe.EnumStringMember=y3t;Xe.EnumSymbolBody=f3t;Xe.ExistsTypeAnnotation=S3t;Xe.FunctionTypeAnnotation=T3t;Xe.FunctionTypeParam=E3t;Xe.IndexedAccessType=ejt;Xe.InferredPredicate=QBt;Xe.InterfaceDeclaration=x3t;Xe.GenericTypeAnnotation=Xe.ClassImplements=Xe.InterfaceExtends=b3t;Xe.InterfaceTypeAnnotation=P3t;Xe.IntersectionTypeAnnotation=C3t;Xe.MixedTypeAnnotation=w3t;Xe.NullLiteralTypeAnnotation=XBt;Xe.NullableTypeAnnotation=O3t;Object.defineProperty(Xe,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return VAe.NumericLiteral}});Xe.NumberTypeAnnotation=D3t;Xe.ObjectTypeAnnotation=q3t;Xe.ObjectTypeCallProperty=H3t;Xe.ObjectTypeIndexer=G3t;Xe.ObjectTypeInternalSlot=V3t;Xe.ObjectTypeProperty=$3t;Xe.ObjectTypeSpreadProperty=K3t;Xe.OpaqueType=U3t;Xe.OptionalIndexedAccessType=tjt;Xe.QualifiedTypeIdentifier=Y3t;Object.defineProperty(Xe,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return VAe.StringLiteral}});Xe.StringTypeAnnotation=N3t;Xe.SymbolTypeAnnotation=W3t;Xe.ThisTypeAnnotation=R3t;Xe.TupleTypeAnnotation=M3t;Xe.TypeAlias=k3t;Xe.TypeAnnotation=F3t;Xe.TypeCastExpression=J3t;Xe.TypeParameter=j3t;Xe.TypeParameterDeclaration=Xe.TypeParameterInstantiation=B3t;Xe.TypeofTypeAnnotation=L3t;Xe.UnionTypeAnnotation=z3t;Xe.Variance=Q3t;Xe.VoidTypeAnnotation=Z3t;Xe._interfaceish=v3t;Xe._variance=_3t;var VBt=gi(),HBt=V4(),VAe=G4(),{isDeclareExportDeclaration:uI,isStatement:GBt}=VBt;function $Bt(){this.word("any");}function KBt(e){this.print(e.elementType,e,!0),this.tokenChar(91),this.tokenChar(93);}function YBt(){this.word("boolean");}function WBt(e){this.word(e.value?"true":"false");}function XBt(){this.word("null");}function zBt(e,t){uI(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e);}function JBt(e,t){uI(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),e.predicate&&(this.space(),this.print(e.predicate,e)),this.semicolon();}function QBt(){this.tokenChar(37),this.word("checks");}function ZBt(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value,e),this.tokenChar(41);}function e3t(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e);}function t3t(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id,e),this.space(),this.print(e.body,e);}function r3t(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation,e);}function n3t(e){this.word("declare"),this.space(),this.TypeAlias(e);}function i3t(e,t){uI(t)||(this.word("declare"),this.space()),this.OpaqueType(e);}function s3t(e,t){uI(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon();}function a3t(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),g3t.call(this,e);}function o3t(e){this.word("declare"),this.space(),HBt.ExportAllDeclaration.call(this,e);}function u3t(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t,e),this.print(r,e);}function lI(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space();}function cI(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let n of r)e.print(n,t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}");}function l3t(e){let{explicitType:t}=e;lI(this,"boolean",t),cI(this,e);}function c3t(e){let{explicitType:t}=e;lI(this,"number",t),cI(this,e);}function p3t(e){let{explicitType:t}=e;lI(this,"string",t),cI(this,e);}function f3t(e){lI(this,"symbol",!0),cI(this,e);}function h3t(e){let{id:t}=e;this.print(t,e),this.tokenChar(44);}function $4(e,t){let{id:r,init:n}=t;e.print(r,t),e.space(),e.token("="),e.space(),e.print(n,t),e.token(",");}function d3t(e){$4(this,e);}function m3t(e){$4(this,e);}function y3t(e){$4(this,e);}function g3t(e){if(e.declaration){let t=e.declaration;this.print(t,e),GBt(t)||this.semicolon();}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon();}function S3t(){this.tokenChar(42);}function T3t(e,t){this.print(e.typeParameters,e),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation,e),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params,e),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest,e)),this.tokenChar(41);let r=t==null?void 0:t.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType,e);}function E3t(e){this.print(e.name,e),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation,e);}function b3t(e){this.print(e.id,e),this.print(e.typeParameters,e,!0);}function v3t(e){var t;if(this.print(e.id,e),this.print(e.typeParameters,e),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),e.type==="DeclareClass"){var r,n;(r=e.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e)),(n=e.implements)!=null&&n.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e));}this.space(),this.print(e.body,e);}function _3t(e){var t;let r=(t=e.variance)==null?void 0:t.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45));}function x3t(e){this.word("interface"),this.space(),this._interfaceish(e);}function A3t(){this.space(),this.tokenChar(38),this.space();}function P3t(e){var t;this.word("interface"),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),this.space(),this.print(e.body,e);}function C3t(e){this.printJoin(e.types,e,{separator:A3t});}function w3t(){this.word("mixed");}function I3t(){this.word("empty");}function O3t(e){this.tokenChar(63),this.print(e.typeAnnotation,e);}function D3t(){this.word("number");}function N3t(){this.word("string");}function R3t(){this.word("this");}function M3t(e){this.tokenChar(91),this.printList(e.types,e),this.tokenChar(93);}function L3t(e){this.word("typeof"),this.space(),this.print(e.argument,e);}function k3t(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e),this.semicolon();}function F3t(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e);}function B3t(e){this.tokenChar(60),this.printList(e.params,e,{}),this.tokenChar(62);}function j3t(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default,e));}function U3t(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype,e)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype,e)),this.semicolon();}function q3t(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,e,{addNewlines(r){if(r&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space());}}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125);}function V3t(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id,e),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value,e);}function H3t(e){e.static&&(this.word("static"),this.space()),this.print(e.value,e);}function G3t(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id,e),this.tokenChar(58),this.space()),this.print(e.key,e),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value,e);}function $3t(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),(e.kind==="get"||e.kind==="set")&&(this.word(e.kind),this.space()),this._variance(e),this.print(e.key,e),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value,e);}function K3t(e){this.token("..."),this.print(e.argument,e);}function Y3t(e){this.print(e.qualification,e),this.tokenChar(46),this.print(e.id,e);}function W3t(){this.word("symbol");}function X3t(){this.space(),this.tokenChar(124),this.space();}function z3t(e){this.printJoin(e.types,e,{separator:X3t});}function J3t(e){this.tokenChar(40),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.tokenChar(41);}function Q3t(e){e.kind==="plus"?this.tokenChar(43):this.tokenChar(45);}function Z3t(){this.word("void");}function ejt(e){this.print(e.objectType,e,!0),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93);}function tjt(e){this.print(e.objectType,e),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93);}});var GAe=chunkTKGT252T_js.c(Cc=>{Object.defineProperty(Cc,"__esModule",{value:!0});Cc.BlockStatement=ijt;Cc.Directive=sjt;Cc.DirectiveLiteral=ujt;Cc.File=rjt;Cc.InterpreterDirective=ljt;Cc.Placeholder=cjt;Cc.Program=njt;function rjt(e){e.program&&this.print(e.program.interpreter,e),this.print(e.program,e);}function njt(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();let r=(t=e.directives)==null?void 0:t.length;if(r){var n;let i=e.body.length?2:1;this.printSequence(e.directives,e,{trailingCommentsLineOffset:i}),(n=e.directives[r-1].trailingComments)!=null&&n.length||this.newline(i);}this.printSequence(e.body,e);}function ijt(e){var t;this.tokenChar(123);let r=(t=e.directives)==null?void 0:t.length;if(r){var n;let i=e.body.length?2:1;this.printSequence(e.directives,e,{indent:!0,trailingCommentsLineOffset:i}),(n=e.directives[r-1].trailingComments)!=null&&n.length||this.newline(i);}this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e);}function sjt(e){this.print(e.value,e),this.semicolon();}var ajt=/(?:^|[^\\])(?:\\\\)*'/,ojt=/(?:^|[^\\])(?:\\\\)*"/;function ujt(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!ojt.test(r))this.token(`"${r}"`);else if(!ajt.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function ljt(e){this.token(`#!${e.value}`),this.newline(1,!0);}function cjt(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon();}});var $Ae=chunkTKGT252T_js.c(Ji=>{Object.defineProperty(Ji,"__esModule",{value:!0});Ji.JSXAttribute=pjt;Ji.JSXClosingElement=vjt;Ji.JSXClosingFragment=Pjt;Ji.JSXElement=Tjt;Ji.JSXEmptyExpression=_jt;Ji.JSXExpressionContainer=yjt;Ji.JSXFragment=xjt;Ji.JSXIdentifier=fjt;Ji.JSXMemberExpression=djt;Ji.JSXNamespacedName=hjt;Ji.JSXOpeningElement=bjt;Ji.JSXOpeningFragment=Ajt;Ji.JSXSpreadAttribute=mjt;Ji.JSXSpreadChild=gjt;Ji.JSXText=Sjt;function pjt(e){this.print(e.name,e),e.value&&(this.tokenChar(61),this.print(e.value,e));}function fjt(e){this.word(e.name);}function hjt(e){this.print(e.namespace,e),this.tokenChar(58),this.print(e.name,e);}function djt(e){this.print(e.object,e),this.tokenChar(46),this.print(e.property,e);}function mjt(e){this.tokenChar(123),this.token("..."),this.print(e.argument,e),this.tokenChar(125);}function yjt(e){this.tokenChar(123),this.print(e.expression,e),this.tokenChar(125);}function gjt(e){this.tokenChar(123),this.token("..."),this.print(e.expression,e),this.tokenChar(125);}function Sjt(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0);}function Tjt(e){let t=e.openingElement;if(this.print(t,e),!t.selfClosing){this.indent();for(let r of e.children)this.print(r,e);this.dedent(),this.print(e.closingElement,e);}}function Ejt(){this.space();}function bjt(e){this.tokenChar(60),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:Ejt})),e.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62);}function vjt(e){this.token("</"),this.print(e.name,e),this.tokenChar(62);}function _jt(){this.printInnerComments();}function xjt(e){this.print(e.openingFragment,e),this.indent();for(let t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e);}function Ajt(){this.tokenChar(60),this.tokenChar(62);}function Pjt(){this.token("</"),this.tokenChar(62);}});var WAe=chunkTKGT252T_js.c(Ge=>{Object.defineProperty(Ge,"__esModule",{value:!0});Ge.TSAnyKeyword=Ujt;Ge.TSArrayType=uUt;Ge.TSSatisfiesExpression=Ge.TSAsExpression=PUt;Ge.TSBigIntKeyword=qjt;Ge.TSBooleanKeyword=$jt;Ge.TSCallSignatureDeclaration=Mjt;Ge.TSConditionalType=mUt;Ge.TSConstructSignatureDeclaration=Ljt;Ge.TSConstructorType=tUt;Ge.TSDeclareFunction=Djt;Ge.TSDeclareMethod=Njt;Ge.TSEnumDeclaration=IUt;Ge.TSEnumMember=OUt;Ge.TSExportAssignment=FUt;Ge.TSExpressionWithTypeArguments=vUt;Ge.TSExternalModuleReference=LUt;Ge.TSFunctionType=eUt;Ge.TSImportEqualsDeclaration=MUt;Ge.TSImportType=RUt;Ge.TSIndexSignature=jjt;Ge.TSIndexedAccessType=TUt;Ge.TSInferType=yUt;Ge.TSInstantiationExpression=wUt;Ge.TSInterfaceBody=xUt;Ge.TSInterfaceDeclaration=_Ut;Ge.TSIntersectionType=dUt;Ge.TSIntrinsicKeyword=Qjt;Ge.TSLiteralType=bUt;Ge.TSMappedType=EUt;Ge.TSMethodSignature=Bjt;Ge.TSModuleBlock=NUt;Ge.TSModuleDeclaration=DUt;Ge.TSNamedTupleMember=fUt;Ge.TSNamespaceExportDeclaration=BUt;Ge.TSNeverKeyword=Jjt;Ge.TSNonNullExpression=kUt;Ge.TSNullKeyword=zjt;Ge.TSNumberKeyword=Hjt;Ge.TSObjectKeyword=Gjt;Ge.TSOptionalType=cUt;Ge.TSParameterProperty=Ojt;Ge.TSParenthesizedType=gUt;Ge.TSPropertySignature=kjt;Ge.TSQualifiedName=Rjt;Ge.TSRestType=pUt;Ge.TSStringKeyword=Kjt;Ge.TSSymbolKeyword=Yjt;Ge.TSThisType=Zjt;Ge.TSTupleType=lUt;Ge.TSTypeAliasDeclaration=AUt;Ge.TSTypeAnnotation=Cjt;Ge.TSTypeAssertion=CUt;Ge.TSTypeLiteral=aUt;Ge.TSTypeOperator=SUt;Ge.TSTypeParameter=Ijt;Ge.TSTypeParameterDeclaration=Ge.TSTypeParameterInstantiation=wjt;Ge.TSTypePredicate=iUt;Ge.TSTypeQuery=sUt;Ge.TSTypeReference=nUt;Ge.TSUndefinedKeyword=Xjt;Ge.TSUnionType=hUt;Ge.TSUnknownKeyword=Vjt;Ge.TSVoidKeyword=Wjt;Ge.tsPrintClassMemberModifiers=UUt;Ge.tsPrintFunctionOrConstructorType=rUt;Ge.tsPrintPropertyOrMethodName=Fjt;Ge.tsPrintSignatureDeclarationBase=jUt;Ge.tsPrintTypeLiteralOrInterfaceBody=oUt;function Cjt(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e);}function wjt(e,t){this.tokenChar(60),this.printList(e.params,e,{}),t.type==="ArrowFunctionExpression"&&e.params.length===1&&this.tokenChar(44),this.tokenChar(62);}function Ijt(e){e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default,e));}function Ojt(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter);}function Djt(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.tokenChar(59);}function Njt(e){this._classMethodHead(e),this.tokenChar(59);}function Rjt(e){this.print(e.left,e),this.tokenChar(46),this.print(e.right,e);}function Mjt(e){this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59);}function Ljt(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59);}function kjt(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),this.tokenChar(59);}function Fjt(e){e.computed&&this.tokenChar(91),this.print(e.key,e),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63);}function Bjt(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59);}function jjt(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,e),this.tokenChar(93),this.print(e.typeAnnotation,e),this.tokenChar(59);}function Ujt(){this.word("any");}function qjt(){this.word("bigint");}function Vjt(){this.word("unknown");}function Hjt(){this.word("number");}function Gjt(){this.word("object");}function $jt(){this.word("boolean");}function Kjt(){this.word("string");}function Yjt(){this.word("symbol");}function Wjt(){this.word("void");}function Xjt(){this.word("undefined");}function zjt(){this.word("null");}function Jjt(){this.word("never");}function Qjt(){this.word("intrinsic");}function Zjt(){this.word("this");}function eUt(e){this.tsPrintFunctionOrConstructorType(e);}function tUt(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e);}function rUt(e){let{typeParameters:t}=e,r=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(r,e),this.tokenChar(41),this.space(),this.token("=>"),this.space();let n=e.typeAnnotation;this.print(n.typeAnnotation,e);}function nUt(e){this.print(e.typeName,e,!0),this.print(e.typeParameters,e,!0);}function iUt(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation));}function sUt(e){this.word("typeof"),this.space(),this.print(e.exprName),e.typeParameters&&this.print(e.typeParameters,e);}function aUt(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e);}function oUt(e,t){K4(this,e,t);}function K4(e,t,r){if(e.token("{"),t.length){e.indent(),e.newline();for(let n of t)e.print(n,r),e.newline();e.dedent();}e.rightBrace(r);}function uUt(e){this.print(e.elementType,e,!0),this.token("[]");}function lUt(e){this.tokenChar(91),this.printList(e.elementTypes,e),this.tokenChar(93);}function cUt(e){this.print(e.typeAnnotation,e),this.tokenChar(63);}function pUt(e){this.token("..."),this.print(e.typeAnnotation,e);}function fUt(e){this.print(e.label,e),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType,e);}function hUt(e){YAe(this,e,"|");}function dUt(e){YAe(this,e,"&");}function YAe(e,t,r){e.printJoin(t.types,t,{separator(){this.space(),this.token(r),this.space();}});}function mUt(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType);}function yUt(e){this.token("infer"),this.space(),this.print(e.typeParameter);}function gUt(e){this.tokenChar(40),this.print(e.typeAnnotation,e),this.tokenChar(41);}function SUt(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e);}function TUt(e){this.print(e.objectType,e,!0),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93);}function EUt(e){let{nameType:t,optional:r,readonly:n,typeParameter:i,typeAnnotation:s}=e;this.tokenChar(123),this.space(),n&&(KAe(this,n),this.word("readonly"),this.space()),this.tokenChar(91),this.word(i.name),this.space(),this.word("in"),this.space(),this.print(i.constraint,i),t&&(this.space(),this.word("as"),this.space(),this.print(t,e)),this.tokenChar(93),r&&(KAe(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s,e)),this.space(),this.tokenChar(125);}function KAe(e,t){t!==!0&&e.token(t);}function bUt(e){this.print(e.literal,e);}function vUt(e){this.print(e.expression,e),this.print(e.typeParameters,e);}function _Ut(e){let{declare:t,id:r,typeParameters:n,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r,e),this.print(n,e),i!=null&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i,e)),this.space(),this.print(s,e);}function xUt(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e);}function AUt(e){let{declare:t,id:r,typeParameters:n,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r,e),this.print(n,e),this.space(),this.tokenChar(61),this.space(),this.print(i,e),this.tokenChar(59);}function PUt(e){var t;let{type:r,expression:n,typeAnnotation:i}=e,s=!!((t=n.trailingComments)!=null&&t.length);this.print(n,e,!0,void 0,s),this.space(),this.word(r==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(i,e);}function CUt(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t,e),this.tokenChar(62),this.space(),this.print(r,e);}function wUt(e){this.print(e.expression,e),this.print(e.typeParameters,e);}function IUt(e){let{declare:t,const:r,id:n,members:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(n,e),this.space(),K4(this,i,e);}function OUt(e){let{id:t,initializer:r}=e;this.print(t,e),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r,e)),this.tokenChar(44);}function DUt(e){let{declare:t,id:r}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(r.type==="Identifier"?"namespace":"module"),this.space()),this.print(r,e),!e.body){this.tokenChar(59);return}let n=e.body;for(;n.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(n.id,n),n=n.body;this.space(),this.print(n,e);}function NUt(e){K4(this,e.body,e);}function RUt(e){let{argument:t,qualifier:r,typeParameters:n}=e;this.word("import"),this.tokenChar(40),this.print(t,e),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r,e)),n&&this.print(n,e);}function MUt(e){let{isExport:t,id:r,moduleReference:n}=e;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r,e),this.space(),this.tokenChar(61),this.space(),this.print(n,e),this.tokenChar(59);}function LUt(e){this.token("require("),this.print(e.expression,e),this.tokenChar(41);}function kUt(e){this.print(e.expression,e),this.tokenChar(33);}function FUt(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression,e),this.tokenChar(59);}function BUt(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e);}function jUt(e){let{typeParameters:t}=e,r=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(r,e),this.tokenChar(41);let n=e.typeAnnotation;this.print(n,e);}function UUt(e){let t=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";t&&e.declare&&(this.word("declare"),this.space()),e.accessibility&&(this.word(e.accessibility),this.space()),e.static&&(this.word("static"),this.space()),e.override&&(this.word("override"),this.space()),e.abstract&&(this.word("abstract"),this.space()),t&&e.readonly&&(this.word("readonly"),this.space());}});var XAe=chunkTKGT252T_js.c(Er=>{Object.defineProperty(Er,"__esModule",{value:!0});var Y4=_Ae();Object.keys(Y4).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===Y4[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return Y4[e]}});});var W4=PAe();Object.keys(W4).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===W4[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return W4[e]}});});var X4=OAe();Object.keys(X4).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===X4[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return X4[e]}});});var z4=DAe();Object.keys(z4).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===z4[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return z4[e]}});});var J4=NAe();Object.keys(J4).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===J4[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return J4[e]}});});var Q4=V4();Object.keys(Q4).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===Q4[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return Q4[e]}});});var Z4=G4();Object.keys(Z4).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===Z4[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return Z4[e]}});});var e5=HAe();Object.keys(e5).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===e5[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return e5[e]}});});var t5=GAe();Object.keys(t5).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===t5[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return t5[e]}});});var r5=$Ae();Object.keys(r5).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===r5[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return r5[e]}});});var n5=WAe();Object.keys(n5).forEach(function(e){e==="default"||e==="__esModule"||e in Er&&Er[e]===n5[e]||Object.defineProperty(Er,e,{enumerable:!0,get:function(){return n5[e]}});});});var JAe=chunkTKGT252T_js.c(pI=>{Object.defineProperty(pI,"__esModule",{value:!0});pI.default=void 0;var qUt=cAe(),VUt=U4(),HUt=gi(),GUt=XAe(),{isFunction:$Ut,isStatement:KUt,isClassBody:YUt,isTSInterfaceBody:WUt,isTSEnumDeclaration:XUt}=HUt,zUt=/e/i,JUt=/\.0+$/,zAe=/[\n\r\u2028\u2029]/,QUt=/[\n\r\u2028\u2029]|\*\//,{needsParens:ZUt}=VUt,zb=class{constructor(t,r){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=t,this._indentRepeat=t.indent.style.length,this._inputMap=r==null?void 0:r._inputMap,this._buf=new qUt.default(r,t.indent.style[0]);}generate(t){return this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++;}dedent(){this.format.compact||this.format.concise||this._indent--;}semicolon(t=!1){this._maybeAddAuxComment(),t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1;}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125);}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41);}space(t=!1){if(!this.format.compact){if(t)this._space();else if(this._buf.hasContent()){let r=this.getLastChar();r!==32&&r!==10&&this._space();}}}word(t,r=!1){this._maybePrintInnerComments(),(this._endsWithWord||t.charCodeAt(0)===47&&this.endsWith(47))&&this._space(),this._maybeAddAuxComment(),this._append(t,!1),this._endsWithWord=!0,this._noLineTerminator=r;}number(t,r){function n(i){if(i.length>2&&i.charCodeAt(0)===48){let s=i.charCodeAt(1);return s===98||s===111||s===120}return !1}this.word(t),this._endsWithInteger=Number.isInteger(r)&&!n(t)&&!zUt.test(t)&&!JUt.test(t)&&t.charCodeAt(t.length-1)!==46;}token(t,r=!1){this._maybePrintInnerComments();let n=this.getLastChar(),i=t.charCodeAt(0);(n===33&&(t==="--"||i===61)||i===43&&n===43||i===45&&n===45||i===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(t,r),this._noLineTerminator=!1;}tokenChar(t){this._maybePrintInnerComments();let r=this.getLastChar();(t===43&&r===43||t===45&&r===45||t===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(t),this._noLineTerminator=!1;}newline(t=1,r){if(!(t<=0)){if(!r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let n=0;n<t;n++)this._newline();}}endsWith(t){return this.getLastChar()===t}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline();}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r);}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r));}sourceWithOffset(t,r,n){r&&(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,n));}withSource(t,r,n){if(!r){n();return}this._catchUp(t,r),this._buf.withSource(t,r,n);}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;let n=this._buf._sourcePosition;n.identifierNamePos=r,n.identifierName=t;}_space(){this._queue(32);}_newline(){this._queue(10);}_append(t,r){this._maybeAddParen(t),this._maybeIndent(t.charCodeAt(0)),this._buf.append(t,r),this._endsWithWord=!1,this._endsWithInteger=!1;}_appendChar(t){this._maybeAddParenChar(t),this._maybeIndent(t),this._buf.appendChar(t),this._endsWithWord=!1,this._endsWithInteger=!1;}_queue(t){this._maybeAddParenChar(t),this._maybeIndent(t),this._buf.queue(t),this._endsWithWord=!1,this._endsWithInteger=!1;}_maybeIndent(t){this._indent&&t!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent());}_shouldIndent(t){if(this._indent&&t!==10&&this.endsWith(10))return !0}_maybeAddParenChar(t){let r=this._parenPushNewlineState;if(r&&t!==32){if(t!==10){this._parenPushNewlineState=null;return}this.tokenChar(40),this.indent(),r.printed=!0;}}_maybeAddParen(t){let r=this._parenPushNewlineState;if(!r)return;let n=t.length,i;for(i=0;i<n&&t.charCodeAt(i)===32;i++);if(i===n)return;let s=t.charCodeAt(i);if(s!==10){if(s!==47||i+1===n){this._parenPushNewlineState=null;return}let a=t.charCodeAt(i+1);if(a===42)return;if(a!==47){this._parenPushNewlineState=null;return}}this.tokenChar(40),this.indent(),r.printed=!0;}catchUp(t){if(!this.format.retainLines)return;let r=t-this._buf.getCurrentLine();for(let n=0;n<r;n++)this._newline();}_catchUp(t,r){var n;if(!this.format.retainLines)return;let i=r==null||(n=r[t])==null?void 0:n.line;if(i!=null){let s=i-this._buf.getCurrentLine();for(let a=0;a<s;a++)this._newline();}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(t,r,n){if(n)this._noLineTerminator=!0,this.print(t,r);else {let i={printed:!1};this._parenPushNewlineState=i,this.print(t,r),i.printed&&(this.dedent(),this.newline(),this.tokenChar(41));}}print(t,r,n,i,s){var a,o;if(!t)return;this._endsWithInnerRaw=!1;let u=t.type,l=this.format,c=l.concise;t._compact&&(l.concise=!0);let p=this[u];if(p===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(u)} with constructor ${JSON.stringify(t.constructor.name)}`);this._printStack.push(t);let h=this._insideAux;this._insideAux=t.loc==null,this._maybeAddAuxComment(this._insideAux&&!h);let f=(a=t.extra)==null?void 0:a.parenthesized,d=s||f&&l.retainFunctionParens&&u==="FunctionExpression"||ZUt(t,r,this._printStack);if(!d&&f&&(o=t.leadingComments)!=null&&o.length&&t.leadingComments[0].type==="CommentBlock")switch(r==null?void 0:r.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(r.callee!==t)break;default:d=!0;}d&&(this.tokenChar(40),this._endsWithInnerRaw=!1),this._lastCommentLine=0,this._printLeadingComments(t,r);let m=u==="Program"||u==="File"?null:t.loc;this.exactSource(m,p.bind(this,t,r)),d?(this._printTrailingComments(t,r),this.tokenChar(41),this._noLineTerminator=n):n&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,r)):this._printTrailingComments(t,r,i),this._printStack.pop(),l.concise=c,this._insideAux=h,this._endsWithInnerRaw=!1;}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment();}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0);}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0);}getPossibleRaw(t){let r=t.extra;if((r==null?void 0:r.raw)!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r,n={}){if(!(t!=null&&t.length))return;let{indent:i}=n;if(i==null&&this.format.retainLines){var s;let p=(s=t[0].loc)==null?void 0:s.start.line;p!=null&&p!==this._buf.getCurrentLine()&&(i=!0);}i&&this.indent();let a={addNewlines:n.addNewlines,nextNodeStartLine:0},o=n.separator?n.separator.bind(this):null,u=t.length;for(let p=0;p<u;p++){let h=t[p];if(h&&(n.statement&&this._printNewline(p===0,a),this.print(h,r,void 0,n.trailingCommentsLineOffset||0),n.iterator==null||n.iterator(h,p),p<u-1&&(o==null||o()),n.statement)){var l;if((l=h.trailingComments)!=null&&l.length||(this._lastCommentLine=0),p+1===u)this.newline(1);else {var c;let f=t[p+1];a.nextNodeStartLine=((c=f.loc)==null?void 0:c.start.line)||0,this._printNewline(!0,a);}}}i&&this.dedent();}printAndIndentOnComments(t,r){let n=t.leadingComments&&t.leadingComments.length>0;n&&this.indent(),this.print(t,r),n&&this.dedent();}printBlock(t){let r=t.body;r.type!=="EmptyStatement"&&this.space(),this.print(r,t);}_printTrailingComments(t,r,n){let{innerComments:i,trailingComments:s}=t;i!=null&&i.length&&this._printComments(2,i,t,r,n),s!=null&&s.length&&this._printComments(2,s,t,r,n);}_printLeadingComments(t,r){let n=t.leadingComments;n!=null&&n.length&&this._printComments(0,n,t,r);}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0;}printInnerComments(){let t=this._printStack[this._printStack.length-1],r=t.innerComments;if(!(r!=null&&r.length))return;let n=this.endsWith(32),i=this._indentInnerComments,s=this._printedComments.size;i&&this.indent(),this._printComments(1,r,t),n&&s!==this._printedComments.size&&this.space(),i&&this.dedent();}noIndentInnerCommentsHere(){this._indentInnerComments=!1;}printSequence(t,r,n={}){n.statement=!0,(n.indent)!=null||(n.indent=!1),this.printJoin(t,r,n);}printList(t,r,n={}){n.separator==null&&(n.separator=e4t),this.printJoin(t,r,n);}_printNewline(t,r){let n=this.format;if(n.retainLines||n.compact)return;if(n.concise){this.space();return}if(!t)return;let i=r.nextNodeStartLine,s=this._lastCommentLine;if(i>0&&s>0){let a=i-s;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1);}_shouldPrintComment(t){return t.ignore||this._printedComments.has(t)?0:this._noLineTerminator&&QUt.test(t.value)?2:(this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0)}_printComment(t,r){let n=this._noLineTerminator,i=t.type==="CommentBlock",s=i&&r!==1&&!this._noLineTerminator;s&&this._buf.hasContent()&&r!==2&&this.newline(1);let a=this.getLastChar();a!==91&&a!==123&&this.space();let o;if(i){let{_parenPushNewlineState:l}=this;if((l==null?void 0:l.printed)===!1&&zAe.test(t.value)&&(this.tokenChar(40),this.indent(),l.printed=!0),o=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var u;let c=(u=t.loc)==null?void 0:u.start.column;if(c){let p=new RegExp("\\n\\s{1,"+c+"}","g");o=o.replace(p,`
`);}if(this.format.concise)o=o.replace(/\n(?!$)/g,`
`);else {let p=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(p+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
${" ".repeat(p)}`);}}}else n?o=`/*${t.value}*/`:o=`//${t.value}`;this.endsWith(47)&&this._space(),this.source("start",t.loc),this._append(o,i),!i&&!n&&this.newline(1,!0),s&&r!==3&&this.newline(1);}_printComments(t,r,n,i,s=0){let a=n.loc,o=r.length,u=!!a,l=u?a.start.line:0,c=u?a.end.line:0,p=0,h=0,f=this._noLineTerminator?function(){}:this.newline.bind(this);for(let d=0;d<o;d++){let m=r[d],y=this._shouldPrintComment(m);if(y===2){u=!1;break}if(u&&m.loc&&y===1){let g=m.loc.start.line,v=m.loc.end.line;if(t===0){let E=0;d===0?this._buf.hasContent()&&(m.type==="CommentLine"||g!==v)&&(E=h=1):E=g-p,p=v,f(E),this._printComment(m,1),d+1===o&&(f(Math.max(l-p,h)),p=l);}else if(t===1){let E=g-(d===0?l:p);p=v,f(E),this._printComment(m,1),d+1===o&&(f(Math.min(1,c-p)),p=c);}else {let E=g-(d===0?c-s:p);p=v,f(E),this._printComment(m,1);}}else {if(u=!1,y!==1)continue;if(o===1){let g=m.loc?m.loc.start.line===m.loc.end.line:!zAe.test(m.value),v=g&&!KUt(n)&&!YUt(i)&&!WUt(i)&&!XUt(i);t===0?this._printComment(m,v&&n.type!=="ObjectExpression"||g&&$Ut(i,{body:n})?1:0):v&&t===2?this._printComment(m,1):this._printComment(m,0);}else t===1&&!(n.type==="ObjectExpression"&&n.properties.length>1)&&n.type!=="ClassBody"&&n.type!=="TSInterfaceBody"?this._printComment(m,d===0?2:d===o-1?3:0):this._printComment(m,0);}}t===2&&u&&p&&(this._lastCommentLine=p);}};Object.assign(zb.prototype,GUt);zb.prototype.Noop=function(){};pI.default=zb;function e4t(){this.tokenChar(44),this.space();}});var Jb=chunkTKGT252T_js.c(fI=>{Object.defineProperty(fI,"__esModule",{value:!0});fI.default=t4t;var QAe=lAe(),ZAe=JAe();function ePe(e,t){var r;let n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),recordAndTupleSyntaxType:(r=t.recordAndTupleSyntaxType)!=null?r:"hash",topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};n.decoratorsBeforeExport=t.decoratorsBeforeExport,n.jsescOption.json=t.jsonCompatibleStrings,n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)):n.shouldPrintComment=n.shouldPrintComment||(o=>n.comments||o.includes("@license")||o.includes("@preserve")),n.compact==="auto"&&(n.compact=typeof e=="string"&&e.length>5e5,n.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),n.compact&&(n.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:i,auxiliaryCommentAfter:s,shouldPrintComment:a}=n;return i&&!a(i)&&(n.auxiliaryCommentBefore=void 0),s&&!a(s)&&(n.auxiliaryCommentAfter=void 0),n}fI.CodeGenerator=class{constructor(t,r={},n){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=ePe(n,r),this._map=r.sourceMaps?new QAe.default(r,n):null;}generate(){return new ZAe.default(this._format,this._map).generate(this._ast)}};function t4t(e,t={},r){let n=ePe(r,t),i=t.sourceMaps?new QAe.default(t,r):null;return new ZAe.default(n,i).generate(e)}});var nn=chunkTKGT252T_js.c(Qb=>{Object.defineProperty(Qb,"__esModule",{value:!0});Qb.maybeSetModuleExports=void 0;var r4t=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),n4t=r4t.__importDefault(Gn());function i4t(e){var t=e.use(n4t.default),r=t.Type,n=t.builtInTypes,i=n.number;function s(l){return r.from(function(c){return i.check(c)&&c>=l},i+" >= "+l)}var a={null:function(){return null},emptyArray:function(){return []},false:function(){return !1},true:function(){return !0},undefined:function(){},"use strict":function(){return "use strict"}},o=r.or(n.string,n.number,n.boolean,n.null,n.undefined),u=r.from(function(l){if(l===null)return !0;var c=typeof l;return !(c==="object"||c==="function")},o.toString());return {geq:s,defaults:a,isPrimitive:u}}Qb.default=i4t;function s4t(e){try{var t=e(),r=t.exports,n=r.default;}catch{return}n&&n!==r&&typeof r=="object"&&(Object.assign(n,r,{default:n}),r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0}),t.exports=n);}Qb.maybeSetModuleExports=s4t;});var Gn=chunkTKGT252T_js.c((tv,aPe)=>{Object.defineProperty(tv,"__esModule",{value:!0});tv.Def=void 0;var xS=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),a4t=nn(),sPe=Object.prototype,dI=sPe.toString,Po=sPe.hasOwnProperty,ev=function(){function e(){}return e.prototype.assert=function(t,r){if(!this.check(t,r)){var n=s5(t);throw new Error(n+" does not match type "+this)}return !0},e.prototype.arrayOf=function(){var t=this;return new i5(t)},e}(),i5=function(e){xS.__extends(t,e);function t(r){var n=e.call(this)||this;return n.elemType=r,n.kind="ArrayType",n}return t.prototype.toString=function(){return "["+this.elemType+"]"},t.prototype.check=function(r,n){var i=this;return Array.isArray(r)&&r.every(function(s){return i.elemType.check(s,n)})},t}(ev),tPe=function(e){xS.__extends(t,e);function t(r){var n=e.call(this)||this;return n.value=r,n.kind="IdentityType",n}return t.prototype.toString=function(){return String(this.value)},t.prototype.check=function(r,n){var i=r===this.value;return !i&&typeof n=="function"&&n(this,r),i},t}(ev),rPe=function(e){xS.__extends(t,e);function t(r){var n=e.call(this)||this;return n.fields=r,n.kind="ObjectType",n}return t.prototype.toString=function(){return "{ "+this.fields.join(", ")+" }"},t.prototype.check=function(r,n){return dI.call(r)===dI.call({})&&this.fields.every(function(i){return i.type.check(r[i.name],n)})},t}(ev),nPe=function(e){xS.__extends(t,e);function t(r){var n=e.call(this)||this;return n.types=r,n.kind="OrType",n}return t.prototype.toString=function(){return this.types.join(" | ")},t.prototype.check=function(r,n){return this.types.some(function(i){return i.check(r,!!n)})?!0:(typeof n=="function"&&n(this,r),!1)},t}(ev),Zb=function(e){xS.__extends(t,e);function t(r,n){var i=e.call(this)||this;return i.name=r,i.predicate=n,i.kind="PredicateType",i}return t.prototype.toString=function(){return this.name},t.prototype.check=function(r,n){var i=this.predicate(r,n);return !i&&typeof n=="function"&&n(this,r),i},t}(ev),hI=function(){function e(t,r){this.type=t,this.typeName=r,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[];}return e.prototype.isSupertypeOf=function(t){if(t instanceof e){if(this.finalized!==!0||t.finalized!==!0)throw new Error("");return Po.call(t.allSupertypes,this.typeName)}else throw new Error(t+" is not a Def")},e.prototype.checkAllFields=function(t,r){var n=this.allFields;if(this.finalized!==!0)throw new Error(""+this.typeName);function i(s){var a=n[s],o=a.type,u=a.getValue(t);return o.check(u,r)}return t!==null&&typeof t=="object"&&Object.keys(n).every(i)},e.prototype.bases=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.baseNames;if(this.finalized){if(t.length!==n.length)throw new Error("");for(var i=0;i<t.length;i++)if(t[i]!==n[i])throw new Error("");return this}return t.forEach(function(s){n.indexOf(s)<0&&n.push(s);}),this},e}();tv.Def=hI;var iPe=function(){function e(t,r,n,i){this.name=t,this.type=r,this.defaultFn=n,this.hidden=!!i;}return e.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},e.prototype.getValue=function(t){var r=t[this.name];return typeof r<"u"||typeof this.defaultFn=="function"&&(r=this.defaultFn.call(t)),r},e}();function s5(e){return Array.isArray(e)?"["+e.map(s5).join(", ")+"]":e&&typeof e=="object"?"{ "+Object.keys(e).map(function(t){return t+": "+e[t]}).join(", ")+" }":JSON.stringify(e)}function o4t(e){var t={or:function(){for(var ue=[],fe=0;fe<arguments.length;fe++)ue[fe]=arguments[fe];return new nPe(ue.map(function(Se){return t.from(Se)}))},from:function(ue,fe){if(ue instanceof i5||ue instanceof tPe||ue instanceof rPe||ue instanceof nPe||ue instanceof Zb)return ue;if(ue instanceof hI)return ue.type;if(o.check(ue)){if(ue.length!==1)throw new Error("only one element type is permitted for typed arrays");return new i5(t.from(ue[0]))}if(u.check(ue))return new rPe(Object.keys(ue).map(function(je){return new iPe(je,t.from(ue[je],je))}));if(typeof ue=="function"){var Se=r.indexOf(ue);if(Se>=0)return n[Se];if(typeof fe!="string")throw new Error("missing name");return new Zb(fe,ue)}return new tPe(ue)},def:function(ue){return Po.call(g,ue)?g[ue]:g[ue]=new E(ue)},hasDef:function(ue){return Po.call(g,ue)}},r=[],n=[];function i(ue,fe){var Se=dI.call(fe),je=new Zb(ue,function(Ct){return dI.call(Ct)===Se});return fe&&typeof fe.constructor=="function"&&(r.push(fe.constructor),n.push(je)),je}var s=i("string","truthy"),a=i("function",function(){}),o=i("array",[]),u=i("object",{}),l=i("RegExp",/./),c=i("Date",new Date),p=i("number",3),h=i("boolean",!0),f=i("null",null),d=i("undefined",void 0),m=typeof BigInt=="function"?i("BigInt",BigInt(1234)):new Zb("BigInt",function(){return !1}),y={string:s,function:a,array:o,object:u,RegExp:l,Date:c,number:p,boolean:h,null:f,undefined:d,BigInt:m},g=Object.create(null);function v(ue){if(ue&&typeof ue=="object"){var fe=ue.type;if(typeof fe=="string"&&Po.call(g,fe)){var Se=g[fe];if(Se.finalized)return Se}}return null}var E=function(ue){xS.__extends(fe,ue);function fe(Se){var je=ue.call(this,new Zb(Se,function(Ct,Nt){return je.check(Ct,Nt)}),Se)||this;return je}return fe.prototype.check=function(Se,je){if(this.finalized!==!0)throw new Error("prematurely checking unfinalized type "+this.typeName);if(Se===null||typeof Se!="object")return !1;var Ct=v(Se);return Ct?je&&Ct===this?this.checkAllFields(Se,je):this.isSupertypeOf(Ct)?je?Ct.checkAllFields(Se,je)&&this.checkAllFields(Se,!1):!0:!1:this.typeName==="SourceLocation"||this.typeName==="Position"?this.checkAllFields(Se,je):!1},fe.prototype.build=function(){for(var Se=this,je=[],Ct=0;Ct<arguments.length;Ct++)je[Ct]=arguments[Ct];if(this.buildParams=je,this.buildable)return this;this.field("type",String,function(){return Se.typeName}),this.buildable=!0;var Nt=function(xr,Ar,di,Ai){if(!Po.call(xr,Ar)){var Ni=Se.allFields;if(!Po.call(Ni,Ar))throw new Error(""+Ar);var Ri=Ni[Ar],Iu=Ri.type,Ho;if(Ai)Ho=di;else if(Ri.defaultFn)Ho=Ri.defaultFn.call(xr);else {var Ou="no value or default function given for field "+JSON.stringify(Ar)+" of "+Se.typeName+"("+Se.buildParams.map(function(Go){return Ni[Go]}).join(", ")+")";throw new Error(Ou)}if(!Iu.check(Ho))throw new Error(s5(Ho)+" does not match field "+Ri+" of type "+Se.typeName);xr[Ar]=Ho;}},fn=function(){for(var xr=[],Ar=0;Ar<arguments.length;Ar++)xr[Ar]=arguments[Ar];var di=xr.length;if(!Se.finalized)throw new Error("attempting to instantiate unfinalized type "+Se.typeName);var Ai=Object.create(A);if(Se.buildParams.forEach(function(Ni,Ri){Ri<di?Nt(Ai,Ni,xr[Ri],!0):Nt(Ai,Ni,null,!1);}),Object.keys(Se.allFields).forEach(function(Ni){Nt(Ai,Ni,null,!1);}),Ai.type!==Se.typeName)throw new Error("");return Ai};return fn.from=function(xr){if(!Se.finalized)throw new Error("attempting to instantiate unfinalized type "+Se.typeName);var Ar=Object.create(A);if(Object.keys(Se.allFields).forEach(function(di){Po.call(xr,di)?Nt(Ar,di,xr[di],!0):Nt(Ar,di,null,!1);}),Ar.type!==Se.typeName)throw new Error("");return Ar},Object.defineProperty(b,P(this.typeName),{enumerable:!0,value:fn}),this},fe.prototype.field=function(Se,je,Ct,Nt){return this.finalized?(console.error("Ignoring attempt to redefine field "+JSON.stringify(Se)+" of finalized type "+JSON.stringify(this.typeName)),this):(this.ownFields[Se]=new iPe(Se,t.from(je),Ct,Nt),this)},fe.prototype.finalize=function(){var Se=this;if(!this.finalized){var je=this.allFields,Ct=this.allSupertypes;this.baseNames.forEach(function(fn){var xr=g[fn];if(xr instanceof hI)xr.finalize(),Me(je,xr.allFields),Me(Ct,xr.allSupertypes);else {var Ar="unknown supertype name "+JSON.stringify(fn)+" for subtype "+JSON.stringify(Se.typeName);throw new Error(Ar)}}),Me(je,this.ownFields),Ct[this.typeName]=this,this.fieldNames.length=0;for(var Nt in je)Po.call(je,Nt)&&!je[Nt].hidden&&this.fieldNames.push(Nt);Object.defineProperty(X,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,Te(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0&&Ee(this.typeName);}},fe}(hI);function S(ue){if(!Po.call(g,ue))throw new Error("");var fe=g[ue];if(fe.finalized!==!0)throw new Error("");return fe.supertypeList.slice(1)}function x(ue){for(var fe={},Se=Object.keys(g),je=Se.length,Ct=0;Ct<je;++Ct){var Nt=Se[Ct],fn=g[Nt];if(fn.finalized!==!0)throw new Error(""+Nt);for(var xr=0;xr<fn.supertypeList.length;++xr){var Ar=fn.supertypeList[xr];if(Po.call(ue,Ar)){fe[Nt]=Ar;break}}}return fe}var b=Object.create(null),A={};function D(ue,fe){var Se=A[ue];return d.check(fe)?delete A[ue]:(a.assert(fe),Object.defineProperty(A,ue,{enumerable:!0,configurable:!0,value:fe})),Se}function P(ue){return ue.replace(/^[A-Z]+/,function(fe){var Se=fe.length;switch(Se){case 0:return "";case 1:return fe.toLowerCase();default:return fe.slice(0,Se-1).toLowerCase()+fe.charAt(Se-1)}})}function V(ue){return ue=P(ue),ue.replace(/(Expression)?$/,"Statement")}var X={};function oe(ue){var fe=v(ue);if(fe)return fe.fieldNames.slice(0);if("type"in ue)throw new Error("did not recognize object of type "+JSON.stringify(ue.type));return Object.keys(ue)}function le(ue,fe){var Se=v(ue);if(Se){var je=Se.allFields[fe];if(je)return je.getValue(ue)}return ue&&ue[fe]}function Be(ue,fe,Se){oe(ue).forEach(function(je){fe.call(this,je,le(ue,je));},Se);}function be(ue,fe,Se){return oe(ue).some(function(je){return fe.call(this,je,le(ue,je))},Se)}function Ee(ue){var fe=V(ue);if(!b[fe]){var Se=b[P(ue)];if(Se){var je=function(){for(var Ct=[],Nt=0;Nt<arguments.length;Nt++)Ct[Nt]=arguments[Nt];return b.expressionStatement(Se.apply(b,Ct))};je.from=function(){for(var Ct=[],Nt=0;Nt<arguments.length;Nt++)Ct[Nt]=arguments[Nt];return b.expressionStatement(Se.from.apply(b,Ct))},b[fe]=je;}}}function Te(ue,fe){fe.length=0,fe.push(ue);for(var Se=Object.create(null),je=0;je<fe.length;++je){ue=fe[je];var Ct=g[ue];if(Ct.finalized!==!0)throw new Error("");Po.call(Se,ue)&&delete fe[Se[ue]],Se[ue]=je,fe.push.apply(fe,Ct.baseNames);}for(var Nt=0,fn=Nt,xr=fe.length;fn<xr;++fn)Po.call(fe,fn)&&(fe[Nt++]=fe[fn]);fe.length=Nt;}function Me(ue,fe){return Object.keys(fe).forEach(function(Se){ue[Se]=fe[Se];}),ue}function At(){Object.keys(g).forEach(function(ue){g[ue].finalize();});}return {Type:t,builtInTypes:y,getSupertypeNames:S,computeSupertypeLookupTable:x,builders:b,defineMethod:D,getBuilderName:P,getStatementBuilderName:V,namedTypes:X,getFieldNames:oe,getFieldValue:le,eachField:Be,someField:be,finalize:At}}tv.default=o4t;(0, a4t.maybeSetModuleExports)(function(){return aPe});});var o5=chunkTKGT252T_js.c((a5,oPe)=>{Object.defineProperty(a5,"__esModule",{value:!0});var u4t=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),l4t=nn(),c4t=u4t.__importDefault(Gn()),p4t=Object.prototype,mI=p4t.hasOwnProperty;function f4t(e){var t=e.use(c4t.default),r=t.builtInTypes.array,n=t.builtInTypes.number,i=function p(h,f,d){if(!(this instanceof p))throw new Error("Path constructor cannot be invoked without 'new'");if(f){if(!(f instanceof p))throw new Error("")}else f=null,d=null;this.value=h,this.parentPath=f,this.name=d,this.__childCache=null;},s=i.prototype;function a(p){return p.__childCache||(p.__childCache=Object.create(null))}function o(p,h){var f=a(p),d=p.getValueProperty(h),m=f[h];return (!mI.call(f,h)||m.value!==d)&&(m=f[h]=new p.constructor(d,p,h)),m}s.getValueProperty=function(h){return this.value[h]},s.get=function(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];for(var d=this,m=h.length,y=0;y<m;++y)d=o(d,h[y]);return d},s.each=function(h,f){for(var d=[],m=this.value.length,y=0,y=0;y<m;++y)mI.call(this.value,y)&&(d[y]=this.get(y));for(f=f||this,y=0;y<m;++y)mI.call(d,y)&&h.call(f,d[y]);},s.map=function(h,f){var d=[];return this.each(function(m){d.push(h.call(this,m));},f),d},s.filter=function(h,f){var d=[];return this.each(function(m){h.call(this,m)&&d.push(m);},f),d};function u(){}function l(p,h,f,d){if(r.assert(p.value),h===0)return u;var m=p.value.length;if(m<1)return u;var y=arguments.length;y===2?(f=0,d=m):y===3?(f=Math.max(f,0),d=m):(f=Math.max(f,0),d=Math.min(d,m)),n.assert(f),n.assert(d);for(var g=Object.create(null),v=a(p),E=f;E<d;++E)if(mI.call(p.value,E)){var S=p.get(E);if(S.name!==E)throw new Error("");var x=E+h;S.name=x,g[x]=S,delete v[E];}return delete v.length,function(){for(var b in g){var A=g[b];if(A.name!==+b)throw new Error("");v[b]=A,p.value[b]=A.value;}}}s.shift=function(){var h=l(this,-1),f=this.value.shift();return h(),f},s.unshift=function(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];var d=l(this,h.length),m=this.value.unshift.apply(this.value,h);return d(),m},s.push=function(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];return r.assert(this.value),delete a(this).length,this.value.push.apply(this.value,h)},s.pop=function(){r.assert(this.value);var h=a(this);return delete h[this.value.length-1],delete h.length,this.value.pop()},s.insertAt=function(h){var f=arguments.length,d=l(this,f-1,h);if(d===u&&f<=1)return this;h=Math.max(h,0);for(var m=1;m<f;++m)this.value[h+m-1]=arguments[m];return d(),this},s.insertBefore=function(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];for(var d=this.parentPath,m=h.length,y=[this.name],g=0;g<m;++g)y.push(h[g]);return d.insertAt.apply(d,y)},s.insertAfter=function(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];for(var d=this.parentPath,m=h.length,y=[this.name+1],g=0;g<m;++g)y.push(h[g]);return d.insertAt.apply(d,y)};function c(p){if(!(p instanceof i))throw new Error("");var h=p.parentPath;if(!h)return p;var f=h.value,d=a(h);if(f[p.name]===p.value)d[p.name]=p;else if(r.check(f)){var m=f.indexOf(p.value);m>=0&&(d[p.name=m]=p);}else f[p.name]=p.value,d[p.name]=p;if(f[p.name]!==p.value)throw new Error("");if(p.parentPath.get(p.name)!==p)throw new Error("");return p}return s.replace=function(h){var f=[],d=this.parentPath.value,m=a(this.parentPath),y=arguments.length;if(c(this),r.check(d)){for(var g=d.length,v=l(this.parentPath,y-1,this.name+1),E=[this.name,1],S=0;S<y;++S)E.push(arguments[S]);var x=d.splice.apply(d,E);if(x[0]!==this.value)throw new Error("");if(d.length!==g-1+y)throw new Error("");if(v(),y===0)delete this.value,delete m[this.name],this.__childCache=null;else {if(d[this.name]!==h)throw new Error("");for(this.value!==h&&(this.value=h,this.__childCache=null),S=0;S<y;++S)f.push(this.parentPath.get(this.name+S));if(f[0]!==this)throw new Error("")}}else if(y===1)this.value!==h&&(this.__childCache=null),this.value=d[this.name]=h,f.push(this);else if(y===0)delete d[this.name],delete this.value,this.__childCache=null;else throw new Error("Could not replace path");return f},i}a5.default=f4t;(0, l4t.maybeSetModuleExports)(function(){return oPe});});var lPe=chunkTKGT252T_js.c((u5,uPe)=>{Object.defineProperty(u5,"__esModule",{value:!0});var h4t=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),d4t=nn(),m4t=h4t.__importDefault(Gn()),AS=Object.prototype.hasOwnProperty;function y4t(e){var t=e.use(m4t.default),r=t.Type,n=t.namedTypes,i=n.Node,s=n.Expression,a=t.builtInTypes.array,o=t.builders,u=function S(x,b){if(!(this instanceof S))throw new Error("Scope constructor cannot be invoked without 'new'");c.check(x.value)||l.assert(x.value);var A;if(b){if(!(b instanceof S))throw new Error("");A=b.depth+1;}else b=null,A=0;Object.defineProperties(this,{path:{value:x},node:{value:x.value},isGlobal:{value:!b,enumerable:!0},depth:{value:A},parent:{value:b},bindings:{value:{}},types:{value:{}}});},l=r.or(n.Program,n.Function,n.CatchClause),c=r.or(n.Function,n.ClassDeclaration,n.ClassExpression,n.InterfaceDeclaration,n.TSInterfaceDeclaration,n.TypeAlias,n.TSTypeAliasDeclaration),p=r.or(n.TypeParameter,n.TSTypeParameter);u.isEstablishedBy=function(S){return l.check(S)||c.check(S)};var h=u.prototype;h.didScan=!1,h.declares=function(S){return this.scan(),AS.call(this.bindings,S)},h.declaresType=function(S){return this.scan(),AS.call(this.types,S)},h.declareTemporary=function(S){if(S){if(!/^[a-z$_]/i.test(S))throw new Error("")}else S="t$";S+=this.depth.toString(36)+"$",this.scan();for(var x=0;this.declares(S+x);)++x;var b=S+x;return this.bindings[b]=t.builders.identifier(b)},h.injectTemporary=function(S,x){S||(S=this.declareTemporary());var b=this.path.get("body");return n.BlockStatement.check(b.value)&&(b=b.get("body")),b.unshift(o.variableDeclaration("var",[o.variableDeclarator(S,x||null)])),S},h.scan=function(S){if(S||!this.didScan){for(var x in this.bindings)delete this.bindings[x];for(var x in this.types)delete this.types[x];f(this.path,this.bindings,this.types),this.didScan=!0;}},h.getBindings=function(){return this.scan(),this.bindings},h.getTypes=function(){return this.scan(),this.types};function f(S,x,b){var A=S.value;if(c.check(A)){var D=S.get("typeParameters","params");a.check(D.value)&&D.each(function(P){E(P,b);});}l.check(A)&&(n.CatchClause.check(A)?g(S.get("param"),x):d(S,x,b));}function d(S,x,b){var A=S.value;S.parent&&n.FunctionExpression.check(S.parent.node)&&S.parent.node.id&&g(S.parent.get("id"),x),A&&(a.check(A)?S.each(function(D){y(D,x,b);}):n.Function.check(A)?(S.get("params").each(function(D){g(D,x);}),y(S.get("body"),x,b),d(S.get("typeParameters"),x,b)):n.TypeAlias&&n.TypeAlias.check(A)||n.InterfaceDeclaration&&n.InterfaceDeclaration.check(A)||n.TSTypeAliasDeclaration&&n.TSTypeAliasDeclaration.check(A)||n.TSInterfaceDeclaration&&n.TSInterfaceDeclaration.check(A)?v(S.get("id"),b):n.VariableDeclarator.check(A)?(g(S.get("id"),x),y(S.get("init"),x,b)):A.type==="ImportSpecifier"||A.type==="ImportNamespaceSpecifier"||A.type==="ImportDefaultSpecifier"?g(S.get(A.local?"local":A.name?"name":"id"),x):i.check(A)&&!s.check(A)&&t.eachField(A,function(D,P){var V=S.get(D);if(!m(V,P))throw new Error("");y(V,x,b);}));}function m(S,x){return !!(S.value===x||Array.isArray(S.value)&&S.value.length===0&&Array.isArray(x)&&x.length===0)}function y(S,x,b){var A=S.value;if(!(!A||s.check(A)))if(n.FunctionDeclaration.check(A)&&A.id!==null)g(S.get("id"),x);else if(n.ClassDeclaration&&n.ClassDeclaration.check(A)&&A.id!==null)g(S.get("id"),x),d(S.get("typeParameters"),x,b);else if(n.InterfaceDeclaration&&n.InterfaceDeclaration.check(A)||n.TSInterfaceDeclaration&&n.TSInterfaceDeclaration.check(A))v(S.get("id"),b);else if(l.check(A)){if(n.CatchClause.check(A)&&n.Identifier.check(A.param)){var D=A.param.name,P=AS.call(x,D);d(S.get("body"),x,b),P||delete x[D];}}else d(S,x,b);}function g(S,x){var b=S.value;n.Pattern.assert(b),n.Identifier.check(b)?AS.call(x,b.name)?x[b.name].push(S):x[b.name]=[S]:n.AssignmentPattern&&n.AssignmentPattern.check(b)?g(S.get("left"),x):n.ObjectPattern&&n.ObjectPattern.check(b)?S.get("properties").each(function(A){var D=A.value;n.Pattern.check(D)?g(A,x):n.Property.check(D)||n.ObjectProperty&&n.ObjectProperty.check(D)?g(A.get("value"),x):n.SpreadProperty&&n.SpreadProperty.check(D)&&g(A.get("argument"),x);}):n.ArrayPattern&&n.ArrayPattern.check(b)?S.get("elements").each(function(A){var D=A.value;n.Pattern.check(D)?g(A,x):n.SpreadElement&&n.SpreadElement.check(D)&&g(A.get("argument"),x);}):n.PropertyPattern&&n.PropertyPattern.check(b)?g(S.get("pattern"),x):(n.SpreadElementPattern&&n.SpreadElementPattern.check(b)||n.RestElement&&n.RestElement.check(b)||n.SpreadPropertyPattern&&n.SpreadPropertyPattern.check(b))&&g(S.get("argument"),x);}function v(S,x){var b=S.value;n.Pattern.assert(b),n.Identifier.check(b)&&(AS.call(x,b.name)?x[b.name].push(S):x[b.name]=[S]);}function E(S,x){var b=S.value;p.assert(b),AS.call(x,b.name)?x[b.name].push(S):x[b.name]=[S];}return h.lookup=function(S){for(var x=this;x&&!x.declares(S);x=x.parent);return x},h.lookupType=function(S){for(var x=this;x&&!x.declaresType(S);x=x.parent);return x},h.getGlobalScope=function(){for(var S=this;!S.isGlobal;)S=S.parent;return S},u}u5.default=y4t;(0, d4t.maybeSetModuleExports)(function(){return uPe});});var p5=chunkTKGT252T_js.c((c5,cPe)=>{Object.defineProperty(c5,"__esModule",{value:!0});var l5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),g4t=l5.__importDefault(Gn()),S4t=l5.__importDefault(o5()),T4t=l5.__importDefault(lPe()),E4t=nn();function b4t(e){var t=e.use(g4t.default),r=t.namedTypes,n=t.builders,i=t.builtInTypes.number,s=t.builtInTypes.array,a=e.use(S4t.default),o=e.use(T4t.default),u=function g(v,E,S){if(!(this instanceof g))throw new Error("NodePath constructor cannot be invoked without 'new'");a.call(this,v,E,S);},l=u.prototype=Object.create(a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(l,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),l.replace=function(){return delete this.node,delete this.parent,delete this.scope,a.prototype.replace.apply(this,arguments)},l.prune=function(){var g=this.parent;return this.replace(),m(g)},l._computeNode=function(){var g=this.value;if(r.Node.check(g))return g;var v=this.parentPath;return v&&v.node||null},l._computeParent=function(){var g=this.value,v=this.parentPath;if(!r.Node.check(g)){for(;v&&!r.Node.check(v.value);)v=v.parentPath;v&&(v=v.parentPath);}for(;v&&!r.Node.check(v.value);)v=v.parentPath;return v||null},l._computeScope=function(){var g=this.value,v=this.parentPath,E=v&&v.scope;return r.Node.check(g)&&o.isEstablishedBy(g)&&(E=new o(this,E)),E||null},l.getValueProperty=function(g){return t.getFieldValue(this.value,g)},l.needsParens=function(g){var v=this.parentPath;if(!v)return !1;var E=this.value;if(!r.Expression.check(E)||E.type==="Identifier")return !1;for(;!r.Node.check(v.value);)if(v=v.parentPath,!v)return !1;var S=v.value;switch(E.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return S.type==="MemberExpression"&&this.name==="object"&&S.object===E;case"BinaryExpression":case"LogicalExpression":switch(S.type){case"CallExpression":return this.name==="callee"&&S.callee===E;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return !0;case"MemberExpression":return this.name==="object"&&S.object===E;case"BinaryExpression":case"LogicalExpression":{var x=E,b=S.operator,A=h[b],D=x.operator,P=h[D];if(A>P)return !0;if(A===P&&this.name==="right"){if(S.right!==x)throw new Error("Nodes must be equal");return !0}}default:return !1}case"SequenceExpression":switch(S.type){case"ForStatement":return !1;case"ExpressionStatement":return this.name!=="expression";default:return !0}case"YieldExpression":switch(S.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return !0;default:return !1}case"Literal":return S.type==="MemberExpression"&&i.check(E.value)&&this.name==="object"&&S.object===E;case"AssignmentExpression":case"ConditionalExpression":switch(S.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return !0;case"CallExpression":return this.name==="callee"&&S.callee===E;case"ConditionalExpression":return this.name==="test"&&S.test===E;case"MemberExpression":return this.name==="object"&&S.object===E;default:return !1}default:if(S.type==="NewExpression"&&this.name==="callee"&&S.callee===E)return f(E)}return !!(g!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function c(g){return r.BinaryExpression.check(g)||r.LogicalExpression.check(g)}var h={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(g,v){g.forEach(function(E){h[E]=v;});});function f(g){return r.CallExpression.check(g)?!0:s.check(g)?g.some(f):r.Node.check(g)?t.someField(g,function(v,E){return f(E)}):!1}l.canBeFirstInStatement=function(){var g=this.node;return !r.FunctionExpression.check(g)&&!r.ObjectExpression.check(g)},l.firstInStatement=function(){return d(this)};function d(g){for(var v,E;g.parent;g=g.parent){if(v=g.node,E=g.parent.node,r.BlockStatement.check(E)&&g.parent.name==="body"&&g.name===0){if(E.body[0]!==v)throw new Error("Nodes must be equal");return !0}if(r.ExpressionStatement.check(E)&&g.name==="expression"){if(E.expression!==v)throw new Error("Nodes must be equal");return !0}if(r.SequenceExpression.check(E)&&g.parent.name==="expressions"&&g.name===0){if(E.expressions[0]!==v)throw new Error("Nodes must be equal");continue}if(r.CallExpression.check(E)&&g.name==="callee"){if(E.callee!==v)throw new Error("Nodes must be equal");continue}if(r.MemberExpression.check(E)&&g.name==="object"){if(E.object!==v)throw new Error("Nodes must be equal");continue}if(r.ConditionalExpression.check(E)&&g.name==="test"){if(E.test!==v)throw new Error("Nodes must be equal");continue}if(c(E)&&g.name==="left"){if(E.left!==v)throw new Error("Nodes must be equal");continue}if(r.UnaryExpression.check(E)&&!E.prefix&&g.name==="argument"){if(E.argument!==v)throw new Error("Nodes must be equal");continue}return !1}return !0}function m(g){if(r.VariableDeclaration.check(g.node)){var v=g.get("declarations").value;if(!v||v.length===0)return g.prune()}else if(r.ExpressionStatement.check(g.node)){if(!g.get("expression").value)return g.prune()}else r.IfStatement.check(g.node)&&y(g);return g}function y(g){var v=g.get("test").value,E=g.get("alternate").value,S=g.get("consequent").value;if(!S&&!E){var x=n.expressionStatement(v);g.replace(x);}else if(!S&&E){var b=n.unaryExpression("!",v,!0);r.UnaryExpression.check(v)&&v.operator==="!"&&(b=v.argument),g.get("test").replace(b),g.get("consequent").replace(E),g.get("alternate").replace();}}return u}c5.default=b4t;(0, E4t.maybeSetModuleExports)(function(){return cPe});});var hPe=chunkTKGT252T_js.c((f5,fPe)=>{Object.defineProperty(f5,"__esModule",{value:!0});var pPe=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),v4t=pPe.__importDefault(Gn()),_4t=pPe.__importDefault(p5()),x4t=nn(),yI=Object.prototype.hasOwnProperty;function A4t(e){var t=e.use(v4t.default),r=e.use(_4t.default),n=t.builtInTypes.array,i=t.builtInTypes.object,s=t.builtInTypes.function,a,o=function d(){if(!(this instanceof d))throw new Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=u(this),this._shouldVisitComments=yI.call(this._methodNameTable,"Block")||yI.call(this._methodNameTable,"Line"),this.Context=h(this),this._visiting=!1,this._changeReported=!1;};function u(d){var m=Object.create(null);for(var y in d)/^visit[A-Z]/.test(y)&&(m[y.slice(5)]=!0);for(var g=t.computeSupertypeLookupTable(m),v=Object.create(null),E=Object.keys(g),S=E.length,x=0;x<S;++x){var b=E[x];y="visit"+g[b],s.check(d[y])&&(v[b]=y);}return v}o.fromMethodsObject=function(m){if(m instanceof o)return m;if(!i.check(m))return new o;var y=function v(){if(!(this instanceof v))throw new Error("Visitor constructor cannot be invoked without 'new'");o.call(this);},g=y.prototype=Object.create(c);return g.constructor=y,l(g,m),l(y,o),s.assert(y.fromMethodsObject),s.assert(y.visit),new y};function l(d,m){for(var y in m)yI.call(m,y)&&(d[y]=m[y]);return d}o.visit=function(m,y){return o.fromMethodsObject(y).visit(m)};var c=o.prototype;c.visit=function(){if(this._visiting)throw new Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;for(var d=arguments.length,m=new Array(d),y=0;y<d;++y)m[y]=arguments[y];m[0]instanceof r||(m[0]=new r({root:m[0]}).get("root")),this.reset.apply(this,m);var g;try{var v=this.visitWithoutReset(m[0]);g=!0;}finally{if(this._visiting=!1,!g&&this._abortRequested)return m[0].value}return v},c.AbortRequest=function(){},c.abort=function(){var d=this;d._abortRequested=!0;var m=new d.AbortRequest;throw m.cancel=function(){d._abortRequested=!1;},m},c.reset=function(d){},c.visitWithoutReset=function(d){if(this instanceof this.Context)return this.visitor.visitWithoutReset(d);if(!(d instanceof r))throw new Error("");var m=d.value,y=m&&typeof m=="object"&&typeof m.type=="string"&&this._methodNameTable[m.type];if(y){var g=this.acquireContext(d);try{return g.invokeVisitorMethod(y)}finally{this.releaseContext(g);}}else return p(d,this)};function p(d,m){if(!(d instanceof r))throw new Error("");if(!(m instanceof o))throw new Error("");var y=d.value;if(n.check(y))d.each(m.visitWithoutReset,m);else if(i.check(y)){var g=t.getFieldNames(y);m._shouldVisitComments&&y.comments&&g.indexOf("comments")<0&&g.push("comments");for(var v=g.length,E=[],S=0;S<v;++S){var x=g[S];yI.call(y,x)||(y[x]=t.getFieldValue(y,x)),E.push(d.get(x));}for(var S=0;S<v;++S)m.visitWithoutReset(E[S]);}return d.value}c.acquireContext=function(d){return this._reusableContextStack.length===0?new this.Context(d):this._reusableContextStack.pop().reset(d)},c.releaseContext=function(d){if(!(d instanceof this.Context))throw new Error("");this._reusableContextStack.push(d),d.currentPath=null;},c.reportChanged=function(){this._changeReported=!0;},c.wasChangeReported=function(){return this._changeReported};function h(d){function m(g){if(!(this instanceof m))throw new Error("");if(!(this instanceof o))throw new Error("");if(!(g instanceof r))throw new Error("");Object.defineProperty(this,"visitor",{value:d,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=g,this.needToCallTraverse=!0,Object.seal(this);}if(!(d instanceof o))throw new Error("");var y=m.prototype=Object.create(d);return y.constructor=m,l(y,f),m}var f=Object.create(null);return f.reset=function(m){if(!(this instanceof this.Context))throw new Error("");if(!(m instanceof r))throw new Error("");return this.currentPath=m,this.needToCallTraverse=!0,this},f.invokeVisitorMethod=function(m){if(!(this instanceof this.Context))throw new Error("");if(!(this.currentPath instanceof r))throw new Error("");var y=this.visitor[m].call(this,this.currentPath);if(y===!1?this.needToCallTraverse=!1:y!==a&&(this.currentPath=this.currentPath.replace(y)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw new Error("Must either call this.traverse or return false in "+m);var g=this.currentPath;return g&&g.value},f.traverse=function(m,y){if(!(this instanceof this.Context))throw new Error("");if(!(m instanceof r))throw new Error("");if(!(this.currentPath instanceof r))throw new Error("");return this.needToCallTraverse=!1,p(m,o.fromMethodsObject(y||this.visitor))},f.visit=function(m,y){if(!(this instanceof this.Context))throw new Error("");if(!(m instanceof r))throw new Error("");if(!(this.currentPath instanceof r))throw new Error("");return this.needToCallTraverse=!1,o.fromMethodsObject(y||this.visitor).visitWithoutReset(m)},f.reportChanged=function(){this.visitor.reportChanged();},f.abort=function(){this.needToCallTraverse=!1,this.visitor.abort();},o}f5.default=A4t;(0, x4t.maybeSetModuleExports)(function(){return fPe});});var mPe=chunkTKGT252T_js.c((h5,dPe)=>{Object.defineProperty(h5,"__esModule",{value:!0});var P4t=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),C4t=nn(),w4t=P4t.__importDefault(Gn());function I4t(e){var t=e.use(w4t.default),r=t.getFieldNames,n=t.getFieldValue,i=t.builtInTypes.array,s=t.builtInTypes.object,a=t.builtInTypes.Date,o=t.builtInTypes.RegExp,u=Object.prototype.hasOwnProperty;function l(d,m,y){return i.check(y)?y.length=0:y=null,p(d,m,y)}l.assert=function(d,m){var y=[];if(!l(d,m,y))if(y.length===0){if(d!==m)throw new Error("Nodes must be equal")}else throw new Error("Nodes differ in the following path: "+y.map(c).join(""))};function c(d){return /[_$a-z][_$a-z0-9]*/i.test(d)?"."+d:"["+JSON.stringify(d)+"]"}function p(d,m,y){return d===m?!0:i.check(d)?h(d,m,y):s.check(d)?f(d,m,y):a.check(d)?a.check(m)&&+d==+m:o.check(d)?o.check(m)&&d.source===m.source&&d.global===m.global&&d.multiline===m.multiline&&d.ignoreCase===m.ignoreCase:d==m}function h(d,m,y){i.assert(d);var g=d.length;if(!i.check(m)||m.length!==g)return y&&y.push("length"),!1;for(var v=0;v<g;++v){if(y&&y.push(v),v in d!=v in m||!p(d[v],m[v],y))return !1;if(y){var E=y.pop();if(E!==v)throw new Error(""+E)}}return !0}function f(d,m,y){if(s.assert(d),!s.check(m))return !1;if(d.type!==m.type)return y&&y.push("type"),!1;var g=r(d),v=g.length,E=r(m),S=E.length;if(v===S){for(var x=0;x<v;++x){var b=g[x],A=n(d,b),D=n(m,b);if(y&&y.push(b),!p(A,D,y))return !1;if(y){var P=y.pop();if(P!==b)throw new Error(""+P)}}return !0}if(!y)return !1;var V=Object.create(null);for(x=0;x<v;++x)V[g[x]]=!0;for(x=0;x<S;++x){if(b=E[x],!u.call(V,b))return y.push(b),!1;delete V[b];}for(b in V){y.push(b);break}return !1}return l}h5.default=I4t;(0, C4t.maybeSetModuleExports)(function(){return dPe});});var gPe=chunkTKGT252T_js.c((d5,yPe)=>{Object.defineProperty(d5,"__esModule",{value:!0});var rv=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),O4t=rv.__importDefault(Gn()),D4t=rv.__importDefault(hPe()),N4t=rv.__importDefault(mPe()),R4t=rv.__importDefault(o5()),M4t=rv.__importDefault(p5()),L4t=nn();function k4t(e){var t=F4t(),r=t.use(O4t.default);e.forEach(t.use),r.finalize();var n=t.use(D4t.default);return {Type:r.Type,builtInTypes:r.builtInTypes,namedTypes:r.namedTypes,builders:r.builders,defineMethod:r.defineMethod,getFieldNames:r.getFieldNames,getFieldValue:r.getFieldValue,eachField:r.eachField,someField:r.someField,getSupertypeNames:r.getSupertypeNames,getBuilderName:r.getBuilderName,astNodesAreEquivalent:t.use(N4t.default),finalize:r.finalize,Path:t.use(R4t.default),NodePath:t.use(M4t.default),PathVisitor:n,use:t.use,visit:n.visit}}d5.default=k4t;function F4t(){var e=[],t=[];function r(i){var s=e.indexOf(i);return s===-1&&(s=e.length,e.push(i),t[s]=i(n)),t[s]}var n={use:r};return n}(0, L4t.maybeSetModuleExports)(function(){return yPe});});var y5=chunkTKGT252T_js.c((m5,SPe)=>{Object.defineProperty(m5,"__esModule",{value:!0});var B4t=nn();function j4t(){return {BinaryOperators:["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}}m5.default=j4t;(0, B4t.maybeSetModuleExports)(function(){return SPe});});var S5=chunkTKGT252T_js.c((g5,TPe)=>{Object.defineProperty(g5,"__esModule",{value:!0});var U4t=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),q4t=nn(),V4t=U4t.__importDefault(y5());function H4t(e){var t=e.use(V4t.default);return t.BinaryOperators.indexOf("**")<0&&t.BinaryOperators.push("**"),t.AssignmentOperators.indexOf("**=")<0&&t.AssignmentOperators.push("**="),t}g5.default=H4t;(0, q4t.maybeSetModuleExports)(function(){return TPe});});var E5=chunkTKGT252T_js.c((T5,EPe)=>{Object.defineProperty(T5,"__esModule",{value:!0});var G4t=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),$4t=nn(),K4t=G4t.__importDefault(S5());function Y4t(e){var t=e.use(K4t.default);return t.LogicalOperators.indexOf("??")<0&&t.LogicalOperators.push("??"),t}T5.default=Y4t;(0, $4t.maybeSetModuleExports)(function(){return EPe});});var vPe=chunkTKGT252T_js.c((b5,bPe)=>{Object.defineProperty(b5,"__esModule",{value:!0});var W4t=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),X4t=nn(),z4t=W4t.__importDefault(E5());function J4t(e){var t=e.use(z4t.default);return t.LogicalOperators.forEach(function(r){var n=r+"=";t.AssignmentOperators.indexOf(n)<0&&t.AssignmentOperators.push(n);}),t}b5.default=J4t;(0, X4t.maybeSetModuleExports)(function(){return bPe});});var APe=chunkTKGT252T_js.c((_5,xPe)=>{Object.defineProperty(_5,"__esModule",{value:!0});var v5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),Q4t=v5.__importDefault(y5()),Z4t=v5.__importDefault(Gn()),_Pe=v5.__importStar(nn());function e5t(e){var t=e.use(Z4t.default),r=t.Type,n=r.def,i=r.or,s=e.use(_Pe.default),a=s.defaults,o=s.geq,u=e.use(Q4t.default),l=u.BinaryOperators,c=u.AssignmentOperators,p=u.LogicalOperators;n("Printable").field("loc",i(n("SourceLocation"),null),a.null,!0),n("Node").bases("Printable").field("type",String).field("comments",i([n("Comment")],null),a.null,!0),n("SourceLocation").field("start",n("Position")).field("end",n("Position")).field("source",i(String,null),a.null),n("Position").field("line",o(1)).field("column",o(0)),n("File").bases("Node").build("program","name").field("program",n("Program")).field("name",i(String,null),a.null),n("Program").bases("Node").build("body").field("body",[n("Statement")]),n("Function").bases("Node").field("id",i(n("Identifier"),null),a.null).field("params",[n("Pattern")]).field("body",n("BlockStatement")).field("generator",Boolean,a.false).field("async",Boolean,a.false),n("Statement").bases("Node"),n("EmptyStatement").bases("Statement").build(),n("BlockStatement").bases("Statement").build("body").field("body",[n("Statement")]),n("ExpressionStatement").bases("Statement").build("expression").field("expression",n("Expression")),n("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",n("Expression")).field("consequent",n("Statement")).field("alternate",i(n("Statement"),null),a.null),n("LabeledStatement").bases("Statement").build("label","body").field("label",n("Identifier")).field("body",n("Statement")),n("BreakStatement").bases("Statement").build("label").field("label",i(n("Identifier"),null),a.null),n("ContinueStatement").bases("Statement").build("label").field("label",i(n("Identifier"),null),a.null),n("WithStatement").bases("Statement").build("object","body").field("object",n("Expression")).field("body",n("Statement")),n("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",n("Expression")).field("cases",[n("SwitchCase")]).field("lexical",Boolean,a.false),n("ReturnStatement").bases("Statement").build("argument").field("argument",i(n("Expression"),null)),n("ThrowStatement").bases("Statement").build("argument").field("argument",n("Expression")),n("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",n("BlockStatement")).field("handler",i(n("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[n("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[n("CatchClause")],a.emptyArray).field("finalizer",i(n("BlockStatement"),null),a.null),n("CatchClause").bases("Node").build("param","guard","body").field("param",n("Pattern")).field("guard",i(n("Expression"),null),a.null).field("body",n("BlockStatement")),n("WhileStatement").bases("Statement").build("test","body").field("test",n("Expression")).field("body",n("Statement")),n("DoWhileStatement").bases("Statement").build("body","test").field("body",n("Statement")).field("test",n("Expression")),n("ForStatement").bases("Statement").build("init","test","update","body").field("init",i(n("VariableDeclaration"),n("Expression"),null)).field("test",i(n("Expression"),null)).field("update",i(n("Expression"),null)).field("body",n("Statement")),n("ForInStatement").bases("Statement").build("left","right","body").field("left",i(n("VariableDeclaration"),n("Expression"))).field("right",n("Expression")).field("body",n("Statement")),n("DebuggerStatement").bases("Statement").build(),n("Declaration").bases("Statement"),n("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",n("Identifier")),n("FunctionExpression").bases("Function","Expression").build("id","params","body"),n("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",i("var","let","const")).field("declarations",[n("VariableDeclarator")]),n("VariableDeclarator").bases("Node").build("id","init").field("id",n("Pattern")).field("init",i(n("Expression"),null),a.null),n("Expression").bases("Node"),n("ThisExpression").bases("Expression").build(),n("ArrayExpression").bases("Expression").build("elements").field("elements",[i(n("Expression"),null)]),n("ObjectExpression").bases("Expression").build("properties").field("properties",[n("Property")]),n("Property").bases("Node").build("kind","key","value").field("kind",i("init","get","set")).field("key",i(n("Literal"),n("Identifier"))).field("value",n("Expression")),n("SequenceExpression").bases("Expression").build("expressions").field("expressions",[n("Expression")]);var h=i("-","+","!","~","typeof","void","delete");n("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",h).field("argument",n("Expression")).field("prefix",Boolean,a.true);var f=i.apply(void 0,l);n("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",f).field("left",n("Expression")).field("right",n("Expression"));var d=i.apply(void 0,c);n("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",d).field("left",i(n("Pattern"),n("MemberExpression"))).field("right",n("Expression"));var m=i("++","--");n("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",m).field("argument",n("Expression")).field("prefix",Boolean);var y=i.apply(void 0,p);n("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",y).field("left",n("Expression")).field("right",n("Expression")),n("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",n("Expression")).field("consequent",n("Expression")).field("alternate",n("Expression")),n("NewExpression").bases("Expression").build("callee","arguments").field("callee",n("Expression")).field("arguments",[n("Expression")]),n("CallExpression").bases("Expression").build("callee","arguments").field("callee",n("Expression")).field("arguments",[n("Expression")]),n("MemberExpression").bases("Expression").build("object","property","computed").field("object",n("Expression")).field("property",i(n("Identifier"),n("Expression"))).field("computed",Boolean,function(){var g=this.property.type;return g==="Literal"||g==="MemberExpression"||g==="BinaryExpression"}),n("Pattern").bases("Node"),n("SwitchCase").bases("Node").build("test","consequent").field("test",i(n("Expression"),null)).field("consequent",[n("Statement")]),n("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,a.false),n("Literal").bases("Expression").build("value").field("value",i(String,Boolean,null,Number,RegExp,BigInt)),n("Comment").bases("Printable").field("value",String).field("leading",Boolean,a.true).field("trailing",Boolean,a.false);}_5.default=e5t;(0, _Pe.maybeSetModuleExports)(function(){return xPe});});var wPe=chunkTKGT252T_js.c((A5,CPe)=>{Object.defineProperty(A5,"__esModule",{value:!0});var x5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),t5t=x5.__importDefault(APe()),r5t=x5.__importDefault(Gn()),PPe=x5.__importStar(nn());function n5t(e){e.use(t5t.default);var t=e.use(r5t.default),r=t.Type.def,n=t.Type.or,i=e.use(PPe.default).defaults;r("Function").field("generator",Boolean,i.false).field("expression",Boolean,i.false).field("defaults",[n(r("Expression"),null)],i.emptyArray).field("rest",n(r("Identifier"),null),i.null),r("RestElement").bases("Pattern").build("argument").field("argument",r("Pattern")).field("typeAnnotation",n(r("TypeAnnotation"),r("TSTypeAnnotation"),null),i.null),r("SpreadElementPattern").bases("Pattern").build("argument").field("argument",r("Pattern")),r("FunctionDeclaration").build("id","params","body","generator","expression").field("id",n(r("Identifier"),null)),r("FunctionExpression").build("id","params","body","generator","expression"),r("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,i.null).field("body",n(r("BlockStatement"),r("Expression"))).field("generator",!1,i.false),r("ForOfStatement").bases("Statement").build("left","right","body").field("left",n(r("VariableDeclaration"),r("Pattern"))).field("right",r("Expression")).field("body",r("Statement")),r("YieldExpression").bases("Expression").build("argument","delegate").field("argument",n(r("Expression"),null)).field("delegate",Boolean,i.false),r("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",r("Expression")).field("blocks",[r("ComprehensionBlock")]).field("filter",n(r("Expression"),null)),r("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",r("Expression")).field("blocks",[r("ComprehensionBlock")]).field("filter",n(r("Expression"),null)),r("ComprehensionBlock").bases("Node").build("left","right","each").field("left",r("Pattern")).field("right",r("Expression")).field("each",Boolean),r("Property").field("key",n(r("Literal"),r("Identifier"),r("Expression"))).field("value",n(r("Expression"),r("Pattern"))).field("method",Boolean,i.false).field("shorthand",Boolean,i.false).field("computed",Boolean,i.false),r("ObjectProperty").field("shorthand",Boolean,i.false),r("PropertyPattern").bases("Pattern").build("key","pattern").field("key",n(r("Literal"),r("Identifier"),r("Expression"))).field("pattern",r("Pattern")).field("computed",Boolean,i.false),r("ObjectPattern").bases("Pattern").build("properties").field("properties",[n(r("PropertyPattern"),r("Property"))]),r("ArrayPattern").bases("Pattern").build("elements").field("elements",[n(r("Pattern"),null)]),r("SpreadElement").bases("Node").build("argument").field("argument",r("Expression")),r("ArrayExpression").field("elements",[n(r("Expression"),r("SpreadElement"),r("RestElement"),null)]),r("NewExpression").field("arguments",[n(r("Expression"),r("SpreadElement"))]),r("CallExpression").field("arguments",[n(r("Expression"),r("SpreadElement"))]),r("AssignmentPattern").bases("Pattern").build("left","right").field("left",r("Pattern")).field("right",r("Expression")),r("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",n("constructor","method","get","set")).field("key",r("Expression")).field("value",r("Function")).field("computed",Boolean,i.false).field("static",Boolean,i.false);var s=n(r("MethodDefinition"),r("VariableDeclarator"),r("ClassPropertyDefinition"),r("ClassProperty"),r("StaticBlock"));r("ClassProperty").bases("Declaration").build("key").field("key",n(r("Literal"),r("Identifier"),r("Expression"))).field("computed",Boolean,i.false),r("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",s),r("ClassBody").bases("Declaration").build("body").field("body",[s]),r("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",n(r("Identifier"),null)).field("body",r("ClassBody")).field("superClass",n(r("Expression"),null),i.null),r("ClassExpression").bases("Expression").build("id","body","superClass").field("id",n(r("Identifier"),null),i.null).field("body",r("ClassBody")).field("superClass",n(r("Expression"),null),i.null),r("Super").bases("Expression").build(),r("Specifier").bases("Node"),r("ModuleSpecifier").bases("Specifier").field("local",n(r("Identifier"),null),i.null).field("id",n(r("Identifier"),null),i.null).field("name",n(r("Identifier"),null),i.null),r("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",r("Identifier")),r("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),r("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),r("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[n(r("ImportSpecifier"),r("ImportNamespaceSpecifier"),r("ImportDefaultSpecifier"))],i.emptyArray).field("source",r("Literal")).field("importKind",n("value","type"),function(){return "value"}),r("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",n(r("Declaration"),null)).field("specifiers",[r("ExportSpecifier")],i.emptyArray).field("source",n(r("Literal"),null),i.null),r("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",r("Identifier")),r("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",n(r("Declaration"),r("Expression"))),r("ExportAllDeclaration").bases("Declaration").build("source").field("source",r("Literal")),r("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",r("Expression")).field("quasi",r("TemplateLiteral")),r("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[r("TemplateElement")]).field("expressions",[r("Expression")]),r("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),r("MetaProperty").bases("Expression").build("meta","property").field("meta",r("Identifier")).field("property",r("Identifier"));}A5.default=n5t;(0, PPe.maybeSetModuleExports)(function(){return CPe});});var DPe=chunkTKGT252T_js.c((P5,OPe)=>{Object.defineProperty(P5,"__esModule",{value:!0});var IPe=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),i5t=IPe.__importDefault(S5()),s5t=IPe.__importDefault(wPe()),a5t=nn();function o5t(e){e.use(i5t.default),e.use(s5t.default);}P5.default=o5t;(0, a5t.maybeSetModuleExports)(function(){return OPe});});var MPe=chunkTKGT252T_js.c((w5,RPe)=>{Object.defineProperty(w5,"__esModule",{value:!0});var C5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),u5t=C5.__importDefault(DPe()),l5t=C5.__importDefault(Gn()),NPe=C5.__importStar(nn());function c5t(e){e.use(u5t.default);var t=e.use(l5t.default),r=t.Type.def,n=e.use(NPe.default).defaults;r("Function").field("async",Boolean,n.false),r("AwaitExpression").bases("Expression").build("argument").field("argument",r("Expression"));}w5.default=c5t;(0, NPe.maybeSetModuleExports)(function(){return RPe});});var FPe=chunkTKGT252T_js.c((O5,kPe)=>{Object.defineProperty(O5,"__esModule",{value:!0});var I5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),p5t=I5.__importDefault(MPe()),f5t=I5.__importDefault(Gn()),LPe=I5.__importStar(nn());function h5t(e){e.use(p5t.default);var t=e.use(f5t.default),r=t.Type.def,n=t.Type.or,i=e.use(LPe.default).defaults;r("ForOfStatement").field("await",Boolean,i.false),r("SpreadProperty").bases("Node").build("argument").field("argument",r("Expression")),r("ObjectExpression").field("properties",[n(r("Property"),r("SpreadProperty"),r("SpreadElement"))]),r("TemplateElement").field("value",{cooked:n(String,null),raw:String}),r("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",r("Pattern")),r("ObjectPattern").field("properties",[n(r("PropertyPattern"),r("Property"),r("RestElement"),r("SpreadPropertyPattern"))]);}O5.default=h5t;(0, LPe.maybeSetModuleExports)(function(){return kPe});});var UPe=chunkTKGT252T_js.c((N5,jPe)=>{Object.defineProperty(N5,"__esModule",{value:!0});var D5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),d5t=D5.__importDefault(FPe()),m5t=D5.__importDefault(Gn()),BPe=D5.__importStar(nn());function y5t(e){e.use(d5t.default);var t=e.use(m5t.default),r=t.Type.def,n=t.Type.or,i=e.use(BPe.default).defaults;r("CatchClause").field("param",n(r("Pattern"),null),i.null);}N5.default=y5t;(0, BPe.maybeSetModuleExports)(function(){return jPe});});var HPe=chunkTKGT252T_js.c((R5,VPe)=>{Object.defineProperty(R5,"__esModule",{value:!0});var gI=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),g5t=gI.__importDefault(E5()),S5t=gI.__importDefault(UPe()),T5t=gI.__importDefault(Gn()),qPe=gI.__importStar(nn());function E5t(e){e.use(g5t.default),e.use(S5t.default);var t=e.use(T5t.default),r=t.Type.def,n=t.Type.or,i=e.use(qPe.default),s=i.defaults;r("ImportExpression").bases("Expression").build("source").field("source",r("Expression")),r("ExportAllDeclaration").bases("Declaration").build("source","exported").field("source",r("Literal")).field("exported",n(r("Identifier"),null,void 0),s.null),r("ChainElement").bases("Node").field("optional",Boolean,s.false),r("CallExpression").bases("Expression","ChainElement"),r("MemberExpression").bases("Expression","ChainElement"),r("ChainExpression").bases("Expression").build("expression").field("expression",r("ChainElement")),r("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,s.true),r("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,s.true);}R5.default=E5t;(0, qPe.maybeSetModuleExports)(function(){return VPe});});var KPe=chunkTKGT252T_js.c((M5,$Pe)=>{Object.defineProperty(M5,"__esModule",{value:!0});var GPe=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),b5t=GPe.__importDefault(vPe()),v5t=GPe.__importDefault(HPe()),_5t=nn();function x5t(e){e.use(b5t.default),e.use(v5t.default);}M5.default=x5t;(0, _5t.maybeSetModuleExports)(function(){return $Pe});});var XPe=chunkTKGT252T_js.c((L5,WPe)=>{Object.defineProperty(L5,"__esModule",{value:!0});var YPe=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),A5t=YPe.__importDefault(KPe()),P5t=YPe.__importDefault(Gn()),C5t=nn();function w5t(e){e.use(A5t.default);var t=e.use(P5t.default),r=t.Type.def;r("StaticBlock").bases("Declaration").build("body").field("body",[r("Statement")]);}L5.default=w5t;(0, C5t.maybeSetModuleExports)(function(){return WPe});});var PS=chunkTKGT252T_js.c((F5,JPe)=>{Object.defineProperty(F5,"__esModule",{value:!0});var k5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),I5t=k5.__importDefault(Gn()),zPe=k5.__importStar(nn()),O5t=k5.__importDefault(XPe());function D5t(e){e.use(O5t.default);var t=e.use(I5t.default),r=t.Type,n=t.Type.def,i=r.or,s=e.use(zPe.default),a=s.defaults;n("AwaitExpression").build("argument","all").field("argument",i(n("Expression"),null)).field("all",Boolean,a.false),n("Decorator").bases("Node").build("expression").field("expression",n("Expression")),n("Property").field("decorators",i([n("Decorator")],null),a.null),n("MethodDefinition").field("decorators",i([n("Decorator")],null),a.null),n("PrivateName").bases("Expression","Pattern").build("id").field("id",n("Identifier")),n("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",n("PrivateName")).field("value",i(n("Expression"),null),a.null),n("ImportAttribute").bases("Node").build("key","value").field("key",i(n("Identifier"),n("Literal"))).field("value",n("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach(function(o){n(o).field("assertions",[n("ImportAttribute")],a.emptyArray);}),n("RecordExpression").bases("Expression").build("properties").field("properties",[i(n("ObjectProperty"),n("ObjectMethod"),n("SpreadElement"))]),n("TupleExpression").bases("Expression").build("elements").field("elements",[i(n("Expression"),n("SpreadElement"),null)]),n("ModuleExpression").bases("Node").build("body").field("body",n("Program"));}F5.default=D5t;(0, zPe.maybeSetModuleExports)(function(){return JPe});});var eCe=chunkTKGT252T_js.c((j5,ZPe)=>{Object.defineProperty(j5,"__esModule",{value:!0});var B5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),N5t=B5.__importDefault(PS()),R5t=B5.__importDefault(Gn()),QPe=B5.__importStar(nn());function M5t(e){e.use(N5t.default);var t=e.use(R5t.default),r=t.Type.def,n=t.Type.or,i=e.use(QPe.default).defaults;r("JSXAttribute").bases("Node").build("name","value").field("name",n(r("JSXIdentifier"),r("JSXNamespacedName"))).field("value",n(r("Literal"),r("JSXExpressionContainer"),r("JSXElement"),r("JSXFragment"),null),i.null),r("JSXIdentifier").bases("Identifier").build("name").field("name",String),r("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",r("JSXIdentifier")).field("name",r("JSXIdentifier")),r("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",n(r("JSXIdentifier"),r("JSXMemberExpression"))).field("property",r("JSXIdentifier")).field("computed",Boolean,i.false);var s=n(r("JSXIdentifier"),r("JSXNamespacedName"),r("JSXMemberExpression"));r("JSXSpreadAttribute").bases("Node").build("argument").field("argument",r("Expression"));var a=[n(r("JSXAttribute"),r("JSXSpreadAttribute"))];r("JSXExpressionContainer").bases("Expression").build("expression").field("expression",n(r("Expression"),r("JSXEmptyExpression")));var o=[n(r("JSXText"),r("JSXExpressionContainer"),r("JSXSpreadChild"),r("JSXElement"),r("JSXFragment"),r("Literal"))];r("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",r("JSXOpeningElement")).field("closingElement",n(r("JSXClosingElement"),null),i.null).field("children",o,i.emptyArray).field("name",s,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",a,function(){return this.openingElement.attributes},!0),r("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",s).field("attributes",a,i.emptyArray).field("selfClosing",Boolean,i.false),r("JSXClosingElement").bases("Node").build("name").field("name",s),r("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",r("JSXOpeningFragment")).field("closingFragment",r("JSXClosingFragment")).field("children",o,i.emptyArray),r("JSXOpeningFragment").bases("Node").build(),r("JSXClosingFragment").bases("Node").build(),r("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),r("JSXEmptyExpression").bases("Node").build(),r("JSXSpreadChild").bases("Node").build("expression").field("expression",r("Expression"));}j5.default=M5t;(0, QPe.maybeSetModuleExports)(function(){return ZPe});});var q5=chunkTKGT252T_js.c((U5,nCe)=>{Object.defineProperty(U5,"__esModule",{value:!0});var tCe=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),L5t=tCe.__importDefault(Gn()),rCe=tCe.__importStar(nn());function k5t(e){var t=e.use(L5t.default),r=t.Type.def,n=t.Type.or,i=e.use(rCe.default).defaults,s=n(r("TypeAnnotation"),r("TSTypeAnnotation"),null),a=n(r("TypeParameterDeclaration"),r("TSTypeParameterDeclaration"),null);r("Identifier").field("typeAnnotation",s,i.null),r("ObjectPattern").field("typeAnnotation",s,i.null),r("Function").field("returnType",s,i.null).field("typeParameters",a,i.null),r("ClassProperty").build("key","value","typeAnnotation","static").field("value",n(r("Expression"),null)).field("static",Boolean,i.false).field("typeAnnotation",s,i.null),["ClassDeclaration","ClassExpression"].forEach(function(o){r(o).field("typeParameters",a,i.null).field("superTypeParameters",n(r("TypeParameterInstantiation"),r("TSTypeParameterInstantiation"),null),i.null).field("implements",n([r("ClassImplements")],[r("TSExpressionWithTypeArguments")]),i.emptyArray);});}U5.default=k5t;(0, rCe.maybeSetModuleExports)(function(){return nCe});});var H5=chunkTKGT252T_js.c((V5,sCe)=>{Object.defineProperty(V5,"__esModule",{value:!0});var SI=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),F5t=SI.__importDefault(PS()),B5t=SI.__importDefault(q5()),j5t=SI.__importDefault(Gn()),iCe=SI.__importStar(nn());function U5t(e){e.use(F5t.default),e.use(B5t.default);var t=e.use(j5t.default),r=t.Type.def,n=t.Type.or,i=e.use(iCe.default).defaults;r("Flow").bases("Node"),r("FlowType").bases("Flow"),r("AnyTypeAnnotation").bases("FlowType").build(),r("EmptyTypeAnnotation").bases("FlowType").build(),r("MixedTypeAnnotation").bases("FlowType").build(),r("VoidTypeAnnotation").bases("FlowType").build(),r("SymbolTypeAnnotation").bases("FlowType").build(),r("NumberTypeAnnotation").bases("FlowType").build(),r("BigIntTypeAnnotation").bases("FlowType").build(),r("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),r("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),r("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),r("StringTypeAnnotation").bases("FlowType").build(),r("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),r("BooleanTypeAnnotation").bases("FlowType").build(),r("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),r("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",r("FlowType")),r("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",r("FlowType")),r("NullLiteralTypeAnnotation").bases("FlowType").build(),r("NullTypeAnnotation").bases("FlowType").build(),r("ThisTypeAnnotation").bases("FlowType").build(),r("ExistsTypeAnnotation").bases("FlowType").build(),r("ExistentialTypeParam").bases("FlowType").build(),r("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[r("FunctionTypeParam")]).field("returnType",r("FlowType")).field("rest",n(r("FunctionTypeParam"),null)).field("typeParameters",n(r("TypeParameterDeclaration"),null)),r("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",n(r("Identifier"),null)).field("typeAnnotation",r("FlowType")).field("optional",Boolean),r("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",r("FlowType")),r("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[n(r("ObjectTypeProperty"),r("ObjectTypeSpreadProperty"))]).field("indexers",[r("ObjectTypeIndexer")],i.emptyArray).field("callProperties",[r("ObjectTypeCallProperty")],i.emptyArray).field("inexact",n(Boolean,void 0),i.undefined).field("exact",Boolean,i.false).field("internalSlots",[r("ObjectTypeInternalSlot")],i.emptyArray),r("Variance").bases("Node").build("kind").field("kind",n("plus","minus"));var s=n(r("Variance"),"plus","minus",null);r("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",n(r("Literal"),r("Identifier"))).field("value",r("FlowType")).field("optional",Boolean).field("variance",s,i.null),r("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",r("Identifier")).field("key",r("FlowType")).field("value",r("FlowType")).field("variance",s,i.null).field("static",Boolean,i.false),r("ObjectTypeCallProperty").bases("Node").build("value").field("value",r("FunctionTypeAnnotation")).field("static",Boolean,i.false),r("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",n(r("Identifier"),r("QualifiedTypeIdentifier"))).field("id",r("Identifier")),r("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",n(r("Identifier"),r("QualifiedTypeIdentifier"))).field("typeParameters",n(r("TypeParameterInstantiation"),null)),r("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",r("Identifier")).field("property",n(r("MemberTypeAnnotation"),r("GenericTypeAnnotation"))),r("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",r("FlowType")).field("indexType",r("FlowType")),r("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",r("FlowType")).field("indexType",r("FlowType")).field("optional",Boolean),r("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[r("FlowType")]),r("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[r("FlowType")]),r("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",r("FlowType")),r("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",r("FlowType")),r("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",r("Identifier")).field("value",r("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),r("TypeParameterDeclaration").bases("Node").build("params").field("params",[r("TypeParameter")]),r("TypeParameterInstantiation").bases("Node").build("params").field("params",[r("FlowType")]),r("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",s,i.null).field("bound",n(r("TypeAnnotation"),null),i.null).field("default",n(r("FlowType"),null),i.null),r("ClassProperty").field("variance",s,i.null),r("ClassImplements").bases("Node").build("id").field("id",r("Identifier")).field("superClass",n(r("Expression"),null),i.null).field("typeParameters",n(r("TypeParameterInstantiation"),null),i.null),r("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",r("ObjectTypeAnnotation")).field("extends",n([r("InterfaceExtends")],null),i.null),r("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",r("Identifier")).field("typeParameters",n(r("TypeParameterDeclaration"),null),i.null).field("body",r("ObjectTypeAnnotation")).field("extends",[r("InterfaceExtends")]),r("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),r("InterfaceExtends").bases("Node").build("id").field("id",r("Identifier")).field("typeParameters",n(r("TypeParameterInstantiation"),null),i.null),r("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",r("Identifier")).field("typeParameters",n(r("TypeParameterDeclaration"),null)).field("right",r("FlowType")),r("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),r("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",r("Identifier")).field("typeParameters",n(r("TypeParameterDeclaration"),null)).field("impltype",r("FlowType")).field("supertype",n(r("FlowType"),null)),r("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",n(r("FlowType"),null)),r("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",r("Expression")).field("typeAnnotation",r("TypeAnnotation")),r("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[r("FlowType")]),r("DeclareVariable").bases("Statement").build("id").field("id",r("Identifier")),r("DeclareFunction").bases("Statement").build("id").field("id",r("Identifier")).field("predicate",n(r("FlowPredicate"),null),i.null),r("DeclareClass").bases("InterfaceDeclaration").build("id"),r("DeclareModule").bases("Statement").build("id","body").field("id",n(r("Identifier"),r("Literal"))).field("body",r("BlockStatement")),r("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",r("TypeAnnotation")),r("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",n(r("DeclareVariable"),r("DeclareFunction"),r("DeclareClass"),r("FlowType"),r("TypeAlias"),r("DeclareOpaqueType"),r("InterfaceDeclaration"),null)).field("specifiers",[n(r("ExportSpecifier"),r("ExportBatchSpecifier"))],i.emptyArray).field("source",n(r("Literal"),null),i.null),r("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",n(r("Literal"),null),i.null),r("ImportDeclaration").field("importKind",n("value","type","typeof"),function(){return "value"}),r("FlowPredicate").bases("Flow"),r("InferredPredicate").bases("FlowPredicate").build(),r("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",r("Expression")),r("Function").field("predicate",n(r("FlowPredicate"),null),i.null),r("CallExpression").field("typeArguments",n(null,r("TypeParameterInstantiation")),i.null),r("NewExpression").field("typeArguments",n(null,r("TypeParameterInstantiation")),i.null),r("EnumDeclaration").bases("Declaration").build("id","body").field("id",r("Identifier")).field("body",n(r("EnumBooleanBody"),r("EnumNumberBody"),r("EnumStringBody"),r("EnumSymbolBody"))),r("EnumBooleanBody").build("members","explicitType").field("members",[r("EnumBooleanMember")]).field("explicitType",Boolean),r("EnumNumberBody").build("members","explicitType").field("members",[r("EnumNumberMember")]).field("explicitType",Boolean),r("EnumStringBody").build("members","explicitType").field("members",n([r("EnumStringMember")],[r("EnumDefaultedMember")])).field("explicitType",Boolean),r("EnumSymbolBody").build("members").field("members",[r("EnumDefaultedMember")]),r("EnumBooleanMember").build("id","init").field("id",r("Identifier")).field("init",n(r("Literal"),Boolean)),r("EnumNumberMember").build("id","init").field("id",r("Identifier")).field("init",r("Literal")),r("EnumStringMember").build("id","init").field("id",r("Identifier")).field("init",r("Literal")),r("EnumDefaultedMember").build("id").field("id",r("Identifier"));}V5.default=U5t;(0, iCe.maybeSetModuleExports)(function(){return sCe});});var uCe=chunkTKGT252T_js.c(($5,oCe)=>{Object.defineProperty($5,"__esModule",{value:!0});var G5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),q5t=G5.__importDefault(PS()),V5t=G5.__importDefault(Gn()),aCe=G5.__importStar(nn());function H5t(e){e.use(q5t.default);var t=e.use(V5t.default),r=e.use(aCe.default).defaults,n=t.Type.def,i=t.Type.or;n("VariableDeclaration").field("declarations",[i(n("VariableDeclarator"),n("Identifier"))]),n("Property").field("value",i(n("Expression"),n("Pattern"))),n("ArrayPattern").field("elements",[i(n("Pattern"),n("SpreadElement"),null)]),n("ObjectPattern").field("properties",[i(n("Property"),n("PropertyPattern"),n("SpreadPropertyPattern"),n("SpreadProperty"))]),n("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),n("ExportBatchSpecifier").bases("Specifier").build(),n("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",i(n("Declaration"),n("Expression"),null)).field("specifiers",[i(n("ExportSpecifier"),n("ExportBatchSpecifier"))],r.emptyArray).field("source",i(n("Literal"),null),r.null),n("Block").bases("Comment").build("value","leading","trailing"),n("Line").bases("Comment").build("value","leading","trailing");}$5.default=H5t;(0, aCe.maybeSetModuleExports)(function(){return oCe});});var W5=chunkTKGT252T_js.c((Y5,cCe)=>{Object.defineProperty(Y5,"__esModule",{value:!0});var K5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),G5t=K5.__importDefault(PS()),$5t=K5.__importDefault(Gn()),lCe=K5.__importStar(nn());function K5t(e){var t,r,n,i,s;e.use(G5t.default);var a=e.use($5t.default),o=e.use(lCe.default).defaults,u=a.Type.def,l=a.Type.or,c=a.builtInTypes.undefined;u("Noop").bases("Statement").build(),u("DoExpression").bases("Expression").build("body").field("body",[u("Statement")]),u("BindExpression").bases("Expression").build("object","callee").field("object",l(u("Expression"),null)).field("callee",u("Expression")),u("ParenthesizedExpression").bases("Expression").build("expression").field("expression",u("Expression")),u("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",u("Identifier")),u("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",u("Identifier")),u("CommentBlock").bases("Comment").build("value","leading","trailing"),u("CommentLine").bases("Comment").build("value","leading","trailing"),u("Directive").bases("Node").build("value").field("value",u("DirectiveLiteral")),u("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,o["use strict"]),u("InterpreterDirective").bases("Node").build("value").field("value",String),u("BlockStatement").bases("Statement").build("body").field("body",[u("Statement")]).field("directives",[u("Directive")],o.emptyArray),u("Program").bases("Node").build("body").field("body",[u("Statement")]).field("directives",[u("Directive")],o.emptyArray).field("interpreter",l(u("InterpreterDirective"),null),o.null);function p(m,y){return m===void 0&&(m=String),["extra",{rawValue:m,raw:String},function(){var v=a.getFieldValue(this,"value");return {rawValue:v,raw:y?y(v):String(v)}}]}(t=u("StringLiteral").bases("Literal").build("value").field("value",String)).field.apply(t,p(String,function(m){return JSON.stringify(m)})),(r=u("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",l(String,null),o.null)).field.apply(r,p(Number)),(n=u("BigIntLiteral").bases("Literal").build("value").field("value",l(String,Number))).field.apply(n,p(String,function(m){return m+"n"})),(i=u("DecimalLiteral").bases("Literal").build("value").field("value",String)).field.apply(i,p(String,function(m){return m+"m"})),u("NullLiteral").bases("Literal").build().field("value",null,o.null),u("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),(s=u("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(s,p(l(RegExp,c),function(m){return "/".concat(m.pattern,"/").concat(m.flags||"")})).field("regex",{pattern:String,flags:String},function(){return {pattern:this.pattern,flags:this.flags}});var h=l(u("Property"),u("ObjectMethod"),u("ObjectProperty"),u("SpreadProperty"),u("SpreadElement"));u("ObjectExpression").bases("Expression").build("properties").field("properties",[h]),u("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",l("method","get","set")).field("key",l(u("Literal"),u("Identifier"),u("Expression"))).field("params",[u("Pattern")]).field("body",u("BlockStatement")).field("computed",Boolean,o.false).field("generator",Boolean,o.false).field("async",Boolean,o.false).field("accessibility",l(u("Literal"),null),o.null).field("decorators",l([u("Decorator")],null),o.null),u("ObjectProperty").bases("Node").build("key","value").field("key",l(u("Literal"),u("Identifier"),u("Expression"))).field("value",l(u("Expression"),u("Pattern"))).field("accessibility",l(u("Literal"),null),o.null).field("computed",Boolean,o.false);var f=l(u("MethodDefinition"),u("VariableDeclarator"),u("ClassPropertyDefinition"),u("ClassProperty"),u("ClassPrivateProperty"),u("ClassMethod"),u("ClassPrivateMethod"),u("ClassAccessorProperty"),u("StaticBlock"));u("ClassBody").bases("Declaration").build("body").field("body",[f]),u("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",l(u("Literal"),u("Identifier"),u("Expression"))),u("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",u("PrivateName")),u("ClassAccessorProperty").bases("Declaration").build("key","value","decorators","computed","static").field("key",l(u("Literal"),u("Identifier"),u("PrivateName"),u("Expression"))).field("value",l(u("Expression"),null),o.null),["ClassMethod","ClassPrivateMethod"].forEach(function(m){u(m).field("kind",l("get","set","method","constructor"),function(){return "method"}).field("body",u("BlockStatement")).field("access",l("public","private","protected",null),o.null);}),["ClassMethod","ClassPrivateMethod","ClassAccessorProperty"].forEach(function(m){u(m).field("computed",Boolean,o.false).field("static",Boolean,o.false).field("abstract",Boolean,o.false).field("accessibility",l("public","private","protected",null),o.null).field("decorators",l([u("Decorator")],null),o.null).field("definite",Boolean,o.false).field("optional",Boolean,o.false).field("override",Boolean,o.false).field("readonly",Boolean,o.false);});var d=l(u("Property"),u("PropertyPattern"),u("SpreadPropertyPattern"),u("SpreadProperty"),u("ObjectProperty"),u("RestProperty"),u("RestElement"));u("ObjectPattern").bases("Pattern").build("properties").field("properties",[d]).field("decorators",l([u("Decorator")],null),o.null),u("SpreadProperty").bases("Node").build("argument").field("argument",u("Expression")),u("RestProperty").bases("Node").build("argument").field("argument",u("Expression")),u("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",l(u("VariableDeclaration"),u("Expression"))).field("right",u("Expression")).field("body",u("Statement")),u("Import").bases("Expression").build();}Y5.default=K5t;(0, lCe.maybeSetModuleExports)(function(){return cCe});});var fCe=chunkTKGT252T_js.c((z5,pCe)=>{Object.defineProperty(z5,"__esModule",{value:!0});var X5=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),Y5t=X5.__importDefault(Gn()),W5t=X5.__importDefault(W5()),X5t=X5.__importDefault(H5()),z5t=nn();function J5t(e){var t=e.use(Y5t.default),r=t.Type.def;e.use(W5t.default),e.use(X5t.default),r("V8IntrinsicIdentifier").bases("Expression").build("name").field("name",String),r("TopicReference").bases("Expression").build();}z5.default=J5t;(0, z5t.maybeSetModuleExports)(function(){return pCe});});var mCe=chunkTKGT252T_js.c((J5,dCe)=>{Object.defineProperty(J5,"__esModule",{value:!0});var TI=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),Q5t=TI.__importDefault(W5()),Z5t=TI.__importDefault(q5()),e6t=TI.__importDefault(Gn()),hCe=TI.__importStar(nn());function t6t(e){e.use(Q5t.default),e.use(Z5t.default);var t=e.use(e6t.default),r=t.namedTypes,n=t.Type.def,i=t.Type.or,s=e.use(hCe.default).defaults,a=t.Type.from(function(c,p){return !!(r.StringLiteral&&r.StringLiteral.check(c,p)||r.Literal&&r.Literal.check(c,p)&&typeof c.value=="string")},"StringLiteral");n("TSType").bases("Node");var o=i(n("Identifier"),n("TSQualifiedName"));n("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",o),n("TSHasOptionalTypeParameterInstantiation").field("typeParameters",i(n("TSTypeParameterInstantiation"),null),s.null),n("TSHasOptionalTypeParameters").field("typeParameters",i(n("TSTypeParameterDeclaration"),null,void 0),s.null),n("TSHasOptionalTypeAnnotation").field("typeAnnotation",i(n("TSTypeAnnotation"),null),s.null),n("TSQualifiedName").bases("Node").build("left","right").field("left",o).field("right",o),n("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",n("Expression")).field("typeAnnotation",n("TSType")).field("extra",i({parenthesized:Boolean},null),s.null),n("TSTypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",n("Expression")).field("typeAnnotation",n("TSType")),n("TSSatisfiesExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",n("Expression")).field("typeAnnotation",n("TSType")),n("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",n("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSIntrinsicKeyword","TSThisType"].forEach(function(c){n(c).bases("TSType").build();}),n("TSArrayType").bases("TSType").build("elementType").field("elementType",n("TSType")),n("TSLiteralType").bases("TSType").build("literal").field("literal",i(n("NumericLiteral"),n("StringLiteral"),n("BooleanLiteral"),n("TemplateLiteral"),n("UnaryExpression"),n("BigIntLiteral"))),n("TemplateLiteral").field("expressions",i([n("Expression")],[n("TSType")])),["TSUnionType","TSIntersectionType"].forEach(function(c){n(c).bases("TSType").build("types").field("types",[n("TSType")]);}),n("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",n("TSType")).field("extendsType",n("TSType")).field("trueType",n("TSType")).field("falseType",n("TSType")),n("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",n("TSTypeParameter")),n("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",n("TSType"));var u=[i(n("Identifier"),n("RestElement"),n("ArrayPattern"),n("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(function(c){n(c).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",u);}),n("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,s.false).field("async",Boolean,s.false).field("generator",Boolean,s.false).field("id",i(n("Identifier"),null),s.null).field("params",[n("Pattern")]).field("returnType",i(n("TSTypeAnnotation"),n("Noop"),null),s.null),n("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,s.false).field("generator",Boolean,s.false).field("params",[n("Pattern")]).field("abstract",Boolean,s.false).field("accessibility",i("public","private","protected",void 0),s.undefined).field("static",Boolean,s.false).field("computed",Boolean,s.false).field("optional",Boolean,s.false).field("key",i(n("Identifier"),n("StringLiteral"),n("NumericLiteral"),n("Expression"))).field("kind",i("get","set","method","constructor"),function(){return "method"}).field("access",i("public","private","protected",void 0),s.undefined).field("decorators",i([n("Decorator")],null),s.null).field("returnType",i(n("TSTypeAnnotation"),n("Noop"),null),s.null),n("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",i(Boolean,"+","-"),s.false).field("typeParameter",n("TSTypeParameter")).field("optional",i(Boolean,"+","-"),s.false).field("typeAnnotation",i(n("TSType"),null),s.null),n("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[i(n("TSType"),n("TSNamedTupleMember"))]),n("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",n("Identifier")).field("optional",Boolean,s.false).field("elementType",n("TSType")),n("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",n("TSType")),n("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",n("TSType")),n("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",n("TSType")).field("indexType",n("TSType")),n("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",n("TSType")),n("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",i(n("TSType"),n("TSTypeAnnotation"))),n("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[n("Identifier")]).field("readonly",Boolean,s.false),n("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",n("Expression")).field("computed",Boolean,s.false).field("readonly",Boolean,s.false).field("optional",Boolean,s.false).field("initializer",i(n("Expression"),null),s.null),n("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",n("Expression")).field("computed",Boolean,s.false).field("optional",Boolean,s.false).field("parameters",u),n("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",i(n("Identifier"),n("TSThisType"))).field("typeAnnotation",i(n("TSTypeAnnotation"),null),s.null).field("asserts",Boolean,s.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(function(c){n(c).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",u);}),n("TSEnumMember").bases("Node").build("id","initializer").field("id",i(n("Identifier"),a)).field("initializer",i(n("Expression"),null),s.null),n("TSTypeQuery").bases("TSType").build("exprName").field("exprName",i(o,n("TSImportType")));var l=i(n("TSCallSignatureDeclaration"),n("TSConstructSignatureDeclaration"),n("TSIndexSignature"),n("TSMethodSignature"),n("TSPropertySignature"));n("TSTypeLiteral").bases("TSType").build("members").field("members",[l]),n("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",i(n("Identifier"),String)).field("constraint",i(n("TSType"),void 0),s.undefined).field("default",i(n("TSType"),void 0),s.undefined),n("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",n("TSType")).field("expression",n("Expression")).field("extra",i({parenthesized:Boolean},null),s.null),n("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[n("TSTypeParameter")]),n("TSInstantiationExpression").bases("Expression","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",n("Expression")),n("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[n("TSType")]),n("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",n("Identifier")).field("const",Boolean,s.false).field("declare",Boolean,s.false).field("members",[n("TSEnumMember")]).field("initializer",i(n("Expression"),null),s.null),n("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",n("Identifier")).field("declare",Boolean,s.false).field("typeAnnotation",n("TSType")),n("TSModuleBlock").bases("Node").build("body").field("body",[n("Statement")]),n("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",i(a,o)).field("declare",Boolean,s.false).field("global",Boolean,s.false).field("body",i(n("TSModuleBlock"),n("TSModuleDeclaration"),null),s.null),n("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",a).field("qualifier",i(o,void 0),s.undefined),n("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",n("Identifier")).field("isExport",Boolean,s.false).field("moduleReference",i(o,n("TSExternalModuleReference"))),n("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",a),n("TSExportAssignment").bases("Statement").build("expression").field("expression",n("Expression")),n("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",n("Identifier")),n("TSInterfaceBody").bases("Node").build("body").field("body",[l]),n("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",o),n("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",o).field("declare",Boolean,s.false).field("extends",i([n("TSExpressionWithTypeArguments")],null),s.null).field("body",n("TSInterfaceBody")),n("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",i("public","private","protected",void 0),s.undefined).field("readonly",Boolean,s.false).field("parameter",i(n("Identifier"),n("AssignmentPattern"))),n("ClassProperty").field("access",i("public","private","protected",void 0),s.undefined),n("ClassAccessorProperty").bases("Declaration","TSHasOptionalTypeAnnotation"),n("ClassBody").field("body",[i(n("MethodDefinition"),n("VariableDeclarator"),n("ClassPropertyDefinition"),n("ClassProperty"),n("ClassPrivateProperty"),n("ClassAccessorProperty"),n("ClassMethod"),n("ClassPrivateMethod"),n("StaticBlock"),n("TSDeclareMethod"),l)]);}J5.default=t6t;(0, hCe.maybeSetModuleExports)(function(){return dCe});});var yCe=chunkTKGT252T_js.c(nv=>{Object.defineProperty(nv,"__esModule",{value:!0});nv.namedTypes=void 0;nv.namedTypes||(nv.namedTypes={});});var wc=chunkTKGT252T_js.c(ur=>{Object.defineProperty(ur,"__esModule",{value:!0});ur.visit=ur.use=ur.Type=ur.someField=ur.PathVisitor=ur.Path=ur.NodePath=ur.namedTypes=ur.getSupertypeNames=ur.getFieldValue=ur.getFieldNames=ur.getBuilderName=ur.finalize=ur.eachField=ur.defineMethod=ur.builtInTypes=ur.builders=ur.astNodesAreEquivalent=void 0;var qd=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),n6t=qd.__importDefault(gPe()),i6t=qd.__importDefault(PS()),s6t=qd.__importDefault(eCe()),a6t=qd.__importDefault(H5()),o6t=qd.__importDefault(uCe()),u6t=qd.__importDefault(fCe()),l6t=qd.__importDefault(mCe()),gCe=yCe();Object.defineProperty(ur,"namedTypes",{enumerable:!0,get:function(){return gCe.namedTypes}});var qi=(0, n6t.default)([i6t.default,s6t.default,a6t.default,o6t.default,u6t.default,l6t.default]),c6t=qi.astNodesAreEquivalent,p6t=qi.builders,f6t=qi.builtInTypes,h6t=qi.defineMethod,d6t=qi.eachField,m6t=qi.finalize,y6t=qi.getBuilderName,g6t=qi.getFieldNames,S6t=qi.getFieldValue,T6t=qi.getSupertypeNames,E6t=qi.namedTypes,b6t=qi.NodePath,v6t=qi.Path,_6t=qi.PathVisitor,x6t=qi.someField,A6t=qi.Type,P6t=qi.use,C6t=qi.visit;ur.astNodesAreEquivalent=c6t;ur.builders=p6t;ur.builtInTypes=f6t;ur.defineMethod=h6t;ur.eachField=d6t;ur.finalize=m6t;ur.getBuilderName=y6t;ur.getFieldNames=g6t;ur.getFieldValue=S6t;ur.getSupertypeNames=T6t;ur.NodePath=b6t;ur.Path=v6t;ur.PathVisitor=_6t;ur.someField=x6t;ur.Type=A6t;ur.use=P6t;ur.visit=C6t;Object.assign(gCe.namedTypes,E6t);});var Ic=chunkTKGT252T_js.c((icn,SCe)=>{var w6t=process.env.NODE_ENV==="production",Q5="Invariant failed";function I6t(e,t){if(!e){if(w6t)throw new Error(Q5);var r=typeof t=="function"?t():t,n=r?"".concat(Q5,": ").concat(r):Q5;throw new Error(n)}}SCe.exports=I6t;});var ECe=chunkTKGT252T_js.c(Z5=>{var TCe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Z5.encode=function(e){if(0<=e&&e<TCe.length)return TCe[e];throw new TypeError("Must be between 0 and 63: "+e)};Z5.decode=function(e){var t=65,r=90,n=97,i=122,s=48,a=57,o=43,u=47,l=26,c=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:s<=e&&e<=a?e-s+c:e==o?62:e==u?63:-1};});var r6=chunkTKGT252T_js.c(t6=>{var bCe=ECe(),e6=5,vCe=1<<e6,_Ce=vCe-1,xCe=vCe;function O6t(e){return e<0?(-e<<1)+1:(e<<1)+0}function D6t(e){var t=(e&1)===1,r=e>>1;return t?-r:r}t6.encode=function(t){var r="",n,i=O6t(t);do n=i&_Ce,i>>>=e6,i>0&&(n|=xCe),r+=bCe.encode(n);while(i>0);return r};t6.decode=function(t,r,n){var i=t.length,s=0,a=0,o,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=bCe.decode(t.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));o=!!(u&xCe),u&=_Ce,s=s+(u<<a),a+=e6;}while(o);n.value=D6t(s),n.rest=r;};});var IS=chunkTKGT252T_js.c(Ts=>{function N6t(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}Ts.getArg=N6t;var ACe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,R6t=/^data:.+\,.+$/;function iv(e){var t=e.match(ACe);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}Ts.urlParse=iv;function CS(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}Ts.urlGenerate=CS;function n6(e){var t=e,r=iv(e);if(r){if(!r.path)return e;t=r.path;}for(var n=Ts.isAbsolute(t),i=t.split(/\/+/),s,a=0,o=i.length-1;o>=0;o--)s=i[o],s==="."?i.splice(o,1):s===".."?a++:a>0&&(s===""?(i.splice(o+1,a),a=0):(i.splice(o,2),a--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,CS(r)):t}Ts.normalize=n6;function PCe(e,t){e===""&&(e="."),t===""&&(t=".");var r=iv(t),n=iv(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),CS(r);if(r||t.match(R6t))return t;if(n&&!n.host&&!n.path)return n.host=t,CS(n);var i=t.charAt(0)==="/"?t:n6(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,CS(n)):i}Ts.join=PCe;Ts.isAbsolute=function(e){return e.charAt(0)==="/"||ACe.test(e)};function M6t(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r;}return Array(r+1).join("../")+t.substr(e.length+1)}Ts.relative=M6t;var CCe=function(){var e=Object.create(null);return !("__proto__"in e)}();function wCe(e){return e}function L6t(e){return ICe(e)?"$"+e:e}Ts.toSetString=CCe?wCe:L6t;function k6t(e){return ICe(e)?e.slice(1):e}Ts.fromSetString=CCe?wCe:k6t;function ICe(e){if(!e)return !1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return !1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return !1;return !0}function F6t(e,t,r){var n=wS(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:wS(e.name,t.name)}Ts.compareByOriginalPositions=F6t;function B6t(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=wS(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:wS(e.name,t.name)}Ts.compareByGeneratedPositionsDeflated=B6t;function wS(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function j6t(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=wS(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:wS(e.name,t.name)}Ts.compareByGeneratedPositionsInflated=j6t;function U6t(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Ts.parseSourceMapInput=U6t;function q6t(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=iv(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1));}t=PCe(CS(n),t);}return n6(t)}Ts.computeSourceURL=q6t;});var a6=chunkTKGT252T_js.c(OCe=>{var i6=IS(),s6=Object.prototype.hasOwnProperty,Vd=typeof Map<"u";function Oc(){this._array=[],this._set=Vd?new Map:Object.create(null);}Oc.fromArray=function(t,r){for(var n=new Oc,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n};Oc.prototype.size=function(){return Vd?this._set.size:Object.getOwnPropertyNames(this._set).length};Oc.prototype.add=function(t,r){var n=Vd?t:i6.toSetString(t),i=Vd?this.has(t):s6.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Vd?this._set.set(t,s):this._set[n]=s);};Oc.prototype.has=function(t){if(Vd)return this._set.has(t);var r=i6.toSetString(t);return s6.call(this._set,r)};Oc.prototype.indexOf=function(t){if(Vd){var r=this._set.get(t);if(r>=0)return r}else {var n=i6.toSetString(t);if(s6.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};Oc.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Oc.prototype.toArray=function(){return this._array.slice()};OCe.ArraySet=Oc;});var RCe=chunkTKGT252T_js.c(NCe=>{var DCe=IS();function V6t(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||DCe.compareByGeneratedPositionsInflated(e,t)<=0}function EI(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0};}EI.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r);};EI.prototype.add=function(t){V6t(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t));};EI.prototype.toArray=function(){return this._sorted||(this._array.sort(DCe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};NCe.MappingList=EI;});var o6=chunkTKGT252T_js.c(MCe=>{var sv=r6(),Si=IS(),bI=a6().ArraySet,H6t=RCe().MappingList;function Co(e){e||(e={}),this._file=Si.getArg(e,"file",null),this._sourceRoot=Si.getArg(e,"sourceRoot",null),this._skipValidation=Si.getArg(e,"skipValidation",!1),this._sources=new bI,this._names=new bI,this._mappings=new H6t,this._sourcesContents=null;}Co.prototype._version=3;Co.fromSourceMap=function(t){var r=t.sourceRoot,n=new Co({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=Si.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s);}),t.sources.forEach(function(i){var s=i;r!==null&&(s=Si.relative(r,i)),n._sources.has(s)||n._sources.add(s);var a=t.sourceContentFor(i);a!=null&&n.setSourceContent(i,a);}),n};Co.prototype.addMapping=function(t){var r=Si.getArg(t,"generated"),n=Si.getArg(t,"original",null),i=Si.getArg(t,"source",null),s=Si.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s});};Co.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Si.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Si.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Si.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));};Co.prototype.applySourceMap=function(t,r,n){var i=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file;}var s=this._sourceRoot;s!=null&&(i=Si.relative(s,i));var a=new bI,o=new bI;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=t.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=Si.join(n,u.source)),s!=null&&(u.source=Si.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name));}var c=u.source;c!=null&&!a.has(c)&&a.add(c);var p=u.name;p!=null&&!o.has(p)&&o.add(p);},this),this._sources=a,this._names=o,t.sources.forEach(function(u){var l=t.sourceContentFor(u);l!=null&&(n!=null&&(u=Si.join(n,u)),s!=null&&(u=Si.relative(s,u)),this.setSourceContent(u,l));},this);};Co.prototype._validateMapping=function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")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(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}};Co.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,s=0,a=0,o="",u,l,c,p,h=this._mappings.toArray(),f=0,d=h.length;f<d;f++){if(l=h[f],u="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)u+=";",r++;else if(f>0){if(!Si.compareByGeneratedPositionsInflated(l,h[f-1]))continue;u+=",";}u+=sv.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),u+=sv.encode(p-a),a=p,u+=sv.encode(l.originalLine-1-i),i=l.originalLine-1,u+=sv.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(c=this._names.indexOf(l.name),u+=sv.encode(c-s),s=c)),o+=u;}return o};Co.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Si.relative(r,n));var i=Si.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Co.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Co.prototype.toString=function(){return JSON.stringify(this.toJSON())};MCe.SourceMapGenerator=Co;});var LCe=chunkTKGT252T_js.c(Hd=>{Hd.GREATEST_LOWER_BOUND=1;Hd.LEAST_UPPER_BOUND=2;function u6(e,t,r,n,i,s){var a=Math.floor((t-e)/2)+e,o=i(r,n[a],!0);return o===0?a:o>0?t-a>1?u6(a,t,r,n,i,s):s==Hd.LEAST_UPPER_BOUND?t<n.length?t:-1:a:a-e>1?u6(e,a,r,n,i,s):s==Hd.LEAST_UPPER_BOUND?a:e<0?-1:e}Hd.search=function(t,r,n,i){if(r.length===0)return -1;var s=u6(-1,r.length,t,r,n,i||Hd.GREATEST_LOWER_BOUND);if(s<0)return -1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s};});var FCe=chunkTKGT252T_js.c(kCe=>{function l6(e,t,r){var n=e[t];e[t]=e[r],e[r]=n;}function G6t(e,t){return Math.round(e+Math.random()*(t-e))}function c6(e,t,r,n){if(r<n){var i=G6t(r,n),s=r-1;l6(e,i,n);for(var a=e[n],o=r;o<n;o++)t(e[o],a)<=0&&(s+=1,l6(e,s,o));l6(e,s+1,o);var u=s+1;c6(e,t,r,u-1),c6(e,t,u+1,n);}}kCe.quickSort=function(e,t){c6(e,t,0,e.length-1);};});var jCe=chunkTKGT252T_js.c(vI=>{var it=IS(),p6=LCe(),OS=a6().ArraySet,$6t=r6(),av=FCe().quickSort;function wn(e,t){var r=e;return typeof e=="string"&&(r=it.parseSourceMapInput(e)),r.sections!=null?new mu(r,t):new Qi(r,t)}wn.fromSourceMap=function(e,t){return Qi.fromSourceMap(e,t)};wn.prototype._version=3;wn.prototype.__generatedMappings=null;Object.defineProperty(wn.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});wn.prototype.__originalMappings=null;Object.defineProperty(wn.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});wn.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};wn.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};wn.GENERATED_ORDER=1;wn.ORIGINAL_ORDER=2;wn.GREATEST_LOWER_BOUND=1;wn.LEAST_UPPER_BOUND=2;wn.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||wn.GENERATED_ORDER,a;switch(s){case wn.GENERATED_ORDER:a=this._generatedMappings;break;case wn.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;a.map(function(u){var l=u.source===null?null:this._sources.at(u.source);return l=it.computeSourceURL(o,l,this._sourceMapURL),{source:l,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(t,i);};wn.prototype.allGeneratedPositionsFor=function(t){var r=it.getArg(t,"line"),n={source:it.getArg(t,"source"),originalLine:r,originalColumn:it.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return [];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",it.compareByOriginalPositions,p6.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var o=a.originalLine;a&&a.originalLine===o;)i.push({line:it.getArg(a,"generatedLine",null),column:it.getArg(a,"generatedColumn",null),lastColumn:it.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var u=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==u;)i.push({line:it.getArg(a,"generatedLine",null),column:it.getArg(a,"generatedColumn",null),lastColumn:it.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];}return i};vI.SourceMapConsumer=wn;function Qi(e,t){var r=e;typeof e=="string"&&(r=it.parseSourceMapInput(e));var n=it.getArg(r,"version"),i=it.getArg(r,"sources"),s=it.getArg(r,"names",[]),a=it.getArg(r,"sourceRoot",null),o=it.getArg(r,"sourcesContent",null),u=it.getArg(r,"mappings"),l=it.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=it.normalize(a)),i=i.map(String).map(it.normalize).map(function(c){return a&&it.isAbsolute(a)&&it.isAbsolute(c)?it.relative(a,c):c}),this._names=OS.fromArray(s.map(String),!0),this._sources=OS.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(c){return it.computeSourceURL(a,c,t)}),this.sourceRoot=a,this.sourcesContent=o,this._mappings=u,this._sourceMapURL=t,this.file=l;}Qi.prototype=Object.create(wn.prototype);Qi.prototype.consumer=wn;Qi.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=it.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return -1};Qi.fromSourceMap=function(t,r){var n=Object.create(Qi.prototype),i=n._names=OS.fromArray(t._names.toArray(),!0),s=n._sources=OS.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(f){return it.computeSourceURL(n.sourceRoot,f,r)});for(var a=t._mappings.toArray().slice(),o=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,c=a.length;l<c;l++){var p=a[l],h=new BCe;h.generatedLine=p.generatedLine,h.generatedColumn=p.generatedColumn,p.source&&(h.source=s.indexOf(p.source),h.originalLine=p.originalLine,h.originalColumn=p.originalColumn,p.name&&(h.name=i.indexOf(p.name)),u.push(h)),o.push(h);}return av(n.__originalMappings,it.compareByOriginalPositions),n};Qi.prototype._version=3;Object.defineProperty(Qi.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function BCe(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null;}Qi.prototype._parseMappings=function(t,r){for(var n=1,i=0,s=0,a=0,o=0,u=0,l=t.length,c=0,p={},h={},f=[],d=[],m,y,g,v,E;c<l;)if(t.charAt(c)===";")n++,c++,i=0;else if(t.charAt(c)===",")c++;else {for(m=new BCe,m.generatedLine=n,v=c;v<l&&!this._charIsMappingSeparator(t,v);v++);if(y=t.slice(c,v),g=p[y],g)c+=y.length;else {for(g=[];c<v;)$6t.decode(t,c,h),E=h.value,c=h.rest,g.push(E);if(g.length===2)throw new Error("Found a source, but no line and column");if(g.length===3)throw new Error("Found a source and line, but no column");p[y]=g;}m.generatedColumn=i+g[0],i=m.generatedColumn,g.length>1&&(m.source=o+g[1],o+=g[1],m.originalLine=s+g[2],s=m.originalLine,m.originalLine+=1,m.originalColumn=a+g[3],a=m.originalColumn,g.length>4&&(m.name=u+g[4],u+=g[4])),d.push(m),typeof m.originalLine=="number"&&f.push(m);}av(d,it.compareByGeneratedPositionsDeflated),this.__generatedMappings=d,av(f,it.compareByOriginalPositions),this.__originalMappings=f;};Qi.prototype._findMapping=function(t,r,n,i,s,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return p6.search(t,r,s,a)};Qi.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0;}};Qi.prototype.originalPositionFor=function(t){var r={generatedLine:it.getArg(t,"line"),generatedColumn:it.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",it.compareByGeneratedPositionsDeflated,it.getArg(t,"bias",wn.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=it.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=it.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=it.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:it.getArg(i,"originalLine",null),column:it.getArg(i,"originalColumn",null),name:a}}}return {source:null,line:null,column:null,name:null}};Qi.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};Qi.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=it.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=it.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};Qi.prototype.generatedPositionFor=function(t){var r=it.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return {line:null,column:null,lastColumn:null};var n={source:r,originalLine:it.getArg(t,"line"),originalColumn:it.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",it.compareByOriginalPositions,it.getArg(t,"bias",wn.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return {line:it.getArg(s,"generatedLine",null),column:it.getArg(s,"generatedColumn",null),lastColumn:it.getArg(s,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}};vI.BasicSourceMapConsumer=Qi;function mu(e,t){var r=e;typeof e=="string"&&(r=it.parseSourceMapInput(e));var n=it.getArg(r,"version"),i=it.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new OS,this._names=new OS;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var o=it.getArg(a,"offset"),u=it.getArg(o,"line"),l=it.getArg(o,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=o,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new wn(it.getArg(a,"map"),t)}});}mu.prototype=Object.create(wn.prototype);mu.prototype.constructor=wn;mu.prototype._version=3;Object.defineProperty(mu.prototype,"sources",{get:function(){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}});mu.prototype.originalPositionFor=function(t){var r={generatedLine:it.getArg(t,"line"),generatedColumn:it.getArg(t,"column")},n=p6.search(r,this._sections,function(s,a){var o=s.generatedLine-a.generatedOffset.generatedLine;return o||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};mu.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};mu.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};mu.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(it.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return {line:null,column:null}};mu.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var o=s[a],u=i.consumer._sources.at(o.source);u=it.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;o.name&&(l=i.consumer._names.at(o.name),this._names.add(l),l=this._names.indexOf(l));var c={source:u,generatedLine:o.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(i.generatedOffset.generatedLine===o.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:l};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c);}av(this.__generatedMappings,it.compareByGeneratedPositionsDeflated),av(this.__originalMappings,it.compareByOriginalPositions);};vI.IndexedSourceMapConsumer=mu;});var qCe=chunkTKGT252T_js.c(UCe=>{var K6t=o6().SourceMapGenerator,_I=IS(),Y6t=/(\r?\n)/,W6t=10,DS="$$$isSourceNode$$$";function Ua(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[DS]=!0,n!=null&&this.add(n);}Ua.fromStringWithSourceMap=function(t,r,n){var i=new Ua,s=t.split(Y6t),a=0,o=function(){var h=d(),f=d()||"";return h+f;function d(){return a<s.length?s[a++]:void 0}},u=1,l=0,c=null;return r.eachMapping(function(h){if(c!==null)if(u<h.generatedLine)p(c,o()),u++,l=0;else {var f=s[a]||"",d=f.substr(0,h.generatedColumn-l);s[a]=f.substr(h.generatedColumn-l),l=h.generatedColumn,p(c,d),c=h;return}for(;u<h.generatedLine;)i.add(o()),u++;if(l<h.generatedColumn){var f=s[a]||"";i.add(f.substr(0,h.generatedColumn)),s[a]=f.substr(h.generatedColumn),l=h.generatedColumn;}c=h;},this),a<s.length&&(c&&p(c,o()),i.add(s.splice(a).join(""))),r.sources.forEach(function(h){var f=r.sourceContentFor(h);f!=null&&(n!=null&&(h=_I.join(n,h)),i.setSourceContent(h,f));}),i;function p(h,f){if(h===null||h.source===void 0)i.add(f);else {var d=n?_I.join(n,h.source):h.source;i.add(new Ua(h.originalLine,h.originalColumn,d,f,h.name));}}};Ua.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r);},this);else if(t[DS]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Ua.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[DS]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};Ua.prototype.walk=function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[DS]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name});};Ua.prototype.join=function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r;}return this};Ua.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[DS]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};Ua.prototype.setSourceContent=function(t,r){this.sourceContents[_I.toSetString(t)]=r;};Ua.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][DS]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(_I.fromSetString(i[r]),this.sourceContents[i[r]]);};Ua.prototype.toString=function(){var t="";return this.walk(function(r){t+=r;}),t};Ua.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new K6t(t),i=!1,s=null,a=null,o=null,u=null;return this.walk(function(l,c){r.code+=l,c.source!==null&&c.line!==null&&c.column!==null?((s!==c.source||a!==c.line||o!==c.column||u!==c.name)&&n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name}),s=c.source,a=c.line,o=c.column,u=c.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var p=0,h=l.length;p<h;p++)l.charCodeAt(p)===W6t?(r.line++,r.column=0,p+1===h?(s=null,i=!1):i&&n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name})):r.column++;}),this.walkSourceContents(function(l,c){n.setSourceContent(l,c);}),{code:r.code,map:n}};UCe.SourceNode=Ua;});var f6=chunkTKGT252T_js.c(xI=>{xI.SourceMapGenerator=o6().SourceMapGenerator;xI.SourceMapConsumer=jCe().SourceMapConsumer;xI.SourceNode=qCe().SourceNode;});var pl=chunkTKGT252T_js.c(bn=>{Object.defineProperty(bn,"__esModule",{value:!0});bn.isTrailingCommaEnabled=bn.getParentExportDeclaration=bn.isExportDeclaration=bn.fixFaultyLocations=bn.getTrueLoc=bn.composeSourceMaps=bn.copyPos=bn.comparePos=bn.getUnionOfKeys=bn.getOption=bn.isBrowser=bn.getLineTerminator=void 0;var d6=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),ov=d6.__importDefault(Ic()),X6t=d6.__importStar(wc()),AI=X6t.namedTypes,HCe=d6.__importDefault(f6()),VCe=HCe.default.SourceMapConsumer,z6t=HCe.default.SourceMapGenerator,GCe=Object.prototype.hasOwnProperty;function J6t(){return $Ce()?`
`:chunkTKGT252T_js.a("os").EOL||`
`}bn.getLineTerminator=J6t;function $Ce(){return typeof window<"u"&&typeof window.document<"u"}bn.isBrowser=$Ce;function Q6t(e,t,r){return e&&GCe.call(e,t)?e[t]:r}bn.getOption=Q6t;function Z6t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r={},n=e.length,i=0;i<n;++i)for(var s=Object.keys(e[i]),a=s.length,o=0;o<a;++o)r[s[o]]=!0;return r}bn.getUnionOfKeys=Z6t;function cl(e,t){return e.line-t.line||e.column-t.column}bn.comparePos=cl;function Vf(e){return {line:e.line,column:e.column}}bn.copyPos=Vf;function e8t(e,t){if(e){if(!t)return e}else return t||null;var r=new VCe(e),n=new VCe(t),i=new z6t({file:t.file,sourceRoot:t.sourceRoot}),s={};return n.eachMapping(function(a){var o=r.originalPositionFor({line:a.originalLine,column:a.originalColumn}),u=o.source;if(u!==null){i.addMapping({source:u,original:Vf(o),generated:{line:a.generatedLine,column:a.generatedColumn},name:a.name});var l=r.sourceContentFor(u);l&&!GCe.call(s,u)&&(s[u]=l,i.setSourceContent(u,l));}}),i.toJSON()}bn.composeSourceMaps=e8t;function t8t(e,t){if(!e.loc)return null;var r={start:e.loc.start,end:e.loc.end};function n(i){h6(r,i.loc);}return e.declaration&&e.declaration.decorators&&PI(e)&&e.declaration.decorators.forEach(n),cl(r.start,r.end)<0&&(r.start=Vf(r.start),t.skipSpaces(r.start,!1,!0),cl(r.start,r.end)<0&&(r.end=Vf(r.end),t.skipSpaces(r.end,!0,!0))),e.comments&&e.comments.forEach(n),r}bn.getTrueLoc=t8t;function h6(e,t){e&&t&&(cl(t.start,e.start)<0&&(e.start=t.start),cl(e.end,t.end)<0&&(e.end=t.end));}function r8t(e,t){var r=e.loc;if(r&&(r.start.line<1&&(r.start.line=1),r.end.line<1&&(r.end.line=1)),e.type==="File"&&(r.start=t.firstPos(),r.end=t.lastPos()),n8t(e,t),i8t(e,t),r&&e.decorators)e.decorators.forEach(function(a){h6(r,a.loc);});else if(e.declaration&&PI(e)){e.declaration.loc=null;var n=e.declaration.decorators;n&&n.forEach(function(a){h6(r,a.loc);});}else if(AI.MethodDefinition&&AI.MethodDefinition.check(e)||AI.Property.check(e)&&(e.method||e.shorthand))e.value.loc=null,AI.FunctionExpression.check(e.value)&&(e.value.id=null);else if(e.type==="ObjectTypeProperty"){var i=e.loc,s=i&&i.end;s&&(s=Vf(s),t.prevPos(s)&&t.charAt(s)===","&&(s=t.skipSpaces(s,!0,!0))&&(i.end=s));}}bn.fixFaultyLocations=r8t;function n8t(e,t){if(e.type!=="ForStatement")return;function r(n){for(var i=n&&n.loc,s=i&&i.start,a=i&&Vf(i.end);s&&a&&cl(s,a)<0&&(t.prevPos(a),t.charAt(a)===";");)i.end.line=a.line,i.end.column=a.column;}r(e.init),r(e.test),r(e.update);}function i8t(e,t){if(e.type==="TemplateLiteral"&&e.quasis.length!==0){if(e.loc){var r=Vf(e.loc.start);(0, ov.default)(t.charAt(r)==="`"),(0, ov.default)(t.nextPos(r));var n=e.quasis[0];cl(n.loc.start,r)<0&&(n.loc.start=r);var i=Vf(e.loc.end);(0, ov.default)(t.prevPos(i)),(0, ov.default)(t.charAt(i)==="`");var s=e.quasis[e.quasis.length-1];cl(i,s.loc.end)<0&&(s.loc.end=i);}e.expressions.forEach(function(a,o){var u=t.skipSpaces(a.loc.start,!0,!1);if(t.prevPos(u)&&t.charAt(u)==="{"&&t.prevPos(u)&&t.charAt(u)==="$"){var l=e.quasis[o];cl(u,l.loc.end)<0&&(l.loc.end=u);}var c=t.skipSpaces(a.loc.end,!1,!1);if(t.charAt(c)==="}"){(0, ov.default)(t.nextPos(c));var p=e.quasis[o+1];cl(p.loc.start,c)<0&&(p.loc.start=c);}});}}function PI(e){if(e)switch(e.type){case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return !0}return !1}bn.isExportDeclaration=PI;function s8t(e){var t=e.getParentNode();return e.getName()==="declaration"&&PI(t)?t:null}bn.getParentExportDeclaration=s8t;function a8t(e,t){var r=e.trailingComma;return typeof r=="object"?!!r[t]:!!r}bn.isTrailingCommaEnabled=a8t;});var y6=chunkTKGT252T_js.c((uv,m6)=>{(function(t,r){typeof uv=="object"&&typeof m6=="object"?m6.exports=r():typeof define=="function"&&define.amd?define([],r):typeof uv=="object"?uv.esprima=r():t.esprima=r();})(uv,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(3),s=r(8),a=r(15);function o(h,f,d){var m=null,y=function(D,P){d&&d(D,P),m&&m.visit(D,P);},g=typeof d=="function"?y:null,v=!1;if(f){v=typeof f.comment=="boolean"&&f.comment;var E=typeof f.attachComment=="boolean"&&f.attachComment;(v||E)&&(m=new n.CommentHandler,m.attach=E,f.comment=!0,g=y);}var S=!1;f&&typeof f.sourceType=="string"&&(S=f.sourceType==="module");var x;f&&typeof f.jsx=="boolean"&&f.jsx?x=new i.JSXParser(h,f,g):x=new s.Parser(h,f,g);var b=S?x.parseModule():x.parseScript(),A=b;return v&&m&&(A.comments=m.comments),x.config.tokens&&(A.tokens=x.tokens),x.config.tolerant&&(A.errors=x.errorHandler.errors),A}t.parse=o;function u(h,f,d){var m=f||{};return m.sourceType="module",o(h,m,d)}t.parseModule=u;function l(h,f,d){var m=f||{};return m.sourceType="script",o(h,m,d)}t.parseScript=l;function c(h,f,d){var m=new a.Tokenizer(h,f),y;y=[];try{for(;;){var g=m.getNextToken();if(!g)break;d&&(g=d(g)),y.push(g);}}catch(v){m.errorHandler.tolerate(v);}return m.errorHandler.tolerant&&(y.errors=m.errors()),y}t.tokenize=c;var p=r(2);t.Syntax=p.Syntax,t.version="4.0.1";},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=function(){function s(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[];}return s.prototype.insertInnerComments=function(a,o){if(a.type===n.Syntax.BlockStatement&&a.body.length===0){for(var u=[],l=this.leading.length-1;l>=0;--l){var c=this.leading[l];o.end.offset>=c.start&&(u.unshift(c.comment),this.leading.splice(l,1),this.trailing.splice(l,1));}u.length&&(a.innerComments=u);}},s.prototype.findTrailingComments=function(a){var o=[];if(this.trailing.length>0){for(var u=this.trailing.length-1;u>=0;--u){var l=this.trailing[u];l.start>=a.end.offset&&o.unshift(l.comment);}return this.trailing.length=0,o}var c=this.stack[this.stack.length-1];if(c&&c.node.trailingComments){var p=c.node.trailingComments[0];p&&p.range[0]>=a.end.offset&&(o=c.node.trailingComments,delete c.node.trailingComments);}return o},s.prototype.findLeadingComments=function(a){for(var o=[],u;this.stack.length>0;){var l=this.stack[this.stack.length-1];if(l&&l.start>=a.start.offset)u=l.node,this.stack.pop();else break}if(u){for(var c=u.leadingComments?u.leadingComments.length:0,p=c-1;p>=0;--p){var h=u.leadingComments[p];h.range[1]<=a.start.offset&&(o.unshift(h),u.leadingComments.splice(p,1));}return u.leadingComments&&u.leadingComments.length===0&&delete u.leadingComments,o}for(var p=this.leading.length-1;p>=0;--p){var l=this.leading[p];l.start<=a.start.offset&&(o.unshift(l.comment),this.leading.splice(p,1));}return o},s.prototype.visitNode=function(a,o){if(!(a.type===n.Syntax.Program&&a.body.length>0)){this.insertInnerComments(a,o);var u=this.findTrailingComments(o),l=this.findLeadingComments(o);l.length>0&&(a.leadingComments=l),u.length>0&&(a.trailingComments=u),this.stack.push({node:a,start:o.start.offset});}},s.prototype.visitComment=function(a,o){var u=a.type[0]==="L"?"Line":"Block",l={type:u,value:a.value};if(a.range&&(l.range=a.range),a.loc&&(l.loc=a.loc),this.comments.push(l),this.attach){var c={comment:{type:u,value:a.value,range:[o.start.offset,o.end.offset]},start:o.start.offset};a.loc&&(c.comment.loc=a.loc),a.type=u,this.leading.push(c),this.trailing.push(c);}},s.prototype.visit=function(a,o){a.type==="LineComment"?this.visitComment(a,o):a.type==="BlockComment"?this.visitComment(a,o):this.attach&&this.visitNode(a,o);},s}();t.CommentHandler=i;},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"};},function(e,t,r){var n=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m;}||function(d,m){for(var y in m)m.hasOwnProperty(y)&&(d[y]=m[y]);};return function(d,m){f(d,m);function y(){this.constructor=d;}d.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y);}}();Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),s=r(5),a=r(6),o=r(7),u=r(8),l=r(13),c=r(14);l.TokenName[100]="JSXIdentifier",l.TokenName[101]="JSXText";function p(f){var d;switch(f.type){case a.JSXSyntax.JSXIdentifier:var m=f;d=m.name;break;case a.JSXSyntax.JSXNamespacedName:var y=f;d=p(y.namespace)+":"+p(y.name);break;case a.JSXSyntax.JSXMemberExpression:var g=f;d=p(g.object)+"."+p(g.property);break;}return d}var h=function(f){n(d,f);function d(m,y,g){return f.call(this,m,y,g)||this}return d.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():f.prototype.parsePrimaryExpression.call(this)},d.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column;},d.prototype.finishJSX=function(){this.nextToken();},d.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop();},d.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},d.prototype.createJSXChildNode=function(){return {index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},d.prototype.scanXHTMLEntity=function(m){for(var y="&",g=!0,v=!1,E=!1,S=!1;!this.scanner.eof()&&g&&!v;){var x=this.scanner.source[this.scanner.index];if(x===m)break;if(v=x===";",y+=x,++this.scanner.index,!v)switch(y.length){case 2:E=x==="#";break;case 3:E&&(S=x==="x",g=S||i.Character.isDecimalDigit(x.charCodeAt(0)),E=E&&!S);break;default:g=g&&!(E&&!i.Character.isDecimalDigit(x.charCodeAt(0))),g=g&&!(S&&!i.Character.isHexDigit(x.charCodeAt(0)));break}}if(g&&v&&y.length>2){var b=y.substr(1,y.length-2);E&&b.length>1?y=String.fromCharCode(parseInt(b.substr(1),10)):S&&b.length>2?y=String.fromCharCode(parseInt("0"+b.substr(1),16)):!E&&!S&&c.XHTMLEntities[b]&&(y=c.XHTMLEntities[b]);}return y},d.prototype.lexJSX=function(){var m=this.scanner.source.charCodeAt(this.scanner.index);if(m===60||m===62||m===47||m===58||m===61||m===123||m===125){var y=this.scanner.source[this.scanner.index++];return {type:7,value:y,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(m===34||m===39){for(var g=this.scanner.index,v=this.scanner.source[this.scanner.index++],E="";!this.scanner.eof();){var S=this.scanner.source[this.scanner.index++];if(S===v)break;S==="&"?E+=this.scanXHTMLEntity(v):E+=S;}return {type:8,value:E,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:g,end:this.scanner.index}}if(m===46){var x=this.scanner.source.charCodeAt(this.scanner.index+1),b=this.scanner.source.charCodeAt(this.scanner.index+2),y=x===46&&b===46?"...":".",g=this.scanner.index;return this.scanner.index+=y.length,{type:7,value:y,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:g,end:this.scanner.index}}if(m===96)return {type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(m)&&m!==92){var g=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var S=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(S)&&S!==92)++this.scanner.index;else if(S===45)++this.scanner.index;else break}var A=this.scanner.source.slice(g,this.scanner.index);return {type:100,value:A,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:g,end:this.scanner.index}}return this.scanner.lex()},d.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var m=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(m)),m},d.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var m=this.scanner.index,y="";!this.scanner.eof();){var g=this.scanner.source[this.scanner.index];if(g==="{"||g==="<")break;++this.scanner.index,y+=g,i.Character.isLineTerminator(g.charCodeAt(0))&&(++this.scanner.lineNumber,g==="\r"&&this.scanner.source[this.scanner.index]===`
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index);}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var v={type:101,value:y,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:m,end:this.scanner.index};return y.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(v)),v},d.prototype.peekJSXToken=function(){var m=this.scanner.saveState();this.scanner.scanComments();var y=this.lexJSX();return this.scanner.restoreState(m),y},d.prototype.expectJSX=function(m){var y=this.nextJSXToken();(y.type!==7||y.value!==m)&&this.throwUnexpectedToken(y);},d.prototype.matchJSX=function(m){var y=this.peekJSXToken();return y.type===7&&y.value===m},d.prototype.parseJSXIdentifier=function(){var m=this.createJSXNode(),y=this.nextJSXToken();return y.type!==100&&this.throwUnexpectedToken(y),this.finalize(m,new s.JSXIdentifier(y.value))},d.prototype.parseJSXElementName=function(){var m=this.createJSXNode(),y=this.parseJSXIdentifier();if(this.matchJSX(":")){var g=y;this.expectJSX(":");var v=this.parseJSXIdentifier();y=this.finalize(m,new s.JSXNamespacedName(g,v));}else if(this.matchJSX("."))for(;this.matchJSX(".");){var E=y;this.expectJSX(".");var S=this.parseJSXIdentifier();y=this.finalize(m,new s.JSXMemberExpression(E,S));}return y},d.prototype.parseJSXAttributeName=function(){var m=this.createJSXNode(),y,g=this.parseJSXIdentifier();if(this.matchJSX(":")){var v=g;this.expectJSX(":");var E=this.parseJSXIdentifier();y=this.finalize(m,new s.JSXNamespacedName(v,E));}else y=g;return y},d.prototype.parseJSXStringLiteralAttribute=function(){var m=this.createJSXNode(),y=this.nextJSXToken();y.type!==8&&this.throwUnexpectedToken(y);var g=this.getTokenRaw(y);return this.finalize(m,new o.Literal(y.value,g))},d.prototype.parseJSXExpressionAttribute=function(){var m=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var y=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(m,new s.JSXExpressionContainer(y))},d.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},d.prototype.parseJSXNameValueAttribute=function(){var m=this.createJSXNode(),y=this.parseJSXAttributeName(),g=null;return this.matchJSX("=")&&(this.expectJSX("="),g=this.parseJSXAttributeValue()),this.finalize(m,new s.JSXAttribute(y,g))},d.prototype.parseJSXSpreadAttribute=function(){var m=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var y=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(m,new s.JSXSpreadAttribute(y))},d.prototype.parseJSXAttributes=function(){for(var m=[];!this.matchJSX("/")&&!this.matchJSX(">");){var y=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();m.push(y);}return m},d.prototype.parseJSXOpeningElement=function(){var m=this.createJSXNode();this.expectJSX("<");var y=this.parseJSXElementName(),g=this.parseJSXAttributes(),v=this.matchJSX("/");return v&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(m,new s.JSXOpeningElement(y,v,g))},d.prototype.parseJSXBoundaryElement=function(){var m=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var y=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(m,new s.JSXClosingElement(y))}var g=this.parseJSXElementName(),v=this.parseJSXAttributes(),E=this.matchJSX("/");return E&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(m,new s.JSXOpeningElement(g,E,v))},d.prototype.parseJSXEmptyExpression=function(){var m=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(m,new s.JSXEmptyExpression)},d.prototype.parseJSXExpressionContainer=function(){var m=this.createJSXNode();this.expectJSX("{");var y;return this.matchJSX("}")?(y=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),y=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(m,new s.JSXExpressionContainer(y))},d.prototype.parseJSXChildren=function(){for(var m=[];!this.scanner.eof();){var y=this.createJSXChildNode(),g=this.nextJSXText();if(g.start<g.end){var v=this.getTokenRaw(g),E=this.finalize(y,new s.JSXText(g.value,v));m.push(E);}if(this.scanner.source[this.scanner.index]==="{"){var S=this.parseJSXExpressionContainer();m.push(S);}else break}return m},d.prototype.parseComplexJSXElement=function(m){for(var y=[];!this.scanner.eof();){m.children=m.children.concat(this.parseJSXChildren());var g=this.createJSXChildNode(),v=this.parseJSXBoundaryElement();if(v.type===a.JSXSyntax.JSXOpeningElement){var E=v;if(E.selfClosing){var S=this.finalize(g,new s.JSXElement(E,[],null));m.children.push(S);}else y.push(m),m={node:g,opening:E,closing:null,children:[]};}if(v.type===a.JSXSyntax.JSXClosingElement){m.closing=v;var x=p(m.opening.name),b=p(m.closing.name);if(x!==b&&this.tolerateError("Expected corresponding JSX closing tag for %0",x),y.length>0){var S=this.finalize(m.node,new s.JSXElement(m.opening,m.children,m.closing));m=y[y.length-1],m.children.push(S),y.pop();}else break}}return m},d.prototype.parseJSXElement=function(){var m=this.createJSXNode(),y=this.parseJSXOpeningElement(),g=[],v=null;if(!y.selfClosing){var E=this.parseComplexJSXElement({node:m,opening:y,closing:v,children:g});g=E.children,v=E.closing;}return this.finalize(m,new s.JSXElement(y,g,v))},d.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var m=this.parseJSXElement();return this.finishJSX(),m},d.prototype.isStartOfExpression=function(){return f.prototype.isStartOfExpression.call(this)||this.match("<")},d}(u.Parser);t.JSXParser=h;},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r={NonAsciiIdentifierStart:/[\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]/,NonAsciiIdentifierPart:/[\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]/};t.Character={fromCodePoint:function(n){return n<65536?String.fromCharCode(n):String.fromCharCode(55296+(n-65536>>10))+String.fromCharCode(56320+(n-65536&1023))},isWhiteSpace:function(n){return n===32||n===9||n===11||n===12||n===160||n>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(n)>=0},isLineTerminator:function(n){return n===10||n===13||n===8232||n===8233},isIdentifierStart:function(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n===92||n>=128&&r.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(n))},isIdentifierPart:function(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||n===92||n>=128&&r.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(n))},isDecimalDigit:function(n){return n>=48&&n<=57},isHexDigit:function(n){return n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102},isOctalDigit:function(n){return n>=48&&n<=55}};},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(6),i=function(){function m(y){this.type=n.JSXSyntax.JSXClosingElement,this.name=y;}return m}();t.JSXClosingElement=i;var s=function(){function m(y,g,v){this.type=n.JSXSyntax.JSXElement,this.openingElement=y,this.children=g,this.closingElement=v;}return m}();t.JSXElement=s;var a=function(){function m(){this.type=n.JSXSyntax.JSXEmptyExpression;}return m}();t.JSXEmptyExpression=a;var o=function(){function m(y){this.type=n.JSXSyntax.JSXExpressionContainer,this.expression=y;}return m}();t.JSXExpressionContainer=o;var u=function(){function m(y){this.type=n.JSXSyntax.JSXIdentifier,this.name=y;}return m}();t.JSXIdentifier=u;var l=function(){function m(y,g){this.type=n.JSXSyntax.JSXMemberExpression,this.object=y,this.property=g;}return m}();t.JSXMemberExpression=l;var c=function(){function m(y,g){this.type=n.JSXSyntax.JSXAttribute,this.name=y,this.value=g;}return m}();t.JSXAttribute=c;var p=function(){function m(y,g){this.type=n.JSXSyntax.JSXNamespacedName,this.namespace=y,this.name=g;}return m}();t.JSXNamespacedName=p;var h=function(){function m(y,g,v){this.type=n.JSXSyntax.JSXOpeningElement,this.name=y,this.selfClosing=g,this.attributes=v;}return m}();t.JSXOpeningElement=h;var f=function(){function m(y){this.type=n.JSXSyntax.JSXSpreadAttribute,this.argument=y;}return m}();t.JSXSpreadAttribute=f;var d=function(){function m(y,g){this.type=n.JSXSyntax.JSXText,this.value=y,this.raw=g;}return m}();t.JSXText=d;},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"};},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=function(){function ne(ie){this.type=n.Syntax.ArrayExpression,this.elements=ie;}return ne}();t.ArrayExpression=i;var s=function(){function ne(ie){this.type=n.Syntax.ArrayPattern,this.elements=ie;}return ne}();t.ArrayPattern=s;var a=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=ie,this.body=Ce,this.generator=!1,this.expression=Ut,this.async=!1;}return ne}();t.ArrowFunctionExpression=a;var o=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.AssignmentExpression,this.operator=ie,this.left=Ce,this.right=Ut;}return ne}();t.AssignmentExpression=o;var u=function(){function ne(ie,Ce){this.type=n.Syntax.AssignmentPattern,this.left=ie,this.right=Ce;}return ne}();t.AssignmentPattern=u;var l=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=ie,this.body=Ce,this.generator=!1,this.expression=Ut,this.async=!0;}return ne}();t.AsyncArrowFunctionExpression=l;var c=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.FunctionDeclaration,this.id=ie,this.params=Ce,this.body=Ut,this.generator=!1,this.expression=!1,this.async=!0;}return ne}();t.AsyncFunctionDeclaration=c;var p=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.FunctionExpression,this.id=ie,this.params=Ce,this.body=Ut,this.generator=!1,this.expression=!1,this.async=!0;}return ne}();t.AsyncFunctionExpression=p;var h=function(){function ne(ie){this.type=n.Syntax.AwaitExpression,this.argument=ie;}return ne}();t.AwaitExpression=h;var f=function(){function ne(ie,Ce,Ut){var as=ie==="||"||ie==="&&";this.type=as?n.Syntax.LogicalExpression:n.Syntax.BinaryExpression,this.operator=ie,this.left=Ce,this.right=Ut;}return ne}();t.BinaryExpression=f;var d=function(){function ne(ie){this.type=n.Syntax.BlockStatement,this.body=ie;}return ne}();t.BlockStatement=d;var m=function(){function ne(ie){this.type=n.Syntax.BreakStatement,this.label=ie;}return ne}();t.BreakStatement=m;var y=function(){function ne(ie,Ce){this.type=n.Syntax.CallExpression,this.callee=ie,this.arguments=Ce;}return ne}();t.CallExpression=y;var g=function(){function ne(ie,Ce){this.type=n.Syntax.CatchClause,this.param=ie,this.body=Ce;}return ne}();t.CatchClause=g;var v=function(){function ne(ie){this.type=n.Syntax.ClassBody,this.body=ie;}return ne}();t.ClassBody=v;var E=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.ClassDeclaration,this.id=ie,this.superClass=Ce,this.body=Ut;}return ne}();t.ClassDeclaration=E;var S=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.ClassExpression,this.id=ie,this.superClass=Ce,this.body=Ut;}return ne}();t.ClassExpression=S;var x=function(){function ne(ie,Ce){this.type=n.Syntax.MemberExpression,this.computed=!0,this.object=ie,this.property=Ce;}return ne}();t.ComputedMemberExpression=x;var b=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.ConditionalExpression,this.test=ie,this.consequent=Ce,this.alternate=Ut;}return ne}();t.ConditionalExpression=b;var A=function(){function ne(ie){this.type=n.Syntax.ContinueStatement,this.label=ie;}return ne}();t.ContinueStatement=A;var D=function(){function ne(){this.type=n.Syntax.DebuggerStatement;}return ne}();t.DebuggerStatement=D;var P=function(){function ne(ie,Ce){this.type=n.Syntax.ExpressionStatement,this.expression=ie,this.directive=Ce;}return ne}();t.Directive=P;var V=function(){function ne(ie,Ce){this.type=n.Syntax.DoWhileStatement,this.body=ie,this.test=Ce;}return ne}();t.DoWhileStatement=V;var X=function(){function ne(){this.type=n.Syntax.EmptyStatement;}return ne}();t.EmptyStatement=X;var oe=function(){function ne(ie){this.type=n.Syntax.ExportAllDeclaration,this.source=ie;}return ne}();t.ExportAllDeclaration=oe;var le=function(){function ne(ie){this.type=n.Syntax.ExportDefaultDeclaration,this.declaration=ie;}return ne}();t.ExportDefaultDeclaration=le;var Be=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.ExportNamedDeclaration,this.declaration=ie,this.specifiers=Ce,this.source=Ut;}return ne}();t.ExportNamedDeclaration=Be;var be=function(){function ne(ie,Ce){this.type=n.Syntax.ExportSpecifier,this.exported=Ce,this.local=ie;}return ne}();t.ExportSpecifier=be;var Ee=function(){function ne(ie){this.type=n.Syntax.ExpressionStatement,this.expression=ie;}return ne}();t.ExpressionStatement=Ee;var Te=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.ForInStatement,this.left=ie,this.right=Ce,this.body=Ut,this.each=!1;}return ne}();t.ForInStatement=Te;var Me=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.ForOfStatement,this.left=ie,this.right=Ce,this.body=Ut;}return ne}();t.ForOfStatement=Me;var At=function(){function ne(ie,Ce,Ut,as){this.type=n.Syntax.ForStatement,this.init=ie,this.test=Ce,this.update=Ut,this.body=as;}return ne}();t.ForStatement=At;var ue=function(){function ne(ie,Ce,Ut,as){this.type=n.Syntax.FunctionDeclaration,this.id=ie,this.params=Ce,this.body=Ut,this.generator=as,this.expression=!1,this.async=!1;}return ne}();t.FunctionDeclaration=ue;var fe=function(){function ne(ie,Ce,Ut,as){this.type=n.Syntax.FunctionExpression,this.id=ie,this.params=Ce,this.body=Ut,this.generator=as,this.expression=!1,this.async=!1;}return ne}();t.FunctionExpression=fe;var Se=function(){function ne(ie){this.type=n.Syntax.Identifier,this.name=ie;}return ne}();t.Identifier=Se;var je=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.IfStatement,this.test=ie,this.consequent=Ce,this.alternate=Ut;}return ne}();t.IfStatement=je;var Ct=function(){function ne(ie,Ce){this.type=n.Syntax.ImportDeclaration,this.specifiers=ie,this.source=Ce;}return ne}();t.ImportDeclaration=Ct;var Nt=function(){function ne(ie){this.type=n.Syntax.ImportDefaultSpecifier,this.local=ie;}return ne}();t.ImportDefaultSpecifier=Nt;var fn=function(){function ne(ie){this.type=n.Syntax.ImportNamespaceSpecifier,this.local=ie;}return ne}();t.ImportNamespaceSpecifier=fn;var xr=function(){function ne(ie,Ce){this.type=n.Syntax.ImportSpecifier,this.local=ie,this.imported=Ce;}return ne}();t.ImportSpecifier=xr;var Ar=function(){function ne(ie,Ce){this.type=n.Syntax.LabeledStatement,this.label=ie,this.body=Ce;}return ne}();t.LabeledStatement=Ar;var di=function(){function ne(ie,Ce){this.type=n.Syntax.Literal,this.value=ie,this.raw=Ce;}return ne}();t.Literal=di;var Ai=function(){function ne(ie,Ce){this.type=n.Syntax.MetaProperty,this.meta=ie,this.property=Ce;}return ne}();t.MetaProperty=Ai;var Ni=function(){function ne(ie,Ce,Ut,as,Oh){this.type=n.Syntax.MethodDefinition,this.key=ie,this.computed=Ce,this.value=Ut,this.kind=as,this.static=Oh;}return ne}();t.MethodDefinition=Ni;var Ri=function(){function ne(ie){this.type=n.Syntax.Program,this.body=ie,this.sourceType="module";}return ne}();t.Module=Ri;var Iu=function(){function ne(ie,Ce){this.type=n.Syntax.NewExpression,this.callee=ie,this.arguments=Ce;}return ne}();t.NewExpression=Iu;var Ho=function(){function ne(ie){this.type=n.Syntax.ObjectExpression,this.properties=ie;}return ne}();t.ObjectExpression=Ho;var Ou=function(){function ne(ie){this.type=n.Syntax.ObjectPattern,this.properties=ie;}return ne}();t.ObjectPattern=Ou;var Go=function(){function ne(ie,Ce,Ut,as,Oh,kl){this.type=n.Syntax.Property,this.key=Ce,this.computed=Ut,this.value=as,this.kind=ie,this.method=Oh,this.shorthand=kl;}return ne}();t.Property=Go;var Du=function(){function ne(ie,Ce,Ut,as){this.type=n.Syntax.Literal,this.value=ie,this.raw=Ce,this.regex={pattern:Ut,flags:as};}return ne}();t.RegexLiteral=Du;var Xa=function(){function ne(ie){this.type=n.Syntax.RestElement,this.argument=ie;}return ne}();t.RestElement=Xa;var xa=function(){function ne(ie){this.type=n.Syntax.ReturnStatement,this.argument=ie;}return ne}();t.ReturnStatement=xa;var Ih=function(){function ne(ie){this.type=n.Syntax.Program,this.body=ie,this.sourceType="script";}return ne}();t.Script=Ih;var ae=function(){function ne(ie){this.type=n.Syntax.SequenceExpression,this.expressions=ie;}return ne}();t.SequenceExpression=ae;var ve=function(){function ne(ie){this.type=n.Syntax.SpreadElement,this.argument=ie;}return ne}();t.SpreadElement=ve;var Pe=function(){function ne(ie,Ce){this.type=n.Syntax.MemberExpression,this.computed=!1,this.object=ie,this.property=Ce;}return ne}();t.StaticMemberExpression=Pe;var Le=function(){function ne(){this.type=n.Syntax.Super;}return ne}();t.Super=Le;var Pt=function(){function ne(ie,Ce){this.type=n.Syntax.SwitchCase,this.test=ie,this.consequent=Ce;}return ne}();t.SwitchCase=Pt;var lt=function(){function ne(ie,Ce){this.type=n.Syntax.SwitchStatement,this.discriminant=ie,this.cases=Ce;}return ne}();t.SwitchStatement=lt;var fr=function(){function ne(ie,Ce){this.type=n.Syntax.TaggedTemplateExpression,this.tag=ie,this.quasi=Ce;}return ne}();t.TaggedTemplateExpression=fr;var Rr=function(){function ne(ie,Ce){this.type=n.Syntax.TemplateElement,this.value=ie,this.tail=Ce;}return ne}();t.TemplateElement=Rr;var Xt=function(){function ne(ie,Ce){this.type=n.Syntax.TemplateLiteral,this.quasis=ie,this.expressions=Ce;}return ne}();t.TemplateLiteral=Xt;var Hr=function(){function ne(){this.type=n.Syntax.ThisExpression;}return ne}();t.ThisExpression=Hr;var Pi=function(){function ne(ie){this.type=n.Syntax.ThrowStatement,this.argument=ie;}return ne}();t.ThrowStatement=Pi;var Ke=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.TryStatement,this.block=ie,this.handler=Ce,this.finalizer=Ut;}return ne}();t.TryStatement=Ke;var ct=function(){function ne(ie,Ce){this.type=n.Syntax.UnaryExpression,this.operator=ie,this.argument=Ce,this.prefix=!0;}return ne}();t.UnaryExpression=ct;var un=function(){function ne(ie,Ce,Ut){this.type=n.Syntax.UpdateExpression,this.operator=ie,this.argument=Ce,this.prefix=Ut;}return ne}();t.UpdateExpression=un;var Xn=function(){function ne(ie,Ce){this.type=n.Syntax.VariableDeclaration,this.declarations=ie,this.kind=Ce;}return ne}();t.VariableDeclaration=Xn;var Aa=function(){function ne(ie,Ce){this.type=n.Syntax.VariableDeclarator,this.id=ie,this.init=Ce;}return ne}();t.VariableDeclarator=Aa;var yp=function(){function ne(ie,Ce){this.type=n.Syntax.WhileStatement,this.test=ie,this.body=Ce;}return ne}();t.WhileStatement=yp;var gp=function(){function ne(ie,Ce){this.type=n.Syntax.WithStatement,this.object=ie,this.body=Ce;}return ne}();t.WithStatement=gp;var tE=function(){function ne(ie,Ce){this.type=n.Syntax.YieldExpression,this.argument=ie,this.delegate=Ce;}return ne}();t.YieldExpression=tE;},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=r(10),s=r(11),a=r(7),o=r(12),u=r(2),l=r(13),c="ArrowParameterPlaceHolder",p=function(){function h(f,d,m){d===void 0&&(d={}),this.config={range:typeof d.range=="boolean"&&d.range,loc:typeof d.loc=="boolean"&&d.loc,source:null,tokens:typeof d.tokens=="boolean"&&d.tokens,comment:typeof d.comment=="boolean"&&d.comment,tolerant:typeof d.tolerant=="boolean"&&d.tolerant},this.config.loc&&d.source&&d.source!==null&&(this.config.source=String(d.source)),this.delegate=m,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new o.Scanner(f,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart};}return h.prototype.throwError=function(f){for(var d=[],m=1;m<arguments.length;m++)d[m-1]=arguments[m];var y=Array.prototype.slice.call(arguments,1),g=f.replace(/%(\d)/g,function(x,b){return n.assert(b<y.length,"Message reference must be in range"),y[b]}),v=this.lastMarker.index,E=this.lastMarker.line,S=this.lastMarker.column+1;throw this.errorHandler.createError(v,E,S,g)},h.prototype.tolerateError=function(f){for(var d=[],m=1;m<arguments.length;m++)d[m-1]=arguments[m];var y=Array.prototype.slice.call(arguments,1),g=f.replace(/%(\d)/g,function(x,b){return n.assert(b<y.length,"Message reference must be in range"),y[b]}),v=this.lastMarker.index,E=this.scanner.lineNumber,S=this.lastMarker.column+1;this.errorHandler.tolerateError(v,E,S,g);},h.prototype.unexpectedTokenError=function(f,d){var m=d||s.Messages.UnexpectedToken,y;if(f?(d||(m=f.type===2?s.Messages.UnexpectedEOS:f.type===3?s.Messages.UnexpectedIdentifier:f.type===6?s.Messages.UnexpectedNumber:f.type===8?s.Messages.UnexpectedString:f.type===10?s.Messages.UnexpectedTemplate:s.Messages.UnexpectedToken,f.type===4&&(this.scanner.isFutureReservedWord(f.value)?m=s.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(f.value)&&(m=s.Messages.StrictReservedWord))),y=f.value):y="ILLEGAL",m=m.replace("%0",y),f&&typeof f.lineNumber=="number"){var g=f.start,v=f.lineNumber,E=this.lastMarker.index-this.lastMarker.column,S=f.start-E+1;return this.errorHandler.createError(g,v,S,m)}else {var g=this.lastMarker.index,v=this.lastMarker.line,S=this.lastMarker.column+1;return this.errorHandler.createError(g,v,S,m)}},h.prototype.throwUnexpectedToken=function(f,d){throw this.unexpectedTokenError(f,d)},h.prototype.tolerateUnexpectedToken=function(f,d){this.errorHandler.tolerate(this.unexpectedTokenError(f,d));},h.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else {var f=this.scanner.scanComments();if(f.length>0&&this.delegate)for(var d=0;d<f.length;++d){var m=f[d],y=void 0;y={type:m.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(m.slice[0],m.slice[1])},this.config.range&&(y.range=m.range),this.config.loc&&(y.loc=m.loc);var g={start:{line:m.loc.start.line,column:m.loc.start.column,offset:m.range[0]},end:{line:m.loc.end.line,column:m.loc.end.column,offset:m.range[1]}};this.delegate(y,g);}}},h.prototype.getTokenRaw=function(f){return this.scanner.source.slice(f.start,f.end)},h.prototype.convertToken=function(f){var d={type:l.TokenName[f.type],value:this.getTokenRaw(f)};if(this.config.range&&(d.range=[f.start,f.end]),this.config.loc&&(d.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),f.type===9){var m=f.pattern,y=f.flags;d.regex={pattern:m,flags:y};}return d},h.prototype.nextToken=function(){var f=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var d=this.scanner.lex();return this.hasLineTerminator=f.lineNumber!==d.lineNumber,d&&this.context.strict&&d.type===3&&this.scanner.isStrictModeReservedWord(d.value)&&(d.type=4),this.lookahead=d,this.config.tokens&&d.type!==2&&this.tokens.push(this.convertToken(d)),f},h.prototype.nextRegexToken=function(){this.collectComments();var f=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(f))),this.lookahead=f,this.nextToken(),f},h.prototype.createNode=function(){return {index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},h.prototype.startNode=function(f,d){d===void 0&&(d=0);var m=f.start-f.lineStart,y=f.lineNumber;return m<0&&(m+=d,y--),{index:f.start,line:y,column:m}},h.prototype.finalize=function(f,d){if(this.config.range&&(d.range=[f.index,this.lastMarker.index]),this.config.loc&&(d.loc={start:{line:f.line,column:f.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(d.loc.source=this.config.source)),this.delegate){var m={start:{line:f.line,column:f.column,offset:f.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(d,m);}return d},h.prototype.expect=function(f){var d=this.nextToken();(d.type!==7||d.value!==f)&&this.throwUnexpectedToken(d);},h.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var f=this.lookahead;f.type===7&&f.value===","?this.nextToken():f.type===7&&f.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(f)):this.tolerateUnexpectedToken(f,s.Messages.UnexpectedToken);}else this.expect(",");},h.prototype.expectKeyword=function(f){var d=this.nextToken();(d.type!==4||d.value!==f)&&this.throwUnexpectedToken(d);},h.prototype.match=function(f){return this.lookahead.type===7&&this.lookahead.value===f},h.prototype.matchKeyword=function(f){return this.lookahead.type===4&&this.lookahead.value===f},h.prototype.matchContextualKeyword=function(f){return this.lookahead.type===3&&this.lookahead.value===f},h.prototype.matchAssign=function(){if(this.lookahead.type!==7)return !1;var f=this.lookahead.value;return f==="="||f==="*="||f==="**="||f==="/="||f==="%="||f==="+="||f==="-="||f==="<<="||f===">>="||f===">>>="||f==="&="||f==="^="||f==="|="},h.prototype.isolateCoverGrammar=function(f){var d=this.context.isBindingElement,m=this.context.isAssignmentTarget,y=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var g=f.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=d,this.context.isAssignmentTarget=m,this.context.firstCoverInitializedNameError=y,g},h.prototype.inheritCoverGrammar=function(f){var d=this.context.isBindingElement,m=this.context.isAssignmentTarget,y=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var g=f.call(this);return this.context.isBindingElement=this.context.isBindingElement&&d,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&m,this.context.firstCoverInitializedNameError=y||this.context.firstCoverInitializedNameError,g},h.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column);},h.prototype.parsePrimaryExpression=function(){var f=this.createNode(),d,m,y;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),d=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(f,new a.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,s.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,m=this.nextToken(),y=this.getTokenRaw(m),d=this.finalize(f,new a.Literal(m.value,y));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,m=this.nextToken(),y=this.getTokenRaw(m),d=this.finalize(f,new a.Literal(m.value==="true",y));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,m=this.nextToken(),y=this.getTokenRaw(m),d=this.finalize(f,new a.Literal(null,y));break;case 10:d=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,d=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":d=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":d=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,m=this.nextRegexToken(),y=this.getTokenRaw(m),d=this.finalize(f,new a.RegexLiteral(m.regex,y,m.pattern,m.flags));break;default:d=this.throwUnexpectedToken(this.nextToken());}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?d=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?d=this.finalize(f,new a.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?d=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),d=this.finalize(f,new a.ThisExpression)):this.matchKeyword("class")?d=this.parseClassExpression():d=this.throwUnexpectedToken(this.nextToken()));break;default:d=this.throwUnexpectedToken(this.nextToken());}return d},h.prototype.parseSpreadElement=function(){var f=this.createNode();this.expect("...");var d=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(f,new a.SpreadElement(d))},h.prototype.parseArrayInitializer=function(){var f=this.createNode(),d=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),d.push(null);else if(this.match("...")){var m=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),d.push(m);}else d.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(f,new a.ArrayExpression(d))},h.prototype.parsePropertyMethod=function(f){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var d=this.context.strict,m=this.context.allowStrictDirective;this.context.allowStrictDirective=f.simple;var y=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&f.firstRestricted&&this.tolerateUnexpectedToken(f.firstRestricted,f.message),this.context.strict&&f.stricted&&this.tolerateUnexpectedToken(f.stricted,f.message),this.context.strict=d,this.context.allowStrictDirective=m,y},h.prototype.parsePropertyMethodFunction=function(){var f=!1,d=this.createNode(),m=this.context.allowYield;this.context.allowYield=!0;var y=this.parseFormalParameters(),g=this.parsePropertyMethod(y);return this.context.allowYield=m,this.finalize(d,new a.FunctionExpression(null,y.params,g,f))},h.prototype.parsePropertyMethodAsyncFunction=function(){var f=this.createNode(),d=this.context.allowYield,m=this.context.await;this.context.allowYield=!1,this.context.await=!0;var y=this.parseFormalParameters(),g=this.parsePropertyMethod(y);return this.context.allowYield=d,this.context.await=m,this.finalize(f,new a.AsyncFunctionExpression(null,y.params,g))},h.prototype.parseObjectPropertyKey=function(){var f=this.createNode(),d=this.nextToken(),m;switch(d.type){case 8:case 6:this.context.strict&&d.octal&&this.tolerateUnexpectedToken(d,s.Messages.StrictOctalLiteral);var y=this.getTokenRaw(d);m=this.finalize(f,new a.Literal(d.value,y));break;case 3:case 1:case 5:case 4:m=this.finalize(f,new a.Identifier(d.value));break;case 7:d.value==="["?(m=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):m=this.throwUnexpectedToken(d);break;default:m=this.throwUnexpectedToken(d);}return m},h.prototype.isPropertyKey=function(f,d){return f.type===u.Syntax.Identifier&&f.name===d||f.type===u.Syntax.Literal&&f.value===d},h.prototype.parseObjectProperty=function(f){var d=this.createNode(),m=this.lookahead,y,g=null,v=null,E=!1,S=!1,x=!1,b=!1;if(m.type===3){var A=m.value;this.nextToken(),E=this.match("["),b=!this.hasLineTerminator&&A==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),g=b?this.parseObjectPropertyKey():this.finalize(d,new a.Identifier(A));}else this.match("*")?this.nextToken():(E=this.match("["),g=this.parseObjectPropertyKey());var D=this.qualifiedPropertyName(this.lookahead);if(m.type===3&&!b&&m.value==="get"&&D)y="get",E=this.match("["),g=this.parseObjectPropertyKey(),this.context.allowYield=!1,v=this.parseGetterMethod();else if(m.type===3&&!b&&m.value==="set"&&D)y="set",E=this.match("["),g=this.parseObjectPropertyKey(),v=this.parseSetterMethod();else if(m.type===7&&m.value==="*"&&D)y="init",E=this.match("["),g=this.parseObjectPropertyKey(),v=this.parseGeneratorMethod(),S=!0;else if(g||this.throwUnexpectedToken(this.lookahead),y="init",this.match(":")&&!b)!E&&this.isPropertyKey(g,"__proto__")&&(f.value&&this.tolerateError(s.Messages.DuplicateProtoProperty),f.value=!0),this.nextToken(),v=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))v=b?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),S=!0;else if(m.type===3){var A=this.finalize(d,new a.Identifier(m.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),x=!0;var P=this.isolateCoverGrammar(this.parseAssignmentExpression);v=this.finalize(d,new a.AssignmentPattern(A,P));}else x=!0,v=A;}else this.throwUnexpectedToken(this.nextToken());return this.finalize(d,new a.Property(y,g,E,v,S,x))},h.prototype.parseObjectInitializer=function(){var f=this.createNode();this.expect("{");for(var d=[],m={value:!1};!this.match("}");)d.push(this.parseObjectProperty(m)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(f,new a.ObjectExpression(d))},h.prototype.parseTemplateHead=function(){n.assert(this.lookahead.head,"Template literal must start with a template head");var f=this.createNode(),d=this.nextToken(),m=d.value,y=d.cooked;return this.finalize(f,new a.TemplateElement({raw:m,cooked:y},d.tail))},h.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var f=this.createNode(),d=this.nextToken(),m=d.value,y=d.cooked;return this.finalize(f,new a.TemplateElement({raw:m,cooked:y},d.tail))},h.prototype.parseTemplateLiteral=function(){var f=this.createNode(),d=[],m=[],y=this.parseTemplateHead();for(m.push(y);!y.tail;)d.push(this.parseExpression()),y=this.parseTemplateElement(),m.push(y);return this.finalize(f,new a.TemplateLiteral(m,d))},h.prototype.reinterpretExpressionAsPattern=function(f){switch(f.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:f.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(f.argument);break;case u.Syntax.ArrayExpression:f.type=u.Syntax.ArrayPattern;for(var d=0;d<f.elements.length;d++)f.elements[d]!==null&&this.reinterpretExpressionAsPattern(f.elements[d]);break;case u.Syntax.ObjectExpression:f.type=u.Syntax.ObjectPattern;for(var d=0;d<f.properties.length;d++)this.reinterpretExpressionAsPattern(f.properties[d].value);break;case u.Syntax.AssignmentExpression:f.type=u.Syntax.AssignmentPattern,delete f.operator,this.reinterpretExpressionAsPattern(f.left);break;}},h.prototype.parseGroupExpression=function(){var f;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),f={type:c,params:[],async:!1};else {var d=this.lookahead,m=[];if(this.match("..."))f=this.parseRestElement(m),this.expect(")"),this.match("=>")||this.expect("=>"),f={type:c,params:[f],async:!1};else {var y=!1;if(this.context.isBindingElement=!0,f=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var g=[];for(this.context.isAssignmentTarget=!1,g.push(f);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var v=0;v<g.length;v++)this.reinterpretExpressionAsPattern(g[v]);y=!0,f={type:c,params:g,async:!1};}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),g.push(this.parseRestElement(m)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var v=0;v<g.length;v++)this.reinterpretExpressionAsPattern(g[v]);y=!0,f={type:c,params:g,async:!1};}else g.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(y)break}y||(f=this.finalize(this.startNode(d),new a.SequenceExpression(g)));}if(!y){if(this.expect(")"),this.match("=>")&&(f.type===u.Syntax.Identifier&&f.name==="yield"&&(y=!0,f={type:c,params:[f],async:!1}),!y)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),f.type===u.Syntax.SequenceExpression)for(var v=0;v<f.expressions.length;v++)this.reinterpretExpressionAsPattern(f.expressions[v]);else this.reinterpretExpressionAsPattern(f);var E=f.type===u.Syntax.SequenceExpression?f.expressions:[f];f={type:c,params:E,async:!1};}this.context.isBindingElement=!1;}}}return f},h.prototype.parseArguments=function(){this.expect("(");var f=[];if(!this.match(")"))for(;;){var d=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(f.push(d),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),f},h.prototype.isIdentifierName=function(f){return f.type===3||f.type===4||f.type===1||f.type===5},h.prototype.parseIdentifierName=function(){var f=this.createNode(),d=this.nextToken();return this.isIdentifierName(d)||this.throwUnexpectedToken(d),this.finalize(f,new a.Identifier(d.value))},h.prototype.parseNewExpression=function(){var f=this.createNode(),d=this.parseIdentifierName();n.assert(d.name==="new","New expression must start with `new`");var m;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var y=this.parseIdentifierName();m=new a.MetaProperty(d,y);}else this.throwUnexpectedToken(this.lookahead);else {var g=this.isolateCoverGrammar(this.parseLeftHandSideExpression),v=this.match("(")?this.parseArguments():[];m=new a.NewExpression(g,v),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;}return this.finalize(f,m)},h.prototype.parseAsyncArgument=function(){var f=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,f},h.prototype.parseAsyncArguments=function(){this.expect("(");var f=[];if(!this.match(")"))for(;;){var d=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(f.push(d),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),f},h.prototype.parseLeftHandSideExpressionAllowCall=function(){var f=this.lookahead,d=this.matchContextualKeyword("async"),m=this.context.allowIn;this.context.allowIn=!0;var y;for(this.matchKeyword("super")&&this.context.inFunctionBody?(y=this.createNode(),this.nextToken(),y=this.finalize(y,new a.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):y=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var g=this.parseIdentifierName();y=this.finalize(this.startNode(f),new a.StaticMemberExpression(y,g));}else if(this.match("(")){var v=d&&f.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var E=v?this.parseAsyncArguments():this.parseArguments();if(y=this.finalize(this.startNode(f),new a.CallExpression(y,E)),v&&this.match("=>")){for(var S=0;S<E.length;++S)this.reinterpretExpressionAsPattern(E[S]);y={type:c,params:E,async:!0};}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var g=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),y=this.finalize(this.startNode(f),new a.ComputedMemberExpression(y,g));}else if(this.lookahead.type===10&&this.lookahead.head){var x=this.parseTemplateLiteral();y=this.finalize(this.startNode(f),new a.TaggedTemplateExpression(y,x));}else break;return this.context.allowIn=m,y},h.prototype.parseSuper=function(){var f=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(f,new a.Super)},h.prototype.parseLeftHandSideExpression=function(){n.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var f=this.startNode(this.lookahead),d=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var m=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),d=this.finalize(f,new a.ComputedMemberExpression(d,m));}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var m=this.parseIdentifierName();d=this.finalize(f,new a.StaticMemberExpression(d,m));}else if(this.lookahead.type===10&&this.lookahead.head){var y=this.parseTemplateLiteral();d=this.finalize(f,new a.TaggedTemplateExpression(d,y));}else break;return d},h.prototype.parseUpdateExpression=function(){var f,d=this.lookahead;if(this.match("++")||this.match("--")){var m=this.startNode(d),y=this.nextToken();f=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&f.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(f.name)&&this.tolerateError(s.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment);var g=!0;f=this.finalize(m,new a.UpdateExpression(y.value,f,g)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;}else if(f=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&f.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(f.name)&&this.tolerateError(s.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var v=this.nextToken().value,g=!1;f=this.finalize(this.startNode(d),new a.UpdateExpression(v,f,g));}return f},h.prototype.parseAwaitExpression=function(){var f=this.createNode();this.nextToken();var d=this.parseUnaryExpression();return this.finalize(f,new a.AwaitExpression(d))},h.prototype.parseUnaryExpression=function(){var f;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var d=this.startNode(this.lookahead),m=this.nextToken();f=this.inheritCoverGrammar(this.parseUnaryExpression),f=this.finalize(d,new a.UnaryExpression(m.value,f)),this.context.strict&&f.operator==="delete"&&f.argument.type===u.Syntax.Identifier&&this.tolerateError(s.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;}else this.context.await&&this.matchContextualKeyword("await")?f=this.parseAwaitExpression():f=this.parseUpdateExpression();return f},h.prototype.parseExponentiationExpression=function(){var f=this.lookahead,d=this.inheritCoverGrammar(this.parseUnaryExpression);if(d.type!==u.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var m=d,y=this.isolateCoverGrammar(this.parseExponentiationExpression);d=this.finalize(this.startNode(f),new a.BinaryExpression("**",m,y));}return d},h.prototype.binaryPrecedence=function(f){var d=f.value,m;return f.type===7?m=this.operatorPrecedence[d]||0:f.type===4?m=d==="instanceof"||this.context.allowIn&&d==="in"?7:0:m=0,m},h.prototype.parseBinaryExpression=function(){var f=this.lookahead,d=this.inheritCoverGrammar(this.parseExponentiationExpression),m=this.lookahead,y=this.binaryPrecedence(m);if(y>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var g=[f,this.lookahead],v=d,E=this.isolateCoverGrammar(this.parseExponentiationExpression),S=[v,m.value,E],x=[y];y=this.binaryPrecedence(this.lookahead),!(y<=0);){for(;S.length>2&&y<=x[x.length-1];){E=S.pop();var b=S.pop();x.pop(),v=S.pop(),g.pop();var A=this.startNode(g[g.length-1]);S.push(this.finalize(A,new a.BinaryExpression(b,v,E)));}S.push(this.nextToken().value),x.push(y),g.push(this.lookahead),S.push(this.isolateCoverGrammar(this.parseExponentiationExpression));}var D=S.length-1;d=S[D];for(var P=g.pop();D>1;){var V=g.pop(),X=P&&P.lineStart,A=this.startNode(V,X),b=S[D-1];d=this.finalize(A,new a.BinaryExpression(b,S[D-2],d)),D-=2,P=V;}}return d},h.prototype.parseConditionalExpression=function(){var f=this.lookahead,d=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var m=this.context.allowIn;this.context.allowIn=!0;var y=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=m,this.expect(":");var g=this.isolateCoverGrammar(this.parseAssignmentExpression);d=this.finalize(this.startNode(f),new a.ConditionalExpression(d,y,g)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;}return d},h.prototype.checkPatternParam=function(f,d){switch(d.type){case u.Syntax.Identifier:this.validateParam(f,d,d.name);break;case u.Syntax.RestElement:this.checkPatternParam(f,d.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(f,d.left);break;case u.Syntax.ArrayPattern:for(var m=0;m<d.elements.length;m++)d.elements[m]!==null&&this.checkPatternParam(f,d.elements[m]);break;case u.Syntax.ObjectPattern:for(var m=0;m<d.properties.length;m++)this.checkPatternParam(f,d.properties[m].value);break;}f.simple=f.simple&&d instanceof a.Identifier;},h.prototype.reinterpretAsCoverFormalsList=function(f){var d=[f],m,y=!1;switch(f.type){case u.Syntax.Identifier:break;case c:d=f.params,y=f.async;break;default:return null}m={simple:!0,paramSet:{}};for(var g=0;g<d.length;++g){var v=d[g];v.type===u.Syntax.AssignmentPattern?v.right.type===u.Syntax.YieldExpression&&(v.right.argument&&this.throwUnexpectedToken(this.lookahead),v.right.type=u.Syntax.Identifier,v.right.name="yield",delete v.right.argument,delete v.right.delegate):y&&v.type===u.Syntax.Identifier&&v.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(m,v),d[g]=v;}if(this.context.strict||!this.context.allowYield)for(var g=0;g<d.length;++g){var v=d[g];v.type===u.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead);}if(m.message===s.Messages.StrictParamDupe){var E=this.context.strict?m.stricted:m.firstRestricted;this.throwUnexpectedToken(E,m.message);}return {simple:m.simple,params:d,stricted:m.stricted,firstRestricted:m.firstRestricted,message:m.message}},h.prototype.parseAssignmentExpression=function(){var f;if(!this.context.allowYield&&this.matchKeyword("yield"))f=this.parseYieldExpression();else {var d=this.lookahead,m=d;if(f=this.parseConditionalExpression(),m.type===3&&m.lineNumber===this.lookahead.lineNumber&&m.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var y=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(y),f={type:c,params:[y],async:!0};}if(f.type===c||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var g=f.async,v=this.reinterpretAsCoverFormalsList(f);if(v){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var E=this.context.strict,S=this.context.allowStrictDirective;this.context.allowStrictDirective=v.simple;var x=this.context.allowYield,b=this.context.await;this.context.allowYield=!0,this.context.await=g;var A=this.startNode(d);this.expect("=>");var D=void 0;if(this.match("{")){var P=this.context.allowIn;this.context.allowIn=!0,D=this.parseFunctionSourceElements(),this.context.allowIn=P;}else D=this.isolateCoverGrammar(this.parseAssignmentExpression);var V=D.type!==u.Syntax.BlockStatement;this.context.strict&&v.firstRestricted&&this.throwUnexpectedToken(v.firstRestricted,v.message),this.context.strict&&v.stricted&&this.tolerateUnexpectedToken(v.stricted,v.message),f=g?this.finalize(A,new a.AsyncArrowFunctionExpression(v.params,D,V)):this.finalize(A,new a.ArrowFunctionExpression(v.params,D,V)),this.context.strict=E,this.context.allowStrictDirective=S,this.context.allowYield=x,this.context.await=b;}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment),this.context.strict&&f.type===u.Syntax.Identifier){var X=f;this.scanner.isRestrictedWord(X.name)&&this.tolerateUnexpectedToken(m,s.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(X.name)&&this.tolerateUnexpectedToken(m,s.Messages.StrictReservedWord);}this.match("=")?this.reinterpretExpressionAsPattern(f):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),m=this.nextToken();var oe=m.value,le=this.isolateCoverGrammar(this.parseAssignmentExpression);f=this.finalize(this.startNode(d),new a.AssignmentExpression(oe,f,le)),this.context.firstCoverInitializedNameError=null;}}return f},h.prototype.parseExpression=function(){var f=this.lookahead,d=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var m=[];for(m.push(d);this.lookahead.type!==2&&this.match(",");)this.nextToken(),m.push(this.isolateCoverGrammar(this.parseAssignmentExpression));d=this.finalize(this.startNode(f),new a.SequenceExpression(m));}return d},h.prototype.parseStatementListItem=function(){var f;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,s.Messages.IllegalExportDeclaration),f=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,s.Messages.IllegalImportDeclaration),f=this.parseImportDeclaration();break;case"const":f=this.parseLexicalDeclaration({inFor:!1});break;case"function":f=this.parseFunctionDeclaration();break;case"class":f=this.parseClassDeclaration();break;case"let":f=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:f=this.parseStatement();break}else f=this.parseStatement();return f},h.prototype.parseBlock=function(){var f=this.createNode();this.expect("{");for(var d=[];!this.match("}");)d.push(this.parseStatementListItem());return this.expect("}"),this.finalize(f,new a.BlockStatement(d))},h.prototype.parseLexicalBinding=function(f,d){var m=this.createNode(),y=[],g=this.parsePattern(y,f);this.context.strict&&g.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(g.name)&&this.tolerateError(s.Messages.StrictVarName);var v=null;return f==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),v=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(s.Messages.DeclarationMissingInitializer,"const")):(!d.inFor&&g.type!==u.Syntax.Identifier||this.match("="))&&(this.expect("="),v=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(m,new a.VariableDeclarator(g,v))},h.prototype.parseBindingList=function(f,d){for(var m=[this.parseLexicalBinding(f,d)];this.match(",");)this.nextToken(),m.push(this.parseLexicalBinding(f,d));return m},h.prototype.isLexicalDeclaration=function(){var f=this.scanner.saveState();this.scanner.scanComments();var d=this.scanner.lex();return this.scanner.restoreState(f),d.type===3||d.type===7&&d.value==="["||d.type===7&&d.value==="{"||d.type===4&&d.value==="let"||d.type===4&&d.value==="yield"},h.prototype.parseLexicalDeclaration=function(f){var d=this.createNode(),m=this.nextToken().value;n.assert(m==="let"||m==="const","Lexical declaration must be either let or const");var y=this.parseBindingList(m,f);return this.consumeSemicolon(),this.finalize(d,new a.VariableDeclaration(y,m))},h.prototype.parseBindingRestElement=function(f,d){var m=this.createNode();this.expect("...");var y=this.parsePattern(f,d);return this.finalize(m,new a.RestElement(y))},h.prototype.parseArrayPattern=function(f,d){var m=this.createNode();this.expect("[");for(var y=[];!this.match("]");)if(this.match(","))this.nextToken(),y.push(null);else {if(this.match("...")){y.push(this.parseBindingRestElement(f,d));break}else y.push(this.parsePatternWithDefault(f,d));this.match("]")||this.expect(",");}return this.expect("]"),this.finalize(m,new a.ArrayPattern(y))},h.prototype.parsePropertyPattern=function(f,d){var m=this.createNode(),y=!1,g=!1,v=!1,E,S;if(this.lookahead.type===3){var x=this.lookahead;E=this.parseVariableIdentifier();var b=this.finalize(m,new a.Identifier(x.value));if(this.match("=")){f.push(x),g=!0,this.nextToken();var A=this.parseAssignmentExpression();S=this.finalize(this.startNode(x),new a.AssignmentPattern(b,A));}else this.match(":")?(this.expect(":"),S=this.parsePatternWithDefault(f,d)):(f.push(x),g=!0,S=b);}else y=this.match("["),E=this.parseObjectPropertyKey(),this.expect(":"),S=this.parsePatternWithDefault(f,d);return this.finalize(m,new a.Property("init",E,y,S,v,g))},h.prototype.parseObjectPattern=function(f,d){var m=this.createNode(),y=[];for(this.expect("{");!this.match("}");)y.push(this.parsePropertyPattern(f,d)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(m,new a.ObjectPattern(y))},h.prototype.parsePattern=function(f,d){var m;return this.match("[")?m=this.parseArrayPattern(f,d):this.match("{")?m=this.parseObjectPattern(f,d):(this.matchKeyword("let")&&(d==="const"||d==="let")&&this.tolerateUnexpectedToken(this.lookahead,s.Messages.LetInLexicalBinding),f.push(this.lookahead),m=this.parseVariableIdentifier(d)),m},h.prototype.parsePatternWithDefault=function(f,d){var m=this.lookahead,y=this.parsePattern(f,d);if(this.match("=")){this.nextToken();var g=this.context.allowYield;this.context.allowYield=!0;var v=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=g,y=this.finalize(this.startNode(m),new a.AssignmentPattern(y,v));}return y},h.prototype.parseVariableIdentifier=function(f){var d=this.createNode(),m=this.nextToken();return m.type===4&&m.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(m,s.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(m):m.type!==3?this.context.strict&&m.type===4&&this.scanner.isStrictModeReservedWord(m.value)?this.tolerateUnexpectedToken(m,s.Messages.StrictReservedWord):(this.context.strict||m.value!=="let"||f!=="var")&&this.throwUnexpectedToken(m):(this.context.isModule||this.context.await)&&m.type===3&&m.value==="await"&&this.tolerateUnexpectedToken(m),this.finalize(d,new a.Identifier(m.value))},h.prototype.parseVariableDeclaration=function(f){var d=this.createNode(),m=[],y=this.parsePattern(m,"var");this.context.strict&&y.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(y.name)&&this.tolerateError(s.Messages.StrictVarName);var g=null;return this.match("=")?(this.nextToken(),g=this.isolateCoverGrammar(this.parseAssignmentExpression)):y.type!==u.Syntax.Identifier&&!f.inFor&&this.expect("="),this.finalize(d,new a.VariableDeclarator(y,g))},h.prototype.parseVariableDeclarationList=function(f){var d={inFor:f.inFor},m=[];for(m.push(this.parseVariableDeclaration(d));this.match(",");)this.nextToken(),m.push(this.parseVariableDeclaration(d));return m},h.prototype.parseVariableStatement=function(){var f=this.createNode();this.expectKeyword("var");var d=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(f,new a.VariableDeclaration(d,"var"))},h.prototype.parseEmptyStatement=function(){var f=this.createNode();return this.expect(";"),this.finalize(f,new a.EmptyStatement)},h.prototype.parseExpressionStatement=function(){var f=this.createNode(),d=this.parseExpression();return this.consumeSemicolon(),this.finalize(f,new a.ExpressionStatement(d))},h.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(s.Messages.StrictFunction),this.parseStatement()},h.prototype.parseIfStatement=function(){var f=this.createNode(),d,m=null;this.expectKeyword("if"),this.expect("(");var y=this.parseExpression();return !this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),d=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),d=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),m=this.parseIfClause())),this.finalize(f,new a.IfStatement(y,d,m))},h.prototype.parseDoWhileStatement=function(){var f=this.createNode();this.expectKeyword("do");var d=this.context.inIteration;this.context.inIteration=!0;var m=this.parseStatement();this.context.inIteration=d,this.expectKeyword("while"),this.expect("(");var y=this.parseExpression();return !this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(f,new a.DoWhileStatement(m,y))},h.prototype.parseWhileStatement=function(){var f=this.createNode(),d;this.expectKeyword("while"),this.expect("(");var m=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),d=this.finalize(this.createNode(),new a.EmptyStatement);else {this.expect(")");var y=this.context.inIteration;this.context.inIteration=!0,d=this.parseStatement(),this.context.inIteration=y;}return this.finalize(f,new a.WhileStatement(m,d))},h.prototype.parseForStatement=function(){var f=null,d=null,m=null,y=!0,g,v,E=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){f=this.createNode(),this.nextToken();var S=this.context.allowIn;this.context.allowIn=!1;var x=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=S,x.length===1&&this.matchKeyword("in")){var b=x[0];b.init&&(b.id.type===u.Syntax.ArrayPattern||b.id.type===u.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(s.Messages.ForInOfLoopInitializer,"for-in"),f=this.finalize(f,new a.VariableDeclaration(x,"var")),this.nextToken(),g=f,v=this.parseExpression(),f=null;}else x.length===1&&x[0].init===null&&this.matchContextualKeyword("of")?(f=this.finalize(f,new a.VariableDeclaration(x,"var")),this.nextToken(),g=f,v=this.parseAssignmentExpression(),f=null,y=!1):(f=this.finalize(f,new a.VariableDeclaration(x,"var")),this.expect(";"));}else if(this.matchKeyword("const")||this.matchKeyword("let")){f=this.createNode();var A=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")f=this.finalize(f,new a.Identifier(A)),this.nextToken(),g=f,v=this.parseExpression(),f=null;else {var S=this.context.allowIn;this.context.allowIn=!1;var x=this.parseBindingList(A,{inFor:!0});this.context.allowIn=S,x.length===1&&x[0].init===null&&this.matchKeyword("in")?(f=this.finalize(f,new a.VariableDeclaration(x,A)),this.nextToken(),g=f,v=this.parseExpression(),f=null):x.length===1&&x[0].init===null&&this.matchContextualKeyword("of")?(f=this.finalize(f,new a.VariableDeclaration(x,A)),this.nextToken(),g=f,v=this.parseAssignmentExpression(),f=null,y=!1):(this.consumeSemicolon(),f=this.finalize(f,new a.VariableDeclaration(x,A)));}}else {var D=this.lookahead,S=this.context.allowIn;if(this.context.allowIn=!1,f=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=S,this.matchKeyword("in"))(!this.context.isAssignmentTarget||f.type===u.Syntax.AssignmentExpression)&&this.tolerateError(s.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(f),g=f,v=this.parseExpression(),f=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||f.type===u.Syntax.AssignmentExpression)&&this.tolerateError(s.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(f),g=f,v=this.parseAssignmentExpression(),f=null,y=!1;else {if(this.match(",")){for(var P=[f];this.match(",");)this.nextToken(),P.push(this.isolateCoverGrammar(this.parseAssignmentExpression));f=this.finalize(this.startNode(D),new a.SequenceExpression(P));}this.expect(";");}}typeof g>"u"&&(this.match(";")||(d=this.parseExpression()),this.expect(";"),this.match(")")||(m=this.parseExpression()));var V;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),V=this.finalize(this.createNode(),new a.EmptyStatement);else {this.expect(")");var X=this.context.inIteration;this.context.inIteration=!0,V=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=X;}return typeof g>"u"?this.finalize(E,new a.ForStatement(f,d,m,V)):y?this.finalize(E,new a.ForInStatement(g,v,V)):this.finalize(E,new a.ForOfStatement(g,v,V))},h.prototype.parseContinueStatement=function(){var f=this.createNode();this.expectKeyword("continue");var d=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var m=this.parseVariableIdentifier();d=m;var y="$"+m.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,y)||this.throwError(s.Messages.UnknownLabel,m.name);}return this.consumeSemicolon(),d===null&&!this.context.inIteration&&this.throwError(s.Messages.IllegalContinue),this.finalize(f,new a.ContinueStatement(d))},h.prototype.parseBreakStatement=function(){var f=this.createNode();this.expectKeyword("break");var d=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var m=this.parseVariableIdentifier(),y="$"+m.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,y)||this.throwError(s.Messages.UnknownLabel,m.name),d=m;}return this.consumeSemicolon(),d===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(s.Messages.IllegalBreak),this.finalize(f,new a.BreakStatement(d))},h.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(s.Messages.IllegalReturn);var f=this.createNode();this.expectKeyword("return");var d=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,m=d?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(f,new a.ReturnStatement(m))},h.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(s.Messages.StrictModeWith);var f=this.createNode(),d;this.expectKeyword("with"),this.expect("(");var m=this.parseExpression();return !this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),d=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),d=this.parseStatement()),this.finalize(f,new a.WithStatement(m,d))},h.prototype.parseSwitchCase=function(){var f=this.createNode(),d;this.matchKeyword("default")?(this.nextToken(),d=null):(this.expectKeyword("case"),d=this.parseExpression()),this.expect(":");for(var m=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)m.push(this.parseStatementListItem());return this.finalize(f,new a.SwitchCase(d,m))},h.prototype.parseSwitchStatement=function(){var f=this.createNode();this.expectKeyword("switch"),this.expect("(");var d=this.parseExpression();this.expect(")");var m=this.context.inSwitch;this.context.inSwitch=!0;var y=[],g=!1;for(this.expect("{");!this.match("}");){var v=this.parseSwitchCase();v.test===null&&(g&&this.throwError(s.Messages.MultipleDefaultsInSwitch),g=!0),y.push(v);}return this.expect("}"),this.context.inSwitch=m,this.finalize(f,new a.SwitchStatement(d,y))},h.prototype.parseLabelledStatement=function(){var f=this.createNode(),d=this.parseExpression(),m;if(d.type===u.Syntax.Identifier&&this.match(":")){this.nextToken();var y=d,g="$"+y.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,g)&&this.throwError(s.Messages.Redeclaration,"Label",y.name),this.context.labelSet[g]=!0;var v=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),v=this.parseClassDeclaration();else if(this.matchKeyword("function")){var E=this.lookahead,S=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(E,s.Messages.StrictFunction):S.generator&&this.tolerateUnexpectedToken(E,s.Messages.GeneratorInLegacyContext),v=S;}else v=this.parseStatement();delete this.context.labelSet[g],m=new a.LabeledStatement(y,v);}else this.consumeSemicolon(),m=new a.ExpressionStatement(d);return this.finalize(f,m)},h.prototype.parseThrowStatement=function(){var f=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(s.Messages.NewlineAfterThrow);var d=this.parseExpression();return this.consumeSemicolon(),this.finalize(f,new a.ThrowStatement(d))},h.prototype.parseCatchClause=function(){var f=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var d=[],m=this.parsePattern(d),y={},g=0;g<d.length;g++){var v="$"+d[g].value;Object.prototype.hasOwnProperty.call(y,v)&&this.tolerateError(s.Messages.DuplicateBinding,d[g].value),y[v]=!0;}this.context.strict&&m.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(m.name)&&this.tolerateError(s.Messages.StrictCatchVariable),this.expect(")");var E=this.parseBlock();return this.finalize(f,new a.CatchClause(m,E))},h.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},h.prototype.parseTryStatement=function(){var f=this.createNode();this.expectKeyword("try");var d=this.parseBlock(),m=this.matchKeyword("catch")?this.parseCatchClause():null,y=this.matchKeyword("finally")?this.parseFinallyClause():null;return !m&&!y&&this.throwError(s.Messages.NoCatchOrFinally),this.finalize(f,new a.TryStatement(d,m,y))},h.prototype.parseDebuggerStatement=function(){var f=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(f,new a.DebuggerStatement)},h.prototype.parseStatement=function(){var f;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:f=this.parseExpressionStatement();break;case 7:var d=this.lookahead.value;d==="{"?f=this.parseBlock():d==="("?f=this.parseExpressionStatement():d===";"?f=this.parseEmptyStatement():f=this.parseExpressionStatement();break;case 3:f=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":f=this.parseBreakStatement();break;case"continue":f=this.parseContinueStatement();break;case"debugger":f=this.parseDebuggerStatement();break;case"do":f=this.parseDoWhileStatement();break;case"for":f=this.parseForStatement();break;case"function":f=this.parseFunctionDeclaration();break;case"if":f=this.parseIfStatement();break;case"return":f=this.parseReturnStatement();break;case"switch":f=this.parseSwitchStatement();break;case"throw":f=this.parseThrowStatement();break;case"try":f=this.parseTryStatement();break;case"var":f=this.parseVariableStatement();break;case"while":f=this.parseWhileStatement();break;case"with":f=this.parseWithStatement();break;default:f=this.parseExpressionStatement();break}break;default:f=this.throwUnexpectedToken(this.lookahead);}return f},h.prototype.parseFunctionSourceElements=function(){var f=this.createNode();this.expect("{");var d=this.parseDirectivePrologues(),m=this.context.labelSet,y=this.context.inIteration,g=this.context.inSwitch,v=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)d.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=m,this.context.inIteration=y,this.context.inSwitch=g,this.context.inFunctionBody=v,this.finalize(f,new a.BlockStatement(d))},h.prototype.validateParam=function(f,d,m){var y="$"+m;this.context.strict?(this.scanner.isRestrictedWord(m)&&(f.stricted=d,f.message=s.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(f.paramSet,y)&&(f.stricted=d,f.message=s.Messages.StrictParamDupe)):f.firstRestricted||(this.scanner.isRestrictedWord(m)?(f.firstRestricted=d,f.message=s.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(m)?(f.firstRestricted=d,f.message=s.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(f.paramSet,y)&&(f.stricted=d,f.message=s.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(f.paramSet,y,{value:!0,enumerable:!0,writable:!0,configurable:!0}):f.paramSet[y]=!0;},h.prototype.parseRestElement=function(f){var d=this.createNode();this.expect("...");var m=this.parsePattern(f);return this.match("=")&&this.throwError(s.Messages.DefaultRestParameter),this.match(")")||this.throwError(s.Messages.ParameterAfterRestParameter),this.finalize(d,new a.RestElement(m))},h.prototype.parseFormalParameter=function(f){for(var d=[],m=this.match("...")?this.parseRestElement(d):this.parsePatternWithDefault(d),y=0;y<d.length;y++)this.validateParam(f,d[y],d[y].value);f.simple=f.simple&&m instanceof a.Identifier,f.params.push(m);},h.prototype.parseFormalParameters=function(f){var d;if(d={simple:!0,params:[],firstRestricted:f},this.expect("("),!this.match(")"))for(d.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(d),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:d.simple,params:d.params,stricted:d.stricted,firstRestricted:d.firstRestricted,message:d.message}},h.prototype.matchAsyncFunction=function(){var f=this.matchContextualKeyword("async");if(f){var d=this.scanner.saveState();this.scanner.scanComments();var m=this.scanner.lex();this.scanner.restoreState(d),f=d.lineNumber===m.lineNumber&&m.type===4&&m.value==="function";}return f},h.prototype.parseFunctionDeclaration=function(f){var d=this.createNode(),m=this.matchContextualKeyword("async");m&&this.nextToken(),this.expectKeyword("function");var y=m?!1:this.match("*");y&&this.nextToken();var g,v=null,E=null;if(!f||!this.match("(")){var S=this.lookahead;v=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(S.value)&&this.tolerateUnexpectedToken(S,s.Messages.StrictFunctionName):this.scanner.isRestrictedWord(S.value)?(E=S,g=s.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(S.value)&&(E=S,g=s.Messages.StrictReservedWord);}var x=this.context.await,b=this.context.allowYield;this.context.await=m,this.context.allowYield=!y;var A=this.parseFormalParameters(E),D=A.params,P=A.stricted;E=A.firstRestricted,A.message&&(g=A.message);var V=this.context.strict,X=this.context.allowStrictDirective;this.context.allowStrictDirective=A.simple;var oe=this.parseFunctionSourceElements();return this.context.strict&&E&&this.throwUnexpectedToken(E,g),this.context.strict&&P&&this.tolerateUnexpectedToken(P,g),this.context.strict=V,this.context.allowStrictDirective=X,this.context.await=x,this.context.allowYield=b,m?this.finalize(d,new a.AsyncFunctionDeclaration(v,D,oe)):this.finalize(d,new a.FunctionDeclaration(v,D,oe,y))},h.prototype.parseFunctionExpression=function(){var f=this.createNode(),d=this.matchContextualKeyword("async");d&&this.nextToken(),this.expectKeyword("function");var m=d?!1:this.match("*");m&&this.nextToken();var y,g=null,v,E=this.context.await,S=this.context.allowYield;if(this.context.await=d,this.context.allowYield=!m,!this.match("(")){var x=this.lookahead;g=!this.context.strict&&!m&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(x.value)&&this.tolerateUnexpectedToken(x,s.Messages.StrictFunctionName):this.scanner.isRestrictedWord(x.value)?(v=x,y=s.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(x.value)&&(v=x,y=s.Messages.StrictReservedWord);}var b=this.parseFormalParameters(v),A=b.params,D=b.stricted;v=b.firstRestricted,b.message&&(y=b.message);var P=this.context.strict,V=this.context.allowStrictDirective;this.context.allowStrictDirective=b.simple;var X=this.parseFunctionSourceElements();return this.context.strict&&v&&this.throwUnexpectedToken(v,y),this.context.strict&&D&&this.tolerateUnexpectedToken(D,y),this.context.strict=P,this.context.allowStrictDirective=V,this.context.await=E,this.context.allowYield=S,d?this.finalize(f,new a.AsyncFunctionExpression(g,A,X)):this.finalize(f,new a.FunctionExpression(g,A,X,m))},h.prototype.parseDirective=function(){var f=this.lookahead,d=this.createNode(),m=this.parseExpression(),y=m.type===u.Syntax.Literal?this.getTokenRaw(f).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(d,y?new a.Directive(m,y):new a.ExpressionStatement(m))},h.prototype.parseDirectivePrologues=function(){for(var f=null,d=[];;){var m=this.lookahead;if(m.type!==8)break;var y=this.parseDirective();d.push(y);var g=y.directive;if(typeof g!="string")break;g==="use strict"?(this.context.strict=!0,f&&this.tolerateUnexpectedToken(f,s.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(m,s.Messages.IllegalLanguageModeDirective)):!f&&m.octal&&(f=m);}return d},h.prototype.qualifiedPropertyName=function(f){switch(f.type){case 3:case 8:case 1:case 5:case 6:case 4:return !0;case 7:return f.value==="[";}return !1},h.prototype.parseGetterMethod=function(){var f=this.createNode(),d=!1,m=this.context.allowYield;this.context.allowYield=!d;var y=this.parseFormalParameters();y.params.length>0&&this.tolerateError(s.Messages.BadGetterArity);var g=this.parsePropertyMethod(y);return this.context.allowYield=m,this.finalize(f,new a.FunctionExpression(null,y.params,g,d))},h.prototype.parseSetterMethod=function(){var f=this.createNode(),d=!1,m=this.context.allowYield;this.context.allowYield=!d;var y=this.parseFormalParameters();y.params.length!==1?this.tolerateError(s.Messages.BadSetterArity):y.params[0]instanceof a.RestElement&&this.tolerateError(s.Messages.BadSetterRestParameter);var g=this.parsePropertyMethod(y);return this.context.allowYield=m,this.finalize(f,new a.FunctionExpression(null,y.params,g,d))},h.prototype.parseGeneratorMethod=function(){var f=this.createNode(),d=!0,m=this.context.allowYield;this.context.allowYield=!0;var y=this.parseFormalParameters();this.context.allowYield=!1;var g=this.parsePropertyMethod(y);return this.context.allowYield=m,this.finalize(f,new a.FunctionExpression(null,y.params,g,d))},h.prototype.isStartOfExpression=function(){var f=!0,d=this.lookahead.value;switch(this.lookahead.type){case 7:f=d==="["||d==="("||d==="{"||d==="+"||d==="-"||d==="!"||d==="~"||d==="++"||d==="--"||d==="/"||d==="/=";break;case 4:f=d==="class"||d==="delete"||d==="function"||d==="let"||d==="new"||d==="super"||d==="this"||d==="typeof"||d==="void"||d==="yield";break;}return f},h.prototype.parseYieldExpression=function(){var f=this.createNode();this.expectKeyword("yield");var d=null,m=!1;if(!this.hasLineTerminator){var y=this.context.allowYield;this.context.allowYield=!1,m=this.match("*"),m?(this.nextToken(),d=this.parseAssignmentExpression()):this.isStartOfExpression()&&(d=this.parseAssignmentExpression()),this.context.allowYield=y;}return this.finalize(f,new a.YieldExpression(d,m))},h.prototype.parseClassElement=function(f){var d=this.lookahead,m=this.createNode(),y="",g=null,v=null,E=!1,S=!1,x=!1,b=!1;if(this.match("*"))this.nextToken();else {E=this.match("["),g=this.parseObjectPropertyKey();var A=g;if(A.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(d=this.lookahead,x=!0,E=this.match("["),this.match("*")?this.nextToken():g=this.parseObjectPropertyKey()),d.type===3&&!this.hasLineTerminator&&d.value==="async"){var D=this.lookahead.value;D!==":"&&D!=="("&&D!=="*"&&(b=!0,d=this.lookahead,g=this.parseObjectPropertyKey(),d.type===3&&d.value==="constructor"&&this.tolerateUnexpectedToken(d,s.Messages.ConstructorIsAsync));}}var P=this.qualifiedPropertyName(this.lookahead);return d.type===3?d.value==="get"&&P?(y="get",E=this.match("["),g=this.parseObjectPropertyKey(),this.context.allowYield=!1,v=this.parseGetterMethod()):d.value==="set"&&P&&(y="set",E=this.match("["),g=this.parseObjectPropertyKey(),v=this.parseSetterMethod()):d.type===7&&d.value==="*"&&P&&(y="init",E=this.match("["),g=this.parseObjectPropertyKey(),v=this.parseGeneratorMethod(),S=!0),!y&&g&&this.match("(")&&(y="init",v=b?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),S=!0),y||this.throwUnexpectedToken(this.lookahead),y==="init"&&(y="method"),E||(x&&this.isPropertyKey(g,"prototype")&&this.throwUnexpectedToken(d,s.Messages.StaticPrototype),!x&&this.isPropertyKey(g,"constructor")&&((y!=="method"||!S||v&&v.generator)&&this.throwUnexpectedToken(d,s.Messages.ConstructorSpecialMethod),f.value?this.throwUnexpectedToken(d,s.Messages.DuplicateConstructor):f.value=!0,y="constructor")),this.finalize(m,new a.MethodDefinition(g,E,v,y,x))},h.prototype.parseClassElementList=function(){var f=[],d={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():f.push(this.parseClassElement(d));return this.expect("}"),f},h.prototype.parseClassBody=function(){var f=this.createNode(),d=this.parseClassElementList();return this.finalize(f,new a.ClassBody(d))},h.prototype.parseClassDeclaration=function(f){var d=this.createNode(),m=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var y=f&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),g=null;this.matchKeyword("extends")&&(this.nextToken(),g=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var v=this.parseClassBody();return this.context.strict=m,this.finalize(d,new a.ClassDeclaration(y,g,v))},h.prototype.parseClassExpression=function(){var f=this.createNode(),d=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var m=this.lookahead.type===3?this.parseVariableIdentifier():null,y=null;this.matchKeyword("extends")&&(this.nextToken(),y=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var g=this.parseClassBody();return this.context.strict=d,this.finalize(f,new a.ClassExpression(m,y,g))},h.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var f=this.createNode(),d=this.parseDirectivePrologues();this.lookahead.type!==2;)d.push(this.parseStatementListItem());return this.finalize(f,new a.Module(d))},h.prototype.parseScript=function(){for(var f=this.createNode(),d=this.parseDirectivePrologues();this.lookahead.type!==2;)d.push(this.parseStatementListItem());return this.finalize(f,new a.Script(d))},h.prototype.parseModuleSpecifier=function(){var f=this.createNode();this.lookahead.type!==8&&this.throwError(s.Messages.InvalidModuleSpecifier);var d=this.nextToken(),m=this.getTokenRaw(d);return this.finalize(f,new a.Literal(d.value,m))},h.prototype.parseImportSpecifier=function(){var f=this.createNode(),d,m;return this.lookahead.type===3?(d=this.parseVariableIdentifier(),m=d,this.matchContextualKeyword("as")&&(this.nextToken(),m=this.parseVariableIdentifier())):(d=this.parseIdentifierName(),m=d,this.matchContextualKeyword("as")?(this.nextToken(),m=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(f,new a.ImportSpecifier(m,d))},h.prototype.parseNamedImports=function(){this.expect("{");for(var f=[];!this.match("}");)f.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),f},h.prototype.parseImportDefaultSpecifier=function(){var f=this.createNode(),d=this.parseIdentifierName();return this.finalize(f,new a.ImportDefaultSpecifier(d))},h.prototype.parseImportNamespaceSpecifier=function(){var f=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(s.Messages.NoAsAfterImportNamespace),this.nextToken();var d=this.parseIdentifierName();return this.finalize(f,new a.ImportNamespaceSpecifier(d))},h.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(s.Messages.IllegalImportDeclaration);var f=this.createNode();this.expectKeyword("import");var d,m=[];if(this.lookahead.type===8)d=this.parseModuleSpecifier();else {if(this.match("{")?m=m.concat(this.parseNamedImports()):this.match("*")?m.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(m.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?m.push(this.parseImportNamespaceSpecifier()):this.match("{")?m=m.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var y=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(y,this.lookahead.value);}this.nextToken(),d=this.parseModuleSpecifier();}return this.consumeSemicolon(),this.finalize(f,new a.ImportDeclaration(m,d))},h.prototype.parseExportSpecifier=function(){var f=this.createNode(),d=this.parseIdentifierName(),m=d;return this.matchContextualKeyword("as")&&(this.nextToken(),m=this.parseIdentifierName()),this.finalize(f,new a.ExportSpecifier(d,m))},h.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(s.Messages.IllegalExportDeclaration);var f=this.createNode();this.expectKeyword("export");var d;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var m=this.parseFunctionDeclaration(!0);d=this.finalize(f,new a.ExportDefaultDeclaration(m));}else if(this.matchKeyword("class")){var m=this.parseClassDeclaration(!0);d=this.finalize(f,new a.ExportDefaultDeclaration(m));}else if(this.matchContextualKeyword("async")){var m=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();d=this.finalize(f,new a.ExportDefaultDeclaration(m));}else {this.matchContextualKeyword("from")&&this.throwError(s.Messages.UnexpectedToken,this.lookahead.value);var m=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),d=this.finalize(f,new a.ExportDefaultDeclaration(m));}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var y=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(y,this.lookahead.value);}this.nextToken();var g=this.parseModuleSpecifier();this.consumeSemicolon(),d=this.finalize(f,new a.ExportAllDeclaration(g));}else if(this.lookahead.type===4){var m=void 0;switch(this.lookahead.value){case"let":case"const":m=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":m=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead);}d=this.finalize(f,new a.ExportNamedDeclaration(m,[],null));}else if(this.matchAsyncFunction()){var m=this.parseFunctionDeclaration();d=this.finalize(f,new a.ExportNamedDeclaration(m,[],null));}else {var v=[],E=null,S=!1;for(this.expect("{");!this.match("}");)S=S||this.matchKeyword("default"),v.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),E=this.parseModuleSpecifier(),this.consumeSemicolon();else if(S){var y=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(y,this.lookahead.value);}else this.consumeSemicolon();d=this.finalize(f,new a.ExportNamedDeclaration(null,v,E));}return d},h}();t.Parser=p;},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function r(n,i){if(!n)throw new Error("ASSERT: "+i)}t.assert=r;},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function n(){this.errors=[],this.tolerant=!1;}return n.prototype.recordError=function(i){this.errors.push(i);},n.prototype.tolerate=function(i){if(this.tolerant)this.recordError(i);else throw i},n.prototype.constructError=function(i,s){var a=new Error(i);try{throw a}catch(o){Object.create&&Object.defineProperty&&(a=Object.create(o),Object.defineProperty(a,"column",{value:s}));}return a},n.prototype.createError=function(i,s,a,o){var u="Line "+s+": "+o,l=this.constructError(u,a);return l.index=i,l.lineNumber=s,l.description=o,l},n.prototype.throwError=function(i,s,a,o){throw this.createError(i,s,a,o)},n.prototype.tolerateError=function(i,s,a,o){var u=this.createError(i,s,a,o);if(this.tolerant)this.recordError(u);else throw u},n}();t.ErrorHandler=r;},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"};},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=r(4),s=r(11);function a(l){return "0123456789abcdef".indexOf(l.toLowerCase())}function o(l){return "01234567".indexOf(l)}var u=function(){function l(c,p){this.source=c,this.errorHandler=p,this.trackComment=!1,this.isModule=!1,this.length=c.length,this.index=0,this.lineNumber=c.length>0?1:0,this.lineStart=0,this.curlyStack=[];}return l.prototype.saveState=function(){return {index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},l.prototype.restoreState=function(c){this.index=c.index,this.lineNumber=c.lineNumber,this.lineStart=c.lineStart;},l.prototype.eof=function(){return this.index>=this.length},l.prototype.throwUnexpectedToken=function(c){return c===void 0&&(c=s.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,c)},l.prototype.tolerateUnexpectedToken=function(c){c===void 0&&(c=s.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,c);},l.prototype.skipSingleLineComment=function(c){var p=[],h,f;for(this.trackComment&&(p=[],h=this.index-c,f={start:{line:this.lineNumber,column:this.index-this.lineStart-c},end:{}});!this.eof();){var d=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(d)){if(this.trackComment){f.end={line:this.lineNumber,column:this.index-this.lineStart-1};var m={multiLine:!1,slice:[h+c,this.index-1],range:[h,this.index-1],loc:f};p.push(m);}return d===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,p}}if(this.trackComment){f.end={line:this.lineNumber,column:this.index-this.lineStart};var m={multiLine:!1,slice:[h+c,this.index],range:[h,this.index],loc:f};p.push(m);}return p},l.prototype.skipMultiLineComment=function(){var c=[],p,h;for(this.trackComment&&(c=[],p=this.index-2,h={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var f=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(f))f===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(f===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){h.end={line:this.lineNumber,column:this.index-this.lineStart};var d={multiLine:!0,slice:[p+2,this.index-2],range:[p,this.index],loc:h};c.push(d);}return c}++this.index;}else ++this.index;}if(this.trackComment){h.end={line:this.lineNumber,column:this.index-this.lineStart};var d={multiLine:!0,slice:[p+2,this.index],range:[p,this.index],loc:h};c.push(d);}return this.tolerateUnexpectedToken(),c},l.prototype.scanComments=function(){var c;this.trackComment&&(c=[]);for(var p=this.index===0;!this.eof();){var h=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(h))++this.index;else if(i.Character.isLineTerminator(h))++this.index,h===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,p=!0;else if(h===47)if(h=this.source.charCodeAt(this.index+1),h===47){this.index+=2;var f=this.skipSingleLineComment(2);this.trackComment&&(c=c.concat(f)),p=!0;}else if(h===42){this.index+=2;var f=this.skipMultiLineComment();this.trackComment&&(c=c.concat(f));}else break;else if(p&&h===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var f=this.skipSingleLineComment(3);this.trackComment&&(c=c.concat(f));}else break;else if(h===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var f=this.skipSingleLineComment(4);this.trackComment&&(c=c.concat(f));}else break;else break}return c},l.prototype.isFutureReservedWord=function(c){switch(c){case"enum":case"export":case"import":case"super":return !0;default:return !1}},l.prototype.isStrictModeReservedWord=function(c){switch(c){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return !0;default:return !1}},l.prototype.isRestrictedWord=function(c){return c==="eval"||c==="arguments"},l.prototype.isKeyword=function(c){switch(c.length){case 2:return c==="if"||c==="in"||c==="do";case 3:return c==="var"||c==="for"||c==="new"||c==="try"||c==="let";case 4:return c==="this"||c==="else"||c==="case"||c==="void"||c==="with"||c==="enum";case 5:return c==="while"||c==="break"||c==="catch"||c==="throw"||c==="const"||c==="yield"||c==="class"||c==="super";case 6:return c==="return"||c==="typeof"||c==="delete"||c==="switch"||c==="export"||c==="import";case 7:return c==="default"||c==="finally"||c==="extends";case 8:return c==="function"||c==="continue"||c==="debugger";case 10:return c==="instanceof";default:return !1}},l.prototype.codePointAt=function(c){var p=this.source.charCodeAt(c);if(p>=55296&&p<=56319){var h=this.source.charCodeAt(c+1);if(h>=56320&&h<=57343){var f=p;p=(f-55296)*1024+h-56320+65536;}}return p},l.prototype.scanHexEscape=function(c){for(var p=c==="u"?4:2,h=0,f=0;f<p;++f)if(!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index)))h=h*16+a(this.source[this.index++]);else return null;return String.fromCharCode(h)},l.prototype.scanUnicodeCodePointEscape=function(){var c=this.source[this.index],p=0;for(c==="}"&&this.throwUnexpectedToken();!this.eof()&&(c=this.source[this.index++],!!i.Character.isHexDigit(c.charCodeAt(0)));)p=p*16+a(c);return (p>1114111||c!=="}")&&this.throwUnexpectedToken(),i.Character.fromCodePoint(p)},l.prototype.getIdentifier=function(){for(var c=this.index++;!this.eof();){var p=this.source.charCodeAt(this.index);if(p===92)return this.index=c,this.getComplexIdentifier();if(p>=55296&&p<57343)return this.index=c,this.getComplexIdentifier();if(i.Character.isIdentifierPart(p))++this.index;else break}return this.source.slice(c,this.index)},l.prototype.getComplexIdentifier=function(){var c=this.codePointAt(this.index),p=i.Character.fromCodePoint(c);this.index+=p.length;var h;for(c===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,h=this.scanUnicodeCodePointEscape()):(h=this.scanHexEscape("u"),(h===null||h==="\\"||!i.Character.isIdentifierStart(h.charCodeAt(0)))&&this.throwUnexpectedToken()),p=h);!this.eof()&&(c=this.codePointAt(this.index),!!i.Character.isIdentifierPart(c));)h=i.Character.fromCodePoint(c),p+=h,this.index+=h.length,c===92&&(p=p.substr(0,p.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,h=this.scanUnicodeCodePointEscape()):(h=this.scanHexEscape("u"),(h===null||h==="\\"||!i.Character.isIdentifierPart(h.charCodeAt(0)))&&this.throwUnexpectedToken()),p+=h);return p},l.prototype.octalToDecimal=function(c){var p=c!=="0",h=o(c);return !this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(p=!0,h=h*8+o(this.source[this.index++]),"0123".indexOf(c)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(h=h*8+o(this.source[this.index++]))),{code:h,octal:p}},l.prototype.scanIdentifier=function(){var c,p=this.index,h=this.source.charCodeAt(p)===92?this.getComplexIdentifier():this.getIdentifier();if(h.length===1?c=3:this.isKeyword(h)?c=4:h==="null"?c=5:h==="true"||h==="false"?c=1:c=3,c!==3&&p+h.length!==this.index){var f=this.index;this.index=p,this.tolerateUnexpectedToken(s.Messages.InvalidEscapedReservedWord),this.index=f;}return {type:c,value:h,lineNumber:this.lineNumber,lineStart:this.lineStart,start:p,end:this.index}},l.prototype.scanPunctuator=function(){var c=this.index,p=this.source[this.index];switch(p){case"(":case"{":p==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,p="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:p=this.source.substr(this.index,4),p===">>>="?this.index+=4:(p=p.substr(0,3),p==="==="||p==="!=="||p===">>>"||p==="<<="||p===">>="||p==="**="?this.index+=3:(p=p.substr(0,2),p==="&&"||p==="||"||p==="=="||p==="!="||p==="+="||p==="-="||p==="*="||p==="/="||p==="++"||p==="--"||p==="<<"||p===">>"||p==="&="||p==="|="||p==="^="||p==="%="||p==="<="||p===">="||p==="=>"||p==="**"?this.index+=2:(p=this.source[this.index],"<>=!+-*%&|^/".indexOf(p)>=0&&++this.index)));}return this.index===c&&this.throwUnexpectedToken(),{type:7,value:p,lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},l.prototype.scanHexLiteral=function(c){for(var p="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)p+=this.source[this.index++];return p.length===0&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+p,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},l.prototype.scanBinaryLiteral=function(c){for(var p="",h;!this.eof()&&(h=this.source[this.index],!(h!=="0"&&h!=="1"));)p+=this.source[this.index++];return p.length===0&&this.throwUnexpectedToken(),this.eof()||(h=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(h)||i.Character.isDecimalDigit(h))&&this.throwUnexpectedToken()),{type:6,value:parseInt(p,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},l.prototype.scanOctalLiteral=function(c,p){var h="",f=!1;for(i.Character.isOctalDigit(c.charCodeAt(0))?(f=!0,h="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)h+=this.source[this.index++];return !f&&h.length===0&&this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(h,8),octal:f,lineNumber:this.lineNumber,lineStart:this.lineStart,start:p,end:this.index}},l.prototype.isImplicitOctalLiteral=function(){for(var c=this.index+1;c<this.length;++c){var p=this.source[c];if(p==="8"||p==="9")return !1;if(!i.Character.isOctalDigit(p.charCodeAt(0)))return !0}return !0},l.prototype.scanNumericLiteral=function(){var c=this.index,p=this.source[c];n.assert(i.Character.isDecimalDigit(p.charCodeAt(0))||p===".","Numeric literal must start with a decimal digit or a decimal point");var h="";if(p!=="."){if(h=this.source[this.index++],p=this.source[this.index],h==="0"){if(p==="x"||p==="X")return ++this.index,this.scanHexLiteral(c);if(p==="b"||p==="B")return ++this.index,this.scanBinaryLiteral(c);if(p==="o"||p==="O")return this.scanOctalLiteral(p,c);if(p&&i.Character.isOctalDigit(p.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(p,c)}for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)h+=this.source[this.index++];p=this.source[this.index];}if(p==="."){for(h+=this.source[this.index++];i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)h+=this.source[this.index++];p=this.source[this.index];}if(p==="e"||p==="E")if(h+=this.source[this.index++],p=this.source[this.index],(p==="+"||p==="-")&&(h+=this.source[this.index++]),i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)h+=this.source[this.index++];else this.throwUnexpectedToken();return i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(h),lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},l.prototype.scanStringLiteral=function(){var c=this.index,p=this.source[c];n.assert(p==="'"||p==='"',"String literal must starts with a quote"),++this.index;for(var h=!1,f="";!this.eof();){var d=this.source[this.index++];if(d===p){p="";break}else if(d==="\\")if(d=this.source[this.index++],!d||!i.Character.isLineTerminator(d.charCodeAt(0)))switch(d){case"u":if(this.source[this.index]==="{")++this.index,f+=this.scanUnicodeCodePointEscape();else {var m=this.scanHexEscape(d);m===null&&this.throwUnexpectedToken(),f+=m;}break;case"x":var y=this.scanHexEscape(d);y===null&&this.throwUnexpectedToken(s.Messages.InvalidHexEscapeSequence),f+=y;break;case"n":f+=`
`;break;case"r":f+="\r";break;case"t":f+=" ";break;case"b":f+="\b";break;case"f":f+="\f";break;case"v":f+="\v";break;case"8":case"9":f+=d,this.tolerateUnexpectedToken();break;default:if(d&&i.Character.isOctalDigit(d.charCodeAt(0))){var g=this.octalToDecimal(d);h=g.octal||h,f+=String.fromCharCode(g.code);}else f+=d;break}else ++this.lineNumber,d==="\r"&&this.source[this.index]===`
`&&++this.index,this.lineStart=this.index;else {if(i.Character.isLineTerminator(d.charCodeAt(0)))break;f+=d;}}return p!==""&&(this.index=c,this.throwUnexpectedToken()),{type:8,value:f,octal:h,lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},l.prototype.scanTemplate=function(){var c="",p=!1,h=this.index,f=this.source[h]==="`",d=!1,m=2;for(++this.index;!this.eof();){var y=this.source[this.index++];if(y==="`"){m=1,d=!0,p=!0;break}else if(y==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,p=!0;break}c+=y;}else if(y==="\\")if(y=this.source[this.index++],i.Character.isLineTerminator(y.charCodeAt(0)))++this.lineNumber,y==="\r"&&this.source[this.index]===`
`&&++this.index,this.lineStart=this.index;else switch(y){case"n":c+=`
`;break;case"r":c+="\r";break;case"t":c+=" ";break;case"u":if(this.source[this.index]==="{")++this.index,c+=this.scanUnicodeCodePointEscape();else {var g=this.index,v=this.scanHexEscape(y);v!==null?c+=v:(this.index=g,c+=y);}break;case"x":var E=this.scanHexEscape(y);E===null&&this.throwUnexpectedToken(s.Messages.InvalidHexEscapeSequence),c+=E;break;case"b":c+="\b";break;case"f":c+="\f";break;case"v":c+="\v";break;default:y==="0"?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(s.Messages.TemplateOctalLiteral),c+="\0"):i.Character.isOctalDigit(y.charCodeAt(0))?this.throwUnexpectedToken(s.Messages.TemplateOctalLiteral):c+=y;break}else i.Character.isLineTerminator(y.charCodeAt(0))?(++this.lineNumber,y==="\r"&&this.source[this.index]===`
`&&++this.index,this.lineStart=this.index,c+=`
`):c+=y;}return p||this.throwUnexpectedToken(),f||this.curlyStack.pop(),{type:10,value:this.source.slice(h+1,this.index-m),cooked:c,head:f,tail:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},l.prototype.testRegExp=function(c,p){var h="\uFFFF",f=c,d=this;p.indexOf("u")>=0&&(f=f.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(m,y,g){var v=parseInt(y||g,16);return v>1114111&&d.throwUnexpectedToken(s.Messages.InvalidRegExp),v<=65535?String.fromCharCode(v):h}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h));try{RegExp(f);}catch{this.throwUnexpectedToken(s.Messages.InvalidRegExp);}try{return new RegExp(c,p)}catch{return null}},l.prototype.scanRegExpBody=function(){var c=this.source[this.index];n.assert(c==="/","Regular expression literal must start with a slash");for(var p=this.source[this.index++],h=!1,f=!1;!this.eof();)if(c=this.source[this.index++],p+=c,c==="\\")c=this.source[this.index++],i.Character.isLineTerminator(c.charCodeAt(0))&&this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),p+=c;else if(i.Character.isLineTerminator(c.charCodeAt(0)))this.throwUnexpectedToken(s.Messages.UnterminatedRegExp);else if(h)c==="]"&&(h=!1);else if(c==="/"){f=!0;break}else c==="["&&(h=!0);return f||this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),p.substr(1,p.length-2)},l.prototype.scanRegExpFlags=function(){for(var c="",p="";!this.eof();){var h=this.source[this.index];if(!i.Character.isIdentifierPart(h.charCodeAt(0)))break;if(++this.index,h==="\\"&&!this.eof())if(h=this.source[this.index],h==="u"){++this.index;var f=this.index,d=this.scanHexEscape("u");if(d!==null)for(p+=d,c+="\\u";f<this.index;++f)c+=this.source[f];else this.index=f,p+="u",c+="\\u";this.tolerateUnexpectedToken();}else c+="\\",this.tolerateUnexpectedToken();else p+=h,c+=h;}return p},l.prototype.scanRegExp=function(){var c=this.index,p=this.scanRegExpBody(),h=this.scanRegExpFlags(),f=this.testRegExp(p,h);return {type:9,value:"",pattern:p,flags:h,regex:f,lineNumber:this.lineNumber,lineStart:this.lineStart,start:c,end:this.index}},l.prototype.lex=function(){if(this.eof())return {type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var c=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(c)?this.scanIdentifier():c===40||c===41||c===59?this.scanPunctuator():c===39||c===34?this.scanStringLiteral():c===46?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(c)?this.scanNumericLiteral():c===96||c===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():c>=55296&&c<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},l}();t.Scanner=u;},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="<end>",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template";},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",lang:"\u27E8",rang:"\u27E9"};},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(10),i=r(12),s=r(13),a=function(){function u(){this.values=[],this.curly=this.paren=-1;}return u.prototype.beforeFunctionExpression=function(l){return ["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(l)>=0},u.prototype.isRegexStart=function(){var l=this.values[this.values.length-1],c=l!==null;switch(l){case"this":case"]":c=!1;break;case")":var p=this.values[this.paren-1];c=p==="if"||p==="while"||p==="for"||p==="with";break;case"}":if(c=!1,this.values[this.curly-3]==="function"){var h=this.values[this.curly-4];c=h?!this.beforeFunctionExpression(h):!1;}else if(this.values[this.curly-4]==="function"){var h=this.values[this.curly-5];c=h?!this.beforeFunctionExpression(h):!0;}break;}return c},u.prototype.push=function(l){l.type===7||l.type===4?(l.value==="{"?this.curly=this.values.length:l.value==="("&&(this.paren=this.values.length),this.values.push(l.value)):this.values.push(null);},u}(),o=function(){function u(l,c){this.errorHandler=new n.ErrorHandler,this.errorHandler.tolerant=c?typeof c.tolerant=="boolean"&&c.tolerant:!1,this.scanner=new i.Scanner(l,this.errorHandler),this.scanner.trackComment=c?typeof c.comment=="boolean"&&c.comment:!1,this.trackRange=c?typeof c.range=="boolean"&&c.range:!1,this.trackLoc=c?typeof c.loc=="boolean"&&c.loc:!1,this.buffer=[],this.reader=new a;}return u.prototype.errors=function(){return this.errorHandler.errors},u.prototype.getNextToken=function(){if(this.buffer.length===0){var l=this.scanner.scanComments();if(this.scanner.trackComment)for(var c=0;c<l.length;++c){var p=l[c],h=this.scanner.source.slice(p.slice[0],p.slice[1]),f={type:p.multiLine?"BlockComment":"LineComment",value:h};this.trackRange&&(f.range=p.range),this.trackLoc&&(f.loc=p.loc),this.buffer.push(f);}if(!this.scanner.eof()){var d=void 0;this.trackLoc&&(d={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var m=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),y=m?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(y);var g={type:s.TokenName[y.type],value:this.scanner.source.slice(y.start,y.end)};if(this.trackRange&&(g.range=[y.start,y.end]),this.trackLoc&&(d.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},g.loc=d),y.type===9){var v=y.pattern,E=y.flags;g.regex={pattern:v,flags:E};}this.buffer.push(g);}}return this.buffer.shift()},u}();t.Tokenizer=o;}])});});var KCe=chunkTKGT252T_js.c(wI=>{Object.defineProperty(wI,"__esModule",{value:!0});wI.parse=void 0;var CI=pl();function o8t(e,t){var r=[],n=y6().parse(e,{loc:!0,locations:!0,comment:!0,onComment:r,range:(0, CI.getOption)(t,"range",!1),tolerant:(0, CI.getOption)(t,"tolerant",!0),tokens:!0,jsx:(0, CI.getOption)(t,"jsx",!1),sourceType:(0, CI.getOption)(t,"sourceType","module")});return Array.isArray(n.comments)||(n.comments=r),n}wI.parse=o8t;});var OI=chunkTKGT252T_js.c(II=>{Object.defineProperty(II,"__esModule",{value:!0});II.normalize=void 0;var u8t=pl(),g6={parser:KCe(),tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:(0, u8t.getLineTerminator)(),wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},l8t=g6.hasOwnProperty;function c8t(e){var t=e||g6;function r(n){return l8t.call(t,n)?t[n]:g6[n]}return {tabWidth:+r("tabWidth"),useTabs:!!r("useTabs"),reuseWhitespace:!!r("reuseWhitespace"),lineTerminator:r("lineTerminator"),wrapColumn:Math.max(r("wrapColumn"),0),sourceFileName:r("sourceFileName"),sourceMapName:r("sourceMapName"),sourceRoot:r("sourceRoot"),inputSourceMap:r("inputSourceMap"),parser:r("esprima")||r("parser"),range:r("range"),tolerant:r("tolerant"),quote:r("quote"),trailingComma:r("trailingComma"),arrayBracketSpacing:r("arrayBracketSpacing"),objectCurlySpacing:r("objectCurlySpacing"),arrowParensAlways:r("arrowParensAlways"),flowObjectCommas:r("flowObjectCommas"),tokens:!!r("tokens")}}II.normalize=c8t;});var WCe=chunkTKGT252T_js.c(S6=>{Object.defineProperty(S6,"__esModule",{value:!0});var p8t=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),Gd=p8t.__importDefault(Ic()),Gf=pl(),f8t=function(){function e(t,r,n){n===void 0&&(n=r),this.sourceLines=t,this.sourceLoc=r,this.targetLoc=n;}return e.prototype.slice=function(t,r,n){n===void 0&&(n=t.lastPos());var i=this.sourceLines,s=this.sourceLoc,a=this.targetLoc;function o(u){var l=s[u],c=a[u],p=r;return u==="end"?p=n:(0, Gd.default)(u==="start"),h8t(i,l,t,c,p)}if((0, Gf.comparePos)(r,a.start)<=0)if((0, Gf.comparePos)(a.end,n)<=0)a={start:Hf(a.start,r.line,r.column),end:Hf(a.end,r.line,r.column)};else {if((0, Gf.comparePos)(n,a.start)<=0)return null;s={start:s.start,end:o("end")},a={start:Hf(a.start,r.line,r.column),end:Hf(n,r.line,r.column)};}else {if((0, Gf.comparePos)(a.end,r)<=0)return null;(0, Gf.comparePos)(a.end,n)<=0?(s={start:o("start"),end:s.end},a={start:{line:1,column:0},end:Hf(a.end,r.line,r.column)}):(s={start:o("start"),end:o("end")},a={start:{line:1,column:0},end:Hf(n,r.line,r.column)});}return new e(this.sourceLines,s,a)},e.prototype.add=function(t,r){return new e(this.sourceLines,this.sourceLoc,{start:YCe(this.targetLoc.start,t,r),end:YCe(this.targetLoc.end,t,r)})},e.prototype.subtract=function(t,r){return new e(this.sourceLines,this.sourceLoc,{start:Hf(this.targetLoc.start,t,r),end:Hf(this.targetLoc.end,t,r)})},e.prototype.indent=function(t,r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),t===0)return this;var i=this.targetLoc,s=i.start.line,a=i.end.line;if(r&&s===1&&a===1)return this;if(i={start:i.start,end:i.end},!r||s>1){var o=i.start.column+t;i.start={line:s,column:n?Math.max(0,o):o};}if(!r||a>1){var u=i.end.column+t;i.end={line:a,column:n?Math.max(0,u):u};}return new e(this.sourceLines,this.sourceLoc,i)},e}();S6.default=f8t;function YCe(e,t,r){return {line:e.line+t-1,column:e.line===1?e.column+r:e.column}}function Hf(e,t,r){return {line:e.line-t+1,column:e.line===t?e.column-r:e.column}}function h8t(e,t,r,n,i){var s=(0, Gf.comparePos)(n,i);if(s===0)return t;var a,o;if(s<0){a=e.skipSpaces(t)||e.lastPos(),o=r.skipSpaces(n)||r.lastPos();var u=i.line-o.line;for(a.line+=u,o.line+=u,u>0?(a.column=0,o.column=0):(0, Gd.default)(u===0);(0, Gf.comparePos)(o,i)<0&&r.nextPos(o,!0);)(0, Gd.default)(e.nextPos(a,!0)),(0, Gd.default)(e.charAt(a)===r.charAt(o));}else {a=e.skipSpaces(t,!0)||e.firstPos(),o=r.skipSpaces(n,!0)||r.firstPos();var u=i.line-o.line;for(a.line+=u,o.line+=u,u<0?(a.column=e.getLineLength(a.line),o.column=r.getLineLength(o.line)):(0, Gd.default)(u===0);(0, Gf.comparePos)(i,o)<0&&r.prevPos(o,!0);)(0, Gd.default)(e.prevPos(a,!0)),(0, Gd.default)(e.charAt(a)===r.charAt(o));}return a}});var lv=chunkTKGT252T_js.c(fl=>{Object.defineProperty(fl,"__esModule",{value:!0});fl.concat=fl.fromString=fl.countSpaces=fl.Lines=void 0;var wo=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),Jn=wo.__importDefault(Ic()),d8t=wo.__importDefault(f6()),zCe=OI(),XCe=pl(),m8t=wo.__importDefault(WCe()),T6=function(){function e(t,r){r===void 0&&(r=null),this.infos=t,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,(0, Jn.default)(t.length>0),this.length=t.length,this.name=r||null,this.name&&this.mappings.push(new m8t.default(this,{start:this.firstPos(),end:this.lastPos()}));}return e.prototype.toString=function(t){return this.sliceString(this.firstPos(),this.lastPos(),t)},e.prototype.getSourceMap=function(t,r){if(!t)return null;var n=this;function i(o){return o=o||{},o.file=t,r&&(o.sourceRoot=r),o}if(n.cachedSourceMap)return i(n.cachedSourceMap.toJSON());var s=new d8t.default.SourceMapGenerator(i()),a={};return n.mappings.forEach(function(o){for(var u=o.sourceLines.skipSpaces(o.sourceLoc.start)||o.sourceLines.lastPos(),l=n.skipSpaces(o.targetLoc.start)||n.lastPos();(0, XCe.comparePos)(u,o.sourceLoc.end)<0&&(0, XCe.comparePos)(l,o.targetLoc.end)<0;){var c=o.sourceLines.charAt(u),p=n.charAt(l);(0, Jn.default)(c===p);var h=o.sourceLines.name;if(s.addMapping({source:h,original:{line:u.line,column:u.column},generated:{line:l.line,column:l.column}}),!E6.call(a,h)){var f=o.sourceLines.toString();s.setSourceContent(h,f),a[h]=f;}n.nextPos(l,!0),o.sourceLines.nextPos(u,!0);}}),n.cachedSourceMap=s,s.toJSON()},e.prototype.bootstrapCharAt=function(t){(0, Jn.default)(typeof t=="object"),(0, Jn.default)(typeof t.line=="number"),(0, Jn.default)(typeof t.column=="number");var r=t.line,n=t.column,i=this.toString().split(b6),s=i[r-1];return typeof s>"u"?"":n===s.length&&r<i.length?`
`:n>=s.length?"":s.charAt(n)},e.prototype.charAt=function(t){(0, Jn.default)(typeof t=="object"),(0, Jn.default)(typeof t.line=="number"),(0, Jn.default)(typeof t.column=="number");var r=t.line,n=t.column,i=this,s=i.infos,a=s[r-1],o=n;if(typeof a>"u"||o<0)return "";var u=this.getIndentAt(r);return o<u?" ":(o+=a.sliceStart-u,o===a.sliceEnd&&r<this.length?`
`:o>=a.sliceEnd?"":a.line.charAt(o))},e.prototype.stripMargin=function(t,r){if(t===0)return this;if((0, Jn.default)(t>0,"negative margin: "+t),r&&this.length===1)return this;var n=new e(this.infos.map(function(s,a){return s.line&&(a>0||!r)&&(s=wo.__assign(wo.__assign({},s),{indent:Math.max(0,s.indent-t)})),s}));if(this.mappings.length>0){var i=n.mappings;(0, Jn.default)(i.length===0),this.mappings.forEach(function(s){i.push(s.indent(t,r,!0));});}return n},e.prototype.indent=function(t){if(t===0)return this;var r=new e(this.infos.map(function(i){return i.line&&!i.locked&&(i=wo.__assign(wo.__assign({},i),{indent:i.indent+t})),i}));if(this.mappings.length>0){var n=r.mappings;(0, Jn.default)(n.length===0),this.mappings.forEach(function(i){n.push(i.indent(t));});}return r},e.prototype.indentTail=function(t){if(t===0)return this;if(this.length<2)return this;var r=new e(this.infos.map(function(i,s){return s>0&&i.line&&!i.locked&&(i=wo.__assign(wo.__assign({},i),{indent:i.indent+t})),i}));if(this.mappings.length>0){var n=r.mappings;(0, Jn.default)(n.length===0),this.mappings.forEach(function(i){n.push(i.indent(t,!0));});}return r},e.prototype.lockIndentTail=function(){return this.length<2?this:new e(this.infos.map(function(t,r){return wo.__assign(wo.__assign({},t),{locked:r>0})}))},e.prototype.getIndentAt=function(t){return (0, Jn.default)(t>=1,"no line "+t+" (line numbers start from 1)"),Math.max(this.infos[t-1].indent,0)},e.prototype.guessTabWidth=function(){if(typeof this.cachedTabWidth=="number")return this.cachedTabWidth;for(var t=[],r=0,n=1,i=this.length;n<=i;++n){var s=this.infos[n-1],a=s.line.slice(s.sliceStart,s.sliceEnd);if(!NS(a)){var o=Math.abs(s.indent-r);t[o]=~~t[o]+1,r=s.indent;}}for(var u=-1,l=2,c=1;c<t.length;c+=1)E6.call(t,c)&&t[c]>u&&(u=t[c],l=c);return this.cachedTabWidth=l},e.prototype.startsWithComment=function(){if(this.infos.length===0)return !1;var t=this.infos[0],r=t.sliceStart,n=t.sliceEnd,i=t.line.slice(r,n).trim();return i.length===0||i.slice(0,2)==="//"||i.slice(0,2)==="/*"},e.prototype.isOnlyWhitespace=function(){return NS(this.toString())},e.prototype.isPrecededOnlyByWhitespace=function(t){var r=this.infos[t.line-1],n=Math.max(r.indent,0),i=t.column-n;if(i<=0)return !0;var s=r.sliceStart,a=Math.min(s+i,r.sliceEnd),o=r.line.slice(s,a);return NS(o)},e.prototype.getLineLength=function(t){var r=this.infos[t-1];return this.getIndentAt(t)+r.sliceEnd-r.sliceStart},e.prototype.nextPos=function(t,r){r===void 0&&(r=!1);var n=Math.max(t.line,0),i=Math.max(t.column,0);return i<this.getLineLength(n)?(t.column+=1,r?!!this.skipSpaces(t,!1,!0):!0):n<this.length?(t.line+=1,t.column=0,r?!!this.skipSpaces(t,!1,!0):!0):!1},e.prototype.prevPos=function(t,r){r===void 0&&(r=!1);var n=t.line,i=t.column;if(i<1){if(n-=1,n<1)return !1;i=this.getLineLength(n);}else i=Math.min(i-1,this.getLineLength(n));return t.line=n,t.column=i,r?!!this.skipSpaces(t,!0,!0):!0},e.prototype.firstPos=function(){return {line:1,column:0}},e.prototype.lastPos=function(){return {line:this.length,column:this.getLineLength(this.length)}},e.prototype.skipSpaces=function(t,r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),t?t=n?t:{line:t.line,column:t.column}:r?t=this.lastPos():t=this.firstPos(),r){for(;this.prevPos(t);)if(!NS(this.charAt(t))&&this.nextPos(t))return t;return null}else {for(;NS(this.charAt(t));)if(!this.nextPos(t))return null;return t}},e.prototype.trimLeft=function(){var t=this.skipSpaces(this.firstPos(),!1,!0);return t?this.slice(t):$d},e.prototype.trimRight=function(){var t=this.skipSpaces(this.lastPos(),!0,!0);return t?this.slice(this.firstPos(),t):$d},e.prototype.trim=function(){var t=this.skipSpaces(this.firstPos(),!1,!0);if(t===null)return $d;var r=this.skipSpaces(this.lastPos(),!0,!0);return r===null?$d:this.slice(t,r)},e.prototype.eachPos=function(t,r,n){r===void 0&&(r=this.firstPos()),n===void 0&&(n=!1);var i=this.firstPos();if(r&&(i.line=r.line,i.column=r.column),!(n&&!this.skipSpaces(i,!1,!0)))do t.call(this,i);while(this.nextPos(i,n))},e.prototype.bootstrapSlice=function(t,r){var n=this.toString().split(b6).slice(t.line-1,r.line);return n.length>0&&(n.push(n.pop().slice(0,r.column)),n[0]=n[0].slice(t.column)),NI(n.join(`
`))},e.prototype.slice=function(t,r){if(!r){if(!t)return this;r=this.lastPos();}if(!t)throw new Error("cannot slice with end but not start");var n=this.infos.slice(t.line-1,r.line);t.line===r.line?n[0]=RS(n[0],t.column,r.column):((0, Jn.default)(t.line<r.line),n[0]=RS(n[0],t.column),n.push(RS(n.pop(),0,r.column)));var i=new e(n);if(this.mappings.length>0){var s=i.mappings;(0, Jn.default)(s.length===0),this.mappings.forEach(function(a){var o=a.slice(this,t,r);o&&s.push(o);},this);}return i},e.prototype.bootstrapSliceString=function(t,r,n){return this.slice(t,r).toString(n)},e.prototype.sliceString=function(t,r,n){t===void 0&&(t=this.firstPos()),r===void 0&&(r=this.lastPos());for(var i=(0, zCe.normalize)(n),s=i.tabWidth,a=i.useTabs,o=i.reuseWhitespace,u=i.lineTerminator,l=[],c=t.line;c<=r.line;++c){var p=this.infos[c-1];c===t.line?c===r.line?p=RS(p,t.column,r.column):p=RS(p,t.column):c===r.line&&(p=RS(p,0,r.column));var h=Math.max(p.indent,0),f=p.line.slice(0,p.sliceStart);if(o&&NS(f)&&v6(f,s)===h){l.push(p.line.slice(0,p.sliceEnd));continue}var d=0,m=h;a&&(d=Math.floor(h/s),m-=d*s);var y="";d>0&&(y+=new Array(d+1).join(" ")),m>0&&(y+=new Array(m+1).join(" ")),y+=p.line.slice(p.sliceStart,p.sliceEnd),l.push(y);}return l.join(u)},e.prototype.isEmpty=function(){return this.length<2&&this.getLineLength(1)<1},e.prototype.join=function(t){var r=this,n=[],i=[],s;function a(l){if(l!==null){if(s){var c=l.infos[0],p=new Array(c.indent+1).join(" "),h=n.length,f=Math.max(s.indent,0)+s.sliceEnd-s.sliceStart;s.line=s.line.slice(0,s.sliceEnd)+p+c.line.slice(c.sliceStart,c.sliceEnd),s.locked=s.locked||c.locked,s.sliceEnd=s.line.length,l.mappings.length>0&&l.mappings.forEach(function(d){i.push(d.add(h,f));});}else l.mappings.length>0&&i.push.apply(i,l.mappings);l.infos.forEach(function(d,m){(!s||m>0)&&(s=wo.__assign({},d),n.push(s));});}}function o(l,c){c>0&&a(r),a(l);}if(t.map(function(l){var c=NI(l);return c.isEmpty()?null:c}).forEach(function(l,c){r.isEmpty()?a(l):o(l,c);}),n.length<1)return $d;var u=new e(n);return u.mappings=i,u},e.prototype.concat=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=[this];return n.push.apply(n,t),(0, Jn.default)(n.length===t.length+1),$d.join(n)},e}();fl.Lines=T6;var DI={},E6=DI.hasOwnProperty,y8t=10;function v6(e,t){for(var r=0,n=e.length,i=0;i<n;++i)switch(e.charCodeAt(i)){case 9:{(0, Jn.default)(typeof t=="number"),(0, Jn.default)(t>0);var s=Math.ceil(r/t)*t;s===r?r+=t:r=s;break}case 11:case 12:case 13:case 65279:break;case 32:default:r+=1;break}return r}fl.countSpaces=v6;var g8t=/^\s*/,b6=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function NI(e,t){if(e instanceof T6)return e;e+="";var r=t&&t.tabWidth,n=e.indexOf(" ")<0,i=!t&&n&&e.length<=y8t;if((0, Jn.default)(r||n,`No tab width specified but encountered tabs in string
`+e),i&&E6.call(DI,e))return DI[e];var s=new T6(e.split(b6).map(function(a){var o=g8t.exec(a)[0];return {line:a,indent:v6(o,r),locked:!1,sliceStart:o.length,sliceEnd:a.length}}),(0, zCe.normalize)(t).sourceFileName);return i&&(DI[e]=s),s}fl.fromString=NI;function NS(e){return !/\S/.test(e)}function RS(e,t,r){var n=e.sliceStart,i=e.sliceEnd,s=Math.max(e.indent,0),a=s+i-n;return typeof r>"u"&&(r=a),t=Math.max(t,0),r=Math.min(r,a),r=Math.max(r,t),r<s?(s=r,i=n):i-=a-r,a=r,a-=t,t<s?s-=t:(t-=s,s=0,n+=t),(0, Jn.default)(s>=0),(0, Jn.default)(n<=i),(0, Jn.default)(a===s+i-n),e.indent===s&&e.sliceStart===n&&e.sliceEnd===i?e:{line:e.line,indent:s,locked:!1,sliceStart:n,sliceEnd:i}}function S8t(e){return $d.join(e)}fl.concat=S8t;var $d=NI("");});var A6=chunkTKGT252T_js.c(kS=>{Object.defineProperty(kS,"__esModule",{value:!0});kS.printComments=kS.attach=void 0;var QCe=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),_6=QCe.__importDefault(Ic()),Kd=QCe.__importStar(wc()),LS=Kd.namedTypes,ZCe=Kd.builtInTypes.array,T8t=Kd.builtInTypes.object,pv=lv(),MS=pl(),JCe=new WeakMap;function e1e(e,t,r){if(!e)return r;if((0, MS.fixFaultyLocations)(e,t),r){if(LS.Node.check(e)&&LS.SourceLocation.check(e.loc)){for(var n=r.length-1;n>=0;--n){var i=r[n];if(i&&i.loc&&(0, MS.comparePos)(i.loc.end,e.loc.start)<=0)break}return r.splice(n+1,0,e),r}}else {var s=JCe.get(e);if(s)return s}var a;if(ZCe.check(e))a=Object.keys(e);else if(T8t.check(e))a=Kd.getFieldNames(e);else return r;r||JCe.set(e,r=[]);for(var n=0,o=a.length;n<o;++n)e1e(e[a[n]],t,r);return r}function t1e(e,t,r){for(var n=e1e(e,r),i=0,s=n&&n.length,a,o;typeof s=="number"&&i<s;){var u=i+s>>1,l=n[u];if((0, MS.comparePos)(l.loc.start,t.loc.start)<=0&&(0, MS.comparePos)(t.loc.end,l.loc.end)<=0){t1e(t.enclosingNode=l,t,r);return}if((0, MS.comparePos)(l.loc.end,t.loc.start)<=0){a=l,i=u+1;continue}if((0, MS.comparePos)(t.loc.end,l.loc.start)<=0){o=l,s=u;continue}throw new Error("Comment location overlaps with node location")}a&&(t.precedingNode=a),o&&(t.followingNode=o);}function E8t(e,t,r){if(ZCe.check(e)){var n=[];e.forEach(function(i){i.loc.lines=r,t1e(t,i,r);var s=i.precedingNode,a=i.enclosingNode,o=i.followingNode;if(s&&o){var u=n.length;if(u>0){var l=n[u-1];(0, _6.default)(l.precedingNode===i.precedingNode==(l.followingNode===i.followingNode)),l.followingNode!==i.followingNode&&cv(n,r);}n.push(i);}else if(s)cv(n,r),n1e(s,i);else if(o)cv(n,r),r1e(o,i);else if(a)cv(n,r),b8t(a,i);else throw new Error("AST contains no nodes at all?")}),cv(n,r),e.forEach(function(i){delete i.precedingNode,delete i.enclosingNode,delete i.followingNode;});}}kS.attach=E8t;function cv(e,t){var r=e.length;if(r!==0){for(var n=e[0].precedingNode,i=e[0].followingNode,s=i.loc.start,a=r,o;a>0;--a){o=e[a-1],(0, _6.default)(o.precedingNode===n),(0, _6.default)(o.followingNode===i);var u=t.sliceString(o.loc.end,s);if(/\S/.test(u))break;s=o.loc.start;}for(;a<=r&&(o=e[a])&&(o.type==="Line"||o.type==="CommentLine")&&o.loc.start.column>i.loc.start.column;)++a;if(a){var l=e[a-1].enclosingNode;(l==null?void 0:l.type)==="CallExpression"&&--a;}e.forEach(function(c,p){p<a?n1e(n,c):r1e(i,c);}),e.length=0;}}function x6(e,t){var r=e.comments||(e.comments=[]);r.push(t);}function r1e(e,t){t.leading=!0,t.trailing=!1,x6(e,t);}function b8t(e,t){t.leading=!1,t.trailing=!1,x6(e,t);}function n1e(e,t){t.leading=!1,t.trailing=!0,x6(e,t);}function v8t(e,t){var r=e.getValue();LS.Comment.assert(r);var n=r.loc,i=n&&n.lines,s=[t(e)];if(r.trailing)s.push(`
`);else if(i instanceof pv.Lines){var a=i.slice(n.end,i.skipSpaces(n.end)||i.lastPos());a.length===1?s.push(a):s.push(new Array(a.length).join(`
`));}else s.push(`
`);return (0, pv.concat)(s)}function _8t(e,t){var r=e.getValue(e);LS.Comment.assert(r);var n=r.loc,i=n&&n.lines,s=[];if(i instanceof pv.Lines){var a=i.skipSpaces(n.start,!0)||i.firstPos(),o=i.slice(a,n.start);o.length===1?s.push(o):s.push(new Array(o.length).join(`
`));}return s.push(t(e)),(0, pv.concat)(s)}function x8t(e,t){var r=e.getValue(),n=t(e),i=LS.Node.check(r)&&Kd.getFieldValue(r,"comments");if(!i||i.length===0)return n;var s=[],a=[n];return e.each(function(o){var u=o.getValue(),l=Kd.getFieldValue(u,"leading"),c=Kd.getFieldValue(u,"trailing");l||c&&!(LS.Statement.check(r)||u.type==="Block"||u.type==="CommentBlock")?s.push(v8t(o,t)):c&&a.push(_8t(o,t));},"comments"),s.push.apply(s,a),(0, pv.concat)(s)}kS.printComments=x8t;});var a1e=chunkTKGT252T_js.c(RI=>{Object.defineProperty(RI,"__esModule",{value:!0});RI.parse=void 0;var P6=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),A8t=P6.__importDefault(Ic()),C6=P6.__importStar(wc()),P8t=C6.builders,C8t=C6.builtInTypes.object,w8t=C6.builtInTypes.array,I8t=OI(),O8t=lv(),D8t=A6(),Dc=P6.__importStar(pl());function N8t(e,t){t=(0, I8t.normalize)(t);var r=(0, O8t.fromString)(e,t),n=r.toString({tabWidth:t.tabWidth,reuseWhitespace:!1,useTabs:!1}),i=[],s=t.parser.parse(n,{jsx:!0,loc:!0,locations:!0,range:t.range,comment:!0,onComment:i,tolerant:Dc.getOption(t,"tolerant",!0),ecmaVersion:6,sourceType:Dc.getOption(t,"sourceType","module")}),a=Array.isArray(s.tokens)?s.tokens:y6().tokenize(n,{loc:!0});delete s.tokens,a.forEach(function(c){typeof c.value!="string"&&(c.value=r.sliceString(c.loc.start,c.loc.end));}),Array.isArray(s.comments)&&(i=s.comments,delete s.comments),s.loc?Dc.fixFaultyLocations(s,r):s.loc={start:r.firstPos(),end:r.lastPos()},s.loc.lines=r,s.loc.indent=0;var o,u;s.type==="Program"?(u=s,o=P8t.file(s,t.sourceFileName||null),o.loc={start:r.firstPos(),end:r.lastPos(),lines:r,indent:0}):s.type==="File"&&(o=s,u=o.program),t.tokens&&(o.tokens=a);var l=Dc.getTrueLoc({type:u.type,loc:u.loc,body:[],comments:i},r);return u.loc.start=l.start,u.loc.end=l.end,(0, D8t.attach)(i,u.body.length?o.program:o,r),new i1e(r,a).copy(o)}RI.parse=N8t;var i1e=function e(t,r){(0, A8t.default)(this instanceof e),this.lines=t,this.tokens=r,this.startTokenIndex=0,this.endTokenIndex=r.length,this.indent=0,this.seen=new Map;},s1e=i1e.prototype;s1e.copy=function(e){if(this.seen.has(e))return this.seen.get(e);if(w8t.check(e)){var t=new Array(e.length);return this.seen.set(e,t),e.forEach(function(h,f){t[f]=this.copy(h);},this),t}if(!C8t.check(e))return e;Dc.fixFaultyLocations(e,this.lines);var r=Object.create(Object.getPrototypeOf(e),{original:{value:e,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(e,r);var n=e.loc,i=this.indent,s=i,a=this.startTokenIndex,o=this.endTokenIndex;n&&((e.type==="Block"||e.type==="Line"||e.type==="CommentBlock"||e.type==="CommentLine"||this.lines.isPrecededOnlyByWhitespace(n.start))&&(s=this.indent=n.start.column),n.lines=this.lines,n.tokens=this.tokens,n.indent=s,this.findTokenRange(n));for(var u=Object.keys(e),l=u.length,c=0;c<l;++c){var p=u[c];p==="loc"||p==="tokens"&&e.type==="File"?r[p]=e[p]:r[p]=this.copy(e[p]);}return this.indent=i,this.startTokenIndex=a,this.endTokenIndex=o,r};s1e.findTokenRange=function(e){for(;this.startTokenIndex>0;){var t=e.tokens[this.startTokenIndex];if(Dc.comparePos(e.start,t.loc.start)<0)--this.startTokenIndex;else break}for(;this.endTokenIndex<e.tokens.length;){var t=e.tokens[this.endTokenIndex];if(Dc.comparePos(t.loc.end,e.end)<0)++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){var t=e.tokens[this.startTokenIndex];if(Dc.comparePos(t.loc.start,e.start)<0)++this.startTokenIndex;else break}for(e.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){var t=e.tokens[this.endTokenIndex-1];if(Dc.comparePos(e.end,t.loc.end)<0)--this.endTokenIndex;else break}e.end.token=this.endTokenIndex;};});var N6=chunkTKGT252T_js.c(D6=>{Object.defineProperty(D6,"__esModule",{value:!0});var O6=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),Io=O6.__importDefault(Ic()),fv=O6.__importStar(wc()),o1e=O6.__importStar(pl()),In=fv.namedTypes,R8t=fv.builtInTypes.array,M8t=fv.builtInTypes.number,w6={};[["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(r){w6[r]=t;});});var Yd=function e(t){(0, Io.default)(this instanceof e),this.stack=[t];},Es=Yd.prototype;Yd.from=function(e){if(e instanceof Yd)return e.copy();if(e instanceof fv.NodePath){for(var t=Object.create(Yd.prototype),r=[e.value],n=void 0;n=e.parentPath;e=n)r.push(e.name,n.value);return t.stack=r.reverse(),t}return new Yd(e)};Es.copy=function(){var t=Object.create(Yd.prototype);return t.stack=this.stack.slice(0),t};Es.getName=function(){var t=this.stack,r=t.length;return r>1?t[r-2]:null};Es.getValue=function(){var t=this.stack;return t[t.length-1]};Es.valueIsDuplicate=function(){var e=this.stack,t=e.length-1;return e.lastIndexOf(e[t],t-1)>=0};function u1e(e,t){for(var r=e.stack,n=r.length-1;n>=0;n-=2){var i=r[n];if(In.Node.check(i)&&--t<0)return i}return null}Es.getNode=function(t){return t===void 0&&(t=0),u1e(this,~~t)};Es.getParentNode=function(t){return t===void 0&&(t=0),u1e(this,~~t+1)};Es.getRootValue=function(){var t=this.stack;return t.length%2===0?t[1]:t[0]};Es.call=function(t){for(var r=this.stack,n=r.length,i=r[n-1],s=arguments.length,a=1;a<s;++a){var o=arguments[a];i=i[o],r.push(o,i);}var u=t(this);return r.length=n,u};Es.each=function(t){for(var r=this.stack,n=r.length,i=r[n-1],s=arguments.length,a=1;a<s;++a){var o=arguments[a];i=i[o],r.push(o,i);}for(var a=0;a<i.length;++a)a in i&&(r.push(a,i[a]),t(this),r.length-=2);r.length=n;};Es.map=function(t){for(var r=this.stack,n=r.length,i=r[n-1],s=arguments.length,a=1;a<s;++a){var o=arguments[a];i=i[o],r.push(o,i);}for(var u=new Array(i.length),a=0;a<i.length;++a)a in i&&(r.push(a,i[a]),u[a]=t(this,a),r.length-=2);return r.length=n,u};Es.hasParens=function(){var e=this.getNode(),t=this.getPrevToken(e);if(!t)return !1;var r=this.getNextToken(e);if(!r)return !1;if(t.value==="("){if(r.value===")")return !0;var n=!this.canBeFirstInStatement()&&this.firstInStatement()&&!this.needsParens(!0);if(n)return !0}return !1};Es.getPrevToken=function(e){e=e||this.getNode();var t=e&&e.loc,r=t&&t.tokens;if(r&&t.start.token>0){var n=r[t.start.token-1];if(n){var i=this.getRootValue().loc;if(o1e.comparePos(i.start,n.loc.start)<=0)return n}}return null};Es.getNextToken=function(e){e=e||this.getNode();var t=e&&e.loc,r=t&&t.tokens;if(r&&t.end.token<r.length){var n=r[t.end.token];if(n){var i=this.getRootValue().loc;if(o1e.comparePos(n.loc.end,i.end)<=0)return n}}return null};Es.needsParens=function(e){var t=this.getNode();if(t.type==="AssignmentExpression"&&t.left.type==="ObjectPattern")return !0;var r=this.getParentNode(),n=this.getName();if(this.getValue()!==t||In.Statement.check(t)||t.type==="Identifier"||r&&r.type==="ParenthesizedExpression")return !1;if(t.extra&&t.extra.parenthesized)return !0;if(!r)return !1;if(t.type==="UnaryExpression"&&r.type==="BinaryExpression"&&n==="left"&&r.left===t&&r.operator==="**")return !0;switch(t.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return r.type==="MemberExpression"&&n==="object"&&r.object===t;case"BinaryExpression":case"LogicalExpression":switch(r.type){case"CallExpression":return n==="callee"&&r.callee===t;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return !0;case"MemberExpression":return n==="object"&&r.object===t;case"BinaryExpression":case"LogicalExpression":{var i=r.operator,s=w6[i],a=t.operator,o=w6[a];if(s>o)return !0;if(s===o&&n==="right")return (0, Io.default)(r.right===t),!0;break}default:return !1}break;case"SequenceExpression":switch(r.type){case"ReturnStatement":return !1;case"ForStatement":return !1;case"ExpressionStatement":return n!=="expression";default:return !0}case"OptionalIndexedAccessType":return t.optional&&r.type==="IndexedAccessType";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return r.type==="NullableTypeAnnotation";case"Literal":return r.type==="MemberExpression"&&M8t.check(t.value)&&n==="object"&&r.object===t;case"NumericLiteral":return r.type==="MemberExpression"&&n==="object"&&r.object===t;case"YieldExpression":case"AwaitExpression":case"AssignmentExpression":case"ConditionalExpression":switch(r.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return !0;case"CallExpression":case"NewExpression":return n==="callee"&&r.callee===t;case"ConditionalExpression":return n==="test"&&r.test===t;case"MemberExpression":return n==="object"&&r.object===t;default:return !1}case"ArrowFunctionExpression":return In.CallExpression.check(r)&&n==="callee"&&r.callee===t||In.MemberExpression.check(r)&&n==="object"&&r.object===t||In.TSAsExpression&&In.TSAsExpression.check(r)&&n==="expression"&&r.expression===t?!0:l1e(r);case"ObjectExpression":if(r.type==="ArrowFunctionExpression"&&n==="body"&&r.body===t)return !0;break;case"TSAsExpression":if(r.type==="ArrowFunctionExpression"&&n==="body"&&r.body===t&&t.expression.type==="ObjectExpression")return !0;break;case"CallExpression":if(n==="declaration"&&In.ExportDefaultDeclaration.check(r)&&In.FunctionExpression.check(t.callee))return !0}return r.type==="NewExpression"&&n==="callee"&&r.callee===t?I6(t):!!(e!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function l1e(e){return In.BinaryExpression.check(e)||In.LogicalExpression.check(e)}function I6(e){return In.CallExpression.check(e)?!0:R8t.check(e)?e.some(I6):In.Node.check(e)?fv.someField(e,function(t,r){return I6(r)}):!1}Es.canBeFirstInStatement=function(){var e=this.getNode();return !(In.FunctionExpression.check(e)||In.ObjectExpression.check(e)||In.ClassExpression.check(e))};Es.firstInStatement=function(){for(var e=this.stack,t,r,n,i,s=e.length-1;s>=0;s-=2)if(In.Node.check(e[s])&&(n=t,i=r,t=e[s-1],r=e[s]),!(!r||!i)){if(In.BlockStatement.check(r)&&t==="body"&&n===0)return (0, Io.default)(r.body[0]===i),!0;if(In.ExpressionStatement.check(r)&&n==="expression")return (0, Io.default)(r.expression===i),!0;if(In.AssignmentExpression.check(r)&&n==="left")return (0, Io.default)(r.left===i),!0;if(In.ArrowFunctionExpression.check(r)&&n==="body")return (0, Io.default)(r.body===i),!0;if(In.SequenceExpression.check(r)&&e[s+1]==="expressions"&&n===0){(0, Io.default)(r.expressions[0]===i);continue}if(In.CallExpression.check(r)&&n==="callee"){(0, Io.default)(r.callee===i);continue}if(In.MemberExpression.check(r)&&n==="object"){(0, Io.default)(r.object===i);continue}if(In.ConditionalExpression.check(r)&&n==="test"){(0, Io.default)(r.test===i);continue}if(l1e(r)&&n==="left"){(0, Io.default)(r.left===i);continue}if(In.UnaryExpression.check(r)&&!r.prefix&&n==="argument"){(0, Io.default)(r.argument===i);continue}return !1}return !0};D6.default=Yd;});var m1e=chunkTKGT252T_js.c(BS=>{Object.defineProperty(BS,"__esModule",{value:!0});BS.getReprinter=BS.Patcher=void 0;var kI=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),FS=kI.__importDefault(Ic()),hv=kI.__importStar(lv()),Nc=kI.__importStar(wc()),mv=Nc.namedTypes.Printable,c1e=Nc.namedTypes.Expression,L8t=Nc.namedTypes.ReturnStatement,k8t=Nc.namedTypes.SourceLocation,dv=pl(),MI=kI.__importDefault(N6()),yv=Nc.builtInTypes.object,R6=Nc.builtInTypes.array,F8t=Nc.builtInTypes.string,LI=/[0-9a-z_$]/i,L6=function e(t){(0, FS.default)(this instanceof e),(0, FS.default)(t instanceof hv.Lines);var r=this,n=[];r.replace=function(i,s){F8t.check(s)&&(s=hv.fromString(s)),n.push({lines:s,start:i.start,end:i.end});},r.get=function(i){i=i||{start:{line:1,column:0},end:{line:t.length,column:t.getLineLength(t.length)}};var s=i.start,a=[];function o(u,l){(0, FS.default)((0, dv.comparePos)(u,l)<=0),a.push(t.slice(u,l));}return n.sort(function(u,l){return (0, dv.comparePos)(u.start,l.start)}).forEach(function(u){(0, dv.comparePos)(s,u.start)>0||(o(s,u.start),a.push(u.lines),s=u.end);}),o(s,i.end),hv.concat(a)};};BS.Patcher=L6;var f1e=L6.prototype;f1e.tryToReprintComments=function(e,t,r){var n=this;if(!e.comments&&!t.comments)return !0;var i=MI.default.from(e),s=MI.default.from(t);i.stack.push("comments",p1e(e)),s.stack.push("comments",p1e(t));var a=[],o=d1e(i,s,a);return o&&a.length>0&&a.forEach(function(u){var l=u.oldPath.getValue();(0, FS.default)(l.leading||l.trailing),n.replace(l.loc,r(u.newPath).indentTail(l.loc.indent));}),o};function p1e(e){var t=[];return e.comments&&e.comments.length>0&&e.comments.forEach(function(r){(r.leading||r.trailing)&&t.push(r);}),t}f1e.deleteComments=function(e){if(e.comments){var t=this;e.comments.forEach(function(r){r.leading?t.replace({start:r.loc.start,end:e.loc.lines.skipSpaces(r.loc.end,!1,!1)},""):r.trailing&&t.replace({start:e.loc.lines.skipSpaces(r.loc.start,!0,!1),end:r.loc.end},"");});}};function B8t(e){(0, FS.default)(e instanceof MI.default);var t=e.getValue();if(mv.check(t)){var r=t.original,n=r&&r.loc,i=n&&n.lines,s=[];if(!(!i||!q8t(e,s)))return function(a){var o=new L6(i);s.forEach(function(l){var c=l.newPath.getValue(),p=l.oldPath.getValue();k8t.assert(p.loc,!0);var h=!o.tryToReprintComments(c,p,a);h&&o.deleteComments(p);var f=a(l.newPath,{includeComments:h,avoidRootParens:p.type===c.type&&l.oldPath.hasParens()}).indentTail(p.loc.indent),d=j8t(i,p.loc,f),m=U8t(i,p.loc,f);if(d||m){var y=[];d&&y.push(" "),y.push(f),m&&y.push(" "),f=hv.concat(y);}o.replace(p.loc,f);});var u=o.get(n).indentTail(-r.loc.indent);return e.needsParens()?hv.concat(["(",u,")"]):u}}}BS.getReprinter=B8t;function j8t(e,t,r){var n=(0, dv.copyPos)(t.start),i=e.prevPos(n)&&e.charAt(n),s=r.charAt(r.firstPos());return i&&LI.test(i)&&s&&LI.test(s)}function U8t(e,t,r){var n=e.charAt(t.end),i=r.lastPos(),s=r.prevPos(i)&&r.charAt(i);return s&&LI.test(s)&&n&&LI.test(n)}function q8t(e,t){var r=e.getValue();mv.assert(r);var n=r.original;if(mv.assert(n),(0, FS.default)(t.length===0),r.type!==n.type)return !1;var i=new MI.default(n),s=M6(e,i,t);return s||(t.length=0),s}function h1e(e,t,r){var n=e.getValue(),i=t.getValue();return n===i?!0:R6.check(n)?d1e(e,t,r):yv.check(n)?V8t(e,t,r):!1}function d1e(e,t,r){var n=e.getValue(),i=t.getValue();if(n===i||e.valueIsDuplicate()||t.valueIsDuplicate())return !0;R6.assert(n);var s=n.length;if(!(R6.check(i)&&i.length===s))return !1;for(var a=0;a<s;++a){e.stack.push(a,n[a]),t.stack.push(a,i[a]);var o=h1e(e,t,r);if(e.stack.length-=2,t.stack.length-=2,!o)return !1}return !0}function V8t(e,t,r){var n=e.getValue();if(yv.assert(n),n.original===null)return !1;var i=t.getValue();if(!yv.check(i))return !1;if(n===i||e.valueIsDuplicate()||t.valueIsDuplicate())return !0;if(mv.check(n)){if(!mv.check(i))return !1;var s=e.getParentNode(),a=t.getParentNode();if(a!==null&&a.type==="FunctionTypeAnnotation"&&s!==null&&s.type==="FunctionTypeAnnotation"){var o=a.params.length!==1||!!a.params[0].name,u=s.params.length!==1||!!s.params[0].name;if(!o&&u)return !1}if(n.type===i.type){var l=[];if(M6(e,t,l))r.push.apply(r,l);else if(i.loc)r.push({oldPath:t.copy(),newPath:e.copy()});else return !1;return !0}return c1e.check(n)&&c1e.check(i)&&i.loc?(r.push({oldPath:t.copy(),newPath:e.copy()}),!0):!1}return M6(e,t,r)}function M6(e,t,r){var n=e.getValue(),i=t.getValue();if(yv.assert(n),yv.assert(i),n.original===null||e.needsParens()&&!t.hasParens())return !1;var s=(0, dv.getUnionOfKeys)(i,n);(i.type==="File"||n.type==="File")&&delete s.tokens,delete s.loc;var a=r.length;for(var o in s)if(o.charAt(0)!=="_"){e.stack.push(o,Nc.getFieldValue(n,o)),t.stack.push(o,Nc.getFieldValue(i,o));var u=h1e(e,t,r);if(e.stack.length-=2,t.stack.length-=2,!u)return !1}return !(L8t.check(e.getNode())&&r.length>a)}});var A1e=chunkTKGT252T_js.c(VI=>{Object.defineProperty(VI,"__esModule",{value:!0});VI.Printer=void 0;var qS=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),yu=qS.__importDefault(Ic()),Xd=qS.__importStar(wc()),y1e=A6(),jI=qS.__importDefault(N6()),q=lv(),H8t=OI(),G8t=m1e(),dl=qS.__importStar(pl()),pi=Xd.namedTypes,F6=Xd.builtInTypes.string,$8t=Xd.builtInTypes.object,qI=function e(t,r){(0, yu.default)(this instanceof e),F6.assert(t),this.code=t,r&&($8t.assert(r),this.map=r);},K8t=qI.prototype,g1e=!1;K8t.toString=function(){return g1e||(console.warn("Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged."),g1e=!0),this.code};var S1e=new qI(""),Y8t=function e(t){(0, yu.default)(this instanceof e);var r=t&&t.tabWidth;t=(0, H8t.normalize)(t),t.sourceFileName=null;function n(s,a){return s=Object.assign({},s,a),function(o){return i(o,s)}}function i(s,a){if((0, yu.default)(s instanceof jI.default),a=a||{},a.includeComments)return (0, y1e.printComments)(s,n(a,{includeComments:!1}));var o=t.tabWidth;if(!r){var u=s.getNode().loc;u&&u.lines&&u.lines.guessTabWidth&&(t.tabWidth=u.lines.guessTabWidth());}var l=(0, G8t.getReprinter)(s),c=l?l(i):T1e(s,t,a,n(a,{includeComments:!0,avoidRootParens:!1}));return t.tabWidth=o,c}this.print=function(s){if(!s)return S1e;var a=i(jI.default.from(s),{includeComments:!0,avoidRootParens:!1});return new qI(a.toString(t),dl.composeSourceMaps(t.inputSourceMap,a.getSourceMap(t.sourceMapName,t.sourceRoot)))},this.printGenerically=function(s){if(!s)return S1e;function a(c){return (0, y1e.printComments)(c,function(p){return T1e(p,t,{includeComments:!0,avoidRootParens:!1},a)})}var o=jI.default.from(s),u=t.reuseWhitespace;t.reuseWhitespace=!1;var l=new qI(a(o).toString(t));return t.reuseWhitespace=u,l};};VI.Printer=Y8t;function T1e(e,t,r,n){(0, yu.default)(e instanceof jI.default);var i=e.getValue(),s=[],a=W8t(e,t,n);if(!i||a.isEmpty())return a;var o=!1,u=X8t(e,n);return u.isEmpty()?r.avoidRootParens||(o=e.needsParens()):s.push(u),o&&s.unshift("("),s.push(a),o&&s.push(")"),(0, q.concat)(s)}function W8t(e,t,r){var n=e.getValue();if(!n)return (0, q.fromString)("");if(typeof n=="string")return (0, q.fromString)(n,t);pi.Printable.assert(n);var i=[];switch(n.type){case"File":return e.call(r,"program");case"Program":return n.directives&&e.each(function(Ke){i.push(r(Ke),`;
`);},"directives"),n.interpreter&&i.push(e.call(r,"interpreter")),i.push(e.call(function(Ke){return jS(Ke,t,r)},"body")),(0, q.concat)(i);case"Noop":case"EmptyStatement":return (0, q.fromString)("");case"ExpressionStatement":return (0, q.concat)([e.call(r,"expression"),";"]);case"ParenthesizedExpression":return (0, q.concat)(["(",e.call(r,"expression"),")"]);case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return (0, q.fromString)(" ").join([e.call(r,"left"),n.operator,e.call(r,"right")]);case"AssignmentPattern":return (0, q.concat)([e.call(r,"left")," = ",e.call(r,"right")]);case"MemberExpression":case"OptionalMemberExpression":{i.push(e.call(r,"object"));var s=e.call(r,"property"),a=Xd.getFieldValue(n,"optional");return n.computed?i.push(a?"?.[":"[",s,"]"):i.push(a?"?.":".",s),(0, q.concat)(i)}case"ChainExpression":return e.call(r,"expression");case"MetaProperty":return (0, q.concat)([e.call(r,"meta"),".",e.call(r,"property")]);case"BindExpression":return n.object&&i.push(e.call(r,"object")),i.push("::",e.call(r,"callee")),(0, q.concat)(i);case"Path":return (0, q.fromString)(".").join(n.body);case"Identifier":return (0, q.concat)([(0, q.fromString)(n.name,t),n.optional?"?":"",e.call(r,"typeAnnotation")]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"ObjectTypeSpreadProperty":case"RestElement":return (0, q.concat)(["...",e.call(r,"argument"),e.call(r,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSDeclareFunction":return n.declare&&i.push("declare "),n.async&&i.push("async "),i.push("function"),n.generator&&i.push("*"),n.id?i.push(" ",e.call(r,"id"),e.call(r,"typeParameters")):n.typeParameters&&i.push(e.call(r,"typeParameters")),i.push("(",hl(e,t,r),")",e.call(r,"returnType")),n.body&&i.push(" ",e.call(r,"body")),(0, q.concat)(i);case"ArrowFunctionExpression":return n.async&&i.push("async "),n.typeParameters&&i.push(e.call(r,"typeParameters")),!t.arrowParensAlways&&n.params.length===1&&!n.rest&&n.params[0].type==="Identifier"&&!n.params[0].typeAnnotation&&!n.returnType?i.push(e.call(r,"params",0)):i.push("(",hl(e,t,r),")",e.call(r,"returnType")),i.push(" => ",e.call(r,"body")),(0, q.concat)(i);case"MethodDefinition":return k6(e,t,r);case"YieldExpression":return i.push("yield"),n.delegate&&i.push("*"),n.argument&&i.push(" ",e.call(r,"argument")),(0, q.concat)(i);case"AwaitExpression":return i.push("await"),n.all&&i.push("*"),n.argument&&i.push(" ",e.call(r,"argument")),(0, q.concat)(i);case"ModuleExpression":return (0, q.concat)([`module {
`,e.call(r,"body").indent(t.tabWidth),`
}`]);case"ModuleDeclaration":return i.push("module",e.call(r,"id")),n.source?((0, yu.default)(!n.body),i.push("from",e.call(r,"source"))):i.push(e.call(r,"body")),(0, q.fromString)(" ").join(i);case"ImportSpecifier":return n.importKind&&n.importKind!=="value"&&i.push(n.importKind+" "),n.imported?(i.push(e.call(r,"imported")),n.local&&n.local.name!==n.imported.name&&i.push(" as ",e.call(r,"local"))):n.id&&(i.push(e.call(r,"id")),n.name&&i.push(" as ",e.call(r,"name"))),(0, q.concat)(i);case"ExportSpecifier":return n.exportKind&&n.exportKind!=="value"&&i.push(n.exportKind+" "),n.local?(i.push(e.call(r,"local")),n.exported&&n.exported.name!==n.local.name&&i.push(" as ",e.call(r,"exported"))):n.id&&(i.push(e.call(r,"id")),n.name&&i.push(" as ",e.call(r,"name"))),(0, q.concat)(i);case"ExportBatchSpecifier":return (0, q.fromString)("*");case"ImportNamespaceSpecifier":return i.push("* as "),n.local?i.push(e.call(r,"local")):n.id&&i.push(e.call(r,"id")),(0, q.concat)(i);case"ImportDefaultSpecifier":return n.local?e.call(r,"local"):e.call(r,"id");case"TSExportAssignment":return (0, q.concat)(["export = ",e.call(r,"expression")]);case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return b1e(e,t,r);case"ExportAllDeclaration":return i.push("export *"),n.exported&&i.push(" as ",e.call(r,"exported")),i.push(" from ",e.call(r,"source"),";"),(0, q.concat)(i);case"TSNamespaceExportDeclaration":return i.push("export as namespace ",e.call(r,"id")),UI((0, q.concat)(i));case"ExportNamespaceSpecifier":return (0, q.concat)(["* as ",e.call(r,"exported")]);case"ExportDefaultSpecifier":return e.call(r,"exported");case"Import":return (0, q.fromString)("import",t);case"ImportExpression":return (0, q.concat)(["import(",e.call(r,"source"),")"]);case"ImportDeclaration":{if(i.push("import "),n.importKind&&n.importKind!=="value"&&i.push(n.importKind+" "),n.specifiers&&n.specifiers.length>0){var o=[],u=[];if(e.each(function(Ke){var ct=Ke.getValue();ct.type==="ImportSpecifier"?u.push(r(Ke)):(ct.type==="ImportDefaultSpecifier"||ct.type==="ImportNamespaceSpecifier")&&o.push(r(Ke));},"specifiers"),o.forEach(function(Ke,ct){ct>0&&i.push(", "),i.push(Ke);}),u.length>0){var l=(0, q.fromString)(", ").join(u);l.getLineLength(1)>t.wrapColumn&&(l=(0, q.concat)([(0, q.fromString)(`,
`).join(u).indent(t.tabWidth),","])),o.length>0&&i.push(", "),l.length>1?i.push(`{
`,l,`
}`):t.objectCurlySpacing?i.push("{ ",l," }"):i.push("{",l,"}");}i.push(" from ");}return i.push(e.call(r,"source"),x1e(e,t,r),";"),(0, q.concat)(i)}case"ImportAttribute":return (0, q.concat)([e.call(r,"key"),": ",e.call(r,"value")]);case"StaticBlock":i.push("static ");case"BlockStatement":{var c=e.call(function(Ke){return jS(Ke,t,r)},"body");return c.isEmpty()&&(!n.directives||n.directives.length===0)?(i.push("{}"),(0, q.concat)(i)):(i.push(`{
`),n.directives&&e.each(function(Ke){i.push(UI(r(Ke).indent(t.tabWidth)),n.directives.length>1||!c.isEmpty()?`
`:"");},"directives"),i.push(c.indent(t.tabWidth)),i.push(`
}`),(0, q.concat)(i))}case"ReturnStatement":{if(i.push("return"),n.argument){var p=e.call(r,"argument");p.startsWithComment()||p.length>1&&pi.JSXElement&&pi.JSXElement.check(n.argument)?i.push(` (
`,p.indent(t.tabWidth),`
)`):i.push(" ",p);}return i.push(";"),(0, q.concat)(i)}case"CallExpression":case"OptionalCallExpression":return i.push(e.call(r,"callee")),n.typeParameters&&i.push(e.call(r,"typeParameters")),n.typeArguments&&i.push(e.call(r,"typeArguments")),Xd.getFieldValue(n,"optional")&&i.push("?."),i.push(E1e(e,t,r)),(0, q.concat)(i);case"RecordExpression":i.push("#");case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":{var h=n.type==="ObjectTypeAnnotation",f=t.flowObjectCommas?",":h?";":",",d=[],m=!1;h&&(d.push("indexers","callProperties"),n.internalSlots!=null&&d.push("internalSlots")),d.push("properties");var y=0;d.forEach(function(Ke){y+=n[Ke].length;});var g=h&&y===1||y===0,v=n.exact?"{|":"{",E=n.exact?"|}":"}";i.push(g?v:v+`
`);var S=i.length-1,x=0;if(d.forEach(function(Ke){e.each(function(ct){var un=r(ct);g||(un=un.indent(t.tabWidth));var Xn=!h&&un.length>1;Xn&&m&&i.push(`
`),i.push(un),x<y-1?(i.push(f+(Xn?`
`:`
`)),m=!Xn):(y!==1&&h||!g&&dl.isTrailingCommaEnabled(t,"objects")&&ct.getValue().type!=="RestElement")&&i.push(f),x++;},Ke);}),n.inexact){var b=(0, q.fromString)("...",t);g?(y>0&&i.push(f," "),i.push(b)):i.push(`
`,b.indent(t.tabWidth));}return i.push(g?E:`
`+E),x!==0&&g&&t.objectCurlySpacing&&(i[S]=v+" ",i[i.length-1]=" "+E),n.typeAnnotation&&i.push(e.call(r,"typeAnnotation")),(0, q.concat)(i)}case"PropertyPattern":return (0, q.concat)([e.call(r,"key"),": ",e.call(r,"pattern")]);case"ObjectProperty":case"Property":{if(n.method||n.kind==="get"||n.kind==="set")return k6(e,t,r);if(n.shorthand&&n.value.type==="AssignmentPattern")return e.call(r,"value");var A=e.call(r,"key");return n.computed?i.push("[",A,"]"):i.push(A),(!n.shorthand||n.key.name!==n.value.name)&&i.push(": ",e.call(r,"value")),(0, q.concat)(i)}case"ClassMethod":case"ObjectMethod":case"ClassPrivateMethod":case"TSDeclareMethod":return k6(e,t,r);case"PrivateName":return (0, q.concat)(["#",e.call(r,"id")]);case"Decorator":return (0, q.concat)(["@",e.call(r,"expression")]);case"TupleExpression":i.push("#");case"ArrayExpression":case"ArrayPattern":{var D=n.elements,P=D.length,V=e.map(r,"elements"),X=(0, q.fromString)(", ").join(V),oe=X.getLineLength(1)<=t.wrapColumn;return oe?t.arrayBracketSpacing?i.push("[ "):i.push("["):i.push(`[
`),e.each(function(Ke){var ct=Ke.getName(),un=Ke.getValue();if(!un)i.push(",");else {var Xn=V[ct];oe?ct>0&&i.push(" "):Xn=Xn.indent(t.tabWidth),i.push(Xn),(ct<P-1||!oe&&dl.isTrailingCommaEnabled(t,"arrays"))&&i.push(","),oe||i.push(`
`);}},"elements"),oe&&t.arrayBracketSpacing?i.push(" ]"):i.push("]"),n.typeAnnotation&&i.push(e.call(r,"typeAnnotation")),(0, q.concat)(i)}case"SequenceExpression":return (0, q.fromString)(", ").join(e.map(r,"expressions"));case"ThisExpression":return (0, q.fromString)("this");case"Super":return (0, q.fromString)("super");case"NullLiteral":return (0, q.fromString)("null");case"RegExpLiteral":return (0, q.fromString)(US(n)||"/".concat(n.pattern,"/").concat(n.flags||""),t);case"BigIntLiteral":return (0, q.fromString)(US(n)||n.value+"n",t);case"NumericLiteral":return (0, q.fromString)(US(n)||n.value,t);case"DecimalLiteral":return (0, q.fromString)(US(n)||n.value+"m",t);case"StringLiteral":return (0, q.fromString)(Tv(n.value,t));case"BooleanLiteral":case"Literal":return (0, q.fromString)(US(n)||(typeof n.value=="string"?Tv(n.value,t):n.value),t);case"Directive":return e.call(r,"value");case"DirectiveLiteral":return (0, q.fromString)(US(n)||Tv(n.value,t),t);case"InterpreterDirective":return (0, q.fromString)("#!".concat(n.value,`
`),t);case"ModuleSpecifier":if(n.local)throw new Error("The ESTree ModuleSpecifier type should be abstract");return (0, q.fromString)(Tv(n.value,t),t);case"UnaryExpression":return i.push(n.operator),/[a-z]$/.test(n.operator)&&i.push(" "),i.push(e.call(r,"argument")),(0, q.concat)(i);case"UpdateExpression":return i.push(e.call(r,"argument"),n.operator),n.prefix&&i.reverse(),(0, q.concat)(i);case"ConditionalExpression":return (0, q.concat)([e.call(r,"test")," ? ",e.call(r,"consequent")," : ",e.call(r,"alternate")]);case"NewExpression":{i.push("new ",e.call(r,"callee")),n.typeParameters&&i.push(e.call(r,"typeParameters")),n.typeArguments&&i.push(e.call(r,"typeArguments"));var le=n.arguments;return le&&i.push(E1e(e,t,r)),(0, q.concat)(i)}case"VariableDeclaration":{n.declare&&i.push("declare "),i.push(n.kind," ");var Be=0,be=e.map(function(Ke){var ct=r(Ke);return Be=Math.max(ct.length,Be),ct},"declarations");Be===1?i.push((0, q.fromString)(", ").join(be)):be.length>1?i.push((0, q.fromString)(`,
`).join(be).indentTail(n.kind.length+1)):i.push(be[0]);var Ee=e.getParentNode();return !pi.ForStatement.check(Ee)&&!pi.ForInStatement.check(Ee)&&!(pi.ForOfStatement&&pi.ForOfStatement.check(Ee))&&!(pi.ForAwaitStatement&&pi.ForAwaitStatement.check(Ee))&&i.push(";"),(0, q.concat)(i)}case"VariableDeclarator":return n.init?(0, q.fromString)(" = ").join([e.call(r,"id"),e.call(r,"init")]):e.call(r,"id");case"WithStatement":return (0, q.concat)(["with (",e.call(r,"object"),") ",e.call(r,"body")]);case"IfStatement":{var Te=Wd(e.call(r,"consequent"),t);return i.push("if (",e.call(r,"test"),")",Te),n.alternate&&i.push(v1e(Te)?" else":`
else`,Wd(e.call(r,"alternate"),t)),(0, q.concat)(i)}case"ForStatement":{var Me=e.call(r,"init"),At=Me.length>1?`;
`:"; ",ue="for (",fe=(0, q.fromString)(At).join([Me,e.call(r,"test"),e.call(r,"update")]).indentTail(ue.length),Se=(0, q.concat)([ue,fe,")"]),je=Wd(e.call(r,"body"),t);return i.push(Se),Se.length>1&&(i.push(`
`),je=je.trimLeft()),i.push(je),(0, q.concat)(i)}case"WhileStatement":return (0, q.concat)(["while (",e.call(r,"test"),")",Wd(e.call(r,"body"),t)]);case"ForInStatement":return (0, q.concat)([n.each?"for each (":"for (",e.call(r,"left")," in ",e.call(r,"right"),")",Wd(e.call(r,"body"),t)]);case"ForOfStatement":case"ForAwaitStatement":return i.push("for "),(n.await||n.type==="ForAwaitStatement")&&i.push("await "),i.push("(",e.call(r,"left")," of ",e.call(r,"right"),")",Wd(e.call(r,"body"),t)),(0, q.concat)(i);case"DoWhileStatement":{var Ct=(0, q.concat)(["do",Wd(e.call(r,"body"),t)]);return i.push(Ct),v1e(Ct)?i.push(" while"):i.push(`
while`),i.push(" (",e.call(r,"test"),");"),(0, q.concat)(i)}case"DoExpression":{var Nt=e.call(function(Ke){return jS(Ke,t,r)},"body");return (0, q.concat)([`do {
`,Nt.indent(t.tabWidth),`
}`])}case"BreakStatement":return i.push("break"),n.label&&i.push(" ",e.call(r,"label")),i.push(";"),(0, q.concat)(i);case"ContinueStatement":return i.push("continue"),n.label&&i.push(" ",e.call(r,"label")),i.push(";"),(0, q.concat)(i);case"LabeledStatement":return (0, q.concat)([e.call(r,"label"),`:
`,e.call(r,"body")]);case"TryStatement":return i.push("try ",e.call(r,"block")),n.handler?i.push(" ",e.call(r,"handler")):n.handlers&&e.each(function(Ke){i.push(" ",r(Ke));},"handlers"),n.finalizer&&i.push(" finally ",e.call(r,"finalizer")),(0, q.concat)(i);case"CatchClause":return i.push("catch "),n.param&&i.push("(",e.call(r,"param")),n.guard&&i.push(" if ",e.call(r,"guard")),n.param&&i.push(") "),i.push(e.call(r,"body")),(0, q.concat)(i);case"ThrowStatement":return (0, q.concat)(["throw ",e.call(r,"argument"),";"]);case"SwitchStatement":return (0, q.concat)(["switch (",e.call(r,"discriminant"),`) {
`,(0, q.fromString)(`
`).join(e.map(r,"cases")),`
}`]);case"SwitchCase":return n.test?i.push("case ",e.call(r,"test"),":"):i.push("default:"),n.consequent.length>0&&i.push(`
`,e.call(function(Ke){return jS(Ke,t,r)},"consequent").indent(t.tabWidth)),(0, q.concat)(i);case"DebuggerStatement":return (0, q.fromString)("debugger;");case"JSXAttribute":return i.push(e.call(r,"name")),n.value&&i.push("=",e.call(r,"value")),(0, q.concat)(i);case"JSXIdentifier":return (0, q.fromString)(n.name,t);case"JSXNamespacedName":return (0, q.fromString)(":").join([e.call(r,"namespace"),e.call(r,"name")]);case"JSXMemberExpression":return (0, q.fromString)(".").join([e.call(r,"object"),e.call(r,"property")]);case"JSXSpreadAttribute":return (0, q.concat)(["{...",e.call(r,"argument"),"}"]);case"JSXSpreadChild":return (0, q.concat)(["{...",e.call(r,"expression"),"}"]);case"JSXExpressionContainer":return (0, q.concat)(["{",e.call(r,"expression"),"}"]);case"JSXElement":case"JSXFragment":{var fn="opening"+(n.type==="JSXElement"?"Element":"Fragment"),xr="closing"+(n.type==="JSXElement"?"Element":"Fragment"),Ar=e.call(r,fn);if(n[fn].selfClosing)return (0, yu.default)(!n[xr],"unexpected "+xr+" element in self-closing "+n.type),Ar;var di=(0, q.concat)(e.map(function(Ke){var ct=Ke.getValue();if(pi.Literal.check(ct)&&typeof ct.value=="string"){if(/\S/.test(ct.value))return ct.value.replace(/^\s+|\s+$/g,"");if(/\n/.test(ct.value))return `
`}return r(Ke)},"children")).indentTail(t.tabWidth),Ai=e.call(r,xr);return (0, q.concat)([Ar,di,Ai])}case"JSXOpeningElement":{i.push("<",e.call(r,"name"));var Ni=e.call(r,"typeParameters");Ni.length&&i.push(Ni);var Ri=[];e.each(function(Ke){Ri.push(" ",r(Ke));},"attributes");var Iu=(0, q.concat)(Ri),Ho=Iu.length>1||Iu.getLineLength(1)>t.wrapColumn;return Ho&&(Ri.forEach(function(Ke,ct){Ke===" "&&((0, yu.default)(ct%2===0),Ri[ct]=`
`);}),Iu=(0, q.concat)(Ri).indentTail(t.tabWidth)),i.push(Iu,n.selfClosing?" />":">"),(0, q.concat)(i)}case"JSXClosingElement":return (0, q.concat)(["</",e.call(r,"name"),">"]);case"JSXOpeningFragment":return (0, q.fromString)("<>");case"JSXClosingFragment":return (0, q.fromString)("</>");case"JSXText":return (0, q.fromString)(n.value,t);case"JSXEmptyExpression":return (0, q.fromString)("");case"TypeAnnotatedIdentifier":return (0, q.concat)([e.call(r,"annotation")," ",e.call(r,"identifier")]);case"ClassBody":return n.body.length===0?(0, q.fromString)("{}"):(0, q.concat)([`{
`,e.call(function(Ke){return jS(Ke,t,r)},"body").indent(t.tabWidth),`
}`]);case"ClassPropertyDefinition":return i.push("static ",e.call(r,"definition")),pi.MethodDefinition.check(n.definition)||i.push(";"),(0, q.concat)(i);case"ClassProperty":{n.declare&&i.push("declare ");var Ou=n.accessibility||n.access;typeof Ou=="string"&&i.push(Ou," "),n.static&&i.push("static "),n.abstract&&i.push("abstract "),n.readonly&&i.push("readonly ");var A=e.call(r,"key");return n.computed&&(A=(0, q.concat)(["[",A,"]"])),n.variance&&(A=(0, q.concat)([Sv(e,r),A])),i.push(A),n.optional&&i.push("?"),n.definite&&i.push("!"),n.typeAnnotation&&i.push(e.call(r,"typeAnnotation")),n.value&&i.push(" = ",e.call(r,"value")),i.push(";"),(0, q.concat)(i)}case"ClassPrivateProperty":return n.static&&i.push("static "),i.push(e.call(r,"key")),n.typeAnnotation&&i.push(e.call(r,"typeAnnotation")),n.value&&i.push(" = ",e.call(r,"value")),i.push(";"),(0, q.concat)(i);case"ClassAccessorProperty":return i.push.apply(i,qS.__spreadArray(qS.__spreadArray([],_1e(n),!1),["accessor "],!1)),n.computed?i.push("[",e.call(r,"key"),"]"):i.push(e.call(r,"key")),n.optional&&i.push("?"),n.definite&&i.push("!"),n.typeAnnotation&&i.push(e.call(r,"typeAnnotation")),n.value&&i.push(" = ",e.call(r,"value")),i.push(";"),(0, q.concat)(i);case"ClassDeclaration":case"ClassExpression":case"DeclareClass":return n.declare&&i.push("declare "),n.abstract&&i.push("abstract "),i.push("class"),n.id&&i.push(" ",e.call(r,"id")),n.typeParameters&&i.push(e.call(r,"typeParameters")),n.superClass&&i.push(" extends ",e.call(r,"superClass"),e.call(r,"superTypeParameters")),n.extends&&n.extends.length>0&&i.push(" extends ",(0, q.fromString)(", ").join(e.map(r,"extends"))),n.implements&&n.implements.length>0&&i.push(" implements ",(0, q.fromString)(", ").join(e.map(r,"implements"))),i.push(" ",e.call(r,"body")),n.type==="DeclareClass"?gv(e,i):(0, q.concat)(i);case"TemplateElement":return (0, q.fromString)(n.value.raw,t).lockIndentTail();case"TemplateLiteral":{var Go=e.map(r,"expressions");return i.push("`"),e.each(function(Ke){var ct=Ke.getName();i.push(r(Ke)),ct<Go.length&&i.push("${",Go[ct],"}");},"quasis"),i.push("`"),(0, q.concat)(i).lockIndentTail()}case"TaggedTemplateExpression":return (0, q.concat)([e.call(r,"tag"),e.call(r,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"Flow":case"FlowType":case"FlowPredicate":case"MemberTypeAnnotation":case"Type":case"TSHasOptionalTypeParameterInstantiation":case"TSHasOptionalTypeParameters":case"TSHasOptionalTypeAnnotation":case"ChainElement":throw new Error("unprintable type: "+JSON.stringify(n.type));case"CommentBlock":case"Block":return (0, q.concat)(["/*",(0, q.fromString)(n.value,t),"*/"]);case"CommentLine":case"Line":return (0, q.concat)(["//",(0, q.fromString)(n.value,t)]);case"TypeAnnotation":return n.typeAnnotation?(n.typeAnnotation.type!=="FunctionTypeAnnotation"&&i.push(": "),i.push(e.call(r,"typeAnnotation")),(0, q.concat)(i)):(0, q.fromString)("");case"ExistentialTypeParam":case"ExistsTypeAnnotation":return (0, q.fromString)("*",t);case"EmptyTypeAnnotation":return (0, q.fromString)("empty",t);case"AnyTypeAnnotation":return (0, q.fromString)("any",t);case"MixedTypeAnnotation":return (0, q.fromString)("mixed",t);case"ArrayTypeAnnotation":return (0, q.concat)([e.call(r,"elementType"),"[]"]);case"TupleTypeAnnotation":{var Du=e.map(r,"types"),X=(0, q.fromString)(", ").join(Du),Xa=X.getLineLength(1)<=t.wrapColumn;return Xa?t.arrayBracketSpacing?i.push("[ "):i.push("["):i.push(`[
`),e.each(function(ct){var un=ct.getName(),Xn=ct.getValue();if(!Xn)i.push(",");else {var Aa=Du[un];Xa?un>0&&i.push(" "):Aa=Aa.indent(t.tabWidth),i.push(Aa),(un<n.types.length-1||!Xa&&dl.isTrailingCommaEnabled(t,"arrays"))&&i.push(","),Xa||i.push(`
`);}},"types"),Xa&&t.arrayBracketSpacing?i.push(" ]"):i.push("]"),(0, q.concat)(i)}case"BooleanTypeAnnotation":return (0, q.fromString)("boolean",t);case"BooleanLiteralTypeAnnotation":return (0, yu.default)(typeof n.value=="boolean"),(0, q.fromString)(""+n.value,t);case"InterfaceTypeAnnotation":return i.push("interface"),n.extends&&n.extends.length>0&&i.push(" extends ",(0, q.fromString)(", ").join(e.map(r,"extends"))),i.push(" ",e.call(r,"body")),(0, q.concat)(i);case"DeclareFunction":return gv(e,["function ",e.call(r,"id"),";"]);case"DeclareModule":return gv(e,["module ",e.call(r,"id")," ",e.call(r,"body")]);case"DeclareModuleExports":return gv(e,["module.exports",e.call(r,"typeAnnotation")]);case"DeclareVariable":return gv(e,["var ",e.call(r,"id"),";"]);case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return (0, q.concat)(["declare ",b1e(e,t,r)]);case"EnumDeclaration":return (0, q.concat)(["enum ",e.call(r,"id"),e.call(r,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return (n.type==="EnumSymbolBody"||n.explicitType)&&i.push(" of ",n.type.slice(4,-4).toLowerCase()),i.push(` {
`,(0, q.fromString)(`
`).join(e.map(r,"members")).indent(t.tabWidth),`
}`),(0, q.concat)(i);case"EnumDefaultedMember":return (0, q.concat)([e.call(r,"id"),","]);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return (0, q.concat)([e.call(r,"id")," = ",e.call(r,"init"),","]);case"InferredPredicate":return (0, q.fromString)("%checks",t);case"DeclaredPredicate":return (0, q.concat)(["%checks(",e.call(r,"value"),")"]);case"FunctionTypeAnnotation":{var xa=e.getParentNode(0),Ih=!(pi.ObjectTypeCallProperty.check(xa)||pi.ObjectTypeInternalSlot.check(xa)&&xa.method||pi.DeclareFunction.check(e.getParentNode(2))),ae=Ih&&!pi.FunctionTypeParam.check(xa)&&!pi.TypeAlias.check(xa);ae&&i.push(": ");var ve=!!n.typeParameters,Pe=ve||n.params.length!==1||n.params[0].name;return i.push(ve?e.call(r,"typeParameters"):"",Pe?"(":"",hl(e,t,r),Pe?")":""),n.returnType&&i.push(Ih?" => ":": ",e.call(r,"returnType")),(0, q.concat)(i)}case"FunctionTypeParam":{var Le=e.call(r,"name");return i.push(Le),n.optional&&i.push("?"),Le.infos[0].line&&i.push(": "),i.push(e.call(r,"typeAnnotation")),(0, q.concat)(i)}case"GenericTypeAnnotation":return (0, q.concat)([e.call(r,"id"),e.call(r,"typeParameters")]);case"DeclareInterface":i.push("declare ");case"InterfaceDeclaration":case"TSInterfaceDeclaration":return n.declare&&i.push("declare "),i.push("interface ",e.call(r,"id"),e.call(r,"typeParameters")," "),n.extends&&n.extends.length>0&&i.push("extends ",(0, q.fromString)(", ").join(e.map(r,"extends"))," "),n.body&&i.push(e.call(r,"body")),(0, q.concat)(i);case"ClassImplements":case"InterfaceExtends":return (0, q.concat)([e.call(r,"id"),e.call(r,"typeParameters")]);case"IntersectionTypeAnnotation":return (0, q.fromString)(" & ").join(e.map(r,"types"));case"NullableTypeAnnotation":return (0, q.concat)(["?",e.call(r,"typeAnnotation")]);case"NullLiteralTypeAnnotation":return (0, q.fromString)("null",t);case"ThisTypeAnnotation":return (0, q.fromString)("this",t);case"NumberTypeAnnotation":return (0, q.fromString)("number",t);case"ObjectTypeCallProperty":return e.call(r,"value");case"ObjectTypeIndexer":return n.static&&i.push("static "),i.push(Sv(e,r),"["),n.id&&i.push(e.call(r,"id"),": "),i.push(e.call(r,"key"),"]: ",e.call(r,"value")),(0, q.concat)(i);case"ObjectTypeProperty":return (0, q.concat)([Sv(e,r),e.call(r,"key"),n.optional?"?":"",": ",e.call(r,"value")]);case"ObjectTypeInternalSlot":return (0, q.concat)([n.static?"static ":"","[[",e.call(r,"id"),"]]",n.optional?"?":"",n.value.type!=="FunctionTypeAnnotation"?": ":"",e.call(r,"value")]);case"QualifiedTypeIdentifier":return (0, q.concat)([e.call(r,"qualification"),".",e.call(r,"id")]);case"StringLiteralTypeAnnotation":return (0, q.fromString)(Tv(n.value,t),t);case"NumberLiteralTypeAnnotation":case"NumericLiteralTypeAnnotation":return (0, yu.default)(typeof n.value=="number"),(0, q.fromString)(JSON.stringify(n.value),t);case"BigIntLiteralTypeAnnotation":return (0, q.fromString)(n.raw,t);case"StringTypeAnnotation":return (0, q.fromString)("string",t);case"DeclareTypeAlias":i.push("declare ");case"TypeAlias":return (0, q.concat)(["type ",e.call(r,"id"),e.call(r,"typeParameters")," = ",e.call(r,"right"),";"]);case"DeclareOpaqueType":i.push("declare ");case"OpaqueType":return i.push("opaque type ",e.call(r,"id"),e.call(r,"typeParameters")),n.supertype&&i.push(": ",e.call(r,"supertype")),n.impltype&&i.push(" = ",e.call(r,"impltype")),i.push(";"),(0, q.concat)(i);case"TypeCastExpression":return (0, q.concat)(["(",e.call(r,"expression"),e.call(r,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return (0, q.concat)(["<",(0, q.fromString)(", ").join(e.map(r,"params")),">"]);case"Variance":return n.kind==="plus"?(0, q.fromString)("+"):n.kind==="minus"?(0, q.fromString)("-"):(0, q.fromString)("");case"TypeParameter":return n.variance&&i.push(Sv(e,r)),i.push(e.call(r,"name")),n.bound&&i.push(e.call(r,"bound")),n.default&&i.push("=",e.call(r,"default")),(0, q.concat)(i);case"TypeofTypeAnnotation":return (0, q.concat)([(0, q.fromString)("typeof ",t),e.call(r,"argument")]);case"IndexedAccessType":case"OptionalIndexedAccessType":return (0, q.concat)([e.call(r,"objectType"),n.optional?"?.":"","[",e.call(r,"indexType"),"]"]);case"UnionTypeAnnotation":return (0, q.fromString)(" | ").join(e.map(r,"types"));case"VoidTypeAnnotation":return (0, q.fromString)("void",t);case"NullTypeAnnotation":return (0, q.fromString)("null",t);case"SymbolTypeAnnotation":return (0, q.fromString)("symbol",t);case"BigIntTypeAnnotation":return (0, q.fromString)("bigint",t);case"TSType":throw new Error("unprintable type: "+JSON.stringify(n.type));case"TSNumberKeyword":return (0, q.fromString)("number",t);case"TSBigIntKeyword":return (0, q.fromString)("bigint",t);case"TSObjectKeyword":return (0, q.fromString)("object",t);case"TSBooleanKeyword":return (0, q.fromString)("boolean",t);case"TSStringKeyword":return (0, q.fromString)("string",t);case"TSSymbolKeyword":return (0, q.fromString)("symbol",t);case"TSAnyKeyword":return (0, q.fromString)("any",t);case"TSVoidKeyword":return (0, q.fromString)("void",t);case"TSIntrinsicKeyword":return (0, q.fromString)("intrinsic",t);case"TSThisType":return (0, q.fromString)("this",t);case"TSNullKeyword":return (0, q.fromString)("null",t);case"TSUndefinedKeyword":return (0, q.fromString)("undefined",t);case"TSUnknownKeyword":return (0, q.fromString)("unknown",t);case"TSNeverKeyword":return (0, q.fromString)("never",t);case"TSArrayType":return (0, q.concat)([e.call(r,"elementType"),"[]"]);case"TSLiteralType":return e.call(r,"literal");case"TSUnionType":return (0, q.fromString)(" | ").join(e.map(r,"types"));case"TSIntersectionType":return (0, q.fromString)(" & ").join(e.map(r,"types"));case"TSConditionalType":return i.push(e.call(r,"checkType")," extends ",e.call(r,"extendsType")," ? ",e.call(r,"trueType")," : ",e.call(r,"falseType")),(0, q.concat)(i);case"TSInferType":return i.push("infer ",e.call(r,"typeParameter")),(0, q.concat)(i);case"TSParenthesizedType":return (0, q.concat)(["(",e.call(r,"typeAnnotation"),")"]);case"TSFunctionType":return (0, q.concat)([e.call(r,"typeParameters"),"(",hl(e,t,r),") => ",e.call(r,"typeAnnotation","typeAnnotation")]);case"TSConstructorType":return (0, q.concat)(["new ",e.call(r,"typeParameters"),"(",hl(e,t,r),") => ",e.call(r,"typeAnnotation","typeAnnotation")]);case"TSMappedType":return i.push(n.readonly?"readonly ":"","[",e.call(r,"typeParameter"),"]",n.optional?"?":""),n.typeAnnotation&&i.push(": ",e.call(r,"typeAnnotation"),";"),(0, q.concat)([`{
`,(0, q.concat)(i).indent(t.tabWidth),`
}`]);case"TSTupleType":return (0, q.concat)(["[",(0, q.fromString)(", ").join(e.map(r,"elementTypes")),"]"]);case"TSNamedTupleMember":return i.push(e.call(r,"label")),n.optional&&i.push("?"),i.push(": ",e.call(r,"elementType")),(0, q.concat)(i);case"TSRestType":return (0, q.concat)(["...",e.call(r,"typeAnnotation")]);case"TSOptionalType":return (0, q.concat)([e.call(r,"typeAnnotation"),"?"]);case"TSIndexedAccessType":return (0, q.concat)([e.call(r,"objectType"),"[",e.call(r,"indexType"),"]"]);case"TSTypeOperator":return (0, q.concat)([e.call(r,"operator")," ",e.call(r,"typeAnnotation")]);case"TSTypeLiteral":{var Pt=(0, q.fromString)(`
`).join(e.map(r,"members").map(function(Ke){return Ev(Ke)!==";"?Ke.concat(";"):Ke}));return Pt.isEmpty()?(0, q.fromString)("{}",t):(i.push(`{
`,Pt.indent(t.tabWidth),`
}`),(0, q.concat)(i))}case"TSEnumMember":return i.push(e.call(r,"id")),n.initializer&&i.push(" = ",e.call(r,"initializer")),(0, q.concat)(i);case"TSTypeQuery":return (0, q.concat)(["typeof ",e.call(r,"exprName")]);case"TSParameterProperty":return n.accessibility&&i.push(n.accessibility," "),n.export&&i.push("export "),n.static&&i.push("static "),n.readonly&&i.push("readonly "),i.push(e.call(r,"parameter")),(0, q.concat)(i);case"TSTypeReference":return (0, q.concat)([e.call(r,"typeName"),e.call(r,"typeParameters")]);case"TSQualifiedName":return (0, q.concat)([e.call(r,"left"),".",e.call(r,"right")]);case"TSAsExpression":case"TSSatisfiesExpression":{var lt=e.call(r,"expression");return i.push(lt,n.type==="TSSatisfiesExpression"?" satisfies ":" as ",e.call(r,"typeAnnotation")),(0, q.concat)(i)}case"TSTypeCastExpression":return (0, q.concat)([e.call(r,"expression"),e.call(r,"typeAnnotation")]);case"TSNonNullExpression":return (0, q.concat)([e.call(r,"expression"),"!"]);case"TSTypeAnnotation":return (0, q.concat)([": ",e.call(r,"typeAnnotation")]);case"TSIndexSignature":return (0, q.concat)([n.readonly?"readonly ":"","[",e.map(r,"parameters"),"]",e.call(r,"typeAnnotation")]);case"TSPropertySignature":return i.push(Sv(e,r),n.readonly?"readonly ":""),n.computed?i.push("[",e.call(r,"key"),"]"):i.push(e.call(r,"key")),i.push(n.optional?"?":"",e.call(r,"typeAnnotation")),(0, q.concat)(i);case"TSMethodSignature":return n.computed?i.push("[",e.call(r,"key"),"]"):i.push(e.call(r,"key")),n.optional&&i.push("?"),i.push(e.call(r,"typeParameters"),"(",hl(e,t,r),")",e.call(r,"typeAnnotation")),(0, q.concat)(i);case"TSTypePredicate":return n.asserts&&i.push("asserts "),i.push(e.call(r,"parameterName")),n.typeAnnotation&&i.push(" is ",e.call(r,"typeAnnotation","typeAnnotation")),(0, q.concat)(i);case"TSCallSignatureDeclaration":return (0, q.concat)([e.call(r,"typeParameters"),"(",hl(e,t,r),")",e.call(r,"typeAnnotation")]);case"TSConstructSignatureDeclaration":return n.typeParameters?i.push("new",e.call(r,"typeParameters")):i.push("new "),i.push("(",hl(e,t,r),")",e.call(r,"typeAnnotation")),(0, q.concat)(i);case"TSTypeAliasDeclaration":return (0, q.concat)([n.declare?"declare ":"","type ",e.call(r,"id"),e.call(r,"typeParameters")," = ",e.call(r,"typeAnnotation"),";"]);case"TSTypeParameter":{i.push(e.call(r,"name"));var xa=e.getParentNode(0),fr=pi.TSMappedType.check(xa);return n.constraint&&i.push(fr?" in ":" extends ",e.call(r,"constraint")),n.default&&i.push(" = ",e.call(r,"default")),(0, q.concat)(i)}case"TSTypeAssertion":return i.push("<",e.call(r,"typeAnnotation"),"> ",e.call(r,"expression")),(0, q.concat)(i);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return (0, q.concat)(["<",(0, q.fromString)(", ").join(e.map(r,"params")),">"]);case"TSEnumDeclaration":{i.push(n.declare?"declare ":"",n.const?"const ":"","enum ",e.call(r,"id"));var Rr=(0, q.fromString)(`,
`).join(e.map(r,"members"));return Rr.isEmpty()?i.push(" {}"):i.push(` {
`,Rr.indent(t.tabWidth),`
}`),(0, q.concat)(i)}case"TSExpressionWithTypeArguments":return (0, q.concat)([e.call(r,"expression"),e.call(r,"typeParameters")]);case"TSInterfaceBody":{var l=(0, q.fromString)(`
`).join(e.map(r,"body").map(function(ct){return Ev(ct)!==";"?ct.concat(";"):ct}));return l.isEmpty()?(0, q.fromString)("{}",t):(0, q.concat)([`{
`,l.indent(t.tabWidth),`
}`])}case"TSImportType":return i.push("import(",e.call(r,"argument"),")"),n.qualifier&&i.push(".",e.call(r,"qualifier")),n.typeParameters&&i.push(e.call(r,"typeParameters")),(0, q.concat)(i);case"TSImportEqualsDeclaration":return n.isExport&&i.push("export "),i.push("import ",e.call(r,"id")," = ",e.call(r,"moduleReference")),UI((0, q.concat)(i));case"TSExternalModuleReference":return (0, q.concat)(["require(",e.call(r,"expression"),")"]);case"TSModuleDeclaration":{var xa=e.getParentNode();if(xa.type==="TSModuleDeclaration")i.push(".");else if(n.declare&&i.push("declare "),!n.global){var Xt=n.id.type==="StringLiteral"||n.id.type==="Literal"&&typeof n.id.value=="string";if(Xt)i.push("module ");else if(n.loc&&n.loc.lines&&n.id.loc){var Hr=n.loc.lines.sliceString(n.loc.start,n.id.loc.start);Hr.indexOf("module")>=0?i.push("module "):i.push("namespace ");}else i.push("namespace ");}return i.push(e.call(r,"id")),n.body&&(i.push(" "),i.push(e.call(r,"body"))),(0, q.concat)(i)}case"TSModuleBlock":{var Pi=e.call(function(Ke){return jS(Ke,t,r)},"body");return Pi.isEmpty()?i.push("{}"):i.push(`{
`,Pi.indent(t.tabWidth),`
}`),(0, q.concat)(i)}case"TSInstantiationExpression":return i.push(e.call(r,"expression"),e.call(r,"typeParameters")),(0, q.concat)(i);case"V8IntrinsicIdentifier":return (0, q.concat)(["%",e.call(r,"name")]);case"TopicReference":return (0, q.fromString)("#");case"ClassHeritage":case"ComprehensionBlock":case"ComprehensionExpression":case"Glob":case"GeneratorExpression":case"LetStatement":case"LetExpression":case"GraphExpression":case"GraphIndexExpression":case"XMLDefaultDeclaration":case"XMLAnyName":case"XMLQualifiedIdentifier":case"XMLFunctionQualifiedIdentifier":case"XMLAttributeSelector":case"XMLFilterExpression":case"XML":case"XMLElement":case"XMLList":case"XMLEscape":case"XMLText":case"XMLStartTag":case"XMLEndTag":case"XMLPointTag":case"XMLName":case"XMLAttribute":case"XMLCdata":case"XMLComment":case"XMLProcessingInstruction":default:debugger;throw new Error("unknown type: "+JSON.stringify(n.type))}}function X8t(e,t){var r=[],n=e.getValue();return n.decorators&&n.decorators.length>0&&!dl.getParentExportDeclaration(e)?e.each(function(i){r.push(t(i),`
`);},"decorators"):dl.isExportDeclaration(n)&&n.declaration&&n.declaration.decorators&&e.each(function(i){r.push(t(i),`
`);},"declaration","decorators"),(0, q.concat)(r)}function jS(e,t,r){var n=[],i=!1,s=!1;e.each(function(l){var c=l.getValue();c&&(c.type==="EmptyStatement"&&!(c.comments&&c.comments.length>0)||(pi.Comment.check(c)?i=!0:pi.Statement.check(c)?s=!0:F6.assert(c),n.push({node:c,printed:r(l)})));}),i&&(0, yu.default)(s===!1,"Comments may appear as statements in otherwise empty statement lists, but may not coexist with non-Comment nodes.");var a=null,o=n.length,u=[];return n.forEach(function(l,c){var p=l.printed,h=l.node,f=p.length>1,d=c>0,m=c<o-1,y,g,v=h&&h.loc&&h.loc.lines,E=v&&t.reuseWhitespace&&dl.getTrueLoc(h,v);if(d)if(E){var S=v.skipSpaces(E.start,!0),x=S?S.line:1,b=E.start.line-x;y=Array(b+1).join(`
`);}else y=f?`
`:`
`;else y="";if(m)if(E){var A=v.skipSpaces(E.end),D=A?A.line:v.length,P=D-E.end.line;g=Array(P+1).join(`
`);}else g=f?`
`:`
`;else g="";u.push(z8t(a,y),p),m?a=g:g&&u.push(g);}),(0, q.concat)(u)}function z8t(e,t){if(!e&&!t)return (0, q.fromString)("");if(!e)return (0, q.fromString)(t);if(!t)return (0, q.fromString)(e);var r=(0, q.fromString)(e),n=(0, q.fromString)(t);return n.length>r.length?n:r}function _1e(e){var t=[];e.declare&&t.push("declare ");var r=e.accessibility||e.access;return typeof r=="string"&&t.push(r," "),e.static&&t.push("static "),e.override&&t.push("override "),e.abstract&&t.push("abstract "),e.readonly&&t.push("readonly "),t}function k6(e,t,r){var n=e.getNode(),i=n.kind,s=[],a=n.value;pi.FunctionExpression.check(a)||(a=n),s.push.apply(s,_1e(n)),a.async&&s.push("async "),a.generator&&s.push("*"),(i==="get"||i==="set")&&s.push(i," ");var o=e.call(r,"key");return n.computed&&(o=(0, q.concat)(["[",o,"]"])),s.push(o),n.optional&&s.push("?"),n===a?(s.push(e.call(r,"typeParameters"),"(",hl(e,t,r),")",e.call(r,"returnType")),n.body?s.push(" ",e.call(r,"body")):s.push(";")):(s.push(e.call(r,"value","typeParameters"),"(",e.call(function(u){return hl(u,t,r)},"value"),")",e.call(r,"value","returnType")),a.body?s.push(" ",e.call(r,"value","body")):s.push(";")),(0, q.concat)(s)}function E1e(e,t,r){var n=e.map(r,"arguments"),i=dl.isTrailingCommaEnabled(t,"parameters"),s=(0, q.fromString)(", ").join(n);return s.getLineLength(1)>t.wrapColumn?(s=(0, q.fromString)(`,
`).join(n),(0, q.concat)([`(
`,s.indent(t.tabWidth),i?`,
)`:`
)`])):(0, q.concat)(["(",s,")"])}function hl(e,t,r){var n=e.getValue(),i,s=[];n.params?(i=n.params,s=e.map(r,"params")):n.parameters&&(i=n.parameters,s=e.map(r,"parameters")),n.defaults&&e.each(function(o){var u=o.getName(),l=s[u];l&&o.getValue()&&(s[u]=(0, q.concat)([l," = ",r(o)]));},"defaults"),n.rest&&s.push((0, q.concat)(["...",e.call(r,"rest")]));var a=(0, q.fromString)(", ").join(s);return a.length>1||a.getLineLength(1)>t.wrapColumn?(a=(0, q.fromString)(`,
`).join(s),dl.isTrailingCommaEnabled(t,"parameters")&&!n.rest&&i[i.length-1].type!=="RestElement"?a=(0, q.concat)([a,`,
`]):a=(0, q.concat)([a,`
`]),(0, q.concat)([`
`,a.indent(t.tabWidth)])):a}function x1e(e,t,r){var n=e.getValue();if(n.assertions&&n.assertions.length>0){var i=[" assert {"],s=e.map(r,"assertions"),a=(0, q.fromString)(", ").join(s);return a.length>1||a.getLineLength(1)>t.wrapColumn?i.push(`
`,(0, q.fromString)(`,
`).join(s).indent(t.tabWidth),`
}`):i.push(" ",a," }"),(0, q.concat)(i)}return (0, q.fromString)("")}function b1e(e,t,r){var n=e.getValue(),i=["export "];n.exportKind&&n.exportKind==="type"&&(n.declaration||i.push("type "));var s=t.objectCurlySpacing;if(pi.Declaration.assert(n),(n.default||n.type==="ExportDefaultDeclaration")&&i.push("default "),n.declaration)i.push(e.call(r,"declaration"));else if(n.specifiers){if(n.specifiers.length===1&&n.specifiers[0].type==="ExportBatchSpecifier")i.push("*");else if(n.specifiers.length===0)i.push("{}");else if(n.specifiers[0].type==="ExportDefaultSpecifier"||n.specifiers[0].type==="ExportNamespaceSpecifier"){var a=[],o=[];if(e.each(function(c){var p=c.getValue();p.type==="ExportDefaultSpecifier"||p.type==="ExportNamespaceSpecifier"?a.push(r(c)):o.push(r(c));},"specifiers"),a.forEach(function(c,p){p>0&&i.push(", "),i.push(c);}),o.length>0){var u=(0, q.fromString)(", ").join(o);u.getLineLength(1)>t.wrapColumn&&(u=(0, q.concat)([(0, q.fromString)(`,
`).join(o).indent(t.tabWidth),","])),a.length>0&&i.push(", "),u.length>1?i.push(`{
`,u,`
}`):t.objectCurlySpacing?i.push("{ ",u," }"):i.push("{",u,"}");}}else i.push(s?"{ ":"{",(0, q.fromString)(", ").join(e.map(r,"specifiers")),s?" }":"}");n.source&&i.push(" from ",e.call(r,"source"),x1e(e,t,r));}var l=(0, q.concat)(i);return Ev(l)!==";"&&!(n.declaration&&(n.declaration.type==="FunctionDeclaration"||n.declaration.type==="ClassDeclaration"||n.declaration.type==="TSModuleDeclaration"||n.declaration.type==="TSInterfaceDeclaration"||n.declaration.type==="TSEnumDeclaration"))&&(l=(0, q.concat)([l,";"])),l}function gv(e,t){var r=dl.getParentExportDeclaration(e);return r?(0, yu.default)(r.type==="DeclareExportDeclaration"):t.unshift("declare "),(0, q.concat)(t)}function Sv(e,t){return e.call(function(r){var n=r.getValue();return n?n==="plus"?(0, q.fromString)("+"):n==="minus"?(0, q.fromString)("-"):t(r):(0, q.fromString)("")},"variance")}function Wd(e,t){return e.length>1?(0, q.concat)([" ",e]):(0, q.concat)([`
`,UI(e).indent(t.tabWidth)])}function Ev(e){var t=e.lastPos();do{var r=e.charAt(t);if(/\S/.test(r))return r}while(e.prevPos(t))}function v1e(e){return Ev(e)==="}"}function FI(e){return e.replace(/['"]/g,function(t){return t==='"'?"'":'"'})}function US(e){var t=Xd.getFieldValue(e,"value"),r=Xd.getFieldValue(e,"extra");if(r&&typeof r.raw=="string"&&t==r.rawValue)return r.raw;if(e.type==="Literal"){var n=e.raw;if(typeof n=="string"&&t==n)return n}}function BI(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,function(t){return "\\u"+t.charCodeAt(0).toString(16)})}function Tv(e,t){switch(F6.assert(e),t.quote){case"auto":{var r=BI(e),n=FI(BI(FI(e)));return r.length>n.length?n:r}case"single":return FI(BI(FI(e)));case"double":default:return BI(e)}}function UI(e){var t=Ev(e);return !t||`
};`.indexOf(t)<0?(0, q.concat)([e,";"]):e}});var HI=chunkTKGT252T_js.c(Ea=>{Object.defineProperty(Ea,"__esModule",{value:!0});Ea.run=Ea.prettyPrint=Ea.print=Ea.visit=Ea.types=Ea.parse=void 0;var P1e=(chunkHZVCNUTP_js.J(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.I)),J8t=P1e.__importDefault(chunkTKGT252T_js.a("fs")),Q8t=P1e.__importStar(wc());Ea.types=Q8t;var C1e=a1e();Object.defineProperty(Ea,"parse",{enumerable:!0,get:function(){return C1e.parse}});var w1e=A1e(),Z8t=wc();Object.defineProperty(Ea,"visit",{enumerable:!0,get:function(){return Z8t.visit}});function I1e(e,t){return new w1e.Printer(t).print(e)}Ea.print=I1e;function e9t(e,t){return new w1e.Printer(t).printGenerically(e)}Ea.prettyPrint=e9t;function t9t(e,t){return r9t(process.argv[2],e,t)}Ea.run=t9t;function r9t(e,t,r){J8t.default.readFile(e,"utf-8",function(n,i){if(n){console.error(n);return}i9t(i,t,r);});}function n9t(e){process.stdout.write(e);}function i9t(e,t,r){var n=r&&r.writeback||n9t;t((0, C1e.parse)(e,r),function(i){n(I1e(i,r).code);});}});var B6=chunkTKGT252T_js.c(lr=>{Object.defineProperty(lr,"__esModule",{value:!0});lr.Var=lr.User=lr.Statement=lr.SpreadProperty=lr.Scope=lr.RestProperty=lr.ReferencedMemberExpression=lr.ReferencedIdentifier=lr.Referenced=lr.Pure=lr.NumericLiteralTypeAnnotation=lr.Generated=lr.ForAwaitStatement=lr.Flow=lr.Expression=lr.ExistentialTypeParam=lr.BlockScoped=lr.BindingIdentifier=void 0;lr.ReferencedIdentifier=["Identifier","JSXIdentifier"];lr.ReferencedMemberExpression=["MemberExpression"];lr.BindingIdentifier=["Identifier"];lr.Statement=["Statement"];lr.Expression=["Expression"];lr.Scope=["Scopable","Pattern"];lr.Referenced=null;lr.BlockScoped=null;lr.Var=["VariableDeclaration"];lr.User=null;lr.Generated=null;lr.Pure=null;lr.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];lr.RestProperty=["RestElement"];lr.SpreadProperty=["RestElement"];lr.ExistentialTypeParam=["ExistsTypeAnnotation"];lr.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"];lr.ForAwaitStatement=["ForOfStatement"];});var GI=chunkTKGT252T_js.c(j6=>{Object.defineProperty(j6,"__esModule",{value:!0});j6.default=s9t;function s9t(e,t){let r=Object.keys(t);for(let n of r)if(e[n]!==t[n])return !1;return !0}});var bv=chunkTKGT252T_js.c(U6=>{Object.defineProperty(U6,"__esModule",{value:!0});U6.default=a9t;var O1e=new Set;function a9t(e,t,r=""){if(O1e.has(e))return;O1e.add(e);let{internal:n,trace:i}=o9t(1,2);n||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
${i}`);}function o9t(e,t){let{stackTraceLimit:r,prepareStackTrace:n}=Error,i;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){i=o;},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!i)return {internal:!1,trace:""};let s=i.slice(1+e,1+e+t);return {internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map(a=>` at ${a}`).join(`
`)}}});var Qn=chunkTKGT252T_js.c(M=>{Object.defineProperty(M,"__esModule",{value:!0});M.isAccessor=bGt;M.isAnyTypeAnnotation=Vqt;M.isArgumentPlaceholder=g7t;M.isArrayExpression=u9t;M.isArrayPattern=aqt;M.isArrayTypeAnnotation=Hqt;M.isArrowFunctionExpression=oqt;M.isAssignmentExpression=l9t;M.isAssignmentPattern=sqt;M.isAwaitExpression=Oqt;M.isBigIntLiteral=Nqt;M.isBinary=GHt;M.isBinaryExpression=c9t;M.isBindExpression=S7t;M.isBlock=YHt;M.isBlockParent=KHt;M.isBlockStatement=d9t;M.isBooleanLiteral=L9t;M.isBooleanLiteralTypeAnnotation=$qt;M.isBooleanTypeAnnotation=Gqt;M.isBreakStatement=m9t;M.isCallExpression=y9t;M.isCatchClause=g9t;M.isClass=SGt;M.isClassAccessorProperty=Fqt;M.isClassBody=uqt;M.isClassDeclaration=cqt;M.isClassExpression=lqt;M.isClassImplements=Yqt;M.isClassMethod=vqt;M.isClassPrivateMethod=jqt;M.isClassPrivateProperty=Bqt;M.isClassProperty=kqt;M.isCompletionStatement=zHt;M.isConditional=JHt;M.isConditionalExpression=S9t;M.isContinueStatement=T9t;M.isDebuggerStatement=E9t;M.isDecimalLiteral=A7t;M.isDeclaration=aGt;M.isDeclareClass=Wqt;M.isDeclareExportAllDeclaration=nVt;M.isDeclareExportDeclaration=rVt;M.isDeclareFunction=Xqt;M.isDeclareInterface=zqt;M.isDeclareModule=Jqt;M.isDeclareModuleExports=Qqt;M.isDeclareOpaqueType=eVt;M.isDeclareTypeAlias=Zqt;M.isDeclareVariable=tVt;M.isDeclaredPredicate=iVt;M.isDecorator=E7t;M.isDirective=f9t;M.isDirectiveLiteral=h9t;M.isDoExpression=b7t;M.isDoWhileStatement=b9t;M.isEmptyStatement=v9t;M.isEmptyTypeAnnotation=mVt;M.isEnumBody=wGt;M.isEnumBooleanBody=HVt;M.isEnumBooleanMember=YVt;M.isEnumDeclaration=VVt;M.isEnumDefaultedMember=zVt;M.isEnumMember=IGt;M.isEnumNumberBody=GVt;M.isEnumNumberMember=WVt;M.isEnumStringBody=$Vt;M.isEnumStringMember=XVt;M.isEnumSymbolBody=KVt;M.isExistsTypeAnnotation=sVt;M.isExportAllDeclaration=pqt;M.isExportDeclaration=TGt;M.isExportDefaultDeclaration=fqt;M.isExportDefaultSpecifier=v7t;M.isExportNamedDeclaration=hqt;M.isExportNamespaceSpecifier=Rqt;M.isExportSpecifier=dqt;M.isExpression=HHt;M.isExpressionStatement=_9t;M.isExpressionWrapper=eGt;M.isFile=x9t;M.isFlow=_Gt;M.isFlowBaseAnnotation=AGt;M.isFlowDeclaration=PGt;M.isFlowPredicate=CGt;M.isFlowType=xGt;M.isFor=tGt;M.isForInStatement=A9t;M.isForOfStatement=mqt;M.isForStatement=P9t;M.isForXStatement=rGt;M.isFunction=nGt;M.isFunctionDeclaration=C9t;M.isFunctionExpression=w9t;M.isFunctionParent=iGt;M.isFunctionTypeAnnotation=aVt;M.isFunctionTypeParam=oVt;M.isGenericTypeAnnotation=uVt;M.isIdentifier=I9t;M.isIfStatement=O9t;M.isImmutable=pGt;M.isImport=Dqt;M.isImportAttribute=T7t;M.isImportDeclaration=yqt;M.isImportDefaultSpecifier=gqt;M.isImportExpression=Eqt;M.isImportNamespaceSpecifier=Sqt;M.isImportOrExportDeclaration=D1e;M.isImportSpecifier=Tqt;M.isIndexedAccessType=JVt;M.isInferredPredicate=lVt;M.isInterfaceDeclaration=pVt;M.isInterfaceExtends=cVt;M.isInterfaceTypeAnnotation=fVt;M.isInterpreterDirective=p9t;M.isIntersectionTypeAnnotation=hVt;M.isJSX=OGt;M.isJSXAttribute=ZVt;M.isJSXClosingElement=e7t;M.isJSXClosingFragment=h7t;M.isJSXElement=t7t;M.isJSXEmptyExpression=r7t;M.isJSXExpressionContainer=n7t;M.isJSXFragment=p7t;M.isJSXIdentifier=s7t;M.isJSXMemberExpression=a7t;M.isJSXNamespacedName=o7t;M.isJSXOpeningElement=u7t;M.isJSXOpeningFragment=f7t;M.isJSXSpreadAttribute=l7t;M.isJSXSpreadChild=i7t;M.isJSXText=c7t;M.isLVal=uGt;M.isLabeledStatement=D9t;M.isLiteral=cGt;M.isLogicalExpression=F9t;M.isLoop=QHt;M.isMemberExpression=B9t;M.isMetaProperty=bqt;M.isMethod=hGt;M.isMiscellaneous=DGt;M.isMixedTypeAnnotation=dVt;M.isModuleDeclaration=UGt;M.isModuleExpression=P7t;M.isModuleSpecifier=EGt;M.isNewExpression=j9t;M.isNoop=d7t;M.isNullLiteral=M9t;M.isNullLiteralTypeAnnotation=Kqt;M.isNullableTypeAnnotation=yVt;M.isNumberLiteral=kGt;M.isNumberLiteralTypeAnnotation=gVt;M.isNumberTypeAnnotation=SVt;M.isNumericLiteral=R9t;M.isObjectExpression=q9t;M.isObjectMember=dGt;M.isObjectMethod=V9t;M.isObjectPattern=_qt;M.isObjectProperty=H9t;M.isObjectTypeAnnotation=TVt;M.isObjectTypeCallProperty=bVt;M.isObjectTypeIndexer=vVt;M.isObjectTypeInternalSlot=EVt;M.isObjectTypeProperty=_Vt;M.isObjectTypeSpreadProperty=xVt;M.isOpaqueType=AVt;M.isOptionalCallExpression=Lqt;M.isOptionalIndexedAccessType=QVt;M.isOptionalMemberExpression=Mqt;M.isParenthesizedExpression=Y9t;M.isPattern=gGt;M.isPatternLike=oGt;M.isPipelineBareFunction=I7t;M.isPipelinePrimaryTopicReference=O7t;M.isPipelineTopicExpression=w7t;M.isPlaceholder=m7t;M.isPrivate=vGt;M.isPrivateName=Uqt;M.isProgram=U9t;M.isProperty=mGt;M.isPureish=sGt;M.isQualifiedTypeIdentifier=PVt;M.isRecordExpression=_7t;M.isRegExpLiteral=k9t;M.isRegexLiteral=FGt;M.isRestElement=G9t;M.isRestProperty=BGt;M.isReturnStatement=$9t;M.isScopable=$Ht;M.isSequenceExpression=K9t;M.isSpreadElement=xqt;M.isSpreadProperty=jGt;M.isStandardized=VHt;M.isStatement=WHt;M.isStaticBlock=qqt;M.isStringLiteral=N9t;M.isStringLiteralTypeAnnotation=CVt;M.isStringTypeAnnotation=wVt;M.isSuper=Aqt;M.isSwitchCase=W9t;M.isSwitchStatement=X9t;M.isSymbolTypeAnnotation=IVt;M.isTSAnyKeyword=U7t;M.isTSArrayType=aHt;M.isTSAsExpression=AHt;M.isTSBaseType=LGt;M.isTSBigIntKeyword=V7t;M.isTSBooleanKeyword=q7t;M.isTSCallSignatureDeclaration=L7t;M.isTSConditionalType=hHt;M.isTSConstructSignatureDeclaration=k7t;M.isTSConstructorType=tHt;M.isTSDeclareFunction=N7t;M.isTSDeclareMethod=R7t;M.isTSEntityName=lGt;M.isTSEnumDeclaration=wHt;M.isTSEnumMember=IHt;M.isTSExportAssignment=kHt;M.isTSExpressionWithTypeArguments=EHt;M.isTSExternalModuleReference=MHt;M.isTSFunctionType=eHt;M.isTSImportEqualsDeclaration=RHt;M.isTSImportType=NHt;M.isTSIndexSignature=j7t;M.isTSIndexedAccessType=gHt;M.isTSInferType=dHt;M.isTSInstantiationExpression=xHt;M.isTSInterfaceBody=vHt;M.isTSInterfaceDeclaration=bHt;M.isTSIntersectionType=fHt;M.isTSIntrinsicKeyword=H7t;M.isTSLiteralType=THt;M.isTSMappedType=SHt;M.isTSMethodSignature=B7t;M.isTSModuleBlock=DHt;M.isTSModuleDeclaration=OHt;M.isTSNamedTupleMember=cHt;M.isTSNamespaceExportDeclaration=FHt;M.isTSNeverKeyword=G7t;M.isTSNonNullExpression=LHt;M.isTSNullKeyword=$7t;M.isTSNumberKeyword=K7t;M.isTSObjectKeyword=Y7t;M.isTSOptionalType=uHt;M.isTSParameterProperty=D7t;M.isTSParenthesizedType=mHt;M.isTSPropertySignature=F7t;M.isTSQualifiedName=M7t;M.isTSRestType=lHt;M.isTSSatisfiesExpression=PHt;M.isTSStringKeyword=W7t;M.isTSSymbolKeyword=X7t;M.isTSThisType=Z7t;M.isTSTupleType=oHt;M.isTSType=MGt;M.isTSTypeAliasDeclaration=_Ht;M.isTSTypeAnnotation=BHt;M.isTSTypeAssertion=CHt;M.isTSTypeElement=RGt;M.isTSTypeLiteral=sHt;M.isTSTypeOperator=yHt;M.isTSTypeParameter=qHt;M.isTSTypeParameterDeclaration=UHt;M.isTSTypeParameterInstantiation=jHt;M.isTSTypePredicate=nHt;M.isTSTypeQuery=iHt;M.isTSTypeReference=rHt;M.isTSUndefinedKeyword=z7t;M.isTSUnionType=pHt;M.isTSUnknownKeyword=J7t;M.isTSVoidKeyword=Q7t;M.isTaggedTemplateExpression=Pqt;M.isTemplateElement=Cqt;M.isTemplateLiteral=wqt;M.isTerminatorless=XHt;M.isThisExpression=z9t;M.isThisTypeAnnotation=OVt;M.isThrowStatement=J9t;M.isTopicReference=C7t;M.isTryStatement=Q9t;M.isTupleExpression=x7t;M.isTupleTypeAnnotation=DVt;M.isTypeAlias=RVt;M.isTypeAnnotation=MVt;M.isTypeCastExpression=LVt;M.isTypeParameter=kVt;M.isTypeParameterDeclaration=FVt;M.isTypeParameterInstantiation=BVt;M.isTypeScript=NGt;M.isTypeofTypeAnnotation=NVt;M.isUnaryExpression=Z9t;M.isUnaryLike=yGt;M.isUnionTypeAnnotation=jVt;M.isUpdateExpression=eqt;M.isUserWhitespacable=fGt;M.isV8IntrinsicIdentifier=y7t;M.isVariableDeclaration=tqt;M.isVariableDeclarator=rqt;M.isVariance=UVt;M.isVoidTypeAnnotation=qVt;M.isWhile=ZHt;M.isWhileStatement=nqt;M.isWithStatement=iqt;M.isYieldExpression=Iqt;var j=GI(),vv=bv();function u9t(e,t){return !e||e.type!=="ArrayExpression"?!1:t==null||(0, j.default)(e,t)}function l9t(e,t){return !e||e.type!=="AssignmentExpression"?!1:t==null||(0, j.default)(e,t)}function c9t(e,t){return !e||e.type!=="BinaryExpression"?!1:t==null||(0, j.default)(e,t)}function p9t(e,t){return !e||e.type!=="InterpreterDirective"?!1:t==null||(0, j.default)(e,t)}function f9t(e,t){return !e||e.type!=="Directive"?!1:t==null||(0, j.default)(e,t)}function h9t(e,t){return !e||e.type!=="DirectiveLiteral"?!1:t==null||(0, j.default)(e,t)}function d9t(e,t){return !e||e.type!=="BlockStatement"?!1:t==null||(0, j.default)(e,t)}function m9t(e,t){return !e||e.type!=="BreakStatement"?!1:t==null||(0, j.default)(e,t)}function y9t(e,t){return !e||e.type!=="CallExpression"?!1:t==null||(0, j.default)(e,t)}function g9t(e,t){return !e||e.type!=="CatchClause"?!1:t==null||(0, j.default)(e,t)}function S9t(e,t){return !e||e.type!=="ConditionalExpression"?!1:t==null||(0, j.default)(e,t)}function T9t(e,t){return !e||e.type!=="ContinueStatement"?!1:t==null||(0, j.default)(e,t)}function E9t(e,t){return !e||e.type!=="DebuggerStatement"?!1:t==null||(0, j.default)(e,t)}function b9t(e,t){return !e||e.type!=="DoWhileStatement"?!1:t==null||(0, j.default)(e,t)}function v9t(e,t){return !e||e.type!=="EmptyStatement"?!1:t==null||(0, j.default)(e,t)}function _9t(e,t){return !e||e.type!=="ExpressionStatement"?!1:t==null||(0, j.default)(e,t)}function x9t(e,t){return !e||e.type!=="File"?!1:t==null||(0, j.default)(e,t)}function A9t(e,t){return !e||e.type!=="ForInStatement"?!1:t==null||(0, j.default)(e,t)}function P9t(e,t){return !e||e.type!=="ForStatement"?!1:t==null||(0, j.default)(e,t)}function C9t(e,t){return !e||e.type!=="FunctionDeclaration"?!1:t==null||(0, j.default)(e,t)}function w9t(e,t){return !e||e.type!=="FunctionExpression"?!1:t==null||(0, j.default)(e,t)}function I9t(e,t){return !e||e.type!=="Identifier"?!1:t==null||(0, j.default)(e,t)}function O9t(e,t){return !e||e.type!=="IfStatement"?!1:t==null||(0, j.default)(e,t)}function D9t(e,t){return !e||e.type!=="LabeledStatement"?!1:t==null||(0, j.default)(e,t)}function N9t(e,t){return !e||e.type!=="StringLiteral"?!1:t==null||(0, j.default)(e,t)}function R9t(e,t){return !e||e.type!=="NumericLiteral"?!1:t==null||(0, j.default)(e,t)}function M9t(e,t){return !e||e.type!=="NullLiteral"?!1:t==null||(0, j.default)(e,t)}function L9t(e,t){return !e||e.type!=="BooleanLiteral"?!1:t==null||(0, j.default)(e,t)}function k9t(e,t){return !e||e.type!=="RegExpLiteral"?!1:t==null||(0, j.default)(e,t)}function F9t(e,t){return !e||e.type!=="LogicalExpression"?!1:t==null||(0, j.default)(e,t)}function B9t(e,t){return !e||e.type!=="MemberExpression"?!1:t==null||(0, j.default)(e,t)}function j9t(e,t){return !e||e.type!=="NewExpression"?!1:t==null||(0, j.default)(e,t)}function U9t(e,t){return !e||e.type!=="Program"?!1:t==null||(0, j.default)(e,t)}function q9t(e,t){return !e||e.type!=="ObjectExpression"?!1:t==null||(0, j.default)(e,t)}function V9t(e,t){return !e||e.type!=="ObjectMethod"?!1:t==null||(0, j.default)(e,t)}function H9t(e,t){return !e||e.type!=="ObjectProperty"?!1:t==null||(0, j.default)(e,t)}function G9t(e,t){return !e||e.type!=="RestElement"?!1:t==null||(0, j.default)(e,t)}function $9t(e,t){return !e||e.type!=="ReturnStatement"?!1:t==null||(0, j.default)(e,t)}function K9t(e,t){return !e||e.type!=="SequenceExpression"?!1:t==null||(0, j.default)(e,t)}function Y9t(e,t){return !e||e.type!=="ParenthesizedExpression"?!1:t==null||(0, j.default)(e,t)}function W9t(e,t){return !e||e.type!=="SwitchCase"?!1:t==null||(0, j.default)(e,t)}function X9t(e,t){return !e||e.type!=="SwitchStatement"?!1:t==null||(0, j.default)(e,t)}function z9t(e,t){return !e||e.type!=="ThisExpression"?!1:t==null||(0, j.default)(e,t)}function J9t(e,t){return !e||e.type!=="ThrowStatement"?!1:t==null||(0, j.default)(e,t)}function Q9t(e,t){return !e||e.type!=="TryStatement"?!1:t==null||(0, j.default)(e,t)}function Z9t(e,t){return !e||e.type!=="UnaryExpression"?!1:t==null||(0, j.default)(e,t)}function eqt(e,t){return !e||e.type!=="UpdateExpression"?!1:t==null||(0, j.default)(e,t)}function tqt(e,t){return !e||e.type!=="VariableDeclaration"?!1:t==null||(0, j.default)(e,t)}function rqt(e,t){return !e||e.type!=="VariableDeclarator"?!1:t==null||(0, j.default)(e,t)}function nqt(e,t){return !e||e.type!=="WhileStatement"?!1:t==null||(0, j.default)(e,t)}function iqt(e,t){return !e||e.type!=="WithStatement"?!1:t==null||(0, j.default)(e,t)}function sqt(e,t){return !e||e.type!=="AssignmentPattern"?!1:t==null||(0, j.default)(e,t)}function aqt(e,t){return !e||e.type!=="ArrayPattern"?!1:t==null||(0, j.default)(e,t)}function oqt(e,t){return !e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0, j.default)(e,t)}function uqt(e,t){return !e||e.type!=="ClassBody"?!1:t==null||(0, j.default)(e,t)}function lqt(e,t){return !e||e.type!=="ClassExpression"?!1:t==null||(0, j.default)(e,t)}function cqt(e,t){return !e||e.type!=="ClassDeclaration"?!1:t==null||(0, j.default)(e,t)}function pqt(e,t){return !e||e.type!=="ExportAllDeclaration"?!1:t==null||(0, j.default)(e,t)}function fqt(e,t){return !e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0, j.default)(e,t)}function hqt(e,t){return !e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0, j.default)(e,t)}function dqt(e,t){return !e||e.type!=="ExportSpecifier"?!1:t==null||(0, j.default)(e,t)}function mqt(e,t){return !e||e.type!=="ForOfStatement"?!1:t==null||(0, j.default)(e,t)}function yqt(e,t){return !e||e.type!=="ImportDeclaration"?!1:t==null||(0, j.default)(e,t)}function gqt(e,t){return !e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0, j.default)(e,t)}function Sqt(e,t){return !e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0, j.default)(e,t)}function Tqt(e,t){return !e||e.type!=="ImportSpecifier"?!1:t==null||(0, j.default)(e,t)}function Eqt(e,t){return !e||e.type!=="ImportExpression"?!1:t==null||(0, j.default)(e,t)}function bqt(e,t){return !e||e.type!=="MetaProperty"?!1:t==null||(0, j.default)(e,t)}function vqt(e,t){return !e||e.type!=="ClassMethod"?!1:t==null||(0, j.default)(e,t)}function _qt(e,t){return !e||e.type!=="ObjectPattern"?!1:t==null||(0, j.default)(e,t)}function xqt(e,t){return !e||e.type!=="SpreadElement"?!1:t==null||(0, j.default)(e,t)}function Aqt(e,t){return !e||e.type!=="Super"?!1:t==null||(0, j.default)(e,t)}function Pqt(e,t){return !e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0, j.default)(e,t)}function Cqt(e,t){return !e||e.type!=="TemplateElement"?!1:t==null||(0, j.default)(e,t)}function wqt(e,t){return !e||e.type!=="TemplateLiteral"?!1:t==null||(0, j.default)(e,t)}function Iqt(e,t){return !e||e.type!=="YieldExpression"?!1:t==null||(0, j.default)(e,t)}function Oqt(e,t){return !e||e.type!=="AwaitExpression"?!1:t==null||(0, j.default)(e,t)}function Dqt(e,t){return !e||e.type!=="Import"?!1:t==null||(0, j.default)(e,t)}function Nqt(e,t){return !e||e.type!=="BigIntLiteral"?!1:t==null||(0, j.default)(e,t)}function Rqt(e,t){return !e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0, j.default)(e,t)}function Mqt(e,t){return !e||e.type!=="OptionalMemberExpression"?!1:t==null||(0, j.default)(e,t)}function Lqt(e,t){return !e||e.type!=="OptionalCallExpression"?!1:t==null||(0, j.default)(e,t)}function kqt(e,t){return !e||e.type!=="ClassProperty"?!1:t==null||(0, j.default)(e,t)}function Fqt(e,t){return !e||e.type!=="ClassAccessorProperty"?!1:t==null||(0, j.default)(e,t)}function Bqt(e,t){return !e||e.type!=="ClassPrivateProperty"?!1:t==null||(0, j.default)(e,t)}function jqt(e,t){return !e||e.type!=="ClassPrivateMethod"?!1:t==null||(0, j.default)(e,t)}function Uqt(e,t){return !e||e.type!=="PrivateName"?!1:t==null||(0, j.default)(e,t)}function qqt(e,t){return !e||e.type!=="StaticBlock"?!1:t==null||(0, j.default)(e,t)}function Vqt(e,t){return !e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function Hqt(e,t){return !e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function Gqt(e,t){return !e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function $qt(e,t){return !e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function Kqt(e,t){return !e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function Yqt(e,t){return !e||e.type!=="ClassImplements"?!1:t==null||(0, j.default)(e,t)}function Wqt(e,t){return !e||e.type!=="DeclareClass"?!1:t==null||(0, j.default)(e,t)}function Xqt(e,t){return !e||e.type!=="DeclareFunction"?!1:t==null||(0, j.default)(e,t)}function zqt(e,t){return !e||e.type!=="DeclareInterface"?!1:t==null||(0, j.default)(e,t)}function Jqt(e,t){return !e||e.type!=="DeclareModule"?!1:t==null||(0, j.default)(e,t)}function Qqt(e,t){return !e||e.type!=="DeclareModuleExports"?!1:t==null||(0, j.default)(e,t)}function Zqt(e,t){return !e||e.type!=="DeclareTypeAlias"?!1:t==null||(0, j.default)(e,t)}function eVt(e,t){return !e||e.type!=="DeclareOpaqueType"?!1:t==null||(0, j.default)(e,t)}function tVt(e,t){return !e||e.type!=="DeclareVariable"?!1:t==null||(0, j.default)(e,t)}function rVt(e,t){return !e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0, j.default)(e,t)}function nVt(e,t){return !e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0, j.default)(e,t)}function iVt(e,t){return !e||e.type!=="DeclaredPredicate"?!1:t==null||(0, j.default)(e,t)}function sVt(e,t){return !e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function aVt(e,t){return !e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function oVt(e,t){return !e||e.type!=="FunctionTypeParam"?!1:t==null||(0, j.default)(e,t)}function uVt(e,t){return !e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function lVt(e,t){return !e||e.type!=="InferredPredicate"?!1:t==null||(0, j.default)(e,t)}function cVt(e,t){return !e||e.type!=="InterfaceExtends"?!1:t==null||(0, j.default)(e,t)}function pVt(e,t){return !e||e.type!=="InterfaceDeclaration"?!1:t==null||(0, j.default)(e,t)}function fVt(e,t){return !e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function hVt(e,t){return !e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function dVt(e,t){return !e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function mVt(e,t){return !e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function yVt(e,t){return !e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function gVt(e,t){return !e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function SVt(e,t){return !e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function TVt(e,t){return !e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function EVt(e,t){return !e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0, j.default)(e,t)}function bVt(e,t){return !e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0, j.default)(e,t)}function vVt(e,t){return !e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0, j.default)(e,t)}function _Vt(e,t){return !e||e.type!=="ObjectTypeProperty"?!1:t==null||(0, j.default)(e,t)}function xVt(e,t){return !e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0, j.default)(e,t)}function AVt(e,t){return !e||e.type!=="OpaqueType"?!1:t==null||(0, j.default)(e,t)}function PVt(e,t){return !e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0, j.default)(e,t)}function CVt(e,t){return !e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function wVt(e,t){return !e||e.type!=="StringTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function IVt(e,t){return !e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function OVt(e,t){return !e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function DVt(e,t){return !e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function NVt(e,t){return !e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function RVt(e,t){return !e||e.type!=="TypeAlias"?!1:t==null||(0, j.default)(e,t)}function MVt(e,t){return !e||e.type!=="TypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function LVt(e,t){return !e||e.type!=="TypeCastExpression"?!1:t==null||(0, j.default)(e,t)}function kVt(e,t){return !e||e.type!=="TypeParameter"?!1:t==null||(0, j.default)(e,t)}function FVt(e,t){return !e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0, j.default)(e,t)}function BVt(e,t){return !e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0, j.default)(e,t)}function jVt(e,t){return !e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function UVt(e,t){return !e||e.type!=="Variance"?!1:t==null||(0, j.default)(e,t)}function qVt(e,t){return !e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function VVt(e,t){return !e||e.type!=="EnumDeclaration"?!1:t==null||(0, j.default)(e,t)}function HVt(e,t){return !e||e.type!=="EnumBooleanBody"?!1:t==null||(0, j.default)(e,t)}function GVt(e,t){return !e||e.type!=="EnumNumberBody"?!1:t==null||(0, j.default)(e,t)}function $Vt(e,t){return !e||e.type!=="EnumStringBody"?!1:t==null||(0, j.default)(e,t)}function KVt(e,t){return !e||e.type!=="EnumSymbolBody"?!1:t==null||(0, j.default)(e,t)}function YVt(e,t){return !e||e.type!=="EnumBooleanMember"?!1:t==null||(0, j.default)(e,t)}function WVt(e,t){return !e||e.type!=="EnumNumberMember"?!1:t==null||(0, j.default)(e,t)}function XVt(e,t){return !e||e.type!=="EnumStringMember"?!1:t==null||(0, j.default)(e,t)}function zVt(e,t){return !e||e.type!=="EnumDefaultedMember"?!1:t==null||(0, j.default)(e,t)}function JVt(e,t){return !e||e.type!=="IndexedAccessType"?!1:t==null||(0, j.default)(e,t)}function QVt(e,t){return !e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0, j.default)(e,t)}function ZVt(e,t){return !e||e.type!=="JSXAttribute"?!1:t==null||(0, j.default)(e,t)}function e7t(e,t){return !e||e.type!=="JSXClosingElement"?!1:t==null||(0, j.default)(e,t)}function t7t(e,t){return !e||e.type!=="JSXElement"?!1:t==null||(0, j.default)(e,t)}function r7t(e,t){return !e||e.type!=="JSXEmptyExpression"?!1:t==null||(0, j.default)(e,t)}function n7t(e,t){return !e||e.type!=="JSXExpressionContainer"?!1:t==null||(0, j.default)(e,t)}function i7t(e,t){return !e||e.type!=="JSXSpreadChild"?!1:t==null||(0, j.default)(e,t)}function s7t(e,t){return !e||e.type!=="JSXIdentifier"?!1:t==null||(0, j.default)(e,t)}function a7t(e,t){return !e||e.type!=="JSXMemberExpression"?!1:t==null||(0, j.default)(e,t)}function o7t(e,t){return !e||e.type!=="JSXNamespacedName"?!1:t==null||(0, j.default)(e,t)}function u7t(e,t){return !e||e.type!=="JSXOpeningElement"?!1:t==null||(0, j.default)(e,t)}function l7t(e,t){return !e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0, j.default)(e,t)}function c7t(e,t){return !e||e.type!=="JSXText"?!1:t==null||(0, j.default)(e,t)}function p7t(e,t){return !e||e.type!=="JSXFragment"?!1:t==null||(0, j.default)(e,t)}function f7t(e,t){return !e||e.type!=="JSXOpeningFragment"?!1:t==null||(0, j.default)(e,t)}function h7t(e,t){return !e||e.type!=="JSXClosingFragment"?!1:t==null||(0, j.default)(e,t)}function d7t(e,t){return !e||e.type!=="Noop"?!1:t==null||(0, j.default)(e,t)}function m7t(e,t){return !e||e.type!=="Placeholder"?!1:t==null||(0, j.default)(e,t)}function y7t(e,t){return !e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0, j.default)(e,t)}function g7t(e,t){return !e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0, j.default)(e,t)}function S7t(e,t){return !e||e.type!=="BindExpression"?!1:t==null||(0, j.default)(e,t)}function T7t(e,t){return !e||e.type!=="ImportAttribute"?!1:t==null||(0, j.default)(e,t)}function E7t(e,t){return !e||e.type!=="Decorator"?!1:t==null||(0, j.default)(e,t)}function b7t(e,t){return !e||e.type!=="DoExpression"?!1:t==null||(0, j.default)(e,t)}function v7t(e,t){return !e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0, j.default)(e,t)}function _7t(e,t){return !e||e.type!=="RecordExpression"?!1:t==null||(0, j.default)(e,t)}function x7t(e,t){return !e||e.type!=="TupleExpression"?!1:t==null||(0, j.default)(e,t)}function A7t(e,t){return !e||e.type!=="DecimalLiteral"?!1:t==null||(0, j.default)(e,t)}function P7t(e,t){return !e||e.type!=="ModuleExpression"?!1:t==null||(0, j.default)(e,t)}function C7t(e,t){return !e||e.type!=="TopicReference"?!1:t==null||(0, j.default)(e,t)}function w7t(e,t){return !e||e.type!=="PipelineTopicExpression"?!1:t==null||(0, j.default)(e,t)}function I7t(e,t){return !e||e.type!=="PipelineBareFunction"?!1:t==null||(0, j.default)(e,t)}function O7t(e,t){return !e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0, j.default)(e,t)}function D7t(e,t){return !e||e.type!=="TSParameterProperty"?!1:t==null||(0, j.default)(e,t)}function N7t(e,t){return !e||e.type!=="TSDeclareFunction"?!1:t==null||(0, j.default)(e,t)}function R7t(e,t){return !e||e.type!=="TSDeclareMethod"?!1:t==null||(0, j.default)(e,t)}function M7t(e,t){return !e||e.type!=="TSQualifiedName"?!1:t==null||(0, j.default)(e,t)}function L7t(e,t){return !e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0, j.default)(e,t)}function k7t(e,t){return !e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0, j.default)(e,t)}function F7t(e,t){return !e||e.type!=="TSPropertySignature"?!1:t==null||(0, j.default)(e,t)}function B7t(e,t){return !e||e.type!=="TSMethodSignature"?!1:t==null||(0, j.default)(e,t)}function j7t(e,t){return !e||e.type!=="TSIndexSignature"?!1:t==null||(0, j.default)(e,t)}function U7t(e,t){return !e||e.type!=="TSAnyKeyword"?!1:t==null||(0, j.default)(e,t)}function q7t(e,t){return !e||e.type!=="TSBooleanKeyword"?!1:t==null||(0, j.default)(e,t)}function V7t(e,t){return !e||e.type!=="TSBigIntKeyword"?!1:t==null||(0, j.default)(e,t)}function H7t(e,t){return !e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0, j.default)(e,t)}function G7t(e,t){return !e||e.type!=="TSNeverKeyword"?!1:t==null||(0, j.default)(e,t)}function $7t(e,t){return !e||e.type!=="TSNullKeyword"?!1:t==null||(0, j.default)(e,t)}function K7t(e,t){return !e||e.type!=="TSNumberKeyword"?!1:t==null||(0, j.default)(e,t)}function Y7t(e,t){return !e||e.type!=="TSObjectKeyword"?!1:t==null||(0, j.default)(e,t)}function W7t(e,t){return !e||e.type!=="TSStringKeyword"?!1:t==null||(0, j.default)(e,t)}function X7t(e,t){return !e||e.type!=="TSSymbolKeyword"?!1:t==null||(0, j.default)(e,t)}function z7t(e,t){return !e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0, j.default)(e,t)}function J7t(e,t){return !e||e.type!=="TSUnknownKeyword"?!1:t==null||(0, j.default)(e,t)}function Q7t(e,t){return !e||e.type!=="TSVoidKeyword"?!1:t==null||(0, j.default)(e,t)}function Z7t(e,t){return !e||e.type!=="TSThisType"?!1:t==null||(0, j.default)(e,t)}function eHt(e,t){return !e||e.type!=="TSFunctionType"?!1:t==null||(0, j.default)(e,t)}function tHt(e,t){return !e||e.type!=="TSConstructorType"?!1:t==null||(0, j.default)(e,t)}function rHt(e,t){return !e||e.type!=="TSTypeReference"?!1:t==null||(0, j.default)(e,t)}function nHt(e,t){return !e||e.type!=="TSTypePredicate"?!1:t==null||(0, j.default)(e,t)}function iHt(e,t){return !e||e.type!=="TSTypeQuery"?!1:t==null||(0, j.default)(e,t)}function sHt(e,t){return !e||e.type!=="TSTypeLiteral"?!1:t==null||(0, j.default)(e,t)}function aHt(e,t){return !e||e.type!=="TSArrayType"?!1:t==null||(0, j.default)(e,t)}function oHt(e,t){return !e||e.type!=="TSTupleType"?!1:t==null||(0, j.default)(e,t)}function uHt(e,t){return !e||e.type!=="TSOptionalType"?!1:t==null||(0, j.default)(e,t)}function lHt(e,t){return !e||e.type!=="TSRestType"?!1:t==null||(0, j.default)(e,t)}function cHt(e,t){return !e||e.type!=="TSNamedTupleMember"?!1:t==null||(0, j.default)(e,t)}function pHt(e,t){return !e||e.type!=="TSUnionType"?!1:t==null||(0, j.default)(e,t)}function fHt(e,t){return !e||e.type!=="TSIntersectionType"?!1:t==null||(0, j.default)(e,t)}function hHt(e,t){return !e||e.type!=="TSConditionalType"?!1:t==null||(0, j.default)(e,t)}function dHt(e,t){return !e||e.type!=="TSInferType"?!1:t==null||(0, j.default)(e,t)}function mHt(e,t){return !e||e.type!=="TSParenthesizedType"?!1:t==null||(0, j.default)(e,t)}function yHt(e,t){return !e||e.type!=="TSTypeOperator"?!1:t==null||(0, j.default)(e,t)}function gHt(e,t){return !e||e.type!=="TSIndexedAccessType"?!1:t==null||(0, j.default)(e,t)}function SHt(e,t){return !e||e.type!=="TSMappedType"?!1:t==null||(0, j.default)(e,t)}function THt(e,t){return !e||e.type!=="TSLiteralType"?!1:t==null||(0, j.default)(e,t)}function EHt(e,t){return !e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0, j.default)(e,t)}function bHt(e,t){return !e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0, j.default)(e,t)}function vHt(e,t){return !e||e.type!=="TSInterfaceBody"?!1:t==null||(0, j.default)(e,t)}function _Ht(e,t){return !e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0, j.default)(e,t)}function xHt(e,t){return !e||e.type!=="TSInstantiationExpression"?!1:t==null||(0, j.default)(e,t)}function AHt(e,t){return !e||e.type!=="TSAsExpression"?!1:t==null||(0, j.default)(e,t)}function PHt(e,t){return !e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0, j.default)(e,t)}function CHt(e,t){return !e||e.type!=="TSTypeAssertion"?!1:t==null||(0, j.default)(e,t)}function wHt(e,t){return !e||e.type!=="TSEnumDeclaration"?!1:t==null||(0, j.default)(e,t)}function IHt(e,t){return !e||e.type!=="TSEnumMember"?!1:t==null||(0, j.default)(e,t)}function OHt(e,t){return !e||e.type!=="TSModuleDeclaration"?!1:t==null||(0, j.default)(e,t)}function DHt(e,t){return !e||e.type!=="TSModuleBlock"?!1:t==null||(0, j.default)(e,t)}function NHt(e,t){return !e||e.type!=="TSImportType"?!1:t==null||(0, j.default)(e,t)}function RHt(e,t){return !e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0, j.default)(e,t)}function MHt(e,t){return !e||e.type!=="TSExternalModuleReference"?!1:t==null||(0, j.default)(e,t)}function LHt(e,t){return !e||e.type!=="TSNonNullExpression"?!1:t==null||(0, j.default)(e,t)}function kHt(e,t){return !e||e.type!=="TSExportAssignment"?!1:t==null||(0, j.default)(e,t)}function FHt(e,t){return !e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0, j.default)(e,t)}function BHt(e,t){return !e||e.type!=="TSTypeAnnotation"?!1:t==null||(0, j.default)(e,t)}function jHt(e,t){return !e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0, j.default)(e,t)}function UHt(e,t){return !e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0, j.default)(e,t)}function qHt(e,t){return !e||e.type!=="TSTypeParameter"?!1:t==null||(0, j.default)(e,t)}function VHt(e,t){if(!e)return !1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return !1}break;default:return !1}return t==null||(0, j.default)(e,t)}function HHt(e,t){if(!e)return !1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return !1}break;default:return !1}return t==null||(0, j.default)(e,t)}function GHt(e,t){if(!e)return !1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return !1}return t==null||(0, j.default)(e,t)}function $Ht(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return !1}return t==null||(0, j.default)(e,t)}function KHt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return !1}return t==null||(0, j.default)(e,t)}function YHt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return !1}return t==null||(0, j.default)(e,t)}function WHt(e,t){if(!e)return !1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return !1}break;default:return !1}return t==null||(0, j.default)(e,t)}function XHt(e,t){if(!e)return !1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return !1}return t==null||(0, j.default)(e,t)}function zHt(e,t){if(!e)return !1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return !1}return t==null||(0, j.default)(e,t)}function JHt(e,t){if(!e)return !1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return !1}return t==null||(0, j.default)(e,t)}function QHt(e,t){if(!e)return !1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return !1}return t==null||(0, j.default)(e,t)}function ZHt(e,t){if(!e)return !1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return !1}return t==null||(0, j.default)(e,t)}function eGt(e,t){if(!e)return !1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return !1}return t==null||(0, j.default)(e,t)}function tGt(e,t){if(!e)return !1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return !1}return t==null||(0, j.default)(e,t)}function rGt(e,t){if(!e)return !1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return !1}return t==null||(0, j.default)(e,t)}function nGt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return !1}return t==null||(0, j.default)(e,t)}function iGt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return !1}return t==null||(0, j.default)(e,t)}function sGt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return !1}return t==null||(0, j.default)(e,t)}function aGt(e,t){if(!e)return !1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return !1}return t==null||(0, j.default)(e,t)}function oGt(e,t){if(!e)return !1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return !1}break;default:return !1}return t==null||(0, j.default)(e,t)}function uGt(e,t){if(!e)return !1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return !1}break;default:return !1}return t==null||(0, j.default)(e,t)}function lGt(e,t){if(!e)return !1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return !1}return t==null||(0, j.default)(e,t)}function cGt(e,t){if(!e)return !1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return !1}return t==null||(0, j.default)(e,t)}function pGt(e,t){if(!e)return !1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return !1}return t==null||(0, j.default)(e,t)}function fGt(e,t){if(!e)return !1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return !1}return t==null||(0, j.default)(e,t)}function hGt(e,t){if(!e)return !1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return !1}return t==null||(0, j.default)(e,t)}function dGt(e,t){if(!e)return !1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return !1}return t==null||(0, j.default)(e,t)}function mGt(e,t){if(!e)return !1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return !1}return t==null||(0, j.default)(e,t)}function yGt(e,t){if(!e)return !1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return !1}return t==null||(0, j.default)(e,t)}function gGt(e,t){if(!e)return !1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return !1}return t==null||(0, j.default)(e,t)}function SGt(e,t){if(!e)return !1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return !1}return t==null||(0, j.default)(e,t)}function D1e(e,t){if(!e)return !1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return !1}return t==null||(0, j.default)(e,t)}function TGt(e,t){if(!e)return !1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return !1}return t==null||(0, j.default)(e,t)}function EGt(e,t){if(!e)return !1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return !1}return t==null||(0, j.default)(e,t)}function bGt(e,t){if(!e)return !1;switch(e.type){case"ClassAccessorProperty":break;default:return !1}return t==null||(0, j.default)(e,t)}function vGt(e,t){if(!e)return !1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return !1}return t==null||(0, j.default)(e,t)}function _Gt(e,t){if(!e)return !1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return !1}return t==null||(0, j.default)(e,t)}function xGt(e,t){if(!e)return !1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return !1}return t==null||(0, j.default)(e,t)}function AGt(e,t){if(!e)return !1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return !1}return t==null||(0, j.default)(e,t)}function PGt(e,t){if(!e)return !1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return !1}return t==null||(0, j.default)(e,t)}function CGt(e,t){if(!e)return !1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return !1}return t==null||(0, j.default)(e,t)}function wGt(e,t){if(!e)return !1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return !1}return t==null||(0, j.default)(e,t)}function IGt(e,t){if(!e)return !1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return !1}return t==null||(0, j.default)(e,t)}function OGt(e,t){if(!e)return !1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return !1}return t==null||(0, j.default)(e,t)}function DGt(e,t){if(!e)return !1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return !1}return t==null||(0, j.default)(e,t)}function NGt(e,t){if(!e)return !1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return !1}return t==null||(0, j.default)(e,t)}function RGt(e,t){if(!e)return !1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return !1}return t==null||(0, j.default)(e,t)}function MGt(e,t){if(!e)return !1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return !1}return t==null||(0, j.default)(e,t)}function LGt(e,t){if(!e)return !1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return !1}return t==null||(0, j.default)(e,t)}function kGt(e,t){return (0, vv.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0, j.default)(e,t)}function FGt(e,t){return (0, vv.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0, j.default)(e,t)}function BGt(e,t){return (0, vv.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0, j.default)(e,t)}function jGt(e,t){return (0, vv.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0, j.default)(e,t)}function UGt(e,t){return (0, vv.default)("isModuleDeclaration","isImportOrExportDeclaration"),D1e(e,t)}});var V6=chunkTKGT252T_js.c(q6=>{Object.defineProperty(q6,"__esModule",{value:!0});q6.default=qGt;var _v=Qn();function qGt(e,t,r){if(!(0, _v.isMemberExpression)(e))return !1;let n=Array.isArray(t)?t:t.split("."),i=[],s;for(s=e;(0, _v.isMemberExpression)(s);s=s.object)i.push(s.property);if(i.push(s),i.length<n.length||!r&&i.length>n.length)return !1;for(let a=0,o=i.length-1;a<n.length;a++,o--){let u=i[o],l;if((0, _v.isIdentifier)(u))l=u.name;else if((0, _v.isStringLiteral)(u))l=u.value;else if((0, _v.isThisExpression)(u))l="this";else return !1;if(n[a]!==l)return !1}return !0}});var G6=chunkTKGT252T_js.c(H6=>{Object.defineProperty(H6,"__esModule",{value:!0});H6.default=HGt;var VGt=V6();function HGt(e,t){let r=e.split(".");return n=>(0, VGt.default)(n,r,t)}});var N1e=chunkTKGT252T_js.c($I=>{Object.defineProperty($I,"__esModule",{value:!0});$I.default=void 0;var GGt=G6(),$Gt=(0, GGt.default)("React.Component");$I.default=$Gt;});var R1e=chunkTKGT252T_js.c($6=>{Object.defineProperty($6,"__esModule",{value:!0});$6.default=KGt;function KGt(e){return !!e&&/^[a-z]/.test(e)}});var KI=chunkTKGT252T_js.c(K6=>{Object.defineProperty(K6,"__esModule",{value:!0});K6.default=YGt;var M1e=Oo();function YGt(e,t){if(e===t)return !0;if(e==null||M1e.ALIAS_KEYS[t])return !1;let r=M1e.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return !0;for(let n of r)if(e===n)return !0}return !1}});var W6=chunkTKGT252T_js.c(Y6=>{Object.defineProperty(Y6,"__esModule",{value:!0});Y6.default=XGt;var WGt=Oo();function XGt(e,t){if(e===t)return !0;let r=WGt.PLACEHOLDERS_ALIAS[e];if(r){for(let n of r)if(t===n)return !0}return !1}});var VS=chunkTKGT252T_js.c(X6=>{Object.defineProperty(X6,"__esModule",{value:!0});X6.default=e$t;var zGt=GI(),JGt=KI(),QGt=W6(),ZGt=Oo();function e$t(e,t,r){return t?(0, JGt.default)(t.type,e)?r===void 0?!0:(0, zGt.default)(t,r):!r&&t.type==="Placeholder"&&e in ZGt.FLIPPED_ALIAS_KEYS?(0, QGt.default)(t.expectedNode,e):!1:!1}});var j1e=chunkTKGT252T_js.c(xv=>{Object.defineProperty(xv,"__esModule",{value:!0});xv.isIdentifierChar=B1e;xv.isIdentifierName=i$t;xv.isIdentifierStart=F1e;var J6="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\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\u09FC\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",L1e="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",t$t=new RegExp("["+J6+"]"),r$t=new RegExp("["+J6+L1e+"]");J6=L1e=null;var k1e=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,38,6,186,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,19,72,200,32,32,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],n$t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function z6(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return !1;if(r+=t[n+1],r>=e)return !0}return !1}function F1e(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&t$t.test(String.fromCharCode(e)):z6(e,k1e)}function B1e(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&r$t.test(String.fromCharCode(e)):z6(e,k1e)||z6(e,n$t)}function i$t(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){let i=e.charCodeAt(++r);(i&64512)===56320&&(n=65536+((n&1023)<<10)+(i&1023));}if(t){if(t=!1,!F1e(n))return !1}else if(!B1e(n))return !1}return !t}});var H1e=chunkTKGT252T_js.c(zd=>{Object.defineProperty(zd,"__esModule",{value:!0});zd.isKeyword=l$t;zd.isReservedWord=U1e;zd.isStrictBindOnlyReservedWord=V1e;zd.isStrictBindReservedWord=u$t;zd.isStrictReservedWord=q1e;var Q6={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},s$t=new Set(Q6.keyword),a$t=new Set(Q6.strict),o$t=new Set(Q6.strictBind);function U1e(e,t){return t&&e==="await"||e==="enum"}function q1e(e,t){return U1e(e,t)||a$t.has(e)}function V1e(e){return o$t.has(e)}function u$t(e,t){return q1e(e,t)||V1e(e)}function l$t(e){return s$t.has(e)}});var Pv=chunkTKGT252T_js.c(ml=>{Object.defineProperty(ml,"__esModule",{value:!0});Object.defineProperty(ml,"isIdentifierChar",{enumerable:!0,get:function(){return Z6.isIdentifierChar}});Object.defineProperty(ml,"isIdentifierName",{enumerable:!0,get:function(){return Z6.isIdentifierName}});Object.defineProperty(ml,"isIdentifierStart",{enumerable:!0,get:function(){return Z6.isIdentifierStart}});Object.defineProperty(ml,"isKeyword",{enumerable:!0,get:function(){return Av.isKeyword}});Object.defineProperty(ml,"isReservedWord",{enumerable:!0,get:function(){return Av.isReservedWord}});Object.defineProperty(ml,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Av.isStrictBindOnlyReservedWord}});Object.defineProperty(ml,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Av.isStrictBindReservedWord}});Object.defineProperty(ml,"isStrictReservedWord",{enumerable:!0,get:function(){return Av.isStrictReservedWord}});var Z6=j1e(),Av=H1e();});var HS=chunkTKGT252T_js.c(t8=>{Object.defineProperty(t8,"__esModule",{value:!0});t8.default=c$t;var e8=Pv();function c$t(e,t=!0){return typeof e!="string"||t&&((0, e8.isKeyword)(e)||(0, e8.isStrictReservedWord)(e,!0))?!1:(0, e8.isIdentifierName)(e)}});var Y1e=chunkTKGT252T_js.c(Cv=>{Object.defineProperty(Cv,"__esModule",{value:!0});Cv.readCodePoint=K1e;Cv.readInt=$1e;Cv.readStringContents=f$t;var p$t=function(t){return t>=48&&t<=57},G1e={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},YI={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function f$t(e,t,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:h}=t;for(;;){if(r>=h){s.unterminated(a,o,u),l+=t.slice(p,r);break}let f=t.charCodeAt(r);if(h$t(e,f,t,r)){l+=t.slice(p,r);break}if(f===92){l+=t.slice(p,r);let d=d$t(t,r,n,i,e==="template",s);d.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=d.ch,{pos:r,lineStart:n,curLine:i}=d,p=r;}else f===8232||f===8233?(++r,++i,n=r):f===10||f===13?e==="template"?(l+=t.slice(p,r)+`
`,++r,f===13&&t.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(a,o,u):++r;}return {pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function h$t(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function d$t(e,t,r,n,i,s){let a=!i;t++;let o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(`
`);case 114:return o("\r");case 120:{let l;return {code:l,pos:t}=r8(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return {code:l,pos:t}=K1e(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let l=t-1,p=/^[0-7]+/.exec(e.slice(l,t+2))[0],h=parseInt(p,8);h>255&&(p=p.slice(0,-1),h=parseInt(p,8)),t+=p.length-1;let f=e.charCodeAt(t);if(p!=="0"||f===56||f===57){if(i)return o(null);s.strictNumericEscape(l,r,n);}return o(String.fromCharCode(h))}return o(String.fromCharCode(u))}}function r8(e,t,r,n,i,s,a,o){let u=t,l;return {n:l,pos:t}=$1e(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function $1e(e,t,r,n,i,s,a,o,u,l){let c=t,p=i===16?G1e.hex:G1e.decBinOct,h=i===16?YI.hex:i===10?YI.dec:i===8?YI.oct:YI.bin,f=!1,d=0;for(let m=0,y=s??1/0;m<y;++m){let g=e.charCodeAt(t),v;if(g===95&&o!=="bail"){let E=e.charCodeAt(t-1),S=e.charCodeAt(t+1);if(o){if(Number.isNaN(S)||!h(S)||p.has(E)||p.has(S)){if(l)return {n:null,pos:t};u.unexpectedNumericSeparator(t,r,n);}}else {if(l)return {n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n);}++t;continue}if(g>=97?v=g-97+10:g>=65?v=g-65+10:p$t(g)?v=g-48:v=1/0,v>=i){if(v<=9&&l)return {n:null,pos:t};if(v<=9&&u.invalidDigit(t,r,n,i))v=0;else if(a)v=0,f=!0;else break}++t,d=d*i+v;}return t===c||s!=null&&t-c!==s||f?{n:null,pos:t}:{n:d,pos:t}}function K1e(e,t,r,n,i,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=r8(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return {code:null,pos:t}}else ({code:o,pos:t}=r8(e,t,r,n,4,!1,i,s));return {code:o,pos:t}}});var $f=chunkTKGT252T_js.c(Yt=>{Object.defineProperty(Yt,"__esModule",{value:!0});Yt.UPDATE_OPERATORS=Yt.UNARY_OPERATORS=Yt.STRING_UNARY_OPERATORS=Yt.STATEMENT_OR_BLOCK_KEYS=Yt.NUMBER_UNARY_OPERATORS=Yt.NUMBER_BINARY_OPERATORS=Yt.NOT_LOCAL_BINDING=Yt.LOGICAL_OPERATORS=Yt.INHERIT_KEYS=Yt.FOR_INIT_KEYS=Yt.FLATTENABLE_KEYS=Yt.EQUALITY_BINARY_OPERATORS=Yt.COMPARISON_BINARY_OPERATORS=Yt.COMMENT_KEYS=Yt.BOOLEAN_UNARY_OPERATORS=Yt.BOOLEAN_NUMBER_BINARY_OPERATORS=Yt.BOOLEAN_BINARY_OPERATORS=Yt.BLOCK_SCOPED_SYMBOL=Yt.BINARY_OPERATORS=Yt.ASSIGNMENT_OPERATORS=void 0;Yt.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];Yt.FLATTENABLE_KEYS=["body","expressions"];Yt.FOR_INIT_KEYS=["left","init"];Yt.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];var m$t=Yt.LOGICAL_OPERATORS=["||","&&","??"];Yt.UPDATE_OPERATORS=["++","--"];var y$t=Yt.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],g$t=Yt.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],S$t=Yt.COMPARISON_BINARY_OPERATORS=[...g$t,"in","instanceof"],T$t=Yt.BOOLEAN_BINARY_OPERATORS=[...S$t,...y$t],W1e=Yt.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];Yt.BINARY_OPERATORS=["+",...W1e,...T$t,"|>"];Yt.ASSIGNMENT_OPERATORS=["=","+=",...W1e.map(e=>e+"="),...m$t.map(e=>e+"=")];var E$t=Yt.BOOLEAN_UNARY_OPERATORS=["delete","!"],b$t=Yt.NUMBER_UNARY_OPERATORS=["+","-","~"],v$t=Yt.STRING_UNARY_OPERATORS=["typeof"];Yt.UNARY_OPERATORS=["void","throw",...E$t,...b$t,...v$t];Yt.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};Yt.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");Yt.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding");});var yl=chunkTKGT252T_js.c(Nr=>{Object.defineProperty(Nr,"__esModule",{value:!0});Nr.VISITOR_KEYS=Nr.NODE_PARENT_VALIDATIONS=Nr.NODE_FIELDS=Nr.FLIPPED_ALIAS_KEYS=Nr.DEPRECATED_KEYS=Nr.BUILDER_KEYS=Nr.ALIAS_KEYS=void 0;Nr.arrayOf=z1e;Nr.arrayOfType=J1e;Nr.assertEach=Q1e;Nr.assertNodeOrValueType=M$t;Nr.assertNodeType=zI;Nr.assertOneOf=R$t;Nr.assertOptionalChainStart=k$t;Nr.assertShape=L$t;Nr.assertValueType=a8;Nr.chain=Z1e;Nr.default=ewe;Nr.defineAliasedType=j$t;Nr.validate=s8;Nr.validateArrayOfType=N$t;Nr.validateOptional=O$t;Nr.validateOptionalType=D$t;Nr.validateType=I$t;var X1e=VS(),XI=JI(),_$t=Nr.VISITOR_KEYS={},x$t=Nr.ALIAS_KEYS={},n8=Nr.FLIPPED_ALIAS_KEYS={},A$t=Nr.NODE_FIELDS={},P$t=Nr.BUILDER_KEYS={},C$t=Nr.DEPRECATED_KEYS={},w$t=Nr.NODE_PARENT_VALIDATIONS={};function WI(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function s8(e){return {validate:e}}function I$t(...e){return s8(zI(...e))}function O$t(e){return {validate:e,optional:!0}}function D$t(...e){return {validate:zI(...e),optional:!0}}function z1e(e){return Z1e(a8("array"),Q1e(e))}function J1e(...e){return z1e(zI(...e))}function N$t(...e){return s8(J1e(...e))}function Q1e(e){let t=process.env.BABEL_TYPES_8_BREAKING?XI.validateChild:()=>{};function r(n,i,s){if(Array.isArray(s))for(let a=0;a<s.length;a++){let o=`${i}[${a}]`,u=s[a];e(n,o,u),t(n,o,u);}}return r.each=e,r}function R$t(...e){function t(r,n,i){if(!e.includes(i))throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(i)}`)}return t.oneOf=e,t}function zI(...e){function t(r,n,i){for(let s of e)if((0, X1e.default)(s,i)){(0, XI.validateChild)(r,n,i);return}throw new TypeError(`Property ${n} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i==null?void 0:i.type)}`)}return t.oneOfNodeTypes=e,t}function M$t(...e){function t(r,n,i){for(let s of e)if(WI(i)===s||(0, X1e.default)(s,i)){(0, XI.validateChild)(r,n,i);return}throw new TypeError(`Property ${n} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i==null?void 0:i.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function a8(e){function t(r,n,i){if(!(WI(i)===e))throw new TypeError(`Property ${n} expected type of ${e} but got ${WI(i)}`)}return t.type=e,t}function L$t(e){function t(r,n,i){let s=[];for(let a of Object.keys(e))try{(0,XI.validateField)(r,a,i[a],e[a]);}catch(o){if(o instanceof TypeError){s.push(o.message);continue}throw o}if(s.length)throw new TypeError(`Property ${n} of ${r.type} expected to have the following:
${s.join(`
`)}`)}return t.shapeOf=e,t}function k$t(){function e(t){var r;let n=t;for(;t;){let{type:i}=n;if(i==="OptionalCallExpression"){if(n.optional)return;n=n.callee;continue}if(i==="OptionalMemberExpression"){if(n.optional)return;n=n.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=n)==null?void 0:r.type}`)}return e}function Z1e(...e){function t(...r){for(let n of e)n(...r);}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var F$t=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),B$t=new Set(["default","optional","deprecated","validate"]),i8={};function j$t(...e){return (t,r={})=>{let n=r.aliases;if(!n){var i;r.inherits&&(n=(i=i8[r.inherits].aliases)==null?void 0:i.slice()),(n)!=null||(n=[]),r.aliases=n;}let a=e.filter(o=>!n.includes(o));n.unshift(...a),ewe(t,r);}}function ewe(e,t={}){let r=t.inherits&&i8[t.inherits]||{},n=t.fields;if(!n&&(n={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let u of o){let l=r.fields[u],c=l.default;if(Array.isArray(c)?c.length>0:c&&typeof c=="object")throw new Error("field defaults can only be primitives or empty arrays currently");n[u]={default:Array.isArray(c)?[]:c,optional:l.optional,deprecated:l.deprecated,validate:l.validate};}}let i=t.visitor||r.visitor||[],s=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!F$t.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(C$t[t.deprecatedAlias]=e);for(let o of i.concat(a))n[o]=n[o]||{};for(let o of Object.keys(n)){let u=n[o];u.default!==void 0&&!a.includes(o)&&(u.optional=!0),u.default===void 0?u.default=null:!u.validate&&u.default!=null&&(u.validate=a8(WI(u.default)));for(let l of Object.keys(u))if(!B$t.has(l))throw new Error(`Unknown field key "${l}" on ${e}.${o}`)}_$t[e]=t.visitor=i,P$t[e]=t.builder=a,A$t[e]=t.fields=n,x$t[e]=t.aliases=s,s.forEach(o=>{n8[o]=n8[o]||[],n8[o].push(e);}),t.validate&&(w$t[e]=t.validate),i8[e]=t;}});var u8=chunkTKGT252T_js.c(ba=>{Object.defineProperty(ba,"__esModule",{value:!0});ba.patternLikeCommon=ba.functionTypeAnnotationCommon=ba.functionDeclarationCommon=ba.functionCommon=ba.classMethodOrPropertyCommon=ba.classMethodOrDeclareMethodCommon=void 0;var Ks=VS(),U$t=HS(),twe=Pv(),q$t=Y1e(),wv=$f(),U=yl(),Ne=(0, U.defineAliasedType)("Standardized");Ne("ArrayExpression",{fields:{elements:{validate:(0, U.arrayOf)((0, U.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});Ne("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){let e=(0, U.assertOneOf)(...wv.ASSIGNMENT_OPERATORS),t=(0, U.assertOneOf)("=");return function(r,n,i){((0, Ks.default)("Pattern",r.left)?t:e)(r,n,i);}}(),{type:"string"}):(0, U.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, U.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0, U.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});Ne("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0, U.assertOneOf)(...wv.BINARY_OPERATORS)},left:{validate:function(){let e=(0, U.assertNodeType)("Expression"),t=(0, U.assertNodeType)("Expression","PrivateName");return Object.assign(function(n,i,s){(n.operator==="in"?t:e)(n,i,s);},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0, U.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});Ne("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0, U.assertValueType)("string")}}});Ne("Directive",{visitor:["value"],fields:{value:{validate:(0, U.assertNodeType)("DirectiveLiteral")}}});Ne("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0, U.assertValueType)("string")}}});Ne("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0, U.arrayOfType)("Directive"),default:[]},body:(0, U.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});Ne("BreakStatement",{visitor:["label"],fields:{label:{validate:(0, U.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Ne("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0, U.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0, U.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder")},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, U.assertValueType)("boolean"),optional:!0}},{typeArguments:{validate:(0, U.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0, U.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Ne("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0, U.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0, U.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});Ne("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0, U.assertNodeType)("Expression")},consequent:{validate:(0, U.assertNodeType)("Expression")},alternate:{validate:(0, U.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});Ne("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0, U.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});Ne("DebuggerStatement",{aliases:["Statement"]});Ne("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0, U.assertNodeType)("Expression")},body:{validate:(0, U.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});Ne("EmptyStatement",{aliases:["Statement"]});Ne("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0, U.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});Ne("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0, U.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.assertEach)((0, U.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0, U.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});Ne("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, U.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0, U.assertNodeType)("Expression")},body:{validate:(0, U.assertNodeType)("Statement")}}});Ne("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0, U.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0, U.assertNodeType)("Expression"),optional:!0},update:{validate:(0, U.assertNodeType)("Expression"),optional:!0},body:{validate:(0, U.assertNodeType)("Statement")}}});var GS=()=>({params:(0, U.validateArrayOfType)("Identifier","Pattern","RestElement"),generator:{default:!1},async:{default:!1}});ba.functionCommon=GS;var Jd=()=>({returnType:{validate:(0, U.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0, U.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});ba.functionTypeAnnotationCommon=Jd;var rwe=()=>Object.assign({},GS(),{declare:{validate:(0, U.assertValueType)("boolean"),optional:!0},id:{validate:(0, U.assertNodeType)("Identifier"),optional:!0}});ba.functionDeclarationCommon=rwe;Ne("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","returnType","body"],fields:Object.assign({},rwe(),Jd(),{body:{validate:(0, U.assertNodeType)("BlockStatement")},predicate:{validate:(0, U.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0, U.assertNodeType)("Identifier");return function(t,r,n){(0, Ks.default)("ExportDefaultDeclaration",t)||e(n,"id",n.id);}}():void 0});Ne("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},GS(),Jd(),{id:{validate:(0, U.assertNodeType)("Identifier"),optional:!0},body:{validate:(0, U.assertNodeType)("BlockStatement")},predicate:{validate:(0, U.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var $S=()=>({typeAnnotation:{validate:(0, U.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0, U.assertValueType)("boolean"),optional:!0},decorators:{validate:(0, U.arrayOfType)("Decorator"),optional:!0}});ba.patternLikeCommon=$S;Ne("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},$S(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.chain)((0, U.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0, U$t.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0, U.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let n=/\.(\w+)$/.exec(t);if(!n)return;let[,i]=n,s={computed:!1};if(i==="property"){if((0, Ks.default)("MemberExpression",e,s)||(0, Ks.default)("OptionalMemberExpression",e,s))return}else if(i==="key"){if((0, Ks.default)("Property",e,s)||(0, Ks.default)("Method",e,s))return}else if(i==="exported"){if((0, Ks.default)("ExportSpecifier",e))return}else if(i==="imported"){if((0, Ks.default)("ImportSpecifier",e,{imported:r}))return}else if(i==="meta"&&(0, Ks.default)("MetaProperty",e,{meta:r}))return;if(((0, twe.isKeyword)(r.name)||(0, twe.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});Ne("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0, U.assertNodeType)("Expression")},consequent:{validate:(0, U.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0, U.assertNodeType)("Statement")}}});Ne("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0, U.assertNodeType)("Identifier")},body:{validate:(0, U.assertNodeType)("Statement")}}});Ne("StringLiteral",{builder:["value"],fields:{value:{validate:(0, U.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Ne("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0, U.chain)((0, U.assertValueType)("number"),Object.assign(function(e,t,r){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});Ne("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});Ne("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0, U.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});Ne("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0, U.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.chain)((0, U.assertValueType)("string"),Object.assign(function(e,t,r){let n=/[^gimsuy]/.exec(r);if(n)throw new TypeError(`"${n[0]}" is not a valid RegExp flag`)},{type:"string"})):(0, U.assertValueType)("string"),default:""}}});Ne("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0, U.assertOneOf)(...wv.LOGICAL_OPERATORS)},left:{validate:(0, U.assertNodeType)("Expression")},right:{validate:(0, U.assertNodeType)("Expression")}}});Ne("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0, U.assertNodeType)("Expression","Super")},property:{validate:function(){let e=(0, U.assertNodeType)("Identifier","PrivateName"),t=(0, U.assertNodeType)("Expression"),r=function(n,i,s){(n.computed?t:e)(n,i,s);};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0, U.assertValueType)("boolean"),optional:!0}})});Ne("NewExpression",{inherits:"CallExpression"});Ne("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0, U.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0, U.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0, U.arrayOfType)("Directive"),default:[]},body:(0, U.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});Ne("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0, U.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});Ne("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},GS(),Jd(),{kind:Object.assign({validate:(0, U.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let e=(0, U.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0, U.assertNodeType)("Expression"),r=function(n,i,s){(n.computed?t:e)(n,i,s);};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0, U.arrayOfType)("Decorator"),optional:!0},body:{validate:(0, U.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});Ne("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){let e=(0, U.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0, U.assertNodeType)("Expression");return Object.assign(function(n,i,s){(n.computed?t:e)(n,i,s);},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0, U.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.chain)((0, U.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0, Ks.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0, U.assertValueType)("boolean"),default:!1},decorators:{validate:(0, U.arrayOfType)("Decorator"),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0, U.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0, U.assertNodeType)("Expression");return function(r,n,i){((0, Ks.default)("ObjectPattern",r)?e:t)(i,"value",i.value);}}():void 0});Ne("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},$S(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0, U.assertNodeType)("LVal")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");let[,n,i]=r;if(e[n].length>+i+1)throw new TypeError(`RestElement must be last element of ${n}`)}:void 0});Ne("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, U.assertNodeType)("Expression"),optional:!0}}});Ne("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0, U.validateArrayOfType)("Expression")},aliases:["Expression"]});Ne("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0, U.assertNodeType)("Expression")}}});Ne("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0, U.assertNodeType)("Expression"),optional:!0},consequent:(0, U.validateArrayOfType)("Statement")}});Ne("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0, U.assertNodeType)("Expression")},cases:(0, U.validateArrayOfType)("SwitchCase")}});Ne("ThisExpression",{aliases:["Expression"]});Ne("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0, U.assertNodeType)("Expression")}}});Ne("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.chain)((0, U.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0, U.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0, U.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0, U.assertNodeType)("BlockStatement")}}});Ne("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0, U.assertNodeType)("Expression")},operator:{validate:(0, U.assertOneOf)(...wv.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});Ne("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.assertNodeType)("Identifier","MemberExpression"):(0, U.assertNodeType)("Expression")},operator:{validate:(0, U.assertOneOf)(...wv.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});Ne("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0, U.assertValueType)("boolean"),optional:!0},kind:{validate:(0, U.assertOneOf)("var","let","const","using","await using")},declarations:(0, U.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0, U.assertNodeType)("Identifier");return function(t,r,n){if((0, Ks.default)("ForXStatement",t,{left:n})){if(n.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${t.type}`)}else n.declarations.forEach(i=>{i.init||e(i,"id",i.id);});}})():void 0});Ne("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"):(0, U.assertNodeType)("LVal")},definite:{optional:!0,validate:(0, U.assertValueType)("boolean")},init:{optional:!0,validate:(0, U.assertNodeType)("Expression")}}});Ne("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0, U.assertNodeType)("Expression")},body:{validate:(0, U.assertNodeType)("Statement")}}});Ne("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0, U.assertNodeType)("Expression")},body:{validate:(0, U.assertNodeType)("Statement")}}});Ne("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},$S(),{left:{validate:(0, U.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0, U.assertNodeType)("Expression")},decorators:{validate:(0, U.arrayOfType)("Decorator"),optional:!0}})});Ne("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},$S(),{elements:{validate:(0, U.chain)((0, U.assertValueType)("array"),(0, U.assertEach)((0, U.assertNodeOrValueType)("null","PatternLike","LVal")))}})});Ne("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},GS(),Jd(),{expression:{validate:(0, U.assertValueType)("boolean")},body:{validate:(0, U.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0, U.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});Ne("ClassBody",{visitor:["body"],fields:{body:(0, U.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});Ne("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0, U.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0, U.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0, U.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0, U.assertNodeType)("Expression")},superTypeParameters:{validate:(0, U.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0, U.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0, U.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0, U.assertNodeType)("InterfaceExtends"),optional:!0}}});Ne("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0, U.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0, U.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0, U.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0, U.assertNodeType)("Expression")},superTypeParameters:{validate:(0, U.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0, U.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0, U.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0, U.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0, U.assertValueType)("boolean"),optional:!0},abstract:{validate:(0, U.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0, U.assertNodeType)("Identifier");return function(t,r,n){(0, Ks.default)("ExportDefaultDeclaration",t)||e(n,"id",n.id);}}():void 0});Ne("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:(0, U.assertNodeType)("StringLiteral")},exportKind:(0, U.validateOptional)((0, U.assertOneOf)("type","value")),attributes:{optional:!0,validate:(0, U.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0, U.arrayOfType)("ImportAttribute")}}});Ne("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0, U.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0, U.validateOptional)((0, U.assertOneOf)("value"))}});Ne("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:process.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.chain)((0, U.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0, U.assertNodeType)("Declaration")},attributes:{optional:!0,validate:(0, U.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0, U.arrayOfType)("ImportAttribute")},specifiers:{default:[],validate:(0, U.arrayOf)(function(){let e=(0, U.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0, U.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,n,i){(r.source?e:t)(r,n,i);},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:(0, U.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0, U.validateOptional)((0, U.assertOneOf)("type","value"))}});Ne("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, U.assertNodeType)("Identifier")},exported:{validate:(0, U.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0, U.assertOneOf)("type","value"),optional:!0}}});Ne("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return (0, U.assertNodeType)("VariableDeclaration","LVal");let e=(0, U.assertNodeType)("VariableDeclaration"),t=(0, U.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,n,i){(0, Ks.default)("VariableDeclaration",i)?e(r,n,i):t(r,n,i);},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0, U.assertNodeType)("Expression")},body:{validate:(0, U.assertNodeType)("Statement")},await:{default:!1}}});Ne("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:(0, U.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0, U.arrayOfType)("ImportAttribute")},module:{optional:!0,validate:(0, U.assertValueType)("boolean")},phase:{default:null,validate:(0, U.assertOneOf)("source","defer")},specifiers:(0, U.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0, U.assertNodeType)("StringLiteral")},importKind:{validate:(0, U.assertOneOf)("type","typeof","value"),optional:!0}}});Ne("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, U.assertNodeType)("Identifier")}}});Ne("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, U.assertNodeType)("Identifier")}}});Ne("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0, U.assertNodeType)("Identifier")},imported:{validate:(0, U.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0, U.assertOneOf)("type","typeof","value"),optional:!0}}});Ne("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0, U.assertOneOf)("source","defer")},source:{validate:(0, U.assertNodeType)("Expression")},options:{validate:(0, U.assertNodeType)("Expression"),optional:!0}}});Ne("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.chain)((0, U.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let n;switch(r.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta";break}if(!(0, Ks.default)("Identifier",e.property,{name:n}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0, U.assertNodeType)("Identifier")},property:{validate:(0, U.assertNodeType)("Identifier")}}});var QI=()=>({abstract:{validate:(0, U.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0, U.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0, U.assertValueType)("boolean"),optional:!0},key:{validate:(0, U.chain)(function(){let e=(0, U.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0, U.assertNodeType)("Expression");return function(r,n,i){(r.computed?t:e)(r,n,i);}}(),(0, U.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});ba.classMethodOrPropertyCommon=QI;var o8=()=>Object.assign({},GS(),QI(),{params:(0, U.validateArrayOfType)("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:(0, U.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0, U.chain)((0, U.assertValueType)("string"),(0, U.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0, U.arrayOfType)("Decorator"),optional:!0}});ba.classMethodOrDeclareMethodCommon=o8;Ne("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},o8(),Jd(),{body:{validate:(0, U.assertNodeType)("BlockStatement")}})});Ne("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},$S(),{properties:(0, U.validateArrayOfType)("RestElement","ObjectProperty")})});Ne("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0, U.assertNodeType)("Expression")}}});Ne("Super",{aliases:["Expression"]});Ne("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0, U.assertNodeType)("Expression")},quasi:{validate:(0, U.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0, U.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Ne("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0, U.chain)((0, U.assertShape)({raw:{validate:(0, U.assertValueType)("string")},cooked:{validate:(0, U.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,n=!1,i=()=>{throw new Error("Internal @babel/types error.")},{str:s,firstInvalidLoc:a}=(0, q$t.readStringContents)("template",r,0,0,0,{unterminated(){n=!0;},strictNumericEscape:i,invalidEscapeSequence:i,numericSeparatorInEscapeSequence:i,unexpectedNumericSeparator:i,invalidDigit:i,invalidCodePoint:i});if(!n)throw new Error("Invalid raw");t.value.cooked=a?null:s;})},tail:{default:!1}}});Ne("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0, U.validateArrayOfType)("TemplateElement"),expressions:{validate:(0, U.chain)((0, U.assertValueType)("array"),(0, U.assertEach)((0, U.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Ne("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.chain)((0, U.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0, U.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0, U.assertNodeType)("Expression")}}});Ne("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0, U.assertNodeType)("Expression")}}});Ne("Import",{aliases:["Expression"]});Ne("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0, U.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Ne("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, U.assertNodeType)("Identifier")}}});Ne("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0, U.assertNodeType)("Expression")},property:{validate:function(){let e=(0, U.assertNodeType)("Identifier"),t=(0, U.assertNodeType)("Expression");return Object.assign(function(n,i,s){(n.computed?t:e)(n,i,s);},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.chain)((0, U.assertValueType)("boolean"),(0, U.assertOptionalChainStart)()):(0, U.assertValueType)("boolean")}}});Ne("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0, U.assertNodeType)("Expression")},arguments:(0, U.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0, U.chain)((0, U.assertValueType)("boolean"),(0, U.assertOptionalChainStart)()):(0, U.assertValueType)("boolean")},typeArguments:{validate:(0, U.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0, U.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}});Ne("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},QI(),{value:{validate:(0, U.assertNodeType)("Expression"),optional:!0},definite:{validate:(0, U.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0, U.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, U.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0, U.assertValueType)("boolean"),optional:!0},declare:{validate:(0, U.assertValueType)("boolean"),optional:!0},variance:{validate:(0, U.assertNodeType)("Variance"),optional:!0}})});Ne("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},QI(),{key:{validate:(0, U.chain)(function(){let e=(0, U.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0, U.assertNodeType)("Expression");return function(r,n,i){(r.computed?t:e)(r,n,i);}}(),(0, U.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0, U.assertNodeType)("Expression"),optional:!0},definite:{validate:(0, U.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0, U.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, U.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0, U.assertValueType)("boolean"),optional:!0},declare:{validate:(0, U.assertValueType)("boolean"),optional:!0},variance:{validate:(0, U.assertNodeType)("Variance"),optional:!0}})});Ne("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0, U.assertNodeType)("PrivateName")},value:{validate:(0, U.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0, U.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0, U.arrayOfType)("Decorator"),optional:!0},static:{validate:(0, U.assertValueType)("boolean"),default:!1},readonly:{validate:(0, U.assertValueType)("boolean"),optional:!0},definite:{validate:(0, U.assertValueType)("boolean"),optional:!0},variance:{validate:(0, U.assertNodeType)("Variance"),optional:!0}}});Ne("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},o8(),Jd(),{kind:{validate:(0, U.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0, U.assertNodeType)("PrivateName")},body:{validate:(0, U.assertNodeType)("BlockStatement")}})});Ne("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0, U.assertNodeType)("Identifier")}}});Ne("StaticBlock",{visitor:["body"],fields:{body:(0, U.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});});var nwe=chunkTKGT252T_js.c(()=>{var te=yl(),st=(0, te.defineAliasedType)("Flow"),l8=e=>{let t=e==="DeclareClass";st(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0, te.validateType)("Identifier"),typeParameters:(0, te.validateOptionalType)("TypeParameterDeclaration"),extends:(0, te.validateOptional)((0, te.arrayOfType)("InterfaceExtends"))},t?{mixins:(0, te.validateOptional)((0, te.arrayOfType)("InterfaceExtends")),implements:(0, te.validateOptional)((0, te.arrayOfType)("ClassImplements"))}:{},{body:(0, te.validateType)("ObjectTypeAnnotation")})});};st("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});st("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0, te.validateType)("FlowType")}});st("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});st("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, te.validate)((0, te.assertValueType)("boolean"))}});st("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});st("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0, te.validateType)("Identifier"),typeParameters:(0, te.validateOptionalType)("TypeParameterInstantiation")}});l8("DeclareClass");st("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, te.validateType)("Identifier"),predicate:(0, te.validateOptionalType)("DeclaredPredicate")}});l8("DeclareInterface");st("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, te.validateType)("Identifier","StringLiteral"),body:(0, te.validateType)("BlockStatement"),kind:(0, te.validateOptional)((0, te.assertOneOf)("CommonJS","ES"))}});st("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0, te.validateType)("TypeAnnotation")}});st("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, te.validateType)("Identifier"),typeParameters:(0, te.validateOptionalType)("TypeParameterDeclaration"),right:(0, te.validateType)("FlowType")}});st("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, te.validateType)("Identifier"),typeParameters:(0, te.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, te.validateOptionalType)("FlowType"),impltype:(0, te.validateOptionalType)("FlowType")}});st("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, te.validateType)("Identifier")}});st("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0, te.validateOptionalType)("Flow"),specifiers:(0, te.validateOptional)((0, te.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0, te.validateOptionalType)("StringLiteral"),default:(0, te.validateOptional)((0, te.assertValueType)("boolean"))}});st("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0, te.validateType)("StringLiteral"),exportKind:(0, te.validateOptional)((0, te.assertOneOf)("type","value"))}});st("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0, te.validateType)("Flow")}});st("ExistsTypeAnnotation",{aliases:["FlowType"]});st("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0, te.validateOptionalType)("TypeParameterDeclaration"),params:(0, te.validateArrayOfType)("FunctionTypeParam"),rest:(0, te.validateOptionalType)("FunctionTypeParam"),this:(0, te.validateOptionalType)("FunctionTypeParam"),returnType:(0, te.validateType)("FlowType")}});st("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0, te.validateOptionalType)("Identifier"),typeAnnotation:(0, te.validateType)("FlowType"),optional:(0, te.validateOptional)((0, te.assertValueType)("boolean"))}});st("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0, te.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0, te.validateOptionalType)("TypeParameterInstantiation")}});st("InferredPredicate",{aliases:["FlowPredicate"]});st("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0, te.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0, te.validateOptionalType)("TypeParameterInstantiation")}});l8("InterfaceDeclaration");st("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0, te.validateOptional)((0, te.arrayOfType)("InterfaceExtends")),body:(0, te.validateType)("ObjectTypeAnnotation")}});st("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, te.validate)((0, te.arrayOfType)("FlowType"))}});st("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});st("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});st("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0, te.validateType)("FlowType")}});st("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, te.validate)((0, te.assertValueType)("number"))}});st("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});st("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0, te.validate)((0, te.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0, te.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0, te.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0, te.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0, te.assertValueType)("boolean"),default:!1},inexact:(0, te.validateOptional)((0, te.assertValueType)("boolean"))}});st("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0, te.validateType)("Identifier"),value:(0, te.validateType)("FlowType"),optional:(0, te.validate)((0, te.assertValueType)("boolean")),static:(0, te.validate)((0, te.assertValueType)("boolean")),method:(0, te.validate)((0, te.assertValueType)("boolean"))}});st("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0, te.validateType)("FlowType"),static:(0, te.validate)((0, te.assertValueType)("boolean"))}});st("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0, te.validateOptionalType)("Identifier"),key:(0, te.validateType)("FlowType"),value:(0, te.validateType)("FlowType"),static:(0, te.validate)((0, te.assertValueType)("boolean")),variance:(0, te.validateOptionalType)("Variance")}});st("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0, te.validateType)("Identifier","StringLiteral"),value:(0, te.validateType)("FlowType"),kind:(0, te.validate)((0, te.assertOneOf)("init","get","set")),static:(0, te.validate)((0, te.assertValueType)("boolean")),proto:(0, te.validate)((0, te.assertValueType)("boolean")),optional:(0, te.validate)((0, te.assertValueType)("boolean")),variance:(0, te.validateOptionalType)("Variance"),method:(0, te.validate)((0, te.assertValueType)("boolean"))}});st("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0, te.validateType)("FlowType")}});st("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, te.validateType)("Identifier"),typeParameters:(0, te.validateOptionalType)("TypeParameterDeclaration"),supertype:(0, te.validateOptionalType)("FlowType"),impltype:(0, te.validateType)("FlowType")}});st("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0, te.validateType)("Identifier"),qualification:(0, te.validateType)("Identifier","QualifiedTypeIdentifier")}});st("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0, te.validate)((0, te.assertValueType)("string"))}});st("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});st("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});st("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});st("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, te.validate)((0, te.arrayOfType)("FlowType"))}});st("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0, te.validateType)("FlowType")}});st("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0, te.validateType)("Identifier"),typeParameters:(0, te.validateOptionalType)("TypeParameterDeclaration"),right:(0, te.validateType)("FlowType")}});st("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0, te.validateType)("FlowType")}});st("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0, te.validateType)("Expression"),typeAnnotation:(0, te.validateType)("TypeAnnotation")}});st("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0, te.validate)((0, te.assertValueType)("string")),bound:(0, te.validateOptionalType)("TypeAnnotation"),default:(0, te.validateOptionalType)("FlowType"),variance:(0, te.validateOptionalType)("Variance")}});st("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0, te.validate)((0, te.arrayOfType)("TypeParameter"))}});st("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0, te.validate)((0, te.arrayOfType)("FlowType"))}});st("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0, te.validate)((0, te.arrayOfType)("FlowType"))}});st("Variance",{builder:["kind"],fields:{kind:(0, te.validate)((0, te.assertOneOf)("minus","plus"))}});st("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});st("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0, te.validateType)("Identifier"),body:(0, te.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});st("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, te.validate)((0, te.assertValueType)("boolean")),members:(0, te.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0, te.validate)((0, te.assertValueType)("boolean"))}});st("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, te.validate)((0, te.assertValueType)("boolean")),members:(0, te.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0, te.validate)((0, te.assertValueType)("boolean"))}});st("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0, te.validate)((0, te.assertValueType)("boolean")),members:(0, te.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0, te.validate)((0, te.assertValueType)("boolean"))}});st("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0, te.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0, te.validate)((0, te.assertValueType)("boolean"))}});st("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, te.validateType)("Identifier"),init:(0, te.validateType)("BooleanLiteral")}});st("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, te.validateType)("Identifier"),init:(0, te.validateType)("NumericLiteral")}});st("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0, te.validateType)("Identifier"),init:(0, te.validateType)("StringLiteral")}});st("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0, te.validateType)("Identifier")}});st("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, te.validateType)("FlowType"),indexType:(0, te.validateType)("FlowType")}});st("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0, te.validateType)("FlowType"),indexType:(0, te.validateType)("FlowType"),optional:(0, te.validate)((0, te.assertValueType)("boolean"))}});});var iwe=chunkTKGT252T_js.c(()=>{var $n=yl(),Ys=(0, $n.defineAliasedType)("JSX");Ys("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0, $n.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0, $n.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});Ys("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0, $n.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});Ys("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0, $n.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0, $n.assertNodeType)("JSXClosingElement")},children:(0, $n.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0, $n.assertValueType)("boolean"),optional:!0}})});Ys("JSXEmptyExpression",{});Ys("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, $n.assertNodeType)("Expression","JSXEmptyExpression")}}});Ys("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0, $n.assertNodeType)("Expression")}}});Ys("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0, $n.assertValueType)("string")}}});Ys("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0, $n.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0, $n.assertNodeType)("JSXIdentifier")}}});Ys("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0, $n.assertNodeType)("JSXIdentifier")},name:{validate:(0, $n.assertNodeType)("JSXIdentifier")}}});Ys("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0, $n.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0, $n.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:(0, $n.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});Ys("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0, $n.assertNodeType)("Expression")}}});Ys("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0, $n.assertValueType)("string")}}});Ys("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0, $n.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0, $n.assertNodeType)("JSXClosingFragment")},children:(0, $n.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});Ys("JSXOpeningFragment",{aliases:["Immutable"]});Ys("JSXClosingFragment",{aliases:["Immutable"]});});var f8=chunkTKGT252T_js.c(Kf=>{Object.defineProperty(Kf,"__esModule",{value:!0});Kf.PLACEHOLDERS_FLIPPED_ALIAS=Kf.PLACEHOLDERS_ALIAS=Kf.PLACEHOLDERS=void 0;var V$t=yl(),H$t=Kf.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],p8=Kf.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of H$t){let t=V$t.ALIAS_KEYS[e];t!=null&&t.length&&(p8[e]=t);}var c8=Kf.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(p8).forEach(e=>{p8[e].forEach(t=>{hasOwnProperty.call(c8,t)||(c8[t]=[]),c8[t].push(e);});});});var swe=chunkTKGT252T_js.c(()=>{var ZI=yl(),G$t=f8(),h8=(0, ZI.defineAliasedType)("Miscellaneous");h8("Noop",{visitor:[]});h8("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0, ZI.assertNodeType)("Identifier")},expectedNode:{validate:(0, ZI.assertOneOf)(...G$t.PLACEHOLDERS)}}});h8("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0, ZI.assertValueType)("string")}}});});var awe=chunkTKGT252T_js.c(()=>{var pn=yl();(0, pn.default)("ArgumentPlaceholder",{});(0, pn.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0, pn.assertNodeType)("Expression")},callee:{validate:(0, pn.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0, pn.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0, pn.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0, pn.assertNodeType)("StringLiteral")}}});(0, pn.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0, pn.assertNodeType)("Expression")}}});(0, pn.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0, pn.assertNodeType)("BlockStatement")},async:{validate:(0, pn.assertValueType)("boolean"),default:!1}}});(0, pn.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0, pn.assertNodeType)("Identifier")}}});(0, pn.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0, pn.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0, pn.default)("TupleExpression",{fields:{elements:{validate:(0, pn.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0, pn.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0, pn.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0, pn.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0, pn.assertNodeType)("Program")}},aliases:["Expression"]});(0, pn.default)("TopicReference",{aliases:["Expression"]});(0, pn.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0, pn.assertNodeType)("Expression")}},aliases:["Expression"]});(0, pn.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0, pn.assertNodeType)("Expression")}},aliases:["Expression"]});(0, pn.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});});var dwe=chunkTKGT252T_js.c(()=>{var me=yl(),owe=u8(),$$t=VS(),vt=(0, me.defineAliasedType)("TypeScript"),va=(0, me.assertValueType)("boolean"),uwe=()=>({returnType:{validate:(0, me.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0, me.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});vt("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0, me.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0, me.assertValueType)("boolean"),optional:!0},parameter:{validate:(0, me.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0, me.assertValueType)("boolean"),optional:!0},decorators:{validate:(0, me.arrayOfType)("Decorator"),optional:!0}}});vt("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0, owe.functionDeclarationCommon)(),uwe())});vt("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0, owe.classMethodOrDeclareMethodCommon)(),uwe())});vt("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0, me.validateType)("TSEntityName"),right:(0, me.validateType)("Identifier")}});var eO=()=>({typeParameters:(0, me.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0, me.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0, me.validateOptionalType)("TSTypeAnnotation")}),lwe={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:eO()};vt("TSCallSignatureDeclaration",lwe);vt("TSConstructSignatureDeclaration",lwe);var cwe=()=>({key:(0, me.validateType)("Expression"),computed:{default:!1},optional:(0, me.validateOptional)(va)});vt("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},cwe(),{readonly:(0, me.validateOptional)(va),typeAnnotation:(0, me.validateOptionalType)("TSTypeAnnotation"),kind:{validate:(0, me.assertOneOf)("get","set")}})});vt("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},eO(),cwe(),{kind:{validate:(0, me.assertOneOf)("method","get","set")}})});vt("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0, me.validateOptional)(va),static:(0, me.validateOptional)(va),parameters:(0, me.validateArrayOfType)("Identifier"),typeAnnotation:(0, me.validateOptionalType)("TSTypeAnnotation")}});var K$t=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of K$t)vt(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});vt("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var pwe={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};vt("TSFunctionType",Object.assign({},pwe,{fields:eO()}));vt("TSConstructorType",Object.assign({},pwe,{fields:Object.assign({},eO(),{abstract:(0, me.validateOptional)(va)})}));vt("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0, me.validateType)("TSEntityName"),typeParameters:(0, me.validateOptionalType)("TSTypeParameterInstantiation")}});vt("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0, me.validateType)("Identifier","TSThisType"),typeAnnotation:(0, me.validateOptionalType)("TSTypeAnnotation"),asserts:(0, me.validateOptional)(va)}});vt("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0, me.validateType)("TSEntityName","TSImportType"),typeParameters:(0, me.validateOptionalType)("TSTypeParameterInstantiation")}});vt("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0, me.validateArrayOfType)("TSTypeElement")}});vt("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0, me.validateType)("TSType")}});vt("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0, me.validateArrayOfType)("TSType","TSNamedTupleMember")}});vt("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, me.validateType)("TSType")}});vt("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, me.validateType)("TSType")}});vt("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0, me.validateType)("Identifier"),optional:{validate:va,default:!1},elementType:(0, me.validateType)("TSType")}});var fwe={aliases:["TSType"],visitor:["types"],fields:{types:(0, me.validateArrayOfType)("TSType")}};vt("TSUnionType",fwe);vt("TSIntersectionType",fwe);vt("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0, me.validateType)("TSType"),extendsType:(0, me.validateType)("TSType"),trueType:(0, me.validateType)("TSType"),falseType:(0, me.validateType)("TSType")}});vt("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0, me.validateType)("TSTypeParameter")}});vt("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0, me.validateType)("TSType")}});vt("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0, me.validate)((0, me.assertValueType)("string")),typeAnnotation:(0, me.validateType)("TSType")}});vt("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0, me.validateType)("TSType"),indexType:(0, me.validateType)("TSType")}});vt("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0, me.validateType)("TSTypeParameter")},{readonly:(0, me.validateOptional)((0, me.assertOneOf)(!0,!1,"+","-")),optional:(0, me.validateOptional)((0, me.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0, me.validateOptionalType)("TSType"),nameType:(0, me.validateOptionalType)("TSType")})});vt("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let e=(0, me.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0, me.assertOneOf)("-"),r=(0, me.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function n(i,s,a){(0, $$t.default)("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):r(i,s,a);}return n.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],n}()}}});var Y$t={aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0, me.validateType)("TSEntityName"),typeParameters:(0, me.validateOptionalType)("TSTypeParameterInstantiation")}};vt("TSExpressionWithTypeArguments",Y$t);vt("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0, me.validateOptional)(va),id:(0, me.validateType)("Identifier"),typeParameters:(0, me.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0, me.validateOptional)((0, me.arrayOfType)("TSExpressionWithTypeArguments")),body:(0, me.validateType)("TSInterfaceBody")}});vt("TSInterfaceBody",{visitor:["body"],fields:{body:(0, me.validateArrayOfType)("TSTypeElement")}});vt("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0, me.validateOptional)(va),id:(0, me.validateType)("Identifier"),typeParameters:(0, me.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0, me.validateType)("TSType")}});vt("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0, me.validateType)("Expression"),typeParameters:(0, me.validateOptionalType)("TSTypeParameterInstantiation")}});var hwe={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0, me.validateType)("Expression"),typeAnnotation:(0, me.validateType)("TSType")}};vt("TSAsExpression",hwe);vt("TSSatisfiesExpression",hwe);vt("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0, me.validateType)("TSType"),expression:(0, me.validateType)("Expression")}});vt("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0, me.validateOptional)(va),const:(0, me.validateOptional)(va),id:(0, me.validateType)("Identifier"),members:(0, me.validateArrayOfType)("TSEnumMember"),initializer:(0, me.validateOptionalType)("Expression")}});vt("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0, me.validateType)("Identifier","StringLiteral"),initializer:(0, me.validateOptionalType)("Expression")}});vt("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0, me.validateOptional)(va),global:(0, me.validateOptional)(va),id:(0, me.validateType)("Identifier","StringLiteral"),body:(0, me.validateType)("TSModuleBlock","TSModuleDeclaration")}});vt("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0, me.validateArrayOfType)("Statement")}});vt("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0, me.validateType)("StringLiteral"),qualifier:(0, me.validateOptionalType)("TSEntityName"),typeParameters:(0, me.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0, me.assertNodeType)("Expression"),optional:!0}}});vt("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0, me.validate)(va),id:(0, me.validateType)("Identifier"),moduleReference:(0, me.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0, me.assertOneOf)("type","value"),optional:!0}}});vt("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0, me.validateType)("StringLiteral")}});vt("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0, me.validateType)("Expression")}});vt("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0, me.validateType)("Expression")}});vt("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0, me.validateType)("Identifier")}});vt("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0, me.assertNodeType)("TSType")}}});vt("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0, me.validateArrayOfType)("TSType")}});vt("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0, me.validateArrayOfType)("TSTypeParameter")}});vt("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0, me.assertValueType)("string")},in:{validate:(0, me.assertValueType)("boolean"),optional:!0},out:{validate:(0, me.assertValueType)("boolean"),optional:!0},const:{validate:(0, me.assertValueType)("boolean"),optional:!0},constraint:{validate:(0, me.assertNodeType)("TSType"),optional:!0},default:{validate:(0, me.assertNodeType)("TSType"),optional:!0}}});});var mwe=chunkTKGT252T_js.c(tO=>{Object.defineProperty(tO,"__esModule",{value:!0});tO.DEPRECATED_ALIASES=void 0;tO.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"};});var Oo=chunkTKGT252T_js.c(Ws=>{Object.defineProperty(Ws,"__esModule",{value:!0});Object.defineProperty(Ws,"ALIAS_KEYS",{enumerable:!0,get:function(){return Vi.ALIAS_KEYS}});Object.defineProperty(Ws,"BUILDER_KEYS",{enumerable:!0,get:function(){return Vi.BUILDER_KEYS}});Object.defineProperty(Ws,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return d8.DEPRECATED_ALIASES}});Object.defineProperty(Ws,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return Vi.DEPRECATED_KEYS}});Object.defineProperty(Ws,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return Vi.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Ws,"NODE_FIELDS",{enumerable:!0,get:function(){return Vi.NODE_FIELDS}});Object.defineProperty(Ws,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return Vi.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Ws,"PLACEHOLDERS",{enumerable:!0,get:function(){return Iv.PLACEHOLDERS}});Object.defineProperty(Ws,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Iv.PLACEHOLDERS_ALIAS}});Object.defineProperty(Ws,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Iv.PLACEHOLDERS_FLIPPED_ALIAS}});Ws.TYPES=void 0;Object.defineProperty(Ws,"VISITOR_KEYS",{enumerable:!0,get:function(){return Vi.VISITOR_KEYS}});var Yf=jj();u8();nwe();iwe();swe();awe();dwe();var Vi=yl(),Iv=f8(),d8=mwe();Object.keys(d8.DEPRECATED_ALIASES).forEach(e=>{Vi.FLIPPED_ALIAS_KEYS[e]=Vi.FLIPPED_ALIAS_KEYS[d8.DEPRECATED_ALIASES[e]];});Yf(Vi.VISITOR_KEYS);Yf(Vi.ALIAS_KEYS);Yf(Vi.FLIPPED_ALIAS_KEYS);Yf(Vi.NODE_FIELDS);Yf(Vi.BUILDER_KEYS);Yf(Vi.DEPRECATED_KEYS);Yf(Iv.PLACEHOLDERS_ALIAS);Yf(Iv.PLACEHOLDERS_FLIPPED_ALIAS);Ws.TYPES=[].concat(Object.keys(Vi.VISITOR_KEYS),Object.keys(Vi.FLIPPED_ALIAS_KEYS),Object.keys(Vi.DEPRECATED_KEYS));});var JI=chunkTKGT252T_js.c(KS=>{Object.defineProperty(KS,"__esModule",{value:!0});KS.default=W$t;KS.validateChild=gwe;KS.validateField=ywe;KS.validateInternal=X$t;var Ov=Oo();function W$t(e,t,r){if(!e)return;let n=Ov.NODE_FIELDS[e.type];if(!n)return;let i=n[t];ywe(e,t,r,i),gwe(e,t,r);}function X$t(e,t,r,n,i){if(e!=null&&e.validate&&!(e.optional&&n==null)&&(e.validate(t,r,n),i)){var s;let a=n.type;if(a==null)return;(s=Ov.NODE_PARENT_VALIDATIONS[a])==null||s.call(Ov.NODE_PARENT_VALIDATIONS,t,r,n);}}function ywe(e,t,r,n){n!=null&&n.validate&&(n.optional&&r==null||n.validate(e,t,r));}function gwe(e,t,r){var n;let i=r==null?void 0:r.type;i!=null&&((n=Ov.NODE_PARENT_VALIDATIONS[i])==null||n.call(Ov.NODE_PARENT_VALIDATIONS,e,t,r));}});var Xs=chunkTKGT252T_js.c(O=>{Object.defineProperty(O,"__esModule",{value:!0});O.anyTypeAnnotation=wYt;O.argumentPlaceholder=nXt;O.arrayExpression=Q$t;O.arrayPattern=YKt;O.arrayTypeAnnotation=IYt;O.arrowFunctionExpression=WKt;O.assignmentExpression=Z$t;O.assignmentPattern=KKt;O.awaitExpression=yYt;O.bigIntLiteral=SYt;O.binaryExpression=eKt;O.bindExpression=iXt;O.blockStatement=iKt;O.booleanLiteral=xKt;O.booleanLiteralTypeAnnotation=DYt;O.booleanTypeAnnotation=OYt;O.breakStatement=sKt;O.callExpression=aKt;O.catchClause=oKt;O.classAccessorProperty=_Yt;O.classBody=XKt;O.classDeclaration=JKt;O.classExpression=zKt;O.classImplements=RYt;O.classMethod=lYt;O.classPrivateMethod=AYt;O.classPrivateProperty=xYt;O.classProperty=vYt;O.conditionalExpression=uKt;O.continueStatement=lKt;O.debuggerStatement=cKt;O.decimalLiteral=pXt;O.declareClass=MYt;O.declareExportAllDeclaration=HYt;O.declareExportDeclaration=VYt;O.declareFunction=LYt;O.declareInterface=kYt;O.declareModule=FYt;O.declareModuleExports=BYt;O.declareOpaqueType=UYt;O.declareTypeAlias=jYt;O.declareVariable=qYt;O.declaredPredicate=GYt;O.decorator=aXt;O.directive=rKt;O.directiveLiteral=nKt;O.doExpression=oXt;O.doWhileStatement=pKt;O.emptyStatement=fKt;O.emptyTypeAnnotation=tWt;O.enumBooleanBody=IWt;O.enumBooleanMember=RWt;O.enumDeclaration=wWt;O.enumDefaultedMember=kWt;O.enumNumberBody=OWt;O.enumNumberMember=MWt;O.enumStringBody=DWt;O.enumStringMember=LWt;O.enumSymbolBody=NWt;O.existsTypeAnnotation=$Yt;O.exportAllDeclaration=QKt;O.exportDefaultDeclaration=ZKt;O.exportDefaultSpecifier=uXt;O.exportNamedDeclaration=eYt;O.exportNamespaceSpecifier=TYt;O.exportSpecifier=tYt;O.expressionStatement=hKt;O.file=dKt;O.forInStatement=mKt;O.forOfStatement=rYt;O.forStatement=yKt;O.functionDeclaration=gKt;O.functionExpression=SKt;O.functionTypeAnnotation=KYt;O.functionTypeParam=YYt;O.genericTypeAnnotation=WYt;O.identifier=TKt;O.ifStatement=EKt;O.import=gYt;O.importAttribute=sXt;O.importDeclaration=nYt;O.importDefaultSpecifier=iYt;O.importExpression=oYt;O.importNamespaceSpecifier=sYt;O.importSpecifier=aYt;O.indexedAccessType=FWt;O.inferredPredicate=XYt;O.interfaceDeclaration=JYt;O.interfaceExtends=zYt;O.interfaceTypeAnnotation=QYt;O.interpreterDirective=tKt;O.intersectionTypeAnnotation=ZYt;O.jSXAttribute=O.jsxAttribute=jWt;O.jSXClosingElement=O.jsxClosingElement=UWt;O.jSXClosingFragment=O.jsxClosingFragment=ZWt;O.jSXElement=O.jsxElement=qWt;O.jSXEmptyExpression=O.jsxEmptyExpression=VWt;O.jSXExpressionContainer=O.jsxExpressionContainer=HWt;O.jSXFragment=O.jsxFragment=JWt;O.jSXIdentifier=O.jsxIdentifier=$Wt;O.jSXMemberExpression=O.jsxMemberExpression=KWt;O.jSXNamespacedName=O.jsxNamespacedName=YWt;O.jSXOpeningElement=O.jsxOpeningElement=WWt;O.jSXOpeningFragment=O.jsxOpeningFragment=QWt;O.jSXSpreadAttribute=O.jsxSpreadAttribute=XWt;O.jSXSpreadChild=O.jsxSpreadChild=GWt;O.jSXText=O.jsxText=zWt;O.labeledStatement=bKt;O.logicalExpression=AKt;O.memberExpression=PKt;O.metaProperty=uYt;O.mixedTypeAnnotation=eWt;O.moduleExpression=fXt;O.newExpression=CKt;O.noop=eXt;O.nullLiteral=_Kt;O.nullLiteralTypeAnnotation=NYt;O.nullableTypeAnnotation=rWt;O.numberLiteral=wzt;O.numberLiteralTypeAnnotation=nWt;O.numberTypeAnnotation=iWt;O.numericLiteral=Swe;O.objectExpression=IKt;O.objectMethod=OKt;O.objectPattern=cYt;O.objectProperty=DKt;O.objectTypeAnnotation=sWt;O.objectTypeCallProperty=oWt;O.objectTypeIndexer=uWt;O.objectTypeInternalSlot=aWt;O.objectTypeProperty=lWt;O.objectTypeSpreadProperty=cWt;O.opaqueType=pWt;O.optionalCallExpression=bYt;O.optionalIndexedAccessType=BWt;O.optionalMemberExpression=EYt;O.parenthesizedExpression=MKt;O.pipelineBareFunction=mXt;O.pipelinePrimaryTopicReference=yXt;O.pipelineTopicExpression=dXt;O.placeholder=tXt;O.privateName=PYt;O.program=wKt;O.qualifiedTypeIdentifier=fWt;O.recordExpression=lXt;O.regExpLiteral=Twe;O.regexLiteral=Izt;O.restElement=Ewe;O.restProperty=Ozt;O.returnStatement=NKt;O.sequenceExpression=RKt;O.spreadElement=bwe;O.spreadProperty=Dzt;O.staticBlock=CYt;O.stringLiteral=vKt;O.stringLiteralTypeAnnotation=hWt;O.stringTypeAnnotation=dWt;O.super=pYt;O.switchCase=LKt;O.switchStatement=kKt;O.symbolTypeAnnotation=mWt;O.taggedTemplateExpression=fYt;O.templateElement=hYt;O.templateLiteral=dYt;O.thisExpression=FKt;O.thisTypeAnnotation=yWt;O.throwStatement=BKt;O.topicReference=hXt;O.tryStatement=jKt;O.tSAnyKeyword=O.tsAnyKeyword=PXt;O.tSArrayType=O.tsArrayType=KXt;O.tSAsExpression=O.tsAsExpression=pzt;O.tSBigIntKeyword=O.tsBigIntKeyword=wXt;O.tSBooleanKeyword=O.tsBooleanKeyword=CXt;O.tSCallSignatureDeclaration=O.tsCallSignatureDeclaration=bXt;O.tSConditionalType=O.tsConditionalType=ZXt;O.tSConstructSignatureDeclaration=O.tsConstructSignatureDeclaration=vXt;O.tSConstructorType=O.tsConstructorType=qXt;O.tSDeclareFunction=O.tsDeclareFunction=SXt;O.tSDeclareMethod=O.tsDeclareMethod=TXt;O.tSEnumDeclaration=O.tsEnumDeclaration=dzt;O.tSEnumMember=O.tsEnumMember=mzt;O.tSExportAssignment=O.tsExportAssignment=vzt;O.tSExpressionWithTypeArguments=O.tsExpressionWithTypeArguments=azt;O.tSExternalModuleReference=O.tsExternalModuleReference=Ezt;O.tSFunctionType=O.tsFunctionType=UXt;O.tSImportEqualsDeclaration=O.tsImportEqualsDeclaration=Tzt;O.tSImportType=O.tsImportType=Szt;O.tSIndexSignature=O.tsIndexSignature=AXt;O.tSIndexedAccessType=O.tsIndexedAccessType=nzt;O.tSInferType=O.tsInferType=ezt;O.tSInstantiationExpression=O.tsInstantiationExpression=czt;O.tSInterfaceBody=O.tsInterfaceBody=uzt;O.tSInterfaceDeclaration=O.tsInterfaceDeclaration=ozt;O.tSIntersectionType=O.tsIntersectionType=QXt;O.tSIntrinsicKeyword=O.tsIntrinsicKeyword=IXt;O.tSLiteralType=O.tsLiteralType=szt;O.tSMappedType=O.tsMappedType=izt;O.tSMethodSignature=O.tsMethodSignature=xXt;O.tSModuleBlock=O.tsModuleBlock=gzt;O.tSModuleDeclaration=O.tsModuleDeclaration=yzt;O.tSNamedTupleMember=O.tsNamedTupleMember=zXt;O.tSNamespaceExportDeclaration=O.tsNamespaceExportDeclaration=_zt;O.tSNeverKeyword=O.tsNeverKeyword=OXt;O.tSNonNullExpression=O.tsNonNullExpression=bzt;O.tSNullKeyword=O.tsNullKeyword=DXt;O.tSNumberKeyword=O.tsNumberKeyword=NXt;O.tSObjectKeyword=O.tsObjectKeyword=RXt;O.tSOptionalType=O.tsOptionalType=WXt;O.tSParameterProperty=O.tsParameterProperty=gXt;O.tSParenthesizedType=O.tsParenthesizedType=tzt;O.tSPropertySignature=O.tsPropertySignature=_Xt;O.tSQualifiedName=O.tsQualifiedName=EXt;O.tSRestType=O.tsRestType=XXt;O.tSSatisfiesExpression=O.tsSatisfiesExpression=fzt;O.tSStringKeyword=O.tsStringKeyword=MXt;O.tSSymbolKeyword=O.tsSymbolKeyword=LXt;O.tSThisType=O.tsThisType=jXt;O.tSTupleType=O.tsTupleType=YXt;O.tSTypeAliasDeclaration=O.tsTypeAliasDeclaration=lzt;O.tSTypeAnnotation=O.tsTypeAnnotation=xzt;O.tSTypeAssertion=O.tsTypeAssertion=hzt;O.tSTypeLiteral=O.tsTypeLiteral=$Xt;O.tSTypeOperator=O.tsTypeOperator=rzt;O.tSTypeParameter=O.tsTypeParameter=Czt;O.tSTypeParameterDeclaration=O.tsTypeParameterDeclaration=Pzt;O.tSTypeParameterInstantiation=O.tsTypeParameterInstantiation=Azt;O.tSTypePredicate=O.tsTypePredicate=HXt;O.tSTypeQuery=O.tsTypeQuery=GXt;O.tSTypeReference=O.tsTypeReference=VXt;O.tSUndefinedKeyword=O.tsUndefinedKeyword=kXt;O.tSUnionType=O.tsUnionType=JXt;O.tSUnknownKeyword=O.tsUnknownKeyword=FXt;O.tSVoidKeyword=O.tsVoidKeyword=BXt;O.tupleExpression=cXt;O.tupleTypeAnnotation=gWt;O.typeAlias=TWt;O.typeAnnotation=EWt;O.typeCastExpression=bWt;O.typeParameter=vWt;O.typeParameterDeclaration=_Wt;O.typeParameterInstantiation=xWt;O.typeofTypeAnnotation=SWt;O.unaryExpression=UKt;O.unionTypeAnnotation=AWt;O.updateExpression=qKt;O.v8IntrinsicIdentifier=rXt;O.variableDeclaration=VKt;O.variableDeclarator=HKt;O.variance=PWt;O.voidTypeAnnotation=CWt;O.whileStatement=GKt;O.withStatement=$Kt;O.yieldExpression=mYt;var z$t=JI(),rO=bv(),J$t=yl(),{validateInternal:C}=z$t,{NODE_FIELDS:Z}=J$t;function Q$t(e=[]){let t={type:"ArrayExpression",elements:e},r=Z.ArrayExpression;return C(r.elements,t,"elements",e,1),t}function Z$t(e,t,r){let n={type:"AssignmentExpression",operator:e,left:t,right:r},i=Z.AssignmentExpression;return C(i.operator,n,"operator",e),C(i.left,n,"left",t,1),C(i.right,n,"right",r,1),n}function eKt(e,t,r){let n={type:"BinaryExpression",operator:e,left:t,right:r},i=Z.BinaryExpression;return C(i.operator,n,"operator",e),C(i.left,n,"left",t,1),C(i.right,n,"right",r,1),n}function tKt(e){let t={type:"InterpreterDirective",value:e},r=Z.InterpreterDirective;return C(r.value,t,"value",e),t}function rKt(e){let t={type:"Directive",value:e},r=Z.Directive;return C(r.value,t,"value",e,1),t}function nKt(e){let t={type:"DirectiveLiteral",value:e},r=Z.DirectiveLiteral;return C(r.value,t,"value",e),t}function iKt(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},n=Z.BlockStatement;return C(n.body,r,"body",e,1),C(n.directives,r,"directives",t,1),r}function sKt(e=null){let t={type:"BreakStatement",label:e},r=Z.BreakStatement;return C(r.label,t,"label",e,1),t}function aKt(e,t){let r={type:"CallExpression",callee:e,arguments:t},n=Z.CallExpression;return C(n.callee,r,"callee",e,1),C(n.arguments,r,"arguments",t,1),r}function oKt(e=null,t){let r={type:"CatchClause",param:e,body:t},n=Z.CatchClause;return C(n.param,r,"param",e,1),C(n.body,r,"body",t,1),r}function uKt(e,t,r){let n={type:"ConditionalExpression",test:e,consequent:t,alternate:r},i=Z.ConditionalExpression;return C(i.test,n,"test",e,1),C(i.consequent,n,"consequent",t,1),C(i.alternate,n,"alternate",r,1),n}function lKt(e=null){let t={type:"ContinueStatement",label:e},r=Z.ContinueStatement;return C(r.label,t,"label",e,1),t}function cKt(){return {type:"DebuggerStatement"}}function pKt(e,t){let r={type:"DoWhileStatement",test:e,body:t},n=Z.DoWhileStatement;return C(n.test,r,"test",e,1),C(n.body,r,"body",t,1),r}function fKt(){return {type:"EmptyStatement"}}function hKt(e){let t={type:"ExpressionStatement",expression:e},r=Z.ExpressionStatement;return C(r.expression,t,"expression",e,1),t}function dKt(e,t=null,r=null){let n={type:"File",program:e,comments:t,tokens:r},i=Z.File;return C(i.program,n,"program",e,1),C(i.comments,n,"comments",t,1),C(i.tokens,n,"tokens",r),n}function mKt(e,t,r){let n={type:"ForInStatement",left:e,right:t,body:r},i=Z.ForInStatement;return C(i.left,n,"left",e,1),C(i.right,n,"right",t,1),C(i.body,n,"body",r,1),n}function yKt(e=null,t=null,r=null,n){let i={type:"ForStatement",init:e,test:t,update:r,body:n},s=Z.ForStatement;return C(s.init,i,"init",e,1),C(s.test,i,"test",t,1),C(s.update,i,"update",r,1),C(s.body,i,"body",n,1),i}function gKt(e=null,t,r,n=!1,i=!1){let s={type:"FunctionDeclaration",id:e,params:t,body:r,generator:n,async:i},a=Z.FunctionDeclaration;return C(a.id,s,"id",e,1),C(a.params,s,"params",t,1),C(a.body,s,"body",r,1),C(a.generator,s,"generator",n),C(a.async,s,"async",i),s}function SKt(e=null,t,r,n=!1,i=!1){let s={type:"FunctionExpression",id:e,params:t,body:r,generator:n,async:i},a=Z.FunctionExpression;return C(a.id,s,"id",e,1),C(a.params,s,"params",t,1),C(a.body,s,"body",r,1),C(a.generator,s,"generator",n),C(a.async,s,"async",i),s}function TKt(e){let t={type:"Identifier",name:e},r=Z.Identifier;return C(r.name,t,"name",e),t}function EKt(e,t,r=null){let n={type:"IfStatement",test:e,consequent:t,alternate:r},i=Z.IfStatement;return C(i.test,n,"test",e,1),C(i.consequent,n,"consequent",t,1),C(i.alternate,n,"alternate",r,1),n}function bKt(e,t){let r={type:"LabeledStatement",label:e,body:t},n=Z.LabeledStatement;return C(n.label,r,"label",e,1),C(n.body,r,"body",t,1),r}function vKt(e){let t={type:"StringLiteral",value:e},r=Z.StringLiteral;return C(r.value,t,"value",e),t}function Swe(e){let t={type:"NumericLiteral",value:e},r=Z.NumericLiteral;return C(r.value,t,"value",e),t}function _Kt(){return {type:"NullLiteral"}}function xKt(e){let t={type:"BooleanLiteral",value:e},r=Z.BooleanLiteral;return C(r.value,t,"value",e),t}function Twe(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},n=Z.RegExpLiteral;return C(n.pattern,r,"pattern",e),C(n.flags,r,"flags",t),r}function AKt(e,t,r){let n={type:"LogicalExpression",operator:e,left:t,right:r},i=Z.LogicalExpression;return C(i.operator,n,"operator",e),C(i.left,n,"left",t,1),C(i.right,n,"right",r,1),n}function PKt(e,t,r=!1,n=null){let i={type:"MemberExpression",object:e,property:t,computed:r,optional:n},s=Z.MemberExpression;return C(s.object,i,"object",e,1),C(s.property,i,"property",t,1),C(s.computed,i,"computed",r),C(s.optional,i,"optional",n),i}function CKt(e,t){let r={type:"NewExpression",callee:e,arguments:t},n=Z.NewExpression;return C(n.callee,r,"callee",e,1),C(n.arguments,r,"arguments",t,1),r}function wKt(e,t=[],r="script",n=null){let i={type:"Program",body:e,directives:t,sourceType:r,interpreter:n},s=Z.Program;return C(s.body,i,"body",e,1),C(s.directives,i,"directives",t,1),C(s.sourceType,i,"sourceType",r),C(s.interpreter,i,"interpreter",n,1),i}function IKt(e){let t={type:"ObjectExpression",properties:e},r=Z.ObjectExpression;return C(r.properties,t,"properties",e,1),t}function OKt(e="method",t,r,n,i=!1,s=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:i,generator:s,async:a},u=Z.ObjectMethod;return C(u.kind,o,"kind",e),C(u.key,o,"key",t,1),C(u.params,o,"params",r,1),C(u.body,o,"body",n,1),C(u.computed,o,"computed",i),C(u.generator,o,"generator",s),C(u.async,o,"async",a),o}function DKt(e,t,r=!1,n=!1,i=null){let s={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:i},a=Z.ObjectProperty;return C(a.key,s,"key",e,1),C(a.value,s,"value",t,1),C(a.computed,s,"computed",r),C(a.shorthand,s,"shorthand",n),C(a.decorators,s,"decorators",i,1),s}function Ewe(e){let t={type:"RestElement",argument:e},r=Z.RestElement;return C(r.argument,t,"argument",e,1),t}function NKt(e=null){let t={type:"ReturnStatement",argument:e},r=Z.ReturnStatement;return C(r.argument,t,"argument",e,1),t}function RKt(e){let t={type:"SequenceExpression",expressions:e},r=Z.SequenceExpression;return C(r.expressions,t,"expressions",e,1),t}function MKt(e){let t={type:"ParenthesizedExpression",expression:e},r=Z.ParenthesizedExpression;return C(r.expression,t,"expression",e,1),t}function LKt(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},n=Z.SwitchCase;return C(n.test,r,"test",e,1),C(n.consequent,r,"consequent",t,1),r}function kKt(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},n=Z.SwitchStatement;return C(n.discriminant,r,"discriminant",e,1),C(n.cases,r,"cases",t,1),r}function FKt(){return {type:"ThisExpression"}}function BKt(e){let t={type:"ThrowStatement",argument:e},r=Z.ThrowStatement;return C(r.argument,t,"argument",e,1),t}function jKt(e,t=null,r=null){let n={type:"TryStatement",block:e,handler:t,finalizer:r},i=Z.TryStatement;return C(i.block,n,"block",e,1),C(i.handler,n,"handler",t,1),C(i.finalizer,n,"finalizer",r,1),n}function UKt(e,t,r=!0){let n={type:"UnaryExpression",operator:e,argument:t,prefix:r},i=Z.UnaryExpression;return C(i.operator,n,"operator",e),C(i.argument,n,"argument",t,1),C(i.prefix,n,"prefix",r),n}function qKt(e,t,r=!1){let n={type:"UpdateExpression",operator:e,argument:t,prefix:r},i=Z.UpdateExpression;return C(i.operator,n,"operator",e),C(i.argument,n,"argument",t,1),C(i.prefix,n,"prefix",r),n}function VKt(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},n=Z.VariableDeclaration;return C(n.kind,r,"kind",e),C(n.declarations,r,"declarations",t,1),r}function HKt(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},n=Z.VariableDeclarator;return C(n.id,r,"id",e,1),C(n.init,r,"init",t,1),r}function GKt(e,t){let r={type:"WhileStatement",test:e,body:t},n=Z.WhileStatement;return C(n.test,r,"test",e,1),C(n.body,r,"body",t,1),r}function $Kt(e,t){let r={type:"WithStatement",object:e,body:t},n=Z.WithStatement;return C(n.object,r,"object",e,1),C(n.body,r,"body",t,1),r}function KKt(e,t){let r={type:"AssignmentPattern",left:e,right:t},n=Z.AssignmentPattern;return C(n.left,r,"left",e,1),C(n.right,r,"right",t,1),r}function YKt(e){let t={type:"ArrayPattern",elements:e},r=Z.ArrayPattern;return C(r.elements,t,"elements",e,1),t}function WKt(e,t,r=!1){let n={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},i=Z.ArrowFunctionExpression;return C(i.params,n,"params",e,1),C(i.body,n,"body",t,1),C(i.async,n,"async",r),n}function XKt(e){let t={type:"ClassBody",body:e},r=Z.ClassBody;return C(r.body,t,"body",e,1),t}function zKt(e=null,t=null,r,n=null){let i={type:"ClassExpression",id:e,superClass:t,body:r,decorators:n},s=Z.ClassExpression;return C(s.id,i,"id",e,1),C(s.superClass,i,"superClass",t,1),C(s.body,i,"body",r,1),C(s.decorators,i,"decorators",n,1),i}function JKt(e=null,t=null,r,n=null){let i={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:n},s=Z.ClassDeclaration;return C(s.id,i,"id",e,1),C(s.superClass,i,"superClass",t,1),C(s.body,i,"body",r,1),C(s.decorators,i,"decorators",n,1),i}function QKt(e){let t={type:"ExportAllDeclaration",source:e},r=Z.ExportAllDeclaration;return C(r.source,t,"source",e,1),t}function ZKt(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=Z.ExportDefaultDeclaration;return C(r.declaration,t,"declaration",e,1),t}function eYt(e=null,t=[],r=null){let n={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r},i=Z.ExportNamedDeclaration;return C(i.declaration,n,"declaration",e,1),C(i.specifiers,n,"specifiers",t,1),C(i.source,n,"source",r,1),n}function tYt(e,t){let r={type:"ExportSpecifier",local:e,exported:t},n=Z.ExportSpecifier;return C(n.local,r,"local",e,1),C(n.exported,r,"exported",t,1),r}function rYt(e,t,r,n=!1){let i={type:"ForOfStatement",left:e,right:t,body:r,await:n},s=Z.ForOfStatement;return C(s.left,i,"left",e,1),C(s.right,i,"right",t,1),C(s.body,i,"body",r,1),C(s.await,i,"await",n),i}function nYt(e,t){let r={type:"ImportDeclaration",specifiers:e,source:t},n=Z.ImportDeclaration;return C(n.specifiers,r,"specifiers",e,1),C(n.source,r,"source",t,1),r}function iYt(e){let t={type:"ImportDefaultSpecifier",local:e},r=Z.ImportDefaultSpecifier;return C(r.local,t,"local",e,1),t}function sYt(e){let t={type:"ImportNamespaceSpecifier",local:e},r=Z.ImportNamespaceSpecifier;return C(r.local,t,"local",e,1),t}function aYt(e,t){let r={type:"ImportSpecifier",local:e,imported:t},n=Z.ImportSpecifier;return C(n.local,r,"local",e,1),C(n.imported,r,"imported",t,1),r}function oYt(e,t=null){let r={type:"ImportExpression",source:e,options:t},n=Z.ImportExpression;return C(n.source,r,"source",e,1),C(n.options,r,"options",t,1),r}function uYt(e,t){let r={type:"MetaProperty",meta:e,property:t},n=Z.MetaProperty;return C(n.meta,r,"meta",e,1),C(n.property,r,"property",t,1),r}function lYt(e="method",t,r,n,i=!1,s=!1,a=!1,o=!1){let u={type:"ClassMethod",kind:e,key:t,params:r,body:n,computed:i,static:s,generator:a,async:o},l=Z.ClassMethod;return C(l.kind,u,"kind",e),C(l.key,u,"key",t,1),C(l.params,u,"params",r,1),C(l.body,u,"body",n,1),C(l.computed,u,"computed",i),C(l.static,u,"static",s),C(l.generator,u,"generator",a),C(l.async,u,"async",o),u}function cYt(e){let t={type:"ObjectPattern",properties:e},r=Z.ObjectPattern;return C(r.properties,t,"properties",e,1),t}function bwe(e){let t={type:"SpreadElement",argument:e},r=Z.SpreadElement;return C(r.argument,t,"argument",e,1),t}function pYt(){return {type:"Super"}}function fYt(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},n=Z.TaggedTemplateExpression;return C(n.tag,r,"tag",e,1),C(n.quasi,r,"quasi",t,1),r}function hYt(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},n=Z.TemplateElement;return C(n.value,r,"value",e),C(n.tail,r,"tail",t),r}function dYt(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},n=Z.TemplateLiteral;return C(n.quasis,r,"quasis",e,1),C(n.expressions,r,"expressions",t,1),r}function mYt(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},n=Z.YieldExpression;return C(n.argument,r,"argument",e,1),C(n.delegate,r,"delegate",t),r}function yYt(e){let t={type:"AwaitExpression",argument:e},r=Z.AwaitExpression;return C(r.argument,t,"argument",e,1),t}function gYt(){return {type:"Import"}}function SYt(e){let t={type:"BigIntLiteral",value:e},r=Z.BigIntLiteral;return C(r.value,t,"value",e),t}function TYt(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=Z.ExportNamespaceSpecifier;return C(r.exported,t,"exported",e,1),t}function EYt(e,t,r=!1,n){let i={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:n},s=Z.OptionalMemberExpression;return C(s.object,i,"object",e,1),C(s.property,i,"property",t,1),C(s.computed,i,"computed",r),C(s.optional,i,"optional",n),i}function bYt(e,t,r){let n={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},i=Z.OptionalCallExpression;return C(i.callee,n,"callee",e,1),C(i.arguments,n,"arguments",t,1),C(i.optional,n,"optional",r),n}function vYt(e,t=null,r=null,n=null,i=!1,s=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:i,static:s},o=Z.ClassProperty;return C(o.key,a,"key",e,1),C(o.value,a,"value",t,1),C(o.typeAnnotation,a,"typeAnnotation",r,1),C(o.decorators,a,"decorators",n,1),C(o.computed,a,"computed",i),C(o.static,a,"static",s),a}function _Yt(e,t=null,r=null,n=null,i=!1,s=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:i,static:s},o=Z.ClassAccessorProperty;return C(o.key,a,"key",e,1),C(o.value,a,"value",t,1),C(o.typeAnnotation,a,"typeAnnotation",r,1),C(o.decorators,a,"decorators",n,1),C(o.computed,a,"computed",i),C(o.static,a,"static",s),a}function xYt(e,t=null,r=null,n=!1){let i={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:n},s=Z.ClassPrivateProperty;return C(s.key,i,"key",e,1),C(s.value,i,"value",t,1),C(s.decorators,i,"decorators",r,1),C(s.static,i,"static",n),i}function AYt(e="method",t,r,n,i=!1){let s={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:n,static:i},a=Z.ClassPrivateMethod;return C(a.kind,s,"kind",e),C(a.key,s,"key",t,1),C(a.params,s,"params",r,1),C(a.body,s,"body",n,1),C(a.static,s,"static",i),s}function PYt(e){let t={type:"PrivateName",id:e},r=Z.PrivateName;return C(r.id,t,"id",e,1),t}function CYt(e){let t={type:"StaticBlock",body:e},r=Z.StaticBlock;return C(r.body,t,"body",e,1),t}function wYt(){return {type:"AnyTypeAnnotation"}}function IYt(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=Z.ArrayTypeAnnotation;return C(r.elementType,t,"elementType",e,1),t}function OYt(){return {type:"BooleanTypeAnnotation"}}function DYt(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=Z.BooleanLiteralTypeAnnotation;return C(r.value,t,"value",e),t}function NYt(){return {type:"NullLiteralTypeAnnotation"}}function RYt(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},n=Z.ClassImplements;return C(n.id,r,"id",e,1),C(n.typeParameters,r,"typeParameters",t,1),r}function MYt(e,t=null,r=null,n){let i={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:n},s=Z.DeclareClass;return C(s.id,i,"id",e,1),C(s.typeParameters,i,"typeParameters",t,1),C(s.extends,i,"extends",r,1),C(s.body,i,"body",n,1),i}function LYt(e){let t={type:"DeclareFunction",id:e},r=Z.DeclareFunction;return C(r.id,t,"id",e,1),t}function kYt(e,t=null,r=null,n){let i={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:n},s=Z.DeclareInterface;return C(s.id,i,"id",e,1),C(s.typeParameters,i,"typeParameters",t,1),C(s.extends,i,"extends",r,1),C(s.body,i,"body",n,1),i}function FYt(e,t,r=null){let n={type:"DeclareModule",id:e,body:t,kind:r},i=Z.DeclareModule;return C(i.id,n,"id",e,1),C(i.body,n,"body",t,1),C(i.kind,n,"kind",r),n}function BYt(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=Z.DeclareModuleExports;return C(r.typeAnnotation,t,"typeAnnotation",e,1),t}function jYt(e,t=null,r){let n={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},i=Z.DeclareTypeAlias;return C(i.id,n,"id",e,1),C(i.typeParameters,n,"typeParameters",t,1),C(i.right,n,"right",r,1),n}function UYt(e,t=null,r=null){let n={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},i=Z.DeclareOpaqueType;return C(i.id,n,"id",e,1),C(i.typeParameters,n,"typeParameters",t,1),C(i.supertype,n,"supertype",r,1),n}function qYt(e){let t={type:"DeclareVariable",id:e},r=Z.DeclareVariable;return C(r.id,t,"id",e,1),t}function VYt(e=null,t=null,r=null){let n={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r},i=Z.DeclareExportDeclaration;return C(i.declaration,n,"declaration",e,1),C(i.specifiers,n,"specifiers",t,1),C(i.source,n,"source",r,1),n}function HYt(e){let t={type:"DeclareExportAllDeclaration",source:e},r=Z.DeclareExportAllDeclaration;return C(r.source,t,"source",e,1),t}function GYt(e){let t={type:"DeclaredPredicate",value:e},r=Z.DeclaredPredicate;return C(r.value,t,"value",e,1),t}function $Yt(){return {type:"ExistsTypeAnnotation"}}function KYt(e=null,t,r=null,n){let i={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:n},s=Z.FunctionTypeAnnotation;return C(s.typeParameters,i,"typeParameters",e,1),C(s.params,i,"params",t,1),C(s.rest,i,"rest",r,1),C(s.returnType,i,"returnType",n,1),i}function YYt(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},n=Z.FunctionTypeParam;return C(n.name,r,"name",e,1),C(n.typeAnnotation,r,"typeAnnotation",t,1),r}function WYt(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},n=Z.GenericTypeAnnotation;return C(n.id,r,"id",e,1),C(n.typeParameters,r,"typeParameters",t,1),r}function XYt(){return {type:"InferredPredicate"}}function zYt(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},n=Z.InterfaceExtends;return C(n.id,r,"id",e,1),C(n.typeParameters,r,"typeParameters",t,1),r}function JYt(e,t=null,r=null,n){let i={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},s=Z.InterfaceDeclaration;return C(s.id,i,"id",e,1),C(s.typeParameters,i,"typeParameters",t,1),C(s.extends,i,"extends",r,1),C(s.body,i,"body",n,1),i}function QYt(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},n=Z.InterfaceTypeAnnotation;return C(n.extends,r,"extends",e,1),C(n.body,r,"body",t,1),r}function ZYt(e){let t={type:"IntersectionTypeAnnotation",types:e},r=Z.IntersectionTypeAnnotation;return C(r.types,t,"types",e,1),t}function eWt(){return {type:"MixedTypeAnnotation"}}function tWt(){return {type:"EmptyTypeAnnotation"}}function rWt(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=Z.NullableTypeAnnotation;return C(r.typeAnnotation,t,"typeAnnotation",e,1),t}function nWt(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=Z.NumberLiteralTypeAnnotation;return C(r.value,t,"value",e),t}function iWt(){return {type:"NumberTypeAnnotation"}}function sWt(e,t=[],r=[],n=[],i=!1){let s={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:n,exact:i},a=Z.ObjectTypeAnnotation;return C(a.properties,s,"properties",e,1),C(a.indexers,s,"indexers",t,1),C(a.callProperties,s,"callProperties",r,1),C(a.internalSlots,s,"internalSlots",n,1),C(a.exact,s,"exact",i),s}function aWt(e,t,r,n,i){let s={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:n,method:i},a=Z.ObjectTypeInternalSlot;return C(a.id,s,"id",e,1),C(a.value,s,"value",t,1),C(a.optional,s,"optional",r),C(a.static,s,"static",n),C(a.method,s,"method",i),s}function oWt(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=Z.ObjectTypeCallProperty;return C(r.value,t,"value",e,1),t}function uWt(e=null,t,r,n=null){let i={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:n,static:null},s=Z.ObjectTypeIndexer;return C(s.id,i,"id",e,1),C(s.key,i,"key",t,1),C(s.value,i,"value",r,1),C(s.variance,i,"variance",n,1),i}function lWt(e,t,r=null){let n={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},i=Z.ObjectTypeProperty;return C(i.key,n,"key",e,1),C(i.value,n,"value",t,1),C(i.variance,n,"variance",r,1),n}function cWt(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=Z.ObjectTypeSpreadProperty;return C(r.argument,t,"argument",e,1),t}function pWt(e,t=null,r=null,n){let i={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:n},s=Z.OpaqueType;return C(s.id,i,"id",e,1),C(s.typeParameters,i,"typeParameters",t,1),C(s.supertype,i,"supertype",r,1),C(s.impltype,i,"impltype",n,1),i}function fWt(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},n=Z.QualifiedTypeIdentifier;return C(n.id,r,"id",e,1),C(n.qualification,r,"qualification",t,1),r}function hWt(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=Z.StringLiteralTypeAnnotation;return C(r.value,t,"value",e),t}function dWt(){return {type:"StringTypeAnnotation"}}function mWt(){return {type:"SymbolTypeAnnotation"}}function yWt(){return {type:"ThisTypeAnnotation"}}function gWt(e){let t={type:"TupleTypeAnnotation",types:e},r=Z.TupleTypeAnnotation;return C(r.types,t,"types",e,1),t}function SWt(e){let t={type:"TypeofTypeAnnotation",argument:e},r=Z.TypeofTypeAnnotation;return C(r.argument,t,"argument",e,1),t}function TWt(e,t=null,r){let n={type:"TypeAlias",id:e,typeParameters:t,right:r},i=Z.TypeAlias;return C(i.id,n,"id",e,1),C(i.typeParameters,n,"typeParameters",t,1),C(i.right,n,"right",r,1),n}function EWt(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=Z.TypeAnnotation;return C(r.typeAnnotation,t,"typeAnnotation",e,1),t}function bWt(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},n=Z.TypeCastExpression;return C(n.expression,r,"expression",e,1),C(n.typeAnnotation,r,"typeAnnotation",t,1),r}function vWt(e=null,t=null,r=null){let n={type:"TypeParameter",bound:e,default:t,variance:r,name:null},i=Z.TypeParameter;return C(i.bound,n,"bound",e,1),C(i.default,n,"default",t,1),C(i.variance,n,"variance",r,1),n}function _Wt(e){let t={type:"TypeParameterDeclaration",params:e},r=Z.TypeParameterDeclaration;return C(r.params,t,"params",e,1),t}function xWt(e){let t={type:"TypeParameterInstantiation",params:e},r=Z.TypeParameterInstantiation;return C(r.params,t,"params",e,1),t}function AWt(e){let t={type:"UnionTypeAnnotation",types:e},r=Z.UnionTypeAnnotation;return C(r.types,t,"types",e,1),t}function PWt(e){let t={type:"Variance",kind:e},r=Z.Variance;return C(r.kind,t,"kind",e),t}function CWt(){return {type:"VoidTypeAnnotation"}}function wWt(e,t){let r={type:"EnumDeclaration",id:e,body:t},n=Z.EnumDeclaration;return C(n.id,r,"id",e,1),C(n.body,r,"body",t,1),r}function IWt(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=Z.EnumBooleanBody;return C(r.members,t,"members",e,1),t}function OWt(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=Z.EnumNumberBody;return C(r.members,t,"members",e,1),t}function DWt(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=Z.EnumStringBody;return C(r.members,t,"members",e,1),t}function NWt(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=Z.EnumSymbolBody;return C(r.members,t,"members",e,1),t}function RWt(e){let t={type:"EnumBooleanMember",id:e,init:null},r=Z.EnumBooleanMember;return C(r.id,t,"id",e,1),t}function MWt(e,t){let r={type:"EnumNumberMember",id:e,init:t},n=Z.EnumNumberMember;return C(n.id,r,"id",e,1),C(n.init,r,"init",t,1),r}function LWt(e,t){let r={type:"EnumStringMember",id:e,init:t},n=Z.EnumStringMember;return C(n.id,r,"id",e,1),C(n.init,r,"init",t,1),r}function kWt(e){let t={type:"EnumDefaultedMember",id:e},r=Z.EnumDefaultedMember;return C(r.id,t,"id",e,1),t}function FWt(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},n=Z.IndexedAccessType;return C(n.objectType,r,"objectType",e,1),C(n.indexType,r,"indexType",t,1),r}function BWt(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},n=Z.OptionalIndexedAccessType;return C(n.objectType,r,"objectType",e,1),C(n.indexType,r,"indexType",t,1),r}function jWt(e,t=null){let r={type:"JSXAttribute",name:e,value:t},n=Z.JSXAttribute;return C(n.name,r,"name",e,1),C(n.value,r,"value",t,1),r}function UWt(e){let t={type:"JSXClosingElement",name:e},r=Z.JSXClosingElement;return C(r.name,t,"name",e,1),t}function qWt(e,t=null,r,n=null){let i={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:n},s=Z.JSXElement;return C(s.openingElement,i,"openingElement",e,1),C(s.closingElement,i,"closingElement",t,1),C(s.children,i,"children",r,1),C(s.selfClosing,i,"selfClosing",n),i}function VWt(){return {type:"JSXEmptyExpression"}}function HWt(e){let t={type:"JSXExpressionContainer",expression:e},r=Z.JSXExpressionContainer;return C(r.expression,t,"expression",e,1),t}function GWt(e){let t={type:"JSXSpreadChild",expression:e},r=Z.JSXSpreadChild;return C(r.expression,t,"expression",e,1),t}function $Wt(e){let t={type:"JSXIdentifier",name:e},r=Z.JSXIdentifier;return C(r.name,t,"name",e),t}function KWt(e,t){let r={type:"JSXMemberExpression",object:e,property:t},n=Z.JSXMemberExpression;return C(n.object,r,"object",e,1),C(n.property,r,"property",t,1),r}function YWt(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},n=Z.JSXNamespacedName;return C(n.namespace,r,"namespace",e,1),C(n.name,r,"name",t,1),r}function WWt(e,t,r=!1){let n={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},i=Z.JSXOpeningElement;return C(i.name,n,"name",e,1),C(i.attributes,n,"attributes",t,1),C(i.selfClosing,n,"selfClosing",r),n}function XWt(e){let t={type:"JSXSpreadAttribute",argument:e},r=Z.JSXSpreadAttribute;return C(r.argument,t,"argument",e,1),t}function zWt(e){let t={type:"JSXText",value:e},r=Z.JSXText;return C(r.value,t,"value",e),t}function JWt(e,t,r){let n={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},i=Z.JSXFragment;return C(i.openingFragment,n,"openingFragment",e,1),C(i.closingFragment,n,"closingFragment",t,1),C(i.children,n,"children",r,1),n}function QWt(){return {type:"JSXOpeningFragment"}}function ZWt(){return {type:"JSXClosingFragment"}}function eXt(){return {type:"Noop"}}function tXt(e,t){let r={type:"Placeholder",expectedNode:e,name:t},n=Z.Placeholder;return C(n.expectedNode,r,"expectedNode",e),C(n.name,r,"name",t,1),r}function rXt(e){let t={type:"V8IntrinsicIdentifier",name:e},r=Z.V8IntrinsicIdentifier;return C(r.name,t,"name",e),t}function nXt(){return {type:"ArgumentPlaceholder"}}function iXt(e,t){let r={type:"BindExpression",object:e,callee:t},n=Z.BindExpression;return C(n.object,r,"object",e,1),C(n.callee,r,"callee",t,1),r}function sXt(e,t){let r={type:"ImportAttribute",key:e,value:t},n=Z.ImportAttribute;return C(n.key,r,"key",e,1),C(n.value,r,"value",t,1),r}function aXt(e){let t={type:"Decorator",expression:e},r=Z.Decorator;return C(r.expression,t,"expression",e,1),t}function oXt(e,t=!1){let r={type:"DoExpression",body:e,async:t},n=Z.DoExpression;return C(n.body,r,"body",e,1),C(n.async,r,"async",t),r}function uXt(e){let t={type:"ExportDefaultSpecifier",exported:e},r=Z.ExportDefaultSpecifier;return C(r.exported,t,"exported",e,1),t}function lXt(e){let t={type:"RecordExpression",properties:e},r=Z.RecordExpression;return C(r.properties,t,"properties",e,1),t}function cXt(e=[]){let t={type:"TupleExpression",elements:e},r=Z.TupleExpression;return C(r.elements,t,"elements",e,1),t}function pXt(e){let t={type:"DecimalLiteral",value:e},r=Z.DecimalLiteral;return C(r.value,t,"value",e),t}function fXt(e){let t={type:"ModuleExpression",body:e},r=Z.ModuleExpression;return C(r.body,t,"body",e,1),t}function hXt(){return {type:"TopicReference"}}function dXt(e){let t={type:"PipelineTopicExpression",expression:e},r=Z.PipelineTopicExpression;return C(r.expression,t,"expression",e,1),t}function mXt(e){let t={type:"PipelineBareFunction",callee:e},r=Z.PipelineBareFunction;return C(r.callee,t,"callee",e,1),t}function yXt(){return {type:"PipelinePrimaryTopicReference"}}function gXt(e){let t={type:"TSParameterProperty",parameter:e},r=Z.TSParameterProperty;return C(r.parameter,t,"parameter",e,1),t}function SXt(e=null,t=null,r,n=null){let i={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:n},s=Z.TSDeclareFunction;return C(s.id,i,"id",e,1),C(s.typeParameters,i,"typeParameters",t,1),C(s.params,i,"params",r,1),C(s.returnType,i,"returnType",n,1),i}function TXt(e=null,t,r=null,n,i=null){let s={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:n,returnType:i},a=Z.TSDeclareMethod;return C(a.decorators,s,"decorators",e,1),C(a.key,s,"key",t,1),C(a.typeParameters,s,"typeParameters",r,1),C(a.params,s,"params",n,1),C(a.returnType,s,"returnType",i,1),s}function EXt(e,t){let r={type:"TSQualifiedName",left:e,right:t},n=Z.TSQualifiedName;return C(n.left,r,"left",e,1),C(n.right,r,"right",t,1),r}function bXt(e=null,t,r=null){let n={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},i=Z.TSCallSignatureDeclaration;return C(i.typeParameters,n,"typeParameters",e,1),C(i.parameters,n,"parameters",t,1),C(i.typeAnnotation,n,"typeAnnotation",r,1),n}function vXt(e=null,t,r=null){let n={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},i=Z.TSConstructSignatureDeclaration;return C(i.typeParameters,n,"typeParameters",e,1),C(i.parameters,n,"parameters",t,1),C(i.typeAnnotation,n,"typeAnnotation",r,1),n}function _Xt(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null},n=Z.TSPropertySignature;return C(n.key,r,"key",e,1),C(n.typeAnnotation,r,"typeAnnotation",t,1),r}function xXt(e,t=null,r,n=null){let i={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:n,kind:null},s=Z.TSMethodSignature;return C(s.key,i,"key",e,1),C(s.typeParameters,i,"typeParameters",t,1),C(s.parameters,i,"parameters",r,1),C(s.typeAnnotation,i,"typeAnnotation",n,1),i}function AXt(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},n=Z.TSIndexSignature;return C(n.parameters,r,"parameters",e,1),C(n.typeAnnotation,r,"typeAnnotation",t,1),r}function PXt(){return {type:"TSAnyKeyword"}}function CXt(){return {type:"TSBooleanKeyword"}}function wXt(){return {type:"TSBigIntKeyword"}}function IXt(){return {type:"TSIntrinsicKeyword"}}function OXt(){return {type:"TSNeverKeyword"}}function DXt(){return {type:"TSNullKeyword"}}function NXt(){return {type:"TSNumberKeyword"}}function RXt(){return {type:"TSObjectKeyword"}}function MXt(){return {type:"TSStringKeyword"}}function LXt(){return {type:"TSSymbolKeyword"}}function kXt(){return {type:"TSUndefinedKeyword"}}function FXt(){return {type:"TSUnknownKeyword"}}function BXt(){return {type:"TSVoidKeyword"}}function jXt(){return {type:"TSThisType"}}function UXt(e=null,t,r=null){let n={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},i=Z.TSFunctionType;return C(i.typeParameters,n,"typeParameters",e,1),C(i.parameters,n,"parameters",t,1),C(i.typeAnnotation,n,"typeAnnotation",r,1),n}function qXt(e=null,t,r=null){let n={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},i=Z.TSConstructorType;return C(i.typeParameters,n,"typeParameters",e,1),C(i.parameters,n,"parameters",t,1),C(i.typeAnnotation,n,"typeAnnotation",r,1),n}function VXt(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},n=Z.TSTypeReference;return C(n.typeName,r,"typeName",e,1),C(n.typeParameters,r,"typeParameters",t,1),r}function HXt(e,t=null,r=null){let n={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},i=Z.TSTypePredicate;return C(i.parameterName,n,"parameterName",e,1),C(i.typeAnnotation,n,"typeAnnotation",t,1),C(i.asserts,n,"asserts",r),n}function GXt(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},n=Z.TSTypeQuery;return C(n.exprName,r,"exprName",e,1),C(n.typeParameters,r,"typeParameters",t,1),r}function $Xt(e){let t={type:"TSTypeLiteral",members:e},r=Z.TSTypeLiteral;return C(r.members,t,"members",e,1),t}function KXt(e){let t={type:"TSArrayType",elementType:e},r=Z.TSArrayType;return C(r.elementType,t,"elementType",e,1),t}function YXt(e){let t={type:"TSTupleType",elementTypes:e},r=Z.TSTupleType;return C(r.elementTypes,t,"elementTypes",e,1),t}function WXt(e){let t={type:"TSOptionalType",typeAnnotation:e},r=Z.TSOptionalType;return C(r.typeAnnotation,t,"typeAnnotation",e,1),t}function XXt(e){let t={type:"TSRestType",typeAnnotation:e},r=Z.TSRestType;return C(r.typeAnnotation,t,"typeAnnotation",e,1),t}function zXt(e,t,r=!1){let n={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},i=Z.TSNamedTupleMember;return C(i.label,n,"label",e,1),C(i.elementType,n,"elementType",t,1),C(i.optional,n,"optional",r),n}function JXt(e){let t={type:"TSUnionType",types:e},r=Z.TSUnionType;return C(r.types,t,"types",e,1),t}function QXt(e){let t={type:"TSIntersectionType",types:e},r=Z.TSIntersectionType;return C(r.types,t,"types",e,1),t}function ZXt(e,t,r,n){let i={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:n},s=Z.TSConditionalType;return C(s.checkType,i,"checkType",e,1),C(s.extendsType,i,"extendsType",t,1),C(s.trueType,i,"trueType",r,1),C(s.falseType,i,"falseType",n,1),i}function ezt(e){let t={type:"TSInferType",typeParameter:e},r=Z.TSInferType;return C(r.typeParameter,t,"typeParameter",e,1),t}function tzt(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=Z.TSParenthesizedType;return C(r.typeAnnotation,t,"typeAnnotation",e,1),t}function rzt(e){let t={type:"TSTypeOperator",typeAnnotation:e,operator:null},r=Z.TSTypeOperator;return C(r.typeAnnotation,t,"typeAnnotation",e,1),t}function nzt(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},n=Z.TSIndexedAccessType;return C(n.objectType,r,"objectType",e,1),C(n.indexType,r,"indexType",t,1),r}function izt(e,t=null,r=null){let n={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},i=Z.TSMappedType;return C(i.typeParameter,n,"typeParameter",e,1),C(i.typeAnnotation,n,"typeAnnotation",t,1),C(i.nameType,n,"nameType",r,1),n}function szt(e){let t={type:"TSLiteralType",literal:e},r=Z.TSLiteralType;return C(r.literal,t,"literal",e,1),t}function azt(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},n=Z.TSExpressionWithTypeArguments;return C(n.expression,r,"expression",e,1),C(n.typeParameters,r,"typeParameters",t,1),r}function ozt(e,t=null,r=null,n){let i={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},s=Z.TSInterfaceDeclaration;return C(s.id,i,"id",e,1),C(s.typeParameters,i,"typeParameters",t,1),C(s.extends,i,"extends",r,1),C(s.body,i,"body",n,1),i}function uzt(e){let t={type:"TSInterfaceBody",body:e},r=Z.TSInterfaceBody;return C(r.body,t,"body",e,1),t}function lzt(e,t=null,r){let n={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},i=Z.TSTypeAliasDeclaration;return C(i.id,n,"id",e,1),C(i.typeParameters,n,"typeParameters",t,1),C(i.typeAnnotation,n,"typeAnnotation",r,1),n}function czt(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},n=Z.TSInstantiationExpression;return C(n.expression,r,"expression",e,1),C(n.typeParameters,r,"typeParameters",t,1),r}function pzt(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},n=Z.TSAsExpression;return C(n.expression,r,"expression",e,1),C(n.typeAnnotation,r,"typeAnnotation",t,1),r}function fzt(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},n=Z.TSSatisfiesExpression;return C(n.expression,r,"expression",e,1),C(n.typeAnnotation,r,"typeAnnotation",t,1),r}function hzt(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},n=Z.TSTypeAssertion;return C(n.typeAnnotation,r,"typeAnnotation",e,1),C(n.expression,r,"expression",t,1),r}function dzt(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},n=Z.TSEnumDeclaration;return C(n.id,r,"id",e,1),C(n.members,r,"members",t,1),r}function mzt(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},n=Z.TSEnumMember;return C(n.id,r,"id",e,1),C(n.initializer,r,"initializer",t,1),r}function yzt(e,t){let r={type:"TSModuleDeclaration",id:e,body:t},n=Z.TSModuleDeclaration;return C(n.id,r,"id",e,1),C(n.body,r,"body",t,1),r}function gzt(e){let t={type:"TSModuleBlock",body:e},r=Z.TSModuleBlock;return C(r.body,t,"body",e,1),t}function Szt(e,t=null,r=null){let n={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},i=Z.TSImportType;return C(i.argument,n,"argument",e,1),C(i.qualifier,n,"qualifier",t,1),C(i.typeParameters,n,"typeParameters",r,1),n}function Tzt(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},n=Z.TSImportEqualsDeclaration;return C(n.id,r,"id",e,1),C(n.moduleReference,r,"moduleReference",t,1),r}function Ezt(e){let t={type:"TSExternalModuleReference",expression:e},r=Z.TSExternalModuleReference;return C(r.expression,t,"expression",e,1),t}function bzt(e){let t={type:"TSNonNullExpression",expression:e},r=Z.TSNonNullExpression;return C(r.expression,t,"expression",e,1),t}function vzt(e){let t={type:"TSExportAssignment",expression:e},r=Z.TSExportAssignment;return C(r.expression,t,"expression",e,1),t}function _zt(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=Z.TSNamespaceExportDeclaration;return C(r.id,t,"id",e,1),t}function xzt(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=Z.TSTypeAnnotation;return C(r.typeAnnotation,t,"typeAnnotation",e,1),t}function Azt(e){let t={type:"TSTypeParameterInstantiation",params:e},r=Z.TSTypeParameterInstantiation;return C(r.params,t,"params",e,1),t}function Pzt(e){let t={type:"TSTypeParameterDeclaration",params:e},r=Z.TSTypeParameterDeclaration;return C(r.params,t,"params",e,1),t}function Czt(e=null,t=null,r){let n={type:"TSTypeParameter",constraint:e,default:t,name:r},i=Z.TSTypeParameter;return C(i.constraint,n,"constraint",e,1),C(i.default,n,"default",t,1),C(i.name,n,"name",r),n}function wzt(e){return (0, rO.default)("NumberLiteral","NumericLiteral","The node type "),Swe(e)}function Izt(e,t=""){return (0, rO.default)("RegexLiteral","RegExpLiteral","The node type "),Twe(e,t)}function Ozt(e){return (0, rO.default)("RestProperty","RestElement","The node type "),Ewe(e)}function Dzt(e){return (0, rO.default)("SpreadProperty","SpreadElement","The node type "),bwe(e)}});var vwe=chunkTKGT252T_js.c(m8=>{Object.defineProperty(m8,"__esModule",{value:!0});m8.default=Mzt;var Nzt=Xs(),Rzt=er();function Mzt(e,t){let r=e.value.split(/\r\n|\n|\r/),n=0;for(let s=0;s<r.length;s++)/[^ \t]/.exec(r[s])&&(n=s);let i="";for(let s=0;s<r.length;s++){let a=r[s],o=s===0,u=s===r.length-1,l=s===n,c=a.replace(/\t/g," ");o||(c=c.replace(/^ +/,"")),u||(c=c.replace(/ +$/,"")),c&&(l||(c+=" "),i+=c);}i&&t.push((0, Rzt.inherits)((0, Nzt.stringLiteral)(i),e));}});var _we=chunkTKGT252T_js.c(g8=>{Object.defineProperty(g8,"__esModule",{value:!0});g8.default=kzt;var y8=Qn(),Lzt=vwe();function kzt(e){let t=[];for(let r=0;r<e.children.length;r++){let n=e.children[r];if((0, y8.isJSXText)(n)){(0, Lzt.default)(n,t);continue}(0, y8.isJSXExpressionContainer)(n)&&(n=n.expression),!(0, y8.isJSXEmptyExpression)(n)&&t.push(n);}return t}});var T8=chunkTKGT252T_js.c(S8=>{Object.defineProperty(S8,"__esModule",{value:!0});S8.default=Bzt;var Fzt=Oo();function Bzt(e){return !!(e&&Fzt.VISITOR_KEYS[e.type])}});var xwe=chunkTKGT252T_js.c(E8=>{Object.defineProperty(E8,"__esModule",{value:!0});E8.default=Uzt;var jzt=T8();function Uzt(e){if(!(0, jzt.default)(e)){var t;let r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var Awe=chunkTKGT252T_js.c(L=>{Object.defineProperty(L,"__esModule",{value:!0});L.assertAccessor=rrr;L.assertAnyTypeAnnotation=vQt;L.assertArgumentPlaceholder=JZt;L.assertArrayExpression=Vzt;L.assertArrayPattern=UJt;L.assertArrayTypeAnnotation=_Qt;L.assertArrowFunctionExpression=qJt;L.assertAssignmentExpression=Hzt;L.assertAssignmentPattern=jJt;L.assertAwaitExpression=cQt;L.assertBigIntLiteral=fQt;L.assertBinary=xtr;L.assertBinaryExpression=Gzt;L.assertBindExpression=QZt;L.assertBlock=Ctr;L.assertBlockParent=Ptr;L.assertBlockStatement=Wzt;L.assertBooleanLiteral=mJt;L.assertBooleanLiteralTypeAnnotation=AQt;L.assertBooleanTypeAnnotation=xQt;L.assertBreakStatement=Xzt;L.assertCallExpression=zzt;L.assertCatchClause=Jzt;L.assertClass=Qtr;L.assertClassAccessorProperty=gQt;L.assertClassBody=VJt;L.assertClassDeclaration=GJt;L.assertClassExpression=HJt;L.assertClassImplements=CQt;L.assertClassMethod=rQt;L.assertClassPrivateMethod=TQt;L.assertClassPrivateProperty=SQt;L.assertClassProperty=yQt;L.assertCompletionStatement=Otr;L.assertConditional=Dtr;L.assertConditionalExpression=Qzt;L.assertContinueStatement=Zzt;L.assertDebuggerStatement=eJt;L.assertDecimalLiteral=ser;L.assertDeclaration=Utr;L.assertDeclareClass=wQt;L.assertDeclareExportAllDeclaration=FQt;L.assertDeclareExportDeclaration=kQt;L.assertDeclareFunction=IQt;L.assertDeclareInterface=OQt;L.assertDeclareModule=DQt;L.assertDeclareModuleExports=NQt;L.assertDeclareOpaqueType=MQt;L.assertDeclareTypeAlias=RQt;L.assertDeclareVariable=LQt;L.assertDeclaredPredicate=BQt;L.assertDecorator=eer;L.assertDirective=Kzt;L.assertDirectiveLiteral=Yzt;L.assertDoExpression=ter;L.assertDoWhileStatement=tJt;L.assertEmptyStatement=rJt;L.assertEmptyTypeAnnotation=XQt;L.assertEnumBody=lrr;L.assertEnumBooleanBody=_Zt;L.assertEnumBooleanMember=CZt;L.assertEnumDeclaration=vZt;L.assertEnumDefaultedMember=OZt;L.assertEnumMember=crr;L.assertEnumNumberBody=xZt;L.assertEnumNumberMember=wZt;L.assertEnumStringBody=AZt;L.assertEnumStringMember=IZt;L.assertEnumSymbolBody=PZt;L.assertExistsTypeAnnotation=jQt;L.assertExportAllDeclaration=$Jt;L.assertExportDeclaration=err;L.assertExportDefaultDeclaration=KJt;L.assertExportDefaultSpecifier=rer;L.assertExportNamedDeclaration=YJt;L.assertExportNamespaceSpecifier=hQt;L.assertExportSpecifier=WJt;L.assertExpression=_tr;L.assertExpressionStatement=nJt;L.assertExpressionWrapper=Mtr;L.assertFile=iJt;L.assertFlow=irr;L.assertFlowBaseAnnotation=arr;L.assertFlowDeclaration=orr;L.assertFlowPredicate=urr;L.assertFlowType=srr;L.assertFor=Ltr;L.assertForInStatement=sJt;L.assertForOfStatement=XJt;L.assertForStatement=aJt;L.assertForXStatement=ktr;L.assertFunction=Ftr;L.assertFunctionDeclaration=oJt;L.assertFunctionExpression=uJt;L.assertFunctionParent=Btr;L.assertFunctionTypeAnnotation=UQt;L.assertFunctionTypeParam=qQt;L.assertGenericTypeAnnotation=VQt;L.assertIdentifier=lJt;L.assertIfStatement=cJt;L.assertImmutable=$tr;L.assertImport=pQt;L.assertImportAttribute=ZZt;L.assertImportDeclaration=zJt;L.assertImportDefaultSpecifier=JJt;L.assertImportExpression=eQt;L.assertImportNamespaceSpecifier=QJt;L.assertImportOrExportDeclaration=Ztr;L.assertImportSpecifier=ZJt;L.assertIndexedAccessType=DZt;L.assertInferredPredicate=HQt;L.assertInterfaceDeclaration=$Qt;L.assertInterfaceExtends=GQt;L.assertInterfaceTypeAnnotation=KQt;L.assertInterpreterDirective=$zt;L.assertIntersectionTypeAnnotation=YQt;L.assertJSX=prr;L.assertJSXAttribute=RZt;L.assertJSXClosingElement=MZt;L.assertJSXClosingFragment=YZt;L.assertJSXElement=LZt;L.assertJSXEmptyExpression=kZt;L.assertJSXExpressionContainer=FZt;L.assertJSXFragment=$Zt;L.assertJSXIdentifier=jZt;L.assertJSXMemberExpression=UZt;L.assertJSXNamespacedName=qZt;L.assertJSXOpeningElement=VZt;L.assertJSXOpeningFragment=KZt;L.assertJSXSpreadAttribute=HZt;L.assertJSXSpreadChild=BZt;L.assertJSXText=GZt;L.assertLVal=Vtr;L.assertLabeledStatement=pJt;L.assertLiteral=Gtr;L.assertLogicalExpression=gJt;L.assertLoop=Ntr;L.assertMemberExpression=SJt;L.assertMetaProperty=tQt;L.assertMethod=Ytr;L.assertMiscellaneous=frr;L.assertMixedTypeAnnotation=WQt;L.assertModuleDeclaration=brr;L.assertModuleExpression=aer;L.assertModuleSpecifier=trr;L.assertNewExpression=TJt;L.assertNoop=WZt;L.assertNullLiteral=dJt;L.assertNullLiteralTypeAnnotation=PQt;L.assertNullableTypeAnnotation=zQt;L.assertNumberLiteral=grr;L.assertNumberLiteralTypeAnnotation=JQt;L.assertNumberTypeAnnotation=QQt;L.assertNumericLiteral=hJt;L.assertObjectExpression=bJt;L.assertObjectMember=Wtr;L.assertObjectMethod=vJt;L.assertObjectPattern=nQt;L.assertObjectProperty=_Jt;L.assertObjectTypeAnnotation=ZQt;L.assertObjectTypeCallProperty=tZt;L.assertObjectTypeIndexer=rZt;L.assertObjectTypeInternalSlot=eZt;L.assertObjectTypeProperty=nZt;L.assertObjectTypeSpreadProperty=iZt;L.assertOpaqueType=sZt;L.assertOptionalCallExpression=mQt;L.assertOptionalIndexedAccessType=NZt;L.assertOptionalMemberExpression=dQt;L.assertParenthesizedExpression=CJt;L.assertPattern=Jtr;L.assertPatternLike=qtr;L.assertPipelineBareFunction=ler;L.assertPipelinePrimaryTopicReference=cer;L.assertPipelineTopicExpression=uer;L.assertPlaceholder=XZt;L.assertPrivate=nrr;L.assertPrivateName=EQt;L.assertProgram=EJt;L.assertProperty=Xtr;L.assertPureish=jtr;L.assertQualifiedTypeIdentifier=aZt;L.assertRecordExpression=ner;L.assertRegExpLiteral=yJt;L.assertRegexLiteral=Srr;L.assertRestElement=xJt;L.assertRestProperty=Trr;L.assertReturnStatement=AJt;L.assertScopable=Atr;L.assertSequenceExpression=PJt;L.assertSpreadElement=iQt;L.assertSpreadProperty=Err;L.assertStandardized=vtr;L.assertStatement=wtr;L.assertStaticBlock=bQt;L.assertStringLiteral=fJt;L.assertStringLiteralTypeAnnotation=oZt;L.assertStringTypeAnnotation=uZt;L.assertSuper=sQt;L.assertSwitchCase=wJt;L.assertSwitchStatement=IJt;L.assertSymbolTypeAnnotation=lZt;L.assertTSAnyKeyword=Eer;L.assertTSArrayType=Uer;L.assertTSAsExpression=str;L.assertTSBaseType=yrr;L.assertTSBigIntKeyword=ver;L.assertTSBooleanKeyword=ber;L.assertTSCallSignatureDeclaration=mer;L.assertTSConditionalType=Yer;L.assertTSConstructSignatureDeclaration=yer;L.assertTSConstructorType=Ler;L.assertTSDeclareFunction=fer;L.assertTSDeclareMethod=her;L.assertTSEntityName=Htr;L.assertTSEnumDeclaration=utr;L.assertTSEnumMember=ltr;L.assertTSExportAssignment=ytr;L.assertTSExpressionWithTypeArguments=etr;L.assertTSExternalModuleReference=dtr;L.assertTSFunctionType=Mer;L.assertTSImportEqualsDeclaration=htr;L.assertTSImportType=ftr;L.assertTSIndexSignature=Ter;L.assertTSIndexedAccessType=Jer;L.assertTSInferType=Wer;L.assertTSInstantiationExpression=itr;L.assertTSInterfaceBody=rtr;L.assertTSInterfaceDeclaration=ttr;L.assertTSIntersectionType=Ker;L.assertTSIntrinsicKeyword=_er;L.assertTSLiteralType=Zer;L.assertTSMappedType=Qer;L.assertTSMethodSignature=Ser;L.assertTSModuleBlock=ptr;L.assertTSModuleDeclaration=ctr;L.assertTSNamedTupleMember=Ger;L.assertTSNamespaceExportDeclaration=gtr;L.assertTSNeverKeyword=xer;L.assertTSNonNullExpression=mtr;L.assertTSNullKeyword=Aer;L.assertTSNumberKeyword=Per;L.assertTSObjectKeyword=Cer;L.assertTSOptionalType=Ver;L.assertTSParameterProperty=per;L.assertTSParenthesizedType=Xer;L.assertTSPropertySignature=ger;L.assertTSQualifiedName=der;L.assertTSRestType=Her;L.assertTSSatisfiesExpression=atr;L.assertTSStringKeyword=wer;L.assertTSSymbolKeyword=Ier;L.assertTSThisType=Rer;L.assertTSTupleType=qer;L.assertTSType=mrr;L.assertTSTypeAliasDeclaration=ntr;L.assertTSTypeAnnotation=Str;L.assertTSTypeAssertion=otr;L.assertTSTypeElement=drr;L.assertTSTypeLiteral=jer;L.assertTSTypeOperator=zer;L.assertTSTypeParameter=btr;L.assertTSTypeParameterDeclaration=Etr;L.assertTSTypeParameterInstantiation=Ttr;L.assertTSTypePredicate=Fer;L.assertTSTypeQuery=Ber;L.assertTSTypeReference=ker;L.assertTSUndefinedKeyword=Oer;L.assertTSUnionType=$er;L.assertTSUnknownKeyword=Der;L.assertTSVoidKeyword=Ner;L.assertTaggedTemplateExpression=aQt;L.assertTemplateElement=oQt;L.assertTemplateLiteral=uQt;L.assertTerminatorless=Itr;L.assertThisExpression=OJt;L.assertThisTypeAnnotation=cZt;L.assertThrowStatement=DJt;L.assertTopicReference=oer;L.assertTryStatement=NJt;L.assertTupleExpression=ier;L.assertTupleTypeAnnotation=pZt;L.assertTypeAlias=hZt;L.assertTypeAnnotation=dZt;L.assertTypeCastExpression=mZt;L.assertTypeParameter=yZt;L.assertTypeParameterDeclaration=gZt;L.assertTypeParameterInstantiation=SZt;L.assertTypeScript=hrr;L.assertTypeofTypeAnnotation=fZt;L.assertUnaryExpression=RJt;L.assertUnaryLike=ztr;L.assertUnionTypeAnnotation=TZt;L.assertUpdateExpression=MJt;L.assertUserWhitespacable=Ktr;L.assertV8IntrinsicIdentifier=zZt;L.assertVariableDeclaration=LJt;L.assertVariableDeclarator=kJt;L.assertVariance=EZt;L.assertVoidTypeAnnotation=bZt;L.assertWhile=Rtr;L.assertWhileStatement=FJt;L.assertWithStatement=BJt;L.assertYieldExpression=lQt;var qzt=VS(),Dv=bv();function F(e,t,r){if(!(0, qzt.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function Vzt(e,t){F("ArrayExpression",e,t);}function Hzt(e,t){F("AssignmentExpression",e,t);}function Gzt(e,t){F("BinaryExpression",e,t);}function $zt(e,t){F("InterpreterDirective",e,t);}function Kzt(e,t){F("Directive",e,t);}function Yzt(e,t){F("DirectiveLiteral",e,t);}function Wzt(e,t){F("BlockStatement",e,t);}function Xzt(e,t){F("BreakStatement",e,t);}function zzt(e,t){F("CallExpression",e,t);}function Jzt(e,t){F("CatchClause",e,t);}function Qzt(e,t){F("ConditionalExpression",e,t);}function Zzt(e,t){F("ContinueStatement",e,t);}function eJt(e,t){F("DebuggerStatement",e,t);}function tJt(e,t){F("DoWhileStatement",e,t);}function rJt(e,t){F("EmptyStatement",e,t);}function nJt(e,t){F("ExpressionStatement",e,t);}function iJt(e,t){F("File",e,t);}function sJt(e,t){F("ForInStatement",e,t);}function aJt(e,t){F("ForStatement",e,t);}function oJt(e,t){F("FunctionDeclaration",e,t);}function uJt(e,t){F("FunctionExpression",e,t);}function lJt(e,t){F("Identifier",e,t);}function cJt(e,t){F("IfStatement",e,t);}function pJt(e,t){F("LabeledStatement",e,t);}function fJt(e,t){F("StringLiteral",e,t);}function hJt(e,t){F("NumericLiteral",e,t);}function dJt(e,t){F("NullLiteral",e,t);}function mJt(e,t){F("BooleanLiteral",e,t);}function yJt(e,t){F("RegExpLiteral",e,t);}function gJt(e,t){F("LogicalExpression",e,t);}function SJt(e,t){F("MemberExpression",e,t);}function TJt(e,t){F("NewExpression",e,t);}function EJt(e,t){F("Program",e,t);}function bJt(e,t){F("ObjectExpression",e,t);}function vJt(e,t){F("ObjectMethod",e,t);}function _Jt(e,t){F("ObjectProperty",e,t);}function xJt(e,t){F("RestElement",e,t);}function AJt(e,t){F("ReturnStatement",e,t);}function PJt(e,t){F("SequenceExpression",e,t);}function CJt(e,t){F("ParenthesizedExpression",e,t);}function wJt(e,t){F("SwitchCase",e,t);}function IJt(e,t){F("SwitchStatement",e,t);}function OJt(e,t){F("ThisExpression",e,t);}function DJt(e,t){F("ThrowStatement",e,t);}function NJt(e,t){F("TryStatement",e,t);}function RJt(e,t){F("UnaryExpression",e,t);}function MJt(e,t){F("UpdateExpression",e,t);}function LJt(e,t){F("VariableDeclaration",e,t);}function kJt(e,t){F("VariableDeclarator",e,t);}function FJt(e,t){F("WhileStatement",e,t);}function BJt(e,t){F("WithStatement",e,t);}function jJt(e,t){F("AssignmentPattern",e,t);}function UJt(e,t){F("ArrayPattern",e,t);}function qJt(e,t){F("ArrowFunctionExpression",e,t);}function VJt(e,t){F("ClassBody",e,t);}function HJt(e,t){F("ClassExpression",e,t);}function GJt(e,t){F("ClassDeclaration",e,t);}function $Jt(e,t){F("ExportAllDeclaration",e,t);}function KJt(e,t){F("ExportDefaultDeclaration",e,t);}function YJt(e,t){F("ExportNamedDeclaration",e,t);}function WJt(e,t){F("ExportSpecifier",e,t);}function XJt(e,t){F("ForOfStatement",e,t);}function zJt(e,t){F("ImportDeclaration",e,t);}function JJt(e,t){F("ImportDefaultSpecifier",e,t);}function QJt(e,t){F("ImportNamespaceSpecifier",e,t);}function ZJt(e,t){F("ImportSpecifier",e,t);}function eQt(e,t){F("ImportExpression",e,t);}function tQt(e,t){F("MetaProperty",e,t);}function rQt(e,t){F("ClassMethod",e,t);}function nQt(e,t){F("ObjectPattern",e,t);}function iQt(e,t){F("SpreadElement",e,t);}function sQt(e,t){F("Super",e,t);}function aQt(e,t){F("TaggedTemplateExpression",e,t);}function oQt(e,t){F("TemplateElement",e,t);}function uQt(e,t){F("TemplateLiteral",e,t);}function lQt(e,t){F("YieldExpression",e,t);}function cQt(e,t){F("AwaitExpression",e,t);}function pQt(e,t){F("Import",e,t);}function fQt(e,t){F("BigIntLiteral",e,t);}function hQt(e,t){F("ExportNamespaceSpecifier",e,t);}function dQt(e,t){F("OptionalMemberExpression",e,t);}function mQt(e,t){F("OptionalCallExpression",e,t);}function yQt(e,t){F("ClassProperty",e,t);}function gQt(e,t){F("ClassAccessorProperty",e,t);}function SQt(e,t){F("ClassPrivateProperty",e,t);}function TQt(e,t){F("ClassPrivateMethod",e,t);}function EQt(e,t){F("PrivateName",e,t);}function bQt(e,t){F("StaticBlock",e,t);}function vQt(e,t){F("AnyTypeAnnotation",e,t);}function _Qt(e,t){F("ArrayTypeAnnotation",e,t);}function xQt(e,t){F("BooleanTypeAnnotation",e,t);}function AQt(e,t){F("BooleanLiteralTypeAnnotation",e,t);}function PQt(e,t){F("NullLiteralTypeAnnotation",e,t);}function CQt(e,t){F("ClassImplements",e,t);}function wQt(e,t){F("DeclareClass",e,t);}function IQt(e,t){F("DeclareFunction",e,t);}function OQt(e,t){F("DeclareInterface",e,t);}function DQt(e,t){F("DeclareModule",e,t);}function NQt(e,t){F("DeclareModuleExports",e,t);}function RQt(e,t){F("DeclareTypeAlias",e,t);}function MQt(e,t){F("DeclareOpaqueType",e,t);}function LQt(e,t){F("DeclareVariable",e,t);}function kQt(e,t){F("DeclareExportDeclaration",e,t);}function FQt(e,t){F("DeclareExportAllDeclaration",e,t);}function BQt(e,t){F("DeclaredPredicate",e,t);}function jQt(e,t){F("ExistsTypeAnnotation",e,t);}function UQt(e,t){F("FunctionTypeAnnotation",e,t);}function qQt(e,t){F("FunctionTypeParam",e,t);}function VQt(e,t){F("GenericTypeAnnotation",e,t);}function HQt(e,t){F("InferredPredicate",e,t);}function GQt(e,t){F("InterfaceExtends",e,t);}function $Qt(e,t){F("InterfaceDeclaration",e,t);}function KQt(e,t){F("InterfaceTypeAnnotation",e,t);}function YQt(e,t){F("IntersectionTypeAnnotation",e,t);}function WQt(e,t){F("MixedTypeAnnotation",e,t);}function XQt(e,t){F("EmptyTypeAnnotation",e,t);}function zQt(e,t){F("NullableTypeAnnotation",e,t);}function JQt(e,t){F("NumberLiteralTypeAnnotation",e,t);}function QQt(e,t){F("NumberTypeAnnotation",e,t);}function ZQt(e,t){F("ObjectTypeAnnotation",e,t);}function eZt(e,t){F("ObjectTypeInternalSlot",e,t);}function tZt(e,t){F("ObjectTypeCallProperty",e,t);}function rZt(e,t){F("ObjectTypeIndexer",e,t);}function nZt(e,t){F("ObjectTypeProperty",e,t);}function iZt(e,t){F("ObjectTypeSpreadProperty",e,t);}function sZt(e,t){F("OpaqueType",e,t);}function aZt(e,t){F("QualifiedTypeIdentifier",e,t);}function oZt(e,t){F("StringLiteralTypeAnnotation",e,t);}function uZt(e,t){F("StringTypeAnnotation",e,t);}function lZt(e,t){F("SymbolTypeAnnotation",e,t);}function cZt(e,t){F("ThisTypeAnnotation",e,t);}function pZt(e,t){F("TupleTypeAnnotation",e,t);}function fZt(e,t){F("TypeofTypeAnnotation",e,t);}function hZt(e,t){F("TypeAlias",e,t);}function dZt(e,t){F("TypeAnnotation",e,t);}function mZt(e,t){F("TypeCastExpression",e,t);}function yZt(e,t){F("TypeParameter",e,t);}function gZt(e,t){F("TypeParameterDeclaration",e,t);}function SZt(e,t){F("TypeParameterInstantiation",e,t);}function TZt(e,t){F("UnionTypeAnnotation",e,t);}function EZt(e,t){F("Variance",e,t);}function bZt(e,t){F("VoidTypeAnnotation",e,t);}function vZt(e,t){F("EnumDeclaration",e,t);}function _Zt(e,t){F("EnumBooleanBody",e,t);}function xZt(e,t){F("EnumNumberBody",e,t);}function AZt(e,t){F("EnumStringBody",e,t);}function PZt(e,t){F("EnumSymbolBody",e,t);}function CZt(e,t){F("EnumBooleanMember",e,t);}function wZt(e,t){F("EnumNumberMember",e,t);}function IZt(e,t){F("EnumStringMember",e,t);}function OZt(e,t){F("EnumDefaultedMember",e,t);}function DZt(e,t){F("IndexedAccessType",e,t);}function NZt(e,t){F("OptionalIndexedAccessType",e,t);}function RZt(e,t){F("JSXAttribute",e,t);}function MZt(e,t){F("JSXClosingElement",e,t);}function LZt(e,t){F("JSXElement",e,t);}function kZt(e,t){F("JSXEmptyExpression",e,t);}function FZt(e,t){F("JSXExpressionContainer",e,t);}function BZt(e,t){F("JSXSpreadChild",e,t);}function jZt(e,t){F("JSXIdentifier",e,t);}function UZt(e,t){F("JSXMemberExpression",e,t);}function qZt(e,t){F("JSXNamespacedName",e,t);}function VZt(e,t){F("JSXOpeningElement",e,t);}function HZt(e,t){F("JSXSpreadAttribute",e,t);}function GZt(e,t){F("JSXText",e,t);}function $Zt(e,t){F("JSXFragment",e,t);}function KZt(e,t){F("JSXOpeningFragment",e,t);}function YZt(e,t){F("JSXClosingFragment",e,t);}function WZt(e,t){F("Noop",e,t);}function XZt(e,t){F("Placeholder",e,t);}function zZt(e,t){F("V8IntrinsicIdentifier",e,t);}function JZt(e,t){F("ArgumentPlaceholder",e,t);}function QZt(e,t){F("BindExpression",e,t);}function ZZt(e,t){F("ImportAttribute",e,t);}function eer(e,t){F("Decorator",e,t);}function ter(e,t){F("DoExpression",e,t);}function rer(e,t){F("ExportDefaultSpecifier",e,t);}function ner(e,t){F("RecordExpression",e,t);}function ier(e,t){F("TupleExpression",e,t);}function ser(e,t){F("DecimalLiteral",e,t);}function aer(e,t){F("ModuleExpression",e,t);}function oer(e,t){F("TopicReference",e,t);}function uer(e,t){F("PipelineTopicExpression",e,t);}function ler(e,t){F("PipelineBareFunction",e,t);}function cer(e,t){F("PipelinePrimaryTopicReference",e,t);}function per(e,t){F("TSParameterProperty",e,t);}function fer(e,t){F("TSDeclareFunction",e,t);}function her(e,t){F("TSDeclareMethod",e,t);}function der(e,t){F("TSQualifiedName",e,t);}function mer(e,t){F("TSCallSignatureDeclaration",e,t);}function yer(e,t){F("TSConstructSignatureDeclaration",e,t);}function ger(e,t){F("TSPropertySignature",e,t);}function Ser(e,t){F("TSMethodSignature",e,t);}function Ter(e,t){F("TSIndexSignature",e,t);}function Eer(e,t){F("TSAnyKeyword",e,t);}function ber(e,t){F("TSBooleanKeyword",e,t);}function ver(e,t){F("TSBigIntKeyword",e,t);}function _er(e,t){F("TSIntrinsicKeyword",e,t);}function xer(e,t){F("TSNeverKeyword",e,t);}function Aer(e,t){F("TSNullKeyword",e,t);}function Per(e,t){F("TSNumberKeyword",e,t);}function Cer(e,t){F("TSObjectKeyword",e,t);}function wer(e,t){F("TSStringKeyword",e,t);}function Ier(e,t){F("TSSymbolKeyword",e,t);}function Oer(e,t){F("TSUndefinedKeyword",e,t);}function Der(e,t){F("TSUnknownKeyword",e,t);}function Ner(e,t){F("TSVoidKeyword",e,t);}function Rer(e,t){F("TSThisType",e,t);}function Mer(e,t){F("TSFunctionType",e,t);}function Ler(e,t){F("TSConstructorType",e,t);}function ker(e,t){F("TSTypeReference",e,t);}function Fer(e,t){F("TSTypePredicate",e,t);}function Ber(e,t){F("TSTypeQuery",e,t);}function jer(e,t){F("TSTypeLiteral",e,t);}function Uer(e,t){F("TSArrayType",e,t);}function qer(e,t){F("TSTupleType",e,t);}function Ver(e,t){F("TSOptionalType",e,t);}function Her(e,t){F("TSRestType",e,t);}function Ger(e,t){F("TSNamedTupleMember",e,t);}function $er(e,t){F("TSUnionType",e,t);}function Ker(e,t){F("TSIntersectionType",e,t);}function Yer(e,t){F("TSConditionalType",e,t);}function Wer(e,t){F("TSInferType",e,t);}function Xer(e,t){F("TSParenthesizedType",e,t);}function zer(e,t){F("TSTypeOperator",e,t);}function Jer(e,t){F("TSIndexedAccessType",e,t);}function Qer(e,t){F("TSMappedType",e,t);}function Zer(e,t){F("TSLiteralType",e,t);}function etr(e,t){F("TSExpressionWithTypeArguments",e,t);}function ttr(e,t){F("TSInterfaceDeclaration",e,t);}function rtr(e,t){F("TSInterfaceBody",e,t);}function ntr(e,t){F("TSTypeAliasDeclaration",e,t);}function itr(e,t){F("TSInstantiationExpression",e,t);}function str(e,t){F("TSAsExpression",e,t);}function atr(e,t){F("TSSatisfiesExpression",e,t);}function otr(e,t){F("TSTypeAssertion",e,t);}function utr(e,t){F("TSEnumDeclaration",e,t);}function ltr(e,t){F("TSEnumMember",e,t);}function ctr(e,t){F("TSModuleDeclaration",e,t);}function ptr(e,t){F("TSModuleBlock",e,t);}function ftr(e,t){F("TSImportType",e,t);}function htr(e,t){F("TSImportEqualsDeclaration",e,t);}function dtr(e,t){F("TSExternalModuleReference",e,t);}function mtr(e,t){F("TSNonNullExpression",e,t);}function ytr(e,t){F("TSExportAssignment",e,t);}function gtr(e,t){F("TSNamespaceExportDeclaration",e,t);}function Str(e,t){F("TSTypeAnnotation",e,t);}function Ttr(e,t){F("TSTypeParameterInstantiation",e,t);}function Etr(e,t){F("TSTypeParameterDeclaration",e,t);}function btr(e,t){F("TSTypeParameter",e,t);}function vtr(e,t){F("Standardized",e,t);}function _tr(e,t){F("Expression",e,t);}function xtr(e,t){F("Binary",e,t);}function Atr(e,t){F("Scopable",e,t);}function Ptr(e,t){F("BlockParent",e,t);}function Ctr(e,t){F("Block",e,t);}function wtr(e,t){F("Statement",e,t);}function Itr(e,t){F("Terminatorless",e,t);}function Otr(e,t){F("CompletionStatement",e,t);}function Dtr(e,t){F("Conditional",e,t);}function Ntr(e,t){F("Loop",e,t);}function Rtr(e,t){F("While",e,t);}function Mtr(e,t){F("ExpressionWrapper",e,t);}function Ltr(e,t){F("For",e,t);}function ktr(e,t){F("ForXStatement",e,t);}function Ftr(e,t){F("Function",e,t);}function Btr(e,t){F("FunctionParent",e,t);}function jtr(e,t){F("Pureish",e,t);}function Utr(e,t){F("Declaration",e,t);}function qtr(e,t){F("PatternLike",e,t);}function Vtr(e,t){F("LVal",e,t);}function Htr(e,t){F("TSEntityName",e,t);}function Gtr(e,t){F("Literal",e,t);}function $tr(e,t){F("Immutable",e,t);}function Ktr(e,t){F("UserWhitespacable",e,t);}function Ytr(e,t){F("Method",e,t);}function Wtr(e,t){F("ObjectMember",e,t);}function Xtr(e,t){F("Property",e,t);}function ztr(e,t){F("UnaryLike",e,t);}function Jtr(e,t){F("Pattern",e,t);}function Qtr(e,t){F("Class",e,t);}function Ztr(e,t){F("ImportOrExportDeclaration",e,t);}function err(e,t){F("ExportDeclaration",e,t);}function trr(e,t){F("ModuleSpecifier",e,t);}function rrr(e,t){F("Accessor",e,t);}function nrr(e,t){F("Private",e,t);}function irr(e,t){F("Flow",e,t);}function srr(e,t){F("FlowType",e,t);}function arr(e,t){F("FlowBaseAnnotation",e,t);}function orr(e,t){F("FlowDeclaration",e,t);}function urr(e,t){F("FlowPredicate",e,t);}function lrr(e,t){F("EnumBody",e,t);}function crr(e,t){F("EnumMember",e,t);}function prr(e,t){F("JSX",e,t);}function frr(e,t){F("Miscellaneous",e,t);}function hrr(e,t){F("TypeScript",e,t);}function drr(e,t){F("TSTypeElement",e,t);}function mrr(e,t){F("TSType",e,t);}function yrr(e,t){F("TSBaseType",e,t);}function grr(e,t){(0, Dv.default)("assertNumberLiteral","assertNumericLiteral"),F("NumberLiteral",e,t);}function Srr(e,t){(0, Dv.default)("assertRegexLiteral","assertRegExpLiteral"),F("RegexLiteral",e,t);}function Trr(e,t){(0, Dv.default)("assertRestProperty","assertRestElement"),F("RestProperty",e,t);}function Err(e,t){(0, Dv.default)("assertSpreadProperty","assertSpreadElement"),F("SpreadProperty",e,t);}function brr(e,t){(0, Dv.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),F("ModuleDeclaration",e,t);}});var Pwe=chunkTKGT252T_js.c(nO=>{Object.defineProperty(nO,"__esModule",{value:!0});nO.default=void 0;var gu=Xs();nO.default=vrr;function vrr(e){switch(e){case"string":return (0, gu.stringTypeAnnotation)();case"number":return (0, gu.numberTypeAnnotation)();case"undefined":return (0, gu.voidTypeAnnotation)();case"boolean":return (0, gu.booleanTypeAnnotation)();case"function":return (0, gu.genericTypeAnnotation)((0, gu.identifier)("Function"));case"object":return (0, gu.genericTypeAnnotation)((0, gu.identifier)("Object"));case"symbol":return (0, gu.genericTypeAnnotation)((0, gu.identifier)("Symbol"));case"bigint":return (0, gu.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var v8=chunkTKGT252T_js.c(b8=>{Object.defineProperty(b8,"__esModule",{value:!0});b8.default=wwe;var Nv=Qn();function Cwe(e){return (0, Nv.isIdentifier)(e)?e.name:`${e.id.name}.${Cwe(e.qualification)}`}function wwe(e){let t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!s.includes(o)){if((0, Nv.isAnyTypeAnnotation)(o))return [o];if((0, Nv.isFlowBaseAnnotation)(o)){n.set(o.type,o);continue}if((0, Nv.isUnionTypeAnnotation)(o)){i.has(o.types)||(t.push(...o.types),i.add(o.types));continue}if((0, Nv.isGenericTypeAnnotation)(o)){let u=Cwe(o.id);if(r.has(u)){let l=r.get(u);l.typeParameters?o.typeParameters&&(l.typeParameters.params.push(...o.typeParameters.params),l.typeParameters.params=wwe(l.typeParameters.params)):l=o.typeParameters;}else r.set(u,o);continue}s.push(o);}}for(let[,a]of n)s.push(a);for(let[,a]of r)s.push(a);return s}});var Iwe=chunkTKGT252T_js.c(_8=>{Object.defineProperty(_8,"__esModule",{value:!0});_8.default=Arr;var _rr=Xs(),xrr=v8();function Arr(e){let t=(0, xrr.default)(e);return t.length===1?t[0]:(0, _rr.unionTypeAnnotation)(t)}});var Nwe=chunkTKGT252T_js.c(x8=>{Object.defineProperty(x8,"__esModule",{value:!0});x8.default=Dwe;var Rv=Qn();function Owe(e){return (0, Rv.isIdentifier)(e)?e.name:`${e.right.name}.${Owe(e.left)}`}function Dwe(e){let t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!s.includes(o)){if((0, Rv.isTSAnyKeyword)(o))return [o];if((0, Rv.isTSBaseType)(o)){n.set(o.type,o);continue}if((0, Rv.isTSUnionType)(o)){i.has(o.types)||(t.push(...o.types),i.add(o.types));continue}if((0, Rv.isTSTypeReference)(o)&&o.typeParameters){let u=Owe(o.typeName);if(r.has(u)){let l=r.get(u);l.typeParameters?o.typeParameters&&(l.typeParameters.params.push(...o.typeParameters.params),l.typeParameters.params=Dwe(l.typeParameters.params)):l=o.typeParameters;}else r.set(u,o);continue}s.push(o);}}for(let[,a]of n)s.push(a);for(let[,a]of r)s.push(a);return s}});var Rwe=chunkTKGT252T_js.c(A8=>{Object.defineProperty(A8,"__esModule",{value:!0});A8.default=Irr;var Prr=Xs(),Crr=Nwe(),wrr=Qn();function Irr(e){let t=e.map(n=>(0, wrr.isTSTypeAnnotation)(n)?n.typeAnnotation:n),r=(0, Crr.default)(t);return r.length===1?r[0]:(0, Prr.tsUnionType)(r)}});var Mwe=chunkTKGT252T_js.c(G=>{Object.defineProperty(G,"__esModule",{value:!0});Object.defineProperty(G,"AnyTypeAnnotation",{enumerable:!0,get:function(){return K.anyTypeAnnotation}});Object.defineProperty(G,"ArgumentPlaceholder",{enumerable:!0,get:function(){return K.argumentPlaceholder}});Object.defineProperty(G,"ArrayExpression",{enumerable:!0,get:function(){return K.arrayExpression}});Object.defineProperty(G,"ArrayPattern",{enumerable:!0,get:function(){return K.arrayPattern}});Object.defineProperty(G,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return K.arrayTypeAnnotation}});Object.defineProperty(G,"ArrowFunctionExpression",{enumerable:!0,get:function(){return K.arrowFunctionExpression}});Object.defineProperty(G,"AssignmentExpression",{enumerable:!0,get:function(){return K.assignmentExpression}});Object.defineProperty(G,"AssignmentPattern",{enumerable:!0,get:function(){return K.assignmentPattern}});Object.defineProperty(G,"AwaitExpression",{enumerable:!0,get:function(){return K.awaitExpression}});Object.defineProperty(G,"BigIntLiteral",{enumerable:!0,get:function(){return K.bigIntLiteral}});Object.defineProperty(G,"BinaryExpression",{enumerable:!0,get:function(){return K.binaryExpression}});Object.defineProperty(G,"BindExpression",{enumerable:!0,get:function(){return K.bindExpression}});Object.defineProperty(G,"BlockStatement",{enumerable:!0,get:function(){return K.blockStatement}});Object.defineProperty(G,"BooleanLiteral",{enumerable:!0,get:function(){return K.booleanLiteral}});Object.defineProperty(G,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return K.booleanLiteralTypeAnnotation}});Object.defineProperty(G,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return K.booleanTypeAnnotation}});Object.defineProperty(G,"BreakStatement",{enumerable:!0,get:function(){return K.breakStatement}});Object.defineProperty(G,"CallExpression",{enumerable:!0,get:function(){return K.callExpression}});Object.defineProperty(G,"CatchClause",{enumerable:!0,get:function(){return K.catchClause}});Object.defineProperty(G,"ClassAccessorProperty",{enumerable:!0,get:function(){return K.classAccessorProperty}});Object.defineProperty(G,"ClassBody",{enumerable:!0,get:function(){return K.classBody}});Object.defineProperty(G,"ClassDeclaration",{enumerable:!0,get:function(){return K.classDeclaration}});Object.defineProperty(G,"ClassExpression",{enumerable:!0,get:function(){return K.classExpression}});Object.defineProperty(G,"ClassImplements",{enumerable:!0,get:function(){return K.classImplements}});Object.defineProperty(G,"ClassMethod",{enumerable:!0,get:function(){return K.classMethod}});Object.defineProperty(G,"ClassPrivateMethod",{enumerable:!0,get:function(){return K.classPrivateMethod}});Object.defineProperty(G,"ClassPrivateProperty",{enumerable:!0,get:function(){return K.classPrivateProperty}});Object.defineProperty(G,"ClassProperty",{enumerable:!0,get:function(){return K.classProperty}});Object.defineProperty(G,"ConditionalExpression",{enumerable:!0,get:function(){return K.conditionalExpression}});Object.defineProperty(G,"ContinueStatement",{enumerable:!0,get:function(){return K.continueStatement}});Object.defineProperty(G,"DebuggerStatement",{enumerable:!0,get:function(){return K.debuggerStatement}});Object.defineProperty(G,"DecimalLiteral",{enumerable:!0,get:function(){return K.decimalLiteral}});Object.defineProperty(G,"DeclareClass",{enumerable:!0,get:function(){return K.declareClass}});Object.defineProperty(G,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return K.declareExportAllDeclaration}});Object.defineProperty(G,"DeclareExportDeclaration",{enumerable:!0,get:function(){return K.declareExportDeclaration}});Object.defineProperty(G,"DeclareFunction",{enumerable:!0,get:function(){return K.declareFunction}});Object.defineProperty(G,"DeclareInterface",{enumerable:!0,get:function(){return K.declareInterface}});Object.defineProperty(G,"DeclareModule",{enumerable:!0,get:function(){return K.declareModule}});Object.defineProperty(G,"DeclareModuleExports",{enumerable:!0,get:function(){return K.declareModuleExports}});Object.defineProperty(G,"DeclareOpaqueType",{enumerable:!0,get:function(){return K.declareOpaqueType}});Object.defineProperty(G,"DeclareTypeAlias",{enumerable:!0,get:function(){return K.declareTypeAlias}});Object.defineProperty(G,"DeclareVariable",{enumerable:!0,get:function(){return K.declareVariable}});Object.defineProperty(G,"DeclaredPredicate",{enumerable:!0,get:function(){return K.declaredPredicate}});Object.defineProperty(G,"Decorator",{enumerable:!0,get:function(){return K.decorator}});Object.defineProperty(G,"Directive",{enumerable:!0,get:function(){return K.directive}});Object.defineProperty(G,"DirectiveLiteral",{enumerable:!0,get:function(){return K.directiveLiteral}});Object.defineProperty(G,"DoExpression",{enumerable:!0,get:function(){return K.doExpression}});Object.defineProperty(G,"DoWhileStatement",{enumerable:!0,get:function(){return K.doWhileStatement}});Object.defineProperty(G,"EmptyStatement",{enumerable:!0,get:function(){return K.emptyStatement}});Object.defineProperty(G,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return K.emptyTypeAnnotation}});Object.defineProperty(G,"EnumBooleanBody",{enumerable:!0,get:function(){return K.enumBooleanBody}});Object.defineProperty(G,"EnumBooleanMember",{enumerable:!0,get:function(){return K.enumBooleanMember}});Object.defineProperty(G,"EnumDeclaration",{enumerable:!0,get:function(){return K.enumDeclaration}});Object.defineProperty(G,"EnumDefaultedMember",{enumerable:!0,get:function(){return K.enumDefaultedMember}});Object.defineProperty(G,"EnumNumberBody",{enumerable:!0,get:function(){return K.enumNumberBody}});Object.defineProperty(G,"EnumNumberMember",{enumerable:!0,get:function(){return K.enumNumberMember}});Object.defineProperty(G,"EnumStringBody",{enumerable:!0,get:function(){return K.enumStringBody}});Object.defineProperty(G,"EnumStringMember",{enumerable:!0,get:function(){return K.enumStringMember}});Object.defineProperty(G,"EnumSymbolBody",{enumerable:!0,get:function(){return K.enumSymbolBody}});Object.defineProperty(G,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return K.existsTypeAnnotation}});Object.defineProperty(G,"ExportAllDeclaration",{enumerable:!0,get:function(){return K.exportAllDeclaration}});Object.defineProperty(G,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return K.exportDefaultDeclaration}});Object.defineProperty(G,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return K.exportDefaultSpecifier}});Object.defineProperty(G,"ExportNamedDeclaration",{enumerable:!0,get:function(){return K.exportNamedDeclaration}});Object.defineProperty(G,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return K.exportNamespaceSpecifier}});Object.defineProperty(G,"ExportSpecifier",{enumerable:!0,get:function(){return K.exportSpecifier}});Object.defineProperty(G,"ExpressionStatement",{enumerable:!0,get:function(){return K.expressionStatement}});Object.defineProperty(G,"File",{enumerable:!0,get:function(){return K.file}});Object.defineProperty(G,"ForInStatement",{enumerable:!0,get:function(){return K.forInStatement}});Object.defineProperty(G,"ForOfStatement",{enumerable:!0,get:function(){return K.forOfStatement}});Object.defineProperty(G,"ForStatement",{enumerable:!0,get:function(){return K.forStatement}});Object.defineProperty(G,"FunctionDeclaration",{enumerable:!0,get:function(){return K.functionDeclaration}});Object.defineProperty(G,"FunctionExpression",{enumerable:!0,get:function(){return K.functionExpression}});Object.defineProperty(G,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return K.functionTypeAnnotation}});Object.defineProperty(G,"FunctionTypeParam",{enumerable:!0,get:function(){return K.functionTypeParam}});Object.defineProperty(G,"GenericTypeAnnotation",{enumerable:!0,get:function(){return K.genericTypeAnnotation}});Object.defineProperty(G,"Identifier",{enumerable:!0,get:function(){return K.identifier}});Object.defineProperty(G,"IfStatement",{enumerable:!0,get:function(){return K.ifStatement}});Object.defineProperty(G,"Import",{enumerable:!0,get:function(){return K.import}});Object.defineProperty(G,"ImportAttribute",{enumerable:!0,get:function(){return K.importAttribute}});Object.defineProperty(G,"ImportDeclaration",{enumerable:!0,get:function(){return K.importDeclaration}});Object.defineProperty(G,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return K.importDefaultSpecifier}});Object.defineProperty(G,"ImportExpression",{enumerable:!0,get:function(){return K.importExpression}});Object.defineProperty(G,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return K.importNamespaceSpecifier}});Object.defineProperty(G,"ImportSpecifier",{enumerable:!0,get:function(){return K.importSpecifier}});Object.defineProperty(G,"IndexedAccessType",{enumerable:!0,get:function(){return K.indexedAccessType}});Object.defineProperty(G,"InferredPredicate",{enumerable:!0,get:function(){return K.inferredPredicate}});Object.defineProperty(G,"InterfaceDeclaration",{enumerable:!0,get:function(){return K.interfaceDeclaration}});Object.defineProperty(G,"InterfaceExtends",{enumerable:!0,get:function(){return K.interfaceExtends}});Object.defineProperty(G,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return K.interfaceTypeAnnotation}});Object.defineProperty(G,"InterpreterDirective",{enumerable:!0,get:function(){return K.interpreterDirective}});Object.defineProperty(G,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return K.intersectionTypeAnnotation}});Object.defineProperty(G,"JSXAttribute",{enumerable:!0,get:function(){return K.jsxAttribute}});Object.defineProperty(G,"JSXClosingElement",{enumerable:!0,get:function(){return K.jsxClosingElement}});Object.defineProperty(G,"JSXClosingFragment",{enumerable:!0,get:function(){return K.jsxClosingFragment}});Object.defineProperty(G,"JSXElement",{enumerable:!0,get:function(){return K.jsxElement}});Object.defineProperty(G,"JSXEmptyExpression",{enumerable:!0,get:function(){return K.jsxEmptyExpression}});Object.defineProperty(G,"JSXExpressionContainer",{enumerable:!0,get:function(){return K.jsxExpressionContainer}});Object.defineProperty(G,"JSXFragment",{enumerable:!0,get:function(){return K.jsxFragment}});Object.defineProperty(G,"JSXIdentifier",{enumerable:!0,get:function(){return K.jsxIdentifier}});Object.defineProperty(G,"JSXMemberExpression",{enumerable:!0,get:function(){return K.jsxMemberExpression}});Object.defineProperty(G,"JSXNamespacedName",{enumerable:!0,get:function(){return K.jsxNamespacedName}});Object.defineProperty(G,"JSXOpeningElement",{enumerable:!0,get:function(){return K.jsxOpeningElement}});Object.defineProperty(G,"JSXOpeningFragment",{enumerable:!0,get:function(){return K.jsxOpeningFragment}});Object.defineProperty(G,"JSXSpreadAttribute",{enumerable:!0,get:function(){return K.jsxSpreadAttribute}});Object.defineProperty(G,"JSXSpreadChild",{enumerable:!0,get:function(){return K.jsxSpreadChild}});Object.defineProperty(G,"JSXText",{enumerable:!0,get:function(){return K.jsxText}});Object.defineProperty(G,"LabeledStatement",{enumerable:!0,get:function(){return K.labeledStatement}});Object.defineProperty(G,"LogicalExpression",{enumerable:!0,get:function(){return K.logicalExpression}});Object.defineProperty(G,"MemberExpression",{enumerable:!0,get:function(){return K.memberExpression}});Object.defineProperty(G,"MetaProperty",{enumerable:!0,get:function(){return K.metaProperty}});Object.defineProperty(G,"MixedTypeAnnotation",{enumerable:!0,get:function(){return K.mixedTypeAnnotation}});Object.defineProperty(G,"ModuleExpression",{enumerable:!0,get:function(){return K.moduleExpression}});Object.defineProperty(G,"NewExpression",{enumerable:!0,get:function(){return K.newExpression}});Object.defineProperty(G,"Noop",{enumerable:!0,get:function(){return K.noop}});Object.defineProperty(G,"NullLiteral",{enumerable:!0,get:function(){return K.nullLiteral}});Object.defineProperty(G,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return K.nullLiteralTypeAnnotation}});Object.defineProperty(G,"NullableTypeAnnotation",{enumerable:!0,get:function(){return K.nullableTypeAnnotation}});Object.defineProperty(G,"NumberLiteral",{enumerable:!0,get:function(){return K.numberLiteral}});Object.defineProperty(G,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return K.numberLiteralTypeAnnotation}});Object.defineProperty(G,"NumberTypeAnnotation",{enumerable:!0,get:function(){return K.numberTypeAnnotation}});Object.defineProperty(G,"NumericLiteral",{enumerable:!0,get:function(){return K.numericLiteral}});Object.defineProperty(G,"ObjectExpression",{enumerable:!0,get:function(){return K.objectExpression}});Object.defineProperty(G,"ObjectMethod",{enumerable:!0,get:function(){return K.objectMethod}});Object.defineProperty(G,"ObjectPattern",{enumerable:!0,get:function(){return K.objectPattern}});Object.defineProperty(G,"ObjectProperty",{enumerable:!0,get:function(){return K.objectProperty}});Object.defineProperty(G,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return K.objectTypeAnnotation}});Object.defineProperty(G,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return K.objectTypeCallProperty}});Object.defineProperty(G,"ObjectTypeIndexer",{enumerable:!0,get:function(){return K.objectTypeIndexer}});Object.defineProperty(G,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return K.objectTypeInternalSlot}});Object.defineProperty(G,"ObjectTypeProperty",{enumerable:!0,get:function(){return K.objectTypeProperty}});Object.defineProperty(G,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return K.objectTypeSpreadProperty}});Object.defineProperty(G,"OpaqueType",{enumerable:!0,get:function(){return K.opaqueType}});Object.defineProperty(G,"OptionalCallExpression",{enumerable:!0,get:function(){return K.optionalCallExpression}});Object.defineProperty(G,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return K.optionalIndexedAccessType}});Object.defineProperty(G,"OptionalMemberExpression",{enumerable:!0,get:function(){return K.optionalMemberExpression}});Object.defineProperty(G,"ParenthesizedExpression",{enumerable:!0,get:function(){return K.parenthesizedExpression}});Object.defineProperty(G,"PipelineBareFunction",{enumerable:!0,get:function(){return K.pipelineBareFunction}});Object.defineProperty(G,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return K.pipelinePrimaryTopicReference}});Object.defineProperty(G,"PipelineTopicExpression",{enumerable:!0,get:function(){return K.pipelineTopicExpression}});Object.defineProperty(G,"Placeholder",{enumerable:!0,get:function(){return K.placeholder}});Object.defineProperty(G,"PrivateName",{enumerable:!0,get:function(){return K.privateName}});Object.defineProperty(G,"Program",{enumerable:!0,get:function(){return K.program}});Object.defineProperty(G,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return K.qualifiedTypeIdentifier}});Object.defineProperty(G,"RecordExpression",{enumerable:!0,get:function(){return K.recordExpression}});Object.defineProperty(G,"RegExpLiteral",{enumerable:!0,get:function(){return K.regExpLiteral}});Object.defineProperty(G,"RegexLiteral",{enumerable:!0,get:function(){return K.regexLiteral}});Object.defineProperty(G,"RestElement",{enumerable:!0,get:function(){return K.restElement}});Object.defineProperty(G,"RestProperty",{enumerable:!0,get:function(){return K.restProperty}});Object.defineProperty(G,"ReturnStatement",{enumerable:!0,get:function(){return K.returnStatement}});Object.defineProperty(G,"SequenceExpression",{enumerable:!0,get:function(){return K.sequenceExpression}});Object.defineProperty(G,"SpreadElement",{enumerable:!0,get:function(){return K.spreadElement}});Object.defineProperty(G,"SpreadProperty",{enumerable:!0,get:function(){return K.spreadProperty}});Object.defineProperty(G,"StaticBlock",{enumerable:!0,get:function(){return K.staticBlock}});Object.defineProperty(G,"StringLiteral",{enumerable:!0,get:function(){return K.stringLiteral}});Object.defineProperty(G,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return K.stringLiteralTypeAnnotation}});Object.defineProperty(G,"StringTypeAnnotation",{enumerable:!0,get:function(){return K.stringTypeAnnotation}});Object.defineProperty(G,"Super",{enumerable:!0,get:function(){return K.super}});Object.defineProperty(G,"SwitchCase",{enumerable:!0,get:function(){return K.switchCase}});Object.defineProperty(G,"SwitchStatement",{enumerable:!0,get:function(){return K.switchStatement}});Object.defineProperty(G,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return K.symbolTypeAnnotation}});Object.defineProperty(G,"TSAnyKeyword",{enumerable:!0,get:function(){return K.tsAnyKeyword}});Object.defineProperty(G,"TSArrayType",{enumerable:!0,get:function(){return K.tsArrayType}});Object.defineProperty(G,"TSAsExpression",{enumerable:!0,get:function(){return K.tsAsExpression}});Object.defineProperty(G,"TSBigIntKeyword",{enumerable:!0,get:function(){return K.tsBigIntKeyword}});Object.defineProperty(G,"TSBooleanKeyword",{enumerable:!0,get:function(){return K.tsBooleanKeyword}});Object.defineProperty(G,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return K.tsCallSignatureDeclaration}});Object.defineProperty(G,"TSConditionalType",{enumerable:!0,get:function(){return K.tsConditionalType}});Object.defineProperty(G,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return K.tsConstructSignatureDeclaration}});Object.defineProperty(G,"TSConstructorType",{enumerable:!0,get:function(){return K.tsConstructorType}});Object.defineProperty(G,"TSDeclareFunction",{enumerable:!0,get:function(){return K.tsDeclareFunction}});Object.defineProperty(G,"TSDeclareMethod",{enumerable:!0,get:function(){return K.tsDeclareMethod}});Object.defineProperty(G,"TSEnumDeclaration",{enumerable:!0,get:function(){return K.tsEnumDeclaration}});Object.defineProperty(G,"TSEnumMember",{enumerable:!0,get:function(){return K.tsEnumMember}});Object.defineProperty(G,"TSExportAssignment",{enumerable:!0,get:function(){return K.tsExportAssignment}});Object.defineProperty(G,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return K.tsExpressionWithTypeArguments}});Object.defineProperty(G,"TSExternalModuleReference",{enumerable:!0,get:function(){return K.tsExternalModuleReference}});Object.defineProperty(G,"TSFunctionType",{enumerable:!0,get:function(){return K.tsFunctionType}});Object.defineProperty(G,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return K.tsImportEqualsDeclaration}});Object.defineProperty(G,"TSImportType",{enumerable:!0,get:function(){return K.tsImportType}});Object.defineProperty(G,"TSIndexSignature",{enumerable:!0,get:function(){return K.tsIndexSignature}});Object.defineProperty(G,"TSIndexedAccessType",{enumerable:!0,get:function(){return K.tsIndexedAccessType}});Object.defineProperty(G,"TSInferType",{enumerable:!0,get:function(){return K.tsInferType}});Object.defineProperty(G,"TSInstantiationExpression",{enumerable:!0,get:function(){return K.tsInstantiationExpression}});Object.defineProperty(G,"TSInterfaceBody",{enumerable:!0,get:function(){return K.tsInterfaceBody}});Object.defineProperty(G,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return K.tsInterfaceDeclaration}});Object.defineProperty(G,"TSIntersectionType",{enumerable:!0,get:function(){return K.tsIntersectionType}});Object.defineProperty(G,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return K.tsIntrinsicKeyword}});Object.defineProperty(G,"TSLiteralType",{enumerable:!0,get:function(){return K.tsLiteralType}});Object.defineProperty(G,"TSMappedType",{enumerable:!0,get:function(){return K.tsMappedType}});Object.defineProperty(G,"TSMethodSignature",{enumerable:!0,get:function(){return K.tsMethodSignature}});Object.defineProperty(G,"TSModuleBlock",{enumerable:!0,get:function(){return K.tsModuleBlock}});Object.defineProperty(G,"TSModuleDeclaration",{enumerable:!0,get:function(){return K.tsModuleDeclaration}});Object.defineProperty(G,"TSNamedTupleMember",{enumerable:!0,get:function(){return K.tsNamedTupleMember}});Object.defineProperty(G,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return K.tsNamespaceExportDeclaration}});Object.defineProperty(G,"TSNeverKeyword",{enumerable:!0,get:function(){return K.tsNeverKeyword}});Object.defineProperty(G,"TSNonNullExpression",{enumerable:!0,get:function(){return K.tsNonNullExpression}});Object.defineProperty(G,"TSNullKeyword",{enumerable:!0,get:function(){return K.tsNullKeyword}});Object.defineProperty(G,"TSNumberKeyword",{enumerable:!0,get:function(){return K.tsNumberKeyword}});Object.defineProperty(G,"TSObjectKeyword",{enumerable:!0,get:function(){return K.tsObjectKeyword}});Object.defineProperty(G,"TSOptionalType",{enumerable:!0,get:function(){return K.tsOptionalType}});Object.defineProperty(G,"TSParameterProperty",{enumerable:!0,get:function(){return K.tsParameterProperty}});Object.defineProperty(G,"TSParenthesizedType",{enumerable:!0,get:function(){return K.tsParenthesizedType}});Object.defineProperty(G,"TSPropertySignature",{enumerable:!0,get:function(){return K.tsPropertySignature}});Object.defineProperty(G,"TSQualifiedName",{enumerable:!0,get:function(){return K.tsQualifiedName}});Object.defineProperty(G,"TSRestType",{enumerable:!0,get:function(){return K.tsRestType}});Object.defineProperty(G,"TSSatisfiesExpression",{enumerable:!0,get:function(){return K.tsSatisfiesExpression}});Object.defineProperty(G,"TSStringKeyword",{enumerable:!0,get:function(){return K.tsStringKeyword}});Object.defineProperty(G,"TSSymbolKeyword",{enumerable:!0,get:function(){return K.tsSymbolKeyword}});Object.defineProperty(G,"TSThisType",{enumerable:!0,get:function(){return K.tsThisType}});Object.defineProperty(G,"TSTupleType",{enumerable:!0,get:function(){return K.tsTupleType}});Object.defineProperty(G,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return K.tsTypeAliasDeclaration}});Object.defineProperty(G,"TSTypeAnnotation",{enumerable:!0,get:function(){return K.tsTypeAnnotation}});Object.defineProperty(G,"TSTypeAssertion",{enumerable:!0,get:function(){return K.tsTypeAssertion}});Object.defineProperty(G,"TSTypeLiteral",{enumerable:!0,get:function(){return K.tsTypeLiteral}});Object.defineProperty(G,"TSTypeOperator",{enumerable:!0,get:function(){return K.tsTypeOperator}});Object.defineProperty(G,"TSTypeParameter",{enumerable:!0,get:function(){return K.tsTypeParameter}});Object.defineProperty(G,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return K.tsTypeParameterDeclaration}});Object.defineProperty(G,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return K.tsTypeParameterInstantiation}});Object.defineProperty(G,"TSTypePredicate",{enumerable:!0,get:function(){return K.tsTypePredicate}});Object.defineProperty(G,"TSTypeQuery",{enumerable:!0,get:function(){return K.tsTypeQuery}});Object.defineProperty(G,"TSTypeReference",{enumerable:!0,get:function(){return K.tsTypeReference}});Object.defineProperty(G,"TSUndefinedKeyword",{enumerable:!0,get:function(){return K.tsUndefinedKeyword}});Object.defineProperty(G,"TSUnionType",{enumerable:!0,get:function(){return K.tsUnionType}});Object.defineProperty(G,"TSUnknownKeyword",{enumerable:!0,get:function(){return K.tsUnknownKeyword}});Object.defineProperty(G,"TSVoidKeyword",{enumerable:!0,get:function(){return K.tsVoidKeyword}});Object.defineProperty(G,"TaggedTemplateExpression",{enumerable:!0,get:function(){return K.taggedTemplateExpression}});Object.defineProperty(G,"TemplateElement",{enumerable:!0,get:function(){return K.templateElement}});Object.defineProperty(G,"TemplateLiteral",{enumerable:!0,get:function(){return K.templateLiteral}});Object.defineProperty(G,"ThisExpression",{enumerable:!0,get:function(){return K.thisExpression}});Object.defineProperty(G,"ThisTypeAnnotation",{enumerable:!0,get:function(){return K.thisTypeAnnotation}});Object.defineProperty(G,"ThrowStatement",{enumerable:!0,get:function(){return K.throwStatement}});Object.defineProperty(G,"TopicReference",{enumerable:!0,get:function(){return K.topicReference}});Object.defineProperty(G,"TryStatement",{enumerable:!0,get:function(){return K.tryStatement}});Object.defineProperty(G,"TupleExpression",{enumerable:!0,get:function(){return K.tupleExpression}});Object.defineProperty(G,"TupleTypeAnnotation",{enumerable:!0,get:function(){return K.tupleTypeAnnotation}});Object.defineProperty(G,"TypeAlias",{enumerable:!0,get:function(){return K.typeAlias}});Object.defineProperty(G,"TypeAnnotation",{enumerable:!0,get:function(){return K.typeAnnotation}});Object.defineProperty(G,"TypeCastExpression",{enumerable:!0,get:function(){return K.typeCastExpression}});Object.defineProperty(G,"TypeParameter",{enumerable:!0,get:function(){return K.typeParameter}});Object.defineProperty(G,"TypeParameterDeclaration",{enumerable:!0,get:function(){return K.typeParameterDeclaration}});Object.defineProperty(G,"TypeParameterInstantiation",{enumerable:!0,get:function(){return K.typeParameterInstantiation}});Object.defineProperty(G,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return K.typeofTypeAnnotation}});Object.defineProperty(G,"UnaryExpression",{enumerable:!0,get:function(){return K.unaryExpression}});Object.defineProperty(G,"UnionTypeAnnotation",{enumerable:!0,get:function(){return K.unionTypeAnnotation}});Object.defineProperty(G,"UpdateExpression",{enumerable:!0,get:function(){return K.updateExpression}});Object.defineProperty(G,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return K.v8IntrinsicIdentifier}});Object.defineProperty(G,"VariableDeclaration",{enumerable:!0,get:function(){return K.variableDeclaration}});Object.defineProperty(G,"VariableDeclarator",{enumerable:!0,get:function(){return K.variableDeclarator}});Object.defineProperty(G,"Variance",{enumerable:!0,get:function(){return K.variance}});Object.defineProperty(G,"VoidTypeAnnotation",{enumerable:!0,get:function(){return K.voidTypeAnnotation}});Object.defineProperty(G,"WhileStatement",{enumerable:!0,get:function(){return K.whileStatement}});Object.defineProperty(G,"WithStatement",{enumerable:!0,get:function(){return K.withStatement}});Object.defineProperty(G,"YieldExpression",{enumerable:!0,get:function(){return K.yieldExpression}});var K=Xs();});var C8=chunkTKGT252T_js.c(P8=>{Object.defineProperty(P8,"__esModule",{value:!0});P8.buildUndefinedNode=Orr;var Lwe=Xs();function Orr(){return (0, Lwe.unaryExpression)("void",(0, Lwe.numericLiteral)(0),!0)}});var Wf=chunkTKGT252T_js.c(I8=>{Object.defineProperty(I8,"__esModule",{value:!0});I8.default=Drr;var kwe=Oo(),Fwe=Qn(),{hasOwn:gl}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Bwe(e,t,r,n){return e&&typeof e.type=="string"?jwe(e,t,r,n):e}function w8(e,t,r,n){return Array.isArray(e)?e.map(i=>Bwe(i,t,r,n)):Bwe(e,t,r,n)}function Drr(e,t=!0,r=!1){return jwe(e,t,r,new Map)}function jwe(e,t=!0,r=!1,n){if(!e)return e;let{type:i}=e,s={type:e.type};if((0, Fwe.isIdentifier)(e))s.name=e.name,gl(e,"optional")&&typeof e.optional=="boolean"&&(s.optional=e.optional),gl(e,"typeAnnotation")&&(s.typeAnnotation=t?w8(e.typeAnnotation,!0,r,n):e.typeAnnotation),gl(e,"decorators")&&(s.decorators=t?w8(e.decorators,!0,r,n):e.decorators);else if(gl(kwe.NODE_FIELDS,i))for(let a of Object.keys(kwe.NODE_FIELDS[i]))gl(e,a)&&(t?s[a]=(0, Fwe.isFile)(e)&&a==="comments"?iO(e.comments,t,r,n):w8(e[a],!0,r,n):s[a]=e[a]);else throw new Error(`Unknown node type: "${i}"`);return gl(e,"loc")&&(r?s.loc=null:s.loc=e.loc),gl(e,"leadingComments")&&(s.leadingComments=iO(e.leadingComments,t,r,n)),gl(e,"innerComments")&&(s.innerComments=iO(e.innerComments,t,r,n)),gl(e,"trailingComments")&&(s.trailingComments=iO(e.trailingComments,t,r,n)),gl(e,"extra")&&(s.extra=Object.assign({},e.extra)),s}function iO(e,t,r,n){return !e||!t?e:e.map(i=>{let s=n.get(i);if(s)return s;let{type:a,value:o,loc:u}=i,l={type:a,value:o,loc:u};return r&&(l.loc=null),n.set(i,l),l})}});var Uwe=chunkTKGT252T_js.c(O8=>{Object.defineProperty(O8,"__esModule",{value:!0});O8.default=Rrr;var Nrr=Wf();function Rrr(e){return (0, Nrr.default)(e,!1)}});var qwe=chunkTKGT252T_js.c(D8=>{Object.defineProperty(D8,"__esModule",{value:!0});D8.default=Lrr;var Mrr=Wf();function Lrr(e){return (0, Mrr.default)(e)}});var Vwe=chunkTKGT252T_js.c(N8=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.default=Frr;var krr=Wf();function Frr(e){return (0, krr.default)(e,!0,!0)}});var Hwe=chunkTKGT252T_js.c(R8=>{Object.defineProperty(R8,"__esModule",{value:!0});R8.default=jrr;var Brr=Wf();function jrr(e){return (0, Brr.default)(e,!1,!0)}});var L8=chunkTKGT252T_js.c(M8=>{Object.defineProperty(M8,"__esModule",{value:!0});M8.default=Urr;function Urr(e,t,r){if(!r||!e)return e;let n=`${t}Comments`;return e[n]?t==="leading"?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r,e}});var Gwe=chunkTKGT252T_js.c(k8=>{Object.defineProperty(k8,"__esModule",{value:!0});k8.default=Vrr;var qrr=L8();function Vrr(e,t,r,n){return (0, qrr.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}});var sO=chunkTKGT252T_js.c(F8=>{Object.defineProperty(F8,"__esModule",{value:!0});F8.default=Hrr;function Hrr(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))));}});var j8=chunkTKGT252T_js.c(B8=>{Object.defineProperty(B8,"__esModule",{value:!0});B8.default=$rr;var Grr=sO();function $rr(e,t){(0, Grr.default)("innerComments",e,t);}});var q8=chunkTKGT252T_js.c(U8=>{Object.defineProperty(U8,"__esModule",{value:!0});U8.default=Yrr;var Krr=sO();function Yrr(e,t){(0, Krr.default)("leadingComments",e,t);}});var H8=chunkTKGT252T_js.c(V8=>{Object.defineProperty(V8,"__esModule",{value:!0});V8.default=Xrr;var Wrr=sO();function Xrr(e,t){(0, Wrr.default)("trailingComments",e,t);}});var $8=chunkTKGT252T_js.c(G8=>{Object.defineProperty(G8,"__esModule",{value:!0});G8.default=Zrr;var zrr=H8(),Jrr=q8(),Qrr=j8();function Zrr(e,t){return (0, zrr.default)(e,t),(0, Jrr.default)(e,t),(0, Qrr.default)(e,t),e}});var $we=chunkTKGT252T_js.c(K8=>{Object.defineProperty(K8,"__esModule",{value:!0});K8.default=tnr;var enr=$f();function tnr(e){return enr.COMMENT_KEYS.forEach(t=>{e[t]=null;}),e}});var Kwe=chunkTKGT252T_js.c(xe=>{Object.defineProperty(xe,"__esModule",{value:!0});xe.WHILE_TYPES=xe.USERWHITESPACABLE_TYPES=xe.UNARYLIKE_TYPES=xe.TYPESCRIPT_TYPES=xe.TSTYPE_TYPES=xe.TSTYPEELEMENT_TYPES=xe.TSENTITYNAME_TYPES=xe.TSBASETYPE_TYPES=xe.TERMINATORLESS_TYPES=xe.STATEMENT_TYPES=xe.STANDARDIZED_TYPES=xe.SCOPABLE_TYPES=xe.PUREISH_TYPES=xe.PROPERTY_TYPES=xe.PRIVATE_TYPES=xe.PATTERN_TYPES=xe.PATTERNLIKE_TYPES=xe.OBJECTMEMBER_TYPES=xe.MODULESPECIFIER_TYPES=xe.MODULEDECLARATION_TYPES=xe.MISCELLANEOUS_TYPES=xe.METHOD_TYPES=xe.LVAL_TYPES=xe.LOOP_TYPES=xe.LITERAL_TYPES=xe.JSX_TYPES=xe.IMPORTOREXPORTDECLARATION_TYPES=xe.IMMUTABLE_TYPES=xe.FUNCTION_TYPES=xe.FUNCTIONPARENT_TYPES=xe.FOR_TYPES=xe.FORXSTATEMENT_TYPES=xe.FLOW_TYPES=xe.FLOWTYPE_TYPES=xe.FLOWPREDICATE_TYPES=xe.FLOWDECLARATION_TYPES=xe.FLOWBASEANNOTATION_TYPES=xe.EXPRESSION_TYPES=xe.EXPRESSIONWRAPPER_TYPES=xe.EXPORTDECLARATION_TYPES=xe.ENUMMEMBER_TYPES=xe.ENUMBODY_TYPES=xe.DECLARATION_TYPES=xe.CONDITIONAL_TYPES=xe.COMPLETIONSTATEMENT_TYPES=xe.CLASS_TYPES=xe.BLOCK_TYPES=xe.BLOCKPARENT_TYPES=xe.BINARY_TYPES=xe.ACCESSOR_TYPES=void 0;var Ot=Oo();xe.STANDARDIZED_TYPES=Ot.FLIPPED_ALIAS_KEYS.Standardized;xe.EXPRESSION_TYPES=Ot.FLIPPED_ALIAS_KEYS.Expression;xe.BINARY_TYPES=Ot.FLIPPED_ALIAS_KEYS.Binary;xe.SCOPABLE_TYPES=Ot.FLIPPED_ALIAS_KEYS.Scopable;xe.BLOCKPARENT_TYPES=Ot.FLIPPED_ALIAS_KEYS.BlockParent;xe.BLOCK_TYPES=Ot.FLIPPED_ALIAS_KEYS.Block;xe.STATEMENT_TYPES=Ot.FLIPPED_ALIAS_KEYS.Statement;xe.TERMINATORLESS_TYPES=Ot.FLIPPED_ALIAS_KEYS.Terminatorless;xe.COMPLETIONSTATEMENT_TYPES=Ot.FLIPPED_ALIAS_KEYS.CompletionStatement;xe.CONDITIONAL_TYPES=Ot.FLIPPED_ALIAS_KEYS.Conditional;xe.LOOP_TYPES=Ot.FLIPPED_ALIAS_KEYS.Loop;xe.WHILE_TYPES=Ot.FLIPPED_ALIAS_KEYS.While;xe.EXPRESSIONWRAPPER_TYPES=Ot.FLIPPED_ALIAS_KEYS.ExpressionWrapper;xe.FOR_TYPES=Ot.FLIPPED_ALIAS_KEYS.For;xe.FORXSTATEMENT_TYPES=Ot.FLIPPED_ALIAS_KEYS.ForXStatement;xe.FUNCTION_TYPES=Ot.FLIPPED_ALIAS_KEYS.Function;xe.FUNCTIONPARENT_TYPES=Ot.FLIPPED_ALIAS_KEYS.FunctionParent;xe.PUREISH_TYPES=Ot.FLIPPED_ALIAS_KEYS.Pureish;xe.DECLARATION_TYPES=Ot.FLIPPED_ALIAS_KEYS.Declaration;xe.PATTERNLIKE_TYPES=Ot.FLIPPED_ALIAS_KEYS.PatternLike;xe.LVAL_TYPES=Ot.FLIPPED_ALIAS_KEYS.LVal;xe.TSENTITYNAME_TYPES=Ot.FLIPPED_ALIAS_KEYS.TSEntityName;xe.LITERAL_TYPES=Ot.FLIPPED_ALIAS_KEYS.Literal;xe.IMMUTABLE_TYPES=Ot.FLIPPED_ALIAS_KEYS.Immutable;xe.USERWHITESPACABLE_TYPES=Ot.FLIPPED_ALIAS_KEYS.UserWhitespacable;xe.METHOD_TYPES=Ot.FLIPPED_ALIAS_KEYS.Method;xe.OBJECTMEMBER_TYPES=Ot.FLIPPED_ALIAS_KEYS.ObjectMember;xe.PROPERTY_TYPES=Ot.FLIPPED_ALIAS_KEYS.Property;xe.UNARYLIKE_TYPES=Ot.FLIPPED_ALIAS_KEYS.UnaryLike;xe.PATTERN_TYPES=Ot.FLIPPED_ALIAS_KEYS.Pattern;xe.CLASS_TYPES=Ot.FLIPPED_ALIAS_KEYS.Class;var rnr=xe.IMPORTOREXPORTDECLARATION_TYPES=Ot.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;xe.EXPORTDECLARATION_TYPES=Ot.FLIPPED_ALIAS_KEYS.ExportDeclaration;xe.MODULESPECIFIER_TYPES=Ot.FLIPPED_ALIAS_KEYS.ModuleSpecifier;xe.ACCESSOR_TYPES=Ot.FLIPPED_ALIAS_KEYS.Accessor;xe.PRIVATE_TYPES=Ot.FLIPPED_ALIAS_KEYS.Private;xe.FLOW_TYPES=Ot.FLIPPED_ALIAS_KEYS.Flow;xe.FLOWTYPE_TYPES=Ot.FLIPPED_ALIAS_KEYS.FlowType;xe.FLOWBASEANNOTATION_TYPES=Ot.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation;xe.FLOWDECLARATION_TYPES=Ot.FLIPPED_ALIAS_KEYS.FlowDeclaration;xe.FLOWPREDICATE_TYPES=Ot.FLIPPED_ALIAS_KEYS.FlowPredicate;xe.ENUMBODY_TYPES=Ot.FLIPPED_ALIAS_KEYS.EnumBody;xe.ENUMMEMBER_TYPES=Ot.FLIPPED_ALIAS_KEYS.EnumMember;xe.JSX_TYPES=Ot.FLIPPED_ALIAS_KEYS.JSX;xe.MISCELLANEOUS_TYPES=Ot.FLIPPED_ALIAS_KEYS.Miscellaneous;xe.TYPESCRIPT_TYPES=Ot.FLIPPED_ALIAS_KEYS.TypeScript;xe.TSTYPEELEMENT_TYPES=Ot.FLIPPED_ALIAS_KEYS.TSTypeElement;xe.TSTYPE_TYPES=Ot.FLIPPED_ALIAS_KEYS.TSType;xe.TSBASETYPE_TYPES=Ot.FLIPPED_ALIAS_KEYS.TSBaseType;xe.MODULEDECLARATION_TYPES=rnr;});var X8=chunkTKGT252T_js.c(W8=>{Object.defineProperty(W8,"__esModule",{value:!0});W8.default=nnr;var aO=Qn(),Y8=Xs();function nnr(e,t){if((0, aO.isBlockStatement)(e))return e;let r=[];return (0, aO.isEmptyStatement)(e)?r=[]:((0, aO.isStatement)(e)||((0, aO.isFunction)(t)?e=(0, Y8.returnStatement)(e):e=(0, Y8.expressionStatement)(e)),r=[e]),(0, Y8.blockStatement)(r)}});var Ywe=chunkTKGT252T_js.c(z8=>{Object.defineProperty(z8,"__esModule",{value:!0});z8.default=snr;var inr=X8();function snr(e,t="body"){let r=(0, inr.default)(e[t],e);return e[t]=r,r}});var Q8=chunkTKGT252T_js.c(J8=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.default=unr;var anr=HS(),onr=Pv();function unr(e){e=e+"";let t="";for(let r of e)t+=(0, onr.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,n){return n?n.toUpperCase():""}),(0, anr.default)(t)||(t=`_${t}`),t||"_"}});var Wwe=chunkTKGT252T_js.c(Z8=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.default=cnr;var lnr=Q8();function cnr(e){return e=(0, lnr.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var Xwe=chunkTKGT252T_js.c(e9=>{Object.defineProperty(e9,"__esModule",{value:!0});e9.default=hnr;var pnr=Qn(),fnr=Xs();function hnr(e,t=e.key||e.property){return !e.computed&&(0, pnr.isIdentifier)(t)&&(t=(0, fnr.stringLiteral)(t.name)),t}});var zwe=chunkTKGT252T_js.c(oO=>{Object.defineProperty(oO,"__esModule",{value:!0});oO.default=void 0;var Mv=Qn();oO.default=dnr;function dnr(e){if((0, Mv.isExpressionStatement)(e)&&(e=e.expression),(0, Mv.isExpression)(e))return e;if((0, Mv.isClass)(e)?e.type="ClassExpression":(0, Mv.isFunction)(e)&&(e.type="FunctionExpression"),!(0, Mv.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var n9=chunkTKGT252T_js.c(r9=>{Object.defineProperty(r9,"__esModule",{value:!0});r9.default=t9;var mnr=Oo();function t9(e,t,r){if(!e)return;let n=mnr.VISITOR_KEYS[e.type];if(n){r=r||{},t(e,r);for(let i of n){let s=e[i];if(Array.isArray(s))for(let a of s)t9(a,t,r);else t9(s,t,r);}}}});var s9=chunkTKGT252T_js.c(i9=>{Object.defineProperty(i9,"__esModule",{value:!0});i9.default=Snr;var ynr=$f(),Jwe=["tokens","start","end","loc","raw","rawValue"],gnr=[...ynr.COMMENT_KEYS,"comments",...Jwe];function Snr(e,t={}){let r=t.preserveComments?Jwe:gnr;for(let i of r)e[i]!=null&&(e[i]=void 0);for(let i of Object.keys(e))i[0]==="_"&&e[i]!=null&&(e[i]=void 0);let n=Object.getOwnPropertySymbols(e);for(let i of n)e[i]=null;}});var o9=chunkTKGT252T_js.c(a9=>{Object.defineProperty(a9,"__esModule",{value:!0});a9.default=bnr;var Tnr=n9(),Enr=s9();function bnr(e,t){return (0, Tnr.default)(e,Enr.default,t),e}});var Zwe=chunkTKGT252T_js.c(u9=>{Object.defineProperty(u9,"__esModule",{value:!0});u9.default=Qd;var Qwe=Qn(),vnr=Wf(),_nr=o9();function Qd(e,t=e.key){let r;return e.kind==="method"?Qd.increment()+"":((0, Qwe.isIdentifier)(t)?r=t.name:(0, Qwe.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0, _nr.default)((0, vnr.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}Qd.uid=0;Qd.increment=function(){return Qd.uid>=Number.MAX_SAFE_INTEGER?Qd.uid=0:Qd.uid++};});var eIe=chunkTKGT252T_js.c(lO=>{Object.defineProperty(lO,"__esModule",{value:!0});lO.default=void 0;var uO=Qn(),xnr=Xs();lO.default=Anr;function Anr(e,t){if((0, uO.isStatement)(e))return e;let r=!1,n;if((0, uO.isClass)(e))r=!0,n="ClassDeclaration";else if((0, uO.isFunction)(e))r=!0,n="FunctionDeclaration";else if((0, uO.isAssignmentExpression)(e))return (0, xnr.expressionStatement)(e);if(r&&!e.id&&(n=!1),!n){if(t)return !1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e}});var tIe=chunkTKGT252T_js.c(cO=>{Object.defineProperty(cO,"__esModule",{value:!0});cO.default=void 0;var Pnr=HS(),bs=Xs();cO.default=l9;var Cnr=Function.call.bind(Object.prototype.toString);function wnr(e){return Cnr(e)==="[object RegExp]"}function Inr(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return !1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function l9(e){if(e===void 0)return (0, bs.identifier)("undefined");if(e===!0||e===!1)return (0, bs.booleanLiteral)(e);if(e===null)return (0, bs.nullLiteral)();if(typeof e=="string")return (0, bs.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0, bs.numericLiteral)(Math.abs(e));else {let r;Number.isNaN(e)?r=(0, bs.numericLiteral)(0):r=(0, bs.numericLiteral)(1),t=(0, bs.binaryExpression)("/",r,(0, bs.numericLiteral)(0));}return (e<0||Object.is(e,-0))&&(t=(0, bs.unaryExpression)("-",t)),t}if(wnr(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return (0, bs.regExpLiteral)(t,r)}if(Array.isArray(e))return (0, bs.arrayExpression)(e.map(l9));if(Inr(e)){let t=[];for(let r of Object.keys(e)){let n;(0, Pnr.default)(r)?n=(0, bs.identifier)(r):n=(0, bs.stringLiteral)(r),t.push((0, bs.objectProperty)(n,l9(e[r])));}return (0, bs.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var rIe=chunkTKGT252T_js.c(c9=>{Object.defineProperty(c9,"__esModule",{value:!0});c9.default=Dnr;var Onr=Xs();function Dnr(e,t,r=!1){return e.object=(0, Onr.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var iIe=chunkTKGT252T_js.c(p9=>{Object.defineProperty(p9,"__esModule",{value:!0});p9.default=Rnr;var nIe=$f(),Nnr=$8();function Rnr(e,t){if(!e||!t)return e;for(let r of nIe.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r[0]==="_"&&r!=="__clone"&&(e[r]=t[r]);for(let r of nIe.INHERIT_KEYS.force)e[r]=t[r];return (0, Nnr.default)(e,t),e}});var sIe=chunkTKGT252T_js.c(f9=>{Object.defineProperty(f9,"__esModule",{value:!0});f9.default=knr;var Mnr=Xs(),Lnr=er();function knr(e,t){if((0, Lnr.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0, Mnr.memberExpression)(t,e.object),e}});var aIe=chunkTKGT252T_js.c(h9=>{Object.defineProperty(h9,"__esModule",{value:!0});h9.default=Fnr;function Fnr(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let n=t.pop();if(n)switch(n.type){case"ArrayPattern":t.push(...n.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(n.left);break;case"ObjectPattern":t.push(...n.properties);break;case"ObjectProperty":t.push(n.value);break;case"RestElement":case"UpdateExpression":t.push(n.argument);break;case"UnaryExpression":n.operator==="delete"&&t.push(n.argument);break;case"Identifier":r[n.name]=n;break;}}return r}});var Lv=chunkTKGT252T_js.c(m9=>{Object.defineProperty(m9,"__esModule",{value:!0});m9.default=d9;var Rc=Qn();function d9(e,t,r,n){let i=[].concat(e),s=Object.create(null);for(;i.length;){let a=i.shift();if(!a||n&&((0, Rc.isAssignmentExpression)(a)||(0, Rc.isUnaryExpression)(a)||(0, Rc.isUpdateExpression)(a)))continue;if((0, Rc.isIdentifier)(a)){t?(s[a.name]=s[a.name]||[]).push(a):s[a.name]=a;continue}if((0, Rc.isExportDeclaration)(a)&&!(0, Rc.isExportAllDeclaration)(a)){(0, Rc.isDeclaration)(a.declaration)&&i.push(a.declaration);continue}if(r){if((0, Rc.isFunctionDeclaration)(a)){i.push(a.id);continue}if((0, Rc.isFunctionExpression)(a))continue}let o=d9.keys[a.type];if(o)for(let u=0;u<o.length;u++){let l=o[u],c=a[l];c&&(Array.isArray(c)?i.push(...c):i.push(c));}}return s}var Bnr={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};d9.keys=Bnr;});var oIe=chunkTKGT252T_js.c(pO=>{Object.defineProperty(pO,"__esModule",{value:!0});pO.default=void 0;var jnr=Lv();pO.default=Unr;function Unr(e,t){return (0, jnr.default)(e,t,!0)}});var lIe=chunkTKGT252T_js.c(y9=>{Object.defineProperty(y9,"__esModule",{value:!0});y9.default=Vnr;var Do=Qn();function qnr(e){return (0, Do.isNullLiteral)(e)?"null":(0, Do.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0, Do.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function uIe(e){if(!e.computed||(0, Do.isLiteral)(e.key))return e.key}function Vnr(e,t){if("id"in e&&e.id)return {name:e.id.name,originalNode:e.id};let r="",n;if((0, Do.isObjectProperty)(t,{value:e})?n=uIe(t):(0, Do.isObjectMethod)(e)||(0, Do.isClassMethod)(e)?(n=uIe(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0, Do.isVariableDeclarator)(t,{init:e})?n=t.id:(0, Do.isAssignmentExpression)(t,{operator:"=",right:e})&&(n=t.left),!n)return null;let i=(0, Do.isLiteral)(n)?qnr(n):(0, Do.isIdentifier)(n)?n.name:(0, Do.isPrivateName)(n)?n.id.name:null;return i==null?null:{name:r+i,originalNode:n}}});var cIe=chunkTKGT252T_js.c(S9=>{Object.defineProperty(S9,"__esModule",{value:!0});S9.default=Gnr;var Hnr=Oo();function Gnr(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:n,exit:i}=t;g9(e,n,i,r,[]);}function g9(e,t,r,n,i){let s=Hnr.VISITOR_KEYS[e.type];if(s){t&&t(e,i,n);for(let a of s){let o=e[a];if(Array.isArray(o))for(let u=0;u<o.length;u++){let l=o[u];l&&(i.push({node:e,key:a,index:u}),g9(l,t,r,n,i),i.pop());}else o&&(i.push({node:e,key:a}),g9(o,t,r,n,i),i.pop());}r&&r(e,i,n);}}});var pIe=chunkTKGT252T_js.c(T9=>{Object.defineProperty(T9,"__esModule",{value:!0});T9.default=Knr;var $nr=Lv();function Knr(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return !1;let n=$nr.default.keys[t.type];if(n)for(let i=0;i<n.length;i++){let s=n[i],a=t[s];if(Array.isArray(a)){if(a.includes(e))return !0}else if(a===e)return !0}return !1}});var b9=chunkTKGT252T_js.c(E9=>{Object.defineProperty(E9,"__esModule",{value:!0});E9.default=Xnr;var Ynr=Qn(),Wnr=$f();function Xnr(e){return (0, Ynr.isVariableDeclaration)(e)&&(e.kind!=="var"||e[Wnr.BLOCK_SCOPED_SYMBOL])}});var hIe=chunkTKGT252T_js.c(v9=>{Object.defineProperty(v9,"__esModule",{value:!0});v9.default=Jnr;var fIe=Qn(),znr=b9();function Jnr(e){return (0, fIe.isFunctionDeclaration)(e)||(0, fIe.isClassDeclaration)(e)||(0, znr.default)(e)}});var dIe=chunkTKGT252T_js.c(_9=>{Object.defineProperty(_9,"__esModule",{value:!0});_9.default=eir;var Qnr=KI(),Znr=Qn();function eir(e){return (0, Qnr.default)(e.type,"Immutable")?!0:(0, Znr.isIdentifier)(e)?e.name==="undefined":!1}});var yIe=chunkTKGT252T_js.c(A9=>{Object.defineProperty(A9,"__esModule",{value:!0});A9.default=x9;var mIe=Oo();function x9(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return !1;let r=Object.keys(mIe.NODE_FIELDS[e.type]||e.type),n=mIe.VISITOR_KEYS[e.type];for(let i of r){let s=e[i],a=t[i];if(typeof s!=typeof a)return !1;if(!(s==null&&a==null)){if(s==null||a==null)return !1;if(Array.isArray(s)){if(!Array.isArray(a)||s.length!==a.length)return !1;for(let o=0;o<s.length;o++)if(!x9(s[o],a[o]))return !1;continue}if(typeof s=="object"&&!(n!=null&&n.includes(i))){for(let o of Object.keys(s))if(s[o]!==a[o])return !1;continue}if(!x9(s,a))return !1}}return !0}});var gIe=chunkTKGT252T_js.c(P9=>{Object.defineProperty(P9,"__esModule",{value:!0});P9.default=tir;function tir(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return !1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return !1;case"CatchClause":return !1;case"RestElement":return !1;case"BreakStatement":case"ContinueStatement":return !1;case"FunctionDeclaration":case"FunctionExpression":return !1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return !1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return !1;case"ImportAttribute":return !1;case"JSXAttribute":return !1;case"ObjectPattern":case"ArrayPattern":return !1;case"MetaProperty":return !1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return !0}});var SIe=chunkTKGT252T_js.c(C9=>{Object.defineProperty(C9,"__esModule",{value:!0});C9.default=rir;var Zd=Qn();function rir(e,t){return (0, Zd.isBlockStatement)(e)&&((0, Zd.isFunction)(t)||(0, Zd.isCatchClause)(t))?!1:(0, Zd.isPattern)(e)&&((0, Zd.isFunction)(t)||(0, Zd.isCatchClause)(t))?!0:(0, Zd.isScopable)(e)}});var EIe=chunkTKGT252T_js.c(w9=>{Object.defineProperty(w9,"__esModule",{value:!0});w9.default=nir;var TIe=Qn();function nir(e){return (0, TIe.isImportDefaultSpecifier)(e)||(0, TIe.isIdentifier)(e.imported||e.exported,{name:"default"})}});var bIe=chunkTKGT252T_js.c(I9=>{Object.defineProperty(I9,"__esModule",{value:!0});I9.default=air;var iir=HS(),sir=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function air(e){return (0, iir.default)(e)&&!sir.has(e)}});var vIe=chunkTKGT252T_js.c(O9=>{Object.defineProperty(O9,"__esModule",{value:!0});O9.default=lir;var oir=Qn(),uir=$f();function lir(e){return (0, oir.isVariableDeclaration)(e,{kind:"var"})&&!e[uir.BLOCK_SCOPED_SYMBOL]}});var _Ie=chunkTKGT252T_js.c(R9=>{Object.defineProperty(R9,"__esModule",{value:!0});R9.default=fO;var cir=Lv(),em=Qn(),D9=Xs(),N9=C8(),pir=Wf();function fO(e,t){let r=[],n=!0;for(let i of e)if((0, em.isEmptyStatement)(i)||(n=!1),(0, em.isExpression)(i))r.push(i);else if((0, em.isExpressionStatement)(i))r.push(i.expression);else if((0, em.isVariableDeclaration)(i)){if(i.kind!=="var")return;for(let s of i.declarations){let a=(0, cir.default)(s);for(let o of Object.keys(a))t.push({kind:i.kind,id:(0, pir.default)(a[o])});s.init&&r.push((0, D9.assignmentExpression)("=",s.id,s.init));}n=!0;}else if((0, em.isIfStatement)(i)){let s=i.consequent?fO([i.consequent],t):(0, N9.buildUndefinedNode)(),a=i.alternate?fO([i.alternate],t):(0, N9.buildUndefinedNode)();if(!s||!a)return;r.push((0, D9.conditionalExpression)(i.test,s,a));}else if((0, em.isBlockStatement)(i)){let s=fO(i.body,t);if(!s)return;r.push(s);}else if((0, em.isEmptyStatement)(i))e.indexOf(i)===0&&(n=!0);else return;return n&&r.push((0, N9.buildUndefinedNode)()),r.length===1?r[0]:(0, D9.sequenceExpression)(r)}});var xIe=chunkTKGT252T_js.c(M9=>{Object.defineProperty(M9,"__esModule",{value:!0});M9.default=hir;var fir=_Ie();function hir(e,t){if(!(e!=null&&e.length))return;let r=[],n=(0, fir.default)(e,r);if(n){for(let i of r)t.push(i);return n}}});var er=chunkTKGT252T_js.c(Ie=>{Object.defineProperty(Ie,"__esModule",{value:!0});var Mc={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(Ie,"__internal__deprecationWarning",{enumerable:!0,get:function(){return gsr.default}});Object.defineProperty(Ie,"addComment",{enumerable:!0,get:function(){return Air.default}});Object.defineProperty(Ie,"addComments",{enumerable:!0,get:function(){return Pir.default}});Object.defineProperty(Ie,"appendToMemberExpression",{enumerable:!0,get:function(){return qir.default}});Object.defineProperty(Ie,"assertNode",{enumerable:!0,get:function(){return gir.default}});Object.defineProperty(Ie,"buildMatchMemberExpression",{enumerable:!0,get:function(){return ysr.default}});Object.defineProperty(Ie,"clone",{enumerable:!0,get:function(){return bir.default}});Object.defineProperty(Ie,"cloneDeep",{enumerable:!0,get:function(){return vir.default}});Object.defineProperty(Ie,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return _ir.default}});Object.defineProperty(Ie,"cloneNode",{enumerable:!0,get:function(){return Eir.default}});Object.defineProperty(Ie,"cloneWithoutLoc",{enumerable:!0,get:function(){return xir.default}});Object.defineProperty(Ie,"createFlowUnionType",{enumerable:!0,get:function(){return AIe.default}});Object.defineProperty(Ie,"createTSUnionType",{enumerable:!0,get:function(){return Tir.default}});Object.defineProperty(Ie,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return Sir.default}});Object.defineProperty(Ie,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return AIe.default}});Object.defineProperty(Ie,"ensureBlock",{enumerable:!0,get:function(){return Nir.default}});Object.defineProperty(Ie,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Yir.default}});Object.defineProperty(Ie,"getBindingIdentifiers",{enumerable:!0,get:function(){return Wir.default}});Object.defineProperty(Ie,"getFunctionName",{enumerable:!0,get:function(){return zir.default}});Object.defineProperty(Ie,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Xir.default}});Object.defineProperty(Ie,"inheritInnerComments",{enumerable:!0,get:function(){return Cir.default}});Object.defineProperty(Ie,"inheritLeadingComments",{enumerable:!0,get:function(){return wir.default}});Object.defineProperty(Ie,"inheritTrailingComments",{enumerable:!0,get:function(){return Oir.default}});Object.defineProperty(Ie,"inherits",{enumerable:!0,get:function(){return Vir.default}});Object.defineProperty(Ie,"inheritsComments",{enumerable:!0,get:function(){return Iir.default}});Object.defineProperty(Ie,"is",{enumerable:!0,get:function(){return Zir.default}});Object.defineProperty(Ie,"isBinding",{enumerable:!0,get:function(){return esr.default}});Object.defineProperty(Ie,"isBlockScoped",{enumerable:!0,get:function(){return tsr.default}});Object.defineProperty(Ie,"isImmutable",{enumerable:!0,get:function(){return rsr.default}});Object.defineProperty(Ie,"isLet",{enumerable:!0,get:function(){return nsr.default}});Object.defineProperty(Ie,"isNode",{enumerable:!0,get:function(){return isr.default}});Object.defineProperty(Ie,"isNodesEquivalent",{enumerable:!0,get:function(){return ssr.default}});Object.defineProperty(Ie,"isPlaceholderType",{enumerable:!0,get:function(){return asr.default}});Object.defineProperty(Ie,"isReferenced",{enumerable:!0,get:function(){return osr.default}});Object.defineProperty(Ie,"isScope",{enumerable:!0,get:function(){return usr.default}});Object.defineProperty(Ie,"isSpecifierDefault",{enumerable:!0,get:function(){return lsr.default}});Object.defineProperty(Ie,"isType",{enumerable:!0,get:function(){return csr.default}});Object.defineProperty(Ie,"isValidES3Identifier",{enumerable:!0,get:function(){return psr.default}});Object.defineProperty(Ie,"isValidIdentifier",{enumerable:!0,get:function(){return fsr.default}});Object.defineProperty(Ie,"isVar",{enumerable:!0,get:function(){return hsr.default}});Object.defineProperty(Ie,"matchesPattern",{enumerable:!0,get:function(){return dsr.default}});Object.defineProperty(Ie,"prependToMemberExpression",{enumerable:!0,get:function(){return Hir.default}});Ie.react=void 0;Object.defineProperty(Ie,"removeComments",{enumerable:!0,get:function(){return Dir.default}});Object.defineProperty(Ie,"removeProperties",{enumerable:!0,get:function(){return Gir.default}});Object.defineProperty(Ie,"removePropertiesDeep",{enumerable:!0,get:function(){return $ir.default}});Object.defineProperty(Ie,"removeTypeDuplicates",{enumerable:!0,get:function(){return Kir.default}});Object.defineProperty(Ie,"shallowEqual",{enumerable:!0,get:function(){return Qir.default}});Object.defineProperty(Ie,"toBindingIdentifierName",{enumerable:!0,get:function(){return Rir.default}});Object.defineProperty(Ie,"toBlock",{enumerable:!0,get:function(){return Mir.default}});Object.defineProperty(Ie,"toComputedKey",{enumerable:!0,get:function(){return Lir.default}});Object.defineProperty(Ie,"toExpression",{enumerable:!0,get:function(){return kir.default}});Object.defineProperty(Ie,"toIdentifier",{enumerable:!0,get:function(){return Fir.default}});Object.defineProperty(Ie,"toKeyAlias",{enumerable:!0,get:function(){return Bir.default}});Object.defineProperty(Ie,"toStatement",{enumerable:!0,get:function(){return jir.default}});Object.defineProperty(Ie,"traverse",{enumerable:!0,get:function(){return hO.default}});Object.defineProperty(Ie,"traverseFast",{enumerable:!0,get:function(){return Jir.default}});Object.defineProperty(Ie,"validate",{enumerable:!0,get:function(){return msr.default}});Object.defineProperty(Ie,"valueToNode",{enumerable:!0,get:function(){return Uir.default}});var dir=N1e(),mir=R1e(),yir=_we(),gir=xwe(),L9=Awe();Object.keys(L9).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Mc,e)||e in Ie&&Ie[e]===L9[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return L9[e]}});});var Sir=Pwe(),AIe=Iwe(),Tir=Rwe(),k9=Xs();Object.keys(k9).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Mc,e)||e in Ie&&Ie[e]===k9[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return k9[e]}});});var F9=Mwe();Object.keys(F9).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Mc,e)||e in Ie&&Ie[e]===F9[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return F9[e]}});});var B9=C8();Object.keys(B9).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Mc,e)||e in Ie&&Ie[e]===B9[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return B9[e]}});});var Eir=Wf(),bir=Uwe(),vir=qwe(),_ir=Vwe(),xir=Hwe(),Air=Gwe(),Pir=L8(),Cir=j8(),wir=q8(),Iir=$8(),Oir=H8(),Dir=$we(),j9=Kwe();Object.keys(j9).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Mc,e)||e in Ie&&Ie[e]===j9[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return j9[e]}});});var U9=$f();Object.keys(U9).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Mc,e)||e in Ie&&Ie[e]===U9[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return U9[e]}});});var Nir=Ywe(),Rir=Wwe(),Mir=X8(),Lir=Xwe(),kir=zwe(),Fir=Q8(),Bir=Zwe(),jir=eIe(),Uir=tIe(),q9=Oo();Object.keys(q9).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Mc,e)||e in Ie&&Ie[e]===q9[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return q9[e]}});});var qir=rIe(),Vir=iIe(),Hir=sIe(),Gir=s9(),$ir=o9(),Kir=v8(),Yir=aIe(),Wir=Lv(),Xir=oIe(),zir=lIe(),hO=cIe();Object.keys(hO).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Mc,e)||e in Ie&&Ie[e]===hO[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return hO[e]}});});var Jir=n9(),Qir=GI(),Zir=VS(),esr=pIe(),tsr=hIe(),rsr=dIe(),nsr=b9(),isr=T8(),ssr=yIe(),asr=W6(),osr=gIe(),usr=SIe(),lsr=EIe(),csr=KI(),psr=bIe(),fsr=HS(),hsr=vIe(),dsr=V6(),msr=JI(),ysr=G6(),V9=Qn();Object.keys(V9).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(Mc,e)||e in Ie&&Ie[e]===V9[e]||Object.defineProperty(Ie,e,{enumerable:!0,get:function(){return V9[e]}});});var gsr=bv();Ie.react={isReactComponent:dir.default,isCompatTag:mir.default,buildChildren:yir.default};Ie.toSequenceExpression=xIe().default;process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!");});var G9=chunkTKGT252T_js.c(Ti=>{Object.defineProperty(Ti,"__esModule",{value:!0});Ti.isBindingIdentifier=Usr;Ti.isBlockScoped=$sr;Ti.isExpression=Vsr;Ti.isFlow=zsr;Ti.isForAwaitStatement=Zsr;Ti.isGenerated=Wsr;Ti.isPure=Xsr;Ti.isReferenced=Gsr;Ti.isReferencedIdentifier=Bsr;Ti.isReferencedMemberExpression=jsr;Ti.isRestProperty=Jsr;Ti.isScope=Hsr;Ti.isSpreadProperty=Qsr;Ti.isStatement=qsr;Ti.isUser=Ysr;Ti.isVar=Ksr;var Ssr=er(),{isBinding:Tsr,isBlockScoped:Esr,isExportDeclaration:bsr,isExpression:vsr,isFlow:_sr,isForStatement:xsr,isForXStatement:Asr,isIdentifier:PIe,isImportDeclaration:Psr,isImportSpecifier:Csr,isJSXIdentifier:wsr,isJSXMemberExpression:Isr,isMemberExpression:Osr,isRestElement:CIe,isReferenced:H9,isScope:Dsr,isStatement:Nsr,isVar:Rsr,isVariableDeclaration:Msr,react:Lsr,isForOfStatement:ksr}=Ssr,{isCompatTag:Fsr}=Lsr;function Bsr(e){let{node:t,parent:r}=this;if(!PIe(t,e)&&!Isr(r,e))if(wsr(t,e)){if(Fsr(t.name))return !1}else return !1;return H9(t,r,this.parentPath.parent)}function jsr(){let{node:e,parent:t}=this;return Osr(e)&&H9(e,t)}function Usr(){let{node:e,parent:t}=this,r=this.parentPath.parent;return PIe(e)&&Tsr(e,t,r)}function qsr(){let{node:e,parent:t}=this;return Nsr(e)?!(Msr(e)&&(Asr(t,{left:e})||xsr(t,{init:e}))):!1}function Vsr(){return this.isIdentifier()?this.isReferencedIdentifier():vsr(this.node)}function Hsr(){return Dsr(this.node,this.parent)}function Gsr(){return H9(this.node,this.parent)}function $sr(){return Esr(this.node)}function Ksr(){return Rsr(this.node)}function Ysr(){return this.node&&!!this.node.loc}function Wsr(){return !this.isUser()}function Xsr(e){return this.scope.isPure(this.node,e)}function zsr(){let{node:e}=this;return _sr(e)?!0:Psr(e)?e.importKind==="type"||e.importKind==="typeof":bsr(e)?e.exportKind==="type":Csr(e)?e.importKind==="type"||e.importKind==="typeof":!1}function Jsr(){var e;return CIe(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function Qsr(){var e;return CIe(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function Zsr(){return ksr(this.node,{await:!0})}Ti.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},Ti.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")};});var Fv=chunkTKGT252T_js.c(rm=>{Object.defineProperty(rm,"__esModule",{value:!0});rm.environmentVisitor=oar;rm.explode=BIe;rm.isExplodedVisitor=FIe;rm.merge=UIe;rm.verify=jIe;var kIe=B6(),ear=G9(),tar=er(),wIe=Sl(),{DEPRECATED_KEYS:IIe,DEPRECATED_ALIASES:OIe,FLIPPED_ALIAS_KEYS:DIe,TYPES:rar,__internal__deprecationWarning:NIe}=tar;function nar(e){return e in kIe}function FIe(e){return e==null?void 0:e._exploded}function BIe(e){if(FIe(e))return e;e._exploded=!0;for(let t of Object.keys(e)){if(tm(t))continue;let r=t.split("|");if(r.length===1)continue;let n=e[t];delete e[t];for(let i of r)e[i]=n;}jIe(e),delete e.__esModule,iar(e),LIe(e);for(let t of Object.keys(e)){if(tm(t)||!nar(t))continue;let r=e[t];for(let i of Object.keys(r))r[i]=sar(t,r[i]);delete e[t];let n=kIe[t];if(n!==null)for(let i of n)e[i]?kv(e[i],r):e[i]=r;else kv(e,r);}for(let t of Object.keys(e)){if(tm(t))continue;let r=DIe[t];if(t in IIe){let i=IIe[t];NIe(t,i,"Visitor "),r=[i];}else if(t in OIe){let i=OIe[t];NIe(t,i,"Visitor "),r=DIe[i];}if(!r)continue;let n=e[t];delete e[t];for(let i of r){let s=e[i];s?kv(s,n):e[i]=Object.assign({},n);}}for(let t of Object.keys(e))tm(t)||LIe(e[t]);return e}function jIe(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&RIe(t,e[t]),tm(t))continue;if(!rar.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.25.7`);let r=e[t];if(typeof r=="object")for(let n of Object.keys(r))if(n==="enter"||n==="exit")RIe(`${t}.${n}`,r[n]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${n}`)}e._verified=!0;}}function RIe(e,t){let r=[].concat(t);for(let n of r)if(typeof n!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof n}`)}function UIe(e,t=[],r){let n={_verified:!0,_exploded:!0};Object.defineProperty(n,"_exploded",{enumerable:!1}),Object.defineProperty(n,"_verified",{enumerable:!1});for(let i=0;i<e.length;i++){let s=BIe(e[i]),a=t[i],o=s;(a||r)&&(o=MIe(o,a,r)),kv(n,o);for(let u of Object.keys(s)){if(tm(u))continue;let l=s[u];(a||r)&&(l=MIe(l,a,r));let c=n[u]||(n[u]={});kv(c,l);}}return n}function MIe(e,t,r){let n={};for(let i of ["enter","exit"]){let s=e[i];Array.isArray(s)&&(s=s.map(function(a){let o=a;return t&&(o=function(u){a.call(t,u,t);}),r&&(o=r(t==null?void 0:t.key,i,o)),o!==a&&(o.toString=()=>a.toString()),o}),n[i]=s);}return n}function iar(e){for(let t of Object.keys(e)){if(tm(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r});}}function LIe(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit]);}function sar(e,t){let r=`is${e}`,n=ear[r],i=function(s){if(n.call(s))return t.apply(this,arguments)};return i.toString=()=>t.toString(),i}function tm(e){return e[0]==="_"||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist"}function kv(e,t){for(let r of ["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]));}var aar={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():wIe.requeueComputedKeyAndDecorators.call(e)));},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():wIe.requeueComputedKeyAndDecorators.call(e));}};function oar(e){return UIe([aar,e])}});var qIe=chunkTKGT252T_js.c(mO=>{Object.defineProperty(mO,"__esModule",{value:!0});mO.default=void 0;var dO=er(),uar=dO,lar=yO(),car=Fv(),par=Sl(),{getAssignmentIdentifiers:far}=uar,har={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName);},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():par.requeueComputedKeyAndDecorators.call(e)));},ObjectProperty({node:e,scope:t},r){let{name:n}=e.key;if(e.shorthand&&(n===r.oldName||n===r.newName)&&t.getBindingIdentifier(n)===r.binding.identifier){e.shorthand=!1;{var i;(i=e.extra)!=null&&i.shorthand&&(e.extra.shorthand=!1);}}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?far(e.node):e.getOuterBindingIdentifiers();for(let n in r)n===t.oldName&&(r[n].name=t.newName);}},$9=class{constructor(t,r,n){this.newName=n,this.oldName=r,this.binding=t;}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:n}=r.node;if(dO.isDeclaration(n)&&!n.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration();}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:n}=this,{scope:i,path:s}=t,a=s.find(l=>l.isDeclaration()||l.isFunctionExpression()||l.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||i.block,u={discriminant:!0};dO.isMethod(o)&&(o.computed&&(u.key=!0),dO.isObjectMethod(o)||(u.decorators=!0)),(0, lar.traverseNode)(o,(0, car.explode)(har),i,this,i.path,u),arguments[0]||(i.removeOwnBinding(r),i.bindings[n]=t,this.binding.identifier.name=n),a&&(this.maybeConvertFromClassFunctionDeclaration(s),this.maybeConvertFromClassFunctionExpression(s));}};mO.default=$9;});var VIe=chunkTKGT252T_js.c(gO=>{Object.defineProperty(gO,"__esModule",{value:!0});gO.default=void 0;var K9=class{constructor({identifier:t,scope:r,path:n,kind:i}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=n,this.kind=i,(i==="var"||i==="hoisted")&&dar(n)&&this.reassign(n),this.clearValue();}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0;}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t);}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null;}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t);}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t));}dereference(){this.references--,this.referenced=!!this.references;}};gO.default=K9;function dar(e){for(let{parentPath:t,key:r}=e;t;{parentPath:t,key:r}=t){if(t.isFunctionParent())return !1;if(t.isWhile()||t.isForXStatement()||t.isForStatement()&&r==="body")return !0}return !1}});var HIe=chunkTKGT252T_js.c((Xhn,mar)=>{mar.exports={builtin:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{_:!1,$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}};});var $Ie=chunkTKGT252T_js.c((zhn,GIe)=>{GIe.exports=HIe();});var nm=chunkTKGT252T_js.c(qa=>{Object.defineProperty(qa,"__esModule",{value:!0});qa.clear=gar;qa.clearPath=KIe;qa.clearScope=YIe;qa.getCachedPaths=Sar;qa.getOrCreateCachedPaths=Tar;qa.scope=qa.path=void 0;var SO=qa.path=new WeakMap;qa.scope=new WeakMap;function gar(){KIe(),YIe();}function KIe(){qa.path=SO=new WeakMap;}function YIe(){qa.scope=new WeakMap;}var Y9=Object.freeze({});function Sar(e,t){var r,n;return e=null,(r=SO.get((n=e)!=null?n:Y9))==null?void 0:r.get(t)}function Tar(e,t){var r,n;e=null;let i=SO.get((r=e)!=null?r:Y9);i||SO.set((n=e)!=null?n:Y9,i=new WeakMap);let s=i.get(t);return s||i.set(t,s=new Map),s}});var J9=chunkTKGT252T_js.c(EO=>{Object.defineProperty(EO,"__esModule",{value:!0});EO.default=void 0;var Ear=qIe(),bar=am(),_ar=VIe(),xar=$Ie(),rOe=er(),Aar=rOe,WIe=nm(),Par=Fv(),{NOT_LOCAL_BINDING:XIe,assignmentExpression:Car,callExpression:zIe,cloneNode:JIe,getBindingIdentifiers:nOe,identifier:sm,isArrayExpression:iOe,isBinary:war,isCallExpression:QIe,isClass:Iar,isClassBody:Oar,isClassDeclaration:Dar,isExportAllDeclaration:sOe,isExportDefaultDeclaration:Nar,isExportNamedDeclaration:W9,isFunctionDeclaration:Rar,isIdentifier:im,isImportDeclaration:X9,isLiteral:Mar,isMemberExpression:Lar,isMethod:kar,isModuleSpecifier:Far,isNullLiteral:Bar,isObjectExpression:jar,isProperty:Uar,isPureish:qar,isRegExpLiteral:Var,isSuper:Har,isTaggedTemplateExpression:Gar,isTemplateLiteral:aOe,isThisExpression:ZIe,isUnaryExpression:$ar,isVariableDeclaration:Kar,expressionStatement:Yar,matchesPattern:eOe,memberExpression:z9,numericLiteral:War,toIdentifier:Xar,variableDeclaration:zar,variableDeclarator:Jar,isRecordExpression:Qar,isTupleExpression:Zar,isObjectProperty:eor,isTopicReference:tOe,isMetaProperty:tor,isPrivateName:ror,isExportDeclaration:nor,buildUndefinedNode:ior,sequenceExpression:sor}=rOe;function vn(e,t){switch(e==null?void 0:e.type){default:if(X9(e)||nor(e)){var r;if((sOe(e)||W9(e)||X9(e))&&e.source)vn(e.source,t);else if((W9(e)||X9(e))&&(r=e.specifiers)!=null&&r.length)for(let n of e.specifiers)vn(n,t);else (Nar(e)||W9(e))&&e.declaration&&vn(e.declaration,t);}else Far(e)?vn(e.local,t):Mar(e)&&!Bar(e)&&!Var(e)&&!aOe(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":vn(e.object,t),vn(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":vn(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let n of e.properties)vn(n,t);break;case"SpreadElement":case"RestElement":vn(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":vn(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),vn(e.argument,t);break;case"AwaitExpression":t.push("await"),vn(e.argument,t);break;case"AssignmentExpression":vn(e.left,t);break;case"VariableDeclarator":vn(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":vn(e.id,t);break;case"PrivateName":vn(e.id,t);break;case"ParenthesizedExpression":vn(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":vn(e.argument,t);break;case"MetaProperty":vn(e.meta,t),vn(e.property,t);break;case"JSXElement":vn(e.openingElement,t);break;case"JSXOpeningElement":vn(e.name,t);break;case"JSXFragment":vn(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":vn(e.namespace,t),vn(e.name,t);break}}var TO={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t);}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e);},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e);},ReferencedIdentifier(e,t){t.references.push(e);},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:n}=e;(n.getFunctionParent()||n.getProgramParent()).registerBinding("var",r);}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(sOe(t))return;let n=t.declaration;if(Dar(n)||Rar(n)){let i=n.id;if(!i)return;let s=r.getBinding(i.name);s==null||s.reference(e);}else if(Kar(n))for(let i of n.declarations)for(let s of Object.keys(nOe(i))){let a=r.getBinding(s);a==null||a.reference(e);}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e);},AssignmentExpression(e,t){t.assignments.push(e);},UpdateExpression(e,t){t.constantViolations.push(e);},UnaryExpression(e,t){e.node.operator==="delete"&&t.constantViolations.push(e);},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let i=e.node.id.name;e.scope.bindings[i]=e.scope.parent.getBinding(i);}},CatchClause(e){e.scope.registerBinding("let",e);},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[XIe]&&e.scope.registerBinding("local",e.get("id"),e);},ClassExpression(e){e.node.id&&!e.node.id[XIe]&&e.scope.registerBinding("local",e.get("id"),e);},TSTypeAnnotation(e){e.skip();}},aor=0,Su=class e{constructor(t){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=t,n=WIe.scope.get(r);if((n==null?void 0:n.path)===t)return n;WIe.scope.set(r,this),this.uid=aor++,this.block=r,this.path=t,this.labels=new Map,this.inited=!1;}get parent(){var t;let r,n=this.path;do{var i;let s=n.key==="key"||n.listKey==="decorators";n=n.parentPath,s&&n.isMethod()&&(n=n.parentPath),(i=n)!=null&&i.isScope()&&(r=n);}while(n&&!r);return (t=r)==null?void 0:t.scope}generateDeclaredUidIdentifier(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),JIe(r)}generateUidIdentifier(t){return sm(this.generateUid(t))}generateUid(t="temp"){t=Xar(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,n=1;do r=`_${t}`,n>1&&(r+=n),n++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let i=this.getProgramParent();return i.references[r]=!0,i.uids[r]=!0,r}generateUidBasedOnNode(t,r){let n=[];vn(t,n);let i=n.join("$");return i=i.replace(/^_/,"")||r||"ref",this.generateUid(i.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return sm(this.generateUidBasedOnNode(t,r))}isStatic(t){if(ZIe(t)||Har(t)||tOe(t))return !0;if(im(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return !1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let n=this.generateUidIdentifierBasedOnNode(t);return r?n:(this.push({id:n}),JIe(n))}}checkBlockScopedCollisions(t,r,n,i){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.path.hub.buildError(i,`Duplicate declaration "${n}"`,TypeError)}rename(t,r){let n=this.getBinding(t);n&&(r||(r=this.generateUidIdentifier(t).name),new Ear.default(n,t,r).rename(arguments[2]));}dump(){let t="-".repeat(60);console.log(t);let r=this;do{console.log("#",r.block.type);for(let n of Object.keys(r.bindings)){let i=r.bindings[n];console.log(" -",n,{constant:i.constant,references:i.references,violations:i.constantViolations.length,kind:i.kind});}}while(r=r.parent);console.log(t);}hasLabel(t){return !!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t);}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:n}=t.node;for(let i of r)this.registerBinding(n==="using"||n==="await using"?"const":n,i);}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t);}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",n=t.get("specifiers");for(let i of n){let s=r||i.isImportSpecifier()&&(i.node.importKind==="type"||i.node.importKind==="typeof");this.registerBinding(s?"unknown":"module",i);}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r);}else this.registerBinding("unknown",t);}buildUndefinedNode(){return ior()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let i of Object.keys(r)){var n;(n=this.getBinding(i))==null||n.reassign(t);}}registerBinding(t,r,n=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(t,o);return}let i=this.getProgramParent(),s=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(s)){i.references[a]=!0;for(let o of s[a]){let u=this.getOwnBinding(a);if(u){if(u.identifier===o)continue;this.checkBlockScopedCollisions(u,t,a,o);}u?u.reassign(n):this.bindings[a]=new _ar.default({identifier:o,scope:this,path:n,kind:t});}}}addGlobal(t){this.globals[t.name]=t;}hasUid(t){let r=this;do if(r.uids[t])return !0;while(r=r.parent);return !1}hasGlobal(t){let r=this;do if(r.globals[t])return !0;while(r=r.parent);return !1}hasReference(t){return !!this.getProgramParent().references[t]}isPure(t,r){if(im(t)){let a=this.getBinding(t.name);return a?r?a.constant:!0:!1}else {if(ZIe(t)||tor(t)||tOe(t)||ror(t))return !0;if(Iar(t)){var n;return t.superClass&&!this.isPure(t.superClass,r)||((n=t.decorators)==null?void 0:n.length)>0?!1:this.isPure(t.body,r)}else if(Oar(t)){for(let a of t.body)if(!this.isPure(a,r))return !1;return !0}else {if(war(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(iOe(t)||Zar(t)){for(let a of t.elements)if(a!==null&&!this.isPure(a,r))return !1;return !0}else if(jar(t)||Qar(t)){for(let a of t.properties)if(!this.isPure(a,r))return !1;return !0}else if(kar(t)){var i;return !(t.computed&&!this.isPure(t.key,r)||((i=t.decorators)==null?void 0:i.length)>0)}else if(Uar(t)){var s;return !(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0||(eor(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else {if($ar(t))return this.isPure(t.argument,r);if(aOe(t)){for(let a of t.expressions)if(!this.isPure(a,r))return !1;return !0}else return Gar(t)?eOe(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):Lar(t)?!t.computed&&im(t.object)&&t.object.name==="Symbol"&&im(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):QIe(t)?eOe(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&Aar.isStringLiteral(t.arguments[0]):qar(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let n=r.data[t];if(n!=null)return n}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl());}crawl(){let t=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);let r=this.getProgramParent();if(r.crawling)return;let n={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,t.type!=="Program"&&(0, Par.isExplodedVisitor)(TO)){for(let s of TO.enter)s.call(n,t,n);let i=TO[t.type];if(i)for(let s of i.enter)s.call(n,t,n);}t.traverse(TO,n),this.crawling=!1;for(let i of n.assignments){let s=i.getAssignmentIdentifiers();for(let a of Object.keys(s))i.scope.getBinding(a)||r.addGlobal(s[a]);i.scope.registerConstantViolation(i);}for(let i of n.references){let s=i.scope.getBinding(i.node.name);s?s.reference(i):r.addGlobal(i.node);}for(let i of n.constantViolations)i.scope.registerConstantViolation(i);}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:n,unique:i,kind:s="var",id:a}=t;if(!n&&!i&&(s==="var"||s==="let")&&r.isFunction()&&!r.node.name&&QIe(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&im(a)){r.pushContainer("params",a),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,u=`declaration:${s}:${o}`,l=!i&&r.getData(u);if(!l){let h=zar(s,[]);h._blockHoist=o,[l]=r.unshiftContainer("body",[h]),i||r.setData(u,l);}let c=Jar(a,n),p=l.node.declarations.push(c);r.scope.registerBinding(s,l.get("declarations")[p-1]);}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let n of Object.keys(r.bindings))n in t||(t[n]=r.bindings[n]);r=r.parent;}while(r);return t}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,n;do{let s=r.getOwnBinding(t);if(s){var i;if(!((i=n)!=null&&i.isPattern()&&s.kind!=="param"&&s.kind!=="local"))return s}else if(!s&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;n=r.path;}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return (r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r==null?void 0:r.identifier}hasOwnBinding(t){return !!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return !1;let n=this;do if(n.hasOwnBinding(t))return !0;while(n=n.parent);let i,s;return typeof r=="object"?(i=r.noGlobals,s=r.noUids):typeof r=="boolean"&&(i=r),!!(!s&&this.hasUid(t)||!i&&e.globals.includes(t)||!i&&e.contextVariables.includes(t))}parentHasBinding(t,r){var n;return (n=this.parent)==null?void 0:n.hasBinding(t,r)}moveBindingTo(t,r){let n=this.getBinding(t);n&&(n.scope.removeOwnBinding(t),n.scope=r,r.bindings[t]=n);}removeOwnBinding(t){delete this.bindings[t];}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);let n=this;do n.uids[t]&&(n.uids[t]=!1);while(n=n.parent)}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let i of Object.keys(this.bindings)){let s=this.bindings[i];if(!s)continue;let{path:a}=s;if(!a.isVariableDeclarator())continue;let{parent:o,parentPath:u}=a;if(o.kind!=="var"||r.has(o))continue;r.add(a.parent);let l,c=[];for(let p of o.declarations){(l)!=null||(l=p.id),p.init&&c.push(Car("=",p.id,p.init));let h=Object.keys(nOe(p,!1,!0,!0));for(let f of h)t(sm(f),p.init!=null);}if(u.parentPath.isFor({left:o}))u.replaceWith(l);else if(c.length===0)u.remove();else {let p=c.length===1?c[0]:sor(c);u.parentPath.isForStatement({init:o})?u.replaceWith(p):u.replaceWith(Yar(p));}}}};EO.default=Su;Su.globals=Object.keys(xar.builtin);Su.contextVariables=["arguments","undefined","Infinity","NaN"];Su.prototype._renameFromMap=function(t,r,n,i){t[r]&&(t[n]=i,t[r]=null);},Su.prototype.traverse=function(e,t,r){(0, bar.default)(e,t,this,r,this.path);},Su.prototype._generateUid=function(t,r){let n=t;return r>1&&(n+=r),`_${n}`},Su.prototype.toArray=function(t,r,n){if(im(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(iOe(t))return t;if(im(t,{name:"arguments"}))return zIe(z9(z9(z9(sm("Array"),sm("prototype")),sm("slice")),sm("call")),[t]);let i,s=[t];return r===!0?i="toConsumableArray":typeof r=="number"?(s.push(War(r)),i="slicedToArray"):i="toArray",n&&(s.unshift(this.path.hub.addHelper(i)),i="maybeArrayLike"),zIe(this.path.hub.addHelper(i),s)},Su.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let n of t){let i=this;do{for(let s of Object.keys(i.bindings)){let a=i.bindings[s];a.kind===n&&(r[s]=a);}i=i.parent;}while(i)}return r},Object.defineProperties(Su.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}});});var oOe=chunkTKGT252T_js.c(bO=>{Object.defineProperty(bO,"__esModule",{value:!0});bO.default=void 0;var Xf=R4(),Q9=eI(),Z9=class{constructor(t,r){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let i=this._map=new Xf.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(n=t.sourceFileName)==null?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new Q9.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var s;(0, Xf.setSourceContent)(i,a[o],(s=this._inputMap.sourcesContent)==null?void 0:s[o]);}}if(typeof r=="string"&&!t.inputSourceMap)(0, Xf.setSourceContent)(i,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0, Xf.setSourceContent)(i,a.replace(/\\/g,"/"),r[a]);}get(){return (0, Xf.toEncodedMap)(this._map)}getDecoded(){return (0, Xf.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0, Xf.allMappings)(this._map))}mark(t,r,n,i,s,a){var o;this._rawMappings=void 0;let u;if(r!=null)if(this._inputMap){if(u=(0, Q9.originalPositionFor)(this._inputMap,{line:r,column:n}),!u.name&&s){let l=(0, Q9.originalPositionFor)(this._inputMap,s);l.name&&(i=l.name);}}else u={source:(a==null?void 0:a.replace(/\\/g,"/"))||this._sourceFileName,line:r,column:n};(0, Xf.maybeAddMapping)(this._map,{name:i,generated:t,source:(o=u)==null?void 0:o.source,original:u});}};bO.default=Z9;});var uOe=chunkTKGT252T_js.c(vO=>{Object.defineProperty(vO,"__esModule",{value:!0});vO.default=void 0;var eq=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r;for(let n=0;n<64;n++)this._fastIndentations.push(r.repeat(n));this._allocQueue();}_allocQueue(){let t=this._queue;for(let r=0;r<16;r++)t.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""});}_pushQueue(t,r,n,i,s){let a=this._queueCursor;a===this._queue.length&&this._allocQueue();let o=this._queue[a];o.char=t,o.repeat=r,o.line=n,o.column=i,o.filename=s,this._queueCursor++;}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let t=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:t==null?void 0:t.getDecoded(),get __mergedMap(){return this.map},get map(){let n=t?t.get():null;return r.map=n,n},set map(n){Object.defineProperty(r,"map",{value:n,writable:!0});},get rawMappings(){let n=t==null?void 0:t.getRawMappings();return r.rawMappings=n,n},set rawMappings(n){Object.defineProperty(r,"rawMappings",{value:n,writable:!0});}};return r}append(t,r){this._flush(),this._append(t,this._sourcePosition,r);}appendChar(t){this._flush(),this._appendChar(t,1,this._sourcePosition);}queue(t){if(t===10)for(;this._queueCursor!==0;){let n=this._queue[this._queueCursor-1].char;if(n!==32&&n!==9)break;this._queueCursor--;}let r=this._sourcePosition;this._pushQueue(t,1,r.line,r.column,r.filename);}queueIndentation(t){t!==0&&this._pushQueue(-1,t,void 0,void 0,void 0);}_flush(){let t=this._queueCursor,r=this._queue;for(let n=0;n<t;n++){let i=r[n];this._appendChar(i.char,i.repeat,i);}this._queueCursor=0;}_appendChar(t,r,n){if(this._last=t,t===-1){let i=this._fastIndentations[r];i!==void 0?this._str+=i:this._str+=r>1?this._indentChar.repeat(r):this._indentChar;}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);t!==10?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0);}_append(t,r,n){let i=t.length,s=this._position;if(this._last=t.charCodeAt(i-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t,!n&&!this._map){s.column+=i;return}let{column:a,identifierName:o,identifierNamePos:u,filename:l}=r,c=r.line;(o!=null||u!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let p=t.indexOf(`
`),h=0;for(p!==0&&this._mark(c,a,o,u,l);p!==-1;)s.line++,s.column=0,h=p+1,h<i&&c!==void 0&&this._mark(++c,0,null,null,l),p=t.indexOf(`
`,h);s.column+=i-h;}_mark(t,r,n,i,s){var a;(a=this._map)==null||a.mark(this._position,t,r,n,i,s);}removeTrailingNewline(){let t=this._queueCursor;t!==0&&this._queue[t-1].char===10&&this._queueCursor--;}removeLastSemicolon(){let t=this._queueCursor;t!==0&&this._queue[t-1].char===59&&this._queueCursor--;}getLastChar(){let t=this._queueCursor;return t!==0?this._queue[t-1].char:this._last}getNewlineCount(){let t=this._queueCursor,r=0;if(t===0)return this._last===10?1:0;for(let n=t-1;n>=0&&this._queue[n].char===10;n--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){let t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let n=t.identifierName,i=this._sourcePosition;n&&(this._canMarkIdName=!1,i.identifierName=n),r(),n&&(this._canMarkIdName=!0,i.identifierName=void 0,i.identifierNamePos=void 0),this.source("end",t);}source(t,r){this._map&&this._normalizePosition(t,r,0);}sourceWithOffset(t,r,n){this._map&&this._normalizePosition(t,r,n);}_normalizePosition(t,r,n){let i=r[t],s=this._sourcePosition;i&&(s.line=i.line,s.column=Math.max(i.column+n,0),s.filename=r.filename);}getCurrentColumn(){let t=this._queue,r=this._queueCursor,n=-1,i=0;for(let s=0;s<r;s++){let a=t[s];a.char===10&&(n=i),i+=a.repeat;}return n===-1?this._position.column+i:i-1-n}getCurrentLine(){let t=0,r=this._queue;for(let n=0;n<this._queueCursor;n++)r[n].char===10&&t++;return this._position.line+t}};vO.default=eq;});var hOe=chunkTKGT252T_js.c(xO=>{Object.defineProperty(xO,"__esModule",{value:!0});xO.nodes=void 0;var oor=er(),{FLIPPED_ALIAS_KEYS:uor,isArrayExpression:lor,isAssignmentExpression:cOe,isBinary:pOe,isBlockStatement:cor,isCallExpression:fOe,isFunction:Bv,isIdentifier:_O,isLiteral:por,isMemberExpression:tq,isObjectExpression:hor,isOptionalCallExpression:dor,isOptionalMemberExpression:mor,isStringLiteral:yor}=oor;function YS(e,t){return e&&(tq(e)||mor(e)?(YS(e.object,t),e.computed&&YS(e.property,t)):pOe(e)||cOe(e)?(YS(e.left,t),YS(e.right,t)):fOe(e)||dor(e)?(t.hasCall=!0,YS(e.callee,t)):Bv(e)?t.hasFunction=!0:_O(e)&&(t.hasHelper=t.hasHelper||e.callee&&Lc(e.callee))),t}function lOe(e){return YS(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function Lc(e){return e?tq(e)?Lc(e.object)||Lc(e.property):_O(e)?e.name==="require"||e.name.charCodeAt(0)===95:fOe(e)?Lc(e.callee):pOe(e)||cOe(e)?_O(e.left)&&Lc(e.left)||Lc(e.right):!1:!1}function gor(e){return por(e)||hor(e)||lor(e)||_O(e)||tq(e)}var om=xO.nodes={AssignmentExpression(e){let t=lOe(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase(e,t){return (e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(Bv(e.left)||Bv(e.right))return 2},Literal(e){if(yor(e)&&e.value==="use strict")return 2},CallExpression(e){if(Bv(e.callee)||Lc(e))return 3},OptionalCallExpression(e){if(Bv(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){let r=e.declarations[t],n=Lc(r.id)&&!gor(r.init);if(!n&&r.init){let i=lOe(r.init);n=Lc(r.init)&&i.hasCall||i.hasFunction;}if(n)return 3}},IfStatement(e){if(cor(e.consequent))return 3}};om.ObjectProperty=om.ObjectTypeProperty=om.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1};om.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length))return 1};om.ObjectTypeIndexer=function(e,t){var r,n;if(t.indexers[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length))return 1};om.ObjectTypeInternalSlot=function(e,t){var r,n,i;if(t.internalSlots[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length)&&!((i=t.indexers)!=null&&i.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(uor[e]||[]).forEach(function(r){let n=t?3:0;om[r]=()=>n;});});});var bOe=chunkTKGT252T_js.c(Br=>{Object.defineProperty(Br,"__esModule",{value:!0});Br.AssignmentExpression=$or;Br.Binary=SOe;Br.BinaryExpression=jor;Br.ClassExpression=Vor;Br.ArrowFunctionExpression=Br.ConditionalExpression=EOe;Br.DoExpression=Nor;Br.FunctionExpression=Hor;Br.FunctionTypeAnnotation=Ior;Br.Identifier=Yor;Br.LogicalExpression=Kor;Br.NullableTypeAnnotation=wor;Br.ObjectExpression=Dor;Br.OptionalIndexedAccessType=Mor;Br.OptionalCallExpression=Br.OptionalMemberExpression=Gor;Br.SequenceExpression=Uor;Br.TSSatisfiesExpression=Br.TSAsExpression=Lor;Br.TSInferType=For;Br.TSInstantiationExpression=Bor;Br.UnaryLike=Br.TSTypeAssertion=TOe;Br.TSIntersectionType=Br.TSUnionType=kor;Br.IntersectionTypeAnnotation=Br.UnionTypeAnnotation=Ror;Br.UpdateExpression=Oor;Br.AwaitExpression=Br.YieldExpression=qor;var Sor=er(),No=zf(),{isArrayTypeAnnotation:Tor,isBinaryExpression:Eor,isCallExpression:bor,isForOfStatement:vor,isIndexedAccessType:_or,isMemberExpression:yOe,isObjectPattern:xor,isOptionalMemberExpression:Aor,isYieldExpression:Por,isStatement:Cor}=Sor,dOe=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function mOe(e,t){if(t==="BinaryExpression"||t==="LogicalExpression")return dOe.get(e.operator);if(t==="TSAsExpression"||t==="TSSatisfiesExpression")return dOe.get("in")}function rq(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}var AO=(e,t)=>{let r=t.type;return (r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e},PO=(e,t)=>{let r=t.type;return (r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function wor(e,t){return Tor(t)}function Ior(e,t,r){let n=t.type;return n==="UnionTypeAnnotation"||n==="IntersectionTypeAnnotation"||n==="ArrayTypeAnnotation"||!!(r&No.TokenContext.arrowFlowReturnType)}function Oor(e,t){return PO(e,t)||AO(e,t)}function gOe(e){return !!(e&(No.TokenContext.expressionStatement|No.TokenContext.arrowBody))}function Dor(e,t,r){return gOe(r)}function Nor(e,t,r){return !e.async&&!!(r&No.TokenContext.expressionStatement)}function SOe(e,t){let r=t.type;if(e.type==="BinaryExpression"&&e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**")return t.left===e;if(AO(e,t)||PO(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression")return !0;let n=mOe(t,r);if(n!=null){let i=mOe(e,e.type);if(n===i&&r==="BinaryExpression"&&t.right===e||n>i)return !0}}function Ror(e,t){let r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function Mor(e,t){return _or(t)&&t.objectType===e}function Lor(e,t){return (t.type==="AssignmentExpression"||t.type==="AssignmentPattern")&&t.left===e||t.type==="BinaryExpression"&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:SOe(e,t)}function kor(e,t){let r=t.type;return r==="TSArrayType"||r==="TSOptionalType"||r==="TSIntersectionType"||r==="TSRestType"}function For(e,t){let r=t.type;return r==="TSArrayType"||r==="TSOptionalType"}function Bor(e,t){let r=t.type;return (r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function jor(e,t,r,n){return e.operator==="in"&&n}function Uor(e,t){let r=t.type;return r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&t.property===e||r==="OptionalMemberExpression"&&t.property===e||r==="TemplateLiteral"?!1:r==="ClassDeclaration"?!0:r==="ForOfStatement"?t.right===e:r==="ExportDefaultDeclaration"?!0:!Cor(t)}function qor(e,t){let r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||PO(e,t)||r==="AwaitExpression"&&Por(e)||r==="ConditionalExpression"&&e===t.test||AO(e,t)||rq(r)}function Vor(e,t,r){return !!(r&(No.TokenContext.expressionStatement|No.TokenContext.exportDefault))}function TOe(e,t){return PO(e,t)||Eor(t)&&t.operator==="**"&&t.left===e||AO(e,t)}function Hor(e,t,r){return !!(r&(No.TokenContext.expressionStatement|No.TokenContext.exportDefault))}function EOe(e,t){let r=t.type;return r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||rq(r)?!0:TOe(e,t)}function Gor(e,t){return bor(t)&&t.callee===e||yOe(t)&&t.object===e}function $or(e,t,r){return gOe(r)&&xor(e.left)?!0:EOe(e,t)}function Kor(e,t){let r=t.type;if(rq(r))return !0;if(r!=="LogicalExpression")return !1;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function Yor(e,t,r){var n;let i=t.type;if((n=e.extra)!=null&&n.parenthesized&&i==="AssignmentExpression"&&t.left===e){let s=t.right.type;if((s==="FunctionExpression"||s==="ClassExpression")&&t.right.id==null)return !0}return e.name==="let"?(yOe(t,{object:e,computed:!0})||Aor(t,{object:e,computed:!0,optional:!1}))&&r&(No.TokenContext.expressionStatement|No.TokenContext.forHead|No.TokenContext.forInHead)?!0:!!(r&No.TokenContext.forOfHead):e.name==="async"&&vor(t,{left:e,await:!1})}});var zf=chunkTKGT252T_js.c(kc=>{Object.defineProperty(kc,"__esModule",{value:!0});kc.TokenContext=void 0;kc.isLastChild=lur;kc.needsParens=uur;kc.needsWhitespace=iq;kc.needsWhitespaceAfter=our;kc.needsWhitespaceBefore=aur;var Wor=hOe(),Xor=bOe(),zor=er(),{FLIPPED_ALIAS_KEYS:Jor,VISITOR_KEYS:Qor,isCallExpression:vOe,isDecorator:Zor,isExpressionStatement:eur,isMemberExpression:tur,isNewExpression:rur,isParenthesizedExpression:nur}=zor;kc.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function _Oe(e){let t=new Map;function r(n,i){let s=t.get(n);t.set(n,s?function(a,o,u,l){var c;return (c=s(a,o,u,l))!=null?c:i(a,o,u,l)}:i);}for(let n of Object.keys(e)){let i=Jor[n];if(i)for(let s of i)r(s,e[n]);else r(n,e[n]);}return t}var iur=_Oe(Xor),sur=_Oe(Wor.nodes);function xOe(e){return vOe(e)?!0:tur(e)&&xOe(e.object)}function iq(e,t,r){var n;if(!e)return !1;eur(e)&&(e=e.expression);let i=(n=sur.get(e.type))==null?void 0:n(e,t);return typeof i=="number"?(i&r)!==0:!1}function aur(e,t){return iq(e,t,1)}function our(e,t){return iq(e,t,2)}function uur(e,t,r,n){var i;return t?rur(t)&&t.callee===e&&xOe(e)?!0:Zor(t)?!nq(e)&&!(vOe(e)&&nq(e.callee))&&!nur(e):(i=iur.get(e.type))==null?void 0:i(e,t,r,n):!1}function nq(e){switch(e.type){case"Identifier":return !0;case"MemberExpression":return !e.computed&&e.property.type==="Identifier"&&nq(e.object);default:return !1}}function lur(e,t){let r=Qor[e.type];for(let n=r.length-1;n>=0;n--){let i=e[r[n]];if(i===t)return !0;if(Array.isArray(i)){let s=i.length-1;for(;s>=0&&i[s]===null;)s--;return s>=0&&i[s]===t}else if(i)return !1}return !1}});var AOe=chunkTKGT252T_js.c(jv=>{Object.defineProperty(jv,"__esModule",{value:!0});jv.TaggedTemplateExpression=cur;jv.TemplateElement=pur;jv.TemplateLiteral=fur;function cur(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi);}function pur(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function fur(e){let t=e.quasis,r="`";for(let n=0;n<t.length;n++)r+=t[n].value.raw,n+1<t.length&&(this.token(r+"${",!0),this.print(e.expressions[n]),r="}");this.token(r+"`",!0);}});var COe=chunkTKGT252T_js.c(Kr=>{Object.defineProperty(Kr,"__esModule",{value:!0});Kr.LogicalExpression=Kr.BinaryExpression=Kr.AssignmentExpression=Bur;Kr.AssignmentPattern=Fur;Kr.AwaitExpression=Rur;Kr.BindExpression=jur;Kr.CallExpression=Dur;Kr.ConditionalExpression=vur;Kr.Decorator=wur;Kr.DoExpression=Tur;Kr.EmptyStatement=Lur;Kr.ExpressionStatement=kur;Kr.Import=Nur;Kr.MemberExpression=Uur;Kr.MetaProperty=qur;Kr.ModuleExpression=Gur;Kr.NewExpression=_ur;Kr.OptionalCallExpression=Our;Kr.OptionalMemberExpression=Iur;Kr.ParenthesizedExpression=Eur;Kr.PrivateName=Vur;Kr.SequenceExpression=xur;Kr.Super=Pur;Kr.ThisExpression=Aur;Kr.UnaryExpression=Sur;Kr.UpdateExpression=bur;Kr.V8IntrinsicIdentifier=Hur;Kr.YieldExpression=Mur;Kr._shouldPrintDecoratorsBeforeExport=Cur;var hur=er(),dur=zf(),{isCallExpression:mur,isLiteral:POe,isMemberExpression:sq,isNewExpression:yur,isPattern:gur}=hur;function Sur(e){let{operator:t}=e;t==="void"||t==="delete"||t==="typeof"||t==="throw"?(this.word(t),this.space()):this.token(t),this.print(e.argument);}function Tur(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body);}function Eur(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e);}function bur(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator));}function vur(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate);}function _ur(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!mur(t,{callee:e})&&!sq(t)&&!yur(t))return;this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments),r(),this.rightParens(e);}function xur(e){this.printList(e.expressions);}function Aur(){this.word("this");}function Pur(){this.word("super");}function Cur(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function wur(e){this.tokenChar(64),this.print(e.expression),this.newline();}function Iur(e){let{computed:t}=e,{optional:r,property:n}=e;if(this.print(e.object),!t&&sq(n))throw new TypeError("Got a MemberExpression for MemberExpression property");POe(n)&&typeof n.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(n),this.tokenChar(93)):(r||this.tokenChar(46),this.print(n));}function Our(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e);}function Dur(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e);}function Nur(){this.word("import");}function Rur(e){this.word("await"),e.argument&&(this.space(),this.printTerminatorless(e.argument));}function Mur(e){this.word("yield",!0),e.delegate?(this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument&&(this.space(),this.printTerminatorless(e.argument));}function Lur(){this.semicolon(!0);}function kur(e){this.tokenContext|=dur.TokenContext.expressionStatement,this.print(e.expression),this.semicolon();}function Fur(e){this.print(e.left),(e.left.type==="Identifier"||gur(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right);}function Bur(e){this.print(e.left),this.space(),e.operator==="in"||e.operator==="instanceof"?this.word(e.operator):(this.token(e.operator),this._endsWithDiv=e.operator==="/"),this.space(),this.print(e.right);}function jur(e){this.print(e.object),this.token("::"),this.print(e.callee);}function Uur(e){if(this.print(e.object),!e.computed&&sq(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(POe(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),r();}else this.tokenChar(46),this.print(e.property);}function qur(e){this.print(e.meta),this.tokenChar(46),this.print(e.property);}function Vur(e){this.tokenChar(35),this.print(e.id);}function Hur(e){this.tokenChar(37),this.word(e.name);}function Gur(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e);}});var DOe=chunkTKGT252T_js.c(Kn=>{Object.defineProperty(Kn,"__esModule",{value:!0});Kn.BreakStatement=elr;Kn.CatchClause=alr;Kn.ContinueStatement=tlr;Kn.DebuggerStatement=llr;Kn.DoWhileStatement=Zur;Kn.ForOfStatement=Kn.ForInStatement=void 0;Kn.ForStatement=Jur;Kn.IfStatement=zur;Kn.LabeledStatement=ilr;Kn.ReturnStatement=rlr;Kn.SwitchCase=ulr;Kn.SwitchStatement=olr;Kn.ThrowStatement=nlr;Kn.TryStatement=slr;Kn.VariableDeclaration=clr;Kn.VariableDeclarator=plr;Kn.WhileStatement=Qur;Kn.WithStatement=Xur;var $ur=er(),aq=zf(),{isFor:wOe,isForStatement:Kur,isIfStatement:Yur,isStatement:Wur}=$ur;function Xur(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e);}function zur(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&Yur(IOe(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate));}function IOe(e){let{body:t}=e;return Wur(t)===!1?e:IOe(t)}function Jur(e){this.word("for"),this.space(),this.tokenChar(40);{let t=this.enterForStatementInit();this.tokenContext|=aq.TokenContext.forHead,this.print(e.init),t();}this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.tokenChar(59),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e);}function Qur(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e);}function OOe(e){this.word("for"),this.space();let t=e.type==="ForOfStatement";t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{let r=t?null:this.enterForStatementInit();this.tokenContext|=t?aq.TokenContext.forOfHead:aq.TokenContext.forInHead,this.print(e.left),r==null||r();}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e);}Kn.ForInStatement=OOe;Kn.ForOfStatement=OOe;function Zur(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon();}function CO(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon();}function elr(e){this.word("break"),CO(this,e.label);}function tlr(e){this.word("continue"),CO(this,e.label);}function rlr(e){this.word("return"),CO(this,e.argument);}function nlr(e){this.word("throw"),CO(this,e.argument);}function ilr(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body);}function slr(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer));}function alr(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body);}function olr(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,{indent:!0,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return -1}}),this.rightBrace(e);}function ulr(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,{indent:!0}));}function llr(){this.word("debugger"),this.semicolon();}function clr(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;r==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word(r,r==="using"),this.space();let n=!1;if(!wOe(t))for(let i of e.declarations)i.init&&(n=!0);if(this.printList(e.declarations,{separator:n?function(){this.tokenChar(44),this.newline();}:void 0,indent:e.declarations.length>1}),wOe(t)){if(Kur(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon();}function plr(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init));}});var NOe=chunkTKGT252T_js.c(Ro=>{Object.defineProperty(Ro,"__esModule",{value:!0});Ro.ClassAccessorProperty=Slr;Ro.ClassBody=ylr;Ro.ClassExpression=Ro.ClassDeclaration=mlr;Ro.ClassMethod=Elr;Ro.ClassPrivateMethod=blr;Ro.ClassPrivateProperty=Tlr;Ro.ClassProperty=glr;Ro.StaticBlock=_lr;Ro._classMethodHead=vlr;var flr=er(),{isExportDefaultDeclaration:hlr,isExportNamedDeclaration:dlr}=flr;function mlr(e,t){(!(hlr(t)||dlr(t))||!this._shouldPrintDecoratorsBeforeExport(t))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body);}function ylr(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else {this.newline();let t=this.enterDelimited();this.printSequence(e.body,{indent:!0}),t(),this.endsWith(10)||this.newline(),this.rightBrace(e);}}function glr(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon();}function Slr(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon();}function Tlr(e){this.printJoin(e.decorators),e.static&&(this.word("static"),this.space()),this.print(e.key),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon();}function Elr(e){this._classMethodHead(e),this.space(),this.print(e.body);}function blr(e){this._classMethodHead(e),this.space(),this.print(e.body);}function vlr(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this._methodHead(e);}function _lr(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,{indent:!0}),this.rightBrace(e));}});var ROe=chunkTKGT252T_js.c(Tu=>{Object.defineProperty(Tu,"__esModule",{value:!0});Tu.ArrowFunctionExpression=Mlr;Tu.FunctionDeclaration=Tu.FunctionExpression=Rlr;Tu._functionHead=Nlr;Tu._methodHead=Olr;Tu._param=Ilr;Tu._parameters=wlr;Tu._params=Clr;Tu._predicate=Dlr;var xlr=er(),Alr=zf(),{isIdentifier:Plr}=xlr;function Clr(e,t,r){this.print(e.typeParameters);let n=klr.call(this,t,r);n&&this.sourceIdentifierName(n.name,n.pos),this.tokenChar(40),this._parameters(e.params),this.tokenChar(41);let i=e.type==="ArrowFunctionExpression";this.print(e.returnType,i),this._noLineTerminator=i;}function wlr(e){let t=this.enterDelimited(),r=e.length;for(let n=0;n<r;n++)this._param(e[n]),n<e.length-1&&(this.tokenChar(44),this.space());t();}function Ilr(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation);}function Olr(e){let t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._params(e,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key,void 0);}function Dlr(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t));}function Nlr(e,t){e.async&&(this.word("async"),this._endsWithInnerRaw=!1,this.space()),this.word("function"),e.generator&&(this._endsWithInnerRaw=!1,this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),e.type!=="TSDeclareFunction"&&this._predicate(e);}function Rlr(e,t){this._functionHead(e,t),this.space(),this.print(e.body);}function Mlr(e,t){e.async&&(this.word("async",!0),this.space());let r;!this.format.retainLines&&e.params.length===1&&Plr(r=e.params[0])&&!Llr(e,r)?this.print(r,!0):this._params(e,void 0,t),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=Alr.TokenContext.arrowBody,this.print(e.body);}function Llr(e,t){var r,n;return !!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||(r=t.leadingComments)!=null&&r.length||(n=t.trailingComments)!=null&&n.length)}function klr(e,t){let r=e;if(!r&&t){let u=t.type;u==="VariableDeclarator"?r=t.id:u==="AssignmentExpression"||u==="AssignmentPattern"?r=t.left:u==="ObjectProperty"||u==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(u==="ClassPrivateProperty"||u==="ClassAccessorProperty")&&(r=t.key);}if(!r)return;let n;if(r.type==="Identifier"){var i,s;n={pos:(i=r.loc)==null?void 0:i.start,name:((s=r.loc)==null?void 0:s.identifierName)||r.name};}else if(r.type==="PrivateName"){var a;n={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name};}else if(r.type==="StringLiteral"){var o;n={pos:(o=r.loc)==null?void 0:o.start,name:r.value};}return n}});var oq=chunkTKGT252T_js.c(zs=>{Object.defineProperty(zs,"__esModule",{value:!0});zs.ExportAllDeclaration=zlr;zs.ExportDefaultDeclaration=Qlr;zs.ExportDefaultSpecifier=Klr;zs.ExportNamedDeclaration=Jlr;zs.ExportNamespaceSpecifier=Wlr;zs.ExportSpecifier=Ylr;zs.ImportAttribute=ecr;zs.ImportDeclaration=Zlr;zs.ImportDefaultSpecifier=$lr;zs.ImportExpression=rcr;zs.ImportNamespaceSpecifier=tcr;zs.ImportSpecifier=Glr;zs._printAttributes=Xlr;var Flr=er(),Blr=zf(),{isClassDeclaration:jlr,isExportDefaultSpecifier:Ulr,isExportNamespaceSpecifier:qlr,isImportDefaultSpecifier:Vlr,isImportNamespaceSpecifier:Hlr,isStatement:LOe}=Flr;function Glr(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local));}function $lr(e){this.print(e.local);}function Klr(e){this.print(e.exported);}function Ylr(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported));}function Wlr(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported);}var MOe=!1;function Xlr(e){let{importAttributesKeyword:t}=this.format,{attributes:r,assertions:n}=e;r&&!t&&!MOe&&(MOe=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let i=t==="assert"||!t&&n;if(this.word(i?"assert":"with"),this.space(),!i&&t!=="with"){this.printList(r||n);return}this.tokenChar(123),this.space(),this.printList(r||n),this.space(),this.tokenChar(125);}function zlr(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source),this.semicolon();}function kOe(e,t){jlr(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators);}function Jlr(e){if(kOe(this,e),this.word("export"),this.space(),e.declaration){let n=e.declaration;this.print(n),LOe(n)||this.semicolon();}else {e.exportKind==="type"&&(this.word("type"),this.space());let n=e.specifiers.slice(0),i=!1;for(;;){let s=n[0];if(Ulr(s)||qlr(s))i=!0,this.print(n.shift()),n.length&&(this.tokenChar(44),this.space());else break}if((n.length||!n.length&&!i)&&(this.tokenChar(123),n.length&&(this.space(),this.printList(n),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source);}this.semicolon();}}function Qlr(e){kOe(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=Blr.TokenContext.exportDefault;let t=e.declaration;this.print(t),LOe(t)||this.semicolon();}function Zlr(e){var t,r;this.word("import"),this.space();let n=e.importKind==="type"||e.importKind==="typeof";n?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let i=e.specifiers.slice(0),s=!!i.length;for(;s;){let a=i[0];if(Vlr(a)||Hlr(a))this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}i.length?(this.tokenChar(123),this.space(),this.printList(i),this.space(),this.tokenChar(125)):n&&!s&&(this.tokenChar(123),this.tokenChar(125)),(s||n)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source),this.semicolon();}function ecr(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value);}function tcr(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local);}function rcr(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),this.tokenChar(41);}});var UOe=chunkTKGT252T_js.c((hdn,jOe)=>{var FOe={},ncr=FOe.hasOwnProperty,BOe=(e,t)=>{for(let r in e)ncr.call(e,r)&&t(r,e[r]);},icr=(e,t)=>(t&&BOe(t,(r,n)=>{e[r]=n;}),e),scr=(e,t)=>{let r=e.length,n=-1;for(;++n<r;)t(e[n]);},wO=e=>"\\u"+("0000"+e).slice(-4),Uv=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},qv=FOe.toString,acr=Array.isArray,ocr=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),ucr=e=>qv.call(e)=="[object Object]",lcr=e=>typeof e=="string"||qv.call(e)=="[object String]",ccr=e=>typeof e=="number"||qv.call(e)=="[object Number]",pcr=e=>typeof e=="function",fcr=e=>qv.call(e)=="[object Map]",hcr=e=>qv.call(e)=="[object Set]",dcr={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},mcr=/[\\\b\f\n\r\t]/,ycr=/[0-9]/,gcr=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Scr=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,Tcr=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,Jf=(e,t)=>{let r=()=>{l=u,++t.indentLevel,u=t.indent.repeat(t.indentLevel);},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;i&&(n.quotes="double",n.wrap=!0),t=icr(n,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let s=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,u=t.indent.repeat(t.indentLevel),l="",c=t.__inline1__,p=t.__inline2__,h=a?"":`
`,f,d=!0,m=t.numbers=="binary",y=t.numbers=="octal",g=t.numbers=="decimal",v=t.numbers=="hexadecimal";if(i&&e&&pcr(e.toJSON)&&(e=e.toJSON()),!lcr(e)){if(fcr(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Jf(Array.from(e),t)+")");if(hcr(e))return e.size==0?"new Set()":"new Set("+Jf(Array.from(e),t)+")";if(ocr(e))return e.length==0?"Buffer.from([])":"Buffer.from("+Jf(Array.from(e),t)+")";if(acr(e))return f=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),p||r(),scr(e,S=>{d=!1,p&&(t.__inline2__=!1),f.push((a||p?"":u)+Jf(S,t));}),d?"[]":p?"["+f.join(", ")+"]":"["+h+f.join(","+h)+h+(a?"":l)+"]";if(ccr(e)){if(i)return JSON.stringify(e);if(g)return String(e);if(v){let S=e.toString(16);return o||(S=S.toUpperCase()),"0x"+S}if(m)return "0b"+e.toString(2);if(y)return "0o"+e.toString(8)}else return ucr(e)?(f=[],t.wrap=!0,r(),BOe(e,(S,x)=>{d=!1,f.push((a?"":u)+Jf(S,t)+":"+(a?"":" ")+Jf(x,t));}),d?"{}":"{"+h+f.join(","+h)+h+(a?"":l)+"}"):i?JSON.stringify(e)||"null":String(e)}let E=t.escapeEverything?Scr:Tcr;return f=e.replace(E,(S,x,b,A,D,P)=>{if(x){if(t.minimal)return x;let X=x.charCodeAt(0),oe=x.charCodeAt(1);if(t.es6){let le=(X-55296)*1024+oe-56320+65536;return "\\u{"+Uv(le,o)+"}"}return wO(Uv(X,o))+wO(Uv(oe,o))}if(b)return wO(Uv(b.charCodeAt(0),o));if(S=="\0"&&!i&&!ycr.test(P.charAt(D+1)))return "\\0";if(A)return A==s||t.escapeEverything?"\\"+A:A;if(mcr.test(S))return dcr[S];if(t.minimal&&!gcr.test(S))return S;let V=Uv(S.charCodeAt(0),o);return i||V.length>2?wO(V):"\\x"+("00"+V).slice(-2)}),s=="`"&&(f=f.replace(/\$\{/g,"\\${")),t.isScriptContext&&(f=f.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,i?"\\u003C!--":"\\x3C!--")),t.wrap&&(f=s+f+s),f};Jf.version="3.0.2";jOe.exports=Jf;});var lq=chunkTKGT252T_js.c(On=>{Object.defineProperty(On,"__esModule",{value:!0});On.ArgumentPlaceholder=_cr;On.ArrayPattern=On.ArrayExpression=wcr;On.BigIntLiteral=kcr;On.BooleanLiteral=Ncr;On.DecimalLiteral=Fcr;On.Identifier=vcr;On.NullLiteral=Rcr;On.NumericLiteral=Mcr;On.ObjectPattern=On.ObjectExpression=Acr;On.ObjectMethod=Pcr;On.ObjectProperty=Ccr;On.PipelineBareFunction=Ucr;On.PipelinePrimaryTopicReference=qcr;On.PipelineTopicExpression=jcr;On.RecordExpression=Icr;On.RegExpLiteral=Dcr;On.SpreadElement=On.RestElement=xcr;On.StringLiteral=Lcr;On.TopicReference=Bcr;On.TupleExpression=Ocr;var Ecr=er(),VOe=UOe(),{isAssignmentPattern:bcr,isIdentifier:uq}=Ecr;function vcr(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name),this.word(e.name);}function _cr(){this.tokenChar(63);}function xcr(e){this.token("..."),this.print(e.argument);}function Acr(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,{indent:!0,statement:!0}),this.space(),r();}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125);}function Pcr(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body);}function Ccr(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else {if(bcr(e.value)&&uq(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&uq(e.key)&&uq(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value);}function wcr(e){let t=e.elements,r=t.length;this.tokenChar(91);let n=this.enterDelimited();for(let i=0;i<t.length;i++){let s=t[i];s?(i>0&&this.space(),this.print(s),i<r-1&&this.tokenChar(44)):this.tokenChar(44);}n(),this.tokenChar(93);}function Icr(e){let t=e.properties,r,n;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",n="|}";else {if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",n="}";}this.token(r),t.length&&(this.space(),this.printList(t,{indent:!0,statement:!0}),this.space()),this.token(n);}function Ocr(e){let t=e.elements,r=t.length,n,i;if(this.format.recordAndTupleSyntaxType==="bar")n="[|",i="|]";else if(this.format.recordAndTupleSyntaxType==="hash")n="#[",i="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(n);for(let s=0;s<t.length;s++){let a=t[s];a&&(s>0&&this.space(),this.print(a),s<r-1&&this.tokenChar(44));}this.token(i);}function Dcr(e){this.word(`/${e.pattern}/${e.flags}`);}function Ncr(e){this.word(e.value?"true":"false");}function Rcr(){this.word("null");}function Mcr(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,n=e.value,i=n+"";r.numbers?this.number(VOe(n,r),n):t==null?this.number(i,n):this.format.minified?this.number(t.length<i.length?t:i,n):this.number(t,n);}function Lcr(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=VOe(e.value,this.format.jsescOption);this.token(r);}function kcr(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n");}function Fcr(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m");}var qOe=new Set(["^^","@@","^","%","#"]);function Bcr(){let{topicToken:e}=this.format;if(qOe.has(e))this.token(e);else {let t=JSON.stringify(e),r=Array.from(qOe,n=>JSON.stringify(n));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function jcr(e){this.print(e.expression);}function Ucr(e){this.print(e.callee);}function qcr(){this.tokenChar(35);}});var GOe=chunkTKGT252T_js.c(ze=>{Object.defineProperty(ze,"__esModule",{value:!0});ze.AnyTypeAnnotation=Kcr;ze.ArrayTypeAnnotation=Ycr;ze.BooleanLiteralTypeAnnotation=Xcr;ze.BooleanTypeAnnotation=Wcr;ze.DeclareClass=Jcr;ze.DeclareExportAllDeclaration=upr;ze.DeclareExportDeclaration=opr;ze.DeclareFunction=Qcr;ze.DeclareInterface=tpr;ze.DeclareModule=rpr;ze.DeclareModuleExports=npr;ze.DeclareOpaqueType=spr;ze.DeclareTypeAlias=ipr;ze.DeclareVariable=apr;ze.DeclaredPredicate=epr;ze.EmptyTypeAnnotation=Opr;ze.EnumBooleanBody=cpr;ze.EnumBooleanMember=mpr;ze.EnumDeclaration=lpr;ze.EnumDefaultedMember=dpr;ze.EnumNumberBody=ppr;ze.EnumNumberMember=ypr;ze.EnumStringBody=fpr;ze.EnumStringMember=gpr;ze.EnumSymbolBody=hpr;ze.ExistsTypeAnnotation=Tpr;ze.FunctionTypeAnnotation=Epr;ze.FunctionTypeParam=bpr;ze.IndexedAccessType=tfr;ze.InferredPredicate=Zcr;ze.InterfaceDeclaration=Apr;ze.GenericTypeAnnotation=ze.ClassImplements=ze.InterfaceExtends=vpr;ze.InterfaceTypeAnnotation=Cpr;ze.IntersectionTypeAnnotation=wpr;ze.MixedTypeAnnotation=Ipr;ze.NullLiteralTypeAnnotation=zcr;ze.NullableTypeAnnotation=Dpr;Object.defineProperty(ze,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return HOe.NumericLiteral}});ze.NumberTypeAnnotation=Npr;ze.ObjectTypeAnnotation=Vpr;ze.ObjectTypeCallProperty=Gpr;ze.ObjectTypeIndexer=$pr;ze.ObjectTypeInternalSlot=Hpr;ze.ObjectTypeProperty=Kpr;ze.ObjectTypeSpreadProperty=Ypr;ze.OpaqueType=qpr;ze.OptionalIndexedAccessType=rfr;ze.QualifiedTypeIdentifier=Wpr;Object.defineProperty(ze,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return HOe.StringLiteral}});ze.StringTypeAnnotation=Rpr;ze.SymbolTypeAnnotation=Xpr;ze.ThisTypeAnnotation=Mpr;ze.TupleTypeAnnotation=Lpr;ze.TypeAlias=Fpr;ze.TypeAnnotation=Bpr;ze.TypeCastExpression=Qpr;ze.TypeParameter=Upr;ze.TypeParameterDeclaration=ze.TypeParameterInstantiation=jpr;ze.TypeofTypeAnnotation=kpr;ze.UnionTypeAnnotation=Jpr;ze.Variance=Zpr;ze.VoidTypeAnnotation=efr;ze._interfaceish=_pr;ze._variance=xpr;var Vcr=er(),Hcr=oq(),Gcr=zf(),HOe=lq(),{isDeclareExportDeclaration:IO,isStatement:$cr}=Vcr;function Kcr(){this.word("any");}function Ycr(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93);}function Wcr(){this.word("boolean");}function Xcr(e){this.word(e.value?"true":"false");}function zcr(){this.word("null");}function Jcr(e,t){IO(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e);}function Qcr(e,t){IO(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon();}function Zcr(){this.tokenChar(37),this.word("checks");}function epr(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41);}function tpr(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e);}function rpr(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body);}function npr(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation);}function ipr(e){this.word("declare"),this.space(),this.TypeAlias(e);}function spr(e,t){IO(t)||(this.word("declare"),this.space()),this.OpaqueType(e);}function apr(e,t){IO(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon();}function opr(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),Spr.call(this,e);}function upr(e){this.word("declare"),this.space(),Hcr.ExportAllDeclaration.call(this,e);}function lpr(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r);}function OO(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space();}function DO(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let n of r)e.print(n),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}");}function cpr(e){let{explicitType:t}=e;OO(this,"boolean",t),DO(this,e);}function ppr(e){let{explicitType:t}=e;OO(this,"number",t),DO(this,e);}function fpr(e){let{explicitType:t}=e;OO(this,"string",t),DO(this,e);}function hpr(e){OO(this,"symbol",!0),DO(this,e);}function dpr(e){let{id:t}=e;this.print(t),this.tokenChar(44);}function cq(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",");}function mpr(e){cq(this,e);}function ypr(e){cq(this,e);}function gpr(e){cq(this,e);}function Spr(e){if(e.declaration){let t=e.declaration;this.print(t),$cr(t)||this.semicolon();}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon();}function Tpr(){this.tokenChar(42);}function Epr(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let r=t==null?void 0:t.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType);}function bpr(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation);}function vpr(e){this.print(e.id),this.print(e.typeParameters,!0);}function _pr(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),e.type==="DeclareClass"){var r,n;(r=e.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),(n=e.implements)!=null&&n.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements));}this.space(),this.print(e.body);}function xpr(e){var t;let r=(t=e.variance)==null?void 0:t.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45));}function Apr(e){this.word("interface"),this.space(),this._interfaceish(e);}function Ppr(){this.space(),this.tokenChar(38),this.space();}function Cpr(e){var t;this.word("interface"),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body);}function wpr(e){this.printJoin(e.types,{separator:Ppr});}function Ipr(){this.word("mixed");}function Opr(){this.word("empty");}function Dpr(e){this.tokenChar(63),this.print(e.typeAnnotation);}function Npr(){this.word("number");}function Rpr(){this.word("string");}function Mpr(){this.word("this");}function Lpr(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93);}function kpr(e){this.word("typeof"),this.space(),this.print(e.argument);}function Fpr(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon();}function Bpr(e,t){this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression"?this.tokenContext|=Gcr.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation);}function jpr(e){this.tokenChar(60),this.printList(e.params,{}),this.tokenChar(62);}function Upr(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default));}function qpr(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon();}function Vpr(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,{addNewlines(r){if(r&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space());}}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125);}function Hpr(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value);}function Gpr(e){e.static&&(this.word("static"),this.space()),this.print(e.value);}function $pr(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value);}function Kpr(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),(e.kind==="get"||e.kind==="set")&&(this.word(e.kind),this.space()),this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value);}function Ypr(e){this.token("..."),this.print(e.argument);}function Wpr(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id);}function Xpr(){this.word("symbol");}function zpr(){this.space(),this.tokenChar(124),this.space();}function Jpr(e){this.printJoin(e.types,{separator:zpr});}function Qpr(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41);}function Zpr(e){e.kind==="plus"?this.tokenChar(43):this.tokenChar(45);}function efr(){this.word("void");}function tfr(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93);}function rfr(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93);}});var $Oe=chunkTKGT252T_js.c(Fc=>{Object.defineProperty(Fc,"__esModule",{value:!0});Fc.BlockStatement=sfr;Fc.Directive=afr;Fc.DirectiveLiteral=lfr;Fc.File=nfr;Fc.InterpreterDirective=cfr;Fc.Placeholder=pfr;Fc.Program=ifr;function nfr(e){e.program&&this.print(e.program.interpreter),this.print(e.program);}function ifr(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();let r=(t=e.directives)==null?void 0:t.length;if(r){var n;let i=e.body.length?2:1;this.printSequence(e.directives,{trailingCommentsLineOffset:i}),(n=e.directives[r-1].trailingComments)!=null&&n.length||this.newline(i);}this.printSequence(e.body);}function sfr(e){var t;this.tokenChar(123);let r=this.enterDelimited(),n=(t=e.directives)==null?void 0:t.length;if(n){var i;let s=e.body.length?2:1;this.printSequence(e.directives,{indent:!0,trailingCommentsLineOffset:s}),(i=e.directives[n-1].trailingComments)!=null&&i.length||this.newline(s);}this.printSequence(e.body,{indent:!0}),r(),this.rightBrace(e);}function afr(e){this.print(e.value),this.semicolon();}var ofr=/(?:^|[^\\])(?:\\\\)*'/,ufr=/(?:^|[^\\])(?:\\\\)*"/;function lfr(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!ufr.test(r))this.token(`"${r}"`);else if(!ofr.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function cfr(e){this.token(`#!${e.value}`),this.newline(1,!0);}function pfr(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon();}});var KOe=chunkTKGT252T_js.c(Zi=>{Object.defineProperty(Zi,"__esModule",{value:!0});Zi.JSXAttribute=ffr;Zi.JSXClosingElement=_fr;Zi.JSXClosingFragment=Cfr;Zi.JSXElement=Efr;Zi.JSXEmptyExpression=xfr;Zi.JSXExpressionContainer=gfr;Zi.JSXFragment=Afr;Zi.JSXIdentifier=hfr;Zi.JSXMemberExpression=mfr;Zi.JSXNamespacedName=dfr;Zi.JSXOpeningElement=vfr;Zi.JSXOpeningFragment=Pfr;Zi.JSXSpreadAttribute=yfr;Zi.JSXSpreadChild=Sfr;Zi.JSXText=Tfr;function ffr(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value));}function hfr(e){this.word(e.name);}function dfr(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name);}function mfr(e){this.print(e.object),this.tokenChar(46),this.print(e.property);}function yfr(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e);}function gfr(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e);}function Sfr(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e);}function Tfr(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0);}function Efr(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement);}}function bfr(){this.space();}function vfr(e){this.tokenChar(60),this.print(e.name),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,{separator:bfr})),e.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62);}function _fr(e){this.token("</"),this.print(e.name),this.tokenChar(62);}function xfr(){this.printInnerComments();}function Afr(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment);}function Pfr(){this.tokenChar(60),this.tokenChar(62);}function Cfr(){this.token("</"),this.tokenChar(62);}});var XOe=chunkTKGT252T_js.c(qe=>{Object.defineProperty(qe,"__esModule",{value:!0});qe.TSAnyKeyword=qfr;qe.TSArrayType=lhr;qe.TSSatisfiesExpression=qe.TSAsExpression=Chr;qe.TSBigIntKeyword=Vfr;qe.TSBooleanKeyword=Kfr;qe.TSCallSignatureDeclaration=Lfr;qe.TSInterfaceHeritage=qe.TSExpressionWithTypeArguments=qe.TSClassImplements=_hr;qe.TSConditionalType=yhr;qe.TSConstructSignatureDeclaration=kfr;qe.TSConstructorType=rhr;qe.TSDeclareFunction=Nfr;qe.TSDeclareMethod=Rfr;qe.TSEnumDeclaration=Ohr;qe.TSEnumMember=Dhr;qe.TSExportAssignment=Bhr;qe.TSExternalModuleReference=khr;qe.TSFunctionType=thr;qe.TSImportEqualsDeclaration=Lhr;qe.TSImportType=Mhr;qe.TSIndexSignature=Ufr;qe.TSIndexedAccessType=Ehr;qe.TSInferType=ghr;qe.TSInstantiationExpression=Ihr;qe.TSInterfaceBody=Ahr;qe.TSInterfaceDeclaration=xhr;qe.TSIntersectionType=mhr;qe.TSIntrinsicKeyword=Zfr;qe.TSLiteralType=vhr;qe.TSMappedType=bhr;qe.TSMethodSignature=jfr;qe.TSModuleBlock=Rhr;qe.TSModuleDeclaration=Nhr;qe.TSNamedTupleMember=hhr;qe.TSNamespaceExportDeclaration=jhr;qe.TSNeverKeyword=Qfr;qe.TSNonNullExpression=Fhr;qe.TSNullKeyword=Jfr;qe.TSNumberKeyword=Gfr;qe.TSObjectKeyword=$fr;qe.TSOptionalType=phr;qe.TSParameterProperty=Dfr;qe.TSParenthesizedType=Shr;qe.TSPropertySignature=Ffr;qe.TSQualifiedName=Mfr;qe.TSRestType=fhr;qe.TSStringKeyword=Yfr;qe.TSSymbolKeyword=Wfr;qe.TSThisType=ehr;qe.TSTupleType=chr;qe.TSTypeAliasDeclaration=Phr;qe.TSTypeAnnotation=wfr;qe.TSTypeAssertion=whr;qe.TSTypeLiteral=ohr;qe.TSTypeOperator=Thr;qe.TSTypeParameter=Ofr;qe.TSTypeParameterDeclaration=qe.TSTypeParameterInstantiation=Ifr;qe.TSTypePredicate=shr;qe.TSTypeQuery=ahr;qe.TSTypeReference=ihr;qe.TSUndefinedKeyword=zfr;qe.TSUnionType=dhr;qe.TSUnknownKeyword=Hfr;qe.TSVoidKeyword=Xfr;qe.tsPrintClassMemberModifiers=qhr;qe.tsPrintFunctionOrConstructorType=nhr;qe.tsPrintPropertyOrMethodName=Bfr;qe.tsPrintSignatureDeclarationBase=Uhr;qe.tsPrintTypeLiteralOrInterfaceBody=uhr;function wfr(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation);}function Ifr(e,t){this.tokenChar(60),this.printList(e.params,{}),t.type==="ArrowFunctionExpression"&&e.params.length===1&&this.tokenChar(44),this.tokenChar(62);}function Ofr(e){e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default));}function Dfr(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter);}function Nfr(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon();}function Rfr(e){this._classMethodHead(e),this.semicolon();}function Mfr(e){this.print(e.left),this.tokenChar(46),this.print(e.right);}function Lfr(e){this.tsPrintSignatureDeclarationBase(e),this.semicolon();}function kfr(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.semicolon();}function Ffr(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),this.semicolon();}function Bfr(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63);}function jfr(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.semicolon();}function Ufr(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters),this.tokenChar(93),this.print(e.typeAnnotation),this.semicolon();}function qfr(){this.word("any");}function Vfr(){this.word("bigint");}function Hfr(){this.word("unknown");}function Gfr(){this.word("number");}function $fr(){this.word("object");}function Kfr(){this.word("boolean");}function Yfr(){this.word("string");}function Wfr(){this.word("symbol");}function Xfr(){this.word("void");}function zfr(){this.word("undefined");}function Jfr(){this.word("null");}function Qfr(){this.word("never");}function Zfr(){this.word("intrinsic");}function ehr(){this.word("this");}function thr(e){this.tsPrintFunctionOrConstructorType(e);}function rhr(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e);}function nhr(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),this._parameters(r),this.tokenChar(41),this.space(),this.token("=>"),this.space();let n=e.typeAnnotation;this.print(n.typeAnnotation);}function ihr(e){this.print(e.typeName,!0),this.print(e.typeParameters,!0);}function shr(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation));}function ahr(e){this.word("typeof"),this.space(),this.print(e.exprName),e.typeParameters&&this.print(e.typeParameters);}function ohr(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e);}function uhr(e,t){pq(this,e,t);}function pq(e,t,r){if(e.token("{"),t.length){e.indent(),e.newline();for(let n of t)e.print(n),e.newline();e.dedent();}e.rightBrace(r);}function lhr(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93);}function chr(e){this.tokenChar(91),this.printList(e.elementTypes),this.tokenChar(93);}function phr(e){this.print(e.typeAnnotation),this.tokenChar(63);}function fhr(e){this.token("..."),this.print(e.typeAnnotation);}function hhr(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType);}function dhr(e){WOe(this,e,"|");}function mhr(e){WOe(this,e,"&");}function WOe(e,t,r){e.printJoin(t.types,{separator(){this.space(),this.token(r),this.space();}});}function yhr(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType);}function ghr(e){this.word("infer"),this.print(e.typeParameter);}function Shr(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41);}function Thr(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation);}function Ehr(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93);}function bhr(e){let{nameType:t,optional:r,readonly:n,typeAnnotation:i}=e;this.tokenChar(123),this.space(),n&&(YOe(this,n),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),r&&(YOe(this,r),this.tokenChar(63)),i&&(this.tokenChar(58),this.space(),this.print(i)),this.space(),this.tokenChar(125);}function YOe(e,t){t!==!0&&e.token(t);}function vhr(e){this.print(e.literal);}function _hr(e){this.print(e.expression),this.print(e.typeParameters);}function xhr(e){let{declare:t,id:r,typeParameters:n,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(n),i!=null&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i)),this.space(),this.print(s);}function Ahr(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e);}function Phr(e){let{declare:t,id:r,typeParameters:n,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(n),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon();}function Chr(e){let{type:t,expression:r,typeAnnotation:n}=e;this.print(r,!0),this.space(),this.word(t==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(n);}function whr(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r);}function Ihr(e){this.print(e.expression),this.print(e.typeParameters);}function Ohr(e){let{declare:t,const:r,id:n,members:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(n),this.space(),pq(this,i,e);}function Dhr(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r)),this.tokenChar(44);}function Nhr(e){let{declare:t,id:r}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(r.type==="Identifier"?"namespace":"module"),this.space()),this.print(r),!e.body){this.semicolon();return}let n=e.body;for(;n.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(n.id),n=n.body;this.space(),this.print(n);}function Rhr(e){pq(this,e.body,e);}function Mhr(e){let{argument:t,qualifier:r,typeParameters:n}=e;this.word("import"),this.tokenChar(40),this.print(t),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r)),n&&this.print(n);}function Lhr(e){let{isExport:t,id:r,moduleReference:n}=e;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(n),this.semicolon();}function khr(e){this.token("require("),this.print(e.expression),this.tokenChar(41);}function Fhr(e){this.print(e.expression),this.tokenChar(33);}function Bhr(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon();}function jhr(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon();}function Uhr(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),this._parameters(r),this.tokenChar(41);let n=e.typeAnnotation;this.print(n);}function qhr(e){let t=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";t&&e.declare&&(this.word("declare"),this.space()),e.accessibility&&(this.word(e.accessibility),this.space()),e.static&&(this.word("static"),this.space()),e.override&&(this.word("override"),this.space()),e.abstract&&(this.word("abstract"),this.space()),t&&e.readonly&&(this.word("readonly"),this.space());}});var zOe=chunkTKGT252T_js.c(br=>{Object.defineProperty(br,"__esModule",{value:!0});var fq=AOe();Object.keys(fq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===fq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return fq[e]}});});var hq=COe();Object.keys(hq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===hq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return hq[e]}});});var dq=DOe();Object.keys(dq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===dq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return dq[e]}});});var mq=NOe();Object.keys(mq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===mq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return mq[e]}});});var yq=ROe();Object.keys(yq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===yq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return yq[e]}});});var gq=oq();Object.keys(gq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===gq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return gq[e]}});});var Sq=lq();Object.keys(Sq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===Sq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return Sq[e]}});});var Tq=GOe();Object.keys(Tq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===Tq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return Tq[e]}});});var Eq=$Oe();Object.keys(Eq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===Eq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return Eq[e]}});});var bq=KOe();Object.keys(bq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===bq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return bq[e]}});});var vq=XOe();Object.keys(vq).forEach(function(e){e==="default"||e==="__esModule"||e in br&&br[e]===vq[e]||Object.defineProperty(br,e,{enumerable:!0,get:function(){return vq[e]}});});});var eDe=chunkTKGT252T_js.c(NO=>{Object.defineProperty(NO,"__esModule",{value:!0});NO.default=void 0;var Vhr=uOe(),QOe=zf(),Hhr=er(),Ghr=zOe(),{isExpression:$hr,isFunction:Khr,isStatement:Yhr,isClassBody:Whr,isTSInterfaceBody:Xhr,isTSEnumDeclaration:zhr}=Hhr,Jhr=/e/i,Qhr=/\.0+$/,ZOe=/[\n\r\u2028\u2029]/,Zhr=/[\n\r\u2028\u2029]|\*\//;function JOe(e){return e.type==="CommentLine"||ZOe.test(e.value)}var{needsParens:edr}=QOe,Vv=class{constructor(t,r){this.inForStatementInit=!1,this.tokenContext=0,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=t,this._indentRepeat=t.indent.style.length,this._inputMap=r==null?void 0:r._inputMap,this._buf=new Vhr.default(r,t.indent.style[0]);}enterForStatementInit(){return this.inForStatementInit?()=>{}:(this.inForStatementInit=!0,()=>{this.inForStatementInit=!1;})}enterDelimited(){let t=this.inForStatementInit,r=this._noLineTerminatorAfterNode;return t===!1&&r===null?()=>{}:(this.inForStatementInit=!1,this._noLineTerminatorAfterNode=null,()=>{this.inForStatementInit=t,this._noLineTerminatorAfterNode=r;})}generate(t){return this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++;}dedent(){this.format.compact||this.format.concise||this._indent--;}semicolon(t=!1){this._maybeAddAuxComment(),t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1;}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125);}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41);}space(t=!1){if(!this.format.compact){if(t)this._space();else if(this._buf.hasContent()){let r=this.getLastChar();r!==32&&r!==10&&this._space();}}}word(t,r=!1){this.tokenContext=0,this._maybePrintInnerComments(),(this._endsWithWord||this._endsWithDiv&&t.charCodeAt(0)===47)&&this._space(),this._maybeAddAuxComment(),this._append(t,!1),this._endsWithWord=!0,this._noLineTerminator=r;}number(t,r){function n(i){if(i.length>2&&i.charCodeAt(0)===48){let s=i.charCodeAt(1);return s===98||s===111||s===120}return !1}this.word(t),this._endsWithInteger=Number.isInteger(r)&&!n(t)&&!Jhr.test(t)&&!Qhr.test(t)&&t.charCodeAt(t.length-1)!==46;}token(t,r=!1){this.tokenContext=0,this._maybePrintInnerComments();let n=this.getLastChar(),i=t.charCodeAt(0);(n===33&&(t==="--"||i===61)||i===43&&n===43||i===45&&n===45||i===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(t,r),this._noLineTerminator=!1;}tokenChar(t){this.tokenContext=0,this._maybePrintInnerComments();let r=this.getLastChar();(t===43&&r===43||t===45&&r===45||t===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(t),this._noLineTerminator=!1;}newline(t=1,r){if(!(t<=0)){if(!r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let n=0;n<t;n++)this._newline();}}endsWith(t){return this.getLastChar()===t}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline();}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r);}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r));}sourceWithOffset(t,r,n){r&&(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,n));}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;let n=this._buf._sourcePosition;n.identifierNamePos=r,n.identifierName=t;}_space(){this._queue(32);}_newline(){this._queue(10);}_append(t,r){this._maybeIndent(t.charCodeAt(0)),this._buf.append(t,r),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1;}_appendChar(t){this._maybeIndent(t),this._buf.appendChar(t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1;}_queue(t){this._maybeIndent(t),this._buf.queue(t),this._endsWithWord=!1,this._endsWithInteger=!1;}_maybeIndent(t){this._indent&&t!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent());}_shouldIndent(t){if(this._indent&&t!==10&&this.endsWith(10))return !0}catchUp(t){if(!this.format.retainLines)return;let r=t-this._buf.getCurrentLine();for(let n=0;n<r;n++)this._newline();}_catchUp(t,r){var n;if(!this.format.retainLines)return;let i=r==null||(n=r[t])==null?void 0:n.line;if(i!=null){let s=i-this._buf.getCurrentLine();for(let a=0;a<s;a++)this._newline();}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(t){this._noLineTerminator=!0,this.print(t);}print(t,r,n){var i,s,a;if(!t)return;this._endsWithInnerRaw=!1;let o=t.type,u=this.format,l=u.concise;t._compact&&(u.concise=!0);let c=this[o];if(c===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(t.constructor.name)}`);let p=this._currentNode;this._currentNode=t;let h=this._insideAux;this._insideAux=t.loc==null,this._maybeAddAuxComment(this._insideAux&&!h);let f=(i=t.extra)==null?void 0:i.parenthesized,d=f&&u.retainFunctionParens&&o==="FunctionExpression"||edr(t,p,this.tokenContext,this.inForStatementInit);if(!d&&f&&(s=t.leadingComments)!=null&&s.length&&t.leadingComments[0].type==="CommentBlock")switch(p==null?void 0:p.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(p.callee!==t)break;default:d=!0;}let m=!1;!d&&this._noLineTerminator&&((a=t.leadingComments)!=null&&a.some(JOe)||this.format.retainLines&&t.loc&&t.loc.start.line>this._buf.getCurrentLine())&&(d=!0,m=!0);let y,g;if(!d&&(r||(r=p&&this._noLineTerminatorAfterNode===p&&QOe.isLastChild(p,t)),r)){var v;(v=t.trailingComments)!=null&&v.some(JOe)?$hr(t)&&(d=!0):(y=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=t);}d&&(this.tokenChar(40),m&&this.indent(),this._endsWithInnerRaw=!1,this.inForStatementInit&&(g=!0,this.inForStatementInit=!1),y=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(t,p);let E=o==="Program"||o==="File"?null:t.loc;this.exactSource(E,c.bind(this,t,p)),d?(this._printTrailingComments(t,p),m&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=r,g&&(this.inForStatementInit=!0)):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,p)):this._printTrailingComments(t,p,n),this._currentNode=p,u.concise=l,this._insideAux=h,y!==void 0&&(this._noLineTerminatorAfterNode=y),this._endsWithInnerRaw=!1;}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment();}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0);}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0);}getPossibleRaw(t){let r=t.extra;if((r==null?void 0:r.raw)!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r={}){if(!(t!=null&&t.length))return;let{indent:n}=r;if(n==null&&this.format.retainLines){var i;let c=(i=t[0].loc)==null?void 0:i.start.line;c!=null&&c!==this._buf.getCurrentLine()&&(n=!0);}n&&this.indent();let s={addNewlines:r.addNewlines,nextNodeStartLine:0},a=r.separator?r.separator.bind(this):null,o=t.length;for(let c=0;c<o;c++){let p=t[c];if(p&&(r.statement&&this._printNewline(c===0,s),this.print(p,void 0,r.trailingCommentsLineOffset||0),r.iterator==null||r.iterator(p,c),c<o-1&&(a==null||a()),r.statement)){var u;if((u=p.trailingComments)!=null&&u.length||(this._lastCommentLine=0),c+1===o)this.newline(1);else {var l;let h=t[c+1];s.nextNodeStartLine=((l=h.loc)==null?void 0:l.start.line)||0,this._printNewline(!0,s);}}}n&&this.dedent();}printAndIndentOnComments(t){let r=t.leadingComments&&t.leadingComments.length>0;r&&this.indent(),this.print(t),r&&this.dedent();}printBlock(t){let r=t.body;r.type!=="EmptyStatement"&&this.space(),this.print(r);}_printTrailingComments(t,r,n){let{innerComments:i,trailingComments:s}=t;i!=null&&i.length&&this._printComments(2,i,t,r,n),s!=null&&s.length&&this._printComments(2,s,t,r,n);}_printLeadingComments(t,r){let n=t.leadingComments;n!=null&&n.length&&this._printComments(0,n,t,r);}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0;}printInnerComments(){let t=this._currentNode,r=t.innerComments;if(!(r!=null&&r.length))return;let n=this.endsWith(32),i=this._indentInnerComments,s=this._printedComments.size;i&&this.indent(),this._printComments(1,r,t),n&&s!==this._printedComments.size&&this.space(),i&&this.dedent();}noIndentInnerCommentsHere(){this._indentInnerComments=!1;}printSequence(t,r={}){r.statement=!0,(r.indent)!=null||(r.indent=!1),this.printJoin(t,r);}printList(t,r={}){r.separator==null&&(r.separator=tdr),this.printJoin(t,r);}_printNewline(t,r){let n=this.format;if(n.retainLines||n.compact)return;if(n.concise){this.space();return}if(!t)return;let i=r.nextNodeStartLine,s=this._lastCommentLine;if(i>0&&s>0){let a=i-s;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1);}_shouldPrintComment(t){return t.ignore||this._printedComments.has(t)?0:this._noLineTerminator&&Zhr.test(t.value)?2:(this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0)}_printComment(t,r){let n=this._noLineTerminator,i=t.type==="CommentBlock",s=i&&r!==1&&!this._noLineTerminator;s&&this._buf.hasContent()&&r!==2&&this.newline(1);let a=this.getLastChar();a!==91&&a!==123&&a!==40&&this.space();let o;if(i){if(o=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var u;let l=(u=t.loc)==null?void 0:u.start.column;if(l){let c=new RegExp("\\n\\s{1,"+l+"}","g");o=o.replace(c,`
`);}if(this.format.concise)o=o.replace(/\n(?!$)/g,`
`);else {let c=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(c+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
${" ".repeat(c)}`);}}}else n?o=`/*${t.value}*/`:o=`//${t.value}`;this._endsWithDiv&&this._space(),this.source("start",t.loc),this._append(o,i),!i&&!n&&this.newline(1,!0),s&&r!==3&&this.newline(1);}_printComments(t,r,n,i,s=0){let a=n.loc,o=r.length,u=!!a,l=u?a.start.line:0,c=u?a.end.line:0,p=0,h=0,f=this._noLineTerminator?function(){}:this.newline.bind(this);for(let d=0;d<o;d++){let m=r[d],y=this._shouldPrintComment(m);if(y===2){u=!1;break}if(u&&m.loc&&y===1){let g=m.loc.start.line,v=m.loc.end.line;if(t===0){let E=0;d===0?this._buf.hasContent()&&(m.type==="CommentLine"||g!==v)&&(E=h=1):E=g-p,p=v,f(E),this._printComment(m,1),d+1===o&&(f(Math.max(l-p,h)),p=l);}else if(t===1){let E=g-(d===0?l:p);p=v,f(E),this._printComment(m,1),d+1===o&&(f(Math.min(1,c-p)),p=c);}else {let E=g-(d===0?c-s:p);p=v,f(E),this._printComment(m,1);}}else {if(u=!1,y!==1)continue;if(o===1){let g=m.loc?m.loc.start.line===m.loc.end.line:!ZOe.test(m.value),v=g&&!Yhr(n)&&!Whr(i)&&!Xhr(i)&&!zhr(i);t===0?this._printComment(m,v&&n.type!=="ObjectExpression"||g&&Khr(i,{body:n})?1:0):v&&t===2?this._printComment(m,1):this._printComment(m,0);}else t===1&&!(n.type==="ObjectExpression"&&n.properties.length>1)&&n.type!=="ClassBody"&&n.type!=="TSInterfaceBody"?this._printComment(m,d===0?2:d===o-1?3:0):this._printComment(m,0);}}t===2&&u&&p&&(this._lastCommentLine=p);}};Object.assign(Vv.prototype,Ghr);Vv.prototype.Noop=function(){};NO.default=Vv;function tdr(){this.tokenChar(44),this.space();}});var iDe=chunkTKGT252T_js.c(RO=>{Object.defineProperty(RO,"__esModule",{value:!0});RO.default=rdr;var tDe=oOe(),rDe=eDe();function nDe(e,t){let r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var n;r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.recordAndTupleSyntaxType=(n=t.recordAndTupleSyntaxType)!=null?n:"hash";}r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(o=>r.comments||o.includes("@license")||o.includes("@preserve")),r.compact==="auto"&&(r.compact=typeof e=="string"&&e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),r.compact&&(r.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:i,auxiliaryCommentAfter:s,shouldPrintComment:a}=r;return i&&!a(i)&&(r.auxiliaryCommentBefore=void 0),s&&!a(s)&&(r.auxiliaryCommentAfter=void 0),r}RO.CodeGenerator=class{constructor(t,r={},n){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=nDe(n,r),this._map=r.sourceMaps?new tDe.default(r,n):null;}generate(){return new rDe.default(this._format,this._map).generate(this._ast)}};function rdr(e,t={},r){let n=nDe(r,t),i=t.sourceMaps?new tDe.default(t,r):null;return new rDe.default(n,i).generate(e)}});var sDe=chunkTKGT252T_js.c(Mo=>{Object.defineProperty(Mo,"__esModule",{value:!0});Mo.find=adr;Mo.findParent=sdr;Mo.getAncestry=pdr;Mo.getDeepestCommonAncestorFrom=cdr;Mo.getEarliestCommonAncestorFrom=ldr;Mo.getFunctionParent=odr;Mo.getStatementParent=udr;Mo.inType=ddr;Mo.isAncestor=fdr;Mo.isDescendant=hdr;var ndr=er(),{VISITOR_KEYS:idr}=ndr;function sdr(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function adr(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function odr(){return this.findParent(e=>e.isFunction())}function udr(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath;}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function ldr(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,n){let i,s=idr[t.type];for(let a of n){let o=a[r+1];if(!i){i=o;continue}if(o.listKey&&i.listKey===o.listKey&&o.key<i.key){i=o;continue}let u=s.indexOf(i.parentKey),l=s.indexOf(o.parentKey);u>l&&(i=o);}return i})}function cdr(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,n,i,s=e.map(o=>{let u=[];do u.unshift(o);while((o=o.parentPath)&&o!==this);return u.length<r&&(r=u.length),u}),a=s[0];e:for(let o=0;o<r;o++){let u=a[o];for(let l of s)if(l[o]!==u)break e;n=o,i=u;}if(i)return t?t(i,n,s):i;throw new Error("Couldn't find intersection")}function pdr(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function fdr(e){return e.isDescendant(this)}function hdr(e){return !!this.findParent(t=>t===e)}function ddr(...e){let t=this;for(;t;){for(let r of e)if(t.node.type===r)return !0;t=t.parentPath;}return !1}});var xq=chunkTKGT252T_js.c(_q=>{Object.defineProperty(_q,"__esModule",{value:!0});_q.createUnionType=Tdr;var mdr=er(),{createFlowUnionType:aDe,createTSUnionType:oDe,createUnionTypeAnnotation:ydr,isFlowType:gdr,isTSType:Sdr}=mdr;function Tdr(e){{if(e.every(t=>gdr(t)))return aDe?aDe(e):ydr(e);if(e.every(t=>Sdr(t))&&oDe)return oDe(e)}}});var fDe=chunkTKGT252T_js.c(Aq=>{Object.defineProperty(Aq,"__esModule",{value:!0});Aq.default=xdr;var Edr=er(),lDe=xq(),{BOOLEAN_NUMBER_BINARY_OPERATORS:bdr,createTypeAnnotationBasedOnTypeof:vdr,numberTypeAnnotation:cDe,voidTypeAnnotation:_dr}=Edr;function xdr(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:Adr(t,this,e.name);if(e.name==="undefined")return _dr();if(e.name==="NaN"||e.name==="Infinity")return cDe();e.name;}function Adr(e,t,r){let n=[],i=[],s=uDe(e,t,i),a=pDe(e,t,r);if(a){let o=uDe(e,a.ifStatement);s=s.filter(u=>!o.includes(u)),n.push(a.typeAnnotation);}if(s.length){s.push(...i);for(let o of s)n.push(o.getTypeAnnotation());}if(n.length)return (0, lDe.createUnionType)(n)}function uDe(e,t,r){let n=e.constantViolations.slice();return n.unshift(e.path),n.filter(i=>{i=i.resolve();let s=i._guessExecutionStatusRelativeTo(t);return r&&s==="unknown"&&r.push(i),s==="before"})}function Pdr(e,t){let r=t.node.operator,n=t.get("right").resolve(),i=t.get("left").resolve(),s;if(i.isIdentifier({name:e})?s=n:n.isIdentifier({name:e})&&(s=i),s)return r==="==="?s.getTypeAnnotation():bdr.includes(r)?cDe():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(i.isUnaryExpression({operator:"typeof"})?(a=i,o=n):n.isUnaryExpression({operator:"typeof"})&&(a=n,o=i),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;let u=o.node.value;if(typeof u=="string")return vdr(u)}function Cdr(e,t,r){let n;for(;n=t.parentPath;){if(n.isIfStatement()||n.isConditionalExpression())return t.key==="test"?void 0:n;if(n.isFunction()&&n.parentPath.scope.getBinding(r)!==e)return;t=n;}}function pDe(e,t,r){let n=Cdr(e,t,r);if(!n)return;let s=[n.get("test")],a=[];for(let o=0;o<s.length;o++){let u=s[o];if(u.isLogicalExpression())u.node.operator==="&&"&&(s.push(u.get("left")),s.push(u.get("right")));else if(u.isBinaryExpression()){let l=Pdr(r,u);l&&a.push(l);}}return a.length?{typeAnnotation:(0, lDe.createUnionType)(a),ifStatement:n}:pDe(e,n,r)}});var EDe=chunkTKGT252T_js.c(jr=>{Object.defineProperty(jr,"__esModule",{value:!0});jr.ArrayExpression=gDe;jr.AssignmentExpression=zdr;jr.BinaryExpression=$dr;jr.BooleanLiteral=emr;jr.CallExpression=lmr;jr.ConditionalExpression=Ydr;jr.ClassDeclaration=jr.ClassExpression=jr.FunctionDeclaration=jr.ArrowFunctionExpression=jr.FunctionExpression=imr;Object.defineProperty(jr,"Identifier",{enumerable:!0,get:function(){return Idr.default}});jr.LogicalExpression=Kdr;jr.NewExpression=Vdr;jr.NullLiteral=tmr;jr.NumericLiteral=Zdr;jr.ObjectExpression=nmr;jr.ParenthesizedExpression=Xdr;jr.RegExpLiteral=rmr;jr.RestElement=SDe;jr.SequenceExpression=Wdr;jr.StringLiteral=Qdr;jr.TSAsExpression=yDe;jr.TSNonNullExpression=qdr;jr.TaggedTemplateExpression=cmr;jr.TemplateLiteral=Hdr;jr.TypeCastExpression=mDe;jr.UnaryExpression=Gdr;jr.UpdateExpression=Jdr;jr.VariableDeclarator=Udr;var wdr=er(),Idr=fDe(),dDe=xq(),{BOOLEAN_BINARY_OPERATORS:Odr,BOOLEAN_UNARY_OPERATORS:Ddr,NUMBER_BINARY_OPERATORS:Ndr,NUMBER_UNARY_OPERATORS:Rdr,STRING_UNARY_OPERATORS:Mdr,anyTypeAnnotation:hDe,arrayTypeAnnotation:Pq,booleanTypeAnnotation:Cq,buildMatchMemberExpression:MO,genericTypeAnnotation:Qf,identifier:um,nullLiteralTypeAnnotation:Ldr,numberTypeAnnotation:WS,stringTypeAnnotation:lm,tupleTypeAnnotation:kdr,unionTypeAnnotation:Fdr,voidTypeAnnotation:Bdr,isIdentifier:jdr}=wdr;function Udr(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function mDe(e){return e.typeAnnotation}mDe.validParent=!0;function yDe(e){return e.typeAnnotation}yDe.validParent=!0;function qdr(){return this.get("expression").getTypeAnnotation()}function Vdr(e){if(e.callee.type==="Identifier")return Qf(e.callee)}function Hdr(){return lm()}function Gdr(e){let t=e.operator;if(t==="void")return Bdr();if(Rdr.includes(t))return WS();if(Mdr.includes(t))return lm();if(Ddr.includes(t))return Cq()}function $dr(e){let t=e.operator;if(Ndr.includes(t))return WS();if(Odr.includes(t))return Cq();if(t==="+"){let r=this.get("right"),n=this.get("left");return n.isBaseType("number")&&r.isBaseType("number")?WS():n.isBaseType("string")||r.isBaseType("string")?lm():Fdr([lm(),WS()])}}function Kdr(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return (0, dDe.createUnionType)(e)}function Ydr(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return (0, dDe.createUnionType)(e)}function Wdr(){return this.get("expressions").pop().getTypeAnnotation()}function Xdr(){return this.get("expression").getTypeAnnotation()}function zdr(){return this.get("right").getTypeAnnotation()}function Jdr(e){let t=e.operator;if(t==="++"||t==="--")return WS()}function Qdr(){return lm()}function Zdr(){return WS()}function emr(){return Cq()}function tmr(){return Ldr()}function rmr(){return Qf(um("RegExp"))}function nmr(){return Qf(um("Object"))}function gDe(){return Qf(um("Array"))}function SDe(){return gDe()}SDe.validParent=!0;function imr(){return Qf(um("Function"))}var smr=MO("Array.from"),amr=MO("Object.keys"),omr=MO("Object.values"),umr=MO("Object.entries");function lmr(){let{callee:e}=this.node;return amr(e)?Pq(lm()):smr(e)||omr(e)||jdr(e,{name:"Array"})?Pq(hDe()):umr(e)?Pq(kdr([lm(),hDe()])):TDe(this.get("callee"))}function cmr(){return TDe(this.get("tag"))}function TDe(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?Qf(um("AsyncIterator")):Qf(um("Promise"));if(t.generator)return Qf(um("Iterator"));if(e.node.returnType)return e.node.returnType}}});var ADe=chunkTKGT252T_js.c(Zf=>{Object.defineProperty(Zf,"__esModule",{value:!0});Zf._getTypeAnnotation=xDe;Zf.baseTypeStrictlyMatches=Nmr;Zf.couldBeBaseType=Dmr;Zf.getTypeAnnotation=Imr;Zf.isBaseType=Omr;Zf.isGenericType=Rmr;var bDe=EDe(),pmr=er(),{anyTypeAnnotation:_De,isAnyTypeAnnotation:LO,isArrayTypeAnnotation:fmr,isBooleanTypeAnnotation:hmr,isEmptyTypeAnnotation:dmr,isFlowBaseAnnotation:mmr,isGenericTypeAnnotation:ymr,isIdentifier:vDe,isMixedTypeAnnotation:gmr,isNumberTypeAnnotation:Smr,isStringTypeAnnotation:Tmr,isTSArrayType:Emr,isTSTypeAnnotation:bmr,isTSTypeReference:vmr,isTupleTypeAnnotation:_mr,isTypeAnnotation:xmr,isUnionTypeAnnotation:Amr,isVoidTypeAnnotation:Pmr,stringTypeAnnotation:Cmr,voidTypeAnnotation:wmr}=pmr;function Imr(){let e=this.getData("typeAnnotation");return e!=null||(e=xDe.call(this)||_De(),(xmr(e)||bmr(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var wq=new WeakSet;function xDe(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,n=r.parentPath;return r.key==="left"&&n.isForInStatement()?Cmr():r.key==="left"&&n.isForOfStatement()?_De():wmr()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!wq.has(e)){wq.add(e);try{var t;let r=bDe[e.type];if(r)return r.call(this,e);if(r=bDe[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{wq.delete(e);}}}function Omr(e,t){return Iq(e,this.getTypeAnnotation(),t)}function Iq(e,t,r){if(e==="string")return Tmr(t);if(e==="number")return Smr(t);if(e==="boolean")return hmr(t);if(e==="any")return LO(t);if(e==="mixed")return gmr(t);if(e==="empty")return dmr(t);if(e==="void")return Pmr(t);if(r)return !1;throw new Error(`Unknown base type ${e}`)}function Dmr(e){let t=this.getTypeAnnotation();if(LO(t))return !0;if(Amr(t)){for(let r of t.types)if(LO(r)||Iq(e,r,!0))return !0;return !1}else return Iq(e,t,!0)}function Nmr(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return !LO(t)&&mmr(t)?r.type===t.type:!1}function Rmr(e){let t=this.getTypeAnnotation();return e==="Array"&&(Emr(t)||fmr(t)||_mr(t))?!0:ymr(t)&&vDe(t.id,{name:e})||vmr(t)&&vDe(t.typeName,{name:e})}});var CDe=chunkTKGT252T_js.c((Idn,PDe)=>{PDe.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};});var Oq=chunkTKGT252T_js.c((Odn,DDe)=>{var cm=CDe(),ODe={};for(kO in cm)cm.hasOwnProperty(kO)&&(ODe[cm[kO]]=kO);var kO,ut=DDe.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Js in ut)if(ut.hasOwnProperty(Js)){if(!("channels"in ut[Js]))throw new Error("missing channels property: "+Js);if(!("labels"in ut[Js]))throw new Error("missing channel labels property: "+Js);if(ut[Js].labels.length!==ut[Js].channels)throw new Error("channel and label counts mismatch: "+Js);wDe=ut[Js].channels,IDe=ut[Js].labels,delete ut[Js].channels,delete ut[Js].labels,Object.defineProperty(ut[Js],"channels",{value:wDe}),Object.defineProperty(ut[Js],"labels",{value:IDe});}var wDe,IDe,Js;ut.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),a=s-i,o,u,l;return s===i?o=0:t===s?o=(r-n)/a:r===s?o=2+(n-t)/a:n===s&&(o=4+(t-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),l=(i+s)/2,s===i?u=0:l<=.5?u=a/(s+i):u=a/(2-s-i),[o,u*100,l*100]};ut.rgb.hsv=function(e){var t,r,n,i,s,a=e[0]/255,o=e[1]/255,u=e[2]/255,l=Math.max(a,o,u),c=l-Math.min(a,o,u),p=function(h){return (l-h)/6/c+1/2};return c===0?i=s=0:(s=c/l,t=p(a),r=p(o),n=p(u),a===l?i=n-r:o===l?i=1/3+t-n:u===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};ut.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=ut.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};ut.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,a,o;return o=Math.min(1-t,1-r,1-n),i=(1-t-o)/(1-o)||0,s=(1-r-o)/(1-o)||0,a=(1-n-o)/(1-o)||0,[i*100,s*100,a*100,o*100]};function Mmr(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}ut.rgb.keyword=function(e){var t=ODe[e];if(t)return t;var r=1/0,n;for(var i in cm)if(cm.hasOwnProperty(i)){var s=cm[i],a=Mmr(e,s);a<r&&(r=a,n=i);}return n};ut.keyword.rgb=function(e){return cm[e]};ut.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return [i*100,s*100,a*100]};ut.rgb.lab=function(e){var t=ut.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,a,o;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,a=500*(r-n),o=200*(n-i),[s,a,o]};ut.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,a,o,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,o=[0,0,0];for(var l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?u=i+(s-i)*6*a:2*a<1?u=s:3*a<2?u=i+(s-i)*(2/3-a)*6:u=i,o[l]=u*255;return o};ut.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),a,o;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r),[t,a*100,o*100]};ut.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),a=255*n*(1-r),o=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return [n,u,a];case 1:return [o,n,a];case 2:return [a,n,u];case 3:return [a,o,n];case 4:return [u,a,n];case 5:return [n,a,o]}};ut.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,a,o;return o=(2-r)*n,s=(2-r)*i,a=r*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,a*100,o*100]};ut.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,a,o,u;i>1&&(r/=i,n/=i),s=Math.floor(6*t),a=1-n,o=6*t-s,s&1&&(o=1-o),u=r+o*(a-r);var l,c,p;switch(s){default:case 6:case 0:l=a,c=u,p=r;break;case 1:l=u,c=a,p=r;break;case 2:l=r,c=a,p=u;break;case 3:l=r,c=u,p=a;break;case 4:l=u,c=r,p=a;break;case 5:l=a,c=r,p=u;break}return [l*255,c*255,p*255]};ut.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,a,o;return s=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),[s*255,a*255,o*255]};ut.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,a;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),a=Math.min(Math.max(0,a),1),[i*255,s*255,a*255]};ut.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),a=200*(r-n),[i,s,a]};ut.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;s=(t+16)/116,i=r/500+s,a=s-n/200;var o=Math.pow(s,3),u=Math.pow(i,3),l=Math.pow(a,3);return s=o>.008856?o:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,s*=100,a*=108.883,[i,s,a]};ut.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),a=Math.sqrt(r*r+n*n),[t,a,s]};ut.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,a;return a=n/360*2*Math.PI,i=r*Math.cos(a),s=r*Math.sin(a),[t,i,s]};ut.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:ut.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};ut.hsv.ansi16=function(e){return ut.rgb.ansi16(ut.hsv.rgb(e),e[2])};ut.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};ut.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return [n,i,s]};ut.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return [t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return [n,i,s]};ut.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return "000000".substring(r.length)+r};ut.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return [0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,a=n&255;return [i,s,a]};ut.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),a=i-s,o,u;return a<1?o=s/(1-a):o=0,a<=0?u=0:i===t?u=(r-n)/a%6:i===r?u=2+(n-t)/a:u=4+(t-r)/a+4,u/=6,u%=1,[u*360,a*100,o*100]};ut.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};ut.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};ut.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return [n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,a=s%1,o=1-a,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o;}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};ut.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};ut.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};ut.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return [e[0],(n-t)*100,(1-n)*100]};ut.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};ut.apple.rgb=function(e){return [e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ut.rgb.apple=function(e){return [e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ut.gray.rgb=function(e){return [e[0]/100*255,e[0]/100*255,e[0]/100*255]};ut.gray.hsl=ut.gray.hsv=function(e){return [0,0,e[0]]};ut.gray.hwb=function(e){return [0,100,e[0]]};ut.gray.cmyk=function(e){return [0,0,0,e[0]]};ut.gray.lab=function(e){return [e[0],0,0]};ut.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return "000000".substring(n.length)+n};ut.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return [t/255*100]};});var RDe=chunkTKGT252T_js.c((Ddn,NDe)=>{var FO=Oq();function Lmr(){for(var e={},t=Object.keys(FO),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function kmr(e){var t=Lmr(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(FO[n]),s=i.length,a=0;a<s;a++){var o=i[a],u=t[o];u.distance===-1&&(u.distance=t[n].distance+1,u.parent=n,r.unshift(o));}return t}function Fmr(e,t){return function(r){return t(e(r))}}function Bmr(e,t){for(var r=[t[e].parent,e],n=FO[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=Fmr(FO[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}NDe.exports=function(e){for(var t=kmr(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var a=n[s],o=t[a];o.parent!==null&&(r[a]=Bmr(a,t));}return r};});var LDe=chunkTKGT252T_js.c((Ndn,MDe)=>{var Dq=Oq(),jmr=RDe(),XS={},Umr=Object.keys(Dq);function qmr(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return "conversion"in e&&(t.conversion=e.conversion),t}function Vmr(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return "conversion"in e&&(t.conversion=e.conversion),t}Umr.forEach(function(e){XS[e]={},Object.defineProperty(XS[e],"channels",{value:Dq[e].channels}),Object.defineProperty(XS[e],"labels",{value:Dq[e].labels});var t=jmr(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];XS[e][n]=Vmr(i),XS[e][n].raw=qmr(i);});});MDe.exports=XS;});var FDe=chunkTKGT252T_js.c((Rdn,kDe)=>{var zS=LDe(),BO=(e,t)=>function(){return `\x1B[${e.apply(zS,arguments)+t}m`},jO=(e,t)=>function(){let r=e.apply(zS,arguments);return `\x1B[${38+t};5;${r}m`},UO=(e,t)=>function(){let r=e.apply(zS,arguments);return `\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function Hmr(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let a of Object.keys(s)){let o=s[a];t[a]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},s[a]=t[a],e.set(o[0],o[1]);}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1});}let r=i=>i,n=(i,s,a)=>[i,s,a];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:BO(r,0)},t.color.ansi256={ansi256:jO(r,0)},t.color.ansi16m={rgb:UO(n,0)},t.bgColor.ansi={ansi:BO(r,10)},t.bgColor.ansi256={ansi256:jO(r,10)},t.bgColor.ansi16m={rgb:UO(n,10)};for(let i of Object.keys(zS)){if(typeof zS[i]!="object")continue;let s=zS[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=BO(s.ansi16,0),t.bgColor.ansi[i]=BO(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=jO(s.ansi256,0),t.bgColor.ansi256[i]=jO(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=UO(s.rgb,0),t.bgColor.ansi16m[i]=UO(s.rgb,10));}return t}Object.defineProperty(kDe,"exports",{enumerable:!0,get:Hmr});});var jDe=chunkTKGT252T_js.c((Mdn,BDe)=>{BDe.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)};});var qDe=chunkTKGT252T_js.c((Ldn,UDe)=>{var Gmr=chunkTKGT252T_js.a("os"),Eu=jDe(),vs=process.env,JS;Eu("no-color")||Eu("no-colors")||Eu("color=false")?JS=!1:(Eu("color")||Eu("colors")||Eu("color=true")||Eu("color=always"))&&(JS=!0);"FORCE_COLOR"in vs&&(JS=vs.FORCE_COLOR.length===0||parseInt(vs.FORCE_COLOR,10)!==0);function $mr(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Kmr(e){if(JS===!1)return 0;if(Eu("color=16m")||Eu("color=full")||Eu("color=truecolor"))return 3;if(Eu("color=256"))return 2;if(e&&!e.isTTY&&JS!==!0)return 0;let t=JS?1:0;if(process.platform==="win32"){let r=Gmr.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in vs)return ["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in vs)||vs.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in vs)return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(vs.TEAMCITY_VERSION)?1:0;if(vs.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in vs){let r=parseInt((vs.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(vs.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return /-256(color)?$/i.test(vs.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(vs.TERM)||"COLORTERM"in vs?1:(vs.TERM==="dumb",t)}function Nq(e){let t=Kmr(e);return $mr(t)}UDe.exports={supportsColor:Nq,stdout:Nq(process.stdout),stderr:Nq(process.stderr)};});var KDe=chunkTKGT252T_js.c((kdn,$De)=>{var Ymr=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,VDe=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Wmr=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Xmr=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,zmr=new Map([["n",`
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function GDe(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):zmr.get(e)||e}function Jmr(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(Wmr))r.push(i[2].replace(Xmr,(a,o,u)=>o?GDe(o):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function Qmr(e){VDe.lastIndex=0;let t=[],r;for(;(r=VDe.exec(e))!==null;){let n=r[1];if(r[2]){let i=Jmr(n,r[2]);t.push([n].concat(i));}else t.push([n]);}return t}function HDe(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i];}return n}$De.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Ymr,(s,a,o,u,l,c)=>{if(a)i.push(GDe(a));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:HDe(e,r)(p)),r.push({inverse:o,styles:Qmr(u)});}else if(l){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(HDe(e,r)(i.join(""))),i=[],r.pop();}else i.push(c);}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")};});var JDe=chunkTKGT252T_js.c((Fdn,Gv)=>{var Mq=chunkF6FLWRPJ_js.m(),Ei=FDe(),Rq=qDe().stdout,Zmr=KDe(),WDe=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),XDe=["ansi","ansi","ansi256","ansi16m"],zDe=new Set(["gray"]),QS=Object.create(null);function YDe(e,t){t=t||{};let r=Rq?Rq.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0;}function Hv(e){if(!this||!(this instanceof Hv)||this.template){let t={};return YDe(t,e),t.template=function(){let r=[].slice.call(arguments);return ryr.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Hv.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Hv,t.template}YDe(this,e);}WDe&&(Ei.blue.open="\x1B[94m");for(let e of Object.keys(Ei))Ei[e].closeRe=new RegExp(Mq(Ei[e].close),"g"),QS[e]={get(){let t=Ei[e];return qO.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};QS.visible={get(){return qO.call(this,this._styles||[],!0,"visible")}};Ei.color.closeRe=new RegExp(Mq(Ei.color.close),"g");for(let e of Object.keys(Ei.color.ansi))zDe.has(e)||(QS[e]={get(){let t=this.level;return function(){let n={open:Ei.color[XDe[t]][e].apply(null,arguments),close:Ei.color.close,closeRe:Ei.color.closeRe};return qO.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});Ei.bgColor.closeRe=new RegExp(Mq(Ei.bgColor.close),"g");for(let e of Object.keys(Ei.bgColor.ansi)){if(zDe.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);QS[t]={get(){let r=this.level;return function(){let i={open:Ei.bgColor[XDe[r]][e].apply(null,arguments),close:Ei.bgColor.close,closeRe:Ei.bgColor.closeRe};return qO.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}};}var eyr=Object.defineProperties(()=>{},QS);function qO(e,t,r){let n=function(){return tyr.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s;}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s;}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=eyr,n}function tyr(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return "";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Ei.dim.open;WDe&&this.hasGrey&&(Ei.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return Ei.dim.open=n,r}function ryr(e,t){if(!Array.isArray(t))return [].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return Zmr(e,n.join(""))}Object.defineProperties(Hv.prototype,QS);Gv.exports=Hv();Gv.exports.supportsColor=Rq;Gv.exports.default=Gv.exports;});var sNe=chunkTKGT252T_js.c($v=>{Object.defineProperty($v,"__esModule",{value:!0});$v.default=cyr;$v.shouldHighlight=iNe;var QDe=chunkF6FLWRPJ_js.j(),ZDe=Pv(),kq=nyr(chunkF6FLWRPJ_js.l(),!0);function tNe(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return (tNe=function(n){return n?r:t})(e)}function nyr(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var r=tNe(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s];}return n.default=e,r&&r.set(e,n),n}var rNe=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0, kq.createColors)(!1):kq.default,eNe=(e,t)=>r=>e(t(r)),iyr=new Set(["as","async","from","get","of","set"]);function syr(e){return {keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:eNe(eNe(e.white,e.bgRed),e.bold)}}var ayr=/\r\n|[\n\r\u2028\u2029]/,oyr=/^[()[\]{}]$/,nNe;{let e=/^[a-z][\w-]*$/i,t=function(r,n,i){if(r.type==="name"){if((0, ZDe.isKeyword)(r.value)||(0, ZDe.isStrictReservedWord)(r.value,!0)||iyr.has(r.value))return "keyword";if(e.test(r.value)&&(i[n-1]==="<"||i.slice(n-2,n)==="</"))return "jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return "capitalized"}return r.type==="punctuator"&&oyr.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};nNe=function*(r){let n;for(;n=QDe.default.exec(r);){let i=QDe.matchToToken(n);yield {type:t(i,n.index,r),value:i.value};}};}function uyr(e,t){let r="";for(let{type:n,value:i}of nNe(t)){let s=e[n];s?r+=i.split(ayr).map(a=>s(a)).join(`
`):r+=i;}return r}function iNe(e){return rNe.isColorSupported||e.forceColor}var Lq;function lyr(e){if(e){return (Lq)!=null||(Lq=(0, kq.createColors)(!0)),Lq}return rNe}function cyr(e,t={}){if(e!==""&&iNe(t)){let r=syr(lyr(t.forceColor));return uyr(r,e)}else return e}{let e,t;$v.getChalk=({forceColor:r})=>{if((e)!=null||(e=JDe()),r){return (t)!=null||(t=new e.constructor({enabled:!0,level:1})),t}return e};}});var jq=chunkTKGT252T_js.c(VO=>{Object.defineProperty(VO,"__esModule",{value:!0});VO.codeFrameColumns=pNe;VO.default=yyr;var aNe=sNe(),Bq=pyr(chunkF6FLWRPJ_js.l(),!0);function cNe(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return (cNe=function(n){return n?r:t})(e)}function pyr(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var r=cNe(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&{}.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(n,s,a):n[s]=e[s];}return n.default=e,r&&r.set(e,n),n}var fyr=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0, Bq.createColors)(!1):Bq.default,oNe=(e,t)=>r=>e(t(r)),Fq;function hyr(e){if(e){return (Fq)!=null||(Fq=(0, Bq.createColors)(!0)),Fq}return fyr}var uNe=!1;function dyr(e){return {gutter:e.gray,marker:oNe(e.red,e.bold),message:oNe(e.red,e.bold)}}var lNe=/\r\n|[\n\r\u2028\u2029]/;function myr(e,t,r){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:s=2,linesBelow:a=3}=r||{},o=n.line,u=n.column,l=i.line,c=i.column,p=Math.max(o-(s+1),0),h=Math.min(t.length,l+a);o===-1&&(p=0),l===-1&&(h=t.length);let f=l-o,d={};if(f)for(let m=0;m<=f;m++){let y=m+o;if(!u)d[y]=!0;else if(m===0){let g=t[y-1].length;d[y]=[u,g-u+1];}else if(m===f)d[y]=[0,c];else {let g=t[y-m].length;d[y]=[0,g];}}else u===c?u?d[o]=[u,0]:d[o]=!0:d[o]=[u,c-u];return {start:p,end:h,markerLines:d}}function pNe(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0, aNe.shouldHighlight)(r),i=hyr(r.forceColor),s=dyr(i),a=(m,y)=>n?m(y):y,o=e.split(lNe),{start:u,end:l,markerLines:c}=myr(t,o,r),p=t.start&&typeof t.start.column=="number",h=String(l).length,d=(n?(0, aNe.default)(e,r):e).split(lNe,l).slice(u,l).map((m,y)=>{let g=u+1+y,E=` ${` ${g}`.slice(-h)} |`,S=c[g],x=!c[g+1];if(S){let b="";if(Array.isArray(S)){let A=m.slice(0,Math.max(S[0]-1,0)).replace(/[^\t]/g," "),D=S[1]||1;b=[`
`,a(s.gutter,E.replace(/\d/g," "))," ",A,a(s.marker,"^").repeat(D)].join(""),x&&r.message&&(b+=" "+a(s.message,r.message));}return [a(s.marker,">"),a(s.gutter,E),m.length>0?` ${m}`:"",b].join("")}else return ` ${a(s.gutter,E)}${m.length>0?` ${m}`:""}`}).join(`
`);return r.message&&!p&&(d=`${" ".repeat(h+1)}${r.message}
${d}`),n?i.reset(d):d}function yyr(e,t,r,n={}){if(!uNe){uNe=!0;let s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(s,"DeprecationWarning");else {let a=new Error(s);a.name="DeprecationWarning",console.warn(new Error(s));}}return r=Math.max(r,0),pNe(e,{start:{column:r,line:t}},n)}});var hNe=chunkTKGT252T_js.c(HO=>{Object.defineProperty(HO,"__esModule",{value:!0});HO.default=void 0;var fNe=er(),gyr=fNe,{react:Syr}=fNe,{cloneNode:Tyr,jsxExpressionContainer:Eyr,variableDeclaration:byr,variableDeclarator:vyr}=gyr,_yr={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&Syr.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let n=e.scope;do if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;while(n=n.parent);n&&t.breakOnScopePaths.push(n.path);}let r=e.scope.getBinding(e.node.name);if(r){for(let n of r.constantViolations)if(n.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r);}}},Uq=class{constructor(t,r){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1;}isCompatibleScope(t){for(let r of Object.keys(this.bindings)){let n=this.bindings[r];if(!t.bindingIdentifierEquals(r,n.identifier))return !1}return !0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.includes(t.path))break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(let n of Object.keys(this.bindings)){if(!r.hasOwnBinding(n))continue;let i=this.bindings[n];if(i.kind==="param"||i.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(i.path).key>=t.key){this.attachAfter=!0,t=i.path;for(let a of i.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a);}}return t}_getAttachmentPath(){let r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;let n=r.path.get("body").get("body");for(let i=0;i<n.length;i++)if(!n[i].node._blockHoist)return n[i]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let t=this.scopes.pop();if(t)return this.getAttachmentParentForPath(t.path)}getAttachmentParentForPath(t){do if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())return t;while(t=t.parentPath)}hasOwnParamBindings(t){for(let r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;let n=this.bindings[r];if(n.kind==="param"&&n.constant)return !0}return !1}run(){if(this.path.traverse(_yr,this),this.mutableBinding)return;this.getCompatibleScopes();let t=this.getAttachmentPath();if(!t||t.getFunctionParent()===this.path.getFunctionParent())return;let r=t.scope.generateUidIdentifier("ref"),n=vyr(r,this.path.node),i=this.attachAfter?"insertAfter":"insertBefore",[s]=t[i]([t.isVariableDeclarator()?n:byr("var",[n])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=Eyr(r)),this.path.replaceWith(Tyr(r)),t.isVariableDeclarator()?s.get("init"):s.get("declarations.0.init")}};HO.default=Uq;});var dNe=chunkTKGT252T_js.c(GO=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.hooks=void 0;GO.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}];});var $O=chunkTKGT252T_js.c(eh=>{Object.defineProperty(eh,"__esModule",{value:!0});eh._assertUnremoved=TNe;eh._callRemovalHooks=gNe;eh._markRemoved=qq;eh._remove=SNe;eh._removeFromScope=yNe;eh.remove=Dyr;var xyr=dNe(),Ayr=nm(),Pyr=Vq(),mNe=th(),Cyr=er(),wyr=KO(),Iyr=Sl(),{getBindingIdentifiers:Oyr}=Cyr;function Dyr(){var e;if(TNe.call(this),Iyr.resync.call(this),gNe.call(this)){qq.call(this);return}(e=this.opts)!=null&&e.noScope||yNe.call(this),this.shareCommentsWithSiblings(),SNe.call(this),qq.call(this);}function yNe(){let e=Oyr(this.node,!1,!1,!0);Object.keys(e).forEach(t=>this.scope.removeBinding(t));}function gNe(){if(this.parentPath){for(let e of xyr.hooks)if(e(this,this.parentPath))return !0}}function SNe(){Array.isArray(this.container)?(this.container.splice(this.key,1),wyr.updateSiblingKeys.call(this,this.key,-1)):Pyr._replaceWith.call(this,null);}function qq(){this._traverseFlags|=mNe.SHOULD_SKIP|mNe.REMOVED,this.parent&&(0, Ayr.getCachedPaths)(this.hub,this.parent).delete(this.node),this.node=null;}function TNe(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var KO=chunkTKGT252T_js.c(Lo=>{Object.defineProperty(Lo,"__esModule",{value:!0});Lo._containerInsert=Yq;Lo._containerInsertAfter=vNe;Lo._containerInsertBefore=Wq;Lo._verifyNodeList=Kv;Lo.insertAfter=Wyr;Lo.insertBefore=Kyr;Lo.pushContainer=zyr;Lo.unshiftContainer=Xyr;Lo.updateSiblingKeys=ANe;var Nyr=nm(),Ryr=hNe(),Kq=th(),Hq=Sl(),YO=$O(),Myr=er(),{arrowFunctionExpression:Lyr,assertExpression:kyr,assignmentExpression:Fyr,blockStatement:ENe,callExpression:Byr,cloneNode:Gq,expressionStatement:$q,isAssignmentExpression:jyr,isCallExpression:Uyr,isExportNamedDeclaration:bNe,isExpression:qyr,isIdentifier:Vyr,isSequenceExpression:Hyr,isSuper:Gyr,thisExpression:$yr}=Myr;function Kyr(e){YO._assertUnremoved.call(this);let t=Kv.call(this,e),{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||bNe(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init")return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return Wq.call(this,t);if(this.isStatementOrBlock()){let i=this.node,s=i&&(!this.isExpressionStatement()||i.expression!=null);return this.replaceWith(ENe(s?[i]:[])),this.unshiftContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function Yq(e,t){ANe.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let s=0;s<t.length;s++){var n;let a=e+s,o=this.getSibling(a);r.push(o),(n=this.context)!=null&&n.queue&&Hq.pushContext.call(o,this.context);}let i=Hq._getQueueContexts.call(this);for(let s of r){Hq.setScope.call(s),s.debug("Inserted.");for(let a of i)a.maybeQueue(s,!0);}return r}function Wq(e){return Yq.call(this,this.key,e)}function vNe(e){return Yq.call(this,this.key+1,e)}var _Ne=e=>e[e.length-1];function xNe(e){return Hyr(e.parent)&&(_Ne(e.parent.expressions)!==e.node||xNe(e.parentPath))}function Yyr(e,t){if(!jyr(e)||!Vyr(e.left))return !1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function Wyr(e){if(YO._assertUnremoved.call(this),this.isSequenceExpression())return _Ne(this.get("expressions")).insertAfter(e);let t=Kv.call(this,e),{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||bNe(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(i=>qyr(i)?$q(i):i));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){let i=this;if(i.node){let s=i.node,{scope:a}=this;if(a.path.isPattern())return kyr(s),i.replaceWith(Byr(Lyr([],s),[])),i.get("callee.body").insertAfter(t),[i];if(xNe(i))t.unshift(s);else if(Uyr(s)&&Gyr(s.callee))t.unshift(s),t.push($yr());else if(Yyr(s,a))t.unshift(s),t.push(Gq(s.left));else if(a.isPure(s,!0))t.push(s);else {r.isMethod({computed:!0,key:s})&&(a=a.parent);let o=a.generateDeclaredUidIdentifier();t.unshift($q(Fyr("=",Gq(o),s))),t.push($q(Gq(o)));}}return this.replaceExpressionWithStatements(t)}else {if(Array.isArray(this.container))return vNe.call(this,t);if(this.isStatementOrBlock()){let i=this.node,s=i&&(!this.isExpressionStatement()||i.expression!=null);return this.replaceWith(ENe(s?[i]:[])),this.pushContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function ANe(e,t){if(!this.parent)return;let r=(0, Nyr.getCachedPaths)(this.hub,this.parent)||[];for(let[,n]of r)typeof n.key=="number"&&n.container===this.container&&n.key>=e&&(n.key+=t);}function Kv(e){if(!e)return [];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let r=e[t],n;if(r?typeof r!="object"?n="contains a non-object node":r.type?r instanceof Kq.default&&(n="has a NodePath when it expected a raw object"):n="without a type":n="has falsy node",n){let i=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${n} with the index of ${t} and type of ${i}`)}}return e}function Xyr(e,t){YO._assertUnremoved.call(this),t=Kv.call(this,t);let r=Kq.default.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0}).setContext(this.context);return Wq.call(r,t)}function zyr(e,t){YO._assertUnremoved.call(this);let r=Kv.call(this,t),n=this.node[e];return Kq.default.get({parentPath:this,parent:this.node,container:n,listKey:e,key:n.length}).setContext(this.context).replaceWithMultiple(r)}Lo.hoist=function(t=this.scope){return new Ryr.default(this,t).run()};});var DV=chunkTKGT252T_js.c(r_=>{Object.defineProperty(r_,"__esModule",{value:!0});function Jyr(e,t){if(e==null)return {};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n];}return r}var El=class{constructor(t,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=n;}},nT=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r;}};function Zs(e,t){let{line:r,column:n,index:i}=e;return new El(r,n+t,i+t)}var PNe="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Qyr={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:PNe},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:PNe}},CNe={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},zO=e=>e.type==="UpdateExpression"?CNe.UpdateExpression[`${e.prefix}`]:CNe[e.type],Zyr={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${e===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${zO(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${zO(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${zO(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},egr={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},tgr=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),rgr={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${zO({type:e})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},ngr=["message"];function wNe(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r});}function igr({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let i=r==="MissingPlugin"||r==="MissingOneOfPlugins";{let s={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};s[r]&&(r=s[r]);}return function s(a,o){let u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=a,u.pos=a.index,u.syntaxPlugin=n,i&&(u.missingPlugin=o.missingPlugin),wNe(u,"clone",function(c={}){var p;let{line:h,column:f,index:d}=(p=c.loc)!=null?p:a;return s(new El(h,f,d),Object.assign({},o,c.details))}),wNe(u,"details",o),Object.defineProperty(u,"message",{configurable:!0,get(){let l=`${e(o)} (${a.line}:${a.column})`;return this.message=l,l},set(l){Object.defineProperty(this,"message",{value:l,writable:!0});}}),u}}function qc(e,t){if(Array.isArray(e))return n=>qc(n,e[0]);let r={};for(let n of Object.keys(e)){let i=e[n],s=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:a}=s,o=Jyr(s,ngr),u=typeof a=="string"?()=>a:a;r[n]=igr(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o));}return r}var z=Object.assign({},qc(Qyr),qc(Zyr),qc(egr),qc`pipelineOperator`(rgr)),{defineProperty:sgr}=Object,INe=(e,t)=>{e&&sgr(e,t,{enumerable:!1,value:e[t]});};function Yv(e){return INe(e.loc.start,"index"),INe(e.loc.end,"index"),e}var agr=e=>class extends e{parse(){let r=Yv(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(Yv)),r}parseRegExpLiteral({pattern:r,flags:n}){let i=null;try{i=new RegExp(r,n);}catch{}let s=this.estreeParseLiteral(i);return s.regex={pattern:r,flags:n},s}parseBigIntLiteral(r){let n;try{n=BigInt(r);}catch{n=null;}let i=this.estreeParseLiteral(n);return i.bigint=String(i.value||r),i}parseDecimalLiteral(r){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||r),i}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}directiveToStmt(r){let n=r.value;delete r.value,n.type="Literal",n.raw=n.extra.raw,n.value=n.extra.expressionValue;let i=r;return i.type="ExpressionStatement",i.expression=n,i.directive=n.extra.rawValue,delete n.extra,i}initFunction(r,n){super.initFunction(r,n),r.expression=!1;}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r);}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var n;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((n=r.expression.extra)!=null&&n.parenthesized)}parseBlockBody(r,n,i,s,a){super.parseBlockBody(r,n,i,s,a);let o=r.directives.map(u=>this.directiveToStmt(u));r.body=o.concat(r.body),delete r.directives;}pushClassMethod(r,n,i,s,a,o){this.parseMethod(n,i,s,a,o,"ClassMethod",!0),n.typeParameters&&(n.value.typeParameters=n.typeParameters,delete n.typeParameters),r.body.push(n);}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let n=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=n,r.type="PrivateIdentifier",r}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,n){let i=super.parseLiteral(r,n);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(r,n,i=!1){super.parseFunctionBody(r,n,i),r.expression=r.body.type!=="BlockStatement";}parseMethod(r,n,i,s,a,o,u=!1){let l=this.startNode();return l.kind=r.kind,l=super.parseMethod(l,n,i,s,a,o,u),l.type="FunctionExpression",delete l.kind,r.value=l,o==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let n=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition"),n}parseClassPrivateProperty(...r){let n=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition",n.computed=!1),n}parseObjectMethod(r,n,i,s,a){let o=super.parseObjectMethod(r,n,i,s,a);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(r,n,i,s){let a=super.parseObjectProperty(r,n,i,s);return a&&(a.kind="init",a.type="Property"),a}isValidLVal(r,n,i){return r==="Property"?"value":super.isValidLVal(r,n,i)}isAssignable(r,n){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,n):super.isAssignable(r,n)}toAssignable(r,n=!1){if(r!=null&&this.isObjectProperty(r)){let{key:i,value:s}=r;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(s,n);}else super.toAssignable(r,n);}toAssignableObjectExpressionProp(r,n,i){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(z.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(z.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,n,i);}finishCallExpression(r,n){let i=super.finishCallExpression(r,n);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var s,a;i.options=(s=i.arguments[1])!=null?s:null,i.attributes=(a=i.arguments[1])!=null?a:null;}delete i.arguments,delete i.callee;}return i}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r);}parseExport(r,n){let i=this.state.lastTokStartLoc,s=super.parseExport(r,n);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(s.type="ExportAllDeclaration",s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=s;(o==null?void 0:o.type)==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===s.start&&this.resetStartLocation(s,i);}break}return s}parseSubscript(r,n,i,s){let a=super.parseSubscript(r,n,i,s);if(s.optionalChainMember){if((a.type==="OptionalMemberExpression"||a.type==="OptionalCallExpression")&&(a.type=a.type.substring(8)),s.stop){let o=this.startNodeAtNode(a);return o.expression=a,this.finishNode(o,"ChainExpression")}}else (a.type==="MemberExpression"||a.type==="CallExpression")&&(a.optional=!1);return a}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}finishNodeAt(r,n,i){return Yv(super.finishNodeAt(r,n,i))}resetStartLocation(r,n){super.resetStartLocation(r,n),Yv(r);}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),Yv(r);}},fm=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r;}},sn={brace:new fm("{"),j_oTag:new fm("<tag"),j_cTag:new fm("</tag"),j_expr:new fm("<tag>...</tag>",!0)};sn.template=new fm("`",!0);var rr=!0,ke=!0,Xq=!0,Wv=!0,rh=!0,ogr=!0,ZO=class{constructor(t,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null;}},bV=new Map;function vr(e,t={}){t.keyword=e;let r=ht(e,t);return bV.set(e,r),r}function Qs(e,t){return ht(e,{beforeExpr:rr,binop:t})}var Qv=-1,jc=[],vV=[],_V=[],xV=[],AV=[],PV=[];function ht(e,t={}){var r,n,i,s;return ++Qv,vV.push(e),_V.push((r=t.binop)!=null?r:-1),xV.push((n=t.beforeExpr)!=null?n:!1),AV.push((i=t.startsExpr)!=null?i:!1),PV.push((s=t.prefix)!=null?s:!1),jc.push(new ZO(e,t)),Qv}function tr(e,t={}){var r,n,i,s;return ++Qv,bV.set(e,Qv),vV.push(e),_V.push((r=t.binop)!=null?r:-1),xV.push((n=t.beforeExpr)!=null?n:!1),AV.push((i=t.startsExpr)!=null?i:!1),PV.push((s=t.prefix)!=null?s:!1),jc.push(new ZO("name",t)),Qv}var ugr={bracketL:ht("[",{beforeExpr:rr,startsExpr:ke}),bracketHashL:ht("#[",{beforeExpr:rr,startsExpr:ke}),bracketBarL:ht("[|",{beforeExpr:rr,startsExpr:ke}),bracketR:ht("]"),bracketBarR:ht("|]"),braceL:ht("{",{beforeExpr:rr,startsExpr:ke}),braceBarL:ht("{|",{beforeExpr:rr,startsExpr:ke}),braceHashL:ht("#{",{beforeExpr:rr,startsExpr:ke}),braceR:ht("}"),braceBarR:ht("|}"),parenL:ht("(",{beforeExpr:rr,startsExpr:ke}),parenR:ht(")"),comma:ht(",",{beforeExpr:rr}),semi:ht(";",{beforeExpr:rr}),colon:ht(":",{beforeExpr:rr}),doubleColon:ht("::",{beforeExpr:rr}),dot:ht("."),question:ht("?",{beforeExpr:rr}),questionDot:ht("?."),arrow:ht("=>",{beforeExpr:rr}),template:ht("template"),ellipsis:ht("...",{beforeExpr:rr}),backQuote:ht("`",{startsExpr:ke}),dollarBraceL:ht("${",{beforeExpr:rr,startsExpr:ke}),templateTail:ht("...`",{startsExpr:ke}),templateNonTail:ht("...${",{beforeExpr:rr,startsExpr:ke}),at:ht("@"),hash:ht("#",{startsExpr:ke}),interpreterDirective:ht("#!..."),eq:ht("=",{beforeExpr:rr,isAssign:Wv}),assign:ht("_=",{beforeExpr:rr,isAssign:Wv}),slashAssign:ht("_=",{beforeExpr:rr,isAssign:Wv}),xorAssign:ht("_=",{beforeExpr:rr,isAssign:Wv}),moduloAssign:ht("_=",{beforeExpr:rr,isAssign:Wv}),incDec:ht("++/--",{prefix:rh,postfix:ogr,startsExpr:ke}),bang:ht("!",{beforeExpr:rr,prefix:rh,startsExpr:ke}),tilde:ht("~",{beforeExpr:rr,prefix:rh,startsExpr:ke}),doubleCaret:ht("^^",{startsExpr:ke}),doubleAt:ht("@@",{startsExpr:ke}),pipeline:Qs("|>",0),nullishCoalescing:Qs("??",1),logicalOR:Qs("||",1),logicalAND:Qs("&&",2),bitwiseOR:Qs("|",3),bitwiseXOR:Qs("^",4),bitwiseAND:Qs("&",5),equality:Qs("==/!=/===/!==",6),lt:Qs("</>/<=/>=",7),gt:Qs("</>/<=/>=",7),relational:Qs("</>/<=/>=",7),bitShift:Qs("<</>>/>>>",8),bitShiftL:Qs("<</>>/>>>",8),bitShiftR:Qs("<</>>/>>>",8),plusMin:ht("+/-",{beforeExpr:rr,binop:9,prefix:rh,startsExpr:ke}),modulo:ht("%",{binop:10,startsExpr:ke}),star:ht("*",{binop:10}),slash:Qs("/",10),exponent:ht("**",{beforeExpr:rr,binop:11,rightAssociative:!0}),_in:vr("in",{beforeExpr:rr,binop:7}),_instanceof:vr("instanceof",{beforeExpr:rr,binop:7}),_break:vr("break"),_case:vr("case",{beforeExpr:rr}),_catch:vr("catch"),_continue:vr("continue"),_debugger:vr("debugger"),_default:vr("default",{beforeExpr:rr}),_else:vr("else",{beforeExpr:rr}),_finally:vr("finally"),_function:vr("function",{startsExpr:ke}),_if:vr("if"),_return:vr("return",{beforeExpr:rr}),_switch:vr("switch"),_throw:vr("throw",{beforeExpr:rr,prefix:rh,startsExpr:ke}),_try:vr("try"),_var:vr("var"),_const:vr("const"),_with:vr("with"),_new:vr("new",{beforeExpr:rr,startsExpr:ke}),_this:vr("this",{startsExpr:ke}),_super:vr("super",{startsExpr:ke}),_class:vr("class",{startsExpr:ke}),_extends:vr("extends",{beforeExpr:rr}),_export:vr("export"),_import:vr("import",{startsExpr:ke}),_null:vr("null",{startsExpr:ke}),_true:vr("true",{startsExpr:ke}),_false:vr("false",{startsExpr:ke}),_typeof:vr("typeof",{beforeExpr:rr,prefix:rh,startsExpr:ke}),_void:vr("void",{beforeExpr:rr,prefix:rh,startsExpr:ke}),_delete:vr("delete",{beforeExpr:rr,prefix:rh,startsExpr:ke}),_do:vr("do",{isLoop:Xq,beforeExpr:rr}),_for:vr("for",{isLoop:Xq}),_while:vr("while",{isLoop:Xq}),_as:tr("as",{startsExpr:ke}),_assert:tr("assert",{startsExpr:ke}),_async:tr("async",{startsExpr:ke}),_await:tr("await",{startsExpr:ke}),_defer:tr("defer",{startsExpr:ke}),_from:tr("from",{startsExpr:ke}),_get:tr("get",{startsExpr:ke}),_let:tr("let",{startsExpr:ke}),_meta:tr("meta",{startsExpr:ke}),_of:tr("of",{startsExpr:ke}),_sent:tr("sent",{startsExpr:ke}),_set:tr("set",{startsExpr:ke}),_source:tr("source",{startsExpr:ke}),_static:tr("static",{startsExpr:ke}),_using:tr("using",{startsExpr:ke}),_yield:tr("yield",{startsExpr:ke}),_asserts:tr("asserts",{startsExpr:ke}),_checks:tr("checks",{startsExpr:ke}),_exports:tr("exports",{startsExpr:ke}),_global:tr("global",{startsExpr:ke}),_implements:tr("implements",{startsExpr:ke}),_intrinsic:tr("intrinsic",{startsExpr:ke}),_infer:tr("infer",{startsExpr:ke}),_is:tr("is",{startsExpr:ke}),_mixins:tr("mixins",{startsExpr:ke}),_proto:tr("proto",{startsExpr:ke}),_require:tr("require",{startsExpr:ke}),_satisfies:tr("satisfies",{startsExpr:ke}),_keyof:tr("keyof",{startsExpr:ke}),_readonly:tr("readonly",{startsExpr:ke}),_unique:tr("unique",{startsExpr:ke}),_abstract:tr("abstract",{startsExpr:ke}),_declare:tr("declare",{startsExpr:ke}),_enum:tr("enum",{startsExpr:ke}),_module:tr("module",{startsExpr:ke}),_namespace:tr("namespace",{startsExpr:ke}),_interface:tr("interface",{startsExpr:ke}),_type:tr("type",{startsExpr:ke}),_opaque:tr("opaque",{startsExpr:ke}),name:ht("name",{startsExpr:ke}),string:ht("string",{startsExpr:ke}),num:ht("num",{startsExpr:ke}),bigint:ht("bigint",{startsExpr:ke}),decimal:ht("decimal",{startsExpr:ke}),regexp:ht("regexp",{startsExpr:ke}),privateName:ht("#name",{startsExpr:ke}),eof:ht("eof"),jsxName:ht("jsxName"),jsxText:ht("jsxText",{beforeExpr:!0}),jsxTagStart:ht("jsxTagStart",{startsExpr:!0}),jsxTagEnd:ht("jsxTagEnd"),placeholder:ht("%%",{startsExpr:!0})};function Ur(e){return e>=93&&e<=132}function lgr(e){return e<=92}function bu(e){return e>=58&&e<=132}function qNe(e){return e>=58&&e<=136}function cgr(e){return xV[e]}function tV(e){return AV[e]}function pgr(e){return e>=29&&e<=33}function ONe(e){return e>=129&&e<=131}function fgr(e){return e>=90&&e<=92}function CV(e){return e>=58&&e<=92}function hgr(e){return e>=39&&e<=59}function dgr(e){return e===34}function mgr(e){return PV[e]}function ygr(e){return e>=121&&e<=123}function ggr(e){return e>=124&&e<=130}function ih(e){return vV[e]}function JO(e){return _V[e]}function Sgr(e){return e===57}function eD(e){return e>=24&&e<=25}function Bc(e){return jc[e]}jc[8].updateContext=e=>{e.pop();},jc[5].updateContext=jc[7].updateContext=jc[23].updateContext=e=>{e.push(sn.brace);},jc[22].updateContext=e=>{e[e.length-1]===sn.template?e.pop():e.push(sn.template);},jc[142].updateContext=e=>{e.push(sn.j_expr,sn.j_oTag);};var wV="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\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\u09FC\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",VNe="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Tgr=new RegExp("["+wV+"]"),Egr=new RegExp("["+wV+VNe+"]");wV=VNe=null;var HNe=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,38,6,186,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,19,72,200,32,32,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],bgr=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function rV(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return !1;if(r+=t[n+1],r>=e)return !0}return !1}function Uc(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Tgr.test(String.fromCharCode(e)):rV(e,HNe)}function eT(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Egr.test(String.fromCharCode(e)):rV(e,HNe)||rV(e,bgr)}var IV={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},vgr=new Set(IV.keyword),_gr=new Set(IV.strict),xgr=new Set(IV.strictBind);function GNe(e,t){return t&&e==="await"||e==="enum"}function $Ne(e,t){return GNe(e,t)||_gr.has(e)}function KNe(e){return xgr.has(e)}function YNe(e,t){return $Ne(e,t)||KNe(e)}function Agr(e){return vgr.has(e)}function Pgr(e,t,r){return e===64&&t===64&&Uc(r)}var Cgr=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function wgr(e){return Cgr.has(e)}var Zv=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t;}},e_=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r;}get inTopLevel(){return (this.currentScope().flags&1)>0}get inFunction(){return (this.currentVarScopeFlags()&2)>0}get allowSuper(){return (this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return (this.currentThisScopeFlags()&32)>0}get inClass(){return (this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return (t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return !0;if(r&451)return !1}}get inNonArrowFunction(){return (this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Zv(t)}enter(t){this.scopeStack.push(this.createScope(t));}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return !!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,n){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,t,r,n);let s=i.names.get(t)||0;r&16?s=s|4:(i.firstLexicalName||(i.firstLexicalName=t),s=s|2),i.names.set(t,s),r&8&&this.maybeExportDefined(i,t);}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,t,r,n),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&387));--s);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t);}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r);}checkRedeclarationInScope(t,r,n,i){this.isRedeclaredInScope(t,r,n)&&this.parser.raise(z.VarRedeclaration,i,{identifierName:r});}isRedeclaredInScope(t,r,n){if(!(n&1))return !1;if(n&8)return t.names.has(r);let i=t.names.get(r);return n&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start);}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&387)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&451&&!(r&4))return r}}},nV=class extends Zv{constructor(...t){super(...t),this.declareFunctions=new Set;}},iV=class extends e_{createScope(t){return new nV(t)}declareName(t,r,n){let i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,r,n);}isRedeclaredInScope(t,r,n){if(super.isRedeclaredInScope(t,r,n))return !0;if(n&2048&&!t.declareFunctions.has(r)){let i=t.names.get(r);return (i&4)>0||(i&2)>0}return !1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t);}},sV=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1;}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,n]=t;if(!this.hasPlugin(r))return !1;let i=this.plugins.get(r);for(let s of Object.keys(n))if((i==null?void 0:i[s])!==n[s])return !1;return !0}}getPluginOption(t,r){var n;return (n=this.plugins.get(t))==null?void 0:n[r]}};function WNe(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t);}function Igr(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t);}function t_(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t);}function Xv(e,t,r){let n=null,i=t.length;for(;n===null&&i>0;)n=t[--i];n===null||n.start>r.start?t_(e,r.comments):WNe(n,r.comments);}var aV=class extends sV{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++;}processComment(t){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let i=n-1,s=r[i];s.start===t.end&&(s.leadingNode=t,i--);let{start:a}=t;for(;i>=0;i--){let o=r[i],u=o.end;if(u>a)o.containingNode=t,this.finalizeComment(o),r.splice(i,1);else {u===a&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&WNe(t.leadingNode,r),t.trailingNode!==null&&Igr(t.trailingNode,r);else {let{containingNode:n,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Xv(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":Xv(n,n.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Xv(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Xv(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Xv(n,n.specifiers,t);break;default:t_(n,r);}else t_(n,r);}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[];}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let i=r[n-1];i.leadingNode===t&&(i.leadingNode=null);}resetPreviousIdentifierLeadingComments(t){let{commentStack:r}=this.state,{length:n}=r;n!==0&&(r[n-1].trailingNode===t?r[n-1].trailingNode=null:n>=2&&r[n-2].trailingNode===t&&(r[n-2].trailingNode=null));}takeSurroundingComments(t,r,n){let{commentStack:i}=this.state,s=i.length;if(s===0)return;let a=s-1;for(;a>=0;a--){let o=i[a],u=o.end;if(o.start===n)o.leadingNode=t;else if(u===r)o.trailingNode=t;else if(u<r)break}}},Ogr=/\r\n|[\r\n\u2028\u2029]/,WO=new RegExp(Ogr.source,"g");function tT(e){switch(e){case 10:case 13:case 8232:case 8233:return !0;default:return !1}}function DNe(e,t,r){for(let n=t;n<r;n++)if(tT(e.charCodeAt(n)))return !0;return !1}var zq=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Jq=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Dgr(e){switch(e){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 8239:case 8287:case 12288:case 65279:return !0;default:return !1}}var oV=class e{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[sn.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0;}get strict(){return (this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2;}init({strictMode:t,sourceType:r,startLine:n,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new El(n,i,0);}get maybeInArrowParameters(){return (this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3;}get inType(){return (this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5;}get noAnonFunctionType(){return (this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9;}get hasFlowComment(){return (this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17;}get isAmbientContext(){return (this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33;}get inAbstractClass(){return (this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65;}get inDisallowConditionalTypesContext(){return (this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129;}get soloAwait(){return (this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257;}get inFSharpPipelineDirectBody(){return (this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513;}get canStartJSXElement(){return (this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025;}get containsEsc(){return (this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049;}get hasTopLevelAwait(){return (this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097;}curPosition(){return new El(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let t=new e;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},Ngr=function(t){return t>=48&&t<=57},NNe={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},XO={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function RNe(e,t,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:h}=t;for(;;){if(r>=h){s.unterminated(a,o,u),l+=t.slice(p,r);break}let f=t.charCodeAt(r);if(Rgr(e,f,t,r)){l+=t.slice(p,r);break}if(f===92){l+=t.slice(p,r);let d=Mgr(t,r,n,i,e==="template",s);d.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=d.ch,{pos:r,lineStart:n,curLine:i}=d,p=r;}else f===8232||f===8233?(++r,++i,n=r):f===10||f===13?e==="template"?(l+=t.slice(p,r)+`
`,++r,f===13&&t.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(a,o,u):++r;}return {pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function Rgr(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function Mgr(e,t,r,n,i,s){let a=!i;t++;let o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(`
`);case 114:return o("\r");case 120:{let l;return {code:l,pos:t}=uV(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return {code:l,pos:t}=zNe(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let l=t-1,p=/^[0-7]+/.exec(e.slice(l,t+2))[0],h=parseInt(p,8);h>255&&(p=p.slice(0,-1),h=parseInt(p,8)),t+=p.length-1;let f=e.charCodeAt(t);if(p!=="0"||f===56||f===57){if(i)return o(null);s.strictNumericEscape(l,r,n);}return o(String.fromCharCode(h))}return o(String.fromCharCode(u))}}function uV(e,t,r,n,i,s,a,o){let u=t,l;return {n:l,pos:t}=XNe(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function XNe(e,t,r,n,i,s,a,o,u,l){let c=t,p=i===16?NNe.hex:NNe.decBinOct,h=i===16?XO.hex:i===10?XO.dec:i===8?XO.oct:XO.bin,f=!1,d=0;for(let m=0,y=s??1/0;m<y;++m){let g=e.charCodeAt(t),v;if(g===95&&o!=="bail"){let E=e.charCodeAt(t-1),S=e.charCodeAt(t+1);if(o){if(Number.isNaN(S)||!h(S)||p.has(E)||p.has(S)){if(l)return {n:null,pos:t};u.unexpectedNumericSeparator(t,r,n);}}else {if(l)return {n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n);}++t;continue}if(g>=97?v=g-97+10:g>=65?v=g-65+10:Ngr(g)?v=g-48:v=1/0,v>=i){if(v<=9&&l)return {n:null,pos:t};if(v<=9&&u.invalidDigit(t,r,n,i))v=0;else if(a)v=0,f=!0;else break}++t,d=d*i+v;}return t===c||s!=null&&t-c!==s||f?{n:null,pos:t}:{n:d,pos:t}}function zNe(e,t,r,n,i,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=uV(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return {code:null,pos:t}}else ({code:o,pos:t}=uV(e,t,r,n,4,!1,i,s));return {code:o,pos:t}}function zv(e,t,r){return new El(r,e-t,e)}var Lgr=new Set([103,109,115,105,121,117,100,118]),Tl=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new nT(t.startLoc,t.endLoc);}},lV=class extends aV{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(n,i,s,a)=>this.options.errorRecovery?(this.raise(z.InvalidDigit,zv(n,i,s),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(z.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(z.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(z.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(z.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(n,i,s)=>{this.recordStrictModeErrors(z.StrictNumericEscape,zv(n,i,s));},unterminated:(n,i,s)=>{throw this.raise(z.UnterminatedString,zv(n-1,i,s))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(z.StrictNumericEscape),unterminated:(n,i,s)=>{throw this.raise(z.UnterminatedTemplate,zv(n,i,s))}}),this.state=new oV,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1;}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength;}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Tl(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken();}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return {pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return zq.lastIndex=t,zq.test(this.input)?zq.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Jq.lastIndex=t,Jq.test(this.input)?Jq.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){let n=this.input.charCodeAt(t);(n&64512)===56320&&(r=65536+((r&1023)<<10)+(n&1023));}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,n])=>this.raise(r,n)),this.state.strictErrors.clear());}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos));}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let n=this.state.pos,i=this.input.indexOf(t,n+2);if(i===-1)throw this.raise(z.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+t.length,WO.lastIndex=n+2;WO.test(this.input)&&WO.lastIndex<=i;)++this.state.curLine,this.state.lineStart=WO.lastIndex;if(this.isLookahead)return;let s={type:"CommentBlock",value:this.input.slice(n+2,i),start:n,end:i+t.length,loc:new nT(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipLineComment(t){let r=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!tT(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let s=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,s),start:r,end:s,loc:new nT(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){let t=this.state.pos,r=[];e:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let i=this.skipBlockComment("*/");i!==void 0&&(this.addComment(i),this.options.attachComment&&r.push(i));break}case 47:{let i=this.skipLineComment(2);i!==void 0&&(this.addComment(i),this.options.attachComment&&r.push(i));break}default:break e}break;default:if(Dgr(n))++this.state.pos;else if(n===45&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===45&&this.input.charCodeAt(i+2)===62&&(t===0||this.state.lineStart>t)){let s=this.skipLineComment(3);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));}else break e}else if(n===60&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let s=this.skipLineComment(4);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));}else break e}else break e}}if(r.length>0){let n=this.state.pos,i={start:t,end:n,comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i);}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(n);}replaceToken(t){this.state.type=t,this.updateContext();}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(z.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?z.RecordExpressionHashIncorrectStartSyntaxType:z.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1);}else Uc(r)?(++this.state.pos,this.finishToken(138,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1);}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16));}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1);}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return !1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return !1;let r=this.state.pos;for(this.state.pos+=1;!tT(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let n=this.input.slice(r+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(t){let r=t===42?55:54,n=1,i=this.input.charCodeAt(this.state.pos+1);t===42&&i===42&&(n++,i=this.input.charCodeAt(this.state.pos+2),r=57),i===61&&!this.state.inType&&(n++,r=t===37?33:30),this.finishOp(r,n);}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(z.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(z.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1);}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1);}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1);}readToken_plus_min(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1);}readToken_lt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1);}readToken_gt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){let n=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+n)===61){this.finishOp(30,n+1);return}this.finishOp(52,n);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1);}readToken_eq_excl(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1);}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17));}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(z.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2);}else ++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(z.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6);}else ++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Uc(t)){this.readWord(t);return}}throw this.raise(z.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let n=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,n);}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,n,i,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(z.UnterminatedRegExp,Zs(t,1));let l=this.input.charCodeAt(s);if(tT(l))throw this.raise(z.UnterminatedRegExp,Zs(t,1));if(n)n=!1;else {if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;n=l===92;}}let a=this.input.slice(r,s);++s;let o="",u=()=>Zs(t,s+2-r);for(;s<this.length;){let l=this.codePointAtPos(s),c=String.fromCharCode(l);if(Lgr.has(l))l===118?o.includes("u")&&this.raise(z.IncompatibleRegExpUVFlags,u()):l===117&&o.includes("v")&&this.raise(z.IncompatibleRegExpUVFlags,u()),o.includes(c)&&this.raise(z.DuplicateRegExpFlags,u());else if(eT(l)||l===92)this.raise(z.MalformedRegExpFlags,u());else break;++s,o+=c;}this.state.pos=s,this.finishToken(137,{pattern:a,flags:o});}readInt(t,r,n=!1,i=!0){let{n:s,pos:a}=XNe(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,n,i,this.errorHandlers_readInt,!1);return this.state.pos=a,s}readRadixNumber(t){let r=this.state.curPosition(),n=!1;this.state.pos+=2;let i=this.readInt(t);i==null&&this.raise(z.InvalidDigit,Zs(r,2),{radix:t});let s=this.input.charCodeAt(this.state.pos);if(s===110)++this.state.pos,n=!0;else if(s===109)throw this.raise(z.InvalidDecimal,r);if(Uc(this.codePointAtPos(this.state.pos)))throw this.raise(z.NumberIdentifier,this.state.curPosition());if(n){let a=this.input.slice(r.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,a);return}this.finishToken(134,i);}readNumber(t){let r=this.state.pos,n=this.state.curPosition(),i=!1,s=!1,a=!1,o=!1;!t&&this.readInt(10)===null&&this.raise(z.InvalidNumber,this.state.curPosition());let u=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(u){let f=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(z.StrictOctalLiteral,n),!this.state.strict){let d=f.indexOf("_");d>0&&this.raise(z.ZeroDigitNumericSeparator,Zs(n,d));}o=u&&!/[89]/.test(f);}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!o&&(++this.state.pos,this.readInt(10),i=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!o&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(z.InvalidOrMissingExponent,n),i=!0,a=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((i||u)&&this.raise(z.InvalidBigIntLiteral,n),++this.state.pos,s=!0),l===109){this.expectPlugin("decimal",this.state.curPosition()),(a||u)&&this.raise(z.InvalidDecimal,n),++this.state.pos;var c=!0;}if(Uc(this.codePointAtPos(this.state.pos)))throw this.raise(z.NumberIdentifier,this.state.curPosition());let p=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(s){this.finishToken(135,p);return}if(c){this.finishToken(136,p);return}let h=o?parseInt(p,8):parseFloat(p);this.finishToken(134,h);}readCodePoint(t){let{code:r,pos:n}=zNe(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=n,r}readString(t){let{str:r,pos:n,curLine:i,lineStart:s}=RNe(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=s,this.state.curLine=i,this.finishToken(133,r);}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken();}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:n,pos:i,curLine:s,lineStart:a}=RNe("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=s,n&&(this.state.firstInvalidTemplateEscapePos=new El(n.curLine,n.pos-n.lineStart,n.pos)),this.input.codePointAt(i)===96?this.finishToken(24,n?null:t+r+"`"):(this.state.pos++,this.finishToken(25,n?null:t+r+"${"));}recordStrictModeErrors(t,r){let n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(t,r):this.state.strictErrors.set(n,[t,r]);}readWord1(t){this.state.containsEsc=!1;let r="",n=this.state.pos,i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let s=this.codePointAtPos(this.state.pos);if(eT(s))this.state.pos+=s<=65535?1:2;else if(s===92){this.state.containsEsc=!0,r+=this.input.slice(i,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===n?Uc:eT;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(z.MissingUnicodeEscape,this.state.curPosition()),i=this.state.pos-1;continue}++this.state.pos;let u=this.readCodePoint(!0);u!==null&&(o(u)||this.raise(z.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(u)),i=this.state.pos;}else break}return r+this.input.slice(i,this.state.pos)}readWord(t){let r=this.readWord1(t),n=bV.get(r);n!==void 0?this.finishToken(n,ih(n)):this.finishToken(132,r);}checkKeywordEscapes(){let{type:t}=this.state;CV(t)&&this.state.containsEsc&&this.raise(z.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:ih(t)});}raise(t,r,n={}){let i=r instanceof El?r:r.loc.start,s=t(i,n);if(!this.options.errorRecovery)throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(t,r,n={}){let i=r instanceof El?r:r.loc.start,s=i.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let u=a[o];if(u.loc.index===s)return a[o]=t(i,n);if(u.loc.index<s)break}return this.raise(t,r,n)}updateContext(t){}unexpected(t,r){throw this.raise(z.UnexpectedToken,t??this.state.startLoc,{expected:r?ih(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return !0;throw this.raise(z.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(z.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return (r,n,i)=>{this.raise(t,zv(r,n,i));}}},cV=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map;}},pV=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t;}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new cV);}exit(){let t=this.stack.pop(),r=this.current();for(let[n,i]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(n)||r.undefinedPrivateNames.set(n,i):this.parser.raise(z.InvalidPrivateFieldResolution,i,{identifierName:n});}declarePrivateName(t,r,n){let{privateNames:i,loneAccessors:s,undefinedPrivateNames:a}=this.current(),o=i.has(t);if(r&3){let u=o&&s.get(t);if(u){let l=u&4,c=r&4,p=u&3,h=r&3;o=p===h||l!==c,o||s.delete(t);}else o||s.set(t,r);}o&&this.parser.raise(z.PrivateNameRedeclaration,n,{identifierName:t}),i.add(t),a.delete(t);}usePrivateName(t,r){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,r):this.parser.raise(z.InvalidPrivateFieldResolution,r,{identifierName:t});}},iT=class{constructor(t=0){this.type=t;}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},tD=class extends iT{constructor(t){super(t),this.declarationErrors=new Map;}recordDeclarationError(t,r){let n=r.index;this.declarationErrors.set(n,[t,r]);}clearDeclarationError(t){this.declarationErrors.delete(t);}iterateErrors(t){this.declarationErrors.forEach(t);}},fV=class{constructor(t){this.parser=void 0,this.stack=[new iT],this.parser=t;}enter(t){this.stack.push(t);}exit(){this.stack.pop();}recordParameterInitializerError(t,r){let n=r.loc.start,{stack:i}=this,s=i.length-1,a=i[s];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,n);else return;a=i[--s];}this.parser.raise(t,n);}recordArrowParameterBindingError(t,r){let{stack:n}=this,i=n[n.length-1],s=r.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,s);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,s);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,n=r.length-1,i=r[n];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(z.AwaitBindingIdentifier,t),i=r[--n];}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,i])=>{this.parser.raise(n,i);let s=t.length-2,a=t[s];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(i.index),a=t[--s];});}};function kgr(){return new iT(3)}function Fgr(){return new tD(1)}function Bgr(){return new tD(2)}function JNe(){return new iT}var hV=class{constructor(){this.stacks=[];}enter(t){this.stacks.push(t);}exit(){this.stacks.pop();}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return (this.currentFlags()&2)>0}get hasYield(){return (this.currentFlags()&1)>0}get hasReturn(){return (this.currentFlags()&4)>0}get hasIn(){return (this.currentFlags()&8)>0}};function QO(e,t){return (e?2:0)|(t?1:0)}var dV=class extends lV{addExtra(t,r,n,i=!0){if(!t)return;let{extra:s}=t;s==null&&(s={},t.extra=s),i?s[r]=n:Object.defineProperty(s,r,{enumerable:i,value:n});}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){let n=t+r.length;if(this.input.slice(t,n)===r){let i=this.input.charCodeAt(n);return !(eT(i)||(i&64512)===55296)}return !1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t);}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return DNe(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return DNe(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(z.MissingSemicolon,this.state.lastTokEndLoc);}expect(t,r){this.eat(t)||this.unexpected(r,t);}tryParse(t,r=this.state.clone()){let n={node:null};try{let i=t((s=null)=>{throw n.node=s,n});if(this.state.errors.length>r.errors.length){let s=this.state;return this.state=r,this.state.tokensLength=s.tokensLength,{node:i,error:s.errors[r.errors.length],thrown:!1,aborted:!1,failState:s}}return {node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let s=this.state;if(this.state=r,i instanceof SyntaxError)return {node:null,error:i,thrown:!0,aborted:!1,failState:s};if(i===n)return {node:n.node,error:null,thrown:!1,aborted:!0,failState:s};throw i}}checkExpressionErrors(t,r){if(!t)return !1;let{shorthandAssignLoc:n,doubleProtoLoc:i,privateKeyLoc:s,optionalParametersLoc:a}=t,o=!!n||!!i||!!a||!!s;if(!r)return o;n!=null&&this.raise(z.InvalidCoverInitializedName,n),i!=null&&this.raise(z.DuplicateProto,i),s!=null&&this.raise(z.UnexpectedPrivateField,s),a!=null&&this.unexpected(a);}isLiteralPropertyName(){return qNe(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return (t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let s=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new hV;let u=this.classScope;this.classScope=new pV(this);let l=this.expressionScope;return this.expressionScope=new fV(this),()=>{this.state.labels=r,this.exportedIdentifiers=n,this.inModule=i,this.scope=s,this.prodParam=o,this.classScope=u,this.expressionScope=l;}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t);}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r);}},rT=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null;}},sT=class{constructor(t,r,n){this.type="",this.start=r,this.end=0,this.loc=new nT(n),t!=null&&t.options.ranges&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename);}},OV=sT.prototype;OV.__clone=function(){let e=new sT(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){let i=t[r];i!=="leadingComments"&&i!=="trailingComments"&&i!=="innerComments"&&(e[i]=this[i]);}return e};function jgr(e){return Vc(e)}function Vc(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a,name:o}=e,u=Object.create(OV);return u.type=t,u.start=r,u.end=n,u.loc=i,u.range=s,u.extra=a,u.name=o,t==="Placeholder"&&(u.expectedNode=e.expectedNode),u}function Ugr(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a}=e;if(t==="Placeholder")return jgr(e);let o=Object.create(OV);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,e.raw!==void 0?o.raw=e.raw:o.extra=a,o.value=e.value,o}var mV=class extends dV{startNode(){let t=this.state.startLoc;return new sT(this,t.index,t)}startNodeAt(t){return new sT(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,n){return t.type=r,t.end=n.index,t.loc.end=n,this.options.ranges&&(t.range[1]=n.index),this.options.attachComment&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.options.ranges&&(t.range[0]=r.index);}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.options.ranges&&(t.range[1]=r.index);}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start);}},qgr=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),yt=qc`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Vgr(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function MNe(e){return e.importKind==="type"||e.importKind==="typeof"}var Hgr={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Ggr(e,t){let r=[],n=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return [r,n]}var $gr=/\*?\s*@((?:no)?flow)\b/,Kgr=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0;}getScopeHandler(){return iV}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,n){r!==133&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,n);}addComment(r){if(this.flowPragma===void 0){let n=$gr.exec(r.value);if(n)if(n[1]==="flow")this.flowPragma="flow";else if(n[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r);}flowParseTypeInitialiser(r){let n=this.state.inType;this.state.inType=!0,this.expect(r||14);let i=this.flowParseType();return this.state.inType=n,i}flowParsePredicate(){let r=this.startNode(),n=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>n.index+1&&this.raise(yt.UnexpectedSpaceBetweenModuloChecks,n),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let n=null,i=null;return this.match(54)?(this.state.inType=r,i=this.flowParsePredicate()):(n=this.flowParseType(),this.state.inType=r,this.match(54)&&(i=this.flowParsePredicate())),[n,i]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let n=r.id=this.parseIdentifier(),i=this.startNode(),s=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return i.params=a.params,i.rest=a.rest,i.this=a._this,this.expect(11),[i.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),n.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(n),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,n){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(n&&this.raise(yt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,n);this.unexpected();}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(133)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let n=r.body=this.startNode(),i=n.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(yt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,yt.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o);}this.scope.exit(),this.expect(8),this.finishNode(n,"BlockStatement");let s=null,a=!1;return i.forEach(o=>{Vgr(o)?(s==="CommonJS"&&this.raise(yt.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(yt.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(yt.AmbiguousDeclareModuleKind,o),s="CommonJS",a=!0);}),r.kind=s||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,n){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!n){let i=this.state.value;throw this.raise(yt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:Hgr[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"&&(r.type="ExportDeclaration",r.default=!1,delete r.exportKind),r.type="Declare"+r.type,r;this.unexpected();}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let n=this.flowParseTypeAlias(r);return n.type="DeclareTypeAlias",n}flowParseDeclareOpaqueType(r){this.next();let n=this.flowParseOpaqueType(r,!0);return n.type="DeclareOpaqueType",n}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,n){if(r.id=this.flowParseRestrictedIdentifier(!n,!0),this.scope.declareName(r.id.name,n?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!n&&this.eat(12));if(n){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:n,allowExact:!1,allowSpread:!1,allowProto:n,allowInexact:!1});}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(yt.UnexpectedReservedUnderscore,this.state.startLoc);}checkReservedType(r,n,i){qgr.has(r)&&this.raise(i?yt.AssignReservedType:yt.UnexpectedReservedType,n,{reservedType:r});}flowParseRestrictedIdentifier(r,n){return this.checkReservedType(this.state.value,this.state.startLoc,n),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,n){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,n||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let n=this.state.startLoc,i=this.startNode(),s=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=s,i.bound=a.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):r&&this.raise(yt.MissingTypeParamDefault,n),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let i=!1;do{let s=this.flowParseTypeParameter(i);n.params.push(s),s.default&&(i=!0),this.match(48)||this.expect(12);}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(n,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let r=this.startNode(),n=this.state.inType;r.params=[],this.state.inType=!0,this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let r=this.startNode(),n=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,n,i){return r.static=n,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=i,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,n){return r.static=n,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,n){let i=this.startNode();return r.static=n,r.value=this.flowParseObjectTypeMethodish(i),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:n,allowSpread:i,allowProto:s,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];let l,c,p=!1;for(n&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),u.exact=c;!this.match(l);){let f=!1,d=null,m=null,y=this.startNode();if(s&&this.isContextual(118)){let v=this.lookahead();v.type!==14&&v.type!==17&&(this.next(),d=this.state.startLoc,r=!1);}if(r&&this.isContextual(106)){let v=this.lookahead();v.type!==14&&v.type!==17&&(this.next(),f=!0);}let g=this.flowParseVariance();if(this.eat(0))d!=null&&this.unexpected(d),this.eat(0)?(g&&this.unexpected(g.loc.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(y,f))):u.indexers.push(this.flowParseObjectTypeIndexer(y,f,g));else if(this.match(10)||this.match(47))d!=null&&this.unexpected(d),g&&this.unexpected(g.loc.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(y,f));else {let v="init";if(this.isContextual(99)||this.isContextual(104)){let S=this.lookahead();qNe(S.type)&&(v=this.state.value,this.next());}let E=this.flowParseObjectTypeProperty(y,f,d,g,v,i,a??!c);E===null?(p=!0,m=this.state.lastTokStartLoc):u.properties.push(E);}this.flowObjectTypeSemicolon(),m&&!this.match(8)&&!this.match(9)&&this.raise(yt.UnexpectedExplicitInexactInObject,m);}this.expect(l),i&&(u.inexact=p);let h=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=o,h}flowParseObjectTypeProperty(r,n,i,s,a,o,u){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?u||this.raise(yt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(yt.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(yt.InexactVariance,s),null):(o||this.raise(yt.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),s&&this.raise(yt.SpreadVariance,s),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=n,r.proto=i!=null,r.kind=a;let l=!1;return this.match(47)||this.match(10)?(r.method=!0,i!=null&&this.unexpected(i),s&&this.unexpected(s.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(yt.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(l=!0),r.value=this.flowParseTypeInitialiser(),r.variance=s),r.optional=l,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let n=r.kind==="get"?0:1,i=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?yt.GetterMayNotHaveThisParam:yt.SetterMayNotHaveThisParam,r.value.this),i!==n&&this.raise(r.kind==="get"?z.BadGetterArity:z.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(z.BadSetterRestParameter,r);}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected();}flowParseQualifiedTypeIdentifier(r,n){(r)!=null||(r=this.state.startLoc);let s=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let a=this.startNodeAt(r);a.qualification=s,a.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(a,"QualifiedTypeIdentifier");}return s}flowParseGenericType(r,n){let i=this.startNodeAt(r);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(r,n),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let n=null,i=!1,s=null,a=this.startNode(),o=this.lookahead(),u=this.state.type===78;return o.type===14||o.type===17?(u&&!r&&this.raise(yt.ThisParamMustBeFirst,a),n=this.parseIdentifier(u),this.eat(17)&&(i=!0,u&&this.raise(yt.ThisParamMayNotBeOptional,a)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),a.name=n,a.optional=i,a.typeAnnotation=s,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let n=this.startNodeAt(r.loc.start);return n.name=null,n.optional=!1,n.typeAnnotation=r,this.finishNode(n,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let n=null,i=null;for(this.match(78)&&(i=this.flowParseFunctionTypeParam(!0),i.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(n=this.flowParseFunctionTypeParam(!1)),{params:r,rest:n,_this:i}}flowIdentToTypeAnnotation(r,n,i){switch(i.name){case"any":return this.finishNode(n,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(n,"BooleanTypeAnnotation");case"mixed":return this.finishNode(n,"MixedTypeAnnotation");case"empty":return this.finishNode(n,"EmptyTypeAnnotation");case"number":return this.finishNode(n,"NumberTypeAnnotation");case"string":return this.finishNode(n,"StringTypeAnnotation");case"symbol":return this.finishNode(n,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(r,i)}}flowParsePrimaryType(){let r=this.state.startLoc,n=this.startNode(),i,s,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,s=this.flowParseTupleType(),this.state.noAnonFunctionType=o,s;case 47:{let u=this.startNode();return u.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),i=this.flowParseFunctionTypeParams(),u.params=i.params,u.rest=i.rest,u.this=i._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),this.finishNode(u,"FunctionTypeAnnotation")}case 10:{let u=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Ur(this.state.type)||this.match(78)){let l=this.lookahead().type;a=l!==17&&l!==14;}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,s=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),s;this.eat(12);}return s?i=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)]):i=this.flowParseFunctionTypeParams(),u.params=i.params,u.rest=i.rest,u.this=i._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),u.typeParameters=null,this.finishNode(u,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return n.value=this.match(85),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",n);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",n);throw this.raise(yt.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(n,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(n,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(n,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(CV(this.state.type)){let u=ih(this.state.type);return this.next(),super.createIdentifier(n,u)}else if(Ur(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,n,this.parseIdentifier())}this.unexpected();}flowParsePostfixType(){let r=this.state.startLoc,n=this.flowParsePrimaryType(),i=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let s=this.startNodeAt(r),a=this.eat(18);i=i||a,this.expect(0),!a&&this.match(3)?(s.elementType=n,this.next(),n=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=n,s.indexType=this.flowParseType(),this.expect(3),i?(s.optional=a,n=this.finishNode(s,"OptionalIndexedAccessType")):n=this.finishNode(s,"IndexedAccessType"));}return n}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let n=this.startNodeAt(r.loc.start);return n.params=[this.reinterpretTypeAsFunctionTypeParam(r)],n.rest=null,n.this=null,n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let n=this.flowParseAnonFunctionWithoutParens();for(r.types=[n];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?n:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let n=this.flowParseIntersectionType();for(r.types=[n];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?n:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let n=this.flowParseUnionType();return this.state.inType=r,n}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,n=this.parseIdentifier();return this.flowParseGenericType(r,n)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(r){let n=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(n.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(n)),n}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,n,i=!1){if(n){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,i));return}super.parseFunctionBody(r,!1,i);}parseFunctionBodyAndFinish(r,n,i=!1){if(this.match(14)){let s=this.startNode();[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null;}return super.parseFunctionBodyAndFinish(r,n,i)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(bu(i.type)){let s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.plugins.get("flow").enums&&this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let n=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(n)&&(this.flowPragma=null),n}parseExpressionStatement(r,n,i){if(n.type==="Identifier"){if(n.name==="declare"){if(this.match(80)||Ur(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Ur(this.state.type)){if(n.name==="interface")return this.flowParseInterface(r);if(n.name==="type")return this.flowParseTypeAlias(r);if(n.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,n,i)}shouldParseExportDeclaration(){let{type:r}=this.state;return ONe(r)||this.plugins.get("flow").enums&&r===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return ONe(r)||this.plugins.get("flow").enums&&r===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.plugins.get("flow").enums&&this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,n,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let h=this.lookaheadCharCode();if(h===44||h===61||h===58||h===41)return this.setOptionalParametersError(i),r}this.expect(17);let s=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(n),{consequent:u,failed:l}=this.tryParseConditionalConsequent(),[c,p]=this.getArrowLikeExpressions(u);if(l||p.length>0){let h=[...a];if(p.length>0){this.state=s,this.state.noArrowAt=h;for(let f=0;f<p.length;f++)h.push(p[f].start);(({consequent:u,failed:l}=this.tryParseConditionalConsequent())),[c,p]=this.getArrowLikeExpressions(u);}l&&c.length>1&&this.raise(yt.AmbiguousConditionalArrow,s.startLoc),l&&c.length===1&&(this.state=s,h.push(c[0].start),this.state.noArrowAt=h,{consequent:u,failed:l}=this.tryParseConditionalConsequent());}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=u,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),n=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:n}}getArrowLikeExpressions(r,n){let i=[r],s=[];for(;i.length!==0;){let a=i.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):s.push(a),i.push(a.body)):a.type==="ConditionalExpression"&&(i.push(a.consequent),i.push(a.alternate));}return n?(s.forEach(a=>this.finishArrowValidation(a)),[s,[]]):Ggr(s,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var n;this.toAssignableList(r.params,(n=r.extra)==null?void 0:n.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(r,!1,!0),this.scope.exit();}forwardNoArrowParamsConversionAt(r,n){let i;return this.state.noArrowParamsConversionAt.includes(r.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),i=n(),this.state.noArrowParamsConversionAt.pop()):i=n(),i}parseParenItem(r,n){let i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(n);return s.expression=i,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return i}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r);}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let n=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(n)}else if(this.isContextual(131)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}else if(this.isContextual(129)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseInterface(n)}else if(this.plugins.get("flow").enums&&this.isContextual(126)){r.exportKind="value";let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:n}=this.state,i=super.maybeParseExportNamespaceSpecifier(r);return i&&r.exportKind==="type"&&this.unexpected(n),i}parseClassId(r,n,i){super.parseClassId(r,n,i),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration());}parseClassMember(r,n,i){let{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,n))return;n.declare=!0;}super.parseClassMember(r,n,i),n.declare&&(n.type!=="ClassProperty"&&n.type!=="ClassPrivateProperty"&&n.type!=="PropertyDefinition"?this.raise(yt.DeclareClassElement,s):n.value&&this.raise(yt.DeclareClassFieldInitializer,n.value));}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),n="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(z.InvalidIdentifier,this.state.curPosition(),{identifierName:n}),this.finishToken(132,n);}getTokenFromCode(r){let n=this.input.charCodeAt(this.state.pos+1);r===123&&n===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?n===46?this.finishOp(18,2):this.finishOp(17,1):Pgr(r,n,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r);}isAssignable(r,n){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,n):super.isAssignable(r,n)}toAssignable(r,n=!1){!n&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,n);}toAssignableList(r,n,i){for(let s=0;s<r.length;s++){let a=r[s];(a==null?void 0:a.type)==="TypeCastExpression"&&(r[s]=this.typeCastToParameter(a));}super.toAssignableList(r,n,i);}toReferencedList(r,n){for(let s=0;s<r.length;s++){var i;let a=r[s];a&&a.type==="TypeCastExpression"&&!((i=a.extra)!=null&&i.parenthesized)&&(r.length>1||!n)&&this.raise(yt.TypeCastInPattern,a.typeAnnotation);}return r}parseArrayLike(r,n,i,s){let a=super.parseArrayLike(r,n,i,s);return n&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(r,n,i){return r==="TypeCastExpression"||super.isValidLVal(r,n,i)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return !this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,n,i,s,a,o){if(n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,n,i,s,a,o),n.params&&a){let u=n.params;u.length>0&&this.isThisParam(u[0])&&this.raise(yt.ThisParamBannedInConstructor,n);}else if(n.type==="MethodDefinition"&&a&&n.value.params){let u=n.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(yt.ThisParamBannedInConstructor,n);}}pushClassPrivateMethod(r,n,i,s){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,n,i,s);}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&this.match(47)&&(r.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let n=r.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,n.push(this.finishNode(i,"ClassImplements"));}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let n=this.getObjectOrClassMethodParams(r);if(n.length>0){let i=n[0];this.isThisParam(i)&&r.kind==="get"?this.raise(yt.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(yt.SetterMayNotHaveThisParam,i);}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance();}parseObjPropValue(r,n,i,s,a,o,u){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(r,n,i,s,a,o,u);return l&&((c.value||c).typeParameters=l),c}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(yt.PatternIsOptional,r),this.isThisParam(r)&&this.raise(yt.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(yt.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(yt.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,n){let i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(yt.TypeBeforeInitializer,i.typeAnnotation),i}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(yt.ImportReflectionHasImportType,r.specifiers[0].loc.start);}parseImportSpecifierLocal(r,n,i){n.local=MNe(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(n,i));}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return !0;if(this.isContextual(130)){if(!r)return !0;let n=this.lookaheadCharCode();return n===123||n===42}return !r&&this.isContextual(87)}applyImportPhase(r,n,i,s){if(super.applyImportPhase(r,n,i,s),n){if(!i&&this.match(65))return;r.exportKind=i==="type"?i:"value";}else i==="type"&&this.match(55)&&this.unexpected(),r.importKind=i==="type"||i==="typeof"?i:"value";}parseImportSpecifier(r,n,i,s,a){let o=r.imported,u=null;o.type==="Identifier"&&(o.name==="type"?u="type":o.name==="typeof"&&(u="typeof"));let l=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let p=this.parseIdentifier(!0);u!==null&&!bu(this.state.type)?(r.imported=p,r.importKind=u,r.local=Vc(p)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier());}else {if(u!==null&&bu(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=u;else {if(n)throw this.raise(z.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null;}this.eatContextual(93)?r.local=this.parseIdentifier():(l=!0,r.local=Vc(r.imported));}let c=MNe(r);return i&&c&&this.raise(yt.ImportTypeShorthandOnlyInPureImport,r),(i||c)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),l&&!i&&!c&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,n){let i=r.kind;i!=="get"&&i!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,n);}parseVarId(r,n){super.parseVarId(r,n),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id));}parseAsyncArrowFromCallExpression(r,n){if(this.match(14)){let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=i;}return super.parseAsyncArrowFromCallExpression(r,n)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,n){var i;let s=null,a;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(s=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,n),s),!a.error)return a.node;let{context:l}=this.state,c=l[l.length-1];(c===sn.j_oTag||c===sn.j_expr)&&l.pop();}if((i=a)!=null&&i.error||this.match(47)){var o,u;s=s||this.state.clone();let l,c=this.tryParse(h=>{var f;l=this.flowParseTypeParameterDeclaration();let d=this.forwardNoArrowParamsConversionAt(l,()=>{let y=super.parseMaybeAssign(r,n);return this.resetStartLocationFromNode(y,l),y});(f=d.extra)!=null&&f.parenthesized&&h();let m=this.maybeUnwrapTypeCastExpression(d);return m.type!=="ArrowFunctionExpression"&&h(),m.typeParameters=l,this.resetStartLocationFromNode(m,l),d},s),p=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(yt.UnexpectedTypeParameterBeforeAsyncArrowFunction,l),c.node;p=c.node;}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(p)return this.state=c.failState,p;throw (u=a)!=null&&u.thrown?a.error:c.thrown?c.error:this.raise(yt.UnexpectedTokenAfterTypeParameter,l)}return super.parseMaybeAssign(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let s=this.startNode();return [s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(n.thrown)return null;n.error&&(this.state=n.failState),r.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null;}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,n){this.state.noArrowParamsConversionAt.includes(r.start)?r.params=n:super.setArrowFunctionParameters(r,n);}checkParams(r,n,i,s=!0){if(!(i&&this.state.noArrowParamsConversionAt.includes(r.start))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(yt.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,n,i,s);}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(r,n,i){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(n.index)){this.next();let s=this.startNodeAt(n);s.callee=r,s.arguments=super.parseCallExpressionArguments(11,!1),r=this.finishNode(s,"CallExpression");}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let s=this.state.clone(),a=this.tryParse(u=>this.parseAsyncArrowWithTypeParameters(n)||u(),s);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,n,i),s);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,n,i)}parseSubscript(r,n,i,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,i)return s.stop=!0,r;this.next();let a=this.startNodeAt(n);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),a.arguments=this.parseCallExpressionArguments(11,!1),a.optional=!0,this.finishCallExpression(a,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){let a=this.startNodeAt(n);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(11,!1),s.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,s.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){super.parseNewCallee(r);let n=null;this.shouldParseTypes()&&this.match(47)&&(n=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=n;}parseAsyncArrowWithTypeParameters(r){let n=this.startNodeAt(r);if(this.parseFunctionParams(n,!1),!!this.parseArrow(n))return super.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===42&&n===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r);}readToken_pipe_amp(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===124&&n===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r);}parseTopLevel(r,n){let i=super.parseTopLevel(r,n);return this.state.hasFlowComment&&this.raise(yt.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(yt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,n=2;for(;[32,9].includes(this.input.charCodeAt(r+n));)n++;let i=this.input.charCodeAt(n+r),s=this.input.charCodeAt(n+r+1);return i===58&&s===58?n+2:this.input.slice(n+r,n+r+12)==="flow-include"?n+12:i===58&&s!==58?n:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(z.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:i}){this.raise(yt.EnumBooleanMemberNotInitialized,r,{memberName:i,enumName:n});}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?yt.EnumInvalidMemberInitializerSymbolType:yt.EnumInvalidMemberInitializerPrimaryType:yt.EnumInvalidMemberInitializerUnknownType,r,n)}flowEnumErrorNumberMemberNotInitialized(r,n){this.raise(yt.EnumNumberMemberNotInitialized,r,n);}flowEnumErrorStringMemberInconsistentlyInitialized(r,n){this.raise(yt.EnumStringMemberInconsistentlyInitialized,r,n);}flowEnumMemberInit(){let r=this.state.startLoc,n=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let i=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 133:{let i=this.parseStringLiteral(this.state.value);return n()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return n()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}default:return {type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,n=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return {id:n,init:i}}flowEnumCheckExplicitTypeMismatch(r,n,i){let{explicitType:s}=n;s!==null&&s!==i&&this.flowEnumErrorInvalidMemberInitializer(r,n);}flowEnumMembers({enumName:r,explicitType:n}){let i=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:u,init:l}=this.flowEnumMemberRaw(),c=u.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(yt.EnumInvalidMemberName,u,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),i.has(c)&&this.raise(yt.EnumDuplicateMemberName,u,{memberName:c,enumName:r}),i.add(c);let p={enumName:r,explicitType:n,memberName:c};switch(o.id=u,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"boolean"),o.init=l.value,s.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"number"),o.init=l.value,s.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"string"),o.init=l.value,s.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,p);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,p);break;default:s.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"));}}this.match(8)||this.expect(12);}return {members:s,hasUnknownMembers:a}}flowEnumStringMembers(r,n,{enumName:i}){if(r.length===0)return n;if(n.length===0)return r;if(n.length>r.length){for(let s of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return n}else {for(let s of n)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Ur(this.state.type))throw this.raise(yt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(yt.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:n}),n}flowEnumBody(r,n){let i=n.name,s=n.loc.start,a=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:u}=this.flowEnumMembers({enumName:i,explicitType:a});switch(r.hasUnknownMembers=u,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let l=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let c=o.booleanMembers.length,p=o.numberMembers.length,h=o.stringMembers.length,f=o.defaultedMembers.length;if(!c&&!p&&!h&&!f)return l();if(!c&&!p)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!p&&!h&&c>=f){for(let d of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(d.loc.start,{enumName:i,memberName:d.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!c&&!h&&p>=f){for(let d of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(d.loc.start,{enumName:i,memberName:d.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(yt.EnumInconsistentMemberValues,s,{enumName:i}),l()}}}flowParseEnumDeclaration(r){let n=this.parseIdentifier();return r.id=n,r.body=this.flowEnumBody(this.startNode(),n),this.finishNode(r,"EnumDeclaration")}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let n=this.input.charCodeAt(r+1);return n!==60&&n!==61}return !1}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},Ygr={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},pm=qc`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function nh(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function ZS(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ZS(e.object)+"."+ZS(e.property);throw new Error("Node had unexpected type: "+e.type)}var Wgr=e=>class extends e{jsxReadToken(){let r="",n=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(pm.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(i);return}r+=this.input.slice(n,this.state.pos),this.finishToken(141,r);return;case 38:r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos;break;case 62:case 125:default:tT(i)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!0),n=this.state.pos):++this.state.pos;}}}jsxReadNewLine(r){let n=this.input.charCodeAt(this.state.pos),i;return ++this.state.pos,n===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=r?`
`:`\r
`):i=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(r){let n="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(z.UnterminatedString,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);if(s===r)break;s===38?(n+=this.input.slice(i,this.state.pos),n+=this.jsxReadEntity(),i=this.state.pos):tT(s)?(n+=this.input.slice(i,this.state.pos),n+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos;}n+=this.input.slice(i,this.state.pos++),this.finishToken(133,n);}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let n=10;this.codePointAtPos(this.state.pos)===120&&(n=16,++this.state.pos);let i=this.readInt(n,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return ++this.state.pos,String.fromCodePoint(i)}else {let n=0,i=!1;for(;n++<10&&this.state.pos<this.length&&!(i=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(i){let s=this.input.slice(r,this.state.pos),a=Ygr[s];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,n=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(eT(r)||r===45);this.finishToken(140,this.input.slice(n,this.state.pos));}jsxParseIdentifier(){let r=this.startNode();return this.match(140)?r.name=this.state.value:CV(this.state.type)?r.name=ih(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,n=this.jsxParseIdentifier();if(!this.eat(14))return n;let i=this.startNodeAt(r);return i.namespace=n,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,n=this.jsxParseNamespacedName();if(n.type==="JSXNamespacedName")return n;for(;this.eat(16);){let i=this.startNodeAt(r);i.object=n,i.property=this.jsxParseIdentifier(),n=this.finishNode(i,"JSXMemberExpression");}return n}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(sn.brace),this.next(),r=this.jsxParseExpressionContainer(r,sn.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(pm.AttributeIsEmpty,r),r;case 142:case 133:return this.parseExprAtom();default:throw this.raise(pm.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(sn.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,n){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else {let i=this.parseExpression();r.expression=i;}return this.setContext(n),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(sn.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(sn.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let n=this.startNodeAt(r);return this.eat(143)?this.finishNode(n,"JSXOpeningFragment"):(n.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(n))}jsxParseOpeningElementAfterName(r){let n=[];for(;!this.match(56)&&!this.match(143);)n.push(this.jsxParseAttribute());return r.attributes=n,r.selfClosing=this.eat(56),this.expect(143),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let n=this.startNodeAt(r);return this.eat(143)?this.finishNode(n,"JSXClosingFragment"):(n.name=this.jsxParseElementName(),this.expect(143),this.finishNode(n,"JSXClosingElement"))}jsxParseElementAt(r){let n=this.startNodeAt(r),i=[],s=this.jsxParseOpeningElementAt(r),a=null;if(!s.selfClosing){e:for(;;)switch(this.state.type){case 142:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}i.push(this.jsxParseElementAt(r));break;case 141:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(sn.brace),this.next(),this.match(21)?i.push(this.jsxParseSpreadChild(o)):i.push(this.jsxParseExpressionContainer(o,sn.j_expr));break}default:this.unexpected();}nh(s)&&!nh(a)&&a!==null?this.raise(pm.MissingClosingTagFragment,a):!nh(s)&&nh(a)?this.raise(pm.MissingClosingTagElement,a,{openingTagName:ZS(s.name)}):!nh(s)&&!nh(a)&&ZS(a.name)!==ZS(s.name)&&this.raise(pm.MissingClosingTagElement,a,{openingTagName:ZS(s.name)});}if(nh(s)?(n.openingFragment=s,n.closingFragment=a):(n.openingElement=s,n.closingElement=a),n.children=i,this.match(47))throw this.raise(pm.UnwrappedAdjacentJSXElements,this.state.startLoc);return nh(s)?this.finishNode(n,"JSXFragment"):this.finishNode(n,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:n}=this.state;n[n.length-1]=r;}parseExprAtom(r){return this.match(142)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace();}getTokenFromCode(r){let n=this.curContext();if(n===sn.j_expr){this.jsxReadToken();return}if(n===sn.j_oTag||n===sn.j_cTag){if(Uc(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(143);return}if((r===34||r===39)&&n===sn.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(142);return}super.getTokenFromCode(r);}updateContext(r){let{context:n,type:i}=this.state;if(i===56&&r===142)n.splice(-2,2,sn.j_cTag),this.state.canStartJSXElement=!1;else if(i===142)n.push(sn.j_oTag);else if(i===143){let s=n[n.length-1];s===sn.j_oTag&&r===56||s===sn.j_cTag?(n.pop(),this.state.canStartJSXElement=n[n.length-1]===sn.j_expr):(this.setContext(sn.j_expr),this.state.canStartJSXElement=!0);}else this.state.canStartJSXElement=cgr(i);}},yV=class extends Zv{constructor(...t){super(...t),this.tsNames=new Map;}},gV=class extends e_{constructor(...t){super(...t),this.importsStack=[];}createScope(t){return this.importsStack.push(new Set),new yV(t)}enter(t){t===256&&this.importsStack.push(new Set),super.enter(t);}exit(){let t=super.exit();return t===256&&this.importsStack.pop(),t}hasImport(t,r){let n=this.importsStack.length;if(this.importsStack[n-1].has(t))return !0;if(!r&&n>1){for(let i=0;i<n-1;i++)if(this.importsStack[i].has(t))return !0}return !1}declareName(t,r,n){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(z.VarRedeclaration,n,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let i=this.currentScope(),s=i.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(i,t),i.tsNames.set(t,s|16);return}super.declareName(t,r,n),r&2&&(r&1||(this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t)),s=s|1),r&256&&(s=s|2),r&512&&(s=s|4),r&128&&(s=s|8),s&&i.tsNames.set(t,s);}isRedeclaredInScope(t,r,n){let i=t.tsNames.get(r);if((i&2)>0){if(n&256){let s=!!(n&512),a=(i&4)>0;return s!==a}return !0}return n&128&&(i&8)>0?t.names.get(r)&2?!!(n&1):!1:n&2&&(i&1)>0?!0:super.isRedeclaredInScope(t,r,n)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let n=this.scopeStack.length;for(let i=n-1;i>=0;i--){let a=this.scopeStack[i].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t);}},QNe=e=>e.type==="ParenthesizedExpression"?QNe(e.expression):e,SV=class extends mV{toAssignable(t,r=!1){var n,i;let s;switch((t.type==="ParenthesizedExpression"||(n=t.extra)!=null&&n.parenthesized)&&(s=QNe(t),r?s.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(z.InvalidParenthesizedAssignment,t):s.type!=="MemberExpression"&&!this.isOptionalMemberExpression(s)&&this.raise(z.InvalidParenthesizedAssignment,t):this.raise(z.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,u=t.properties.length,l=u-1;o<u;o++){var a;let c=t.properties[o],p=o===l;this.toAssignableObjectExpressionProp(c,p,r),p&&c.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(z.RestTrailingComma,t.extra.trailingCommaLoc);}break;case"ObjectProperty":{let{key:o,value:u}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(u,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,(i=t.extra)==null?void 0:i.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(z.MissingEqInAssignment,t.left.loc.end),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(s,r);break}}toAssignableObjectExpressionProp(t,r,n){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?z.PatternHasAccessor:z.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){t.type="RestElement";let i=t.argument;this.checkToRestConversion(i,!1),this.toAssignable(i,n),r||this.raise(z.RestTrailingComma,t);}else this.toAssignable(t,n);}toAssignableList(t,r,n){let i=t.length-1;for(let s=0;s<=i;s++){let a=t[s];if(a){if(a.type==="SpreadElement"){a.type="RestElement";let o=a.argument;this.checkToRestConversion(o,!0),this.toAssignable(o,n);}else this.toAssignable(a,n);a.type==="RestElement"&&(s<i?this.raise(z.RestTrailingComma,a):r&&this.raise(z.RestTrailingComma,r));}}}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return !0;case"ObjectExpression":{let n=t.properties.length-1;return t.properties.every((i,s)=>i.type!=="ObjectMethod"&&(s===n||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return !r;default:return !1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let n of t)(n==null?void 0:n.type)==="ArrayExpression"&&this.toReferencedListDeep(n.elements);}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,r,n){let i=n&1,s=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),i&&this.match(12))s.push(null);else {if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||n&2)&&(o=this.parseFunctionParamType(o)),s.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else {let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(z.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());s.push(this.parseAssignableListItem(n,o));}}return s}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return t===138?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,r,!1,!1,!0,!1)}parseAssignableListItem(t,r){let n=this.parseMaybeDefault();(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(n);let i=this.parseMaybeDefault(n.loc.start,n);return r.length&&(n.decorators=r),i}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){var i;if((t)!=null||(t=this.state.startLoc),r=(i=r)!=null?i:this.parseBindingAtom(),!this.eat(29))return r;let s=this.startNodeAt(t);return s.left=r,s.right=this.parseMaybeAssignAllowIn(),this.finishNode(s,"AssignmentPattern")}isValidLVal(t,r,n){switch(t){case"AssignmentPattern":return "left";case"RestElement":return "argument";case"ObjectProperty":return "value";case"ParenthesizedExpression":return "expression";case"ArrayPattern":return "elements";case"ObjectPattern":return "properties"}return !1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,n=64,i=!1,s=!1,a=!1){var o;let u=t.type;if(this.isObjectMethod(t))return;let l=this.isOptionalMemberExpression(t);if(l||u==="MemberExpression"){l&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(z.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(z.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,n,s);let{name:m}=t;i&&(i.has(m)?this.raise(z.ParamDupe,t):i.add(m));return}let c=this.isValidLVal(u,!(a||(o=t.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",n);if(c===!0)return;if(c===!1){let m=n===64?z.InvalidLhs:z.InvalidLhsBinding;this.raise(m,t,{ancestor:r});return}let p,h;typeof c=="string"?(p=c,h=u==="ParenthesizedExpression"):[p,h]=c;let f=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,d=t[p];if(Array.isArray(d))for(let m of d)m&&this.checkLVal(m,f,n,i,s,h);else d&&this.checkLVal(d,f,n,i,s,h);}checkIdentifier(t,r,n=!1){this.state.strict&&(n?YNe(t.name,this.inModule):KNe(t.name))&&(r===64?this.raise(z.StrictEvalArguments,t,{referenceName:t.name}):this.raise(z.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(z.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r);}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start);}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(z.InvalidRestAssignmentPattern,t);}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?z.RestTrailingComma:z.ElementAfterRest,this.state.startLoc),!0):!1}};function Xgr(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function LNe(e){if(!e)throw new Error("Assert fail")}var tt=qc`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function zgr(e){switch(e){case"any":return "TSAnyKeyword";case"boolean":return "TSBooleanKeyword";case"bigint":return "TSBigIntKeyword";case"never":return "TSNeverKeyword";case"number":return "TSNumberKeyword";case"object":return "TSObjectKeyword";case"string":return "TSStringKeyword";case"symbol":return "TSSymbolKeyword";case"undefined":return "TSUndefinedKeyword";case"unknown":return "TSUnknownKeyword";default:return}}function kNe(e){return e==="private"||e==="public"||e==="protected"}function Jgr(e){return e==="in"||e==="out"}var Qgr=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:tt.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:tt.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:tt.InvalidModifierOnTypeParameter});}getScopeHandler(){return gV}tsIsIdentifier(){return Ur(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,n){if(!Ur(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(r.includes(i)){if(n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:i,errorTemplate:s=tt.InvalidModifierOnTypeMember},a){let o=(l,c,p,h)=>{c===p&&a[h]&&this.raise(tt.InvalidModifiersOrder,l,{orderedModifiers:[p,h]});},u=(l,c,p,h)=>{(a[p]&&c===h||a[h]&&c===p)&&this.raise(tt.IncompatibleModifiers,l,{modifiers:[p,h]});};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(r.concat(n??[]),i);if(!c)break;kNe(c)?a.accessibility?this.raise(tt.DuplicateAccessibilityModifier,l,{modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),a.accessibility=c):Jgr(c)?(a[c]&&this.raise(tt.DuplicateModifier,l,{modifier:c}),a[c]=!0,o(l,c,"in","out")):(hasOwnProperty.call(a,c)?this.raise(tt.DuplicateModifier,l,{modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),u(l,c,"declare","override"),u(l,c,"static","abstract")),a[c]=!0),n!=null&&n.includes(c)&&this.raise(s,l,{modifier:c});}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,n){let i=[];for(;!this.tsIsListTerminator(r);)i.push(n());return i}tsParseDelimitedList(r,n,i){return Xgr(this.tsParseDelimitedListWorker(r,n,!0,i))}tsParseDelimitedListWorker(r,n,i,s){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let u=n();if(u==null)return;if(a.push(u),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;i&&this.expect(12);return}return s&&(s.value=o),a}tsParseBracketedList(r,n,i,s,a){s||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,n,a);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(tt.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(r.options=null),this.eat(12)&&(this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes"),this.match(11)||(r.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName()),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseEntityName(r=!0){let n=this.parseIdentifier(r);for(;this.eat(16);){let i=this.startNodeAtNode(n);i.left=n,i.right=this.parseIdentifier(r),n=this.finishNode(i,"TSQualifiedName");}return n}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let n=this.startNodeAtNode(r);return n.parameterName=r,n.typeAnnotation=this.tsParseTypeAnnotation(!1),n.asserts=!1,this.finishNode(n,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let n=this.startNode();return r(n),n.name=this.tsParseTypeParameterName(),n.constraint=this.tsEatThenParseType(81),n.default=this.tsEatThenParseType(29),this.finishNode(n,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let n=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();let i={value:-1};return n.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,i),n.params.length===0&&this.raise(tt.EmptyTypeParameters,n),i.value!==-1&&this.addExtra(n,"trailingComma",i.value),this.finishNode(n,"TSTypeParameterDeclaration")}tsFillSignature(r,n){let i=r===19,s="parameters",a="typeAnnotation";n.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),n[s]=this.tsParseBindingListForSignature(),i?n[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(n[a]=this.tsParseTypeOrTypePredicateAnnotation(r));}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let n of r){let{type:i}=n;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(tt.UnsupportedSignatureParameterKind,n,{type:i});}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13);}tsParseSignatureMember(r,n){return this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon(),this.finishNode(n,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Ur(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let n=this.parseIdentifier();n.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(n),this.expect(3),r.parameters=[n];let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,n){this.eat(17)&&(r.optional=!0);let i=r;if(this.match(10)||this.match(47)){n&&this.raise(tt.ReadonlyForMethodSignature,r);let s=i;s.kind&&this.match(47)&&this.raise(tt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let a="parameters",o="typeAnnotation";if(s.kind==="get")s[a].length>0&&(this.raise(z.BadGetterArity,this.state.curPosition()),this.isThisParam(s[a][0])&&this.raise(tt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[a].length!==1)this.raise(z.BadSetterArity,this.state.curPosition());else {let u=s[a][0];this.isThisParam(u)&&this.raise(tt.AccessorCannotDeclareThisParameter,this.state.curPosition()),u.type==="Identifier"&&u.optional&&this.raise(tt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),u.type==="RestElement"&&this.raise(tt.SetAccessorCannotHaveRestParameter,this.state.curPosition());}s[o]&&this.raise(tt.SetAccessorCannotHaveReturnType,s[o]);}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else {let s=i;n&&(s.readonly=!0);let a=this.tsTryParseTypeAnnotation();return a&&(s.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let n=this.tsTryParseIndexSignature(r);return n||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);{let n=this.startNode();n.name=this.tsParseTypeParameterName(),n.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(n,"TSTypeParameter");}return r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let n=!1;return r.elementTypes.forEach(i=>{let{type:s}=i;n&&s!=="TSRestType"&&s!=="TSOptionalType"&&!(s==="TSNamedTupleMember"&&i.optional)&&this.raise(tt.OptionalTypeBeforeRequired,i),n||(n=s==="TSNamedTupleMember"&&i.optional||s==="TSOptionalType");}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let{startLoc:r}=this.state,n=this.eat(21),i,s,a,o,l=bu(this.state.type)?this.lookaheadCharCode():null;if(l===58)i=!0,a=!1,s=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(l===63){a=!0;let c=this.state.startLoc,p=this.state.value,h=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,s=this.createIdentifier(this.startNodeAt(c),p),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=h,this.expect(17));}else o=this.tsParseType(),a=this.eat(17),i=this.eat(14);if(i){let c;s?(c=this.startNodeAtNode(s),c.optional=a,c.label=s,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(tt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAtNode(o),c.optional=a,this.raise(tt.InvalidTupleMemberLabel,o),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember");}else if(a){let c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType");}if(n){let c=this.startNodeAt(r);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType");}return o}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,n){let i=this.startNode();return r==="TSConstructorType"&&(i.abstract=!!n,n&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected();}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),n=this.lookahead();return n.type!==134&&n.type!==135&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Ur(r)||r===88||r===84){let n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":zgr(this.state.value);if(n!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,n)}return this.tsParseTypeReference()}}}this.unexpected();}tsParseArrayTypeOrHigher(){let r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAtNode(r);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType");}else {let n=this.startNodeAtNode(r);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType");}return r}tsParseTypeOperator(){let r=this.startNode(),n=this.state.value;return this.next(),r.operator=n,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),n==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(tt.UnexpectedReadonly,r);}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(n,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return ygr(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,n,i){let s=this.startNode(),a=this.eat(i),o=[];do o.push(n());while(this.eat(i));return o.length===1&&!a?o[0]:(s.types=o,this.finishNode(s,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Ur(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,n=r.length;try{return this.parseObjectLike(8,!0),r.length===n}catch{return !1}}if(this.match(0)){this.next();let{errors:r}=this.state,n=r.length;try{return super.parseBindingList(3,93,1),r.length===n}catch{return !1}}return !1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let n=this.startNode();this.expect(r);let i=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let u=this.tsParseThisTypeOrThisTypePredicate();return u.type==="TSThisType"?(i.parameterName=u,i.asserts=!0,i.typeAnnotation=null,u=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(u,i),u.asserts=!0),n.typeAnnotation=u,this.finishNode(n,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return s?(i.parameterName=this.parseIdentifier(),i.asserts=s,i.typeAnnotation=null,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,n);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=a,i.typeAnnotation=o,i.asserts=s,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return !1;let r=this.state.containsEsc;return this.next(),!Ur(this.state.type)&&!this.match(78)?!1:(r&&this.raise(z.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,n=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),n.typeAnnotation=this.tsParseType();}),this.finishNode(n,"TSTypeAnnotation")}tsParseType(){LNe(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let n=this.startNodeAtNode(r);return n.checkType=r,n.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),n.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),n.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(n,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(tt.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let n=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let s=this.startNode();return s.expression=this.tsParseEntityName(),this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSExpressionWithTypeArguments")});return i.length||this.raise(tt.EmptyHeritageClauseType,n,{token:r}),i}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),Ur(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(tt.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let n=this.startNode();return this.next(),this.finishNode(n,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInNoContext(r){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n;}}tsInType(r){let n=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=n;}}tsInDisallowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n;}}tsInAllowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n;}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,n={}){return n.const&&(r.const=!0),n.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,n=!1){if(r.id=this.parseIdentifier(),n||this.checkIdentifier(r.id,1024),this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),r.body=i;}else this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.global=!0,r.id=this.parseIdentifier()):this.match(133)?r.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,n,i){r.isExport=i||!1,r.id=n||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let s=this.tsParseModuleReference();return r.importKind==="type"&&s.type!=="TSExternalModuleReference"&&this.raise(tt.ImportAliasHasImportType,s),r.moduleReference=s,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let n=this.state.clone(),i=r();return this.state=n,i}tsTryParseAndCatch(r){let n=this.tryParse(i=>r()||i());if(!(n.aborted||!n.node))return n.error&&(this.state=n.failState),n.node}tsTryParse(r){let n=this.state.clone(),i=r();if(i!==void 0&&i!==!1)return i;this.state=n;}tsTryParseDeclare(r){if(this.isLineTerminator())return;let n=this.state.type,i;return this.isContextual(100)&&(n=74,i="let"),this.tsInAmbientContext(()=>{switch(n){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 75:case 74:return !this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(Ur(n))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,n,i){switch(n.name){case"declare":{let s=this.tsTryParseDeclare(r);return s&&(s.declare=!0),s}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let s=r;return s.global=!0,s.id=n,s.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,n.name,!1,i)}}tsParseDeclaration(r,n,i,s){switch(n){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||Ur(this.state.type)))return this.tsParseAbstractDeclaration(r,s);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(r);if(Ur(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&Ur(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(i)&&Ur(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let s=this.startNodeAt(r);return s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),s});if(this.state.maybeInArrowParameters=n,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(tt.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===sn.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return ggr(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(r,n){let i=this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);let a=s.accessibility,o=s.override,u=s.readonly;!(r&4)&&(a||u||o)&&this.raise(tt.UnexpectedParameterModifier,i);let l=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(l);let c=this.parseMaybeDefault(l.loc.start,l);if(a||u||o){let p=this.startNodeAt(i);return n.length&&(p.decorators=n),a&&(p.accessibility=a),u&&(p.readonly=u),o&&(p.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(tt.UnsupportedParameterPropertyKind,p),p.parameter=c,this.finishNode(p,"TSParameterProperty")}return n.length&&(l.decorators=n),c}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let n of r.params)n.type!=="Identifier"&&n.optional&&!this.state.isAmbientContext&&this.raise(tt.PatternIsOptional,n);}setArrowFunctionParameters(r,n,i){super.setArrowFunctionParameters(r,n,i),this.tsDisallowOptionalPattern(r);}parseFunctionBodyAndFinish(r,n,i=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let s=n==="FunctionDeclaration"?"TSDeclareFunction":n==="ClassMethod"||n==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,s):s==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(tt.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,s,i):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,n,i))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r);}tsCheckForInvalidTypeCasts(r){r.forEach(n=>{(n==null?void 0:n.type)==="TSTypeCastExpression"&&this.raise(tt.UnexpectedTypeAnnotation,n.typeAnnotation);});}toReferencedList(r,n){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,n,i,s){let a=super.parseArrayLike(r,n,i,s);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(r,n,i,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(n);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return s.stop=!0,r;s.optionalChainMember=a=!0,this.next();}if(this.match(47)||this.match(51)){let o,u=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(r)){let h=this.tsTryParseGenericAsyncArrowFunction(n);if(h)return h}let l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(eD(this.state.type)){let h=super.parseTaggedTemplateExpression(r,n,s);return h.typeParameters=l,h}if(!i&&this.eat(10)){let h=this.startNodeAt(n);return h.callee=r,h.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(h.arguments),h.typeParameters=l,s.optionalChainMember&&(h.optional=a),this.finishCallExpression(h,s.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&&tV(c)&&!this.hasPrecedingLineBreak())return;let p=this.startNodeAt(n);return p.expression=r,p.typeParameters=l,this.finishNode(p,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),u)return u.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(tt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),u}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){var n;super.parseNewCallee(r);let{callee:i}=r;i.type==="TSInstantiationExpression"&&!((n=i.extra)!=null&&n.parenthesized)&&(r.typeParameters=i.typeParameters,r.callee=i.expression);}parseExprOp(r,n,i){let s;if(JO(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){let a=this.startNodeAt(n);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(z.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,n,i)}return super.parseExprOp(r,n,i)}checkReservedWord(r,n,i,s){this.state.isAmbientContext||super.checkReservedWord(r,n,i,s);}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(tt.ImportReflectionHasImportType,r.specifiers[0].loc.start);}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return !0;if(this.isContextual(130)){let n=this.lookaheadCharCode();return r?n===123||n===42:n!==61}return !r&&this.isContextual(87)}applyImportPhase(r,n,i,s){super.applyImportPhase(r,n,i,s),n?r.exportKind=i==="type"?"type":"value":r.importKind=i==="type"||i==="typeof"?i:"value";}parseImport(r){if(this.match(133))return r.importKind="value",super.parseImport(r);let n;if(Ur(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let i=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,i);n=super.parseImportSpecifiersAndAfter(r,i);}else n=super.parseImport(r);return n.importKind==="type"&&n.specifiers.length>1&&n.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(tt.TypeImportCannotSpecifyDefaultAndNamed,n),n}parseExport(r,n){if(this.match(83)){this.next();let i=r,s=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(i,!1):i.importKind="value",this.tsParseImportEqualsDeclaration(i,s,!0)}else if(this.eat(29)){let i=r;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=r;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(r,n)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,n,i=!1){let{isAmbientContext:s}=this.state,a=super.parseVarStatement(r,n,i||s);if(!s)return a;for(let{id:o,init:u}of a.declarations)u&&(n!=="const"||o.typeAnnotation?this.raise(tt.InitializerNotAllowedInAmbientContext,u):eSr(u,this.hasPlugin("estree"))||this.raise(tt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,u));return a}parseStatementContent(r,n){if(this.match(75)&&this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(r,n)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,n){return n.some(i=>kNe(i)?r.accessibility===i:!!r[i])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,n,i){let s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:tt.InvalidModifierOnTypeParameterPositions},n);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,s)&&this.raise(tt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,n)):this.parseClassMemberWithIsStatic(r,n,i,!!n.static);};n.declare?this.tsInAmbientContext(a):a();}parseClassMemberWithIsStatic(r,n,i,s){let a=this.tsTryParseIndexSignature(n);if(a){r.body.push(a),n.abstract&&this.raise(tt.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(tt.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(tt.IndexSignatureHasDeclare,n),n.override&&this.raise(tt.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(tt.NonAbstractClassHasAbstractMethod,n),n.override&&(i.hadSuperClass||this.raise(tt.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(r,n,i,s);}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(tt.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(tt.ClassMethodHasDeclare,r);}parseExpressionStatement(r,n,i){return (n.type==="Identifier"?this.tsParseExpressionStatement(r,n,i):void 0)||super.parseExpressionStatement(r,n,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,n,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(r,n,i);let s=this.tryParse(()=>super.parseConditional(r,n));return s.node?(s.error&&(this.state=s.failState),s.node):(s.error&&super.setOptionalParametersError(i,s.error),r)}parseParenItem(r,n){let i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(n);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let n=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(tt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=Ur(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||i)&&(r.exportKind="type"),i&&(this.resetStartLocation(a,n),a.declare=!0),a):null}parseClassId(r,n,i,s){if((!n||i)&&this.isContextual(113))return;super.parseClassId(r,n,i,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a);}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let n=this.tsTryParseTypeAnnotation();n&&(r.typeAnnotation=n);}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(tt.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:n}=r;this.raise(tt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:n.type==="Identifier"&&!r.computed?n.name:`[${this.input.slice(n.start,n.end)}]`});}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(tt.PrivateElementHasAbstract,r),r.accessibility&&this.raise(tt.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(tt.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,i,s,a,o){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&a&&this.raise(tt.ConstructorHasTypeParameters,u);let{declare:l=!1,kind:c}=n;l&&(c==="get"||c==="set")&&this.raise(tt.DeclareAccessor,n,{kind:c}),u&&(n.typeParameters=u),super.pushClassMethod(r,n,i,s,a,o);}pushClassPrivateMethod(r,n,i,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(n.typeParameters=a),super.pushClassPrivateMethod(r,n,i,s);}declareClassPrivateMethodInScope(r,n){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&!hasOwnProperty.call(r.value,"body")||super.declareClassPrivateMethodInScope(r,n));}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"));}parseObjPropValue(r,n,i,s,a,o,u){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(r.typeParameters=l),super.parseObjPropValue(r,n,i,s,a,o,u)}parseFunctionParams(r,n){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.parseFunctionParams(r,n);}parseVarId(r,n){super.parseVarId(r,n),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(r.id.typeAnnotation=i,this.resetEndLocation(r.id));}parseAsyncArrowFromCallExpression(r,n){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,n)}parseMaybeAssign(r,n){var i,s,a,o,u;let l,c,p;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(l=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(r,n),l),!c.error)return c.node;let{context:d}=this.state,m=d[d.length-1];(m===sn.j_oTag||m===sn.j_expr)&&d.pop();}if(!((i=c)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(r,n);(!l||l===this.state)&&(l=this.state.clone());let h,f=this.tryParse(d=>{var m,y;h=this.tsParseTypeParameters(this.tsParseConstModifier);let g=super.parseMaybeAssign(r,n);return (g.type!=="ArrowFunctionExpression"||(m=g.extra)!=null&&m.parenthesized)&&d(),((y=h)==null?void 0:y.params.length)!==0&&this.resetStartLocationFromNode(g,h),g.typeParameters=h,g},l);if(!f.error&&!f.aborted)return h&&this.reportReservedArrowTypeParam(h),f.node;if(!c&&(LNe(!this.hasPlugin("jsx")),p=this.tryParse(()=>super.parseMaybeAssign(r,n),l),!p.error))return p.node;if((s=c)!=null&&s.node)return this.state=c.failState,c.node;if(f.node)return this.state=f.failState,h&&this.reportReservedArrowTypeParam(h),f.node;if((a=p)!=null&&a.node)return this.state=p.failState,p.node;throw ((o=c)==null?void 0:o.error)||f.error||((u=p)==null?void 0:u.error)}reportReservedArrowTypeParam(r){var n;r.params.length===1&&!r.params[0].constraint&&!((n=r.extra)!=null&&n.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(tt.ReservedArrowTypeParam,r);}parseMaybeUnary(r,n){return !this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(i=>{let s=this.tsParseTypeOrTypePredicateAnnotation(14);return (this.canInsertSemicolon()||!this.match(19))&&i(),s});if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),r.returnType=n.node);}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.resetEndLocation(r),r}isAssignable(r,n){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,n);case"TSParameterProperty":return !0;default:return super.isAssignable(r,n)}}toAssignable(r,n=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,n);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":n?this.expressionScope.recordArrowParameterBindingError(tt.UnexpectedTypeCastInParameter,r):this.raise(tt.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,n);break;case"AssignmentExpression":!n&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,n);}}toAssignableParenthesizedExpression(r,n){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,n);break;default:super.toAssignable(r,n);}}checkToRestConversion(r,n){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,n);}}isValidLVal(r,n,i){switch(r){case"TSTypeCastExpression":return !0;case"TSParameterProperty":return "parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return "expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return (i!==64||!n)&&["expression",!0];default:return super.isValidLVal(r,n,i)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(r);return i.typeParameters=n,i}this.unexpected(null,10);}return super.parseMaybeDecoratorArguments(r)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,n){let i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(tt.TypeAnnotationAfterAssign,i.typeAnnotation),i}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r);}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt());}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableList(r,n,i){for(let s=0;s<r.length;s++){let a=r[s];(a==null?void 0:a.type)==="TSTypeCastExpression"&&(r[s]=this.typeCastToParameter(a));}super.toAssignableList(r,n,i);}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(n=>this.isAssignable(n,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let n=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());n&&(r.typeParameters=n);}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let n=super.getGetterSetterExpectedParamCount(r),s=this.getObjectOrClassMethodParams(r)[0];return s&&this.isThisParam(s)?n+1:n}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:n,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=n,this.state.strict=i;}}parseClass(r,n,i){let s=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,n,i)}finally{this.state.inAbstractClass=s;}}tsParseAbstractDeclaration(r,n){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(n,this.parseClass(r,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(tt.NonClassMethodPropertyHasAbstractModifer,r),this.tsParseInterfaceDeclaration(r)}else this.unexpected(null,80);}parseMethod(r,n,i,s,a,o,u){let l=super.parseMethod(r,n,i,s,a,o,u);if(l.abstract&&(this.hasPlugin("estree")?!!l.value.body:!!l.body)){let{key:p}=l;this.raise(tt.AbstractMethodHasImplementation,l,{methodName:p.type==="Identifier"&&!l.computed?p.name:`[${this.input.slice(p.start,p.end)}]`});}return l}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return !!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,n,i,s){return !n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!1,i),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,n,i,s))}parseImportSpecifier(r,n,i,s,a){return !n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!0,i),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,n,i,s,i?4098:4096))}parseTypeOnlyImportExportSpecifier(r,n,i){let s=n?"imported":"local",a=n?"local":"exported",o=r[s],u,l=!1,c=!0,p=o.loc.start;if(this.isContextual(93)){let f=this.parseIdentifier();if(this.isContextual(93)){let d=this.parseIdentifier();bu(this.state.type)?(l=!0,o=f,u=n?this.parseIdentifier():this.parseModuleExportName(),c=!1):(u=d,c=!1);}else bu(this.state.type)?(c=!1,u=n?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=f);}else bu(this.state.type)&&(l=!0,n?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(n?tt.TypeModifierIsUsedInTypeImports:tt.TypeModifierIsUsedInTypeExports,p),r[s]=o,r[a]=u;let h=n?"importKind":"exportKind";r[h]=l?"type":"value",c&&this.eatContextual(93)&&(r[a]=n?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=Vc(r[s])),n&&this.checkIdentifier(r[a],l?4098:4096);}};function Zgr(e){if(e.type!=="MemberExpression")return !1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:eRe(e.object)}function eSr(e,t){var r;let{type:n}=e;if((r=e.extra)!=null&&r.parenthesized)return !1;if(t){if(n==="Literal"){let{value:i}=e;if(typeof i=="string"||typeof i=="boolean")return !0}}else if(n==="StringLiteral"||n==="BooleanLiteral")return !0;return !!(ZNe(e,t)||tSr(e,t)||n==="TemplateLiteral"&&e.expressions.length===0||Zgr(e))}function ZNe(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function tSr(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&ZNe(n,t))return !0}return !1}function eRe(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:eRe(e.object)}var FNe=qc`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),rSr=e=>class extends e{parsePlaceholder(r){if(this.match(144)){let n=this.startNode();return this.next(),this.assertNoSpace(),n.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(n,r)}}finishPlaceholder(r,n){let i=r;return (!i.expectedNode||!i.type)&&(i=this.finishNode(i,"Placeholder")),i.expectedNode=n,i}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(r);}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,n,i,s){r!==void 0&&super.checkReservedWord(r,n,i,s);}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,n,i){return r==="Placeholder"||super.isValidLVal(r,n,i)}toAssignable(r,n){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,n);}chStartsBindingIdentifier(r,n){return !!(super.chStartsBindingIdentifier(r,n)||this.lookahead().type===144)}verifyBreakContinue(r,n){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,n);}parseExpressionStatement(r,n){var i;if(n.type!=="Placeholder"||(i=n.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(r,n);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(n,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let s=r;return s.name=n.name,this.finishPlaceholder(s,"Statement")}parseBlock(r,n,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,n,i)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,n,i){let s=n?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(144)||this.match(5))r.id=o;else {if(i||!n)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,s);throw this.raise(FNe.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,n,i);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,s)}parseExport(r,n){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(r,n);let s=r;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=i,s.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(s,n)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(ih(144),this.nextTokenStartSince(r+4)))return !0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,n){var i;return (i=r.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(r,n)}checkExport(r){let{specifiers:n}=r;n!=null&&n.length&&(r.specifiers=n.filter(i=>i.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=n;}parseImport(r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(n,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let i=this.startNodeAtNode(n);return i.local=n,r.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(FNe.UnexpectedSpace,this.state.lastTokEndLoc);}},nSr=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,n=this.startNode();if(this.next(),Ur(this.state.type)){let i=this.parseIdentifierName(),s=this.createIdentifier(n,i);if(s.type="V8IntrinsicIdentifier",this.match(10))return s}this.unexpected(r);}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},BNe=["minimal","fsharp","hack","smart"],jNe=["^^","@@","^","%","#"];function iSr(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let r=e.get("decorators").decoratorsBeforeExport;if(r!=null&&typeof r!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let n=e.get("decorators").allowCallParenthesized;if(n!=null&&typeof n!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let r=e.get("pipelineOperator").proposal;if(!BNe.includes(r)){let i=BNe.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}let n=((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash";if(r==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let i=e.get("pipelineOperator").topicToken;if(!jNe.includes(i)){let s=jNe.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}if(i==="#"&&n)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(r==="smart"&&n)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("importAttributes")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(e.has("recordAndTuple")){let r=e.get("recordAndTuple").syntaxType;if(r!=null){let n=["hash","bar"];if(!n.includes(r))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+n.map(i=>`'${i}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw r.missingPlugins="doExpressions",r}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var tRe={estree:agr,jsx:Wgr,flow:Kgr,typescript:Qgr,v8intrinsic:nSr,placeholders:rSr},sSr=Object.keys(tRe),Qq={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function aSr(e){if(e==null)return Object.assign({},Qq);if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let n of Object.keys(Qq)){var r;t[n]=(r=e[n])!=null?r:Qq[n];}return t}var TV=class extends SV{checkProto(t,r,n,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let s=t.key;if((s.type==="Identifier"?s.name:s.value)==="__proto__"){if(r){this.raise(z.RecordNoProto,s);return}n.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=s.loc.start):this.raise(z.DuplicateProto,s)),n.used=!0;}}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&t.start===r}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(r);for(i.expressions=[n];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t,r){var n;t.optionalParametersLoc=(n=r==null?void 0:r.loc)!=null?n:this.state.startLoc;}parseMaybeAssign(t,r){let n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return r&&(o=r.call(this,o,n)),o}let i;t?i=!1:(t=new rT,i=!0);let{type:s}=this.state;(s===10||Ur(s))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(t);if(r&&(a=r.call(this,a,n)),pgr(this.state.type)){let o=this.startNodeAt(n),u=this.state.value;if(o.operator=u,this.match(29)){this.toAssignable(a,!0),o.left=a;let l=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null);}else o.left=a;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(o,"AssignmentExpression")),o}else i&&this.checkExpressionErrors(t,!0);return a}parseMaybeConditional(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,n)?i:this.parseConditional(i,r,t)}parseConditional(t,r,n){if(this.eat(17)){let i=this.startNodeAt(r);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,n)?i:this.parseExprOp(i,r,-1)}parseExprOp(t,r,n){if(this.isPrivateName(t)){let s=this.getPrivateNameSV(t);(n>=JO(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(z.PrivateInExpectedIn,t,{identifierName:s}),this.classScope.usePrivateName(s,t.loc.start);}let i=this.state.type;if(hgr(i)&&(this.prodParam.hasIn||!this.match(58))){let s=JO(i);if(s>n){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r);}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=i===41||i===42,u=i===40;if(u&&(s=JO(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(z.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(i,s);let l=this.finishNode(a,o||u?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(u&&(c===41||c===42)||o&&c===40)throw this.raise(z.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,r,n)}}return t}parseExprOpRightExpr(t,r){let n=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(z.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),n)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,Sgr(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,n=this.parseMaybeAssign();return tgr.has(n.type)&&!((t=n.extra)!=null&&t.parenthesized)&&this.raise(z.PipeUnparenthesizedBody,r,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(z.PipeTopicUnused,r),n}checkExponentialAfterUnary(t){this.match(57)&&this.raise(z.UnexpectedTokenUnaryExponentiation,t.argument);}parseMaybeUnary(t,r){let n=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();let u=this.parseAwait(n);return r||this.checkExponentialAfterUnary(u),u}let s=this.match(34),a=this.startNode();if(mgr(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let u=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&u){let l=a.argument;l.type==="Identifier"?this.raise(z.StrictDelete,a):this.hasPropertyAsPrivateName(l)&&this.raise(z.DeletePrivateField,a);}if(!s)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,s,t);if(i){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?tV(u):tV(u)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(z.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(t,r,n){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let i=this.state.startLoc,s=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return s;for(;dgr(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(i);a.operator=this.state.value,a.prefix=!1,a.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(a,"UpdateExpression"));}return s}parseExprSubscripts(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,n)?i:this.parseSubscripts(i,r)}parseSubscripts(t,r,n){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,n,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,r,n,i){let{type:s}=this.state;if(!n&&s===15)return this.parseBind(t,r,n,i);if(eD(s))return this.parseTaggedTemplateExpression(t,r,i);let a=!1;if(s===18){if(n&&(this.raise(z.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=a=!0,this.next();}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,i,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,i,o,a):(i.stop=!0,t)}}parseMember(t,r,n,i,s){let a=this.startNodeAt(r);return a.object=t,a.computed=i,i?(a.property=this.parseExpression(),this.expect(3)):this.match(138)?(t.type==="Super"&&this.raise(z.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=s,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,n,i){let s=this.startNodeAt(r);return s.object=t,this.next(),s.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,n)}parseCoverCallAndAsyncArrowHead(t,r,n,i){let s=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:u,optionalChainMember:l}=n;u&&(this.expressionScope.enter(Bgr()),a=new rT),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",o,a);let c=this.finishCallExpression(o,l);return u&&this.shouldParseAsyncArrow()&&!i?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),c)):(u&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=s,c}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r);}parseTaggedTemplateExpression(t,r,n){let i=this.startNodeAt(r);return i.tag=t,i.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(z.OptionalChainingNoTemplate,r),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")),t.arguments.length===0||t.arguments.length>2)this.raise(z.ImportCallArity,t,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise(z.ImportCallSpreadArgument,n);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,n,i,s){let a=[],o=!0,u=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){r&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(z.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),i&&this.addTrailingCommaExtraToNode(i),this.next();break}a.push(this.parseExprListItem(!1,s,n));}return this.state.inFSharpPipelineDirectBody=u,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var n;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(n=r.extra)==null?void 0:n.trailingCommaLoc),r.innerComments&&t_(t,r.innerComments),r.callee.trailingComments&&t_(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,n=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(r):this.match(10)?this.options.createImportExpressions?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(z.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let s=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(s)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let s=r.callee=this.parseNoCallExpr();if(s.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(z.UnsupportedBind,s)}case 138:return this.raise(z.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);this.unexpected();break}case 47:{let s=this.input.codePointAt(this.nextTokenStart());Uc(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(i===136)return this.parseDecimalLiteral(this.state.value);if(Ur(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let s=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:u}=this.state;if(u===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(Ur(u))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(u===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return s&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected();}}parseTopicReferenceThenEqualsSign(t,r){let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=Zs(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected();}parseTopicReference(t){let r=this.startNode(),n=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(r,n,t,i)}finishTopicReference(t,r,n,i){if(this.testTopicReferenceConfiguration(n,r,i)){let s=n==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(n==="smart"?z.PrimaryTopicNotAllowed:z.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,s)}else throw this.raise(z.PipeTopicUnconfiguredToken,r,{token:ih(i)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:ih(n)}]);case"smart":return n===27;default:throw this.raise(z.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(QO(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(z.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let n=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(z.SuperNotAllowed,t):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(z.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(z.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(Zs(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(r,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,n){t.meta=r;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||i)&&this.raise(z.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let r=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(z.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let n=this.isContextual(105);if(n||this.unexpected(),this.expectPlugin(n?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(z.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=n?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,r,"meta")}parseLiteralAtNode(t,r,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=t,this.next(),this.finishNode(n,r)}parseLiteral(t,r){let n=this.startNode();return this.parseLiteralAtNode(t,r,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,n;this.next(),this.expressionScope.enter(Fgr());let i=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],u=new rT,l=!0,c,p;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,u.optionalParametersLoc===null?null:u.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let d=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),d)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem));}let h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=s;let f=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),p&&this.unexpected(p),c&&this.unexpected(c),this.checkExpressionErrors(u,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,h)):n=o[0],this.wrapParenthesis(r,n))}wrapParenthesis(t,r){if(!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let n=this.startNodeAt(t);return n.expression=r,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return !this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let n=this.parseMetaProperty(t,r,"target");return !this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(z.UnexpectedNewTarget,n),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r;}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),n=this.parseNoCallExpr();t.callee=n,r&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise(z.ImportCallNotNewExpression,n);}parseTemplateElement(t){let{start:r,startLoc:n,end:i,value:s}=this.state,a=r+1,o=this.startNodeAt(Zs(n,1));s===null&&(t||this.raise(z.InvalidEscapeSequenceTemplate,Zs(this.state.firstInvalidTemplateEscapePos,1)));let u=this.match(24),l=u?-1:-2,c=i+l;o.value={raw:this.input.slice(a,c).replace(/\r\n?/g,`
`),cooked:s===null?null:s.slice(1,l)},o.tail=u,this.next();let p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,Zs(this.state.lastTokEndLoc,l)),p}parseTemplate(t){let r=this.startNode(),n=this.parseTemplateElement(t),i=[n],s=[];for(;!n.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(n=this.parseTemplateElement(t));return r.expressions=s,r.quasis=i,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,i){n&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),o=!0,u=this.startNode();for(u.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(u);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,n,a,i)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(z.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),u.properties.push(c);}this.next(),this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";return r?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(u,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1);}maybeAsyncOrAccessorProp(t){return !t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(z.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let n=this.startNode(),i=!1,s=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let u=this.state.containsEsc;if(this.parsePropertyName(n,t),!o&&!u&&this.maybeAsyncOrAccessorProp(n)){let{key:l}=n,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(n)),(c==="get"||c==="set")&&(s=!0,this.resetPreviousNodeTrailingComments(l),n.kind=c,this.match(55)&&(o=!0,this.raise(z.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(n));}return this.parseObjPropValue(n,a,o,i,!1,s,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let n=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==n&&this.raise(t.kind==="get"?z.BadGetterArity:z.BadSetterArity,t),t.kind==="set"&&((r=i[i.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(z.BadSetterRestParameter,t);}parseObjectMethod(t,r,n,i,s){if(s){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||r||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,i){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,Vc(t.key));else if(this.match(29)){let s=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=s):this.raise(z.InvalidCoverInitializedName,s),t.value=this.parseMaybeDefault(r,Vc(t.key));}else t.value=Vc(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,r,n,i,s,a,o){let u=this.parseObjectMethod(t,n,i,s,a)||this.parseObjectProperty(t,r,s,o);return u||this.unexpected(),u}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else {let{type:n,value:i}=this.state,s;if(bu(n))s=this.parseIdentifier(!0);else switch(n){case 134:s=this.parseNumericLiteral(i);break;case 133:s=this.parseStringLiteral(i);break;case 135:s=this.parseBigIntLiteral(i);break;case 138:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(z.UnexpectedPrivateField,a),s=this.parsePrivateName();break}default:if(n===136){s=this.parseDecimalLiteral(i);break}this.unexpected();}t.key=s,n!==138&&(t.computed=!1);}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r;}parseMethod(t,r,n,i,s,a,o=!1){this.initFunction(t,n),t.generator=r,this.scope.enter(18|(o?64:0)|(s?32:0)),this.prodParam.enter(QO(n,t.generator)),this.parseFunctionParams(t,i);let u=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),u}parseArrayLike(t,r,n,i){n&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(t,!n,i,a),this.state.inFSharpPipelineDirectBody=s,this.finishNode(a,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,n,i){this.scope.enter(6);let s=QO(n,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(t,n);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,n){this.toAssignableList(r,n,!1),t.params=r;}parseFunctionBodyAndFinish(t,r,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,r)}parseFunctionBody(t,r,n=!1){let i=r&&!this.match(5);if(this.expressionScope.enter(JNe()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else {let s=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let u=!this.isSimpleParamList(t.params);o&&u&&this.raise(z.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let l=!s&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!n&&!u,r,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,l);}),this.prodParam.exit(),this.state.labels=a;}this.expressionScope.exit();}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,n=t.length;r<n;r++)if(!this.isSimpleParameter(t[r]))return !1;return !0}checkParams(t,r,n,i=!0){let s=!r&&new Set,a={type:"FormalParameters"};for(let o of t.params)this.checkLVal(o,a,5,s,i);}parseExprList(t,r,n,i){let s=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}s.push(this.parseExprListItem(r,n));}return s}parseExprListItem(t,r,n){let i;if(this.match(12))t||this.raise(z.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(21)){let s=this.state.startLoc;i=this.parseParenItem(this.parseSpread(r),s);}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(z.UnexpectedArgumentPlaceholder,this.state.startLoc);let s=this.startNode();this.next(),i=this.finishNode(s,"ArgumentPlaceholder");}else i=this.parseMaybeAssignAllowIn(r,this.parseParenItem);return i}parseIdentifier(t){let r=this.startNode(),n=this.parseIdentifierName(t);return this.createIdentifier(r,n)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}parseIdentifierName(t){let r,{startLoc:n,type:i}=this.state;bu(i)?r=this.state.value:this.unexpected();let s=lgr(i);return t?s&&this.replaceToken(132):this.checkReservedWord(r,n,s,!1),this.next(),r}checkReservedWord(t,r,n,i){if(t.length>10||!wgr(t))return;if(n&&Agr(t)){this.raise(z.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?i?YNe:$Ne:GNe)(t,this.inModule)){this.raise(z.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(z.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(z.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(z.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r);}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(z.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(z.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(z.ObsoleteAwaitStar,r),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return !0;let{type:t}=this.state;return t===53||t===10||t===0||eD(t)||t===102&&!this.state.containsEsc||t===137||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(z.YieldInParameter,t),this.next();let r=!1,n=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:n=this.parseMaybeAssign();}return t.delegate=r,t.argument=n,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.hasPlugin("moduleAttributes")||this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes"),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(z.PipelineHeadSequenceExpression,r);}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let n=this.startNodeAt(r);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}else {let n=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return !t.computed&&this.isSimpleReference(t.object);case"Identifier":return !0;default:return !1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(z.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(z.PipelineTopicUnused,t);}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r;}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r;}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r;}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit();}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit();}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0;}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=n,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module");}finally{n();}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},Zq={kind:1},oSr={kind:2},uSr=/[\uD800-\uDFFF]/u,eV=/in(?:stanceof)?/y;function lSr(e,t){for(let r=0;r<e.length;r++){let n=e[r],{type:i}=n;if(typeof i=="number"){{if(i===138){let{loc:s,start:a,value:o,end:u}=n,l=a+1,c=Zs(s.start,1);e.splice(r,1,new Tl({type:Bc(27),value:"#",start:a,end:l,startLoc:s.start,endLoc:c}),new Tl({type:Bc(132),value:o,start:l,end:u,startLoc:c,endLoc:s.end})),r++;continue}if(eD(i)){let{loc:s,start:a,value:o,end:u}=n,l=a+1,c=Zs(s.start,1),p;t.charCodeAt(a)===96?p=new Tl({type:Bc(22),value:"`",start:a,end:l,startLoc:s.start,endLoc:c}):p=new Tl({type:Bc(8),value:"}",start:a,end:l,startLoc:s.start,endLoc:c});let h,f,d,m;i===24?(f=u-1,d=Zs(s.end,-1),h=o===null?null:o.slice(1,-1),m=new Tl({type:Bc(22),value:"`",start:f,end:u,startLoc:d,endLoc:s.end})):(f=u-2,d=Zs(s.end,-2),h=o===null?null:o.slice(1,-2),m=new Tl({type:Bc(23),value:"${",start:f,end:u,startLoc:d,endLoc:s.end})),e.splice(r,1,p,new Tl({type:Bc(20),value:h,start:l,end:f,startLoc:c,endLoc:d}),m),r+=2;continue}}n.type=Bc(i);}}return e}var EV=class extends TV{parseTopLevel(t,r){return t.program=this.parseProgram(r),t.comments=this.comments,this.options.tokens&&(t.tokens=lSr(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t,r=139,n=this.options.sourceType){if(t.sourceType=n,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[s,a]of Array.from(this.scope.undefinedExports))this.raise(z.ModuleExportUndefined,a,{localName:s});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait);}let i;return r===139?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",Zs(this.state.startLoc,-1)),i}stmtToDirective(t){let r=t;r.type="Directive",r.value=r.expression,delete r.expression;let n=r.value,i=n.value,s=this.input.slice(n.start,n.end),a=n.value=s.slice(1,-1);return this.addExtra(n,"raw",s),this.addExtra(n,"rawValue",a),this.addExtra(n,"expressionValue",i),n.type="DirectiveLiteral",r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,r){if(Uc(t)){if(eV.lastIndex=r,eV.test(this.input)){let n=this.codePointAtPos(eV.lastIndex);if(!eT(n)&&n!==92)return !1}return !0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}startsUsingForOf(){let{type:t,containsEsc:r}=this.lookahead();if(t===102&&!r)return !1;if(Ur(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return this.expectPlugin("explicitResourceManagement"),!0}return !1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let n=this.state.type,i=this.startNode(),s=!!(t&2),a=!!(t&4),o=t&1;switch(n){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?z.StrictFunction:this.options.annexB?z.SloppyFunctionAnnexB:z.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!s&&a);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?s||this.raise(z.UnexpectedLexicalDeclaration,i):this.raise(z.AwaitUsingNotInAsyncContext,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(z.UnexpectedUsingDeclaration,this.state.startLoc):s||this.raise(z.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),p=this.codePointAtPos(c);if(p!==91&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(p,c)&&p!==123))break}case 75:s||this.raise(z.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(z.UnexpectedImportExport,this.state.startLoc),this.next();let c;return n===83?(c=this.parseImport(i),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(i,r),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return s||this.raise(z.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!s&&a)}let u=this.state.value,l=this.parseExpression();return Ur(n)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,u,l,t):this.parseExpressionStatement(i,l,r)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(z.ImportOutsideModule,t);}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,n){return t&&(r.decorators&&r.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(z.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),n&&this.resetStartLocationFromNode(n,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(z.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(z.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,n;if(this.match(10)){let i=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(i,n);let s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise(z.DecoratorArgumentsOutsideParentheses,s);}else {for(n=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(r);i.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,n=this.finishNode(i,"MemberExpression");}t.expression=this.parseMaybeDecoratorArguments(n);}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let r=this.startNodeAtNode(t);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let n;for(n=0;n<this.state.labels.length;++n){let i=this.state.labels[n];if((t.label==null||i.name===t.label.name)&&(i.kind!=null&&(r||i.kind===1)||t.label&&r))break}if(n===this.state.labels.length){let i=r?"BreakStatement":"ContinueStatement";this.raise(z.IllegalBreakContinue,t,{type:i});}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(Zq),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Zq);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let n=this.isContextual(100);{let u=this.isContextual(96)&&this.startsAwaitUsing(),l=u||this.isContextual(107)&&this.startsUsingForOf(),c=n&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let p=this.startNode(),h;u?(h="await using",this.recordAwaitIfAllowed()||this.raise(z.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):h=this.state.value,this.next(),this.parseVar(p,!0,h);let f=this.finishNode(p,"VariableDeclaration"),d=this.match(58);return d&&l&&this.raise(z.ForInUsing,f),(d||this.isContextual(102))&&f.declarations.length===1?this.parseForIn(t,f,r):(r!==null&&this.unexpected(r),this.parseFor(t,f))}}let i=this.isContextual(95),s=new rT,a=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(n&&this.raise(z.ForOfLet,a),r===null&&i&&a.type==="Identifier"&&this.raise(z.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(a,!0);let u=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:u}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(s,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return !this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(z.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(oSr),this.scope.enter(0);let n;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let s=this.match(61);n&&this.finishNode(n,"SwitchCase"),r.push(n=this.startNode()),n.consequent=[],this.next(),s?n.test=this.parseExpression():(i&&this.raise(z.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,n.test=null),this.expect(14);}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(z.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause");}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(z.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,n=!1){return this.next(),this.parseVar(t,!1,r,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Zq),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(z.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,n,i){for(let a of this.state.labels)a.name===r&&this.raise(z.LabelRedeclaration,n,{labelName:r});let s=fgr(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=s;else break}return this.state.labels.push({name:r,kind:s,statementStart:this.state.start}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,n){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,n){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,n),r&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,n,i,s){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,n,i,s);}parseBlockOrModuleBlockBody(t,r,n,i,s){let a=this.state.strict,o=!1,u=!1;for(;!this.match(i);){let l=n?this.parseModuleItem():this.parseStatementListItem();if(r&&!u){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);r.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}u=!0,this.state.strictErrors.clear();}t.push(l);}s==null||s.call(this,o),a||this.setStrict(!1),this.next();}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,n){let i=this.match(58);return this.next(),i?n!==null&&this.unexpected(n):t.await=n!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(z.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(z.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,r,n,i=!1){let s=t.declarations=[];for(t.kind=n;;){let a=this.startNode();if(this.parseVarId(a,n),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!i&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(z.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(z.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),s.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let n=this.parseBindingAtom();(r==="using"||r==="await using")&&(n.type==="ArrayPattern"||n.type==="ObjectPattern")&&this.raise(z.UsingDeclarationHasBindingPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=n;}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let n=r&2,i=!!(r&1),s=i&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(n&&this.raise(z.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(s));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(QO(a,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression");}),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||Ur(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(kgr()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit();}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start);}parseClass(t,r,n){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return !t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:t},i=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(z.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let a=this.startNode();i.length&&(a.decorators=i,this.resetStartLocationFromNode(a,i[0]),i=[]),this.parseClassMember(s,a,n),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(z.DecoratorConstructor,a);}}),this.state.strict=r,this.next(),i.length)throw this.raise(z.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(t,r){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let i=r;return i.kind="method",i.computed=!1,i.key=n,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=r;return i.computed=!1,i.key=n,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,r,n){let i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,n,i);}parseClassMemberWithIsStatic(t,r,n,i){let s=r,a=r,o=r,u=r,l=r,c=s,p=s;if(r.static=i,this.parsePropertyNamePrefixOperator(r),this.eat(55)){c.kind="method";let g=this.match(138);if(this.parseClassElementName(c),g){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(s)&&this.raise(z.ConstructorIsGenerator,s.key),this.pushClassMethod(t,s,!0,!1,!1,!1);return}let h=!this.state.containsEsc&&Ur(this.state.type),f=this.parseClassElementName(r),d=h?f.name:null,m=this.isPrivateName(f),y=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",m){this.pushClassPrivateMethod(t,a,!1,!1);return}let g=this.isNonstaticConstructor(s),v=!1;g&&(s.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(z.DuplicateConstructor,f),g&&this.hasPlugin("typescript")&&r.override&&this.raise(z.OverrideOnConstructor,f),n.hadConstructor=!0,v=n.hadSuperClass),this.pushClassMethod(t,s,!1,!1,g,v);}else if(this.isClassProperty())m?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o);else if(d==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let g=this.eat(55);p.optional&&this.unexpected(y),c.kind="method";let v=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),v?this.pushClassPrivateMethod(t,a,g,!0):(this.isNonstaticConstructor(s)&&this.raise(z.ConstructorIsAsync,s.key),this.pushClassMethod(t,s,g,!0,!1,!1));}else if((d==="get"||d==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),c.kind=d;let g=this.match(138);this.parseClassElementName(s),g?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(z.ConstructorIsAccessor,s.key),this.pushClassMethod(t,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s);}else if(d==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);let g=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,g);}else this.isLineTerminator()?m?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o):this.unexpected();}parseClassElementName(t){let{type:r,value:n}=this.state;if((r===132||r===133)&&t.static&&n==="prototype"&&this.raise(z.StaticPrototype,this.state.startLoc),r===138){n==="constructor"&&this.raise(z.ConstructorClassPrivateField,this.state.startLoc);let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var n;this.scope.enter(208);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let s=r.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(r,"StaticBlock")),(n=r.decorators)!=null&&n.length&&this.raise(z.DecoratorStaticBlock,r);}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(z.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r));}pushClassPrivateProperty(t,r){let n=this.parseClassPrivateProperty(r);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start);}pushClassAccessorProperty(t,r,n){!n&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(z.ConstructorClassField,r.key);let i=this.parseClassAccessorProperty(r);t.body.push(i),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start);}pushClassMethod(t,r,n,i,s,a){t.body.push(this.parseMethod(r,n,i,s,a,"ClassMethod",!0));}pushClassPrivateMethod(t,r,n,i){let s=this.parseMethod(r,n,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(s);let a=s.kind==="get"?s.static?6:2:s.kind==="set"?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,a);}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start);}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(JNe()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit();}parseClassId(t,r,n,i=8331){if(Ur(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,i);else if(n||!r)t.id=null;else throw this.raise(z.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null;}parseExport(t,r){let n=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,n),s=!i||this.eat(12),a=s&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),u=s&&(!o||this.eat(12)),l=i||a;if(a&&!o){if(i&&this.unexpected(),r)throw this.raise(z.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);i&&s&&!a&&!c&&this.unexpected(null,5),o&&u&&this.unexpected(null,98);let p;if(l||c){if(p=!1,r)throw this.raise(z.UnsupportedDecoratorExport,t);this.parseExportFrom(t,l);}else p=this.maybeParseExportDeclaration(t);if(l||c||p){var h;let f=t;if(this.checkExport(f,!0,!1,!!f.source),((h=f.declaration)==null?void 0:h.type)==="ClassDeclaration")this.maybeTakeDecorators(r,f.declaration,f);else if(r)throw this.raise(z.UnsupportedDecoratorExport,t);return this.finishNode(f,"ExportNamedDeclaration")}if(this.eat(65)){let f=t,d=this.parseExportDefaultExpression();if(f.declaration=d,d.type==="ClassDeclaration")this.maybeTakeDecorators(r,d,f);else if(r)throw this.raise(z.UnsupportedDecoratorExport,t);return this.checkExport(f,!0,!0),this.finishNode(f,"ExportDefaultDeclaration")}this.unexpected(null,5);}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r==null?void 0:r.loc.start);let n=r||this.parseIdentifier(!0),i=this.startNodeAtNode(n);return i.exported=n,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return !1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r;((r=t).specifiers)!=null||(r.specifiers=[]);let i=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return !1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let n=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(n)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return !1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return !1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(z.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(z.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(Ur(t)){if(t===95&&!this.state.containsEsc||t===100)return !1;if((t===130||t===129)&&!this.state.containsEsc){let{type:i}=this.lookahead();if(Ur(i)&&i!==98||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return !1;let r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Ur(this.state.type)&&n)return !0;if(this.match(65)&&n){let i=this.input.charCodeAt(this.nextTokenStartSince(r+4));return i===34||i===39}return !1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon();}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(z.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(z.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(z.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,n,i){if(r){var s;if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(z.ExportDefaultFromAsIdentifier,o);}}else if((s=t.specifiers)!=null&&s.length)for(let o of t.specifiers){let{exported:u}=o,l=u.type==="Identifier"?u.name:u.value;if(this.checkDuplicateExports(o,l),!i&&o.local){let{local:c}=o;c.type!=="Identifier"?this.raise(z.ExportBindingIsString,o,{localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c));}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:u}=o;if(!u)throw new Error("Assertion failure");this.checkDuplicateExports(t,u.name);}else if(o.type==="VariableDeclaration")for(let u of o.declarations)this.checkDeclaration(u.id);}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left);}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(z.DuplicateDefaultExport,t):this.raise(z.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r);}parseExportSpecifiers(t){let r=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(130),s=this.match(133),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,s,t,i));}return r}parseExportSpecifier(t,r,n,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=Ugr(t.local):t.exported||(t.exported=Vc(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let t=this.parseStringLiteral(this.state.value),r=uSr.exec(t.value);return r&&this.raise(z.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:n})=>n.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,n=r.length===1?r[0].type:null;if(t.phase==="source")n!=="ImportDefaultSpecifier"&&this.raise(z.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")n!=="ImportNamespaceSpecifier"&&this.raise(z.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var i;n!=="ImportDefaultSpecifier"&&this.raise(z.ImportReflectionNotBinding,r[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(z.ImportReflectionHasAssertion,r[0].loc.start);}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let n=r.find(i=>{let s;if(i.type==="ExportSpecifier"?s=i.local:i.type==="ImportSpecifier"&&(s=i.imported),s!==void 0)return s.type==="Identifier"?s.name!=="default":s.value!=="default"});n!==void 0&&this.raise(z.ImportJSONBindingNotDefault,n.loc.start);}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,n,i){r||(n==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null));}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let n=this.parseIdentifier(!0),{type:i}=this.state;return (bu(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(t,r,n.name,n.loc.start),null):(this.applyImportPhase(t,r,null),n)}isPrecedingIdImportPhase(t){let{type:r}=this.state;return Ur(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),s=i&&this.maybeParseStarImportSpecifier(t);return i&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return (t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,n){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,n));}finishImportSpecifier(t,r,n=8201){return this.checkLVal(t.local,{type:r},n),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let n=this.startNode(),i=this.state.value;if(r.has(i)&&this.raise(z.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),r.add(i),this.match(133)?n.key=this.parseStringLiteral(i):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(z.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"));}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(z.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(z.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(z.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"));}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?r=this.parseModuleAttributes():(this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes"),r=this.parseImportAttributes()),n=!0;}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(z.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),r=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))r=[];else if(this.hasPlugin("moduleAttributes"))r=[];else return;!n&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r;}maybeParseDefaultImportSpecifier(t,r){if(r){let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if(bu(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return !1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return !1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else {if(this.eat(14))throw this.raise(z.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),i=this.match(133),s=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,i,t.importKind==="type"||t.importKind==="typeof",s,void 0);t.specifiers.push(a);}}parseImportSpecifier(t,r,n,i,s){if(this.eatContextual(93))t.local=this.parseIdentifier();else {let{imported:a}=t;if(r)throw this.raise(z.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=Vc(a));}return this.finishImportSpecifier(t,"ImportSpecifier",s)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},rD=class extends EV{constructor(t,r,n){t=aSr(t),super(t,r),this.options=t,this.initializeScopes(),this.plugins=n,this.filename=t.sourceFilename;}getScopeHandler(){return e_}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,r),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}};function cSr(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let n=Jv(t,e),i=n.parse();if(n.sawUnambiguousESM)return i;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",Jv(t,e).parse()}catch{}else i.program.sourceType="script";return i}catch(n){try{return t.sourceType="script",Jv(t,e).parse()}catch{}throw n}}else return Jv(t,e).parse()}function pSr(e,t){let r=Jv(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function fSr(e){let t={};for(let r of Object.keys(e))t[r]=Bc(e[r]);return t}var hSr=fSr(ugr);function Jv(e,t){let r=rD,n=new Map;if(e!=null&&e.plugins){for(let i of e.plugins){let s,a;typeof i=="string"?s=i:[s,a]=i,n.has(s)||n.set(s,a||{});}iSr(n),r=dSr(n);}return new r(e,t,n)}var UNe=new Map;function dSr(e){let t=[];for(let i of sSr)e.has(i)&&t.push(i);let r=t.join("|"),n=UNe.get(r);if(!n){n=rD;for(let i of t)n=tRe[i](n);UNe.set(r,n);}return n}r_.parse=cSr;r_.parseExpression=pSr;r_.tokTypes=hSr;});var Vq=chunkTKGT252T_js.c(sh=>{Object.defineProperty(sh,"__esModule",{value:!0});sh._replaceWith=lRe;sh.replaceExpressionWithStatements=VSr;sh.replaceInline=HSr;sh.replaceWith=qSr;sh.replaceWithMultiple=jSr;sh.replaceWithSourceString=USr;var mSr=jq(),RV=am(),ySr=th(),aRe=nm(),MV=KO(),gSr=DV(),SSr=er(),aT=Sl(),{FUNCTION_TYPES:rRe,arrowFunctionExpression:TSr,assignmentExpression:oRe,awaitExpression:ESr,blockStatement:bSr,buildUndefinedNode:NV,callExpression:vSr,cloneNode:LV,conditionalExpression:_Sr,expressionStatement:xSr,getBindingIdentifiers:ASr,identifier:PSr,inheritLeadingComments:CSr,inheritTrailingComments:wSr,inheritsComments:ISr,isBlockStatement:OSr,isEmptyStatement:nRe,isExpression:uRe,isExpressionStatement:DSr,isIfStatement:NSr,isProgram:RSr,isStatement:MSr,isVariableDeclaration:LSr,removeComments:kSr,returnStatement:iRe,sequenceExpression:FSr,validate:sRe,yieldExpression:BSr}=SSr;function jSr(e){var t;aT.resync.call(this),e=MV._verifyNodeList.call(this,e),CSr(e[0],this.node),wSr(e[e.length-1],this.node),(t=(0, aRe.getCachedPaths)(this.hub,this.parent))==null||t.delete(this.node),this.node=this.container[this.key]=null;let r=this.insertAfter(e);return this.node?this.requeue():this.remove(),r}function USr(e){aT.resync.call(this);let t;try{e=`(${e})`,t=(0,gSr.parse)(e);}catch(n){let i=n.loc;throw i&&(n.message+=` - make sure this is an expression.
`+(0, mSr.codeFrameColumns)(e,{start:{line:i.line,column:i.column+1}}),n.code="BABEL_REPLACE_SOURCE_ERROR"),n}let r=t.program.body[0].expression;return RV.default.removeProperties(r),this.replaceWith(r)}function qSr(e){if(aT.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof ySr.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return [this];if(this.isProgram()&&!RSr(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&uRe(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=xSr(t),r="expression"),this.isNodeType("Expression")&&MSr(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let n=this.node;return n&&(ISr(t,n),kSr(n)),lRe.call(this,t),this.type=t.type,aT.setScope.call(this),this.requeue(),[r?this.get(r):this]}function lRe(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?sRe(this.parent,this.key,[e]):sRe(this.parent,this.key,e),this.debug(`Replace with ${e==null?void 0:e.type}`),(t=(0, aRe.getCachedPaths)(this.hub,this.parent))==null||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e;}function VSr(e){aT.resync.call(this);let t=[],r=nD(e,t);if(r){for(let h of t)this.scope.push({id:h});return this.replaceWith(r)[0].get("expressions")}let n=this.getFunctionParent(),i=n==null?void 0:n.node.async,s=n==null?void 0:n.node.generator,a=TSr([],bSr(e));this.replaceWith(vSr(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables(h=>this.scope.push({id:h}));let u=o.getCompletionRecords();for(let h of u){if(!h.isExpressionStatement())continue;let f=h.findParent(d=>d.isLoop());if(f){let d=f.getData("expressionReplacementReturnUid");d?d=PSr(d.name):(d=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",iRe(LV(d))),f.setData("expressionReplacementReturnUid",d)),h.get("expression").replaceWith(oRe("=",LV(d),h.node.expression));}else h.replaceWith(iRe(h.node.expression));}o.arrowFunctionToExpression();let l=o,c=i&&RV.default.hasType(this.get("callee.body").node,"AwaitExpression",rRe),p=s&&RV.default.hasType(this.get("callee.body").node,"YieldExpression",rRe);return c&&(l.set("async",!0),p||this.replaceWith(ESr(this.node))),p&&(l.set("generator",!0),this.replaceWith(BSr(this.node,!0))),l.get("body.body")}function nD(e,t){let r=[],n=!0;for(let i of e)if(nRe(i)||(n=!1),uRe(i))r.push(i);else if(DSr(i))r.push(i.expression);else if(LSr(i)){if(i.kind!=="var")return;for(let s of i.declarations){let a=ASr(s);for(let o of Object.keys(a))t.push(LV(a[o]));s.init&&r.push(oRe("=",s.id,s.init));}n=!0;}else if(NSr(i)){let s=i.consequent?nD([i.consequent],t):NV(),a=i.alternate?nD([i.alternate],t):NV();if(!s||!a)return;r.push(_Sr(i.test,s,a));}else if(OSr(i)){let s=nD(i.body,t);if(!s)return;r.push(s);}else if(nRe(i))e.indexOf(i)===0&&(n=!0);else return;return n&&r.push(NV()),r.length===1?r[0]:FSr(r)}function HSr(e){if(aT.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=MV._verifyNodeList.call(this,e);let t=MV._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var hRe=chunkTKGT252T_js.c(iD=>{Object.defineProperty(iD,"__esModule",{value:!0});iD.evaluate=JSr;iD.evaluateTruthy=XSr;var GSr=["Number","String","Math"],$Sr=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],KSr=["random"];function cRe(e){return GSr.includes(e)}function YSr(e){return $Sr.includes(e)}function WSr(e){return KSr.includes(e)}function XSr(){let e=this.evaluate();if(e.confident)return !!e.value}function Hc(e,t){t.confident&&(t.deoptPath=e,t.confident=!1);}var pRe=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function ea(e,t){let{node:r}=e,{seen:n}=t;if(n.has(r)){let i=n.get(r);if(i.resolved)return i.value;Hc(e,t);return}else {let i={resolved:!1};n.set(r,i);let s=zSr(e,t);return t.confident&&(i.resolved=!0,i.value=s),s}}function zSr(e,t){if(t.confident){if(e.isSequenceExpression()){let r=e.get("expressions");return ea(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return fRe(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let r=e.get("tag.object"),{node:{name:n}}=r,i=e.get("tag.property");if(r.isIdentifier()&&n==="String"&&!e.scope.getBinding(n)&&i.isIdentifier()&&i.node.name==="raw")return fRe(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let r=ea(e.get("test"),t);return t.confident?ea(r?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return ea(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let r=e.get("property"),n=e.get("object");if(n.isLiteral()){let i=n.node.value,s=typeof i,a=null;if(e.node.computed){if(a=ea(r,t),!t.confident)return}else r.isIdentifier()&&(a=r.node.name);if((s==="number"||s==="string")&&a!=null&&(typeof a=="number"||typeof a=="string"))return i[a]}}if(e.isReferencedIdentifier()){let r=e.scope.getBinding(e.node.name);if(r){if(r.constantViolations.length>0||e.node.start<r.path.node.end){Hc(r.path,t);return}if(r.hasValue)return r.value}let n=e.node.name;if(pRe.has(n)){if(!r)return pRe.get(n);Hc(r.path,t);return}let i=e.resolve();if(i===e){Hc(e,t);return}else return ea(i,t)}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;let r=e.get("argument");if(e.node.operator==="typeof"&&(r.isFunction()||r.isClass()))return "function";let n=ea(r,t);if(!t.confident)return;switch(e.node.operator){case"!":return !n;case"+":return +n;case"-":return -n;case"~":return ~n;case"typeof":return typeof n}}if(e.isArrayExpression()){let r=[],n=e.get("elements");for(let i of n){let s=i.evaluate();if(s.confident)r.push(s.value);else {Hc(s.deopt,t);return}}return r}if(e.isObjectExpression()){let r={},n=e.get("properties");for(let i of n){if(i.isObjectMethod()||i.isSpreadElement()){Hc(i,t);return}let s=i.get("key"),a;if(i.node.computed){if(a=s.evaluate(),!a.confident){Hc(a.deopt,t);return}a=a.value;}else s.isIdentifier()?a=s.node.name:a=s.node.value;let u=i.get("value").evaluate();if(!u.confident){Hc(u.deopt,t);return}u=u.value,r[a]=u;}return r}if(e.isLogicalExpression()){let r=t.confident,n=ea(e.get("left"),t),i=t.confident;t.confident=r;let s=ea(e.get("right"),t),a=t.confident;switch(e.node.operator){case"||":return t.confident=i&&(!!n||a),t.confident?n||s:void 0;case"&&":return t.confident=i&&(!n||a),t.confident?n&&s:void 0;case"??":return t.confident=i&&(n!=null||a),t.confident?n??s:void 0}}if(e.isBinaryExpression()){let r=ea(e.get("left"),t);if(!t.confident)return;let n=ea(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return r-n;case"+":return r+n;case"/":return r/n;case"*":return r*n;case"%":return r%n;case"**":return Math.pow(r,n);case"<":return r<n;case">":return r>n;case"<=":return r<=n;case">=":return r>=n;case"==":return r==n;case"!=":return r!=n;case"===":return r===n;case"!==":return r!==n;case"|":return r|n;case"&":return r&n;case"^":return r^n;case"<<":return r<<n;case">>":return r>>n;case">>>":return r>>>n}}if(e.isCallExpression()){let r=e.get("callee"),n,i;if(r.isIdentifier()&&!e.scope.getBinding(r.node.name)&&(cRe(r.node.name)||YSr(r.node.name))&&(i=global[r.node.name]),r.isMemberExpression()){let s=r.get("object"),a=r.get("property");if(s.isIdentifier()&&a.isIdentifier()&&cRe(s.node.name)&&!WSr(a.node.name)){n=global[s.node.name];let o=a.node.name;hasOwnProperty.call(n,o)&&(i=n[o]);}if(s.isLiteral()&&a.isIdentifier()){let o=typeof s.node.value;(o==="string"||o==="number")&&(n=s.node.value,i=n[a.node.name]);}}if(i){let s=e.get("arguments").map(a=>ea(a,t));return t.confident?i.apply(n,s):void 0}}Hc(e,t);}}function fRe(e,t,r,n=!1){let i="",s=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let o of t){if(!r.confident)break;i+=n?o.value.raw:o.value.cooked;let u=a[s++];u&&(i+=String(ea(u,r)));}if(r.confident)return i}function JSr(){let e={confident:!0,deoptPath:null,seen:new Map},t=ea(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}});var dRe=chunkTKGT252T_js.c(ko=>{Object.defineProperty(ko,"__esModule",{value:!0});ko.statements=ko.statement=ko.smart=ko.program=ko.expression=void 0;var QSr=er(),{assertExpressionStatement:ZSr}=QSr;function kV(e){return {code:t=>`/* @babel/template */;
${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}ko.smart=kV(e=>e.length>1?e:e[0]);ko.statements=kV(e=>e);ko.statement=kV(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});var eTr=ko.expression={code:e=>`(
${e}
)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(eTr.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return ZSr(t),t.expression}};ko.program={code:e=>e,validate:()=>{},unwrap:e=>e.program};});var sD=chunkTKGT252T_js.c(n_=>{Object.defineProperty(n_,"__esModule",{value:!0});n_.merge=nTr;n_.normalizeReplacements=sTr;n_.validate=iTr;var tTr=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function rTr(e,t){if(e==null)return {};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n];}return r}function nTr(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:n=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return {parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:s}}function iTr(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:s}=t,a=rTr(t,tTr);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(n!=null&&!(n instanceof RegExp)&&n!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(i!=null&&typeof i!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(s===!0&&(r!=null||n!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return {parser:a,placeholderWhitelist:r||void 0,placeholderPattern:n??void 0,preserveComments:i??void 0,syntacticPlaceholders:s??void 0}}function sTr(e){if(Array.isArray(e))return e.reduce((t,r,n)=>(t["$"+n]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var BV=chunkTKGT252T_js.c(FV=>{Object.defineProperty(FV,"__esModule",{value:!0});FV.default=TTr;var aTr=er(),oTr=DV(),uTr=jq(),{isCallExpression:lTr,isExpressionStatement:cTr,isFunction:pTr,isIdentifier:fTr,isJSXIdentifier:hTr,isNewExpression:dTr,isPlaceholder:aD,isStatement:mTr,isStringLiteral:mRe,removePropertiesDeep:yTr,traverse:gTr}=aTr,STr=/^[_$A-Z0-9]+$/;function TTr(e,t,r){let{placeholderWhitelist:n,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:a}=r,o=vTr(t,r.parser,a);yTr(o,{preserveComments:s}),e.validate(o);let u={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:n,placeholderPattern:i,syntacticPlaceholders:a};return gTr(o,ETr,u),Object.assign({ast:o},u.syntactic.placeholders.length?u.syntactic:u.legacy)}function ETr(e,t,r){var n;let i,s=r.syntactic.placeholders.length>0;if(aD(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");i=e.name.name,s=!0;}else {if(s||r.syntacticPlaceholders)return;if(fTr(e)||hTr(e))i=e.name;else if(mRe(e))i=e.value;else return}if(s&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!s&&(r.placeholderPattern===!1||!(r.placeholderPattern||STr).test(i))&&!((n=r.placeholderWhitelist)!=null&&n.has(i)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],u;mRe(e)||aD(e,{expectedNode:"StringLiteral"})?u="string":dTr(a)&&o==="arguments"||lTr(a)&&o==="arguments"||pTr(a)&&o==="params"?u="param":cTr(a)&&!aD(e)?(u="statement",t=t.slice(0,-1)):mTr(e)&&aD(e)?u="statement":u="other";let{placeholders:l,placeholderNames:c}=s?r.syntactic:r.legacy;l.push({name:i,type:u,resolve:p=>bTr(p,t),isDuplicate:c.has(i)}),c.add(i);}function bTr(e,t){let r=e;for(let s=0;s<t.length-1;s++){let{key:a,index:o}=t[s];o===void 0?r=r[a]:r=r[a][o];}let{key:n,index:i}=t[t.length-1];return {parent:r,key:n,index:i}}function vTr(e,t,r){let n=(t.plugins||[]).slice();r!==!1&&n.push("placeholders"),t=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},t,{plugins:n});try{return (0,oTr.parse)(e,t)}catch(i){let s=i.loc;throw s&&(i.message+=`
`+(0, uTr.codeFrameColumns)(e,{start:s}),i.code="BABEL_TEMPLATE_PARSE_ERROR"),i}}});var VV=chunkTKGT252T_js.c(qV=>{Object.defineProperty(qV,"__esModule",{value:!0});qV.default=wTr;var _Tr=er(),{blockStatement:xTr,cloneNode:UV,emptyStatement:ATr,expressionStatement:jV,identifier:oD,isStatement:yRe,isStringLiteral:PTr,stringLiteral:CTr,validate:gRe}=_Tr;function wTr(e,t){let r=UV(e.ast);return t&&(e.placeholders.forEach(n=>{if(!hasOwnProperty.call(t,n.name)){let i=n.name;throw new Error(`Error: No substitution given for "${i}". If this is not meant to be a
placeholder you may want to consider passing one of the following options to @babel/template:
- { placeholderPattern: false, placeholderWhitelist: new Set(['${i}'])}
- { placeholderPattern: /^${i}$/ }`)}}),Object.keys(t).forEach(n=>{if(!e.placeholderNames.has(n))throw new Error(`Unknown substitution "${n}" given`)})),e.placeholders.slice().reverse().forEach(n=>{try{ITr(n,r,t&&t[n.name]||null);}catch(i){throw i.message=`@babel/template placeholder "${n.name}": ${i.message}`,i}}),r}function ITr(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>UV(o)):typeof r=="object"&&(r=UV(r)));let{parent:n,key:i,index:s}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=CTr(r)),!r||!PTr(r))throw new Error("Expected string substitution")}else if(e.type==="statement")s===void 0?r?Array.isArray(r)?r=xTr(r):typeof r=="string"?r=jV(oD(r)):yRe(r)||(r=jV(r)):r=ATr():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=oD(r)),yRe(r)||(r=jV(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=oD(r)),s===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=oD(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,u,l){let c=o[u];o[u]=l,c.type==="Identifier"&&(c.typeAnnotation&&(l.typeAnnotation=c.typeAnnotation),c.optional&&(l.optional=c.optional),c.decorators&&(l.decorators=c.decorators));}if(s===void 0)gRe(n,i,r),a(n,i,r);else {let o=n[i].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(s,1):Array.isArray(r)?o.splice(s,1,...r):a(o,s,r):a(o,s,r),gRe(n,i,o),n[i]=o;}}});var SRe=chunkTKGT252T_js.c(HV=>{Object.defineProperty(HV,"__esModule",{value:!0});HV.default=RTr;var OTr=sD(),DTr=BV(),NTr=VV();function RTr(e,t,r){t=e.code(t);let n;return i=>{let s=(0, OTr.normalizeReplacements)(i);return n||(n=(0, DTr.default)(e,t,r)),e.unwrap((0, NTr.default)(n,s))}}});var TRe=chunkTKGT252T_js.c(GV=>{Object.defineProperty(GV,"__esModule",{value:!0});GV.default=FTr;var MTr=sD(),LTr=BV(),kTr=VV();function FTr(e,t,r){let{metadata:n,names:i}=BTr(e,t,r);return s=>{let a={};return s.forEach((o,u)=>{a[i[u]]=o;}),o=>{let u=(0, MTr.normalizeReplacements)(o);return u&&Object.keys(u).forEach(l=>{if(hasOwnProperty.call(a,l))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0, kTr.default)(n,u?Object.assign(u,a):a))}}}function BTr(e,t,r){let n="BABEL_TPL$",i=t.join("");do n="$$"+n;while(i.includes(n));let{names:s,code:a}=jTr(t,n);return {metadata:(0, LTr.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(s.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:s}}function jTr(e,t){let r=[],n=e[0];for(let i=1;i<e.length;i++){let s=`${t}${i-1}`;r.push(s),n+=s+e[i];}return {names:r,code:n}}});var ARe=chunkTKGT252T_js.c($V=>{Object.defineProperty($V,"__esModule",{value:!0});$V.default=xRe;var bl=sD(),ERe=SRe(),bRe=TRe(),vRe=(0, bl.validate)({placeholderPattern:!1});function xRe(e,t){let r=new WeakMap,n=new WeakMap,i=t||(0, bl.validate)(null);return Object.assign((s,...a)=>{if(typeof s=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return _Re((0,ERe.default)(e,s,(0,bl.merge)(i,(0,bl.validate)(a[0]))))}else if(Array.isArray(s)){let o=r.get(s);return o||(o=(0, bRe.default)(e,s,i),r.set(s,o)),_Re(o(a))}else if(typeof s=="object"&&s){if(a.length>0)throw new Error("Unexpected extra params.");return xRe(e,(0, bl.merge)(i,(0, bl.validate)(s)))}throw new Error(`Unexpected template param ${typeof s}`)},{ast:(s,...a)=>{if(typeof s=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return (0, ERe.default)(e,s,(0, bl.merge)((0, bl.merge)(i,(0, bl.validate)(a[0])),vRe))()}else if(Array.isArray(s)){let o=n.get(s);return o||(o=(0, bRe.default)(e,s,(0, bl.merge)(i,vRe)),n.set(s,o)),o(a)()}throw new Error(`Unexpected template param ${typeof s}`)}})}function _Re(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
`).slice(3).join(`
`));}return r=>{try{return e(r)}catch(n){throw n.stack+=`
=============
${t}`,n}}}});var PRe=chunkTKGT252T_js.c(_a=>{Object.defineProperty(_a,"__esModule",{value:!0});_a.statements=_a.statement=_a.smart=_a.program=_a.expression=_a.default=void 0;var i_=dRe(),s_=ARe(),KV=_a.smart=(0, s_.default)(i_.smart),UTr=_a.statement=(0, s_.default)(i_.statement),qTr=_a.statements=(0, s_.default)(i_.statements),VTr=_a.expression=(0, s_.default)(i_.expression),HTr=_a.program=(0, s_.default)(i_.program);_a.default=Object.assign(KV.bind(void 0),{smart:KV,statement:UTr,statements:qTr,expression:VTr,program:HTr,ast:KV.ast});});var MRe=chunkTKGT252T_js.c(Gc=>{Object.defineProperty(Gc,"__esModule",{value:!0});Gc.arrowFunctionToExpression=TEr;Gc.ensureBlock=yEr;Gc.ensureFunctionName=DEr;Gc.splitExportDeclaration=IEr;Gc.toComputedKey=mEr;Gc.unwrapFunctionEnvironment=gEr;var GTr=er(),$Tr=PRe(),XV=Fv(),KTr=Sl(),{arrowFunctionExpression:zV,assignmentExpression:hm,binaryExpression:YV,blockStatement:YTr,callExpression:oT,conditionalExpression:WTr,expressionStatement:IRe,identifier:an,isIdentifier:XTr,jsxIdentifier:zTr,logicalExpression:JTr,LOGICAL_OPERATORS:QTr,memberExpression:vu,metaProperty:ZTr,numericLiteral:eEr,objectExpression:tEr,restElement:rEr,returnStatement:nEr,sequenceExpression:iEr,spreadElement:sEr,stringLiteral:ORe,super:WV,thisExpression:a_,toExpression:DRe,unaryExpression:aEr,toBindingIdentifierName:oEr,isFunction:uEr,isAssignmentPattern:lEr,isRestElement:cEr,getFunctionName:pEr,cloneNode:dm,variableDeclaration:fEr,variableDeclarator:hEr,exportNamedDeclaration:CRe,exportSpecifier:wRe,inherits:dEr}=GTr;function mEr(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw new ReferenceError("todo");return this.node.computed||XTr(e)&&(e=ORe(e.name)),e}function yEr(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],n="body",i,s;e.isStatement()?(s="body",i=0,r.push(e.node)):(n+=".body.0",this.isFunction()?(i="argument",r.push(nEr(e.node))):(i="expression",r.push(IRe(e.node)))),this.node.body=YTr(r);let a=this.get(n);return KTr.setup.call(e,a,s?a.node[s]:a.node,s,i),this.node}Gc.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression();};function gEr(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");NRe(this);}function SEr(e,t){e.node.type=t;}function TEr({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(n=>(n=arguments[0])==null?void 0:n.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let n=this;if(!r){var i;n=(i=n.ensureFunctionName(!1))!=null?i:n;}let{thisBinding:s,fnPath:a}=NRe(n,r,e,t);if(a.ensureBlock(),SEr(a,"FunctionExpression"),!r){let o=s?null:a.scope.generateUidIdentifier("arrowCheckId");return o&&a.parentPath.scope.push({id:o,init:tEr([])}),a.get("body").unshiftContainer("body",IRe(oT(this.hub.addHelper("newArrowCheck"),[a_(),an(o?o.name:s)]))),a.replaceWith(oT(vu(a.node,an("bind")),[o?an(o.name):a_()])),a.get("callee.object")}return a}var EEr=(0, XV.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e);}});function NRe(e,t=!0,r=!0,n=!0){let i,s=e.findParent(f=>{if(f.isArrowFunctionExpression()){return (i)!=null||(i=f),!1}return f.isFunction()||f.isProgram()||f.isClassProperty({static:!1})||f.isClassPrivateProperty({static:!1})}),a=s.isClassMethod({kind:"constructor"});if(s.isClassProperty()||s.isClassPrivateProperty())if(i)s=i;else if(r)e.replaceWith(oT(zV([],DRe(e.node)),[])),s=e.get("callee"),e=s.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:u,newTargetPaths:l,superProps:c,superCalls:p}=wEr(e);if(a&&p.length>0){if(!r)throw p[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!n)throw p[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let f=[];s.traverse(EEr,{allSuperCalls:f});let d=AEr(s);f.forEach(m=>{let y=an(d);y.loc=m.node.callee.loc,m.get("callee").replaceWith(y);});}if(u.length>0){let f=o_(s,"arguments",()=>{let d=()=>an("arguments");return s.scope.path.isProgram()?WTr(YV("===",aEr("typeof",d()),ORe("undefined")),s.scope.buildUndefinedNode(),d()):d()});u.forEach(d=>{let m=an(f);m.loc=d.node.loc,d.replaceWith(m);});}if(l.length>0){let f=o_(s,"newtarget",()=>ZTr(an("new"),an("target")));l.forEach(d=>{let m=an(f);m.loc=d.node.loc,d.replaceWith(m);});}if(c.length>0){if(!r)throw c[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");c.reduce((d,m)=>d.concat(vEr(m)),[]).forEach(d=>{let m=d.node.computed?"":d.get("property").node.name,y=d.parentPath,g=y.isAssignmentExpression({left:d.node}),v=y.isCallExpression({callee:d.node}),E=y.isTaggedTemplateExpression({tag:d.node}),S=PEr(s,g,m),x=[];if(d.node.computed&&x.push(d.get("property").node),g){let A=y.node.right;x.push(A);}let b=oT(an(S),x);v?(y.unshiftContainer("arguments",a_()),d.replaceWith(vu(b,an("call"))),o.push(y.get("arguments.0"))):g?y.replaceWith(b):E?(d.replaceWith(oT(vu(b,an("bind"),!1),[a_()])),o.push(d.get("arguments.0"))):d.replaceWith(b);});}let h;return (o.length>0||!t)&&(h=xEr(s,a),(t||a&&RRe(s))&&(o.forEach(f=>{let d=f.isJSX()?zTr(h):an(h);d.loc=f.node.loc,f.replaceWith(d);}),t||(h=null))),{thisBinding:h,fnPath:e}}function bEr(e){return QTr.includes(e)}function vEr(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,n=r.node.operator.slice(0,-1),i=r.node.right,s=bEr(n);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),o=e.node.object,u=e.node.property;r.get("left").replaceWith(vu(o,hm("=",a,u),!0)),r.get("right").replaceWith(t(s?"=":n,vu(o,an(a.name),!0),i));}else {let a=e.node.object,o=e.node.property;r.get("left").replaceWith(vu(a,o)),r.get("right").replaceWith(t(s?"=":n,vu(a,an(o.name)),i));}return s?r.replaceWith(JTr(n,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),i=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,s=[hm("=",n,vu(e.node.object,i?hm("=",i,e.node.property):e.node.property,e.node.computed)),hm("=",vu(e.node.object,i?an(i.name):e.node.property,e.node.computed),YV(e.parentPath.node.operator[0],an(n.name),eEr(1)))];e.parentPath.node.prefix||s.push(an(n.name)),r.replaceWith(iEr(s));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return [a,o]}return [e];function t(r,n,i){return r==="="?hm("=",n,i):YV(r,n,i)}}function RRe(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var _Er=(0, XV.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,hm("=",an(r),an("this"))])));}});function xEr(e,t){return o_(e,"this",r=>{if(!t||!RRe(e))return a_();e.traverse(_Er,{supers:new WeakSet,thisBinding:r});})}function AEr(e){return o_(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return zV([rEr(t)],oT(WV(),[sEr(an(t.name))]))})}function PEr(e,t,r){return o_(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let i=[],s;if(r)s=vu(WV(),an(r));else {let a=e.scope.generateUidIdentifier("prop");i.unshift(a),s=vu(WV(),an(a.name),!0);}if(t){let a=e.scope.generateUidIdentifier("value");i.push(a),s=hm("=",s,an(a.name));}return zV(i,s)})}function o_(e,t,r){let n="binding:"+t,i=e.getData(n);if(!i){let s=e.scope.generateUidIdentifier(t);i=s.name,e.setData(n,i),e.scope.push({id:s,init:r(i)});}return i}var CEr=(0, XV.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e);},JSXIdentifier(e,{thisPaths:t}){e.node.name==="this"&&(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})||t.push(e));},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e);},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e);},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e);},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e);}});function wEr(e){let t=[],r=[],n=[],i=[],s=[];return e.traverse(CEr,{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:i,superCalls:s}),{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:i,superCalls:s}}function IEr(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let i=e.isFunctionDeclaration()||e.isClassDeclaration(),s=e.isFunctionExpression()||e.isClassExpression(),a=e.isScope()?e.scope.parent:e.scope,o=e.node.id,u=!1;o?s&&a.hasBinding(o.name)&&(u=!0,o=a.generateUidIdentifier(o.name)):(u=!0,o=a.generateUidIdentifier("default"),(i||s)&&(e.node.id=dm(o)));let l=i?e.node:fEr("var",[hEr(dm(o),e.node)]),c=CRe(null,[wRe(dm(o),an("default"))]);return this.insertAfter(c),this.replaceWith(l),u&&a.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(i=>wRe(an(i),an(i))),n=CRe(null,r);return this.insertAfter(n),this.replaceWith(e.node),this}var OEr={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop());},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip();}};function DEr(e){if(this.node.id)return this;let t=pEr(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r)||r.startsWith("get ")||r.startsWith("set "))return null;r=oEr(r.replace(/[/ ]/g,"_"));let n=an(r);dEr(n,t.originalNode);let i={needsRename:!1,name:r},{scope:s}=this,a=s.getOwnBinding(r);if(a?a.kind==="param"&&(i.needsRename=!0):(s.parent.hasBinding(r)||s.hasGlobal(r))&&this.traverse(OEr,i),!i.needsRename)return this.node.id=n,s.getProgramParent().references[n.name]=!0,this;if(s.hasBinding(n.name)&&!s.hasGlobal(n.name))return s.rename(n.name),this.node.id=n,s.getProgramParent().references[n.name]=!0,this;if(!uEr(this.node))return null;let o=s.generateUidIdentifier(n.name),u=[];for(let c=0,p=NEr(this.node);c<p;c++)u.push(s.generateUidIdentifier("x"));let l=$Tr.default.expression.ast`
(function (${o}) {
function ${n}(${u}) {
return ${dm(o)}.apply(this, arguments);
}
${dm(n)}.toString = function () {
return ${dm(o)}.toString();
}
return ${dm(n)};
})(${DRe(this.node)})
`;return this.replaceWith(l)[0].get("arguments.0")}function NEr(e){let t=e.params.findIndex(r=>lEr(r)||cEr(r));return t===-1?e.params.length:t}});var URe=chunkTKGT252T_js.c(Zn=>{Object.defineProperty(Zn,"__esModule",{value:!0});Zn._guessExecutionStatusRelativeTo=ZEr;Zn._resolve=jRe;Zn.canHaveVariableDeclarationOrExpression=$Er;Zn.canSwapBetweenExpressionAndStatement=KEr;Zn.getSource=zEr;Zn.isCompletionRecord=YEr;Zn.isConstantExpression=n0r;Zn.isInStrictMode=i0r;Zn.isNodeType=GEr;Zn.isStatementOrBlock=WEr;Zn.isStatic=HEr;Zn.matchesPattern=VEr;Zn.referencesImport=XEr;Zn.resolve=r0r;Zn.willIMaybeExecuteBefore=JEr;var REr=er(),{STATEMENT_OR_BLOCK_KEYS:MEr,VISITOR_KEYS:LEr,isBlockStatement:BRe,isExpression:kEr,isIdentifier:FEr,isLiteral:BEr,isStringLiteral:jEr,isType:UEr,matchesPattern:qEr}=REr;function VEr(e,t){return qEr(this.node,e,t)}Zn.has=function(t){var r;let n=(r=this.node)==null?void 0:r[t];return n&&Array.isArray(n)?!!n.length:!!n};function HEr(){return this.scope.isStatic(this.node)}Zn.is=Zn.has,Zn.isnt=function(t){return !this.has(t)},Zn.equals=function(t,r){return this.node[t]===r};function GEr(e){return UEr(this.type,e)}function $Er(){return (this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function KEr(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?BRe(e):this.isBlockStatement()?kEr(e):!1}function YEr(e){let t=this,r=!0;do{let{type:n,container:i}=t;if(!r&&(t.isFunction()||n==="StaticBlock"))return !!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return !1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return !0}function WEr(){return this.parentPath.isLabeledStatement()||BRe(this.container)?!1:MEr.includes(this.key)}function XEr(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?jEr(this.node.property,{value:t}):this.node.property.name===t)){let s=this.get("object");return s.isReferencedIdentifier()&&s.referencesImport(e,"*")}return !1}let r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return !1;let n=r.path,i=n.parentPath;if(!i.isImportDeclaration())return !1;if(i.node.source.value===e){if(!t)return !0}else return !1;return !!(n.isImportDefaultSpecifier()&&t==="default"||n.isImportNamespaceSpecifier()&&t==="*"||n.isImportSpecifier()&&FEr(n.node.imported,{name:t}))}function zEr(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return ""}function JEr(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function LRe(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function QEr(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return !1}}function kRe(e,t){for(let r=0;r<t;r++){let n=e[r];if(QEr(n.parent.type,n.parentKey))return !0}return !1}var FRe=Symbol();function ZEr(e){return JV(this,e,new Map)}function JV(e,t,r){let n={this:LRe(e),target:LRe(t)};if(n.target.node!==n.this.node)return t0r(e,n.target,r);let i={target:t.getAncestry(),this:e.getAncestry()};if(i.target.includes(e))return "after";if(i.this.includes(t))return "before";let s,a={target:0,this:0};for(;!s&&a.this<i.this.length;){let c=i.this[a.this];a.target=i.target.indexOf(c),a.target>=0?s=c:a.this++;}if(!s)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(kRe(i.this,a.this-1)||kRe(i.target,a.target-1))return "unknown";let o={this:i.this[a.this-1],target:i.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let u=LEr[s.type],l={this:u.indexOf(o.this.parentKey),target:u.indexOf(o.target.parentKey)};return l.target>l.this?"before":"after"}function e0r(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return "unknown"}else return JV(e,t,r)==="before"?"before":"unknown";let n=t.scope.getBinding(t.node.id.name);if(!n.references)return "before";let i=n.referencePaths,s;for(let a of i){if(!!a.find(l=>l.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return "unknown";let u=JV(e,a,r);if(s&&s!==u)return "unknown";s=u;}return s}function t0r(e,t,r){let n=r.get(e.node),i;if(!n)r.set(e.node,n=new Map);else if(i=n.get(t.node))return i===FRe?"unknown":i;n.set(t.node,FRe);let s=e0r(e,t,r);return n.set(t.node,s),s}function r0r(e,t){return jRe.call(this,e,t)||this}function jRe(e,t){var r;if(!((r=t)!=null&&r.includes(this)))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let n=this.scope.getBinding(this.node.name);if(!n||!n.constant||n.kind==="module")return;if(n.path!==this){let i=n.path.resolve(e,t);return this.find(s=>s.node===i.node)?void 0:i}}else {if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){let n=this.toComputedKey();if(!BEr(n))return;let i=n.value,s=this.get("object").resolve(e,t);if(s.isObjectExpression()){let a=s.get("properties");for(let o of a){if(!o.isProperty())continue;let u=o.get("key"),l=o.isnt("computed")&&u.isIdentifier({name:i});if(l=l||u.isLiteral({value:i}),l)return o.get("value").resolve(e,t)}}else if(s.isArrayExpression()&&!isNaN(+i)){let o=s.get("elements")[i];if(o)return o.resolve(e,t)}}}}function n0r(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function i0r(){return !!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return !0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return !1;let n;if(r.isFunction())n=r.node.body;else if(r.isProgram())n=r.node;else return !1;for(let i of n.directives)if(i.value.value==="use strict")return !0})}});var $Re=chunkTKGT252T_js.c(es=>{Object.defineProperty(es,"__esModule",{value:!0});es._getKey=HRe;es._getPattern=GRe;es.get=b0r;es.getAllNextSiblings=T0r;es.getAllPrevSiblings=E0r;es.getAssignmentIdentifiers=v0r;es.getBindingIdentifierPaths=A0r;es.getBindingIdentifiers=_0r;es.getCompletionRecords=m0r;es.getNextSibling=S0r;es.getOpposite=f0r;es.getOuterBindingIdentifierPaths=P0r;es.getOuterBindingIdentifiers=x0r;es.getPrevSibling=g0r;es.getSibling=y0r;var ZV=th(),s0r=er(),{getAssignmentIdentifiers:a0r,getBindingIdentifiers:VRe,getOuterBindingIdentifiers:o0r,numericLiteral:u0r,unaryExpression:l0r}=s0r,e7=0,u_=1;function c0r(e){return {type:e7,path:e}}function p0r(e){return {type:u_,path:e}}function f0r(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function uT(e,t,r){return e&&t.push(...lT(e,r)),t}function h0r(e,t,r){let n=[];for(let i=0;i<e.length;i++){let s=e[i],a=lT(s,r),o=[],u=[];for(let l of a)l.type===e7&&o.push(l),l.type===u_&&u.push(l);o.length&&(n=o),t.push(...u);}return t.push(...n),t}function d0r(e){e.forEach(t=>{t.type=u_;});}function QV(e,t){e.forEach(r=>{r.path.isBreakStatement({label:null})&&(t?r.path.replaceWith(l0r("void",u0r(0))):r.path.remove());});}function qRe(e,t){let r=[];if(t.canHaveBreak){let n=[];for(let i=0;i<e.length;i++){let s=e[i],a=Object.assign({},t,{inCaseClause:!1});s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=lT(s,a);if(o.length>0&&o.every(u=>u.type===u_)){n.length>0&&o.every(u=>u.path.isBreakStatement({label:null}))?(d0r(n),r.push(...n),n.some(u=>u.path.isDeclaration())&&(r.push(...o),QV(o,!0)),QV(o,!1)):(r.push(...o),t.shouldPopulateBreak||QV(o,!0));break}if(i===e.length-1)r.push(...o);else {n=[];for(let u=0;u<o.length;u++){let l=o[u];l.type===u_&&r.push(l),l.type===e7&&n.push(l);}}}}else if(e.length)for(let n=e.length-1;n>=0;n--){let i=lT(e[n],t);if(i.length>1||i.length===1&&!i[0].path.isVariableDeclaration()){r.push(...i);break}}return r}function lT(e,t){let r=[];if(e.isIfStatement())r=uT(e.get("consequent"),r,t),r=uT(e.get("alternate"),r,t);else {if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return uT(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return qRe(e.get("body"),t);if(e.isFunction())return lT(e.get("body"),t);if(e.isTryStatement())r=uT(e.get("block"),r,t),r=uT(e.get("handler"),r,t);else {if(e.isCatchClause())return uT(e.get("body"),r,t);if(e.isSwitchStatement())return h0r(e.get("cases"),r,t);if(e.isSwitchCase())return qRe(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});e.isBreakStatement()?r.push(p0r(e)):r.push(c0r(e));}}return r}function m0r(){return lT(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map(t=>t.path)}function y0r(e){return ZV.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function g0r(){return this.getSibling(this.key-1)}function S0r(){return this.getSibling(this.key+1)}function T0r(){let e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r}function E0r(){let e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r}function b0r(e,t=!0){t===!0&&(t=this.context);let r=e.split(".");return r.length===1?HRe.call(this,e,t):GRe.call(this,r,t)}function HRe(e,t){let r=this.node,n=r[e];return Array.isArray(n)?n.map((i,s)=>ZV.default.get({listKey:e,parentPath:this,parent:r,container:n,key:s}).setContext(t)):ZV.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function GRe(e,t){let r=this;for(let n of e)n==="."?r=r.parentPath:Array.isArray(r)?r=r[n]:r=r.get(n,t);return r}function v0r(){return a0r(this.node)}function _0r(e){return VRe(this.node,e)}function x0r(e){return o0r(this.node,e)}function A0r(e=!1,t=!1){let n=[this],i=Object.create(null);for(;n.length;){let s=n.shift();if(!s||!s.node)continue;let a=VRe.keys[s.node.type];if(s.isIdentifier()){e?(i[s.node.name]=i[s.node.name]||[]).push(s):i[s.node.name]=s;continue}if(s.isExportDeclaration()){let o=s.get("declaration");o.isDeclaration()&&n.push(o);continue}if(t){if(s.isFunctionDeclaration()){n.push(s.get("id"));continue}if(s.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let u=a[o],l=s.get(u);Array.isArray(l)?n.push(...l):l.node&&n.push(l);}}return i}function P0r(e=!1){return this.getBindingIdentifierPaths(e,!0)}});var YRe=chunkTKGT252T_js.c(l_=>{Object.defineProperty(l_,"__esModule",{value:!0});l_.addComment=D0r;l_.addComments=N0r;l_.shareCommentsWithSiblings=O0r;var C0r=er(),{addComment:w0r,addComments:I0r}=C0r;function O0r(){if(typeof this.key=="string")return;let e=this.node;if(!e)return;let t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;let n=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=!!n.node,a=!!i.node;s&&(r&&n.addComments("trailing",KRe(r,n.node.trailingComments)),t&&!a&&n.addComments("trailing",t)),a&&(t&&i.addComments("leading",KRe(t,i.node.leadingComments)),r&&!s&&i.addComments("leading",r));}function KRe(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter(n=>!r.has(n))}function D0r(e,t,r){w0r(this.node,e,t,r);}function N0r(e,t){I0r(this.node,e,t);}});var th=chunkTKGT252T_js.c(xl=>{Object.defineProperty(xl,"__esModule",{value:!0});xl.default=xl.SHOULD_STOP=xl.SHOULD_SKIP=xl.REMOVED=void 0;var R0r=B6(),M0r=chunkHZVCNUTP_js.D(),L0r=am(),k0r=J9(),zRe=er(),uD=zRe,F0r=nm(),B0r=iDe(),vl=sDe(),cT=ADe(),pT=Vq(),WRe=hRe(),mm=MRe(),fi=URe(),JRe=Sl(),ei=JRe,fT=$O(),_l=KO(),ta=$Re(),t7=YRe(),j0r=G9(),{validate:U0r}=zRe,XRe=M0r("babel");xl.REMOVED=1;xl.SHOULD_STOP=2;xl.SHOULD_SKIP=4;var $c=xl.default=class QRe{constructor(t,r){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null;}get removed(){return (this._traverseFlags&1)>0}set removed(t){t?this._traverseFlags|=1:this._traverseFlags&=-2;}get shouldStop(){return (this._traverseFlags&2)>0}set shouldStop(t){t?this._traverseFlags|=2:this._traverseFlags&=-3;}get shouldSkip(){return (this._traverseFlags&4)>0}set shouldSkip(t){t?this._traverseFlags|=4:this._traverseFlags&=-5;}static get({hub:t,parentPath:r,parent:n,container:i,listKey:s,key:a}){if(!t&&r&&(t=r.hub),!n)throw new Error("To get a node path the parent needs to exist");let o=i[a],u=F0r.getOrCreateCachedPaths(t,n),l=u.get(o);return l||(l=new QRe(t,n),o&&u.set(o,l)),JRe.setup.call(l,r,i,s,a),l}getScope(t){return this.isScope()?new k0r.default(this):t}setData(t,r){return this.data==null&&(this.data=Object.create(null)),this.data[t]=r}getData(t,r){this.data==null&&(this.data=Object.create(null));let n=this.data[t];return n===void 0&&r!==void 0&&(n=this.data[t]=r),n}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0, L0r.default)(this.node,t,this.scope,r,this);}set(t,r){U0r(this.node,t,r),this.node[t]=r;}getPathLocation(){let t=[],r=this;do{let n=r.key;r.inList&&(n=`${r.listKey}[${n}]`),t.unshift(n);}while(r=r.parentPath);return t.join(".")}debug(t){XRe.enabled&&XRe(`${this.getPathLocation()} ${this.type}: ${t}`);}toString(){return (0, B0r.default)(this.node).code}get inList(){return !!this.listKey}set inList(t){t||(this.listKey=null);}get parentKey(){return this.listKey||this.key}},q0r={findParent:vl.findParent,find:vl.find,getFunctionParent:vl.getFunctionParent,getStatementParent:vl.getStatementParent,getEarliestCommonAncestorFrom:vl.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:vl.getDeepestCommonAncestorFrom,getAncestry:vl.getAncestry,isAncestor:vl.isAncestor,isDescendant:vl.isDescendant,inType:vl.inType,getTypeAnnotation:cT.getTypeAnnotation,isBaseType:cT.isBaseType,couldBeBaseType:cT.couldBeBaseType,baseTypeStrictlyMatches:cT.baseTypeStrictlyMatches,isGenericType:cT.isGenericType,replaceWithMultiple:pT.replaceWithMultiple,replaceWithSourceString:pT.replaceWithSourceString,replaceWith:pT.replaceWith,replaceExpressionWithStatements:pT.replaceExpressionWithStatements,replaceInline:pT.replaceInline,evaluateTruthy:WRe.evaluateTruthy,evaluate:WRe.evaluate,toComputedKey:mm.toComputedKey,ensureBlock:mm.ensureBlock,unwrapFunctionEnvironment:mm.unwrapFunctionEnvironment,arrowFunctionToExpression:mm.arrowFunctionToExpression,splitExportDeclaration:mm.splitExportDeclaration,ensureFunctionName:mm.ensureFunctionName,matchesPattern:fi.matchesPattern,isStatic:fi.isStatic,isNodeType:fi.isNodeType,canHaveVariableDeclarationOrExpression:fi.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:fi.canSwapBetweenExpressionAndStatement,isCompletionRecord:fi.isCompletionRecord,isStatementOrBlock:fi.isStatementOrBlock,referencesImport:fi.referencesImport,getSource:fi.getSource,willIMaybeExecuteBefore:fi.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:fi._guessExecutionStatusRelativeTo,resolve:fi.resolve,isConstantExpression:fi.isConstantExpression,isInStrictMode:fi.isInStrictMode,isDenylisted:ei.isDenylisted,visit:ei.visit,skip:ei.skip,skipKey:ei.skipKey,stop:ei.stop,setContext:ei.setContext,requeue:ei.requeue,requeueComputedKeyAndDecorators:ei.requeueComputedKeyAndDecorators,remove:fT.remove,insertBefore:_l.insertBefore,insertAfter:_l.insertAfter,unshiftContainer:_l.unshiftContainer,pushContainer:_l.pushContainer,getOpposite:ta.getOpposite,getCompletionRecords:ta.getCompletionRecords,getSibling:ta.getSibling,getPrevSibling:ta.getPrevSibling,getNextSibling:ta.getNextSibling,getAllNextSiblings:ta.getAllNextSiblings,getAllPrevSiblings:ta.getAllPrevSiblings,get:ta.get,getAssignmentIdentifiers:ta.getAssignmentIdentifiers,getBindingIdentifiers:ta.getBindingIdentifiers,getOuterBindingIdentifiers:ta.getOuterBindingIdentifiers,getBindingIdentifierPaths:ta.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:ta.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:t7.shareCommentsWithSiblings,addComment:t7.addComment,addComments:t7.addComments};Object.assign($c.prototype,q0r);$c.prototype.arrowFunctionToShadowed=mm["arrowFunctionToShadowed"],Object.assign($c.prototype,{has:fi["has"],is:fi["is"],isnt:fi["isnt"],equals:fi["equals"],hoist:_l["hoist"],updateSiblingKeys:_l.updateSiblingKeys,call:ei.call,isBlacklisted:ei["isBlacklisted"],setScope:ei.setScope,resync:ei.resync,popContext:ei.popContext,pushContext:ei.pushContext,setup:ei.setup,setKey:ei.setKey});$c.prototype._guessExecutionStatusRelativeToDifferentFunctions=fi._guessExecutionStatusRelativeTo,$c.prototype._guessExecutionStatusRelativeToDifferentFunctions=fi._guessExecutionStatusRelativeTo,Object.assign($c.prototype,{_getTypeAnnotation:cT._getTypeAnnotation,_replaceWith:pT._replaceWith,_resolve:fi._resolve,_call:ei._call,_resyncParent:ei._resyncParent,_resyncKey:ei._resyncKey,_resyncList:ei._resyncList,_resyncRemoved:ei._resyncRemoved,_getQueueContexts:ei._getQueueContexts,_removeFromScope:fT._removeFromScope,_callRemovalHooks:fT._callRemovalHooks,_remove:fT._remove,_markRemoved:fT._markRemoved,_assertUnremoved:fT._assertUnremoved,_containerInsert:_l._containerInsert,_containerInsertBefore:_l._containerInsertBefore,_containerInsertAfter:_l._containerInsertAfter,_verifyNodeList:_l._verifyNodeList,_getKey:ta._getKey,_getPattern:ta._getPattern});for(let e of uD.TYPES){let t=`is${e}`,r=uD[t];$c.prototype[t]=function(n){return r(this.node,n)},$c.prototype[`assert${e}`]=function(n){if(!r(this.node,n))throw new TypeError(`Expected node path of type ${e}`)};}Object.assign($c.prototype,j0r);for(let e of Object.keys(R0r))e[0]!=="_"&&(uD.TYPES.includes(e)||uD.TYPES.push(e));});var ZRe=chunkTKGT252T_js.c(lD=>{Object.defineProperty(lD,"__esModule",{value:!0});lD.default=void 0;var V0r=th(),H0r=er(),r7=Sl(),{VISITOR_KEYS:G0r}=H0r,n7=class{constructor(t,r,n,i){this.queue=null,this.priorityQueue=null,this.parentPath=i,this.scope=t,this.state=n,this.opts=r;}shouldVisit(t){let r=this.opts;if(r.enter||r.exit||r[t.type])return !0;let n=G0r[t.type];if(!(n!=null&&n.length))return !1;for(let i of n)if(t[i])return !0;return !1}create(t,r,n,i){return V0r.default.get({parentPath:this.parentPath,parent:t,container:r,key:n,listKey:i})}maybeQueue(t,r){this.queue&&(r?this.queue.push(t):this.priorityQueue.push(t));}visitMultiple(t,r,n){if(t.length===0)return !1;let i=[];for(let s=0;s<t.length;s++){let a=t[s];a&&this.shouldVisit(a)&&i.push(this.create(r,t,s,n));}return this.visitQueue(i)}visitSingle(t,r){return this.shouldVisit(t[r])?this.visitQueue([this.create(t,t,r)]):!1}visitQueue(t){this.queue=t,this.priorityQueue=[];let r=new WeakSet,n=!1,i=0;for(;i<t.length;){let s=t[i];if(i++,r7.resync.call(s),(s.contexts.length===0||s.contexts[s.contexts.length-1]!==this)&&r7.pushContext.call(s,this),s.key===null)continue;let{node:a}=s;if(!r.has(a)){if(a&&r.add(a),s.visit()){n=!0;break}if(this.priorityQueue.length&&(n=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=t,n))break}}for(let s=0;s<i;s++)r7.popContext.call(t[s]);return this.queue=null,n}visit(t,r){let n=t[r];return n?Array.isArray(n)?this.visitMultiple(n,t,r):this.visitSingle(t,r):!1}};lD.default=n7;});var yO=chunkTKGT252T_js.c(i7=>{Object.defineProperty(i7,"__esModule",{value:!0});i7.traverseNode=W0r;var $0r=ZRe(),K0r=er(),{VISITOR_KEYS:Y0r}=K0r;function W0r(e,t,r,n,i,s,a){let o=Y0r[e.type];if(!o)return !1;let u=new $0r.default(r,t,n,i);if(a)return s!=null&&s[i.parentKey]?!1:u.visitQueue([i]);for(let l of o)if(!(s!=null&&s[l])&&u.visit(e,l))return !0;return !1}});var Sl=chunkTKGT252T_js.c(kn=>{Object.defineProperty(kn,"__esModule",{value:!0});kn._call=a7;kn._getQueueContexts=cbr;kn._resyncKey=sMe;kn._resyncList=aMe;kn._resyncParent=iMe;kn._resyncRemoved=ibr;kn.call=s7;kn.isDenylisted=rMe;kn.popContext=sbr;kn.pushContext=abr;kn.requeue=ubr;kn.requeueComputedKeyAndDecorators=lbr;kn.resync=nbr;kn.setContext=rbr;kn.setKey=cD;kn.setScope=nMe;kn.setup=obr;kn.skip=Z0r;kn.skipKey=ebr;kn.stop=tbr;kn.visit=Q0r;var X0r=yO(),eMe=th(),z0r=$O(),J0r=er();function s7(e){let t=this.opts;if(this.debug(e),this.node&&a7.call(this,t[e]))return !0;if(this.node){var r;return a7.call(this,(r=t[this.node.type])==null?void 0:r[e])}return !1}function a7(e){if(!e)return !1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return !0;let n=t.call(this.state,this,this.state);if(n&&typeof n=="object"&&typeof n.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(n)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r||this._traverseFlags>0)return !0}return !1}function rMe(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t==null?void 0:t.includes(this.node.type)}kn.isBlacklisted=rMe;function tMe(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts);}function Q0r(){var e,t;if(!this.node||this.isDenylisted()||(e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return !1;let r=this.context;return this.shouldSkip||s7.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(tMe(this,r),this.debug("Recursing into..."),this.shouldStop=(0, X0r.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),tMe(this,r),s7.call(this,"exit"),this.shouldStop)}function Z0r(){this.shouldSkip=!0;}function ebr(e){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[e]=!0;}function tbr(){this._traverseFlags|=eMe.SHOULD_SKIP|eMe.SHOULD_STOP;}function nMe(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let n;for(;r&&!n;){var i;if((i=r.opts)!=null&&i.noScope)return;n=r.scope,r=r.parentPath;}this.scope=this.getScope(n),(t=this.scope)==null||t.init();}function rbr(e){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),nMe.call(this),this}function nbr(){this.removed||(iMe.call(this),aMe.call(this),sMe.call(this));}function iMe(){this.parentPath&&(this.parent=this.parentPath.node);}function sMe(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node){cD.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){cD.call(this,e);return}this.key=null;}}function aMe(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null);}function ibr(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&z0r._markRemoved.call(this);}function sbr(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0);}function abr(e){this.contexts.push(e),this.setContext(e);}function obr(e,t,r,n){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,cD.call(this,n);}function cD(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type;}function ubr(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e);}function lbr(){let{context:e,node:t}=this;if(!J0r.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r);}function cbr(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,!!e);)t=e.contexts;return t}});var oMe=chunkTKGT252T_js.c(pD=>{Object.defineProperty(pD,"__esModule",{value:!0});pD.default=void 0;var o7=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,n=TypeError){return new n(r)}};pD.default=o7;});var am=chunkTKGT252T_js.c(Kc=>{Object.defineProperty(Kc,"__esModule",{value:!0});Object.defineProperty(Kc,"Hub",{enumerable:!0,get:function(){return mbr.default}});Object.defineProperty(Kc,"NodePath",{enumerable:!0,get:function(){return hbr.default}});Object.defineProperty(Kc,"Scope",{enumerable:!0,get:function(){return dbr.default}});Kc.visitors=Kc.default=void 0;Sl();var c_=Fv();Kc.visitors=c_;var pbr=er(),fbr=nm(),uMe=yO(),hbr=th(),dbr=J9(),mbr=oMe(),{VISITOR_KEYS:ybr,removeProperties:gbr,traverseFast:lMe}=pbr;function Fo(e,t={},r,n,i,s){if(e){if(!t.noScope&&!r&&e.type!=="Program"&&e.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!i&&s)throw new Error("visitSelf can only be used when providing a NodePath.");ybr[e.type]&&(c_.explode(t),(0, uMe.traverseNode)(e,t,r,n,i,null,s));}}Kc.default=Fo;Fo.visitors=c_;Fo.verify=c_.verify;Fo.explode=c_.explode;Fo.cheap=function(e,t){lMe(e,t);};Fo.node=function(e,t,r,n,i,s){(0, uMe.traverseNode)(e,t,r,n,i,s);};Fo.clearNode=function(e,t){gbr(e,t);};Fo.removeProperties=function(e,t){return lMe(e,Fo.clearNode,t),e};function Sbr(e,t){e.node.type===t.type&&(t.has=!0,e.stop());}Fo.hasType=function(e,t,r){if(r!=null&&r.includes(e.type))return !1;if(e.type===t)return !0;let n={has:!1,type:t};return Fo(e,{noScope:!0,denylist:r,enter:Sbr},null,n),n.has};Fo.cache=fbr;});var yMe=chunkTKGT252T_js.c(ah=>{var Tbr=Object.create,hMe=Object.defineProperty,Ebr=Object.getOwnPropertyDescriptor,bbr=Object.getOwnPropertyNames,vbr=Object.getPrototypeOf,_br=Object.prototype.hasOwnProperty,xbr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Abr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of bbr(t))!_br.call(e,i)&&i!==r&&hMe(e,i,{get:()=>t[i],enumerable:!(n=Ebr(t,i))||n.enumerable});return e},Pbr=(e,t,r)=>(r=e!=null?Tbr(vbr(e)):{},Abr(t||!e||!e.__esModule?hMe(r,"default",{value:e,enumerable:!0}):r,e)),Cbr=xbr(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(i){return Object.keys(i).concat(Object.getOwnPropertySymbols(i))}:Object.keys;return function(i,s){return function a(o,u,l){var c,p,h,f=t.call(o),d=t.call(u);if(o===u)return !0;if(o==null||u==null)return !1;if(l.indexOf(o)>-1&&l.indexOf(u)>-1)return !0;if(l.push(o,u),f!=d||(c=n(o),p=n(u),c.length!=p.length||c.some(function(m){return !a(o[m],u[m],l)})))return !1;switch(f.slice(8,-1)){case"Symbol":return o.valueOf()==u.valueOf();case"Date":case"Number":return +o==+u||+o!=+o&&+u!=+u;case"RegExp":case"Function":case"String":case"Boolean":return ""+o==""+u;case"Set":case"Map":c=o.entries(),p=u.entries();do if(!a((h=c.next()).value,p.next().value,l))return !1;while(!h.done);return !0;case"ArrayBuffer":o=new Uint8Array(o),u=new Uint8Array(u);case"DataView":o=new Uint8Array(o.buffer),u=new Uint8Array(u.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(o.length!=u.length)return !1;for(h=0;h<o.length;h++)if((h in o||h in u)&&(h in o!=h in u||!a(o[h],u[h],l)))return !1;return !0;case"Object":return a(r(o),r(u),l);default:return !1}}(i,s,[])}}();});function wbr(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,i)=>`${r} ${n}${i}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}var cMe=Pbr(Cbr()),dMe=e=>e.map(t=>typeof t<"u").filter(Boolean).length,Ibr=(e,t)=>{let{exists:r,eq:n,neq:i,truthy:s}=e;if(dMe([r,n,i,s])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:i})}`);if(typeof n<"u")return (0, cMe.isEqual)(t,n);if(typeof i<"u")return !(0, cMe.isEqual)(t,i);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof s>"u"||s?!!t:!t},Obr=(e,t,r)=>{if(!e.if)return !0;let{arg:n,global:i}=e.if;if(dMe([n,i])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:i})}`);let s=n?t[n]:r[i];return Ibr(e.if,s)},mMe=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),pMe=(e,t)=>{let r=mMe(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Dbr=(e,t)=>`${pMe(e,"kind")}${t?`--${pMe(t,"name")}`:""}`,Nbr=e=>wbr(e);function fMe(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function Rbr(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||fMe(e,t))&&(!r||!fMe(e,r))}var Mbr=(e,{rootSeparator:t,groupSeparator:r})=>{let[n,i]=e.split(t,2),s=(i||e).split(r).filter(a=>!!a);return {root:i?n:null,groups:s}},Lbr=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};ah.combineTags=Lbr;ah.includeConditionalArg=Obr;ah.isExportStory=Rbr;ah.parseKind=Mbr;ah.sanitize=mMe;ah.storyNameFromExport=Nbr;ah.toId=Dbr;});var zMe=chunkTKGT252T_js.c(b_=>{Object.defineProperty(b_,"__esModule",{value:!0});function RMe(e,t){if(e==null)return {};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Pl=class{constructor(t,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=n;}},yT=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r;}};function na(e,t){let{line:r,column:n,index:i}=e;return new Pl(r,n+t,i+t)}var gMe="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",kbr={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:gMe},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:gMe}},SMe={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},dD=e=>e.type==="UpdateExpression"?SMe.UpdateExpression[`${e.prefix}`]:SMe[e.type],Fbr={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${e===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${dD(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${dD(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${dD(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Bbr={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},jbr=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Ubr={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${dD({type:e})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},qbr=["toMessage"],Vbr=["message"];function TMe(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r});}function Hbr(e){let{toMessage:t}=e,r=RMe(e,qbr);return function n(i,s){let a=new SyntaxError;return Object.assign(a,r,{loc:i,pos:i.index}),"missingPlugin"in s&&Object.assign(a,{missingPlugin:s.missingPlugin}),TMe(a,"clone",function(u={}){var l;let{line:c,column:p,index:h}=(l=u.loc)!=null?l:i;return n(new Pl(c,p,h),Object.assign({},s,u.details))}),TMe(a,"details",s),Object.defineProperty(a,"message",{configurable:!0,get(){let o=`${t(s)} (${i.line}:${i.column})`;return this.message=o,o},set(o){Object.defineProperty(this,"message",{value:o,writable:!0});}}),a}}function zc(e,t){if(Array.isArray(e))return n=>zc(n,e[0]);let r={};for(let n of Object.keys(e)){let i=e[n],s=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:a}=s,o=RMe(s,Vbr),u=typeof a=="string"?()=>a:a;r[n]=Hbr(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},o));}return r}var J=Object.assign({},zc(kbr),zc(Fbr),zc(Bbr),zc`pipelineOperator`(Ubr)),{defineProperty:Gbr}=Object,EMe=(e,t)=>Gbr(e,t,{enumerable:!1,value:e[t]});function p_(e){return e.loc.start&&EMe(e.loc.start,"index"),e.loc.end&&EMe(e.loc.end,"index"),e}var $br=e=>class extends e{parse(){let r=p_(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(p_)),r}parseRegExpLiteral({pattern:r,flags:n}){let i=null;try{i=new RegExp(r,n);}catch{}let s=this.estreeParseLiteral(i);return s.regex={pattern:r,flags:n},s}parseBigIntLiteral(r){let n;try{n=BigInt(r);}catch{n=null;}let i=this.estreeParseLiteral(n);return i.bigint=String(i.value||r),i}parseDecimalLiteral(r){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||r),i}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}directiveToStmt(r){let n=r.value;delete r.value,n.type="Literal",n.raw=n.extra.raw,n.value=n.extra.expressionValue;let i=r;return i.type="ExpressionStatement",i.expression=n,i.directive=n.extra.rawValue,delete n.extra,i}initFunction(r,n){super.initFunction(r,n),r.expression=!1;}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r);}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var n;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((n=r.expression.extra)!=null&&n.parenthesized)}parseBlockBody(r,n,i,s,a){super.parseBlockBody(r,n,i,s,a);let o=r.directives.map(u=>this.directiveToStmt(u));r.body=o.concat(r.body),delete r.directives;}pushClassMethod(r,n,i,s,a,o){this.parseMethod(n,i,s,a,o,"ClassMethod",!0),n.typeParameters&&(n.value.typeParameters=n.typeParameters,delete n.typeParameters),r.body.push(n);}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let n=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=n,r.type="PrivateIdentifier",r}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,n){let i=super.parseLiteral(r,n);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(r,n,i=!1){super.parseFunctionBody(r,n,i),r.expression=r.body.type!=="BlockStatement";}parseMethod(r,n,i,s,a,o,u=!1){let l=this.startNode();return l.kind=r.kind,l=super.parseMethod(l,n,i,s,a,o,u),l.type="FunctionExpression",delete l.kind,r.value=l,o==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let n=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition"),n}parseClassPrivateProperty(...r){let n=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition",n.computed=!1),n}parseObjectMethod(r,n,i,s,a){let o=super.parseObjectMethod(r,n,i,s,a);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(r,n,i,s){let a=super.parseObjectProperty(r,n,i,s);return a&&(a.kind="init",a.type="Property"),a}isValidLVal(r,n,i){return r==="Property"?"value":super.isValidLVal(r,n,i)}isAssignable(r,n){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,n):super.isAssignable(r,n)}toAssignable(r,n=!1){if(r!=null&&this.isObjectProperty(r)){let{key:i,value:s}=r;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(s,n);}else super.toAssignable(r,n);}toAssignableObjectExpressionProp(r,n,i){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(J.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(J.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,n,i);}finishCallExpression(r,n){let i=super.finishCallExpression(r,n);if(i.callee.type==="Import"){if(i.type="ImportExpression",i.source=i.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var s,a;i.options=(s=i.arguments[1])!=null?s:null,i.attributes=(a=i.arguments[1])!=null?a:null;}delete i.arguments,delete i.callee;}return i}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r);}parseExport(r,n){let i=this.state.lastTokStartLoc,s=super.parseExport(r,n);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(s.type="ExportAllDeclaration",s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=s;(o==null?void 0:o.type)==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===s.start&&this.resetStartLocation(s,i);}break}return s}parseSubscript(r,n,i,s){let a=super.parseSubscript(r,n,i,s);if(s.optionalChainMember){if((a.type==="OptionalMemberExpression"||a.type==="OptionalCallExpression")&&(a.type=a.type.substring(8)),s.stop){let o=this.startNodeAtNode(a);return o.expression=a,this.finishNode(o,"ChainExpression")}}else (a.type==="MemberExpression"||a.type==="CallExpression")&&(a.optional=!1);return a}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}finishNodeAt(r,n,i){return p_(super.finishNodeAt(r,n,i))}resetStartLocation(r,n){super.resetStartLocation(r,n),p_(r);}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),p_(r);}},gm=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r;}},on={brace:new gm("{"),j_oTag:new gm("<tag"),j_cTag:new gm("</tag"),j_expr:new gm("<tag>...</tag>",!0)};on.template=new gm("`",!0);var ir=!0,Fe=!0,u7=!0,f_=!0,oh=!0,Kbr=!0,SD=class{constructor(t,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null;}},R7=new Map;function _r(e,t={}){t.keyword=e;let r=dt(e,t);return R7.set(e,r),r}function ra(e,t){return dt(e,{beforeExpr:ir,binop:t})}var y_=-1,Wc=[],M7=[],L7=[],k7=[],F7=[],B7=[];function dt(e,t={}){var r,n,i,s;return ++y_,M7.push(e),L7.push((r=t.binop)!=null?r:-1),k7.push((n=t.beforeExpr)!=null?n:!1),F7.push((i=t.startsExpr)!=null?i:!1),B7.push((s=t.prefix)!=null?s:!1),Wc.push(new SD(e,t)),y_}function nr(e,t={}){var r,n,i,s;return ++y_,R7.set(e,y_),M7.push(e),L7.push((r=t.binop)!=null?r:-1),k7.push((n=t.beforeExpr)!=null?n:!1),F7.push((i=t.startsExpr)!=null?i:!1),B7.push((s=t.prefix)!=null?s:!1),Wc.push(new SD("name",t)),y_}var Ybr={bracketL:dt("[",{beforeExpr:ir,startsExpr:Fe}),bracketHashL:dt("#[",{beforeExpr:ir,startsExpr:Fe}),bracketBarL:dt("[|",{beforeExpr:ir,startsExpr:Fe}),bracketR:dt("]"),bracketBarR:dt("|]"),braceL:dt("{",{beforeExpr:ir,startsExpr:Fe}),braceBarL:dt("{|",{beforeExpr:ir,startsExpr:Fe}),braceHashL:dt("#{",{beforeExpr:ir,startsExpr:Fe}),braceR:dt("}"),braceBarR:dt("|}"),parenL:dt("(",{beforeExpr:ir,startsExpr:Fe}),parenR:dt(")"),comma:dt(",",{beforeExpr:ir}),semi:dt(";",{beforeExpr:ir}),colon:dt(":",{beforeExpr:ir}),doubleColon:dt("::",{beforeExpr:ir}),dot:dt("."),question:dt("?",{beforeExpr:ir}),questionDot:dt("?."),arrow:dt("=>",{beforeExpr:ir}),template:dt("template"),ellipsis:dt("...",{beforeExpr:ir}),backQuote:dt("`",{startsExpr:Fe}),dollarBraceL:dt("${",{beforeExpr:ir,startsExpr:Fe}),templateTail:dt("...`",{startsExpr:Fe}),templateNonTail:dt("...${",{beforeExpr:ir,startsExpr:Fe}),at:dt("@"),hash:dt("#",{startsExpr:Fe}),interpreterDirective:dt("#!..."),eq:dt("=",{beforeExpr:ir,isAssign:f_}),assign:dt("_=",{beforeExpr:ir,isAssign:f_}),slashAssign:dt("_=",{beforeExpr:ir,isAssign:f_}),xorAssign:dt("_=",{beforeExpr:ir,isAssign:f_}),moduloAssign:dt("_=",{beforeExpr:ir,isAssign:f_}),incDec:dt("++/--",{prefix:oh,postfix:Kbr,startsExpr:Fe}),bang:dt("!",{beforeExpr:ir,prefix:oh,startsExpr:Fe}),tilde:dt("~",{beforeExpr:ir,prefix:oh,startsExpr:Fe}),doubleCaret:dt("^^",{startsExpr:Fe}),doubleAt:dt("@@",{startsExpr:Fe}),pipeline:ra("|>",0),nullishCoalescing:ra("??",1),logicalOR:ra("||",1),logicalAND:ra("&&",2),bitwiseOR:ra("|",3),bitwiseXOR:ra("^",4),bitwiseAND:ra("&",5),equality:ra("==/!=/===/!==",6),lt:ra("</>/<=/>=",7),gt:ra("</>/<=/>=",7),relational:ra("</>/<=/>=",7),bitShift:ra("<</>>/>>>",8),bitShiftL:ra("<</>>/>>>",8),bitShiftR:ra("<</>>/>>>",8),plusMin:dt("+/-",{beforeExpr:ir,binop:9,prefix:oh,startsExpr:Fe}),modulo:dt("%",{binop:10,startsExpr:Fe}),star:dt("*",{binop:10}),slash:ra("/",10),exponent:dt("**",{beforeExpr:ir,binop:11,rightAssociative:!0}),_in:_r("in",{beforeExpr:ir,binop:7}),_instanceof:_r("instanceof",{beforeExpr:ir,binop:7}),_break:_r("break"),_case:_r("case",{beforeExpr:ir}),_catch:_r("catch"),_continue:_r("continue"),_debugger:_r("debugger"),_default:_r("default",{beforeExpr:ir}),_else:_r("else",{beforeExpr:ir}),_finally:_r("finally"),_function:_r("function",{startsExpr:Fe}),_if:_r("if"),_return:_r("return",{beforeExpr:ir}),_switch:_r("switch"),_throw:_r("throw",{beforeExpr:ir,prefix:oh,startsExpr:Fe}),_try:_r("try"),_var:_r("var"),_const:_r("const"),_with:_r("with"),_new:_r("new",{beforeExpr:ir,startsExpr:Fe}),_this:_r("this",{startsExpr:Fe}),_super:_r("super",{startsExpr:Fe}),_class:_r("class",{startsExpr:Fe}),_extends:_r("extends",{beforeExpr:ir}),_export:_r("export"),_import:_r("import",{startsExpr:Fe}),_null:_r("null",{startsExpr:Fe}),_true:_r("true",{startsExpr:Fe}),_false:_r("false",{startsExpr:Fe}),_typeof:_r("typeof",{beforeExpr:ir,prefix:oh,startsExpr:Fe}),_void:_r("void",{beforeExpr:ir,prefix:oh,startsExpr:Fe}),_delete:_r("delete",{beforeExpr:ir,prefix:oh,startsExpr:Fe}),_do:_r("do",{isLoop:u7,beforeExpr:ir}),_for:_r("for",{isLoop:u7}),_while:_r("while",{isLoop:u7}),_as:nr("as",{startsExpr:Fe}),_assert:nr("assert",{startsExpr:Fe}),_async:nr("async",{startsExpr:Fe}),_await:nr("await",{startsExpr:Fe}),_defer:nr("defer",{startsExpr:Fe}),_from:nr("from",{startsExpr:Fe}),_get:nr("get",{startsExpr:Fe}),_let:nr("let",{startsExpr:Fe}),_meta:nr("meta",{startsExpr:Fe}),_of:nr("of",{startsExpr:Fe}),_sent:nr("sent",{startsExpr:Fe}),_set:nr("set",{startsExpr:Fe}),_source:nr("source",{startsExpr:Fe}),_static:nr("static",{startsExpr:Fe}),_using:nr("using",{startsExpr:Fe}),_yield:nr("yield",{startsExpr:Fe}),_asserts:nr("asserts",{startsExpr:Fe}),_checks:nr("checks",{startsExpr:Fe}),_exports:nr("exports",{startsExpr:Fe}),_global:nr("global",{startsExpr:Fe}),_implements:nr("implements",{startsExpr:Fe}),_intrinsic:nr("intrinsic",{startsExpr:Fe}),_infer:nr("infer",{startsExpr:Fe}),_is:nr("is",{startsExpr:Fe}),_mixins:nr("mixins",{startsExpr:Fe}),_proto:nr("proto",{startsExpr:Fe}),_require:nr("require",{startsExpr:Fe}),_satisfies:nr("satisfies",{startsExpr:Fe}),_keyof:nr("keyof",{startsExpr:Fe}),_readonly:nr("readonly",{startsExpr:Fe}),_unique:nr("unique",{startsExpr:Fe}),_abstract:nr("abstract",{startsExpr:Fe}),_declare:nr("declare",{startsExpr:Fe}),_enum:nr("enum",{startsExpr:Fe}),_module:nr("module",{startsExpr:Fe}),_namespace:nr("namespace",{startsExpr:Fe}),_interface:nr("interface",{startsExpr:Fe}),_type:nr("type",{startsExpr:Fe}),_opaque:nr("opaque",{startsExpr:Fe}),name:dt("name",{startsExpr:Fe}),string:dt("string",{startsExpr:Fe}),num:dt("num",{startsExpr:Fe}),bigint:dt("bigint",{startsExpr:Fe}),decimal:dt("decimal",{startsExpr:Fe}),regexp:dt("regexp",{startsExpr:Fe}),privateName:dt("#name",{startsExpr:Fe}),eof:dt("eof"),jsxName:dt("jsxName"),jsxText:dt("jsxText",{beforeExpr:!0}),jsxTagStart:dt("jsxTagStart",{startsExpr:!0}),jsxTagEnd:dt("jsxTagEnd"),placeholder:dt("%%",{startsExpr:!0})};function qr(e){return e>=93&&e<=132}function Wbr(e){return e<=92}function _u(e){return e>=58&&e<=132}function MMe(e){return e>=58&&e<=136}function Xbr(e){return k7[e]}function h7(e){return F7[e]}function zbr(e){return e>=29&&e<=33}function bMe(e){return e>=129&&e<=131}function Jbr(e){return e>=90&&e<=92}function j7(e){return e>=58&&e<=92}function Qbr(e){return e>=39&&e<=59}function Zbr(e){return e===34}function evr(e){return B7[e]}function tvr(e){return e>=121&&e<=123}function rvr(e){return e>=124&&e<=130}function ch(e){return M7[e]}function mD(e){return L7[e]}function nvr(e){return e===57}function TD(e){return e>=24&&e<=25}function Yc(e){return Wc[e]}Wc[8].updateContext=e=>{e.pop();},Wc[5].updateContext=Wc[7].updateContext=Wc[23].updateContext=e=>{e.push(on.brace);},Wc[22].updateContext=e=>{e[e.length-1]===on.template?e.pop():e.push(on.template);},Wc[142].updateContext=e=>{e.push(on.j_expr,on.j_oTag);};var U7="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\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\u09FC\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",LMe="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ivr=new RegExp("["+U7+"]"),svr=new RegExp("["+U7+LMe+"]");U7=LMe=null;var kMe=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,38,6,186,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,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,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,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],avr=[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,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function d7(e,t){let r=65536;for(let n=0,i=t.length;n<i;n+=2){if(r+=t[n],r>e)return !1;if(r+=t[n+1],r>=e)return !0}return !1}function Xc(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&ivr.test(String.fromCharCode(e)):d7(e,kMe)}function dT(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&svr.test(String.fromCharCode(e)):d7(e,kMe)||d7(e,avr)}var q7={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},ovr=new Set(q7.keyword),uvr=new Set(q7.strict),lvr=new Set(q7.strictBind);function FMe(e,t){return t&&e==="await"||e==="enum"}function BMe(e,t){return FMe(e,t)||uvr.has(e)}function jMe(e){return lvr.has(e)}function UMe(e,t){return BMe(e,t)||jMe(e)}function cvr(e){return ovr.has(e)}function pvr(e,t,r){return e===64&&t===64&&Xc(r)}var fvr=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function hvr(e){return fvr.has(e)}var S_=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t;}},T_=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r;}get inTopLevel(){return (this.currentScope().flags&1)>0}get inFunction(){return (this.currentVarScopeFlags()&2)>0}get allowSuper(){return (this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return (this.currentThisScopeFlags()&32)>0}get inClass(){return (this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return (t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return !0;if(r&451)return !1}}get inNonArrowFunction(){return (this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new S_(t)}enter(t){this.scopeStack.push(this.createScope(t));}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return !!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,n){let i=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(i,t,r,n);let s=i.names.get(t)||0;r&16?s=s|4:(i.firstLexicalName||(i.firstLexicalName=t),s=s|2),i.names.set(t,s),r&8&&this.maybeExportDefined(i,t);}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(i=this.scopeStack[s],this.checkRedeclarationInScope(i,t,r,n),i.names.set(t,(i.names.get(t)||0)|1),this.maybeExportDefined(i,t),!(i.flags&387));--s);this.parser.inModule&&i.flags&1&&this.undefinedExports.delete(t);}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r);}checkRedeclarationInScope(t,r,n,i){this.isRedeclaredInScope(t,r,n)&&this.parser.raise(J.VarRedeclaration,i,{identifierName:r});}isRedeclaredInScope(t,r,n){if(!(n&1))return !1;if(n&8)return t.names.has(r);let i=t.names.get(r);return n&16?(i&2)>0||!this.treatFunctionsAsVarInScope(t)&&(i&1)>0:(i&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(i&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start);}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&387)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&451&&!(r&4))return r}}},m7=class extends S_{constructor(...t){super(...t),this.declareFunctions=new Set;}},y7=class extends T_{createScope(t){return new m7(t)}declareName(t,r,n){let i=this.currentScope();if(r&2048){this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t),i.declareFunctions.add(t);return}super.declareName(t,r,n);}isRedeclaredInScope(t,r,n){if(super.isRedeclaredInScope(t,r,n))return !0;if(n&2048&&!t.declareFunctions.has(r)){let i=t.names.get(r);return (i&4)>0||(i&2)>0}return !1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t);}},g7=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1;}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,n]=t;if(!this.hasPlugin(r))return !1;let i=this.plugins.get(r);for(let s of Object.keys(n))if((i==null?void 0:i[s])!==n[s])return !1;return !0}}getPluginOption(t,r){var n;return (n=this.plugins.get(t))==null?void 0:n[r]}};function qMe(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t);}function dvr(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t);}function E_(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t);}function h_(e,t,r){let n=null,i=t.length;for(;n===null&&i>0;)n=t[--i];n===null||n.start>r.start?E_(e,r.comments):qMe(n,r.comments);}var S7=class extends g7{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++;}processComment(t){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let i=n-1,s=r[i];s.start===t.end&&(s.leadingNode=t,i--);let{start:a}=t;for(;i>=0;i--){let o=r[i],u=o.end;if(u>a)o.containingNode=t,this.finalizeComment(o),r.splice(i,1);else {u===a&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&qMe(t.leadingNode,r),t.trailingNode!==null&&dvr(t.trailingNode,r);else {let{containingNode:n,start:i}=t;if(this.input.charCodeAt(i-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":h_(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":h_(n,n.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":h_(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":h_(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":h_(n,n.specifiers,t);break;default:E_(n,r);}else E_(n,r);}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[];}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let i=r[n-1];i.leadingNode===t&&(i.leadingNode=null);}resetPreviousIdentifierLeadingComments(t){let{commentStack:r}=this.state,{length:n}=r;n!==0&&(r[n-1].trailingNode===t?r[n-1].trailingNode=null:n>=2&&r[n-2].trailingNode===t&&(r[n-2].trailingNode=null));}takeSurroundingComments(t,r,n){let{commentStack:i}=this.state,s=i.length;if(s===0)return;let a=s-1;for(;a>=0;a--){let o=i[a],u=o.end;if(o.start===n)o.leadingNode=t;else if(u===r)o.trailingNode=t;else if(u<r)break}}},VMe=/\r\n?|[\n\u2028\u2029]/,fD=new RegExp(VMe.source,"g");function g_(e){switch(e){case 10:case 13:case 8232:case 8233:return !0;default:return !1}}var l7=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,yD=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,vMe=new RegExp("(?=("+yD.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function mvr(e){switch(e){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 8239:case 8287:case 12288:case 65279:return !0;default:return !1}}var T7=class e{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[on.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0;}get strict(){return (this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2;}init({strictMode:t,sourceType:r,startLine:n,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new Pl(n,i,0);}get maybeInArrowParameters(){return (this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3;}get inType(){return (this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5;}get noAnonFunctionType(){return (this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9;}get hasFlowComment(){return (this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17;}get isAmbientContext(){return (this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33;}get inAbstractClass(){return (this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65;}get inDisallowConditionalTypesContext(){return (this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129;}get soloAwait(){return (this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257;}get inFSharpPipelineDirectBody(){return (this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513;}get canStartJSXElement(){return (this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025;}get containsEsc(){return (this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049;}curPosition(){return new Pl(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let t=new e;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},yvr=function(t){return t>=48&&t<=57},_Me={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},hD={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function xMe(e,t,r,n,i,s){let a=r,o=n,u=i,l="",c=null,p=r,{length:h}=t;for(;;){if(r>=h){s.unterminated(a,o,u),l+=t.slice(p,r);break}let f=t.charCodeAt(r);if(gvr(e,f,t,r)){l+=t.slice(p,r);break}if(f===92){l+=t.slice(p,r);let d=Svr(t,r,n,i,e==="template",s);d.ch===null&&!c?c={pos:r,lineStart:n,curLine:i}:l+=d.ch,{pos:r,lineStart:n,curLine:i}=d,p=r;}else f===8232||f===8233?(++r,++i,n=r):f===10||f===13?e==="template"?(l+=t.slice(p,r)+`
`,++r,f===13&&t.charCodeAt(r)===10&&++r,++i,p=n=r):s.unterminated(a,o,u):++r;}return {pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i,containsInvalid:!!c}}function gvr(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function Svr(e,t,r,n,i,s){let a=!i;t++;let o=l=>({pos:t,ch:l,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return o(`
`);case 114:return o("\r");case 120:{let l;return {code:l,pos:t}=E7(e,t,r,n,2,!1,a,s),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return {code:l,pos:t}=GMe(e,t,r,n,a,s),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let l=t-1,p=e.slice(l,t+2).match(/^[0-7]+/)[0],h=parseInt(p,8);h>255&&(p=p.slice(0,-1),h=parseInt(p,8)),t+=p.length-1;let f=e.charCodeAt(t);if(p!=="0"||f===56||f===57){if(i)return o(null);s.strictNumericEscape(l,r,n);}return o(String.fromCharCode(h))}return o(String.fromCharCode(u))}}function E7(e,t,r,n,i,s,a,o){let u=t,l;return {n:l,pos:t}=HMe(e,t,r,n,16,i,s,!1,o,!a),l===null&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function HMe(e,t,r,n,i,s,a,o,u,l){let c=t,p=i===16?_Me.hex:_Me.decBinOct,h=i===16?hD.hex:i===10?hD.dec:i===8?hD.oct:hD.bin,f=!1,d=0;for(let m=0,y=s??1/0;m<y;++m){let g=e.charCodeAt(t),v;if(g===95&&o!=="bail"){let E=e.charCodeAt(t-1),S=e.charCodeAt(t+1);if(o){if(Number.isNaN(S)||!h(S)||p.has(E)||p.has(S)){if(l)return {n:null,pos:t};u.unexpectedNumericSeparator(t,r,n);}}else {if(l)return {n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n);}++t;continue}if(g>=97?v=g-97+10:g>=65?v=g-65+10:yvr(g)?v=g-48:v=1/0,v>=i){if(v<=9&&l)return {n:null,pos:t};if(v<=9&&u.invalidDigit(t,r,n,i))v=0;else if(a)v=0,f=!0;else break}++t,d=d*i+v;}return t===c||s!=null&&t-c!==s||f?{n:null,pos:t}:{n:d,pos:t}}function GMe(e,t,r,n,i,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=E7(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,o!==null&&o>1114111)if(i)s.invalidCodePoint(t,r,n);else return {code:null,pos:t}}else ({code:o,pos:t}=E7(e,t,r,n,4,!1,i,s));return {code:o,pos:t}}function d_(e,t,r){return new Pl(r,e-t,e)}var Tvr=new Set([103,109,115,105,121,117,100,118]),Al=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new yT(t.startLoc,t.endLoc);}},b7=class extends S7{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(n,i,s,a)=>this.options.errorRecovery?(this.raise(J.InvalidDigit,d_(n,i,s),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(J.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(J.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(J.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(J.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(n,i,s)=>{this.recordStrictModeErrors(J.StrictNumericEscape,d_(n,i,s));},unterminated:(n,i,s)=>{throw this.raise(J.UnterminatedString,d_(n-1,i,s))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(J.StrictNumericEscape),unterminated:(n,i,s)=>{throw this.raise(J.UnterminatedTemplate,d_(n,i,s))}}),this.state=new T7,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1;}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength;}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Al(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken();}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return {pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return l7.lastIndex=t,l7.test(this.input)?l7.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return yD.lastIndex=t,yD.test(this.input)?yD.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){let n=this.input.charCodeAt(t);(n&64512)===56320&&(r=65536+((r&1023)<<10)+(n&1023));}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,n])=>this.raise(r,n)),this.state.strictErrors.clear());}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos));}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let n=this.state.pos,i=this.input.indexOf(t,n+2);if(i===-1)throw this.raise(J.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+t.length,fD.lastIndex=n+2;fD.test(this.input)&&fD.lastIndex<=i;)++this.state.curLine,this.state.lineStart=fD.lastIndex;if(this.isLookahead)return;let s={type:"CommentBlock",value:this.input.slice(n+2,i),start:n,end:i+t.length,loc:new yT(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipLineComment(t){let r=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!g_(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let s=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,s),start:r,end:s,loc:new yT(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){let t=this.state.pos,r=[];e:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let i=this.skipBlockComment("*/");i!==void 0&&(this.addComment(i),this.options.attachComment&&r.push(i));break}case 47:{let i=this.skipLineComment(2);i!==void 0&&(this.addComment(i),this.options.attachComment&&r.push(i));break}default:break e}break;default:if(mvr(n))++this.state.pos;else if(n===45&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===45&&this.input.charCodeAt(i+2)===62&&(t===0||this.state.lineStart>t)){let s=this.skipLineComment(3);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));}else break e}else if(n===60&&!this.inModule&&this.options.annexB){let i=this.state.pos;if(this.input.charCodeAt(i+1)===33&&this.input.charCodeAt(i+2)===45&&this.input.charCodeAt(i+3)===45){let s=this.skipLineComment(4);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));}else break e}else break e}}if(r.length>0){let n=this.state.pos,i={start:t,end:n,comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(i);}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(n);}replaceToken(t){this.state.type=t,this.updateContext();}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(J.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?J.RecordExpressionHashIncorrectStartSyntaxType:J.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1);}else Xc(r)?(++this.state.pos,this.finishToken(138,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1);}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16));}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1);}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return !1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return !1;let r=this.state.pos;for(this.state.pos+=1;!g_(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let n=this.input.slice(r+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(t){let r=t===42?55:54,n=1,i=this.input.charCodeAt(this.state.pos+1);t===42&&i===42&&(n++,i=this.input.charCodeAt(this.state.pos+2),r=57),i===61&&!this.state.inType&&(n++,r=t===37?33:30),this.finishOp(r,n);}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(J.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(J.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1);}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1);}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1);}readToken_plus_min(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1);}readToken_lt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1);}readToken_gt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){let n=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+n)===61){this.finishOp(30,n+1);return}this.finishOp(52,n);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1);}readToken_eq_excl(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1);}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17));}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(J.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2);}else ++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(J.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6);}else ++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Xc(t)){this.readWord(t);return}}throw this.raise(J.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let n=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,n);}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,n,i,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(J.UnterminatedRegExp,na(t,1));let l=this.input.charCodeAt(s);if(g_(l))throw this.raise(J.UnterminatedRegExp,na(t,1));if(n)n=!1;else {if(l===91)i=!0;else if(l===93&&i)i=!1;else if(l===47&&!i)break;n=l===92;}}let a=this.input.slice(r,s);++s;let o="",u=()=>na(t,s+2-r);for(;s<this.length;){let l=this.codePointAtPos(s),c=String.fromCharCode(l);if(Tvr.has(l))l===118?o.includes("u")&&this.raise(J.IncompatibleRegExpUVFlags,u()):l===117&&o.includes("v")&&this.raise(J.IncompatibleRegExpUVFlags,u()),o.includes(c)&&this.raise(J.DuplicateRegExpFlags,u());else if(dT(l)||l===92)this.raise(J.MalformedRegExpFlags,u());else break;++s,o+=c;}this.state.pos=s,this.finishToken(137,{pattern:a,flags:o});}readInt(t,r,n=!1,i=!0){let{n:s,pos:a}=HMe(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,n,i,this.errorHandlers_readInt,!1);return this.state.pos=a,s}readRadixNumber(t){let r=this.state.curPosition(),n=!1;this.state.pos+=2;let i=this.readInt(t);i==null&&this.raise(J.InvalidDigit,na(r,2),{radix:t});let s=this.input.charCodeAt(this.state.pos);if(s===110)++this.state.pos,n=!0;else if(s===109)throw this.raise(J.InvalidDecimal,r);if(Xc(this.codePointAtPos(this.state.pos)))throw this.raise(J.NumberIdentifier,this.state.curPosition());if(n){let a=this.input.slice(r.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,a);return}this.finishToken(134,i);}readNumber(t){let r=this.state.pos,n=this.state.curPosition(),i=!1,s=!1,a=!1,o=!1,u=!1;!t&&this.readInt(10)===null&&this.raise(J.InvalidNumber,this.state.curPosition());let l=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(l){let f=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(J.StrictOctalLiteral,n),!this.state.strict){let d=f.indexOf("_");d>0&&this.raise(J.ZeroDigitNumericSeparator,na(n,d));}u=l&&!/[89]/.test(f);}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!u&&(++this.state.pos,this.readInt(10),i=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!u&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(J.InvalidOrMissingExponent,n),i=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((i||l)&&this.raise(J.InvalidBigIntLiteral,n),++this.state.pos,s=!0),c===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||l)&&this.raise(J.InvalidDecimal,n),++this.state.pos,a=!0),Xc(this.codePointAtPos(this.state.pos)))throw this.raise(J.NumberIdentifier,this.state.curPosition());let p=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(s){this.finishToken(135,p);return}if(a){this.finishToken(136,p);return}let h=u?parseInt(p,8):parseFloat(p);this.finishToken(134,h);}readCodePoint(t){let{code:r,pos:n}=GMe(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=n,r}readString(t){let{str:r,pos:n,curLine:i,lineStart:s}=xMe(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=s,this.state.curLine=i,this.finishToken(133,r);}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken();}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:n,pos:i,curLine:s,lineStart:a}=xMe("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=s,n&&(this.state.firstInvalidTemplateEscapePos=new Pl(n.curLine,n.pos-n.lineStart,n.pos)),this.input.codePointAt(i)===96?this.finishToken(24,n?null:t+r+"`"):(this.state.pos++,this.finishToken(25,n?null:t+r+"${"));}recordStrictModeErrors(t,r){let n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(t,r):this.state.strictErrors.set(n,[t,r]);}readWord1(t){this.state.containsEsc=!1;let r="",n=this.state.pos,i=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let s=this.codePointAtPos(this.state.pos);if(dT(s))this.state.pos+=s<=65535?1:2;else if(s===92){this.state.containsEsc=!0,r+=this.input.slice(i,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===n?Xc:dT;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(J.MissingUnicodeEscape,this.state.curPosition()),i=this.state.pos-1;continue}++this.state.pos;let u=this.readCodePoint(!0);u!==null&&(o(u)||this.raise(J.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(u)),i=this.state.pos;}else break}return r+this.input.slice(i,this.state.pos)}readWord(t){let r=this.readWord1(t),n=R7.get(r);n!==void 0?this.finishToken(n,ch(n)):this.finishToken(132,r);}checkKeywordEscapes(){let{type:t}=this.state;j7(t)&&this.state.containsEsc&&this.raise(J.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:ch(t)});}raise(t,r,n={}){let i=r instanceof Pl?r:r.loc.start,s=t(i,n);if(!this.options.errorRecovery)throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(t,r,n={}){let i=r instanceof Pl?r:r.loc.start,s=i.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let u=a[o];if(u.loc.index===s)return a[o]=t(i,n);if(u.loc.index<s)break}return this.raise(t,r,n)}updateContext(t){}unexpected(t,r){throw this.raise(J.UnexpectedToken,t??this.state.startLoc,{expected:r?ch(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return !0;throw this.raise(J.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(J.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return (r,n,i)=>{this.raise(t,d_(r,n,i));}}},v7=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map;}},_7=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t;}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new v7);}exit(){let t=this.stack.pop(),r=this.current();for(let[n,i]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(n)||r.undefinedPrivateNames.set(n,i):this.parser.raise(J.InvalidPrivateFieldResolution,i,{identifierName:n});}declarePrivateName(t,r,n){let{privateNames:i,loneAccessors:s,undefinedPrivateNames:a}=this.current(),o=i.has(t);if(r&3){let u=o&&s.get(t);if(u){let l=u&4,c=r&4,p=u&3,h=r&3;o=p===h||l!==c,o||s.delete(t);}else o||s.set(t,r);}o&&this.parser.raise(J.PrivateNameRedeclaration,n,{identifierName:t}),i.add(t),a.delete(t);}usePrivateName(t,r){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,r):this.parser.raise(J.InvalidPrivateFieldResolution,r,{identifierName:t});}},gT=class{constructor(t=0){this.type=t;}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},ED=class extends gT{constructor(t){super(t),this.declarationErrors=new Map;}recordDeclarationError(t,r){let n=r.index;this.declarationErrors.set(n,[t,r]);}clearDeclarationError(t){this.declarationErrors.delete(t);}iterateErrors(t){this.declarationErrors.forEach(t);}},x7=class{constructor(t){this.parser=void 0,this.stack=[new gT],this.parser=t;}enter(t){this.stack.push(t);}exit(){this.stack.pop();}recordParameterInitializerError(t,r){let n=r.loc.start,{stack:i}=this,s=i.length-1,a=i[s];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,n);else return;a=i[--s];}this.parser.raise(t,n);}recordArrowParameterBindingError(t,r){let{stack:n}=this,i=n[n.length-1],s=r.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(t,s);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(t,s);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,n=r.length-1,i=r[n];for(;i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(J.AwaitBindingIdentifier,t),i=r[--n];}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,i])=>{this.parser.raise(n,i);let s=t.length-2,a=t[s];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(i.index),a=t[--s];});}};function Evr(){return new gT(3)}function bvr(){return new ED(1)}function vvr(){return new ED(2)}function $Me(){return new gT}var A7=class{constructor(){this.stacks=[];}enter(t){this.stacks.push(t);}exit(){this.stacks.pop();}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return (this.currentFlags()&2)>0}get hasYield(){return (this.currentFlags()&1)>0}get hasReturn(){return (this.currentFlags()&4)>0}get hasIn(){return (this.currentFlags()&8)>0}};function gD(e,t){return (e?2:0)|(t?1:0)}var P7=class extends b7{addExtra(t,r,n,i=!0){if(!t)return;let s=t.extra=t.extra||{};i?s[r]=n:Object.defineProperty(s,r,{enumerable:i,value:n});}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){let n=t+r.length;if(this.input.slice(t,n)===r){let i=this.input.charCodeAt(n);return !(dT(i)||(i&64512)===55296)}return !1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t);}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return VMe.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return vMe.lastIndex=this.state.end,vMe.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(J.MissingSemicolon,this.state.lastTokEndLoc);}expect(t,r){this.eat(t)||this.unexpected(r,t);}tryParse(t,r=this.state.clone()){let n={node:null};try{let i=t((s=null)=>{throw n.node=s,n});if(this.state.errors.length>r.errors.length){let s=this.state;return this.state=r,this.state.tokensLength=s.tokensLength,{node:i,error:s.errors[r.errors.length],thrown:!1,aborted:!1,failState:s}}return {node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(i){let s=this.state;if(this.state=r,i instanceof SyntaxError)return {node:null,error:i,thrown:!0,aborted:!1,failState:s};if(i===n)return {node:n.node,error:null,thrown:!1,aborted:!0,failState:s};throw i}}checkExpressionErrors(t,r){if(!t)return !1;let{shorthandAssignLoc:n,doubleProtoLoc:i,privateKeyLoc:s,optionalParametersLoc:a}=t,o=!!n||!!i||!!a||!!s;if(!r)return o;n!=null&&this.raise(J.InvalidCoverInitializedName,n),i!=null&&this.raise(J.DuplicateProto,i),s!=null&&this.raise(J.UnexpectedPrivateField,s),a!=null&&this.unexpected(a);}isLiteralPropertyName(){return MMe(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return (t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let i=this.inModule;this.inModule=t;let s=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new A7;let u=this.classScope;this.classScope=new _7(this);let l=this.expressionScope;return this.expressionScope=new x7(this),()=>{this.state.labels=r,this.exportedIdentifiers=n,this.inModule=i,this.scope=s,this.prodParam=o,this.classScope=u,this.expressionScope=l;}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t);}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r);}},mT=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null;}},ST=class{constructor(t,r,n){this.type="",this.start=r,this.end=0,this.loc=new yT(n),t!=null&&t.options.ranges&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename);}},V7=ST.prototype;V7.__clone=function(){let e=new ST(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){let i=t[r];i!=="leadingComments"&&i!=="trailingComments"&&i!=="innerComments"&&(e[i]=this[i]);}return e};function _vr(e){return Jc(e)}function Jc(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a,name:o}=e,u=Object.create(V7);return u.type=t,u.start=r,u.end=n,u.loc=i,u.range=s,u.extra=a,u.name=o,t==="Placeholder"&&(u.expectedNode=e.expectedNode),u}function xvr(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a}=e;if(t==="Placeholder")return _vr(e);let o=Object.create(V7);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,e.raw!==void 0?o.raw=e.raw:o.extra=a,o.value=e.value,o}var C7=class extends P7{startNode(){let t=this.state.startLoc;return new ST(this,t.index,t)}startNodeAt(t){return new ST(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,n){return t.type=r,t.end=n.index,t.loc.end=n,this.options.ranges&&(t.range[1]=n.index),this.options.attachComment&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.options.ranges&&(t.range[0]=r.index);}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.options.ranges&&(t.range[1]=r.index);}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start);}},Avr=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),gt=zc`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Pvr(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function AMe(e){return e.importKind==="type"||e.importKind==="typeof"}var Cvr={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function wvr(e,t){let r=[],n=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return [r,n]}var Ivr=/\*?\s*@((?:no)?flow)\b/,Ovr=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0;}getScopeHandler(){return y7}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return !!this.getPluginOption("flow","enums")}finishToken(r,n){r!==133&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,n);}addComment(r){if(this.flowPragma===void 0){let n=Ivr.exec(r.value);if(n)if(n[1]==="flow")this.flowPragma="flow";else if(n[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r);}flowParseTypeInitialiser(r){let n=this.state.inType;this.state.inType=!0,this.expect(r||14);let i=this.flowParseType();return this.state.inType=n,i}flowParsePredicate(){let r=this.startNode(),n=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>n.index+1&&this.raise(gt.UnexpectedSpaceBetweenModuloChecks,n),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let n=null,i=null;return this.match(54)?(this.state.inType=r,i=this.flowParsePredicate()):(n=this.flowParseType(),this.state.inType=r,this.match(54)&&(i=this.flowParsePredicate())),[n,i]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let n=r.id=this.parseIdentifier(),i=this.startNode(),s=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return i.params=a.params,i.rest=a.rest,i.this=a._this,this.expect(11),[i.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),n.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(n),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,n){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(n&&this.raise(gt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,n);this.unexpected();}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(133)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let n=r.body=this.startNode(),i=n.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(gt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,gt.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),i.push(o);}this.scope.exit(),this.expect(8),this.finishNode(n,"BlockStatement");let s=null,a=!1;return i.forEach(o=>{Pvr(o)?(s==="CommonJS"&&this.raise(gt.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(gt.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(gt.AmbiguousDeclareModuleKind,o),s="CommonJS",a=!0);}),r.kind=s||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,n){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!n){let i=this.state.value;throw this.raise(gt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:Cvr[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"&&(r.type="ExportDeclaration",r.default=!1,delete r.exportKind),r.type="Declare"+r.type,r;this.unexpected();}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let n=this.flowParseTypeAlias(r);return n.type="DeclareTypeAlias",n}flowParseDeclareOpaqueType(r){this.next();let n=this.flowParseOpaqueType(r,!0);return n.type="DeclareOpaqueType",n}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,n){if(r.id=this.flowParseRestrictedIdentifier(!n,!0),this.scope.declareName(r.id.name,n?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!n&&this.eat(12));if(n){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:n,allowExact:!1,allowSpread:!1,allowProto:n,allowInexact:!1});}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(gt.UnexpectedReservedUnderscore,this.state.startLoc);}checkReservedType(r,n,i){Avr.has(r)&&this.raise(i?gt.AssignReservedType:gt.UnexpectedReservedType,n,{reservedType:r});}flowParseRestrictedIdentifier(r,n){return this.checkReservedType(this.state.value,this.state.startLoc,n),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,n){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,n||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let n=this.state.startLoc,i=this.startNode(),s=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return i.name=a.name,i.variance=s,i.bound=a.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):r&&this.raise(gt.MissingTypeParamDefault,n),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let i=!1;do{let s=this.flowParseTypeParameter(i);n.params.push(s),s.default&&(i=!0),this.match(48)||this.expect(12);}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(n,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let r=this.startNode(),n=this.state.inType;r.params=[],this.state.inType=!0,this.expect(47);let i=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=i,this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let r=this.startNode(),n=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,n,i){return r.static=n,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=i,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,n){return r.static=n,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,n){let i=this.startNode();return r.static=n,r.value=this.flowParseObjectTypeMethodish(i),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:n,allowSpread:i,allowProto:s,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];let l,c,p=!1;for(n&&this.match(6)?(this.expect(6),l=9,c=!0):(this.expect(5),l=8,c=!1),u.exact=c;!this.match(l);){let f=!1,d=null,m=null,y=this.startNode();if(s&&this.isContextual(118)){let v=this.lookahead();v.type!==14&&v.type!==17&&(this.next(),d=this.state.startLoc,r=!1);}if(r&&this.isContextual(106)){let v=this.lookahead();v.type!==14&&v.type!==17&&(this.next(),f=!0);}let g=this.flowParseVariance();if(this.eat(0))d!=null&&this.unexpected(d),this.eat(0)?(g&&this.unexpected(g.loc.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(y,f))):u.indexers.push(this.flowParseObjectTypeIndexer(y,f,g));else if(this.match(10)||this.match(47))d!=null&&this.unexpected(d),g&&this.unexpected(g.loc.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(y,f));else {let v="init";if(this.isContextual(99)||this.isContextual(104)){let S=this.lookahead();MMe(S.type)&&(v=this.state.value,this.next());}let E=this.flowParseObjectTypeProperty(y,f,d,g,v,i,a??!c);E===null?(p=!0,m=this.state.lastTokStartLoc):u.properties.push(E);}this.flowObjectTypeSemicolon(),m&&!this.match(8)&&!this.match(9)&&this.raise(gt.UnexpectedExplicitInexactInObject,m);}this.expect(l),i&&(u.inexact=p);let h=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=o,h}flowParseObjectTypeProperty(r,n,i,s,a,o,u){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?u||this.raise(gt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(gt.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(gt.InexactVariance,s),null):(o||this.raise(gt.UnexpectedSpreadType,this.state.lastTokStartLoc),i!=null&&this.unexpected(i),s&&this.raise(gt.SpreadVariance,s),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=n,r.proto=i!=null,r.kind=a;let l=!1;return this.match(47)||this.match(10)?(r.method=!0,i!=null&&this.unexpected(i),s&&this.unexpected(s.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(gt.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(l=!0),r.value=this.flowParseTypeInitialiser(),r.variance=s),r.optional=l,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let n=r.kind==="get"?0:1,i=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?gt.GetterMayNotHaveThisParam:gt.SetterMayNotHaveThisParam,r.value.this),i!==n&&this.raise(r.kind==="get"?J.BadGetterArity:J.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(J.BadSetterRestParameter,r);}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected();}flowParseQualifiedTypeIdentifier(r,n){(r)!=null||(r=this.state.startLoc);let s=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let a=this.startNodeAt(r);a.qualification=s,a.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(a,"QualifiedTypeIdentifier");}return s}flowParseGenericType(r,n){let i=this.startNodeAt(r);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(r,n),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let n=null,i=!1,s=null,a=this.startNode(),o=this.lookahead(),u=this.state.type===78;return o.type===14||o.type===17?(u&&!r&&this.raise(gt.ThisParamMustBeFirst,a),n=this.parseIdentifier(u),this.eat(17)&&(i=!0,u&&this.raise(gt.ThisParamMayNotBeOptional,a)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),a.name=n,a.optional=i,a.typeAnnotation=s,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let n=this.startNodeAt(r.loc.start);return n.name=null,n.optional=!1,n.typeAnnotation=r,this.finishNode(n,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let n=null,i=null;for(this.match(78)&&(i=this.flowParseFunctionTypeParam(!0),i.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(n=this.flowParseFunctionTypeParam(!1)),{params:r,rest:n,_this:i}}flowIdentToTypeAnnotation(r,n,i){switch(i.name){case"any":return this.finishNode(n,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(n,"BooleanTypeAnnotation");case"mixed":return this.finishNode(n,"MixedTypeAnnotation");case"empty":return this.finishNode(n,"EmptyTypeAnnotation");case"number":return this.finishNode(n,"NumberTypeAnnotation");case"string":return this.finishNode(n,"StringTypeAnnotation");case"symbol":return this.finishNode(n,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(r,i)}}flowParsePrimaryType(){let r=this.state.startLoc,n=this.startNode(),i,s,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,s=this.flowParseTupleType(),this.state.noAnonFunctionType=o,s;case 47:{let u=this.startNode();return u.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),i=this.flowParseFunctionTypeParams(),u.params=i.params,u.rest=i.rest,u.this=i._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),this.finishNode(u,"FunctionTypeAnnotation")}case 10:{let u=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(qr(this.state.type)||this.match(78)){let l=this.lookahead().type;a=l!==17&&l!==14;}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,s=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),s;this.eat(12);}return s?i=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)]):i=this.flowParseFunctionTypeParams(),u.params=i.params,u.rest=i.rest,u.this=i._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),u.typeParameters=null,this.finishNode(u,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return n.value=this.match(85),this.next(),this.finishNode(n,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",n);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",n);throw this.raise(gt.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(n,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(n,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(n,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(n,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(j7(this.state.type)){let u=ch(this.state.type);return this.next(),super.createIdentifier(n,u)}else if(qr(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,n,this.parseIdentifier())}this.unexpected();}flowParsePostfixType(){let r=this.state.startLoc,n=this.flowParsePrimaryType(),i=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let s=this.startNodeAt(r),a=this.eat(18);i=i||a,this.expect(0),!a&&this.match(3)?(s.elementType=n,this.next(),n=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=n,s.indexType=this.flowParseType(),this.expect(3),i?(s.optional=a,n=this.finishNode(s,"OptionalIndexedAccessType")):n=this.finishNode(s,"IndexedAccessType"));}return n}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let n=this.startNodeAt(r.loc.start);return n.params=[this.reinterpretTypeAsFunctionTypeParam(r)],n.rest=null,n.this=null,n.returnType=this.flowParseType(),n.typeParameters=null,this.finishNode(n,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let n=this.flowParseAnonFunctionWithoutParens();for(r.types=[n];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?n:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let n=this.flowParseIntersectionType();for(r.types=[n];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?n:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let n=this.flowParseUnionType();return this.state.inType=r,n}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,n=this.parseIdentifier();return this.flowParseGenericType(r,n)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(r){let n=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(n.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(n)),n}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,n,i=!1){if(n){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,i));return}super.parseFunctionBody(r,!1,i);}parseFunctionBodyAndFinish(r,n,i=!1){if(this.match(14)){let s=this.startNode();[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null;}return super.parseFunctionBodyAndFinish(r,n,i)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(_u(i.type)){let s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.shouldParseEnums()&&this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let n=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(n)&&(this.flowPragma=null),n}parseExpressionStatement(r,n,i){if(n.type==="Identifier"){if(n.name==="declare"){if(this.match(80)||qr(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(qr(this.state.type)){if(n.name==="interface")return this.flowParseInterface(r);if(n.name==="type")return this.flowParseTypeAlias(r);if(n.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,n,i)}shouldParseExportDeclaration(){let{type:r}=this.state;return bMe(r)||this.shouldParseEnums()&&r===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return bMe(r)||this.shouldParseEnums()&&r===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,n,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let h=this.lookaheadCharCode();if(h===44||h===61||h===58||h===41)return this.setOptionalParametersError(i),r}this.expect(17);let s=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(n),{consequent:u,failed:l}=this.tryParseConditionalConsequent(),[c,p]=this.getArrowLikeExpressions(u);if(l||p.length>0){let h=[...a];if(p.length>0){this.state=s,this.state.noArrowAt=h;for(let f=0;f<p.length;f++)h.push(p[f].start);(({consequent:u,failed:l}=this.tryParseConditionalConsequent())),[c,p]=this.getArrowLikeExpressions(u);}l&&c.length>1&&this.raise(gt.AmbiguousConditionalArrow,s.startLoc),l&&c.length===1&&(this.state=s,h.push(c[0].start),this.state.noArrowAt=h,{consequent:u,failed:l}=this.tryParseConditionalConsequent());}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=u,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),n=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:n}}getArrowLikeExpressions(r,n){let i=[r],s=[];for(;i.length!==0;){let a=i.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):s.push(a),i.push(a.body)):a.type==="ConditionalExpression"&&(i.push(a.consequent),i.push(a.alternate));}return n?(s.forEach(a=>this.finishArrowValidation(a)),[s,[]]):wvr(s,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var n;this.toAssignableList(r.params,(n=r.extra)==null?void 0:n.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(r,!1,!0),this.scope.exit();}forwardNoArrowParamsConversionAt(r,n){let i;return this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),i=n(),this.state.noArrowParamsConversionAt.pop()):i=n(),i}parseParenItem(r,n){let i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(n);return s.expression=i,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return i}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r);}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let n=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(n)}else if(this.isContextual(131)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}else if(this.isContextual(129)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseInterface(n)}else if(this.shouldParseEnums()&&this.isContextual(126)){r.exportKind="value";let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:n}=this.state,i=super.maybeParseExportNamespaceSpecifier(r);return i&&r.exportKind==="type"&&this.unexpected(n),i}parseClassId(r,n,i){super.parseClassId(r,n,i),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration());}parseClassMember(r,n,i){let{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,n))return;n.declare=!0;}super.parseClassMember(r,n,i),n.declare&&(n.type!=="ClassProperty"&&n.type!=="ClassPrivateProperty"&&n.type!=="PropertyDefinition"?this.raise(gt.DeclareClassElement,s):n.value&&this.raise(gt.DeclareClassFieldInitializer,n.value));}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),n="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(J.InvalidIdentifier,this.state.curPosition(),{identifierName:n}),this.finishToken(132,n);}getTokenFromCode(r){let n=this.input.charCodeAt(this.state.pos+1);r===123&&n===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?n===46?this.finishOp(18,2):this.finishOp(17,1):pvr(r,n,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r);}isAssignable(r,n){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,n):super.isAssignable(r,n)}toAssignable(r,n=!1){!n&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,n);}toAssignableList(r,n,i){for(let s=0;s<r.length;s++){let a=r[s];(a==null?void 0:a.type)==="TypeCastExpression"&&(r[s]=this.typeCastToParameter(a));}super.toAssignableList(r,n,i);}toReferencedList(r,n){for(let s=0;s<r.length;s++){var i;let a=r[s];a&&a.type==="TypeCastExpression"&&!((i=a.extra)!=null&&i.parenthesized)&&(r.length>1||!n)&&this.raise(gt.TypeCastInPattern,a.typeAnnotation);}return r}parseArrayLike(r,n,i,s){let a=super.parseArrayLike(r,n,i,s);return n&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(r,n,i){return r==="TypeCastExpression"||super.isValidLVal(r,n,i)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return !this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,n,i,s,a,o){if(n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,n,i,s,a,o),n.params&&a){let u=n.params;u.length>0&&this.isThisParam(u[0])&&this.raise(gt.ThisParamBannedInConstructor,n);}else if(n.type==="MethodDefinition"&&a&&n.value.params){let u=n.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(gt.ThisParamBannedInConstructor,n);}}pushClassPrivateMethod(r,n,i,s){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,n,i,s);}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&this.match(47)&&(r.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let n=r.implements=[];do{let i=this.startNode();i.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,n.push(this.finishNode(i,"ClassImplements"));}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let n=this.getObjectOrClassMethodParams(r);if(n.length>0){let i=n[0];this.isThisParam(i)&&r.kind==="get"?this.raise(gt.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(gt.SetterMayNotHaveThisParam,i);}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance();}parseObjPropValue(r,n,i,s,a,o,u){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let l;this.match(47)&&!o&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(r,n,i,s,a,o,u);return l&&((c.value||c).typeParameters=l),c}parseAssignableListItemTypes(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(gt.PatternIsOptional,r),this.isThisParam(r)&&this.raise(gt.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(gt.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(gt.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,n){let i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(gt.TypeBeforeInitializer,i.typeAnnotation),i}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(gt.ImportReflectionHasImportType,r.specifiers[0].loc.start);}parseImportSpecifierLocal(r,n,i){n.local=AMe(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(n,i));}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return !0;if(this.isContextual(130)){if(!r)return !0;let n=this.lookaheadCharCode();return n===123||n===42}return !r&&this.isContextual(87)}applyImportPhase(r,n,i,s){if(super.applyImportPhase(r,n,i,s),n){if(!i&&this.match(65))return;r.exportKind=i==="type"?i:"value";}else i==="type"&&this.match(55)&&this.unexpected(),r.importKind=i==="type"||i==="typeof"?i:"value";}parseImportSpecifier(r,n,i,s,a){let o=r.imported,u=null;o.type==="Identifier"&&(o.name==="type"?u="type":o.name==="typeof"&&(u="typeof"));let l=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let p=this.parseIdentifier(!0);u!==null&&!_u(this.state.type)?(r.imported=p,r.importKind=u,r.local=Jc(p)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier());}else {if(u!==null&&_u(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=u;else {if(n)throw this.raise(J.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null;}this.eatContextual(93)?r.local=this.parseIdentifier():(l=!0,r.local=Jc(r.imported));}let c=AMe(r);return i&&c&&this.raise(gt.ImportTypeShorthandOnlyInPureImport,r),(i||c)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),l&&!i&&!c&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,n){let i=r.kind;i!=="get"&&i!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,n);}parseVarId(r,n){super.parseVarId(r,n),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id));}parseAsyncArrowFromCallExpression(r,n){if(this.match(14)){let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=i;}return super.parseAsyncArrowFromCallExpression(r,n)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,n){var i;let s=null,a;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(s=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,n),s),!a.error)return a.node;let{context:l}=this.state,c=l[l.length-1];(c===on.j_oTag||c===on.j_expr)&&l.pop();}if((i=a)!=null&&i.error||this.match(47)){var o,u;s=s||this.state.clone();let l,c=this.tryParse(h=>{var f;l=this.flowParseTypeParameterDeclaration();let d=this.forwardNoArrowParamsConversionAt(l,()=>{let y=super.parseMaybeAssign(r,n);return this.resetStartLocationFromNode(y,l),y});(f=d.extra)!=null&&f.parenthesized&&h();let m=this.maybeUnwrapTypeCastExpression(d);return m.type!=="ArrowFunctionExpression"&&h(),m.typeParameters=l,this.resetStartLocationFromNode(m,l),d},s),p=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(gt.UnexpectedTypeParameterBeforeAsyncArrowFunction,l),c.node;p=c.node;}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(p)return this.state=c.failState,p;throw (u=a)!=null&&u.thrown?a.error:c.thrown?c.error:this.raise(gt.UnexpectedTokenAfterTypeParameter,l)}return super.parseMaybeAssign(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let s=this.startNode();return [s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(n.thrown)return null;n.error&&(this.state=n.failState),r.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null;}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,n){this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1?r.params=n:super.setArrowFunctionParameters(r,n);}checkParams(r,n,i,s=!0){if(!(i&&this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1)){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(gt.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,n,i,s);}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(r,n,i){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.indexOf(n.index)!==-1){this.next();let s=this.startNodeAt(n);s.callee=r,s.arguments=super.parseCallExpressionArguments(11,!1),r=this.finishNode(s,"CallExpression");}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let s=this.state.clone(),a=this.tryParse(u=>this.parseAsyncArrowWithTypeParameters(n)||u(),s);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,n,i),s);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,n,i)}parseSubscript(r,n,i,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,i)return s.stop=!0,r;this.next();let a=this.startNodeAt(n);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),a.arguments=this.parseCallExpressionArguments(11,!1),a.optional=!0,this.finishCallExpression(a,!0)}else if(!i&&this.shouldParseTypes()&&this.match(47)){let a=this.startNodeAt(n);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(11,!1),s.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,s.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){super.parseNewCallee(r);let n=null;this.shouldParseTypes()&&this.match(47)&&(n=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=n;}parseAsyncArrowWithTypeParameters(r){let n=this.startNodeAt(r);if(this.parseFunctionParams(n,!1),!!this.parseArrow(n))return super.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===42&&n===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r);}readToken_pipe_amp(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===124&&n===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r);}parseTopLevel(r,n){let i=super.parseTopLevel(r,n);return this.state.hasFlowComment&&this.raise(gt.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(gt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,n=2;for(;[32,9].includes(this.input.charCodeAt(r+n));)n++;let i=this.input.charCodeAt(n+r),s=this.input.charCodeAt(n+r+1);return i===58&&s===58?n+2:this.input.slice(n+r,n+r+12)==="flow-include"?n+12:i===58&&s!==58?n:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(J.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:i}){this.raise(gt.EnumBooleanMemberNotInitialized,r,{memberName:i,enumName:n});}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?gt.EnumInvalidMemberInitializerSymbolType:gt.EnumInvalidMemberInitializerPrimaryType:gt.EnumInvalidMemberInitializerUnknownType,r,n)}flowEnumErrorNumberMemberNotInitialized(r,n){this.raise(gt.EnumNumberMemberNotInitialized,r,n);}flowEnumErrorStringMemberInconsistentlyInitialized(r,n){this.raise(gt.EnumStringMemberInconsistentlyInitialized,r,n);}flowEnumMemberInit(){let r=this.state.startLoc,n=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let i=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 133:{let i=this.parseStringLiteral(this.state.value);return n()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));return n()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:r}}default:return {type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,n=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return {id:n,init:i}}flowEnumCheckExplicitTypeMismatch(r,n,i){let{explicitType:s}=n;s!==null&&s!==i&&this.flowEnumErrorInvalidMemberInitializer(r,n);}flowEnumMembers({enumName:r,explicitType:n}){let i=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:u,init:l}=this.flowEnumMemberRaw(),c=u.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(gt.EnumInvalidMemberName,u,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),i.has(c)&&this.raise(gt.EnumDuplicateMemberName,u,{memberName:c,enumName:r}),i.add(c);let p={enumName:r,explicitType:n,memberName:c};switch(o.id=u,l.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"boolean"),o.init=l.value,s.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"number"),o.init=l.value,s.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"string"),o.init=l.value,s.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,p);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,p);break;default:s.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"));}}this.match(8)||this.expect(12);}return {members:s,hasUnknownMembers:a}}flowEnumStringMembers(r,n,{enumName:i}){if(r.length===0)return n;if(n.length===0)return r;if(n.length>r.length){for(let s of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return n}else {for(let s of n)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:i});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!qr(this.state.type))throw this.raise(gt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(gt.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:n}),n}flowEnumBody(r,n){let i=n.name,s=n.loc.start,a=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:u}=this.flowEnumMembers({enumName:i,explicitType:a});switch(r.hasUnknownMembers=u,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let l=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let c=o.booleanMembers.length,p=o.numberMembers.length,h=o.stringMembers.length,f=o.defaultedMembers.length;if(!c&&!p&&!h&&!f)return l();if(!c&&!p)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!p&&!h&&c>=f){for(let d of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(d.loc.start,{enumName:i,memberName:d.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!c&&!h&&p>=f){for(let d of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(d.loc.start,{enumName:i,memberName:d.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(gt.EnumInconsistentMemberValues,s,{enumName:i}),l()}}}flowParseEnumDeclaration(r){let n=this.parseIdentifier();return r.id=n,r.body=this.flowEnumBody(this.startNode(),n),this.finishNode(r,"EnumDeclaration")}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let n=this.input.charCodeAt(r+1);return n!==60&&n!==61}return !1}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},Dvr={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},ym=zc`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function uh(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function hT(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return hT(e.object)+"."+hT(e.property);throw new Error("Node had unexpected type: "+e.type)}var Nvr=e=>class extends e{jsxReadToken(){let r="",n=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ym.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){i===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(i);return}r+=this.input.slice(n,this.state.pos),this.finishToken(141,r);return;case 38:r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos;break;case 62:case 125:default:g_(i)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!0),n=this.state.pos):++this.state.pos;}}}jsxReadNewLine(r){let n=this.input.charCodeAt(this.state.pos),i;return ++this.state.pos,n===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,i=r?`
`:`\r
`):i=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(r){let n="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(J.UnterminatedString,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);if(s===r)break;s===38?(n+=this.input.slice(i,this.state.pos),n+=this.jsxReadEntity(),i=this.state.pos):g_(s)?(n+=this.input.slice(i,this.state.pos),n+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos;}n+=this.input.slice(i,this.state.pos++),this.finishToken(133,n);}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let n=10;this.codePointAtPos(this.state.pos)===120&&(n=16,++this.state.pos);let i=this.readInt(n,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return ++this.state.pos,String.fromCodePoint(i)}else {let n=0,i=!1;for(;n++<10&&this.state.pos<this.length&&!(i=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(i){let s=this.input.slice(r,this.state.pos),a=Dvr[s];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,n=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(dT(r)||r===45);this.finishToken(140,this.input.slice(n,this.state.pos));}jsxParseIdentifier(){let r=this.startNode();return this.match(140)?r.name=this.state.value:j7(this.state.type)?r.name=ch(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,n=this.jsxParseIdentifier();if(!this.eat(14))return n;let i=this.startNodeAt(r);return i.namespace=n,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,n=this.jsxParseNamespacedName();if(n.type==="JSXNamespacedName")return n;for(;this.eat(16);){let i=this.startNodeAt(r);i.object=n,i.property=this.jsxParseIdentifier(),n=this.finishNode(i,"JSXMemberExpression");}return n}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(on.brace),this.next(),r=this.jsxParseExpressionContainer(r,on.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(ym.AttributeIsEmpty,r),r;case 142:case 133:return this.parseExprAtom();default:throw this.raise(ym.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(on.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,n){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else {let i=this.parseExpression();r.expression=i;}return this.setContext(n),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(on.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(on.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let n=this.startNodeAt(r);return this.eat(143)?this.finishNode(n,"JSXOpeningFragment"):(n.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(n))}jsxParseOpeningElementAfterName(r){let n=[];for(;!this.match(56)&&!this.match(143);)n.push(this.jsxParseAttribute());return r.attributes=n,r.selfClosing=this.eat(56),this.expect(143),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let n=this.startNodeAt(r);return this.eat(143)?this.finishNode(n,"JSXClosingFragment"):(n.name=this.jsxParseElementName(),this.expect(143),this.finishNode(n,"JSXClosingElement"))}jsxParseElementAt(r){let n=this.startNodeAt(r),i=[],s=this.jsxParseOpeningElementAt(r),a=null;if(!s.selfClosing){e:for(;;)switch(this.state.type){case 142:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}i.push(this.jsxParseElementAt(r));break;case 141:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(on.brace),this.next(),this.match(21)?i.push(this.jsxParseSpreadChild(o)):i.push(this.jsxParseExpressionContainer(o,on.j_expr));break}default:this.unexpected();}uh(s)&&!uh(a)&&a!==null?this.raise(ym.MissingClosingTagFragment,a):!uh(s)&&uh(a)?this.raise(ym.MissingClosingTagElement,a,{openingTagName:hT(s.name)}):!uh(s)&&!uh(a)&&hT(a.name)!==hT(s.name)&&this.raise(ym.MissingClosingTagElement,a,{openingTagName:hT(s.name)});}if(uh(s)?(n.openingFragment=s,n.closingFragment=a):(n.openingElement=s,n.closingElement=a),n.children=i,this.match(47))throw this.raise(ym.UnwrappedAdjacentJSXElements,this.state.startLoc);return uh(s)?this.finishNode(n,"JSXFragment"):this.finishNode(n,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:n}=this.state;n[n.length-1]=r;}parseExprAtom(r){return this.match(142)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace();}getTokenFromCode(r){let n=this.curContext();if(n===on.j_expr){this.jsxReadToken();return}if(n===on.j_oTag||n===on.j_cTag){if(Xc(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(143);return}if((r===34||r===39)&&n===on.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(142);return}super.getTokenFromCode(r);}updateContext(r){let{context:n,type:i}=this.state;if(i===56&&r===142)n.splice(-2,2,on.j_cTag),this.state.canStartJSXElement=!1;else if(i===142)n.push(on.j_oTag);else if(i===143){let s=n[n.length-1];s===on.j_oTag&&r===56||s===on.j_cTag?(n.pop(),this.state.canStartJSXElement=n[n.length-1]===on.j_expr):(this.setContext(on.j_expr),this.state.canStartJSXElement=!0);}else this.state.canStartJSXElement=Xbr(i);}},w7=class extends S_{constructor(...t){super(...t),this.tsNames=new Map;}},I7=class extends T_{constructor(...t){super(...t),this.importsStack=[];}createScope(t){return this.importsStack.push(new Set),new w7(t)}enter(t){t===256&&this.importsStack.push(new Set),super.enter(t);}exit(){let t=super.exit();return t===256&&this.importsStack.pop(),t}hasImport(t,r){let n=this.importsStack.length;if(this.importsStack[n-1].has(t))return !0;if(!r&&n>1){for(let i=0;i<n-1;i++)if(this.importsStack[i].has(t))return !0}return !1}declareName(t,r,n){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(J.VarRedeclaration,n,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let i=this.currentScope(),s=i.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(i,t),i.tsNames.set(t,s|16);return}super.declareName(t,r,n),r&2&&(r&1||(this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t)),s=s|1),r&256&&(s=s|2),r&512&&(s=s|4),r&128&&(s=s|8),s&&i.tsNames.set(t,s);}isRedeclaredInScope(t,r,n){let i=t.tsNames.get(r);if((i&2)>0){if(n&256){let s=!!(n&512),a=(i&4)>0;return s!==a}return !0}return n&128&&(i&8)>0?t.names.get(r)&2?!!(n&1):!1:n&2&&(i&1)>0?!0:super.isRedeclaredInScope(t,r,n)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let n=this.scopeStack.length;for(let i=n-1;i>=0;i--){let a=this.scopeStack[i].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t);}},Rvr=(e,t)=>hasOwnProperty.call(e,t)&&e[t],KMe=e=>e.type==="ParenthesizedExpression"?KMe(e.expression):e,O7=class extends C7{toAssignable(t,r=!1){var n,i;let s;switch((t.type==="ParenthesizedExpression"||(n=t.extra)!=null&&n.parenthesized)&&(s=KMe(t),r?s.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(J.InvalidParenthesizedAssignment,t):s.type!=="MemberExpression"&&!this.isOptionalMemberExpression(s)&&this.raise(J.InvalidParenthesizedAssignment,t):this.raise(J.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,u=t.properties.length,l=u-1;o<u;o++){var a;let c=t.properties[o],p=o===l;this.toAssignableObjectExpressionProp(c,p,r),p&&c.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(J.RestTrailingComma,t.extra.trailingCommaLoc);}break;case"ObjectProperty":{let{key:o,value:u}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(u,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,(i=t.extra)==null?void 0:i.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(J.MissingEqInAssignment,t.left.loc.end),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(s,r);break}}toAssignableObjectExpressionProp(t,r,n){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?J.PatternHasAccessor:J.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){t.type="RestElement";let i=t.argument;this.checkToRestConversion(i,!1),this.toAssignable(i,n),r||this.raise(J.RestTrailingComma,t);}else this.toAssignable(t,n);}toAssignableList(t,r,n){let i=t.length-1;for(let s=0;s<=i;s++){let a=t[s];if(a){if(a.type==="SpreadElement"){a.type="RestElement";let o=a.argument;this.checkToRestConversion(o,!0),this.toAssignable(o,n);}else this.toAssignable(a,n);a.type==="RestElement"&&(s<i?this.raise(J.RestTrailingComma,a):r&&this.raise(J.RestTrailingComma,r));}}}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return !0;case"ObjectExpression":{let n=t.properties.length-1;return t.properties.every((i,s)=>i.type!=="ObjectMethod"&&(s===n||i.type!=="SpreadElement")&&this.isAssignable(i))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return !r;default:return !1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let n of t)(n==null?void 0:n.type)==="ArrayExpression"&&this.toReferencedListDeep(n.elements);}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,r,n){let i=n&1,s=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),i&&this.match(12))s.push(null);else {if(this.eat(t))break;if(this.match(21)){if(s.push(this.parseAssignableListItemTypes(this.parseRestBinding(),n)),!this.checkCommaAfterRest(r)){this.expect(t);break}}else {let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(J.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());s.push(this.parseAssignableListItem(n,o));}}return s}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return t===138?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,r,!1,!1,!0,!1)}parseAssignableListItem(t,r){let n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n,t);let i=this.parseMaybeDefault(n.loc.start,n);return r.length&&(n.decorators=r),i}parseAssignableListItemTypes(t,r){return t}parseMaybeDefault(t,r){var i;if((t)!=null||(t=this.state.startLoc),r=(i=r)!=null?i:this.parseBindingAtom(),!this.eat(29))return r;let s=this.startNodeAt(t);return s.left=r,s.right=this.parseMaybeAssignAllowIn(),this.finishNode(s,"AssignmentPattern")}isValidLVal(t,r,n){return Rvr({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},t)}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,{in:r,binding:n=64,checkClashes:i=!1,strictModeChanged:s=!1,hasParenthesizedAncestor:a=!1}){var o;let u=t.type;if(this.isObjectMethod(t))return;let l=this.isOptionalMemberExpression(t);if(l||u==="MemberExpression"){l&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(J.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(J.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,n,s);let{name:d}=t;i&&(i.has(d)?this.raise(J.ParamDupe,t):i.add(d));return}let c=this.isValidLVal(u,!(a||(o=t.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",n);if(c===!0)return;if(c===!1){let d=n===64?J.InvalidLhs:J.InvalidLhsBinding;this.raise(d,t,{ancestor:r});return}let[p,h]=Array.isArray(c)?c:[c,u==="ParenthesizedExpression"],f=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r;for(let d of [].concat(t[p]))d&&this.checkLVal(d,{in:f,binding:n,checkClashes:i,strictModeChanged:s,hasParenthesizedAncestor:h});}checkIdentifier(t,r,n=!1){this.state.strict&&(n?UMe(t.name,this.inModule):jMe(t.name))&&(r===64?this.raise(J.StrictEvalArguments,t,{referenceName:t.name}):this.raise(J.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(J.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r);}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start);}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(J.InvalidRestAssignmentPattern,t);}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?J.RestTrailingComma:J.ElementAfterRest,this.state.startLoc),!0):!1}},Mvr=(e,t)=>hasOwnProperty.call(e,t)&&e[t];function Lvr(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function PMe(e){if(!e)throw new Error("Assert fail")}var rt=zc`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function kvr(e){switch(e){case"any":return "TSAnyKeyword";case"boolean":return "TSBooleanKeyword";case"bigint":return "TSBigIntKeyword";case"never":return "TSNeverKeyword";case"number":return "TSNumberKeyword";case"object":return "TSObjectKeyword";case"string":return "TSStringKeyword";case"symbol":return "TSSymbolKeyword";case"undefined":return "TSUndefinedKeyword";case"unknown":return "TSUnknownKeyword";default:return}}function CMe(e){return e==="private"||e==="public"||e==="protected"}function Fvr(e){return e==="in"||e==="out"}var Bvr=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:rt.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:rt.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:rt.InvalidModifierOnTypeParameter});}getScopeHandler(){return I7}tsIsIdentifier(){return qr(this.state.type)}tsTokenCanFollowModifier(){return (this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(r,n){if(!qr(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(r.indexOf(i)!==-1){if(n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:i,errorTemplate:s=rt.InvalidModifierOnTypeMember},a){let o=(l,c,p,h)=>{c===p&&a[h]&&this.raise(rt.InvalidModifiersOrder,l,{orderedModifiers:[p,h]});},u=(l,c,p,h)=>{(a[p]&&c===h||a[h]&&c===p)&&this.raise(rt.IncompatibleModifiers,l,{modifiers:[p,h]});};for(;;){let{startLoc:l}=this.state,c=this.tsParseModifier(r.concat(n??[]),i);if(!c)break;CMe(c)?a.accessibility?this.raise(rt.DuplicateAccessibilityModifier,l,{modifier:c}):(o(l,c,c,"override"),o(l,c,c,"static"),o(l,c,c,"readonly"),a.accessibility=c):Fvr(c)?(a[c]&&this.raise(rt.DuplicateModifier,l,{modifier:c}),a[c]=!0,o(l,c,"in","out")):(hasOwnProperty.call(a,c)?this.raise(rt.DuplicateModifier,l,{modifier:c}):(o(l,c,"static","readonly"),o(l,c,"static","override"),o(l,c,"override","readonly"),o(l,c,"abstract","override"),u(l,c,"declare","override"),u(l,c,"static","abstract")),a[c]=!0),n!=null&&n.includes(c)&&this.raise(s,l,{modifier:c});}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,n){let i=[];for(;!this.tsIsListTerminator(r);)i.push(n());return i}tsParseDelimitedList(r,n,i){return Lvr(this.tsParseDelimitedListWorker(r,n,!0,i))}tsParseDelimitedListWorker(r,n,i,s){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let u=n();if(u==null)return;if(a.push(u),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;i&&this.expect(12);return}return s&&(s.value=o),a}tsParseBracketedList(r,n,i,s,a){s||(i?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,n,a);return i?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(rt.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(r.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(r.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName()),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseEntityName(r=!0){let n=this.parseIdentifier(r);for(;this.eat(16);){let i=this.startNodeAtNode(n);i.left=n,i.right=this.parseIdentifier(r),n=this.finishNode(i,"TSQualifiedName");}return n}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let n=this.startNodeAtNode(r);return n.parameterName=r,n.typeAnnotation=this.tsParseTypeAnnotation(!1),n.asserts=!1,this.finishNode(n,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let n=this.startNode();return r(n),n.name=this.tsParseTypeParameterName(),n.constraint=this.tsEatThenParseType(81),n.default=this.tsEatThenParseType(29),this.finishNode(n,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let n=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();let i={value:-1};return n.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,i),n.params.length===0&&this.raise(rt.EmptyTypeParameters,n),i.value!==-1&&this.addExtra(n,"trailingComma",i.value),this.finishNode(n,"TSTypeParameterDeclaration")}tsFillSignature(r,n){let i=r===19,s="parameters",a="typeAnnotation";n.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),n[s]=this.tsParseBindingListForSignature(),i?n[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(n[a]=this.tsParseTypeOrTypePredicateAnnotation(r));}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let n of r){let{type:i}=n;(i==="AssignmentPattern"||i==="TSParameterProperty")&&this.raise(rt.UnsupportedSignatureParameterKind,n,{type:i});}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13);}tsParseSignatureMember(r,n){return this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon(),this.finishNode(n,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),qr(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let n=this.parseIdentifier();n.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(n),this.expect(3),r.parameters=[n];let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,n){this.eat(17)&&(r.optional=!0);let i=r;if(this.match(10)||this.match(47)){n&&this.raise(rt.ReadonlyForMethodSignature,r);let s=i;s.kind&&this.match(47)&&this.raise(rt.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let a="parameters",o="typeAnnotation";if(s.kind==="get")s[a].length>0&&(this.raise(J.BadGetterArity,this.state.curPosition()),this.isThisParam(s[a][0])&&this.raise(rt.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[a].length!==1)this.raise(J.BadSetterArity,this.state.curPosition());else {let u=s[a][0];this.isThisParam(u)&&this.raise(rt.AccesorCannotDeclareThisParameter,this.state.curPosition()),u.type==="Identifier"&&u.optional&&this.raise(rt.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),u.type==="RestElement"&&this.raise(rt.SetAccesorCannotHaveRestParameter,this.state.curPosition());}s[o]&&this.raise(rt.SetAccesorCannotHaveReturnType,s[o]);}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else {let s=i;n&&(s.readonly=!0);let a=this.tsTryParseTypeAnnotation();return a&&(s.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let i=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let n=this.tsTryParseIndexSignature(r);return n||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),this.finishNode(r,"TSTypeParameter")}tsParseMappedType(){let r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0),r.typeParameter=this.tsParseMappedTypeParameter(),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let n=!1;return r.elementTypes.forEach(i=>{let{type:s}=i;n&&s!=="TSRestType"&&s!=="TSOptionalType"&&!(s==="TSNamedTupleMember"&&i.optional)&&this.raise(rt.OptionalTypeBeforeRequired,i),n||(n=s==="TSNamedTupleMember"&&i.optional||s==="TSOptionalType");}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let{startLoc:r}=this.state,n=this.eat(21),i,s,a,o,l=_u(this.state.type)?this.lookaheadCharCode():null;if(l===58)i=!0,a=!1,s=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(l===63){a=!0;let c=this.state.startLoc,p=this.state.value,h=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,s=this.createIdentifier(this.startNodeAt(c),p),this.expect(17),this.expect(14),o=this.tsParseType()):(i=!1,o=h,this.expect(17));}else o=this.tsParseType(),a=this.eat(17),i=this.eat(14);if(i){let c;s?(c=this.startNodeAtNode(s),c.optional=a,c.label=s,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(rt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAtNode(o),c.optional=a,this.raise(rt.InvalidTupleMemberLabel,o),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember");}else if(a){let c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType");}if(n){let c=this.startNodeAt(r);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType");}return o}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,n){let i=this.startNode();return r==="TSConstructorType"&&(i.abstract=!!n,n&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected();}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),n=this.lookahead();return n.type!==134&&n.type!==135&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(qr(r)||r===88||r===84){let n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":kvr(this.state.value);if(n!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,n)}return this.tsParseTypeReference()}}}this.unexpected();}tsParseArrayTypeOrHigher(){let r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAtNode(r);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType");}else {let n=this.startNodeAtNode(r);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType");}return r}tsParseTypeOperator(){let r=this.startNode(),n=this.state.value;return this.next(),r.operator=n,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),n==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(rt.UnexpectedReadonly,r);}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(n,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return tvr(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,n,i){let s=this.startNode(),a=this.eat(i),o=[];do o.push(n());while(this.eat(i));return o.length===1&&!a?o[0]:(s.types=o,this.finishNode(s,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(qr(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,n=r.length;try{return this.parseObjectLike(8,!0),r.length===n}catch{return !1}}if(this.match(0)){this.next();let{errors:r}=this.state,n=r.length;try{return super.parseBindingList(3,93,1),r.length===n}catch{return !1}}return !1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let n=this.startNode();this.expect(r);let i=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let u=this.tsParseThisTypeOrThisTypePredicate();return u.type==="TSThisType"?(i.parameterName=u,i.asserts=!0,i.typeAnnotation=null,u=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(u,i),u.asserts=!0),n.typeAnnotation=u,this.finishNode(n,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return s?(i.parameterName=this.parseIdentifier(),i.asserts=s,i.typeAnnotation=null,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,n);let o=this.tsParseTypeAnnotation(!1);return i.parameterName=a,i.typeAnnotation=o,i.asserts=s,n.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return !1;let r=this.state.containsEsc;return this.next(),!qr(this.state.type)&&!this.match(78)?!1:(r&&this.raise(J.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,n=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),n.typeAnnotation=this.tsParseType();}),this.finishNode(n,"TSTypeAnnotation")}tsParseType(){PMe(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let n=this.startNodeAtNode(r);return n.checkType=r,n.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),n.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),n.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(n,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(rt.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let n=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let s=this.startNode();return s.expression=this.tsParseEntityName(),this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSExpressionWithTypeArguments")});return i.length||this.raise(rt.EmptyHeritageClauseType,n,{token:r}),i}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),qr(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(rt.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let n=this.startNode();return this.next(),this.finishNode(n,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInNoContext(r){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n;}}tsInType(r){let n=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=n;}}tsInDisallowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n;}}tsInAllowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n;}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,n={}){return n.const&&(r.const=!0),n.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,n=!1){if(r.id=this.parseIdentifier(),n||this.checkIdentifier(r.id,1024),this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),r.body=i;}else this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.global=!0,r.id=this.parseIdentifier()):this.match(133)?r.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,n,i){r.isExport=i||!1,r.id=n||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let s=this.tsParseModuleReference();return r.importKind==="type"&&s.type!=="TSExternalModuleReference"&&this.raise(rt.ImportAliasHasImportType,s),r.moduleReference=s,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let n=this.state.clone(),i=r();return this.state=n,i}tsTryParseAndCatch(r){let n=this.tryParse(i=>r()||i());if(!(n.aborted||!n.node))return n.error&&(this.state=n.failState),n.node}tsTryParse(r){let n=this.state.clone(),i=r();if(i!==void 0&&i!==!1)return i;this.state=n;}tsTryParseDeclare(r){if(this.isLineTerminator())return;let n=this.state.type,i;return this.isContextual(100)&&(n=74,i="let"),this.tsInAmbientContext(()=>{switch(n){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 75:case 74:return !this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,i||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(qr(n))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,n,i){switch(n.name){case"declare":{let s=this.tsTryParseDeclare(r);return s&&(s.declare=!0),s}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let s=r;return s.global=!0,s.id=n,s.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,n.name,!1,i)}}tsParseDeclaration(r,n,i,s){switch(n){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||qr(this.state.type)))return this.tsParseAbstractDeclaration(r,s);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(r);if(qr(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&qr(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(i)&&qr(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let s=this.startNodeAt(r);return s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),s});if(this.state.maybeInArrowParameters=n,!!i)return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(rt.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===on.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return rvr(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(r,n){let i=this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);let a=s.accessibility,o=s.override,u=s.readonly;!(r&4)&&(a||u||o)&&this.raise(rt.UnexpectedParameterModifier,i);let l=this.parseMaybeDefault();this.parseAssignableListItemTypes(l,r);let c=this.parseMaybeDefault(l.loc.start,l);if(a||u||o){let p=this.startNodeAt(i);return n.length&&(p.decorators=n),a&&(p.accessibility=a),u&&(p.readonly=u),o&&(p.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(rt.UnsupportedParameterPropertyKind,p),p.parameter=c,this.finishNode(p,"TSParameterProperty")}return n.length&&(l.decorators=n),c}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let n of r.params)n.type!=="Identifier"&&n.optional&&!this.state.isAmbientContext&&this.raise(rt.PatternIsOptional,n);}setArrowFunctionParameters(r,n,i){super.setArrowFunctionParameters(r,n,i),this.tsDisallowOptionalPattern(r);}parseFunctionBodyAndFinish(r,n,i=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let s=n==="FunctionDeclaration"?"TSDeclareFunction":n==="ClassMethod"||n==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,s):s==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(rt.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,s,i):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,n,i))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r);}tsCheckForInvalidTypeCasts(r){r.forEach(n=>{(n==null?void 0:n.type)==="TSTypeCastExpression"&&this.raise(rt.UnexpectedTypeAnnotation,n.typeAnnotation);});}toReferencedList(r,n){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,n,i,s){let a=super.parseArrayLike(r,n,i,s);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(r,n,i,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(n);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return s.stop=!0,r;s.optionalChainMember=a=!0,this.next();}if(this.match(47)||this.match(51)){let o,u=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(r)){let h=this.tsTryParseGenericAsyncArrowFunction(n);if(h)return h}let l=this.tsParseTypeArgumentsInExpression();if(!l)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(TD(this.state.type)){let h=super.parseTaggedTemplateExpression(r,n,s);return h.typeParameters=l,h}if(!i&&this.eat(10)){let h=this.startNodeAt(n);return h.callee=r,h.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(h.arguments),h.typeParameters=l,s.optionalChainMember&&(h.optional=a),this.finishCallExpression(h,s.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&&h7(c)&&!this.hasPrecedingLineBreak())return;let p=this.startNodeAt(n);return p.expression=r,p.typeParameters=l,this.finishNode(p,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),u)return u.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(rt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),u}return super.parseSubscript(r,n,i,s)}parseNewCallee(r){var n;super.parseNewCallee(r);let{callee:i}=r;i.type==="TSInstantiationExpression"&&!((n=i.extra)!=null&&n.parenthesized)&&(r.typeParameters=i.typeParameters,r.callee=i.expression);}parseExprOp(r,n,i){let s;if(mD(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){let a=this.startNodeAt(n);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(J.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,n,i)}return super.parseExprOp(r,n,i)}checkReservedWord(r,n,i,s){this.state.isAmbientContext||super.checkReservedWord(r,n,i,s);}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(rt.ImportReflectionHasImportType,r.specifiers[0].loc.start);}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return !0;if(this.isContextual(130)){let n=this.lookaheadCharCode();return r?n===123||n===42:n!==61}return !r&&this.isContextual(87)}applyImportPhase(r,n,i,s){super.applyImportPhase(r,n,i,s),n?r.exportKind=i==="type"?"type":"value":r.importKind=i==="type"||i==="typeof"?i:"value";}parseImport(r){if(this.match(133))return r.importKind="value",super.parseImport(r);let n;if(qr(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let i=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,i);n=super.parseImportSpecifiersAndAfter(r,i);}else n=super.parseImport(r);return n.importKind==="type"&&n.specifiers.length>1&&n.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(rt.TypeImportCannotSpecifyDefaultAndNamed,n),n}parseExport(r,n){if(this.match(83)){this.next();let i=r,s=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(i,!1):i.importKind="value",this.tsParseImportEqualsDeclaration(i,s,!0)}else if(this.eat(29)){let i=r;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=r;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(r,n)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,n,i=!1){let{isAmbientContext:s}=this.state,a=super.parseVarStatement(r,n,i||s);if(!s)return a;for(let{id:o,init:u}of a.declarations)u&&(n!=="const"||o.typeAnnotation?this.raise(rt.InitializerNotAllowedInAmbientContext,u):Uvr(u,this.hasPlugin("estree"))||this.raise(rt.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,u));return a}parseStatementContent(r,n){if(this.match(75)&&this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return super.parseStatementContent(r,n)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,n){return n.some(i=>CMe(i)?r.accessibility===i:!!r[i])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,n,i){let s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:rt.InvalidModifierOnTypeParameterPositions},n);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,s)&&this.raise(rt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,n)):this.parseClassMemberWithIsStatic(r,n,i,!!n.static);};n.declare?this.tsInAmbientContext(a):a();}parseClassMemberWithIsStatic(r,n,i,s){let a=this.tsTryParseIndexSignature(n);if(a){r.body.push(a),n.abstract&&this.raise(rt.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(rt.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(rt.IndexSignatureHasDeclare,n),n.override&&this.raise(rt.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(rt.NonAbstractClassHasAbstractMethod,n),n.override&&(i.hadSuperClass||this.raise(rt.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(r,n,i,s);}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(rt.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(rt.ClassMethodHasDeclare,r);}parseExpressionStatement(r,n,i){return (n.type==="Identifier"?this.tsParseExpressionStatement(r,n,i):void 0)||super.parseExpressionStatement(r,n,i)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,n,i){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(r,n,i);let s=this.tryParse(()=>super.parseConditional(r,n));return s.node?(s.error&&(this.state=s.failState),s.node):(s.error&&super.setOptionalParametersError(i,s.error),r)}parseParenItem(r,n){let i=super.parseParenItem(r,n);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(n);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let n=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(rt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=qr(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||i)&&(r.exportKind="type"),i&&(this.resetStartLocation(a,n),a.declare=!0),a):null}parseClassId(r,n,i,s){if((!n||i)&&this.isContextual(113))return;super.parseClassId(r,n,i,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a);}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let n=this.tsTryParseTypeAnnotation();n&&(r.typeAnnotation=n);}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(rt.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:n}=r;this.raise(rt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:n.type==="Identifier"&&!r.computed?n.name:`[${this.input.slice(n.start,n.end)}]`});}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(rt.PrivateElementHasAbstract,r),r.accessibility&&this.raise(rt.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(rt.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,i,s,a,o){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&a&&this.raise(rt.ConstructorHasTypeParameters,u);let{declare:l=!1,kind:c}=n;l&&(c==="get"||c==="set")&&this.raise(rt.DeclareAccessor,n,{kind:c}),u&&(n.typeParameters=u),super.pushClassMethod(r,n,i,s,a,o);}pushClassPrivateMethod(r,n,i,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(n.typeParameters=a),super.pushClassPrivateMethod(r,n,i,s);}declareClassPrivateMethodInScope(r,n){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&!hasOwnProperty.call(r.value,"body")||super.declareClassPrivateMethodInScope(r,n));}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"));}parseObjPropValue(r,n,i,s,a,o,u){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(r.typeParameters=l),super.parseObjPropValue(r,n,i,s,a,o,u)}parseFunctionParams(r,n){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.parseFunctionParams(r,n);}parseVarId(r,n){super.parseVarId(r,n),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let i=this.tsTryParseTypeAnnotation();i&&(r.id.typeAnnotation=i,this.resetEndLocation(r.id));}parseAsyncArrowFromCallExpression(r,n){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,n)}parseMaybeAssign(r,n){var i,s,a,o,u;let l,c,p;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(l=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(r,n),l),!c.error)return c.node;let{context:d}=this.state,m=d[d.length-1];(m===on.j_oTag||m===on.j_expr)&&d.pop();}if(!((i=c)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(r,n);(!l||l===this.state)&&(l=this.state.clone());let h,f=this.tryParse(d=>{var m,y;h=this.tsParseTypeParameters(this.tsParseConstModifier);let g=super.parseMaybeAssign(r,n);return (g.type!=="ArrowFunctionExpression"||(m=g.extra)!=null&&m.parenthesized)&&d(),((y=h)==null?void 0:y.params.length)!==0&&this.resetStartLocationFromNode(g,h),g.typeParameters=h,g},l);if(!f.error&&!f.aborted)return h&&this.reportReservedArrowTypeParam(h),f.node;if(!c&&(PMe(!this.hasPlugin("jsx")),p=this.tryParse(()=>super.parseMaybeAssign(r,n),l),!p.error))return p.node;if((s=c)!=null&&s.node)return this.state=c.failState,c.node;if(f.node)return this.state=f.failState,h&&this.reportReservedArrowTypeParam(h),f.node;if((a=p)!=null&&a.node)return this.state=p.failState,p.node;throw ((o=c)==null?void 0:o.error)||f.error||((u=p)==null?void 0:u.error)}reportReservedArrowTypeParam(r){var n;r.params.length===1&&!r.params[0].constraint&&!((n=r.extra)!=null&&n.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(rt.ReservedArrowTypeParam,r);}parseMaybeUnary(r,n){return !this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(i=>{let s=this.tsParseTypeOrTypePredicateAnnotation(14);return (this.canInsertSemicolon()||!this.match(19))&&i(),s});if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),r.returnType=n.node);}return super.parseArrow(r)}parseAssignableListItemTypes(r,n){if(!(n&2))return r;this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,n){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,n);case"TSParameterProperty":return !0;default:return super.isAssignable(r,n)}}toAssignable(r,n=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,n);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":n?this.expressionScope.recordArrowParameterBindingError(rt.UnexpectedTypeCastInParameter,r):this.raise(rt.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,n);break;case"AssignmentExpression":!n&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,n);}}toAssignableParenthesizedExpression(r,n){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,n);break;default:super.toAssignable(r,n);}}checkToRestConversion(r,n){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,n);}}isValidLVal(r,n,i){return Mvr({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(i!==64||!n)&&["expression",!0],TSSatisfiesExpression:(i!==64||!n)&&["expression",!0],TSTypeAssertion:(i!==64||!n)&&["expression",!0]},r)||super.isValidLVal(r,n,i)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(r);return i.typeParameters=n,i}this.unexpected(null,10);}return super.parseMaybeDecoratorArguments(r)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,n){let i=super.parseMaybeDefault(r,n);return i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(rt.TypeAnnotationAfterAssign,i.typeAnnotation),i}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r);}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt());}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableList(r,n,i){for(let s=0;s<r.length;s++){let a=r[s];(a==null?void 0:a.type)==="TSTypeCastExpression"&&(r[s]=this.typeCastToParameter(a));}super.toAssignableList(r,n,i);}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(n=>this.isAssignable(n,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let n=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());n&&(r.typeParameters=n);}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let n=super.getGetterSetterExpectedParamCount(r),s=this.getObjectOrClassMethodParams(r)[0];return s&&this.isThisParam(s)?n+1:n}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n,this.resetEndLocation(r)),r}tsInAmbientContext(r){let n=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return r()}finally{this.state.isAmbientContext=n;}}parseClass(r,n,i){let s=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,n,i)}finally{this.state.inAbstractClass=s;}}tsParseAbstractDeclaration(r,n){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(n,this.parseClass(r,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(rt.NonClassMethodPropertyHasAbstractModifer,r),this.tsParseInterfaceDeclaration(r)}else this.unexpected(null,80);}parseMethod(r,n,i,s,a,o,u){let l=super.parseMethod(r,n,i,s,a,o,u);if(l.abstract&&(this.hasPlugin("estree")?!!l.value.body:!!l.body)){let{key:p}=l;this.raise(rt.AbstractMethodHasImplementation,l,{methodName:p.type==="Identifier"&&!l.computed?p.name:`[${this.input.slice(p.start,p.end)}]`});}return l}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return !!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,n,i,s){return !n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!1,i),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,n,i,s))}parseImportSpecifier(r,n,i,s,a){return !n&&s?(this.parseTypeOnlyImportExportSpecifier(r,!0,i),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,n,i,s,i?4098:4096))}parseTypeOnlyImportExportSpecifier(r,n,i){let s=n?"imported":"local",a=n?"local":"exported",o=r[s],u,l=!1,c=!0,p=o.loc.start;if(this.isContextual(93)){let f=this.parseIdentifier();if(this.isContextual(93)){let d=this.parseIdentifier();_u(this.state.type)?(l=!0,o=f,u=n?this.parseIdentifier():this.parseModuleExportName(),c=!1):(u=d,c=!1);}else _u(this.state.type)?(c=!1,u=n?this.parseIdentifier():this.parseModuleExportName()):(l=!0,o=f);}else _u(this.state.type)&&(l=!0,n?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());l&&i&&this.raise(n?rt.TypeModifierIsUsedInTypeImports:rt.TypeModifierIsUsedInTypeExports,p),r[s]=o,r[a]=u;let h=n?"importKind":"exportKind";r[h]=l?"type":"value",c&&this.eatContextual(93)&&(r[a]=n?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=Jc(r[s])),n&&this.checkIdentifier(r[a],l?4098:4096);}};function jvr(e){if(e.type!=="MemberExpression")return !1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:WMe(e.object)}function Uvr(e,t){var r;let{type:n}=e;if((r=e.extra)!=null&&r.parenthesized)return !1;if(t){if(n==="Literal"){let{value:i}=e;if(typeof i=="string"||typeof i=="boolean")return !0}}else if(n==="StringLiteral"||n==="BooleanLiteral")return !0;return !!(YMe(e,t)||qvr(e,t)||n==="TemplateLiteral"&&e.expressions.length===0||jvr(e))}function YMe(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function qvr(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&YMe(n,t))return !0}return !1}function WMe(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:WMe(e.object)}var wMe=zc`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Vvr=e=>class extends e{parsePlaceholder(r){if(this.match(144)){let n=this.startNode();return this.next(),this.assertNoSpace(),n.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(n,r)}}finishPlaceholder(r,n){let i=r;return (!i.expectedNode||!i.type)&&(i=this.finishNode(i,"Placeholder")),i.expectedNode=n,i}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(r);}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,n,i,s){r!==void 0&&super.checkReservedWord(r,n,i,s);}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,n,i){return r==="Placeholder"||super.isValidLVal(r,n,i)}toAssignable(r,n){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,n);}chStartsBindingIdentifier(r,n){return !!(super.chStartsBindingIdentifier(r,n)||this.lookahead().type===144)}verifyBreakContinue(r,n){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,n);}parseExpressionStatement(r,n){var i;if(n.type!=="Placeholder"||(i=n.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(r,n);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(n,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let s=r;return s.name=n.name,this.finishPlaceholder(s,"Statement")}parseBlock(r,n,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,n,i)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,n,i){let s=n?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(144)||this.match(5))r.id=o;else {if(i||!n)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,s);throw this.raise(wMe.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,n,i);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,s)}parseExport(r,n){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(r,n);let s=r;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=i,s.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(s,n)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(ch(144),this.nextTokenStartSince(r+4)))return !0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,n){var i;return (i=r.specifiers)!=null&&i.length?!0:super.maybeParseExportDefaultSpecifier(r,n)}checkExport(r){let{specifiers:n}=r;n!=null&&n.length&&(r.specifiers=n.filter(i=>i.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=n;}parseImport(r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(n,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let i=this.startNodeAtNode(n);return i.local=n,r.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(wMe.UnexpectedSpace,this.state.lastTokEndLoc);}},Hvr=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,n=this.startNode();if(this.next(),qr(this.state.type)){let i=this.parseIdentifierName(),s=this.createIdentifier(n,i);if(s.type="V8IntrinsicIdentifier",this.match(10))return s}this.unexpected(r);}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}};function bi(e,t){let[r,n]=typeof t=="string"?[t,{}]:t,i=Object.keys(n),s=i.length===0;return e.some(a=>{if(typeof a=="string")return s&&a===r;{let[o,u]=a;if(o!==r)return !1;for(let l of i)if(u[l]!==n[l])return !1;return !0}})}function lh(e,t,r){let n=e.find(i=>Array.isArray(i)?i[0]===t:i===t);return n&&Array.isArray(n)&&n.length>1?n[1][r]:null}var IMe=["minimal","fsharp","hack","smart"],OMe=["^^","@@","^","%","#"],DMe=["hash","bar"];function Gvr(e){if(bi(e,"decorators")){if(bi(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=lh(e,"decorators","decoratorsBeforeExport");if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=lh(e,"decorators","allowCallParenthesized");if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(bi(e,"flow")&&bi(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(bi(e,"placeholders")&&bi(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(bi(e,"pipelineOperator")){let t=lh(e,"pipelineOperator","proposal");if(!IMe.includes(t)){let n=IMe.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${n}.`)}let r=bi(e,["recordAndTuple",{syntaxType:"hash"}]);if(t==="hack"){if(bi(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(bi(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let n=lh(e,"pipelineOperator","topicToken");if(!OMe.includes(n)){let i=OMe.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${i}.`)}if(n==="#"&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(t==="smart"&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(bi(e,"moduleAttributes")){if(bi(e,"importAssertions")||bi(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(lh(e,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(bi(e,"importAssertions")&&bi(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(bi(e,"recordAndTuple")&&lh(e,"recordAndTuple","syntaxType")!=null&&!DMe.includes(lh(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+DMe.map(t=>`'${t}'`).join(", "));if(bi(e,"asyncDoExpressions")&&!bi(e,"doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(bi(e,"optionalChainingAssign")&&lh(e,"optionalChainingAssign","version")!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var XMe={estree:$br,jsx:Nvr,flow:Ovr,typescript:Bvr,v8intrinsic:Hvr,placeholders:Vvr},$vr=Object.keys(XMe),c7={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function Kvr(e){if(e==null)return Object.assign({},c7);if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let n of Object.keys(c7)){var r;t[n]=(r=e[n])!=null?r:c7[n];}return t}var D7=class extends O7{checkProto(t,r,n,i){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let s=t.key;if((s.type==="Identifier"?s.name:s.value)==="__proto__"){if(r){this.raise(J.RecordNoProto,s);return}n.used&&(i?i.doubleProtoLoc===null&&(i.doubleProtoLoc=s.loc.start):this.raise(J.DuplicateProto,s)),n.used=!0;}}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&t.start===r}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){let i=this.startNodeAt(r);for(i.expressions=[n];this.eat(12);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t,r){var n;t.optionalParametersLoc=(n=r==null?void 0:r.loc)!=null?n:this.state.startLoc;}parseMaybeAssign(t,r){let n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return r&&(o=r.call(this,o,n)),o}let i;t?i=!1:(t=new mT,i=!0);let{type:s}=this.state;(s===10||qr(s))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(t);if(r&&(a=r.call(this,a,n)),zbr(this.state.type)){let o=this.startNodeAt(n),u=this.state.value;if(o.operator=u,this.match(29)){this.toAssignable(a,!0),o.left=a;let l=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=l&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=l&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null);}else o.left=a;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(a,{in:this.finishNode(o,"AssignmentExpression")}),o}else i&&this.checkExpressionErrors(t,!0);return a}parseMaybeConditional(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,n)?i:this.parseConditional(i,r,t)}parseConditional(t,r,n){if(this.eat(17)){let i=this.startNodeAt(r);return i.test=t,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(i,n)?i:this.parseExprOp(i,r,-1)}parseExprOp(t,r,n){if(this.isPrivateName(t)){let s=this.getPrivateNameSV(t);(n>=mD(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(J.PrivateInExpectedIn,t,{identifierName:s}),this.classScope.usePrivateName(s,t.loc.start);}let i=this.state.type;if(Qbr(i)&&(this.prodParam.hasIn||!this.match(58))){let s=mD(i);if(s>n){if(i===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r);}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=i===41||i===42,u=i===40;if(u&&(s=mD(42)),this.next(),i===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(J.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(i,s);let l=this.finishNode(a,o||u?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(u&&(c===41||c===42)||o&&c===40)throw this.raise(J.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,r,n)}}return t}parseExprOpRightExpr(t,r){let n=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(J.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),n)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,nvr(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,n=this.parseMaybeAssign();return jbr.has(n.type)&&!((t=n.extra)!=null&&t.parenthesized)&&this.raise(J.PipeUnparenthesizedBody,r,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(J.PipeTopicUnused,r),n}checkExponentialAfterUnary(t){this.match(57)&&this.raise(J.UnexpectedTokenUnaryExponentiation,t.argument);}parseMaybeUnary(t,r){let n=this.state.startLoc,i=this.isContextual(96);if(i&&this.isAwaitAllowed()){this.next();let u=this.parseAwait(n);return r||this.checkExponentialAfterUnary(u),u}let s=this.match(34),a=this.startNode();if(evr(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let u=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&u){let l=a.argument;l.type==="Identifier"?this.raise(J.StrictDelete,a):this.hasPropertyAsPrivateName(l)&&this.raise(J.DeletePrivateField,a);}if(!s)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,s,t);if(i){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?h7(u):h7(u)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(J.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(t,r,n){if(r){let a=t;return this.checkLVal(a.argument,{in:this.finishNode(a,"UpdateExpression")}),t}let i=this.state.startLoc,s=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return s;for(;Zbr(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(i);a.operator=this.state.value,a.prefix=!1,a.argument=s,this.next(),this.checkLVal(s,{in:s=this.finishNode(a,"UpdateExpression")});}return s}parseExprSubscripts(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,n)?i:this.parseSubscripts(i,r)}parseSubscripts(t,r,n){let i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,n,i),i.maybeAsyncArrow=!1;while(!i.stop);return t}parseSubscript(t,r,n,i){let{type:s}=this.state;if(!n&&s===15)return this.parseBind(t,r,n,i);if(TD(s))return this.parseTaggedTemplateExpression(t,r,i);let a=!1;if(s===18){if(n&&(this.raise(J.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return i.stop=!0,t;i.optionalChainMember=a=!0,this.next();}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,i,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,i,o,a):(i.stop=!0,t)}}parseMember(t,r,n,i,s){let a=this.startNodeAt(r);return a.object=t,a.computed=i,i?(a.property=this.parseExpression(),this.expect(3)):this.match(138)?(t.type==="Super"&&this.raise(J.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=s,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,n,i){let s=this.startNodeAt(r);return s.object=t,this.next(),s.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,n)}parseCoverCallAndAsyncArrowHead(t,r,n,i){let s=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:u,optionalChainMember:l}=n;u&&(this.expressionScope.enter(vvr()),a=new mT),l&&(o.optional=i),i?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",o,a);let c=this.finishCallExpression(o,l);return u&&this.shouldParseAsyncArrow()&&!i?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),c)):(u&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=s,c}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r);}parseTaggedTemplateExpression(t,r,n){let i=this.startNodeAt(r);return i.tag=t,i.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(J.OptionalChainingNoTemplate,r),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes");}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(J.ImportCallArity,t,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise(J.ImportCallSpreadArgument,n);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,n,i,s){let a=[],o=!0,u=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){r&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(J.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),i&&this.addTrailingCommaExtraToNode(i),this.next();break}a.push(this.parseExprListItem(!1,s,n));}return this.state.inFSharpPipelineDirectBody=u,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var n;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(n=r.extra)==null?void 0:n.trailingCommaLoc),r.innerComments&&E_(t,r.innerComments),r.callee.trailingComments&&E_(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,n=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(r):this.match(10)?this.options.createImportExpressions?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(J.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let s=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(s)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let s=r.callee=this.parseNoCallExpr();if(s.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(J.UnsupportedBind,s)}case 138:return this.raise(J.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);this.unexpected();break}case 47:{let s=this.input.codePointAt(this.nextTokenStart());Xc(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(qr(i)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let s=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:u}=this.state;if(u===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(qr(u))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(u===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return s&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected();}}parseTopicReferenceThenEqualsSign(t,r){let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=na(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected();}parseTopicReference(t){let r=this.startNode(),n=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(r,n,t,i)}finishTopicReference(t,r,n,i){if(this.testTopicReferenceConfiguration(n,r,i)){let s=n==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(n==="smart"?J.PrimaryTopicNotAllowed:J.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,s)}else throw this.raise(J.PipeTopicUnconfiguredToken,r,{token:ch(i)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:ch(n)}]);case"smart":return n===27;default:throw this.raise(J.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(gD(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(J.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let n=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(J.SuperNotAllowed,t):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(J.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(J.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(na(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(r,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,n){t.meta=r;let i=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||i)&&this.raise(J.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let r=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(J.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let n=this.isContextual(105);if(n||this.unexpected(),this.expectPlugin(n?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(J.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=n?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,r,"meta")}parseLiteralAtNode(t,r,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=t,this.next(),this.finishNode(n,r)}parseLiteral(t,r){let n=this.startNode();return this.parseLiteralAtNode(t,r,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.parseLiteral(t.value,"RegExpLiteral");return r.pattern=t.pattern,r.flags=t.flags,r}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,n;this.next(),this.expressionScope.enter(bvr());let i=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],u=new mT,l=!0,c,p;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,u.optionalParametersLoc===null?null:u.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let d=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),d)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem));}let h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=s;let f=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),p&&this.unexpected(p),c&&this.unexpected(c),this.checkExpressionErrors(u,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,h)):n=o[0],this.wrapParenthesis(r,n))}wrapParenthesis(t,r){if(!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let n=this.startNodeAt(t);return n.expression=r,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return !this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let n=this.parseMetaProperty(t,r,"target");return !this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(J.UnexpectedNewTarget,n),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r;}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),n=this.parseNoCallExpr();t.callee=n,r&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise(J.ImportCallNotNewExpression,n);}parseTemplateElement(t){let{start:r,startLoc:n,end:i,value:s}=this.state,a=r+1,o=this.startNodeAt(na(n,1));s===null&&(t||this.raise(J.InvalidEscapeSequenceTemplate,na(this.state.firstInvalidTemplateEscapePos,1)));let u=this.match(24),l=u?-1:-2,c=i+l;o.value={raw:this.input.slice(a,c).replace(/\r\n?/g,`
`),cooked:s===null?null:s.slice(1,l)},o.tail=u,this.next();let p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,na(this.state.lastTokEndLoc,l)),p}parseTemplate(t){let r=this.startNode(),n=this.parseTemplateElement(t),i=[n],s=[];for(;!n.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(n=this.parseTemplateElement(t));return r.expressions=s,r.quasis=i,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,i){n&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),o=!0,u=this.startNode();for(u.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(u);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,n,a,i)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(J.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),u.properties.push(c);}this.next(),this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";return r?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(u,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1);}maybeAsyncOrAccessorProp(t){return !t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(J.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let n=this.startNode(),i=!1,s=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let u=this.state.containsEsc;if(this.parsePropertyName(n,t),!o&&!u&&this.maybeAsyncOrAccessorProp(n)){let{key:l}=n,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(n)),(c==="get"||c==="set")&&(s=!0,this.resetPreviousNodeTrailingComments(l),n.kind=c,this.match(55)&&(o=!0,this.raise(J.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(n));}return this.parseObjPropValue(n,a,o,i,!1,s,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let n=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==n&&this.raise(t.kind==="get"?J.BadGetterArity:J.BadSetterArity,t),t.kind==="set"&&((r=i[i.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(J.BadSetterRestParameter,t);}parseObjectMethod(t,r,n,i,s){if(s){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||r||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,i){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,Jc(t.key));else if(this.match(29)){let s=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=s):this.raise(J.InvalidCoverInitializedName,s),t.value=this.parseMaybeDefault(r,Jc(t.key));}else t.value=Jc(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,r,n,i,s,a,o){let u=this.parseObjectMethod(t,n,i,s,a)||this.parseObjectProperty(t,r,s,o);return u||this.unexpected(),u}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else {let{type:n,value:i}=this.state,s;if(_u(n))s=this.parseIdentifier(!0);else switch(n){case 134:s=this.parseNumericLiteral(i);break;case 133:s=this.parseStringLiteral(i);break;case 135:s=this.parseBigIntLiteral(i);break;case 136:s=this.parseDecimalLiteral(i);break;case 138:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(J.UnexpectedPrivateField,a),s=this.parsePrivateName();break}default:this.unexpected();}t.key=s,n!==138&&(t.computed=!1);}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r;}parseMethod(t,r,n,i,s,a,o=!1){this.initFunction(t,n),t.generator=r,this.scope.enter(18|(o?64:0)|(s?32:0)),this.prodParam.enter(gD(n,t.generator)),this.parseFunctionParams(t,i);let u=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),u}parseArrayLike(t,r,n,i){n&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(t,!n,i,a),this.state.inFSharpPipelineDirectBody=s,this.finishNode(a,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,n,i){this.scope.enter(6);let s=gD(n,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(t,n);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,n){this.toAssignableList(r,n,!1),t.params=r;}parseFunctionBodyAndFinish(t,r,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,r)}parseFunctionBody(t,r,n=!1){let i=r&&!this.match(5);if(this.expressionScope.enter($Me()),i)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else {let s=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let u=!this.isSimpleParamList(t.params);o&&u&&this.raise(J.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let l=!s&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!n&&!u,r,l),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,l);}),this.prodParam.exit(),this.state.labels=a;}this.expressionScope.exit();}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,n=t.length;r<n;r++)if(!this.isSimpleParameter(t[r]))return !1;return !0}checkParams(t,r,n,i=!0){let s=!r&&new Set,a={type:"FormalParameters"};for(let o of t.params)this.checkLVal(o,{in:a,binding:5,checkClashes:s,strictModeChanged:i});}parseExprList(t,r,n,i){let s=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}s.push(this.parseExprListItem(r,n));}return s}parseExprListItem(t,r,n){let i;if(this.match(12))t||this.raise(J.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(21)){let s=this.state.startLoc;i=this.parseParenItem(this.parseSpread(r),s);}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(J.UnexpectedArgumentPlaceholder,this.state.startLoc);let s=this.startNode();this.next(),i=this.finishNode(s,"ArgumentPlaceholder");}else i=this.parseMaybeAssignAllowIn(r,this.parseParenItem);return i}parseIdentifier(t){let r=this.startNode(),n=this.parseIdentifierName(t);return this.createIdentifier(r,n)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}parseIdentifierName(t){let r,{startLoc:n,type:i}=this.state;_u(i)?r=this.state.value:this.unexpected();let s=Wbr(i);return t?s&&this.replaceToken(132):this.checkReservedWord(r,n,s,!1),this.next(),r}checkReservedWord(t,r,n,i){if(t.length>10||!hvr(t))return;if(n&&cvr(t)){this.raise(J.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?i?UMe:BMe:FMe)(t,this.inModule)){this.raise(J.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(J.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(J.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(J.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r);}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(J.ArgumentsInClass,r);return}}isAwaitAllowed(){return !!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(J.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(J.ObsoleteAwaitStar,r),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return !0;let{type:t}=this.state;return t===53||t===10||t===0||TD(t)||t===102&&!this.state.containsEsc||t===137||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(J.YieldInParameter,t),this.next();let r=!1,n=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:n=this.parseMaybeAssign();}return t.delegate=r,t.argument=n,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(J.PipelineHeadSequenceExpression,r);}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let n=this.startNodeAt(r);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}else {let n=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return !t.computed&&this.isSimpleReference(t.object);case"Identifier":return !0;default:return !1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(J.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(J.PipelineTopicUnused,t);}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r;}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r;}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r;}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit();}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit();}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0;}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=n,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module");}finally{n();}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},p7={kind:1},Yvr={kind:2},Wvr=/[\uD800-\uDFFF]/u,f7=/in(?:stanceof)?/y;function Xvr(e,t){for(let r=0;r<e.length;r++){let n=e[r],{type:i}=n;if(typeof i=="number"){{if(i===138){let{loc:s,start:a,value:o,end:u}=n,l=a+1,c=na(s.start,1);e.splice(r,1,new Al({type:Yc(27),value:"#",start:a,end:l,startLoc:s.start,endLoc:c}),new Al({type:Yc(132),value:o,start:l,end:u,startLoc:c,endLoc:s.end})),r++;continue}if(TD(i)){let{loc:s,start:a,value:o,end:u}=n,l=a+1,c=na(s.start,1),p;t.charCodeAt(a)===96?p=new Al({type:Yc(22),value:"`",start:a,end:l,startLoc:s.start,endLoc:c}):p=new Al({type:Yc(8),value:"}",start:a,end:l,startLoc:s.start,endLoc:c});let h,f,d,m;i===24?(f=u-1,d=na(s.end,-1),h=o===null?null:o.slice(1,-1),m=new Al({type:Yc(22),value:"`",start:f,end:u,startLoc:d,endLoc:s.end})):(f=u-2,d=na(s.end,-2),h=o===null?null:o.slice(1,-2),m=new Al({type:Yc(23),value:"${",start:f,end:u,startLoc:d,endLoc:s.end})),e.splice(r,1,p,new Al({type:Yc(20),value:h,start:l,end:f,startLoc:c,endLoc:d}),m),r+=2;continue}}n.type=Yc(i);}}return e}var N7=class extends D7{parseTopLevel(t,r){return t.program=this.parseProgram(r),t.comments=this.comments,this.options.tokens&&(t.tokens=Xvr(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t,r=139,n=this.options.sourceType){if(t.sourceType=n,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[s,a]of Array.from(this.scope.undefinedExports))this.raise(J.ModuleExportUndefined,a,{localName:s});let i;return r===139?i=this.finishNode(t,"Program"):i=this.finishNodeAt(t,"Program",na(this.state.startLoc,-1)),i}stmtToDirective(t){let r=t;r.type="Directive",r.value=r.expression,delete r.expression;let n=r.value,i=n.value,s=this.input.slice(n.start,n.end),a=n.value=s.slice(1,-1);return this.addExtra(n,"raw",s),this.addExtra(n,"rawValue",a),this.addExtra(n,"expressionValue",i),n.type="DirectiveLiteral",r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,r){if(Xc(t)){if(f7.lastIndex=r,f7.test(this.input)){let n=this.codePointAtPos(f7.lastIndex);if(!dT(n)&&n!==92)return !1}return !0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifier(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}startsUsingForOf(){let{type:t,containsEsc:r}=this.lookahead();if(t===102&&!r)return !1;if(qr(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return this.expectPlugin("explicitResourceManagement"),!0}return !1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let n=this.state.type,i=this.startNode(),s=!!(t&2),a=!!(t&4),o=t&1;switch(n){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?J.StrictFunction:this.options.annexB?J.SloppyFunctionAnnexB:J.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!s&&a);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?s||this.raise(J.UnexpectedLexicalDeclaration,i):this.raise(J.AwaitUsingNotInAsyncContext,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(J.UnexpectedUsingDeclaration,this.state.startLoc):s||this.raise(J.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),p=this.codePointAtPos(c);if(p!==91&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(p,c)&&p!==123))break}case 75:s||this.raise(J.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let c=this.state.value;return this.parseVarStatement(i,c)}case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(J.UnexpectedImportExport,this.state.startLoc),this.next();let c;return n===83?(c=this.parseImport(i),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(i,r),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return s||this.raise(J.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!s&&a)}let u=this.state.value,l=this.parseExpression();return qr(n)&&l.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(i,u,l,t):this.parseExpressionStatement(i,l,r)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(J.ImportOutsideModule,t);}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,n){return t&&(r.decorators&&r.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(J.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),n&&this.resetStartLocationFromNode(n,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(J.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(J.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,n;if(this.match(10)){let i=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(i,n);let s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise(J.DecoratorArgumentsOutsideParentheses,s);}else {for(n=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(r);i.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),i.computed=!1,n=this.finishNode(i,"MemberExpression");}t.expression=this.parseMaybeDecoratorArguments(n);}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let r=this.startNodeAtNode(t);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let n;for(n=0;n<this.state.labels.length;++n){let i=this.state.labels[n];if((t.label==null||i.name===t.label.name)&&(i.kind!=null&&(r||i.kind===1)||t.label&&r))break}if(n===this.state.labels.length){let i=r?"BreakStatement":"ContinueStatement";this.raise(J.IllegalBreakContinue,t,{type:i});}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(p7),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(p7);let r=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(r=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let n=this.isContextual(100);{let u=this.isContextual(96)&&this.startsAwaitUsing(),l=u||this.isContextual(107)&&this.startsUsingForOf(),c=n&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||c){let p=this.startNode(),h;u?(h="await using",this.isAwaitAllowed()||this.raise(J.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):h=this.state.value,this.next(),this.parseVar(p,!0,h);let f=this.finishNode(p,"VariableDeclaration"),d=this.match(58);return d&&l&&this.raise(J.ForInUsing,f),(d||this.isContextual(102))&&f.declarations.length===1?this.parseForIn(t,f,r):(r!==null&&this.unexpected(r),this.parseFor(t,f))}}let i=this.isContextual(95),s=new mT,a=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(n&&this.raise(J.ForOfLet,a),r===null&&i&&a.type==="Identifier"&&this.raise(J.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(a,!0);let u=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{in:{type:u}}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(s,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return !this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(J.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(Yvr),this.scope.enter(0);let n;for(let i;!this.match(8);)if(this.match(61)||this.match(65)){let s=this.match(61);n&&this.finishNode(n,"SwitchCase"),r.push(n=this.startNode()),n.consequent=[],this.next(),s?n.test=this.parseExpression():(i&&this.raise(J.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),i=!0,n.test=null),this.expect(14);}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(J.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:9}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause");}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(J.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,n=!1){return this.next(),this.parseVar(t,!1,r,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(p7),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(J.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,n,i){for(let a of this.state.labels)a.name===r&&this.raise(J.LabelRedeclaration,n,{labelName:r});let s=Jbr(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=s;else break}return this.state.labels.push({name:r,kind:s,statementStart:this.state.start}),t.body=i&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,n){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,n){let i=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(i,t,!1,8,n),r&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,n,i,s){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,n,i,s);}parseBlockOrModuleBlockBody(t,r,n,i,s){let a=this.state.strict,o=!1,u=!1;for(;!this.match(i);){let l=n?this.parseModuleItem():this.parseStatementListItem();if(r&&!u){if(this.isValidDirective(l)){let c=this.stmtToDirective(l);r.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}u=!0,this.state.strictErrors.clear();}t.push(l);}s==null||s.call(this,o),a||this.setStrict(!1),this.next();}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,n){let i=this.match(58);return this.next(),i?n!==null&&this.unexpected(n):t.await=n!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!i||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(J.ForInOfLoopInitializer,r,{type:i?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(J.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")}parseVar(t,r,n,i=!1){let s=t.declarations=[];for(t.kind=n;;){let a=this.startNode();if(this.parseVarId(a,n),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!i&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(J.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(J.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),s.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let n=this.parseBindingAtom();this.checkLVal(n,{in:{type:"VariableDeclarator"},binding:r==="var"?5:8201}),t.id=n;}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let n=r&2,i=!!(r&1),s=i&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(n&&this.raise(J.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),i&&(t.id=this.parseFunctionId(s));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(gD(a,t.generator)),i||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,i?"FunctionDeclaration":"FunctionExpression");}),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||qr(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(Evr()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit();}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start);}parseClass(t,r,n){this.next();let i=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,i),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return !t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:t},i=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(i.length>0)throw this.raise(J.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){i.push(this.parseDecorator());continue}let a=this.startNode();i.length&&(a.decorators=i,this.resetStartLocationFromNode(a,i[0]),i=[]),this.parseClassMember(s,a,n),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(J.DecoratorConstructor,a);}}),this.state.strict=r,this.next(),i.length)throw this.raise(J.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(t,r){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let i=r;return i.kind="method",i.computed=!1,i.key=n,i.static=!1,this.pushClassMethod(t,i,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let i=r;return i.computed=!1,i.key=n,i.static=!1,t.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,r,n){let i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,n,i);}parseClassMemberWithIsStatic(t,r,n,i){let s=r,a=r,o=r,u=r,l=r,c=s,p=s;if(r.static=i,this.parsePropertyNamePrefixOperator(r),this.eat(55)){c.kind="method";let g=this.match(138);if(this.parseClassElementName(c),g){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(s)&&this.raise(J.ConstructorIsGenerator,s.key),this.pushClassMethod(t,s,!0,!1,!1,!1);return}let h=!this.state.containsEsc&&qr(this.state.type),f=this.parseClassElementName(r),d=h?f.name:null,m=this.isPrivateName(f),y=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",m){this.pushClassPrivateMethod(t,a,!1,!1);return}let g=this.isNonstaticConstructor(s),v=!1;g&&(s.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(J.DuplicateConstructor,f),g&&this.hasPlugin("typescript")&&r.override&&this.raise(J.OverrideOnConstructor,f),n.hadConstructor=!0,v=n.hadSuperClass),this.pushClassMethod(t,s,!1,!1,g,v);}else if(this.isClassProperty())m?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o);else if(d==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let g=this.eat(55);p.optional&&this.unexpected(y),c.kind="method";let v=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),v?this.pushClassPrivateMethod(t,a,g,!0):(this.isNonstaticConstructor(s)&&this.raise(J.ConstructorIsAsync,s.key),this.pushClassMethod(t,s,g,!0,!1,!1));}else if((d==="get"||d==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),c.kind=d;let g=this.match(138);this.parseClassElementName(s),g?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(J.ConstructorIsAccessor,s.key),this.pushClassMethod(t,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s);}else if(d==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);let g=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(t,l,g);}else this.isLineTerminator()?m?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,o):this.unexpected();}parseClassElementName(t){let{type:r,value:n}=this.state;if((r===132||r===133)&&t.static&&n==="prototype"&&this.raise(J.StaticPrototype,this.state.startLoc),r===138){n==="constructor"&&this.raise(J.ConstructorClassPrivateField,this.state.startLoc);let i=this.parsePrivateName();return t.key=i,i}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var n;this.scope.enter(208);let i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let s=r.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(r,"StaticBlock")),(n=r.decorators)!=null&&n.length&&this.raise(J.DecoratorStaticBlock,r);}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(J.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r));}pushClassPrivateProperty(t,r){let n=this.parseClassPrivateProperty(r);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start);}pushClassAccessorProperty(t,r,n){!n&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(J.ConstructorClassField,r.key);let i=this.parseClassAccessorProperty(r);t.body.push(i),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start);}pushClassMethod(t,r,n,i,s,a){t.body.push(this.parseMethod(r,n,i,s,a,"ClassMethod",!0));}pushClassPrivateMethod(t,r,n,i){let s=this.parseMethod(r,n,i,!1,!1,"ClassPrivateMethod",!0);t.body.push(s);let a=s.kind==="get"?s.static?6:2:s.kind==="set"?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,a);}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start);}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter($Me()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit();}parseClassId(t,r,n,i=8331){if(qr(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,i);else if(n||!r)t.id=null;else throw this.raise(J.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null;}parseExport(t,r){let n=this.parseMaybeImportPhase(t,!0),i=this.maybeParseExportDefaultSpecifier(t,n),s=!i||this.eat(12),a=s&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),u=s&&(!o||this.eat(12)),l=i||a;if(a&&!o){if(i&&this.unexpected(),r)throw this.raise(J.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);i&&s&&!a&&!c&&this.unexpected(null,5),o&&u&&this.unexpected(null,98);let p;if(l||c){if(p=!1,r)throw this.raise(J.UnsupportedDecoratorExport,t);this.parseExportFrom(t,l);}else p=this.maybeParseExportDeclaration(t);if(l||c||p){var h;let f=t;if(this.checkExport(f,!0,!1,!!f.source),((h=f.declaration)==null?void 0:h.type)==="ClassDeclaration")this.maybeTakeDecorators(r,f.declaration,f);else if(r)throw this.raise(J.UnsupportedDecoratorExport,t);return this.finishNode(f,"ExportNamedDeclaration")}if(this.eat(65)){let f=t,d=this.parseExportDefaultExpression();if(f.declaration=d,d.type==="ClassDeclaration")this.maybeTakeDecorators(r,d,f);else if(r)throw this.raise(J.UnsupportedDecoratorExport,t);return this.checkExport(f,!0,!0),this.finishNode(f,"ExportDefaultDeclaration")}this.unexpected(null,5);}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r==null?void 0:r.loc.start);let n=r||this.parseIdentifier(!0),i=this.startNodeAtNode(n);return i.exported=n,t.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return !1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r;((r=t).specifiers)!=null||(r.specifiers=[]);let i=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return !1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let n=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(n)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return !1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return !1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(J.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(J.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(qr(t)){if(t===95&&!this.state.containsEsc||t===100)return !1;if((t===130||t===129)&&!this.state.containsEsc){let{type:i}=this.lookahead();if(qr(i)&&i!==98||i===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return !1;let r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||qr(this.state.type)&&n)return !0;if(this.match(65)&&n){let i=this.input.charCodeAt(this.nextTokenStartSince(r+4));return i===34||i===39}return !1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon();}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(J.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(J.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(J.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,n,i){if(r){var s;if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(J.ExportDefaultFromAsIdentifier,o);}}else if((s=t.specifiers)!=null&&s.length)for(let o of t.specifiers){let{exported:u}=o,l=u.type==="Identifier"?u.name:u.value;if(this.checkDuplicateExports(o,l),!i&&o.local){let{local:c}=o;c.type!=="Identifier"?this.raise(J.ExportBindingIsString,o,{localName:c.value,exportName:l}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c));}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:u}=o;if(!u)throw new Error("Assertion failure");this.checkDuplicateExports(t,u.name);}else if(o.type==="VariableDeclaration")for(let u of o.declarations)this.checkDeclaration(u.id);}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left);}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(J.DuplicateDefaultExport,t):this.raise(J.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r);}parseExportSpecifiers(t){let r=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let i=this.isContextual(130),s=this.match(133),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,s,t,i));}return r}parseExportSpecifier(t,r,n,i){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=xvr(t.local):t.exported||(t.exported=Jc(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let t=this.parseStringLiteral(this.state.value),r=t.value.match(Wvr);return r&&this.raise(J.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:n})=>n.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,n=r.length===1?r[0].type:null;if(t.phase==="source")n!=="ImportDefaultSpecifier"&&this.raise(J.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")n!=="ImportNamespaceSpecifier"&&this.raise(J.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var i;n!=="ImportDefaultSpecifier"&&this.raise(J.ImportReflectionNotBinding,r[0].loc.start),((i=t.assertions)==null?void 0:i.length)>0&&this.raise(J.ImportReflectionHasAssertion,r[0].loc.start);}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let n=r.find(i=>{let s;if(i.type==="ExportSpecifier"?s=i.local:i.type==="ImportSpecifier"&&(s=i.imported),s!==void 0)return s.type==="Identifier"?s.name!=="default":s.value!=="default"});n!==void 0&&this.raise(J.ImportJSONBindingNotDefault,n.loc.start);}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,n,i){r||(n==="module"?(this.expectPlugin("importReflection",i),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",i),t.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",i),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null));}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let n=this.parseIdentifier(!0),{type:i}=this.state;return (_u(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(t,r,n.name,n.loc.start),null):(this.applyImportPhase(t,r,null),n)}isPrecedingIdImportPhase(t){let{type:r}=this.state;return qr(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let i=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),s=i&&this.maybeParseStarImportSpecifier(t);return i&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return (t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,n){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,n));}finishImportSpecifier(t,r,n=8201){return this.checkLVal(t.local,{in:{type:r},binding:n}),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let n=this.startNode(),i=this.state.value;if(r.has(i)&&this.raise(J.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),r.add(i),this.match(133)?n.key=this.parseStringLiteral(i):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(J.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"));}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(J.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(J.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(J.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"));}while(this.eat(12));return t}maybeParseImportAttributes(t){let r,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?r=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),r=this.parseImportAttributes()),n=!0;}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(J.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),r=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))r=[];else if(this.hasPlugin("moduleAttributes"))r=[];else return;!n&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r;}maybeParseDefaultImportSpecifier(t,r){if(r){let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if(_u(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return !1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return !1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else {if(this.eat(14))throw this.raise(J.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),i=this.match(133),s=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,i,t.importKind==="type"||t.importKind==="typeof",s,void 0);t.specifiers.push(a);}}parseImportSpecifier(t,r,n,i,s){if(this.eatContextual(93))t.local=this.parseIdentifier();else {let{imported:a}=t;if(r)throw this.raise(J.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=Jc(a));}return this.finishImportSpecifier(t,"ImportSpecifier",s)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},bD=class extends N7{constructor(t,r){t=Kvr(t),super(t,r),this.options=t,this.initializeScopes(),this.plugins=zvr(this.options.plugins),this.filename=t.sourceFilename;}getScopeHandler(){return T_}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,r),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}};function zvr(e){let t=new Map;for(let r of e){let[n,i]=Array.isArray(r)?r:[r,{}];t.has(n)||t.set(n,i||{});}return t}function Jvr(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let n=m_(t,e),i=n.parse();if(n.sawUnambiguousESM)return i;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",m_(t,e).parse()}catch{}else i.program.sourceType="script";return i}catch(n){try{return t.sourceType="script",m_(t,e).parse()}catch{}throw n}}else return m_(t,e).parse()}function Qvr(e,t){let r=m_(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function Zvr(e){let t={};for(let r of Object.keys(e))t[r]=Yc(e[r]);return t}var e_r=Zvr(Ybr);function m_(e,t){let r=bD;return e!=null&&e.plugins&&(Gvr(e.plugins),r=t_r(e.plugins)),new r(e,t)}var NMe={};function t_r(e){let t=$vr.filter(i=>bi(e,i)),r=t.join("/"),n=NMe[r];if(!n){n=bD;for(let i of t)n=XMe[i](n);NMe[r]=n;}return n}b_.parse=Jvr;b_.parseExpression=Qvr;b_.tokTypes=e_r;});var CLe=chunkTKGT252T_js.c((Lmn,PLe)=>{var r_r=Object.create,_D=Object.defineProperty,n_r=Object.getOwnPropertyDescriptor,i_r=Object.getOwnPropertyNames,s_r=Object.getPrototypeOf,a_r=Object.prototype.hasOwnProperty,o_r=(e,t)=>{for(var r in t)_D(e,r,{get:t[r],enumerable:!0});},iLe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of i_r(t))!a_r.call(e,i)&&i!==r&&_D(e,i,{get:()=>t[i],enumerable:!(n=n_r(t,i))||n.enumerable});return e},Oi=(e,t,r)=>(r=e!=null?r_r(s_r(e)):{},iLe(t||!e||!e.__esModule?_D(r,"default",{value:e,enumerable:!0}):r,e)),u_r=e=>iLe(_D({},"__esModule",{value:!0}),e),sLe={};o_r(sLe,{ConfigFile:()=>gLe,CsfFile:()=>cLe,NoMetaError:()=>K7,babelParse:()=>w_,babelParseExpression:()=>h_r,babelPrint:()=>f_r,enrichCsf:()=>I_r,enrichCsfMeta:()=>xLe,enrichCsfStory:()=>vLe,extractDescription:()=>J7,extractSource:()=>ALe,formatConfig:()=>TLe,formatCsf:()=>y_r,getStorySortParameter:()=>C_r,loadConfig:()=>SLe,loadCsf:()=>pLe,parserOptions:()=>z7,printConfig:()=>ELe,printCsf:()=>fLe,readConfig:()=>b_r,readCsf:()=>g_r,writeConfig:()=>v_r,writeCsf:()=>S_r});PLe.exports=u_r(sLe);var aLe=Oi(Dj()),vD=(Pw(),chunkTKGT252T_js.f(Aw)),$e=Oi(gi()),l_r=Oi(Jb()),oLe=Oi(HI()),c_r=Oi(am()),v_=yMe(),uLe=Oi(zMe()),lLe=Oi(HI());function p_r(e,t){let r=/^\s*\/\/\s*@flow/.test(e)?["flow"]:["typescript"],n={...t,plugins:[...t.plugins??[],...r]};return uLe.parse(e,n)}var z7={sourceType:"module",plugins:["jsx","decorators-legacy","classProperties"],tokens:!0},w_=e=>lLe.parse(e,{parser:{parse(t){return p_r(t,z7)}}}),f_r=e=>lLe.print(e,{quote:"single",trailingComma:!0,tabWidth:2,wrapColumn:80,arrowParensAlways:!0}).code,h_r=e=>uLe.parseExpression(e,z7),__=Oi(gi()),Sm=(e,t)=>{let r=null,n=null;return t.body.find(i=>(__.isVariableDeclaration(i)?n=i.declarations:__.isExportNamedDeclaration(i)&&__.isVariableDeclaration(i.declaration)&&(n=i.declaration.declarations),n&&n.find(s=>__.isVariableDeclarator(s)&&__.isIdentifier(s.id)&&s.id.name===e?(r=s.init,!0):!1))),r},JMe=console;function d_r(e){if($e.isArrayExpression(e))return e.elements.map(t=>{if($e.isStringLiteral(t))return t.value;throw new Error(`Expected string literal: ${t}`)});if($e.isStringLiteral(e))return new RegExp(e.value);if($e.isRegExpLiteral(e))return new RegExp(e.pattern,e.flags);throw new Error(`Unknown include/exclude: ${e}`)}function QMe(e){if(!$e.isArrayExpression(e))throw new Error("CSF: Expected tags array");return e.elements.map(t=>{if($e.isStringLiteral(t))return t.value;throw new Error("CSF: Expected tag to be string literal")})}var $7=(e,t)=>{var i;let{line:r,column:n}=((i=e.loc)==null?void 0:i.start)||{};return `${t||""} (line ${r}, col ${n})`.trim()},ZMe=(e,t,r)=>{let n=e;if($e.isCallExpression(e)){let{callee:i,arguments:s}=e;if($e.isProgram(t)&&$e.isMemberExpression(i)&&$e.isIdentifier(i.object)&&$e.isIdentifier(i.property)&&i.property.name==="bind"&&(s.length===0||s.length===1&&$e.isObjectExpression(s[0])&&s[0].properties.length===0)){let a=i.object.name,o=Sm(a,t);o&&(r._templates[a]=o,n=o);}}return $e.isArrowFunctionExpression(n)||$e.isFunctionDeclaration(n)?n.params.length>0:!1},m_r=e=>{if($e.isArrayExpression(e))return e.elements.map(t=>{if($e.isStringLiteral(t))return t.value;throw new Error(`Expected string literal named export: ${t}`)});throw new Error(`Expected array of string literals: ${e}`)},eLe=(e,t)=>t.reduce((r,n)=>{let i=e[n];return i&&(r[n]=i),r},{}),K7=class extends Error{constructor(e,t,r){super(vD.dedent`
CSF: ${e} ${$7(t,r)}
More info: https://storybook.js.org/docs/react/writing-stories#default-export
`),this.name=this.constructor.name;}},cLe=class{constructor(e,{fileName:t,makeTitle:r}){this._stories={},this._metaAnnotations={},this._storyExports={},this._storyStatements={},this._storyAnnotations={},this._templates={},this._ast=e,this._fileName=t,this.imports=[],this._makeTitle=r;}_parseTitle(e){let t=$e.isIdentifier(e)?Sm(e.name,this._ast.program):e;if($e.isStringLiteral(t))return t.value;if($e.isTSSatisfiesExpression(t)&&$e.isStringLiteral(t.expression))return t.expression.value;throw new Error(vD.dedent`
CSF: unexpected dynamic title ${$7(t,this._fileName)}
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#string-literal-titles
`)}_parseMeta(e,t){let r={};e.properties.forEach(n=>{if($e.isIdentifier(n.key)){if(this._metaAnnotations[n.key.name]=n.value,n.key.name==="title")r.title=this._parseTitle(n.value);else if(["includeStories","excludeStories"].includes(n.key.name))r[n.key.name]=d_r(n.value);else if(n.key.name==="component"){let{code:i}=oLe.print(n.value,{});r.component=i;}else if(n.key.name==="tags"){let i=n.value;$e.isIdentifier(i)&&(i=Sm(i.name,this._ast.program)),r.tags=QMe(i);}else if(n.key.name==="id")if($e.isStringLiteral(n.value))r.id=n.value.value;else throw new Error(`Unexpected component id: ${n.value}`)}}),this._meta=r;}getStoryExport(e){let t=this._storyExports[e];if(t=$e.isVariableDeclarator(t)?t.init:t,$e.isCallExpression(t)){let{callee:r,arguments:n}=t;if($e.isMemberExpression(r)&&$e.isIdentifier(r.object)&&$e.isIdentifier(r.property)&&r.property.name==="bind"&&(n.length===0||n.length===1&&$e.isObjectExpression(n[0])&&n[0].properties.length===0)){let{name:i}=r.object;t=this._templates[i];}}return t}parse(){var r;let e=this;if(c_r.default(this._ast,{ExportDefaultDeclaration:{enter({node:n,parent:i}){var u,l;let s,a=$e.isIdentifier(n.declaration)&&$e.isProgram(i),o;if(a){let c=n.declaration.name,p=h=>$e.isIdentifier(h.id)&&h.id.name===c;e._metaStatement=e._ast.program.body.find(h=>$e.isVariableDeclaration(h)&&h.declarations.find(p)),o=(l=(((u=e==null?void 0:e._metaStatement)==null?void 0:u.declarations)||[]).find(p))==null?void 0:l.init;}else e._metaStatement=n,o=n.declaration;if($e.isObjectExpression(o)?s=o:($e.isTSAsExpression(o)||$e.isTSSatisfiesExpression(o))&&$e.isObjectExpression(o.expression)&&(s=o.expression),!e._meta&&s&&$e.isProgram(i)&&(e._metaNode=s,e._parseMeta(s,i)),e._metaStatement&&!e._metaNode)throw new K7("default export must be an object",e._metaStatement,e._fileName)}},ExportNamedDeclaration:{enter({node:n,parent:i}){let s;$e.isVariableDeclaration(n.declaration)?s=n.declaration.declarations.filter(a=>$e.isVariableDeclarator(a)):$e.isFunctionDeclaration(n.declaration)&&(s=[n.declaration]),s?s.forEach(a=>{if($e.isIdentifier(a.id)){let{name:o}=a.id;if(o==="__namedExportsOrder"&&$e.isVariableDeclarator(a)){e._namedExportsOrder=m_r(a.init);return}e._storyExports[o]=a,e._storyStatements[o]=n;let u=(0, v_.storyNameFromExport)(o);e._storyAnnotations[o]?JMe.warn(`Unexpected annotations for "${o}" before story declaration`):e._storyAnnotations[o]={};let l;$e.isVariableDeclarator(a)?l=$e.isTSAsExpression(a.init)||$e.isTSSatisfiesExpression(a.init)?a.init.expression:a.init:l=a;let c={};$e.isObjectExpression(l)?(c.__isArgsStory=!0,l.properties.forEach(p=>{if($e.isIdentifier(p.key)){if(p.key.name==="render")c.__isArgsStory=ZMe(p.value,i,e);else if(p.key.name==="name"&&$e.isStringLiteral(p.value))u=p.value.value;else if(p.key.name==="storyName"&&$e.isStringLiteral(p.value))JMe.warn(`Unexpected usage of "storyName" in "${o}". Please use "name" instead.`);else if(p.key.name==="parameters"&&$e.isObjectExpression(p.value)){let h=p.value.properties.find(f=>$e.isObjectProperty(f)&&$e.isIdentifier(f.key)&&f.key.name==="__id");h&&(c.__id=h.value.value);}e._storyAnnotations[o][p.key.name]=p.value;}})):c.__isArgsStory=ZMe(l,i,e),e._stories[o]={id:"FIXME",name:u,parameters:c};}}):n.specifiers.length>0&&n.specifiers.forEach(a=>{if($e.isExportSpecifier(a)&&$e.isIdentifier(a.exported)){let{name:o}=a.exported;if(o==="default"){let u,l=$e.isProgram(i)?Sm(a.local.name,i):a.local;$e.isObjectExpression(l)?u=l:$e.isTSAsExpression(l)&&$e.isObjectExpression(l.expression)&&(u=l.expression),!e._meta&&u&&$e.isProgram(i)&&e._parseMeta(u,i);}else e._storyAnnotations[o]={},e._stories[o]={id:"FIXME",name:o,parameters:{}};}});}},ExpressionStatement:{enter({node:n,parent:i}){let{expression:s}=n;if($e.isProgram(i)&&$e.isAssignmentExpression(s)&&$e.isMemberExpression(s.left)&&$e.isIdentifier(s.left.object)&&$e.isIdentifier(s.left.property)){let a=s.left.object.name,o=s.left.property.name,u=s.right;if(e._storyAnnotations[a]&&(o==="story"&&$e.isObjectExpression(u)?u.properties.forEach(l=>{$e.isIdentifier(l.key)&&(e._storyAnnotations[a][l.key.name]=l.value);}):e._storyAnnotations[a][o]=u),o==="storyName"&&$e.isStringLiteral(u)){let l=u.value,c=e._stories[a];if(!c)return;c.name=l;}}}},CallExpression:{enter({node:n}){let{callee:i}=n;if($e.isIdentifier(i)&&i.name==="storiesOf")throw new Error(vD.dedent`
Unexpected \`storiesOf\` usage: ${$7(n,e._fileName)}.
SB8 does not support \`storiesOf\`.
`)}},ImportDeclaration:{enter({node:n}){let{source:i}=n;if($e.isStringLiteral(i))e.imports.push(i.value);else throw new Error("CSF: unexpected import source")}}}),!e._meta)throw new K7("missing default export",e._ast,e._fileName);let t=Object.entries(e._stories);if(e._meta.title=this._makeTitle((r=e._meta)==null?void 0:r.title),e._metaAnnotations.play&&(e._meta.tags=[...e._meta.tags||[],"play-fn"]),e._stories=t.reduce((n,[i,s])=>{var p,h,f;if(!(0, v_.isExportStory)(i,e._meta))return n;let a=((p=s.parameters)==null?void 0:p.__id)??(0, v_.toId)(((h=e._meta)==null?void 0:h.id)||((f=e._meta)==null?void 0:f.title),(0, v_.storyNameFromExport)(i)),o={...s.parameters,__id:a},{includeStories:u}=e._meta||{};i==="__page"&&(t.length===1||Array.isArray(u)&&u.length===1)&&(o.docsOnly=!0),n[i]={...s,id:a,parameters:o};let{tags:l,play:c}=e._storyAnnotations[i];if(l){let d=$e.isIdentifier(l)?Sm(l.name,this._ast.program):l;n[i].tags=QMe(d);}return c&&(n[i].tags=[...n[i].tags||[],"play-fn"]),n},{}),Object.keys(e._storyExports).forEach(n=>{(0, v_.isExportStory)(n,e._meta)||(delete e._storyExports[n],delete e._storyAnnotations[n]);}),e._namedExportsOrder){let n=Object.keys(e._storyExports);e._storyExports=eLe(e._storyExports,e._namedExportsOrder),e._stories=eLe(e._stories,e._namedExportsOrder);let i=Object.keys(e._storyExports);if(n.length!==i.length)throw new Error(`Missing exports after sort: ${n.filter(s=>!i.includes(s))}`)}return e}get meta(){return this._meta}get stories(){return Object.values(this._stories)}get indexInputs(){if(!this._fileName)throw new Error(vD.dedent`Cannot automatically create index inputs with CsfFile.indexInputs because the CsfFile instance was created without a the fileName option.
Either add the fileName option when creating the CsfFile instance, or create the index inputs manually.`);return Object.entries(this._stories).map(([e,t])=>{var n,i,s;let r=[...((n=this._meta)==null?void 0:n.tags)??[],...t.tags??[]];return {type:"story",importPath:this._fileName,exportName:e,name:t.name,title:(i=this.meta)==null?void 0:i.title,metaId:(s=this.meta)==null?void 0:s.id,tags:r,__id:t.id}})}},pLe=(e,t)=>{let r=w_(e);return new cLe(r,t)},y_r=(e,t={sourceMaps:!1})=>{let r=l_r.default(e._ast,t);if(t.sourceMaps)return r;let{code:n}=r;return n},fLe=(e,t={})=>oLe.print(e._ast,t),g_r=async(e,t)=>{let r=(await aLe.default.readFile(e,"utf-8")).toString();return pLe(r,{...t,fileName:e})},S_r=async(e,t)=>{if(!(t||e._fileName))throw new Error("Please specify a fileName for writeCsf");await aLe.default.writeFile(t,fLe(e).code);},hLe=Oi(Dj()),T_r=Oi((Pw(),chunkTKGT252T_js.f(Aw))),de=Oi(gi()),tLe=Oi(Jb()),rLe=Oi(am()),E_r=Oi(HI()),H7=console,G7=({expectedType:e,foundType:t,node:r})=>{let n="";if(r)try{n=JSON.stringify(r);}catch{}return T_r.default`
CSF Parsing error: Expected '${e}' but found '${t}' instead in '${r==null?void 0:r.type}'.
${n}
`},A_=e=>de.isIdentifier(e.key)?e.key.name:de.isStringLiteral(e.key)?e.key.value:null,dLe=(e,t)=>{if(e.length===0)return t;if(de.isObjectExpression(t)){let[r,...n]=e,i=t.properties.find(s=>A_(s)===r);if(i)return dLe(n,i.value)}},mLe=(e,t)=>{if(e.length===0){if(de.isObjectExpression(t))return t.properties;throw new Error("Expected object expression")}if(de.isObjectExpression(t)){let[r,...n]=e,i=t.properties.find(s=>A_(s)===r);if(i)return n.length===0?t.properties:mLe(n,i.value)}},yLe=(e,t)=>{let r=null,n=null;return t.body.find(i=>(de.isVariableDeclaration(i)?n=i.declarations:de.isExportNamedDeclaration(i)&&de.isVariableDeclaration(i.declaration)&&(n=i.declaration.declarations),n&&n.find(s=>de.isVariableDeclarator(s)&&de.isIdentifier(s.id)&&s.id.name===e?(r=s,!0):!1))),r},x_=(e,t)=>{var r;return (r=yLe(e,t))==null?void 0:r.init},P_=(e,t)=>{if(e.length===0)return t;let[r,...n]=e,i=P_(n,t);return de.objectExpression([de.objectProperty(de.identifier(r),i)])},Y7=(e,t,r)=>{let[n,...i]=e,s=r.properties.find(a=>A_(a)===n);s?de.isObjectExpression(s.value)&&i.length>0?Y7(i,t,s.value):s.value=P_(i,t):r.properties.push(de.objectProperty(de.identifier(n),P_(i,t)));},gLe=class{constructor(e,t,r){this._exports={},this._exportDecls={},this.hasDefaultExport=!1,this._ast=e,this._code=t,this.fileName=r;}parse(){let e=this;return rLe.default(this._ast,{ExportDefaultDeclaration:{enter({node:t,parent:r}){e.hasDefaultExport=!0;let n=de.isIdentifier(t.declaration)&&de.isProgram(r)?x_(t.declaration.name,r):t.declaration;(de.isTSAsExpression(n)||de.isTSSatisfiesExpression(n))&&(n=n.expression),de.isObjectExpression(n)?(e._exportsObject=n,n.properties.forEach(i=>{let s=A_(i);if(s){let a=i.value;de.isIdentifier(a)&&(a=x_(a.name,r)),e._exports[s]=a;}})):H7.warn(G7({expectedType:"ObjectExpression",foundType:n==null?void 0:n.type,node:n||t.declaration}));}},ExportNamedDeclaration:{enter({node:t,parent:r}){var n;de.isVariableDeclaration(t.declaration)?t.declaration.declarations.forEach(i=>{if(de.isVariableDeclarator(i)&&de.isIdentifier(i.id)){let{name:s}=i.id,a=i.init;de.isIdentifier(a)&&(a=x_(a.name,r)),e._exports[s]=a,e._exportDecls[s]=i;}}):t.specifiers?t.specifiers.forEach(i=>{if(de.isExportSpecifier(i)&&de.isIdentifier(i.local)&&de.isIdentifier(i.exported)){let{name:s}=i.local,{name:a}=i.exported,o=yLe(s,r);e._exports[a]=o.init,e._exportDecls[a]=o;}}):H7.warn(G7({expectedType:"VariableDeclaration",foundType:(n=t.declaration)==null?void 0:n.type,node:t.declaration}));}},ExpressionStatement:{enter({node:t,parent:r}){if(de.isAssignmentExpression(t.expression)&&t.expression.operator==="="){let{left:n,right:i}=t.expression;if(de.isMemberExpression(n)&&de.isIdentifier(n.object)&&n.object.name==="module"&&de.isIdentifier(n.property)&&n.property.name==="exports"){let s=i;de.isIdentifier(i)&&(s=x_(i.name,r)),(de.isTSAsExpression(s)||de.isTSSatisfiesExpression(s))&&(s=s.expression),de.isObjectExpression(s)?(e._exportsObject=s,s.properties.forEach(a=>{let o=A_(a);if(o){let u=a.value;de.isIdentifier(u)&&(u=x_(u.name,r)),e._exports[o]=u;}})):H7.warn(G7({expectedType:"ObjectExpression",foundType:s==null?void 0:s.type,node:s}));}}}}}),e}getFieldNode(e){let[t,...r]=e,n=this._exports[t];if(n)return dLe(r,n)}getFieldProperties(e){let[t,...r]=e,n=this._exports[t];if(n)return mLe(r,n)}getFieldValue(e){let t=this.getFieldNode(e);if(t){let{code:r}=tLe.default(t,{});return (0, eval)(`(() => (${r}))()`)}}getSafeFieldValue(e){try{return this.getFieldValue(e)}catch{}}setFieldNode(e,t){let[r,...n]=e,i=this._exports[r];if(this._exportsObject)Y7(e,t,this._exportsObject),this._exports[e[0]]=t;else if(i&&de.isObjectExpression(i)&&n.length>0)Y7(n,t,i);else if(i&&n.length===0&&this._exportDecls[e[0]]){let s=this._exportDecls[e[0]];s.init=P_([],t);}else {if(this.hasDefaultExport)throw new Error(`Could not set the "${e.join(".")}" field as the default export is not an object in this file.`);{let s=P_(n,t),a=de.exportNamedDeclaration(de.variableDeclaration("const",[de.variableDeclarator(de.identifier(r),s)]));this._exports[r]=s,this._ast.program.body.push(a);}}}getNameFromPath(e){let t=this.getFieldNode(e);if(t)return this._getPresetValue(t,"name")}getNamesFromPath(e){let t=this.getFieldNode(e);if(!t)return;let r=[];return de.isArrayExpression(t)&&t.elements.forEach(n=>{r.push(this._getPresetValue(n,"name"));}),r}_getPnpWrappedValue(e){if(de.isCallExpression(e)){let t=e.arguments[0];if(de.isStringLiteral(t))return t.value}}_getPresetValue(e,t){let r;if(de.isStringLiteral(e)?r=e.value:de.isObjectExpression(e)&&e.properties.forEach(n=>{de.isObjectProperty(n)&&de.isIdentifier(n.key)&&n.key.name===t&&(de.isStringLiteral(n.value)?r=n.value.value:r=this._getPnpWrappedValue(n.value)),de.isObjectProperty(n)&&de.isStringLiteral(n.key)&&n.key.value==="name"&&de.isStringLiteral(n.value)&&(r=n.value.value);}),!r)throw new Error(`The given node must be a string literal or an object expression with a "${t}" property that is a string literal.`);return r}removeField(e){let t=(n,i)=>{let s=n.findIndex(a=>de.isIdentifier(a.key)&&a.key.name===i||de.isStringLiteral(a.key)&&a.key.value===i);s>=0&&n.splice(s,1);};if(e.length===1){let n=!1;if(this._ast.program.body.forEach(i=>{if(de.isExportNamedDeclaration(i)&&de.isVariableDeclaration(i.declaration)){let s=i.declaration.declarations[0];de.isIdentifier(s.id)&&s.id.name===e[0]&&(this._ast.program.body.splice(this._ast.program.body.indexOf(i),1),n=!0);}if(de.isExportDefaultDeclaration(i)&&de.isObjectExpression(i.declaration)){let s=i.declaration.properties;t(s,e[0]),n=!0;}if(de.isExpressionStatement(i)&&de.isAssignmentExpression(i.expression)&&de.isMemberExpression(i.expression.left)&&de.isIdentifier(i.expression.left.object)&&i.expression.left.object.name==="module"&&de.isIdentifier(i.expression.left.property)&&i.expression.left.property.name==="exports"&&de.isObjectExpression(i.expression.right)){let s=i.expression.right.properties;t(s,e[0]),n=!0;}}),n)return}let r=this.getFieldProperties(e);if(r){let n=e.at(-1);t(r,n);}}appendValueToArray(e,t){let r=this.valueToNode(t);r&&this.appendNodeToArray(e,r);}appendNodeToArray(e,t){let r=this.getFieldNode(e);if(!r)this.setFieldNode(e,de.arrayExpression([t]));else if(de.isArrayExpression(r))r.elements.push(t);else throw new Error(`Expected array at '${e.join(".")}', got '${r.type}'`)}removeEntryFromArray(e,t){let r=this.getFieldNode(e);if(r)if(de.isArrayExpression(r)){let n=r.elements.findIndex(i=>de.isStringLiteral(i)?i.value===t:de.isObjectExpression(i)?this._getPresetValue(i,"name")===t:this._getPnpWrappedValue(i)===t);if(n>=0)r.elements.splice(n,1);else throw new Error(`Could not find '${t}' in array at '${e.join(".")}'`)}else throw new Error(`Expected array at '${e.join(".")}', got '${r.type}'`)}_inferQuotes(){if(!this._quotes){let e=(this._ast.tokens||[]).slice(0,500).reduce((t,r)=>(r.type.label==="string"&&(t[this._code[r.start]]+=1),t),{"'":0,'"':0});this._quotes=e["'"]>e['"']?"single":"double";}return this._quotes}valueToNode(e){let t=this._inferQuotes(),r;if(t==="single"){let{code:n}=tLe.default(de.valueToNode(e),{jsescOption:{quotes:t}}),i=w_(`const __x = ${n}`);rLe.default(i,{VariableDeclaration:{enter({node:s}){s.declarations.length===1&&de.isVariableDeclarator(s.declarations[0])&&de.isIdentifier(s.declarations[0].id)&&s.declarations[0].id.name==="__x"&&(r=s.declarations[0].init);}}});}else r=de.valueToNode(e);return r}setFieldValue(e,t){let r=this.valueToNode(t);if(!r)throw new Error(`Unexpected value ${JSON.stringify(t)}`);this.setFieldNode(e,r);}getBodyDeclarations(){return this._ast.program.body}setBodyDeclaration(e){this._ast.program.body.push(e);}setRequireImport(e,t){let r=this._ast.program.body.find(s=>de.isVariableDeclaration(s)&&s.declarations.length===1&&de.isVariableDeclarator(s.declarations[0])&&de.isCallExpression(s.declarations[0].init)&&de.isIdentifier(s.declarations[0].init.callee)&&s.declarations[0].init.callee.name==="require"&&de.isStringLiteral(s.declarations[0].init.arguments[0])&&s.declarations[0].init.arguments[0].value===t),n=s=>de.isObjectPattern(r==null?void 0:r.declarations[0].id)&&(r==null?void 0:r.declarations[0].id.properties.find(a=>de.isObjectProperty(a)&&de.isIdentifier(a.key)&&a.key.name===s)),i=(s,a)=>s.declarations.length===1&&de.isVariableDeclarator(s.declarations[0])&&de.isIdentifier(s.declarations[0].id)&&s.declarations[0].id.name===a;if(typeof e=="string"){let s=()=>{this._ast.program.body.unshift(de.variableDeclaration("const",[de.variableDeclarator(de.identifier(e),de.callExpression(de.identifier("require"),[de.stringLiteral(t)]))]));};r&&i(r,e)||s();}else r?e.forEach(s=>{n(s)||r.declarations[0].id.properties.push(de.objectProperty(de.identifier(s),de.identifier(s),void 0,!0));}):this._ast.program.body.unshift(de.variableDeclaration("const",[de.variableDeclarator(de.objectPattern(e.map(s=>de.objectProperty(de.identifier(s),de.identifier(s),void 0,!0))),de.callExpression(de.identifier("require"),[de.stringLiteral(t)]))]));}setImport(e,t){let r=a=>de.importSpecifier(de.identifier(a),de.identifier(a)),n=(a,o)=>a.specifiers.find(u=>de.isImportSpecifier(u)&&de.isIdentifier(u.imported)&&u.imported.name===o),i=(a,o)=>a.specifiers.find(u=>de.isImportDefaultSpecifier(u)),s=this._ast.program.body.find(a=>de.isImportDeclaration(a)&&a.source.value===t);typeof e=="string"?s?i(s)||s.specifiers.push(de.importDefaultSpecifier(de.identifier(e))):this._ast.program.body.unshift(de.importDeclaration([de.importDefaultSpecifier(de.identifier(e))],de.stringLiteral(t))):s?e.forEach(a=>{n(s,a)||s.specifiers.push(r(a));}):this._ast.program.body.unshift(de.importDeclaration(e.map(a=>de.importSpecifier(de.identifier(a),de.identifier(a))),de.stringLiteral(t)));}},SLe=(e,t)=>{let r=w_(e);return new gLe(r,e,t)},TLe=e=>ELe(e).code,ELe=(e,t={})=>E_r.print(e._ast,t),b_r=async e=>{let t=(await hLe.default.readFile(e,"utf-8")).toString();return SLe(t,e).parse()},v_r=async(e,t)=>{let r=t||e.fileName;if(!r)throw new Error("Please specify a fileName for writeConfig");await hLe.default.writeFile(r,TLe(e));},Yn=Oi(gi()),__r=Oi(am()),nLe=Oi(Jb()),x_r=(Pw(),chunkTKGT252T_js.f(Aw)),A_r=console,W7=(e,t)=>{let r;return e.properties.forEach(n=>{Yn.isIdentifier(n.key)&&n.key.name===t&&(r=n.value);}),r},X7=e=>{let t=C_(e);if(Yn.isArrayExpression(t))return t.elements.map(r=>X7(r));if(Yn.isObjectExpression(t))return t.properties.reduce((r,n)=>(Yn.isIdentifier(n.key)&&(r[n.key.name]=X7(n.value)),r),{});if(Yn.isLiteral(t))return t.value;if(Yn.isIdentifier(t))return TT(t.name,!0);throw new Error(`Unknown node type ${t.type}`)},TT=(e,t)=>{let r=x_r.dedent`
Unexpected '${e}'. Parameter 'options.storySort' should be defined inline e.g.:
export default {
parameters: {
options: {
storySort: <array | object | function>
},
},
};
`;if(t)throw new Error(r);A_r.info(r);},C_=e=>Yn.isTSAsExpression(e)||Yn.isTSSatisfiesExpression(e)?e.expression:e,bLe=e=>{let t=C_(e);if(Yn.isObjectExpression(t)){let r=W7(t,"options");if(r){if(Yn.isObjectExpression(r))return W7(r,"storySort");TT("options",!0);}}},P_r=(e,t)=>{let r=C_(e);if(Yn.isObjectExpression(r)){let n=W7(r,"parameters");if(Yn.isIdentifier(n)&&(n=Sm(n.name,t)),n)return bLe(n)}else TT("default",!0);},C_r=e=>{var n;if(!e.includes("storySort"))return;let t,r=w_(e);if(__r.default(r,{ExportNamedDeclaration:{enter({node:i}){Yn.isVariableDeclaration(i.declaration)?i.declaration.declarations.forEach(s=>{if(Yn.isVariableDeclarator(s)&&Yn.isIdentifier(s.id)){let{name:a}=s.id;if(a==="parameters"&&s.init){let o=C_(s.init);t=bLe(o);}}}):i.specifiers.forEach(s=>{Yn.isIdentifier(s.exported)&&s.exported.name==="parameters"&&TT("parameters",!1);});}},ExportDefaultDeclaration:{enter({node:i}){let s=i.declaration;Yn.isIdentifier(s)&&(s=Sm(s.name,r.program)),s=C_(s),Yn.isObjectExpression(s)?t=P_r(s,r.program):TT("default",!1);}}}),!!t){if(Yn.isArrowFunctionExpression(t)){let{code:i}=nLe.default(t,{});return (0, eval)(i)}if(Yn.isFunctionExpression(t)){let{code:i}=nLe.default(t,{}),s=(n=t.id)==null?void 0:n.name,a=`(a, b) => {
${i};
return ${s}(a, b)
}`;return (0, eval)(a)}return Yn.isLiteral(t)||Yn.isArrayExpression(t)||Yn.isObjectExpression(t)?X7(t):TT("storySort",!0)}},jt=Oi(gi()),w_r=Oi(Jb()),vLe=(e,t,r,n)=>{let i=t.getStoryExport(r),s=!(n!=null&&n.disableSource)&&ALe(i),a=!(n!=null&&n.disableDescription)&&J7(t._storyStatements[r]),o=[],u=jt.memberExpression(jt.identifier(r),jt.identifier("parameters"));o.push(jt.spreadElement(u));let l=jt.optionalMemberExpression(u,jt.identifier("docs"),!1,!0),c=[];if(s){let p=jt.optionalMemberExpression(l,jt.identifier("source"),!1,!0);c.push(jt.objectProperty(jt.identifier("source"),jt.objectExpression([jt.objectProperty(jt.identifier("originalSource"),jt.stringLiteral(s)),jt.spreadElement(p)])));}if(a){let p=jt.optionalMemberExpression(l,jt.identifier("description"),!1,!0);c.push(jt.objectProperty(jt.identifier("description"),jt.objectExpression([jt.objectProperty(jt.identifier("story"),jt.stringLiteral(a)),jt.spreadElement(p)])));}if(c.length>0){o.push(jt.objectProperty(jt.identifier("docs"),jt.objectExpression([jt.spreadElement(l),...c])));let p=jt.expressionStatement(jt.assignmentExpression("=",u,jt.objectExpression(o)));e._ast.program.body.push(p);}},_Le=(e,t,r)=>{if(!t.length){e.properties.find(o=>jt.isObjectProperty(o)&&jt.isIdentifier(o.key)&&o.key.name==="component")||e.properties.unshift(r);return}let[n,...i]=t,s=e.properties.find(o=>jt.isObjectProperty(o)&&jt.isIdentifier(o.key)&&o.key.name===n&&jt.isObjectExpression(o.value)),a;s?a=s.value:(a=jt.objectExpression([]),e.properties.push(jt.objectProperty(jt.identifier(n),a))),_Le(a,i,r);},xLe=(e,t,r)=>{let n=!(r!=null&&r.disableDescription)&&J7(t._metaStatement);if(n){let i=e._metaNode;i&&jt.isObjectExpression(i)&&_Le(i,["parameters","docs","description"],jt.objectProperty(jt.identifier("component"),jt.stringLiteral(n)));}},I_r=(e,t,r)=>{xLe(e,t,r),Object.keys(e._storyExports).forEach(n=>{vLe(e,t,n,r);});},ALe=e=>{let t=jt.isVariableDeclarator(e)?e.init:e,{code:r}=w_r.default(t,{});return r},J7=e=>e!=null&&e.leadingComments?e.leadingComments.map(t=>t.type==="CommentLine"||!t.value.startsWith("*")?null:t.value.split(`
`).map(r=>r.replace(/^(\s+)?(\*+)?(\s)?/,"")).join(`
`).trim()).filter(Boolean).join(`
`):"";});var $Le=chunkTKGT252T_js.c((oyn,GLe)=>{var B_r=typeof process=="object"&&process&&process.platform==="win32";GLe.exports=B_r?{sep:"\\"}:{sep:"/"};});var tH=chunkTKGT252T_js.c((uyn,XLe)=>{XLe.exports=YLe;function YLe(e,t,r){e instanceof RegExp&&(e=KLe(e,r)),t instanceof RegExp&&(t=KLe(t,r));var n=WLe(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 KLe(e,t){var r=t.match(e);return r?r[0]:null}YLe.range=WLe;function WLe(e,t,r){var n,i,s,a,o,u=r.indexOf(e),l=r.indexOf(t,u+1),c=u;if(u>=0&&l>0){if(e===t)return [u,l];for(n=[],s=r.length;c>=0&&!o;)c==u?(n.push(c),u=r.indexOf(e,c+1)):n.length==1?o=[n.pop(),l]:(i=n.pop(),i<s&&(s=i,a=l),l=r.indexOf(t,c+1)),c=u<l&&u>=0?u:l;n.length&&(o=[s,a]);}return o}});var nke=chunkTKGT252T_js.c((lyn,rke)=>{var zLe=tH();rke.exports=q_r;var JLe="\0SLASH"+Math.random()+"\0",QLe="\0OPEN"+Math.random()+"\0",nH="\0CLOSE"+Math.random()+"\0",ZLe="\0COMMA"+Math.random()+"\0",eke="\0PERIOD"+Math.random()+"\0";function rH(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function j_r(e){return e.split("\\\\").join(JLe).split("\\{").join(QLe).split("\\}").join(nH).split("\\,").join(ZLe).split("\\.").join(eke)}function U_r(e){return e.split(JLe).join("\\").split(QLe).join("{").split(nH).join("}").split(ZLe).join(",").split(eke).join(".")}function tke(e){if(!e)return [""];var t=[],r=zLe("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+i+"}";var o=tke(s);return s.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),t.push.apply(t,a),t}function q_r(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),N_(j_r(e),!0).map(U_r)):[]}function V_r(e){return "{"+e+"}"}function H_r(e){return /^-?0\d/.test(e)}function G_r(e,t){return e<=t}function $_r(e,t){return e>=t}function N_(e,t){var r=[],n=zLe("{","}",e);if(!n)return [e];var i=n.pre,s=n.post.length?N_(n.post,!1):[""];if(/\$$/.test(n.pre))for(var a=0;a<s.length;a++){var o=i+"{"+n.body+"}"+s[a];r.push(o);}else {var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=u||l,p=n.body.indexOf(",")>=0;if(!c&&!p)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+nH+n.post,N_(e)):[e];var h;if(c)h=n.body.split(/\.\./);else if(h=tke(n.body),h.length===1&&(h=N_(h[0],!1).map(V_r),h.length===1))return s.map(function(V){return n.pre+h[0]+V});var f;if(c){var d=rH(h[0]),m=rH(h[1]),y=Math.max(h[0].length,h[1].length),g=h.length==3?Math.abs(rH(h[2])):1,v=G_r,E=m<d;E&&(g*=-1,v=$_r);var S=h.some(H_r);f=[];for(var x=d;v(x,m);x+=g){var b;if(l)b=String.fromCharCode(x),b==="\\"&&(b="");else if(b=String(x),S){var A=y-b.length;if(A>0){var D=new Array(A+1).join("0");x<0?b="-"+D+b.slice(1):b=D+b;}}f.push(b);}}else {f=[];for(var P=0;P<h.length;P++)f.push.apply(f,N_(h[P],!1));}for(var P=0;P<f.length;P++)for(var a=0;a<s.length;a++){var o=i+f[P]+s[a];(!t||c||o)&&r.push(o);}}return r}});var lke=chunkTKGT252T_js.c((pyn,uH)=>{var Va=uH.exports=(e,t,r={})=>(CD(t),!r.nocomment&&t.charAt(0)==="#"?!1:new ET(t,r).match(e));uH.exports=Va;var aH=$Le();Va.sep=aH.sep;var xu=Symbol("globstar **");Va.GLOBSTAR=xu;var K_r=nke(),ike={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},oH="[^/]",iH=oH+"*?",Y_r="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",W_r="(?:(?!(?:\\/|^)\\.).)*?",oke=e=>e.split("").reduce((t,r)=>(t[r]=!0,t),{}),ske=oke("().*{}+?[]^$\\!"),X_r=oke("[.("),ake=/\/+/;Va.filter=(e,t={})=>(r,n,i)=>Va(r,e,t);var ph=(e,t={})=>{let r={};return Object.keys(e).forEach(n=>r[n]=e[n]),Object.keys(t).forEach(n=>r[n]=t[n]),r};Va.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Va;let t=Va,r=(n,i,s)=>t(n,i,ph(e,s));return r.Minimatch=class extends t.Minimatch{constructor(i,s){super(i,ph(e,s));}},r.Minimatch.defaults=n=>t.defaults(ph(e,n)).Minimatch,r.filter=(n,i)=>t.filter(n,ph(e,i)),r.defaults=n=>t.defaults(ph(e,n)),r.makeRe=(n,i)=>t.makeRe(n,ph(e,i)),r.braceExpand=(n,i)=>t.braceExpand(n,ph(e,i)),r.match=(n,i,s)=>t.match(n,i,ph(e,s)),r};Va.braceExpand=(e,t)=>uke(e,t);var uke=(e,t={})=>(CD(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:K_r(e)),z_r=1024*64,CD=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>z_r)throw new TypeError("pattern is too long")},sH=Symbol("subparse");Va.makeRe=(e,t)=>new ET(e,t||{}).makeRe();Va.match=(e,t,r={})=>{let n=new ET(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};var J_r=e=>e.replace(/\\(.)/g,"$1"),Q_r=e=>e.replace(/\\([^-\]])/g,"$1"),Z_r=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),exr=e=>e.replace(/[[\]\\]/g,"\\$&"),ET=class{constructor(t,r){CD(t),r||(r={}),this.options=r,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make();}debug(){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,n),n=this.globParts=n.map(i=>i.split(ake)),this.debug(this.pattern,n),n=n.map((i,s,a)=>i.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n;}parseNegate(){if(this.options.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r;}matchOne(t,r,n){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var s=0,a=0,o=t.length,u=r.length;s<o&&a<u;s++,a++){this.debug("matchOne loop");var l=r[a],c=t[s];if(this.debug(r,l,c),l===!1)return !1;if(l===xu){this.debug("GLOBSTAR",[r,l,c]);var p=s,h=a+1;if(h===u){for(this.debug("** at the end");s<o;s++)if(t[s]==="."||t[s]===".."||!i.dot&&t[s].charAt(0)===".")return !1;return !0}for(;p<o;){var f=t[p];if(this.debug(`
globstar while`,t,p,r,h,f),this.matchOne(t.slice(p),r.slice(h),n))return this.debug("globstar found match!",p,o,f),!0;if(f==="."||f===".."||!i.dot&&f.charAt(0)==="."){this.debug("dot detected!",t,p,r,h);break}this.debug("globstar swallow a segment, and continue"),p++;}return !!(n&&(this.debug(`
>>> no match, partial?`,t,p,r,h),p===o))}var d;if(typeof l=="string"?(d=c===l,this.debug("string match",l,c,d)):(d=c.match(l),this.debug("pattern match",l,c,d)),!d)return !1}if(s===o&&a===u)return !0;if(s===o)return n;if(a===u)return s===o-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return uke(this.pattern,this.options)}parse(t,r){CD(t);let n=this.options;if(t==="**")if(n.noglobstar)t="*";else return xu;if(t==="")return "";let i="",s=!1,a=!1,o=[],u=[],l,c=!1,p=-1,h=-1,f,d,m,y=t.charAt(0)===".",g=n.dot||y,v=()=>y?"":g?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=A=>A.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(l){switch(l){case"*":i+=iH,s=!0;break;case"?":i+=oH,s=!0;break;default:i+="\\"+l;break}this.debug("clearStateChar %j %j",l,i),l=!1;}};for(let A=0,D;A<t.length&&(D=t.charAt(A));A++){if(this.debug("%s %s %s %j",t,A,i,D),a){if(D==="/")return !1;ske[D]&&(i+="\\"),i+=D,a=!1;continue}switch(D){case"/":return !1;case"\\":if(c&&t.charAt(A+1)==="-"){i+=D;continue}S(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,A,i,D),c){this.debug(" in class"),D==="!"&&A===h+1&&(D="^"),i+=D;continue}this.debug("call clearStateChar %j",l),S(),l=D,n.noext&&S();continue;case"(":{if(c){i+="(";continue}if(!l){i+="\\(";continue}let P={type:l,start:A-1,reStart:i.length,open:ike[l].open,close:ike[l].close};this.debug(this.pattern," ",P),o.push(P),i+=P.open,P.start===0&&P.type!=="!"&&(y=!0,i+=E(t.slice(A+1))),this.debug("plType %j %j",l,i),l=!1;continue}case")":{let P=o[o.length-1];if(c||!P){i+="\\)";continue}o.pop(),S(),s=!0,d=P,i+=d.close,d.type==="!"&&u.push(Object.assign(d,{reEnd:i.length}));continue}case"|":{let P=o[o.length-1];if(c||!P){i+="\\|";continue}S(),i+="|",P.start===0&&P.type!=="!"&&(y=!0,i+=E(t.slice(A+1)));continue}case"[":if(S(),c){i+="\\"+D;continue}c=!0,h=A,p=i.length,i+=D;continue;case"]":if(A===h+1||!c){i+="\\"+D;continue}f=t.substring(h+1,A);try{RegExp("["+exr(Q_r(f))+"]"),i+=D;}catch{i=i.substring(0,p)+"(?:$.)";}s=!0,c=!1;continue;default:S(),ske[D]&&!(D==="^"&&c)&&(i+="\\"),i+=D;break}}for(c&&(f=t.slice(h+1),m=this.parse(f,sH),i=i.substring(0,p)+"\\["+m[0],s=s||m[1]),d=o.pop();d;d=o.pop()){let A;A=i.slice(d.reStart+d.open.length),this.debug("setting tail",i,d),A=A.replace(/((?:\\{2}){0,64})(\\?)\|/g,(P,V,X)=>(X||(X="\\"),V+V+X+"|")),this.debug(`tail=%j
%s`,A,A,d,i);let D=d.type==="*"?iH:d.type==="?"?oH:"\\"+d.type;s=!0,i=i.slice(0,d.reStart)+D+"\\("+A;}S(),a&&(i+="\\\\");let x=X_r[i.charAt(0)];for(let A=u.length-1;A>-1;A--){let D=u[A],P=i.slice(0,D.reStart),V=i.slice(D.reStart,D.reEnd-8),X=i.slice(D.reEnd),oe=i.slice(D.reEnd-8,D.reEnd)+X,le=P.split(")").length,Be=P.split("(").length-le,be=X;for(let Te=0;Te<Be;Te++)be=be.replace(/\)[+*?]?/,"");X=be;let Ee=X===""&&r!==sH?"(?:$|\\/)":"";i=P+V+X+Ee+oe;}if(i!==""&&s&&(i="(?=.)"+i),x&&(i=v()+i),r===sH)return [i,s];if(n.nocase&&!s&&(s=t.toUpperCase()!==t.toLowerCase()),!s)return J_r(t);let b=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",b),{_glob:t,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?iH:r.dot?Y_r:W_r,i=r.nocase?"i":"",s=t.map(a=>(a=a.map(o=>typeof o=="string"?Z_r(o):o===xu?xu:o._src).reduce((o,u)=>(o[o.length-1]===xu&&u===xu||o.push(u),o),[]),a.forEach((o,u)=>{o!==xu||a[u-1]===xu||(u===0?a.length>1?a[u+1]="(?:\\/|"+n+"\\/)?"+a[u+1]:a[u]=n:u===a.length-1?a[u-1]+="(?:\\/|"+n+")?":(a[u-1]+="(?:\\/|\\/"+n+"\\/)"+a[u+1],a[u+1]=xu));}),a.filter(o=>o!==xu).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i);}catch{this.regexp=!1;}return this.regexp}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return !1;if(this.empty)return t==="";if(t==="/"&&r)return !0;let n=this.options;aH.sep!=="/"&&(t=t.split(aH.sep).join("/")),t=t.split(ake),this.debug(this.pattern,"split",t);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let a=t.length-1;a>=0&&(s=t[a],!s);a--);for(let a=0;a<i.length;a++){let o=i[a],u=t;if(n.matchBase&&o.length===1&&(u=[s]),this.matchOne(u,o,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return Va.defaults(t).Minimatch}};Va.Minimatch=ET;});var dke=chunkTKGT252T_js.c((fyn,hke)=>{hke.exports=fke;var cH=chunkTKGT252T_js.a("fs"),{EventEmitter:txr}=chunkTKGT252T_js.a("events"),{Minimatch:lH}=lke(),{resolve:rxr}=chunkTKGT252T_js.a("path");function nxr(e,t){return new Promise((r,n)=>{cH.readdir(e,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":t?n(i):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;case"ELOOP":default:n(i);break}else r(s);});})}function cke(e,t){return new Promise((r,n)=>{(t?cH.stat:cH.lstat)(e,(s,a)=>{if(s)switch(s.code){case"ENOENT":r(t?cke(e,!1):null);break;default:r(null);break}else r(a);});})}async function*pke(e,t,r,n,i,s){let a=await nxr(t+e,s);for(let o of a){let u=o.name;u===void 0&&(u=o,n=!0);let l=e+"/"+u,c=l.slice(1),p=t+"/"+c,h=null;(n||r)&&(h=await cke(p,r)),!h&&o.name!==void 0&&(h=o),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?i(c)||(yield {relative:c,absolute:p,stats:h},yield*pke(l,t,r,n,i,!1)):yield {relative:c,absolute:p,stats:h};}}async function*ixr(e,t,r,n){yield*pke("",e,t,r,n,!0);}function sxr(e){return {pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}var wD=class extends txr{constructor(t,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=sxr(r||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new lH(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}));}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new lH(s,{dot:!0}));}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new lH(s,{dot:!0}));}this.iterator=ixr(rxr(t||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",i=>this._matches.push(this.options.absolute?i.absolute:i.relative)),this.on("error",i=>n(i)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0);}_shouldSkipDirectory(t){return this.skipMatchers.some(r=>r.match(t))}_fileMatches(t,r){let n=t+(r?"/":"");return (this.matchers.length===0||this.matchers.some(i=>i.match(n)))&&!this.ignoreMatchers.some(i=>i.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(t=>{if(t.done)this.emit("end");else {let r=t.value.stats.isDirectory();if(this._fileMatches(t.value.relative,r)){let n=t.value.relative,i=t.value.absolute;this.options.mark&&r&&(n+="/",i+="/"),this.options.stat?this.emit("match",{relative:n,absolute:i,stat:t.value.stats}):this.emit("match",{relative:n,absolute:i});}this._next(this.iterator);}}).catch(t=>{this.abort(),this.emit("error",t),!t.code&&!this.options.silent&&console.error(t);}):this.inactive=!0;}abort(){this.aborted=!0;}pause(){this.paused=!0;}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next());}};function fke(e,t,r){return new wD(e,t,r)}fke.ReaddirGlob=wD;});var Zc=chunkTKGT252T_js.c((hyn,pH)=>{typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?pH.exports={nextTick:axr}:pH.exports=process;function axr(e,t,r,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,a;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t);});case 3:return process.nextTick(function(){e.call(null,t,r);});case 4:return process.nextTick(function(){e.call(null,t,r,n);});default:for(s=new Array(i-1),a=0;a<s.length;)s[a++]=arguments[a];return process.nextTick(function(){e.apply(null,s);})}}});var fH=chunkTKGT252T_js.c((dyn,mke)=>{var oxr={}.toString;mke.exports=Array.isArray||function(e){return oxr.call(e)=="[object Array]"};});var hH=chunkTKGT252T_js.c((myn,yke)=>{yke.exports=chunkTKGT252T_js.a("stream");});var OD=chunkTKGT252T_js.c((dH,Ske)=>{var ID=chunkTKGT252T_js.a("buffer"),ep=ID.Buffer;function gke(e,t){for(var r in e)t[r]=e[r];}ep.from&&ep.alloc&&ep.allocUnsafe&&ep.allocUnsafeSlow?Ske.exports=ID:(gke(ID,dH),dH.Buffer=bT);function bT(e,t,r){return ep(e,t,r)}gke(ep,bT);bT.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ep(e,t,r)};bT.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ep(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};bT.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ep(e)};bT.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ID.SlowBuffer(e)};});var Au=chunkTKGT252T_js.c(_s=>{function uxr(e){return Array.isArray?Array.isArray(e):DD(e)==="[object Array]"}_s.isArray=uxr;function lxr(e){return typeof e=="boolean"}_s.isBoolean=lxr;function cxr(e){return e===null}_s.isNull=cxr;function pxr(e){return e==null}_s.isNullOrUndefined=pxr;function fxr(e){return typeof e=="number"}_s.isNumber=fxr;function hxr(e){return typeof e=="string"}_s.isString=hxr;function dxr(e){return typeof e=="symbol"}_s.isSymbol=dxr;function mxr(e){return e===void 0}_s.isUndefined=mxr;function yxr(e){return DD(e)==="[object RegExp]"}_s.isRegExp=yxr;function gxr(e){return typeof e=="object"&&e!==null}_s.isObject=gxr;function Sxr(e){return DD(e)==="[object Date]"}_s.isDate=Sxr;function Txr(e){return DD(e)==="[object Error]"||e instanceof Error}_s.isError=Txr;function Exr(e){return typeof e=="function"}_s.isFunction=Exr;function bxr(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}_s.isPrimitive=bxr;_s.isBuffer=chunkTKGT252T_js.a("buffer").Buffer.isBuffer;function DD(e){return Object.prototype.toString.call(e)}});var Eke=chunkTKGT252T_js.c((gyn,mH)=>{function vxr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Tke=OD().Buffer,R_=chunkTKGT252T_js.a("util");function _xr(e,t,r){e.copy(t,r);}mH.exports=function(){function e(){vxr(this,e),this.head=null,this.tail=null,this.length=0;}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length;},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length;},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0;},e.prototype.join=function(r){if(this.length===0)return "";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},e.prototype.concat=function(r){if(this.length===0)return Tke.alloc(0);for(var n=Tke.allocUnsafe(r>>>0),i=this.head,s=0;i;)_xr(i.data,n,s),s+=i.data.length,i=i.next;return n},e}();R_&&R_.inspect&&R_.inspect.custom&&(mH.exports.prototype[R_.inspect.custom]=function(){var e=R_.inspect({length:this.length});return this.constructor.name+" "+e});});var yH=chunkTKGT252T_js.c((Syn,bke)=>{var ND=Zc();function xxr(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ND.nextTick(RD,this,e)):ND.nextTick(RD,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,ND.nextTick(RD,r,s)):ND.nextTick(RD,r,s):t&&t(s);}),this)}function Axr(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1);}function RD(e,t){e.emit("error",t);}bke.exports={destroy:xxr,undestroy:Axr};});var SH=chunkTKGT252T_js.c((Tyn,Ike)=>{var Tm=Zc();Ike.exports=vi;function _ke(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Hxr(t,e);};}var Pxr=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Tm.nextTick,vT;vi.WritableState=L_;var xke=Object.create(Au());xke.inherits=chunkHZVCNUTP_js.M();var Cxr={deprecate:chunkHZVCNUTP_js.N()},Ake=hH(),LD=OD().Buffer,wxr=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Ixr(e){return LD.from(e)}function Oxr(e){return LD.isBuffer(e)||e instanceof wxr}var Pke=yH();xke.inherits(vi,Ake);function Dxr(){}function L_(e,t){vT=vT||Em(),e=e||{};var r=t instanceof vT;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){Bxr(t,o);},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new _ke(this);}L_.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(L_.prototype,"buffer",{get:Cxr.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")});}catch{}})();var MD;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(MD=Function.prototype[Symbol.hasInstance],Object.defineProperty(vi,Symbol.hasInstance,{value:function(e){return MD.call(this,e)?!0:this!==vi?!1:e&&e._writableState instanceof L_}})):MD=function(e){return e instanceof this};function vi(e){if(vT=vT||Em(),!MD.call(vi,this)&&!(this instanceof vT))return new vi(e);this._writableState=new L_(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Ake.call(this);}vi.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"));};function Nxr(e,t){var r=new Error("write after end");e.emit("error",r),Tm.nextTick(t,r);}function Rxr(e,t,r,n){var i=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),Tm.nextTick(n,s),i=!1),i}vi.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&Oxr(e);return s&&!LD.isBuffer(e)&&(e=Ixr(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=Dxr),n.ended?Nxr(this,r):(s||Rxr(this,n,e,r))&&(n.pendingcb++,i=Lxr(this,n,s,e,t,r)),i};vi.prototype.cork=function(){var e=this._writableState;e.corked++;};vi.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Cke(this,e));};vi.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function Mxr(e,t,r){return !e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=LD.from(t,r)),t}Object.defineProperty(vi.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Lxr(e,t,r,n,i,s){if(!r){var a=Mxr(t,n,i);n!==a&&(r=!0,i="buffer",n=a);}var o=t.objectMode?1:n.length;t.length+=o;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1;}else gH(e,t,!1,o,n,i,s);return u}function gH(e,t,r,n,i,s,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1;}function kxr(e,t,r,n,i){--t.pendingcb,r?(Tm.nextTick(i,n),Tm.nextTick(M_,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),M_(e,t));}function Fxr(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0;}function Bxr(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(Fxr(r),t)kxr(e,r,n,t,i);else {var s=wke(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Cke(e,r),n?Pxr(vke,e,r,s,i):vke(e,r,s,i);}}function vke(e,t,r,n){r||jxr(e,t),t.pendingcb--,n(),M_(e,t);}function jxr(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));}function Cke(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,o=!0;r;)i[a]=r,r.isBuf||(o=!1),r=r.next,a+=1;i.allBuffers=o,gH(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new _ke(t),t.bufferedRequestCount=0;}else {for(;r;){var u=r.chunk,l=r.encoding,c=r.callback,p=t.objectMode?1:u.length;if(gH(e,t,!1,p,u,l,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null);}t.bufferedRequest=r,t.bufferProcessing=!1;}vi.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"));};vi.prototype._writev=null;vi.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Vxr(this,n,r);};function wke(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Uxr(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),M_(e,t);});}function qxr(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Tm.nextTick(Uxr,e,t)):(t.prefinished=!0,e.emit("prefinish")));}function M_(e,t){var r=wke(t);return r&&(qxr(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function Vxr(e,t,r){t.ending=!0,M_(e,t),r&&(t.finished?Tm.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1;}function Hxr(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next;}t.corkedRequestsFree.next=e;}Object.defineProperty(vi.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e);}});vi.prototype.destroy=Pke.destroy;vi.prototype._undestroy=Pke.undestroy;vi.prototype._destroy=function(e,t){this.end(),t(e);};});var Em=chunkTKGT252T_js.c((Eyn,Rke)=>{var Oke=Zc(),Gxr=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Rke.exports=tp;var Dke=Object.create(Au());Dke.inherits=chunkHZVCNUTP_js.M();var Nke=bH(),EH=SH();Dke.inherits(tp,Nke);for(TH=Gxr(EH.prototype),kD=0;kD<TH.length;kD++)FD=TH[kD],tp.prototype[FD]||(tp.prototype[FD]=EH.prototype[FD]);var TH,FD,kD;function tp(e){if(!(this instanceof tp))return new tp(e);Nke.call(this,e),EH.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",$xr);}Object.defineProperty(tp.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function $xr(){this.allowHalfOpen||this._writableState.ended||Oke.nextTick(Kxr,this);}function Kxr(e){e.end();}Object.defineProperty(tp.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e);}});tp.prototype._destroy=function(e,t){this.push(null),this.end(),Oke.nextTick(t,e);};});var kke=chunkTKGT252T_js.c((vH,Lke)=>{var BD=chunkTKGT252T_js.a("buffer"),rp=BD.Buffer;function Mke(e,t){for(var r in e)t[r]=e[r];}rp.from&&rp.alloc&&rp.allocUnsafe&&rp.allocUnsafeSlow?Lke.exports=BD:(Mke(BD,vH),vH.Buffer=_T);function _T(e,t,r){return rp(e,t,r)}Mke(rp,_T);_T.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return rp(e,t,r)};_T.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=rp(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};_T.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return rp(e)};_T.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return BD.SlowBuffer(e)};});var F_=chunkTKGT252T_js.c(Bke=>{var xH=kke().Buffer,Fke=xH.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return !0;default:return !1}};function Yxr(e){if(!e)return "utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return "utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return "utf16le";case"latin1":case"binary":return "latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0;}}function Wxr(e){var t=Yxr(e);if(typeof t!="string"&&(xH.isEncoding===Fke||!Fke(e)))throw new Error("Unknown encoding: "+e);return t||e}Bke.StringDecoder=k_;function k_(e){this.encoding=Wxr(e);var t;switch(this.encoding){case"utf16le":this.text=eAr,this.end=tAr,t=4;break;case"utf8":this.fillLast=Jxr,t=4;break;case"base64":this.text=rAr,this.end=nAr,t=3;break;default:this.write=iAr,this.end=sAr;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=xH.allocUnsafe(t);}k_.prototype.write=function(e){if(e.length===0)return "";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return "";r=this.lastNeed,this.lastNeed=0;}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};k_.prototype.end=Zxr;k_.prototype.text=Qxr;k_.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length;};function _H(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Xxr(e,t,r){var n=t.length-1;if(n<r)return 0;var i=_H(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=_H(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=_H(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function zxr(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Jxr(e){var t=this.lastTotal-this.lastNeed,r=zxr(this,e);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length;}function Qxr(e,t){var r=Xxr(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function Zxr(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function eAr(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function tAr(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function rAr(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function nAr(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function iAr(e){return e.toString(this.encoding)}function sAr(e){return e&&e.length?this.write(e):""}});var bH=chunkTKGT252T_js.c((_yn,zke)=>{var AT=Zc();zke.exports=Dn;var aAr=fH(),B_;Dn.ReadableState=$ke;chunkTKGT252T_js.a("events").EventEmitter;var Vke=function(e,t){return e.listeners(t).length},IH=hH(),j_=OD().Buffer,oAr=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function uAr(e){return j_.from(e)}function lAr(e){return j_.isBuffer(e)||e instanceof oAr}var Hke=Object.create(Au());Hke.inherits=chunkHZVCNUTP_js.M();var AH=chunkTKGT252T_js.a("util"),Yr=void 0;AH&&AH.debuglog?Yr=AH.debuglog("stream"):Yr=function(){};var cAr=Eke(),Gke=yH(),xT;Hke.inherits(Dn,IH);var PH=["error","close","destroy","pause","resume"];function pAr(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):aAr(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]];}function $ke(e,t){B_=B_||Em(),e=e||{};var r=t instanceof B_;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new cAr,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(xT||(xT=F_().StringDecoder),this.decoder=new xT(e.encoding),this.encoding=e.encoding);}function Dn(e){if(B_=B_||Em(),!(this instanceof Dn))return new Dn(e);this._readableState=new $ke(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),IH.call(this);}Object.defineProperty(Dn.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e);}});Dn.prototype.destroy=Gke.destroy;Dn.prototype._undestroy=Gke.undestroy;Dn.prototype._destroy=function(e,t){this.push(null),t(e);};Dn.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=j_.from(e,t),t=""),n=!0),Kke(this,e,t,!1,n)};Dn.prototype.unshift=function(e){return Kke(this,e,null,!0,!1)};function Kke(e,t,r,n,i){var s=e._readableState;if(t===null)s.reading=!1,mAr(e,s);else {var a;i||(a=fAr(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==j_.prototype&&(t=uAr(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):CH(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?CH(e,s,t,!1):Yke(e,s)):CH(e,s,t,!1))):n||(s.reading=!1);}return hAr(s)}function CH(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&jD(e)),Yke(e,t);}function fAr(e,t){var r;return !lAr(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function hAr(e){return !e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Dn.prototype.isPaused=function(){return this._readableState.flowing===!1};Dn.prototype.setEncoding=function(e){return xT||(xT=F_().StringDecoder),this._readableState.decoder=new xT(e),this._readableState.encoding=e,this};var jke=8388608;function dAr(e){return e>=jke?e=jke:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Uke(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=dAr(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Dn.prototype.read=function(e){Yr("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Yr("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?wH(this):jD(this),null;if(e=Uke(e,t),e===0&&t.ended)return t.length===0&&wH(this),null;var n=t.needReadable;Yr("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,Yr("length less than watermark",n)),t.ended||t.reading?(n=!1,Yr("reading or ended",n)):n&&(Yr("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Uke(r,t)));var i;return e>0?i=Wke(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&wH(this)),i!==null&&this.emit("data",i),i};function mAr(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length);}t.ended=!0,jD(e);}}function jD(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Yr("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?AT.nextTick(qke,e):qke(e));}function qke(e){Yr("emit readable"),e.emit("readable"),OH(e);}function Yke(e,t){t.readingMore||(t.readingMore=!0,AT.nextTick(yAr,e,t));}function yAr(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Yr("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1;}Dn.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"));};Dn.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,Yr("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?o:y;n.endEmitted?AT.nextTick(s):r.once("end",s),e.on("unpipe",a);function a(g,v){Yr("onunpipe"),g===r&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,c());}function o(){Yr("onend"),e.end();}var u=gAr(r);e.on("drain",u);var l=!1;function c(){Yr("cleanup"),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",y),r.removeListener("data",h),l=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u();}var p=!1;r.on("data",h);function h(g){Yr("ondata"),p=!1;var v=e.write(g);v===!1&&!p&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Xke(n.pipes,e)!==-1)&&!l&&(Yr("false write response, pause",n.awaitDrain),n.awaitDrain++,p=!0),r.pause());}function f(g){Yr("onerror",g),y(),e.removeListener("error",f),Vke(e,"error")===0&&e.emit("error",g);}pAr(e,"error",f);function d(){e.removeListener("finish",m),y();}e.once("close",d);function m(){Yr("onfinish"),e.removeListener("close",d),y();}e.once("finish",m);function y(){Yr("unpipe"),r.unpipe(e);}return e.emit("pipe",r),n.flowing||(Yr("pipe resume"),r.resume()),e};function gAr(e){return function(){var t=e._readableState;Yr("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Vke(e,"data")&&(t.flowing=!0,OH(e));}}Dn.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Xke(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Dn.prototype.on=function(e,t){var r=IH.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&jD(this):AT.nextTick(SAr,this));}return r};Dn.prototype.addListener=Dn.prototype.on;function SAr(e){Yr("readable nexttick read 0"),e.read(0);}Dn.prototype.resume=function(){var e=this._readableState;return e.flowing||(Yr("resume"),e.flowing=!0,TAr(this,e)),this};function TAr(e,t){t.resumeScheduled||(t.resumeScheduled=!0,AT.nextTick(EAr,e,t));}function EAr(e,t){t.reading||(Yr("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),OH(e),t.flowing&&!t.reading&&e.read(0);}Dn.prototype.pause=function(){return Yr("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Yr("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function OH(e){var t=e._readableState;for(Yr("flow",t.flowing);t.flowing&&e.read()!==null;);}Dn.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Yr("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&t.push(a);}t.push(null);}),e.on("data",function(a){if(Yr("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var o=t.push(a);o||(n=!0,e.pause());}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<PH.length;s++)e.on(PH[s],this.emit.bind(this,PH[s]));return this._read=function(a){Yr("wrapped _read",a),n&&(n=!1,e.resume());},this};Object.defineProperty(Dn.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Dn._fromList=Wke;function Wke(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=bAr(e,t.buffer,t.decoder),r}function bAr(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?vAr(e,t):_Ar(e,t),n}function vAr(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var s=r.data,a=e>s.length?s.length:e;if(a===s.length?i+=s:i+=s.slice(0,e),e-=a,e===0){a===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(a));break}++n;}return t.length-=n,i}function _Ar(e,t){var r=j_.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var s=n.data,a=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,a),e-=a,e===0){a===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(a));break}++i;}return t.length-=i,r}function wH(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,AT.nextTick(xAr,t,e));}function xAr(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"));}function Xke(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}});var DH=chunkTKGT252T_js.c((xyn,Zke)=>{Zke.exports=np;var UD=Em(),Qke=Object.create(Au());Qke.inherits=chunkHZVCNUTP_js.M();Qke.inherits(np,UD);function AAr(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark);}function np(e){if(!(this instanceof np))return new np(e);UD.call(this,e),this._transformState={afterTransform:AAr.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",PAr);}function PAr(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){Jke(e,t,r);}):Jke(this,null,null);}np.prototype.push=function(e,t){return this._transformState.needTransform=!1,UD.prototype.push.call(this,e,t)};np.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};np.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark);}};np.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0;};np.prototype._destroy=function(e,t){var r=this;UD.prototype._destroy.call(this,e,function(n){t(n),r.emit("close");});};function Jke(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var n2e=chunkTKGT252T_js.c((Ayn,r2e)=>{r2e.exports=U_;var e2e=DH(),t2e=Object.create(Au());t2e.inherits=chunkHZVCNUTP_js.M();t2e.inherits(U_,e2e);function U_(e){if(!(this instanceof U_))return new U_(e);e2e.call(this,e);}U_.prototype._transform=function(e,t,r){r(null,e);};});var i2e=chunkTKGT252T_js.c((ts,qD)=>{var Cl=chunkTKGT252T_js.a("stream");process.env.READABLE_STREAM==="disable"&&Cl?(qD.exports=Cl,ts=qD.exports=Cl.Readable,ts.Readable=Cl.Readable,ts.Writable=Cl.Writable,ts.Duplex=Cl.Duplex,ts.Transform=Cl.Transform,ts.PassThrough=Cl.PassThrough,ts.Stream=Cl):(ts=qD.exports=bH(),ts.Stream=Cl||ts,ts.Readable=ts,ts.Writable=SH(),ts.Duplex=Em(),ts.Transform=DH(),ts.PassThrough=n2e());});var a2e=chunkTKGT252T_js.c((Pyn,s2e)=>{s2e.exports=i2e().PassThrough;});var NH=chunkTKGT252T_js.c((Cyn,l2e)=>{var o2e=chunkTKGT252T_js.a("util"),GD=a2e();l2e.exports={Readable:VD,Writable:HD};o2e.inherits(VD,GD);o2e.inherits(HD,GD);function u2e(e,t,r){e[t]=function(){return delete e[t],r.apply(this,arguments),this[t].apply(this,arguments)};}function VD(e,t){if(!(this instanceof VD))return new VD(e,t);GD.call(this,t),u2e(this,"_read",function(){var r=e.call(this,t),n=this.emit.bind(this,"error");r.on("error",n),r.pipe(this);}),this.emit("readable");}function HD(e,t){if(!(this instanceof HD))return new HD(e,t);GD.call(this,t),u2e(this,"_write",function(){var r=e.call(this,t),n=this.emit.bind(this,"error");r.on("error",n),this.pipe(r);}),this.emit("writable");}});var $D=chunkTKGT252T_js.c((wyn,c2e)=>{c2e.exports=function(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return "/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//");}var s=e.split(/[/\\]+/);return t!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")};});var kH=chunkTKGT252T_js.c((Iyn,g2e)=>{var f2e=9007199254740991,CAr="[object Arguments]",wAr="[object Function]",IAr="[object GeneratorFunction]",OAr=/^(?:0|[1-9]\d*)$/;function h2e(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function DAr(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var q_=Object.prototype,V_=q_.hasOwnProperty,d2e=q_.toString,NAr=q_.propertyIsEnumerable,p2e=Math.max;function RAr(e,t){var r=HAr(e)||VAr(e)?DAr(e.length,String):[],n=r.length,i=!!n;for(var s in e)(t||V_.call(e,s))&&!(i&&(s=="length"||y2e(s,n)))&&r.push(s);return r}function MAr(e,t,r,n){return e===void 0||RH(e,q_[r])&&!V_.call(n,r)?t:e}function LAr(e,t,r){var n=e[t];(!(V_.call(e,t)&&RH(n,r))||r===void 0&&!(t in e))&&(e[t]=r);}function kAr(e){if(!LH(e))return qAr(e);var t=UAr(e),r=[];for(var n in e)n=="constructor"&&(t||!V_.call(e,n))||r.push(n);return r}function m2e(e,t){return t=p2e(t===void 0?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=p2e(r.length-t,0),s=Array(i);++n<i;)s[n]=r[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=r[n];return a[t]=s,h2e(e,this,a)}}function FAr(e,t,r,n){r||(r={});for(var i=-1,s=t.length;++i<s;){var a=t[i],o=n?n(r[a],e[a],a,r,e):void 0;LAr(r,a,o===void 0?e[a]:o);}return r}function BAr(e){return m2e(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,a&&jAr(r[0],r[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var o=r[n];o&&e(t,o,n,s);}return t})}function y2e(e,t){return t=t??f2e,!!t&&(typeof e=="number"||OAr.test(e))&&e>-1&&e%1==0&&e<t}function jAr(e,t,r){if(!LH(r))return !1;var n=typeof t;return (n=="number"?MH(r)&&y2e(t,r.length):n=="string"&&t in r)?RH(r[t],e):!1}function UAr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||q_;return e===r}function qAr(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}function RH(e,t){return e===t||e!==e&&t!==t}function VAr(e){return GAr(e)&&V_.call(e,"callee")&&(!NAr.call(e,"callee")||d2e.call(e)==CAr)}var HAr=Array.isArray;function MH(e){return e!=null&&KAr(e.length)&&!$Ar(e)}function GAr(e){return YAr(e)&&MH(e)}function $Ar(e){var t=LH(e)?d2e.call(e):"";return t==wAr||t==IAr}function KAr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f2e}function LH(e){var t=typeof e;return !!e&&(t=="object"||t=="function")}function YAr(e){return !!e&&typeof e=="object"}var WAr=BAr(function(e,t,r,n){FAr(t,zAr(t),e,n);}),XAr=m2e(function(e){return e.push(void 0,MAr),h2e(WAr,void 0,e)});function zAr(e){return MH(e)?RAr(e,!0):kAr(e)}g2e.exports=XAr;});var FH=chunkTKGT252T_js.c((Oyn,S2e)=>{S2e.exports=chunkTKGT252T_js.a("stream");});var YD=chunkTKGT252T_js.c((BH,E2e)=>{var KD=chunkTKGT252T_js.a("buffer"),ip=KD.Buffer;function T2e(e,t){for(var r in e)t[r]=e[r];}ip.from&&ip.alloc&&ip.allocUnsafe&&ip.allocUnsafeSlow?E2e.exports=KD:(T2e(KD,BH),BH.Buffer=PT);function PT(e,t,r){return ip(e,t,r)}T2e(ip,PT);PT.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ip(e,t,r)};PT.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ip(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};PT.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ip(e)};PT.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return KD.SlowBuffer(e)};});var v2e=chunkTKGT252T_js.c((Dyn,jH)=>{function JAr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b2e=YD().Buffer,H_=chunkTKGT252T_js.a("util");function QAr(e,t,r){e.copy(t,r);}jH.exports=function(){function e(){JAr(this,e),this.head=null,this.tail=null,this.length=0;}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length;},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length;},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0;},e.prototype.join=function(r){if(this.length===0)return "";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i},e.prototype.concat=function(r){if(this.length===0)return b2e.alloc(0);for(var n=b2e.allocUnsafe(r>>>0),i=this.head,s=0;i;)QAr(i.data,n,s),s+=i.data.length,i=i.next;return n},e}();H_&&H_.inspect&&H_.inspect.custom&&(jH.exports.prototype[H_.inspect.custom]=function(){var e=H_.inspect({length:this.length});return this.constructor.name+" "+e});});var UH=chunkTKGT252T_js.c((Nyn,_2e)=>{var WD=Zc();function ZAr(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,WD.nextTick(XD,this,e)):WD.nextTick(XD,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,WD.nextTick(XD,r,s)):WD.nextTick(XD,r,s):t&&t(s);}),this)}function ePr(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1);}function XD(e,t){e.emit("error",t);}_2e.exports={destroy:ZAr,undestroy:ePr};});var VH=chunkTKGT252T_js.c((Ryn,D2e)=>{var bm=Zc();D2e.exports=_i;function A2e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){SPr(t,e);};}var tPr=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:bm.nextTick,CT;_i.WritableState=$_;var P2e=Object.create(Au());P2e.inherits=chunkHZVCNUTP_js.M();var rPr={deprecate:chunkHZVCNUTP_js.N()},C2e=FH(),JD=YD().Buffer,nPr=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function iPr(e){return JD.from(e)}function sPr(e){return JD.isBuffer(e)||e instanceof nPr}var w2e=UH();P2e.inherits(_i,C2e);function aPr(){}function $_(e,t){CT=CT||vm(),e=e||{};var r=t instanceof CT;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){hPr(t,o);},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new A2e(this);}$_.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty($_.prototype,"buffer",{get:rPr.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")});}catch{}})();var zD;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(zD=Function.prototype[Symbol.hasInstance],Object.defineProperty(_i,Symbol.hasInstance,{value:function(e){return zD.call(this,e)?!0:this!==_i?!1:e&&e._writableState instanceof $_}})):zD=function(e){return e instanceof this};function _i(e){if(CT=CT||vm(),!zD.call(_i,this)&&!(this instanceof CT))return new _i(e);this._writableState=new $_(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),C2e.call(this);}_i.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"));};function oPr(e,t){var r=new Error("write after end");e.emit("error",r),bm.nextTick(t,r);}function uPr(e,t,r,n){var i=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),bm.nextTick(n,s),i=!1),i}_i.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&sPr(e);return s&&!JD.isBuffer(e)&&(e=iPr(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=aPr),n.ended?oPr(this,r):(s||uPr(this,n,e,r))&&(n.pendingcb++,i=cPr(this,n,s,e,t,r)),i};_i.prototype.cork=function(){var e=this._writableState;e.corked++;};_i.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&I2e(this,e));};_i.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function lPr(e,t,r){return !e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=JD.from(t,r)),t}Object.defineProperty(_i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function cPr(e,t,r,n,i,s){if(!r){var a=lPr(t,n,i);n!==a&&(r=!0,i="buffer",n=a);}var o=t.objectMode?1:n.length;t.length+=o;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1;}else qH(e,t,!1,o,n,i,s);return u}function qH(e,t,r,n,i,s,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1;}function pPr(e,t,r,n,i){--t.pendingcb,r?(bm.nextTick(i,n),bm.nextTick(G_,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),G_(e,t));}function fPr(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0;}function hPr(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(fPr(r),t)pPr(e,r,n,t,i);else {var s=O2e(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&I2e(e,r),n?tPr(x2e,e,r,s,i):x2e(e,r,s,i);}}function x2e(e,t,r,n){r||dPr(e,t),t.pendingcb--,n(),G_(e,t);}function dPr(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));}function I2e(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,o=!0;r;)i[a]=r,r.isBuf||(o=!1),r=r.next,a+=1;i.allBuffers=o,qH(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new A2e(t),t.bufferedRequestCount=0;}else {for(;r;){var u=r.chunk,l=r.encoding,c=r.callback,p=t.objectMode?1:u.length;if(qH(e,t,!1,p,u,l,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null);}t.bufferedRequest=r,t.bufferProcessing=!1;}_i.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"));};_i.prototype._writev=null;_i.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||gPr(this,n,r);};function O2e(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function mPr(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),G_(e,t);});}function yPr(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,bm.nextTick(mPr,e,t)):(t.prefinished=!0,e.emit("prefinish")));}function G_(e,t){var r=O2e(t);return r&&(yPr(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function gPr(e,t,r){t.ending=!0,G_(e,t),r&&(t.finished?bm.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1;}function SPr(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next;}t.corkedRequestsFree.next=e;}Object.defineProperty(_i.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e);}});_i.prototype.destroy=w2e.destroy;_i.prototype._undestroy=w2e.undestroy;_i.prototype._destroy=function(e,t){this.end(),t(e);};});var vm=chunkTKGT252T_js.c((Myn,L2e)=>{var N2e=Zc(),TPr=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};L2e.exports=sp;var R2e=Object.create(Au());R2e.inherits=chunkHZVCNUTP_js.M();var M2e=$H(),GH=VH();R2e.inherits(sp,M2e);for(HH=TPr(GH.prototype),QD=0;QD<HH.length;QD++)ZD=HH[QD],sp.prototype[ZD]||(sp.prototype[ZD]=GH.prototype[ZD]);var HH,ZD,QD;function sp(e){if(!(this instanceof sp))return new sp(e);M2e.call(this,e),GH.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",EPr);}Object.defineProperty(sp.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function EPr(){this.allowHalfOpen||this._writableState.ended||N2e.nextTick(bPr,this);}function bPr(e){e.end();}Object.defineProperty(sp.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e);}});sp.prototype._destroy=function(e,t){this.push(null),this.end(),N2e.nextTick(t,e);};});var $H=chunkTKGT252T_js.c((kyn,Y2e)=>{var IT=Zc();Y2e.exports=Nn;var vPr=fH(),K_;Nn.ReadableState=V2e;chunkTKGT252T_js.a("events").EventEmitter;var j2e=function(e,t){return e.listeners(t).length},zH=FH(),Y_=YD().Buffer,_Pr=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function xPr(e){return Y_.from(e)}function APr(e){return Y_.isBuffer(e)||e instanceof _Pr}var U2e=Object.create(Au());U2e.inherits=chunkHZVCNUTP_js.M();var KH=chunkTKGT252T_js.a("util"),Wr=void 0;KH&&KH.debuglog?Wr=KH.debuglog("stream"):Wr=function(){};var PPr=v2e(),q2e=UH(),wT;U2e.inherits(Nn,zH);var YH=["error","close","destroy","pause","resume"];function CPr(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):vPr(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]];}function V2e(e,t){K_=K_||vm(),e=e||{};var r=t instanceof K_;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,s=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new PPr,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(wT||(wT=F_().StringDecoder),this.decoder=new wT(e.encoding),this.encoding=e.encoding);}function Nn(e){if(K_=K_||vm(),!(this instanceof Nn))return new Nn(e);this._readableState=new V2e(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),zH.call(this);}Object.defineProperty(Nn.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e);}});Nn.prototype.destroy=q2e.destroy;Nn.prototype._undestroy=q2e.undestroy;Nn.prototype._destroy=function(e,t){this.push(null),t(e);};Nn.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Y_.from(e,t),t=""),n=!0),H2e(this,e,t,!1,n)};Nn.prototype.unshift=function(e){return H2e(this,e,null,!0,!1)};function H2e(e,t,r,n,i){var s=e._readableState;if(t===null)s.reading=!1,DPr(e,s);else {var a;i||(a=wPr(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Y_.prototype&&(t=xPr(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):WH(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?WH(e,s,t,!1):G2e(e,s)):WH(e,s,t,!1))):n||(s.reading=!1);}return IPr(s)}function WH(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&eN(e)),G2e(e,t);}function wPr(e,t){var r;return !APr(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function IPr(e){return !e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Nn.prototype.isPaused=function(){return this._readableState.flowing===!1};Nn.prototype.setEncoding=function(e){return wT||(wT=F_().StringDecoder),this._readableState.decoder=new wT(e),this._readableState.encoding=e,this};var k2e=8388608;function OPr(e){return e>=k2e?e=k2e:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function F2e(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=OPr(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Nn.prototype.read=function(e){Wr("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Wr("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?XH(this):eN(this),null;if(e=F2e(e,t),e===0&&t.ended)return t.length===0&&XH(this),null;var n=t.needReadable;Wr("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,Wr("length less than watermark",n)),t.ended||t.reading?(n=!1,Wr("reading or ended",n)):n&&(Wr("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=F2e(r,t)));var i;return e>0?i=$2e(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&XH(this)),i!==null&&this.emit("data",i),i};function DPr(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length);}t.ended=!0,eN(e);}}function eN(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Wr("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?IT.nextTick(B2e,e):B2e(e));}function B2e(e){Wr("emit readable"),e.emit("readable"),JH(e);}function G2e(e,t){t.readingMore||(t.readingMore=!0,IT.nextTick(NPr,e,t));}function NPr(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Wr("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1;}Nn.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"));};Nn.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,Wr("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?o:y;n.endEmitted?IT.nextTick(s):r.once("end",s),e.on("unpipe",a);function a(g,v){Wr("onunpipe"),g===r&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,c());}function o(){Wr("onend"),e.end();}var u=RPr(r);e.on("drain",u);var l=!1;function c(){Wr("cleanup"),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",y),r.removeListener("data",h),l=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u();}var p=!1;r.on("data",h);function h(g){Wr("ondata"),p=!1;var v=e.write(g);v===!1&&!p&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&K2e(n.pipes,e)!==-1)&&!l&&(Wr("false write response, pause",n.awaitDrain),n.awaitDrain++,p=!0),r.pause());}function f(g){Wr("onerror",g),y(),e.removeListener("error",f),j2e(e,"error")===0&&e.emit("error",g);}CPr(e,"error",f);function d(){e.removeListener("finish",m),y();}e.once("close",d);function m(){Wr("onfinish"),e.removeListener("close",d),y();}e.once("finish",m);function y(){Wr("unpipe"),r.unpipe(e);}return e.emit("pipe",r),n.flowing||(Wr("pipe resume"),r.resume()),e};function RPr(e){return function(){var t=e._readableState;Wr("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&j2e(e,"data")&&(t.flowing=!0,JH(e));}}Nn.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=K2e(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Nn.prototype.on=function(e,t){var r=zH.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&eN(this):IT.nextTick(MPr,this));}return r};Nn.prototype.addListener=Nn.prototype.on;function MPr(e){Wr("readable nexttick read 0"),e.read(0);}Nn.prototype.resume=function(){var e=this._readableState;return e.flowing||(Wr("resume"),e.flowing=!0,LPr(this,e)),this};function LPr(e,t){t.resumeScheduled||(t.resumeScheduled=!0,IT.nextTick(kPr,e,t));}function kPr(e,t){t.reading||(Wr("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),JH(e),t.flowing&&!t.reading&&e.read(0);}Nn.prototype.pause=function(){return Wr("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Wr("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function JH(e){var t=e._readableState;for(Wr("flow",t.flowing);t.flowing&&e.read()!==null;);}Nn.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Wr("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&t.push(a);}t.push(null);}),e.on("data",function(a){if(Wr("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var o=t.push(a);o||(n=!0,e.pause());}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<YH.length;s++)e.on(YH[s],this.emit.bind(this,YH[s]));return this._read=function(a){Wr("wrapped _read",a),n&&(n=!1,e.resume());},this};Object.defineProperty(Nn.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Nn._fromList=$2e;function $2e(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=FPr(e,t.buffer,t.decoder),r}function FPr(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?BPr(e,t):jPr(e,t),n}function BPr(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var s=r.data,a=e>s.length?s.length:e;if(a===s.length?i+=s:i+=s.slice(0,e),e-=a,e===0){a===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(a));break}++n;}return t.length-=n,i}function jPr(e,t){var r=Y_.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var s=n.data,a=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,a),e-=a,e===0){a===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(a));break}++i;}return t.length-=i,r}function XH(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,IT.nextTick(UPr,t,e));}function UPr(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"));}function K2e(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}});var QH=chunkTKGT252T_js.c((Fyn,z2e)=>{z2e.exports=ap;var tN=vm(),X2e=Object.create(Au());X2e.inherits=chunkHZVCNUTP_js.M();X2e.inherits(ap,tN);function qPr(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark);}function ap(e){if(!(this instanceof ap))return new ap(e);tN.call(this,e),this._transformState={afterTransform:qPr.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",VPr);}function VPr(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){W2e(e,t,r);}):W2e(this,null,null);}ap.prototype.push=function(e,t){return this._transformState.needTransform=!1,tN.prototype.push.call(this,e,t)};ap.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};ap.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark);}};ap.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0;};ap.prototype._destroy=function(e,t){var r=this;tN.prototype._destroy.call(this,e,function(n){t(n),r.emit("close");});};function W2e(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var eFe=chunkTKGT252T_js.c((Byn,Z2e)=>{Z2e.exports=W_;var J2e=QH(),Q2e=Object.create(Au());Q2e.inherits=chunkHZVCNUTP_js.M();Q2e.inherits(W_,J2e);function W_(e){if(!(this instanceof W_))return new W_(e);J2e.call(this,e);}W_.prototype._transform=function(e,t,r){r(null,e);};});var tFe=chunkTKGT252T_js.c((rs,rN)=>{var wl=chunkTKGT252T_js.a("stream");process.env.READABLE_STREAM==="disable"&&wl?(rN.exports=wl,rs=rN.exports=wl.Readable,rs.Readable=wl.Readable,rs.Writable=wl.Writable,rs.Duplex=wl.Duplex,rs.Transform=wl.Transform,rs.PassThrough=wl.PassThrough,rs.Stream=wl):(rs=rN.exports=$H(),rs.Stream=wl||rs,rs.Readable=rs,rs.Writable=VH(),rs.Duplex=vm(),rs.Transform=QH(),rs.PassThrough=eFe());});var eG=chunkTKGT252T_js.c((jyn,aFe)=>{var HPr=9007199254740991,GPr="[object Arguments]",$Pr="[object Function]",KPr="[object GeneratorFunction]",YPr=typeof global=="object"&&global&&global.Object===Object&&global,WPr=typeof self=="object"&&self&&self.Object===Object&&self,XPr=YPr||WPr||Function("return this")();function zPr(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ZH=Object.prototype,JPr=ZH.hasOwnProperty,iFe=ZH.toString,rFe=XPr.Symbol,QPr=ZH.propertyIsEnumerable,nFe=rFe?rFe.isConcatSpreadable:void 0;function sFe(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=ZPr),i||(i=[]);++s<a;){var o=e[s];t>0&&r(o)?t>1?sFe(o,t-1,r,n,i):zPr(i,o):n||(i[i.length]=o);}return i}function ZPr(e){return rCr(e)||tCr(e)||!!(nFe&&e&&e[nFe])}function eCr(e){var t=e?e.length:0;return t?sFe(e,1):[]}function tCr(e){return iCr(e)&&JPr.call(e,"callee")&&(!QPr.call(e,"callee")||iFe.call(e)==GPr)}var rCr=Array.isArray;function nCr(e){return e!=null&&aCr(e.length)&&!sCr(e)}function iCr(e){return uCr(e)&&nCr(e)}function sCr(e){var t=oCr(e)?iFe.call(e):"";return t==$Pr||t==KPr}function aCr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=HPr}function oCr(e){var t=typeof e;return !!e&&(t=="object"||t=="function")}function uCr(e){return !!e&&typeof e=="object"}aFe.exports=eCr;});var aG=chunkTKGT252T_js.c((Uyn,gFe)=>{var lCr=200,nG="__lodash_hash_undefined__",cCr=9007199254740991,pCr="[object Arguments]",fCr="[object Function]",hCr="[object GeneratorFunction]",dCr=/[\\^$.*+?()[\]{}|]/g,mCr=/^\[object .+?Constructor\]$/,yCr=typeof global=="object"&&global&&global.Object===Object&&global,gCr=typeof self=="object"&&self&&self.Object===Object&&self,iG=yCr||gCr||Function("return this")();function SCr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function TCr(e,t){var r=e?e.length:0;return !!r&&xCr(e,t,0)>-1}function ECr(e,t,r){for(var n=-1,i=e?e.length:0;++n<i;)if(r(t,e[n]))return !0;return !1}function bCr(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function vCr(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function _Cr(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return -1}function xCr(e,t,r){if(t!==t)return _Cr(e,ACr,r);for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}function ACr(e){return e!==e}function PCr(e){return function(t){return e(t)}}function CCr(e,t){return e.has(t)}function wCr(e,t){return e==null?void 0:e[t]}function ICr(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"");}catch{}return t}var OCr=Array.prototype,DCr=Function.prototype,sG=Object.prototype,tG=iG["__core-js_shared__"],oFe=function(){var e=/[^.]+$/.exec(tG&&tG.keys&&tG.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pFe=DCr.toString,iN=sG.hasOwnProperty,fFe=sG.toString,NCr=RegExp("^"+pFe.call(iN).replace(dCr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),uFe=iG.Symbol,RCr=sG.propertyIsEnumerable,MCr=OCr.splice,lFe=uFe?uFe.isConcatSpreadable:void 0,cFe=Math.max,LCr=dFe(iG,"Map"),X_=dFe(Object,"create");function _m(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1]);}}function kCr(){this.__data__=X_?X_(null):{};}function FCr(e){return this.has(e)&&delete this.__data__[e]}function BCr(e){var t=this.__data__;if(X_){var r=t[e];return r===nG?void 0:r}return iN.call(t,e)?t[e]:void 0}function jCr(e){var t=this.__data__;return X_?t[e]!==void 0:iN.call(t,e)}function UCr(e,t){var r=this.__data__;return r[e]=X_&&t===void 0?nG:t,this}_m.prototype.clear=kCr;_m.prototype.delete=FCr;_m.prototype.get=BCr;_m.prototype.has=jCr;_m.prototype.set=UCr;function OT(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1]);}}function qCr(){this.__data__=[];}function VCr(e){var t=this.__data__,r=sN(t,e);if(r<0)return !1;var n=t.length-1;return r==n?t.pop():MCr.call(t,r,1),!0}function HCr(e){var t=this.__data__,r=sN(t,e);return r<0?void 0:t[r][1]}function GCr(e){return sN(this.__data__,e)>-1}function $Cr(e,t){var r=this.__data__,n=sN(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}OT.prototype.clear=qCr;OT.prototype.delete=VCr;OT.prototype.get=HCr;OT.prototype.has=GCr;OT.prototype.set=$Cr;function DT(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1]);}}function KCr(){this.__data__={hash:new _m,map:new(LCr||OT),string:new _m};}function YCr(e){return aN(this,e).delete(e)}function WCr(e){return aN(this,e).get(e)}function XCr(e){return aN(this,e).has(e)}function zCr(e,t){return aN(this,e).set(e,t),this}DT.prototype.clear=KCr;DT.prototype.delete=YCr;DT.prototype.get=WCr;DT.prototype.has=XCr;DT.prototype.set=zCr;function nN(e){var t=-1,r=e?e.length:0;for(this.__data__=new DT;++t<r;)this.add(e[t]);}function JCr(e){return this.__data__.set(e,nG),this}function QCr(e){return this.__data__.has(e)}nN.prototype.add=nN.prototype.push=JCr;nN.prototype.has=QCr;function sN(e,t){for(var r=e.length;r--;)if(o1r(e[r][0],t))return r;return -1}function ZCr(e,t,r,n){var i=-1,s=TCr,a=!0,o=e.length,u=[],l=t.length;if(!o)return u;r&&(t=bCr(t,PCr(r))),n?(s=ECr,a=!1):t.length>=lCr&&(s=CCr,a=!1,t=new nN(t));e:for(;++i<o;){var c=e[i],p=r?r(c):c;if(c=n||c!==0?c:0,a&&p===p){for(var h=l;h--;)if(t[h]===p)continue e;u.push(c);}else s(t,p,n)||u.push(c);}return u}function hFe(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=r1r),i||(i=[]);++s<a;){var o=e[s];t>0&&r(o)?t>1?hFe(o,t-1,r,n,i):vCr(i,o):n||(i[i.length]=o);}return i}function e1r(e){if(!yFe(e)||i1r(e))return !1;var t=mFe(e)||ICr(e)?NCr:mCr;return t.test(s1r(e))}function t1r(e,t){return t=cFe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=cFe(r.length-t,0),s=Array(i);++n<i;)s[n]=r[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=r[n];return a[t]=s,SCr(e,this,a)}}function aN(e,t){var r=e.__data__;return n1r(t)?r[typeof t=="string"?"string":"hash"]:r.map}function dFe(e,t){var r=wCr(e,t);return e1r(r)?r:void 0}function r1r(e){return l1r(e)||u1r(e)||!!(lFe&&e&&e[lFe])}function n1r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function i1r(e){return !!oFe&&oFe in e}function s1r(e){if(e!=null){try{return pFe.call(e)}catch{}try{return e+""}catch{}}return ""}var a1r=t1r(function(e,t){return rG(e)?ZCr(e,hFe(t,1,rG,!0)):[]});function o1r(e,t){return e===t||e!==e&&t!==t}function u1r(e){return rG(e)&&iN.call(e,"callee")&&(!RCr.call(e,"callee")||fFe.call(e)==pCr)}var l1r=Array.isArray;function c1r(e){return e!=null&&p1r(e.length)&&!mFe(e)}function rG(e){return f1r(e)&&c1r(e)}function mFe(e){var t=yFe(e)?fFe.call(e):"";return t==fCr||t==hCr}function p1r(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=cCr}function yFe(e){var t=typeof e;return !!e&&(t=="object"||t=="function")}function f1r(e){return !!e&&typeof e=="object"}gFe.exports=a1r;});var oG=chunkTKGT252T_js.c((qyn,EFe)=>{var h1r="[object Object]";function d1r(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"");}catch{}return t}function m1r(e,t){return function(r){return e(t(r))}}var y1r=Function.prototype,SFe=Object.prototype,TFe=y1r.toString,g1r=SFe.hasOwnProperty,S1r=TFe.call(Object),T1r=SFe.toString,E1r=m1r(Object.getPrototypeOf,Object);function b1r(e){return !!e&&typeof e=="object"}function v1r(e){if(!b1r(e)||T1r.call(e)!=h1r||d1r(e))return !1;var t=E1r(e);if(t===null)return !0;var r=g1r.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&TFe.call(r)==S1r}EFe.exports=v1r;});var bFe=chunkTKGT252T_js.c(uG=>{var xm=chunkTKGT252T_js.a("path"),hh=process.platform==="win32",fh=chunkTKGT252T_js.a("fs"),_1r=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function x1r(){var e;if(_1r){var t=new Error;e=r;}else e=n;return e;function r(i){i&&(t.message=i.message,i=t,n(i));}function n(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var s="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(s):console.error(s);}}}}function A1r(e){return typeof e=="function"?e:x1r()}xm.normalize;hh?op=/(.*?)(?:[\/\\]+|$)/g:op=/(.*?)(?:[\/]+|$)/g;var op;hh?z_=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:z_=/^[\/]*/;var z_;uG.realpathSync=function(t,r){if(t=xm.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var n=t,i={},s={},a,o,u,l;c();function c(){var y=z_.exec(t);a=y[0].length,o=y[0],u=y[0],l="",hh&&!s[u]&&(fh.lstatSync(u),s[u]=!0);}for(;a<t.length;){op.lastIndex=a;var p=op.exec(t);if(l=o,o+=p[0],u=l+p[1],a=op.lastIndex,!(s[u]||r&&r[u]===u)){var h;if(r&&Object.prototype.hasOwnProperty.call(r,u))h=r[u];else {var f=fh.lstatSync(u);if(!f.isSymbolicLink()){s[u]=!0,r&&(r[u]=u);continue}var d=null;if(!hh){var m=f.dev.toString(32)+":"+f.ino.toString(32);i.hasOwnProperty(m)&&(d=i[m]);}d===null&&(fh.statSync(u),d=fh.readlinkSync(u)),h=xm.resolve(l,d),r&&(r[u]=h),hh||(i[m]=d);}t=xm.resolve(h,t.slice(a)),c();}}return r&&(r[n]=t),t};uG.realpath=function(t,r,n){if(typeof n!="function"&&(n=A1r(r),r=null),t=xm.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(n.bind(null,null,r[t]));var i=t,s={},a={},o,u,l,c;p();function p(){var y=z_.exec(t);o=y[0].length,u=y[0],l=y[0],c="",hh&&!a[l]?fh.lstat(l,function(g){if(g)return n(g);a[l]=!0,h();}):process.nextTick(h);}function h(){if(o>=t.length)return r&&(r[i]=t),n(null,t);op.lastIndex=o;var y=op.exec(t);return c=u,u+=y[0],l=c+y[1],o=op.lastIndex,a[l]||r&&r[l]===l?process.nextTick(h):r&&Object.prototype.hasOwnProperty.call(r,l)?m(r[l]):fh.lstat(l,f)}function f(y,g){if(y)return n(y);if(!g.isSymbolicLink())return a[l]=!0,r&&(r[l]=l),process.nextTick(h);if(!hh){var v=g.dev.toString(32)+":"+g.ino.toString(32);if(s.hasOwnProperty(v))return d(null,s[v],l)}fh.stat(l,function(E){if(E)return n(E);fh.readlink(l,function(S,x){hh||(s[v]=x),d(S,x);});});}function d(y,g,v){if(y)return n(y);var E=xm.resolve(c,g);r&&(r[v]=E),m(E);}function m(y){t=xm.resolve(y,t.slice(o)),p();}};});var fG=chunkTKGT252T_js.c((Gyn,AFe)=>{AFe.exports=dh;dh.realpath=dh;dh.sync=pG;dh.realpathSync=pG;dh.monkeypatch=C1r;dh.unmonkeypatch=w1r;var NT=chunkTKGT252T_js.a("fs"),lG=NT.realpath,cG=NT.realpathSync,P1r=process.version,vFe=/^v[0-5]\./.test(P1r),_Fe=bFe();function xFe(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function dh(e,t,r){if(vFe)return lG(e,t,r);typeof t=="function"&&(r=t,t=null),lG(e,t,function(n,i){xFe(n)?_Fe.realpath(e,t,r):r(n,i);});}function pG(e,t){if(vFe)return cG(e,t);try{return cG(e,t)}catch(r){if(xFe(r))return _Fe.realpathSync(e,t);throw r}}function C1r(){NT.realpath=dh,NT.realpathSync=pG;}function w1r(){NT.realpath=lG,NT.realpathSync=cG;}});var CFe=chunkTKGT252T_js.c(($yn,PFe)=>{PFe.exports=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);I1r(i)?r.push.apply(r,i):r.push(i);}return r};var I1r=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};});var LFe=chunkTKGT252T_js.c((Kyn,MFe)=>{var O1r=CFe(),wFe=tH();MFe.exports=R1r;var IFe="\0SLASH"+Math.random()+"\0",OFe="\0OPEN"+Math.random()+"\0",dG="\0CLOSE"+Math.random()+"\0",DFe="\0COMMA"+Math.random()+"\0",NFe="\0PERIOD"+Math.random()+"\0";function hG(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function D1r(e){return e.split("\\\\").join(IFe).split("\\{").join(OFe).split("\\}").join(dG).split("\\,").join(DFe).split("\\.").join(NFe)}function N1r(e){return e.split(IFe).join("\\").split(OFe).join("{").split(dG).join("}").split(DFe).join(",").split(NFe).join(".")}function RFe(e){if(!e)return [""];var t=[],r=wFe("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+i+"}";var o=RFe(s);return s.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),t.push.apply(t,a),t}function R1r(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),RT(D1r(e),!0).map(N1r)):[]}function M1r(e){return "{"+e+"}"}function L1r(e){return /^-?0\d/.test(e)}function k1r(e,t){return e<=t}function F1r(e,t){return e>=t}function RT(e,t){var r=[],n=wFe("{","}",e);if(!n||/\$$/.test(n.pre))return [e];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),a=i||s,o=n.body.indexOf(",")>=0;if(!a&&!o)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+dG+n.post,RT(e)):[e];var u;if(a)u=n.body.split(/\.\./);else if(u=RFe(n.body),u.length===1&&(u=RT(u[0],!1).map(M1r),u.length===1)){var c=n.post.length?RT(n.post,!1):[""];return c.map(function(X){return n.pre+u[0]+X})}var l=n.pre,c=n.post.length?RT(n.post,!1):[""],p;if(a){var h=hG(u[0]),f=hG(u[1]),d=Math.max(u[0].length,u[1].length),m=u.length==3?Math.abs(hG(u[2])):1,y=k1r,g=f<h;g&&(m*=-1,y=F1r);var v=u.some(L1r);p=[];for(var E=h;y(E,f);E+=m){var S;if(s)S=String.fromCharCode(E),S==="\\"&&(S="");else if(S=String(E),v){var x=d-S.length;if(x>0){var b=new Array(x+1).join("0");E<0?S="-"+b+S.slice(1):S=b+S;}}p.push(S);}}else p=O1r(u,function(V){return RT(V,!1)});for(var A=0;A<p.length;A++)for(var D=0;D<c.length;D++){var P=l+p[A]+c[D];(!t||a||P)&&r.push(P);}return r}});var lN=chunkTKGT252T_js.c((Yyn,UFe)=>{UFe.exports=Ha;Ha.Minimatch=ns;var J_=function(){try{return chunkTKGT252T_js.a("path")}catch{}}()||{sep:"/"};Ha.sep=J_.sep;var gG=Ha.GLOBSTAR=ns.GLOBSTAR={},B1r=LFe(),kFe={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},mG="[^/]",yG=mG+"*?",j1r="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",U1r="(?:(?!(?:\\/|^)\\.).)*?",FFe=q1r("().*{}+?[]^$\\!");function q1r(e){return e.split("").reduce(function(t,r){return t[r]=!0,t},{})}var BFe=/\/+/;Ha.filter=V1r;function V1r(e,t){return t=t||{},function(r,n,i){return Ha(r,e,t)}}function mh(e,t){t=t||{};var r={};return Object.keys(e).forEach(function(n){r[n]=e[n];}),Object.keys(t).forEach(function(n){r[n]=t[n];}),r}Ha.defaults=function(e){if(!e||typeof e!="object"||!Object.keys(e).length)return Ha;var t=Ha,r=function(i,s,a){return t(i,s,mh(e,a))};return r.Minimatch=function(i,s){return new t.Minimatch(i,mh(e,s))},r.Minimatch.defaults=function(i){return t.defaults(mh(e,i)).Minimatch},r.filter=function(i,s){return t.filter(i,mh(e,s))},r.defaults=function(i){return t.defaults(mh(e,i))},r.makeRe=function(i,s){return t.makeRe(i,mh(e,s))},r.braceExpand=function(i,s){return t.braceExpand(i,mh(e,s))},r.match=function(n,i,s){return t.match(n,i,mh(e,s))},r};ns.defaults=function(e){return Ha.defaults(e).Minimatch};function Ha(e,t,r){return uN(t),r||(r={}),!r.nocomment&&t.charAt(0)==="#"?!1:new ns(t,r).match(e)}function ns(e,t){if(!(this instanceof ns))return new ns(e,t);uN(e),t||(t={}),e=e.trim(),!t.allowWindowsEscape&&J_.sep!=="/"&&(e=e.split(J_.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();}ns.prototype.debug=function(){};ns.prototype.make=H1r;function H1r(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}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(function(n){return n.split(BFe)}),this.debug(this.pattern,r),r=r.map(function(n,i,s){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r;}ns.prototype.parseNegate=G1r;function G1r(){var e=this.pattern,t=!1,r=this.options,n=0;if(!r.nonegate){for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t;}}Ha.braceExpand=function(e,t){return jFe(e,t)};ns.prototype.braceExpand=jFe;function jFe(e,t){return t||(this instanceof ns?t=this.options:t={}),e=typeof e>"u"?this.pattern:e,uN(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:B1r(e)}var $1r=1024*64,uN=function(e){if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>$1r)throw new TypeError("pattern is too long")};ns.prototype.parse=K1r;var oN={};function K1r(e,t){uN(e);var r=this.options;if(e==="**")if(r.noglobstar)e="*";else return gG;if(e==="")return "";var n="",i=!!r.nocase,s=!1,a=[],o=[],u,l=!1,c=-1,p=-1,h=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",f=this;function d(){if(u){switch(u){case"*":n+=yG,i=!0;break;case"?":n+=mG,i=!0;break;default:n+="\\"+u;break}f.debug("clearStateChar %j %j",u,n),u=!1;}}for(var m=0,y=e.length,g;m<y&&(g=e.charAt(m));m++){if(this.debug("%s %s %s %j",e,m,n,g),s&&FFe[g]){n+="\\"+g,s=!1;continue}switch(g){case"/":return !1;case"\\":d(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,m,n,g),l){this.debug(" in class"),g==="!"&&m===p+1&&(g="^"),n+=g;continue}f.debug("call clearStateChar %j",u),d(),u=g,r.noext&&d();continue;case"(":if(l){n+="(";continue}if(!u){n+="\\(";continue}a.push({type:u,start:m-1,reStart:n.length,open:kFe[u].open,close:kFe[u].close}),n+=u==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",u,n),u=!1;continue;case")":if(l||!a.length){n+="\\)";continue}d(),i=!0;var v=a.pop();n+=v.close,v.type==="!"&&o.push(v),v.reEnd=n.length;continue;case"|":if(l||!a.length||s){n+="\\|",s=!1;continue}d(),n+="|";continue;case"[":if(d(),l){n+="\\"+g;continue}l=!0,p=m,c=n.length,n+=g;continue;case"]":if(m===p+1||!l){n+="\\"+g,s=!1;continue}var E=e.substring(p+1,m);try{RegExp("["+E+"]");}catch{var S=this.parse(E,oN);n=n.substr(0,c)+"\\["+S[0]+"\\]",i=i||S[1],l=!1;continue}i=!0,l=!1,n+=g;continue;default:d(),s?s=!1:FFe[g]&&!(g==="^"&&l)&&(n+="\\"),n+=g;}}for(l&&(E=e.substr(p+1),S=this.parse(E,oN),n=n.substr(0,c)+"\\["+S[0],i=i||S[1]),v=a.pop();v;v=a.pop()){var x=n.slice(v.reStart+v.open.length);this.debug("setting tail",n,v),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(ue,fe,Se){return Se||(Se="\\"),fe+fe+Se+"|"}),this.debug(`tail=%j
%s`,x,x,v,n);var b=v.type==="*"?yG:v.type==="?"?mG:"\\"+v.type;i=!0,n=n.slice(0,v.reStart)+b+"\\("+x;}d(),s&&(n+="\\\\");var A=!1;switch(n.charAt(0)){case"[":case".":case"(":A=!0;}for(var D=o.length-1;D>-1;D--){var P=o[D],V=n.slice(0,P.reStart),X=n.slice(P.reStart,P.reEnd-8),oe=n.slice(P.reEnd-8,P.reEnd),le=n.slice(P.reEnd);oe+=le;var Be=V.split("(").length-1,be=le;for(m=0;m<Be;m++)be=be.replace(/\)[+*?]?/,"");le=be;var Ee="";le===""&&t!==oN&&(Ee="$");var Te=V+X+le+Ee+oe;n=Te;}if(n!==""&&i&&(n="(?=.)"+n),A&&(n=h+n),t===oN)return [n,i];if(!i)return W1r(e);var Me=r.nocase?"i":"";try{var At=new RegExp("^"+n+"$",Me);}catch{return new RegExp("$.")}return At._glob=e,At._src=n,At}Ha.makeRe=function(e,t){return new ns(e,t||{}).makeRe()};ns.prototype.makeRe=Y1r;function Y1r(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?yG:t.dot?j1r:U1r,n=t.nocase?"i":"",i=e.map(function(s){return s.map(function(a){return a===gG?r:typeof a=="string"?X1r(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n);}catch{this.regexp=!1;}return this.regexp}Ha.match=function(e,t,r){r=r||{};var n=new ns(t,r);return e=e.filter(function(i){return n.match(i)}),n.options.nonull&&!e.length&&e.push(t),e};ns.prototype.match=function(t,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",t,this.pattern),this.comment)return !1;if(this.empty)return t==="";if(t==="/"&&r)return !0;var n=this.options;J_.sep!=="/"&&(t=t.split(J_.sep).join("/")),t=t.split(BFe),this.debug(this.pattern,"split",t);var i=this.set;this.debug(this.pattern,"set",i);var s,a;for(a=t.length-1;a>=0&&(s=t[a],!s);a--);for(a=0;a<i.length;a++){var o=i[a],u=t;n.matchBase&&o.length===1&&(u=[s]);var l=this.matchOne(u,o,r);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};ns.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,s=0,a=e.length,o=t.length;i<a&&s<o;i++,s++){this.debug("matchOne loop");var u=t[s],l=e[i];if(this.debug(t,u,l),u===!1)return !1;if(u===gG){this.debug("GLOBSTAR",[t,u,l]);var c=i,p=s+1;if(p===o){for(this.debug("** at the end");i<a;i++)if(e[i]==="."||e[i]===".."||!n.dot&&e[i].charAt(0)===".")return !1;return !0}for(;c<a;){var h=e[c];if(this.debug(`
globstar while`,e,c,t,p,h),this.matchOne(e.slice(c),t.slice(p),r))return this.debug("globstar found match!",c,a,h),!0;if(h==="."||h===".."||!n.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,c,t,p);break}this.debug("globstar swallow a segment, and continue"),c++;}return !!(r&&(this.debug(`
>>> no match, partial?`,e,c,t,p),c===a))}var f;if(typeof u=="string"?(f=l===u,this.debug("string match",u,l,f)):(f=l.match(u),this.debug("pattern match",u,l,f)),!f)return !1}if(i===a&&s===o)return !0;if(i===a)return r;if(s===o)return i===a-1&&e[i]==="";throw new Error("wtf?")};function W1r(e){return e.replace(/\\(.)/g,"$1")}function X1r(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var pN=chunkTKGT252T_js.c((Wyn,cN)=>{function qFe(e){return e.charAt(0)==="/"}function VFe(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=t.exec(e),n=r[1]||"",i=!!(n&&n.charAt(1)!==":");return !!(r[2]||i)}cN.exports=process.platform==="win32"?VFe:qFe;cN.exports.posix=qFe;cN.exports.win32=VFe;});var TG=chunkTKGT252T_js.c(yh=>{yh.setopts=twr;yh.ownProp=HFe;yh.makeAbs=Q_;yh.finish=rwr;yh.mark=nwr;yh.isIgnored=$Fe;yh.childrenIgnored=iwr;function HFe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var z1r=chunkTKGT252T_js.a("fs"),MT=chunkTKGT252T_js.a("path"),J1r=lN(),GFe=pN(),SG=J1r.Minimatch;function Q1r(e,t){return e.localeCompare(t,"en")}function Z1r(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(ewr));}function ewr(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new SG(r,{dot:!0});}return {matcher:new SG(e,{dot:!0}),gmatcher:t}}function twr(e,t,r){if(r||(r={}),r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t;}e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||z1r,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),Z1r(e,r),e.changedCwd=!1;var n=process.cwd();HFe(r,"cwd")?(e.cwd=MT.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=n,e.root=r.root||MT.resolve(e.cwd,"/"),e.root=MT.resolve(e.root),process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=GFe(e.cwd)?e.cwd:Q_(e,e.cwd),process.platform==="win32"&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,e.minimatch=new SG(t,r),e.options=e.minimatch.options;}function rwr(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var a=e.minimatch.globSet[n];t?r.push(a):r[a]=!0;}}else {var o=Object.keys(s);t?r.push.apply(r,o):o.forEach(function(u){r[u]=!0;});}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(Q1r)),e.mark){for(var n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter(function(u){var l=!/\/$/.test(u),c=e.cache[u]||e.cache[Q_(e,u)];return l&&c&&(l=c!=="DIR"&&!Array.isArray(c)),l}));}e.ignore.length&&(r=r.filter(function(u){return !$Fe(e,u)})),e.found=r;}function nwr(e,t){var r=Q_(e,t),n=e.cache[r],i=t;if(n){var s=n==="DIR"||Array.isArray(n),a=t.slice(-1)==="/";if(s&&!a?i+="/":!s&&a&&(i=i.slice(0,-1)),i!==t){var o=Q_(e,i);e.statCache[o]=e.statCache[r],e.cache[o]=e.cache[r];}}return i}function Q_(e,t){var r=t;return t.charAt(0)==="/"?r=MT.join(e.root,t):GFe(t)||t===""?r=t:e.changedCwd?r=MT.resolve(e.cwd,t):r=MT.resolve(t),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function $Fe(e,t){return e.ignore.length?e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))}):!1}function iwr(e,t){return e.ignore.length?e.ignore.some(function(r){return !!(r.gmatcher&&r.gmatcher.match(t))}):!1}});var zFe=chunkTKGT252T_js.c((Zyn,XFe)=>{XFe.exports=WFe;WFe.GlobSync=Di;var swr=fG(),KFe=lN();KFe.Minimatch;hN().Glob;chunkTKGT252T_js.a("util");var EG=chunkTKGT252T_js.a("path"),YFe=chunkTKGT252T_js.a("assert"),fN=pN(),Am=TG(),awr=Am.setopts,bG=Am.ownProp,owr=Am.childrenIgnored,uwr=Am.isIgnored;function WFe(e,t){if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);return new Di(e,t).found}function Di(e,t){if(!e)throw new Error("must provide pattern");if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof Di))return new Di(e,t);if(awr(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();}Di.prototype._finish=function(){if(YFe.ok(this instanceof Di),this.realpath){var e=this;this.matches.forEach(function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i);var s=swr.realpathSync(i,e.realpathCache);n[s]=!0;}catch(a){if(a.syscall==="stat")n[e._makeAbs(i)]=!0;else throw a}});}Am.finish(this);};Di.prototype._process=function(e,t,r){YFe.ok(this instanceof Di);for(var n=0;typeof e[n]=="string";)n++;var i;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:i=null;break;default:i=e.slice(0,n).join("/");break}var s=e.slice(n),a;i===null?a=".":((fN(i)||fN(e.map(function(l){return typeof l=="string"?l:"[*]"}).join("/")))&&(!i||!fN(i))&&(i="/"+i),a=i);var o=this._makeAbs(a);if(!owr(this,a)){var u=s[0]===KFe.GLOBSTAR;u?this._processGlobStar(i,a,o,s,t,r):this._processReaddir(i,a,o,s,t,r);}};Di.prototype._processReaddir=function(e,t,r,n,i,s){var a=this._readdir(r,s);if(a){for(var o=n[0],u=!!this.minimatch.negate,l=o._glob,c=this.dot||l.charAt(0)===".",p=[],h=0;h<a.length;h++){var f=a[h];if(f.charAt(0)!=="."||c){var d;u&&!e?d=!f.match(o):d=f.match(o),d&&p.push(f);}}var m=p.length;if(m!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var h=0;h<m;h++){var f=p[h];e&&(e.slice(-1)!=="/"?f=e+"/"+f:f=e+f),f.charAt(0)==="/"&&!this.nomount&&(f=EG.join(this.root,f)),this._emitMatch(i,f);}return}n.shift();for(var h=0;h<m;h++){var f=p[h],y;e?y=[e,f]:y=[f],this._process(y.concat(n),i,s);}}}};Di.prototype._emitMatch=function(e,t){if(!uwr(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(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t);}}};Di.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=this.fs.lstatSync(e);}catch(s){if(s.code==="ENOENT")return null}var i=r&&r.isSymbolicLink();return this.symlinks[e]=i,!i&&r&&!r.isDirectory()?this.cache[e]="FILE":t=this._readdir(e,!1),t};Di.prototype._readdir=function(e,t){if(t&&!bG(this.symlinks,e))return this._readdirInGlobStar(e);if(bG(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(i){return this._readdirError(e,i),null}};Di.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];e==="/"?n=e+n:n=e+"/"+n,this.cache[n]=!0;}return this.cache[e]=t,t};Di.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);break}};Di.prototype._processGlobStar=function(e,t,r,n,i,s){var a=this._readdir(r,s);if(a){var o=n.slice(1),u=e?[e]:[],l=u.concat(o);this._process(l,i,!1);var c=a.length,p=this.symlinks[r];if(!(p&&s))for(var h=0;h<c;h++){var f=a[h];if(!(f.charAt(0)==="."&&!this.dot)){var d=u.concat(a[h],o);this._process(d,i,!0);var m=u.concat(a[h],n);this._process(m,i,!0);}}}};Di.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),!!r){if(e&&fN(e)&&!this.nomount){var n=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=EG.join(this.root,e):(e=EG.resolve(this.root,e),n&&(e+="/"));}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e);}};Di.prototype._stat=function(e){var t=this._makeAbs(e),r=e.slice(-1)==="/";if(e.length>this.maxLength)return !1;if(!this.stat&&bG(this.cache,t)){var a=this.cache[t];if(Array.isArray(a)&&(a="DIR"),!r||a==="DIR")return a;if(r&&a==="FILE")return !1}var i=this.statCache[t];if(!i){var s;try{s=this.fs.lstatSync(t);}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=this.fs.statSync(t);}catch{i=s;}else i=s;}this.statCache[t]=i;var a=!0;return i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,r&&a==="FILE"?!1:a};Di.prototype._mark=function(e){return Am.mark(this,e)};Di.prototype._makeAbs=function(e){return Am.makeAbs(this,e)};});var QFe=chunkTKGT252T_js.c((egn,JFe)=>{var lwr=chunkHZVCNUTP_js.P(),Z_=Object.create(null),cwr=chunkHZVCNUTP_js.Q();JFe.exports=lwr(pwr);function pwr(e,t){return Z_[e]?(Z_[e].push(t),null):(Z_[e]=[t],fwr(e))}function fwr(e){return cwr(function t(){var r=Z_[e],n=r.length,i=hwr(arguments);try{for(var s=0;s<n;s++)r[s].apply(null,i);}finally{r.length>n?(r.splice(0,n),process.nextTick(function(){t.apply(null,i);})):delete Z_[e];}})}function hwr(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}});var hN=chunkTKGT252T_js.c((ngn,eBe)=>{eBe.exports=Pm;var dwr=fG(),ZFe=lN();ZFe.Minimatch;var mwr=chunkHZVCNUTP_js.M(),ywr=chunkTKGT252T_js.a("events").EventEmitter,vG=chunkTKGT252T_js.a("path"),_G=chunkTKGT252T_js.a("assert"),ex=pN(),AG=zFe(),Cm=TG(),gwr=Cm.setopts,xG=Cm.ownProp,PG=QFe();chunkTKGT252T_js.a("util");var Swr=Cm.childrenIgnored,Twr=Cm.isIgnored,Ewr=chunkHZVCNUTP_js.Q();function Pm(e,t,r){if(typeof t=="function"&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return AG(e,t)}return new zr(e,t,r)}Pm.sync=AG;var bwr=Pm.GlobSync=AG.GlobSync;Pm.glob=Pm;function vwr(e,t){if(t===null||typeof t!="object")return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}Pm.hasMagic=function(e,t){var r=vwr({},t);r.noprocess=!0;var n=new zr(e,r),i=n.minimatch.set;if(!e)return !1;if(i.length>1)return !0;for(var s=0;s<i[0].length;s++)if(typeof i[0][s]!="string")return !0;return !1};Pm.Glob=zr;mwr(zr,ywr);function zr(e,t,r){if(typeof t=="function"&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new bwr(e,t)}if(!(this instanceof zr))return new zr(e,t,r);gwr(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),typeof r=="function"&&(r=Ewr(r),this.on("error",r),this.on("end",function(u){r(null,u);}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(n===0)return o();for(var s=!0,a=0;a<n;a++)this._process(this.minimatch.set[a],a,!1,o);s=!1;function o(){--i._processing,i._processing<=0&&(s?process.nextTick(function(){i._finish();}):i._finish());}}zr.prototype._finish=function(){if(_G(this instanceof zr),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Cm.finish(this),this.emit("end",this.found);}};zr.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var e=this.matches.length;if(e===0)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n);function n(){--e===0&&t._finish();}};zr.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,s=n.length;if(s===0)return t();var a=this.matches[e]=Object.create(null);n.forEach(function(o,u){o=i._makeAbs(o),dwr.realpath(o,i.realpathCache,function(l,c){l?l.syscall==="stat"?a[o]=!0:i.emit("error",l):a[c]=!0,--s===0&&(i.matches[e]=a,t());});});};zr.prototype._mark=function(e){return Cm.mark(this,e)};zr.prototype._makeAbs=function(e){return Cm.makeAbs(this,e)};zr.prototype.abort=function(){this.aborted=!0,this.emit("abort");};zr.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"));};zr.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);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3]);}}}};zr.prototype._process=function(e,t,r,n){if(_G(this instanceof zr),_G(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([e,t,r,n]);return}for(var i=0;typeof e[i]=="string";)i++;var s;switch(i){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var a=e.slice(i),o;s===null?o=".":((ex(s)||ex(e.map(function(c){return typeof c=="string"?c:"[*]"}).join("/")))&&(!s||!ex(s))&&(s="/"+s),o=s);var u=this._makeAbs(o);if(Swr(this,o))return n();var l=a[0]===ZFe.GLOBSTAR;l?this._processGlobStar(s,o,u,a,t,r,n):this._processReaddir(s,o,u,a,t,r,n);}};zr.prototype._processReaddir=function(e,t,r,n,i,s,a){var o=this;this._readdir(r,s,function(u,l){return o._processReaddir2(e,t,r,n,i,s,l,a)});};zr.prototype._processReaddir2=function(e,t,r,n,i,s,a,o){if(!a)return o();for(var u=n[0],l=!!this.minimatch.negate,c=u._glob,p=this.dot||c.charAt(0)===".",h=[],f=0;f<a.length;f++){var d=a[f];if(d.charAt(0)!=="."||p){var m;l&&!e?m=!d.match(u):m=d.match(u),m&&h.push(d);}}var y=h.length;if(y===0)return o();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var f=0;f<y;f++){var d=h[f];e&&(e!=="/"?d=e+"/"+d:d=e+d),d.charAt(0)==="/"&&!this.nomount&&(d=vG.join(this.root,d)),this._emitMatch(i,d);}return o()}n.shift();for(var f=0;f<y;f++){var d=h[f];e&&(e!=="/"?d=e+"/"+d:d=e+d),this._process([d].concat(n),i,s,o);}o();};zr.prototype._emitMatch=function(e,t){if(!this.aborted&&!Twr(this,t)){if(this.paused){this._emitQueue.push([e,t]);return}var r=ex(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(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t);}}};zr.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,!1,t);var r="lstat\0"+e,n=this,i=PG(r,s);i&&n.fs.lstat(e,i);function s(a,o){if(a&&a.code==="ENOENT")return t();var u=o&&o.isSymbolicLink();n.symlinks[e]=u,!u&&o&&!o.isDirectory()?(n.cache[e]="FILE",t()):n._readdir(e,!1,t);}};zr.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=PG("readdir\0"+e+"\0"+t,r),!!r)){if(t&&!xG(this.symlinks,e))return this._readdirInGlobStar(e,r);if(xG(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;i.fs.readdir(e,_wr(this,e,r));}};function _wr(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r);}}zr.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];e==="/"?i=e+i:i=e+"/"+i,this.cache[i]=!0;}return this.cache[e]=t,r(null,t)}};zr.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);break}return r()}};zr.prototype._processGlobStar=function(e,t,r,n,i,s,a){var o=this;this._readdir(r,s,function(u,l){o._processGlobStar2(e,t,r,n,i,s,l,a);});};zr.prototype._processGlobStar2=function(e,t,r,n,i,s,a,o){if(!a)return o();var u=n.slice(1),l=e?[e]:[],c=l.concat(u);this._process(c,i,!1,o);var p=this.symlinks[r],h=a.length;if(p&&s)return o();for(var f=0;f<h;f++){var d=a[f];if(!(d.charAt(0)==="."&&!this.dot)){var m=l.concat(a[f],u);this._process(m,i,!0,o);var y=l.concat(a[f],n);this._process(y,i,!0,o);}}o();};zr.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,s){n._processSimple2(e,t,i,s,r);});};zr.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&ex(e)&&!this.nomount){var s=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=vG.join(this.root,e):(e=vG.resolve(this.root,e),s&&(e+="/"));}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i();};zr.prototype._stat=function(e,t){var r=this._makeAbs(e),n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&xG(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var a=this.statCache[r];if(a!==void 0){if(a===!1)return t(null,a);var o=a.isDirectory()?"DIR":"FILE";return n&&o==="FILE"?t():t(null,o,a)}var u=this,l=PG("stat\0"+r,c);l&&u.fs.lstat(r,l);function c(p,h){if(h&&h.isSymbolicLink())return u.fs.stat(r,function(f,d){f?u._stat2(e,r,null,h,t):u._stat2(e,r,f,d,t);});u._stat2(e,r,p,h,t);}};zr.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[t]=!1,i();var s=e.slice(-1)==="/";if(this.statCache[t]=n,t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,!1,n);var a=!0;return n&&(a=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,s&&a==="FILE"?i():i(null,a,n)};});var iBe=chunkTKGT252T_js.c((ign,nBe)=>{var rBe=chunkLTE3MQL2_js.a(),LT=chunkTKGT252T_js.a("path"),CG=eG(),xwr=aG(),Awr=chunkHZVCNUTP_js.O(),Pwr=oG(),Cwr=hN(),wm=nBe.exports={},tBe=/[\/\\]/g,wwr=function(e,t){var r=[];return CG(e).forEach(function(n){var i=n.indexOf("!")===0;i&&(n=n.slice(1));var s=t(n);i?r=xwr(r,s):r=Awr(r,s);}),r};wm.exists=function(){var e=LT.join.apply(LT,arguments);return rBe.existsSync(e)};wm.expand=function(...e){var t=Pwr(e[0])?e.shift():{},r=Array.isArray(e[0])?e[0]:e;if(r.length===0)return [];var n=wwr(r,function(i){return Cwr.sync(i,t)});return t.filter&&(n=n.filter(function(i){i=LT.join(t.cwd||"",i);try{return typeof t.filter=="function"?t.filter(i):rBe.statSync(i)[t.filter]()}catch{return !1}})),n};wm.expandMapping=function(e,t,r){r=Object.assign({rename:function(s,a){return LT.join(s||"",a)}},r);var n=[],i={};return wm.expand(r,e).forEach(function(s){var a=s;r.flatten&&(a=LT.basename(a)),r.ext&&(a=a.replace(/(\.[^\/]*)?$/,r.ext));var o=r.rename(t,a,r);r.cwd&&(s=LT.join(r.cwd,s)),o=o.replace(tBe,"/"),s=s.replace(tBe,"/"),i[o]?i[o].src.push(s):(n.push({src:[s],dest:o}),i[o]=n[n.length-1]);}),n};wm.normalizeFilesArray=function(e){var t=[];return e.forEach(function(r){("src"in r||"dest"in r)&&t.push(r);}),t.length===0?[]:(t=_(t).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=CG(r.src):r.src=[r.src]);}).map(function(r){var n=Object.assign({},r);if(delete n.src,delete n.dest,r.expand)return wm.expandMapping(r.src,r.dest,n).map(function(s){var a=Object.assign({},r);return a.orig=Object.assign({},r),a.src=s.src,a.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(o){delete a[o];}),a});var i=Object.assign({},r);return i.orig=Object.assign({},r),"src"in i&&Object.defineProperty(i,"src",{enumerable:!0,get:function s(){var a;return "result"in s||(a=r.src,a=Array.isArray(a)?CG(a):[a],s.result=wm.expand(n,a)),s.result}}),"dest"in i&&(i.dest=r.dest),i}).flatten().value(),t)};});var tx=chunkTKGT252T_js.c((agn,oBe)=>{var wG=chunkLTE3MQL2_js.a(),sBe=chunkTKGT252T_js.a("path");chunkTKGT252T_js.a("util");var Iwr=NH(),aBe=$D(),Owr=kH(),Dwr=chunkTKGT252T_js.a("stream").Stream,Nwr=tFe().PassThrough,Ga=oBe.exports={};Ga.file=iBe();Ga.collectStream=function(e,t){var r=[],n=0;e.on("error",t),e.on("data",function(i){r.push(i),n+=i.length;}),e.on("end",function(){var i=new Buffer(n),s=0;r.forEach(function(a){a.copy(i,s),s+=a.length;}),t(null,i);});};Ga.dateify=function(e){return e=e||new Date,e instanceof Date?e=e:typeof e=="string"?e=new Date(e):e=new Date,e};Ga.defaults=function(e,t,r){var n=arguments;return n[0]=n[0]||{},Owr(...n)};Ga.isStream=function(e){return e instanceof Dwr};Ga.lazyReadStream=function(e){return new Iwr.Readable(function(){return wG.createReadStream(e)})};Ga.normalizeInputSource=function(e){if(e===null)return new Buffer(0);if(typeof e=="string")return new Buffer(e);if(Ga.isStream(e)&&!e._readableState){var t=new Nwr;return e.pipe(t),t}return e};Ga.sanitizePath=function(e){return aBe(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};Ga.trailingSlashIt=function(e){return e.slice(-1)!=="/"?e+"/":e};Ga.unixifyPath=function(e){return aBe(e,!1).replace(/^\w+:/,"")};Ga.walkdir=function(e,t,r){var n=[];typeof t=="function"&&(r=t,t=e),wG.readdir(e,function(i,s){var a=0,o,u;if(i)return r(i);(function l(){if(o=s[a++],!o)return r(null,n);u=sBe.join(e,o),wG.stat(u,function(c,p){n.push({path:u,relative:sBe.relative(t,u).replace(/\\/g,"/"),stats:p}),p&&p.isDirectory()?Ga.walkdir(u,t,function(h,f){f.forEach(function(d){n.push(d);}),l();}):l();});})();});};});var pBe=chunkTKGT252T_js.c((lBe,cBe)=>{var Rwr=chunkTKGT252T_js.a("util"),Mwr={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function uBe(e,t){Error.captureStackTrace(this,this.constructor),this.message=Mwr[e]||e,this.code=e,this.data=t;}Rwr.inherits(uBe,Error);cBe.exports=uBe;});var yBe=chunkTKGT252T_js.c((ogn,mBe)=>{var DG=chunkTKGT252T_js.a("fs"),hBe=dke(),fBe=(chunkHZVCNUTP_js.L(),chunkTKGT252T_js.f(chunkHZVCNUTP_js.K)),IG=chunkTKGT252T_js.a("path"),Il=tx(),Lwr=chunkTKGT252T_js.a("util").inherits,ti=pBe(),dBe=chunkHZVCNUTP_js.R().Transform,OG=process.platform==="win32",Vr=function(e,t){if(!(this instanceof Vr))return new Vr(e,t);typeof e!="string"&&(t=e,e="zip"),t=this.options=Il.defaults(t,{highWaterMark:1024*1024,statConcurrency:4}),dBe.call(this,t),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=fBe.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=fBe.queue(this._onStatQueueTask.bind(this),t.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[];};Lwr(Vr,dBe);Vr.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown();};Vr.prototype._append=function(e,t){t=t||{};var r={source:null,filepath:e};t.name||(t.name=e),t.sourcePath=e,r.data=t,this._entriesCount++,t.stats&&t.stats instanceof DG.Stats?(r=this._updateQueueTaskWithStats(r,t.stats),r&&(t.stats.size&&(this._fsEntriesTotalBytes+=t.stats.size),this._queue.push(r))):this._statQueue.push(r);};Vr.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0);};Vr.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};Vr.prototype._moduleAppend=function(e,t,r){if(this._state.aborted){r();return}this._module.append(e,t,function(n){if(this._task=null,this._state.aborted){this._shutdown();return}if(n){this.emit("error",n),setImmediate(r);return}this.emit("entry",t),this._entriesProcessedCount++,t.stats&&t.stats.size&&(this._fsEntriesProcessedBytes+=t.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r);}.bind(this));};Vr.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ti("NOENDMETHOD"));};Vr.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0;};Vr.prototype._moduleSupports=function(e){return !this._module.supports||!this._module.supports[e]?!1:this._module.supports[e]};Vr.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1;};Vr.prototype._normalizeEntryData=function(e,t){e=Il.defaults(e,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),t&&e.stats===!1&&(e.stats=t);var r=e.type==="directory";return e.name&&(typeof e.prefix=="string"&&e.prefix!==""&&(e.name=e.prefix+"/"+e.name,e.prefix=null),e.name=Il.sanitizePath(e.name),e.type!=="symlink"&&e.name.slice(-1)==="/"?(r=!0,e.type="directory"):r&&(e.name+="/")),typeof e.mode=="number"?OG?e.mode&=511:e.mode&=4095:e.stats&&e.mode===null?(OG?e.mode=e.stats.mode&511:e.mode=e.stats.mode&4095,OG&&r&&(e.mode=493)):e.mode===null&&(e.mode=r?493:420),e.stats&&e.date===null?e.date=e.stats.mtime:e.date=Il.dateify(e.date),e};Vr.prototype._onModuleError=function(e){this.emit("error",e);};Vr.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();};Vr.prototype._onQueueTask=function(e,t){var r=()=>{e.data.callback&&e.data.callback(),t();};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=e,this._moduleAppend(e.source,e.data,r);};Vr.prototype._onStatQueueTask=function(e,t){if(this._state.finalizing||this._state.finalized||this._state.aborted){t();return}DG.lstat(e.filepath,function(r,n){if(this._state.aborted){setImmediate(t);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(t);return}e=this._updateQueueTaskWithStats(e,n),e&&(n.size&&(this._fsEntriesTotalBytes+=n.size),this._queue.push(e)),setImmediate(t);}.bind(this));};Vr.prototype._shutdown=function(){this._moduleUnpipe(),this.end();};Vr.prototype._transform=function(e,t,r){e&&(this._pointer+=e.length),r(null,e);};Vr.prototype._updateQueueTaskWithStats=function(e,t){if(t.isFile())e.data.type="file",e.data.sourceType="stream",e.source=Il.lazyReadStream(e.filepath);else if(t.isDirectory()&&this._moduleSupports("directory"))e.data.name=Il.trailingSlashIt(e.data.name),e.data.type="directory",e.data.sourcePath=Il.trailingSlashIt(e.filepath),e.data.sourceType="buffer",e.source=Buffer.concat([]);else if(t.isSymbolicLink()&&this._moduleSupports("symlink")){var r=DG.readlinkSync(e.filepath),n=IG.dirname(e.filepath);e.data.type="symlink",e.data.linkname=IG.relative(n,IG.resolve(n,r)),e.data.sourceType="buffer",e.source=Buffer.concat([]);}else return t.isDirectory()?this.emit("warning",new ti("DIRECTORYNOTSUPPORTED",e.data)):t.isSymbolicLink()?this.emit("warning",new ti("SYMLINKNOTSUPPORTED",e.data)):this.emit("warning",new ti("ENTRYNOTSUPPORTED",e.data)),null;return e.data=this._normalizeEntryData(e.data,t),e};Vr.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};Vr.prototype.append=function(e,t){if(this._state.finalize||this._state.aborted)return this.emit("error",new ti("QUEUECLOSED")),this;if(t=this._normalizeEntryData(t),typeof t.name!="string"||t.name.length===0)return this.emit("error",new ti("ENTRYNAMEREQUIRED")),this;if(t.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ti("DIRECTORYNOTSUPPORTED",{name:t.name})),this;if(e=Il.normalizeInputSource(e),Buffer.isBuffer(e))t.sourceType="buffer";else if(Il.isStream(e))t.sourceType="stream";else return this.emit("error",new ti("INPUTSTEAMBUFFERREQUIRED",{name:t.name})),this;return this._entriesCount++,this._queue.push({data:t,source:e}),this};Vr.prototype.directory=function(e,t,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ti("QUEUECLOSED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ti("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,t===!1?t="":typeof t!="string"&&(t=e);var n=!1;typeof r=="function"?(n=r,r={}):typeof r!="object"&&(r={});var i={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize();}function a(l){this.emit("error",l);}function o(l){u.pause();var c=!1,p=Object.assign({},r);p.name=l.relative,p.prefix=t,p.stats=l.stat,p.callback=u.resume.bind(u);try{if(n){if(p=n(p),p===!1)c=!0;else if(typeof p!="object")throw new ti("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:e})}}catch(h){this.emit("error",h);return}if(c){u.resume();return}this._append(l.absolute,p);}var u=hBe(e,i);return u.on("error",a.bind(this)),u.on("match",o.bind(this)),u.on("end",s.bind(this)),this};Vr.prototype.file=function(e,t){return this._state.finalize||this._state.aborted?(this.emit("error",new ti("QUEUECLOSED")),this):typeof e!="string"||e.length===0?(this.emit("error",new ti("FILEFILEPATHREQUIRED")),this):(this._append(e,t),this)};Vr.prototype.glob=function(e,t,r){this._pending++,t=Il.defaults(t,{stat:!0,pattern:e});function n(){this._pending--,this._maybeFinalize();}function i(o){this.emit("error",o);}function s(o){a.pause();var u=Object.assign({},r);u.callback=a.resume.bind(a),u.stats=o.stat,u.name=o.relative,this._append(o.absolute,u);}var a=hBe(t.cwd||".",t);return a.on("error",i.bind(this)),a.on("match",s.bind(this)),a.on("end",n.bind(this)),this};Vr.prototype.finalize=function(){if(this._state.aborted){var e=new ti("ABORTED");return this.emit("error",e),Promise.reject(e)}if(this._state.finalize){var t=new ti("FINALIZING");return this.emit("error",t),Promise.reject(t)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(n,i){var s;r._module.on("end",function(){s||n();}),r._module.on("error",function(a){s=!0,i(a);});})};Vr.prototype.setFormat=function(e){return this._format?(this.emit("error",new ti("FORMATSET")),this):(this._format=e,this)};Vr.prototype.setModule=function(e){return this._state.aborted?(this.emit("error",new ti("ABORTED")),this):this._state.module?(this.emit("error",new ti("MODULESET")),this):(this._module=e,this._modulePipe(),this)};Vr.prototype.symlink=function(e,t,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ti("QUEUECLOSED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ti("SYMLINKFILEPATHREQUIRED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ti("SYMLINKTARGETREQUIRED",{filepath:e})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ti("SYMLINKNOTSUPPORTED",{filepath:e})),this;var n={};return n.type="symlink",n.name=e.replace(/\\/g,"/"),n.linkname=t.replace(/\\/g,"/"),n.sourceType="buffer",typeof r=="number"&&(n.mode=r),this._entriesCount++,this._queue.push({data:n,source:Buffer.concat([])}),this};Vr.prototype.pointer=function(){return this._pointer};Vr.prototype.use=function(e){return this._streams.push(e),this};mBe.exports=Vr;});var mN=chunkTKGT252T_js.c((ugn,gBe)=>{var dN=gBe.exports=function(){};dN.prototype.getName=function(){};dN.prototype.getSize=function(){};dN.prototype.getLastModifiedDate=function(){};dN.prototype.isDirectory=function(){};});var yN=chunkTKGT252T_js.c((lgn,SBe)=>{var Bo=SBe.exports={};Bo.dateToDos=function(e,t){t=t||!1;var r=t?e.getFullYear():e.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var n={year:r,month:t?e.getMonth():e.getUTCMonth(),date:t?e.getDate():e.getUTCDate(),hours:t?e.getHours():e.getUTCHours(),minutes:t?e.getMinutes():e.getUTCMinutes(),seconds:t?e.getSeconds():e.getUTCSeconds()};return n.year-1980<<25|n.month+1<<21|n.date<<16|n.hours<<11|n.minutes<<5|n.seconds/2};Bo.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)};Bo.fromDosTime=function(e){return Bo.dosToDate(e.readUInt32LE(0))};Bo.getEightBytes=function(e){var t=Buffer.alloc(8);return t.writeUInt32LE(e%4294967296,0),t.writeUInt32LE(e/4294967296|0,4),t};Bo.getShortBytes=function(e){var t=Buffer.alloc(2);return t.writeUInt16LE((e&65535)>>>0,0),t};Bo.getShortBytesValue=function(e,t){return e.readUInt16LE(t)};Bo.getLongBytes=function(e){var t=Buffer.alloc(4);return t.writeUInt32LE((e&4294967295)>>>0,0),t};Bo.getLongBytesValue=function(e,t){return e.readUInt32LE(t)};Bo.toDosTime=function(e){return Bo.getLongBytes(Bo.dateToDos(e))};});var NG=chunkTKGT252T_js.c((cgn,xBe)=>{var TBe=yN(),EBe=8,bBe=1,kwr=4,Fwr=2,vBe=64,_Be=2048,is=xBe.exports=function(){return this instanceof is?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new is};is.prototype.encode=function(){return TBe.getShortBytes((this.descriptor?EBe:0)|(this.utf8?_Be:0)|(this.encryption?bBe:0)|(this.strongEncryption?vBe:0))};is.prototype.parse=function(e,t){var r=TBe.getShortBytesValue(e,t),n=new is;return n.useDataDescriptor((r&EBe)!==0),n.useUTF8ForNames((r&_Be)!==0),n.useStrongEncryption((r&vBe)!==0),n.useEncryption((r&bBe)!==0),n.setSlidingDictionarySize(r&Fwr?8192:4096),n.setNumberOfShannonFanoTrees(r&kwr?3:2),n};is.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e;};is.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};is.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e;};is.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};is.prototype.useDataDescriptor=function(e){this.descriptor=e;};is.prototype.usesDataDescriptor=function(){return this.descriptor};is.prototype.useEncryption=function(e){this.encryption=e;};is.prototype.usesEncryption=function(){return this.encryption};is.prototype.useStrongEncryption=function(e){this.strongEncryption=e;};is.prototype.usesStrongEncryption=function(){return this.strongEncryption};is.prototype.useUTF8ForNames=function(e){this.utf8=e;};is.prototype.usesUTF8ForNames=function(){return this.utf8};});var PBe=chunkTKGT252T_js.c((pgn,ABe)=>{ABe.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420};});var RG=chunkTKGT252T_js.c((fgn,CBe)=>{CBe.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1};});var MG=chunkTKGT252T_js.c((hgn,NBe)=>{var Bwr=chunkTKGT252T_js.a("util").inherits,jwr=$D(),IBe=mN(),OBe=NG(),wBe=PBe(),ia=RG(),DBe=yN(),cr=NBe.exports=function(e){if(!(this instanceof cr))return new cr(e);IBe.call(this),this.platform=ia.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new OBe,this.crc=0,this.time=-1,this.minver=ia.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,e&&this.setName(e);};Bwr(cr,IBe);cr.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};cr.prototype.getComment=function(){return this.comment!==null?this.comment:""};cr.prototype.getCompressedSize=function(){return this.csize};cr.prototype.getCrc=function(){return this.crc};cr.prototype.getExternalAttributes=function(){return this.exattr};cr.prototype.getExtra=function(){return this.extra!==null?this.extra:ia.EMPTY};cr.prototype.getGeneralPurposeBit=function(){return this.gpb};cr.prototype.getInternalAttributes=function(){return this.inattr};cr.prototype.getLastModifiedDate=function(){return this.getTime()};cr.prototype.getLocalFileDataExtra=function(){return this.getExtra()};cr.prototype.getMethod=function(){return this.method};cr.prototype.getName=function(){return this.name};cr.prototype.getPlatform=function(){return this.platform};cr.prototype.getSize=function(){return this.size};cr.prototype.getTime=function(){return this.time!==-1?DBe.dosToDate(this.time):-1};cr.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};cr.prototype.getUnixMode=function(){return this.platform!==ia.PLATFORM_UNIX?0:this.getExternalAttributes()>>ia.SHORT_SHIFT&ia.SHORT_MASK};cr.prototype.getVersionNeededToExtract=function(){return this.minver};cr.prototype.setComment=function(e){Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=e;};cr.prototype.setCompressedSize=function(e){if(e<0)throw new Error("invalid entry compressed size");this.csize=e;};cr.prototype.setCrc=function(e){if(e<0)throw new Error("invalid entry crc32");this.crc=e;};cr.prototype.setExternalAttributes=function(e){this.exattr=e>>>0;};cr.prototype.setExtra=function(e){this.extra=e;};cr.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof OBe))throw new Error("invalid entry GeneralPurposeBit");this.gpb=e;};cr.prototype.setInternalAttributes=function(e){this.inattr=e;};cr.prototype.setMethod=function(e){if(e<0)throw new Error("invalid entry compression method");this.method=e;};cr.prototype.setName=function(e,t=!1){e=jwr(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),t&&(e=`/${e}`),Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=e;};cr.prototype.setPlatform=function(e){this.platform=e;};cr.prototype.setSize=function(e){if(e<0)throw new Error("invalid entry size");this.size=e;};cr.prototype.setTime=function(e,t){if(!(e instanceof Date))throw new Error("invalid entry time");this.time=DBe.dateToDos(e,t);};cr.prototype.setUnixMode=function(e){e|=this.isDirectory()?ia.S_IFDIR:ia.S_IFREG;var t=0;t|=e<<ia.SHORT_SHIFT|(this.isDirectory()?ia.S_DOS_D:ia.S_DOS_A),this.setExternalAttributes(t),this.mode=e&ia.MODE_MASK,this.platform=ia.PLATFORM_UNIX;};cr.prototype.setVersionNeededToExtract=function(e){this.minver=e;};cr.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};cr.prototype.isUnixSymlink=function(){return (this.getUnixMode()&wBe.FILE_TYPE_FLAG)===wBe.LINK_FLAG};cr.prototype.isZip64=function(){return this.csize>ia.ZIP64_MAGIC||this.size>ia.ZIP64_MAGIC};});var kG=chunkTKGT252T_js.c((dgn,RBe)=>{var Uwr=chunkTKGT252T_js.a("stream").Stream,qwr=chunkHZVCNUTP_js.R().PassThrough,LG=RBe.exports={};LG.isStream=function(e){return e instanceof Uwr};LG.normalizeInputSource=function(e){if(e===null)return Buffer.alloc(0);if(typeof e=="string")return Buffer.from(e);if(LG.isStream(e)&&!e._readableState){var t=new qwr;return e.pipe(t),t}return e};});var BG=chunkTKGT252T_js.c((mgn,LBe)=>{var Vwr=chunkTKGT252T_js.a("util").inherits,FG=chunkHZVCNUTP_js.R().Transform,Hwr=mN(),MBe=kG(),$a=LBe.exports=function(e){if(!(this instanceof $a))return new $a(e);FG.call(this,e),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1};};Vwr($a,FG);$a.prototype._appendBuffer=function(e,t,r){};$a.prototype._appendStream=function(e,t,r){};$a.prototype._emitErrorCallback=function(e){e&&this.emit("error",e);};$a.prototype._finish=function(e){};$a.prototype._normalizeEntry=function(e){};$a.prototype._transform=function(e,t,r){r(null,e);};$a.prototype.entry=function(e,t,r){if(t=t||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(e instanceof Hwr)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(e),this._entry=e,t=MBe.normalizeInputSource(t),Buffer.isBuffer(t))this._appendBuffer(e,t,r);else if(MBe.isStream(t))this._appendStream(e,t,r);else {this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};$a.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish();};$a.prototype.getBytesWritten=function(){return this.offset};$a.prototype.write=function(e,t){return e&&(this.offset+=e.length),FG.prototype.write.call(this,e,t)};});var VG=chunkTKGT252T_js.c((ygn,FBe)=>{var gh=chunkTKGT252T_js.a("buffer").Buffer,jG=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(jG=new Int32Array(jG));function kBe(e){if(gh.isBuffer(e))return e;var t=typeof gh.alloc=="function"&&typeof gh.from=="function";if(typeof e=="number")return t?gh.alloc(e):new gh(e);if(typeof e=="string")return t?gh.from(e):new gh(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function Gwr(e){var t=kBe(4);return t.writeInt32BE(e,0),t}function UG(e,t){e=kBe(e),gh.isBuffer(t)&&(t=t.readUInt32BE(0));for(var r=~~t^-1,n=0;n<e.length;n++)r=jG[(r^e[n])&255]^r>>>8;return r^-1}function qG(){return Gwr(UG.apply(null,arguments))}qG.signed=function(){return UG.apply(null,arguments)};qG.unsigned=function(){return UG.apply(null,arguments)>>>0};FBe.exports=qG;});var GG=chunkTKGT252T_js.c(HG=>{(function(e){typeof DO_NOT_EXPORT_CRC>"u"?typeof HG=="object"?e(HG):typeof define=="function"&&define.amd?define(function(){var t={};return e(t),t}):e({}):e({});})(function(e){e.version="1.2.2";function t(){for(var A=0,D=new Array(256),P=0;P!=256;++P)A=P,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,D[P]=A;return typeof Int32Array<"u"?new Int32Array(D):D}var r=t();function n(A){var D=0,P=0,V=0,X=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(V=0;V!=256;++V)X[V]=A[V];for(V=0;V!=256;++V)for(P=A[V],D=256+V;D<4096;D+=256)P=X[D]=P>>>8^A[P&255];var oe=[];for(V=1;V!=16;++V)oe[V-1]=typeof Int32Array<"u"?X.subarray(V*256,V*256+256):X.slice(V*256,V*256+256);return oe}var i=n(r),s=i[0],a=i[1],o=i[2],u=i[3],l=i[4],c=i[5],p=i[6],h=i[7],f=i[8],d=i[9],m=i[10],y=i[11],g=i[12],v=i[13],E=i[14];function S(A,D){for(var P=D^-1,V=0,X=A.length;V<X;)P=P>>>8^r[(P^A.charCodeAt(V++))&255];return ~P}function x(A,D){for(var P=D^-1,V=A.length-15,X=0;X<V;)P=E[A[X++]^P&255]^v[A[X++]^P>>8&255]^g[A[X++]^P>>16&255]^y[A[X++]^P>>>24]^m[A[X++]]^d[A[X++]]^f[A[X++]]^h[A[X++]]^p[A[X++]]^c[A[X++]]^l[A[X++]]^u[A[X++]]^o[A[X++]]^a[A[X++]]^s[A[X++]]^r[A[X++]];for(V+=15;X<V;)P=P>>>8^r[(P^A[X++])&255];return ~P}function b(A,D){for(var P=D^-1,V=0,X=A.length,oe=0,le=0;V<X;)oe=A.charCodeAt(V++),oe<128?P=P>>>8^r[(P^oe)&255]:oe<2048?(P=P>>>8^r[(P^(192|oe>>6&31))&255],P=P>>>8^r[(P^(128|oe&63))&255]):oe>=55296&&oe<57344?(oe=(oe&1023)+64,le=A.charCodeAt(V++)&1023,P=P>>>8^r[(P^(240|oe>>8&7))&255],P=P>>>8^r[(P^(128|oe>>2&63))&255],P=P>>>8^r[(P^(128|le>>6&15|(oe&3)<<4))&255],P=P>>>8^r[(P^(128|le&63))&255]):(P=P>>>8^r[(P^(224|oe>>12&15))&255],P=P>>>8^r[(P^(128|oe>>6&63))&255],P=P>>>8^r[(P^(128|oe&63))&255]);return ~P}e.table=r,e.bstr=S,e.buf=x,e.str=b;});});var UBe=chunkTKGT252T_js.c((Sgn,jBe)=>{var{Transform:$wr}=chunkHZVCNUTP_js.R(),Kwr=GG(),$G=class extends $wr{constructor(t){super(t),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0;}_transform(t,r,n){t&&(this.checksum=Kwr.buf(t,this.checksum)>>>0,this.rawSize+=t.length),n(null,t);}digest(t){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),t?r.toString(t):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};jBe.exports=$G;});var VBe=chunkTKGT252T_js.c((Tgn,qBe)=>{var{DeflateRaw:Ywr}=chunkTKGT252T_js.a("zlib"),Wwr=GG(),KG=class extends Ywr{constructor(t){super(t),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0;}push(t,r){return t&&(this.compressedSize+=t.length),super.push(t,r)}_transform(t,r,n){t&&(this.checksum=Wwr.buf(t,this.checksum)>>>0,this.rawSize+=t.length),super._transform(t,r,n);}digest(t){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),t?r.toString(t):r}hex(){return this.digest("hex").toUpperCase()}size(t=!1){return t?this.compressedSize:this.rawSize}};qBe.exports=KG;});var YG=chunkTKGT252T_js.c((Egn,HBe)=>{HBe.exports={CRC32Stream:UBe(),DeflateCRC32Stream:VBe()};});var KBe=chunkTKGT252T_js.c((xgn,$Be)=>{var Xwr=chunkTKGT252T_js.a("util").inherits,zwr=VG(),{CRC32Stream:Jwr}=YG(),{DeflateCRC32Stream:Qwr}=YG(),GBe=BG();MG();NG();var Wt=RG();kG();var xt=yN(),Hi=$Be.exports=function(e){if(!(this instanceof Hi))return new Hi(e);e=this.options=this._defaults(e),GBe.call(this,e),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime};};Xwr(Hi,GBe);Hi.prototype._afterAppend=function(e){this._entries.push(e),e.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(e),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish();};Hi.prototype._appendBuffer=function(e,t,r){t.length===0&&e.setMethod(Wt.METHOD_STORED);var n=e.getMethod();if(n===Wt.METHOD_STORED&&(e.setSize(t.length),e.setCompressedSize(t.length),e.setCrc(zwr.unsigned(t))),this._writeLocalFileHeader(e),n===Wt.METHOD_STORED){this.write(t),this._afterAppend(e),r(null,e);return}else if(n===Wt.METHOD_DEFLATED){this._smartStream(e,r).end(t);return}else {r(new Error("compression method "+n+" not implemented"));return}};Hi.prototype._appendStream=function(e,t,r){e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(Wt.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(e);var n=this._smartStream(e,r);t.once("error",function(i){n.emit("error",i),n.end();}),t.pipe(n);};Hi.prototype._defaults=function(e){return typeof e!="object"&&(e={}),typeof e.zlib!="object"&&(e.zlib={}),typeof e.zlib.level!="number"&&(e.zlib.level=Wt.ZLIB_BEST_SPEED),e.forceZip64=!!e.forceZip64,e.forceLocalTime=!!e.forceLocalTime,e};Hi.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(e){this._writeCentralFileHeader(e);}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end();};Hi.prototype._normalizeEntry=function(e){e.getMethod()===-1&&e.setMethod(Wt.METHOD_DEFLATED),e.getMethod()===Wt.METHOD_DEFLATED&&(e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(Wt.MIN_VERSION_DATA_DESCRIPTOR)),e.getTime()===-1&&e.setTime(new Date,this._archive.forceLocalTime),e._offsets={file:0,data:0,contents:0};};Hi.prototype._smartStream=function(e,t){var r=e.getMethod()===Wt.METHOD_DEFLATED,n=r?new Qwr(this.options.zlib):new Jwr,i=null;function s(){var a=n.digest().readUInt32BE(0);e.setCrc(a),e.setSize(n.size()),e.setCompressedSize(n.size(!0)),this._afterAppend(e),t(i,e);}return n.once("end",s.bind(this)),n.once("error",function(a){i=a;}),n.pipe(this,{end:!1}),n};Hi.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length,t=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(e=Wt.ZIP64_MAGIC_SHORT,t=Wt.ZIP64_MAGIC,r=Wt.ZIP64_MAGIC),this.write(xt.getLongBytes(Wt.SIG_EOCD)),this.write(Wt.SHORT_ZERO),this.write(Wt.SHORT_ZERO),this.write(xt.getShortBytes(e)),this.write(xt.getShortBytes(e)),this.write(xt.getLongBytes(t)),this.write(xt.getLongBytes(r));var n=this.getComment(),i=Buffer.byteLength(n);this.write(xt.getShortBytes(i)),this.write(n);};Hi.prototype._writeCentralDirectoryZip64=function(){this.write(xt.getLongBytes(Wt.SIG_ZIP64_EOCD)),this.write(xt.getEightBytes(44)),this.write(xt.getShortBytes(Wt.MIN_VERSION_ZIP64)),this.write(xt.getShortBytes(Wt.MIN_VERSION_ZIP64)),this.write(Wt.LONG_ZERO),this.write(Wt.LONG_ZERO),this.write(xt.getEightBytes(this._entries.length)),this.write(xt.getEightBytes(this._entries.length)),this.write(xt.getEightBytes(this._archive.centralLength)),this.write(xt.getEightBytes(this._archive.centralOffset)),this.write(xt.getLongBytes(Wt.SIG_ZIP64_EOCD_LOC)),this.write(Wt.LONG_ZERO),this.write(xt.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(xt.getLongBytes(1));};Hi.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit(),r=e.getMethod(),n=e._offsets,i=e.getSize(),s=e.getCompressedSize();if(e.isZip64()||n.file>Wt.ZIP64_MAGIC){i=Wt.ZIP64_MAGIC,s=Wt.ZIP64_MAGIC,e.setVersionNeededToExtract(Wt.MIN_VERSION_ZIP64);var a=Buffer.concat([xt.getShortBytes(Wt.ZIP64_EXTRA_ID),xt.getShortBytes(24),xt.getEightBytes(e.getSize()),xt.getEightBytes(e.getCompressedSize()),xt.getEightBytes(n.file)],28);e.setExtra(a);}this.write(xt.getLongBytes(Wt.SIG_CFH)),this.write(xt.getShortBytes(e.getPlatform()<<8|Wt.VERSION_MADEBY)),this.write(xt.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(xt.getShortBytes(r)),this.write(xt.getLongBytes(e.getTimeDos())),this.write(xt.getLongBytes(e.getCrc())),this.write(xt.getLongBytes(s)),this.write(xt.getLongBytes(i));var o=e.getName(),u=e.getComment(),l=e.getCentralDirectoryExtra();t.usesUTF8ForNames()&&(o=Buffer.from(o),u=Buffer.from(u)),this.write(xt.getShortBytes(o.length)),this.write(xt.getShortBytes(l.length)),this.write(xt.getShortBytes(u.length)),this.write(Wt.SHORT_ZERO),this.write(xt.getShortBytes(e.getInternalAttributes())),this.write(xt.getLongBytes(e.getExternalAttributes())),n.file>Wt.ZIP64_MAGIC?this.write(xt.getLongBytes(Wt.ZIP64_MAGIC)):this.write(xt.getLongBytes(n.file)),this.write(o),this.write(l),this.write(u);};Hi.prototype._writeDataDescriptor=function(e){this.write(xt.getLongBytes(Wt.SIG_DD)),this.write(xt.getLongBytes(e.getCrc())),e.isZip64()?(this.write(xt.getEightBytes(e.getCompressedSize())),this.write(xt.getEightBytes(e.getSize()))):(this.write(xt.getLongBytes(e.getCompressedSize())),this.write(xt.getLongBytes(e.getSize())));};Hi.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit(),r=e.getMethod(),n=e.getName(),i=e.getLocalFileDataExtra();e.isZip64()&&(t.useDataDescriptor(!0),e.setVersionNeededToExtract(Wt.MIN_VERSION_ZIP64)),t.usesUTF8ForNames()&&(n=Buffer.from(n)),e._offsets.file=this.offset,this.write(xt.getLongBytes(Wt.SIG_LFH)),this.write(xt.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(xt.getShortBytes(r)),this.write(xt.getLongBytes(e.getTimeDos())),e._offsets.data=this.offset,t.usesDataDescriptor()?(this.write(Wt.LONG_ZERO),this.write(Wt.LONG_ZERO),this.write(Wt.LONG_ZERO)):(this.write(xt.getLongBytes(e.getCrc())),this.write(xt.getLongBytes(e.getCompressedSize())),this.write(xt.getLongBytes(e.getSize()))),this.write(xt.getShortBytes(n.length)),this.write(xt.getShortBytes(i.length)),this.write(n),this.write(i),e._offsets.contents=this.offset;};Hi.prototype.getComment=function(e){return this._archive.comment!==null?this._archive.comment:""};Hi.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>Wt.ZIP64_MAGIC_SHORT||this._archive.centralLength>Wt.ZIP64_MAGIC||this._archive.centralOffset>Wt.ZIP64_MAGIC};Hi.prototype.setComment=function(e){this._archive.comment=e;};});var WG=chunkTKGT252T_js.c((Agn,YBe)=>{YBe.exports={ArchiveEntry:mN(),ZipArchiveEntry:MG(),ArchiveOutputStream:BG(),ZipArchiveOutputStream:KBe()};});var JBe=chunkTKGT252T_js.c((Pgn,zBe)=>{var XBe=chunkLTE3MQL2_js.a(),kT=chunkTKGT252T_js.a("path"),XG=eG(),Zwr=aG(),eIr=chunkHZVCNUTP_js.O(),tIr=oG(),rIr=hN(),Im=zBe.exports={},WBe=/[\/\\]/g,nIr=function(e,t){var r=[];return XG(e).forEach(function(n){var i=n.indexOf("!")===0;i&&(n=n.slice(1));var s=t(n);i?r=Zwr(r,s):r=eIr(r,s);}),r};Im.exists=function(){var e=kT.join.apply(kT,arguments);return XBe.existsSync(e)};Im.expand=function(...e){var t=tIr(e[0])?e.shift():{},r=Array.isArray(e[0])?e[0]:e;if(r.length===0)return [];var n=nIr(r,function(i){return rIr.sync(i,t)});return t.filter&&(n=n.filter(function(i){i=kT.join(t.cwd||"",i);try{return typeof t.filter=="function"?t.filter(i):XBe.statSync(i)[t.filter]()}catch{return !1}})),n};Im.expandMapping=function(e,t,r){r=Object.assign({rename:function(s,a){return kT.join(s||"",a)}},r);var n=[],i={};return Im.expand(r,e).forEach(function(s){var a=s;r.flatten&&(a=kT.basename(a)),r.ext&&(a=a.replace(/(\.[^\/]*)?$/,r.ext));var o=r.rename(t,a,r);r.cwd&&(s=kT.join(r.cwd,s)),o=o.replace(WBe,"/"),s=s.replace(WBe,"/"),i[o]?i[o].src.push(s):(n.push({src:[s],dest:o}),i[o]=n[n.length-1]);}),n};Im.normalizeFilesArray=function(e){var t=[];return e.forEach(function(r){("src"in r||"dest"in r)&&t.push(r);}),t.length===0?[]:(t=_(t).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=XG(r.src):r.src=[r.src]);}).map(function(r){var n=Object.assign({},r);if(delete n.src,delete n.dest,r.expand)return Im.expandMapping(r.src,r.dest,n).map(function(s){var a=Object.assign({},r);return a.orig=Object.assign({},r),a.src=s.src,a.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(o){delete a[o];}),a});var i=Object.assign({},r);return i.orig=Object.assign({},r),"src"in i&&Object.defineProperty(i,"src",{enumerable:!0,get:function s(){var a;return "result"in s||(a=r.src,a=Array.isArray(a)?XG(a):[a],s.result=Im.expand(n,a)),s.result}}),"dest"in i&&(i.dest=r.dest),i}).flatten().value(),t)};});var t3e=chunkTKGT252T_js.c((Cgn,e3e)=>{var zG=chunkLTE3MQL2_js.a(),QBe=chunkTKGT252T_js.a("path"),iIr=NH(),ZBe=$D(),sIr=kH(),aIr=chunkTKGT252T_js.a("stream").Stream,oIr=chunkHZVCNUTP_js.R().PassThrough,Ka=e3e.exports={};Ka.file=JBe();Ka.collectStream=function(e,t){var r=[],n=0;e.on("error",t),e.on("data",function(i){r.push(i),n+=i.length;}),e.on("end",function(){var i=Buffer.alloc(n),s=0;r.forEach(function(a){a.copy(i,s),s+=a.length;}),t(null,i);});};Ka.dateify=function(e){return e=e||new Date,e instanceof Date?e=e:typeof e=="string"?e=new Date(e):e=new Date,e};Ka.defaults=function(e,t,r){var n=arguments;return n[0]=n[0]||{},sIr(...n)};Ka.isStream=function(e){return e instanceof aIr};Ka.lazyReadStream=function(e){return new iIr.Readable(function(){return zG.createReadStream(e)})};Ka.normalizeInputSource=function(e){return e===null?Buffer.alloc(0):typeof e=="string"?Buffer.from(e):Ka.isStream(e)?e.pipe(new oIr):e};Ka.sanitizePath=function(e){return ZBe(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};Ka.trailingSlashIt=function(e){return e.slice(-1)!=="/"?e+"/":e};Ka.unixifyPath=function(e){return ZBe(e,!1).replace(/^\w+:/,"")};Ka.walkdir=function(e,t,r){var n=[];typeof t=="function"&&(r=t,t=e),zG.readdir(e,function(i,s){var a=0,o,u;if(i)return r(i);(function l(){if(o=s[a++],!o)return r(null,n);u=QBe.join(e,o),zG.stat(u,function(c,p){n.push({path:u,relative:QBe.relative(t,u).replace(/\\/g,"/"),stats:p}),p&&p.isDirectory()?Ka.walkdir(u,t,function(h,f){f.forEach(function(d){n.push(d);}),l();}):l();});})();});};});var n3e=chunkTKGT252T_js.c((wgn,r3e)=>{var uIr=chunkTKGT252T_js.a("util").inherits,QG=WG().ZipArchiveOutputStream,lIr=WG().ZipArchiveEntry,JG=t3e(),FT=r3e.exports=function(e){if(!(this instanceof FT))return new FT(e);e=this.options=e||{},e.zlib=e.zlib||{},QG.call(this,e),typeof e.level=="number"&&e.level>=0&&(e.zlib.level=e.level,delete e.level),!e.forceZip64&&typeof e.zlib.level=="number"&&e.zlib.level===0&&(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment);};uIr(FT,QG);FT.prototype._normalizeFileData=function(e){e=JG.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var t=e.type==="directory",r=e.type==="symlink";return e.name&&(e.name=JG.sanitizePath(e.name),!r&&e.name.slice(-1)==="/"?(t=!0,e.type="directory"):t&&(e.name+="/")),(t||r)&&(e.store=!0),e.date=JG.dateify(e.date),e};FT.prototype.entry=function(e,t,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),t=this._normalizeFileData(t),t.type!=="file"&&t.type!=="directory"&&t.type!=="symlink"){r(new Error(t.type+" entries not currently supported"));return}if(typeof t.name!="string"||t.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(t.type==="symlink"&&typeof t.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var n=new lIr(t.name);return n.setTime(t.date,this.options.forceLocalTime),t.namePrependSlash&&n.setName(t.name,!0),t.store&&n.setMethod(0),t.comment.length>0&&n.setComment(t.comment),t.type==="symlink"&&typeof t.mode!="number"&&(t.mode=40960),typeof t.mode=="number"&&(t.type==="symlink"&&(t.mode|=40960),n.setUnixMode(t.mode)),t.type==="symlink"&&typeof t.linkname=="string"&&(e=Buffer.from(t.linkname)),QG.prototype.entry.call(this,n,e,r)};FT.prototype.finalize=function(){this.finish();};});var s3e=chunkTKGT252T_js.c((Ign,i3e)=>{var cIr=n3e(),pIr=tx(),Sh=function(e){if(!(this instanceof Sh))return new Sh(e);e=this.options=pIr.defaults(e,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new cIr(e);};Sh.prototype.append=function(e,t,r){this.engine.entry(e,t,r);};Sh.prototype.finalize=function(){this.engine.finalize();};Sh.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Sh.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Sh.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};i3e.exports=Sh;});var u3e=chunkTKGT252T_js.c((Ogn,o3e)=>{var fIr=chunkTKGT252T_js.a("zlib"),hIr=chunkHZVCNUTP_js.S(),a3e=tx(),up=function(e){if(!(this instanceof up))return new up(e);e=this.options=a3e.defaults(e,{gzip:!1}),typeof e.gzipOptions!="object"&&(e.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=hIr.pack(e),this.compressor=!1,e.gzip&&(this.compressor=fIr.createGzip(e.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)));};up.prototype._onCompressorError=function(e){this.engine.emit("error",e);};up.prototype.append=function(e,t,r){var n=this;t.mtime=t.date;function i(a,o){if(a){r(a);return}n.engine.entry(t,o,function(u){r(u,t);});}if(t.sourceType==="buffer")i(null,e);else if(t.sourceType==="stream"&&t.stats){t.size=t.stats.size;var s=n.engine.entry(t,function(a){r(a,t);});e.pipe(s);}else t.sourceType==="stream"&&a3e.collectStream(e,i);};up.prototype.finalize=function(){this.engine.finalize();};up.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};up.prototype.pipe=function(e,t){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t):this.engine.pipe.apply(this.engine,arguments)};up.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};o3e.exports=up;});var f3e=chunkTKGT252T_js.c((Dgn,p3e)=>{var dIr=chunkTKGT252T_js.a("util").inherits,l3e=chunkHZVCNUTP_js.R().Transform,mIr=VG(),c3e=tx(),Th=function(e){if(!(this instanceof Th))return new Th(e);e=this.options=c3e.defaults(e,{}),l3e.call(this,e),this.supports={directory:!0,symlink:!0},this.files=[];};dIr(Th,l3e);Th.prototype._transform=function(e,t,r){r(null,e);};Th.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e);};Th.prototype.append=function(e,t,r){var n=this;t.crc32=0;function i(s,a){if(s){r(s);return}t.size=a.length||0,t.crc32=mIr.unsigned(a),n.files.push(t),r(null,t);}t.sourceType==="buffer"?i(null,e):t.sourceType==="stream"&&c3e.collectStream(e,i);};Th.prototype.finalize=function(){this._writeStringified(),this.end();};p3e.exports=Th;});var d3e=chunkTKGT252T_js.c((Ngn,h3e)=>{var yIr=yBe(),rx={},Eh=function(e,t){return Eh.create(e,t)};Eh.create=function(e,t){if(rx[e]){var r=new yIr(e,t);return r.setFormat(e),r.setModule(new rx[e](t)),r}else throw new Error("create("+e+"): format not registered")};Eh.registerFormat=function(e,t){if(rx[e])throw new Error("register("+e+"): format already registered");if(typeof t!="function")throw new Error("register("+e+"): format module invalid");if(typeof t.prototype.append!="function"||typeof t.prototype.finalize!="function")throw new Error("register("+e+"): format module missing methods");rx[e]=t;};Eh.isRegisteredFormat=function(e){return !!rx[e]};Eh.registerFormat("zip",s3e());Eh.registerFormat("tar",u3e());Eh.registerFormat("json",f3e());h3e.exports=Eh;});var ax=chunkTKGT252T_js.c((TTn,lje)=>{lje.exports=function(){var e=arguments;return e[0].reduce(function(t,r,n){return t+=r,n+1 in e&&(t+=e[n+1]),t},"")};});var Wje=chunkTKGT252T_js.c((qEn,Yje)=>{var{PassThrough:lDr}=chunkTKGT252T_js.a("stream");Yje.exports=function(){var e=[],t=new lDr({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(a){return a!==s}),!e.length&&t.readable&&t.end();}};});var RUe=chunkTKGT252T_js.c(VT=>{Object.defineProperty(VT,"__esModule",{value:!0});VT.of=VT.PropertiesFile=void 0;var kDr=FDr(chunkTKGT252T_js.a("fs"));function FDr(e){return e&&e.__esModule?e:{default:e}}var HN=class{constructor(...t){this.objs={},t.length&&this.of.apply(this,t);}makeKeys(t){if(t&&t.indexOf("#")!==0){let r=["=",":"].map(a=>t.indexOf(a)).filter(a=>a>-1),n=Math.min(...r),i=t.substring(0,n).trim(),s=t.substring(n+1).trim();if(this.objs.hasOwnProperty(i))if(Array.isArray(this.objs[i]))this.objs[i].push(s);else {let a=this.objs[i];this.objs[i]=[a,s];}else {let a=s.replace(/"/g,'\\"').replace(/\\:/g,":").replace(/\\=/g,"=");this.objs[i]=unescape(JSON.parse('"'+a+'"'));}}}addFile(t){let n=kDr.default.readFileSync(t,"utf-8").split(/\r?\n/),i=this;for(let s=0;s<n.length;s++){let a=n[s];for(;a.substring(a.length-1)==="\\";){a=a.slice(0,-1);let o=n[s+1];a=a+o.trim(),s++;}i.makeKeys(a);}}of(...t){for(let r=0;r<t.length;r++)this.addFile(t[r]);}get(t,r){if(this.objs.hasOwnProperty(t))if(Array.isArray(this.objs[t])){let n=[];for(let i=0;i<this.objs[t].length;i++)n[i]=this.interpolate(this.objs[t][i]);return n}else return typeof this.objs[t]>"u"?"":this.interpolate(this.objs[t]);return r}getLast(t,r){if(this.objs.hasOwnProperty(t))if(Array.isArray(this.objs[t])){var n=this.objs[t].length;return this.interpolate(this.objs[t][n-1])}else return typeof this.objs[t]>"u"?"":this.interpolate(this.objs[t]);return r}getFirst(t,r){return this.objs.hasOwnProperty(t)?Array.isArray(this.objs[t])?this.interpolate(this.objs[t][0]):typeof this.objs[t]>"u"?"":this.interpolate(this.objs[t]):r}getInt(t,r){let n=this.getLast(t);return n?parseInt(n,10):r}getFloat(t,r){let n=this.getLast(t);return n?parseFloat(n):r}getBoolean(t,r){function n(s){return !/^(false|0)$/i.test(s)&&!!s}let i=this.getLast(t);return i?n(i):r||!1}set(t,r){this.objs[t]=r;}interpolate(t){let r=this;return t.replace(/\\\\/g,"\\").replace(/\$\{([A-Za-z0-9\.\-\_]*)\}/g,function(n){return r.getLast(n.substring(2,n.length-1))})}getKeys(){let t=[];for(let r in this.objs)t.push(r);return t}getMatchingKeys(t){let r=[];for(let n in this.objs)n.search(t)!==-1&&r.push(n);return r}reset(){this.objs={};}};VT.PropertiesFile=HN;var BDr=function(...t){let r=new HN;return r.of.apply(r,t),r};VT.of=BDr;});var Nl=chunkTKGT252T_js.c((P5e,_h)=>{(function(){var e,t,r,n,i,s,a,o={}.hasOwnProperty;e=function(u,...l){var c,p,h,f;if(i(Object.assign))Object.assign.apply(null,arguments);else for(c=0,h=l.length;c<h;c++)if(f=l[c],f!=null)for(p in f)o.call(f,p)&&(u[p]=f[p]);return u},i=function(u){return !!u&&Object.prototype.toString.call(u)==="[object Function]"},s=function(u){var l;return !!u&&((l=typeof u)=="function"||l==="object")},r=function(u){return i(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},n=function(u){var l;if(r(u))return !u.length;for(l in u)if(o.call(u,l))return !1;return !0},a=function(u){var l,c;return s(u)&&(c=Object.getPrototypeOf(u))&&(l=c.constructor)&&typeof l=="function"&&l instanceof l&&Function.prototype.toString.call(l)===Function.prototype.toString.call(Object)},t=function(u){return i(u.valueOf)?u.valueOf():u},_h.exports.assign=e,_h.exports.isFunction=i,_h.exports.isObject=s,_h.exports.isArray=r,_h.exports.isEmpty=n,_h.exports.isPlainObject=a,_h.exports.getValue=t;}).call(P5e);});var X$=chunkTKGT252T_js.c((C5e,w5e)=>{(function(){w5e.exports=class{hasFeature(r,n){return !0}createDocumentType(r,n,i){throw new Error("This DOM method is not implemented.")}createDocument(r,n,i){throw new Error("This DOM method is not implemented.")}createHTMLDocument(r){throw new Error("This DOM method is not implemented.")}getFeature(r,n){throw new Error("This DOM method is not implemented.")}};}).call(C5e);});var D5e=chunkTKGT252T_js.c((I5e,O5e)=>{(function(){O5e.exports=class{constructor(){}handleError(r){throw new Error(r)}};}).call(I5e);});var M5e=chunkTKGT252T_js.c((N5e,R5e)=>{(function(){R5e.exports=function(){class t{constructor(n){this.arr=n||[];}item(n){return this.arr[n]||null}contains(n){return this.arr.indexOf(n)!==-1}}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t}.call(this);}).call(N5e);});var F5e=chunkTKGT252T_js.c((L5e,k5e)=>{(function(){var t,r;t=D5e(),r=M5e(),k5e.exports=function(){class n{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new t,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams);}getParameter(s){return this.params.hasOwnProperty(s)?this.params[s]:null}canSetParameter(s,a){return !0}setParameter(s,a){return a!=null?this.params[s]=a:delete this.params[s]}}return Object.defineProperty(n.prototype,"parameterNames",{get:function(){return new r(Object.keys(this.defaultParams))}}),n}.call(this);}).call(L5e);});var hi=chunkTKGT252T_js.c((B5e,j5e)=>{(function(){j5e.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205};}).call(B5e);});var z$=chunkTKGT252T_js.c((U5e,q5e)=>{(function(){var e;e=hi(),Ya(),q5e.exports=function(){class n{constructor(s,a,o){if(this.parent=s,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),a==null)throw new Error("Missing attribute name. "+this.debugInfo(a));this.name=this.stringify.name(a),this.value=this.stringify.attValue(o),this.type=e.Attribute,this.isId=!1,this.schemaTypeInfo=null;}clone(){return Object.create(this)}toString(s){return this.options.writer.attribute(this,this.options.writer.filterOptions(s))}debugInfo(s){return s=s||this.name,s==null?"parent: <"+this.parent.name+">":"attribute: {"+s+"}, parent: <"+this.parent.name+">"}isEqualNode(s){return !(s.namespaceURI!==this.namespaceURI||s.prefix!==this.prefix||s.localName!==this.localName||s.value!==this.value)}}return Object.defineProperty(n.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(n.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(n.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(n.prototype,"namespaceURI",{get:function(){return ""}}),Object.defineProperty(n.prototype,"prefix",{get:function(){return ""}}),Object.defineProperty(n.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(n.prototype,"specified",{get:function(){return !0}}),n}.call(this);}).call(U5e);});var tR=chunkTKGT252T_js.c((V5e,H5e)=>{(function(){H5e.exports=function(){class t{constructor(n){this.nodes=n;}clone(){return this.nodes=null}getNamedItem(n){return this.nodes[n]}setNamedItem(n){var i;return i=this.nodes[n.nodeName],this.nodes[n.nodeName]=n,i||null}removeNamedItem(n){var i;return i=this.nodes[n],delete this.nodes[n],i||null}item(n){return this.nodes[Object.keys(this.nodes)[n]]||null}getNamedItemNS(n,i){throw new Error("This DOM method is not implemented.")}setNamedItemNS(n){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(n,i){throw new Error("This DOM method is not implemented.")}}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t}.call(this);}).call(V5e);});var rR=chunkTKGT252T_js.c((G5e,$5e)=>{(function(){var e,t,n,i,s,a,o,u={}.hasOwnProperty;(({isObject:o,isFunction:a,getValue:s}=Nl())),i=Ya(),e=hi(),t=z$(),n=tR(),$5e.exports=function(){class l extends i{constructor(p,h,f){var d,m,y,g;if(super(p),h==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(h),this.type=e.Element,this.attribs={},this.schemaTypeInfo=null,f!=null&&this.attribute(f),p.type===e.Document&&(this.isRoot=!0,this.documentObject=p,p.rootObject=this,p.children)){for(g=p.children,m=0,y=g.length;m<y;m++)if(d=g[m],d.type===e.DocType){d.name=this.name;break}}}clone(){var p,h,f,d;f=Object.create(this),f.isRoot&&(f.documentObject=null),f.attribs={},d=this.attribs;for(h in d)u.call(d,h)&&(p=d[h],f.attribs[h]=p.clone());return f.children=[],this.children.forEach(function(m){var y;return y=m.clone(),y.parent=f,f.children.push(y)}),f}attribute(p,h){var f,d;if(p!=null&&(p=s(p)),o(p))for(f in p)u.call(p,f)&&(d=p[f],this.attribute(f,d));else a(h)&&(h=h.apply()),this.options.keepNullAttributes&&h==null?this.attribs[p]=new t(this,p,""):h!=null&&(this.attribs[p]=new t(this,p,h));return this}removeAttribute(p){var h,f,d;if(p==null)throw new Error("Missing attribute name. "+this.debugInfo());if(p=s(p),Array.isArray(p))for(f=0,d=p.length;f<d;f++)h=p[f],delete this.attribs[h];else delete this.attribs[p];return this}toString(p){return this.options.writer.element(this,this.options.writer.filterOptions(p))}att(p,h){return this.attribute(p,h)}a(p,h){return this.attribute(p,h)}getAttribute(p){return this.attribs.hasOwnProperty(p)?this.attribs[p].value:null}setAttribute(p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(p){return this.attribs.hasOwnProperty(p)?this.attribs[p]:null}setAttributeNode(p){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(p,h,f){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(p){return this.attribs.hasOwnProperty(p)}hasAttributeNS(p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(p,h){return this.attribs.hasOwnProperty(p)?this.attribs[p].isId:h}setIdAttributeNS(p,h,f){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(p){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(p){var h,f,d;if(!super.isEqualNode(p)||p.namespaceURI!==this.namespaceURI||p.prefix!==this.prefix||p.localName!==this.localName||p.attribs.length!==this.attribs.length)return !1;for(h=f=0,d=this.attribs.length-1;0<=d?f<=d:f>=d;h=0<=d?++f:--f)if(!this.attribs[h].isEqualNode(p.attribs[h]))return !1;return !0}}return Object.defineProperty(l.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"namespaceURI",{get:function(){return ""}}),Object.defineProperty(l.prototype,"prefix",{get:function(){return ""}}),Object.defineProperty(l.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(l.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(l.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(l.prototype,"attributes",{get:function(){return (!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new n(this.attribs)),this.attributeMap}}),l}.call(this);}).call(G5e);});var mx=chunkTKGT252T_js.c((K5e,Y5e)=>{(function(){var t;t=Ya(),Y5e.exports=function(){class r extends t{constructor(i){super(i),this.value="";}clone(){return Object.create(this)}substringData(i,s){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(i){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(i,s){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(i,s){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(i,s,a){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(i){return !(!super.isEqualNode(i)||i.data!==this.data)}}return Object.defineProperty(r.prototype,"data",{get:function(){return this.value},set:function(n){return this.value=n||""}}),Object.defineProperty(r.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(n){return this.value=n||""}}),r}.call(this);}).call(K5e);});var nR=chunkTKGT252T_js.c((W5e,X5e)=>{(function(){var e,r;e=hi(),r=mx(),X5e.exports=class extends r{constructor(i,s){if(super(i),s==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=e.CData,this.value=this.stringify.cdata(s);}clone(){return Object.create(this)}toString(i){return this.options.writer.cdata(this,this.options.writer.filterOptions(i))}};}).call(W5e);});var iR=chunkTKGT252T_js.c((z5e,J5e)=>{(function(){var e,t;e=hi(),t=mx(),J5e.exports=class extends t{constructor(i,s){if(super(i),s==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=e.Comment,this.value=this.stringify.comment(s);}clone(){return Object.create(this)}toString(i){return this.options.writer.comment(this,this.options.writer.filterOptions(i))}};}).call(z5e);});var sR=chunkTKGT252T_js.c((Q5e,Z5e)=>{(function(){var e,r,n;(({isObject:n}=Nl())),r=Ya(),e=hi(),Z5e.exports=class extends r{constructor(s,a,o,u){super(s),n(a)&&({version:a,encoding:o,standalone:u}=a),a||(a="1.0"),this.type=e.Declaration,this.version=this.stringify.xmlVersion(a),o!=null&&(this.encoding=this.stringify.xmlEncoding(o)),u!=null&&(this.standalone=this.stringify.xmlStandalone(u));}toString(s){return this.options.writer.declaration(this,this.options.writer.filterOptions(s))}};}).call(Q5e);});var aR=chunkTKGT252T_js.c((e6e,t6e)=>{(function(){var e,r;r=Ya(),e=hi(),t6e.exports=class extends r{constructor(i,s,a,o,u,l){if(super(i),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(a==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(s));if(!o)throw new Error("Missing DTD attribute type. "+this.debugInfo(s));if(!u)throw new Error("Missing DTD attribute default. "+this.debugInfo(s));if(u.indexOf("#")!==0&&(u="#"+u),!u.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(s));if(l&&!u.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(s));this.elementName=this.stringify.name(s),this.type=e.AttributeDeclaration,this.attributeName=this.stringify.name(a),this.attributeType=this.stringify.dtdAttType(o),l&&(this.defaultValue=this.stringify.dtdAttDefault(l)),this.defaultValueType=u;}toString(i){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(i))}};}).call(e6e);});var oR=chunkTKGT252T_js.c((r6e,n6e)=>{(function(){var e,r,n;(({isObject:n}=Nl())),r=Ya(),e=hi(),n6e.exports=function(){class i extends r{constructor(a,o,u,l){if(super(a),u==null)throw new Error("Missing DTD entity name. "+this.debugInfo(u));if(l==null)throw new Error("Missing DTD entity value. "+this.debugInfo(u));if(this.pe=!!o,this.name=this.stringify.name(u),this.type=e.EntityDeclaration,!n(l))this.value=this.stringify.dtdEntityValue(l),this.internal=!0;else {if(!l.pubID&&!l.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(u));if(l.pubID&&!l.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(u));if(this.internal=!1,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID)),l.nData!=null&&(this.nData=this.stringify.dtdNData(l.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(u))}}toString(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(i.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(i.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlVersion",{get:function(){return null}}),i}.call(this);}).call(r6e);});var uR=chunkTKGT252T_js.c((i6e,s6e)=>{(function(){var e,r;r=Ya(),e=hi(),s6e.exports=class extends r{constructor(i,s,a){if(super(i),s==null)throw new Error("Missing DTD element name. "+this.debugInfo());a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.name(s),this.type=e.ElementDeclaration,this.value=this.stringify.dtdElementValue(a);}toString(i){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(i))}};}).call(i6e);});var lR=chunkTKGT252T_js.c((a6e,o6e)=>{(function(){var e,r;r=Ya(),e=hi(),o6e.exports=function(){class n extends r{constructor(s,a,o){if(super(s),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!o.pubID&&!o.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.name(a),this.type=e.NotationDeclaration,o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID));}toString(s){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(s))}}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),n}.call(this);}).call(a6e);});var cR=chunkTKGT252T_js.c((u6e,l6e)=>{(function(){var e,t,r,n,i,a,o,u;(({isObject:u}=Nl())),o=Ya(),e=hi(),t=aR(),n=oR(),r=uR(),i=lR(),a=tR(),l6e.exports=function(){class l extends o{constructor(p,h,f){var d,m,y,g;if(super(p),this.type=e.DocType,p.children){for(g=p.children,m=0,y=g.length;m<y;m++)if(d=g[m],d.type===e.Element){this.name=d.name;break}}this.documentObject=p,u(h)&&({pubID:h,sysID:f}=h),f==null&&([f,h]=[h,f]),h!=null&&(this.pubID=this.stringify.dtdPubID(h)),f!=null&&(this.sysID=this.stringify.dtdSysID(f));}element(p,h){var f;return f=new r(this,p,h),this.children.push(f),this}attList(p,h,f,d,m){var y;return y=new t(this,p,h,f,d,m),this.children.push(y),this}entity(p,h){var f;return f=new n(this,!1,p,h),this.children.push(f),this}pEntity(p,h){var f;return f=new n(this,!0,p,h),this.children.push(f),this}notation(p,h){var f;return f=new i(this,p,h),this.children.push(f),this}toString(p){return this.options.writer.docType(this,this.options.writer.filterOptions(p))}ele(p,h){return this.element(p,h)}att(p,h,f,d,m){return this.attList(p,h,f,d,m)}ent(p,h){return this.entity(p,h)}pent(p,h){return this.pEntity(p,h)}not(p,h){return this.notation(p,h)}up(){return this.root()||this.documentObject}isEqualNode(p){return !(!super.isEqualNode(p)||p.name!==this.name||p.publicId!==this.publicId||p.systemId!==this.systemId)}}return Object.defineProperty(l.prototype,"entities",{get:function(){var c,p,h,f,d;for(f={},d=this.children,p=0,h=d.length;p<h;p++)c=d[p],c.type===e.EntityDeclaration&&!c.pe&&(f[c.name]=c);return new a(f)}}),Object.defineProperty(l.prototype,"notations",{get:function(){var c,p,h,f,d;for(f={},d=this.children,p=0,h=d.length;p<h;p++)c=d[p],c.type===e.NotationDeclaration&&(f[c.name]=c);return new a(f)}}),Object.defineProperty(l.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(l.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(l.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),l}.call(this);}).call(u6e);});var pR=chunkTKGT252T_js.c((c6e,p6e)=>{(function(){var e,t;e=hi(),t=Ya(),p6e.exports=class extends t{constructor(i,s){if(super(i),s==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=e.Raw,this.value=this.stringify.raw(s);}clone(){return Object.create(this)}toString(i){return this.options.writer.raw(this,this.options.writer.filterOptions(i))}};}).call(c6e);});var fR=chunkTKGT252T_js.c((f6e,h6e)=>{(function(){var e,t;e=hi(),t=mx(),h6e.exports=function(){class n extends t{constructor(s,a){if(super(s),a==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=e.Text,this.value=this.stringify.text(a);}clone(){return Object.create(this)}toString(s){return this.options.writer.text(this,this.options.writer.filterOptions(s))}splitText(s){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(s){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(n.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(n.prototype,"wholeText",{get:function(){var i,s,a;for(a="",s=this.previousSibling;s;)a=s.data+a,s=s.previousSibling;for(a+=this.data,i=this.nextSibling;i;)a=a+i.data,i=i.nextSibling;return a}}),n}.call(this);}).call(f6e);});var hR=chunkTKGT252T_js.c((d6e,m6e)=>{(function(){var e,t;e=hi(),t=mx(),m6e.exports=class extends t{constructor(i,s,a){if(super(i),s==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=e.ProcessingInstruction,this.target=this.stringify.insTarget(s),this.name=this.target,a&&(this.value=this.stringify.insValue(a));}clone(){return Object.create(this)}toString(i){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(i))}isEqualNode(i){return !(!super.isEqualNode(i)||i.target!==this.target)}};}).call(d6e);});var J$=chunkTKGT252T_js.c((y6e,g6e)=>{(function(){var e,r;r=Ya(),e=hi(),g6e.exports=class extends r{constructor(i){super(i),this.type=e.Dummy;}clone(){return Object.create(this)}toString(i){return ""}};}).call(y6e);});var E6e=chunkTKGT252T_js.c((S6e,T6e)=>{(function(){T6e.exports=function(){class t{constructor(n){this.nodes=n;}clone(){return this.nodes=null}item(n){return this.nodes[n]||null}}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t}.call(this);}).call(S6e);});var _6e=chunkTKGT252T_js.c((b6e,v6e)=>{(function(){v6e.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32};}).call(b6e);});var Ya=chunkTKGT252T_js.c((x6e,A6e)=>{(function(){var e,t,r,n,i,s,a,o,c,p,h,f,d,m,y,g,v={}.hasOwnProperty,E=[].splice;(({isObject:g,isFunction:y,isEmpty:m,getValue:d}=Nl())),o=null,r=null,n=null,i=null,s=null,h=null,f=null,p=null,a=null,t=null,c=null,e=null,A6e.exports=function(){class S{constructor(b){this.parent=b,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,o||(o=rR(),r=nR(),n=iR(),i=sR(),s=cR(),h=pR(),f=fR(),p=hR(),a=J$(),t=hi(),c=E6e(),tR(),e=_6e());}setParent(b){var A,D,P,V,X;for(this.parent=b,b&&(this.options=b.options,this.stringify=b.stringify),V=this.children,X=[],D=0,P=V.length;D<P;D++)A=V[D],X.push(A.setParent(this));return X}element(b,A,D){var P,V,X,oe,le,Be,be,Ee,Te;if(Be=null,A===null&&D==null&&([A,D]=[{},null]),A==null&&(A={}),A=d(A),g(A)||([D,A]=[A,D]),b!=null&&(b=d(b)),Array.isArray(b))for(X=0,be=b.length;X<be;X++)V=b[X],Be=this.element(V);else if(y(b))Be=this.element(b.apply());else if(g(b)){for(le in b)if(v.call(b,le))if(Te=b[le],y(Te)&&(Te=Te.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&le.indexOf(this.stringify.convertAttKey)===0)Be=this.attribute(le.substr(this.stringify.convertAttKey.length),Te);else if(!this.options.separateArrayItems&&Array.isArray(Te)&&m(Te))Be=this.dummy();else if(g(Te)&&m(Te))Be=this.element(le);else if(!this.options.keepNullNodes&&Te==null)Be=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Te))for(oe=0,Ee=Te.length;oe<Ee;oe++)V=Te[oe],P={},P[le]=V,Be=this.element(P);else g(Te)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&le.indexOf(this.stringify.convertTextKey)===0?Be=this.element(Te):(Be=this.element(le),Be.element(Te)):Be=this.element(le,Te);}else !this.options.keepNullNodes&&D===null?Be=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&b.indexOf(this.stringify.convertTextKey)===0?Be=this.text(D):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&b.indexOf(this.stringify.convertCDataKey)===0?Be=this.cdata(D):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&b.indexOf(this.stringify.convertCommentKey)===0?Be=this.comment(D):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&b.indexOf(this.stringify.convertRawKey)===0?Be=this.raw(D):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&b.indexOf(this.stringify.convertPIKey)===0?Be=this.instruction(b.substr(this.stringify.convertPIKey.length),D):Be=this.node(b,A,D);if(Be==null)throw new Error("Could not create any elements with: "+b+". "+this.debugInfo());return Be}insertBefore(b,A,D){var P,V,X,oe,le;if(b!=null&&b.type)return X=b,oe=A,X.setParent(this),oe?(V=children.indexOf(oe),le=children.splice(V),children.push(X),Array.prototype.push.apply(children,le)):children.push(X),X;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(b));return V=this.parent.children.indexOf(this),le=this.parent.children.splice(V),P=this.parent.element(b,A,D),Array.prototype.push.apply(this.parent.children,le),P}insertAfter(b,A,D){var P,V,X;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(b));return V=this.parent.children.indexOf(this),X=this.parent.children.splice(V+1),P=this.parent.element(b,A,D),Array.prototype.push.apply(this.parent.children,X),P}remove(){var b;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return b=this.parent.children.indexOf(this),E.apply(this.parent.children,[b,b-b+1].concat([])),this.parent}node(b,A,D){var P;return b!=null&&(b=d(b)),A||(A={}),A=d(A),g(A)||([D,A]=[A,D]),P=new o(this,b,A),D!=null&&P.text(D),this.children.push(P),P}text(b){var A;return g(b)&&this.element(b),A=new f(this,b),this.children.push(A),this}cdata(b){var A;return A=new r(this,b),this.children.push(A),this}comment(b){var A;return A=new n(this,b),this.children.push(A),this}commentBefore(b){var D,P;return D=this.parent.children.indexOf(this),P=this.parent.children.splice(D),this.parent.comment(b),Array.prototype.push.apply(this.parent.children,P),this}commentAfter(b){var D,P;return D=this.parent.children.indexOf(this),P=this.parent.children.splice(D+1),this.parent.comment(b),Array.prototype.push.apply(this.parent.children,P),this}raw(b){var A;return A=new h(this,b),this.children.push(A),this}dummy(){var b;return b=new a(this),b}instruction(b,A){var D,P,V,X,oe;if(b!=null&&(b=d(b)),A!=null&&(A=d(A)),Array.isArray(b))for(X=0,oe=b.length;X<oe;X++)D=b[X],this.instruction(D);else if(g(b))for(D in b)v.call(b,D)&&(P=b[D],this.instruction(D,P));else y(A)&&(A=A.apply()),V=new p(this,b,A),this.children.push(V);return this}instructionBefore(b,A){var P,V;return P=this.parent.children.indexOf(this),V=this.parent.children.splice(P),this.parent.instruction(b,A),Array.prototype.push.apply(this.parent.children,V),this}instructionAfter(b,A){var P,V;return P=this.parent.children.indexOf(this),V=this.parent.children.splice(P+1),this.parent.instruction(b,A),Array.prototype.push.apply(this.parent.children,V),this}declaration(b,A,D){var P,V;return P=this.document(),V=new i(P,b,A,D),P.children.length===0?P.children.unshift(V):P.children[0].type===t.Declaration?P.children[0]=V:P.children.unshift(V),P.root()||P}dtd(b,A){var D,P,V,X,oe,le,Be,be,Ee,Te;for(P=this.document(),V=new s(P,b,A),Ee=P.children,X=oe=0,Be=Ee.length;oe<Be;X=++oe)if(D=Ee[X],D.type===t.DocType)return P.children[X]=V,V;for(Te=P.children,X=le=0,be=Te.length;le<be;X=++le)if(D=Te[X],D.isRoot)return P.children.splice(X,0,V),V;return P.children.push(V),V}up(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent}root(){var b;for(b=this;b;){if(b.type===t.Document)return b.rootObject;if(b.isRoot)return b;b=b.parent;}}document(){var b;for(b=this;b;){if(b.type===t.Document)return b;b=b.parent;}}end(b){return this.document().end(b)}prev(){var b;if(b=this.parent.children.indexOf(this),b<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[b-1]}next(){var b;if(b=this.parent.children.indexOf(this),b===-1||b===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[b+1]}importDocument(b){var A,D,P,V,X;if(D=b.root().clone(),D.parent=this,D.isRoot=!1,this.children.push(D),this.type===t.Document&&(D.isRoot=!0,D.documentObject=this,this.rootObject=D,this.children)){for(X=this.children,P=0,V=X.length;P<V;P++)if(A=X[P],A.type===t.DocType){A.name=D.name;break}}return this}debugInfo(b){var A,D;return b=b||this.name,b==null&&!((A=this.parent)!=null&&A.name)?"":b==null?"parent: <"+this.parent.name+">":(D=this.parent)!=null&&D.name?"node: <"+b+">, parent: <"+this.parent.name+">":"node: <"+b+">"}ele(b,A,D){return this.element(b,A,D)}nod(b,A,D){return this.node(b,A,D)}txt(b){return this.text(b)}dat(b){return this.cdata(b)}com(b){return this.comment(b)}ins(b,A){return this.instruction(b,A)}doc(){return this.document()}dec(b,A,D){return this.declaration(b,A,D)}e(b,A,D){return this.element(b,A,D)}n(b,A,D){return this.node(b,A,D)}t(b){return this.text(b)}d(b){return this.cdata(b)}c(b){return this.comment(b)}r(b){return this.raw(b)}i(b,A){return this.instruction(b,A)}u(){return this.up()}importXMLBuilder(b){return this.importDocument(b)}attribute(b,A){throw new Error("attribute() applies to element nodes only.")}att(b,A){return this.attribute(b,A)}a(b,A){return this.attribute(b,A)}removeAttribute(b){throw new Error("attribute() applies to element nodes only.")}replaceChild(b,A){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(b,A){return !0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(b){var A,D;return A=this,A===b?0:this.document()!==b.document()?(D=e.Disconnected|e.ImplementationSpecific,Math.random()<.5?D|=e.Preceding:D|=e.Following,D):A.isAncestor(b)?e.Contains|e.Preceding:A.isDescendant(b)?e.Contains|e.Following:A.isPreceding(b)?e.Preceding:e.Following}isSameNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){var A,D,P;if(b.nodeType!==this.nodeType||b.children.length!==this.children.length)return !1;for(A=D=0,P=this.children.length-1;0<=P?D<=P:D>=P;A=0<=P?++D:--D)if(!this.children[A].isEqualNode(b.children[A]))return !1;return !0}getFeature(b,A){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(b,A,D){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(b){return b?b===this||this.isDescendant(b):!1}isDescendant(b){var A,D,P,V,X;for(X=this.children,P=0,V=X.length;P<V;P++)if(A=X[P],b===A||(D=A.isDescendant(b),D))return !0;return !1}isAncestor(b){return b.isDescendant(this)}isPreceding(b){var A,D;return A=this.treePosition(b),D=this.treePosition(this),A===-1||D===-1?!1:A<D}isFollowing(b){var A,D;return A=this.treePosition(b),D=this.treePosition(this),A===-1||D===-1?!1:A>D}treePosition(b){var A,D;return D=0,A=!1,this.foreachTreeNode(this.document(),function(P){if(D++,!A&&P===b)return A=!0}),A?D:-1}foreachTreeNode(b,A){var D,P,V,X,oe;for(b||(b=this.document()),X=b.children,P=0,V=X.length;P<V;P++){if(D=X[P],oe=A(D))return oe;if(oe=this.foreachTreeNode(D,A),oe)return oe}}}return Object.defineProperty(S.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(S.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(S.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(S.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(S.prototype,"childNodes",{get:function(){return (!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new c(this.children)),this.childNodeList}}),Object.defineProperty(S.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(S.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(S.prototype,"previousSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x-1]||null}}),Object.defineProperty(S.prototype,"nextSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x+1]||null}}),Object.defineProperty(S.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(S.prototype,"textContent",{get:function(){var x,b,A,D,P;if(this.nodeType===t.Element||this.nodeType===t.DocumentFragment){for(P="",D=this.children,b=0,A=D.length;b<A;b++)x=D[b],x.textContent&&(P+=x.textContent);return P}else return null},set:function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),S}.call(this);}).call(x6e);});var Q$=chunkTKGT252T_js.c((P6e,C6e)=>{(function(){var t={}.hasOwnProperty;C6e.exports=function(){class r{constructor(i){var s,a,o;this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),i||(i={}),this.options=i,this.options.version||(this.options.version="1.0"),a=i.stringify||{};for(s in a)t.call(a,s)&&(o=a[s],this[s]=o);}name(i){return this.options.noValidation?i:this.assertLegalName(""+i||"")}text(i){return this.options.noValidation?i:this.assertLegalChar(this.textEscape(""+i||""))}cdata(i){return this.options.noValidation?i:(i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i))}comment(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)}raw(i){return this.options.noValidation?i:""+i||""}attValue(i){return this.options.noValidation?i:this.assertLegalChar(this.attEscape(i=""+i||""))}insTarget(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}insValue(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return this.assertLegalChar(i)}xmlVersion(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i}xmlEncoding(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return this.assertLegalChar(i)}xmlStandalone(i){return this.options.noValidation?i:i?"yes":"no"}dtdPubID(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdSysID(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdElementValue(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdAttType(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdAttDefault(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdEntityValue(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdNData(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}assertLegalChar(i){var s,a;if(this.options.noValidation)return i;if(this.options.version==="1.0"){if(s=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)i=i.replace(s,this.options.invalidCharReplacement);else if(a=i.match(s))throw new Error(`Invalid character in string: ${i} at index ${a.index}`)}else if(this.options.version==="1.1"){if(s=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)i=i.replace(s,this.options.invalidCharReplacement);else if(a=i.match(s))throw new Error(`Invalid character in string: ${i} at index ${a.index}`)}return i}assertLegalName(i){var s;if(this.options.noValidation)return i;if(i=this.assertLegalChar(i),s=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!i.match(s))throw new Error(`Invalid character in name: ${i}`);return i}textEscape(i){var s;return this.options.noValidation?i:(s=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,i.replace(s,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))}attEscape(i){var s;return this.options.noValidation?i:(s=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,i.replace(s,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))}}return r.prototype.convertAttKey="@",r.prototype.convertPIKey="?",r.prototype.convertTextKey="#text",r.prototype.convertCDataKey="#cdata",r.prototype.convertCommentKey="#comment",r.prototype.convertRawKey="#raw",r}.call(this);}).call(P6e);});var yx=chunkTKGT252T_js.c((w6e,I6e)=>{(function(){I6e.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3};}).call(w6e);});var Z$=chunkTKGT252T_js.c((O6e,D6e)=>{(function(){var e,t,y,g={}.hasOwnProperty;(({assign:y}=Nl())),e=hi(),sR(),cR(),nR(),iR(),rR(),pR(),fR(),hR(),J$(),aR(),uR(),oR(),lR(),t=yx(),D6e.exports=class{constructor(E){var S,x,b;E||(E={}),this.options=E,x=E.writer||{};for(S in x)g.call(x,S)&&(b=x[S],this["_"+S]=this[S],this[S]=b);}filterOptions(E){var S,x,b,A,D,P,V,X,oe;return E||(E={}),E=y({},this.options,E),S={writer:this},S.pretty=E.pretty||!1,S.allowEmpty=E.allowEmpty||!1,S.indent=(x=E.indent)!=null?x:" ",S.newline=(b=E.newline)!=null?b:`
`,S.offset=(A=E.offset)!=null?A:0,S.width=(D=E.width)!=null?D:0,S.dontPrettyTextNodes=(P=(V=E.dontPrettyTextNodes)!=null?V:E.dontprettytextnodes)!=null?P:0,S.spaceBeforeSlash=(X=(oe=E.spaceBeforeSlash)!=null?oe:E.spacebeforeslash)!=null?X:"",S.spaceBeforeSlash===!0&&(S.spaceBeforeSlash=" "),S.suppressPrettyCount=0,S.user={},S.state=t.None,S}indent(E,S,x){var b;return !S.pretty||S.suppressPrettyCount?"":S.pretty&&(b=(x||0)+S.offset+1,b>0)?new Array(b).join(S.indent):""}endline(E,S,x){return !S.pretty||S.suppressPrettyCount?"":S.newline}attribute(E,S,x){var b;return this.openAttribute(E,S,x),S.pretty&&S.width>0?b=E.name+'="'+E.value+'"':b=" "+E.name+'="'+E.value+'"',this.closeAttribute(E,S,x),b}cdata(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+"<![CDATA[",S.state=t.InsideTag,b+=E.value,S.state=t.CloseTag,b+="]]>"+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}comment(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+"<!-- ",S.state=t.InsideTag,b+=E.value,S.state=t.CloseTag,b+=" -->"+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}declaration(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+"<?xml",S.state=t.InsideTag,b+=' version="'+E.version+'"',E.encoding!=null&&(b+=' encoding="'+E.encoding+'"'),E.standalone!=null&&(b+=' standalone="'+E.standalone+'"'),S.state=t.CloseTag,b+=S.spaceBeforeSlash+"?>",b+=this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}docType(E,S,x){var b,A,D,P,V;if(x||(x=0),this.openNode(E,S,x),S.state=t.OpenTag,P=this.indent(E,S,x),P+="<!DOCTYPE "+E.root().name,E.pubID&&E.sysID?P+=' PUBLIC "'+E.pubID+'" "'+E.sysID+'"':E.sysID&&(P+=' SYSTEM "'+E.sysID+'"'),E.children.length>0){for(P+=" [",P+=this.endline(E,S,x),S.state=t.InsideTag,V=E.children,A=0,D=V.length;A<D;A++)b=V[A],P+=this.writeChildNode(b,S,x+1);S.state=t.CloseTag,P+="]";}return S.state=t.CloseTag,P+=S.spaceBeforeSlash+">",P+=this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),P}element(E,S,x){var b,A,D,P,V,X,oe,le,Be,be,Ee,Te,Me,At,ue,fe,Se,je,Ct;if(x||(x=0),Te=!1,this.openNode(E,S,x),S.state=t.OpenTag,Me=this.indent(E,S,x)+"<"+E.name,S.pretty&&S.width>0){le=Me.length,ue=E.attribs;for(Ee in ue)g.call(ue,Ee)&&(b=ue[Ee],At=this.attribute(b,S,x),A=At.length,le+A>S.width?(Ct=this.indent(E,S,x+1)+At,Me+=this.endline(E,S,x)+Ct,le=Ct.length):(Ct=" "+At,Me+=Ct,le+=Ct.length));}else {fe=E.attribs;for(Ee in fe)g.call(fe,Ee)&&(b=fe[Ee],Me+=this.attribute(b,S,x));}if(P=E.children.length,V=P===0?null:E.children[0],P===0||E.children.every(function(Nt){return (Nt.type===e.Text||Nt.type===e.Raw||Nt.type===e.CData)&&Nt.value===""}))S.allowEmpty?(Me+=">",S.state=t.CloseTag,Me+="</"+E.name+">"+this.endline(E,S,x)):(S.state=t.CloseTag,Me+=S.spaceBeforeSlash+"/>"+this.endline(E,S,x));else if(S.pretty&&P===1&&(V.type===e.Text||V.type===e.Raw||V.type===e.CData)&&V.value!=null)Me+=">",S.state=t.InsideTag,S.suppressPrettyCount++,Te=!0,Me+=this.writeChildNode(V,S,x+1),S.suppressPrettyCount--,Te=!1,S.state=t.CloseTag,Me+="</"+E.name+">"+this.endline(E,S,x);else {if(S.dontPrettyTextNodes){for(Se=E.children,X=0,Be=Se.length;X<Be;X++)if(D=Se[X],(D.type===e.Text||D.type===e.Raw||D.type===e.CData)&&D.value!=null){S.suppressPrettyCount++,Te=!0;break}}for(Me+=">"+this.endline(E,S,x),S.state=t.InsideTag,je=E.children,oe=0,be=je.length;oe<be;oe++)D=je[oe],Me+=this.writeChildNode(D,S,x+1);S.state=t.CloseTag,Me+=this.indent(E,S,x)+"</"+E.name+">",Te&&S.suppressPrettyCount--,Me+=this.endline(E,S,x),S.state=t.None;}return this.closeNode(E,S,x),Me}writeChildNode(E,S,x){switch(E.type){case e.CData:return this.cdata(E,S,x);case e.Comment:return this.comment(E,S,x);case e.Element:return this.element(E,S,x);case e.Raw:return this.raw(E,S,x);case e.Text:return this.text(E,S,x);case e.ProcessingInstruction:return this.processingInstruction(E,S,x);case e.Dummy:return "";case e.Declaration:return this.declaration(E,S,x);case e.DocType:return this.docType(E,S,x);case e.AttributeDeclaration:return this.dtdAttList(E,S,x);case e.ElementDeclaration:return this.dtdElement(E,S,x);case e.EntityDeclaration:return this.dtdEntity(E,S,x);case e.NotationDeclaration:return this.dtdNotation(E,S,x);default:throw new Error("Unknown XML node type: "+E.constructor.name)}}processingInstruction(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+"<?",S.state=t.InsideTag,b+=E.target,E.value&&(b+=" "+E.value),S.state=t.CloseTag,b+=S.spaceBeforeSlash+"?>",b+=this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}raw(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x),S.state=t.InsideTag,b+=E.value,S.state=t.CloseTag,b+=this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}text(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x),S.state=t.InsideTag,b+=E.value,S.state=t.CloseTag,b+=this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}dtdAttList(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+"<!ATTLIST",S.state=t.InsideTag,b+=" "+E.elementName+" "+E.attributeName+" "+E.attributeType,E.defaultValueType!=="#DEFAULT"&&(b+=" "+E.defaultValueType),E.defaultValue&&(b+=' "'+E.defaultValue+'"'),S.state=t.CloseTag,b+=S.spaceBeforeSlash+">"+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}dtdElement(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+"<!ELEMENT",S.state=t.InsideTag,b+=" "+E.name+" "+E.value,S.state=t.CloseTag,b+=S.spaceBeforeSlash+">"+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}dtdEntity(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+"<!ENTITY",S.state=t.InsideTag,E.pe&&(b+=" %"),b+=" "+E.name,E.value?b+=' "'+E.value+'"':(E.pubID&&E.sysID?b+=' PUBLIC "'+E.pubID+'" "'+E.sysID+'"':E.sysID&&(b+=' SYSTEM "'+E.sysID+'"'),E.nData&&(b+=" NDATA "+E.nData)),S.state=t.CloseTag,b+=S.spaceBeforeSlash+">"+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}dtdNotation(E,S,x){var b;return this.openNode(E,S,x),S.state=t.OpenTag,b=this.indent(E,S,x)+"<!NOTATION",S.state=t.InsideTag,b+=" "+E.name,E.pubID&&E.sysID?b+=' PUBLIC "'+E.pubID+'" "'+E.sysID+'"':E.pubID?b+=' PUBLIC "'+E.pubID+'"':E.sysID&&(b+=' SYSTEM "'+E.sysID+'"'),S.state=t.CloseTag,b+=S.spaceBeforeSlash+">"+this.endline(E,S,x),S.state=t.None,this.closeNode(E,S,x),b}openNode(E,S,x){}closeNode(E,S,x){}openAttribute(E,S,x){}closeAttribute(E,S,x){}};}).call(O6e);});var dR=chunkTKGT252T_js.c((N6e,R6e)=>{(function(){var t;t=Z$(),R6e.exports=class extends t{constructor(n){super(n);}document(n,i){var s,a,o,u,l;for(i=this.filterOptions(i),u="",l=n.children,a=0,o=l.length;a<o;a++)s=l[a],u+=this.writeChildNode(s,i,0);return i.pretty&&u.slice(-i.newline.length)===i.newline&&(u=u.slice(0,-i.newline.length)),u}};}).call(N6e);});var eK=chunkTKGT252T_js.c((M6e,L6e)=>{(function(){var e,t,r,i,s,a,o;(({isPlainObject:o}=Nl())),r=X$(),t=F5e(),i=Ya(),e=hi(),a=Q$(),s=dR(),L6e.exports=function(){class u extends i{constructor(c){super(null),this.name="#document",this.type=e.Document,this.documentURI=null,this.domConfig=new t,c||(c={}),c.writer||(c.writer=new s),this.options=c,this.stringify=new a(c);}end(c){var p;return p={},c?o(c)&&(p=c,c=this.options.writer):c=this.options.writer,c.document(this,c.filterOptions(p))}toString(c){return this.options.writer.document(this,this.options.writer.filterOptions(c))}createElement(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(c,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(c,p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(c){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(c,p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(c,p,h){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(u.prototype,"implementation",{value:new r}),Object.defineProperty(u.prototype,"doctype",{get:function(){var l,c,p,h;for(h=this.children,c=0,p=h.length;c<p;c++)if(l=h[c],l.type===e.DocType)return l;return null}}),Object.defineProperty(u.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(u.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"strictErrorChecking",{get:function(){return !1}}),Object.defineProperty(u.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].encoding:null}}),Object.defineProperty(u.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(u.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(u.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(u.prototype,"origin",{get:function(){return null}}),Object.defineProperty(u.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(u.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(u.prototype,"contentType",{get:function(){return null}}),u}.call(this);}).call(M6e);});var B6e=chunkTKGT252T_js.c((k6e,F6e)=>{(function(){var e,t,r,n,i,s,a,o,u,l,c,p,f,d,m,y,g,v,E,S,x,b,A={}.hasOwnProperty;(({isObject:x,isFunction:S,isPlainObject:b,getValue:E}=Nl())),e=hi(),p=eK(),f=rR(),n=nR(),i=iR(),m=pR(),v=fR(),d=hR(),l=sR(),c=cR(),s=aR(),o=oR(),a=uR(),u=lR(),r=z$(),g=Q$(),y=dR(),t=yx(),F6e.exports=class{constructor(P,V,X){var oe;this.name="?xml",this.type=e.Document,P||(P={}),oe={},P.writer?b(P.writer)&&(oe=P.writer,P.writer=new y):P.writer=new y,this.options=P,this.writer=P.writer,this.writerOptions=this.writer.filterOptions(oe),this.stringify=new g(P),this.onDataCallback=V||function(){},this.onEndCallback=X||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null;}createChildNode(P){var V,X,oe,le,Be,be,Ee,Te;switch(P.type){case e.CData:this.cdata(P.value);break;case e.Comment:this.comment(P.value);break;case e.Element:oe={},Ee=P.attribs;for(X in Ee)A.call(Ee,X)&&(V=Ee[X],oe[X]=V.value);this.node(P.name,oe);break;case e.Dummy:this.dummy();break;case e.Raw:this.raw(P.value);break;case e.Text:this.text(P.value);break;case e.ProcessingInstruction:this.instruction(P.target,P.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+P.constructor.name)}for(Te=P.children,Be=0,be=Te.length;Be<be;Be++)le=Te[Be],this.createChildNode(le),le.type===e.Element&&this.up();return this}dummy(){return this}node(P,V,X){if(P==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(P));return this.openCurrent(),P=E(P),V==null&&(V={}),V=E(V),x(V)||([X,V]=[V,X]),this.currentNode=new f(this,P,V),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,X!=null&&this.text(X),this}element(P,V,X){var oe,le,Be,be,Ee,Te;if(this.currentNode&&this.currentNode.type===e.DocType)this.dtdElement(...arguments);else if(Array.isArray(P)||x(P)||S(P))for(be=this.options.noValidation,this.options.noValidation=!0,Te=new p(this.options).element("TEMP_ROOT"),Te.element(P),this.options.noValidation=be,Ee=Te.children,le=0,Be=Ee.length;le<Be;le++)oe=Ee[le],this.createChildNode(oe),oe.type===e.Element&&this.up();else this.node(P,V,X);return this}attribute(P,V){var X,oe;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(P));if(P!=null&&(P=E(P)),x(P))for(X in P)A.call(P,X)&&(oe=P[X],this.attribute(X,oe));else S(V)&&(V=V.apply()),this.options.keepNullAttributes&&V==null?this.currentNode.attribs[P]=new r(this,P,""):V!=null&&(this.currentNode.attribs[P]=new r(this,P,V));return this}text(P){var V;return this.openCurrent(),V=new v(this,P),this.onData(this.writer.text(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(P){var V;return this.openCurrent(),V=new n(this,P),this.onData(this.writer.cdata(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(P){var V;return this.openCurrent(),V=new i(this,P),this.onData(this.writer.comment(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(P){var V;return this.openCurrent(),V=new m(this,P),this.onData(this.writer.raw(V,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(P,V){var X,oe,le,Be,be;if(this.openCurrent(),P!=null&&(P=E(P)),V!=null&&(V=E(V)),Array.isArray(P))for(X=0,Be=P.length;X<Be;X++)oe=P[X],this.instruction(oe);else if(x(P))for(oe in P)A.call(P,oe)&&(le=P[oe],this.instruction(oe,le));else S(V)&&(V=V.apply()),be=new d(this,P,V),this.onData(this.writer.processingInstruction(be,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(P,V,X){var oe;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return oe=new l(this,P,V,X),this.onData(this.writer.declaration(oe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(P,V,X){if(this.openCurrent(),P==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new c(this,V,X),this.currentNode.rootNodeName=P,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(P,V){var X;return this.openCurrent(),X=new a(this,P,V),this.onData(this.writer.dtdElement(X,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(P,V,X,oe,le){var Be;return this.openCurrent(),Be=new s(this,P,V,X,oe,le),this.onData(this.writer.dtdAttList(Be,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(P,V){var X;return this.openCurrent(),X=new o(this,!1,P,V),this.onData(this.writer.dtdEntity(X,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(P,V){var X;return this.openCurrent(),X=new o(this,!0,P,V),this.onData(this.writer.dtdEntity(X,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(P,V){var X;return this.openCurrent(),X=new u(this,P,V),this.onData(this.writer.dtdNotation(X,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(P){var V,X,oe,le;if(!P.isOpen){if(!this.root&&this.currentLevel===0&&P.type===e.Element&&(this.root=P),X="",P.type===e.Element){this.writerOptions.state=t.OpenTag,X=this.writer.indent(P,this.writerOptions,this.currentLevel)+"<"+P.name,le=P.attribs;for(oe in le)A.call(le,oe)&&(V=le[oe],X+=this.writer.attribute(V,this.writerOptions,this.currentLevel));X+=(P.children?">":"/>")+this.writer.endline(P,this.writerOptions,this.currentLevel),this.writerOptions.state=t.InsideTag;}else this.writerOptions.state=t.OpenTag,X=this.writer.indent(P,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+P.rootNodeName,P.pubID&&P.sysID?X+=' PUBLIC "'+P.pubID+'" "'+P.sysID+'"':P.sysID&&(X+=' SYSTEM "'+P.sysID+'"'),P.children?(X+=" [",this.writerOptions.state=t.InsideTag):(this.writerOptions.state=t.CloseTag,X+=">"),X+=this.writer.endline(P,this.writerOptions,this.currentLevel);return this.onData(X,this.currentLevel),P.isOpen=!0}}closeNode(P){var V;if(!P.isClosed)return V="",this.writerOptions.state=t.CloseTag,P.type===e.Element?V=this.writer.indent(P,this.writerOptions,this.currentLevel)+"</"+P.name+">"+this.writer.endline(P,this.writerOptions,this.currentLevel):V=this.writer.indent(P,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(P,this.writerOptions,this.currentLevel),this.writerOptions.state=t.None,this.onData(V,this.currentLevel),P.isClosed=!0}onData(P,V){return this.documentStarted=!0,this.onDataCallback(P,V+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(P){return P==null?"":"node: <"+P+">"}ele(){return this.element(...arguments)}nod(P,V,X){return this.node(P,V,X)}txt(P){return this.text(P)}dat(P){return this.cdata(P)}com(P){return this.comment(P)}ins(P,V){return this.instruction(P,V)}dec(P,V,X){return this.declaration(P,V,X)}dtd(P,V,X){return this.doctype(P,V,X)}e(P,V,X){return this.element(P,V,X)}n(P,V,X){return this.node(P,V,X)}t(P){return this.text(P)}d(P){return this.cdata(P)}c(P){return this.comment(P)}r(P){return this.raw(P)}i(P,V){return this.instruction(P,V)}att(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(P,V){return this.entity(P,V)}pent(P,V){return this.pEntity(P,V)}not(P,V){return this.notation(P,V)}};}).call(k6e);});var q6e=chunkTKGT252T_js.c((j6e,U6e)=>{(function(){var e,t,n,i={}.hasOwnProperty;e=hi(),n=Z$(),t=yx(),U6e.exports=class extends n{constructor(a,o){super(o),this.stream=a;}endline(a,o,u){return a.isLastRootNode&&o.state===t.CloseTag?"":super.endline(a,o,u)}document(a,o){var u,l,c,p,h,f,d,m,y;for(d=a.children,l=c=0,h=d.length;c<h;l=++c)u=d[l],u.isLastRootNode=l===a.children.length-1;for(o=this.filterOptions(o),m=a.children,y=[],p=0,f=m.length;p<f;p++)u=m[p],y.push(this.writeChildNode(u,o,0));return y}cdata(a,o,u){return this.stream.write(super.cdata(a,o,u))}comment(a,o,u){return this.stream.write(super.comment(a,o,u))}declaration(a,o,u){return this.stream.write(super.declaration(a,o,u))}docType(a,o,u){var l,c,p,h;if(u||(u=0),this.openNode(a,o,u),o.state=t.OpenTag,this.stream.write(this.indent(a,o,u)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,o,u)),o.state=t.InsideTag,h=a.children,c=0,p=h.length;c<p;c++)l=h[c],this.writeChildNode(l,o,u+1);o.state=t.CloseTag,this.stream.write("]");}return o.state=t.CloseTag,this.stream.write(o.spaceBeforeSlash+">"),this.stream.write(this.endline(a,o,u)),o.state=t.None,this.closeNode(a,o,u)}element(a,o,u){var l,c,p,h,f,d,m,y,g,E,S,x,b,A,D;if(u||(u=0),this.openNode(a,o,u),o.state=t.OpenTag,E=this.indent(a,o,u)+"<"+a.name,o.pretty&&o.width>0){m=E.length,x=a.attribs;for(g in x)i.call(x,g)&&(l=x[g],S=this.attribute(l,o,u),c=S.length,m+c>o.width?(D=this.indent(a,o,u+1)+S,E+=this.endline(a,o,u)+D,m=D.length):(D=" "+S,E+=D,m+=D.length));}else {b=a.attribs;for(g in b)i.call(b,g)&&(l=b[g],E+=this.attribute(l,o,u));}if(this.stream.write(E),h=a.children.length,f=h===0?null:a.children[0],h===0||a.children.every(function(P){return (P.type===e.Text||P.type===e.Raw||P.type===e.CData)&&P.value===""}))o.allowEmpty?(this.stream.write(">"),o.state=t.CloseTag,this.stream.write("</"+a.name+">")):(o.state=t.CloseTag,this.stream.write(o.spaceBeforeSlash+"/>"));else if(o.pretty&&h===1&&(f.type===e.Text||f.type===e.Raw||f.type===e.CData)&&f.value!=null)this.stream.write(">"),o.state=t.InsideTag,o.suppressPrettyCount++,this.writeChildNode(f,o,u+1),o.suppressPrettyCount--,o.state=t.CloseTag,this.stream.write("</"+a.name+">");else {for(this.stream.write(">"+this.endline(a,o,u)),o.state=t.InsideTag,A=a.children,d=0,y=A.length;d<y;d++)p=A[d],this.writeChildNode(p,o,u+1);o.state=t.CloseTag,this.stream.write(this.indent(a,o,u)+"</"+a.name+">");}return this.stream.write(this.endline(a,o,u)),o.state=t.None,this.closeNode(a,o,u)}processingInstruction(a,o,u){return this.stream.write(super.processingInstruction(a,o,u))}raw(a,o,u){return this.stream.write(super.raw(a,o,u))}text(a,o,u){return this.stream.write(super.text(a,o,u))}dtdAttList(a,o,u){return this.stream.write(super.dtdAttList(a,o,u))}dtdElement(a,o,u){return this.stream.write(super.dtdElement(a,o,u))}dtdEntity(a,o,u){return this.stream.write(super.dtdEntity(a,o,u))}dtdNotation(a,o,u){return this.stream.write(super.dtdNotation(a,o,u))}};}).call(j6e);});var H6e=chunkTKGT252T_js.c((V6e,xh)=>{(function(){var e,t,r,n,i,s,a,o,u;(({assign:o,isFunction:u}=Nl())),r=X$(),n=eK(),i=B6e(),a=dR(),s=q6e(),e=hi(),t=yx(),xh.exports.create=function(l,c,p,h){var f,d;if(l==null)throw new Error("Root element needs a name.");return h=o({},c,p,h),f=new n(h),d=f.element(l),h.headless||(f.declaration(h),(h.pubID!=null||h.sysID!=null)&&f.dtd(h)),d},xh.exports.begin=function(l,c,p){return u(l)&&([c,p]=[l,c],l={}),c?new i(l,c,p):new n(l)},xh.exports.stringWriter=function(l){return new a(l)},xh.exports.streamWriter=function(l,c){return new s(l,c)},xh.exports.implementation=new r,xh.exports.nodeType=e,xh.exports.writerState=t;}).call(V6e);});var X6e=chunkTKGT252T_js.c((Mt,W6e)=>{Mt=W6e.exports=Qt;var Qr;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Qr=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:Qr=function(){};Mt.SEMVER_SPEC_VERSION="2.0.0";var gx=256,mR=Number.MAX_SAFE_INTEGER||9007199254740991,tK=16,PNr=gx-6,HT=Mt.re=[],Jr=Mt.safeRe=[],ge=Mt.src=[],se=Mt.tokens={},K6e=0;function pr(e){se[e]=K6e++;}var nK="[a-zA-Z0-9-]",rK=[["\\s",1],["\\d",gx],[nK,PNr]];function Tx(e){for(var t=0;t<rK.length;t++){var r=rK[t][0],n=rK[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}");}return e}pr("NUMERICIDENTIFIER");ge[se.NUMERICIDENTIFIER]="0|[1-9]\\d*";pr("NUMERICIDENTIFIERLOOSE");ge[se.NUMERICIDENTIFIERLOOSE]="\\d+";pr("NONNUMERICIDENTIFIER");ge[se.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+nK+"*";pr("MAINVERSION");ge[se.MAINVERSION]="("+ge[se.NUMERICIDENTIFIER]+")\\.("+ge[se.NUMERICIDENTIFIER]+")\\.("+ge[se.NUMERICIDENTIFIER]+")";pr("MAINVERSIONLOOSE");ge[se.MAINVERSIONLOOSE]="("+ge[se.NUMERICIDENTIFIERLOOSE]+")\\.("+ge[se.NUMERICIDENTIFIERLOOSE]+")\\.("+ge[se.NUMERICIDENTIFIERLOOSE]+")";pr("PRERELEASEIDENTIFIER");ge[se.PRERELEASEIDENTIFIER]="(?:"+ge[se.NUMERICIDENTIFIER]+"|"+ge[se.NONNUMERICIDENTIFIER]+")";pr("PRERELEASEIDENTIFIERLOOSE");ge[se.PRERELEASEIDENTIFIERLOOSE]="(?:"+ge[se.NUMERICIDENTIFIERLOOSE]+"|"+ge[se.NONNUMERICIDENTIFIER]+")";pr("PRERELEASE");ge[se.PRERELEASE]="(?:-("+ge[se.PRERELEASEIDENTIFIER]+"(?:\\."+ge[se.PRERELEASEIDENTIFIER]+")*))";pr("PRERELEASELOOSE");ge[se.PRERELEASELOOSE]="(?:-?("+ge[se.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+ge[se.PRERELEASEIDENTIFIERLOOSE]+")*))";pr("BUILDIDENTIFIER");ge[se.BUILDIDENTIFIER]=nK+"+";pr("BUILD");ge[se.BUILD]="(?:\\+("+ge[se.BUILDIDENTIFIER]+"(?:\\."+ge[se.BUILDIDENTIFIER]+")*))";pr("FULL");pr("FULLPLAIN");ge[se.FULLPLAIN]="v?"+ge[se.MAINVERSION]+ge[se.PRERELEASE]+"?"+ge[se.BUILD]+"?";ge[se.FULL]="^"+ge[se.FULLPLAIN]+"$";pr("LOOSEPLAIN");ge[se.LOOSEPLAIN]="[v=\\s]*"+ge[se.MAINVERSIONLOOSE]+ge[se.PRERELEASELOOSE]+"?"+ge[se.BUILD]+"?";pr("LOOSE");ge[se.LOOSE]="^"+ge[se.LOOSEPLAIN]+"$";pr("GTLT");ge[se.GTLT]="((?:<|>)?=?)";pr("XRANGEIDENTIFIERLOOSE");ge[se.XRANGEIDENTIFIERLOOSE]=ge[se.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";pr("XRANGEIDENTIFIER");ge[se.XRANGEIDENTIFIER]=ge[se.NUMERICIDENTIFIER]+"|x|X|\\*";pr("XRANGEPLAIN");ge[se.XRANGEPLAIN]="[v=\\s]*("+ge[se.XRANGEIDENTIFIER]+")(?:\\.("+ge[se.XRANGEIDENTIFIER]+")(?:\\.("+ge[se.XRANGEIDENTIFIER]+")(?:"+ge[se.PRERELEASE]+")?"+ge[se.BUILD]+"?)?)?";pr("XRANGEPLAINLOOSE");ge[se.XRANGEPLAINLOOSE]="[v=\\s]*("+ge[se.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+ge[se.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+ge[se.XRANGEIDENTIFIERLOOSE]+")(?:"+ge[se.PRERELEASELOOSE]+")?"+ge[se.BUILD]+"?)?)?";pr("XRANGE");ge[se.XRANGE]="^"+ge[se.GTLT]+"\\s*"+ge[se.XRANGEPLAIN]+"$";pr("XRANGELOOSE");ge[se.XRANGELOOSE]="^"+ge[se.GTLT]+"\\s*"+ge[se.XRANGEPLAINLOOSE]+"$";pr("COERCE");ge[se.COERCE]="(^|[^\\d])(\\d{1,"+tK+"})(?:\\.(\\d{1,"+tK+"}))?(?:\\.(\\d{1,"+tK+"}))?(?:$|[^\\d])";pr("COERCERTL");HT[se.COERCERTL]=new RegExp(ge[se.COERCE],"g");Jr[se.COERCERTL]=new RegExp(Tx(ge[se.COERCE]),"g");pr("LONETILDE");ge[se.LONETILDE]="(?:~>?)";pr("TILDETRIM");ge[se.TILDETRIM]="(\\s*)"+ge[se.LONETILDE]+"\\s+";HT[se.TILDETRIM]=new RegExp(ge[se.TILDETRIM],"g");Jr[se.TILDETRIM]=new RegExp(Tx(ge[se.TILDETRIM]),"g");var CNr="$1~";pr("TILDE");ge[se.TILDE]="^"+ge[se.LONETILDE]+ge[se.XRANGEPLAIN]+"$";pr("TILDELOOSE");ge[se.TILDELOOSE]="^"+ge[se.LONETILDE]+ge[se.XRANGEPLAINLOOSE]+"$";pr("LONECARET");ge[se.LONECARET]="(?:\\^)";pr("CARETTRIM");ge[se.CARETTRIM]="(\\s*)"+ge[se.LONECARET]+"\\s+";HT[se.CARETTRIM]=new RegExp(ge[se.CARETTRIM],"g");Jr[se.CARETTRIM]=new RegExp(Tx(ge[se.CARETTRIM]),"g");var wNr="$1^";pr("CARET");ge[se.CARET]="^"+ge[se.LONECARET]+ge[se.XRANGEPLAIN]+"$";pr("CARETLOOSE");ge[se.CARETLOOSE]="^"+ge[se.LONECARET]+ge[se.XRANGEPLAINLOOSE]+"$";pr("COMPARATORLOOSE");ge[se.COMPARATORLOOSE]="^"+ge[se.GTLT]+"\\s*("+ge[se.LOOSEPLAIN]+")$|^$";pr("COMPARATOR");ge[se.COMPARATOR]="^"+ge[se.GTLT]+"\\s*("+ge[se.FULLPLAIN]+")$|^$";pr("COMPARATORTRIM");ge[se.COMPARATORTRIM]="(\\s*)"+ge[se.GTLT]+"\\s*("+ge[se.LOOSEPLAIN]+"|"+ge[se.XRANGEPLAIN]+")";HT[se.COMPARATORTRIM]=new RegExp(ge[se.COMPARATORTRIM],"g");Jr[se.COMPARATORTRIM]=new RegExp(Tx(ge[se.COMPARATORTRIM]),"g");var INr="$1$2$3";pr("HYPHENRANGE");ge[se.HYPHENRANGE]="^\\s*("+ge[se.XRANGEPLAIN]+")\\s+-\\s+("+ge[se.XRANGEPLAIN]+")\\s*$";pr("HYPHENRANGELOOSE");ge[se.HYPHENRANGELOOSE]="^\\s*("+ge[se.XRANGEPLAINLOOSE]+")\\s+-\\s+("+ge[se.XRANGEPLAINLOOSE]+")\\s*$";pr("STAR");ge[se.STAR]="(<|>)?=?\\s*\\*";for(Rl=0;Rl<K6e;Rl++)Qr(Rl,ge[Rl]),HT[Rl]||(HT[Rl]=new RegExp(ge[Rl]),Jr[Rl]=new RegExp(Tx(ge[Rl])));var Rl;Mt.parse=Lm;function Lm(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Qt)return e;if(typeof e!="string"||e.length>gx)return null;var r=t.loose?Jr[se.LOOSE]:Jr[se.FULL];if(!r.test(e))return null;try{return new Qt(e,t)}catch{return null}}Mt.valid=ONr;function ONr(e,t){var r=Lm(e,t);return r?r.version:null}Mt.clean=DNr;function DNr(e,t){var r=Lm(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}Mt.SemVer=Qt;function Qt(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Qt){if(e.loose===t.loose)return e;e=e.version;}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>gx)throw new TypeError("version is longer than "+gx+" characters");if(!(this instanceof Qt))return new Qt(e,t);Qr("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?Jr[se.LOOSE]:Jr[se.FULL]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>mR||this.major<0)throw new TypeError("Invalid major version");if(this.minor>mR||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>mR||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(n){if(/^[0-9]+$/.test(n)){var i=+n;if(i>=0&&i<mR)return i}return n}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format();}Qt.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version};Qt.prototype.toString=function(){return this.version};Qt.prototype.compare=function(e){return Qr("SemVer.compare",this.version,this.options,e),e instanceof Qt||(e=new Qt(e,this.options)),this.compareMain(e)||this.comparePre(e)};Qt.prototype.compareMain=function(e){return e instanceof Qt||(e=new Qt(e,this.options)),Mm(this.major,e.major)||Mm(this.minor,e.minor)||Mm(this.patch,e.patch)};Qt.prototype.comparePre=function(e){if(e instanceof Qt||(e=new Qt(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(Qr("prerelease compare",t,r,n),r===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(r===void 0)return -1;if(r===n)continue;return Mm(r,n)}while(++t)};Qt.prototype.compareBuild=function(e){e instanceof Qt||(e=new Qt(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(Qr("prerelease compare",t,r,n),r===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(r===void 0)return -1;if(r===n)continue;return Mm(r,n)}while(++t)};Qt.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else {for(var r=this.prerelease.length;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this};Mt.inc=NNr;function NNr(e,t,r,n){typeof r=="string"&&(n=r,r=void 0);try{return new Qt(e,r).inc(t,n).version}catch{return null}}Mt.diff=RNr;function RNr(e,t){if(iK(e,t))return null;var r=Lm(e),n=Lm(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease";}for(var a in r)if((a==="major"||a==="minor"||a==="patch")&&r[a]!==n[a])return i+a;return s}Mt.compareIdentifiers=Mm;var G6e=/^[0-9]+$/;function Mm(e,t){var r=G6e.test(e),n=G6e.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}Mt.rcompareIdentifiers=MNr;function MNr(e,t){return Mm(t,e)}Mt.major=LNr;function LNr(e,t){return new Qt(e,t).major}Mt.minor=kNr;function kNr(e,t){return new Qt(e,t).minor}Mt.patch=FNr;function FNr(e,t){return new Qt(e,t).patch}Mt.compare=cp;function cp(e,t,r){return new Qt(e,r).compare(new Qt(t,r))}Mt.compareLoose=BNr;function BNr(e,t){return cp(e,t,!0)}Mt.compareBuild=jNr;function jNr(e,t,r){var n=new Qt(e,r),i=new Qt(t,r);return n.compare(i)||n.compareBuild(i)}Mt.rcompare=UNr;function UNr(e,t,r){return cp(t,e,r)}Mt.sort=qNr;function qNr(e,t){return e.sort(function(r,n){return Mt.compareBuild(r,n,t)})}Mt.rsort=VNr;function VNr(e,t){return e.sort(function(r,n){return Mt.compareBuild(n,r,t)})}Mt.gt=Sx;function Sx(e,t,r){return cp(e,t,r)>0}Mt.lt=yR;function yR(e,t,r){return cp(e,t,r)<0}Mt.eq=iK;function iK(e,t,r){return cp(e,t,r)===0}Mt.neq=Y6e;function Y6e(e,t,r){return cp(e,t,r)!==0}Mt.gte=sK;function sK(e,t,r){return cp(e,t,r)>=0}Mt.lte=aK;function aK(e,t,r){return cp(e,t,r)<=0}Mt.cmp=gR;function gR(e,t,r,n){switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return iK(e,r,n);case"!=":return Y6e(e,r,n);case">":return Sx(e,r,n);case">=":return sK(e,r,n);case"<":return yR(e,r,n);case"<=":return aK(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}Mt.Comparator=jo;function jo(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof jo){if(e.loose===!!t.loose)return e;e=e.value;}if(!(this instanceof jo))return new jo(e,t);e=e.trim().split(/\s+/).join(" "),Qr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===GT?this.value="":this.value=this.operator+this.semver.version,Qr("comp",this);}var GT={};jo.prototype.parse=function(e){var t=this.options.loose?Jr[se.COMPARATORLOOSE]:Jr[se.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new Qt(r[2],this.options.loose):this.semver=GT;};jo.prototype.toString=function(){return this.value};jo.prototype.test=function(e){if(Qr("Comparator.test",e,this.options.loose),this.semver===GT||e===GT)return !0;if(typeof e=="string")try{e=new Qt(e,this.options);}catch{return !1}return gR(e,this.operator,this.semver,this.options)};jo.prototype.intersects=function(e,t){if(!(e instanceof jo))throw new TypeError("a Comparator is required");(!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1});var r;if(this.operator==="")return this.value===""?!0:(r=new Wn(e.value,t),SR(this.value,r,t));if(e.operator==="")return e.value===""?!0:(r=new Wn(this.value,t),SR(e.semver,r,t));var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=gR(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),u=gR(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||s&&a||o||u};Mt.Range=Wn;function Wn(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Wn)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Wn(e.raw,t);if(e instanceof jo)return new Wn(e.value,t);if(!(this instanceof Wn))return new Wn(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(r){return this.parseRange(r.trim())},this).filter(function(r){return r.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format();}Wn.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range};Wn.prototype.toString=function(){return this.range};Wn.prototype.parseRange=function(e){var t=this.options.loose,r=t?Jr[se.HYPHENRANGELOOSE]:Jr[se.HYPHENRANGE];e=e.replace(r,QNr),Qr("hyphen replace",e),e=e.replace(Jr[se.COMPARATORTRIM],INr),Qr("comparator trim",e,Jr[se.COMPARATORTRIM]),e=e.replace(Jr[se.TILDETRIM],CNr),e=e.replace(Jr[se.CARETTRIM],wNr),e=e.split(/\s+/).join(" ");var n=t?Jr[se.COMPARATORLOOSE]:Jr[se.COMPARATOR],i=e.split(" ").map(function(s){return GNr(s,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(s){return !!s.match(n)})),i=i.map(function(s){return new jo(s,this.options)},this),i};Wn.prototype.intersects=function(e,t){if(!(e instanceof Wn))throw new TypeError("a Range is required");return this.set.some(function(r){return $6e(r,t)&&e.set.some(function(n){return $6e(n,t)&&r.every(function(i){return n.every(function(s){return i.intersects(s,t)})})})})};function $6e(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(s){return i.intersects(s,t)}),i=n.pop();return r}Mt.toComparators=HNr;function HNr(e,t){return new Wn(e,t).set.map(function(r){return r.map(function(n){return n.value}).join(" ").trim().split(" ")})}function GNr(e,t){return Qr("comp",e,t),e=YNr(e,t),Qr("caret",e),e=$Nr(e,t),Qr("tildes",e),e=XNr(e,t),Qr("xrange",e),e=JNr(e,t),Qr("stars",e),e}function sa(e){return !e||e.toLowerCase()==="x"||e==="*"}function $Nr(e,t){return e.trim().split(/\s+/).map(function(r){return KNr(r,t)}).join(" ")}function KNr(e,t){var r=t.loose?Jr[se.TILDELOOSE]:Jr[se.TILDE];return e.replace(r,function(n,i,s,a,o){Qr("tilde",e,n,i,s,a,o);var u;return sa(i)?u="":sa(s)?u=">="+i+".0.0 <"+(+i+1)+".0.0":sa(a)?u=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":o?(Qr("replaceTilde pr",o),u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+(+s+1)+".0"):u=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0",Qr("tilde return",u),u})}function YNr(e,t){return e.trim().split(/\s+/).map(function(r){return WNr(r,t)}).join(" ")}function WNr(e,t){Qr("caret",e,t);var r=t.loose?Jr[se.CARETLOOSE]:Jr[se.CARET];return e.replace(r,function(n,i,s,a,o){Qr("caret",e,n,i,s,a,o);var u;return sa(i)?u="":sa(s)?u=">="+i+".0.0 <"+(+i+1)+".0.0":sa(a)?i==="0"?u=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+".0 <"+(+i+1)+".0.0":o?(Qr("replaceCaret pr",o),i==="0"?s==="0"?u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+s+"."+(+a+1):u=">="+i+"."+s+"."+a+"-"+o+" <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+"."+a+"-"+o+" <"+(+i+1)+".0.0"):(Qr("no pr"),i==="0"?s==="0"?u=">="+i+"."+s+"."+a+" <"+i+"."+s+"."+(+a+1):u=">="+i+"."+s+"."+a+" <"+i+"."+(+s+1)+".0":u=">="+i+"."+s+"."+a+" <"+(+i+1)+".0.0"),Qr("caret return",u),u})}function XNr(e,t){return Qr("replaceXRanges",e,t),e.split(/\s+/).map(function(r){return zNr(r,t)}).join(" ")}function zNr(e,t){e=e.trim();var r=t.loose?Jr[se.XRANGELOOSE]:Jr[se.XRANGE];return e.replace(r,function(n,i,s,a,o,u){Qr("xRange",e,n,i,s,a,o,u);var l=sa(s),c=l||sa(a),p=c||sa(o),h=p;return i==="="&&h&&(i=""),u=t.includePrerelease?"-0":"",l?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(c&&(a=0),o=0,i===">"?(i=">=",c?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):i==="<="&&(i="<",c?s=+s+1:a=+a+1),n=i+s+"."+a+"."+o+u):c?n=">="+s+".0.0"+u+" <"+(+s+1)+".0.0"+u:p&&(n=">="+s+"."+a+".0"+u+" <"+s+"."+(+a+1)+".0"+u),Qr("xRange return",n),n})}function JNr(e,t){return Qr("replaceStars",e,t),e.trim().replace(Jr[se.STAR],"")}function QNr(e,t,r,n,i,s,a,o,u,l,c,p,h){return sa(r)?t="":sa(n)?t=">="+r+".0.0":sa(i)?t=">="+r+"."+n+".0":t=">="+t,sa(u)?o="":sa(l)?o="<"+(+u+1)+".0.0":sa(c)?o="<"+u+"."+(+l+1)+".0":p?o="<="+u+"."+l+"."+c+"-"+p:o="<="+o,(t+" "+o).trim()}Wn.prototype.test=function(e){if(!e)return !1;if(typeof e=="string")try{e=new Qt(e,this.options);}catch{return !1}for(var t=0;t<this.set.length;t++)if(ZNr(this.set[t],e,this.options))return !0;return !1};function ZNr(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return !1;if(t.prerelease.length&&!r.includePrerelease){for(n=0;n<e.length;n++)if(Qr(e[n].semver),e[n].semver!==GT&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return !0}return !1}return !0}Mt.satisfies=SR;function SR(e,t,r){try{t=new Wn(t,r);}catch{return !1}return t.test(e)}Mt.maxSatisfying=eRr;function eRr(e,t,r){var n=null,i=null;try{var s=new Wn(t,r);}catch{return null}return e.forEach(function(a){s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new Qt(n,r));}),n}Mt.minSatisfying=tRr;function tRr(e,t,r){var n=null,i=null;try{var s=new Wn(t,r);}catch{return null}return e.forEach(function(a){s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new Qt(n,r));}),n}Mt.minVersion=rRr;function rRr(e,t){e=new Wn(e,t);var r=new Qt("0.0.0");if(e.test(r)||(r=new Qt("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach(function(s){var a=new Qt(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!r||Sx(r,a))&&(r=a);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+s.operator)}});}return r&&e.test(r)?r:null}Mt.validRange=nRr;function nRr(e,t){try{return new Wn(e,t).range||"*"}catch{return null}}Mt.ltr=iRr;function iRr(e,t,r){return oK(e,t,"<",r)}Mt.gtr=sRr;function sRr(e,t,r){return oK(e,t,">",r)}Mt.outside=oK;function oK(e,t,r,n){e=new Qt(e,n),t=new Wn(t,n);var i,s,a,o,u;switch(r){case">":i=Sx,s=aK,a=yR,o=">",u=">=";break;case"<":i=yR,s=sK,a=Sx,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(SR(e,t,n))return !1;for(var l=0;l<t.set.length;++l){var c=t.set[l],p=null,h=null;if(c.forEach(function(f){f.semver===GT&&(f=new jo(">=0.0.0")),p=p||f,h=h||f,i(f.semver,p.semver,n)?p=f:a(f.semver,h.semver,n)&&(h=f);}),p.operator===o||p.operator===u||(!h.operator||h.operator===o)&&s(e,h.semver))return !1;if(h.operator===u&&a(e,h.semver))return !1}return !0}Mt.prerelease=aRr;function aRr(e,t){var r=Lm(e,t);return r&&r.prerelease.length?r.prerelease:null}Mt.intersects=oRr;function oRr(e,t,r){return e=new Wn(e,r),t=new Wn(t,r),e.intersects(t)}Mt.coerce=uRr;function uRr(e,t){if(e instanceof Qt)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};var r=null;if(!t.rtl)r=e.match(Jr[se.COERCE]);else {for(var n;(n=Jr[se.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),Jr[se.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Jr[se.COERCERTL].lastIndex=-1;}return r===null?null:Lm(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}});var t8e=chunkTKGT252T_js.c((_xn,uK)=>{var TR=chunkTKGT252T_js.a("fs"),pp=chunkTKGT252T_js.a("path"),{promisify:z6e}=chunkTKGT252T_js.a("util"),lRr=X6e(),J6e=lRr.satisfies(process.version,">=10.12.0"),Q6e=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(pp.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},Z6e=e=>({...{mode:511,fs:TR},...e}),e8e=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t},cRr=async(e,t)=>{Q6e(e),t=Z6e(t);let r=z6e(t.fs.mkdir),n=z6e(t.fs.stat);if(J6e&&t.fs.mkdir===TR.mkdir){let s=pp.resolve(e);return await r(s,{mode:t.mode,recursive:!0}),s}let i=async s=>{try{return await r(s,t.mode),s}catch(a){if(a.code==="EPERM")throw a;if(a.code==="ENOENT"){if(pp.dirname(s)===s)throw e8e(s);if(a.message.includes("null bytes"))throw a;return await i(pp.dirname(s)),i(s)}try{if(!(await n(s)).isDirectory())throw new Error("The path is not a directory")}catch{throw a}return s}};return i(pp.resolve(e))};uK.exports=cRr;uK.exports.sync=(e,t)=>{if(Q6e(e),t=Z6e(t),J6e&&t.fs.mkdirSync===TR.mkdirSync){let n=pp.resolve(e);return TR.mkdirSync(n,{mode:t.mode,recursive:!0}),n}let r=n=>{try{t.fs.mkdirSync(n,t.mode);}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(pp.dirname(n)===n)throw e8e(n);if(i.message.includes("null bytes"))throw i;return r(pp.dirname(n)),r(n)}try{if(!t.fs.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return n};return r(pp.resolve(e))};});var i8e=chunkTKGT252T_js.c((xxn,Uo)=>{function r8e(e,t){for(var r=e.toString();r.length<t;)r="0"+r;return r}function km(e){return r8e(e,2)}function pRr(e){var t=Math.abs(e),r=String(Math.floor(t/60)),n=String(t%60);return r=("0"+r).slice(-2),n=("0"+n).slice(-2),e===0?"Z":(e<0?"+":"-")+r+":"+n}function n8e(e,t){typeof e!="string"&&(t=e,e=Uo.exports.ISO8601_FORMAT),t||(t=Uo.exports.now());var r=km(t.getDate()),n=km(t.getMonth()+1),i=km(t.getFullYear()),s=km(i.substring(2,4)),a=e.indexOf("yyyy")>-1?i:s,o=km(t.getHours()),u=km(t.getMinutes()),l=km(t.getSeconds()),c=r8e(t.getMilliseconds(),3),p=pRr(t.getTimezoneOffset()),h=e.replace(/dd/g,r).replace(/MM/g,n).replace(/y{1,4}/g,a).replace(/hh/g,o).replace(/mm/g,u).replace(/ss/g,l).replace(/SSS/g,c).replace(/O/g,p);return h}function Fm(e,t,r,n){e["set"+(n?"":"UTC")+t](r);}function fRr(e,t,r){var n=e.indexOf("O")<0,i=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(c,p){Fm(c,"FullYear",p,n);}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(c,p){Fm(c,"Month",p-1,n);}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(c,p){Fm(c,"Date",p,n);}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(c,p){Fm(c,"Hours",p,n);}},{pattern:/mm/,regexp:"\\d\\d",fn:function(c,p){Fm(c,"Minutes",p,n);}},{pattern:/ss/,regexp:"\\d\\d",fn:function(c,p){Fm(c,"Seconds",p,n);}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(c,p){Fm(c,"Milliseconds",p,n);}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(c,p){p==="Z"?p=0:p=p.replace(":","");var h=Math.abs(p),f=(p>0?-1:1)*(h%100+Math.floor(h/100)*60);c.setUTCMinutes(c.getUTCMinutes()+f);}}],s=i.reduce(function(c,p){return p.pattern.test(c.regexp)?(p.index=c.regexp.match(p.pattern).index,c.regexp=c.regexp.replace(p.pattern,"("+p.regexp+")")):p.index=-1,c},{regexp:e,index:[]}),a=i.filter(function(c){return c.index>-1});a.sort(function(c,p){return c.index-p.index});var o=new RegExp(s.regexp),u=o.exec(t);if(u){var l=r||Uo.exports.now();return a.forEach(function(c,p){c.fn(l,u[p+1]);}),l}throw new Error("String '"+t+"' could not be parsed as '"+e+"'")}function hRr(e,t,r){if(!e)throw new Error("pattern must be supplied");return fRr(e,t,r)}function dRr(){return new Date}Uo.exports=n8e;Uo.exports.asString=n8e;Uo.exports.parse=hRr;Uo.exports.now=dRr;Uo.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS";Uo.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO";Uo.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS";Uo.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS";});var lK=chunkTKGT252T_js.c((Axn,s8e)=>{var Ex=chunkHZVCNUTP_js.ea(),mRr=i8e().asString;function Pu(e){this._factory=e,this._attributes={},this._testCases=[],this._properties=[];}Pu.prototype.name=function(e){return this._attributes.name=e,this};Pu.prototype.time=function(e){return this._attributes.time=e,this};Pu.prototype.timestamp=function(e){return Ex.isDate(e)?this._attributes.timestamp=mRr("yyyy-MM-ddThh:mm:ss",e):this._attributes.timestamp=e,this};Pu.prototype.property=function(e,t){return this._properties.push({name:e,value:t}),this};Pu.prototype.testCase=function(){var e=this._factory.newTestCase();return this._testCases.push(e),e};Pu.prototype.getFailureCount=function(){return this._sumTestCaseCounts(function(e){return e.getFailureCount()})};Pu.prototype.getErrorCount=function(){return this._sumTestCaseCounts(function(e){return e.getErrorCount()})};Pu.prototype.getSkippedCount=function(){return this._sumTestCaseCounts(function(e){return e.getSkippedCount()})};Pu.prototype._sumTestCaseCounts=function(e){var t=Ex.map(this._testCases,e);return Ex.sum(t)};Pu.prototype.build=function(e){this._attributes.tests=this._testCases.length,this._attributes.failures=this.getFailureCount(),this._attributes.errors=this.getErrorCount(),this._attributes.skipped=this.getSkippedCount();var t=e.ele("testsuite",this._attributes);if(this._properties.length){var r=t.ele("properties");Ex.forEach(this._properties,function(n){r.ele("property",{name:n.name,value:n.value});});}Ex.forEach(this._testCases,function(n){n.build(t);});};s8e.exports=Pu;});var cK=chunkTKGT252T_js.c((Pxn,a8e)=>{var yRr=chunkHZVCNUTP_js.ea();function ss(){this._error=!1,this._failure=!1,this._skipped=!1,this._standardOutput=void 0,this._standardError=void 0,this._stacktrace=void 0,this._attributes={},this._errorAttributes={},this._failureAttributes={},this._errorAttachment=void 0,this._errorContent=void 0,this._properties=[];}ss.prototype.className=function(e){return this._attributes.classname=e,this};ss.prototype.name=function(e){return this._attributes.name=e,this};ss.prototype.time=function(e){return this._attributes.time=e,this};ss.prototype.file=function(e){return this._attributes.file=e,this};ss.prototype.failure=function(e,t){return this._failure=!0,e&&(this._failureAttributes.message=e),t&&(this._failureAttributes.type=t),this};ss.prototype.error=function(e,t,r){return this._error=!0,e&&(this._errorAttributes.message=e),t&&(this._errorAttributes.type=t),r&&(this._errorContent=r),this};ss.prototype.stacktrace=function(e){return this._failure=!0,this._stacktrace=e,this};ss.prototype.skipped=function(){return this._skipped=!0,this};ss.prototype.standardOutput=function(e){return this._standardOutput=e,this};ss.prototype.standardError=function(e){return this._standardError=e,this};ss.prototype.getFailureCount=function(){return Number(this._failure)};ss.prototype.getErrorCount=function(){return Number(this._error)};ss.prototype.getSkippedCount=function(){return Number(this._skipped)};ss.prototype.errorAttachment=function(e){return this._errorAttachment=e,this};ss.prototype.property=function(e,t){return this._properties.push({name:e,value:t}),this};ss.prototype.build=function(e){var t=e.ele("testcase",this._attributes);if(this._properties.length){var r=t.ele("properties");yRr.forEach(this._properties,function(a){r.ele("property",{name:a.name,value:a.value});});}if(this._failure){var n=t.ele("failure",this._failureAttributes);this._stacktrace&&n.cdata(this._stacktrace);}if(this._error){var i=t.ele("error",this._errorAttributes);this._errorContent&&i.cdata(this._errorContent);}this._skipped&&t.ele("skipped"),this._standardOutput&&t.ele("system-out").cdata(this._standardOutput);var s;this._standardError&&(s=t.ele("system-err").cdata(this._standardError),this._errorAttachment&&s.txt("[[ATTACHMENT|"+this._errorAttachment+"]]"));};a8e.exports=ss;});var u8e=chunkTKGT252T_js.c((Ixn,o8e)=>{var gRr=chunkHZVCNUTP_js.ea(),SRr=H6e(),TRr=chunkTKGT252T_js.a("path"),ERr=t8e(),bRr=chunkTKGT252T_js.a("fs");lK();cK();function $T(e){this._factory=e,this._testSuitesAndCases=[];}$T.prototype.writeTo=function(e){ERr.sync(TRr.dirname(e)),bRr.writeFileSync(e,this.build(),"utf8");};$T.prototype.build=function(){var e=SRr.create("testsuites",{encoding:"UTF-8",invalidCharReplacement:""});return gRr.forEach(this._testSuitesAndCases,function(t){t.build(e);}),e.end({pretty:!0})};$T.prototype.testSuite=function(){var e=this._factory.newTestSuite();return this._testSuitesAndCases.push(e),e};$T.prototype.testCase=function(){var e=this._factory.newTestCase();return this._testSuitesAndCases.push(e),e};$T.prototype.newBuilder=function(){return this._factory.newBuilder()};o8e.exports=$T;});var c8e=chunkTKGT252T_js.c((Oxn,l8e)=>{var vRr=u8e(),_Rr=lK(),xRr=cK();function ER(){}ER.prototype.newBuilder=function(){return new vRr(this)};ER.prototype.newTestSuite=function(){return new _Rr(this)};ER.prototype.newTestCase=function(){return new xRr(this)};l8e.exports=ER;});var f8e=chunkTKGT252T_js.c((Dxn,p8e)=>{var ARr=c8e();p8e.exports=new ARr().newBuilder();});var fp=chunkTKGT252T_js.c((jxn,S8e)=>{var y8e=["nodebuffer","arraybuffer","fragments"],g8e=typeof Blob<"u";g8e&&y8e.push("blob");S8e.exports={BINARY_TYPES:y8e,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:g8e,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}};});var bx=chunkTKGT252T_js.c((Uxn,bR)=>{var{EMPTY_BUFFER:DRr}=fp(),hK=Buffer[Symbol.species];function NRr(e,t){if(e.length===0)return DRr;if(e.length===1)return e[0];let r=Buffer.allocUnsafe(t),n=0;for(let i=0;i<e.length;i++){let s=e[i];r.set(s,n),n+=s.length;}return n<t?new hK(r.buffer,r.byteOffset,n):r}function T8e(e,t,r,n,i){for(let s=0;s<i;s++)r[n+s]=e[s]^t[s&3];}function E8e(e,t){for(let r=0;r<e.length;r++)e[r]^=t[r&3];}function RRr(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function dK(e){if(dK.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new hK(e):ArrayBuffer.isView(e)?t=new hK(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),dK.readOnly=!1),t}bR.exports={concat:NRr,mask:T8e,toArrayBuffer:RRr,toBuffer:dK,unmask:E8e};if(!process.env.WS_NO_BUFFER_UTIL)try{let e=chunkTKGT252T_js.a("bufferutil");bR.exports.mask=function(t,r,n,i,s){s<48?T8e(t,r,n,i,s):e.mask(t,r,n,i,s);},bR.exports.unmask=function(t,r){t.length<32?E8e(t,r):e.unmask(t,r);};}catch{}});var _8e=chunkTKGT252T_js.c((qxn,v8e)=>{var b8e=Symbol("kDone"),mK=Symbol("kRun"),yK=class{constructor(t){this[b8e]=()=>{this.pending--,this[mK]();},this.concurrency=t||1/0,this.jobs=[],this.pending=0;}add(t){this.jobs.push(t),this[mK]();}[mK](){if(this.pending!==this.concurrency&&this.jobs.length){let t=this.jobs.shift();this.pending++,t(this[b8e]);}}};v8e.exports=yK;});var _x=chunkTKGT252T_js.c((Vxn,C8e)=>{var vx=chunkTKGT252T_js.a("zlib"),x8e=bx(),MRr=_8e(),{kStatusCode:A8e}=fp(),LRr=Buffer[Symbol.species],kRr=Buffer.from([0,0,255,255]),_R=Symbol("permessage-deflate"),hp=Symbol("total-length"),KT=Symbol("callback"),Ah=Symbol("buffers"),YT=Symbol("error"),vR,gK=class{constructor(t,r,n){if(this._maxPayload=n|0,this._options=t||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!r,this._deflate=null,this._inflate=null,this.params=null,!vR){let i=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;vR=new MRr(i);}}static get extensionName(){return "permessage-deflate"}offer(){let t={};return this._options.serverNoContextTakeover&&(t.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(t.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(t.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?t.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(t.client_max_window_bits=!0),t}accept(t){return t=this.normalizeParams(t),this.params=this._isServer?this.acceptAsServer(t):this.acceptAsClient(t),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let t=this._deflate[KT];this._deflate.close(),this._deflate=null,t&&t(new Error("The deflate stream was closed while data was being processed"));}}acceptAsServer(t){let r=this._options,n=t.find(i=>!(r.serverNoContextTakeover===!1&&i.server_no_context_takeover||i.server_max_window_bits&&(r.serverMaxWindowBits===!1||typeof r.serverMaxWindowBits=="number"&&r.serverMaxWindowBits>i.server_max_window_bits)||typeof r.clientMaxWindowBits=="number"&&!i.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return r.serverNoContextTakeover&&(n.server_no_context_takeover=!0),r.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof r.serverMaxWindowBits=="number"&&(n.server_max_window_bits=r.serverMaxWindowBits),typeof r.clientMaxWindowBits=="number"?n.client_max_window_bits=r.clientMaxWindowBits:(n.client_max_window_bits===!0||r.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(t){let r=t[0];if(this._options.clientNoContextTakeover===!1&&r.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!r.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(r.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&r.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return r}normalizeParams(t){return t.forEach(r=>{Object.keys(r).forEach(n=>{let i=r[n];if(i.length>1)throw new Error(`Parameter "${n}" must have only a single value`);if(i=i[0],n==="client_max_window_bits"){if(i!==!0){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${n}": ${i}`);i=s;}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${n}": ${i}`)}else if(n==="server_max_window_bits"){let s=+i;if(!Number.isInteger(s)||s<8||s>15)throw new TypeError(`Invalid value for parameter "${n}": ${i}`);i=s;}else if(n==="client_no_context_takeover"||n==="server_no_context_takeover"){if(i!==!0)throw new TypeError(`Invalid value for parameter "${n}": ${i}`)}else throw new Error(`Unknown parameter "${n}"`);r[n]=i;});}),t}decompress(t,r,n){vR.add(i=>{this._decompress(t,r,(s,a)=>{i(),n(s,a);});});}compress(t,r,n){vR.add(i=>{this._compress(t,r,(s,a)=>{i(),n(s,a);});});}_decompress(t,r,n){let i=this._isServer?"client":"server";if(!this._inflate){let s=`${i}_max_window_bits`,a=typeof this.params[s]!="number"?vx.Z_DEFAULT_WINDOWBITS:this.params[s];this._inflate=vx.createInflateRaw({...this._options.zlibInflateOptions,windowBits:a}),this._inflate[_R]=this,this._inflate[hp]=0,this._inflate[Ah]=[],this._inflate.on("error",BRr),this._inflate.on("data",P8e);}this._inflate[KT]=n,this._inflate.write(t),r&&this._inflate.write(kRr),this._inflate.flush(()=>{let s=this._inflate[YT];if(s){this._inflate.close(),this._inflate=null,n(s);return}let a=x8e.concat(this._inflate[Ah],this._inflate[hp]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[hp]=0,this._inflate[Ah]=[],r&&this.params[`${i}_no_context_takeover`]&&this._inflate.reset()),n(null,a);});}_compress(t,r,n){let i=this._isServer?"server":"client";if(!this._deflate){let s=`${i}_max_window_bits`,a=typeof this.params[s]!="number"?vx.Z_DEFAULT_WINDOWBITS:this.params[s];this._deflate=vx.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:a}),this._deflate[hp]=0,this._deflate[Ah]=[],this._deflate.on("data",FRr);}this._deflate[KT]=n,this._deflate.write(t),this._deflate.flush(vx.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let s=x8e.concat(this._deflate[Ah],this._deflate[hp]);r&&(s=new LRr(s.buffer,s.byteOffset,s.length-4)),this._deflate[KT]=null,this._deflate[hp]=0,this._deflate[Ah]=[],r&&this.params[`${i}_no_context_takeover`]&&this._deflate.reset(),n(null,s);});}};C8e.exports=gK;function FRr(e){this[Ah].push(e),this[hp]+=e.length;}function P8e(e){if(this[hp]+=e.length,this[_R]._maxPayload<1||this[hp]<=this[_R]._maxPayload){this[Ah].push(e);return}this[YT]=new RangeError("Max payload size exceeded"),this[YT].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[YT][A8e]=1009,this.removeListener("data",P8e),this.reset();}function BRr(e){if(this[_R]._inflate=null,this[YT]){this[KT](this[YT]);return}e[A8e]=1007,this[KT](e);}});var WT=chunkTKGT252T_js.c((Hxn,xR)=>{var{isUtf8:w8e}=chunkTKGT252T_js.a("buffer"),{hasBlob:jRr}=fp(),URr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function qRr(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function SK(e){let t=e.length,r=0;for(;r<t;)if(!(e[r]&128))r++;else if((e[r]&224)===192){if(r+1===t||(e[r+1]&192)!==128||(e[r]&254)===192)return !1;r+=2;}else if((e[r]&240)===224){if(r+2>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||e[r]===224&&(e[r+1]&224)===128||e[r]===237&&(e[r+1]&224)===160)return !1;r+=3;}else if((e[r]&248)===240){if(r+3>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||(e[r+3]&192)!==128||e[r]===240&&(e[r+1]&240)===128||e[r]===244&&e[r+1]>143||e[r]>244)return !1;r+=4;}else return !1;return !0}function VRr(e){return jRr&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&(e[Symbol.toStringTag]==="Blob"||e[Symbol.toStringTag]==="File")}xR.exports={isBlob:VRr,isValidStatusCode:qRr,isValidUTF8:SK,tokenChars:URr};if(w8e)xR.exports.isValidUTF8=function(e){return e.length<24?SK(e):w8e(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=chunkTKGT252T_js.a("utf-8-validate");xR.exports.isValidUTF8=function(t){return t.length<32?SK(t):e(t)};}catch{}});var _K=chunkTKGT252T_js.c((Gxn,L8e)=>{var{Writable:HRr}=chunkTKGT252T_js.a("stream"),I8e=_x(),{BINARY_TYPES:GRr,EMPTY_BUFFER:O8e,kStatusCode:$Rr,kWebSocket:KRr}=fp(),{concat:TK,toArrayBuffer:YRr,unmask:WRr}=bx(),{isValidStatusCode:XRr,isValidUTF8:D8e}=WT(),AR=Buffer[Symbol.species],qo=0,N8e=1,R8e=2,M8e=3,EK=4,bK=5,PR=6,vK=class extends HRr{constructor(t={}){super(),this._allowSynchronousEvents=t.allowSynchronousEvents!==void 0?t.allowSynchronousEvents:!0,this._binaryType=t.binaryType||GRr[0],this._extensions=t.extensions||{},this._isServer=!!t.isServer,this._maxPayload=t.maxPayload|0,this._skipUTF8Validation=!!t.skipUTF8Validation,this[KRr]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=qo;}_write(t,r,n){if(this._opcode===8&&this._state==qo)return n();this._bufferedBytes+=t.length,this._buffers.push(t),this.startLoop(n);}consume(t){if(this._bufferedBytes-=t,t===this._buffers[0].length)return this._buffers.shift();if(t<this._buffers[0].length){let n=this._buffers[0];return this._buffers[0]=new AR(n.buffer,n.byteOffset+t,n.length-t),new AR(n.buffer,n.byteOffset,t)}let r=Buffer.allocUnsafe(t);do{let n=this._buffers[0],i=r.length-t;t>=n.length?r.set(this._buffers.shift(),i):(r.set(new Uint8Array(n.buffer,n.byteOffset,t),i),this._buffers[0]=new AR(n.buffer,n.byteOffset+t,n.length-t)),t-=n.length;}while(t>0);return r}startLoop(t){this._loop=!0;do switch(this._state){case qo:this.getInfo(t);break;case N8e:this.getPayloadLength16(t);break;case R8e:this.getPayloadLength64(t);break;case M8e:this.getMask();break;case EK:this.getData(t);break;case bK:case PR:this._loop=!1;return}while(this._loop);this._errored||t();}getInfo(t){if(this._bufferedBytes<2){this._loop=!1;return}let r=this.consume(2);if(r[0]&48){let i=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");t(i);return}let n=(r[0]&64)===64;if(n&&!this._extensions[I8e.extensionName]){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(i);return}if(this._fin=(r[0]&128)===128,this._opcode=r[0]&15,this._payloadLength=r[1]&127,this._opcode===0){if(n){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(i);return}if(!this._fragmented){let i=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");t(i);return}this._opcode=this._fragmented;}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");t(i);return}this._compressed=n;}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let i=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");t(i);return}if(n){let i=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");t(i);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let i=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");t(i);return}}else {let i=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");t(i);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(r[1]&128)===128,this._isServer){if(!this._masked){let i=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");t(i);return}}else if(this._masked){let i=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");t(i);return}this._payloadLength===126?this._state=N8e:this._payloadLength===127?this._state=R8e:this.haveLength(t);}getPayloadLength16(t){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(t);}getPayloadLength64(t){if(this._bufferedBytes<8){this._loop=!1;return}let r=this.consume(8),n=r.readUInt32BE(0);if(n>Math.pow(2,53-32)-1){let i=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");t(i);return}this._payloadLength=n*Math.pow(2,32)+r.readUInt32BE(4),this.haveLength(t);}haveLength(t){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let r=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(r);return}this._masked?this._state=M8e:this._state=EK;}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=EK;}getData(t){let r=O8e;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}r=this.consume(this._payloadLength),this._masked&&this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3]&&WRr(r,this._mask);}if(this._opcode>7){this.controlMessage(r,t);return}if(this._compressed){this._state=bK,this.decompress(r,t);return}r.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(r)),this.dataMessage(t);}decompress(t,r){this._extensions[I8e.extensionName].decompress(t,this._fin,(i,s)=>{if(i)return r(i);if(s.length){if(this._messageLength+=s.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let a=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");r(a);return}this._fragments.push(s);}this.dataMessage(r),this._state===qo&&this.startLoop(r);});}dataMessage(t){if(!this._fin){this._state=qo;return}let r=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let i;this._binaryType==="nodebuffer"?i=TK(n,r):this._binaryType==="arraybuffer"?i=YRr(TK(n,r)):this._binaryType==="blob"?i=new Blob(n):i=n,this._allowSynchronousEvents?(this.emit("message",i,!0),this._state=qo):(this._state=PR,setImmediate(()=>{this.emit("message",i,!0),this._state=qo,this.startLoop(t);}));}else {let i=TK(n,r);if(!this._skipUTF8Validation&&!D8e(i)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(s);return}this._state===bK||this._allowSynchronousEvents?(this.emit("message",i,!1),this._state=qo):(this._state=PR,setImmediate(()=>{this.emit("message",i,!1),this._state=qo,this.startLoop(t);}));}}controlMessage(t,r){if(this._opcode===8){if(t.length===0)this._loop=!1,this.emit("conclude",1005,O8e),this.end();else {let n=t.readUInt16BE(0);if(!XRr(n)){let s=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");r(s);return}let i=new AR(t.buffer,t.byteOffset+2,t.length-2);if(!this._skipUTF8Validation&&!D8e(i)){let s=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");r(s);return}this._loop=!1,this.emit("conclude",n,i),this.end();}this._state=qo;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",t),this._state=qo):(this._state=PR,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",t),this._state=qo,this.startLoop(r);}));}createError(t,r,n,i,s){this._loop=!1,this._errored=!0;let a=new t(n?`Invalid WebSocket frame: ${r}`:r);return Error.captureStackTrace(a,this.createError),a.code=s,a[$Rr]=i,a}};L8e.exports=vK;});var PK=chunkTKGT252T_js.c((Kxn,B8e)=>{chunkTKGT252T_js.a("stream");var {randomFillSync:zRr}=chunkTKGT252T_js.a("crypto"),k8e=_x(),{EMPTY_BUFFER:JRr,kWebSocket:QRr,NOOP:ZRr}=fp(),{isBlob:XT,isValidStatusCode:eMr}=WT(),{mask:F8e,toBuffer:Bm}=bx(),Vo=Symbol("kByteLength"),tMr=Buffer.alloc(4),CR=8*1024,jm,zT=CR,Cu=0,rMr=1,nMr=2,xK=class e{constructor(t,r,n){this._extensions=r||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=t,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=Cu,this.onerror=ZRr,this[QRr]=void 0;}static frame(t,r){let n,i=!1,s=2,a=!1;r.mask&&(n=r.maskBuffer||tMr,r.generateMask?r.generateMask(n):(zT===CR&&(jm===void 0&&(jm=Buffer.alloc(CR)),zRr(jm,0,CR),zT=0),n[0]=jm[zT++],n[1]=jm[zT++],n[2]=jm[zT++],n[3]=jm[zT++]),a=(n[0]|n[1]|n[2]|n[3])===0,s=6);let o;typeof t=="string"?(!r.mask||a)&&r[Vo]!==void 0?o=r[Vo]:(t=Buffer.from(t),o=t.length):(o=t.length,i=r.mask&&r.readOnly&&!a);let u=o;o>=65536?(s+=8,u=127):o>125&&(s+=2,u=126);let l=Buffer.allocUnsafe(i?o+s:s);return l[0]=r.fin?r.opcode|128:r.opcode,r.rsv1&&(l[0]|=64),l[1]=u,u===126?l.writeUInt16BE(o,2):u===127&&(l[2]=l[3]=0,l.writeUIntBE(o,4,6)),r.mask?(l[1]|=128,l[s-4]=n[0],l[s-3]=n[1],l[s-2]=n[2],l[s-1]=n[3],a?[l,t]:i?(F8e(t,n,l,s,o),[l]):(F8e(t,n,t,0,o),[l,t])):[l,t]}close(t,r,n,i){let s;if(t===void 0)s=JRr;else {if(typeof t!="number"||!eMr(t))throw new TypeError("First argument must be a valid error code number");if(r===void 0||!r.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(t,0);else {let o=Buffer.byteLength(r);if(o>123)throw new RangeError("The message must not be greater than 123 bytes");s=Buffer.allocUnsafe(2+o),s.writeUInt16BE(t,0),typeof r=="string"?s.write(r,2):s.set(r,2);}}let a={[Vo]:s.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==Cu?this.enqueue([this.dispatch,s,!1,a,i]):this.sendFrame(e.frame(s,a),i);}ping(t,r,n){let i,s;if(typeof t=="string"?(i=Buffer.byteLength(t),s=!1):XT(t)?(i=t.size,s=!1):(t=Bm(t),i=t.length,s=Bm.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[Vo]:i,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:9,readOnly:s,rsv1:!1};XT(t)?this._state!==Cu?this.enqueue([this.getBlobData,t,!1,a,n]):this.getBlobData(t,!1,a,n):this._state!==Cu?this.enqueue([this.dispatch,t,!1,a,n]):this.sendFrame(e.frame(t,a),n);}pong(t,r,n){let i,s;if(typeof t=="string"?(i=Buffer.byteLength(t),s=!1):XT(t)?(i=t.size,s=!1):(t=Bm(t),i=t.length,s=Bm.readOnly),i>125)throw new RangeError("The data size must not be greater than 125 bytes");let a={[Vo]:i,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:10,readOnly:s,rsv1:!1};XT(t)?this._state!==Cu?this.enqueue([this.getBlobData,t,!1,a,n]):this.getBlobData(t,!1,a,n):this._state!==Cu?this.enqueue([this.dispatch,t,!1,a,n]):this.sendFrame(e.frame(t,a),n);}send(t,r,n){let i=this._extensions[k8e.extensionName],s=r.binary?2:1,a=r.compress,o,u;typeof t=="string"?(o=Buffer.byteLength(t),u=!1):XT(t)?(o=t.size,u=!1):(t=Bm(t),o=t.length,u=Bm.readOnly),this._firstFragment?(this._firstFragment=!1,a&&i&&i.params[i._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(a=o>=i._threshold),this._compress=a):(a=!1,s=0),r.fin&&(this._firstFragment=!0);let l={[Vo]:o,fin:r.fin,generateMask:this._generateMask,mask:r.mask,maskBuffer:this._maskBuffer,opcode:s,readOnly:u,rsv1:a};XT(t)?this._state!==Cu?this.enqueue([this.getBlobData,t,this._compress,l,n]):this.getBlobData(t,this._compress,l,n):this._state!==Cu?this.enqueue([this.dispatch,t,this._compress,l,n]):this.dispatch(t,this._compress,l,n);}getBlobData(t,r,n,i){this._bufferedBytes+=n[Vo],this._state=nMr,t.arrayBuffer().then(s=>{if(this._socket.destroyed){let o=new Error("The socket was closed while the blob was being read");process.nextTick(AK,this,o,i);return}this._bufferedBytes-=n[Vo];let a=Bm(s);r?this.dispatch(a,r,n,i):(this._state=Cu,this.sendFrame(e.frame(a,n),i),this.dequeue());}).catch(s=>{process.nextTick(iMr,this,s,i);});}dispatch(t,r,n,i){if(!r){this.sendFrame(e.frame(t,n),i);return}let s=this._extensions[k8e.extensionName];this._bufferedBytes+=n[Vo],this._state=rMr,s.compress(t,n.fin,(a,o)=>{if(this._socket.destroyed){let u=new Error("The socket was closed while data was being compressed");AK(this,u,i);return}this._bufferedBytes-=n[Vo],this._state=Cu,n.readOnly=!1,this.sendFrame(e.frame(o,n),i),this.dequeue();});}dequeue(){for(;this._state===Cu&&this._queue.length;){let t=this._queue.shift();this._bufferedBytes-=t[3][Vo],Reflect.apply(t[0],this,t.slice(1));}}enqueue(t){this._bufferedBytes+=t[3][Vo],this._queue.push(t);}sendFrame(t,r){t.length===2?(this._socket.cork(),this._socket.write(t[0]),this._socket.write(t[1],r),this._socket.uncork()):this._socket.write(t[0],r);}};B8e.exports=xK;function AK(e,t,r){typeof r=="function"&&r(t);for(let n=0;n<e._queue.length;n++){let i=e._queue[n],s=i[i.length-1];typeof s=="function"&&s(t);}}function iMr(e,t,r){AK(e,t,r),e.onerror(t);}});var Y8e=chunkTKGT252T_js.c((Yxn,K8e)=>{var{kForOnEventAttribute:xx,kListener:CK}=fp(),j8e=Symbol("kCode"),U8e=Symbol("kData"),q8e=Symbol("kError"),V8e=Symbol("kMessage"),H8e=Symbol("kReason"),JT=Symbol("kTarget"),G8e=Symbol("kType"),$8e=Symbol("kWasClean"),dp=class{constructor(t){this[JT]=null,this[G8e]=t;}get target(){return this[JT]}get type(){return this[G8e]}};Object.defineProperty(dp.prototype,"target",{enumerable:!0});Object.defineProperty(dp.prototype,"type",{enumerable:!0});var Um=class extends dp{constructor(t,r={}){super(t),this[j8e]=r.code===void 0?0:r.code,this[H8e]=r.reason===void 0?"":r.reason,this[$8e]=r.wasClean===void 0?!1:r.wasClean;}get code(){return this[j8e]}get reason(){return this[H8e]}get wasClean(){return this[$8e]}};Object.defineProperty(Um.prototype,"code",{enumerable:!0});Object.defineProperty(Um.prototype,"reason",{enumerable:!0});Object.defineProperty(Um.prototype,"wasClean",{enumerable:!0});var QT=class extends dp{constructor(t,r={}){super(t),this[q8e]=r.error===void 0?null:r.error,this[V8e]=r.message===void 0?"":r.message;}get error(){return this[q8e]}get message(){return this[V8e]}};Object.defineProperty(QT.prototype,"error",{enumerable:!0});Object.defineProperty(QT.prototype,"message",{enumerable:!0});var Ax=class extends dp{constructor(t,r={}){super(t),this[U8e]=r.data===void 0?null:r.data;}get data(){return this[U8e]}};Object.defineProperty(Ax.prototype,"data",{enumerable:!0});var sMr={addEventListener(e,t,r={}){for(let i of this.listeners(e))if(!r[xx]&&i[CK]===t&&!i[xx])return;let n;if(e==="message")n=function(s,a){let o=new Ax("message",{data:a?s:s.toString()});o[JT]=this,wR(t,this,o);};else if(e==="close")n=function(s,a){let o=new Um("close",{code:s,reason:a.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});o[JT]=this,wR(t,this,o);};else if(e==="error")n=function(s){let a=new QT("error",{error:s,message:s.message});a[JT]=this,wR(t,this,a);};else if(e==="open")n=function(){let s=new dp("open");s[JT]=this,wR(t,this,s);};else return;n[xx]=!!r[xx],n[CK]=t,r.once?this.once(e,n):this.on(e,n);},removeEventListener(e,t){for(let r of this.listeners(e))if(r[CK]===t&&!r[xx]){this.removeListener(e,r);break}}};K8e.exports={CloseEvent:Um,ErrorEvent:QT,Event:dp,EventTarget:sMr,MessageEvent:Ax};function wR(e,t,r){typeof e=="object"&&e.handleEvent?e.handleEvent.call(e,r):e.call(t,r);}});var wK=chunkTKGT252T_js.c((Wxn,W8e)=>{var{tokenChars:Px}=WT();function Ml(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r);}function aMr(e){let t=Object.create(null),r=Object.create(null),n=!1,i=!1,s=!1,a,o,u=-1,l=-1,c=-1,p=0;for(;p<e.length;p++)if(l=e.charCodeAt(p),a===void 0)if(c===-1&&Px[l]===1)u===-1&&(u=p);else if(p!==0&&(l===32||l===9))c===-1&&u!==-1&&(c=p);else if(l===59||l===44){if(u===-1)throw new SyntaxError(`Unexpected character at index ${p}`);c===-1&&(c=p);let f=e.slice(u,c);l===44?(Ml(t,f,r),r=Object.create(null)):a=f,u=c=-1;}else throw new SyntaxError(`Unexpected character at index ${p}`);else if(o===void 0)if(c===-1&&Px[l]===1)u===-1&&(u=p);else if(l===32||l===9)c===-1&&u!==-1&&(c=p);else if(l===59||l===44){if(u===-1)throw new SyntaxError(`Unexpected character at index ${p}`);c===-1&&(c=p),Ml(r,e.slice(u,c),!0),l===44&&(Ml(t,a,r),r=Object.create(null),a=void 0),u=c=-1;}else if(l===61&&u!==-1&&c===-1)o=e.slice(u,p),u=c=-1;else throw new SyntaxError(`Unexpected character at index ${p}`);else if(i){if(Px[l]!==1)throw new SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:n||(n=!0),i=!1;}else if(s)if(Px[l]===1)u===-1&&(u=p);else if(l===34&&u!==-1)s=!1,c=p;else if(l===92)i=!0;else throw new SyntaxError(`Unexpected character at index ${p}`);else if(l===34&&e.charCodeAt(p-1)===61)s=!0;else if(c===-1&&Px[l]===1)u===-1&&(u=p);else if(u!==-1&&(l===32||l===9))c===-1&&(c=p);else if(l===59||l===44){if(u===-1)throw new SyntaxError(`Unexpected character at index ${p}`);c===-1&&(c=p);let f=e.slice(u,c);n&&(f=f.replace(/\\/g,""),n=!1),Ml(r,o,f),l===44&&(Ml(t,a,r),r=Object.create(null),a=void 0),o=void 0,u=c=-1;}else throw new SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||l===32||l===9)throw new SyntaxError("Unexpected end of input");c===-1&&(c=p);let h=e.slice(u,c);return a===void 0?Ml(t,h,r):(o===void 0?Ml(r,h,!0):n?Ml(r,o,h.replace(/\\/g,"")):Ml(r,o,h),Ml(t,a,r)),t}function oMr(e){return Object.keys(e).map(t=>{let r=e[t];return Array.isArray(r)||(r=[r]),r.map(n=>[t].concat(Object.keys(n).map(i=>{let s=n[i];return Array.isArray(s)||(s=[s]),s.map(a=>a===!0?i:`${i}=${a}`).join("; ")})).join("; ")).join(", ")}).join(", ")}W8e.exports={format:oMr,parse:aMr};});var NR=chunkTKGT252T_js.c((Jxn,a9e)=>{var uMr=chunkTKGT252T_js.a("events"),lMr=chunkTKGT252T_js.a("https"),cMr=chunkTKGT252T_js.a("http"),J8e=chunkTKGT252T_js.a("net"),pMr=chunkTKGT252T_js.a("tls"),{randomBytes:fMr,createHash:hMr}=chunkTKGT252T_js.a("crypto");chunkTKGT252T_js.a("stream");var {URL:IK}=chunkTKGT252T_js.a("url"),Ph=_x(),dMr=_K(),mMr=PK(),{isBlob:yMr}=WT(),{BINARY_TYPES:X8e,EMPTY_BUFFER:IR,GUID:gMr,kForOnEventAttribute:OK,kListener:SMr,kStatusCode:TMr,kWebSocket:$i,NOOP:Q8e}=fp(),{EventTarget:{addEventListener:EMr,removeEventListener:bMr}}=Y8e(),{format:vMr,parse:_Mr}=wK(),{toBuffer:xMr}=bx(),AMr=30*1e3,Z8e=Symbol("kAborted"),DK=[8,13],mp=["CONNECTING","OPEN","CLOSING","CLOSED"],PMr=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,Bn=class e extends uMr{constructor(t,r,n){super(),this._binaryType=X8e[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=IR,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,r===void 0?r=[]:Array.isArray(r)||(typeof r=="object"&&r!==null?(n=r,r=[]):r=[r]),e9e(this,t,r,n)):(this._autoPong=n.autoPong,this._isServer=!0);}get binaryType(){return this._binaryType}set binaryType(t){X8e.includes(t)&&(this._binaryType=t,this._receiver&&(this._receiver._binaryType=t));}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,r,n){let i=new dMr({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),s=new mMr(t,this._extensions,n.generateMask);this._receiver=i,this._sender=s,this._socket=t,i[$i]=this,s[$i]=this,t[$i]=this,i.on("conclude",IMr),i.on("drain",OMr),i.on("error",DMr),i.on("message",NMr),i.on("ping",RMr),i.on("pong",MMr),s.onerror=LMr,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),r.length>0&&t.unshift(r),t.on("close",n9e),t.on("data",DR),t.on("end",i9e),t.on("error",s9e),this._readyState=e.OPEN,this.emit("open");}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[Ph.extensionName]&&this._extensions[Ph.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);}close(t,r){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){let n="WebSocket was closed before the connection was established";Wa(this,this._req,n);return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,r,!this._isServer,n=>{n||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end());}),r9e(this);}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause());}ping(t,r,n){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"?(n=t,t=r=void 0):typeof r=="function"&&(n=r,r=void 0),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){NK(this,t,n);return}r===void 0&&(r=!this._isServer),this._sender.ping(t||IR,r,n);}pong(t,r,n){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"?(n=t,t=r=void 0):typeof r=="function"&&(n=r,r=void 0),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){NK(this,t,n);return}r===void 0&&(r=!this._isServer),this._sender.pong(t||IR,r,n);}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume());}send(t,r,n){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof r=="function"&&(n=r,r={}),typeof t=="number"&&(t=t.toString()),this.readyState!==e.OPEN){NK(this,t,n);return}let i={binary:typeof t!="string",mask:!this._isServer,compress:!0,fin:!0,...r};this._extensions[Ph.extensionName]||(i.compress=!1),this._sender.send(t||IR,i,n);}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){let t="WebSocket was closed before the connection was established";Wa(this,this._req,t);return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy());}}};Object.defineProperty(Bn,"CONNECTING",{enumerable:!0,value:mp.indexOf("CONNECTING")});Object.defineProperty(Bn.prototype,"CONNECTING",{enumerable:!0,value:mp.indexOf("CONNECTING")});Object.defineProperty(Bn,"OPEN",{enumerable:!0,value:mp.indexOf("OPEN")});Object.defineProperty(Bn.prototype,"OPEN",{enumerable:!0,value:mp.indexOf("OPEN")});Object.defineProperty(Bn,"CLOSING",{enumerable:!0,value:mp.indexOf("CLOSING")});Object.defineProperty(Bn.prototype,"CLOSING",{enumerable:!0,value:mp.indexOf("CLOSING")});Object.defineProperty(Bn,"CLOSED",{enumerable:!0,value:mp.indexOf("CLOSED")});Object.defineProperty(Bn.prototype,"CLOSED",{enumerable:!0,value:mp.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(Bn.prototype,e,{enumerable:!0});});["open","error","close","message"].forEach(e=>{Object.defineProperty(Bn.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[OK])return t[SMr];return null},set(t){for(let r of this.listeners(e))if(r[OK]){this.removeListener(e,r);break}typeof t=="function"&&this.addEventListener(e,t,{[OK]:!0});}});});Bn.prototype.addEventListener=EMr;Bn.prototype.removeEventListener=bMr;a9e.exports=Bn;function e9e(e,t,r,n){let i={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:DK[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...n,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=i.autoPong,!DK.includes(i.protocolVersion))throw new RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${DK.join(", ")})`);let s;if(t instanceof IK)s=t;else try{s=new IK(t);}catch{throw new SyntaxError(`Invalid URL: ${t}`)}s.protocol==="http:"?s.protocol="ws:":s.protocol==="https:"&&(s.protocol="wss:"),e._url=s.href;let a=s.protocol==="wss:",o=s.protocol==="ws+unix:",u;if(s.protocol!=="ws:"&&!a&&!o?u=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:o&&!s.pathname?u="The URL's pathname is empty":s.hash&&(u="The URL contains a fragment identifier"),u){let m=new SyntaxError(u);if(e._redirects===0)throw m;OR(e,m);return}let l=a?443:80,c=fMr(16).toString("base64"),p=a?lMr.request:cMr.request,h=new Set,f;if(i.createConnection=i.createConnection||(a?wMr:CMr),i.defaultPort=i.defaultPort||l,i.port=s.port||l,i.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":c,Connection:"Upgrade",Upgrade:"websocket"},i.path=s.pathname+s.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate&&(f=new Ph(i.perMessageDeflate!==!0?i.perMessageDeflate:{},!1,i.maxPayload),i.headers["Sec-WebSocket-Extensions"]=vMr({[Ph.extensionName]:f.offer()})),r.length){for(let m of r){if(typeof m!="string"||!PMr.test(m)||h.has(m))throw new SyntaxError("An invalid or duplicated subprotocol was specified");h.add(m);}i.headers["Sec-WebSocket-Protocol"]=r.join(",");}if(i.origin&&(i.protocolVersion<13?i.headers["Sec-WebSocket-Origin"]=i.origin:i.headers.Origin=i.origin),(s.username||s.password)&&(i.auth=`${s.username}:${s.password}`),o){let m=i.path.split(":");i.socketPath=m[0],i.path=m[1];}let d;if(i.followRedirects){if(e._redirects===0){e._originalIpc=o,e._originalSecure=a,e._originalHostOrSocketPath=o?i.socketPath:s.host;let m=n&&n.headers;if(n={...n,headers:{}},m)for(let[y,g]of Object.entries(m))n.headers[y.toLowerCase()]=g;}else if(e.listenerCount("redirect")===0){let m=o?e._originalIpc?i.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:s.host===e._originalHostOrSocketPath;(!m||e._originalSecure&&!a)&&(delete i.headers.authorization,delete i.headers.cookie,m||delete i.headers.host,i.auth=void 0);}i.auth&&!n.headers.authorization&&(n.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64")),d=e._req=p(i),e._redirects&&e.emit("redirect",e.url,d);}else d=e._req=p(i);i.timeout&&d.on("timeout",()=>{Wa(e,d,"Opening handshake has timed out");}),d.on("error",m=>{d===null||d[Z8e]||(d=e._req=null,OR(e,m));}),d.on("response",m=>{let y=m.headers.location,g=m.statusCode;if(y&&i.followRedirects&&g>=300&&g<400){if(++e._redirects>i.maxRedirects){Wa(e,d,"Maximum redirects exceeded");return}d.abort();let v;try{v=new IK(y,t);}catch{let S=new SyntaxError(`Invalid URL: ${y}`);OR(e,S);return}e9e(e,v,r,n);}else e.emit("unexpected-response",d,m)||Wa(e,d,`Unexpected server response: ${m.statusCode}`);}),d.on("upgrade",(m,y,g)=>{if(e.emit("upgrade",m),e.readyState!==Bn.CONNECTING)return;d=e._req=null;let v=m.headers.upgrade;if(v===void 0||v.toLowerCase()!=="websocket"){Wa(e,y,"Invalid Upgrade header");return}let E=hMr("sha1").update(c+gMr).digest("base64");if(m.headers["sec-websocket-accept"]!==E){Wa(e,y,"Invalid Sec-WebSocket-Accept header");return}let S=m.headers["sec-websocket-protocol"],x;if(S!==void 0?h.size?h.has(S)||(x="Server sent an invalid subprotocol"):x="Server sent a subprotocol but none was requested":h.size&&(x="Server sent no subprotocol"),x){Wa(e,y,x);return}S&&(e._protocol=S);let b=m.headers["sec-websocket-extensions"];if(b!==void 0){if(!f){Wa(e,y,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let A;try{A=_Mr(b);}catch{Wa(e,y,"Invalid Sec-WebSocket-Extensions header");return}let D=Object.keys(A);if(D.length!==1||D[0]!==Ph.extensionName){Wa(e,y,"Server indicated an extension that was not requested");return}try{f.accept(A[Ph.extensionName]);}catch{Wa(e,y,"Invalid Sec-WebSocket-Extensions header");return}e._extensions[Ph.extensionName]=f;}e.setSocket(y,g,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation});}),i.finishRequest?i.finishRequest(d,e):d.end();}function OR(e,t){e._readyState=Bn.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose();}function CMr(e){return e.path=e.socketPath,J8e.connect(e)}function wMr(e){return e.path=void 0,!e.servername&&e.servername!==""&&(e.servername=J8e.isIP(e.host)?"":e.host),pMr.connect(e)}function Wa(e,t,r){e._readyState=Bn.CLOSING;let n=new Error(r);Error.captureStackTrace(n,Wa),t.setHeader?(t[Z8e]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(OR,e,n)):(t.destroy(n),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)));}function NK(e,t,r){if(t){let n=yMr(t)?t.size:xMr(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n;}if(r){let n=new Error(`WebSocket is not open: readyState ${e.readyState} (${mp[e.readyState]})`);process.nextTick(r,n);}}function IMr(e,t){let r=this[$i];r._closeFrameReceived=!0,r._closeMessage=t,r._closeCode=e,r._socket[$i]!==void 0&&(r._socket.removeListener("data",DR),process.nextTick(t9e,r._socket),e===1005?r.close():r.close(e,t));}function OMr(){let e=this[$i];e.isPaused||e._socket.resume();}function DMr(e){let t=this[$i];t._socket[$i]!==void 0&&(t._socket.removeListener("data",DR),process.nextTick(t9e,t._socket),t.close(e[TMr])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e));}function z8e(){this[$i].emitClose();}function NMr(e,t){this[$i].emit("message",e,t);}function RMr(e){let t=this[$i];t._autoPong&&t.pong(e,!this._isServer,Q8e),t.emit("ping",e);}function MMr(e){this[$i].emit("pong",e);}function t9e(e){e.resume();}function LMr(e){let t=this[$i];t.readyState!==Bn.CLOSED&&(t.readyState===Bn.OPEN&&(t._readyState=Bn.CLOSING,r9e(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e)));}function r9e(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),AMr);}function n9e(){let e=this[$i];this.removeListener("close",n9e),this.removeListener("data",DR),this.removeListener("end",i9e),e._readyState=Bn.CLOSING;let t;!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&(t=e._socket.read())!==null&&e._receiver.write(t),e._receiver.end(),this[$i]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",z8e),e._receiver.on("finish",z8e));}function DR(e){this[$i]._receiver.write(e)||this.pause();}function i9e(){let e=this[$i];e._readyState=Bn.CLOSING,e._receiver.end(),this.end();}function s9e(){let e=this[$i];this.removeListener("error",s9e),this.on("error",Q8e),e&&(e._readyState=Bn.CLOSING,this.destroy());}});var c9e=chunkTKGT252T_js.c((Zxn,l9e)=>{NR();var {Duplex:kMr}=chunkTKGT252T_js.a("stream");function o9e(e){e.emit("close");}function FMr(){!this.destroyed&&this._writableState.finished&&this.destroy();}function u9e(e){this.removeListener("error",u9e),this.destroy(),this.listenerCount("error")===0&&this.emit("error",e);}function BMr(e,t){let r=!0,n=new kMr({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(s,a){let o=!a&&n._readableState.objectMode?s.toString():s;n.push(o)||e.pause();}),e.once("error",function(s){n.destroyed||(r=!1,n.destroy(s));}),e.once("close",function(){n.destroyed||n.push(null);}),n._destroy=function(i,s){if(e.readyState===e.CLOSED){s(i),process.nextTick(o9e,n);return}let a=!1;e.once("error",function(u){a=!0,s(u);}),e.once("close",function(){a||s(i),process.nextTick(o9e,n);}),r&&e.terminate();},n._final=function(i){if(e.readyState===e.CONNECTING){e.once("open",function(){n._final(i);});return}e._socket!==null&&(e._socket._writableState.finished?(i(),n._readableState.endEmitted&&n.destroy()):(e._socket.once("finish",function(){i();}),e.close()));},n._read=function(){e.isPaused&&e.resume();},n._write=function(i,s,a){if(e.readyState===e.CONNECTING){e.once("open",function(){n._write(i,s,a);});return}e.send(i,a);},n.on("end",FMr),n.on("error",u9e),n}l9e.exports=BMr;});var f9e=chunkTKGT252T_js.c((eAn,p9e)=>{var{tokenChars:jMr}=WT();function UMr(e){let t=new Set,r=-1,n=-1,i=0;for(i;i<e.length;i++){let a=e.charCodeAt(i);if(n===-1&&jMr[a]===1)r===-1&&(r=i);else if(i!==0&&(a===32||a===9))n===-1&&r!==-1&&(n=i);else if(a===44){if(r===-1)throw new SyntaxError(`Unexpected character at index ${i}`);n===-1&&(n=i);let o=e.slice(r,n);if(t.has(o))throw new SyntaxError(`The "${o}" subprotocol is duplicated`);t.add(o),r=n=-1;}else throw new SyntaxError(`Unexpected character at index ${i}`)}if(r===-1||n!==-1)throw new SyntaxError("Unexpected end of input");let s=e.slice(r,i);if(t.has(s))throw new SyntaxError(`The "${s}" subprotocol is duplicated`);return t.add(s),t}p9e.exports={parse:UMr};});var T9e=chunkTKGT252T_js.c((rAn,S9e)=>{var qMr=chunkTKGT252T_js.a("events"),RR=chunkTKGT252T_js.a("http");chunkTKGT252T_js.a("stream");var {createHash:VMr}=chunkTKGT252T_js.a("crypto"),h9e=wK(),qm=_x(),HMr=f9e(),GMr=NR(),{GUID:$Mr,kWebSocket:KMr}=fp(),YMr=/^[+/0-9A-Za-z]{22}==$/,d9e=0,m9e=1,g9e=2,RK=class extends qMr{constructor(t,r){if(super(),t={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:GMr,...t},t.port==null&&!t.server&&!t.noServer||t.port!=null&&(t.server||t.noServer)||t.server&&t.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(t.port!=null?(this._server=RR.createServer((n,i)=>{let s=RR.STATUS_CODES[426];i.writeHead(426,{"Content-Length":s.length,"Content-Type":"text/plain"}),i.end(s);}),this._server.listen(t.port,t.host,t.backlog,r)):t.server&&(this._server=t.server),this._server){let n=this.emit.bind(this,"connection");this._removeListeners=WMr(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(i,s,a)=>{this.handleUpgrade(i,s,a,n);}});}t.perMessageDeflate===!0&&(t.perMessageDeflate={}),t.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=t,this._state=d9e;}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(t){if(this._state===g9e){t&&this.once("close",()=>{t(new Error("The server is not running"));}),process.nextTick(Cx,this);return}if(t&&this.once("close",t),this._state!==m9e)if(this._state=m9e,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(Cx,this):process.nextTick(Cx,this);else {let r=this._server;this._removeListeners(),this._removeListeners=this._server=null,r.close(()=>{Cx(this);});}}shouldHandle(t){if(this.options.path){let r=t.url.indexOf("?");if((r!==-1?t.url.slice(0,r):t.url)!==this.options.path)return !1}return !0}handleUpgrade(t,r,n,i){r.on("error",y9e);let s=t.headers["sec-websocket-key"],a=t.headers.upgrade,o=+t.headers["sec-websocket-version"];if(t.method!=="GET"){Vm(this,t,r,405,"Invalid HTTP method");return}if(a===void 0||a.toLowerCase()!=="websocket"){Vm(this,t,r,400,"Invalid Upgrade header");return}if(s===void 0||!YMr.test(s)){Vm(this,t,r,400,"Missing or invalid Sec-WebSocket-Key header");return}if(o!==8&&o!==13){Vm(this,t,r,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(t)){wx(r,400);return}let u=t.headers["sec-websocket-protocol"],l=new Set;if(u!==void 0)try{l=HMr.parse(u);}catch{Vm(this,t,r,400,"Invalid Sec-WebSocket-Protocol header");return}let c=t.headers["sec-websocket-extensions"],p={};if(this.options.perMessageDeflate&&c!==void 0){let h=new qm(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let f=h9e.parse(c);f[qm.extensionName]&&(h.accept(f[qm.extensionName]),p[qm.extensionName]=h);}catch{Vm(this,t,r,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let h={origin:t.headers[`${o===8?"sec-websocket-origin":"origin"}`],secure:!!(t.socket.authorized||t.socket.encrypted),req:t};if(this.options.verifyClient.length===2){this.options.verifyClient(h,(f,d,m,y)=>{if(!f)return wx(r,d||401,m,y);this.completeUpgrade(p,s,l,t,r,n,i);});return}if(!this.options.verifyClient(h))return wx(r,401)}this.completeUpgrade(p,s,l,t,r,n,i);}completeUpgrade(t,r,n,i,s,a,o){if(!s.readable||!s.writable)return s.destroy();if(s[KMr])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>d9e)return wx(s,503);let l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${VMr("sha1").update(r+$Mr).digest("base64")}`],c=new this.options.WebSocket(null,void 0,this.options);if(n.size){let p=this.options.handleProtocols?this.options.handleProtocols(n,i):n.values().next().value;p&&(l.push(`Sec-WebSocket-Protocol: ${p}`),c._protocol=p);}if(t[qm.extensionName]){let p=t[qm.extensionName].params,h=h9e.format({[qm.extensionName]:[p]});l.push(`Sec-WebSocket-Extensions: ${h}`),c._extensions=t;}this.emit("headers",l,i),s.write(l.concat(`\r
`).join(`\r
`)),s.removeListener("error",y9e),c.setSocket(s,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(c),c.on("close",()=>{this.clients.delete(c),this._shouldEmitClose&&!this.clients.size&&process.nextTick(Cx,this);})),o(c,i);}};S9e.exports=RK;function WMr(e,t){for(let r of Object.keys(t))e.on(r,t[r]);return function(){for(let n of Object.keys(t))e.removeListener(n,t[n]);}}function Cx(e){e._state=g9e,e.emit("close");}function y9e(){this.destroy();}function wx(e,t,r,n){r=r||RR.STATUS_CODES[t],n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...n},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${RR.STATUS_CODES[t]}\r
`+Object.keys(n).map(i=>`${i}: ${n[i]}`).join(`\r
`)+`\r
\r
`+r);}function Vm(e,t,r,n,i){if(e.listenerCount("wsClientError")){let s=new Error(i);Error.captureStackTrace(s,Vm),e.emit("wsClientError",s,r,t);}else wx(r,n,i);}});JR()("zen-observable",{Observable:tW()});var rW=Object.prototype.toString;function oE(e){switch(rW.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return !0;default:return Mu(e,Error)}}function Xx(e,t){return rW.call(e)===`[object ${t}]`}function aM(e){return Xx(e,"ErrorEvent")}function Ru(e){return Xx(e,"String")}function Km(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function zx(e){return e===null||Km(e)||typeof e!="object"&&typeof e!="function"}function Ca(e){return Xx(e,"Object")}function oM(e){return typeof Event<"u"&&Mu(e,Event)}function uM(e){return typeof Element<"u"&&Mu(e,Element)}function lM(e){return Xx(e,"RegExp")}function aa(e){return !!(e&&e.then&&typeof e.then=="function")}function cM(e){return Ca(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Mu(e,t){try{return e instanceof t}catch{return !1}}function Jx(e){return !!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function za(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function pM(e,t){let r=e,n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let s=Math.min(i+140,n);return s>n-5&&(s=n),s===n&&(i=Math.max(s-140,0)),r=r.slice(i,s),i>0&&(r=`'{snip} ${r}`),s<n&&(r+=" {snip}"),r}function nW(e,t,r=!1){return Ru(e)?lM(t)?t.test(e):Ru(t)?r?e===t:e.includes(t):!1:!1}function bp(e,t=[],r=!1){return t.some(n=>nW(e,n,r))}function hM(e,t,r=250,n,i,s,a){if(!s.exception||!s.exception.values||!a||!Mu(a.originalException,Error))return;let o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=dVe(fM(e,t,i,a.originalException,n,s.exception.values,o,0),r));}function fM(e,t,r,n,i,s,a,o){if(s.length>=r+1)return s;let u=[...s];if(Mu(n[i],Error)){iW(a,o);let l=e(t,n[i]),c=u.length;sW(l,i,c,o),u=fM(e,t,r,n[i],i,[l,...u],l,c);}return Array.isArray(n.errors)&&n.errors.forEach((l,c)=>{if(Mu(l,Error)){iW(a,o);let p=e(t,l),h=u.length;sW(p,`errors[${c}]`,h,o),u=fM(e,t,r,l,i,[p,...u],p,h);}}),u}function iW(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t};}function sW(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n};}function dVe(e,t){return e.map(r=>(r.value&&(r.value=za(r.value,t)),r))}function Qx(e){let t=[],r=n=>{n.forEach(i=>{Array.isArray(i)?r(i):t.push(i);});};return r(e),t}var ri="8.30.0";var Bt=globalThis;function vp(e,t,r){let n=r||Bt,i=n.__SENTRY__=n.__SENTRY__||{},s=i[ri]=i[ri]||{};return s[e]||(s[e]=t())}var mVe=Bt,yVe=80;function aW(e,t={}){if(!e)return "<unknown>";try{let r=e,n=5,i=[],s=0,a=0,o=" > ",u=o.length,l,c=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||yVe;for(;r&&s++<n&&(l=gVe(r,c),!(l==="html"||s>1&&a+i.length*u+l.length>=p));)i.push(l),a+=l.length,r=r.parentNode;return i.reverse().join(o)}catch{return "<unknown>"}}function gVe(e,t){let r=e,n=[];if(!r||!r.tagName)return "";if(mVe.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}n.push(r.tagName.toLowerCase());let i=t&&t.length?t.filter(a=>r.getAttribute(a)).map(a=>[a,r.getAttribute(a)]):null;if(i&&i.length)i.forEach(a=>{n.push(`[${a[0]}="${a[1]}"]`);});else {r.id&&n.push(`#${r.id}`);let a=r.className;if(a&&Ru(a)){let o=a.split(/\s+/);for(let u of o)n.push(`.${u}`);}}let s=["aria-label","type","name","title","alt"];for(let a of s){let o=r.getAttribute(a);o&&n.push(`[${a}="${o}"]`);}return n.join("")}var Lu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var SVe="Sentry Logger ",uE=["debug","info","warn","error","log","assert","trace"],Ym={};function Ki(e){if(!("console"in Bt))return e();let t=Bt.console,r={},n=Object.keys(Ym);n.forEach(i=>{let s=Ym[i];r[i]=t[i],t[i]=s;});try{return e()}finally{n.forEach(i=>{t[i]=r[i];});}}function TVe(){let e=!1,t={enable:()=>{e=!0;},disable:()=>{e=!1;},isEnabled:()=>e};return Lu?uE.forEach(r=>{t[r]=(...n)=>{e&&Ki(()=>{Bt.console[r](`${SVe}[${r}]:`,...n);});};}):uE.forEach(r=>{t[r]=()=>{};}),t}var ce=vp("logger",TVe);var EVe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function bVe(e){return e==="http"||e==="https"}function Yo(e,t=!1){let{host:r,path:n,pass:i,port:s,projectId:a,protocol:o,publicKey:u}=e;return `${o}://${u}${t&&i?`:${i}`:""}@${r}${s?`:${s}`:""}/${n&&`${n}/`}${a}`}function oW(e){let t=EVe.exec(e);if(!t){Ki(()=>{console.error(`Invalid Sentry Dsn: ${e}`);});return}let[r,n,i="",s="",a="",o=""]=t.slice(1),u="",l=o,c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){let p=l.match(/^\d+/);p&&(l=p[0]);}return uW({host:s,pass:i,path:u,projectId:l,port:a,protocol:r,publicKey:n})}function uW(e){return {protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function vVe(e){if(!Lu)return !0;let{port:t,projectId:r,protocol:n}=e;return ["protocol","publicKey","host","projectId"].find(a=>e[a]?!1:(ce.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:r.match(/^\d+$/)?bVe(n)?t&&isNaN(parseInt(t,10))?(ce.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ce.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(ce.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function Zx(e){let t=typeof e=="string"?oW(e):uW(e);if(!(!t||!vVe(t)))return t}var us=class extends Error{constructor(t,r="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r;}};function mM(e,t,r){if(!(t in e))return;let n=e[t],i=r(n);typeof i=="function"&&pW(i,n),e[t]=i;}function ni(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0});}catch{Lu&&ce.log(`Failed to add non-enumerable property "${t}" to object`,e);}}function pW(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,ni(e,"__sentry_original__",t);}catch{}}function yM(e){return e.__sentry_original__}function gM(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function eA(e){if(oE(e))return {message:e.message,name:e.name,stack:e.stack,...cW(e)};if(oM(e)){let t={type:e.type,target:lW(e.target),currentTarget:lW(e.currentTarget),...cW(e)};return typeof CustomEvent<"u"&&Mu(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function lW(e){try{return uM(e)?aW(e):Object.prototype.toString.call(e)}catch{return "<unknown>"}}function cW(e){if(typeof e=="object"&&e!==null){let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}else return {}}function SM(e,t=40){let r=Object.keys(eA(e));r.sort();let n=r[0];if(!n)return "[object has no keys]";if(n.length>=t)return za(n,t);for(let i=r.length;i>0;i--){let s=r.slice(0,i).join(", ");if(!(s.length>t))return i===r.length?s:za(s,t)}return ""}function Zt(e){return dM(e,new Map)}function dM(e,t){if(_Ve(e)){let r=t.get(e);if(r!==void 0)return r;let n={};t.set(e,n);for(let i of Object.keys(e))typeof e[i]<"u"&&(n[i]=dM(e[i],t));return n}if(Array.isArray(e)){let r=t.get(e);if(r!==void 0)return r;let n=[];return t.set(e,n),e.forEach(i=>{n.push(dM(i,t));}),n}return e}function _Ve(e){if(!Ca(e))return !1;try{let t=Object.getPrototypeOf(e).constructor.name;return !t||t==="Object"}catch{return !0}}var rA="?",fW=/\(error: (.*)\)/,hW=/captureMessage|captureException/;function nA(...e){let t=e.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return (r,n=0,i=0)=>{let s=[],a=r.split(`
`);for(let o=n;o<a.length;o++){let u=a[o];if(u.length>1024)continue;let l=fW.test(u)?u.replace(fW,"$1"):u;if(!l.match(/\S*Error: /)){for(let c of t){let p=c(l);if(p){s.push(p);break}}if(s.length>=50+i)break}}return dW(s.slice(i))}}function EM(e){return Array.isArray(e)?nA(...e):e}function dW(e){if(!e.length)return [];let t=Array.from(e);return /sentryWrapped/.test(tA(t).function||"")&&t.pop(),t.reverse(),hW.test(tA(t).function||"")&&(t.pop(),hW.test(tA(t).function||"")&&t.pop()),t.slice(0,50).map(r=>({...r,filename:r.filename||tA(t).filename,function:r.function||rA}))}function tA(e){return e[e.length-1]||{}}var TM="<anonymous>";function lE(e){try{return !e||typeof e!="function"?TM:e.name||TM}catch{return TM}}var iA={},mW={};function Wm(e,t){iA[e]=iA[e]||[],iA[e].push(t);}function Xm(e,t){mW[e]||(t(),mW[e]=!0);}function zm(e,t){let r=e&&iA[e];if(r)for(let n of r)try{n(t);}catch(i){Lu&&ce.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${lE(n)}
Error:`,i);}}function bM(e){let t="console";Wm(t,e),Xm(t,xVe);}function xVe(){"console"in Bt&&uE.forEach(function(e){e in Bt.console&&mM(Bt.console,e,function(t){return Ym[e]=t,function(...r){zm("console",{args:r,level:e});let i=Ym[e];i&&i.apply(Bt.console,r);}});});}var yW=1e3;function ku(){return Date.now()/yW}function AVe(){let{performance:e}=Bt;if(!e||!e.now)return ku;let t=Date.now()-e.now(),r=e.timeOrigin==null?t:e.timeOrigin;return ()=>(r+e.now())/yW}var Fu=AVe();(()=>{let{performance:e}=Bt;if(!e||!e.now){return}let t=3600*1e3,r=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,s=i<t,a=e.timing&&e.timing.navigationStart,u=typeof a=="number"?Math.abs(a+r-n):t,l=u<t;return s||l?i<=u?(e.timeOrigin):(a):(n)})();var sA=null;function vM(e){let t="error";Wm(t,e),Xm(t,CVe);}function CVe(){sA=Bt.onerror,Bt.onerror=function(e,t,r,n,i){return zm("error",{column:n,error:i,line:r,msg:e,url:t}),sA&&!sA.__SENTRY_LOADER__?sA.apply(this,arguments):!1},Bt.onerror.__SENTRY_INSTRUMENTED__=!0;}var aA=null;function _M(e){let t="unhandledrejection";Wm(t,e),Xm(t,wVe);}function wVe(){aA=Bt.onunhandledrejection,Bt.onunhandledrejection=function(e){return zm("unhandledrejection",e),aA&&!aA.__SENTRY_LOADER__?aA.apply(this,arguments):!0},Bt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;}function gW(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function r(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let s=0;s<t.length;s++)if(t[s]===i)return !0;return t.push(i),!1}function n(i){if(e)t.delete(i);else for(let s=0;s<t.length;s++)if(t[s]===i){t.splice(s,1);break}}return [r,n]}function Pr(){let e=Bt,t=e.crypto||e.msCrypto,r=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{let n=new Uint8Array(1);return t.getRandomValues(n),n[0]});}catch{}return ([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function SW(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Fl(e){let{message:t,event_id:r}=e;if(t)return t;let n=SW(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function AM(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=r||"Error");}function pE(e,t){let r=SW(e);if(!r)return;let n={type:"generic",handled:!0},i=r.mechanism;if(r.mechanism={...n,...i,...t},t&&"data"in t){let s={...i&&i.data,...t.data};r.mechanism.data=s;}}var IVe=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function xM(e){return parseInt(e||"",10)}function PM(e){let t=e.match(IVe)||[],r=xM(t[1]),n=xM(t[2]),i=xM(t[3]);return {buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:t[4]}}function oA(e){if(e&&e.__sentry_captured__)return !0;try{ni(e,"__sentry_captured__",!0);}catch{}return !1}function fE(e){return Array.isArray(e)?e:[e]}function wa(e,t=100,r=1/0){try{return CM("",e,t,r)}catch(n){return {ERROR:`**non-serializable** (${n})`}}}function uA(e,t=3,r=100*1024){let n=wa(e,t);return RVe(n)>r?uA(e,t-1,r):n}function CM(e,t,r=1/0,n=1/0,i=gW()){let[s,a]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;let o=OVe(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;let u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:r;if(u===0)return o.replace("object ","");if(s(t))return "[Circular ~]";let l=t;if(l&&typeof l.toJSON=="function")try{let f=l.toJSON();return CM("",f,u-1,n,i)}catch{}let c=Array.isArray(t)?[]:{},p=0,h=eA(t);for(let f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(p>=n){c[f]="[MaxProperties ~]";break}let d=h[f];c[f]=CM(f,d,u-1,n,i),p++;}return a(t),c}function OVe(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return "[Domain]";if(e==="domainEmitter")return "[DomainEmitter]";if(typeof global<"u"&&t===global)return "[Global]";if(typeof window<"u"&&t===window)return "[Window]";if(typeof document<"u"&&t===document)return "[Document]";if(Jx(t))return "[VueViewModel]";if(cM(t))return "[SyntheticEvent]";if(typeof t=="number"&&t!==t)return "[NaN]";if(typeof t=="function")return `[Function: ${lE(t)}]`;if(typeof t=="symbol")return `[${String(t)}]`;if(typeof t=="bigint")return `[BigInt: ${String(t)}]`;let r=DVe(t);return /^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return `**non-serializable** (${r})`}}function DVe(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function NVe(e){return ~-encodeURI(e).split(/%..|./).length}function RVe(e){return NVe(JSON.stringify(e))}var MVe=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function LVe(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=MVe.exec(t);return r?r.slice(1):[]}function wM(e){let t=LVe(e),r=t[0]||"",n=t[1];return !r&&!n?".":(n&&(n=n.slice(0,n.length-1)),r+n)}var Bl;(function(e){e[e.PENDING=0]="PENDING";let r=1;e[e.RESOLVED=r]="RESOLVED";let n=2;e[e.REJECTED=n]="REJECTED";})(Bl||(Bl={}));function Ja(e){return new Wo(t=>{t(e);})}function hE(e){return new Wo((t,r)=>{r(e);})}var Wo=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=Bl.PENDING,this._handlers=[];try{t(this._resolve,this._reject);}catch(r){this._reject(r);}}then(t,r){return new e((n,i)=>{this._handlers.push([!1,s=>{if(!t)n(s);else try{n(t(s));}catch(a){i(a);}},s=>{if(!r)i(s);else try{n(r(s));}catch(a){i(a);}}]),this._executeHandlers();})}catch(t){return this.then(r=>r,t)}finally(t){return new e((r,n)=>{let i,s;return this.then(a=>{s=!1,i=a,t&&t();},a=>{s=!0,i=a,t&&t();}).then(()=>{if(s){n(i);return}r(i);})})}__init(){this._resolve=t=>{this._setResult(Bl.RESOLVED,t);};}__init2(){this._reject=t=>{this._setResult(Bl.REJECTED,t);};}__init3(){this._setResult=(t,r)=>{if(this._state===Bl.PENDING){if(aa(r)){r.then(this._resolve,this._reject);return}this._state=t,this._value=r,this._executeHandlers();}};}__init4(){this._executeHandlers=()=>{if(this._state===Bl.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===Bl.RESOLVED&&r[1](this._value),this._state===Bl.REJECTED&&r[2](this._value),r[0]=!0);});};}};function IM(e){let t=[];function r(){return e===void 0||t.length<e}function n(a){return t.splice(t.indexOf(a),1)[0]||Promise.resolve(void 0)}function i(a){if(!r())return hE(new us("Not adding Promise because buffer limit was reached."));let o=a();return t.indexOf(o)===-1&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o}function s(a){return new Wo((o,u)=>{let l=t.length;if(!l)return o(!0);let c=setTimeout(()=>{a&&a>0&&o(!1);},a);t.forEach(p=>{Ja(p).then(()=>{--l||(clearTimeout(c),o(!0));},u);});})}return {$:t,add:i,drain:s}}function TW(e){let t={},r=0;for(;r<e.length;){let n=e.indexOf("=",r);if(n===-1)break;let i=e.indexOf(";",r);if(i===-1)i=e.length;else if(i<n){r=e.lastIndexOf(";",n-1)+1;continue}let s=e.slice(r,n).trim();if(t[s]===void 0){let a=e.slice(n+1,i).trim();a.charCodeAt(0)===34&&(a=a.slice(1,-1));try{t[s]=a.indexOf("%")!==-1?decodeURIComponent(a):a;}catch{t[s]=a;}}r=i+1;}return t}function _p(e){if(!e)return {};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return {};let r=t[6]||"",n=t[8]||"";return {host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function xp(e){return e.split(/[?#]/,1)[0]}function Ap(e){let{protocol:t,host:r,path:n}=e,i=r&&r.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return `${t?`${t}://`:""}${i}${n}`}var OM=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];function EW(e){return OM.map(i=>{let s=e[i],a=Array.isArray(s)?s.join(";"):s;return i==="Forwarded"?kVe(a):a&&a.split(",").map(o=>o.trim())}).reduce((i,s)=>s?i.concat(s):i,[]).find(i=>i!==null&&FVe(i))||null}function kVe(e){if(!e)return null;for(let t of e.split(";"))if(t.startsWith("for="))return t.slice(4);return null}function FVe(e){return /(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(e)}var BVe={ip:!1,request:!0,transaction:!0,user:!0},bW=["cookies","data","headers","method","query_string","url"],vW=["id","username","email"];function DM(e,t={}){let r=e.method&&e.method.toUpperCase(),n="",i="url";t.customRoute||e.route?(n=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,i="route"):(e.originalUrl||e.url)&&(n=xp(e.originalUrl||e.url||""));let s="";return t.method&&r&&(s+=r),t.method&&t.path&&(s+=" "),t.path&&n&&(s+=n),[s,i]}function jVe(e,t){switch(t){case"path":return DM(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"<anonymous>";case"methodPath":default:{let r=e._reconstructedRoute?e._reconstructedRoute:void 0;return DM(e,{path:!0,method:!0,customRoute:r})[0]}}}function UVe(e,t){let r={};return (Array.isArray(t)?t:vW).forEach(i=>{e&&i in e&&(r[i]=e[i]);}),r}function _W(e,t={}){let{include:r=bW}=t,n={},i=e.headers||{},s=e.method,a=i.host||e.hostname||e.host||"<no host>",o=e.protocol==="https"||e.socket&&e.socket.encrypted?"https":"http",u=e.originalUrl||e.url||"",l=u.startsWith(o)?u:`${o}://${a}${u}`;return r.forEach(c=>{switch(c){case"headers":{n.headers=i,r.includes("cookies")||delete n.headers.cookie,r.includes("ip")||OM.forEach(p=>{delete n.headers[p];});break}case"method":{n.method=s;break}case"url":{n.url=l;break}case"cookies":{n.cookies=e.cookies||i.cookie&&TW(i.cookie)||{};break}case"query_string":{n.query_string=qVe(e);break}case"data":{if(s==="GET"||s==="HEAD")break;e.body!==void 0&&(n.data=Ru(e.body)?e.body:JSON.stringify(wa(e.body)));break}default:({}).hasOwnProperty.call(e,c)&&(n[c]=e[c]);}}),n}function NM(e,t,r){let n={...BVe,...r&&r.include};if(n.request){let i=Array.isArray(n.request)?[...n.request]:[...bW];n.ip&&i.push("ip");let s=_W(t,{include:i});e.request={...e.request,...s};}if(n.user){let i=t.user&&Ca(t.user)?UVe(t.user,n.user):{};Object.keys(i).length&&(e.user={...e.user,...i});}if(n.ip){let i=t.headers&&EW(t.headers)||t.ip||t.socket&&t.socket.remoteAddress;i&&(e.user={...e.user,ip_address:i});}return n.transaction&&!e.transaction&&e.type==="transaction"&&(e.transaction=jVe(t,n.transaction)),e}function qVe(e){let t=e.originalUrl||e.url||"";if(t){t.startsWith("/")&&(t=`http://dogs.are.great${t}`);try{let r=e.query||new URL(t).search.slice(1);return r.length?r:void 0}catch{return}}}var xW=["fatal","error","warning","log","info","debug"];function RM(e){return e==="warn"?"warning":xW.includes(e)?e:"log"}function PW(e,t=!1){return !(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&e!==void 0&&!e.includes("node_modules/")}function CW(e){let t=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return n=>{let i=n.match(r);if(i){let s,a,o,u,l;if(i[1]){o=i[1];let h=o.lastIndexOf(".");if(o[h-1]==="."&&h--,h>0){s=o.slice(0,h),a=o.slice(h+1);let f=s.indexOf(".Module");f>0&&(o=o.slice(f+1),s=s.slice(0,f));}u=void 0;}a&&(u=s,l=a),a==="<anonymous>"&&(l=void 0,o=void 0),o===void 0&&(l=l||rA,o=u?`${u}.${l}`:l);let c=i[2]&&i[2].startsWith("file://")?i[2].slice(7):i[2],p=i[5]==="native";return c&&c.match(/\/[A-Z]:/)&&(c=c.slice(1)),!c&&i[5]&&!p&&(c=i[5]),{filename:c,module:e?e(c):void 0,function:o,lineno:AW(i[3]),colno:AW(i[4]),in_app:PW(c||"",p)}}if(n.match(t))return {filename:n}}}function MM(e){return [90,CW(e)]}function AW(e){return parseInt(e||"",10)||void 0}var dE="sentry-",IW=/^sentry-/,OW=8192;function Pp(e){let t=cA(e);if(!t)return;let r=Object.entries(t).reduce((n,[i,s])=>{if(i.match(IW)){let a=i.slice(dE.length);n[a]=s;}return n},{});if(Object.keys(r).length>0)return r}function lA(e){if(!e)return;let t=Object.entries(e).reduce((r,[n,i])=>(i&&(r[`${dE}${n}`]=i),r),{});return VVe(t)}function cA(e){if(!(!e||!Ru(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,r)=>{let n=wW(r);return Object.entries(n).forEach(([i,s])=>{t[i]=s;}),t},{}):wW(e)}function wW(e){return e.split(",").map(t=>t.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((t,[r,n])=>(r&&n&&(t[r]=n),t),{})}function VVe(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[r,n],i)=>{let s=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,a=i===0?s:`${t},${s}`;return a.length>OW?(Lu&&ce.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):a},"")}var DW=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function NW(e){if(!e)return;let t=e.match(DW);if(!t)return;let r;return t[3]==="1"?r=!0:t[3]==="0"&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function Jm(e,t){let r=NW(e),n=Pp(t),{traceId:i,parentSpanId:s,parentSampled:a}=r||{};return r?{traceId:i||Pr(),parentSpanId:s||Pr().substring(16),spanId:Pr().substring(16),sampled:a,dsc:n||{}}:{traceId:i||Pr(),spanId:Pr().substring(16)}}function pA(e=Pr(),t=Pr().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function Xo(e,t=[]){return [e,t]}function kM(e,t){let[r,n]=e;return [r,[...n,t]]}function fA(e,t){let r=e[1];for(let n of r){let i=n[0].type;if(t(n,i))return !0}return !1}function LM(e){return Bt.__SENTRY__&&Bt.__SENTRY__.encodePolyfill?Bt.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function mE(e){let[t,r]=e,n=JSON.stringify(t);function i(s){typeof n=="string"?n=typeof s=="string"?n+s:[LM(n),s]:n.push(typeof s=="string"?LM(s):s);}for(let s of r){let[a,o]=s;if(i(`
${JSON.stringify(a)}
`),typeof o=="string"||o instanceof Uint8Array)i(o);else {let u;try{u=JSON.stringify(o);}catch{u=JSON.stringify(wa(o));}i(u);}}return typeof n=="string"?n:HVe(n)}function HVe(e){let t=e.reduce((i,s)=>i+s.length,0),r=new Uint8Array(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return r}function FM(e){return [{type:"span"},e]}function BM(e){let t=typeof e.data=="string"?LM(e.data):e.data;return [Zt({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var GVe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function hA(e){return GVe[e]}function dA(e){if(!e||!e.sdk)return;let{name:t,version:r}=e.sdk;return {name:t,version:r}}function jM(e,t,r,n){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return {event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:Yo(n)},...i&&{trace:Zt({...i})}}}function UM(e,t,r){let n=[{type:"client_report"},{timestamp:r||ku(),discarded_events:e}];return Xo(t?{dsn:t}:{},[n])}function RW(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return r*1e3;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}function MW(e,t){return e[t]||e.all||0}function qM(e,t,r=Date.now()){return MW(e,t)>r}function VM(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},s=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(s)for(let o of s.trim().split(",")){let[u,l,,,c]=o.split(":",5),p=parseInt(u,10),h=(isNaN(p)?60:p)*1e3;if(!l)i.all=n+h;else for(let f of l.split(";"))f==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(i[f]=n+h):i[f]=n+h;}else a?i.all=n+RW(a,n):t===429&&(i.all=n+60*1e3);return i}function HM(e,t){return e(t.stack||"",1)}function mA(e,t){let r={type:t.name||t.constructor.name,value:t.message},n=HM(e,t);return n.length&&(r.stacktrace={frames:n}),r}function $Ve(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}function KVe(e){if("name"in e&&typeof e.name=="string"){let n=`'${e.name}' captured as exception`;return "message"in e&&typeof e.message=="string"&&(n+=` with message '${e.message}'`),n}else if("message"in e&&typeof e.message=="string")return e.message;let t=SM(e);if(aM(e))return `Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;let r=YVe(e);return `${r&&r!=="Object"?`'${r}'`:"Object"} captured as exception with keys: ${t}`}function YVe(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function WVe(e,t,r,n){if(oE(r))return [r,void 0];if(t.synthetic=!0,Ca(r)){let s=e&&e.getOptions().normalizeDepth,a={__serialized__:uA(r,s)},o=$Ve(r);if(o)return [o,a];let u=KVe(r),l=n&&n.syntheticException||new Error(u);return l.message=u,[l,a]}let i=n&&n.syntheticException||new Error(r);return i.message=`${r}`,[i,void 0]}function GM(e,t,r,n){let s=n&&n.data&&n.data.mechanism||{handled:!0,type:"generic"},[a,o]=WVe(e,s,r,n),u={exception:{values:[mA(t,a)]}};return o&&(u.extra=o),AM(u,void 0,void 0),pE(u,s),{...u,event_id:n&&n.event_id}}function $M(e,t,r="info",n,i){let s={event_id:n&&n.event_id,level:r};if(i&&n&&n.syntheticException){let a=HM(e,n.syntheticException);a.length&&(s.exception={values:[{value:t,stacktrace:{frames:a}}]});}if(Km(t)){let{__sentry_template_string__:a,__sentry_template_values__:o}=t;return s.logentry={message:a,params:o},s}return s.message=t,s}var Bu=class{constructor(t){this._maxSize=t,this._cache=new Map;}get size(){return this._cache.size}get(t){let r=this._cache.get(t);if(r!==void 0)return this._cache.delete(t),this._cache.set(t,r),r}set(t,r){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(t,r);}remove(t){let r=this._cache.get(t);return r&&this._cache.delete(t),r}clear(){this._cache.clear();}keys(){return Array.from(this._cache.keys())}values(){let t=[];return this._cache.forEach(r=>t.push(r)),t}};function Yi(e,t){return e??t()}function Ye(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],s=e[n+1];if(n+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=s(r)):(i==="call"||i==="optionalCall")&&(r=s((...a)=>r.call(t,...a)),t=void 0);}return r}function yA(){return {traceId:Pr(),spanId:Pr().substring(16)}}var yoe=chunkTKGT252T_js.e(Dse(),1);dn();pt();pt();var Tt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function ro(){return _y(Bt),Bt}function _y(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ri,t[ri]=t[ri]||{}}function Nse(e){let t=Fu(),r={sid:Pr(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Uet(r)};return e&&ql(r,e),r}function ql(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Fu(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Pr()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else {let r=e.timestamp-e.started;e.duration=r>=0?r:0;}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status);}function Rse(e,t){let r={};t?r={status:t}:e.status==="ok"&&(r={status:"exited"}),ql(e,r);}function Uet(e){return Zt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}var _k="_sentrySpan";function Gh(e,t){t?ni(e,_k,t):delete e[_k];}function Vl(e){return e[_k]}var qet=100,xk=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=yA();}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Gh(t,Vl(this)),t}setClient(t){this._client=t;}setLastEventId(t){this._lastEventId=t;}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t);}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ql(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,r){return this._tags={...this._tags,[t]:r},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,r){return this._extra={...this._extra,[t]:r},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,r){return r===null?delete this._contexts[t]:this._contexts[t]=r,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let r=typeof t=="function"?t(this):t,[n,i]=r instanceof Na?[r.getScopeData(),r.getRequestSession()]:Ca(r)?[t,t.requestSession]:[],{tags:s,extra:a,user:o,contexts:u,level:l,fingerprint:c=[],propagationContext:p}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...a},this._contexts={...this._contexts,...u},o&&Object.keys(o).length&&(this._user=o),l&&(this._level=l),c.length&&(this._fingerprint=c),p&&(this._propagationContext=p),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Gh(this,void 0),this._attachments=[],this._propagationContext=yA(),this._notifyScopeListeners(),this}addBreadcrumb(t,r){let n=typeof r=="number"?r:qet;if(n<=0)return this;let i={timestamp:ku(),...t},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return {breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Vl(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,r){let n=r&&r.event_id?r.event_id:Pr();if(!this._client)return ce.warn("No client configured on scope - will not capture exception!"),n;let i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...r,event_id:n},this),n}captureMessage(t,r,n){let i=n&&n.event_id?n.event_id:Pr();if(!this._client)return ce.warn("No client configured on scope - will not capture message!"),i;let s=new Error(t);return this._client.captureMessage(t,r,{originalException:t,syntheticException:s,...n,event_id:i},this),i}captureEvent(t,r){let n=r&&r.event_id?r.event_id:Pr();return this._client?(this._client.captureEvent(t,{...r,event_id:n},this),n):(ce.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this);}),this._notifyingListeners=!1);}},Na=xk;function xy(){return vp("defaultCurrentScope",()=>new Na)}function Vu(){return vp("defaultIsolationScope",()=>new Na)}var Ak=class{constructor(t,r){let n;t?n=t:n=new Na;let i;r?i=r:i=new Na,this._stack=[{scope:n}],this._isolationScope=i;}withScope(t){let r=this._pushScope(),n;try{n=t(r);}catch(i){throw this._popScope(),i}return aa(n)?n.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Ay(){let e=ro(),t=_y(e);return t.stack=t.stack||new Ak(xy(),Vu())}function Vet(e){return Ay().withScope(e)}function Het(e,t){let r=Ay();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function Mse(e){return Ay().withScope(()=>e(Ay().getIsolationScope()))}function Lse(){return {withIsolationScope:Mse,withScope:Vet,withSetScope:Het,withSetIsolationScope:(e,t)=>Mse(t),getCurrentScope:()=>Ay().getScope(),getIsolationScope:()=>Ay().getIsolationScope()}}function Pk(e){let t=ro(),r=_y(t);r.acs=e;}function Np(e){let t=_y(e);return t.acs?t.acs:Lse()}function Zr(){let e=ro();return Np(e).getCurrentScope()}function Or(){let e=ro();return Np(e).getIsolationScope()}function fP(){return vp("globalScope",()=>new Na)}function Rp(...e){let t=ro(),r=Np(t);if(e.length===2){let[n,i]=e;return n?r.withSetScope(n,i):r.withScope(i)}return r.withScope(e[0])}function Rt(){return Zr().getClient()}var Get="_sentryMetrics";function Hl(e){let t=e[Get];if(!t)return;let r={};for(let[,[n,i]]of t)(r[n]||(r[n]=[])).push(Zt(i));return r}var no="sentry.source",Zo="sentry.sample_rate",yn="sentry.op",gn="sentry.origin";var Ck="sentry.measurement_unit",wk="sentry.measurement_value",Ik="sentry.profile_id",Ok="sentry.exclusive_time",Dk="cache.hit",Nk="cache.key",Rk="cache.item_size";function hP(e){if(e<400&&e>=100)return {code:1};if(e>=400&&e<500)switch(e){case 401:return {code:2,message:"unauthenticated"};case 403:return {code:2,message:"permission_denied"};case 404:return {code:2,message:"not_found"};case 409:return {code:2,message:"already_exists"};case 413:return {code:2,message:"failed_precondition"};case 429:return {code:2,message:"resource_exhausted"};case 499:return {code:2,message:"cancelled"};default:return {code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return {code:2,message:"unimplemented"};case 503:return {code:2,message:"unavailable"};case 504:return {code:2,message:"deadline_exceeded"};default:return {code:2,message:"internal_error"}}return {code:2,message:"unknown_error"}}var mP=0,Lk=1;function Fse(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:s,status:a,origin:o}=Ht(e);return Zt({parent_span_id:s,span_id:t,trace_id:r,data:n,op:i,status:a,origin:o})}function t0(e){let{spanId:t,traceId:r}=e.spanContext(),{parent_span_id:n}=Ht(e);return Zt({parent_span_id:n,span_id:t,trace_id:r})}function Cs(e){return typeof e=="number"?kse(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?kse(e.getTime()):Fu()}function kse(e){return e>9999999999?e/1e3:e}function Ht(e){if(Yet(e))return e.getSpanJSON();try{let{spanId:t,traceId:r}=e.spanContext();if(Ket(e)){let{attributes:n,startTime:i,name:s,endTime:a,parentSpanId:o,status:u}=e;return Zt({span_id:t,trace_id:r,data:n,description:s,parent_span_id:o,start_timestamp:Cs(i),timestamp:Cs(a)||void 0,status:$h(u),op:n[yn],origin:n[gn],_metrics_summary:Hl(e)})}return {span_id:t,trace_id:r}}catch{return {}}}function Ket(e){let t=e;return !!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Yet(e){return typeof e.getSpanJSON=="function"}function Gl(e){let{traceFlags:t}=e.spanContext();return t===Lk}function $h(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}var e0="_sentryChildSpans",Mk="_sentryRootSpan";function Py(e,t){let r=e[Mk]||e;ni(t,Mk,r),e[e0]?e[e0].add(t):ni(e,e0,new Set([t]));}function yP(e){let t=new Set;function r(n){if(!t.has(n)&&Gl(n)){t.add(n);let i=n[e0]?Array.from(n[e0]):[];for(let s of i)r(s);}}return r(e),Array.from(t)}function _n(e){return e[Mk]||e}function Kh(){let e=ro(),t=Np(e);return t.getActiveSpan?t.getActiveSpan():Vl(Zr())}var Bse=!1;function jse(){Bse||(Bse=!0,vM(kk),_M(kk));}function kk(){let e=Kh(),t=e&&_n(e);if(t){let r="internal_error";Tt&&ce.log(`[Tracing] Root span: ${r} -> Global error occured`),t.setStatus({code:2,message:r});}}kk.tag="sentry_tracingErrorCallback";var Use="_sentryScope",qse="_sentryIsolationScope";function Yh(e,t,r){e&&(ni(e,qse,r),ni(e,Use,t));}function Lp(e){return {scope:e[Use],isolationScope:e[qse]}}function eu(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return !1;let t=Rt(),r=e||t&&t.getOptions();return !!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}var kp=class{constructor(t={}){this._traceId=t.traceId||Pr(),this._spanId=t.spanId||Pr().substring(16);}spanContext(){return {spanId:this._spanId,traceId:this._traceId,traceFlags:mP}}end(t){}setAttribute(t,r){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return !1}addEvent(t,r,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,r){}};function Wh(e,t,r=()=>{}){let n;try{n=e();}catch(i){throw t(i),r(),i}return Wet(n,t,r)}function Wet(e,t,r){return aa(e)?e.then(n=>(r(),n),n=>{throw t(n),r(),n}):(r(),e)}var Cy="production";var Vse="_frozenDsc";function Fk(e,t){ni(e,Vse,t);}function Fp(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i=Zt({environment:r.environment||Cy,release:r.release,public_key:n,trace_id:e});return t.emit("createDsc",i),i}function Wi(e){let t=Rt();if(!t)return {};let r=Fp(Ht(e).trace_id||"",t),n=_n(e),i=n[Vse];if(i)return i;let s=n.spanContext().traceState,a=s&&s.get("sentry.dsc"),o=a&&Pp(a);if(o)return o;let u=Ht(n),l=u.data||{},c=l[Zo];c!=null&&(r.sample_rate=`${c}`);let p=l[no],h=u.description;return p!=="url"&&h&&(r.transaction=h),r.sampled=String(Gl(n)),t.emit("createDsc",r,n),r}function r0(e){if(!Tt)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=Ht(e),{spanId:i}=e.spanContext(),s=Gl(e),a=_n(e),o=a===e,u=`[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`,l=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&l.push(`parent ID: ${n}`),!o){let{op:c,description:p}=Ht(a);l.push(`root ID: ${a.spanContext().spanId}`),c&&l.push(`root op: ${c}`),p&&l.push(`root description: ${p}`);}ce.log(`${u}
${l.join(`
`)}`);}function n0(e){if(!Tt)return;let{description:t="< unknown name >",op:r="< unknown op >"}=Ht(e),{spanId:n}=e.spanContext(),s=_n(e)===e,a=`[Tracing] Finishing "${r}" ${s?"root ":""}span "${t}" with ID ${n}`;ce.log(a);}function gP(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){Tt&&ce.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}function i0(e,t){if(!eu(e))return [!1];let r;typeof e.tracesSampler=="function"?r=e.tracesSampler(t):t.parentSampled!==void 0?r=t.parentSampled:typeof e.tracesSampleRate<"u"?r=e.tracesSampleRate:r=1;let n=gP(r);return n===void 0?(Tt&&ce.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):n?Math.random()<n?[!0,n]:(Tt&&ce.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[!1,n]):(Tt&&ce.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,n])}function Xet(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Hse(e,t,r,n){let i=dA(r),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:Yo(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Xo(s,[a])}function Gse(e,t,r,n){let i=dA(r),s=e.type&&e.type!=="replay_event"?e.type:"event";Xet(e,r&&r.sdk);let a=jM(e,i,n,t);return delete e.sdkProcessingMetadata,Xo(a,[[{type:s},e]])}function $se(e,t){function r(c){return !!c.trace_id&&!!c.public_key}let n=Wi(e[0]),i=t&&t.getDsn(),s=t&&t.getOptions().tunnel,a={sent_at:new Date().toISOString(),...r(n)&&{trace:n},...!!s&&i&&{dsn:Yo(i)}},o=t&&t.getOptions().beforeSendSpan,u=o?c=>o(Ht(c)):c=>Ht(c),l=[];for(let c of e){let p=u(c);p&&l.push(FM(p));}return Xo(a,l)}function Xh(e){if(!e||e.length===0)return;let t={};return e.forEach(r=>{let n=r.attributes||{},i=n[Ck],s=n[wk];typeof i=="string"&&typeof s=="number"&&(t[r.name]={value:s,unit:i});}),t}var Kse=1e3,wy=class{constructor(t={}){this._traceId=t.traceId||Pr(),this._spanId=t.spanId||Pr().substring(16),this._startTime=t.startTimestamp||Fu(),this._attributes={},this.setAttributes({[gn]:"manual",[yn]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded();}addLink(t){return this}addLinks(t){return this}recordException(t,r){}spanContext(){let{_spanId:t,_traceId:r,_sampled:n}=this;return {spanId:t,traceId:r,traceFlags:n?Lk:mP}}setAttribute(t,r){return r===void 0?delete this._attributes[t]:this._attributes[t]=r,this}setAttributes(t){return Object.keys(t).forEach(r=>this.setAttribute(r,t[r])),this}updateStartTime(t){this._startTime=Cs(t);}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=Cs(t),n0(this),this._onSpanEnded());}getSpanJSON(){return Zt({data:this._attributes,description:this._name,op:this._attributes[yn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:$h(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[gn],_metrics_summary:Hl(this),profile_id:this._attributes[Ik],exclusive_time:this._attributes[Ok],measurements:Xh(this._events),is_segment:this._isStandaloneSpan&&_n(this)===this||void 0,segment_id:this._isStandaloneSpan?_n(this).spanContext().spanId:void 0})}isRecording(){return !this._endTime&&!!this._sampled}addEvent(t,r,n){Tt&&ce.log("[Tracing] Adding an event to span:",t);let i=Yse(r)?r:n||Fu(),s=Yse(r)?{}:r||{},a={name:t,time:Cs(i),attributes:s};return this._events.push(a),this}isStandaloneSpan(){return !!this._isStandaloneSpan}_onSpanEnded(){let t=Rt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===_n(this)))return;if(this._isStandaloneSpan){this._sampled?Jet($se([this],t)):(Tt&&ce.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}let n=this._convertSpanToTransaction();n&&(Lp(this).scope||Zr()).captureEvent(n);}_convertSpanToTransaction(){if(!Wse(Ht(this)))return;this._name||(Tt&&ce.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:r}=Lp(this),i=(t||Zr()).getClient()||Rt();if(this._sampled!==!0){Tt&&ce.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),i&&i.recordDroppedEvent("sample_rate","transaction");return}let a=yP(this).filter(p=>p!==this&&!zet(p)).map(p=>Ht(p)).filter(Wse),o=this._attributes[no],u={contexts:{trace:Fse(this)},spans:a.length>Kse?a.sort((p,h)=>p.start_timestamp-h.start_timestamp).slice(0,Kse):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:r,...Zt({dynamicSamplingContext:Wi(this)})},_metrics_summary:Hl(this),...o&&{transaction_info:{source:o}}},l=Xh(this._events);return l&&Object.keys(l).length&&(Tt&&ce.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),u.measurements=l),u}};function Yse(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Wse(e){return !!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function zet(e){return e instanceof wy&&e.isStandaloneSpan()}function Jet(e){let t=Rt();if(!t)return;let r=e[1];if(!r||r.length===0){t.recordDroppedEvent("before_send","span");return}let n=t.getTransport();n&&n.send(e).then(null,i=>{Tt&&ce.error("Error while sending span:",i);});}var Bk="__SENTRY_SUPPRESS_TRACING__";function Iy(e,t){let r=o0();if(r.startSpan)return r.startSpan(e,t);let n=qk(e),{forceTransaction:i,parentSpan:s}=e;return Rp(e.scope,()=>zse(s)(()=>{let o=Zr(),u=Vk(o),c=e.onlyIfParent&&!u?new kp:Uk({parentSpan:u,spanArguments:n,forceTransaction:i,scope:o});return Gh(o,c),Wh(()=>t(c),()=>{let{status:p}=Ht(c);c.isRecording()&&(!p||p==="ok")&&c.setStatus({code:2,message:"internal_error"});},()=>c.end())}))}function s0(e,t){let r=o0();if(r.startSpanManual)return r.startSpanManual(e,t);let n=qk(e),{forceTransaction:i,parentSpan:s}=e;return Rp(e.scope,()=>zse(s)(()=>{let o=Zr(),u=Vk(o),c=e.onlyIfParent&&!u?new kp:Uk({parentSpan:u,spanArguments:n,forceTransaction:i,scope:o});Gh(o,c);function p(){c.end();}return Wh(()=>t(c,p),()=>{let{status:h}=Ht(c);c.isRecording()&&(!h||h==="ok")&&c.setStatus({code:2,message:"internal_error"});})}))}function a0(e){let t=o0();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=qk(e),{forceTransaction:n,parentSpan:i}=e;return (e.scope?a=>Rp(e.scope,a):i!==void 0?a=>$l(i,a):a=>a())(()=>{let a=Zr(),o=Vk(a);return e.onlyIfParent&&!o?new kp:Uk({parentSpan:o,spanArguments:r,forceTransaction:n,scope:a})})}function $l(e,t){let r=o0();return r.withActiveSpan?r.withActiveSpan(e,t):Rp(n=>(Gh(n,e||void 0),t(n)))}function jk(e){let t=o0();return t.suppressTracing?t.suppressTracing(e):Rp(r=>(r.setSDKProcessingMetadata({[Bk]:!0}),e()))}function Uk({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){if(!eu())return new kp;let i=Or(),s;if(e&&!r)s=Qet(e,n,t),Py(e,s);else if(e){let a=Wi(e),{traceId:o,spanId:u}=e.spanContext(),l=Gl(e);s=Xse({traceId:o,parentSpanId:u,...t},n,l),Fk(s,a);}else {let{traceId:a,dsc:o,parentSpanId:u,sampled:l}={...i.getPropagationContext(),...n.getPropagationContext()};s=Xse({traceId:a,parentSpanId:u,...t},n,l),o&&Fk(s,o);}return r0(s),Yh(s,n,i),s}function qk(e){let r={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...r};return n.startTimestamp=Cs(e.startTime),delete n.startTime,n}return r}function o0(){let e=ro();return Np(e)}function Xse(e,t,r){let n=Rt(),i=n&&n.getOptions()||{},{name:s="",attributes:a}=e,[o,u]=t.getScopeData().sdkProcessingMetadata[Bk]?[!1]:i0(i,{name:s,parentSampled:r,attributes:a,transactionContext:{name:s,parentSampled:r}}),l=new wy({...e,attributes:{[no]:"custom",...e.attributes},sampled:o});return u!==void 0&&l.setAttribute(Zo,u),n&&n.emit("spanStart",l),l}function Qet(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[Bk]?!1:Gl(e),a=s?new wy({...r,parentSpanId:n,traceId:i,sampled:s}):new kp({traceId:i});Py(e,a);let o=Rt();return o&&(o.emit("spanStart",a),r.endTimestamp&&o.emit("spanEnd",a)),a}function Vk(e){let t=Vl(e);if(!t)return;let r=Rt();return (r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?_n(t):t}function zse(e){return e!==void 0?t=>$l(e,t):t=>t()}function SP(e,t,r,n=0){return new Wo((i,s)=>{let a=e[n];if(t===null||typeof a!="function")i(t);else {let o=a({...t},r);Tt&&a.id&&o===null&&ce.log(`Event processor "${a.id}" dropped event`),aa(o)?o.then(u=>SP(e,u,r,n+1).then(i)).then(null,s):SP(e,o,r,n+1).then(i).then(null,s);}})}function Jse(e,t){let{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:s}=t;Zet(e,t),n&&rtt(e,n),ntt(e,r),ett(e,i),ttt(e,s);}function Hk(e,t){let{extra:r,tags:n,user:i,contexts:s,level:a,sdkProcessingMetadata:o,breadcrumbs:u,fingerprint:l,eventProcessors:c,attachments:p,propagationContext:h,transactionName:f,span:d}=t;u0(e,"extra",r),u0(e,"tags",n),u0(e,"user",i),u0(e,"contexts",s),u0(e,"sdkProcessingMetadata",o),a&&(e.level=a),f&&(e.transactionName=f),d&&(e.span=d),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...h};}function u0(e,t,r){if(r&&Object.keys(r).length){e[t]={...e[t]};for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n]);}}function Zet(e,t){let{extra:r,tags:n,user:i,contexts:s,level:a,transactionName:o}=t,u=Zt(r);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});let l=Zt(n);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});let c=Zt(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let p=Zt(s);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),a&&(e.level=a),o&&e.type!=="transaction"&&(e.transaction=o);}function ett(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0;}function ttt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t};}function rtt(e,t){e.contexts={trace:t0(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Wi(t),...e.sdkProcessingMetadata};let r=_n(t),n=Ht(r).description;n&&!e.transaction&&e.type==="transaction"&&(e.transaction=n);}function ntt(e,t){e.fingerprint=e.fingerprint?fE(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint;}function Zse(e,t,r,n,i,s){let{normalizeDepth:a=3,normalizeMaxBreadth:o=1e3}=e,u={...t,event_id:t.event_id||r.event_id||Pr(),timestamp:t.timestamp||ku()},l=r.integrations||e.integrations.map(y=>y.name);itt(u,e),ott(u,l),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&stt(u,e.stackParser);let c=ltt(n,r.captureContext);r.mechanism&&pE(u,r.mechanism);let p=i?i.getEventProcessors():[],h=fP().getScopeData();if(s){let y=s.getScopeData();Hk(h,y);}if(c){let y=c.getScopeData();Hk(h,y);}let f=[...r.attachments||[],...h.attachments];f.length&&(r.attachments=f),Jse(u,h);let d=[...p,...h.eventProcessors];return SP(d,u,r).then(y=>(y&&att(y),typeof a=="number"&&a>0?utt(y,a,o):y))}function itt(e,t){let{environment:r,release:n,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?r:Cy),e.release===void 0&&n!==void 0&&(e.release=n),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=za(e.message,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=za(a.value,s));let o=e.request;o&&o.url&&(o.url=za(o.url,s));}var Qse=new WeakMap;function stt(e,t){let r=Bt._sentryDebugIds;if(!r)return;let n,i=Qse.get(t);i?n=i:(n=new Map,Qse.set(t,n));let s=Object.entries(r).reduce((a,[o,u])=>{let l,c=n.get(o);c?l=c:(l=t(o),n.set(o,l));for(let p=l.length-1;p>=0;p--){let h=l[p];if(h.filename){a[h.filename]=u;break}}return a},{});try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=s[o.filename]);});});}catch{}}function att(e){let t={};try{e.exception.values.forEach(n=>{n.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id);});});}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([n,i])=>{r.push({type:"sourcemap",code_file:n,debug_id:i});});}function ott(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t]);}function utt(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:wa(i.data,t,r)}}))},...e.user&&{user:wa(e.user,t,r)},...e.contexts&&{contexts:wa(e.contexts,t,r)},...e.extra&&{extra:wa(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=wa(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(i=>({...i,...i.data&&{data:wa(i.data,t,r)}}))),n}function ltt(e,t){if(!t)return e;let r=e?e.clone():new Na;return r.update(t),r}function eae(e){if(e)return ctt(e)?{captureContext:e}:ftt(e)?{captureContext:e}:e}function ctt(e){return e instanceof Na||typeof e=="function"}var ptt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function ftt(e){return Object.keys(e).some(t=>ptt.includes(t))}function ps(e,t){return Zr().captureException(e,eae(t))}function TP(e,t){return Zr().captureEvent(e,t)}function Oy(e,t){Or().setContext(e,t);}function Bp(e,t){Or().setTag(e,t);}async function rae(e){let t=Rt();return t?t.flush(e):(Tt&&ce.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function EP(e){let t=Rt(),r=Or(),n=Zr(),{release:i,environment:s=Cy}=t&&t.getOptions()||{},{userAgent:a}=Bt.navigator||{},o=Nse({release:i,environment:s,user:n.getUser()||r.getUser(),...a&&{userAgent:a},...e}),u=r.getSession();return u&&u.status==="ok"&&ql(u,{status:"exited"}),l0(),r.setSession(o),n.setSession(o),o}function l0(){let e=Or(),t=Zr(),r=t.getSession()||e.getSession();r&&Rse(r),htt(),e.setSession(),t.setSession();}function htt(){let e=Or(),t=Zr(),r=Rt(),n=t.getSession()||e.getSession();n&&r&&r.captureSession(n);}var bP=class{constructor(t,r){this._client=t,this.flushTimeout=60,this._pendingAggregates=new Map,this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),this.flushTimeout*1e3),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=r;}flush(){let t=this.getSessionAggregates();t.aggregates.length!==0&&(this._pendingAggregates=new Map,this._client.sendSession(t));}getSessionAggregates(){let t=Array.from(this._pendingAggregates.values()),r={attrs:this._sessionAttrs,aggregates:t};return Zt(r)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush();}incrementSessionStatusCount(){if(!this._isEnabled)return;let t=Or(),r=t.getRequestSession();r&&r.status&&(this._incrementSessionStatusCount(r.status,new Date),t.setRequestSession(void 0));}_incrementSessionStatusCount(t,r){let n=new Date(r).setSeconds(0,0),i=this._pendingAggregates.get(n);switch(i||(i={started:new Date(n).toISOString()},this._pendingAggregates.set(n,i)),t){case"errored":return i.errored=(i.errored||0)+1,i.errored;case"ok":return i.exited=(i.exited||0)+1,i.exited;default:return i.crashed=(i.crashed||0)+1,i.crashed}}};var dtt="7";function mtt(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return `${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function ytt(e){return `${mtt(e)}${e.projectId}/envelope/`}function gtt(e,t){return gM({sentry_key:e.publicKey,sentry_version:dtt,...t&&{sentry_client:`${t.name}/${t.version}`}})}function nae(e,t,r){return t||`${ytt(e)}?${gtt(e,r)}`}var iae=[];function Stt(e){let t={};return e.forEach(r=>{let{name:n}=r,i=t[n];i&&!i.isDefaultInstance&&r.isDefaultInstance||(t[n]=r);}),Object.values(t)}function Gk(e){let t=e.defaultIntegrations||[],r=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0;});let n;Array.isArray(r)?n=[...t,...r]:typeof r=="function"?n=fE(r(t)):n=t;let i=Stt(n),s=i.findIndex(a=>a.name==="Debug");if(s>-1){let[a]=i.splice(s,1);i.push(a);}return i}function sae(e,t){let r={};return t.forEach(n=>{n&&Kk(e,n,r);}),r}function $k(e,t){for(let r of t)r&&r.afterAllSetup&&r.afterAllSetup(e);}function Kk(e,t,r){if(r[t.name]){Tt&&ce.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,iae.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),iae.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>n(i,s,e));}if(typeof t.processEvent=="function"){let n=t.processEvent.bind(t),i=Object.assign((s,a)=>n(s,a,e),{id:t.name});e.addEventProcessor(i);}Tt&&ce.log(`Integration installed: ${t.name}`);}var aae="Not capturing exception because it's already been captured.",vP=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Zx(t.dsn):Tt&&ce.warn("No DSN provided, client will not send events."),this._dsn){let r=nae(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r});}}captureException(t,r,n){let i=Pr();if(oA(t))return Tt&&ce.log(aae),i;let s={event_id:i,...r};return this._process(this.eventFromException(t,s).then(a=>this._captureEvent(a,s,n))),s.event_id}captureMessage(t,r,n,i){let s={event_id:Pr(),...n},a=Km(t)?t:String(t),o=zx(t)?this.eventFromMessage(a,r,s):this.eventFromException(t,s);return this._process(o.then(u=>this._captureEvent(u,s,i))),s.event_id}captureEvent(t,r,n){let i=Pr();if(r&&r.originalException&&oA(r.originalException))return Tt&&ce.log(aae),i;let s={event_id:i,...r},o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,s,o||n)),s.event_id}captureSession(t){typeof t.release!="string"?Tt&&ce.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ql(t,{init:!1}));}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let r=this._transport;return r?(this.emit("flush"),this._isClientDoneProcessing(t).then(n=>r.flush(t).then(i=>n&&i))):Ja(!0)}close(t){return this.flush(t).then(r=>(this.getOptions().enabled=!1,this.emit("close"),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t);}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations();}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let r=this._integrations[t.name];Kk(this,t,this._integrations),r||$k(this,[t]);}sendEvent(t,r={}){this.emit("beforeSendEvent",t,r);let n=Gse(t,this._dsn,this._options._metadata,this._options.tunnel);for(let s of r.attachments||[])n=kM(n,BM(s));let i=this.sendEnvelope(n);i&&i.then(s=>this.emit("afterSendEvent",t,s),null);}sendSession(t){let r=Hse(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r);}recordDroppedEvent(t,r,n){if(this._options.sendClientReports){let i=typeof n=="number"?n:1,s=`${t}:${r}`;Tt&&ce.log(`Recording outcome: "${s}"${i>1?` (${i} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+i;}}on(t,r){let n=this._hooks[t]=this._hooks[t]||[];return n.push(r),()=>{let i=n.indexOf(r);i>-1&&n.splice(i,1);}}emit(t,...r){let n=this._hooks[t];n&&n.forEach(i=>i(...r));}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,r=>(Tt&&ce.error("Error while sending event:",r),r)):(Tt&&ce.error("Transport disabled"),Ja({}))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=sae(this,t),$k(this,t);}_updateSessionFromEvent(t,r){let n=!1,i=!1,s=r.exception&&r.exception.values;if(s){i=!0;for(let u of s){let l=u.mechanism;if(l&&l.handled===!1){n=!0;break}}}let a=t.status==="ok";(a&&t.errors===0||a&&n)&&(ql(t,{...n&&{status:"crashed"},errors:t.errors||Number(i||n)}),this.captureSession(t));}_isClientDoneProcessing(t){return new Wo(r=>{let n=0,i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),r(!0)):(n+=i,t&&n>=t&&(clearInterval(s),r(!1)));},i);})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,r,n,i=Or()){let s=this.getOptions(),a=Object.keys(this._integrations);return !r.integrations&&a.length>0&&(r.integrations=a),this.emit("preprocessEvent",t,r),t.type||i.setLastEventId(t.event_id||r.event_id),Zse(s,t,r,n,this,i).then(o=>{if(o===null)return o;let u={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&u){let{traceId:c,spanId:p,parentSpanId:h,dsc:f}=u;o.contexts={trace:Zt({trace_id:c,span_id:p,parent_span_id:h}),...o.contexts};let d=f||Fp(c,this);o.sdkProcessingMetadata={dynamicSamplingContext:d,...o.sdkProcessingMetadata};}return o})}_captureEvent(t,r={},n){return this._processEvent(t,r,n).then(i=>i.event_id,i=>{if(Tt){let s=i;s.logLevel==="log"?ce.log(s.message):ce.warn(s);}})}_processEvent(t,r,n){let i=this.getOptions(),{sampleRate:s}=i,a=uae(t),o=oae(t),u=t.type||"error",l=`before send for type \`${u}\``,c=typeof s>"u"?void 0:gP(s);if(o&&typeof c=="number"&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",t),hE(new us(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));let p=u==="replay_event"?"replay":u,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,r,n,f).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",p,t),new us("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return d;let y=Ett(this,i,d,r);return Ttt(y,l)}).then(d=>{if(d===null){if(this.recordDroppedEvent("before_send",p,t),a){let v=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",v);}throw new us(`${l} returned \`null\`, will not send event.`,"log")}let m=n&&n.getSession();if(!a&&m&&this._updateSessionFromEvent(m,d),a){let g=d.sdkProcessingMetadata&&d.sdkProcessingMetadata.spanCountBeforeProcessing||0,v=d.spans?d.spans.length:0,E=g-v;E>0&&this.recordDroppedEvent("before_send","span",E);}let y=d.transaction_info;if(a&&y&&d.transaction!==t.transaction){let g="custom";d.transaction_info={...y,source:g};}return this.sendEvent(d,r),d}).then(null,d=>{throw d instanceof us?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new us(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r));}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([r,n])=>{let[i,s]=r.split(":");return {reason:i,category:s,quantity:n}})}_flushOutcomes(){Tt&&ce.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){Tt&&ce.log("No outcomes to send");return}if(!this._dsn){Tt&&ce.log("No dsn provided, will not send outcomes");return}Tt&&ce.log("Sending outcomes:",t);let r=UM(t,this._options.tunnel&&Yo(this._dsn));this.sendEnvelope(r);}};function Ttt(e,t){let r=`${t} must return \`null\` or a valid event.`;if(aa(e))return e.then(n=>{if(!Ca(n)&&n!==null)throw new us(r);return n},n=>{throw new us(`${t} rejected with ${n}`)});if(!Ca(e)&&e!==null)throw new us(r);return e}function Ett(e,t,r,n){let{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:a}=t;if(oae(r)&&i)return i(r,n);if(uae(r)){if(r.spans&&a){let o=[];for(let u of r.spans){let l=a(u);l?o.push(l):e.recordDroppedEvent("before_send","span");}r.spans=o;}if(s){if(r.spans){let o=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:o};}return s(r,n)}}return r}function oae(e){return e.type===void 0}function uae(e){return e.type==="transaction"}function lae(e,t,r,n,i){let s={sent_at:new Date().toISOString()};r&&r.sdk&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(s.dsn=Yo(i)),t&&(s.trace=Zt(t));let a=btt(e);return Xo(s,[a])}function btt(e){return [{type:"check_in"},e]}var c0=class extends vP{constructor(t){jse(),super(t);}eventFromException(t,r){return Ja(GM(this,this._options.stackParser,t,r))}eventFromMessage(t,r="info",n){return Ja($M(this._options.stackParser,t,r,n,this._options.attachStacktrace))}captureException(t,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher){let i=Or().getRequestSession();i&&i.status==="ok"&&(i.status="errored");}return super.captureException(t,r,n)}captureEvent(t,r,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&(t.type||"exception")==="exception"&&t.exception&&t.exception.values&&t.exception.values.length>0){let a=Or().getRequestSession();a&&a.status==="ok"&&(a.status="errored");}return super.captureEvent(t,r,n)}close(t){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(t)}initSessionFlusher(){let{release:t,environment:r}=this._options;t?this._sessionFlusher=new bP(this,{release:t,environment:r}):Tt&&ce.warn("Cannot initialise an instance of SessionFlusher if no release is provided!");}captureCheckIn(t,r,n){let i="checkInId"in t&&t.checkInId?t.checkInId:Pr();if(!this._isEnabled())return Tt&&ce.warn("SDK not enabled, will not capture checkin."),i;let s=this.getOptions(),{release:a,environment:o,tunnel:u}=s,l={check_in_id:i,monitor_slug:t.monitorSlug,status:t.status,release:a,environment:o};"duration"in t&&(l.duration=t.duration),r&&(l.monitor_config={schedule:r.schedule,checkin_margin:r.checkinMargin,max_runtime:r.maxRuntime,timezone:r.timezone,failure_issue_threshold:r.failureIssueThreshold,recovery_threshold:r.recoveryThreshold});let[c,p]=this._getTraceInfoFromScope(n);p&&(l.contexts={trace:p});let h=lae(l,c,this.getSdkMetadata(),u,this.getDsn());return Tt&&ce.info("Sending checkin:",t.monitorSlug,t.status),this.sendEnvelope(h),i}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():Tt&&ce.warn("Discarded request mode session because autoSessionTracking option was disabled");}_prepareEvent(t,r,n,i){return this._options.platform&&(t.platform=t.platform||this._options.platform),this._options.runtime&&(t.contexts={...t.contexts,runtime:(t.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(t.server_name=t.server_name||this._options.serverName),super._prepareEvent(t,r,n,i)}_getTraceInfoFromScope(t){if(!t)return [void 0,void 0];let r=Vl(t);if(r){let u=_n(r);return [Wi(u),t0(u)]}let{traceId:n,spanId:i,parentSpanId:s,dsc:a}=t.getPropagationContext(),o={trace_id:n,span_id:i,parent_span_id:s};return a?[a,o]:[Fp(n,this),o]}};var vtt=64;function p0(e,t,r=IM(e.bufferSize||vtt)){let n={},i=a=>r.drain(a);function s(a){let o=[];if(fA(a,(p,h)=>{let f=hA(h);if(qM(n,f)){let d=cae(p,h);e.recordDroppedEvent("ratelimit_backoff",f,d);}else o.push(p);}),o.length===0)return Ja({});let u=Xo(a[0],o),l=p=>{fA(u,(h,f)=>{let d=cae(h,f);e.recordDroppedEvent(p,hA(f),d);});},c=()=>t({body:mE(u)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&Tt&&ce.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),n=VM(n,p),p),p=>{throw l("network_error"),p});return r.add(c).then(p=>p,p=>{if(p instanceof us)return Tt&&ce.error("Skipped sending event because buffer is full."),l("queue_overflow"),Ja({});throw p})}return {send:s,flush:i}}function cae(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Yk(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(s=>({name:`${n}:@sentry/${s}`,version:ri})),version:ri}),e._metadata=i;}var _tt=100;function jp(e,t){let r=Rt(),n=Or();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=_tt}=r.getOptions();if(s<=0)return;let o={timestamp:ku(),...e},u=i?Ki(()=>i(o,t)):o;u!==null&&(r.emit&&r.emit("beforeAddBreadcrumb",u,t),n.addBreadcrumb(u,s));}var pae,xtt="FunctionToString",fae=new WeakMap,Att=()=>({name:xtt,setupOnce(){pae=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=yM(this),r=fae.has(Rt())&&t!==void 0?t:this;return pae.apply(r,e)};}catch{}},setup(e){fae.set(e,!0);}}),_P=Att;var Ptt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],Ctt="InboundFilters",wtt=(e={})=>({name:Ctt,processEvent(t,r,n){let i=n.getOptions(),s=Itt(e,i);return Ott(t,s)?null:t}}),AP=wtt;function Itt(e={},t={}){return {allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Ptt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Ott(e,t){return t.ignoreInternal&&ktt(e)?(Tt&&ce.warn(`Event dropped due to being internal Sentry Error.
Event: ${Fl(e)}`),!0):Dtt(e,t.ignoreErrors)?(Tt&&ce.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Fl(e)}`),!0):Btt(e)?(Tt&&ce.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${Fl(e)}`),!0):Ntt(e,t.ignoreTransactions)?(Tt&&ce.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Fl(e)}`),!0):Rtt(e,t.denyUrls)?(Tt&&ce.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Fl(e)}.
Url: ${xP(e)}`),!0):Mtt(e,t.allowUrls)?!1:(Tt&&ce.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Fl(e)}.
Url: ${xP(e)}`),!0)}function Dtt(e,t){return e.type||!t||!t.length?!1:Ltt(e).some(r=>bp(r,t))}function Ntt(e,t){if(e.type!=="transaction"||!t||!t.length)return !1;let r=e.transaction;return r?bp(r,t):!1}function Rtt(e,t){if(!t||!t.length)return !1;let r=xP(e);return r?bp(r,t):!1}function Mtt(e,t){if(!t||!t.length)return !0;let r=xP(e);return r?bp(r,t):!0}function Ltt(e){let t=[];e.message&&t.push(e.message);let r;try{r=e.exception.values[e.exception.values.length-1];}catch{}return r&&r.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`)),t}function ktt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return !1}function Ftt(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&r.filename!=="<anonymous>"&&r.filename!=="[native code]")return r.filename||null}return null}function xP(e){try{let t;try{t=e.exception.values[0].stacktrace.frames;}catch{}return t?Ftt(t):null}catch{return Tt&&ce.error(`Cannot extract url for event ${Fl(e)}`),null}}function Btt(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}var jtt="cause",Utt=5,qtt="LinkedErrors",Vtt=(e={})=>{let t=e.limit||Utt,r=e.key||jtt;return {name:qtt,preprocessEvent(n,i,s){let a=s.getOptions();hM(mA,a.stackParser,a.maxValueLength,r,t,n,i);}}},PP=Vtt;var Wk={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},Htt="RequestData",Gtt=(e={})=>{let t={...Wk,...e,include:{...Wk.include,...e.include,user:e.include&&typeof e.include.user=="boolean"?e.include.user:{...Wk.include.user,...(e.include||{}).user}}};return {name:Htt,processEvent(r){let{sdkProcessingMetadata:n={}}=r,i=n.request;if(!i)return r;let s=$tt(t);return NM(r,i,s)}}},CP=Gtt;function $tt(e){let{transactionNamingScheme:t,include:{ip:r,user:n,...i}}=e,s=["method"];for(let[o,u]of Object.entries(i))u&&s.push(o);let a;if(n===void 0)a=!0;else if(typeof n=="boolean")a=n;else {let o=[];for(let[u,l]of Object.entries(n))l&&o.push(u);a=o;}return {include:{ip:r,user:a,request:s.length!==0?s:void 0,transaction:t}}}jn();LP();Rn();var d2="sentry.parentIsRemote",Ly="sentry.graphql.operation";function m2(e){let t=e;return !!t.attributes&&typeof t.attributes=="object"}function Ert(e){return typeof e.kind=="number"}function brt(e){return !!e.status}function $ae(e){return !!e.name}function vrt(e){return !!e.parentSpanId}function _rt(e){if(!m2(e))return {};let t=e.attributes[oy]||e.attributes[ny],r={url:t,"http.method":e.attributes[DE]||e.attributes[OE]};!r["http.method"]&&r.url&&(r["http.method"]="GET");try{if(typeof t=="string"){let n=_p(t);r.url=Ap(n),n.search&&(r["http.query"]=n.search),n.hash&&(r["http.fragment"]=n.hash);}}catch{}return r}function xrt(e){return Ert(e)?e.kind:cs.INTERNAL}var s2="sentry-trace",a2="baggage",y2="sentry.dsc",jP="sentry.parent_span_id",g2="sentry.sampled_not_recording",Kae="sentry.url",Yae=xs("sentry_scopes"),o2=xs("sentry_fork_isolation_scope"),u2=xs("sentry_fork_set_scope"),l2=xs("sentry_fork_set_isolation_scope"),Wae="_scopeContext";function Gp(e){return e.getValue(Yae)}function Xae(e,t){return e.setValue(Yae,t)}function Art(e,t){ni(e,Wae,t);}function Prt(e){return e[Wae]}function zae(e,t,r){if(t["sentry.skip_span_data_inference"])return {op:void 0,description:e,source:"custom",data:{"sentry.skip_span_data_inference":void 0}};let n=t[DE]||t[OE];if(n)return wrt({attributes:t,name:e,kind:r},n);let i=t[CL],s=typeof t[yn]=="string"&&t[yn].startsWith("cache.");if(i&&!s)return Crt({attributes:t,name:e});if(t[RL])return {op:"rpc",description:e,source:"route"};if(t[NL])return {op:"message",description:e,source:"route"};let u=t[OL];return u?{op:u.toString(),description:e,source:"route"}:{op:void 0,description:e,source:"custom"}}function Jae(e){let t=m2(e)?e.attributes:{},r=$ae(e)?e.name:"<unknown>",n=xrt(e);return zae(r,t,n)}function Crt({attributes:e,name:t}){let r=e[wL];return {op:"db",description:r?r.toString():t,source:"task"}}function wrt({name:e,kind:t,attributes:r},n){let i=["http"];switch(t){case cs.CLIENT:i.push("client");break;case cs.SERVER:i.push("server");break}let{urlPath:s,url:a,query:o,fragment:u,hasRoute:l}=Ort(r,t);if(!s)return {op:i.join("."),description:e,source:"custom"};let c=r[Ly],p=`${n} ${s}`,h=c?`${p} (${Irt(c)})`:p,f=l||s==="/"?"route":"url",d={};a&&(d.url=a),o&&(d["http.query"]=o),u&&(d["http.fragment"]=u);let m=t===cs.CLIENT||t===cs.SERVER,g=!`${r[gn]||"manual"}`.startsWith("auto"),v=m||!g;return {op:i.join("."),description:v?h:e,source:v?f:"custom",data:d}}function Irt(e){if(Array.isArray(e)){let t=e.slice().sort();return t.length<=5?t.join(", "):`${t.slice(0,5).join(", ")}, +${t.length-5}`}return `${e}`}function Ort(e,t){let r=e[DL],n=e[ny]||e[oy],i=e[NE],s=typeof n=="string"?_p(n):void 0,a=s?Ap(s):void 0,o=s&&s.search?s.search:void 0,u=s&&s.hash?s.hash:void 0;return typeof i=="string"?{urlPath:i,url:a,query:o,fragment:u,hasRoute:!0}:t===cs.SERVER&&typeof r=="string"?{urlPath:xp(r),url:a,query:o,fragment:u,hasRoute:!1}:s?{urlPath:a,url:a,query:o,fragment:u,hasRoute:!1}:typeof r=="string"?{urlPath:xp(r),url:a,query:o,fragment:u,hasRoute:!1}:{urlPath:void 0,url:a,query:o,fragment:u,hasRoute:!1}}function Qae(e){e.on("createDsc",(t,r)=>{if(r){let s=(Ht(r).data||{})[no],{description:a}=$ae(r)?Jae(r):{description:void 0};s!=="url"&&a&&(t.transaction=a);}});}function c2({parentSpanId:e,dsc:t,sampled:r}){let n=t?lA(t):void 0,i=new qh().set(jP,e||""),s=n?i.set(y2,n):i;return r===!1?s.set(g2,"1"):s}function Drt(e){let t=c2({parentSpanId:e.parentSpanId,dsc:e.dsc,sampled:e.sampled});return {traceId:e.traceId,spanId:e.parentSpanId||"",isRemote:!0,traceFlags:e.sampled?hn.SAMPLED:hn.NONE,traceState:t}}function Zae(){return qt.getActiveSpan()}var Hp=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Uae(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],s=e[n+1];if(n+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=s(r)):(i==="call"||i==="optionalCall")&&(r=s((...a)=>r.call(t,...a)),t=void 0);}return r}function UP(e){let{traceFlags:t,traceState:r}=e,n=r?r.get(g2)==="1":!1;if(t===hn.SAMPLED)return !0;if(n)return !1;let i=r?r.get(y2):void 0,s=i?Pp(i):void 0;if(Uae([s,"optionalAccess",a=>a.sampled])==="true")return !0;if(Uae([s,"optionalAccess",a=>a.sampled])==="false")return !1}var eoe=new Set;function toe(){return Array.from(eoe)}function qP(e){eoe.add(e);}function zh(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],s=e[n+1];if(n+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=s(r)):(i==="call"||i==="optionalCall")&&(r=s((...a)=>r.call(t,...a)),t=void 0);}return r}function roe(e){let t=e.spanContext(),{traceId:r,spanId:n,traceState:i}=t,s=i?i.get(y2):void 0,a=s?Pp(s):void 0,o=i&&i.get(jP)||void 0,u=UP(t),l=a||Wi(_n(e));return {traceId:r,spanId:n,sampled:u,parentSpanId:o,dsc:l}}var kP=class extends ty{constructor(){super(),qP("SentryPropagator"),this._urlMatchesTargetsMap=new Bu(100);}inject(t,r,n){if(qu(t)){Hp&&ce.log("[Tracing] Not injecting trace data for url because tracing is suppressed.");return}let i=qt.getSpan(t),s=i&&Lrt(i),a=zh([Rt,"call",f=>f(),"optionalAccess",f=>f.getOptions,"call",f=>f(),"optionalAccess",f=>f.tracePropagationTargets]);if(typeof s=="string"&&a&&!this._shouldInjectTraceData(a,s)){Hp&&ce.log("[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:",s);return}let o=Mrt(r),u=As.getBaggage(t)||As.createBaggage({}),{dynamicSamplingContext:l,traceId:c,spanId:p,sampled:h}=Nrt(t);if(o){let f=cA(o);f&&Object.entries(f).forEach(([d,m])=>{u=u.setEntry(d,{value:m});});}l&&(u=Object.entries(l).reduce((f,[d,m])=>m?f.setEntry(`${dE}${d}`,{value:m}):f,u)),c&&c!==kh&&n.set(r,s2,pA(c,p,h)),super.inject(As.setBaggage(t,u),r,n);}extract(t,r,n){let i=n.get(r,s2),s=n.get(r,a2),a=i?Array.isArray(i)?i[0]:i:void 0,o=Jm(a,s),u=Rrt(t,{sentryTrace:a,baggage:s}),l=Gp(u),c={scope:l?l.scope.clone():Zr().clone(),isolationScope:l?l.isolationScope:Or()};return c.scope.setPropagationContext(o),Xae(u,c)}fields(){return [s2,a2]}_shouldInjectTraceData(t,r){if(t===void 0)return !0;let n=this._urlMatchesTargetsMap.get(r);if(n!==void 0)return n;let i=bp(r,t);return this._urlMatchesTargetsMap.set(r,i),i}};function Nrt(e){let t=eu()?qt.getSpan(e):void 0,r=zh([t,"optionalAccess",a=>a.spanContext,"call",a=>a(),"access",a=>a.isRemote]);if(t&&!r){let a=t.spanContext(),o=roe(t);return {dynamicSamplingContext:qae(o,a.traceId),traceId:a.traceId,spanId:a.spanId,sampled:UP(a)}}let i=(zh([Gp,"call",a=>a(e),"optionalAccess",a=>a.scope])||Zr()).getPropagationContext();return {dynamicSamplingContext:qae(i,i.traceId),traceId:i.traceId,spanId:i.spanId,sampled:i.sampled}}function qae(e,t){if(zh([e,"optionalAccess",n=>n.dsc]))return e.dsc;let r=Rt();if(r)return Fp(t||e.traceId,r)}function Rrt(e,{sentryTrace:t,baggage:r}){let n=Jm(t,r),i=Drt(n);return qt.setSpanContext(e,i)}function Mrt(e){try{let t=e[a2];return Array.isArray(t)?t.join(","):t}catch{return}}function Lrt(e){let t=Ht(e).data,r=zh([t,"optionalAccess",i=>i[ny]])||zh([t,"optionalAccess",i=>i[oy]]);if(r)return r;let n=zh([e,"access",i=>i.spanContext,"call",i=>i(),"access",i=>i.traceState,"optionalAccess",i=>i.get,"call",i=>i(Kae)]);if(n)return n}function krt(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],s=e[n+1];if(n+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=s(r)):(i==="call"||i==="optionalCall")&&(r=s((...a)=>r.call(t,...a)),t=void 0);}return r}function Frt(e,t){let r=S2(),{name:n,parentSpan:i}=e;return b2(i)(()=>{let a=E2(e.scope,e.forceTransaction),u=e.onlyIfParent&&!qt.getSpan(a)?zo(a):a,l=T2(e);return r.startActiveSpan(n,l,u,c=>Wh(()=>t(c),()=>{Ht(c).status===void 0&&c.setStatus({code:Qa.ERROR});},()=>c.end()))})}function Brt(e,t){let r=S2(),{name:n,parentSpan:i}=e;return b2(i)(()=>{let a=E2(e.scope,e.forceTransaction),u=e.onlyIfParent&&!qt.getSpan(a)?zo(a):a,l=T2(e);return r.startActiveSpan(n,l,u,c=>Wh(()=>t(c,()=>c.end()),()=>{Ht(c).status===void 0&&c.setStatus({code:Qa.ERROR});}))})}function jrt(e){let t=S2(),{name:r,parentSpan:n}=e;return b2(n)(()=>{let s=E2(e.scope,e.forceTransaction),o=e.onlyIfParent&&!qt.getSpan(s)?zo(s):s,u=T2(e);return t.startSpan(r,u,o)})}function noe(e,t){let r=e?qt.setSpan(gr.active(),e):qt.deleteSpan(gr.active());return gr.with(r,()=>t(Zr()))}function S2(){let e=Rt();return e&&e.tracer||qt.getTracer("@sentry/opentelemetry",ri)}function T2(e){let{startTime:t,attributes:r,kind:n,op:i}=e,s=typeof t=="number"?Urt(t):t;return {attributes:i?{[yn]:i,...r}:r,kind:n,startTime:s}}function Urt(e){return e<9999999999?e*1e3:e}function E2(e,t){let r=qrt(e),n=krt([Gp,"call",d=>d(r),"optionalAccess",d=>d.scope]),i=qt.getSpan(r);if(!i){let d=Rt();if(n&&d){let m=n.getPropagationContext(),y=c2({parentSpanId:m.parentSpanId,dsc:void 0,sampled:m.sampled}),g={traceId:m.traceId,spanId:m.parentSpanId||m.spanId,isRemote:!0,traceFlags:m.sampled?hn.SAMPLED:hn.NONE,traceState:y};return qt.setSpanContext(r,g)}return r}if(!t)return r;let s=qt.deleteSpan(r),{spanId:a,traceId:o}=i.spanContext(),u=UP(i.spanContext()),l=_n(i),c=Wi(l),p=c2({dsc:c,parentSpanId:a!==Lh?a:void 0,sampled:u}),h={traceId:o,spanId:a,isRemote:!0,traceFlags:u?hn.SAMPLED:hn.NONE,traceState:p};return qt.setSpanContext(s,h)}function qrt(e){if(e){let t=Prt(e);if(t)return t}return gr.active()}function b2(e){return e!==void 0?t=>noe(e,t):t=>t()}function Vrt(e){let t=zo(gr.active());return gr.with(t,e)}function Hrt(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],s=e[n+1];if(n+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=s(r)):(i==="call"||i==="optionalCall")&&(r=s((...a)=>r.call(t,...a)),t=void 0);}return r}function ioe(e){e.on("preprocessEvent",t=>{let r=Zae();if(!r||t.type==="transaction")return;let n=r.spanContext(),i=Hrt([n,"access",o=>o.traceState,"optionalAccess",o=>o.get,"call",o=>o(jP)]),s=typeof i=="string"?i||void 0:vrt(r)?r.parentSpanId:void 0;t.contexts={trace:Zt({trace_id:n.traceId,span_id:n.spanId,parent_span_id:s}),...t.contexts};let a=_n(r);return t.sdkProcessingMetadata={dynamicSamplingContext:Wi(a),...t.sdkProcessingMetadata},t});}function Grt(){let e={};return As.inject(gr.active(),e),e["sentry-trace"]?Zt({"sentry-trace":e["sentry-trace"],baggage:e.baggage}):{}}function soe(){function e(){let o=gr.active(),u=Gp(o);return u||{scope:xy(),isolationScope:Vu()}}function t(o){let u=gr.active();return gr.with(u,()=>o(s()))}function r(o,u){let l=gr.active();return gr.with(l.setValue(u2,o),()=>u(o))}function n(o){let u=gr.active();return gr.with(u.setValue(o2,!0),()=>o(a()))}function i(o,u){let l=gr.active();return gr.with(l.setValue(l2,o),()=>u(a()))}function s(){return e().scope}function a(){return e().isolationScope}Pk({withScope:t,withSetScope:r,withSetIsolationScope:i,withIsolationScope:n,getCurrentScope:s,getIsolationScope:a,startSpan:Frt,startSpanManual:Brt,startInactiveSpan:jrt,getActiveSpan:Zae,suppressTracing:Vrt,getTraceData:Grt,withActiveSpan:noe});}function Vae(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],s=e[n+1];if(n+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=s(r)):(i==="call"||i==="optionalCall")&&(r=s((...a)=>r.call(t,...a)),t=void 0);}return r}function aoe(e){class t extends e{constructor(...n){super(...n),qP("SentryContextManager");}with(n,i,s,...a){let o=Gp(n),u=Vae([o,"optionalAccess",v=>v.scope])||Zr(),l=Vae([o,"optionalAccess",v=>v.isolationScope])||Or(),c=n.getValue(o2)===!0,p=n.getValue(u2),h=n.getValue(l2),f=p||u.clone(),d=h||(c?l.clone():l),g=Xae(n,{scope:f,isolationScope:d}).deleteValue(o2).deleteValue(u2).deleteValue(l2);return Art(f,g),super.with(g,i,s,...a)}}return t}function $rt(e){let t=new Map;for(let r of e)Krt(t,r);return Array.from(t,function([r,n]){return n})}function ooe(e){return e.attributes[d2]===!0?void 0:e.parentSpanId}function Krt(e,t){let r=t.spanContext().spanId,n=ooe(t);if(!n){p2(e,{id:r,span:t,children:[]});return}let i=Yrt(e,n),s=p2(e,{id:r,span:t,parentNode:i,children:[]});i.children.push(s);}function Yrt(e,t){let r=e.get(t);return r||p2(e,{id:t,children:[]})}function p2(e,t){let r=e.get(t.id);return r&&r.span?r:r&&!r.span?(r.span=t.span,r.parentNode=t.parentNode,r):(e.set(t.id,t),t)}var uoe={1:"cancelled",2:"unknown_error",3:"invalid_argument",4:"deadline_exceeded",5:"not_found",6:"already_exists",7:"permission_denied",8:"resource_exhausted",9:"failed_precondition",10:"aborted",11:"out_of_range",12:"unimplemented",13:"internal_error",14:"unavailable",15:"data_loss",16:"unauthenticated"},Wrt=e=>Object.values(uoe).includes(e);function loe(e){let t=m2(e)?e.attributes:{},r=brt(e)?e.status:void 0;if(r){if(r.code===Qa.OK)return {code:1};if(r.code===Qa.ERROR){if(typeof r.message>"u"){let i=Hae(t);if(i)return i}return r.message&&Wrt(r.message)?{code:2,message:r.message}:{code:2,message:"unknown_error"}}}let n=Hae(t);return n||(r&&r.code===Qa.UNSET?{code:1}:{code:2,message:"unknown_error"})}function Hae(e){let t=e[VA]||e[qA],r=e[ML],n=typeof t=="number"?t:typeof t=="string"?parseInt(t):void 0;if(typeof n=="number")return hP(n);if(typeof r=="string")return {code:2,message:uoe[r]||"unknown_error"}}function coe(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],s=e[n+1];if(n+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=s(r)):(i==="call"||i==="optionalCall")&&(r=s((...a)=>r.call(t,...a)),t=void 0);}return r}var Gae=1e3,Xrt=300,f2=class{constructor(t){this._finishedSpans=[],this._timeout=coe([t,"optionalAccess",r=>r.timeout])||Xrt;}export(t){if(this._finishedSpans.push(t),ooe(t)){let r=this._finishedSpans.length;Hp&&ce.log(`SpanExporter has ${r} unsent spans remaining`),this._cleanupOldSpans();return}this._clearTimeout(),this._flushTimeout=setTimeout(()=>{this.flush();},1);}flush(){this._clearTimeout();let t=this._finishedSpans.length,r=zrt(this._finishedSpans),n=r.length,i=t-n;Hp&&ce.log(`SpanExporter exported ${i} spans, ${n} unsent spans remaining`),this._cleanupOldSpans(r);}clear(){this._finishedSpans=[],this._clearTimeout();}_clearTimeout(){this._flushTimeout&&(clearTimeout(this._flushTimeout),this._flushTimeout=void 0);}_cleanupOldSpans(t=this._finishedSpans){this._finishedSpans=t.filter(r=>{let n=Zrt(r,this._timeout);return Hp&&n&&ce.log(`SpanExporter dropping span ${r.name} (${r.spanContext().spanId}) because it is pending for more than 5 minutes.`),!n});}};function zrt(e){let t=$rt(e),r=new Set(t);return Qrt(t).forEach(i=>{r.delete(i);let s=i.span,a=tnt(s),o=a.spans||[];i.children.forEach(l=>{h2(l,o,r);}),a.spans=o.length>Gae?o.sort((l,c)=>l.start_timestamp-c.start_timestamp).slice(0,Gae):o;let u=Xh(s.events);u&&(a.measurements=u),TP(a);}),Array.from(r).map(i=>i.span).filter(i=>!!i)}function Jrt(e){return !!e.span&&!e.parentNode}function Qrt(e){return e.filter(Jrt)}function Zrt(e,t){let r=Date.now()/1e3-t;return Cs(e.startTime)<r}function ent(e){let t=e.attributes,r=t[gn],n=t[yn],i=t[no];return {origin:r,op:n,source:i}}function tnt(e){let{op:t,description:r,data:n,origin:i="manual",source:s}=poe(e),a=Lp(e),o=e.attributes[Zo],u=Zt({[no]:s,[Zo]:o,[yn]:t,[gn]:i,...n,...foe(e.attributes)}),{traceId:l,spanId:c}=e.spanContext(),p=coe([e,"access",y=>y.spanContext,"call",y=>y(),"access",y=>y.traceState,"optionalAccess",y=>y.get,"call",y=>y(jP)]),h=typeof p=="string"?p||void 0:e.parentSpanId,f=loe(e);return {contexts:{trace:Zt({parent_span_id:h,span_id:c,trace_id:l,data:u,origin:i,op:t,status:$h(f)}),otel:{resource:e.resource.attributes}},spans:[],start_timestamp:Cs(e.startTime),timestamp:Cs(e.endTime),transaction:r,type:"transaction",sdkProcessingMetadata:{...Zt({capturedSpanScope:a.scope,capturedSpanIsolationScope:a.isolationScope,sampleRate:o,dynamicSamplingContext:Wi(e)})},...s&&{transaction_info:{source:s}},_metrics_summary:Hl(e)}}function h2(e,t,r){r.delete(e);let n=e.span;if(!n){e.children.forEach(v=>{h2(v,t,r);});return}let s=n.spanContext().spanId,a=n.spanContext().traceId,{attributes:o,startTime:u,endTime:l,parentSpanId:c}=n,{op:p,description:h,data:f,origin:d="manual"}=poe(n),m=Zt({[gn]:d,[yn]:p,...foe(o),...f}),y=loe(n),g=Zt({span_id:s,trace_id:a,data:m,description:h,parent_span_id:c,start_timestamp:Cs(u),timestamp:Cs(l)||void 0,status:$h(y),op:p,origin:d,_metrics_summary:Hl(n),measurements:Xh(n.events)});t.push(g),e.children.forEach(v=>{h2(v,t,r);});}function poe(e){let{op:t,source:r,origin:n}=ent(e),{op:i,description:s,source:a,data:o}=Jae(e),u=t||i,l=r||a,c={...o,...rnt(e)};return {op:u,description:s,source:l,origin:n,data:c}}function foe(e){let t={...e};return delete t[Zo],delete t[d2],t}function rnt(e){let t=e.attributes,r={};e.kind!==cs.INTERNAL&&(r["otel.kind"]=cs[e.kind]);let n=t[qA];n&&(r[VA]=n);let i=_rt(e);return i.url&&(r.url=i.url),i["http.query"]&&(r["http.query"]=i["http.query"].slice(1)),i["http.fragment"]&&(r["http.fragment"]=i["http.fragment"].slice(1)),r}function hoe(e){let t,r=e[0],n=1;for(;n<e.length;){let i=e[n],s=e[n+1];if(n+=2,(i==="optionalAccess"||i==="optionalCall")&&r==null)return;i==="access"||i==="optionalAccess"?(t=r,r=s(r)):(i==="call"||i==="optionalCall")&&(r=s((...a)=>r.call(t,...a)),t=void 0);}return r}function nnt(e,t){let r=qt.getSpan(t),n=Gp(t);r&&!r.spanContext().isRemote&&Py(r,e),r&&r.spanContext().isRemote&&e.setAttribute(d2,!0),t===Qm&&(n={scope:xy(),isolationScope:Vu()}),n&&Yh(e,n.scope,n.isolationScope),r0(e);let i=Rt();hoe([i,"optionalAccess",s=>s.emit,"call",s=>s("spanStart",e)]);}function int(e){n0(e);let t=Rt();hoe([t,"optionalAccess",r=>r.emit,"call",r=>r("spanEnd",e)]);}var FP=class{constructor(t){qP("SentrySpanProcessor"),this._exporter=new f2(t);}async forceFlush(){this._exporter.flush();}async shutdown(){this._exporter.clear();}onStart(t,r){nnt(t,r);}onEnd(t){int(t),this._exporter.export(t);}},BP=class{constructor(t){this._client=t,qP("SentrySampler");}shouldSample(t,r,n,i,s,a){let o=this._client.getOptions(),u=qt.getSpan(t),l=Ye([u,"optionalAccess",x=>x.spanContext,"call",x=>x()]);if(!eu(o))return My({decision:void 0,context:t,spanAttributes:s});let c=s[OE]||s[DE];if(i===cs.CLIENT&&c&&(!u||Ye([l,"optionalAccess",x=>x.isRemote])))return My({decision:void 0,context:t,spanAttributes:s});let p=u?ant(u,r,n):void 0,{description:h,data:f,op:d}=zae(n,s,i),m={...f,...s};d&&(m[yn]=d);let y={decision:!0};if(this._client.emit("beforeSampling",{spanAttributes:m,spanName:h,parentSampled:p,parentContext:l},y),!y.decision)return My({decision:void 0,context:t,spanAttributes:s});let[g,v]=i0(o,{name:h,attributes:m,transactionContext:{name:h,parentSampled:p},parentSampled:p}),E={[Zo]:v},S=`${c}`.toUpperCase();return S==="OPTIONS"||S==="HEAD"?(Hp&&ce.log(`[Tracing] Not sampling span because HTTP method is '${S}' for ${n}`),{...My({decision:fs.NOT_RECORD,context:t,spanAttributes:s}),attributes:E}):g?{...My({decision:fs.RECORD_AND_SAMPLED,context:t,spanAttributes:s}),attributes:E}:{...My({decision:fs.NOT_RECORD,context:t,spanAttributes:s}),attributes:E}}toString(){return "SentrySampler"}};function snt(e){let t=e.spanContext().traceId,r=roe(e);return r&&t===r.traceId?r.sampled:void 0}function ant(e,t,r){let n=e.spanContext();if(oa(n)&&n.traceId===t){if(n.isRemote){let s=snt(e);return Hp&&ce.log(`[Tracing] Inheriting remote parent's sampled decision for ${r}: ${s}`),s}let i=UP(n);return Hp&&ce.log(`[Tracing] Inheriting parent's sampled decision for ${r}: ${i}`),i}}function My({decision:e,context:t,spanAttributes:r}){let n=ont(t,r);return e==null?{decision:fs.NOT_RECORD,traceState:n}:e===fs.NOT_RECORD?{decision:e,traceState:n.set(g2,"1")}:{decision:e,traceState:n}}function ont(e,t){let r=qt.getSpan(e),n=Ye([r,"optionalAccess",a=>a.spanContext,"call",a=>a()]),i=Ye([n,"optionalAccess",a=>a.traceState])||new qh,s=t[ny]||t[oy];return s&&typeof s=="string"&&(i=i.set(Kae,s)),i}function ky(...e){nP({instrumentations:e});}pt();function doe(e){let t=Gp(gr.active());t&&(t.isolationScope=e);}function Xi(e,t){e.setAttribute(gn,t);}function moe(e){let t=e.protocol||"",r=e.hostname||e.host||"",n=!e.port||e.port===80||e.port===443||/^(.*):(\d+)$/.test(r)?"":`:${e.port}`,i=e.path?e.path:"/";return `${t}//${r}${n}${i}`}var goe="Http",tu={},v2,unt=Object.assign(function(){if(v2)return;let e=tu._instrumentation||yoe.HttpInstrumentation;v2=new e({...Ye([tu,"access",t=>t.instrumentation,"optionalAccess",t=>t._experimentalConfig]),ignoreOutgoingRequestHook:t=>{let r=moe(t);if(!r)return !1;let n=tu.ignoreOutgoingRequests;return !!(n&&n(r,t))},ignoreIncomingRequestHook:t=>{let r=t.url,n=Ye([t,"access",s=>s.method,"optionalAccess",s=>s.toUpperCase,"call",s=>s()]);if(n==="OPTIONS"||n==="HEAD")return !0;let i=tu.ignoreIncomingRequests;return !!(r&&i&&i(r,t))},requireParentforOutgoingSpans:!1,requireParentforIncomingSpans:!1,requestHook:(t,r)=>{if(Xi(t,"auto.http.otel.http"),Toe(r)){Ye([tu,"access",c=>c.instrumentation,"optionalAccess",c=>c.requestHook,"optionalCall",c=>c(t,r)]);return}let n=Lp(t),i=(n.isolationScope||Or()).clone(),s=n.scope||Zr();i.setSDKProcessingMetadata({request:r});let a=Rt();a&&a.getOptions().autoSessionTracking&&i.setRequestSession({status:"ok"}),doe(i),Yh(t,s,i);let o=(r.method||"GET").toUpperCase(),u=xp(r.url||"/"),l=`${o} ${u}`;i.setTransactionName(l),Ye([tu,"access",c=>c.instrumentation,"optionalAccess",c=>c.requestHook,"optionalCall",c=>c(t,r)]);},responseHook:(t,r)=>{let n=Rt();n&&n.getOptions().autoSessionTracking&&setImmediate(()=>{n._captureRequestSession();}),Ye([tu,"access",i=>i.instrumentation,"optionalAccess",i=>i.responseHook,"optionalCall",i=>i(t,r)]);},applyCustomAttributesOnSpan:(t,r,n)=>{(typeof tu.breadcrumbs>"u"?!0:tu.breadcrumbs)&&cnt(r,n),Ye([tu,"access",s=>s.instrumentation,"optionalAccess",s=>s.applyCustomAttributesOnSpan,"optionalCall",s=>s(t,r,n)]);}}),ky(v2);},{id:goe}),lnt=(e={})=>({name:goe,setupOnce(){tu=e,unt();}}),Soe=lnt;function cnt(e,t){if(!Toe(e))return;let r=pnt(e);jp({category:"http",data:{status_code:t.statusCode,...r},type:"http"},{event:"response",request:e,response:t});}function pnt(e){try{let t=e.getHeader("host")||e.host,r=new URL(e.path,`${e.protocol}//${t}`),n=_p(r.toString()),i={url:Ap(n),"http.method":e.method||"GET"};return n.search&&(i["http.query"]=n.search),n.hash&&(i["http.fragment"]=n.hash),i}catch{return {}}}function Toe(e){return "outputData"in e&&"outputSize"in e&&!("client"in e)&&!("statusCode"in e)}var woe=chunkTKGT252T_js.e(Coe(),1);var mnt=(e={})=>{let t=typeof e.breadcrumbs>"u"?!0:e.breadcrumbs,r=e.ignoreOutgoingRequests;return {name:"NodeFetch",setupOnce(){let n=new woe.UndiciInstrumentation({requireParentforSpans:!1,ignoreRequestHook:i=>{let s=Snt(i.origin,i.path);return !!(r&&s&&r(s))},startSpanHook:()=>({[gn]:"auto.http.otel.node_fetch"}),responseHook:(i,{request:s,response:a})=>{t&&ynt(s,a);}});ky(n);}}},Ioe=mnt;function ynt(e,t){let r=gnt(e);jp({category:"http",data:{status_code:t.statusCode,...r},type:"http"},{event:"response",request:e,response:t});}function gnt(e){try{let t=new URL(e.path,e.origin),r=_p(t.toString()),n={url:Ap(r),"http.method":e.method||"GET"};return r.search&&(n["http.query"]=r.search),r.hash&&(n["http.fragment"]=r.hash),n}catch{return {}}}function Snt(e,t="/"){let r=`${e}`;return r.endsWith("/")&&t.startsWith("/")?`${r}${t.slice(1)}`:!r.endsWith("/")&&!t.startsWith("/")?`${r}/${t.slice(1)}`:`${r}${t}`}var Ooe={};function Mr(e,t){return Object.assign(r=>{let n=Ooe[e];if(n){r&&n.setConfig(r);return}let i=t(r);Ooe[e]=i,ky(i);},{id:e})}var Tnt="Console",Ent=()=>({name:Tnt,setup(e){bM(({args:t,level:r})=>{Rt()===e&&jp({category:"console",level:RM(r),message:Doe__namespace.format.apply(void 0,t)},{input:[...t],level:r});});}}),Noe=Ent;var Ant=Doe.promisify(fs$1.readFile),Pnt=Doe.promisify(fs$1.readdir),Cnt="Context",wnt=(e={})=>{let t,r={app:!0,os:!0,device:!0,culture:!0,cloudResource:!0,...e};async function n(s){t===void 0&&(t=i());let a=Int(await t);return s.contexts={...s.contexts,app:{...a.app,...Ye([s,"access",o=>o.contexts,"optionalAccess",o=>o.app])},os:{...a.os,...Ye([s,"access",o=>o.contexts,"optionalAccess",o=>o.os])},device:{...a.device,...Ye([s,"access",o=>o.contexts,"optionalAccess",o=>o.device])},culture:{...a.culture,...Ye([s,"access",o=>o.contexts,"optionalAccess",o=>o.culture])},cloud_resource:{...a.cloud_resource,...Ye([s,"access",o=>o.contexts,"optionalAccess",o=>o.cloud_resource])}},s}async function i(){let s={};if(r.os&&(s.os=await Ont()),r.app&&(s.app=Nnt()),r.device&&(s.device=Rnt(r.device)),r.culture){let a=Dnt();a&&(s.culture=a);}return r.cloudResource&&(s.cloud_resource=jnt()),s}return {name:Cnt,processEvent(s){return n(s)}}},Loe=wnt;function Int(e){if(Ye([e,"optionalAccess",t=>t.app,"optionalAccess",t=>t.app_memory])&&(e.app.app_memory=process.memoryUsage().rss),Ye([e,"optionalAccess",t=>t.app,"optionalAccess",t=>t.free_memory])&&typeof process.availableMemory=="function"){let t=Ye([process,"access",r=>r.availableMemory,"optionalCall",r=>r()]);t!=null&&(e.app.free_memory=t);}return Ye([e,"optionalAccess",t=>t.device,"optionalAccess",t=>t.free_memory])&&(e.device.free_memory=wi__namespace.freemem()),e}async function Ont(){let e=wi__namespace.platform();switch(e){case"darwin":return Fnt();case"linux":return Bnt();default:return {name:Mnt[e]||e,version:wi__namespace.release()}}}function Dnt(){try{if(typeof process.versions.icu!="string")return;let e=new Date(9e8);if(new Intl.DateTimeFormat("es",{month:"long"}).format(e)==="enero"){let r=Intl.DateTimeFormat().resolvedOptions();return {locale:r.locale,timezone:r.timeZone}}}catch{}}function Nnt(){let e=process.memoryUsage().rss,r={app_start_time:new Date(Date.now()-process.uptime()*1e3).toISOString(),app_memory:e};if(typeof process.availableMemory=="function"){let n=Ye([process,"access",i=>i.availableMemory,"optionalCall",i=>i()]);n!=null&&(r.free_memory=n);}return r}function Rnt(e){let t={},r;try{r=wi__namespace.uptime&&wi__namespace.uptime();}catch{}if(typeof r=="number"&&(t.boot_time=new Date(Date.now()-r*1e3).toISOString()),t.arch=wi__namespace.arch(),(e===!0||e.memory)&&(t.memory_size=wi__namespace.totalmem(),t.free_memory=wi__namespace.freemem()),e===!0||e.cpu){let n=wi__namespace.cpus(),i=n&&n[0];i&&(t.processor_count=n.length,t.cpu_description=i.model,t.processor_frequency=i.speed);}return t}var Mnt={aix:"IBM AIX",freebsd:"FreeBSD",openbsd:"OpenBSD",sunos:"SunOS",win32:"Windows"},Lnt=[{name:"fedora-release",distros:["Fedora"]},{name:"redhat-release",distros:["Red Hat Linux","Centos"]},{name:"redhat_version",distros:["Red Hat Linux"]},{name:"SuSE-release",distros:["SUSE Linux"]},{name:"lsb-release",distros:["Ubuntu Linux","Arch Linux"]},{name:"debian_version",distros:["Debian"]},{name:"debian_release",distros:["Debian"]},{name:"arch-release",distros:["Arch Linux"]},{name:"gentoo-release",distros:["Gentoo Linux"]},{name:"novell-release",distros:["SUSE Linux"]},{name:"alpine-release",distros:["Alpine Linux"]}],knt={alpine:e=>e,arch:e=>Hu(/distrib_release=(.*)/,e),centos:e=>Hu(/release ([^ ]+)/,e),debian:e=>e,fedora:e=>Hu(/release (..)/,e),mint:e=>Hu(/distrib_release=(.*)/,e),red:e=>Hu(/release ([^ ]+)/,e),suse:e=>Hu(/VERSION = (.*)\n/,e),ubuntu:e=>Hu(/distrib_release=(.*)/,e)};function Hu(e,t){let r=e.exec(t);return r?r[1]:void 0}async function Fnt(){let e={kernel_version:wi__namespace.release(),name:"Mac OS X",version:`10.${Number(wi__namespace.release().split(".")[0])-4}`};try{let t=await new Promise((r,n)=>{R$.execFile("/usr/bin/sw_vers",(i,s)=>{if(i){n(i);return}r(s);});});e.name=Hu(/^ProductName:\s+(.*)$/m,t),e.version=Hu(/^ProductVersion:\s+(.*)$/m,t),e.build=Hu(/^BuildVersion:\s+(.*)$/m,t);}catch{}return e}function Roe(e){return e.split(" ")[0].toLowerCase()}async function Bnt(){let e={kernel_version:wi__namespace.release(),name:"Linux"};try{let t=await Pnt("/etc"),r=Lnt.find(o=>t.includes(o.name));if(!r)return e;let n=ux.join("/etc",r.name),i=(await Ant(n,{encoding:"utf-8"})).toLowerCase(),{distros:s}=r;e.name=s.find(o=>i.indexOf(Roe(o))>=0)||s[0];let a=Roe(e.name);e.version=Ye([knt,"access",o=>o[a],"optionalCall",o=>o(i)]);}catch{}return e}function jnt(){return process.env.VERCEL?{"cloud.provider":"vercel","cloud.region":process.env.VERCEL_REGION}:process.env.AWS_REGION?{"cloud.provider":"aws","cloud.region":process.env.AWS_REGION,"cloud.platform":process.env.AWS_EXECUTION_ENV}:process.env.GCP_PROJECT?{"cloud.provider":"gcp"}:process.env.ALIYUN_REGION_ID?{"cloud.provider":"alibaba_cloud","cloud.region":process.env.ALIYUN_REGION_ID}:process.env.WEBSITE_SITE_NAME&&process.env.REGION_NAME?{"cloud.provider":"azure","cloud.region":process.env.REGION_NAME}:process.env.IBM_CLOUD_REGION?{"cloud.provider":"ibm_cloud","cloud.region":process.env.IBM_CLOUD_REGION}:process.env.TENCENTCLOUD_REGION?{"cloud.provider":"tencent_cloud","cloud.region":process.env.TENCENTCLOUD_REGION,"cloud.account.id":process.env.TENCENTCLOUD_APPID,"cloud.availability_zone":process.env.TENCENTCLOUD_ZONE}:process.env.NETLIFY?{"cloud.provider":"netlify"}:process.env.FLY_REGION?{"cloud.provider":"fly.io","cloud.region":process.env.FLY_REGION}:process.env.DYNO?{"cloud.provider":"heroku"}:void 0}var ui=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var x2=new Bu(10),Boe=new Bu(20),Vnt=7,Hnt="ContextLines",Gnt=1e3,$nt=1e4;function Knt(e,t,r){let n=e.get(t);return n===void 0?(e.set(t,r),r):n}function Ynt(e){return !!(e.startsWith("node:")||e.endsWith(".min.js")||e.endsWith(".min.cjs")||e.endsWith(".min.mjs")||e.startsWith("data:"))}function Wnt(e){return e.lineno!==void 0&&e.lineno>$nt||e.colno!==void 0&&e.colno>Gnt}function Xnt(e,t){let r=x2.get(e);if(r===void 0)return !1;for(let n=t[0];n<=t[1];n++)if(r[n]===void 0)return !1;return !0}function znt(e,t){if(!e.length)return [];let r=0,n=e[0];if(typeof n!="number")return [];let i=Foe(n,t),s=[];for(;;){if(r===e.length-1){s.push(i);break}let a=e[r+1];if(typeof a!="number")break;a<=i[1]?i[1]=a+t:(s.push(i),i=Foe(a,t)),r++;}return s}function Jnt(e,t,r){return new Promise((n,i)=>{let s=fs$1.createReadStream(e),a=readline.createInterface({input:s}),o=0,u=0,l=t[u];if(l===void 0){n();return}let c=l[0],p=l[1];function h(f){Boe.set(e,1),ui&&ce.error(`Failed to read file: ${e}. Error: ${f}`),a.close(),a.removeAllListeners(),n();}s.on("error",h),a.on("error",h),a.on("close",n),a.on("line",f=>{if(o++,!(o<c)&&(r[o]=pM(f,0),o>=p)){if(u===t.length-1){a.close(),a.removeAllListeners();return}u++;let d=t[u];if(d===void 0){a.close(),a.removeAllListeners();return}c=d[0],p=d[1];}});})}async function Qnt(e,t){let r={};if(t>0&&Ye([e,"access",s=>s.exception,"optionalAccess",s=>s.values])){for(let s of e.exception.values)if(Ye([s,"access",a=>a.stacktrace,"optionalAccess",a=>a.frames,"optionalAccess",a=>a.length]))for(let a=s.stacktrace.frames.length-1;a>=0;a--){let o=s.stacktrace.frames[a],u=Ye([o,"optionalAccess",c=>c.filename]);if(!o||typeof u!="string"||typeof o.lineno!="number"||Ynt(u)||Wnt(o))continue;r[u]||(r[u]=[]),r[u].push(o.lineno);}}let n=Object.keys(r);if(n.length==0)return e;let i=[];for(let s of n){if(Boe.get(s))continue;let a=r[s];if(!a)continue;a.sort((l,c)=>l-c);let o=znt(a,t);if(o.every(l=>Xnt(s,l)))continue;let u=Knt(x2,s,{});i.push(Jnt(s,o,u));}if(await Promise.all(i).catch(()=>{ui&&ce.log("Failed to read one or more source files and resolve context lines");}),t>0&&Ye([e,"access",s=>s.exception,"optionalAccess",s=>s.values]))for(let s of e.exception.values)s.stacktrace&&s.stacktrace.frames&&s.stacktrace.frames.length>0&&Znt(s.stacktrace.frames,t,x2);return e}function Znt(e,t,r){for(let n of e)if(n.filename&&n.context_line===void 0&&typeof n.lineno=="number"){let i=r.get(n.filename);if(i===void 0)continue;eit(n.lineno,n,t,i);}}function koe(e){delete e.pre_context,delete e.context_line,delete e.post_context;}function eit(e,t,r,n){if(t.lineno===void 0||n===void 0){ui&&ce.error("Cannot resolve context for frame with no lineno or file contents");return}t.pre_context=[];for(let s=joe(e,r);s<e;s++){let a=n[s];if(a===void 0){koe(t),ui&&ce.error(`Could not find line ${s} in file ${t.filename}`);return}t.pre_context.push(a);}if(n[e]===void 0){koe(t),ui&&ce.error(`Could not find line ${e} in file ${t.filename}`);return}t.context_line=n[e];let i=Uoe(e,r);t.post_context=[];for(let s=e+1;s<=i;s++){let a=n[s];if(a===void 0)break;t.post_context.push(a);}}function joe(e,t){return Math.max(1,e-t)}function Uoe(e,t){return e+t}function Foe(e,t){return [joe(e,t),Uoe(e,t)]}var tit=(e={})=>{let t=e.frameContextLines!==void 0?e.frameContextLines:Vnt;return {name:Hnt,processEvent(r){return Qnt(r,t)}}},qoe=tit;var A2=PM(process.versions.node),Voe=A2.major;var d0="__SENTRY_ERROR_LOCAL_VARIABLES__";function Goe(e,t,r){let n=0,i=5,s=0;return setInterval(()=>{s===0?n>e&&(i*=2,r(i),i>86400&&(i=86400),s=i):(s-=1,s===0&&t()),n=0;},1e3).unref(),()=>{n+=1;}}function Hoe(e){return e!==void 0&&(e.length===0||e==="?"||e==="<anonymous>")}function $P(e,t){return e===t||Hoe(e)&&Hoe(t)}var nit="LyohIEBzZW50cnkvbm9kZSA4LjMwLjAgKGM0ZmUzMzcpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyBlfWZyb20ibm9kZTppbnNwZWN0b3IvcHJvbWlzZXMiO2ltcG9ydHt3b3JrZXJEYXRhIGFzIHR9ZnJvbSJub2RlOndvcmtlcl90aHJlYWRzIjtjb25zdCBuPSJfX1NFTlRSWV9FUlJPUl9MT0NBTF9WQVJJQUJMRVNfXyI7Y29uc3QgYT10O2Z1bmN0aW9uIGkoLi4uZSl7YS5kZWJ1ZyYmY29uc29sZS5sb2coIltMb2NhbFZhcmlhYmxlcyBXb3JrZXJdIiwuLi5lKX1hc3luYyBmdW5jdGlvbiBvKGUsdCxuLGEpe2NvbnN0IGk9YXdhaXQgZS5wb3N0KCJSdW50aW1lLmdldFByb3BlcnRpZXMiLHtvYmplY3RJZDp0LG93blByb3BlcnRpZXM6ITB9KTthW25dPWkucmVzdWx0LmZpbHRlcigoZT0+Imxlbmd0aCIhPT1lLm5hbWUmJiFpc05hTihwYXJzZUludChlLm5hbWUsMTApKSkpLnNvcnQoKChlLHQpPT5wYXJzZUludChlLm5hbWUsMTApLXBhcnNlSW50KHQubmFtZSwxMCkpKS5tYXAoKGU9PmUudmFsdWU/LnZhbHVlKSl9YXN5bmMgZnVuY3Rpb24gcyhlLHQsbixhKXtjb25zdCBpPWF3YWl0IGUucG9zdCgiUnVudGltZS5nZXRQcm9wZXJ0aWVzIix7b2JqZWN0SWQ6dCxvd25Qcm9wZXJ0aWVzOiEwfSk7YVtuXT1pLnJlc3VsdC5tYXAoKGU9PltlLm5hbWUsZS52YWx1ZT8udmFsdWVdKSkucmVkdWNlKCgoZSxbdCxuXSk9PihlW3RdPW4sZSkpLHt9KX1mdW5jdGlvbiBjKGUsdCl7ZS52YWx1ZSYmKCJ2YWx1ZSJpbiBlLnZhbHVlP3ZvaWQgMD09PWUudmFsdWUudmFsdWV8fG51bGw9PT1lLnZhbHVlLnZhbHVlP3RbZS5uYW1lXT1gPCR7ZS52YWx1ZS52YWx1ZX0+YDp0W2UubmFtZV09ZS52YWx1ZS52YWx1ZToiZGVzY3JpcHRpb24iaW4gZS52YWx1ZSYmImZ1bmN0aW9uIiE9PWUudmFsdWUudHlwZT90W2UubmFtZV09YDwke2UudmFsdWUuZGVzY3JpcHRpb259PmA6InVuZGVmaW5lZCI9PT1lLnZhbHVlLnR5cGUmJih0W2UubmFtZV09Ijx1bmRlZmluZWQ+IikpfWFzeW5jIGZ1bmN0aW9uIHIoZSx0KXtjb25zdCBuPWF3YWl0IGUucG9zdCgiUnVudGltZS5nZXRQcm9wZXJ0aWVzIix7b2JqZWN0SWQ6dCxvd25Qcm9wZXJ0aWVzOiEwfSksYT17fTtmb3IoY29uc3QgdCBvZiBuLnJlc3VsdClpZih0Py52YWx1ZT8ub2JqZWN0SWQmJiJBcnJheSI9PT10Py52YWx1ZS5jbGFzc05hbWUpe2NvbnN0IG49dC52YWx1ZS5vYmplY3RJZDthd2FpdCBvKGUsbix0Lm5hbWUsYSl9ZWxzZSBpZih0Py52YWx1ZT8ub2JqZWN0SWQmJiJPYmplY3QiPT09dD8udmFsdWU/LmNsYXNzTmFtZSl7Y29uc3Qgbj10LnZhbHVlLm9iamVjdElkO2F3YWl0IHMoZSxuLHQubmFtZSxhKX1lbHNlIHQ/LnZhbHVlJiZjKHQsYSk7cmV0dXJuIGF9bGV0IHU7KGFzeW5jIGZ1bmN0aW9uKCl7Y29uc3QgdD1uZXcgZTt0LmNvbm5lY3RUb01haW5UaHJlYWQoKSxpKCJDb25uZWN0ZWQgdG8gbWFpbiB0aHJlYWQiKTtsZXQgbz0hMTt0Lm9uKCJEZWJ1Z2dlci5yZXN1bWVkIiwoKCk9PntvPSExfSkpLHQub24oIkRlYnVnZ2VyLnBhdXNlZCIsKGU9PntvPSEwLGFzeW5jIGZ1bmN0aW9uKGUse3JlYXNvbjp0LGRhdGE6e29iamVjdElkOmF9LGNhbGxGcmFtZXM6aX0pe2lmKCJleGNlcHRpb24iIT09dCYmInByb21pc2VSZWplY3Rpb24iIT09dClyZXR1cm47aWYodT8uKCksbnVsbD09YSlyZXR1cm47Y29uc3Qgbz1bXTtmb3IobGV0IHQ9MDt0PGkubGVuZ3RoO3QrKyl7Y29uc3R7c2NvcGVDaGFpbjpuLGZ1bmN0aW9uTmFtZTphLHRoaXM6c309aVt0XSxjPW4uZmluZCgoZT0+ImxvY2FsIj09PWUudHlwZSkpLHU9Imdsb2JhbCIhPT1zLmNsYXNzTmFtZSYmcy5jbGFzc05hbWU/YCR7cy5jbGFzc05hbWV9LiR7YX1gOmE7aWYodm9pZCAwPT09Yz8ub2JqZWN0Lm9iamVjdElkKW9bdF09e2Z1bmN0aW9uOnV9O2Vsc2V7Y29uc3Qgbj1hd2FpdCByKGUsYy5vYmplY3Qub2JqZWN0SWQpO29bdF09e2Z1bmN0aW9uOnUsdmFyczpufX19cmV0dXJuIGF3YWl0IGUucG9zdCgiUnVudGltZS5jYWxsRnVuY3Rpb25PbiIse2Z1bmN0aW9uRGVjbGFyYXRpb246YGZ1bmN0aW9uKCkgeyB0aGlzLiR7bn0gPSAke0pTT04uc3RyaW5naWZ5KG8pfTsgfWAsc2lsZW50OiEwLG9iamVjdElkOmF9KSxhfSh0LGUucGFyYW1zKS50aGVuKChhc3luYyBlPT57byYmYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5yZXN1bWUiKSxlJiZzZXRUaW1lb3V0KChhc3luYygpPT57YXdhaXQgdC5wb3N0KCJSdW50aW1lLnJlbGVhc2VPYmplY3QiLHtvYmplY3RJZDplfSl9KSwxZTMpfSksKGU9Pnt9KSl9KSksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5lbmFibGUiKTtjb25zdCBzPSExIT09YS5jYXB0dXJlQWxsRXhjZXB0aW9ucztpZihhd2FpdCB0LnBvc3QoIkRlYnVnZ2VyLnNldFBhdXNlT25FeGNlcHRpb25zIix7c3RhdGU6cz8iYWxsIjoidW5jYXVnaHQifSkscyl7Y29uc3QgZT1hLm1heEV4Y2VwdGlvbnNQZXJTZWNvbmR8fDUwO3U9ZnVuY3Rpb24oZSx0LG4pe2xldCBhPTAsaT01LG89MDtyZXR1cm4gc2V0SW50ZXJ2YWwoKCgpPT57MD09PW8/YT5lJiYoaSo9MixuKGkpLGk+ODY0MDAmJihpPTg2NDAwKSxvPWkpOihvLT0xLDA9PT1vJiZ0KCkpLGE9MH0pLDFlMykudW5yZWYoKSwoKT0+e2ErPTF9fShlLChhc3luYygpPT57aSgiUmF0ZS1saW1pdCBsaWZ0ZWQuIiksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5zZXRQYXVzZU9uRXhjZXB0aW9ucyIse3N0YXRlOiJhbGwifSl9KSwoYXN5bmMgZT0+e2koYFJhdGUtbGltaXQgZXhjZWVkZWQuIERpc2FibGluZyBjYXB0dXJpbmcgb2YgY2F1Z2h0IGV4Y2VwdGlvbnMgZm9yICR7ZX0gc2Vjb25kcy5gKSxhd2FpdCB0LnBvc3QoIkRlYnVnZ2VyLnNldFBhdXNlT25FeGNlcHRpb25zIix7c3RhdGU6InVuY2F1Z2h0In0pfSkpfX0pKCkuY2F0Y2goKGU9PntpKCJGYWlsZWQgdG8gc3RhcnQgZGVidWdnZXIiLGUpfSkpLHNldEludGVydmFsKCgoKT0+e30pLDFlNCk7";function $oe(...e){ce.log("[LocalVariables]",...e);}var Koe=(e={})=>{function t(s,a){let o=(Ye([s,"access",u=>u.stacktrace,"optionalAccess",u=>u.frames])||[]).filter(u=>u.function!=="new Promise");for(let u=0;u<o.length;u++){let l=o.length-u-1,c=a[u],p=o[l];if(!p||!c)break;c.vars===void 0||p.in_app===!1||!$P(p.function,c.function)||(p.vars=c.vars);}}function r(s,a){if(a.originalException&&typeof a.originalException=="object"&&d0 in a.originalException&&Array.isArray(a.originalException[d0])){for(let o of Ye([s,"access",u=>u.exception,"optionalAccess",u=>u.values])||[])t(o,a.originalException[d0]);a.originalException[d0]=void 0;}return s}async function n(){let s=await import('inspector');s.url()||s.open(0);}function i(s){let a=new worker_threads.Worker(new URL(`data:application/javascript;base64,${nit}`),{workerData:s,execArgv:[]});process.on("exit",()=>{a.terminate();}),a.once("error",o=>{$oe("Worker error",o);}),a.once("exit",o=>{$oe("Worker exit",o);}),a.unref();}return {name:"LocalVariablesAsync",setup(s){if(!s.getOptions().includeLocalVariables)return;let o={...e,debug:ce.isEnabled()};n().then(()=>{try{i(o);}catch(u){ce.error("Failed to start worker",u);}},u=>{ce.error("Failed to start inspector",u);});},processEvent(s,a){return r(s,a)}}};function Yoe(e){if(e!==void 0)return e.slice(-10).reduce((t,r)=>`${t},${r.function},${r.lineno},${r.colno}`,"")}function iit(e,t){if(t!==void 0)return Yoe(e(t,1))}function Woe(e){let t=[],r=!1;function n(a){t=[],!r&&(r=!0,e(a));}t.push(n);function i(a){t.push(a);}function s(a){let o=t.pop()||n;try{o(a);}catch{n(a);}}return {add:i,next:s}}var P2=class e{constructor(t){this._session=t;}static async create(t){if(t)return t;let r=await import('inspector');return new e(new r.Session)}configureAndConnect(t,r){this._session.connect(),this._session.on("Debugger.paused",n=>{t(n,()=>{this._session.post("Debugger.resume");});}),this._session.post("Debugger.enable"),this._session.post("Debugger.setPauseOnExceptions",{state:r?"all":"uncaught"});}setPauseOnExceptions(t){this._session.post("Debugger.setPauseOnExceptions",{state:t?"all":"uncaught"});}getLocalVariables(t,r){this._getProperties(t,n=>{let{add:i,next:s}=Woe(r);for(let a of n)if(Ye([a,"optionalAccess",o=>o.value,"optionalAccess",o=>o.objectId])&&Ye([a,"optionalAccess",o=>o.value,"access",o=>o.className])==="Array"){let o=a.value.objectId;i(u=>this._unrollArray(o,a.name,u,s));}else if(Ye([a,"optionalAccess",o=>o.value,"optionalAccess",o=>o.objectId])&&Ye([a,"optionalAccess",o=>o.value,"optionalAccess",o=>o.className])==="Object"){let o=a.value.objectId;i(u=>this._unrollObject(o,a.name,u,s));}else Ye([a,"optionalAccess",o=>o.value])&&i(o=>this._unrollOther(a,o,s));s({});});}_getProperties(t,r){this._session.post("Runtime.getProperties",{objectId:t,ownProperties:!0},(n,i)=>{r(n?[]:i.result);});}_unrollArray(t,r,n,i){this._getProperties(t,s=>{n[r]=s.filter(a=>a.name!=="length"&&!isNaN(parseInt(a.name,10))).sort((a,o)=>parseInt(a.name,10)-parseInt(o.name,10)).map(a=>Ye([a,"optionalAccess",o=>o.value,"optionalAccess",o=>o.value])),i(n);});}_unrollObject(t,r,n,i){this._getProperties(t,s=>{n[r]=s.map(a=>[a.name,Ye([a,"optionalAccess",o=>o.value,"optionalAccess",o=>o.value])]).reduce((a,[o,u])=>(a[o]=u,a),{}),i(n);});}_unrollOther(t,r,n){t.value&&("value"in t.value?t.value.value===void 0||t.value.value===null?r[t.name]=`<${t.value.value}>`:r[t.name]=t.value.value:"description"in t.value&&t.value.type!=="function"?r[t.name]=`<${t.value.description}>`:t.value.type==="undefined"&&(r[t.name]="<undefined>")),n(r);}},sit="LocalVariables",ait=(e={},t)=>{let r=new Bu(20),n,i=!1;function s(o){let u=Yoe(Ye([o,"optionalAccess",p=>p.stacktrace,"optionalAccess",p=>p.frames]));if(u===void 0)return;let l=r.remove(u);if(l===void 0)return;let c=(Ye([o,"access",p=>p.stacktrace,"optionalAccess",p=>p.frames])||[]).filter(p=>p.function!=="new Promise");for(let p=0;p<c.length;p++){let h=c.length-p-1,f=l[p],d=c[h];if(!d||!f)break;f.vars===void 0||d.in_app===!1||!$P(d.function,f.function)||(d.vars=f.vars);}}function a(o){for(let u of Ye([o,"optionalAccess",l=>l.exception,"optionalAccess",l=>l.values])||[])s(u);return o}return {name:sit,setupOnce(){let o=Rt(),u=Ye([o,"optionalAccess",c=>c.getOptions,"call",c=>c()]);if(!Ye([u,"optionalAccess",c=>c.includeLocalVariables]))return;if(Voe<18){ce.log("The `LocalVariables` integration is only supported on Node >= v18.");return}P2.create(t).then(c=>{function p(f,{params:{reason:d,data:m,callFrames:y}},g){if(d!=="exception"&&d!=="promiseRejection"){g();return}Ye([n,"optionalCall",x=>x()]);let v=iit(f,Ye([m,"optionalAccess",x=>x.description]));if(v==null){g();return}let{add:E,next:S}=Woe(x=>{r.set(v,x),g();});for(let x=0;x<Math.min(y.length,5);x++){let{scopeChain:b,functionName:A,this:D}=y[x],P=b.find(X=>X.type==="local"),V=D.className==="global"||!D.className?A:`${D.className}.${A}`;if(Ye([P,"optionalAccess",X=>X.object,"access",X=>X.objectId])===void 0)E(X=>{X[x]={function:V},S(X);});else {let X=P.object.objectId;E(oe=>Ye([c,"optionalAccess",le=>le.getLocalVariables,"call",le=>le(X,Be=>{oe[x]={function:V,vars:Be},S(oe);})]));}}S([]);}let h=e.captureAllExceptions!==!1;if(c.configureAndConnect((f,d)=>p(u.stackParser,f,d),h),h){let f=e.maxExceptionsPerSecond||50;n=Goe(f,()=>{ce.log("Local variables rate-limit lifted."),Ye([c,"optionalAccess",d=>d.setPauseOnExceptions,"call",d=>d(!0)]);},d=>{ce.log(`Local variables rate-limit exceeded. Disabling capturing of caught exceptions for ${d} seconds.`),Ye([c,"optionalAccess",m=>m.setPauseOnExceptions,"call",m=>m(!1)]);});}i=!0;},c=>{ce.log("The `LocalVariables` integration failed to start.",c);});},processEvent(o){return i?a(o):o},_getCachedFramesCount(){return r.size},_getFirstCachedFrame(){return r.values()[0]}}},Xoe=ait;var zoe=(e={})=>A2.major<19?Xoe(e):Koe(e);var C2,pit="Modules",fit=()=>({name:pit,processEvent(e){return e.modules={...e.modules,...mit()},e}}),Joe=fit;function hit(){try{return chunkTKGT252T_js.a.cache?Object.keys(chunkTKGT252T_js.a.cache):[]}catch{return []}}function dit(){let e=chunkTKGT252T_js.a.main&&chunkTKGT252T_js.a.main.paths||[],t=hit(),r={},n={};return t.forEach(i=>{let s=i,a=()=>{let o=s;if(s=ux.dirname(o),!s||o===s||n[o])return;if(e.indexOf(s)<0)return a();let u=ux.join(o,"package.json");if(n[o]=!0,!fs$1.existsSync(u))return a();try{let l=JSON.parse(fs$1.readFileSync(u,"utf8"));r[l.name]=l.version;}catch{}};a();}),r}function mit(){return C2||(C2=dit()),C2}var yit=2e3;function m0(e){Ki(()=>{console.error(e);});let t=Rt();if(t===void 0){ui&&ce.warn("No NodeClient was defined, we are exiting the process now."),global.process.exit(1);return}let r=t.getOptions(),n=r&&r.shutdownTimeout&&r.shutdownTimeout>0&&r.shutdownTimeout||yit;t.close(n).then(i=>{i||ui&&ce.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1);},i=>{ui&&ce.error(i);});}var git="OnUncaughtException",Qoe=(e={})=>{let t={exitEvenIfOtherHandlersAreRegistered:!1,...e};return {name:git,setup(r){global.process.on("uncaughtException",Sit(r,t));}}};function Sit(e,t){let n=!1,i=!1,s=!1,a,o=e.getOptions();return Object.assign(u=>{let l=m0;t.onFatalError?l=t.onFatalError:o.onFatalError&&(l=o.onFatalError);let p=global.process.listeners("uncaughtException").filter(f=>f.name!=="domainUncaughtExceptionClear"&&f.tag!=="sentry_tracingErrorCallback"&&f._errorHandler!==!0).length===0,h=t.exitEvenIfOtherHandlersAreRegistered||p;n?h&&(s?(ui&&ce.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),m0(u)):i||(i=!0,setTimeout(()=>{s||(s=!0,l(a,u));},2e3))):(a=u,n=!0,Rt()===e&&ps(u,{originalException:u,captureContext:{level:"fatal"},mechanism:{handled:!1,type:"onuncaughtexception"}}),!s&&h&&(s=!0,l(u)));},{_errorHandler:!0})}var Tit="OnUnhandledRejection",Eit=(e={})=>{let t=e.mode||"warn";return {name:Tit,setup(r){global.process.on("unhandledRejection",bit(r,{mode:t}));}}},Zoe=Eit;function bit(e,t){return function(n,i){Rt()===e&&(ps(n,{originalException:i,captureContext:{extra:{unhandledPromiseRejection:!0}},mechanism:{handled:!1,type:"onunhandledrejection"}}),vit(n,t));}}function vit(e,t){let r="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";t.mode==="warn"?Ki(()=>{console.warn(r),console.error(e&&e.stack?e.stack:e);}):t.mode==="strict"&&(Ki(()=>{console.warn(r);}),m0(e));}var pue=chunkTKGT252T_js.e(cue(),1);function zP(){return typeof chunkTKGT252T_js.a<"u"}var fue="Express",hue=Mr(fue,()=>new pue.ExpressInstrumentation({requestHook(e){Xi(e,"auto.http.otel.express");let t=Ht(e).data||{},r=t["express.type"];r&&e.setAttribute(yn,`${r}.express`);let n=t["express.name"];typeof n=="string"&&e.updateName(n);},spanNameHook(e,t){if(Or()===Vu())return ui&&ce.warn("Isolation scope is still default isolation scope - skipping setting transactionName"),t;if(e.layerType==="request_handler"){let r=e.request,n=r.method?r.method.toUpperCase():"GET";Or().setTransactionName(`${n} ${e.route}`);}return t}})),Rit=()=>({name:fue,setupOnce(){hue();}}),due=Rit;var xue=chunkTKGT252T_js.e(_ue(),1);var Aue="Fastify",Pue=Mr(Aue,()=>new xue.FastifyInstrumentation({requestHook(e){$it(e);}})),Git=()=>({name:Aue,setupOnce(){Pue();}}),Cue=Git;function $it(e){let t=Ht(e).data||{},r=t["fastify.type"];if(t[yn]||!r)return;e.setAttributes({[gn]:"auto.http.otel.fastify",[yn]:`${r}.fastify`});let n=t["fastify.name"]||t["plugin.name"]||t["hook.name"];typeof n=="string"&&e.updateName(n.replace(/^fastify -> /,""));}var Xue=chunkTKGT252T_js.e(Wue(),1);var zue="Graphql",Jue=Mr(zue,(e={})=>{let t={ignoreResolveSpans:!0,ignoreTrivialResolveSpans:!0,useOperationNameForRootSpan:!0,...e};return new Xue.GraphQLInstrumentation({...t,responseHook(r){Xi(r,"auto.graphql.otel.graphql");let n=Ht(r).data||{},i=n["graphql.operation.type"],s=n["graphql.operation.name"];if(t.useOperationNameForRootSpan&&i){let a=_n(r),u=(Ht(a).data||{})[Ly]||[],l=s?`${i} ${s}`:`${i}`;Array.isArray(u)?(u.push(l),a.setAttribute(Ly,u)):u?a.setAttribute(Ly,[u,l]):a.setAttribute(Ly,l);}}})}),lst=(e={})=>({name:zue,setupOnce(){Jue(e);}}),Que=lst;var ule=chunkTKGT252T_js.e(ole(),1);var lle="Kafka",cle=Mr(lle,()=>new ule.KafkaJsInstrumentation({consumerHook(e){Xi(e,"auto.kafkajs.otel.consumer");},producerHook(e){Xi(e,"auto.kafkajs.otel.producer");}})),pst=()=>({name:lle,setupOnce(){cle();}}),ple=pst;var Tle=chunkTKGT252T_js.e(Sle(),1);var Ele="Mongo",ble=Mr(Ele,()=>new Tle.MongoDBInstrumentation({responseHook(e){Xi(e,"auto.db.otel.mongo");}})),mst=()=>({name:Ele,setupOnce(){ble();}}),vle=mst;var kle=chunkTKGT252T_js.e(Lle(),1);var Fle="Mongoose",Ble=Mr(Fle,()=>new kle.MongooseInstrumentation({responseHook(e){Xi(e,"auto.db.otel.mongoose");}})),Ast=()=>({name:Fle,setupOnce(){Ble();}}),jle=Ast;var zle=chunkTKGT252T_js.e(Xle(),1);var Jle="Mysql",Qle=Mr(Jle,()=>new zle.MySQLInstrumentation({})),Lst=()=>({name:Jle,setupOnce(){Qle();}}),Zle=Lst;var pce=chunkTKGT252T_js.e(cce(),1);var fce="Mysql2",hce=Mr(fce,()=>new pce.MySQL2Instrumentation({responseHook(e){Xi(e,"auto.db.otel.mysql2");}})),Kst=()=>({name:fce,setupOnce(){hce();}}),dce=Kst;var jce=chunkTKGT252T_js.e(xce(),1),Uce=chunkTKGT252T_js.e(Lce(),1);var iat=["get","set","setex"],Z2=["get","mget"],sat=["set","setex"];function O0(e,t){return e.includes(t.toLowerCase())}function eF(e){return O0(Z2,e)?"cache.get":O0(sat,e)?"cache.put":void 0}function aat(e,t){return t.some(r=>e.startsWith(r))}function kce(e,t){try{if(t.length===0)return;let r=i=>typeof i=="string"||typeof i=="number"||Buffer.isBuffer(i)?[i.toString()]:Array.isArray(i)?Qx(i.map(s=>r(s))):["<unknown>"],n=t[0];return O0(iat,e)&&n!=null?r(n):Qx(t.map(i=>r(i)))}catch{return}}function Fce(e,t,r){if(!eF(e))return !1;for(let n of t)if(aat(n,r))return !0;return !1}function Bce(e){let t=r=>{try{return Buffer.isBuffer(r)?r.byteLength:typeof r=="string"?r.length:typeof r=="number"?r.toString().length:r==null?0:JSON.stringify(r).length}catch{return}};return Array.isArray(e)?e.reduce((r,n)=>{let i=t(n);return typeof i=="number"?r!==void 0?r+i:i:r},0):t(e)}var qce="Redis",tF={},Vce=(e,t,r,n)=>{e.setAttribute(gn,"auto.db.otel.redis");let i=kce(t,r),s=eF(t);if(!i||!s||!Ye([tF,"optionalAccess",c=>c.cachePrefixes])||!Fce(t,i,tF.cachePrefixes))return;let a=Ye([Ht,"call",c=>c(e),"access",c=>c.data,"optionalAccess",c=>c["net.peer.name"]]),o=Ye([Ht,"call",c=>c(e),"access",c=>c.data,"optionalAccess",c=>c["net.peer.port"]]);o&&a&&e.setAttributes({"network.peer.address":a,"network.peer.port":o});let u=Bce(n);u&&e.setAttribute(Rk,u),O0(Z2,t)&&u!==void 0&&e.setAttribute(Dk,u>0),e.setAttributes({[yn]:s,[Nk]:i});let l=i.join(", ");e.updateName(za(l,1024));},oat=Mr("IORedis",()=>new jce.IORedisInstrumentation({responseHook:Vce})),uat=Mr("Redis-4",()=>new Uce.RedisInstrumentation({responseHook:Vce})),Hce=Object.assign(()=>{oat(),uat();},{id:qce}),lat=(e={})=>({name:qce,setupOnce(){tF=e,Hce();}}),Gce=lat;var Zce=chunkTKGT252T_js.e(Jce(),1);jn();Rn();var Sat="sentryPatched";function ag(e){return e.sentryPatched?!0:(ni(e,Sat,!0),!1)}function pf(e,t=void 0){return {name:Yi(t,()=>e.name),attributes:{[yn]:"middleware.nestjs",[gn]:"auto.middleware.nestjs"}}}function aF(e,t){t&&(e.subscribe=new Proxy(e.subscribe,{apply:(r,n,i)=>$l(t,()=>{let s=r.apply(n,i);return s.add(()=>t.end()),s})}));}function Qce(e,t,r){return new Proxy(e,{apply:(n,i,s)=>(t.end(),r?$l(r,()=>Reflect.apply(n,i,s)):Reflect.apply(n,i,s))})}var oF=[">=8.0.0 <11"],og=class e extends by{static __initStatic(){this.COMPONENT="@nestjs/common";}static __initStatic2(){this.COMMON_ATTRIBUTES={component:e.COMPONENT};}constructor(t={}){super("sentry-nestjs",ri,t);}init(){let t=new cP(e.COMPONENT,oF);return t.files.push(this._getInjectableFileInstrumentation(oF),this._getCatchFileInstrumentation(oF)),t}_getInjectableFileInstrumentation(t){return new ZE("@nestjs/common/decorators/core/injectable.decorator.js",t,r=>(UE(r.Injectable)&&this._unwrap(r,"Injectable"),this._wrap(r,"Injectable",this._createWrapInjectable()),r),r=>{this._unwrap(r,"Injectable");})}_getCatchFileInstrumentation(t){return new ZE("@nestjs/common/decorators/core/catch.decorator.js",t,r=>(UE(r.Catch)&&this._unwrap(r,"Catch"),this._wrap(r,"Catch",this._createWrapCatch()),r),r=>{this._unwrap(r,"Catch");})}_createWrapInjectable(){return function(r){return function(i){return function(s){if(typeof s.prototype.use=="function"&&!s.__SENTRY_INTERNAL__){if(ag(s))return r(i)(s);s.prototype.use=new Proxy(s.prototype.use,{apply:(a,o,u)=>{let[l,c,p,...h]=u;if(!l||!c||!p||typeof p!="function")return a.apply(o,u);let f=Kh();return s0(pf(s),d=>{let m=Qce(p,d,f);return a.apply(o,[l,c,m,h])})}});}if(typeof s.prototype.canActivate=="function"&&!s.__SENTRY_INTERNAL__){if(ag(s))return r(i)(s);s.prototype.canActivate=new Proxy(s.prototype.canActivate,{apply:(a,o,u)=>u[0]?Iy(pf(s),()=>a.apply(o,u)):a.apply(o,u)});}if(typeof s.prototype.transform=="function"&&!s.__SENTRY_INTERNAL__){if(ag(s))return r(i)(s);s.prototype.transform=new Proxy(s.prototype.transform,{apply:(a,o,u)=>{let l=u[0],c=u[1];return !l||!c?a.apply(o,u):Iy(pf(s),()=>a.apply(o,u))}});}if(typeof s.prototype.intercept=="function"&&!s.__SENTRY_INTERNAL__){if(ag(s))return r(i)(s);s.prototype.intercept=new Proxy(s.prototype.intercept,{apply:(a,o,u)=>{let l=u[0],c=u[1],p=Kh(),h;return !l||!c||typeof c.handle!="function"?a.apply(o,u):s0(pf(s),f=>{c.handle=new Proxy(c.handle,{apply:(m,y,g)=>{if(f.end(),p)return $l(p,()=>{let v=Reflect.apply(m,y,g);return l._sentryInterceptorInstrumented||(ni(l,"_sentryInterceptorInstrumented",!0),h=a0(pf(s,"Interceptors - After Route"))),v});{let v=Reflect.apply(m,y,g);return l._sentryInterceptorInstrumented||(ni(l,"_sentryInterceptorInstrumented",!0),h=a0(pf(s,"Interceptors - After Route"))),v}}});let d;try{d=a.apply(o,u);}catch(m){throw Ye([f,"optionalAccess",y=>y.end,"call",y=>y()]),Ye([h,"optionalAccess",y=>y.end,"call",y=>y()]),m}return h?aa(d)?d.then(m=>(aF(m,Yi(h,()=>p)),m),m=>{throw Ye([f,"optionalAccess",y=>y.end,"call",y=>y()]),Ye([h,"optionalAccess",y=>y.end,"call",y=>y()]),m}):(typeof d.subscribe=="function"&&aF(d,Yi(h,()=>p)),d):d})}});}return r(i)(s)}}}}_createWrapCatch(){return function(r){return function(...i){return function(s){if(typeof s.prototype.catch=="function"&&!s.__SENTRY_INTERNAL__){if(ag(s))return r(...i)(s);s.prototype.catch=new Proxy(s.prototype.catch,{apply:(a,o,u)=>{let l=u[0],c=u[1];return !l||!c?a.apply(o,u):Iy(pf(s),()=>a.apply(o,u))}});}return r(...i)(s)}}}}};og.__initStatic();og.__initStatic2();var epe="Nest",Tat=Mr("Nest-Core",()=>new Zce.NestInstrumentation),Eat=Mr("Nest-Common",()=>new og),tpe=Object.assign(()=>{Tat(),Eat();},{id:epe}),bat=()=>({name:epe,setupOnce(){tpe();}}),rpe=bat;var Spe=chunkTKGT252T_js.e(gpe(),1);var Tpe="Postgres",Epe=Mr(Tpe,()=>new Spe.PgInstrumentation({requireParentSpan:!0,requestHook(e){Xi(e,"auto.db.otel.postgres");}})),Lat=()=>({name:Tpe,setupOnce(){Epe();}}),bpe=Lat;var Ipe=chunkTKGT252T_js.e(wpe(),1);var Ope="Hapi",Dpe=Mr(Ope,()=>new Ipe.HapiInstrumentation),Kat=()=>({name:Ope,setupOnce(){Dpe();}}),Npe=Kat;var Gpe=chunkTKGT252T_js.e(Hpe(),1);dn();var $pe="Koa",Kpe=Mr($pe,()=>new Gpe.KoaInstrumentation({requestHook(e,t){if(eot(e),Or()===Vu()){ui&&ce.warn("Isolation scope is default isolation scope - skipping setting transactionName");return}let r=Ht(e).data,n=r&&r[NE],i=Ye([t,"optionalAccess",s=>s.context,"optionalAccess",s=>s.request,"optionalAccess",s=>s.method,"optionalAccess",s=>s.toUpperCase,"call",s=>s()])||"GET";n&&Or().setTransactionName(`${i} ${n}`);}})),Zat=()=>({name:$pe,setupOnce(){Kpe();}}),Ype=Zat;function eot(e){e.setAttribute(gn,"auto.http.otel.koa");let t=Ht(e).data||{},r=t["koa.type"];r&&e.setAttribute(yn,`${r}.koa`);let n=t["koa.name"];typeof n=="string"&&e.updateName(n||"< unknown >");}var rfe=chunkTKGT252T_js.e(tfe(),1);var nfe="Connect",ife=Mr(nfe,()=>new rfe.ConnectInstrumentation),pot=()=>({name:nfe,setupOnce(){ife();}}),sfe=pot;var vF="Spotlight",hot=(e={})=>{let t={sidecarUrl:e.sidecarUrl||"http://localhost:8969/stream"};return {name:vF,setup(r){typeof process=="object"&&process.env&&process.env.NODE_ENV!=="development"&&ce.warn("[Spotlight] It seems you're not in dev mode. Do you really want to have Spotlight enabled?"),dot(r,t);}}},afe=hot;function dot(e,t){let r=mot(t.sidecarUrl);if(!r)return;let n=0;e.on("beforeEnvelope",i=>{if(n>3){ce.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests");return}let s=mE(i),o=yot()({method:"POST",path:r.pathname,hostname:r.hostname,port:r.port,headers:{"Content-Type":"application/x-sentry-envelope"}},u=>{u.statusCode&&u.statusCode>=200&&u.statusCode<400&&(n=0),u.on("data",()=>{}),u.on("end",()=>{}),u.setEncoding("utf8");});o.on("error",()=>{n++,ce.warn("[Spotlight] Failed to send envelope to Spotlight Sidecar");}),o.write(s),o.end();});}function mot(e){try{return new URL(`${e}`)}catch{ce.warn(`[Spotlight] Invalid sidecar URL: ${e}`);return}}function yot(){let{request:e}=j1__namespace;return got(e)?e.__sentry_original__:e}function got(e){return "__sentry_original__"in e}var pfe=chunkTKGT252T_js.e(cfe(),1);var ffe="GenericPool",hfe=Mr(ffe,()=>new pfe.GenericPoolInstrumentation({})),Eot=()=>({name:ffe,setupOnce(){hfe();},setup(e){e.on("spanStart",t=>{let n=Ht(t).description;(n==="generic-pool.aquire"||n==="generic-pool.acquire")&&t.setAttribute(gn,"auto.db.otel.generic_pool");});}}),dfe=Eot;var Sfe=chunkTKGT252T_js.e(gfe(),1);var Tfe=aoe(Sfe.AsyncLocalStorageContextManager);function Efe(){return [due(),Cue(),Que(),vle(),jle(),Zle(),dce(),Gce(),bpe(),rpe(),Npe(),Ype(),sfe(),dfe(),ple()]}var Ju=Symbol("AgentBaseInternalState"),FC=class extends j1__namespace.Agent{constructor(t){super(t),this[Ju]={};}isSecureEndpoint(t){if(t){if(typeof t.secureEndpoint=="boolean")return t.secureEndpoint;if(typeof t.protocol=="string")return t.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(t,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(t,i)).then(s=>{if(s instanceof j1__namespace.Agent)return s.addRequest(t,i);this[Ju].currentSocket=s,super.createSocket(t,r,n);},n);}createConnection(){let t=this[Ju].currentSocket;if(this[Ju].currentSocket=void 0,!t)throw new Error("No socket was returned in the `connect()` function");return t}get defaultPort(){return Yi(this[Ju].defaultPort,()=>this.protocol==="https:"?443:80)}set defaultPort(t){this[Ju]&&(this[Ju].defaultPort=t);}get protocol(){return Yi(this[Ju].protocol,()=>this.isSecureEndpoint()?"https:":"http:")}set protocol(t){this[Ju]&&(this[Ju].protocol=t);}};function BC(...e){ce.log("[https-proxy-agent:parse-proxy-response]",...e);}function bfe(e){return new Promise((t,r)=>{let n=0,i=[];function s(){let c=e.read();c?l(c):e.once("readable",s);}function a(){e.removeListener("end",o),e.removeListener("error",u),e.removeListener("readable",s);}function o(){a(),BC("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"));}function u(c){a(),BC("onerror %o",c),r(c);}function l(c){i.push(c),n+=c.length;let p=Buffer.concat(i,n),h=p.indexOf(`\r
\r
`);if(h===-1){BC("have not received end of HTTP headers yet..."),s();return}let f=p.slice(0,h).toString("ascii").split(`\r
`),d=f.shift();if(!d)return e.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=d.split(" "),y=+(m[1]||0),g=m.slice(2).join(" "),v={};for(let E of f){if(!E)continue;let S=E.indexOf(":");if(S===-1)return e.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${E}"`));let x=E.slice(0,S).toLowerCase(),b=E.slice(S+1).trimStart(),A=v[x];typeof A=="string"?v[x]=[A,b]:Array.isArray(A)?A.push(b):v[x]=b;}BC("got proxy server response: %o %o",d,v),a(),t({connect:{statusCode:y,statusText:g,headers:v},buffered:p});}e.on("error",u),e.on("end",o),s();})}function V0(...e){ce.log("[https-proxy-agent]",...e);}var H0=class extends FC{static __initStatic(){this.protocols=["http","https"];}constructor(t,r){super(r),this.options={},this.proxy=typeof t=="string"?new URL(t):t,this.proxyHeaders=Yi(Ye([r,"optionalAccess",s=>s.headers]),()=>({})),V0("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?vfe(r,"headers"):null,host:n,port:i};}async connect(t,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(n.protocol==="https:"){V0("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;i=OF__namespace.connect({...this.connectOpts,servername:h&&nc__namespace.isIP(h)?void 0:h});}else V0("Creating `net.Socket`: %o",this.connectOpts),i=nc__namespace.connect(this.connectOpts);let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=nc__namespace.isIPv6(r.host)?`[${r.host}]`:r.host,o=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let h=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`;}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))o+=`${h}: ${s[h]}\r
`;let u=bfe(i);i.write(`${o}\r
`);let{connect:l,buffered:c}=await u;if(t.emit("proxyConnect",l),this.emit("proxyConnect",l,t),l.statusCode===200){if(t.once("socket",Dot),r.secureEndpoint){V0("Upgrading socket connection to TLS");let h=r.servername||r.host;return OF__namespace.connect({...vfe(r,"host","path","port"),socket:i,servername:nc__namespace.isIP(h)?void 0:h})}return i}i.destroy();let p=new nc__namespace.Socket({writable:!1});return p.readable=!0,t.once("socket",h=>{V0("Replaying proxy buffer for failed request"),h.push(c),h.push(null);}),p}};H0.__initStatic();function Dot(e){e.resume();}function vfe(e,...t){let r={},n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}var kot=1024*32;function Fot(e){return new xf.Readable({read(){this.push(e),this.push(null);}})}function _fe(e){let t;try{t=new URL(e.url);}catch{return Ki(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.");}),p0(e,()=>Promise.resolve({}))}let r=t.protocol==="https:",n=Bot(t,e.proxy||(r?process.env.https_proxy:void 0)||process.env.http_proxy),i=r?Rot__namespace:j1__namespace,s=e.keepAlive===void 0?!1:e.keepAlive,a=n?new H0(n):new i.Agent({keepAlive:s,maxSockets:30,timeout:2e3}),o=jot(e,Yi(e.httpModule,()=>i),a);return p0(e,o)}function Bot(e,t){let{no_proxy:r}=process.env;if(!(r&&r.split(",").some(i=>e.host.endsWith(i)||e.hostname.endsWith(i))))return t}function jot(e,t,r){let{hostname:n,pathname:i,port:s,protocol:a,search:o}=new URL(e.url);return function(l){return new Promise((c,p)=>{jk(()=>{let h=Fot(l.body),f={...e.headers};l.body.length>kot&&(f["content-encoding"]="gzip",h=h.pipe(Hg.createGzip()));let d=t.request({method:"POST",agent:r,headers:f,hostname:n,path:`${i}${o}`,port:s,protocol:a,ca:e.caCerts},m=>{m.on("data",()=>{}),m.on("end",()=>{}),m.setEncoding("utf8");let y=Yi(m.headers["retry-after"],()=>null),g=Yi(m.headers["x-sentry-rate-limits"],()=>null);c({statusCode:m.statusCode,headers:{"retry-after":y,"x-sentry-rate-limits":Array.isArray(g)?g[0]||null:g}});});d.on("error",p),h.pipe(d);});})}}var Uot=new Set(["false","f","n","no","off","0"]),qot=new Set(["true","t","y","yes","on","1"]);function DF(e,t){let r=String(e).toLowerCase();return Uot.has(r)?!1:qot.has(r)?!0:t&&t.strict?null:!!e}function xfe(e){return e.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}function Afe(e=process.argv[1]?wM(process.argv[1]):process.cwd(),t=ux.sep==="\\"){let r=t?xfe(e):e;return n=>{if(!n)return;let i=t?xfe(n):n,{dir:s,base:a,ext:o}=ux.posix.parse(i);(o===".js"||o===".mjs"||o===".cjs")&&(a=a.slice(0,o.length*-1)),s||(s=".");let u=s.lastIndexOf("/node_modules");if(u>-1)return `${s.slice(u+14).replace(/\//g,".")}:${a}`;if(s.startsWith(r)){let l=s.slice(r.length+1).replace(/\//g,".");return l&&(l+=":"),l+=a,l}return a}}function Pfe(e){return "15.0.0"}var Cfe=nA(MM(Afe()));pt();var Kot=6e4,jC=class extends c0{constructor(t){let r={...t,platform:"node",runtime:{name:"node",version:global.process.version},serverName:t.serverName||global.process.env.SENTRY_NAME||wi__namespace.hostname()};Yk(r,"node"),ce.log(`Initializing Sentry: process: ${process.pid}, thread: ${worker_threads.isMainThread?"main":`worker-${worker_threads.threadId}`}.`),super(r);}get tracer(){if(this._tracer)return this._tracer;let t="@sentry/node",r=ri,n=qt.getTracer(t,r);return this._tracer=n,n}async flush(t){let r=this.traceProvider,n=Ye([r,"optionalAccess",i=>i.activeSpanProcessor]);return n&&await n.forceFlush(),this.getOptions().sendClientReports&&this._flushOutcomes(),super.flush(t)}close(t){return this._clientReportInterval&&clearInterval(this._clientReportInterval),this._clientReportOnExitFlushListener&&process.off("beforeExit",this._clientReportOnExitFlushListener),super.close(t)}startClientReportTracking(){let t=this.getOptions();t.sendClientReports&&(this._clientReportOnExitFlushListener=()=>{this._flushOutcomes();},this._clientReportInterval=setInterval(()=>{ui&&ce.log("Flushing client reports based on interval."),this._flushOutcomes();},Yi(t.clientReportFlushInterval,()=>Kot)).unref(),process.on("beforeExit",this._clientReportOnExitFlushListener));}};pt();n2();LP();dn();var Ife=chunkTKGT252T_js.e(Sk(),1);function Ofe(e){e.getOptions().debug&&zot();let t=Xot(e);e.traceProvider=t;}function Wot(e){if(Ye([e,"optionalAccess",t=>t.onlyIncludeInstrumentedModules])){let{addHookMessagePort:t}=(0, Ife.createAddHookMessageChannel)();return {data:{addHookMessagePort:t,include:e.include||[]},transferList:[t]}}return {data:e}}function Dfe(e){let[t=0,r=0]=process.versions.node.split(".").map(Number);if(t>=22||t===20&&r>=6||t===18&&r>=19){let n=typeof (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('out.js', document.baseURI).href))<"u"?(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('out.js', document.baseURI).href)):void 0;if(!Bt._sentryEsmLoaderHookRegistered&&n)try{Yot__default.default.register("import-in-the-middle/hook.mjs",n,Wot(e)),Bt._sentryEsmLoaderHookRegistered=!0;}catch(i){ce.warn("Failed to register ESM hook",i);}}else Ki(()=>{console.warn('[Sentry] You are using Node.js in ESM mode ("import syntax"). The Sentry Node.js SDK is not compatible with ESM in Node.js versions before 18.19.0 or before 20.6.0. Please either build your application with CommonJS ("require() syntax"), or use version 7.x of the Sentry Node.js SDK.');});}function Xot(e){let t=new i2({sampler:new BP(e),resource:new Ry({[jL]:"node",[FL]:"sentry",[UL]:ri}),forceFlushTimeoutMillis:500});return t.addSpanProcessor(new FP({timeout:e.getOptions().maxSpanWaitDuration})),t.register({propagator:new kP,contextManager:new Tfe}),t}function zot(){let e=new Proxy(ce,{get(t,r,n){return Reflect.get(t,r==="verbose"?"debug":r,n)}});_t.disable(),_t.setLogger(e,ln.DEBUG);}function Jot(){return zP()?[Joe()]:[]}function Nfe(){return [AP(),_P(),PP(),CP(),Noe(),Soe(),Ioe(),Qoe(),Zoe(),qoe(),zoe(),Loe(),...Jot()]}function Rfe(e){return [...Nfe(),...Qot(e)?Efe():[]]}function Qot(e){return eu(e)?e.enableTracing||e.tracesSampleRate!=null||"tracesSampler"in e:!1}function Zot(e={}){return eut(e,Rfe)}function eut(e={},t){let r=tut(e,t);r.debug===!0&&(ui?ce.enable():Ki(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");})),!zP()&&r.registerEsmLoaderHooks!==!1&&Dfe(r.registerEsmLoaderHooks===!0?void 0:r.registerEsmLoaderHooks),soe(),Zr().update(r.initialScope),r.spotlight&&!r.integrations.some(({name:s})=>s===vF)&&r.integrations.push(afe({sidecarUrl:typeof r.spotlight=="string"?r.spotlight:void 0}));let i=new jC(r);return Zr().setClient(i),i.init(),ce.log(`Running in ${zP()?"CommonJS":"ESM"} mode.`),r.autoSessionTracking&&sut(),i.startClientReportTracking(),iut(),r.skipOpenTelemetrySetup||(Ofe(i),Mfe()),Qae(i),ioe(i),i}function Mfe(){if(!ui)return;let e=toe(),t=["SentryContextManager","SentryPropagator"];eu()&&t.push("SentrySpanProcessor");for(let r of t)e.includes(r)||ce.error(`You have to set up the ${r}. Without this, the OpenTelemetry & Sentry integration will not work properly.`);e.includes("SentrySampler")||ce.warn("You have to set up the SentrySampler. Without this, the OpenTelemetry & Sentry integration may still work, but sample rates set for the Sentry SDK will not be respected. If you use a custom sampler, make sure to use `wrapSamplingDecision`.");}function tut(e,t){let r=rut(e.release),n=typeof r!="string"?!1:e.autoSessionTracking===void 0?!0:e.autoSessionTracking;if(e.spotlight==null){let l=DF(process.env.SENTRY_SPOTLIGHT,{strict:!0});l==null?e.spotlight=process.env.SENTRY_SPOTLIGHT:e.spotlight=l;}let i=nut(e.tracesSampleRate),s=Zt({transport:_fe,dsn:process.env.SENTRY_DSN,environment:"production",sendClientReports:!0}),a=Zt({release:r,autoSessionTracking:n,tracesSampleRate:i}),o={...s,...e,...a};return e.defaultIntegrations===void 0&&(e.defaultIntegrations=t(o)),{...o,stackParser:EM(e.stackParser||Cfe),integrations:Gk({defaultIntegrations:e.defaultIntegrations,integrations:e.integrations})}}function rut(e){if(e!==void 0)return e;let t=Pfe();return t}function nut(e){if(e!==void 0)return e;let t=process.env.SENTRY_TRACES_SAMPLE_RATE;if(!t)return;let r=parseFloat(t);return isFinite(r)?r:void 0}function iut(){if(DF(process.env.SENTRY_USE_ENVIRONMENT)!==!1){let e=process.env.SENTRY_TRACE,t=process.env.SENTRY_BAGGAGE,r=Jm(e,t);Zr().setPropagationContext(r);}}function sut(){let e=Rt();e&&e.getOptions().autoSessionTracking&&e.initSessionFlusher(),EP(),process.on("beforeExit",()=>{let t=Or().getSession();t&&t.status!=="ok"&&l0();});}var Xqe=chunkTKGT252T_js.e(hSe());chunkHZVCNUTP_js.c();var wTe=chunkTKGT252T_js.e(Ug());var CTe=chunkTKGT252T_js.e(Ug());function Wpt(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");let r=e.substring(5,t).split(";"),n="",i=!1,s=r[0]||"text/plain",a=s;for(let c=1;c<r.length;c++)r[c]==="base64"?i=!0:r[c]&&(a+=`;${r[c]}`,r[c].indexOf("charset=")===0&&(n=r[c].substring(8)));!r[0]&&!n.length&&(a+=";charset=US-ASCII",n="US-ASCII");let o=i?"base64":"ascii",u=unescape(e.substring(t+1)),l=Buffer.from(u,o);return l.type=s,l.typeFull=a,l.charset=n,l}var ESe=Wpt;var fc=class extends Error{constructor(t,r){super(t),Error.captureStackTrace(this,this.constructor),this.type=r;}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}};var da=class extends fc{constructor(t,r,n){super(t,r),n&&(this.code=this.errno=n.code,this.erroredSysCall=n.syscall);}};var k1=Symbol.toStringTag,i3=e=>typeof e=="object"&&typeof e.append=="function"&&typeof e.delete=="function"&&typeof e.get=="function"&&typeof e.getAll=="function"&&typeof e.has=="function"&&typeof e.set=="function"&&typeof e.sort=="function"&&e[k1]==="URLSearchParams",rb=e=>e&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.constructor=="function"&&/^(Blob|File)$/.test(e[k1]),bSe=e=>typeof e=="object"&&(e[k1]==="AbortSignal"||e[k1]==="EventTarget"),vSe=(e,t)=>{let r=new URL(t).hostname,n=new URL(e).hostname;return r===n||r.endsWith(`.${n}`)},_Se=(e,t)=>{let r=new URL(t).protocol,n=new URL(e).protocol;return r===n};var zpt=Doe.promisify(xf__default.default.pipeline),ma=Symbol("Body internals"),rl=class{constructor(t,{size:r=0}={}){let n=null;t===null?t=null:i3(t)?t=buffer.Buffer.from(t.toString()):rb(t)||buffer.Buffer.isBuffer(t)||(Doe.types.isAnyArrayBuffer(t)?t=buffer.Buffer.from(t):ArrayBuffer.isView(t)?t=buffer.Buffer.from(t.buffer,t.byteOffset,t.byteLength):t instanceof xf__default.default||(t instanceof chunkO2POOKSN_js.c?(t=chunkO2POOKSN_js.d(t),n=t.type.split("=")[1]):t=buffer.Buffer.from(String(t))));let i=t;buffer.Buffer.isBuffer(t)?i=xf__default.default.Readable.from(t):rb(t)&&(i=xf__default.default.Readable.from(t.stream())),this[ma]={body:t,stream:i,boundary:n,disturbed:!1,error:null},this.size=r,t instanceof xf__default.default&&t.on("error",s=>{let a=s instanceof fc?s:new da(`Invalid response body while trying to fetch ${this.url}: ${s.message}`,"system",s);this[ma].error=a;});}get body(){return this[ma].stream}get bodyUsed(){return this[ma].disturbed}async arrayBuffer(){let{buffer:t,byteOffset:r,byteLength:n}=await s3(this);return t.slice(r,r+n)}async formData(){let t=this.headers.get("content-type");if(t.startsWith("application/x-www-form-urlencoded")){let n=new chunkO2POOKSN_js.c,i=new URLSearchParams(await this.text());for(let[s,a]of i)n.append(s,a);return n}let{toFormData:r}=await import('./multipart-parser-6AKE4G7O.js');return r(this.body,t)}async blob(){let t=this.headers&&this.headers.get("content-type")||this[ma].body&&this[ma].body.type||"",r=await this.arrayBuffer();return new chunkO2POOKSN_js.a([r],{type:t})}async json(){let t=await this.text();return JSON.parse(t)}async text(){let t=await s3(this);return new TextDecoder().decode(t)}buffer(){return s3(this)}};rl.prototype.buffer=Doe.deprecate(rl.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(rl.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:Doe.deprecate(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function s3(e){if(e[ma].disturbed)throw new TypeError(`body used already for: ${e.url}`);if(e[ma].disturbed=!0,e[ma].error)throw e[ma].error;let{body:t}=e;if(t===null)return buffer.Buffer.alloc(0);if(!(t instanceof xf__default.default))return buffer.Buffer.alloc(0);let r=[],n=0;try{for await(let i of t){if(e.size>0&&n+i.length>e.size){let s=new da(`content size at ${e.url} over limit: ${e.size}`,"max-size");throw t.destroy(s),s}n+=i.length,r.push(i);}}catch(i){throw i instanceof fc?i:new da(`Invalid response body while trying to fetch ${e.url}: ${i.message}`,"system",i)}if(t.readableEnded===!0||t._readableState.ended===!0)try{return r.every(i=>typeof i=="string")?buffer.Buffer.from(r.join("")):buffer.Buffer.concat(r,n)}catch(i){throw new da(`Could not create Buffer from response body for ${e.url}: ${i.message}`,"system",i)}else throw new da(`Premature close of server response while trying to fetch ${e.url}`)}var qg=(e,t)=>{let r,n,{body:i}=e[ma];if(e.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof xf__default.default&&typeof i.getBoundary!="function"&&(r=new xf.PassThrough({highWaterMark:t}),n=new xf.PassThrough({highWaterMark:t}),i.pipe(r),i.pipe(n),e[ma].stream=r,i=n),i},Jpt=Doe.deprecate(e=>e.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),F1=(e,t)=>e===null?null:typeof e=="string"?"text/plain;charset=UTF-8":i3(e)?"application/x-www-form-urlencoded;charset=UTF-8":rb(e)?e.type||null:buffer.Buffer.isBuffer(e)||Doe.types.isAnyArrayBuffer(e)||ArrayBuffer.isView(e)?null:e instanceof chunkO2POOKSN_js.c?`multipart/form-data; boundary=${t[ma].boundary}`:e&&typeof e.getBoundary=="function"?`multipart/form-data;boundary=${Jpt(e)}`:e instanceof xf__default.default?null:"text/plain;charset=UTF-8",PSe=e=>{let{body:t}=e[ma];return t===null?0:rb(t)?t.size:buffer.Buffer.isBuffer(t)?t.length:t&&typeof t.getLengthSync=="function"&&t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null},CSe=async(e,{body:t})=>{t===null?e.end():await zpt(t,e);};var B1=typeof j1__namespace.default.validateHeaderName=="function"?j1__namespace.default.validateHeaderName:e=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){let t=new TypeError(`Header name must be a valid HTTP token [${e}]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),t}},o3=typeof j1__namespace.default.validateHeaderValue=="function"?j1__namespace.default.validateHeaderValue:(e,t)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(t)){let r=new TypeError(`Invalid character in header content ["${e}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}},go=class e extends URLSearchParams{constructor(t){let r=[];if(t instanceof e){let n=t.raw();for(let[i,s]of Object.entries(n))r.push(...s.map(a=>[i,a]));}else if(t!=null)if(typeof t=="object"&&!Doe.types.isBoxedPrimitive(t)){let n=t[Symbol.iterator];if(n==null)r.push(...Object.entries(t));else {if(typeof n!="function")throw new TypeError("Header pairs must be iterable");r=[...t].map(i=>{if(typeof i!="object"||Doe.types.isBoxedPrimitive(i))throw new TypeError("Each header pair must be an iterable object");return [...i]}).map(i=>{if(i.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return [...i]});}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return r=r.length>0?r.map(([n,i])=>(B1(n),o3(n,String(i)),[String(n).toLowerCase(),String(i)])):void 0,super(r),new Proxy(this,{get(n,i,s){switch(i){case"append":case"set":return (a,o)=>(B1(a),o3(a,String(o)),URLSearchParams.prototype[i].call(n,String(a).toLowerCase(),String(o)));case"delete":case"has":case"getAll":return a=>(B1(a),URLSearchParams.prototype[i].call(n,String(a).toLowerCase()));case"keys":return ()=>(n.sort(),new Set(URLSearchParams.prototype.keys.call(n)).keys());default:return Reflect.get(n,i,s)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(t){let r=this.getAll(t);if(r.length===0)return null;let n=r.join(", ");return /^content-encoding$/i.test(t)&&(n=n.toLowerCase()),n}forEach(t,r=void 0){for(let n of this.keys())Reflect.apply(t,r,[this.get(n),n,this]);}*values(){for(let t of this.keys())yield this.get(t);}*entries(){for(let t of this.keys())yield [t,this.get(t)];}[Symbol.iterator](){return this.entries()}raw(){return [...this.keys()].reduce((t,r)=>(t[r]=this.getAll(r),t),{})}[Symbol.for("nodejs.util.inspect.custom")](){return [...this.keys()].reduce((t,r)=>{let n=this.getAll(r);return r==="host"?t[r]=n[0]:t[r]=n.length>1?n:n[0],t},{})}};Object.defineProperties(go.prototype,["get","entries","forEach","values"].reduce((e,t)=>(e[t]={enumerable:!0},e),{}));function ISe(e=[]){return new go(e.reduce((t,r,n,i)=>(n%2===0&&t.push(i.slice(n,n+2)),t),[]).filter(([t,r])=>{try{return B1(t),o3(t,String(r)),!0}catch{return !1}}))}var Qpt=new Set([301,302,303,307,308]),U1=e=>Qpt.has(e);var lu=Symbol("Response internals"),So=class e extends rl{constructor(t=null,r={}){super(t,r);let n=r.status!=null?r.status:200,i=new go(r.headers);if(t!==null&&!i.has("Content-Type")){let s=F1(t,this);s&&i.append("Content-Type",s);}this[lu]={type:"default",url:r.url,status:n,statusText:r.statusText||"",headers:i,counter:r.counter,highWaterMark:r.highWaterMark};}get type(){return this[lu].type}get url(){return this[lu].url||""}get status(){return this[lu].status}get ok(){return this[lu].status>=200&&this[lu].status<300}get redirected(){return this[lu].counter>0}get statusText(){return this[lu].statusText}get headers(){return this[lu].headers}get highWaterMark(){return this[lu].highWaterMark}clone(){return new e(qg(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(t,r=302){if(!U1(r))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new e(null,{headers:{location:new URL(t).toString()},status:r})}static error(){let t=new e(null,{status:0,statusText:""});return t[lu].type="error",t}get[Symbol.toStringTag](){return "Response"}};Object.defineProperties(So.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});var OSe=e=>{if(e.search)return e.search;let t=e.href.length-1,r=e.hash||(e.href[t]==="#"?"#":"");return e.href[t-r.length]==="?"?"?":""};function DSe(e,t=!1){return e==null||(e=new URL(e),/^(about|blob|data):$/.test(e.protocol))?"no-referrer":(e.username="",e.password="",e.hash="",t&&(e.pathname="",e.search=""),e)}var NSe=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),RSe="strict-origin-when-cross-origin";function MSe(e){if(!NSe.has(e))throw new TypeError(`Invalid referrerPolicy: ${e}`);return e}function eft(e){if(/^(http|ws)s:$/.test(e.protocol))return !0;let t=e.host.replace(/(^\[)|(]$)/g,""),r=nc.isIP(t);return r===4&&/^127\./.test(t)||r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(t)?!0:e.host==="localhost"||e.host.endsWith(".localhost")?!1:e.protocol==="file:"}function Vg(e){return /^about:(blank|srcdoc)$/.test(e)||e.protocol==="data:"||/^(blob|filesystem):$/.test(e.protocol)?!0:eft(e)}function LSe(e,{referrerURLCallback:t,referrerOriginCallback:r}={}){if(e.referrer==="no-referrer"||e.referrerPolicy==="")return null;let n=e.referrerPolicy;if(e.referrer==="about:client")return "no-referrer";let i=e.referrer,s=DSe(i),a=DSe(i,!0);s.toString().length>4096&&(s=a),t&&(s=t(s)),r&&(a=r(a));let o=new URL(e.url);switch(n){case"no-referrer":return "no-referrer";case"origin":return a;case"unsafe-url":return s;case"strict-origin":return Vg(s)&&!Vg(o)?"no-referrer":a.toString();case"strict-origin-when-cross-origin":return s.origin===o.origin?s:Vg(s)&&!Vg(o)?"no-referrer":a;case"same-origin":return s.origin===o.origin?s:"no-referrer";case"origin-when-cross-origin":return s.origin===o.origin?s:a;case"no-referrer-when-downgrade":return Vg(s)&&!Vg(o)?"no-referrer":s;default:throw new TypeError(`Invalid referrerPolicy: ${n}`)}}function kSe(e){let t=(e.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let n of t)n&&NSe.has(n)&&(r=n);return r}var Fi=Symbol("Request internals"),nb=e=>typeof e=="object"&&typeof e[Fi]=="object",nft=Doe.deprecate(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),pd=class e extends rl{constructor(t,r={}){let n;if(nb(t)?n=new URL(t.url):(n=new URL(t),t={}),n.username!==""||n.password!=="")throw new TypeError(`${n} is an url with embedded credentials.`);let i=r.method||t.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(i)&&(i=i.toUpperCase()),!nb(r)&&"data"in r&&nft(),(r.body!=null||nb(t)&&t.body!==null)&&(i==="GET"||i==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let s=r.body?r.body:nb(t)&&t.body!==null?qg(t):null;super(s,{size:r.size||t.size||0});let a=new go(r.headers||t.headers||{});if(s!==null&&!a.has("Content-Type")){let l=F1(s,this);l&&a.set("Content-Type",l);}let o=nb(t)?t.signal:null;if("signal"in r&&(o=r.signal),o!=null&&!bSe(o))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let u=r.referrer==null?t.referrer:r.referrer;if(u==="")u="no-referrer";else if(u){let l=new URL(u);u=/^about:(\/\/)?client$/.test(l)?"client":l;}else u=void 0;this[Fi]={method:i,redirect:r.redirect||t.redirect||"follow",headers:a,parsedURL:n,signal:o,referrer:u},this.follow=r.follow===void 0?t.follow===void 0?20:t.follow:r.follow,this.compress=r.compress===void 0?t.compress===void 0?!0:t.compress:r.compress,this.counter=r.counter||t.counter||0,this.agent=r.agent||t.agent,this.highWaterMark=r.highWaterMark||t.highWaterMark||16384,this.insecureHTTPParser=r.insecureHTTPParser||t.insecureHTTPParser||!1,this.referrerPolicy=r.referrerPolicy||t.referrerPolicy||"";}get method(){return this[Fi].method}get url(){return url.format(this[Fi].parsedURL)}get headers(){return this[Fi].headers}get redirect(){return this[Fi].redirect}get signal(){return this[Fi].signal}get referrer(){if(this[Fi].referrer==="no-referrer")return "";if(this[Fi].referrer==="client")return "about:client";if(this[Fi].referrer)return this[Fi].referrer.toString()}get referrerPolicy(){return this[Fi].referrerPolicy}set referrerPolicy(t){this[Fi].referrerPolicy=MSe(t);}clone(){return new e(this)}get[Symbol.toStringTag](){return "Request"}};Object.defineProperties(pd.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var FSe=e=>{let{parsedURL:t}=e[Fi],r=new go(e[Fi].headers);r.has("Accept")||r.set("Accept","*/*");let n=null;if(e.body===null&&/^(post|put)$/i.test(e.method)&&(n="0"),e.body!==null){let o=PSe(e);typeof o=="number"&&!Number.isNaN(o)&&(n=String(o));}n&&r.set("Content-Length",n),e.referrerPolicy===""&&(e.referrerPolicy=RSe),e.referrer&&e.referrer!=="no-referrer"?e[Fi].referrer=LSe(e):e[Fi].referrer="no-referrer",e[Fi].referrer instanceof URL&&r.set("Referer",e.referrer),r.has("User-Agent")||r.set("User-Agent","node-fetch"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip, deflate, br");let{agent:i}=e;typeof i=="function"&&(i=i(t)),!r.has("Connection")&&!i&&r.set("Connection","close");let s=OSe(t),a={path:t.pathname+s,method:e.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:e.insecureHTTPParser,agent:i};return {parsedURL:t,options:a}};var q1=class extends fc{constructor(t,r="aborted"){super(t,r);}};var aft=new Set(["data:","http:","https:"]);async function H1(e,t){return new Promise((r,n)=>{let i=new pd(e,t),{parsedURL:s,options:a}=FSe(i);if(!aft.has(s.protocol))throw new TypeError(`node-fetch cannot load ${e}. URL scheme "${s.protocol.replace(/:$/,"")}" is not supported.`);if(s.protocol==="data:"){let d=ESe(i.url),m=new So(d,{headers:{"Content-Type":d.typeFull}});r(m);return}let o=(s.protocol==="https:"?Rot__namespace.default:j1__namespace.default).request,{signal:u}=i,l=null,c=()=>{let d=new q1("The operation was aborted.");n(d),i.body&&i.body instanceof xf__default.default.Readable&&i.body.destroy(d),!(!l||!l.body)&&l.body.emit("error",d);};if(u&&u.aborted){c();return}let p=()=>{c(),f();},h=o(s.toString(),a);u&&u.addEventListener("abort",p);let f=()=>{h.abort(),u&&u.removeEventListener("abort",p);};h.on("error",d=>{n(new da(`request to ${i.url} failed, reason: ${d.message}`,"system",d)),f();}),oft(h,d=>{l&&l.body&&l.body.destroy(d);}),process.version<"v14"&&h.on("socket",d=>{let m;d.prependListener("end",()=>{m=d._eventsCount;}),d.prependListener("close",y=>{if(l&&m<d._eventsCount&&!y){let g=new Error("Premature close");g.code="ERR_STREAM_PREMATURE_CLOSE",l.body.emit("error",g);}});}),h.on("response",d=>{h.setTimeout(0);let m=ISe(d.rawHeaders);if(U1(d.statusCode)){let S=m.get("Location"),x=null;try{x=S===null?null:new URL(S,i.url);}catch{if(i.redirect!=="manual"){n(new da(`uri requested responds with an invalid redirect URL: ${S}`,"invalid-redirect")),f();return}}switch(i.redirect){case"error":n(new da(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),f();return;case"manual":break;case"follow":{if(x===null)break;if(i.counter>=i.follow){n(new da(`maximum redirect reached at: ${i.url}`,"max-redirect")),f();return}let b={headers:new go(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:qg(i),signal:i.signal,size:i.size,referrer:i.referrer,referrerPolicy:i.referrerPolicy};if(!vSe(i.url,x)||!_Se(i.url,x))for(let D of ["authorization","www-authenticate","cookie","cookie2"])b.headers.delete(D);if(d.statusCode!==303&&i.body&&t.body instanceof xf__default.default.Readable){n(new da("Cannot follow redirect with body being a readable stream","unsupported-redirect")),f();return}(d.statusCode===303||(d.statusCode===301||d.statusCode===302)&&i.method==="POST")&&(b.method="GET",b.body=void 0,b.headers.delete("content-length"));let A=kSe(m);A&&(b.referrerPolicy=A),r(H1(new pd(x,b))),f();return}default:return n(new TypeError(`Redirect option '${i.redirect}' is not a valid value of RequestRedirect`))}}u&&d.once("end",()=>{u.removeEventListener("abort",p);});let y=xf.pipeline(d,new xf.PassThrough,S=>{S&&n(S);});process.version<"v12.10"&&d.on("aborted",p);let g={url:i.url,status:d.statusCode,statusText:d.statusMessage,headers:m,size:i.size,counter:i.counter,highWaterMark:i.highWaterMark},v=m.get("Content-Encoding");if(!i.compress||i.method==="HEAD"||v===null||d.statusCode===204||d.statusCode===304){l=new So(y,g),r(l);return}let E={flush:Hg__default.default.Z_SYNC_FLUSH,finishFlush:Hg__default.default.Z_SYNC_FLUSH};if(v==="gzip"||v==="x-gzip"){y=xf.pipeline(y,Hg__default.default.createGunzip(E),S=>{S&&n(S);}),l=new So(y,g),r(l);return}if(v==="deflate"||v==="x-deflate"){let S=xf.pipeline(d,new xf.PassThrough,x=>{x&&n(x);});S.once("data",x=>{(x[0]&15)===8?y=xf.pipeline(y,Hg__default.default.createInflate(),b=>{b&&n(b);}):y=xf.pipeline(y,Hg__default.default.createInflateRaw(),b=>{b&&n(b);}),l=new So(y,g),r(l);}),S.once("end",()=>{l||(l=new So(y,g),r(l));});return}if(v==="br"){y=xf.pipeline(y,Hg__default.default.createBrotliDecompress(),S=>{S&&n(S);}),l=new So(y,g),r(l);return}l=new So(y,g),r(l);}),CSe(h,i).catch(n);})}function oft(e,t){let r=buffer.Buffer.from(`0\r
\r
`),n=!1,i=!1,s;e.on("response",a=>{let{headers:o}=a;n=o["transfer-encoding"]==="chunked"&&!o["content-length"];}),e.on("socket",a=>{let o=()=>{if(n&&!i){let l=new Error("Premature close");l.code="ERR_STREAM_PREMATURE_CLOSE",t(l);}},u=l=>{i=buffer.Buffer.compare(l.slice(-5),r)===0,!i&&s&&(i=buffer.Buffer.compare(s.slice(-3),r.slice(0,3))===0&&buffer.Buffer.compare(l.slice(-2),r.slice(3))===0),s=l;};a.prependListener("close",o),a.on("data",u),e.on("close",()=>{a.removeListener("close",o),a.removeListener("data",u);});});}var u3=class extends Rot.Agent{constructor(t={}){super({...t,lookup(r,n,i){PTe__default.default.resolve(r,(s,a)=>i(s,a==null?void 0:a[0],4));}});}},cft=()=>new u3,l3=cft;var _Te=chunkTKGT252T_js.e(QSe()),xTe=chunkTKGT252T_js.e(vTe());var m3={},Xft=({env:e,log:t},r,n)=>{let i=e.HTTPS_PROXY||e.HTTP_PROXY;if(!i||(0, xTe.default)(r))return;t.debug({url:r,proxy:i,options:n},"Using proxy agent");let s=new url.URL(r).host;return m3[s]||(m3[s]=new _Te.HttpsProxyAgent(i,n)),m3[s]},ATe=Xft;var y3=class e extends Error{constructor(r,n,...i){super(...i);Error.captureStackTrace&&Error.captureStackTrace(this,e),this.response=r,this.message=n||`HTTPClient failed to fetch ${r.url}, got ${r.status}/${r.statusText}`;}},fd=class{constructor({env:t,log:r},{headers:n={},retries:i=0}={}){if(!r)throw new Error("Missing required option in HTTPClient: log");this.env=t,this.log=r,this.headers=n,this.retries=i;}async fetch(t,r={},n={}){let i=r.agent||ATe({env:this.env,log:this.log},t,n.proxy);this.env.CHROMATIC_DNS_SERVERS.length>0&&(this.log.debug(`Using custom DNS servers: ${this.env.CHROMATIC_DNS_SERVERS.join(", ")}`),PTe__default.default.setServers(this.env.CHROMATIC_DNS_SERVERS),i=l3());let s=n.retries===void 0?this.retries:n.retries;return (0, CTe.default)(async()=>{let o={...this.headers,...r.headers},u=await H1(t,{...r,agent:i,headers:o});if(!u.ok){let l=new y3(u);if(!n.noLogErrorBody){let c=await u.text();this.log.debug(l.message),this.log.debug(c);}throw l}return u},{retries:s,onRetry:(o,u)=>{var l;this.log.debug({url:t,err:o},`Fetch failed; retrying ${u}/${s}`),(o.message.includes("ENOTFOUND")||[o.code,(l=o.cause)==null?void 0:l.code].includes("ENOTFOUND"))&&(i?this.env.CHROMATIC_DNS_FAILOVER_SERVERS.length>0&&(this.log.warn("Fetch failed due to DNS lookup; switching to failover DNS servers"),PTe__default.default.setServers(this.env.CHROMATIC_DNS_FAILOVER_SERVERS)):(this.log.warn("Fetch failed due to DNS lookup; switching to custom DNS resolver"),i=l3()));}})}async fetchBuffer(t,r){return (await this.fetch(t,r)).buffer()}};var zft="RETRYABLE_ERROR_CODE",ab=class{constructor(t,r,n){if(!r)throw new Error("Option `endpoint` required.");this.endpoint=r,this.client=new fd(t,n),this.headers={"Content-Type":"application/json"};}setAuthorization(t){this.headers.Authorization=`Bearer ${t}`;}async runQuery(t,r,{endpoint:n=this.endpoint,headers:i={},retries:s=2}={}){return (0, wTe.default)(async a=>{let{data:o,errors:u}=await this.client.fetch(n,{body:JSON.stringify({query:t,variables:r}),headers:{...this.headers,...i},method:"post"},{retries:s}).then(l=>l.json()).catch(a);if(!u)return o;if(!Array.isArray(u))return a(u);this.client.log.debug({errors:u},"GraphQL errors");for(let l of u){if(l.extensions&&l.extensions.code===zft)throw l;l.name=l.name||"GraphQLError",l.at=`${l.path.join(".")} ${l.locations.map(c=>`${c.line}:${c.column}`).join(", ")}`;}return a(u.length===1?u[0]:u)},{retries:s})}};var fb=chunkTKGT252T_js.e(chunkHZVCNUTP_js.a()),e0e=chunkTKGT252T_js.e(ow());var zEe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),JEe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var QEe=(e,t,r=!1)=>{let n=r?"yarn upgrade chromatic --latest":"npm install chromatic@latest --save-dev";return (0, JEe.dedent)(zEe.default`
${chunkF6FLWRPJ_js.G} {bold Using outdated package}
You are using an outdated version of the Chromatic CLI (v${e.pkg.version}).
A new major version is available (v${t}).
Run {bold ${n}} to upgrade.
`)};var ZEe=chunkTKGT252T_js.e(ow());function X3(e,t={}){return new Promise((r,n)=>{var o,u;let i="",s="",a=(0, ZEe.spawn)(e,t);(o=a.stdout)==null||o.on("data",l=>{i+=l;}),(u=a.stderr)==null||u.on("data",l=>{s+=l;}),a.on("error",n),a.on("close",l=>{l===0?r(i.trim()):n(new Error(s));});})}var ydt=e=>new Promise((t,r)=>setTimeout(r,e)),gdt=(e,t)=>Promise.race([e,ydt(t)]);async function z3(e){if(e.options.skipUpdateCheck===!0){e.log.info("Skipping update check");return}if(!fb.default.valid(e.pkg.version)){e.log.warn(`Invalid semver version in package.json: ${e.pkg.version}`);return}let t;try{let r=await X3(["config","get","registry"]).catch(()=>"https://registry.npmjs.org/");["https://registry.npmjs.org/","https://registry.yarnpkg.com"].includes(r)||e.log.info(`Using custom npm registry: ${r}`);let n=new URL(e.pkg.name,r).href,i=await gdt(e.http.fetch(n),5e3),{"dist-tags":s={}}=await i.json();if(!fb.default.valid(s.latest)){e.log.warn("Invalid dist-tag 'latest' returned from registry; skipping update check");return}t=s.latest;}catch(r){Sdt(r)&&ps(r),e.log.warn("Could not retrieve package info from registry; skipping update check"),e.log.warn(r);return}fb.default.major(e.pkg.version)<fb.default.major(t)&&e.log.warn(QEe(e,t,(0, e0e.hasYarn)()));}function Sdt(e){let t=e instanceof TypeError&&e.message.includes("Invalid URL"),r=e.message.includes("HTTPClient failed to fetch");return !(t||r)}var d0e=chunkTKGT252T_js.e(chunkLTE3MQL2_js.d()),m0e=chunkTKGT252T_js.e(s0e());var a0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),o0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var u0e=e=>(0, o0e.dedent)(a0e.default`
${chunkF6FLWRPJ_js.F} {bold Added script '${e}' to package.json}
You can now run it here or in CI with 'npm run ${e}' or 'yarn ${e}'.
${chunkF6FLWRPJ_js.E} Your project token was added to the script via the {bold --project-token} flag.
If you're running Chromatic via continuous integration, we recommend setting
the {bold CHROMATIC_PROJECT_TOKEN} environment variable in your CI environment.
You can then remove the {bold --project-token} from your package.json script.
`);var l0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Q3=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var c0e=(e,t)=>{let r=Q3.dedent`
"scripts": {
"${e}": "${t}"
}
`;return (0, Q3.dedent)(l0e.default`
${chunkF6FLWRPJ_js.E} No problem. You can add it to your package.json yourself like so:
{dim ${r}}
`)};var p0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),f0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var h0e=e=>(0, f0e.dedent)(p0e.default`
${chunkF6FLWRPJ_js.G} {bold No '${e}' script found in your package.json}
Would you like me to add it for you? [y/N]
`);var{writeFile:xdt}=d0e.default,iS="chromatic",Adt=e=>e[iS]||Object.values(e).find(t=>t.startsWith(iS));async function Z3(e){let{log:t,options:r,packageJson:n,packagePath:i}=e;if(r.interactive)try{let{readme:s,_id:a,...o}=n;if(o.scripts||(o.scripts={}),Adt(o.scripts))return;let u=`npx chromatic ${r.originalArgv.join(" ")}`;t.info(""),await(0,m0e.confirm)(h0e(iS))?(o.scripts[iS]=u,await xdt(i,o,{spaces:2}),t.info(""),t.info(u0e(iS))):(t.info(""),t.info(c0e(iS,u)));}catch(s){t.warn(s);}}function En(e){return e.playwright||e.cypress}function gd(e){return crypto.createHash("md5").update(e.trim().toLowerCase()).digest("hex")}var Cdt=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,wdt=/[\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\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\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\u09FC\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\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\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-\u1884\u1887-\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\u1C80-\u1C88\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\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\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\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[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDD00-\uDD43]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Idt=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\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\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\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\u09FC\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-\u0AFF\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\u0C80-\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\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\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\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-\u19D9\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\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\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\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\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\uDE3E\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[\uDC00-\uDC4A\uDC50-\uDC59\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\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,ej={Space_Separator:Cdt,ID_Start:wdt,ID_Continue:Idt},li={isSpaceSeparator(e){return typeof e=="string"&&ej.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||ej.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||ej.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},rj,Ms,mc,cw,Cf,cu,Bi,sj,db,Odt=function(t,r){rj=String(t),Ms="start",mc=[],cw=0,Cf=1,cu=0,Bi=void 0,sj=void 0,db=void 0;do Bi=Ddt(),Mdt[Ms]();while(Bi.type!=="eof");return typeof r=="function"?nj({"":db},"",r):db};function nj(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),a=nj(n,s,r);a===void 0?delete n[s]:Object.defineProperty(n,s,{value:a,writable:!0,enumerable:!0,configurable:!0});}else for(let i in n){let s=nj(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0});}return r.call(e,t,n)}var zt,Vt,hb,dc,mr;function Ddt(){for(zt="default",Vt="",hb=!1,dc=1;;){mr=yc();let e=g0e[zt]();if(e)return e}}function yc(){if(rj[cw])return String.fromCodePoint(rj.codePointAt(cw))}function ye(){let e=yc();return e===`
`?(Cf++,cu=0):e?cu+=e.length:cu++,e&&(cw+=e.length),e}var g0e={default(){switch(mr){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
`:case"\r":case"\u2028":case"\u2029":ye();return;case"/":ye(),zt="comment";return;case void 0:return ye(),An("eof")}if(li.isSpaceSeparator(mr)){ye();return}return g0e[Ms]()},comment(){switch(mr){case"*":ye(),zt="multiLineComment";return;case"/":ye(),zt="singleLineComment";return}throw Pn(ye())},multiLineComment(){switch(mr){case"*":ye(),zt="multiLineCommentAsterisk";return;case void 0:throw Pn(ye())}ye();},multiLineCommentAsterisk(){switch(mr){case"*":ye();return;case"/":ye(),zt="default";return;case void 0:throw Pn(ye())}ye(),zt="multiLineComment";},singleLineComment(){switch(mr){case`
`:case"\r":case"\u2028":case"\u2029":ye(),zt="default";return;case void 0:return ye(),An("eof")}ye();},value(){switch(mr){case"{":case"[":return An("punctuator",ye());case"n":return ye(),Sd("ull"),An("null",null);case"t":return ye(),Sd("rue"),An("boolean",!0);case"f":return ye(),Sd("alse"),An("boolean",!1);case"-":case"+":ye()==="-"&&(dc=-1),zt="sign";return;case".":Vt=ye(),zt="decimalPointLeading";return;case"0":Vt=ye(),zt="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Vt=ye(),zt="decimalInteger";return;case"I":return ye(),Sd("nfinity"),An("numeric",1/0);case"N":return ye(),Sd("aN"),An("numeric",NaN);case'"':case"'":hb=ye()==='"',Vt="",zt="string";return}throw Pn(ye())},identifierNameStartEscape(){if(mr!=="u")throw Pn(ye());ye();let e=ij();switch(e){case"$":case"_":break;default:if(!li.isIdStartChar(e))throw y0e();break}Vt+=e,zt="identifierName";},identifierName(){switch(mr){case"$":case"_":case"\u200C":case"\u200D":Vt+=ye();return;case"\\":ye(),zt="identifierNameEscape";return}if(li.isIdContinueChar(mr)){Vt+=ye();return}return An("identifier",Vt)},identifierNameEscape(){if(mr!=="u")throw Pn(ye());ye();let e=ij();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!li.isIdContinueChar(e))throw y0e();break}Vt+=e,zt="identifierName";},sign(){switch(mr){case".":Vt=ye(),zt="decimalPointLeading";return;case"0":Vt=ye(),zt="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Vt=ye(),zt="decimalInteger";return;case"I":return ye(),Sd("nfinity"),An("numeric",dc*(1/0));case"N":return ye(),Sd("aN"),An("numeric",NaN)}throw Pn(ye())},zero(){switch(mr){case".":Vt+=ye(),zt="decimalPoint";return;case"e":case"E":Vt+=ye(),zt="decimalExponent";return;case"x":case"X":Vt+=ye(),zt="hexadecimal";return}return An("numeric",dc*0)},decimalInteger(){switch(mr){case".":Vt+=ye(),zt="decimalPoint";return;case"e":case"E":Vt+=ye(),zt="decimalExponent";return}if(li.isDigit(mr)){Vt+=ye();return}return An("numeric",dc*Number(Vt))},decimalPointLeading(){if(li.isDigit(mr)){Vt+=ye(),zt="decimalFraction";return}throw Pn(ye())},decimalPoint(){switch(mr){case"e":case"E":Vt+=ye(),zt="decimalExponent";return}if(li.isDigit(mr)){Vt+=ye(),zt="decimalFraction";return}return An("numeric",dc*Number(Vt))},decimalFraction(){switch(mr){case"e":case"E":Vt+=ye(),zt="decimalExponent";return}if(li.isDigit(mr)){Vt+=ye();return}return An("numeric",dc*Number(Vt))},decimalExponent(){switch(mr){case"+":case"-":Vt+=ye(),zt="decimalExponentSign";return}if(li.isDigit(mr)){Vt+=ye(),zt="decimalExponentInteger";return}throw Pn(ye())},decimalExponentSign(){if(li.isDigit(mr)){Vt+=ye(),zt="decimalExponentInteger";return}throw Pn(ye())},decimalExponentInteger(){if(li.isDigit(mr)){Vt+=ye();return}return An("numeric",dc*Number(Vt))},hexadecimal(){if(li.isHexDigit(mr)){Vt+=ye(),zt="hexadecimalInteger";return}throw Pn(ye())},hexadecimalInteger(){if(li.isHexDigit(mr)){Vt+=ye();return}return An("numeric",dc*Number(Vt))},string(){switch(mr){case"\\":ye(),Vt+=Ndt();return;case'"':if(hb)return ye(),An("string",Vt);Vt+=ye();return;case"'":if(!hb)return ye(),An("string",Vt);Vt+=ye();return;case`
`:case"\r":throw Pn(ye());case"\u2028":case"\u2029":Ldt(mr);break;case void 0:throw Pn(ye())}Vt+=ye();},start(){switch(mr){case"{":case"[":return An("punctuator",ye())}zt="value";},beforePropertyName(){switch(mr){case"$":case"_":Vt=ye(),zt="identifierName";return;case"\\":ye(),zt="identifierNameStartEscape";return;case"}":return An("punctuator",ye());case'"':case"'":hb=ye()==='"',zt="string";return}if(li.isIdStartChar(mr)){Vt+=ye(),zt="identifierName";return}throw Pn(ye())},afterPropertyName(){if(mr===":")return An("punctuator",ye());throw Pn(ye())},beforePropertyValue(){zt="value";},afterPropertyValue(){switch(mr){case",":case"}":return An("punctuator",ye())}throw Pn(ye())},beforeArrayValue(){if(mr==="]")return An("punctuator",ye());zt="value";},afterArrayValue(){switch(mr){case",":case"]":return An("punctuator",ye())}throw Pn(ye())},end(){throw Pn(ye())}};function An(e,t){return {type:e,value:t,line:Cf,column:cu}}function Sd(e){for(let t of e){if(yc()!==t)throw Pn(ye());ye();}}function Ndt(){switch(yc()){case"b":return ye(),"\b";case"f":return ye(),"\f";case"n":return ye(),`
`;case"r":return ye(),"\r";case"t":return ye()," ";case"v":return ye(),"\v";case"0":if(ye(),li.isDigit(yc()))throw Pn(ye());return "\0";case"x":return ye(),Rdt();case"u":return ye(),ij();case`
`:case"\u2028":case"\u2029":return ye(),"";case"\r":return ye(),yc()===`
`&&ye(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Pn(ye());case void 0:throw Pn(ye())}return ye()}function Rdt(){let e="",t=yc();if(!li.isHexDigit(t)||(e+=ye(),t=yc(),!li.isHexDigit(t)))throw Pn(ye());return e+=ye(),String.fromCodePoint(parseInt(e,16))}function ij(){let e="",t=4;for(;t-- >0;){let r=yc();if(!li.isHexDigit(r))throw Pn(ye());e+=ye();}return String.fromCodePoint(parseInt(e,16))}var Mdt={start(){if(Bi.type==="eof")throw Td();tj();},beforePropertyName(){switch(Bi.type){case"identifier":case"string":sj=Bi.value,Ms="afterPropertyName";return;case"punctuator":lw();return;case"eof":throw Td()}},afterPropertyName(){if(Bi.type==="eof")throw Td();Ms="beforePropertyValue";},beforePropertyValue(){if(Bi.type==="eof")throw Td();tj();},beforeArrayValue(){if(Bi.type==="eof")throw Td();if(Bi.type==="punctuator"&&Bi.value==="]"){lw();return}tj();},afterPropertyValue(){if(Bi.type==="eof")throw Td();switch(Bi.value){case",":Ms="beforePropertyName";return;case"}":lw();}},afterArrayValue(){if(Bi.type==="eof")throw Td();switch(Bi.value){case",":Ms="beforeArrayValue";return;case"]":lw();}},end(){}};function tj(){let e;switch(Bi.type){case"punctuator":switch(Bi.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Bi.value;break}if(db===void 0)db=e;else {let t=mc[mc.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,sj,{value:e,writable:!0,enumerable:!0,configurable:!0});}if(e!==null&&typeof e=="object")mc.push(e),Array.isArray(e)?Ms="beforeArrayValue":Ms="beforePropertyName";else {let t=mc[mc.length-1];t==null?Ms="end":Array.isArray(t)?Ms="afterArrayValue":Ms="afterPropertyValue";}}function lw(){mc.pop();let e=mc[mc.length-1];e==null?Ms="end":Array.isArray(e)?Ms="afterArrayValue":Ms="afterPropertyValue";}function Pn(e){return pw(e===void 0?`JSON5: invalid end of input at ${Cf}:${cu}`:`JSON5: invalid character '${S0e(e)}' at ${Cf}:${cu}`)}function Td(){return pw(`JSON5: invalid end of input at ${Cf}:${cu}`)}function y0e(){return cu-=5,pw(`JSON5: invalid identifier character at ${Cf}:${cu}`)}function Ldt(e){console.warn(`JSON5: '${S0e(e)}' in strings is not valid ECMAScript; consider escaping`);}function S0e(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return "\\x"+("00"+r).substring(r.length)}return e}function pw(e){let t=new SyntaxError(e);return t.lineNumber=Cf,t.columnNumber=cu,t}var kdt=function(t,r,n){let i=[],s="",a,o,u="",l;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,l=r.quote,r=r.replacer),typeof r=="function")o=r;else if(Array.isArray(r)){a=[];for(let m of r){let y;typeof m=="string"?y=m:(typeof m=="number"||m instanceof String||m instanceof Number)&&(y=String(m)),y!==void 0&&a.indexOf(y)<0&&a.push(y);}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),u=" ".substr(0,n)):typeof n=="string"&&(u=n.substr(0,10)),c("",{"":t});function c(m,y){let g=y[m];switch(g!=null&&(typeof g.toJSON5=="function"?g=g.toJSON5(m):typeof g.toJSON=="function"&&(g=g.toJSON(m))),o&&(g=o.call(y,m,g)),g instanceof Number?g=Number(g):g instanceof String?g=String(g):g instanceof Boolean&&(g=g.valueOf()),g){case null:return "null";case!0:return "true";case!1:return "false"}if(typeof g=="string")return p(g);if(typeof g=="number")return String(g);if(typeof g=="object")return Array.isArray(g)?d(g):h(g)}function p(m){let y={"'":.1,'"':.2},g={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},v="";for(let S=0;S<m.length;S++){let x=m[S];switch(x){case"'":case'"':y[x]++,v+=x;continue;case"\0":if(li.isDigit(m[S+1])){v+="\\x00";continue}}if(g[x]){v+=g[x];continue}if(x<" "){let b=x.charCodeAt(0).toString(16);v+="\\x"+("00"+b).substring(b.length);continue}v+=x;}let E=l||Object.keys(y).reduce((S,x)=>y[S]<y[x]?S:x);return v=v.replace(new RegExp(E,"g"),g[E]),E+v+E}function h(m){if(i.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");i.push(m);let y=s;s=s+u;let g=a||Object.keys(m),v=[];for(let S of g){let x=c(S,m);if(x!==void 0){let b=f(S)+":";u!==""&&(b+=" "),b+=x,v.push(b);}}let E;if(v.length===0)E="{}";else {let S;if(u==="")S=v.join(","),E="{"+S+"}";else {let x=`,
`+s;S=v.join(x),E=`{
`+s+S+`,
`+y+"}";}}return i.pop(),s=y,E}function f(m){if(m.length===0)return p(m);let y=String.fromCodePoint(m.codePointAt(0));if(!li.isIdStartChar(y))return p(m);for(let g=y.length;g<m.length;g++)if(!li.isIdContinueChar(String.fromCodePoint(m.codePointAt(g))))return p(m);return m}function d(m){if(i.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");i.push(m);let y=s;s=s+u;let g=[];for(let E=0;E<m.length;E++){let S=c(String(E),m);g.push(S!==void 0?S:"null");}let v;if(g.length===0)v="[]";else if(u==="")v="["+g.join(",")+"]";else {let E=`,
`+s,S=g.join(E);v=`[
`+s+S+`,
`+y+"]";}return i.pop(),s=y,v}},Fdt={parse:Odt,stringify:kdt},Bdt=Fdt,T0e=Bdt;var Cr;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{let s={};for(let a of i)s[a]=a;return s},e.getValidEnumValues=i=>{let s=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),a={};for(let o of s)a[o]=i[o];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s},e.find=(i,s)=>{for(let a of i)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}e.joinValues=n,e.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s;})(Cr||(Cr={}));var oj;(function(e){e.mergeShapes=(t,r)=>({...t,...r});})(oj||(oj={}));var We=Cr.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wf=e=>{switch(typeof e){case"undefined":return We.undefined;case"string":return We.string;case"number":return isNaN(e)?We.nan:We.number;case"boolean":return We.boolean;case"function":return We.function;case"bigint":return We.bigint;case"symbol":return We.symbol;case"object":return Array.isArray(e)?We.array:e===null?We.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?We.promise:typeof Map<"u"&&e instanceof Map?We.map:typeof Set<"u"&&e instanceof Set?We.set:typeof Date<"u"&&e instanceof Date?We.date:We.object;default:return We.unknown}},we=Cr.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),jdt=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Ls=class e extends Error{constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n];},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n];};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t;}get errors(){return this.issues}format(t){let r=t||function(s){return s.message},n={_errors:[]},i=s=>{for(let a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)n._errors.push(r(a));else {let o=n,u=0;for(;u<a.path.length;){let l=a.path[u];u===a.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(r(a))):o[l]=o[l]||{_errors:[]},o=o[l],u++;}}};return i(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Cr.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return {formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Ls.create=e=>new Ls(e);var oS=(e,t)=>{let r;switch(e.code){case we.invalid_type:e.received===We.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case we.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Cr.jsonStringifyReplacer)}`;break;case we.unrecognized_keys:r=`Unrecognized key(s) in object: ${Cr.joinValues(e.keys,", ")}`;break;case we.invalid_union:r="Invalid input";break;case we.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Cr.joinValues(e.options)}`;break;case we.invalid_enum_value:r=`Invalid enum value. Expected ${Cr.joinValues(e.options)}, received '${e.received}'`;break;case we.invalid_arguments:r="Invalid function arguments";break;case we.invalid_return_type:r="Invalid function return type";break;case we.invalid_date:r="Invalid date";break;case we.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Cr.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case we.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case we.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case we.custom:r="Invalid input";break;case we.invalid_intersection_types:r="Intersection results could not be merged";break;case we.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case we.not_finite:r="Number must be finite";break;default:r=t.defaultError,Cr.assertNever(e);}return {message:r}},v0e=oS;function Udt(e){v0e=e;}function fw(){return v0e}var hw=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,s=[...r,...i.path||[]],a={...i,path:s};if(i.message!==void 0)return {...i,path:s,message:i.message};let o="",u=n.filter(l=>!!l).slice().reverse();for(let l of u)o=l(a,{data:t,defaultError:o}).message;return {...i,path:s,message:o}},qdt=[];function He(e,t){let r=fw(),n=hw({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===oS?void 0:oS].filter(i=>!!i)});e.common.issues.push(n);}var ys=class e{constructor(){this.value="valid";}dirty(){this.value==="valid"&&(this.value="dirty");}abort(){this.value!=="aborted"&&(this.value="aborted");}static mergeArray(t,r){let n=[];for(let i of r){if(i.status==="aborted")return Dt;i.status==="dirty"&&t.dirty(),n.push(i.value);}return {status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let i of r){let s=await i.key,a=await i.value;n.push({key:s,value:a});}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let i of r){let{key:s,value:a}=i;if(s.status==="aborted"||a.status==="aborted")return Dt;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(n[s.value]=a.value);}return {status:t.value,value:n}}},Dt=Object.freeze({status:"aborted"}),aS=e=>({status:"dirty",value:e}),ks=e=>({status:"valid",value:e}),uj=e=>e.status==="aborted",lj=e=>e.status==="dirty",gb=e=>e.status==="valid",Sb=e=>typeof Promise<"u"&&e instanceof Promise;function dw(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function _0e(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}var mt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message;})(mt||(mt={}));var mb,yb,vo=class{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i;}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},E0e=(e,t)=>{if(gb(t))return {success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return {success:!1,get error(){if(this._error)return this._error;let r=new Ls(e.common.issues);return this._error=r,this._error}}};function Gt(e){if(!e)return {};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,o)=>{var u,l;let{message:c}=e;return a.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:(u=c??n)!==null&&u!==void 0?u:o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:(l=c??r)!==null&&l!==void 0?l:o.defaultError}},description:i}}var $t=class{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this);}get description(){return this._def.description}_getType(t){return wf(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:wf(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return {status:new ys,ctx:{common:t.parent.common,data:t.data,parsedType:wf(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Sb(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wf(t)},s=this._parseSync({data:t,path:i.path,parent:i});return E0e(i,s)}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wf(t)},i=this._parse({data:t,path:n.path,parent:n}),s=await(Sb(i)?i:Promise.resolve(i));return E0e(n,s)}refine(t,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let a=t(i),o=()=>s.addIssue({code:we.custom,...n(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(u=>u?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new ja({schema:this,typeName:wt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return bo.create(this,this._def)}nullable(){return ul.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tc.create(this,this._def)}promise(){return Df.create(this,this._def)}or(t){return Pd.create([this,t],this._def)}and(t){return Cd.create(this,t,this._def)}transform(t){return new ja({...Gt(this._def),schema:this,typeName:wt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Nd({...Gt(this._def),innerType:this,defaultValue:r,typeName:wt.ZodDefault})}brand(){return new Tb({typeName:wt.ZodBranded,type:this,...Gt(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new Rd({...Gt(this._def),innerType:this,catchValue:r,typeName:wt.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Eb.create(this,t)}readonly(){return Md.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Vdt=/^c[^\s-]{8,}$/i,Hdt=/^[0-9a-z]+$/,Gdt=/^[0-9A-HJKMNP-TV-Z]{26}$/,$dt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Kdt=/^[a-z0-9_-]{21}$/i,Ydt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Wdt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Xdt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",aj,zdt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Jdt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Qdt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,x0e="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Zdt=new RegExp(`^${x0e}$`);function A0e(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function emt(e){return new RegExp(`^${A0e(e)}$`)}function P0e(e){let t=`${x0e}T${A0e(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function tmt(e,t){return !!((t==="v4"||!t)&&zdt.test(e)||(t==="v6"||!t)&&Jdt.test(e))}var If=class e extends $t{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==We.string){let s=this._getOrReturnCtx(t);return He(s,{code:we.invalid_type,expected:We.string,received:s.parsedType}),Dt}let n=new ys,i;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(i=this._getOrReturnCtx(t,i),He(i,{code:we.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")t.data.length>s.value&&(i=this._getOrReturnCtx(t,i),He(i,{code:we.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let a=t.data.length>s.value,o=t.data.length<s.value;(a||o)&&(i=this._getOrReturnCtx(t,i),a?He(i,{code:we.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&He(i,{code:we.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty());}else if(s.kind==="email")Wdt.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"email",code:we.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")aj||(aj=new RegExp(Xdt,"u")),aj.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"emoji",code:we.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")$dt.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"uuid",code:we.invalid_string,message:s.message}),n.dirty());else if(s.kind==="nanoid")Kdt.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"nanoid",code:we.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")Vdt.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"cuid",code:we.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")Hdt.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"cuid2",code:we.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")Gdt.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"ulid",code:we.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(t.data);}catch{i=this._getOrReturnCtx(t,i),He(i,{validation:"url",code:we.invalid_string,message:s.message}),n.dirty();}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"regex",code:we.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(t,i),He(i,{code:we.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(i=this._getOrReturnCtx(t,i),He(i,{code:we.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(i=this._getOrReturnCtx(t,i),He(i,{code:we.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?P0e(s).test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{code:we.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="date"?Zdt.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{code:we.invalid_string,validation:"date",message:s.message}),n.dirty()):s.kind==="time"?emt(s).test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{code:we.invalid_string,validation:"time",message:s.message}),n.dirty()):s.kind==="duration"?Ydt.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"duration",code:we.invalid_string,message:s.message}),n.dirty()):s.kind==="ip"?tmt(t.data,s.version)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"ip",code:we.invalid_string,message:s.message}),n.dirty()):s.kind==="base64"?Qdt.test(t.data)||(i=this._getOrReturnCtx(t,i),He(i,{validation:"base64",code:we.invalid_string,message:s.message}),n.dirty()):Cr.assertNever(s);return {status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:we.invalid_string,...mt.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...mt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...mt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...mt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...mt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...mt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...mt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...mt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...mt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...mt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...mt.errToObj(t)})}datetime(t){var r,n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(n=t==null?void 0:t.local)!==null&&n!==void 0?n:!1,...mt.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...mt.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...mt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...mt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...mt.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...mt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...mt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...mt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...mt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...mt.errToObj(r)})}nonempty(t){return this.min(1,mt.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return !!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return !!this._def.checks.find(t=>t.kind==="date")}get isTime(){return !!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return !!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return !!this._def.checks.find(t=>t.kind==="email")}get isURL(){return !!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return !!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return !!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return !!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return !!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return !!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return !!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return !!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return !!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};If.create=e=>{var t;return new If({checks:[],typeName:wt.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Gt(e)})};function rmt(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(e.toFixed(i).replace(".","")),a=parseInt(t.toFixed(i).replace(".",""));return s%a/Math.pow(10,i)}var Ed=class e extends $t{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf;}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==We.number){let s=this._getOrReturnCtx(t);return He(s,{code:we.invalid_type,expected:We.number,received:s.parsedType}),Dt}let n,i=new ys;for(let s of this._def.checks)s.kind==="int"?Cr.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),He(n,{code:we.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),He(n,{code:we.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),He(n,{code:we.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?rmt(t.data,s.value)!==0&&(n=this._getOrReturnCtx(t,n),He(n,{code:we.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),He(n,{code:we.not_finite,message:s.message}),i.dirty()):Cr.assertNever(s);return {status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,mt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,mt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,mt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,mt.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:mt.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:mt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:mt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:mt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:mt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:mt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:mt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:mt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:mt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:mt.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return !!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Cr.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return !0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);}return Number.isFinite(r)&&Number.isFinite(t)}};Ed.create=e=>new Ed({checks:[],typeName:wt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Gt(e)});var bd=class e extends $t{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte;}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==We.bigint){let s=this._getOrReturnCtx(t);return He(s,{code:we.invalid_type,expected:We.bigint,received:s.parsedType}),Dt}let n,i=new ys;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(n=this._getOrReturnCtx(t,n),He(n,{code:we.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(n=this._getOrReturnCtx(t,n),He(n,{code:we.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),He(n,{code:we.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):Cr.assertNever(s);return {status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,mt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,mt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,mt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,mt.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:mt.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:mt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:mt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:mt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:mt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:mt.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};bd.create=e=>{var t;return new bd({checks:[],typeName:wt.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Gt(e)})};var vd=class extends $t{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==We.boolean){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.boolean,received:n.parsedType}),Dt}return ks(t.data)}};vd.create=e=>new vd({typeName:wt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Gt(e)});var _d=class e extends $t{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==We.date){let s=this._getOrReturnCtx(t);return He(s,{code:we.invalid_type,expected:We.date,received:s.parsedType}),Dt}if(isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return He(s,{code:we.invalid_date}),Dt}let n=new ys,i;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(i=this._getOrReturnCtx(t,i),He(i,{code:we.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(i=this._getOrReturnCtx(t,i),He(i,{code:we.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):Cr.assertNever(s);return {status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:mt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:mt.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};_d.create=e=>new _d({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:wt.ZodDate,...Gt(e)});var uS=class extends $t{_parse(t){if(this._getType(t)!==We.symbol){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.symbol,received:n.parsedType}),Dt}return ks(t.data)}};uS.create=e=>new uS({typeName:wt.ZodSymbol,...Gt(e)});var xd=class extends $t{_parse(t){if(this._getType(t)!==We.undefined){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.undefined,received:n.parsedType}),Dt}return ks(t.data)}};xd.create=e=>new xd({typeName:wt.ZodUndefined,...Gt(e)});var Ad=class extends $t{_parse(t){if(this._getType(t)!==We.null){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.null,received:n.parsedType}),Dt}return ks(t.data)}};Ad.create=e=>new Ad({typeName:wt.ZodNull,...Gt(e)});var Of=class extends $t{constructor(){super(...arguments),this._any=!0;}_parse(t){return ks(t.data)}};Of.create=e=>new Of({typeName:wt.ZodAny,...Gt(e)});var Sc=class extends $t{constructor(){super(...arguments),this._unknown=!0;}_parse(t){return ks(t.data)}};Sc.create=e=>new Sc({typeName:wt.ZodUnknown,...Gt(e)});var pu=class extends $t{_parse(t){let r=this._getOrReturnCtx(t);return He(r,{code:we.invalid_type,expected:We.never,received:r.parsedType}),Dt}};pu.create=e=>new pu({typeName:wt.ZodNever,...Gt(e)});var lS=class extends $t{_parse(t){if(this._getType(t)!==We.undefined){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.void,received:n.parsedType}),Dt}return ks(t.data)}};lS.create=e=>new lS({typeName:wt.ZodVoid,...Gt(e)});var Tc=class e extends $t{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==We.array)return He(r,{code:we.invalid_type,expected:We.array,received:r.parsedType}),Dt;if(i.exactLength!==null){let a=r.data.length>i.exactLength.value,o=r.data.length<i.exactLength.value;(a||o)&&(He(r,{code:a?we.too_big:we.too_small,minimum:o?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty());}if(i.minLength!==null&&r.data.length<i.minLength.value&&(He(r,{code:we.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(He(r,{code:we.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((a,o)=>i.type._parseAsync(new vo(r,a,r.path,o)))).then(a=>ys.mergeArray(n,a));let s=[...r.data].map((a,o)=>i.type._parseSync(new vo(r,a,r.path,o)));return ys.mergeArray(n,s)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:mt.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:mt.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:mt.toString(r)}})}nonempty(t){return this.min(1,t)}};Tc.create=(e,t)=>new Tc({type:e,minLength:null,maxLength:null,exactLength:null,typeName:wt.ZodArray,...Gt(t)});function sS(e){if(e instanceof ga){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=bo.create(sS(n));}return new ga({...e._def,shape:()=>t})}else return e instanceof Tc?new Tc({...e._def,type:sS(e.element)}):e instanceof bo?bo.create(sS(e.unwrap())):e instanceof ul?ul.create(sS(e.unwrap())):e instanceof ol?ol.create(e.items.map(t=>sS(t))):e}var ga=class e extends $t{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend;}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=Cr.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==We.object){let l=this._getOrReturnCtx(t);return He(l,{code:we.invalid_type,expected:We.object,received:l.parsedType}),Dt}let{status:n,ctx:i}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof pu&&this._def.unknownKeys==="strip"))for(let l in i.data)a.includes(l)||o.push(l);let u=[];for(let l of a){let c=s[l],p=i.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new vo(i,p,i.path,l)),alwaysSet:l in i.data});}if(this._def.catchall instanceof pu){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of o)u.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(l==="strict")o.length>0&&(He(i,{code:we.unrecognized_keys,keys:o}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else {let l=this._def.catchall;for(let c of o){let p=i.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new vo(i,p,i.path,c)),alwaysSet:c in i.data});}}return i.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let p=await c.key,h=await c.value;l.push({key:p,value:h,alwaysSet:c.alwaysSet});}return l}).then(l=>ys.mergeObjectSync(n,l)):ys.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return mt.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var i,s,a,o;let u=(a=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&a!==void 0?a:n.defaultError;return r.code==="unrecognized_keys"?{message:(o=mt.errToObj(t).message)!==null&&o!==void 0?o:u}:{message:u}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:wt.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};return Cr.objectKeys(t).forEach(n=>{t[n]&&this.shape[n]&&(r[n]=this.shape[n]);}),new e({...this._def,shape:()=>r})}omit(t){let r={};return Cr.objectKeys(this.shape).forEach(n=>{t[n]||(r[n]=this.shape[n]);}),new e({...this._def,shape:()=>r})}deepPartial(){return sS(this)}partial(t){let r={};return Cr.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional();}),new e({...this._def,shape:()=>r})}required(t){let r={};return Cr.objectKeys(this.shape).forEach(n=>{if(t&&!t[n])r[n]=this.shape[n];else {let s=this.shape[n];for(;s instanceof bo;)s=s._def.innerType;r[n]=s;}}),new e({...this._def,shape:()=>r})}keyof(){return C0e(Cr.objectKeys(this.shape))}};ga.create=(e,t)=>new ga({shape:()=>e,unknownKeys:"strip",catchall:pu.create(),typeName:wt.ZodObject,...Gt(t)});ga.strictCreate=(e,t)=>new ga({shape:()=>e,unknownKeys:"strict",catchall:pu.create(),typeName:wt.ZodObject,...Gt(t)});ga.lazycreate=(e,t)=>new ga({shape:e,unknownKeys:"strip",catchall:pu.create(),typeName:wt.ZodObject,...Gt(t)});var Pd=class extends $t{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function i(s){for(let o of s)if(o.result.status==="valid")return o.result;for(let o of s)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;let a=s.map(o=>new Ls(o.ctx.common.issues));return He(r,{code:we.invalid_union,unionErrors:a}),Dt}if(r.common.async)return Promise.all(n.map(async s=>{let a={...r,common:{...r.common,issues:[]},parent:null};return {result:await s._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(i);{let s,a=[];for(let u of n){let l={...r,common:{...r.common,issues:[]},parent:null},c=u._parseSync({data:r.data,path:r.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:l}),l.common.issues.length&&a.push(l.common.issues);}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let o=a.map(u=>new Ls(u));return He(r,{code:we.invalid_union,unionErrors:o}),Dt}}get options(){return this._def.options}};Pd.create=(e,t)=>new Pd({options:e,typeName:wt.ZodUnion,...Gt(t)});var gc=e=>e instanceof wd?gc(e.schema):e instanceof ja?gc(e.innerType()):e instanceof Id?[e.value]:e instanceof Od?e.options:e instanceof Dd?Cr.objectValues(e.enum):e instanceof Nd?gc(e._def.innerType):e instanceof xd?[void 0]:e instanceof Ad?[null]:e instanceof bo?[void 0,...gc(e.unwrap())]:e instanceof ul?[null,...gc(e.unwrap())]:e instanceof Tb||e instanceof Md?gc(e.unwrap()):e instanceof Rd?gc(e._def.innerType):[],mw=class e extends $t{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==We.object)return He(r,{code:we.invalid_type,expected:We.object,received:r.parsedType}),Dt;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(He(r,{code:we.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Dt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let i=new Map;for(let s of r){let a=gc(s.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let o of a){if(i.has(o))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(o)}`);i.set(o,s);}}return new e({typeName:wt.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:i,...Gt(n)})}};function cj(e,t){let r=wf(e),n=wf(t);if(e===t)return {valid:!0,data:e};if(r===We.object&&n===We.object){let i=Cr.objectKeys(t),s=Cr.objectKeys(e).filter(o=>i.indexOf(o)!==-1),a={...e,...t};for(let o of s){let u=cj(e[o],t[o]);if(!u.valid)return {valid:!1};a[o]=u.data;}return {valid:!0,data:a}}else if(r===We.array&&n===We.array){if(e.length!==t.length)return {valid:!1};let i=[];for(let s=0;s<e.length;s++){let a=e[s],o=t[s],u=cj(a,o);if(!u.valid)return {valid:!1};i.push(u.data);}return {valid:!0,data:i}}else return r===We.date&&n===We.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var Cd=class extends $t{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=(s,a)=>{if(uj(s)||uj(a))return Dt;let o=cj(s.value,a.value);return o.valid?((lj(s)||lj(a))&&r.dirty(),{status:r.value,value:o.data}):(He(n,{code:we.invalid_intersection_types}),Dt)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,a])=>i(s,a)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Cd.create=(e,t,r)=>new Cd({left:e,right:t,typeName:wt.ZodIntersection,...Gt(r)});var ol=class e extends $t{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.array)return He(n,{code:we.invalid_type,expected:We.array,received:n.parsedType}),Dt;if(n.data.length<this._def.items.length)return He(n,{code:we.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Dt;!this._def.rest&&n.data.length>this._def.items.length&&(He(n,{code:we.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((a,o)=>{let u=this._def.items[o]||this._def.rest;return u?u._parse(new vo(n,a,n.path,o)):null}).filter(a=>!!a);return n.common.async?Promise.all(s).then(a=>ys.mergeArray(r,a)):ys.mergeArray(r,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ol.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ol({items:e,typeName:wt.ZodTuple,rest:null,...Gt(t)})};var yw=class e extends $t{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.object)return He(n,{code:we.invalid_type,expected:We.object,received:n.parsedType}),Dt;let i=[],s=this._def.keyType,a=this._def.valueType;for(let o in n.data)i.push({key:s._parse(new vo(n,o,n.path,o)),value:a._parse(new vo(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?ys.mergeObjectAsync(r,i):ys.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof $t?new e({keyType:t,valueType:r,typeName:wt.ZodRecord,...Gt(n)}):new e({keyType:If.create(),valueType:t,typeName:wt.ZodRecord,...Gt(r)})}},cS=class extends $t{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.map)return He(n,{code:we.invalid_type,expected:We.map,received:n.parsedType}),Dt;let i=this._def.keyType,s=this._def.valueType,a=[...n.data.entries()].map(([o,u],l)=>({key:i._parse(new vo(n,o,n.path,[l,"key"])),value:s._parse(new vo(n,u,n.path,[l,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let u of a){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return Dt;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(l.value,c.value);}return {status:r.value,value:o}})}else {let o=new Map;for(let u of a){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return Dt;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(l.value,c.value);}return {status:r.value,value:o}}}};cS.create=(e,t,r)=>new cS({valueType:t,keyType:e,typeName:wt.ZodMap,...Gt(r)});var pS=class e extends $t{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==We.set)return He(n,{code:we.invalid_type,expected:We.set,received:n.parsedType}),Dt;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(He(n,{code:we.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(He(n,{code:we.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function a(u){let l=new Set;for(let c of u){if(c.status==="aborted")return Dt;c.status==="dirty"&&r.dirty(),l.add(c.value);}return {status:r.value,value:l}}let o=[...n.data.values()].map((u,l)=>s._parse(new vo(n,u,n.path,l)));return n.common.async?Promise.all(o).then(u=>a(u)):a(o)}min(t,r){return new e({...this._def,minSize:{value:t,message:mt.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:mt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};pS.create=(e,t)=>new pS({valueType:e,minSize:null,maxSize:null,typeName:wt.ZodSet,...Gt(t)});var gw=class e extends $t{constructor(){super(...arguments),this.validate=this.implement;}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==We.function)return He(r,{code:we.invalid_type,expected:We.function,received:r.parsedType}),Dt;function n(o,u){return hw({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,fw(),oS].filter(l=>!!l),issueData:{code:we.invalid_arguments,argumentsError:u}})}function i(o,u){return hw({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,fw(),oS].filter(l=>!!l),issueData:{code:we.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof Df){let o=this;return ks(async function(...u){let l=new Ls([]),c=await o._def.args.parseAsync(u,s).catch(f=>{throw l.addIssue(n(u,f)),l}),p=await Reflect.apply(a,this,c);return await o._def.returns._def.type.parseAsync(p,s).catch(f=>{throw l.addIssue(i(p,f)),l})})}else {let o=this;return ks(function(...u){let l=o._def.args.safeParse(u,s);if(!l.success)throw new Ls([n(u,l.error)]);let c=Reflect.apply(a,this,l.data),p=o._def.returns.safeParse(c,s);if(!p.success)throw new Ls([i(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ol.create(t).rest(Sc.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||ol.create([]).rest(Sc.create()),returns:r||Sc.create(),typeName:wt.ZodFunction,...Gt(n)})}},wd=class extends $t{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};wd.create=(e,t)=>new wd({getter:e,typeName:wt.ZodLazy,...Gt(t)});var Id=class extends $t{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return He(r,{received:r.data,code:we.invalid_literal,expected:this._def.value}),Dt}return {status:"valid",value:t.data}}get value(){return this._def.value}};Id.create=(e,t)=>new Id({value:e,typeName:wt.ZodLiteral,...Gt(t)});function C0e(e,t){return new Od({values:e,typeName:wt.ZodEnum,...Gt(t)})}var Od=class e extends $t{constructor(){super(...arguments),mb.set(this,void 0);}_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return He(r,{expected:Cr.joinValues(n),received:r.parsedType,code:we.invalid_type}),Dt}if(dw(this,mb,"f")||_0e(this,mb,new Set(this._def.values),"f"),!dw(this,mb,"f").has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return He(r,{received:r.data,code:we.invalid_enum_value,options:n}),Dt}return ks(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};mb=new WeakMap;Od.create=C0e;var Dd=class extends $t{constructor(){super(...arguments),yb.set(this,void 0);}_parse(t){let r=Cr.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==We.string&&n.parsedType!==We.number){let i=Cr.objectValues(r);return He(n,{expected:Cr.joinValues(i),received:n.parsedType,code:we.invalid_type}),Dt}if(dw(this,yb,"f")||_0e(this,yb,new Set(Cr.getValidEnumValues(this._def.values)),"f"),!dw(this,yb,"f").has(t.data)){let i=Cr.objectValues(r);return He(n,{received:n.data,code:we.invalid_enum_value,options:i}),Dt}return ks(t.data)}get enum(){return this._def.values}};yb=new WeakMap;Dd.create=(e,t)=>new Dd({values:e,typeName:wt.ZodNativeEnum,...Gt(t)});var Df=class extends $t{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==We.promise&&r.common.async===!1)return He(r,{code:we.invalid_type,expected:We.promise,received:r.parsedType}),Dt;let n=r.parsedType===We.promise?r.data:Promise.resolve(r.data);return ks(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Df.create=(e,t)=>new Df({type:e,typeName:wt.ZodPromise,...Gt(t)});var ja=class extends $t{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===wt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:a=>{He(n,a),a.fatal?r.abort():r.dirty();},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let a=i.transform(n.data,s);if(n.common.async)return Promise.resolve(a).then(async o=>{if(r.value==="aborted")return Dt;let u=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return u.status==="aborted"?Dt:u.status==="dirty"||r.value==="dirty"?aS(u.value):u});{if(r.value==="aborted")return Dt;let o=this._def.schema._parseSync({data:a,path:n.path,parent:n});return o.status==="aborted"?Dt:o.status==="dirty"||r.value==="dirty"?aS(o.value):o}}if(i.type==="refinement"){let a=o=>{let u=i.refinement(o,s);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?Dt:(o.status==="dirty"&&r.dirty(),a(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?Dt:(o.status==="dirty"&&r.dirty(),a(o.value).then(()=>({status:r.value,value:o.value}))))}if(i.type==="transform")if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!gb(a))return a;let o=i.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return {status:r.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>gb(a)?Promise.resolve(i.transform(a.value,s)).then(o=>({status:r.value,value:o})):a);Cr.assertNever(i);}};ja.create=(e,t,r)=>new ja({schema:e,typeName:wt.ZodEffects,effect:t,...Gt(r)});ja.createWithPreprocess=(e,t,r)=>new ja({schema:t,effect:{type:"preprocess",transform:e},typeName:wt.ZodEffects,...Gt(r)});var bo=class extends $t{_parse(t){return this._getType(t)===We.undefined?ks(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};bo.create=(e,t)=>new bo({innerType:e,typeName:wt.ZodOptional,...Gt(t)});var ul=class extends $t{_parse(t){return this._getType(t)===We.null?ks(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ul.create=(e,t)=>new ul({innerType:e,typeName:wt.ZodNullable,...Gt(t)});var Nd=class extends $t{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===We.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Nd.create=(e,t)=>new Nd({innerType:e,typeName:wt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Gt(t)});var Rd=class extends $t{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Sb(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ls(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ls(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Rd.create=(e,t)=>new Rd({innerType:e,typeName:wt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Gt(t)});var fS=class extends $t{_parse(t){if(this._getType(t)!==We.nan){let n=this._getOrReturnCtx(t);return He(n,{code:we.invalid_type,expected:We.nan,received:n.parsedType}),Dt}return {status:"valid",value:t.data}}};fS.create=e=>new fS({typeName:wt.ZodNaN,...Gt(e)});var nmt=Symbol("zod_brand"),Tb=class extends $t{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Eb=class e extends $t{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return (async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Dt:s.status==="dirty"?(r.dirty(),aS(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Dt:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:wt.ZodPipeline})}},Md=class extends $t{_parse(t){let r=this._def.innerType._parse(t),n=i=>(gb(i)&&(i.value=Object.freeze(i.value)),i);return Sb(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};Md.create=(e,t)=>new Md({innerType:e,typeName:wt.ZodReadonly,...Gt(t)});function w0e(e,t={},r){return e?Of.create().superRefine((n,i)=>{var s,a;if(!e(n)){let o=typeof t=="function"?t(n):typeof t=="string"?{message:t}:t,u=(a=(s=o.fatal)!==null&&s!==void 0?s:r)!==null&&a!==void 0?a:!0,l=typeof o=="string"?{message:o}:o;i.addIssue({code:"custom",...l,fatal:u});}}):Of.create()}var imt={object:ga.lazycreate},wt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly";})(wt||(wt={}));var smt=(e,t={message:`Input not instance of ${e.name}`})=>w0e(r=>r instanceof e,t),I0e=If.create,O0e=Ed.create,amt=fS.create,omt=bd.create,D0e=vd.create,umt=_d.create,lmt=uS.create,cmt=xd.create,pmt=Ad.create,fmt=Of.create,hmt=Sc.create,dmt=pu.create,mmt=lS.create,ymt=Tc.create,gmt=ga.create,Smt=ga.strictCreate,Tmt=Pd.create,Emt=mw.create,bmt=Cd.create,vmt=ol.create,_mt=yw.create,xmt=cS.create,Amt=pS.create,Pmt=gw.create,Cmt=wd.create,wmt=Id.create,Imt=Od.create,Omt=Dd.create,Dmt=Df.create,b0e=ja.create,Nmt=bo.create,Rmt=ul.create,Mmt=ja.createWithPreprocess,Lmt=Eb.create,kmt=()=>I0e().optional(),Fmt=()=>O0e().optional(),Bmt=()=>D0e().optional(),jmt={string:e=>If.create({...e,coerce:!0}),number:e=>Ed.create({...e,coerce:!0}),boolean:e=>vd.create({...e,coerce:!0}),bigint:e=>bd.create({...e,coerce:!0}),date:e=>_d.create({...e,coerce:!0})},Umt=Dt,at=Object.freeze({__proto__:null,defaultErrorMap:oS,setErrorMap:Udt,getErrorMap:fw,makeIssue:hw,EMPTY_PATH:qdt,addIssueToContext:He,ParseStatus:ys,INVALID:Dt,DIRTY:aS,OK:ks,isAborted:uj,isDirty:lj,isValid:gb,isAsync:Sb,get util(){return Cr},get objectUtil(){return oj},ZodParsedType:We,getParsedType:wf,ZodType:$t,datetimeRegex:P0e,ZodString:If,ZodNumber:Ed,ZodBigInt:bd,ZodBoolean:vd,ZodDate:_d,ZodSymbol:uS,ZodUndefined:xd,ZodNull:Ad,ZodAny:Of,ZodUnknown:Sc,ZodNever:pu,ZodVoid:lS,ZodArray:Tc,ZodObject:ga,ZodUnion:Pd,ZodDiscriminatedUnion:mw,ZodIntersection:Cd,ZodTuple:ol,ZodRecord:yw,ZodMap:cS,ZodSet:pS,ZodFunction:gw,ZodLazy:wd,ZodLiteral:Id,ZodEnum:Od,ZodNativeEnum:Dd,ZodPromise:Df,ZodEffects:ja,ZodTransformer:ja,ZodOptional:bo,ZodNullable:ul,ZodDefault:Nd,ZodCatch:Rd,ZodNaN:fS,BRAND:nmt,ZodBranded:Tb,ZodPipeline:Eb,ZodReadonly:Md,custom:w0e,Schema:$t,ZodSchema:$t,late:imt,get ZodFirstPartyTypeKind(){return wt},coerce:jmt,any:fmt,array:ymt,bigint:omt,boolean:D0e,date:umt,discriminatedUnion:Emt,effect:b0e,enum:Imt,function:Pmt,instanceof:smt,intersection:bmt,lazy:Cmt,literal:wmt,map:xmt,nan:amt,nativeEnum:Omt,never:dmt,null:pmt,nullable:Rmt,number:O0e,object:gmt,oboolean:Bmt,onumber:Fmt,optional:Nmt,ostring:kmt,pipeline:Lmt,preprocess:Mmt,promise:Dmt,record:_mt,set:Amt,strictObject:Smt,string:I0e,symbol:lmt,transformer:b0e,tuple:vmt,undefined:cmt,union:Tmt,unknown:hmt,void:mmt,NEVER:Umt,ZodIssueCode:we,quotelessJson:jdt,ZodError:Ls});var Sw=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),N0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var R0e=(e,t)=>{let{formErrors:r,fieldErrors:n}=t.flatten();return (0, N0e.dedent)(Sw.default`
${chunkF6FLWRPJ_js.H} Configuration file {bold ${e}} was invalid, please check the allowed keys.
${r.length>0?`
${r.map(i=>Sw.default`- {bold ${i}}`).join(`
`)}
`:""}
${Object.entries(n).map(([i,s])=>Sw.default`- {bold ${i}}: ${s}`).join(`
`)}
`)};var M0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),L0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var k0e=e=>(0, L0e.dedent)(M0e.default`
${chunkF6FLWRPJ_js.H} Configuration file {bold ${e}} could not be found.
Check the {bold --config-file} flag of the CLI.
`);var F0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),B0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var j0e=(e,t)=>{let r=e.endsWith(".jsonc")||e.endsWith(".json5")?"JSON5":"JSON";return (0, B0e.dedent)(F0e.default`
${chunkF6FLWRPJ_js.H} Configuration file {bold ${e}} could not be parsed, is it valid ${r}?
The error was: {bold ${t.message}}
`)};var Hmt=at.object({$schema:at.string(),projectId:at.string(),projectToken:at.string(),onlyChanged:at.union([at.string(),at.boolean()]),onlyStoryFiles:at.array(at.string()),onlyStoryNames:at.array(at.string()),traceChanged:at.union([at.string(),at.boolean()]),untraced:at.array(at.string()),externals:at.array(at.string()),debug:at.boolean(),diagnosticsFile:at.union([at.string(),at.boolean()]),fileHashing:at.boolean().default(!0),junitReport:at.union([at.string(),at.boolean()]),zip:at.boolean(),autoAcceptChanges:at.union([at.string(),at.boolean()]),exitZeroOnChanges:at.union([at.string(),at.boolean()]),exitOnceUploaded:at.union([at.string(),at.boolean()]),ignoreLastBuildOnBranch:at.string(),buildScriptName:at.string(),buildCommand:at.string(),playwright:at.boolean(),cypress:at.boolean(),outputDir:at.string(),skip:at.union([at.string(),at.boolean()]),skipUpdateCheck:at.boolean(),storybookBuildDir:at.string(),storybookBaseDir:at.string(),storybookConfigDir:at.string(),storybookLogFile:at.union([at.string(),at.boolean()]),logFile:at.union([at.string(),at.boolean()]),uploadMetadata:at.boolean()}).partial().strict();function Gmt(e){return [e,"chromatic.config.json","chromatic.config.jsonc","chromatic.config.json5"].find(r=>r&&fs$1.existsSync(r))||"chromatic.config.json"}async function pj(e){let t=Gmt(e);try{let r=fs$1.readFileSync(t,"utf8"),n=Hmt.parse(T0e.parse(r));return {configFile:t,...n}}catch(r){if($mt(r)){if(!e)return {};if(e)throw new Error(k0e(e))}throw r instanceof SyntaxError?new TypeError(j0e(t,r)):r instanceof Ls?new TypeError(R0e(t,r)):r}}function $mt(e){return e.toString().includes("ENOENT")}var{CHROMATIC_DNS_FAILOVER_SERVERS:Kmt="1.1.1.1, 8.8.8.8",CHROMATIC_DNS_SERVERS:Ymt="",CHROMATIC_HASH_CONCURRENCY:Wmt="48",CHROMATIC_INDEX_URL:U0e="https://index.chromatic.com",CHROMATIC_NOTIFY_SERVICE_URL:Xmt,CHROMATIC_OUTPUT_INTERVAL:zmt=String(10*1e3),CHROMATIC_POLL_INTERVAL:Jmt=String(1e3),CHROMATIC_PROJECT_TOKEN:Qmt,CHROMATIC_RETRIES:Zmt="5",CHROMATIC_STORYBOOK_VERSION:eyt,CHROMATIC_TIMEOUT:tyt=String(5*60*1e3),CHROMATIC_UPGRADE_TIMEOUT:ryt=String(60*60*1e3),HTTP_PROXY:nyt=process.env.http_proxy,HTTPS_PROXY:iyt=process.env.https_proxy,STORYBOOK_BUILD_TIMEOUT:syt=String(10*60*1e3),STORYBOOK_VERIFY_TIMEOUT:ayt=String(3*60*1e3),STORYBOOK_NODE_ENV:oyt="production"}=process.env,uyt=[/^GERRIT/,/^TRAVIS/],lyt={"--ci":"4.0.0","--loglevel":"5.1.0"};function fj(){return {CHROMATIC_DNS_FAILOVER_SERVERS:Kmt.split(",").map(e=>e.trim()).filter(Boolean),CHROMATIC_DNS_SERVERS:Ymt.split(",").map(e=>e.trim()).filter(Boolean),CHROMATIC_HASH_CONCURRENCY:Number.parseInt(Wmt,10),CHROMATIC_INDEX_URL:U0e,CHROMATIC_NOTIFY_SERVICE_URL:Xmt||cyt(U0e),CHROMATIC_OUTPUT_INTERVAL:Number.parseInt(zmt,10),CHROMATIC_POLL_INTERVAL:Number.parseInt(Jmt,10),CHROMATIC_PROJECT_TOKEN:Qmt,CHROMATIC_RETRIES:Number.parseInt(Zmt,10),CHROMATIC_STORYBOOK_VERSION:eyt,CHROMATIC_TIMEOUT:Number.parseInt(tyt,10),CHROMATIC_UPGRADE_TIMEOUT:Number.parseInt(ryt,10),ENVIRONMENT_WHITELIST:uyt,HTTP_PROXY:nyt,HTTPS_PROXY:iyt,STORYBOOK_BUILD_TIMEOUT:Number.parseInt(syt,10),STORYBOOK_CLI_FLAGS_BY_VERSION:lyt,STORYBOOK_VERIFY_TIMEOUT:Number.parseInt(ayt,10),STORYBOOK_NODE_ENV:oyt}}function cyt(e){return e.includes("dev")?"wss://notify.dev-chromatic.com":e.includes("staging")?"wss://notify.staging-chromatic.com":"wss://notify.chromatic.com"}var q0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),V0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var bb=(e,t)=>(0, V0e.dedent)(q0e.default`
${chunkF6FLWRPJ_js.H} Invalid {bold ${e}}
This option can only be used in conjunction with {bold ${t}}
`);var H0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),G0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var $0e=()=>(0, G0e.dedent)(H0e.default`
${chunkF6FLWRPJ_js.H} Invalid value to {bold --patch-build}
The two branches cannot be identical.
`);var hj=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),K0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var dj=e=>(0, K0e.dedent)(hj.default`
${chunkF6FLWRPJ_js.H} Incompatible options: ${e.map(t=>hj.default.bold(t)).join(", ")}
These options cannot be used together.
`);var Y0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),W0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var X0e=()=>(0, W0e.dedent)(Y0e.default`
${chunkF6FLWRPJ_js.H} Invalid {bold --only-story-names}
Value must be provided in the form {bold 'Path/To/MyStory'}.
Globbing is supported, for example: 'Pages/**'
`);var z0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),J0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Q0e=(e,t)=>(0, J0e.dedent)(z0e.default`
${chunkF6FLWRPJ_js.H} Invalid value for {bold --branch-name} and/or {bold --repository-slug}
The branch owner name prefix '${e}' does not match the repository owner '${t}'.
`);var Z0e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),ebe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var tbe=e=>(0, ebe.dedent)(Z0e.default`
${chunkF6FLWRPJ_js.H} {bold Invalid package.json}
Found invalid package.json at {bold ${e}}
Make sure this is a valid Node.js package file, is readable, and contains a {bold "scripts"} block.
`);var rbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),nbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var pyt="https://www.chromatic.com/docs/branching-and-baselines/#what-happens-when-the-merge-base-build-isnt-found-patch-builds",ibe=()=>(0, nbe.dedent)(rbe.default`
${chunkF6FLWRPJ_js.H} Invalid value for {bold --patch-build}
This option expects two branch names like {bold headbranch...basebranch}
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(pyt)}
`);var sbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),abe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var obe=()=>(0, abe.dedent)(sbe.default`
${chunkF6FLWRPJ_js.H} Invalid value for {bold --junit-report}
If you pass a file path, make sure it ends with '.xml'
`);var ube=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),lbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var cbe=()=>(0, lbe.dedent)(ube.default`
${chunkF6FLWRPJ_js.H} Invalid value for {bold --repository-slug}
The value must be in the format {bold ownerName/repositoryName}
You can typically find this in the URL of your repository.
`);var pbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),fbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var vb=e=>(0, fbe.dedent)(pbe.default`
${chunkF6FLWRPJ_js.H} You can only use one of {bold ${e.join(", ")}}
`);var hbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),dbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var mbe=e=>(0, dbe.dedent)(hbe.default`
${chunkF6FLWRPJ_js.H} {bold Build script not found}
The CLI didn't find a script called {bold "${e}"} in your {bold package.json}.
Make sure you set the {bold --build-script-name} option to the value of the script name that builds your Storybook.
`);var ybe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),gbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Sbe=()=>(0, gbe.dedent)(ybe.default`
${chunkF6FLWRPJ_js.H} {bold Missing project token}
Sign in to ${chunkHZVCNUTP_js.f("https://www.chromatic.com/start")} and create a new project,
or find your project token on the Manage screen in an existing project.
Set your project token as the {bold CHROMATIC_PROJECT_TOKEN} environment variable
or pass the {bold --project-token} command line option.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/quickstart/")}
`);var mj=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Ebe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var fyt="https://github.com/chromaui/chromatic-cli/blob/main/CHANGELOG.md",Tbe=e=>`--${e.replaceAll(/[A-Z]/g,"-$&").toLowerCase()}`,bbe=({flag:e,replacement:t})=>(0, Ebe.dedent)(mj.default`
${chunkF6FLWRPJ_js.G} {bold Using deprecated option: ${Tbe(e)}}
This option is ${t?mj.default`superceded by {bold ${Tbe(t)}}`:"deprecated"} and may be removed in a future release.
Refer to the changelog for more information: ${chunkHZVCNUTP_js.f(fyt)}
`);var yj=e=>Array.isArray(e)?e.at(-1):e,Tw=e=>e?Array.isArray(e)?e:[e]:[],Ec=e=>e===""?!0:e,vbe=(e,t)=>e===""?t:e,_be=(e,t)=>["",!0,void 0].includes(e)?t:e,Ew=e=>{let t=e.filter(Boolean);return t.length>0?t:void 0},xbe=e=>Object.fromEntries(Object.entries(e).filter(([t,r])=>r!==void 0)),_b=(e,t)=>{switch(typeof e){case"boolean":return e?t:void 0;case"string":return e||t;default:return}};function gj(e){var ue,fe;let{argv:t,env:r,flags:n,extraOptions:i,configuration:s,log:a,packageJson:o,packagePath:u}=e,l={projectToken:r.CHROMATIC_PROJECT_TOKEN,fromCI:!!process.env.CI,inAction:!1,dryRun:!1,debug:!1,autoAcceptChanges:!1,exitZeroOnChanges:!1,exitOnceUploaded:!1,diagnosticsFile:void 0,fileHashing:!0,interactive:!1,isLocalBuild:!1,originalArgv:t,onlyChanged:void 0,onlyStoryFiles:void 0,onlyStoryNames:void 0,untraced:void 0,externals:void 0,traceChanged:void 0,list:void 0,logFile:void 0,skip:void 0,forceRebuild:void 0,junitReport:void 0,zip:void 0,skipUpdateCheck:void 0,ignoreLastBuildOnBranch:void 0,preserveMissingSpecs:void 0,buildScriptName:void 0,buildCommand:void 0,playwright:void 0,cypress:void 0,outputDir:void 0,storybookBuildDir:void 0,storybookBaseDir:void 0,storybookConfigDir:void 0,storybookLogFile:void 0,ownerName:void 0,repositorySlug:void 0,branchName:void 0,patchHeadRef:void 0,patchBaseRef:void 0,uploadMetadata:void 0},[c,p]=(n.patchBuild||"").split("...").filter(Boolean),[h,f]=(n.branchName||"").split(":").reverse(),[d,m,...y]=((ue=n.repositorySlug)==null?void 0:ue.split("/"))||[],g="chromatic.log",v="chromatic-build-{buildNumber}.xml",E="chromatic-diagnostics.json",S="build-storybook.log",x="build-archive.log",b=xbe({projectToken:yj(n.projectToken),onlyChanged:Ec(n.onlyChanged),onlyStoryFiles:Ew(Tw(n.onlyStoryFiles)),onlyStoryNames:Ew(Tw(n.onlyStoryNames)),untraced:Ew(Tw(n.untraced)),externals:Ew(Tw(n.externals)),traceChanged:Ec(n.traceChanged),list:n.list,logFile:vbe(n.logFile,g),fromCI:n.ci,skip:Ec(n.skip),dryRun:n.dryRun,fileHashing:n.fileHashing,forceRebuild:Ec(n.forceRebuild),debug:n.debug,diagnosticsFile:_b(n.diagnosticsFile,E),junitReport:vbe(n.junitReport,v),zip:n.zip,skipUpdateCheck:n.skipUpdateCheck,autoAcceptChanges:Ec(n.autoAcceptChanges),exitZeroOnChanges:Ec(n.exitZeroOnChanges),exitOnceUploaded:Ec(n.exitOnceUploaded),ignoreLastBuildOnBranch:n.ignoreLastBuildOnBranch,preserveMissingSpecs:n.preserveMissing,buildScriptName:n.buildScriptName,buildCommand:n.buildCommand,playwright:Ec(n.playwright),cypress:Ec(n.cypress),outputDir:yj(n.outputDir),storybookBuildDir:yj(n.storybookBuildDir),storybookBaseDir:n.storybookBaseDir,storybookConfigDir:n.storybookConfigDir,storybookLogFile:n.playwright||n.cypress?_be(n.storybookLogFile,x):_be(n.storybookLogFile,S),ownerName:f||d,repositorySlug:n.repositorySlug,branchName:h,patchHeadRef:c,patchBaseRef:p,uploadMetadata:n.uploadMetadata}),{logFile:A,diagnosticsFile:D,junitReport:P,storybookLogFile:V,...X}=s||{},oe=xbe({...X,logFile:_b(A,g),diagnosticsFile:_b(D,E),junitReport:_b(P,v),storybookLogFile:_b(V,S)}),le={...l,...oe,...b,...i,interactive:!process.env.CI&&!n.ci&&!n.debug&&!!n.interactive&&!!process.stdout.isTTY&&process.env.NODE_ENV!=="test"};if(le.debug&&(a.setLevel("debug"),a.setInteractive(!1)),(le.debug||le.uploadMetadata)&&(le.logFile=le.logFile??g,le.diagnosticsFile=le.diagnosticsFile??E),!le.projectToken&&!(le.projectId&&le.userToken))throw new Error(Sbe());if(d&&(!m||y.length>0))throw new Error(cbe());if(f&&d&&f!==d)throw new Error(Q0e(f,d));if(n.patchBuild){if(!le.patchHeadRef||!le.patchBaseRef)throw new Error(ibe());if(le.patchHeadRef===le.patchBaseRef)throw new Error($0e())}if((fe=le.onlyStoryNames)!=null&&fe.some(Se=>!/[\w*]\/[\w*]/.test(Se)))throw new Error(X0e());let{storybookBuildDir:Be}=le,{buildScriptName:be}=le,Ee={storybookBuildDir:"--storybook-build-dir",playwright:"--playwright",cypress:"--cypress"},Te=Object.keys(Ee).filter(Se=>!!le[Se]);if(Te.length>1)throw new Error(vb(Te.map(Se=>Ee[Se])));if(le.onlyChanged&&le.onlyStoryFiles)throw new Error(vb(["--only-changed","--only-story-files"]));if(le.onlyChanged&&le.onlyStoryNames)throw new Error(vb(["--only-changed","--only-story-names"]));if(le.onlyStoryNames&&le.onlyStoryFiles)throw new Error(vb(["--only-story-files","--only-story-names"]));if(le.untraced&&!le.onlyChanged)throw new Error(bb("--untraced","--only-changed"));if(le.externals&&!le.onlyChanged)throw new Error(bb("--externals","--only-changed"));if(le.traceChanged&&!le.onlyChanged)throw new Error(bb("--trace-changed","--only-changed"));if(le.junitReport&&le.exitOnceUploaded)throw new Error(dj(["--junit-report","--exit-once-uploaded"]));if(le.buildScriptName&&le.buildCommand)throw new Error(dj(["--build-script-name","--build-command"]));if(le.buildCommand&&!le.outputDir)throw new Error(bb("--build-command","--output-dir"));if(typeof le.junitReport=="string"&&ux__namespace.default.extname(le.junitReport)!==".xml")throw new Error(obe());let Me=le;if(n.preserveMissing&&(a.info(""),a.info(bbe({flag:"preserveMissing"}))),Be||le.buildCommand||En(Me))return Me;(typeof o!="object"||typeof o.scripts!="object")&&(a.error(tbe(u)),process.exit(252));let{scripts:At}=o;if(typeof be!="string"&&(be="build-storybook",!At[be])){let[Se]=Object.entries(At).find(([,je])=>je.startsWith("build-storybook"))||[];Se&&(be=Se);}if(At&&be&&At[be])return {...Me,buildScriptName:be};throw new Error(mbe(be))}var Abe=chunkTKGT252T_js.e(XB()),hS=class{constructor(t,r){this.tasks=t,this.options=r,this.updateRenderer=new Abe.default(t,r);}render(){this.updateRenderer.render();for(let t of this.tasks){let r;t.subscribe(n=>{n.type==="TITLE"&&this.options.log.file(`${t.title}`),n.type==="DATA"&&r!==n.data&&(r=n.data,this.options.log.file(` \u2192 ${n.data}`));});}}end(){this.updateRenderer.end();}};hS.nonTTY=!1;var dS=class{constructor(t,r){this.tasks=t,this.options=r;}render(){for(let t of this.tasks){let r;t.subscribe(n=>{n.type==="TITLE"&&this.options.log.info(`${t.title}`),n.type==="DATA"&&r!==n.data&&(r=n.data,this.options.log.info(` \u2192 ${n.data}`));});}}end(){}};dS.nonTTY=!0;var Pbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.z());var Sj={name:"chromatic",version:"15.0.0",description:"Automate visual testing across browsers. Gather UI feedback. Versioned documentation.",keywords:["storybook-addon","storybook","addon","test","popular"],homepage:"https://www.chromatic.com",bugs:{url:"https://github.com/chromaui/chromatic-cli",email:"support@chromatic.com"},repository:{type:"git",url:"git+https://github.com/chromaui/chromatic-cli.git"},license:"MIT",author:{name:"Chromatic",email:"support@chromatic.com"},exports:{".":{types:"./isChromatic.d.ts",require:"./isChromatic.js",import:"./isChromatic.mjs"},"./node":{types:"./dist/node.d.ts",require:"./dist/node.js",node:"./dist/node.js"},"./isChromatic":{types:"./isChromatic.d.ts",require:"./isChromatic.js",import:"./isChromatic.mjs"},"./package.json":"./package.json"},main:"isChromatic.js",module:"isChromatic.mjs",typesVersions:{"*":{"*":["./isChromatic.d.ts"],isChromatic:["./isChromatic.d.ts"],node:["dist/node.d.ts"]}},bin:{chroma:"dist/bin.js",chromatic:"dist/bin.js","chromatic-cli":"dist/bin.js"},files:["dist/*.js","dist/node.d.ts","isChromatic.js","isChromatic.mjs","isChromatic.d.ts"],resolutions:{"any-observable":"^0.5.1"},devDependencies:{"@actions/core":"^1.10.0","@actions/github":"^5.0.0","@antfu/ni":"^0.21.5","@auto-it/slack":"^11.1.6","@discoveryjs/json-ext":"^0.5.7","@eslint-community/eslint-plugin-eslint-comments":"^4.3.0","@sentry/cli":"^2.37.0","@sentry/node":"^8.30.0","@snyk/dep-graph":"^2.9.0","@storybook/addon-essentials":"^8.1.5","@storybook/addon-webpack5-compiler-swc":"^1.0.3","@storybook/csf-tools":"^8.1.5","@storybook/linter-config":"^4.0.0","@storybook/react":"^8.1.5","@storybook/react-webpack5":"^8.1.5","@tsconfig/node16":"^16.1.1","@types/archiver":"^5.3.1","@types/async-retry":"^1.4.3","@types/cross-spawn":"^6.0.2","@types/fs-extra":"^9.0.13","@types/jsonfile":"^6.0.1","@types/listr":"^0.14.4","@types/node":"18.x","@types/picomatch":"^2.3.0","@types/progress-stream":"^2.0.2","@types/prompts":"^2.4.9","@types/semver":"^7.3.9","@types/webpack-env":"^1.18.5","@types/ws":"^8","@typescript-eslint/eslint-plugin":"^6.8.0","@typescript-eslint/parser":"^6.8.0","@vitest/coverage-v8":"^2.0.5","ansi-html":"0.0.9","any-observable":"^0.5.1",archiver:"^5.3.0","async-retry":"^1.3.3",auto:"^11.0.5",boxen:"^7.1.1",chalk:"^4.1.2","clean-package":"^2.2.0",cpy:"^8.1.2","cross-env":"^7.0.3","cross-spawn":"^7.0.2",debug:"^4.3.2",dotenv:"^16.4.5","env-ci":"^11.1.0",eslint:"^9.10.0","eslint-config-prettier":"^9.0.0","eslint-plugin-import":"^2.28.1","eslint-plugin-jsdoc":"^48.2.6","eslint-plugin-json":"^3.1.0","eslint-plugin-no-secrets":"^1.0.2","eslint-plugin-react":"^7.33.2","eslint-plugin-security":"^3.0.0","eslint-plugin-simple-import-sort":"^12.1.0","eslint-plugin-sort-class-members":"^1.20.0","eslint-plugin-unicorn":"^53.0.0",esm:"^3.2.25",execa:"^9.6.0","fake-tag":"^2.0.0",filesize:"^10.1.0","find-up":"^7.0.0","formdata-node":"^6.0.3","fs-extra":"^10.0.0",globals:"^15.3.0","https-proxy-agent":"^7.0.2",husky:"^7.0.0",json5:"^2.2.3",jsonfile:"^6.0.1","junit-report-builder":"3.1.0",listr:"0.14.3","listr-update-renderer":"^0.5.0",meow:"^9.0.0","mock-fs":"^5.1.2","no-proxy":"^1.0.3","node-ask":"^1.0.1","node-fetch":"3.2.10","npm-run-all":"^4.0.2",observable:"^2.1.4","os-browserify":"^0.3.0","p-limit":"3.1.0",picomatch:"2.2.2","pkg-up":"^3.1.0",pluralize:"^8.0.0",prettier:"^3.2.5","progress-stream":"^2.0.0",prompts:"^2.4.2","prop-types":"^15.7.2",react:"^17.0.2","react-dom":"^17.0.2","read-package-up":"^11.0.0",semver:"^7.3.5",slash:"^3.0.0","snyk-nodejs-lockfile-parser":"^1.58.18","snyk-nodejs-plugin":"^1.4.3","sort-package-json":"1.50.0",storybook:"^8.1.5","string-argv":"^0.3.1","strip-ansi":"^7.1.0","tmp-promise":"3.0.2","ts-dedent":"^1.0.0","ts-loader":"^9.2.5",tsup:"^7.2.0",typescript:"^5.2.2","typescript-eslint":"^7.11.0","util-deprecate":"^1.0.2",uuid:"^8.3.2",vite:"^4.4.9","vite-tsconfig-paths":"^5.1.4",vitest:"^2.0.5","why-is-node-running":"^2.1.2",ws:"^8.18.2","xxhash-wasm":"^1.0.2","yarn-or-npm":"^3.0.1","zen-observable":"^0.8.15",zod:"^3.22.2"},peerDependencies:{"@chromatic-com/cypress":"^0.*.* || ^1.0.0","@chromatic-com/playwright":"^0.*.* || ^1.0.0"},peerDependenciesMeta:{"@chromatic-com/cypress":{optional:!0},"@chromatic-com/playwright":{optional:!0}},publishConfig:{access:"public",registry:"https://registry.npmjs.org/"},docs:"https://www.chromatic.com/docs/cli",storybook:{icon:"https://user-images.githubusercontent.com/263385/101995175-2e087800-3c96-11eb-9a33-9860a1c3ce62.gif",displayName:"Chromatic"}};function Tj(e){let{input:t,flags:r,help:n}=(0, Pbe.default)(`
Chromatic CLI
https://www.chromatic.com/docs/cli
Usage
$ chromatic --project-token <token>
Required options
--project-token, -t <token> The unique code for your project. Alternatively, set CHROMATIC_PROJECT_TOKEN.
Storybook options
--build-script-name, -b [name] The npm script that builds your Storybook we should take snapshots against. Use this if your Storybook build script is named differently. [build-storybook]
--build-command <command> The command that builds your Storybook we should take snapshots against. Use this if your Storybook build command does not exist in "scripts" of your package.json (like using NX). Requires --output-dir.
--output-dir, -o <dirname> Relative path to target directory for building your Storybook, in case you want to preserve it. Otherwise a temporary directory is used if possible.
--storybook-build-dir, -d <dirname> If you have already built your Storybook, provide the path to the static build directory.
Chromatic options
--auto-accept-changes [branch] If there are any changes to the build, automatically accept them. Only for [branch], if specified. Globs are supported via picomatch.
--branch-name <branch> Override the branch name. Only meant to be used for unsupported CI integrations and fixing cross-fork PR comparisons. Also accepts <owner>:<branch> format.
--ci Mark this build as a CI build. Alternatively, set the 'CI' environment variable (present in most CI systems). This option implies --no-interactive.
--config-file, -c <path> Path to a configuration file containing the options listed in JSON format. Uses "chromatic.config.json" by default.
--exit-once-uploaded [branch] Exit with 0 once the built version has been published to Chromatic. Only for [branch], if specified. Globs are supported via picomatch.
--exit-zero-on-changes [branch] If all snapshots render but there are visual changes, exit with code 0 rather than the usual exit code 1. Only for [branch], if specified. Globs are supported via picomatch.
--externals <filepath> Disable TurboSnap when any of these files have changed since the baseline build. Globs are supported via picomatch. This flag can be specified multiple times. Requires --only-changed.
--ignore-last-build-on-branch <branch> Do not use the last build on this branch as a baseline if it is no longer in history (i.e. branch was rebased). Globs are supported via picomatch.
--only-changed [branch] Enables TurboSnap: Only run stories affected by files changed since the baseline build. Only for [branch], if specified. Globs are supported via picomatch. All other snapshots will be inherited from the prior commit.
--only-story-files <filepath> Only run a single story or a subset of stories by their filename(s). Specify the full path to the story file relative to the root of your Storybook project. Globs are supported via picomatch. This flag can be specified multiple times.
--only-story-names <storypath> Only run a single story or a subset of stories. Story paths typically look like "Path/To/Story". Globs are supported via picomatch. This flag can be specified multiple times.
--patch-build <headbranch...basebranch> Create a patch build to fix a missing PR comparison.
--repository-slug <slug> Override the repository slug. Only meant to be used for unsupported CI integrations and fixing cross-fork PR comparisons. Format: <ownerName>/<repoName>.
--skip [branch] Skip Chromatic tests, but mark the commit as passing. Avoids blocking PRs due to required merge checks. Only for [branch], if specified. Globs are supported via picomatch.
--storybook-base-dir <dirname> Relative path from repository root to Storybook project root. Use with --only-changed and --storybook-build-dir when running Chromatic from a different directory than your Storybook.
--storybook-config-dir <dirname> Relative path from where you run Chromatic to your Storybook config directory ('.storybook'). Use with --only-changed and --storybook-build-dir when using a custom --config-dir (-c) flag for Storybook. [.storybook]
--untraced <filepath> Disregard these files and their dependencies when tracing dependent stories for TurboSnap. Globs are supported via picomatch. This flag can be specified multiple times. Requires --only-changed.
--zip Publish your Storybook to Chromatic as a single zip file instead of individual content files.
--skip-update-check Skip checking for available Chromatic package update.
Debug options
--debug Output verbose debugging information. This option implies --no-interactive, --diagnostics-file, --log-file.
--diagnostics-file [filepath] Write process context information to a JSON file. Disable via --no-diagnostics-file. [chromatic-diagnostics.json]
--dry-run Run without actually publishing to Chromatic.
--force-rebuild [branch] Do not skip build when a rebuild is detected. Only for [branch], if specified. Globs are supported via picomatch.
--junit-report [filepath] Write build results to a JUnit XML file. {buildNumber} will be replaced with the actual build number. [chromatic-build-{buildNumber}.xml]
--list List available stories. This requires running a full build.
--log-file [filepath] Write log output to a file. Disable via --no-log-file. [chromatic.log]
--log-level <level> One of "silent", "error", "warn", "info", "debug". Defaults to "info".
--log-prefix <prefix> Prefix for each log line. Defaults to current timestamp except in interactive mode. Set to "" to disable.
--no-file-hashing Disable file hashing. This will cause all files to be uploaded on every build.
--no-interactive Don't ask interactive questions about your setup and don't overwrite output. Always true in non-TTY environments.
--storybook-log-file [filepath] Write Storybook build output to a file. Disable via --no-storybook-log-file. [storybook-build.log]
--trace-changed [mode] Print dependency trace for changed files to affected story files. Set to "expanded" to list individual modules. Requires --only-changed.
--upload-metadata Upload Chromatic metadata files as part of the published Storybook. Includes diagnostics and log files, among others. This option enables --diagnostics-file, --log-file and --storybook-log-file, unless explicitly disabled via the 'no-' prefix.
Deprecated options
--preserve-missing Treat missing stories as unchanged rather than deleted when comparing to the baseline.
`,{argv:e,booleanDefault:void 0,description:!1,pkg:{},version:Sj.version,flags:{projectToken:{type:"string",alias:"t",isMultiple:!0},buildScriptName:{type:"string",alias:"b"},buildCommand:{type:"string"},outputDir:{type:"string",alias:"o",isMultiple:!0},storybookBuildDir:{type:"string",alias:"d",isMultiple:!0},autoAcceptChanges:{type:"string"},branchName:{type:"string"},ci:{type:"boolean"},configFile:{type:"string",alias:"c"},exitOnceUploaded:{type:"string"},exitZeroOnChanges:{type:"string"},externals:{type:"string",isMultiple:!0},ignoreLastBuildOnBranch:{type:"string"},onlyChanged:{type:"string"},onlyStoryFiles:{type:"string",isMultiple:!0},onlyStoryNames:{type:"string",isMultiple:!0},patchBuild:{type:"string"},repositorySlug:{type:"string"},skip:{type:"string"},storybookBaseDir:{type:"string"},storybookConfigDir:{type:"string"},untraced:{type:"string",isMultiple:!0},zip:{type:"boolean"},debug:{type:"boolean"},diagnosticsFile:{type:"string"},dryRun:{type:"boolean"},fileHashing:{type:"boolean",default:!0},forceRebuild:{type:"string"},interactive:{type:"boolean",default:!0},junitReport:{type:"string"},list:{type:"boolean"},logFile:{type:"string"},logLevel:{type:"string",choices:["silent","error","warn","info","debug"]},logPrefix:{type:"string"},storybookLogFile:{type:"string"},traceChanged:{type:"string"},uploadMetadata:{type:"boolean"},preserveMissing:{type:"boolean"}}});return {argv:e,input:t,flags:r,help:n,pkg:Sj}}var P3e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.e());var myt="array",yyt="bit",Cbe="bits",gyt="byte",wbe="bytes",mS="",Syt="exponent",Tyt="function",Ibe="iec",Eyt="Invalid number",byt="Invalid rounding method",Ej="jedec",vyt="object",Obe=".",_yt="round",xyt="s",Ayt="si",Pyt="kbit",Cyt="kB",wyt=" ",Iyt="string",Oyt="0",bj={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function _o(e,{bits:t=!1,pad:r=!1,base:n=-1,round:i=2,locale:s=mS,localeOptions:a={},separator:o=mS,spacer:u=wyt,symbols:l={},standard:c=mS,output:p=Iyt,fullform:h=!1,fullforms:f=[],exponent:d=-1,roundingMethod:m=_yt,precision:y=0}={}){let g=d,v=Number(e),E=[],S=0,x=mS;c===Ayt?(n=10,c=Ej):c===Ibe||c===Ej?n=2:n===2?c=Ibe:(n=10,c=Ej);let b=n===10?1e3:1024,A=h===!0,D=v<0,P=Math[m];if(typeof e!="bigint"&&isNaN(e))throw new TypeError(Eyt);if(typeof P!==Tyt)throw new TypeError(byt);if(D&&(v=-v),(g===-1||isNaN(g))&&(g=Math.floor(Math.log(v)/Math.log(b)),g<0&&(g=0)),g>8&&(y>0&&(y+=8-g),g=8),p===Syt)return g;if(v===0)E[0]=0,x=E[1]=bj.symbol[c][t?Cbe:wbe][g];else {S=v/(n===2?Math.pow(2,g*10):Math.pow(1e3,g)),t&&(S=S*8,S>=b&&g<8&&(S=S/b,g++));let V=Math.pow(10,g>0?i:0);E[0]=P(S*V)/V,E[0]===b&&g<8&&d===-1&&(E[0]=1,g++),x=E[1]=n===10&&g===1?t?Pyt:Cyt:bj.symbol[c][t?Cbe:wbe][g];}if(D&&(E[0]=-E[0]),y>0&&(E[0]=E[0].toPrecision(y)),E[1]=l[E[1]]||E[1],s===!0?E[0]=E[0].toLocaleString():s.length>0?E[0]=E[0].toLocaleString(s,a):o.length>0&&(E[0]=E[0].toString().replace(Obe,o)),r&&Number.isInteger(E[0])===!1&&i>0){let V=o||Obe,X=E[0].toString().split(V),oe=X[1]||mS,le=oe.length,Be=i-le;E[0]=`${X[0]}${V}${oe.padEnd(le+Be,Oyt)}`;}return A&&(E[1]=f[g]?f[g]:bj.fullform[c][g]+(t?yyt:gyt)+(E[0]===1?mS:xyt)),p===myt?E:p===vyt?{value:E[0],symbol:E[1],exponent:g,unit:x}:E.join(u)}var Dyt='<svg viewBox="0 0 1024 1024"><path d="M743.52 529.234c5.616-5.616 83.048-83.046 88.462-88.46 30.944-32.778 47.97-75.636 47.97-120.792 0-47.048-18.304-91.26-51.542-124.484-33.228-33.22-77.43-51.516-124.458-51.516-45.024 0-87.792 16.94-120.536 47.72l-104.458 104.456c-30.792 32.738-47.734 75.512-47.734 120.548 0 41.916 14.576 81.544 41.248 113.196 3.264 3.876 6.666 7.664 10.292 11.29 4.258 4.258 8.704 8.262 13.304 12.022 0.054 0.080 0.096 0.152 0.148 0.232 9.572 7.308 15.778 18.804 15.778 31.776 0 22.094-17.914 40-40.004 40-8.542 0-16.442-2.696-22.938-7.26-2.746-1.93-20.622-17.43-30.35-28.050-0.008-0.010-0.018-0.018-0.026-0.028-4.992-5.432-13.234-15.23-18.552-22.65s-16.556-25.872-17.036-26.736c-0.7-1.262-2.974-5.526-3.422-6.39-0.69-1.334-6.118-12.67-6.114-12.67-14.342-31.96-22.332-67.4-22.332-104.728 0-60.826 21.198-116.648 56.58-160.544 0.252-0.314 4.61-5.594 6.594-7.866 0.304-0.35 5.038-5.636 7.16-7.874 0.252-0.268 105.86-105.874 106.128-106.126 45.902-43.584 107.958-70.314 176.264-70.314 141.382 0 255.998 114.5 255.998 256 0 68.516-26.882 130.688-70.652 176.61-0.144 0.148-109.854 109.546-112.090 111.528-0.958 0.848-5.072 4.352-5.072 4.352-6.448 5.434-13.132 10.592-20.1 15.378 0.412-6.836 0.644-13.702 0.644-20.6 0-26.46-3.108-52.206-8.918-76.918l-0.236-1.102zM616.144 767.82c35.382-43.896 56.58-99.718 56.58-160.544 0-37.328-7.99-72.768-22.332-104.728 0.004 0 0.006-0.002 0.010-0.004-0.258-0.576-0.538-1.14-0.8-1.714-0.686-1.498-2.894-6.112-3.296-6.93-0.668-1.344-2.952-5.732-3.386-6.604-3.48-6.982-8.708-15.126-9.49-16.366-0.498-0.792-0.996-1.58-1.502-2.364-0.834-1.29-15.364-22.066-26.656-34.466-0.008-0.010-0.018-0.018-0.026-0.028-7.056-8.448-24.932-24.198-30.35-28.050-6.47-4.602-14.396-7.26-22.938-7.26-22.090 0-40.004 17.906-40.004 40 0 12.97 6.206 24.466 15.778 31.776 0.052 0.080 0.094 0.152 0.148 0.232 4.602 3.76 20.334 19.434 23.598 23.31 26.672 31.65 41.248 71.28 41.248 113.196 0 45.038-16.944 87.81-47.734 120.548l-104.458 104.456c-32.742 30.782-75.512 47.72-120.536 47.72-47.028 0-91.228-18.294-124.458-51.516-33.236-33.224-51.542-77.436-51.542-124.484 0-45.154 17.028-88.014 47.97-120.792 5.414-5.414 40.812-40.812 68.958-68.958 7.176-7.176 13.888-13.886 19.504-19.502v-0.002c-0.356-1.562-0.246-1.096-0.246-1.096-5.81-24.712-8.918-50.458-8.918-76.918 0-6.898 0.232-13.764 0.644-20.6-6.966 4.788-20.1 15.33-20.1 15.33-0.734 0.62-9.518 8.388-11.68 10.45-0.16 0.154-105.338 105.33-105.482 105.478-43.77 45.922-70.652 108.094-70.652 176.61 0 141.5 114.616 256 255.998 256 68.306 0 130.362-26.73 176.264-70.314 0.27-0.254 105.876-105.86 106.128-106.126 0.004-0.002 13.506-15.426 13.758-15.74z"></path></svg>',Dbe=({announcedBuild:e,build:t},r,n=new Date)=>`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Build ${e.number} metadata files</title>
<style>
body {
-webkit-font-smoothing: antialiased;
font-family: 'Nunito Sans', sans-serif;
font-size: 14px;
line-height: 1;
background: #F6F9FC;
color: #5C6870;
margin: 20px;
}
h1 {
margin: 0 0 6px 0;
color: #2E3438;
font-size: 28px;
font-weight: 700;
}
ul {
margin: 1em 2em;
padding: 0;
line-height: 1.7;
}
a {
display: inline-block;
color: #029cfd;
text-decoration: none;
font-weight: bold;
}
a:hover {
text-decoration: underline;
}
svg {
width: 20px;
height: 20px;
}
path {
fill: currentColor;
}
</style>
<link rel="stylesheet" data-href="https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap"/>
</head>
<body>
<h1>Build ${e.number} ${t?`<a href="${t.webUrl}">${Dyt}</a>`:""} </h1>
<span>Metadata files</span>
<ul>
${r.map(({targetPath:i,contentLength:s})=>{let a=i.replace(/^\.chromatic\//,""),o=_o(s);return `<li><a href="${a}">${a}</a> <small>(${o})</small></li>`}).join("")}
</ul>
<small>Generated on ${n.toLocaleString("en",{timeStyle:"medium",dateStyle:"full",hourCycle:"h24",timeZone:"UTC"})} UTC</small>
</body>
</html>`;var Nbe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Rbe=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var Mbe=(e,t)=>{let r=(0, Rbe.default)("metadata file",t.length,!0),n=`- ${t.map(i=>i.targetPath.replace(/^\.chromatic\//,"")).join(`
- `)}`;return Nbe.default`${chunkF6FLWRPJ_js.E} Uploading {bold ${r}} to ${chunkHZVCNUTP_js.f(e)}\n${n}`};var AD=chunkTKGT252T_js.e(CLe()),NLe=chunkTKGT252T_js.e(chunkIM5VGDJQ_js.a()),RLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.z()),MLe=chunkTKGT252T_js.e(chunkHZVCNUTP_js.a());function Q7(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,i=e,s=[];t&&s.push(t),r&&s.push(r);var a;do a=n.exec(i),a!==null&&s.push(O_r(a[1],a[6],a[0]));while(a!==null);return s}function O_r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++){var n=e[r];if(typeof n=="string")return n}}var wLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),ILe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var I_=e=>(0, ILe.dedent)(wLe.default`
${chunkF6FLWRPJ_js.H} {bold Storybook package not installed}
Could not find {bold ${e}} in {bold node_modules}.
Most likely, you forgot to run {bold npm install} or {bold yarn} before running Chromatic.
`);var O_={webpack4:"@storybook/builder-webpack4",webpack5:"@storybook/builder-webpack5","@storybook/vite-builder":"@storybook/builder-vite","@storybook/builder-webpack5":"@storybook/react-webpack5","@storybook/react-vite":"@storybook/builder-vite"};var OLe=e=>new Promise((t,r)=>e.then(r,t)),DLe=e=>OLe(Promise.all(e.map(t=>OLe(t))).then(t=>t[0])),D_=e=>new Promise((t,r)=>{setTimeout(()=>r(new Error("Timeout while resolving Storybook view layer package")),e);});var Qc={"@storybook/react":"react","@storybook/vue":"vue","@storybook/vue3":"vue3","@storybook/angular":"angular","@storybook/html":"html","@storybook/web-components":"web-components","@storybook/polymer":"polymer","@storybook/ember":"ember","@storybook/marko":"marko","@storybook/mithril":"mithril","@storybook/riot":"riot","@storybook/svelte":"svelte","@storybook/preact":"preact","@storybook/rax":"rax","@storybook/react-webpack5":"@storybook/react-webpack5","@storybook/react-vite":"react"};var xD=e=>{try{let t=ux__namespace.default.resolve(`node_modules/${e}/package.json`);return (0,NLe.readJson)(t)}catch(t){return Promise.reject(t)}},N_r=({dependencies:e,devDependencies:t,peerDependencies:r},n)=>[Object.keys(e||{}).find(i=>n(i)),Object.keys(t||{}).find(i=>n(i)),Object.keys(r||{}).find(i=>n(i))],R_r=({packageJson:e,log:t},r)=>{let[n,i,s]=N_r(e,l=>r[l]),[a,o]=n||i||s||[],u=Qc[a];return n&&i&&n[0]===i[0]&&t.warn(`Found "${n[0]}" in both "dependencies" and "devDependencies". This is probably a mistake.`),n&&s&&n[0]===s[0]&&t.warn(`Found "${n[0]}" in both "dependencies" and "peerDependencies". This is probably a mistake.`),{dependency:u,version:o,dependencyPackage:a}},M_r=async({env:e,log:t,options:r,packageJson:n})=>{if(e.CHROMATIC_STORYBOOK_VERSION){let[,o,u]=e.CHROMATIC_STORYBOOK_VERSION.match(/(.+)@(.+)$/)||[],l=MLe.default.valid(u);if(!o||!l)throw new Error('Invalid CHROMATIC_STORYBOOK_VERSION; expecting something like "@storybook/react@6.2.0".');if(!(Qc[o]||Qc[`@storybook/${o}`]))throw new Error(`Unsupported viewlayer specified in CHROMATIC_STORYBOOK_VERSION: ${o}`);return {version:l}}let{dependency:i,version:s,dependencyPackage:a}=R_r({log:t,packageJson:n},Qc);return i?r.storybookBuildDir?{version:s}:Promise.race([xD(a).then(o=>({version:o.version})).catch(()=>{throw new Error(I_(a))}),D_(1e4)]):(r.interactive||t.info("No viewlayer package listed in dependencies. Checking transitive dependencies."),Promise.race([DLe(Object.entries(Qc).map(async([o])=>({version:(await xD(o)).version}))).catch(()=>{throw new Error(I_(a))}),D_(1e4)]))},L_r=async({options:e,packageJson:t})=>{let{scripts:r={}}=t;if(!e.buildScriptName||!r[e.buildScriptName])return {};let{flags:n}=(0, RLe.default)({argv:Q7(r[e.buildScriptName]),flags:{configDir:{type:"string",alias:"c"},staticDir:{type:"string",alias:"s"}}});return {configDir:n.configDir,staticDir:n.staticDir&&n.staticDir.split(",")}},k_r=async(e,t)=>{if(!e)return {builder:{name:"unknown",packageVersion:"0"}};let r=t?e.getSafeFieldValue(["framework"]):e==null?void 0:e.framework,n=t?e.getSafeFieldValue(["core"]):e==null?void 0:e.core;if(r!=null&&r.name){let s=r.name;return Promise.race([xD(s).then(a=>({builder:{name:s,packageVersion:a.version}})).catch(()=>{throw new Error(I_(s))}),D_(1e4)])}let i="webpack4";if(n!=null&&n.builder){let{builder:s}=n;i=typeof s=="string"?s:s.name;}return Promise.race([xD(O_[i]).then(s=>({builder:{name:i,packageVersion:s.version}})).catch(()=>{throw new Error(I_(O_[i]))}),D_(1e4)])},PD=async(e,t)=>{let r=e.options.storybookConfigDir??".storybook",i=(await promises.readdir(r)).find(s=>t.test(s));return i&&ux__namespace.default.join(r,i)},LLe=async e=>{let t=e.options.storybookConfigDir??".storybook",r=typeof __non_webpack_require__>"u"?chunkTKGT252T_js.a:__non_webpack_require__,n,i=!1;try{n=await r(ux__namespace.default.resolve(t,"main")),e.log.debug({configDirectory:t,mainConfig:n});}catch(o){e.log.debug({storybookV6error:o});try{let u=await PD(e,/^main\.[jt]sx?$/);if(!u)throw new Error("Failed to locate Storybook config file");n=await(0,AD.readConfig)(u),e.log.debug({configDirectory:t,mainConfig:(0,AD.printConfig)(n)}),i=!0;}catch(u){e.log.debug({storybookV7error:u});}}let s=await Promise.allSettled([L_r(e),M_r(e),k_r(n,i)]);e.log.debug(s);let a={};for(let o of s)o.status==="fulfilled"&&(a={...a,...o==null?void 0:o.value});return a};var kLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),FLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var BLe=({fileCount:e,maxFileCount:t})=>(0, FLe.dedent)(kLe.default`
${chunkF6FLWRPJ_js.H} {bold Attempted to upload too many files}
You're not allowed to upload more than ${t} files per build.
Your Storybook contains ${e} files. This is a very high number.
Do you have files in a static/public directory that shouldn't be there?
Contact customer support if you need to increase this limit.
`);var jLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C());var ULe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var qLe=({filePaths:e,maxFileSize:t})=>(0, ULe.dedent)(jLe.default`
${chunkF6FLWRPJ_js.H} {bold Attempted to exceed maximum file size}
You're attempting to upload files that exceed the maximum file size of ${_o(t)}.
Contact customer support if you need to increase this limit.
- ${e.map(r=>r).join(`
- `)}
`);var eH=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),VLe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());function HLe({target:e},t=!1){let r=F_r(e.targetPath)===e.targetPath?"The file may have been modified during the upload process.":"It seems the file path may contain illegal characters.",n=(0, VLe.dedent)(eH.default`
${chunkF6FLWRPJ_js.H} Failed to upload {bold ${e.localPath}} to {bold ${e.targetPath}}
${r}
${t?"":eH.default`Enable the {bold debug} option to get more information.`}
`);return t?n+JSON.stringify(e,void 0,2):n}function F_r(e){return e.split("/").map(t=>encodeURIComponent(t)).join("/")}var m3e=chunkTKGT252T_js.e(d3e()),y3e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.e());async function ZG(e,t){let r=(0, m3e.default)("zip",{zlib:{level:9}}),n=await(0, y3e.file)({postfix:".zip"}),i=fs$1.createWriteStream("",{fd:n.fd});return new Promise((s,a)=>{i.on("close",()=>{s({path:n.path,size:r.pointer()});}),r.on("warning",o=>{e.log.debug({err:o},"Received warning when creating zip file");}),r.on("error",o=>{a(o);}),r.pipe(i);for(let{localPath:o,targetPath:u}of t)e.log.debug(`Adding to zip archive: ${u}`),r.append(fs$1.createReadStream(o),{name:u});e.log.debug("Finalizing zip archive"),r.finalize().catch(o=>a(o));})}var E3e=chunkTKGT252T_js.e(Ug());var s$=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Gi=(e,t,r)=>(s$(e,t,"read from private field"),r?r.call(e):t.get(e)),Dm=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r);},bN=(e,t,r,n)=>(s$(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),g3e=(e,t,r)=>(s$(e,t,"access private method"),r),xi=e=>typeof e=="function",TIr=e=>typeof e=="object"&&e!=null&&!Array.isArray(e),EIr=e=>TIr(e)&&xi(e[Symbol.asyncIterator]),t$=65536;async function*T3e(e){if(e.byteLength<=t$){yield e;return}let t=0;for(;t<e.byteLength;){let r=Math.min(e.byteLength-t,t$),n=e.buffer.slice(t,t+r);t+=n.byteLength,yield new Uint8Array(n);}}async function*bIr(e){let t=e.getReader();for(;;){let{done:r,value:n}=await t.read();if(r)break;yield n;}}async function*S3e(e){for await(let t of e)yield*T3e(t);}var vIr=e=>{if(EIr(e))return S3e(e);if(xi(e.getReader))return S3e(bIr(e));throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")};async function*_Ir(e){let t=0;for(;t!==e.size;){let n=await e.slice(t,Math.min(e.size,t+t$)).arrayBuffer();t+=n.byteLength,yield new Uint8Array(n);}}async function*e$(e,t=!1){for(let r of e)ArrayBuffer.isView(r)?t?yield*T3e(r):yield r:xi(r.stream)?yield*vIr(r.stream()):yield*_Ir(r);}function*xIr(e,t,r=0,n){n??=t;let i=r<0?Math.max(t+r,0):Math.min(r,t),s=n<0?Math.max(t+n,0):Math.min(n,t),a=Math.max(s-i,0),o=0;for(let u of e){if(o>=a)break;let l=ArrayBuffer.isView(u)?u.byteLength:u.size;if(i&&l<=i)i-=l,s-=l;else {let c;ArrayBuffer.isView(u)?(c=u.subarray(i,Math.min(l,s)),o+=c.byteLength):(c=u.slice(i,Math.min(l,s)),o+=c.size),s-=l,i=0,yield c;}}}var Om,gN,nx,AIr=class r${constructor(t=[],r={}){if(Dm(this,Om,[]),Dm(this,gN,""),Dm(this,nx,0),r??={},typeof t!="object"||t===null)throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");if(!xi(t[Symbol.iterator]))throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");if(typeof r!="object"&&!xi(r))throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");let n=new TextEncoder;for(let s of t){let a;ArrayBuffer.isView(s)?a=new Uint8Array(s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)):s instanceof ArrayBuffer?a=new Uint8Array(s.slice(0)):s instanceof r$?a=s:a=n.encode(String(s)),bN(this,nx,Gi(this,nx)+(ArrayBuffer.isView(a)?a.byteLength:a.size)),Gi(this,Om).push(a);}let i=r.type===void 0?"":String(r.type);bN(this,gN,/^[\x20-\x7E]*$/.test(i)?i:"");}static[Symbol.hasInstance](t){return !!(t&&typeof t=="object"&&xi(t.constructor)&&(xi(t.stream)||xi(t.arrayBuffer))&&/^(Blob|File)$/.test(t[Symbol.toStringTag]))}get type(){return Gi(this,gN)}get size(){return Gi(this,nx)}slice(t,r,n){return new r$(xIr(Gi(this,Om),this.size,t,r),{type:n})}async text(){let t=new TextDecoder,r="";for await(let n of e$(Gi(this,Om)))r+=t.decode(n,{stream:!0});return r+=t.decode(),r}async arrayBuffer(){let t=new Uint8Array(this.size),r=0;for await(let n of e$(Gi(this,Om)))t.set(n,r),r+=n.length;return t.buffer}stream(){let t=e$(Gi(this,Om),!0);return new ReadableStream({async pull(r){let{value:n,done:i}=await t.next();if(i)return queueMicrotask(()=>r.close());r.enqueue(n);},async cancel(){await t.return();}})}get[Symbol.toStringTag](){return "Blob"}};Om=new WeakMap;gN=new WeakMap;nx=new WeakMap;var vN=AIr;Object.defineProperties(vN.prototype,{type:{enumerable:!0},size:{enumerable:!0},slice:{enumerable:!0},stream:{enumerable:!0},text:{enumerable:!0},arrayBuffer:{enumerable:!0}});var PIr=e=>e instanceof vN,SN,TN,n$=class extends vN{constructor(e,t,r={}){if(super(e,r),Dm(this,SN,void 0),Dm(this,TN,0),arguments.length<2)throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);bN(this,SN,String(t));let n=r.lastModified===void 0?Date.now():Number(r.lastModified);Number.isNaN(n)||bN(this,TN,n);}static[Symbol.hasInstance](e){return e instanceof vN&&e[Symbol.toStringTag]==="File"&&typeof e.name=="string"}get name(){return Gi(this,SN)}get webkitRelativePath(){return ""}get lastModified(){return Gi(this,TN)}get[Symbol.toStringTag](){return "File"}};SN=new WeakMap;TN=new WeakMap;var CIr=e=>e instanceof n$,Ol,EN,i$,_N=class{constructor(){Dm(this,EN),Dm(this,Ol,new Map);}static[Symbol.hasInstance](e){if(!e)return !1;let t=e;return !!(xi(t.constructor)&&t[Symbol.toStringTag]==="FormData"&&xi(t.append)&&xi(t.set)&&xi(t.get)&&xi(t.getAll)&&xi(t.has)&&xi(t.delete)&&xi(t.entries)&&xi(t.values)&&xi(t.keys)&&xi(t[Symbol.iterator])&&xi(t.forEach))}append(e,t,r){g3e(this,EN,i$).call(this,{name:e,fileName:r,append:!0,rawValue:t,argsLength:arguments.length});}set(e,t,r){g3e(this,EN,i$).call(this,{name:e,fileName:r,append:!1,rawValue:t,argsLength:arguments.length});}get(e){let t=Gi(this,Ol).get(String(e));return t?t[0]:null}getAll(e){let t=Gi(this,Ol).get(String(e));return t?t.slice():[]}has(e){return Gi(this,Ol).has(String(e))}delete(e){Gi(this,Ol).delete(String(e));}*keys(){for(let e of Gi(this,Ol).keys())yield e;}*entries(){for(let e of this.keys()){let t=this.getAll(e);for(let r of t)yield [e,r];}}*values(){for(let[,e]of this)yield e;}[Symbol.iterator](){return this.entries()}forEach(e,t){for(let[r,n]of this)e.call(t,n,r,this);}get[Symbol.toStringTag](){return "FormData"}};Ol=new WeakMap;EN=new WeakSet;i$=function({name:e,rawValue:t,append:r,fileName:n,argsLength:i}){let s=r?"append":"set";if(i<2)throw new TypeError(`Failed to execute '${s}' on 'FormData': 2 arguments required, but only ${i} present.`);e=String(e);let a;if(CIr(t))a=n===void 0?t:new n$([t],n,{type:t.type,lastModified:t.lastModified});else if(PIr(t))a=new n$([t],n===void 0?"blob":n,{type:t.type});else {if(n)throw new TypeError(`Failed to execute '${s}' on 'FormData': parameter 2 is not of type 'Blob'.`);a=String(t);}let o=Gi(this,Ol).get(e);if(!o)return void Gi(this,Ol).set(e,[a]);if(!r)return void Gi(this,Ol).set(e,[a]);o.push(a);};var b3e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.d());var IIr,BT=class{constructor(t,r,n){this[IIr]="Blob";this.size=r,this.readStream=fs$1.createReadStream(t),this.readStream.on("data",i=>n(i.length));}stream(){return this.readStream}};IIr=Symbol.toStringTag;async function a$(e,t,r){let{experimental_abortSignal:n}=e.options,i=(0, b3e.default)(10),s=0;await Promise.all(t.map(({contentLength:a,filePath:o,formAction:u,formFields:l,localPath:c})=>{let p=0;return e.log.debug(`Uploading ${o} (${_o(a)}) to ${u}`),i(()=>(0, E3e.default)(async h=>{if(n!=null&&n.aborted)return h(n.reason||new Error("Aborted"));let f=new BT(c,a,m=>{p+=m,s+=m,r==null||r(s);}),d=new _N;for(let[m,y]of Object.entries(l))d.append(m,y);d.append("file",f);try{await e.http.fetch(u,{body:d,method:"POST",signal:n},{retries:0}),e.log.debug(`Uploaded ${o} (${_o(a)})`);}catch{throw new Error(c)}},{retries:e.env.CHROMATIC_RETRIES,onRetry:h=>{s-=p,p=0,e.log.debug("Retrying upload for %s, %O",c,h),r==null||r(s);}}))}));}var v3e=chunkTKGT252T_js.e(Ug());async function _3e(e,t,r){let{experimental_abortSignal:n}=e.options,{contentLength:i,filePath:s,formAction:a,formFields:o,localPath:u}=t,l=0;return e.log.debug(`Uploading ${s} (${_o(i)})`),(0, v3e.default)(async c=>{if(n!=null&&n.aborted)return c(n.reason||new Error("Aborted"));let p=new BT(u,i,d=>{l+=d,r==null||r(l);}),h=new _N;for(let[d,m]of Object.entries(o))h.append(d,m);h.append("file",p);let f=await e.http.fetch(a,{body:h,method:"POST",signal:n},{retries:0});if(!f.ok)throw e.log.debug(`Uploading ${u} failed: %O`,f),new Error(u);e.log.debug(`Uploaded ${s} (${_o(i)})`);},{retries:e.env.CHROMATIC_RETRIES,onRetry:c=>{l=0,e.log.debug("Retrying upload for %s, %O",u,c),r(l);}})}var OIr=1e3,DIr=`
mutation UploadBuildMutation($buildId: ObjID!, $files: [FileUploadInput!]!, $zip: Boolean) {
uploadBuild(buildId: $buildId, files: $files, zip: $zip) {
info {
sentinelUrls
targets {
contentType
fileKey
filePath
formAction
formFields
}
zipTarget {
contentType
fileKey
filePath
formAction
formFields
}
}
userErrors {
__typename
... on UserError {
message
}
... on MaxFileCountExceededError {
maxFileCount
fileCount
}
... on MaxFileSizeExceededError {
maxFileSize
filePaths
}
}
}
}
`;async function x3e(e,t,r={}){var o,u,l,c,p;e.sentinelUrls=[],e.uploadedBytes=0,e.uploadedFiles=0;let n=[],i,s=[];for(let[h,f]of t.entries()){let d=Math.floor(h/OIr);s[d]||(s[d]=[]),s[d].push(f);}for(let[h,f]of s.entries()){e.log.debug(`Running uploadBuild batch ${h+1} / ${s.length}`);let{uploadBuild:d}=await e.client.runQuery(DIr,{buildId:e.announcedBuild.id,files:f.map(({contentHash:m,contentLength:y,targetPath:g})=>({contentHash:m,contentLength:y,filePath:g})),zip:e.options.zip});if(d.userErrors.length>0){for(let m of d.userErrors)m.__typename==="MaxFileCountExceededError"?e.log.error(BLe(m)):m.__typename==="MaxFileSizeExceededError"?e.log.error(qLe(m)):e.log.error(m.message);return (o=r.onError)==null?void 0:o.call(r,new Error("Upload rejected due to user error"))}e.sentinelUrls.push(...((u=d.info)==null?void 0:u.sentinelUrls)||[]),n.push(...((l=d.info)==null?void 0:l.targets.map(m=>({...f.find(g=>g.targetPath===m.filePath),...m})))||[]),(c=d.info)!=null&&c.zipTarget&&(i=d.info.zipTarget);}if(n.length===0){e.log.debug("No new files to upload, continuing");return}let a=n.reduce((h,{contentLength:f})=>h+f,0);if(i)try{let{path:h,size:f}=await ZG(e,n),d=a&&(a-f)/a;e.log.debug(`Compression reduced upload size by ${Math.round(d*100)}%`);let m={...i,contentLength:f,localPath:h};await _3e(e,m,y=>{var g;return (g=r.onProgress)==null?void 0:g.call(r,y,f)}),e.uploadedBytes+=f,e.uploadedFiles+=n.length;return}catch(h){e.log.debug({err:h},"Error uploading zip, falling back to uploading individual files");}try{await a$(e,n,h=>{var f;return (f=r.onProgress)==null?void 0:f.call(r,h,a)}),e.uploadedBytes+=a,e.uploadedFiles+=n.length;}catch(h){let f=n.find(d=>d.localPath===h.message);return f&&e.log.error(HLe({target:f},e.log.getLevel()==="debug")),(p=r.onError)==null?void 0:p.call(r,h,f==null?void 0:f.localPath)}}var NIr=`
mutation UploadMetadataMutation($buildId: ObjID!, $files: [FileUploadInput!]!) {
uploadMetadata(buildId: $buildId, files: $files) {
info {
targets {
contentType
fileKey
filePath
formAction
formFields
}
}
userErrors {
... on UserError {
message
}
}
}
}
`;async function A3e(e,t){let{uploadMetadata:r}=await e.client.runQuery(NIr,{buildId:e.announcedBuild.id,files:t.map(({contentHash:n,contentLength:i,targetPath:s})=>({contentHash:n,contentLength:i,filePath:s}))});if(r.info){let n=r.info.targets.map(i=>({...t.find(a=>a.targetPath===i.filePath),...i}));await a$(e,n);}r.userErrors.length>0&&r.userErrors.map(n=>e.log.warn(n.message));}var kIr=e=>new Promise(t=>fs$1.stat(e,(r,n)=>t(r?0:n.size)));async function C3e(e){if(!e.announcedBuild){e.log.warn("No build announced, skipping metadata upload.");return}return FIr(e,async()=>{var i;let t=[e.options.logFile,e.options.diagnosticsFile,e.options.storybookLogFile,await PD(e,/^main\.[jt]sx?$/).catch(()=>{}),await PD(e,/^preview\.[jt]sx?$/).catch(()=>{}),((i=e.fileInfo)==null?void 0:i.statsPath)&&await chunkIM5VGDJQ_js.b([e.fileInfo.statsPath])].filter(s=>!!s),n=(await Promise.all(t.map(async s=>{let a=await kIr(s),o=`.chromatic/${ux__namespace.default.basename(s)}`;return a&&{contentLength:a,localPath:s,targetPath:o}}))).filter(s=>!!s).sort((s,a)=>s.targetPath.localeCompare(a.targetPath,"en",{numeric:!0}));if(n.length===0){e.log.warn("No metadata files found, skipping metadata upload.");return}await(0,P3e.withFile)(async({path:s})=>{let a=Dbe(e,n);fs$1.writeFileSync(s,a),n.push({contentLength:a.length,localPath:s,targetPath:".chromatic/index.html"});let o=`${e.build.storybookUrl}.chromatic/`;e.log.info(Mbe(o,n)),await A3e(e,n);});})}async function FIr(e,t){e.log.pause();try{return await t()}finally{e.log.resume();}}var I3e=chunkTKGT252T_js.e(chunkLTE3MQL2_js.d());var w3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C());var xN=(e,t)=>w3e.default`${chunkF6FLWRPJ_js.E} Wrote ${t} report to {bold ${e}}`;var{writeFile:UIr}=I3e.default;async function O3e(e){if(e.options.diagnosticsFile)try{fs$1.mkdirSync(ux__namespace.default.dirname(e.options.diagnosticsFile),{recursive:!0}),await UIr(e.options.diagnosticsFile,qIr(e),{spaces:2}),e.log.info(xN(e.options.diagnosticsFile,"Chromatic diagnostics"));}catch(t){e.log.error(t);}}function qIr(e){let{argv:t,client:r,env:n,help:i,http:s,log:a,pkg:o,title:u,...l}=e,c=chunkHZVCNUTP_js.ba(l,"projectToken","reportToken","userToken");return Object.fromEntries(Object.keys(c).sort((p,h)=>p.localeCompare(h)).map(p=>[p,c[p]]))}var D3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),o$=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),Fn=({name:e,title:t,steps:r,...n})=>({title:t,task:async(i,s)=>{var a,o,u,l,c;i.task=e,i.title=t,i.startedAt=Number.isInteger(i.now)?i.now:Date.now(),(o=(a=i.options).experimental_onTaskStart)==null||o.call(a,{...i});for(let p of r)(u=i.options.experimental_abortSignal)==null||u.throwIfAborted(),await p(i,s);(c=(l=i.options).experimental_onTaskComplete)==null||c.call(l,{...i});},...n}),VIr=(e,t)=>(r,n)=>{let i=typeof e=="function"?e(r,n):e,s=typeof t=="function"?t(r,n):t;n.title=s?`${i}
${D3e.default.dim(` \u2192 ${s}`)}`:i;},HIr=e=>(t,r)=>{r.output=typeof e=="function"?e(t,r):e;},St=(e,t=!1)=>(r,n)=>{let{title:i,output:s}=e(r);VIr(i,t?s:void 0)(r,n),!t&&s&&HIr(s)(r,n);},Dl=e=>{let t=Number.isInteger(e.now)?e.now:Date.now(),r=e.startedAt||0,n=Math.round((t-r)/1e3),i=(0, o$.default)("second",Math.floor(n%60),!0);if(n<60)return i;let s=(0, o$.default)("minute",Math.floor(n/60),!0);return n%60?`${s} ${i}`:s};var N3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),R3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var M3e=({projectId:e})=>(0, R3e.dedent)(N3e.default`
${chunkF6FLWRPJ_js.H} Invalid project ID: ${e}
You may not sufficient permissions to create builds on this project, or it may not exist.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/quickstart/")}
`);var L3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),k3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var F3e=({projectToken:e})=>(0, k3e.dedent)(L3e.default`
${chunkF6FLWRPJ_js.H} Invalid {bold --project-token} '${e}'
You can find your project token on the Manage screen in your Chromatic project.
Sign in to Chromatic at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/start")}
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/quickstart/")}
`);var GIr=e=>"*".repeat(e.length-4)+e.slice(-4),B3e=e=>e.includes("dev")?" [dev]":e.includes("staging")?" [staging]":"",j3e={status:"initial",title:"Authenticate"},U3e=e=>({status:"pending",title:`Authenticating with Chromatic${B3e(e.env.CHROMATIC_INDEX_URL)}`,output:`Connecting to ${e.env.CHROMATIC_INDEX_URL}`}),q3e=e=>({status:"success",title:`Authenticated with Chromatic${B3e(e.env.CHROMATIC_INDEX_URL)}`,output:e.options.projectToken?`Using project token '${GIr(e.options.projectToken)}'`:`Using project ID '${e.options.projectId}' and user token`});var $Ir=`
mutation CreateCLITokenMutation($projectId: String!) {
cliToken: createCLIToken(projectId: $projectId)
}
`,KIr=`
mutation CreateAppTokenMutation($projectToken: String!) {
appToken: createAppToken(code: $projectToken)
}
`,YIr=async e=>{let{projectId:t,projectToken:r,userToken:n}=e.options;if(t&&n){let{cliToken:i}=await e.client.runQuery($Ir,{projectId:t},{endpoint:`${e.env.CHROMATIC_INDEX_URL}/api`,headers:{Authorization:`Bearer ${n}`}});return i}if(r){let{appToken:i}=await e.client.runQuery(KIr,{projectToken:r});return i}throw new Error("No projectId or projectToken")},WIr=async e=>{var t;try{let r=await YIr(e);e.client.setAuthorization(r);}catch(r){let n=(t=r[0])==null?void 0:t.message;throw n!=null&&n.match("Must login")||n!=null&&n.match("No Access")?new Error(M3e({projectId:e.options.projectId||""})):n!=null&&n.match("No app with code")?new Error(F3e({projectToken:e.options.projectToken})):r}};function u$(e){return Fn({name:"auth",title:j3e.title,steps:[St(U3e),WIr,St(q3e,!0)]})}var UT=chunkTKGT252T_js.e(chunkHZVCNUTP_js.a()),uje=chunkTKGT252T_js.e(chunkHZVCNUTP_js.e());var V3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),H3e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var AN=({dependencyName:e,flag:t,workingDir:r})=>(0, H3e.dedent)(V3e.default`
${chunkF6FLWRPJ_js.H} Failed to import \`${e}\`, is it installed in \`package.json\`?
${chunkF6FLWRPJ_js.E} To run \`chromatic --${t}\` you must have \`${e}\` installed.
${r?`
${chunkF6FLWRPJ_js.E} Chromatic looked in \`${r}\`. If that's not the right directory, you might need to set the \`workingDir\` option to the action.`:""}
`);var Jt=e=>En(e.options)?"test suite":e.isReactNativeApp?"React Native Storybook":"Storybook",PN=e=>e.charAt(0).toUpperCase()+e.slice(1);var G3e=e=>({status:"initial",title:`Build ${Jt(e)}`}),$3e=e=>({status:"pending",title:`Building your ${Jt(e)}`,output:`Running command: ${e.buildCommand}`}),K3e=e=>({status:"success",title:`${PN(Jt(e))} built in ${Dl(e)}`,output:`View build log at ${e.buildLogFile}`}),Y3e=e=>({status:"skipped",title:`Build ${Jt(e)} [skipped]`,output:`Using prebuilt ${Jt(e)} at ${e.options.storybookBuildDir}`}),W3e=e=>({status:"skipped",title:`Build ${Jt(e)} [skipped]`,output:"Using prebuilt React Native assets"}),X3e=e=>({status:"error",title:`Build ${Jt(e)}`,output:"Build directory required for React Native"}),ix=e=>({status:"error",title:`Building your ${Jt(e)}`,output:`Command failed: ${e.buildCommand}`});var sx="build-archive-storybook",XIr=e=>!e.startsWith("--")&&e.includes(" ")?JSON.stringify(e):e,zIr=(e,t)=>({npm:"npm exec {0}",yarn:"yarn {0}","yarn@berry":"yarn {0}",pnpm:"pnpm exec {0}","pnpm@6":"pnpm exec {0}",bun:"bun run {0}"})[e].replace("{0}",t.map(i=>XIr(i)).join(" ")).trim();async function z3e(e,t,r){if(e.options.inAction)return await chunkLAQIPRAO_js.d(zIr,[sx,...r],{programmatic:!0});let n=`@chromatic-com/${t}`;try{return ["node",chunkTKGT252T_js.a.resolve(`${n}/bin/${sx}`),...r].join(" ")}catch(i){throw i.code==="MODULE_NOT_FOUND"?(e.log.error(AN({dependencyName:n,flag:t})),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.MISSING_DEPENDENCY,!0),new Error(ix(e).output)):i}}var J3e=async()=>chunkLAQIPRAO_js.d(chunkLAQIPRAO_js.c,[],{programmatic:!0}),Q3e=async e=>chunkLAQIPRAO_js.d(chunkLAQIPRAO_js.b,e,{programmatic:!0}),Z3e=async e=>{if(!e)throw new Error("No package manager provided");let{stdout:t}=await chunkF6FLWRPJ_js.g(e,["--version"]),[r]=t.toString().trim().split(`
`,1);return r.trim().replace(/^v/,"")};var JIr=(e,t)=>{let r=e.options.interactive?100:e.env.CHROMATIC_OUTPUT_INTERVAL,n=e.env.CHROMATIC_TIMEOUT/r,i,s=(a=0)=>{t(a),a<n&&(i=setTimeout(()=>s(a+1),r));};return s(),{end:()=>clearTimeout(i)}},CN=async(e,t)=>{e.options.interactive||(e.activity=JIr(e,r=>{t.output=chunkHZVCNUTP_js.Y(r);}));},jT=e=>{e.activity&&e.activity.end();};var Nm=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),eje=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var tje=({options:e,buildCommand:t,buildLogFile:r,runtimeMetadata:n},{message:i},s)=>{let{buildScriptName:a,buildCommand:o}=e,u=(s==null?void 0:s.split(wi.EOL).filter(p=>p&&!p.startsWith("<s>")))||[],l=a||o,c=a?Nm.default`{bold npm run ${l}} or {bold yarn ${l}}`:Nm.default`{bold ${l}}`;return [(0, eje.dedent)(Nm.default`
The CLI tried to run your {bold ${l}} script, but the command failed. This indicates a problem with your Storybook. Here's what to do:
- Check the Storybook build log printed below.
- Run ${c} yourself and make sure it outputs a valid Storybook by opening the generated {bold index.html} in your browser.
- Review the build-storybook CLI options at ${chunkHZVCNUTP_js.f("https://storybook.js.org/docs/api/cli-options#build")}
`),i,Nm.default`${chunkF6FLWRPJ_js.E} Build command:\n{dim ${t}}`,Nm.default`${chunkF6FLWRPJ_js.E} Runtime metadata:\n{dim ${JSON.stringify(n,void 0,2)}}`,Nm.default`${chunkF6FLWRPJ_js.E} Storybook build output:\n{dim ${r}}`,u.join(`
`)].join(`
`)};var rje=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),nje=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var ije=({flag:e,errorMessage:t})=>(0, nje.dedent)(rje.default`
${chunkF6FLWRPJ_js.H} Failed to run \`chromatic --${e}\`:
${t}
`);var sje=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),aje=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var oje=()=>(0, aje.dedent)(sje.default`
${chunkF6FLWRPJ_js.H} {bold Build directory required for React Native}
React Native Storybook requires a pre-built directory containing your .apk and manifest.json files.
Set the {bold --storybook-build-dir} option to the path of your React Native build output.
`);var rOr=async e=>{if(e.options.outputDir)e.sourceDir=e.options.outputDir;else if(e.storybook&&e.storybook.version&&UT.default.lt(e.storybook.version,"5.0.0"))e.sourceDir="storybook-static";else {let t=await uje.default.dir({unsafeCleanup:!0,prefix:"chromatic-"});e.sourceDir=t.path;}},nOr=e=>e.storybook&&e.storybook.version?UT.default.gte(UT.default.coerce(e.storybook.version)||"0.0.0","6.2.0"):!0,iOr=e=>{var t;return (t=e==null?void 0:e.storybook)!=null&&t.version&&UT.default.gte(UT.default.coerce(e.storybook.version)||"0.0.0","8.5.0")?"--stats-json":"--webpack-stats-json"},sOr=async e=>{var n;let t=((n=e.flags)==null?void 0:n.buildCommand)||e.options.buildCommand,r=[];if(t||r.push(`--output-dir=${e.sourceDir}`),e.git.changedFiles&&(nOr(e)?r.push(`${iOr(e)}=${e.sourceDir}`):e.log.warn("Storybook version 6.2.0 or later is required to use the --only-changed flag")),t){e.buildCommand=`${t} ${r.join(" ")}`;return}if(En(e.options)){e.buildCommand=await z3e(e,e.options.playwright?"playwright":"cypress",r);return}if(!e.options.buildScriptName)throw new Error("Unable to determine build script");e.buildCommand=await Q3e([e.options.buildScriptName,...r]);},aOr=e=>new Promise((t,r)=>setTimeout(r,e,new Error("Operation timed out")));function oOr(e){return ["command not found",`[\\W]?${sx}[\\W]? not found`,"code E404","exit code 127",`command failed.*${sx}.*$`].some(r=>new RegExp(r,"gi").test(e))}function uOr(e,t,r){let n=r.options.playwright?"playwright":"cypress",i=e.message;if(oOr(i)){let s=`@chromatic-com/${n}`;return {exitCode:chunkHZVCNUTP_js.F.MISSING_DEPENDENCY,message:AN({dependencyName:s,flag:n,workingDir:t})}}return {exitCode:chunkHZVCNUTP_js.F.E2E_BUILD_FAILED,message:ije({flag:n,errorMessage:i})}}var lOr=async e=>{let t;e.options.storybookLogFile&&(e.buildLogFile=ux__namespace.default.resolve(e.options.storybookLogFile),t=fs$1.createWriteStream(e.buildLogFile),await new Promise((n,i)=>{t.on("open",n),t.on("error",i);}));let{experimental_abortSignal:r}=e.options;try{if(e.log.debug("Running build command:",e.buildCommand),e.log.debug("Runtime metadata:",JSON.stringify(e.runtimeMetadata,void 0,2)),!e.buildCommand)throw new Error("No build command configured");let[n,...i]=chunkF6FLWRPJ_js.f(e.buildCommand),s=chunkF6FLWRPJ_js.g(n,i,{stdio:[void 0,t,void 0],preferLocal:!1,cancelSignal:r,env:{CI:"1",NODE_ENV:e.env.STORYBOOK_NODE_ENV||"production",STORYBOOK_INVOKED_BY:"chromatic"}});await Promise.race([s,aOr(e.env.STORYBOOK_BUILD_TIMEOUT)]);}catch(n){if(En(e.options)){let s=uOr(n,process.cwd(),e);throw e.log.error(s.message),chunkHZVCNUTP_js.G(e,s.exitCode,!0),new Error(ix(e).output)}r==null||r.throwIfAborted();let i=e.buildLogFile&&fs$1.readFileSync(e.buildLogFile,"utf8");throw e.log.error(tje(e,n,i)),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.NPM_BUILD_STORYBOOK_FAILED,!0),new Error(ix(e).output)}finally{t==null||t.end();}};function l$(e){return Fn({name:"build",title:G3e(e).title,skip:async t=>{if(t.skip)return !0;if(t.isReactNativeApp){if(!t.options.storybookBuildDir)throw t.log.error(oje()),chunkHZVCNUTP_js.G(t,chunkHZVCNUTP_js.F.INVALID_OPTIONS,!0),new Error(X3e(t).output);return t.sourceDir=t.options.storybookBuildDir,W3e(t).output}return t.options.storybookBuildDir?(t.sourceDir=t.options.storybookBuildDir,Y3e(t).output):!1},steps:[rOr,sOr,St($3e),CN,lOr,jT,St(K3e,!0)]})}var j4e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.T());var cje=chunkTKGT252T_js.e(ax());function ox(e){return e.options.isLocalBuild?{localBuildEmailHash:gd(e.git.gitUserEmail||"")}:e.git.committerEmail?{localBuildEmailHash:gd(e.git.committerEmail)}:{isLocalBuild:!1}}var cOr=cje.default`
query BaselineCommitsQuery(
$branch: String!
$parentCommits: [String!]!
$localBuilds: LocalBuildsSpecifierInput!
) {
app {
baselineBuilds(branch: $branch, parentCommits: $parentCommits, localBuilds: $localBuilds) {
id
number
status(legacy: false)
commit
committedAt
uncommittedHash
isLocalBuild
changeCount
}
}
}
`;async function pje(e,{branch:t,parentCommits:r}){let{app:n}=await e.client.runQuery(cOr,{branch:t,parentCommits:r,localBuilds:ox(e)});return n.baselineBuilds}var fje=chunkTKGT252T_js.e(ax());var pOr=fje.default`
query AncestorBuildsQuery($buildNumber: Int!, $skip: Int!, $limit: Int!) {
app {
build(number: $buildNumber) {
ancestorBuilds(skip: $skip, limit: $limit) {
id
number
commit
uncommittedHash
isLocalBuild
}
}
}
}
`;async function hje(e,t,{page:r=10,limit:n=80}={}){let i=0;for(;i<n;){let{app:s}=await e.client.runQuery(pOr,{buildNumber:t,skip:i,limit:Math.min(r,n-i)}),a=await Promise.all(s.build.ancestorBuilds.map(async u=>{let l=await chunkHZVCNUTP_js.o(e,u.commit);return [u,l]})),o=a.find(([u,l])=>!(u.isLocalBuild&&u.uncommittedHash)&&l);if(o)return o[0];if(a.length<r)return;i+=r;}}async function dje(e,t){try{if(t.isLocalBuild&&t.uncommittedHash)throw new Error("Local build had uncommitted changes");return {changedFiles:await chunkHZVCNUTP_js.p(e,t.commit)||[]}}catch(r){if(e.log.debug(`Got error fetching commit for #${t.number}(${t.commit}): ${r.message}`),/(bad object|uncommitted changes)/.test(r.message)){let n=await hje(e,t.number);if(n)return e.log.debug(`Found replacement build for #${t.number}(${t.commit}): #${n.number}(${n.commit})`),{changedFiles:await chunkHZVCNUTP_js.p(e,n.commit)||[],replacementBuild:n};e.log.debug(`Couldn't find replacement for #${t.number}(${t.commit})`);}throw r}}var mje={detect({env:e}){return !!e.APPVEYOR},configuration({env:e}){let t=e.APPVEYOR_PULL_REQUEST_NUMBER,r=!!t;return {name:"Appveyor",service:"appveyor",commit:e.APPVEYOR_REPO_COMMIT,tag:e.APPVEYOR_REPO_TAG_NAME,build:e.APPVEYOR_BUILD_NUMBER,buildUrl:`https://ci.appveyor.com/project/${e.APPVEYOR_PROJECT_SLUG}/build/${e.APPVEYOR_BUILD_VERSION}`,branch:e.APPVEYOR_REPO_BRANCH,job:e.APPVEYOR_JOB_NUMBER,jobUrl:`https://ci.appveyor.com/project/${e.APPVEYOR_PROJECT_SLUG}/build/job/${e.APPVEYOR_JOB_ID}`,pr:t,isPr:r,prBranch:e.APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH,slug:e.APPVEYOR_REPO_NAME,root:e.APPVEYOR_BUILD_FOLDER}}};function wN(e){return (/\d+(?!.*\d+)/.exec(e)||[])[0]}function bh(e){return e?/^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(e)[1]:void 0}var yje={detect({env:e}){return !!e.BUILD_BUILDURI},configuration({env:e}){let t=e.SYSTEM_PULLREQUEST_PULLREQUESTID,r=!!t;return {name:"Azure Pipelines",service:"azurePipelines",commit:e.BUILD_SOURCEVERSION,build:e.BUILD_BUILDNUMBER,branch:bh(r?e.SYSTEM_PULLREQUEST_TARGETBRANCH:e.BUILD_SOURCEBRANCH),pr:t,isPr:r,prBranch:bh(r?e.SYSTEM_PULLREQUEST_SOURCEBRANCH:void 0),root:e.BUILD_REPOSITORY_LOCALPATH}}};var gje={detect({env:e}){return !!e.bamboo_agentId},configuration({env:e}){return {name:"Bamboo",service:"bamboo",commit:e.bamboo_planRepository_1_revision,build:e.bamboo_buildNumber,buildUrl:e.bamboo_buildResultsUrl,branch:e.bamboo_planRepository_1_branchName,job:e.bamboo_buildKey,root:e.bamboo_build_working_directory}}};var Sje={detect({env:e}){return !!e.BITBUCKET_BUILD_NUMBER},configuration({env:e}){return {name:"Bitbucket Pipelines",service:"bitbucket",commit:e.BITBUCKET_COMMIT,tag:e.BITBUCKET_TAG,build:e.BITBUCKET_BUILD_NUMBER,buildUrl:`https://bitbucket.org/${e.BITBUCKET_REPO_SLUG}/addon/pipelines/home#!/results/${e.BITBUCKET_BUILD_NUMBER}`,branch:e.BITBUCKET_BRANCH,slug:e.BITBUCKET_REPO_SLUG,root:e.BITBUCKET_CLONE_DIR}}};var Tje={detect({env:e}){return !!e.BITRISE_IO},configuration({env:e}){let t=e.BITRISE_PULL_REQUEST==="false"?void 0:e.BITRISE_PULL_REQUEST,r=!!t;return {name:"Bitrise",service:"bitrise",commit:e.BITRISE_GIT_COMMIT,tag:e.BITRISE_GIT_TAG,build:e.BITRISE_BUILD_NUMBER,buildUrl:e.BITRISE_BUILD_URL,branch:r?e.BITRISEIO_GIT_BRANCH_DEST:e.BITRISE_GIT_BRANCH,pr:t,isPr:r,prBranch:r?e.BITRISE_GIT_BRANCH:void 0,slug:e.BITRISE_APP_SLUG}}};var Eje={detect({env:e}){return !!e.BUDDY_WORKSPACE_ID},configuration({env:e}){let t=wN(e.BUDDY_EXECUTION_PULL_REQUEST_ID),r=!!t;return {name:"Buddy",service:"buddy",commit:e.BUDDY_EXECUTION_REVISION,tag:e.BUDDY_EXECUTION_TAG,build:e.BUDDY_EXECUTION_ID,buildUrl:e.BUDDY_EXECUTION_URL,branch:r?e.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH:e.BUDDY_EXECUTION_BRANCH,pr:t,isPr:r,slug:e.BUDDY_REPO_SLUG}}};var oUe=chunkTKGT252T_js.e(chunkHZVCNUTP_js.ca(),1);function c$(e){let t=typeof e=="string"?`
`:`
`.charCodeAt(),r=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}function IN(e={}){let{env:t=process.env,platform:r=process.platform}=e;return r!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}var fOr=({cwd:e=ON__default.default.cwd(),path:t=ON__default.default.env[IN()],preferLocal:r=!0,execPath:n=ON__default.default.execPath,addExecPath:i=!0}={})=>{let s=e instanceof URL?url.fileURLToPath(e):e,a=ux__namespace.default.resolve(s),o=[];return r&&hOr(o,a),i&&dOr(o,n,a),[...o,t].join(ux__namespace.default.delimiter)},hOr=(e,t)=>{let r;for(;r!==t;)e.push(ux__namespace.default.join(t,"node_modules/.bin")),r=t,t=ux__namespace.default.resolve(t,"..");},dOr=(e,t,r)=>{let n=t instanceof URL?url.fileURLToPath(t):t;e.push(ux__namespace.default.resolve(r,n,".."));},vje=({env:e=ON__default.default.env,...t}={})=>{e={...e};let r=IN({env:e});return t.path=e[r],e[r]=fOr(t),e};var Aje=()=>{let e=Cje-Pje+1;return Array.from({length:e},vOr)},vOr=(e,t)=>({name:`SIGRT${t+1}`,number:Pje+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Pje=34,Cje=64;var wje=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var f$=()=>{let e=Aje();return [...wje,...e].map(xOr)},xOr=({name:e,number:t,description:r,action:n,forced:i=!1,standard:s})=>{let{signals:{[e]:a}}=wi.constants,o=a!==void 0;return {name:e,number:o?a:t,description:r,supported:o,action:n,forced:i,standard:s}};var POr=()=>{let e=f$();return Object.fromEntries(e.map(COr))},COr=({name:e,number:t,description:r,supported:n,action:i,forced:s,standard:a})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:s,standard:a}],Ije=POr(),wOr=()=>{let e=f$(),t=64+1,r=Array.from({length:t},(n,i)=>IOr(i,e));return Object.assign({},...r)},IOr=(e,t)=>{let r=OOr(e,t);if(r===void 0)return {};let{name:n,description:i,supported:s,action:a,forced:o,standard:u}=r;return {[e]:{name:n,number:e,description:i,supported:s,action:a,forced:o,standard:u}}},OOr=(e,t)=>{let r=t.find(({name:n})=>wi.constants.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)};wOr();var NOr=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:a})=>e?`timed out after ${t} milliseconds`:a?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",lx=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:s,command:a,escapedCommand:o,timedOut:u,isCanceled:l,killed:c,parsed:{options:{timeout:p,cwd:h=ON__default.default.cwd()}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let f=i===void 0?void 0:Ije[i].description,d=n&&n.code,y=`Command ${NOr({timedOut:u,timeout:p,errorCode:d,signal:i,signalDescription:f,exitCode:s,isCanceled:l})}: ${a}`,g=Object.prototype.toString.call(n)==="[object Error]",v=g?`${y}
${n.message}`:y,E=[v,t,e].filter(Boolean).join(`
`);return g?(n.originalMessage=n.message,n.message=E):n=new Error(E),n.shortMessage=v,n.command=a,n.escapedCommand=o,n.exitCode=s,n.signal=i,n.signalDescription=f,n.stdout=e,n.stderr=t,n.cwd=h,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=l,n.killed=c&&!u,n};var NN=["stdin","stdout","stderr"],ROr=e=>NN.some(t=>e[t]!==void 0),Oje=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return NN.map(n=>e[n]);if(ROr(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${NN.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,NN.length);return Array.from({length:r},(n,i)=>t[i])};var Rm=[];Rm.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Rm.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Rm.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var RN=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",h$=Symbol.for("signal-exit emitter"),d$=globalThis,MOr=Object.defineProperty.bind(Object),m$=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(d$[h$])return d$[h$];MOr(d$,h$,{value:this,writable:!1,enumerable:!1,configurable:!1});}on(t,r){this.listeners[t].push(r);}removeListener(t,r){let n=this.listeners[t],i=n.indexOf(r);i!==-1&&(i===0&&n.length===1?n.length=0:n.splice(i,1));}emit(t,r,n){if(this.emitted[t])return !1;this.emitted[t]=!0;let i=!1;for(let s of this.listeners[t])i=s(r,n)===!0||i;return t==="exit"&&(i=this.emit("afterExit",r,n)||i),i}},MN=class{},LOr=e=>({onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}),y$=class extends MN{onExit(){return ()=>{}}load(){}unload(){}},g$=class extends MN{#a=S$.platform==="win32"?"SIGINT":"SIGHUP";#t=new m$;#e;#i;#s;#n={};#r=!1;constructor(t){super(),this.#e=t,this.#n={};for(let r of Rm)this.#n[r]=()=>{let n=this.#e.listeners(r),{count:i}=this.#t,s=t;if(typeof s.__signal_exit_emitter__=="object"&&typeof s.__signal_exit_emitter__.count=="number"&&(i+=s.__signal_exit_emitter__.count),n.length===i){this.unload();let a=this.#t.emit("exit",null,r),o=r==="SIGHUP"?this.#a:r;a||t.kill(t.pid,o);}};this.#s=t.reallyExit,this.#i=t.emit;}onExit(t,r){if(!RN(this.#e))return ()=>{};this.#r===!1&&this.load();let n=r!=null&&r.alwaysLast?"afterExit":"exit";return this.#t.on(n,t),()=>{this.#t.removeListener(n,t),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload();}}load(){if(!this.#r){this.#r=!0,this.#t.count+=1;for(let t of Rm)try{let r=this.#n[t];r&&this.#e.on(t,r);}catch{}this.#e.emit=(t,...r)=>this.#u(t,...r),this.#e.reallyExit=t=>this.#o(t);}}unload(){this.#r&&(this.#r=!1,Rm.forEach(t=>{let r=this.#n[t];if(!r)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,r);}catch{}}),this.#e.emit=this.#i,this.#e.reallyExit=this.#s,this.#t.count-=1);}#o(t){return RN(this.#e)?(this.#e.exitCode=t||0,this.#t.emit("exit",this.#e.exitCode,null),this.#s.call(this.#e,this.#e.exitCode)):0}#u(t,...r){let n=this.#i;if(t==="exit"&&RN(this.#e)){typeof r[0]=="number"&&(this.#e.exitCode=r[0]);let i=n.call(this.#e,t,...r);return this.#t.emit("exit",this.#e.exitCode,null),i}else return n.call(this.#e,t,...r)}},S$=globalThis.process;LOr(RN(S$)?new g$(S$):new y$);function LN(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}new TextEncoder;chunkTKGT252T_js.e(Wje(),1);var zje=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},hDr=({input:e,inputFile:t})=>typeof t!="string"?e:(zje(e),fs$1.readFileSync(t)),Jje=e=>{let t=hDr(e);if(LN(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t};var yDr=(async()=>{})().constructor.prototype;["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(yDr,e)]);var iUe=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],EDr=/^[\w.-]+$/,bDr=e=>typeof e!="string"||EDr.test(e)?e:`"${e.replaceAll('"','\\"')}"`,I$=(e,t)=>iUe(e,t).join(" "),O$=(e,t)=>iUe(e,t).map(r=>bDr(r)).join(" ");var sUe=Doe.debuglog("execa").enabled,qN=(e,t)=>String(e).padStart(t,"0"),PDr=()=>{let e=new Date;return `${qN(e.getHours(),2)}:${qN(e.getMinutes(),2)}:${qN(e.getSeconds(),2)}.${qN(e.getMilliseconds(),3)}`},N$=(e,{verbose:t})=>{t&&ON__default.default.stderr.write(`[${PDr()}] ${e}
`);};var IDr=1e3*1e3*100,ODr=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...ON__default.default.env,...e}:e;return r?vje({env:s,cwd:n,execPath:i}):s},uUe=(e,t,r={})=>{let n=oUe.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:IDr,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||ON__default.default.cwd(),execPath:ON__default.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sUe,...r},r.env=ODr(r),r.stdio=Oje(r),ON__default.default.platform==="win32"&&ux__namespace.default.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},px=(e,t,r)=>typeof t!="string"&&!buffer.Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?c$(t):t;function fx(e,t,r){let n=uUe(e,t,r),i=I$(e,t),s=O$(e,t);N$(s,n.options);let a=Jje(n.options),o;try{o=R$__default.default.spawnSync(n.file,n.args,{...n.options,input:a});}catch(c){throw lx({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let u=px(n.options,o.stdout,o.error),l=px(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=lx({stdout:u,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return {command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function vh(e){try{return fx("git",["rev-parse","HEAD"],e).stdout}catch{return}}function qT(e){try{let t=fx("git",["rev-parse","--abbrev-ref","HEAD"],e).stdout;if(t==="HEAD"){let r=fx("git",["show","-s","--pretty=%d","HEAD"],e).stdout.replace(/^\(|\)$/g,"").split(", ").find(n=>n.startsWith("origin/"));return r?r.match(/^origin\/(?<branch>.+)/)[1]:void 0}return t}catch{return}}var cUe=/^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/,RDr=/^\/(.*)\.git$/;function pUe(e){if(e){if(e.match(cUe))return e.replace(cUe,"$1");try{return new URL(e).pathname.replace(RDr,"$1")}catch{return}}}var fUe={detect({env:e}){return !!e.BUILDKITE},configuration({env:e}){let t=e.BUILDKITE_PULL_REQUEST==="false"?void 0:e.BUILDKITE_PULL_REQUEST,r=!!t;return {name:"Buildkite",service:"buildkite",build:e.BUILDKITE_BUILD_NUMBER,buildUrl:e.BUILDKITE_BUILD_URL,commit:e.BUILDKITE_COMMIT,tag:e.BUILDKITE_TAG,branch:r?e.BUILDKITE_PULL_REQUEST_BASE_BRANCH:e.BUILDKITE_BRANCH,slug:pUe(e.BUILDKITE_REPO),pr:t,isPr:r,prBranch:r?e.BUILDKITE_BRANCH:void 0,root:e.BUILDKITE_BUILD_CHECKOUT_PATH}}};var hUe={detect({env:e}){return !!e.CIRCLECI},configuration({env:e}){let t=e.CIRCLE_PR_NUMBER||wN(e.CIRCLE_PULL_REQUEST||e.CI_PULL_REQUEST),r=!!t;return {name:"CircleCI",service:"circleci",build:e.CIRCLE_BUILD_NUM,buildUrl:e.CIRCLE_BUILD_URL,job:`${e.CIRCLE_BUILD_NUM}.${e.CIRCLE_NODE_INDEX}`,commit:e.CIRCLE_SHA1,tag:e.CIRCLE_TAG,branch:r?void 0:e.CIRCLE_BRANCH,pr:t,isPr:r,prBranch:r?e.CIRCLE_BRANCH:void 0,slug:`${e.CIRCLE_PROJECT_USERNAME}/${e.CIRCLE_PROJECT_REPONAME}`}}};var dUe="https://cirrus-ci.com",mUe={detect({env:e}){return !!e.CIRRUS_CI},configuration({env:e}){let t=e.CIRRUS_PR,r=!!t;return {name:"Cirrus CI",service:"cirrus",commit:e.CIRRUS_CHANGE_IN_REPO,tag:e.CIRRUS_TAG,build:e.CIRRUS_BUILD_ID,buildUrl:`${dUe}/build/${e.CIRRUS_BUILD_ID}`,job:e.CIRRUS_TASK_ID,jobUrl:`${dUe}/task/${e.CIRRUS_TASK_ID}`,branch:r?e.CIRRUS_BASE_BRANCH:e.CIRRUS_BRANCH,pr:t,isPr:r,prBranch:r?e.CIRRUS_BRANCH:void 0,slug:e.CIRRUS_REPO_FULL_NAME,root:e.CIRRUS_WORKING_DIR}}};var yUe={detect({env:e}){return e.CF_PAGES==="1"},configuration({env:e}){return {name:"Cloudflare Pages",service:"cloudflarePages",commit:e.CF_PAGES_COMMIT_SHA,branch:e.CF_PAGES_BRANCH,root:e.PWD}}};var gUe={detect({env:e}){return !!e.CODEBUILD_BUILD_ID},configuration({env:e,cwd:t}){return {name:"AWS CodeBuild",service:"codebuild",commit:vh({env:e,cwd:t}),build:e.CODEBUILD_BUILD_ID,branch:qT({env:e,cwd:t}),buildUrl:`https://console.aws.amazon.com/codebuild/home?region=${e.AWS_REGION}#/builds/${e.CODEBUILD_BUILD_ID}/view/new`,root:e.PWD}}};var SUe={detect({env:e}){return !!e.CF_BUILD_ID},configuration({env:e}){let t=e.CF_PULL_REQUEST_NUMBER,r=!!t;return {name:"Codefresh",service:"codefresh",commit:e.CF_REVISION,build:e.CF_BUILD_ID,buildUrl:e.CF_BUILD_URL,branch:r?e.CF_PULL_REQUEST_TARGET:e.CF_BRANCH,pr:t,isPr:r,prBranch:r?e.CF_BRANCH:void 0,slug:`${e.CF_REPO_OWNER}/${e.CF_REPO_NAME}`,root:e.CF_VOLUME_PATH}}};var TUe={detect({env:e}){return e.CI_NAME&&e.CI_NAME==="codeship"},configuration({env:e}){return {name:"Codeship",service:"codeship",build:e.CI_BUILD_NUMBER,buildUrl:e.CI_BUILD_URL,commit:e.CI_COMMIT_ID,branch:e.CI_BRANCH,slug:e.CI_REPO_NAME}}};var EUe={detect({env:e}){return !!e.DRONE},configuration({env:e}){let t=e.DRONE_BUILD_EVENT==="pull_request";return {name:"Drone",service:"drone",commit:e.DRONE_COMMIT_SHA,tag:e.DRONE_TAG,build:e.DRONE_BUILD_NUMBER,buildUrl:e.DRONE_BUILD_LINK,branch:t?e.DRONE_TARGET_BRANCH:e.DRONE_BRANCH,job:e.DRONE_JOB_NUMBER,jobUrl:e.DRONE_BUILD_LINK,pr:e.DRONE_PULL_REQUEST,isPr:t,prBranch:t?e.DRONE_SOURCE_BRANCH:void 0,slug:`${e.DRONE_REPO_OWNER}/${e.DRONE_REPO_NAME}`,root:e.DRONE_WORKSPACE}}};var bUe={configuration(e){return {commit:vh(e),branch:qT(e)}}};var MDr=({env:e})=>{try{let t=e.GITHUB_EVENT_PATH?JSON.parse(fs$1.readFileSync(e.GITHUB_EVENT_PATH,"utf-8")):void 0;if(t&&t.pull_request)return {branch:t.pull_request.base?bh(t.pull_request.base.ref):void 0,pr:t.pull_request.number}}catch{}return {pr:void 0,branch:void 0}},LDr=e=>{let t=e.GITHUB_EVENT_PATH?JSON.parse(fs$1.readFileSync(e.GITHUB_EVENT_PATH,"utf-8")):void 0;return t&&t.pull_request?t.pull_request.number:void 0},_Ue={detect({env:e}){return !!e.GITHUB_ACTIONS},configuration({env:e,cwd:t}){let r=e.GITHUB_EVENT_NAME==="pull_request"||e.GITHUB_EVENT_NAME==="pull_request_target",n=bh(e.GITHUB_EVENT_NAME==="pull_request_target"?`refs/pull/${LDr(e)}/merge`:e.GITHUB_REF);return {name:"GitHub Actions",service:"github",commit:e.GITHUB_SHA,build:e.GITHUB_RUN_ID,isPr:r,branch:n,prBranch:r?n:void 0,slug:e.GITHUB_REPOSITORY,root:e.GITHUB_WORKSPACE,...r?MDr({env:e,cwd:t}):void 0}}};var xUe={detect({env:e}){return !!e.GITLAB_CI},configuration({env:e}){let t=e.CI_MERGE_REQUEST_ID,r=!!t;return {name:"GitLab CI/CD",service:"gitlab",commit:e.CI_COMMIT_SHA,tag:e.CI_COMMIT_TAG,build:e.CI_PIPELINE_ID,buildUrl:`${e.CI_PROJECT_URL}/pipelines/${e.CI_PIPELINE_ID}`,job:e.CI_JOB_ID,jobUrl:`${e.CI_PROJECT_URL}/-/jobs/${e.CI_JOB_ID}`,branch:r?e.CI_MERGE_REQUEST_TARGET_BRANCH_NAME:e.CI_COMMIT_REF_NAME,pr:t,isPr:r,prBranch:e.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME,slug:e.CI_PROJECT_PATH,root:e.CI_PROJECT_DIR}}};var AUe={detect({env:e}){return !!e.JENKINS_URL},configuration({env:e,cwd:t}){let r=e.ghprbPullId||e.gitlabMergeRequestId||e.CHANGE_ID,n=!!r,i=e.GIT_LOCAL_BRANCH||e.GIT_BRANCH||e.gitlabBranch||e.BRANCH_NAME;return {name:"Jenkins",service:"jenkins",commit:e.ghprbActualCommit||e.GIT_COMMIT||vh({env:e,cwd:t}),branch:n?e.ghprbTargetBranch||e.gitlabTargetBranch:i,build:e.BUILD_NUMBER,buildUrl:e.BUILD_URL,root:e.WORKSPACE,pr:r,isPr:n,prBranch:n?e.ghprbSourceBranch||e.gitlabSourceBranch||i:void 0}}};var PUe={detect({env:e}){return e.NETLIFY==="true"},configuration({env:e}){let t=e.PULL_REQUEST==="true";return {name:"Netlify",service:"netlify",commit:e.COMMIT_REF,build:e.DEPLOY_ID,buildUrl:`https://app.netlify.com/sites/${e.SITE_NAME}/deploys/${e.DEPLOY_ID}`,branch:t?void 0:e.HEAD,pr:e.REVIEW_ID,isPr:t,prBranch:t?e.HEAD:void 0,slug:e.REPOSITORY_URL.match(/[^/:]+\/[^/]+?$/)[0],root:e.PWD}}};var CUe={detect({env:e}){return !!e.DISTELLI_APPNAME},configuration({env:e}){return {name:"Puppet",service:"puppet",build:e.DISTELLI_BUILDNUM,buildUrl:e.DISTELLI_RELEASE,commit:e.DISTELLI_RELREVISION,branch:e.DISTELLI_RELBRANCH,root:e.DISTELLI_INSTALLHOME}}};var wUe={detect({env:e}){return !!e.SAILCI},configuration({env:e}){let t=e.SAIL_PULL_REQUEST_NUMBER,r=!!t;return {name:"Sail CI",service:"sail",commit:e.SAIL_COMMIT_SHA,branch:r?void 0:e.SAIL_COMMIT_BRANCH,pr:t,isPr:r,slug:`${e.SAIL_REPO_OWNER}/${e.SAIL_REPO_NAME}`,root:e.SAIL_CLONE_DIR}}};var IUe={detect({env:e}){return !!e.SCREWDRIVER},configuration({env:e}){let t=e.SD_PULL_REQUEST,r=!!t;return {name:"Screwdriver.cd",service:"screwdriver",branch:r?e.PR_BASE_BRANCH_NAME:e.GIT_BRANCH,prBranch:r?e.PR_BRANCH_NAME:void 0,commit:e.SD_BUILD_SHA,build:e.SD_BUILD_ID,buildUrl:e.SD_UI_BUILD_URL,job:e.SD_JOB_ID,pr:t,isPr:r,slug:e.SD_PIPELINE_NAME,root:e.SD_ROOT_DIR}}};var OUe={detect({env:e}){return !!e.SCRUTINIZER},configuration({env:e}){let t=e.SCRUTINIZER_PR_NUMBER,r=!!t;return {name:"Scrutinizer",service:"scrutinizer",commit:e.SCRUTINIZER_SHA1,build:e.SCRUTINIZER_INSPECTION_UUID,branch:e.SCRUTINIZER_BRANCH,pr:t,isPr:r,prBranch:e.SCRUTINIZER_PR_SOURCE_BRANCH}}};var DUe={detect({env:e}){return !!e.SEMAPHORE},configuration({env:e,cwd:t}){let r=e.SEMAPHORE_GIT_PR_NUMBER||e.PULL_REQUEST_NUMBER,n=!!r;return {name:"Semaphore",service:"semaphore",commit:e.SEMAPHORE_GIT_SHA||vh({env:e,cwd:t}),tag:e.SEMAPHORE_GIT_TAG_NAME,build:e.SEMAPHORE_JOB_ID||e.SEMAPHORE_BUILD_NUMBER,branch:e.SEMAPHORE_GIT_BRANCH||(n?void 0:e.BRANCH_NAME),pr:r,isPr:n,prBranch:e.SEMAPHORE_GIT_PR_BRANCH||(n?e.BRANCH_NAME:void 0),slug:e.SEMAPHORE_GIT_REPO_SLUG||e.SEMAPHORE_REPO_SLUG,root:e.SEMAPHORE_GIT_DIR||e.SEMAPHORE_PROJECT_DIR}}};var NUe={detect({env:e}){return !!e.SHIPPABLE},configuration({env:e}){let t=e.IS_PULL_REQUEST==="true"?e.PULL_REQUEST:void 0,r=!!t;return {name:"Shippable",service:"shippable",commit:e.COMMIT,tag:e.GIT_TAG_NAME,build:e.BUILD_NUMBER,buildUrl:e.BUILD_URL,branch:r?e.BASE_BRANCH:e.BRANCH,job:e.JOB_NUMBER,pr:t,isPr:r,prBranch:r?e.HEAD_BRANCH:void 0,slug:e.SHIPPABLE_REPO_SLUG,root:e.SHIPPABLE_BUILD_DIR}}};var LUe=chunkTKGT252T_js.e(RUe(),1);var M$={root:"teamcity.build.workingDir",branch:"teamcity.build.branch"},MUe=e=>{try{return LUe.default.of(e)}catch{return}},jDr=({env:e,cwd:t})=>{let r=e.TEAMCITY_BUILD_PROPERTIES_FILE?MUe(e.TEAMCITY_BUILD_PROPERTIES_FILE):void 0,n=r?r.get("teamcity.configuration.properties.file"):void 0,i=n&&MUe(n);return Object.fromEntries(Object.keys(M$).map(s=>[s,(r?r.get(M$[s]):void 0)||(i?i.get(M$[s]):void 0)||(s==="branch"?qT({env:e,cwd:t}):void 0)]))},kUe={detect({env:e}){return !!e.TEAMCITY_VERSION},configuration({env:e,cwd:t}){return {name:"TeamCity",service:"teamcity",commit:e.BUILD_VCS_NUMBER,build:e.BUILD_NUMBER,slug:e.TEAMCITY_BUILDCONF_NAME,...jDr({env:e,cwd:t})}}};var FUe={detect({env:e}){return !!e.TRAVIS},configuration({env:e}){let t=e.TRAVIS_PULL_REQUEST==="false"?void 0:e.TRAVIS_PULL_REQUEST,r=!!t;return {name:"Travis CI",service:"travis",commit:e.TRAVIS_COMMIT,tag:e.TRAVIS_TAG,build:e.TRAVIS_BUILD_NUMBER,buildUrl:e.TRAVIS_BUILD_WEB_URL,branch:e.TRAVIS_BRANCH,job:e.TRAVIS_JOB_NUMBER,jobUrl:e.TRAVIS_JOB_WEB_URL,pr:t,isPr:r,prBranch:e.TRAVIS_PULL_REQUEST_BRANCH,slug:e.TRAVIS_REPO_SLUG,root:e.TRAVIS_BUILD_DIR}}};var BUe={detect({env:e}){return !!e.VELA},configuration({env:e}){let t=e.VELA_BUILD_EVENT==="pull_request";return {name:"Vela",service:"vela",branch:t?e.VELA_PULL_REQUEST_TARGET:e.VELA_BUILD_BRANCH,commit:e.VELA_BUILD_COMMIT,tag:e.VELA_BUILD_TAG,build:e.VELA_BUILD_NUMBER,buildUrl:e.VELA_BUILD_LINK,job:void 0,jobUrl:void 0,isPr:t,pr:e.VELA_BUILD_PULL_REQUEST,prBranch:e.VELA_PULL_REQUEST_SOURCE,slug:e.VELA_REPO_FULL_NAME,root:e.VELA_BUILD_WORKSPACE}}};var jUe={detect({env:e}){return !!e.VERCEL||!!e.NOW_GITHUB_DEPLOYMENT},configuration({env:e}){let t="Vercel",r="vercel";return e.VERCEL?{name:t,service:r,commit:e.VERCEL_GIT_COMMIT_SHA,branch:e.VERCEL_GIT_COMMIT_REF,slug:`${e.VERCEL_GIT_REPO_OWNER}/${e.VERCEL_GIT_REPO_SLUG}`}:{name:t,service:r,commit:e.NOW_GITHUB_COMMIT_SHA,branch:e.NOW_GITHUB_COMMIT_REF,slug:`${e.NOW_GITHUB_ORG}/${e.NOW_GITHUB_REPO}`}}};var UUe={detect({env:e}){return !!e.WERCKER_MAIN_PIPELINE_STARTED},configuration({env:e}){return {name:"Wercker",service:"wercker",commit:e.WERCKER_GIT_COMMIT,build:e.WERCKER_MAIN_PIPELINE_STARTED,buildUrl:e.WERCKER_RUN_URL,branch:e.WERCKER_GIT_BRANCH,slug:`${e.WERCKER_GIT_OWNER}/${e.WERCKER_GIT_REPOSITORY}`,root:e.WERCKER_ROOT}}};var qUe={detect({env:e}){return e.CI&&e.CI==="woodpecker"},configuration({env:e}){let t=e.CI_PIPELINE_EVENT==="pull_request";return {name:"Woodpecker CI",service:"woodpecker",commit:e.CI_COMMIT_SHA,tag:e.CI_COMMIT_TAG,build:e.CI_PIPELINE_NUMBER,buildUrl:e.CI_PIPELINE_URL,branch:t?e.CI_COMMIT_TARGET_BRANCH:e.CI_COMMIT_BRANCH,job:e.CI_STEP_NUMBER,jobUrl:e.CI_STEP_URL,pr:e.CI_COMMIT_PULL_REQUEST,isPr:t,prBranch:t?e.CI_COMMIT_SOURCE_BRANCH:void 0,slug:`${e.CI_REPO_OWNER}/${e.CI_REPO_NAME}`,root:e.CI_WORKSPACE}}};var VUe={detect({env:e}){return !!e.JB_SPACE_EXECUTION_NUMBER},configuration({env:e}){let t=e.JB_SPACE_PROJECT_KEY,r=e.JB_SPACE_GIT_REPOSITORY_NAME;return {name:"JetBrains Space",service:"jetbrainsSpace",commit:e.JB_SPACE_GIT_REVISION,build:e.JB_SPACE_EXECUTION_NUMBER,branch:bh(e.JB_SPACE_GIT_BRANCH),slug:t&&r?`${t.toLowerCase()}/${r}`:void 0}}};var L$={appveyor:mje,azurePipelines:yje,bamboo:gje,bitbucket:Sje,bitrise:Tje,buddy:Eje,buildkite:fUe,circleci:hUe,cirrus:mUe,cloudflarePages:yUe,codebuild:gUe,codefresh:SUe,codeship:TUe,drone:EUe,github:_Ue,gitlab:xUe,jenkins:AUe,netlify:PUe,puppet:CUe,sail:wUe,screwdriver:IUe,scrutinizer:OUe,semaphore:DUe,shippable:NUe,teamcity:kUe,travis:FUe,vela:BUe,vercel:jUe,wercker:UUe,woodpecker:qUe,jetbrainsSpace:VUe},HUe=({env:e=process.env,cwd:t=process.cwd()}={})=>{for(let r of Object.keys(L$))if(L$[r].detect({env:e,cwd:t}))return {isCi:!0,...L$[r].configuration({env:e,cwd:t})};return {isCi:!!e.CI,...bUe.configuration({env:e,cwd:t})}};var GUe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),$Ue=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var KUe=()=>(0, $Ue.dedent)(GUe.default`
${chunkF6FLWRPJ_js.H} {bold Cross-fork PR builds unsupported in custom GitHub workflows}
GitHub actions triggered by a fork do not report their repository owner, so cannot be properly linked to a pull request in Chromatic.
Consider using the official Chromatic GitHub Action, or set CHROMATIC_BRANCH to include the forked repository owner (e.g. owner:branch).
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/github-actions")}
`);var k$=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),F$=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var YUe=(e=!1)=>e?(0, F$.dedent)(k$.default`
${chunkF6FLWRPJ_js.H} {bold Found only one commit}
This typically means you have ran into one of the following scenarios:
- You've checked out a shallow copy of the Git repository, which {bold actions/checkout@v2} does by default.
In order for Chromatic to correctly determine baseline commits, we need access to the full Git history graph.
With {bold actions/checkout@v2}, you can enable this by setting 'fetch-depth: 0'.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/github-actions")}
- You've only made a single commit so far.
Please make at least one additional commit in order for Chromatic to be able to detect what's changed.
`):(0, F$.dedent)(k$.default`
${chunkF6FLWRPJ_js.H} {bold Found only one commit}
This typically means you have ran into one of the following scenarios:
- You've checked out a shallow copy of the Git repository, which some CI systems do by default.
In order for Chromatic to correctly determine baseline commits, we need access to the full Git history graph.
Refer to your CI provider's documentation for details.
- You've only made a single commit so far.
Please make at least one additional commit in order for Chromatic to be able to detect what's changed.
`);var WUe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),XUe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var zUe=({GITHUB_EVENT_NAME:e})=>(0, XUe.dedent)(WUe.default`
${chunkF6FLWRPJ_js.H} {bold Missing GitHub environment variable}
\`GITHUB_EVENT_NAME\` environment variable is set to '${e}', but \`GITHUB_SHA\` and \`GITHUB_HEAD_REF\` are not both set.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/github-actions")}
`);var JUe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),QUe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var ZUe=({TRAVIS_EVENT_TYPE:e})=>(0, QUe.dedent)(JUe.default`
${chunkF6FLWRPJ_js.H} {bold Missing Travis environment variable}
\`TRAVIS_EVENT_TYPE\` environment variable set to '${e}', but
\`TRAVIS_PULL_REQUEST_SHA\` and \`TRAVIS_PULL_REQUEST_BRANCH\` are not both set.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/travisci/")}
`);var e4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),t4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var r4e=()=>(0, t4e.dedent)(e4e.default`
${chunkF6FLWRPJ_js.E} {bold Use our GitHub Action}
It appears you are using a GitHub Actions workflow, but are not using the official GitHub Action for Chromatic.
Find it at ${chunkHZVCNUTP_js.f("https://github.com/marketplace/actions/publish-to-chromatic")}
`);var GN=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),$N=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var hx=({ref:e,sha:t,env:r})=>e?(0, $N.dedent)(GN.default`
${chunkF6FLWRPJ_js.G} {bold Branch '${e}' does not exist}
We tried to retrieve its latest commit but couldn't find it in your Git history.
Falling back to ${t.slice(0,7)}, but commit details (date, author) will be missing.
We will not be able to retain baselines from builds created by the Visual Tests addon.
Pull request status updates likely won't work properly.
Please use our official GitHub Action or forward the pull_request event info to us.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/github-actions")}
`):r?(0, $N.dedent)(GN.default`
${chunkF6FLWRPJ_js.G} {bold Commit ${t.slice(0,7)} does not exist}
We tried to retrieve the commit details but couldn't find it in your Git history.
Check your {bold ${r}} environment variable.
Using it anyway, but commit details (date, author) will be missing.
We will not be able to retain baselines from builds created by the Visual Tests addon.
`):(0, $N.dedent)(GN.default`
${chunkF6FLWRPJ_js.G} {bold Commit ${t.slice(0,7)} does not exist}
We tried to retrieve the commit details but couldn't find it in your Git history.
Using it anyway, but commit details (date, author) will be missing.
We will not be able to retain baselines from builds created by the Visual Tests addon.
`);var n4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),i4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var s4e=()=>(0, i4e.dedent)(n4e.default`
${chunkF6FLWRPJ_js.G} {bold Running on a Travis PR build from an internal branch}
It is recommended to run Chromatic on the push builds from Travis where possible.
We advise turning on push builds and disabling Chromatic for internal PR builds.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/travisci/")}
`);var a4e=chunkTKGT252T_js.e(ax()),UDr=a4e.default`
query MergeQueueOriginalBranchQuery($number: Int!) {
app {
pullRequest(number: $number) {
branch: headRefName
}
}
}
`;async function o4e(e,{number:t}){var n;let{app:r}=await e.client.runQuery(UDr,{number:t});return (n=r==null?void 0:r.pullRequest)==null?void 0:n.branch}var u4e=/^origin\//,lp=e=>e&&e!=="HEAD"?e:!1;function qDr(e){try{return HUe()}catch(t){return e.debug("Error while parsing CI environment variables",t),{}}}async function B$(e,{branchName:t,patchBaseRef:r,ci:n}={}){let{log:i}=e,s=await chunkHZVCNUTP_js.k(e),a=lp(t)||lp(r)||await chunkHZVCNUTP_js.l(e),o,{TRAVIS_COMMIT:u,TRAVIS_EVENT_TYPE:l,TRAVIS_PULL_REQUEST_SLUG:c,TRAVIS_REPO_SLUG:p,TRAVIS_PULL_REQUEST_SHA:h,TRAVIS_PULL_REQUEST_BRANCH:f,GITHUB_ACTIONS:d,GITHUB_EVENT_NAME:m,GITHUB_REPOSITORY:y,GITHUB_BASE_REF:g,GITHUB_HEAD_REF:v,GITHUB_SHA:E,CHROMATIC_SHA:S,CHROMATIC_BRANCH:x,CHROMATIC_PULL_REQUEST_SHA:b,CHROMATIC_SLUG:A}=process.env,{isCi:D,service:P,prBranch:V,branch:X,commit:oe,slug:le}=qDr(i),Be=S&&x,be=l==="pull_request",Ee=d==="true",Te=m==="pull_request";if(!await chunkHZVCNUTP_js.n(e)){let fe=YUe(Ee);if(D)throw new Error(fe);i.warn(fe);}if(Be)s=await chunkHZVCNUTP_js.k(e,S).catch(fe=>(i.warn(hx({sha:S,env:"CHROMATIC_SHA"})),i.debug(fe),{commit:S,committedAt:Date.now()})),b&&(s.mergeCommit=b),a=x,o=A;else if(be){if(c===p&&i.warn(s4e()),!h||!f)throw new Error(ZUe({TRAVIS_EVENT_TYPE:l}));s=await chunkHZVCNUTP_js.k(e,h).catch(fe=>(i.warn(hx({sha:h,env:"TRAVIS_PULL_REQUEST_SHA"})),i.debug(fe),{commit:h,committedAt:Date.now()})),u&&(s.mergeCommit=u),a=f,o=c;}else if(Te){if(i.info(r4e()),!v||!E)throw new Error(zUe({GITHUB_EVENT_NAME:m}));if(g===v)throw new Error(KUe());s=await chunkHZVCNUTP_js.k(e,v).catch(fe=>(i.warn(hx({ref:v,sha:E,env:"GITHUB_HEAD_REF"})),i.debug(fe),{commit:E,committedAt:Date.now()})),s.mergeCommit=E,a=v,o=y;}let Me=process.env.CHROMATIC_ACTION?"chromaui/action":P;o=o||le,lp(a)||(s=await chunkHZVCNUTP_js.k(e,oe).catch(fe=>(i.warn(hx({sha:oe})),i.debug(fe),{commit:oe,committedAt:Date.now()})),a=lp(V)||lp(X)||lp(process.env.HEAD)||lp(process.env.GERRIT_BRANCH)||lp(process.env.GITHUB_REF)||lp(process.env.CI_BRANCH)||"HEAD");let At=D||!!n||!!process.env.CI||!!process.env.REPOSITORY_URL||!!process.env.GITHUB_REPOSITORY;!t&&!Be&&u4e.test(a)&&(i.warn("Ignoring 'origin/' prefix in branch name."),a=a.replace(u4e,""));let ue=await chunkHZVCNUTP_js.y(e,a);if(ue){let fe=await o4e(e,{number:ue});fe&&(a=fe);}return i.debug(`git info: ${JSON.stringify({commit:s,branch:a,slug:o,fromCI:At,ciService:Me})}`),{...s,branch:a,slug:o,fromCI:At,ciService:Me}}var KN=chunkTKGT252T_js.e(ax());var VDr=20,HDr=KN.default`
query FirstCommittedAtQuery($branch: String!, $localBuilds: LocalBuildsSpecifierInput!) {
app {
firstBuild(sortByCommittedAt: true, localBuilds: $localBuilds) {
committedAt
}
lastBuild(branch: $branch, sortByCommittedAt: true, localBuilds: $localBuilds) {
commit
committedAt
}
}
}
`,GDr=KN.default`
query HasBuildsWithCommitsQuery($commits: [String!]!, $localBuilds: LocalBuildsSpecifierInput!) {
app {
hasBuildsWithCommits(commits: $commits, localBuilds: $localBuilds)
}
}
`,$Dr=KN.default`
query MergeCommitsQuery($mergeInfoList: [MergedInfoInput]!) {
app {
mergedPullRequests(mergeInfoList: $mergeInfoList) {
lastHeadBuild {
commit
}
}
}
}
`;function j$(e){return e.map(t=>t.trim()).join(" ")}async function KDr(e,t,{firstCommittedAtSeconds:r,commitsWithBuilds:n,commitsWithoutBuilds:i}){let s=`git rev-list HEAD ${r?`--since ${r}`:""} -n ${t+i.length} --not ${j$(n)}`,a=await chunkHZVCNUTP_js.g(e,s),o=a==null?void 0:a.split(`
`).filter(Boolean),u=o==null?void 0:o.filter(c=>!n.includes(c)),l=u==null?void 0:u.filter(c=>!i.includes(c)).slice(0,t);return {visitedCommitsWithoutBuilds:u,candidateCommits:l}}async function l4e({options:e,client:t,log:r,git:n},i,{firstCommittedAtSeconds:s,commitsWithBuilds:a,commitsWithoutBuilds:o}){r.debug(`step: checking ${i} up to ${s}`),r.debug(`step: commitsWithBuilds: ${a}`),r.debug(`step: commitsWithoutBuilds: ${o}`);let{candidateCommits:u,visitedCommitsWithoutBuilds:l}=await KDr({log:r},i,{firstCommittedAtSeconds:s,commitsWithBuilds:a,commitsWithoutBuilds:o});if(r.debug(`step: candidateCommits: ${u}, visitedCommitsWithoutBuilds: ${l}`),!(u!=null&&u.length))return r.debug("step: no candidateCommits; we are done"),{commitsWithBuilds:a,visitedCommitsWithoutBuilds:l};let{app:{hasBuildsWithCommits:c}}=await t.runQuery(GDr,{commits:u,localBuilds:ox({options:e,git:n})});r.debug(`step: newCommitsWithBuilds: ${c}`);let p=u==null?void 0:u.filter(h=>!c.includes(h));return l4e({options:e,client:t,log:r,git:n},i*2,{firstCommittedAtSeconds:s,commitsWithBuilds:[...a,...c],commitsWithoutBuilds:[...o,...p||[]]})}async function YDr(e,t){if(t.length===0)return t;let r=t.map(a=>`"${a}^@"`),n=`git rev-list ${j$(t)} --not ${j$(r)}`,i=await chunkHZVCNUTP_js.g(e,n);return i==null?void 0:i.split(`
`).filter(Boolean)}async function c4e(e,{ignoreLastBuildOnBranch:t=!1}={}){var E;let{options:r,client:n,git:i,log:s}=e,{branch:a,committedAt:o}=i,{app:u}=await n.runQuery(HDr,{branch:a,localBuilds:ox({options:r,git:i})},{retries:5}),{firstBuild:l,lastBuild:c}=u;if(s.debug("App firstBuild: %o, lastBuild: %o",l,c),!l)return s.debug("App has no builds, returning []"),[];let p=[],h=[];a!=="HEAD"&&!t&&c&&c.committedAt<=o&&(await chunkHZVCNUTP_js.o(e,c.commit)?(s.debug(`Adding last branch build commit ${c.commit} to commits with builds`),p.push(c.commit)):(s.debug(`Last branch build commit ${c.commit} not in index, blindly appending to parents`),h.push(c.commit)));let{commitsWithBuilds:f,visitedCommitsWithoutBuilds:d}=await l4e({options:r,client:n,log:s,git:i},VDr,{firstCommittedAtSeconds:l.committedAt&&l.committedAt/1e3,commitsWithBuilds:p,commitsWithoutBuilds:[]}),m=d==null?void 0:d.map(S=>({commit:S,baseRefName:a})),{app:{mergedPullRequests:y}}=await n.runQuery($Dr,{mergeInfoList:m==null?void 0:m.slice(0,100)},{retries:5});for(let S of y){let x=(E=S.lastHeadBuild)==null?void 0:E.commit;x&&(await chunkHZVCNUTP_js.o(e,x)?(s.debug(`Adding merged PR build commit ${x} to commits with builds`),f.push(x)):(s.debug(`Merged PR build commit ${x} not in index, blindly appending to parents`),h.push(x)));}s.debug(`Final commitsWithBuilds: ${f}`);let g=await YDr({log:s},f);return [...h,...g||[]]}var WDr=new Set(["react-router","react-router-dom","remix","@tanstack/react-router","expo-router","@reach/router","react-easy-router","@remix-run/router","wouter","wouter-preact","preact-router","vue-router","unplugin-vue-router","@angular/router","@solidjs/router","next","react-scripts","gatsby","nuxt","@sveltejs/kit"]);function p4e(e){return Object.keys((e==null?void 0:e.dependencies)??{}).some(t=>WDr.has(t))}var f4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),h4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var XDr="https://www.chromatic.com/docs/visual-tests-addon/#what-are-local-builds-and-how-are-they-different-from-builds",d4e=()=>`${(0, h4e.dedent)(f4e.default`
${chunkF6FLWRPJ_js.H} {bold Failed to find the current git user's email}
We were unable to find your git email so this local build
will not belong to you and will not affect your future baselines.
Read more: ${chunkHZVCNUTP_js.f(XDr)}
In order to associate your local changes with later CI builds, you
need to configure git with the email address you'll commit with.
You can do this with \`git config --global user.email YOUR_EMAIL\`.
Once you've done so, please run this build again.
`)}`;var E4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),b4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var U$=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),zDr=({commit:e,branch:t,parentCommits:r,changedFiles:n},{ownerName:i},s={})=>{let a=s.bailReason?"; TurboSnap disabled":"",o=i?`${i}:${t}`:t,u=`Commit '${e.slice(0,7)}' on branch '${o}'`;return r!=null&&r.length?(u+=`; found ${(0, U$.default)("parent build",r.length,!0)}`,n&&(u+=` and ${(0, U$.default)("changed file",n.length,!0)}`),`${u}${a}`):`${u}; no ancestor found${a}`},m4e={status:"initial",title:"Retrieve git information"},y4e=()=>({status:"pending",title:"Retrieving git information"}),g4e=e=>({status:"pending",title:"Skipping build",output:`Skipping build for commit ${e.git.commit.slice(0,7)}`}),S4e=e=>({status:"success",title:"Skipping build",output:`Skipped build for commit ${e.git.commit.slice(0,7)} due to --skip`}),T4e=()=>({status:"error",title:"Skipping build",output:"Failed to skip build"}),YN=()=>({status:"success",title:"Skipping build",output:"Skipping rebuild of an already fully passed/accepted build"}),WN=e=>({status:"success",title:"Retrieved git information",output:zDr(e.git,e.options,e.turboSnap)});var v4e=()=>(0, b4e.dedent)(E4e.default`
${chunkF6FLWRPJ_js.E} {bold ${YN().output}}
A build for the same commit as the last build on the branch is considered a rebuild.
If the last build is passed or accepted, the rebuild is skipped because it shouldn't change anything.
You can override this using the {bold --force-rebuild} flag.
`);var x4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),A4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());function _4e(e){return e.commit.slice(0,7)}var P4e=({replacedBuild:e,replacementBuild:t})=>(0, A4e.dedent)(x4e.default`
${chunkF6FLWRPJ_js.E} {bold Missing commit detected}
When detecting git changes for TurboSnap, we couldn't find the commit (${_4e(e)}) for the most recent build (#${e.number}).
To avoid re-snapshotting stories we know haven't changed, we copied from the most recent build (#${t.number}) that did have a commit (${_4e(t)}) instead.
`);var dx=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),C4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var JDr="https://www.chromatic.com/docs/turbosnap#how-it-works",w4e=e=>{let t=e.length===1?"file":`${e.length} files`,r=e.map(i=>dx.default.bold(i)),n=e.length===1?r[0]:dx.default`\n{dim →} ${r.join(dx.default`\n{dim →} `)}`;return (0, C4e.dedent)(dx.default`
${chunkF6FLWRPJ_js.G} {bold TurboSnap disabled due to matching --externals}
Found ${t} with changes: ${n}
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(JDr)}
`)};var I4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),O4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var QDr="https://www.chromatic.com/docs/turbosnap#how-it-works",D4e=()=>(0, O4e.dedent)(I4e.default`
${chunkF6FLWRPJ_js.G} {bold TurboSnap disabled due to missing git history}
Could not retrieve changed files since baseline commit(s).
This typically happens after rebasing, force pushing, or when running against an ephemeral merge commit.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(QDr)}
`);var N4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),R4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var M4e=()=>(0, R4e.dedent)(N4e.default`
${chunkF6FLWRPJ_js.G} {bold TurboSnap disabled due to rebuild}
You appear to be rerunning an earlier build, because the baseline build has the same commit and branch name.
Comparing against the same commit would yield zero changed files, so we would end up running a build with no snapshots.
That's probably not what you want when rerunning a build, so we're just going to run a full build instead.
`);var L4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),k4e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var ZDr="https://www.chromatic.com/docs/faq/override-branch-name/",F4e=()=>(0, k4e.dedent)(L4e.default`
${chunkF6FLWRPJ_js.G} Removing unknown owner prefix from branch name.
You may wish to set the branch directly to avoid incorrect values.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(ZDr)}
`);var B4e=/^undefined:/,eNr=`
mutation SkipBuildMutation($commit: String!, $branch: String, $slug: String) {
skipBuild(commit: $commit, branch: $branch, slug: $slug)
}
`,tNr=`
query LastBuildQuery($commit: String!, $branch: String!) {
app {
isOnboarding
lastBuild(ref: $commit, branch: $branch) {
id
status(legacy: false)
storybookUrl
webUrl
specCount
componentCount
testCount
changeCount
errorCount: testCount(statuses: [BROKEN])
actualTestCount: testCount(statuses: [IN_PROGRESS])
actualCaptureCount
inheritedCaptureCount
interactionTestFailuresCount
}
}
}
`,rNr=async(e,t)=>{var y,g,v,E,S;let{branchName:r,ownerName:n,repositorySlug:i,patchBaseRef:s,fromCI:a,interactive:o,isLocalBuild:u}=e.options,l=await chunkHZVCNUTP_js.h(e),c=await B$(e,{branchName:r,patchBaseRef:s,ci:a});e.git={version:l,gitUserEmail:await chunkHZVCNUTP_js.i(e).catch(x=>{e.log.debug("Failed to retrieve Git user email",x);}),uncommittedHash:await chunkHZVCNUTP_js.m(e).catch(x=>{e.log.warn("Failed to retrieve uncommitted files hash",x);}),rootPath:await chunkHZVCNUTP_js.x(e),...c};try{e.projectMetadata={hasRouter:p4e(e.packageJson),creationDate:await chunkHZVCNUTP_js.z(e),storybookCreationDate:await chunkHZVCNUTP_js.A(e),numberOfCommitters:await chunkHZVCNUTP_js.B(e),numberOfAppFiles:await chunkHZVCNUTP_js.C(e,["page","screen"],["js","jsx","ts","tsx"])};}catch(x){e.log.debug("Failed to gather project metadata",x);}if(u&&!e.git.gitUserEmail)throw new Error(d4e());if(!e.git.slug)try{e.git.slug=await chunkHZVCNUTP_js.j(e);}catch(x){e.log.debug("Failed to retrieve Git repository slug",x);}n?(e.git.branch=e.git.branch.replace(/[^:]+:/,""),e.git.slug=i||((y=e.git.slug)==null?void 0:y.replace(/[^/]+/,n))):B4e.test(e.git.branch)&&(e.log.warn(F4e()),e.git.branch=e.git.branch.replace(B4e,""));let{branch:p,commit:h,slug:f}=e.git;if(e.git.matchesBranch=x=>typeof x=="string"&&x.length>0?(0, j4e.default)(x,{bash:!0})(p):!!x,(v=(g=e.git).matchesBranch)!=null&&v.call(g,e.options.skip)){if(St(g4e)(e,t),await e.client.runQuery(eNr,{commit:h,branch:p,slug:f})){e.skip=!0,St(S4e,!0)(e,t),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK);return}throw new Error(T4e().output)}let d=await c4e(e,{ignoreLastBuildOnBranch:(S=(E=e.git).matchesBranch)==null?void 0:S.call(E,e.options.ignoreLastBuildOnBranch||!1)});e.git.parentCommits=d,e.log.debug(`Found parentCommits: ${d.join(", ")}`);let m=await e.client.runQuery(tNr,{commit:h,branch:p});if(e.isOnboarding=m.app.isOnboarding,m.app.isOnboarding&&(e.options.forceRebuild=!0),d.length===1&&d[0]===h){let x=m&&m.app&&m.app.lastBuild;if(x&&(e.rebuildForBuildId=x.id,["PASSED","ACCEPTED"].includes(x.status)&&!e.git.matchesBranch(e.options.forceRebuild))){e.skip=!0,e.rebuildForBuild=m.app.lastBuild,e.storybookUrl=m.app.lastBuild.storybookUrl,St(YN,!0)(e,t),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK),e.log.info(v4e());return}}if(e.turboSnap=e.git.matchesBranch(e.options.onlyChanged)?{}:void 0,e.turboSnap){if(d.length===0){e.turboSnap.bailReason={noAncestorBuild:!0},St(WN,!0)(e,t);return}if(e.rebuildForBuildId){e.turboSnap.bailReason={rebuild:!0},e.log.warn(M4e()),St(WN,!0)(e,t);return}let x=await pje(e,{branch:p,parentCommits:d});e.git.baselineCommits=x.map(b=>b.commit),e.log.debug(`Found baselineCommits: ${e.git.baselineCommits.join(", ")}`),e.build=x.sort((b,A)=>A.committedAt-b.committedAt)[0];try{let b=await Promise.all(x.map(async D=>{let P=await dje(e,D);return {build:D,...P}}));e.git.changedFiles=[...new Set(b.flatMap(({changedFiles:D})=>D))];let{untraced:A=[]}=e.options;if(e.git.packageMetadataChanges=b.flatMap(({build:D,changedFiles:P,replacementBuild:V})=>{let X=P.filter(oe=>!A.some(le=>chunkHZVCNUTP_js._(le,oe))).filter(oe=>chunkHZVCNUTP_js.aa(oe));return X.length>0?[{changedFiles:X,commit:(V==null?void 0:V.commit)??D.commit}]:[]}),e.git.replacementBuildIds=b.filter(D=>!!D.replacementBuild).map(({build:D,replacementBuild:P})=>(e.log.info(""),e.log.info(P4e({replacedBuild:D,replacementBuild:P})),[D.id,P.id])),!o){let D=e.git.changedFiles.length>0?`:
${e.git.changedFiles.map(P=>` ${P}`).join(`
`)}`:"";e.log.info(`Found ${e.git.changedFiles.length} changed files${D}`);}}catch(b){e.turboSnap.bailReason={invalidChangedFiles:!0},delete e.git.changedFiles,delete e.git.replacementBuildIds,e.log.warn(D4e()),e.log.debug(b);}if(e.options.externals&&e.git.changedFiles&&e.git.changedFiles.length>0)for(let b of e.options.externals){let A=e.git.changedFiles.filter(D=>chunkHZVCNUTP_js._(b,D));if(A.length>0){e.turboSnap.bailReason={changedExternalFiles:A},e.log.warn(w4e(A)),delete e.git.changedFiles,delete e.git.replacementBuildIds;break}}}St(WN,!0)(e,t);};function q$(e){return Fn({name:"gitInfo",title:m4e.title,steps:[St(y4e),rNr]})}var V$=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),H$=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var U4e="https://www.chromatic.com/docs/quickstart/#why-do-i-see-build-x-is-based-on-a-commit-without-ancestor-builds",q4e=({announcedBuild:e,turboSnap:t})=>t?(0, H$.dedent)(V$.default`
${chunkF6FLWRPJ_js.G} {bold TurboSnap disabled due to missing ancestor build}
An ancestor is required to determine which files have changed since the last Chromatic build.
This usually happens when rebasing, force-pushing, squash-merging or running against an ephemeral merge commit.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(U4e)}
`):(0, H$.dedent)(V$.default`
${chunkF6FLWRPJ_js.G} {bold No ancestor build found}
Build ${e.number} is based on a commit without ancestor builds, which is unusual.
This usually happens when rebasing, force-pushing, squash-merging or running against an ephemeral merge commit.
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(U4e)}
`);var V4e={status:"initial",title:"Initialize build"},H4e=()=>({status:"pending",title:"Initializing build"}),G4e=e=>({status:"success",title:"Initialized build",output:`Build ${e.announcedBuild.number} initialized`});var nNr=`
mutation AnnounceBuildMutation($input: AnnounceBuildInput!) {
announceBuild(input: $input) {
id
number
# no need for legacy:false on AnnouncedBuild.status
status
autoAcceptChanges
reportToken
features {
uiTests
uiReview
isReactNativeApp
}
app {
id
turboSnapAvailability
}
}
}
`,iNr=async e=>{e.environment||(e.environment={});for(let[t,r]of Object.entries(process.env))r&&e.env.ENVIRONMENT_WHITELIST.some(n=>t.match(n))&&(e.environment[t]=r);e.log.debug(`Got environment:
${JSON.stringify(e.environment,void 0,2)}`);},sNr=async e=>{e.runtimeMetadata={nodePlatform:process.platform,nodeVersion:process.versions.node};try{let t=await J3e();if(!t)throw new Error("Failed to determine package manager");e.runtimeMetadata.packageManager=t,Bp("packageManager",t);let r=await Z3e(t);e.runtimeMetadata.packageManagerVersion=r,Bp("packageManagerVersion",r);}catch(t){e.log.debug(`Failed to set runtime metadata: ${t.message}`);}},aNr=e=>{var E;let{patchBaseRef:t,patchHeadRef:r,preserveMissingSpecs:n,isLocalBuild:i}=e.options,{version:s,matchesBranch:a,changedFiles:o,changedDependencyNames:u,replacementBuildIds:l,committedAt:c,baselineCommits:p,packageMetadataChanges:h,gitUserEmail:f,rootPath:d,...m}=e.git,{rebuildForBuildId:y,turboSnap:g}=e;return {autoAcceptChanges:a==null?void 0:a(e.options.autoAcceptChanges),patchBaseRef:t,patchHeadRef:r,preserveMissingSpecs:n,...f&&{gitUserEmailHash:gd(f)},...m,committedAt:new Date(c),ciVariables:e.environment,isLocalBuild:i,needsBaselines:!!g&&!g.bailReason,packageVersion:e.pkg.version,...e.runtimeMetadata,rebuildForBuildId:y,storybookAddons:e.storybook.addons,storybookVersion:e.storybook.version,projectMetadata:{...e.projectMetadata,storybookBaseDir:(E=e.storybook)==null?void 0:E.baseDir}}},oNr=async e=>{var n;let t=aNr(e),{announceBuild:r}=await e.client.runQuery(nNr,{input:t},{retries:3});Bp("app_id",r.app.id),Oy("build",{id:r.id}),e.announcedBuild=r,e.isOnboarding=e.isOnboarding||r.number===1||r.autoAcceptChanges&&!t.autoAcceptChanges,e.isReactNativeApp=((n=r.features)==null?void 0:n.isReactNativeApp)??!1,e.turboSnap&&r.app.turboSnapAvailability==="UNAVAILABLE"&&(e.turboSnap.unavailable=!0),!e.isOnboarding&&!e.git.parentCommits&&e.log.warn(q4e(e));};function G$(e){return Fn({name:"initialize",title:V4e.title,skip:t=>t.skip,steps:[St(H4e),iNr,sNr,oNr,St(G4e,!0)]})}var K$=chunkTKGT252T_js.e(chunkHZVCNUTP_js.a()),i5e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.fa());var Y4e=chunkTKGT252T_js.e(chunkHZVCNUTP_js.d());var uNr=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,0,96,3,127,127,127,1,127,96,2,127,127,0,96,2,127,126,0,96,1,127,1,127,96,1,127,1,126,96,3,127,127,126,1,126,96,3,126,127,127,1,126,3,11,10,1,1,2,0,4,6,7,3,0,5,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,211,23,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,247,148,175,175,120,106,33,4,32,2,65,177,243,221,241,121,107,33,5,3,64,32,0,40,2,0,65,247,148,175,175,120,108,32,3,106,65,13,119,65,177,243,221,241,121,108,33,3,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,4,106,65,13,119,65,177,243,221,241,121,108,33,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,2,106,65,13,119,65,177,243,221,241,121,108,33,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,5,106,65,13,119,65,177,243,221,241,121,108,33,5,32,0,65,4,106,34,0,32,6,77,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,1,40,2,0,65,189,220,202,149,124,108,32,0,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,1,45,0,0,65,177,207,217,178,1,108,32,0,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,65,15,118,32,0,115,65,247,148,175,175,120,108,34,0,32,0,65,13,118,115,65,189,220,202,149,124,108,34,0,32,0,65,16,118,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,247,148,175,175,120,106,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,177,243,221,241,121,107,54,2,0,11,211,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,5,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,4,32,4,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,5,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,5,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,40,2,0,32,5,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,12,106,34,3,40,2,0,32,5,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,16,106,34,3,40,2,0,32,5,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,20,106,34,3,40,2,0,32,5,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,4,32,0,65,20,106,40,2,0,33,7,3,64,32,1,40,2,0,65,247,148,175,175,120,108,32,2,106,65,13,119,65,177,243,221,241,121,108,33,2,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,3,106,65,13,119,65,177,243,221,241,121,108,33,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,4,106,65,13,119,65,177,243,221,241,121,108,33,4,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,7,106,65,13,119,65,177,243,221,241,121,108,33,7,32,1,65,4,106,34,1,32,8,77,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,4,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,5,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,157,4,2,1,127,3,126,32,0,32,1,106,33,3,32,1,65,32,79,4,126,32,3,65,32,107,33,3,32,2,66,135,149,175,175,152,182,222,155,158,127,124,66,207,214,211,190,210,199,171,217,66,124,33,4,32,2,66,207,214,211,190,210,199,171,217,66,124,33,5,32,2,66,0,124,33,6,32,2,66,135,149,175,175,152,182,222,155,158,127,125,33,2,3,64,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,4,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,5,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,6,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,2,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,0,65,8,106,34,0,32,3,77,13,0,11,32,6,66,12,137,32,2,66,18,137,124,32,5,66,7,137,124,32,4,66,1,137,124,32,4,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,5,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,6,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,2,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,137,2,0,32,1,32,2,106,33,2,3,64,32,1,65,8,106,32,2,77,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,32,0,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,66,33,136,32,0,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,88,0,32,0,65,8,106,32,1,66,135,149,175,175,152,182,222,155,158,127,124,66,207,214,211,190,210,199,171,217,66,124,55,3,0,32,0,65,16,106,32,1,66,207,214,211,190,210,199,171,217,66,124,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,135,149,175,175,152,182,222,155,158,127,125,55,3,0,11,132,5,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,16,106,34,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,24,106,34,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,32,106,34,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,6,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,7,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,8,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,9,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,1,65,8,106,34,1,32,2,77,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,200,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,4,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,1,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,5,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function $4e(){let{instance:{exports:{mem:e,xxh32:t,xxh64:r,init32:n,update32:i,digest32:s,init64:a,update64:o,digest64:u}}}=await WebAssembly.instantiate(uNr),l=new Uint8Array(e.buffer);function c(E,S){if(e.buffer.byteLength<E+S){let x=Math.ceil((E+S-e.buffer.byteLength)/65536);e.grow(x),l=new Uint8Array(e.buffer);}}function p(E,S,x,b,A,D){c(E);let P=new Uint8Array(E);return l.set(P),x(0,S),P.set(l.slice(0,E)),{update(V){let X;return l.set(P),typeof V=="string"?(c(3*V.length,E),X=m.encodeInto(V,l.subarray(E)).written):(c(V.byteLength,E),l.set(V,E),X=V.byteLength),b(0,E,X),P.set(l.slice(0,E)),this},digest:()=>(l.set(P),D(A(0)))}}function h(E){return E>>>0}let f=2n**64n-1n;function d(E){return E&f}let m=new TextEncoder,y=0n;function g(E){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return c(3*E.length,0),h(t(0,m.encodeInto(E,l).written,S))}function v(E){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y;return c(3*E.length,0),d(r(0,m.encodeInto(E,l).written,S))}return {h32:g,h32ToString(E){return g(E,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0).toString(16).padStart(8,"0")},h32Raw(E){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return c(E.byteLength,0),l.set(E),h(t(0,E.byteLength,S))},create32(){return p(48,arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n,i,s,h)},h64:v,h64ToString(E){return v(E,arguments.length>1&&arguments[1]!==void 0?arguments[1]:y).toString(16).padStart(16,"0")},h64Raw(E){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y;return c(E.byteLength,0),l.set(E),d(r(0,E.byteLength,S))},create64(){return p(88,arguments.length>0&&arguments[0]!==void 0?arguments[0]:y,a,o,u,d)}}}var pNr=(e,t,r)=>{let n=e.length;return new Promise((i,s)=>{let a=(u,l)=>{let c=BigInt(0);fs$1.close(u,p=>{p?s(p):i(c.toString(16).padStart(16,"0"));}),c=l();},o=(u,l)=>{fs$1.read(u,e,0,n,-1,(c,p)=>{if(c)return fs$1.close(u,()=>s(c));p===n?(l.update(e),o(u,l)):(l.update(e.subarray(0,p)),a(u,()=>l.digest()));});};fs$1.open(t,"r",(u,l)=>{if(u)return s(u);fs$1.read(l,e,0,n,-1,(c,p)=>{if(c)return fs$1.close(l,()=>s(c));if(p<n)a(l,()=>r.h64Raw(e.subarray(0,p)));else {let h=r.create64();h.update(e),o(l,h);}});});})},W4e=async(e,t,r)=>{let n=(0, Y4e.default)(r),i=await $4e(),s=e.map(o=>[Buffer.allocUnsafe(64*1024),o]),a=await Promise.all(s.map(([o,u])=>n(async()=>[u,await pNr(o,ux__namespace.default.join(t,u),i)])));return Object.fromEntries(a)};var XN=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),zN=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var fNr=(e,t)=>{if(!t)return "";if(t.includes("npm run "))return (0, zN.dedent)(XN.default`
It appears you're using {bold "npm run"} which is known to cause this problem.
You can fix this by invoking {bold build-storybook} from your {bold "${e}"} script directly.
`);let r=/(^| )build-storybook( |;|&&)/.test(t),n=/build-storybook.*(&&|;)/.test(t);return r&&n?(0, zN.dedent)(XN.default`
This happens if {bold build-storybook} is not the last command in the script (e.g. you're using {bold &&} or {bold ;} to chain commands).
You should use an npm {bold post*} script instead of command chaining.
`):""},X4e=({sourceDir:e,options:t,packageJson:r},n)=>{let{buildScriptName:i}=t,s=r.scripts&&i&&r.scripts[i];return (0, zN.dedent)(XN.default`
${chunkF6FLWRPJ_js.G} {bold Unexpected build directory}
The CLI tried to build your Storybook at {bold ${e}}
but instead it was built at {bold ${n}}
Make sure your {bold "${i}"} script forwards the {bold --output-dir (-o)} flag to the {bold build-storybook} CLI.
${fNr(i,s)}
`).trim()};var JN=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var z4e=e=>({status:"initial",title:`Prepare your built ${Jt(e)}`}),J4e=e=>({status:"pending",title:`Prepare your built ${Jt(e)}`,output:`Validating ${Jt(e)} files`}),QN=(e,t)=>{let r=`Invalid ${Jt(e)} build at ${e.sourceDir}`;return e.buildLogFile&&(r+=" (check the build log)"),t&&(r+=`: ${t.message}`),{status:"error",title:`Preparing your built ${Jt(e)}`,output:r}},Q4e=e=>{var n;let t=(0, JN.default)("file",(n=e.git.changedFiles)==null?void 0:n.length,!0);return {status:"pending",title:`Retrieving ${En(e.options)?"test":"story"} files affected by recent changes`,output:`Traversing dependencies for ${t} that changed since the last build`}},Z4e=e=>{var p;let{changedPackageFiles:t,changedStorybookFiles:r,changedStaticFiles:n}=((p=e.turboSnap)==null?void 0:p.bailReason)||{},i=t||r||n,a=(i==null?void 0:i.every(h=>chunkHZVCNUTP_js.$(h)))?"dependency ":"",[o,...u]=i||[],l=(0, JN.default)("sibling",u.length,!0),c=`Found a ${a}change in ${o}`;return u.length===1&&(c+=" or its sibling"),u.length>1&&(c+=` or one of its ${l}`),{status:"pending",title:"TurboSnap disabled",output:c}},e5e=e=>{var n;let t=En(e.options)?"test":"story",r=(0, JN.default)(`${t} file`,(n=e.onlyStoryFiles)==null?void 0:n.length,!0);return {status:"pending",title:`Retrieved ${t} files affected by recent changes`,output:`Found ${r} affected by recent changes`}},t5e=e=>({status:"pending",title:`Prepare your built ${Jt(e)}`,output:"Calculating file hashes"}),r5e=e=>({status:"success",title:"Preparation complete",output:`${Jt(e)} files validated and prepared for upload`});var yNr=/([$()*+?[\]^])/g;function s5e(e,t,r="."){if(r===".chromatic")return [];try{return fs$1.readdirSync(ux__namespace.default.join(t,r)).flatMap(n=>{let i=ux__namespace.default.join(r,n),s=fs$1.statSync(ux__namespace.default.join(t,i));return s.isDirectory()?s5e(e,t,i):[{pathname:i,contentLength:s.size}]})}catch(n){throw e.log.debug(n),new Error(QN({...e,sourceDir:t},n).output)}}function gNr(e){let t="Output directory: ",r=e.lastIndexOf(t);if(r===-1)return;let n=e.slice(r+t.length),i=n.indexOf(`
`);return (i===-1?n:n.slice(0,i)).trim()}function n5e(e,t){let r=s5e(e,t).map(a=>({...a,knownAs:(0, i5e.default)(a.pathname)})),n=r.map(({contentLength:a})=>a).reduce((a,o)=>a+o,0),i=[],s="";for(let{knownAs:a}of r)a.endsWith("preview-stats.json")?s=ux__namespace.default.join(t,a):a.endsWith("manager-stats.json")||i.push(a);return {lengths:r,paths:i,statsPath:s,total:n}}var SNr=({paths:e,total:t})=>t>0&&e.includes("iframe.html")&&e.includes("index.html"),TNr=({paths:e,total:t})=>{let r=e.some(i=>i.endsWith(".apk")),n=e.includes("manifest.json");return t>0&&r&&n};async function ENr(e){let t=e.isReactNativeApp?TNr:SNr;if(e.fileInfo=n5e(e,e.sourceDir),!t(e.fileInfo)&&e.buildLogFile)try{let r=fs$1.readFileSync(e.buildLogFile,"utf8"),n=gNr(r);n&&n!==e.sourceDir&&(e.log.warn(X4e(e,n)),e.sourceDir=n,e.fileInfo=n5e(e,e.sourceDir));}catch(r){e.log.debug(r);}if(!t(e.fileInfo))throw new Error(QN(e).output)}async function bNr(e,t){var i,s;if(!e.turboSnap||e.turboSnap.unavailable||!e.git.changedFiles)return;if(!((i=e.fileInfo)!=null&&i.statsPath)){let a=((s=e.storybook)==null?void 0:s.version)&&K$.default.gte(K$.default.coerce(e.storybook.version)||"0.0.0","8.0.0");throw e.turboSnap.bailReason={missingStatsFile:!0},new Error(chunkHZVCNUTP_js.da({legacy:!a}))}St(Q4e)(e,t);let{statsPath:r}=e.fileInfo,{changedFiles:n}=e.git;try{let a=await chunkHZVCNUTP_js.ia(e);a?(e.onlyStoryFiles=Object.keys(a).map(o=>o.replaceAll(yNr,String.raw`\$1`)),e.options.interactive||(e.options.traceChanged||e.log.info(`Found affected story files:
${Object.entries(a).flatMap(([o,u])=>u.map(l=>` ${l} [${o}]`)).join(`
`)}`),e.untracedFiles&&e.untracedFiles.length>0&&e.log.info(`Encountered ${e.untracedFiles.length} untraced files:
${e.untracedFiles.map(o=>` ${o}`).join(`
`)}`)),St(e5e)(e,t)):St(Z4e)(e,t);}catch(a){throw e.options.interactive||e.log.info("Failed to retrieve dependent story files",{statsPath:r,changedFiles:n,err:a}),chunkHZVCNUTP_js.Z(a,`Could not retrieve dependent story files.
${a.message}`)}}async function vNr(e,t){if(!(e.skip||!e.options.fileHashing)){St(t5e)(e,t);try{if(!e.fileInfo)throw new Error(QN(e).output);let r=Date.now();e.fileInfo.hashes=await W4e(e.fileInfo.paths,e.sourceDir,e.env.CHROMATIC_HASH_CONCURRENCY),e.log.debug(`Calculated file hashes in ${Date.now()-r}ms`);}catch(r){e.log.warn("Failed to calculate file hashes"),e.log.debug(r);}}}function Y$(e){return Fn({name:"prepare",title:z4e(e).title,skip:t=>!!t.skip,steps:[St(J4e),ENr,bNr,vNr,St(r5e,!0)]})}var a5e=chunkTKGT252T_js.e(ow()),_Nr=e=>new Promise((t,r)=>{var a,o;let n="",i="",s=(0, a5e.spawn)(["install"],e);(a=s.stdout)==null||a.on("data",u=>{n+=u;}),(o=s.stderr)==null||o.on("data",u=>{i+=u;}),s.on("error",r),s.on("close",u=>{u===0?t(n):r(i);});}),eR=_Nr;var o5e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),u5e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var xNr="https://www.chromatic.com/docs/branching-and-baselines#how-is-merge-base-calculated",l5e=({patchHeadRef:e,patchBaseRef:t})=>(0, u5e.dedent)(o5e.default`
${chunkF6FLWRPJ_js.H} {bold Failed to retrieve the merge base}
Are you sure the head branch is a descendant (i.e. fork) of the base branch?
Try running this command yourself: {bold git merge-base ${e} ${t}}
${chunkF6FLWRPJ_js.E} Read more at ${chunkHZVCNUTP_js.f(xNr)}
`);var c5e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),p5e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var f5e=()=>(0, p5e.dedent)(c5e.default`
${chunkF6FLWRPJ_js.H} {bold Workspace not clean}
The git working directory must be clean before running a patch build.
Use {bold git stash --include-untracked --keep-index} to stash changes before you continue.
`);var h5e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C());var d5e=e=>h5e.default`${chunkF6FLWRPJ_js.H} {bold Workspace not up-to-date with remote}\n${e}`;var m5e={status:"initial",title:"Prepare workspace"},y5e=()=>({status:"pending",title:"Preparing your workspace",output:"Ensuring your git workspace is clean and up-to-date"}),g5e=e=>({status:"pending",title:"Preparing your workspace",output:`Looking up the git merge base for '${e.options.patchHeadRef}' on '${e.options.patchBaseRef}'`}),S5e=e=>{var t;return {status:"pending",title:"Preparing your workspace",output:`Checking out merge base commit '${(t=e.mergeBase)==null?void 0:t.slice(0,7)}'`}},T5e=()=>({status:"pending",title:"Preparing your workspace",output:"Installing dependencies"}),E5e=e=>{var t;return {status:"success",title:"Prepared your workspace",output:`Checked out commit '${(t=e.mergeBase)==null?void 0:t.slice(0,7)}' on '${e.options.patchBaseRef}'`}};var b5e={status:"initial",title:"Restore workspace"},v5e=()=>({status:"pending",title:"Restoring your workspace",output:"Discarding changes and restoring head location"}),_5e=()=>({status:"success",title:"Restored your workspace"});var W$=async e=>{await chunkHZVCNUTP_js.w(e),await chunkHZVCNUTP_js.v(e),await eR(),await chunkHZVCNUTP_js.w(e);};Fn({name:"restoreWorkspace",title:b5e.title,steps:[St(v5e),W$,St(_5e,!0)]});var ANr=async(e,t)=>{let{patchHeadRef:r,patchBaseRef:n}=e.options;if(!await chunkHZVCNUTP_js.r(e))throw chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.GIT_NOT_CLEAN,!0),e.log.error(f5e()),new Error("Working directory is not clean");if(!await chunkHZVCNUTP_js.q(e))throw chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.GIT_OUT_OF_DATE,!0),e.log.error(d5e(await chunkHZVCNUTP_js.s(e))),new Error("Workspace not up-to-date with remote");if(St(g5e)(e,t),e.mergeBase=await chunkHZVCNUTP_js.t(e,r,n),!e.mergeBase)throw chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.GIT_NO_MERGE_BASE,!0),e.log.error(l5e(e.options)),new Error("Could not find a merge base");St(S5e)(e,t),await chunkHZVCNUTP_js.u(e,e.mergeBase);try{St(T5e)(e,t),await eR();}catch(i){throw e.mergeBase=void 0,chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.NPM_INSTALL_FAILED),e.log.error(i),await W$(e),new Error("Failed to install dependencies")}};Fn({name:"prepareWorkspace",title:m5e.title,steps:[St(y5e),ANr,St(E5e,!0)]});var pK=chunkTKGT252T_js.e(f8e());var h8e={status:"initial",title:"Generate build report"},d8e=()=>({status:"pending",title:"Generating build report",output:"Collecting build information"}),m8e=e=>({status:"success",title:"Generated build report",output:`View report at ${e.reportPath}`});var CRr=`
query ReportQuery($buildNumber: Int!, $skip: Int, $limit: Int) {
app {
build(number: $buildNumber) {
number
status(legacy: false)
storybookUrl
webUrl
createdAt
completedAt
tests(skip: $skip, limit: $limit) {
status
result
spec {
name
component {
name
displayName
}
}
parameters {
viewport
viewportIsDefault
}
mode {
name
}
}
}
}
}
`,wRr=async e=>{let{log:t}=e,{junitReport:r}=e.options,{number:n}=e.build,i=typeof r=="boolean"&&r?"chromatic-build-{buildNumber}.xml":r;if(!i){t.debug("junit report not configured, skipping");return}e.reportPath=ux__namespace.default.resolve(i.replaceAll("{buildNumber}",String(n)));let s=await IRr(e),a=(s.completedAt||Date.now())-s.createdAt,o=pK.default.testSuite().name(`Chromatic build ${s.number}`).time(Math.round(a/1e3)).timestamp(new Date(s.createdAt).toISOString()).property("buildNumber",s.number).property("buildStatus",s.status).property("buildUrl",s.webUrl).property("storybookUrl",s.storybookUrl);for(let u of s.tests)ORr(o,u);pK.default.writeTo(e.reportPath),t.info(xN(e.reportPath,"JUnit XML"));},IRr=async e=>{let r=0,n=[];for(;;){let{app:{build:i}}=await e.client.runQuery(CRr,{buildNumber:e.build.number,skip:r,limit:1e3},{headers:{Authorization:`Bearer ${e.build.reportToken}`}});if(n.push(...i.tests),i.tests.length<1e3)return {...i,tests:n};r+=1e3;}},ORr=(e,t)=>{let{status:r,result:n,spec:i,parameters:s,mode:a}=t,o=a.name||`[${s.viewport}px]`,u=s.viewportIsDefault?"":o,l=e.testCase().className(i.component.name.replaceAll(/[/|]/g,"."));switch(l.property("result",r).name(`${i.name} ${u}`),r){case"FAILED":l.error("Server error while taking snapshot, please try again",r);break;case"BROKEN":l.error("Snapshot is broken due to an error in your Storybook",r);break;case"DENIED":l.failure("Snapshot was denied by a user",r);break;case"PENDING":l.failure("Snapshot contains visual changes and must be reviewed",r);break;default:["SKIPPED","PRESERVED"].includes(n)&&l.skipped();}};function fK(e){return Fn({name:"report",title:h8e.title,skip:t=>t.skip,steps:[St(d8e),wRr,St(m8e,!0)]})}chunkTKGT252T_js.e(c9e(),1);chunkTKGT252T_js.e(_K(),1);chunkTKGT252T_js.e(PK(),1);var E9e=chunkTKGT252T_js.e(NR(),1);chunkTKGT252T_js.e(T9e(),1);var b9e=E9e.default;var v9e=1e3,ZMr=1006,_9e="Build complete",eLr=at.object({completedAt:at.number().positive().optional(),inProgressCount:at.number().min(0),status:at.string()}),wu=class extends Error{constructor(r,n,i,s){super(r);this.statusCode=n;this.reason=i;this.originalError=s;this.name="NotifyServiceError";}},ZT=class extends wu{constructor(t,r,n,i){super(t,r,n,i),this.name="NotifyConnectionError";}},Ix=class extends wu{constructor(t,r,n,i){super(t,r,n,i),this.name="NotifyServiceMessageTimeoutError";}},Ch=class extends wu{constructor(t,r,n,i){super(t,r,n,i),this.name="NotifyServiceAuthenticationError";}};async function MK({notifyServiceUrl:e,buildId:t,progressMessageCallback:r,log:n,headers:i}){let s=`${e}/build/${t}`,a=new b9e(s,{handshakeTimeout:4e3,headers:i});return await new Promise((o,u)=>{a.on("open",()=>{n.debug(`notify service handshake successful at ${s}`);}),a.on("unexpected-response",(l,c)=>{let p=c.statusCode;switch(n.debug(`notify service unexpected response: ${p}`),p){case 400:u(new Ch("Invalid build ID",p));break;case 401:u(new Ch("Unauthorized request",p));break;case 403:u(new Ch("Access denied to build",p));break;case 404:u(new Ch("Build not found",p));break;default:u(new wu("Unexpected response from notify service",p));}}),a.on("close",(l,c)=>{let p=c.toString();n.debug(`notify service connection closed with code ${l}: ${p}`),l===v9e&&p===_9e&&o(),c.toString().includes("408 Request Timeout")&&u(new Ix("Timed out waiting for message from notify service",408,c.toString())),l===ZMr&&u(new ZT("Failed to connect to notify service",l,p)),u(new wu("Notify service connection closed unexpectedly",l,p));}),a.on("error",l=>{let c=l.code;(c==="ECONNREFUSED"||c==="ENOTFOUND"||c==="ETIMEDOUT"||c==="HPE_INVALID_CONSTANT"||l.message&&l.message.includes("Opening handshake has timed out"))&&u(new ZT("Failed to connect to notify service",c,void 0,l)),u(new wu("Notify service error occurred",c,void 0,l));}),a.on("message",l=>{try{let c=eLr.parse(JSON.parse(l.toString()));r&&r(c),c.completedAt&&(n.debug("notify service: build complete"),a.close(v9e,_9e),o());}catch(c){u(new wu("Unexpected error handling notify service message",void 0,void 0,c));}});})}var MR=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),LK=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),x9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var A9e=({build:e,exitCode:t,isOnboarding:r})=>{let n=r?e.app.setupUrl:e.webUrl,i=[];return e.changeCount>0&&i.push(MR.default`${chunkF6FLWRPJ_js.H} {bold Found ${(0, LK.default)("visual changes",e.changeCount,!0)}}`),e.accessibilityChangeCount>0&&i.push(MR.default`${chunkF6FLWRPJ_js.H} {bold Found ${(0, LK.default)("accessibility changes",e.accessibilityChangeCount,!0)}}`),(0, x9e.dedent)(MR.default`
${i.join(`
`)}
Review the changes at ${chunkHZVCNUTP_js.f(n)}
${chunkF6FLWRPJ_js.E} For CI/CD use cases, this command failed with exit code ${t}
Pass {bold --exit-zero-on-changes} to succeed this command regardless of changes.
Pass {bold --auto-accept-changes} to succeed and automatically accept any changes.
`)};var P9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),LR=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),C9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var w9e=({build:e,exitCode:t,isOnboarding:r})=>{let{errorCount:n,interactionTestFailuresCount:i,webUrl:s}=e,a=i>0,o=n-i>0,u=(0, LR.default)("failed test",i,!0),l;return a&&o?l=`Encountered ${(0, LR.default)("build error",n-i,!0)} and ${u}`:a?l=`Encountered ${u}`:l=`Encountered ${(0, LR.default)("build error",n,!0)}`,(0, C9e.dedent)(P9e.default`
${chunkF6FLWRPJ_js.H} {bold ${l}}: failing with exit code ${t}
${chunkF6FLWRPJ_js.E} Review the errors at ${chunkHZVCNUTP_js.f(r?e.app.setupUrl:s)}
`)};var kR=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Ox=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),FR=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Ll=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var kK=e=>En(e.options)?"test suite":"stories",I9e=e=>({status:"initial",title:`Test your ${kK(e)}`}),O9e=e=>({status:"skipped",title:`Test your ${kK(e)}`,output:"Skipped due to --dry-run"}),wh=({build:e})=>({tests:(0, Ll.default)("test",e.actualTestCount,!0),errors:(0, Ll.default)("component error",e.errorCount,!0),e2eErrors:(0, Ll.default)("test error",e.errorCount,!0),changes:(0, Ll.default)("change",e.changeCount,!0),stories:(0, Ll.default)("story",e.specCount,!0),e2eTests:(0, Ll.default)("test",e.specCount,!0),components:(0, Ll.default)("component",e.componentCount,!0),skips:(0, Ll.default)("test",e.testCount-e.actualTestCount,!0),snapshots:(0, Ll.default)("snapshot",e.actualCaptureCount,!0)}),FK=(e,{cursor:t=0,label:r=""}={})=>{let{build:n,options:i,onlyStoryFiles:s}=e;if(n.actualTestCount===0)return {status:"pending",title:"Finalizing build",output:s?"All tests skipped":"No tests run"};let{errors:a,e2eErrors:o,tests:u,skips:l}=wh(e),c=i.onlyStoryNames?` for stories matching ${i.onlyStoryNames.map(y=>`'${y}'`).join(", ")}`:"",p=s?" affected by recent changes":"",h=n.testCount>n.actualTestCount?` (skipping ${l})`:"",f=Math.round(t/n.actualTestCount*100),d=`${t}/${n.actualTestCount}`,m="";return n.errorCount&&(m=En(e.options)?`(${o}) `:`(${a}) `),{status:"pending",title:`Running ${u}${c}${p}${h}`,output:t?`${chunkHZVCNUTP_js.X(f)} ${d} ${m} ${r}`:"This may take a few minutes"}},D9e=e=>{let{snapshots:t,components:r,stories:n,e2eTests:i}=wh(e),s=En(e.options)?`Tested ${i}; captured ${t} in ${Dl(e)}`:`Tested ${n} across ${r}; captured ${t} in ${Dl(e)}`;return {status:"success",title:`Build ${e.build.number} passed!`,output:s}},N9e=e=>{let{snapshots:t,components:r,stories:n,e2eTests:i}=wh(e),s=En(e.options)?`Tested ${i}; captured ${t} in ${Dl(e)}`:`Tested ${n} across ${r}; captured ${t} in ${Dl(e)}`;return {status:"success",title:e.build.autoAcceptChanges?`Build ${e.build.number} auto-accepted`:`Build ${e.build.number} completed`,output:s}},R9e=e=>{let{snapshots:t,components:r,stories:n,e2eTests:i,errors:s,e2eErrors:a}=wh(e),o=En(e.options)?`Tested ${i}; captured ${t} and found ${a}`:`Tested ${n} across ${r}; captured ${t} and found ${s}`;return {status:"error",title:`Build ${e.build.number} failed after ${Dl(e)}`,output:o}},M9e=e=>({status:"error",title:`Build ${e.build.number} failed due to system error`,output:"Please try again, or contact us if the problem persists"}),L9e=e=>({status:"error",title:`Build ${e.build.number} canceled`,output:"Someone canceled the build before it completed"}),k9e=e=>({status:"skipped",title:`Test your ${kK(e)}`,output:e.isPublishOnly?"No UI tests or UI review enabled":`Skipped due to ${e.options.list?"--list":"--exit-once-uploaded"}`});var BK=e=>{let{snapshots:t,components:r,stories:n,e2eTests:i}=wh({build:e.build}),s=(e.build.changeCount||0)+(e.build.accessibilityChangeCount||0);if(e.isOnboarding){let o=En(e.options)?`We found ${i} and took ${t}.`:`We found ${r} with ${n} and took ${t}.`;return (0, FR.dedent)(kR.default`
${chunkF6FLWRPJ_js.F} {bold Build passed. Welcome to Chromatic!}
${o}
${chunkF6FLWRPJ_js.E} Please continue setup at ${chunkHZVCNUTP_js.f(e.build.app.setupUrl)}
`)}let a=[];return e.build.changeCount>0&&a.push((0, Ox.default)("visual changes",e.build.changeCount,!0)),e.build.accessibilityChangeCount>0&&a.push((0, Ox.default)("accessibility changes",e.build.accessibilityChangeCount,!0)),e.build.autoAcceptChanges&&s>0?(0, FR.dedent)(kR.default`
${chunkF6FLWRPJ_js.F} {bold Build ${e.build.number} passed!}
Auto-accepted ${(0, Ox.default)("changes",s,!0)}.
${chunkF6FLWRPJ_js.E} View build details at ${chunkHZVCNUTP_js.f(e.build.webUrl)}
`):(0, FR.dedent)(kR.default`
${chunkF6FLWRPJ_js.F} {bold Build ${e.build.number} passed!}
${s>0?a.join(" and "):"No changes"} ${(0, Ox.default)("was",s,!1)} found in this build.
${chunkF6FLWRPJ_js.E} View build details at ${chunkHZVCNUTP_js.f(e.build.webUrl)}
`)};var F9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),B9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var tLr={github:"GitHub",gitlab:"GitLab",bitbucket:"Bitbucket"},j9e=e=>(0, B9e.dedent)(F9e.default`
${chunkF6FLWRPJ_js.E} {bold Speed up Continuous Integration}
Your project is linked to ${tLr[e]} so Chromatic will report results there.
This means you can add the option \`with: exitOnceUploaded: true\` to your workflow to skip waiting for build results.
Read more here: ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/configure/")}
`);var rLr=`
query SnapshotBuildQuery($number: Int!) {
app {
build(number: $number) {
id
status(legacy: false)
autoAcceptChanges
inProgressCount: testCount(statuses: [IN_PROGRESS])
testCount
changeCount
errorCount: testCount(statuses: [BROKEN])
completedAt
}
}
}
`,nLr=async(e,t)=>{var y,g,v,E;let{client:r,log:n,uploadedBytes:i}=e,{app:s,number:a,tests:o,testCount:u,actualTestCount:l,reportToken:c}=e.build;s.repository&&i&&!e.options.junitReport&&n.info(j9e(s.repository.provider));let p=e.options.interactive&&u===l&&(o==null?void 0:o.map(({spec:S,parameters:x,mode:b})=>{let A=b.name||`[${x.viewport}px]`,D=x.viewportIsDefault?"":A;return `${S.component.displayName} \u203A ${S.name} ${D}`})),h=chunkHZVCNUTP_js.W(({cursor:S,label:x})=>{var b,A;t.output=FK(e,{cursor:S,label:x}).output,(A=(b=e.options).experimental_onTaskProgress)==null||A.call(b,{...e},{progress:S,total:l,unit:"snapshots"});},e.options.interactive?e.env.CHROMATIC_POLL_INTERVAL:e.env.CHROMATIC_OUTPUT_INTERVAL),f=S=>{if(l>0){let{inProgressCount:x=0}=S,b=l-x+1,A=p&&p[b-1]||"";h({cursor:b,label:A});}},d=async()=>{let S={headers:{Authorization:`Bearer ${c}`}},x=await r.runQuery(rLr,{number:a},S);return e.build={...e.build,...x.app.build},e.build.completedAt?e.build:(f(e.build),await chunkHZVCNUTP_js.V(e.env.CHROMATIC_POLL_INTERVAL),d())};l>0&&await iLr(e,f,c);let m=await d();switch(m.status){case"PASSED":chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK),e.log.info(BK(e)),St(D9e,!0)(e,t);break;case"ACCEPTED":case"PENDING":case"DENIED":{m.autoAcceptChanges||((y=e.options)==null?void 0:y.exitZeroOnChanges)==="true"||(E=(v=e.git).matchesBranch)!=null&&E.call(v,((g=e.options)==null?void 0:g.exitZeroOnChanges)||!1)?(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK),e.log.info(BK(e))):(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_HAS_CHANGES,!0),e.log.error(A9e(e))),St(N9e,!0)(e,t);break}case"BROKEN":chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_HAS_ERRORS,!0),e.log.error(w9e(e)),St(R9e,!0)(e,t);break;case"FAILED":chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_FAILED,!1),St(M9e,!0)(e,t);break;case"CANCELLED":chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_WAS_CANCELED,!0),St(L9e,!0)(e,t);break;default:throw new Error(`Unexpected build status: ${m.status}`)}};async function iLr(e,t,r){var n,i;try{await MK({notifyServiceUrl:e.env.CHROMATIC_NOTIFY_SERVICE_URL,buildId:e.build.id,progressMessageCallback:t,log:e.log,headers:{Authorization:`Bearer ${r}`}});}catch(s){ps(s),s instanceof ZT?e.log.debug(`Failed to connect to notify service, falling back to polling: code: ${s.statusCode}, original error: ${(n=s.originalError)==null?void 0:n.message}`):s instanceof Ix?e.log.debug("Timed out waiting for message from notify service, falling back to polling"):s instanceof Ch?e.log.debug(`Error authenticating with notify service: ${s.statusCode} ${s.message}`):s instanceof wu?e.log.debug(`Error getting updates from notify service: ${s.message} code: ${s.statusCode}, reason: ${s.reason}, original error: ${(i=s.originalError)==null?void 0:i.message}`):e.log.error(`Unexpected error from notify service: ${s.message}`);}}function jK(e){return Fn({name:"snapshot",title:I9e(e).title,skip:t=>t.skip?!0:t.skipSnapshots?k9e(t).output:t.options.dryRun?O9e(t).output:!1,steps:[St(FK),nLr]})}function q9e(e){let{storybookBaseDir:t}=e.options||{};if(t)return t;let{rootPath:r}=e.git||{};return r?chunkHZVCNUTP_js.ga(ux__namespace.default.join(".",ux__namespace.default.relative(r,""))):"."}var G9e=chunkTKGT252T_js.e(chunkIM5VGDJQ_js.a());var V9e=chunkTKGT252T_js.e(chunkLTE3MQL2_js.d());var sLr=e=>{var s;let{builder:t,storybookPackages:r,storybookVersion:n}=e,i=typeof t=="string"?t:t==null?void 0:t.name;return i?{name:i,packageVersion:(s=r==null?void 0:r[O_[i]])==null?void 0:s.version}:{name:"webpack4",packageVersion:n}},H9e=async e=>{let t=await(0, V9e.readFile)(e),r=Object.keys(Qc).find(s=>Qc[s]===t.framework.name||s===t.framework.name),n=sLr(t);return {version:t.storybookPackages&&r?t.storybookPackages[r].version:"",builder:n}};async function UK(e){try{if(e.options.storybookBuildDir){let t=ux__namespace.default.resolve(e.options.storybookBuildDir,"project.json");if((0,G9e.pathExistsSync)(t))return await H9e(t)}return await LLe(e)}catch(t){return e.log.debug(t),{}}}var oLr=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),uLr=e=>e.options.playwright?"Playwright for E2E":e.options.cypress?"Cypress for E2E":"E2E",lLr=e=>{if(En(e.options))return uLr(e);let{addons:t,version:r,builder:n}=e.storybook,i=r?`Storybook ${r}`:"",s=n?`${i}; using the ${n.name} builder (${n.packageVersion})`:i,a=t==null?void 0:t.filter(o=>o==null?void 0:o.name);return a!=null&&a.length?`${s}; supported addons found: ${a.map(o=>oLr(o.name)).join(", ")}`:`${s}; no supported addons found`},$9e=e=>({status:"initial",title:`Collect ${Jt(e)} metadata`}),K9e=e=>({status:"pending",title:`Collecting ${Jt(e)} metadata`}),Y9e=e=>({status:"success",title:`Collected ${Jt(e)} metadata`,output:lLr(e)});var cLr=async e=>{e.storybook={...await UK(e),baseDir:q9e(e)},e.storybook&&(e.storybook.version&&Bp("storybookVersion",e.storybook.version),Oy("storybook",e.storybook));};function qK(e){return Fn({name:"storybookInfo",title:$9e(e).title,skip:t=>t.skip,steps:[St(K9e),cLr,St(Y9e,!0)]})}var W9e=chunkTKGT252T_js.e(Ug()),pLr="OK";async function X9e(e,{name:t,url:r}){let{experimental_abortSignal:n}=e.options;return e.log.debug(`Waiting for '${t}' sentinel file to appear at ${r}`),(0, W9e.default)(async i=>{if(n!=null&&n.aborted)return i(n.reason||new Error("Aborted"));try{let a=await(await e.http.fetch(r,{signal:n},{retries:0,noLogErrorBody:!0})).text();if(a!==pLr)return e.log.debug(`Sentinel file '${t}' not OK, got '${a}'.`),i(new Error(`Sentinel file '${t}' not OK.`));e.log.debug(`Sentinel file '${t}' OK.`);}catch(s){let{message:a,response:o={}}=s;if(o.status===403)return i(new Error("Provided signature expired."));if(o.status===404)throw new Error(`Sentinel file '${t}' not present.`);return e.log.getLevel()==="debug"&&e.log.debug(await o.text()),i(new Error(a))}},{retries:185,minTimeout:1e3,maxTimeout:1e3})}var z9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),J9e=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Q9e=()=>(0, J9e.dedent)(z9e.default`
${chunkF6FLWRPJ_js.H} Failed to finalize upload. Please check ${chunkHZVCNUTP_js.f("https://status.chromatic.com/")} or contact support.
`);var VK=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var Z9e=e=>({status:"initial",title:`Publish your built ${Jt(e)}`}),eqe=e=>({status:"skipped",title:`Publish your built ${Jt(e)}`,output:"Skipped due to --dry-run"}),tqe=(e,t)=>{let r=`Invalid ${Jt(e)} build at ${e.sourceDir}`;return e.buildLogFile&&(r+=" (check the build log)"),t&&(r+=`: ${t.message}`),{status:"error",title:`Publishing your built ${Jt(e)}`,output:r}},rqe=e=>({status:"pending",title:`Publishing your built ${Jt(e)}`,output:"Starting publish"}),nqe=(e,{percentage:t})=>({status:"pending",title:`Publishing your built ${Jt(e)}`,output:`${chunkHZVCNUTP_js.X(t)} ${t}%`}),iqe=e=>({status:"pending",title:`Publishing your built ${Jt(e)}`,output:"Finalizing upload"}),sqe=e=>{var i;let t=(0, VK.default)("file",e.uploadedFiles,!0),r=_o(e.uploadedBytes||0),n=(i=e.fileInfo)!=null&&i.paths.length&&e.uploadedFiles&&e.fileInfo.paths.length>e.uploadedFiles?`, skipped ${(0, VK.default)("file",e.fileInfo.paths.length-e.uploadedFiles,!0)}`:"";return {status:"success",title:e.uploadedBytes?`Publish complete in ${Dl(e)}`:"Publish complete",output:e.uploadedBytes?`Uploaded ${t} (${r})${n}`:"No new files to upload"}},aqe=(e,{path:t})=>({status:"error",title:`Publishing your built ${Jt(e)}`,output:`Failed to upload ${t}`});var hLr=async(e,t)=>{var n;if(e.skip)return;let r=(n=e.fileInfo)==null?void 0:n.paths.map(i=>{var s,a,o;return {...((s=e.fileInfo)==null?void 0:s.hashes)&&{contentHash:e.fileInfo.hashes[i]},contentLength:((o=(a=e.fileInfo)==null?void 0:a.lengths.find(({knownAs:u})=>u===i))==null?void 0:o.contentLength)??-1,localPath:ux__namespace.default.join(e.sourceDir,i),targetPath:i}});if(!r)throw new Error(tqe(e).output);await x3e(e,r,{onProgress:chunkHZVCNUTP_js.W((i,s)=>{var o,u;let a=Math.round(i/s*100);t.output=nqe(e,{percentage:a}).output,(u=(o=e.options).experimental_onTaskProgress)==null||u.call(o,{...e},{progress:i,total:s,unit:"bytes"});},e.options.interactive?100:e.env.CHROMATIC_OUTPUT_INTERVAL),onError:(i,s)=>{throw s===i.message?new Error(aqe(e,{path:s}).output):i}});},dLr=async(e,t)=>{var n;if(e.skip||!((n=e.sentinelUrls)!=null&&n.length))return;St(iqe)(e,t);let r=Object.fromEntries(e.sentinelUrls.map(i=>{let{host:s,pathname:a}=new URL(i);return [s+a,{name:a.split("/").at(-1)||"",url:i}]}));try{await Promise.all(Object.values(r).map(i=>X9e(e,i)));}catch(i){throw e.log.error(Q9e()),i}};function HK(e){return Fn({name:"upload",title:Z9e(e).title,skip:t=>t.skip?!0:t.options.dryRun?eqe(t).output:!1,steps:[St(rqe),hLr,dLr,St(sqe,!0)]})}var oqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),uqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var lqe=({failureReason:e,storybookUrl:t})=>`${(0, uqe.dedent)(oqe.default`
${chunkF6FLWRPJ_js.H} {bold Failed to extract stories from your Storybook}
This is usually a problem with your published Storybook, not with Chromatic.
Build and open your Storybook locally and check the browser console for errors.
Visit your published Storybook at ${chunkHZVCNUTP_js.f(t)}
The following error was encountered while running your Storybook:
`)}
${e.trim()}`;var GK=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),cqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var mLr=({spec:e})=>GK.default`{dim → }${e.component.name}/${e.name}`,pqe=e=>(0, cqe.dedent)(GK.default`
{bold Listing available stories:}
${e.map(t=>mLr(t)).join(`
`)}
${chunkF6FLWRPJ_js.E} Use {bold --only-story-names} to run a build for a specific component or story.
Globs are supported, for example: {bold --only-story-names "${e[0].spec.component.name}/**"}
`);var $K=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),fqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var hqe=e=>{if(!e.storybookUrl)throw new Error("No Storybook URL provided");let t=[$K.default`${chunkF6FLWRPJ_js.F} {bold ${PN(Jt(e))} published}`];if(e.build.componentCount&&e.build.specCount){let{components:r,stories:n,e2eTests:i}=wh({build:e.build});t.push(En(e.options)?`We found ${i}.`:`We found ${r} with ${n}.`);}return t.push(`${chunkF6FLWRPJ_js.E} View your ${Jt(e)} at ${chunkHZVCNUTP_js.f(e.storybookUrl)}`),(0, fqe.dedent)($K.default`${t.join(`
`)}`)};var KK=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),YK=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),WK=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var dqe=({build:e,options:t,skipSnapshots:r})=>{let n=(0, YK.default)("snapshot",e.actualCaptureCount,!0),i=(0, YK.default)("snapshot",e.inheritedCaptureCount,!0);return !t.interactive||r?(0, WK.dedent)(KK.default`
${chunkF6FLWRPJ_js.F} {bold TurboSnap enabled}
Capturing ${n} and skipping ${i}.
`):(0, WK.dedent)(KK.default`
${chunkF6FLWRPJ_js.F} {bold TurboSnap enabled}
Captured ${n} and skipped ${i}.
`)};var mqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),yqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var gqe=({billingUrl:e})=>(0, yqe.dedent)(mqe.default`
${chunkF6FLWRPJ_js.G} {bold Build limited}
Visit ${chunkHZVCNUTP_js.f(e)} to verify your billing details.
`);var Sqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Tqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Eqe=({billingUrl:e})=>(0, Tqe.dedent)(Sqe.default`
${chunkF6FLWRPJ_js.G} {bold Payment required}
This build is limited because your account has a payment past due.
Visit ${chunkHZVCNUTP_js.f(e)} to update your billing details.
`);var bqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),vqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var _qe=({billingUrl:e})=>(0, vqe.dedent)(bqe.default`
${chunkF6FLWRPJ_js.G} {bold Snapshot quota reached}
This build is limited because your account is out of snapshots for the month.
Visit ${chunkHZVCNUTP_js.f(e)} to upgrade your plan.
`);var xqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Aqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Pqe=({build:e})=>(0, Aqe.dedent)(xqe.default`
${chunkF6FLWRPJ_js.G} {bold TurboSnap not available for your account}
To ensure your project is fully setup and baselines are properly established,
TurboSnap is not available until at least 10 builds are created from CI.
${chunkF6FLWRPJ_js.E} Review your TurboSnap availability on the Manage screen:
${chunkHZVCNUTP_js.f(e.app.manageUrl)}
`);var Cqe=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var wqe=e=>({status:"initial",title:`Verify your ${Jt(e)}`}),Iqe=e=>({status:"skipped",title:`Verify your ${Jt(e)}`,output:"Skipped due to --dry-run"}),Oqe=e=>({status:"pending",title:`Verifying your ${Jt(e)}`,output:"This may take a few minutes"}),XK=e=>({status:"error",title:`Verifying your ${Jt(e)}`,output:"Failed to publish build"}),Dqe=e=>{var t;return {status:"pending",title:"Starting partial build",output:e.options.onlyStoryFiles?`Snapshots will be limited to story files matching ${e.options.onlyStoryFiles.map(r=>`'${r}'`).join(", ")}`:`Snapshots will be limited to ${(t=e.onlyStoryFiles)==null?void 0:t.length} story files affected by recent changes`}},Nqe=e=>{var r;return {status:"pending",title:"Starting partial build",output:`Snapshots will be limited to ${En(e.options)?"tests":"stories"} matching ${(r=e.options.onlyStoryNames)==null?void 0:r.map(n=>`'${n}'`).join(", ")}`}},Rqe=(e,t)=>{let r=t.filter(i=>!i.completedAt).length,n=(0, Cqe.default)("upgrade build",t.length,!0);return {status:"pending",title:`Verifying your ${Jt(e)}`,output:`Waiting for ${r}/${n} to complete`}},Mqe=e=>({status:"success",title:e.isPublishOnly?`Published your ${Jt(e)}`:`Started build ${e.build.number}`,output:e.isOnboarding?`Continue setup at ${e.build.app.setupUrl}`:`View build details at ${e.build.webUrl}`});var yLr=`
mutation PublishBuildMutation($id: ID!, $input: PublishBuildInput!) {
publishBuild(id: $id, input: $input) {
# no need for legacy:false on PublishedBuild.status
status
storybookUrl
}
}
`,gLr=async e=>{let{turboSnap:t}=e,{id:r,reportToken:n}=e.announcedBuild,{replacementBuildIds:i}=e.git,{onlyStoryNames:s,onlyStoryFiles:a=e.onlyStoryFiles}=e.options,o,u="UNUSED";t&&(o=t.bailReason,u=t.bailReason?"BAILED":"APPLIED");let{publishBuild:l}=await e.client.runQuery(yLr,{id:r,input:{...a&&{onlyStoryFiles:a},...s&&{onlyStoryNames:[s].flat()},...i&&{replacementBuildIds:i},...o&&{turboSnapBailReason:o},turboSnapStatus:u}},{headers:{Authorization:`Bearer ${n}`},retries:3});if(e.announcedBuild={...e.announcedBuild,...l},e.storybookUrl=l.storybookUrl,l.status==="FAILED")throw chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_FAILED,!1),new Error(XK(e).output)},SLr=`
query StartedBuildQuery($number: Int!) {
app {
build(number: $number) {
startedAt
failureReason
upgradeBuilds {
completedAt
}
}
}
}
`,TLr=`
query VerifyBuildQuery($number: Int!) {
app {
build(number: $number) {
id
number
status(legacy: false)
specCount
componentCount
testCount
changeCount
errorCount: testCount(statuses: [BROKEN])
actualTestCount: testCount(statuses: [IN_PROGRESS])
actualCaptureCount
inheritedCaptureCount
interactionTestFailuresCount
webUrl
browsers {
browser
}
features {
uiTests
uiReview
isReactNativeApp
}
autoAcceptChanges
turboSnapEnabled
wasLimited
app {
manageUrl
setupUrl
account {
exceededThreshold
paymentRequired
billingUrl
}
repository {
provider
}
}
tests {
spec {
name
component {
name
displayName
}
}
parameters {
viewport
viewportIsDefault
}
mode {
name
}
}
}
}
}
`,ELr=async(e,t)=>{var l,c;let{client:r}=e,{list:n,onlyStoryNames:i,onlyStoryFiles:s=e.onlyStoryFiles}=e.options,{matchesBranch:a}=e.git;s&&St(Dqe)(e,t),i&&St(Nqe)(e,t);let o=Date.now(),u=async()=>{var v;let{storybookUrl:p}=e,{number:h,reportToken:f}=e.announcedBuild,d={number:h},m={headers:{Authorization:`Bearer ${f}`}},{app:{build:y}}=await r.runQuery(SLr,d,m);if(y.failureReason)throw e.log.warn(lqe({failureReason:y.failureReason,storybookUrl:p})),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.STORYBOOK_BROKEN,!0),new Error(XK(e).output);if(!y.startedAt){if((v=y.upgradeBuilds)!=null&&v.some(E=>!E.completedAt))t.output=Rqe(e,y.upgradeBuilds).output,o=Date.now()+e.env.CHROMATIC_POLL_INTERVAL;else if(Date.now()-o>e.env.STORYBOOK_VERIFY_TIMEOUT)throw chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.VERIFICATION_TIMEOUT),new Error("Build verification timed out");await chunkHZVCNUTP_js.V(e.env.CHROMATIC_POLL_INTERVAL),await u();return}let{app:{build:g}}=await r.runQuery(TLr,d,m);e.build={...e.announcedBuild,...e.build,...g};};if(await Promise.race([u(),new Promise((p,h)=>setTimeout(h,e.env.CHROMATIC_UPGRADE_TIMEOUT,new Error("Timed out waiting for upgrade builds to complete")))]),e.isPublishOnly=!((l=e.build.features)!=null&&l.uiReview)&&!((c=e.build.features)!=null&&c.uiTests),n&&e.build.tests&&e.log.info(pqe(e.build.tests)),e.turboSnap&&(e.turboSnap.unavailable?e.log.warn(Pqe(e)):e.build.turboSnapEnabled&&e.log.info(dqe(e))),e.build.wasLimited){let{account:p}=e.build.app;p!=null&&p.exceededThreshold?(e.log.warn(_qe(p)),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.ACCOUNT_QUOTA_REACHED,!0)):p!=null&&p.paymentRequired?(e.log.warn(Eqe(p)),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.ACCOUNT_PAYMENT_REQUIRED,!0)):(p&&e.log.warn(gqe(p)),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_WAS_LIMITED,!0));}e.build&&e.storybookUrl&&e.log.info(hqe(e)),St(Mqe,!0)(e,t),(n||e.isPublishOnly||a!=null&&a(e.options.exitOnceUploaded))&&(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK),e.skipSnapshots=!0);};function zK(e){return Fn({name:"verify",title:wqe(e).title,skip:t=>t.skip?!0:t.options.dryRun?Iqe(t).output:!1,steps:[St(Oqe),CN,gLr,ELr,jT]})}var JK=[u$,q$,qK,G$,l$,Y$,HK,zK,jK];function QK(e){let t=(e.options.patchHeadRef&&e.options.patchBaseRef,JK);return e.options.junitReport&&t.push(fK),t.map(r=>r(e))}var Lqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),kqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Fqe=()=>(0, kqe.dedent)(Lqe.default`
${chunkF6FLWRPJ_js.H} {bold Build canceled}
The build was canceled before it completed.
`);var Dx=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Bqe=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H());var jqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());function Nx(e,t,r=new Date().toISOString()){var A,D;let{flags:n,extraOptions:i,configuration:s,sessionId:a,pkg:o,packageJson:u}=e,{scripts:l={}}=u,c=chunkHZVCNUTP_js.f(o.bugs.email),p=chunkHZVCNUTP_js.f(o.docs),h=[t].flat(),{git:f,storybook:d,runtimeMetadata:m,exitCode:y,exitCodeKey:g,announcedBuild:v,build:E=v,buildCommand:S}=e,x=chunkHZVCNUTP_js.ba({timestamp:r,sessionId:a,gitVersion:f==null?void 0:f.version,gitBranch:f==null?void 0:f.branch,gitSlug:f==null?void 0:f.slug,fromCI:f==null?void 0:f.fromCI,ciService:f==null?void 0:f.ciService,nodePlatform:process.platform,nodeVersion:process.versions.node,...m,packageName:o.name,packageVersion:o.version,...d?{storybook:d}:{},flags:n,...i&&{extraOptions:i},...s&&{configuration:s},..."options"in e&&((A=e.options)!=null&&A.isLocalBuild)?{isLocalBuild:e.options.isLocalBuild}:{},..."options"in e&&((D=e.options)!=null&&D.buildScriptName)?{buildScript:l[e.options.buildScriptName]}:{},...S&&{buildCommand:S},exitCode:y,exitCodeKey:g,errorType:h.map(P=>P.name).join(`
`),errorMessage:chunkF6FLWRPJ_js.a(h[0].message.split(`
`)[0].trim()),...E&&{build:bLr(E)}},"projectToken","reportToken","userToken"),b=h.map(P=>P.stack).filter(Boolean);return [h.map(P=>P.message).join(`
`),b.length>0?Dx.default`{dim → View the full ${(0, Bqe.default)("stacktrace",b.length)} below}\n`:"",(0, jqe.dedent)(Dx.default`
If you need help, please chat with us at ${p} for the fastest response.
You can also email the team at ${c} if chat is not an option.
Please provide us with the above CLI output and the following info:
`),Dx.default`{bold ${JSON.stringify(x,void 0,2)}}`,b.length>0?Dx.default`\n{dim ${b.join(`
`)}}`:""].join(`
`)}function bLr({id:e,number:t,storybookUrl:r=void 0,webUrl:n=void 0}){return {id:e,number:t,...r&&{storybookUrl:r},...n&&{webUrl:n}}}var BR=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Uqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());function ZK({title:e},{error:t,response:r,statusCode:n}={}){let i=t?BR.default`\n{dim → ${t.message||t.toString()}}`:"",s=r&&r.statusText?` ${r.statusText}`:"",a=n?BR.default`\n{dim → Status: ${n}${s}}`:"";return (0, Uqe.dedent)(BR.default`
${chunkF6FLWRPJ_js.H} {bold Failed to ${chunkHZVCNUTP_js.U(e)}}
Could not connect to the Chromatic API. Check your internet connection or try again later.
Service status updates are provided at ${chunkHZVCNUTP_js.f("https://status.chromatic.com")}
${i}${a}
`)}var eY=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),qqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var vLr=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`;function tY({title:e},{message:t,extensions:r}){let n=t?eY.default`\n{dim → ${r&&r.code?`${r.code}: ${t}`:t}}`:"";return (0, qqe.dedent)(eY.default`
${chunkF6FLWRPJ_js.H} {bold Failed to ${vLr(e)}}
Error communicating with the Chromatic API. Check if your Chromatic client is up-to-date.
Service status updates are provided at ${chunkHZVCNUTP_js.f("https://status.chromatic.com")}
${n}
`)}var Vqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Hqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());var Gqe=({options:e,buildLogFile:t})=>{let{buildScriptName:r}=e;return (0, Hqe.dedent)(Vqe.default`
${chunkF6FLWRPJ_js.H} {bold Cannot run a build with no stories}
Your statically built Storybook exposes no stories. This indicates a problem with your Storybook. Here's what to do:
- Check the build log at {bold ${t}}
- Run {bold npm run ${r}} or {bold yarn ${r}} yourself and make sure it outputs a valid Storybook by opening the generated {bold index.html} in your browser.
- Make sure you haven't accidently ignored all stories. See ${chunkHZVCNUTP_js.f("https://www.chromatic.com/docs/disable-snapshots/")} for details.
`)};var eE=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),jR=chunkTKGT252T_js.e(chunkHZVCNUTP_js.H()),UR=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D());function rY({runtimeErrors:e=[],runtimeWarnings:t=[]}){let r=[...e,...t].map(c=>c.message||c.toString()),n=[...e,...t].map(c=>c.stack).filter(Boolean),i=n.length>0?eE.default`\n{dim → View the full ${(0, jR.default)("stacktrace",n.length)} below}`:"",s=e.length,a=t.length,o=[s&&(0, jR.default)("runtime error",s,!0),s&&a&&"and",a&&(0, jR.default)("warning",a,!0)].filter(Boolean).join(" "),u=(0, UR.dedent)(eE.default`
If you want to continue despite runtime errors, you can pass the
{bold --allow-console-errors} flag, but this is not recommended.`),l=(0, UR.dedent)(eE.default`
You should probably fix these warnings, but we'll continue anyway.`);return (0, UR.dedent)(eE.default`
${s?chunkF6FLWRPJ_js.H:chunkF6FLWRPJ_js.G} {bold Detected ${o} in your Storybook}
${r.join(`
`)}${i}
This is usually a problem with your Storybook, not with Chromatic.
Run your Storybook locally and check your browser console for errors.
${s?u:l}
${n.length>0?eE.default`\n{dim ${n.join(`
`)}}`:""}
`)}var $qe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C());function nY({title:e},t){return [$qe.default`${chunkF6FLWRPJ_js.H} {bold Failed to ${_Lr(e)}}`,t.message].join(`
`)}function _Lr(e){return `${e.charAt(0).toLowerCase()}${e.slice(1)}`}var Kqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.C()),Yqe=chunkTKGT252T_js.e(chunkF6FLWRPJ_js.D()),Wqe=({pkg:e})=>(0, Yqe.dedent)(Kqe.default`
{bold Chromatic CLI v${e.version}}
{dim ${e.docs}}
`);var xLr=e=>"options"in e;async function S1n({argv:e=[],flags:t,options:r}){var p,h,f,d,m,y,g,v,E,S,x,b,A,D,P,V,X,oe,le,Be,be,Ee,Te;let n={...Tj(e),...t&&{flags:t},...r&&{extraOptions:r}},{sessionId:i=chunkHZVCNUTP_js.b(),env:s=fj(),log:a=chunkHZVCNUTP_js.E(n.flags,n.extraOptions)}=r||{},o=await chunkLAQIPRAO_js.e({cwd:process.cwd(),normalize:!1});o||(a.error(chunkLAQIPRAO_js.f()),process.exit(253));let{path:u,packageJson:l}=o,c={...n,packagePath:u,packageJson:l,env:s,log:a,sessionId:i};return await ALr(c),{code:c.exitCode,url:((p=c.build)==null?void 0:p.webUrl)??((h=c.rebuildForBuild)==null?void 0:h.webUrl),buildUrl:((f=c.build)==null?void 0:f.webUrl)??((d=c.rebuildForBuild)==null?void 0:d.webUrl),storybookUrl:((m=c.build)==null?void 0:m.storybookUrl)||c.storybookUrl,specCount:((y=c.build)==null?void 0:y.specCount)??((g=c.rebuildForBuild)==null?void 0:g.specCount),componentCount:((v=c.build)==null?void 0:v.componentCount)??((E=c.rebuildForBuild)==null?void 0:E.componentCount),testCount:((S=c.build)==null?void 0:S.testCount)??((x=c.rebuildForBuild)==null?void 0:x.testCount),changeCount:((b=c.build)==null?void 0:b.changeCount)??((A=c.rebuildForBuild)==null?void 0:A.changeCount),errorCount:((D=c.build)==null?void 0:D.errorCount)??((P=c.rebuildForBuild)==null?void 0:P.errorCount),interactionTestFailuresCount:((V=c.build)==null?void 0:V.interactionTestFailuresCount)??((X=c.rebuildForBuild)==null?void 0:X.interactionTestFailuresCount),actualTestCount:((oe=c.build)==null?void 0:oe.actualTestCount)??((le=c.rebuildForBuild)==null?void 0:le.actualTestCount),actualCaptureCount:((Be=c.build)==null?void 0:Be.actualCaptureCount)??((be=c.rebuildForBuild)==null?void 0:be.actualCaptureCount),inheritedCaptureCount:((Ee=c.build)==null?void 0:Ee.inheritedCaptureCount)??((Te=c.rebuildForBuild)==null?void 0:Te.inheritedCaptureCount)}}async function ALr(e){var r;e.log.info(""),e.log.info(Wqe(e)),e.log.info("");let t=n=>{var i,s;e.log.info(""),e.log.error(Nx(e,[n].flat())),(s=(i=e.extraOptions)==null?void 0:i.experimental_onTaskError)==null||s.call(i,e,{formattedError:Nx(e,[n].flat()),originalError:n}),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.INVALID_OPTIONS,!0);};try{e.http=new fd(e),e.client=new ab(e,`${e.env.CHROMATIC_INDEX_URL}/graphql`,{headers:{"x-chromatic-session-id":e.sessionId,"x-chromatic-cli-version":e.pkg.version,"apollographql-client-name":"chromatic-cli","apollographql-client-version":e.pkg.version},retries:3}),e.configuration=await pj(((r=e.extraOptions)==null?void 0:r.configFile)||e.flags.configFile);let n=gj(e);e.options=n,e.log.setLogFile(n.logFile),chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.OK);}catch(n){return t(n)}if(!xLr(e))return t(new Error("Invalid context"));await Promise.all([PLr(e),z3(e)]).catch(n=>{ps(n),t(n);}),!En(e.options)&&[0,1].includes(e.exitCode)&&await Z3(e),e.options.diagnosticsFile&&await O3e(e),e.options.uploadMetadata&&await C3e(e);}async function PLr(e){var t,r,n;try{try{let i={log:e.log,renderer:dS};e.options.interactive&&(i.renderer=hS,e.log.queue()),await new Xqe.default(QK(e),i).run(e),e.log.debug("Tasks completed");}catch(i){throw ps(i),jT(e),i.code==="ECONNREFUSED"||i.name==="StatusCodeError"?(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.FETCH_ERROR),chunkHZVCNUTP_js.Z(i,ZK(e,i))):i.name==="GraphQLError"?(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.GRAPHQL_ERROR),chunkHZVCNUTP_js.Z(i,tY(e,i))):i.message.startsWith("Cannot run a build with no stories")?(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_NO_STORIES),chunkHZVCNUTP_js.Z(i,Gqe(e))):(t=e.options.experimental_abortSignal)!=null&&t.aborted?(chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.BUILD_WAS_CANCELED,!0),chunkHZVCNUTP_js.Z(i,Fqe())):chunkHZVCNUTP_js.Z(i,nY(e,i))}finally{let{runtimeErrors:i,runtimeWarnings:s}=e;(i&&i.length>0||s&&s.length>0)&&(e.log.info(""),e.log.error(rY(e))),e.log.flush();}}catch(i){let s=[i].flat(),a=Nx(e,s);(n=(r=e.options).experimental_onTaskError)==null||n.call(r,e,{formattedError:a,originalError:s[0]}),e.userError||(e.log.info(""),e.log.error(a)),e.exitCode||chunkHZVCNUTP_js.G(e,chunkHZVCNUTP_js.F.UNKNOWN_ERROR);}}async function T1n(e){let t;try{t=await chunkHZVCNUTP_js.j(e);}catch{t="";}let r=await chunkHZVCNUTP_js.l(e)||"",n=await chunkHZVCNUTP_js.k(e),i=await chunkHZVCNUTP_js.i(e)||"",s=gd(i),a=await chunkHZVCNUTP_js.x(e)||"",[o,u,...l]=t?t.split("/"):[],c=!!o&&!!u&&l.length===0,p=await chunkHZVCNUTP_js.m(e)||"";return {slug:c?t:"",branch:r,...n,uncommittedHash:p,userEmail:i,userEmailHash:s,repositoryRootDir:a}}/*! Bundled license information:
tslib/tslib.es6.js:
(*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** *)
object-assign/index.js:
(*
object-assign
(c) Sindre Sorhus
@license MIT
*)
normalize-path/index.js:
(*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*)
archiver/lib/error.js:
(**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
archiver/lib/core.js:
(**
* Archiver Core
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
crc-32/crc32.js:
(*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)
zip-stream/index.js:
(**
* ZipStream
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
* @copyright (c) 2014 Chris Talkington, contributors.
*)
archiver/lib/plugins/zip.js:
(**
* ZIP Format Plugin
*
* @module plugins/zip
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
archiver/lib/plugins/tar.js:
(**
* TAR Format Plugin
*
* @module plugins/tar
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
archiver/lib/plugins/json.js:
(**
* JSON Format Plugin
*
* @module plugins/json
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
archiver/index.js:
(**
* Archiver Vending
*
* @ignore
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
* @copyright (c) 2012-2014 Chris Talkington, contributors.
*)
filesize/dist/filesize.esm.js:
(**
* filesize
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 10.1.2
*)
formdata-node/lib/form-data.js:
(*! Based on fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> & David Frank *)
*/
exports.a = ps;
exports.b = rae;
exports.c = Zot;
exports.d = pj;
exports.e = S1n;
exports.f = ALr;
exports.g = T1n;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-QIKU3X32.js.map
//# debugId=0aaaa9ed-b8ab-54a8-a93f-99e3edf4e7af