gemi 0.4.78 → 0.4.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.js +1 -1
- package/dist/chunk-0f4780d78065ed6f.js +2 -0
- package/dist/chunk-1488c30be491de9b.js +2 -0
- package/dist/chunk-1e96eb132f10e361.js +2 -0
- package/dist/{chunk-4ad752c87b795617.js → chunk-3bb296632dccdb02.js} +1 -1
- package/dist/chunk-3ccfbc315f74b335.js +2 -0
- package/dist/chunk-4573fe60e6dbd787.js +2 -0
- package/dist/chunk-4e41bf12b68e3aa2.js +2 -0
- package/dist/chunk-584b2ebaffb0c907.js +9 -0
- package/dist/{chunk-28c7d04b6f555350.js → chunk-611480789c8b04f4.js} +2 -2
- package/dist/chunk-788611478527c8c3.js +6 -0
- package/dist/chunk-7ab2e8abae3c8902.js +2 -0
- package/dist/{chunk-9631e167bae739a0.js → chunk-827fe74e5b55863c.js} +1 -1
- package/dist/chunk-8b1dc3428a74b1f4.js +2 -0
- package/dist/chunk-9b2a6bd400c9c6c7.js +18 -0
- package/dist/chunk-9ca526226958d45c.js +2 -0
- package/dist/chunk-a2795d68352fdd98.js +2 -0
- package/dist/chunk-ae46c8b6092236d2.js +2 -0
- package/dist/chunk-b092d6945f70ff1c.js +2 -0
- package/dist/chunk-bfc01c0e40e4551c.js +2 -0
- package/dist/chunk-e20c0e69128c42f5.js +2 -0
- package/dist/{chunk-20e12a96dfe36b97.js → chunk-e9695f3cdafee20b.js} +1 -1
- package/dist/{chunk-4e37f45d636da627.js → chunk-ed4022c20775d58f.js} +1 -1
- package/dist/chunk-f7784dffc6c59a9e.js +2 -0
- package/dist/chunk-fcaf4626e5fe5d26.js +3 -0
- package/dist/client/index.js +8 -7
- package/dist/client/useQuery.d.ts.map +1 -1
- package/dist/email/Email.d.ts +12 -5
- package/dist/email/Email.d.ts.map +1 -1
- package/dist/email/index.d.ts +0 -2
- package/dist/email/index.d.ts.map +1 -1
- package/dist/email/index.js +1 -1
- package/dist/facades/Prefetch.d.ts.map +1 -1
- package/dist/facades/index.js +1 -1
- package/dist/http/index.js +1 -1
- package/dist/kernel/Kernel.d.ts +4 -3
- package/dist/kernel/Kernel.d.ts.map +1 -1
- package/dist/kernel/context.d.ts +2 -2
- package/dist/kernel/context.d.ts.map +1 -1
- package/dist/kernel/index.js +1 -2
- package/dist/server/index.js +1 -1
- package/dist/services/ServiceContainer.d.ts +7 -0
- package/dist/services/ServiceContainer.d.ts.map +1 -0
- package/dist/services/email/EmailServiceContainer.d.ts +8 -0
- package/dist/services/email/EmailServiceContainer.d.ts.map +1 -0
- package/dist/services/email/EmailServiceProvider.d.ts +9 -0
- package/dist/services/email/EmailServiceProvider.d.ts.map +1 -0
- package/dist/services/email/drivers/EmailDriver.d.ts +5 -0
- package/dist/services/email/drivers/EmailDriver.d.ts.map +1 -0
- package/dist/services/email/drivers/ResendDriver.d.ts +8 -0
- package/dist/services/email/drivers/ResendDriver.d.ts.map +1 -0
- package/dist/{email → services/email/drivers}/types.d.ts +2 -3
- package/dist/services/email/drivers/types.d.ts.map +1 -0
- package/dist/services/index.d.ts +4 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-168ace6fc79b185b.js +0 -2
- package/dist/chunk-1c56f79378e4123d.js +0 -2
- package/dist/chunk-269dd2cd89aa1c32.js +0 -2
- package/dist/chunk-30daf610f498e198.js +0 -6
- package/dist/chunk-3abc648638ed6645.js +0 -18
- package/dist/chunk-48b2990a93ae50b3.js +0 -2
- package/dist/chunk-52dd5453e79e1cef.js +0 -2
- package/dist/chunk-5c1c113b94101135.js +0 -2
- package/dist/chunk-5fb9d31b7b4629e9.js +0 -1
- package/dist/chunk-8bf925705fdcef0c.js +0 -2
- package/dist/chunk-9c05674e98ebc485.js +0 -2
- package/dist/chunk-a5da5f8d6f9e8633.js +0 -2
- package/dist/chunk-b943cac32cc3670f.js +0 -2
- package/dist/chunk-d4eceea16ddc567d.js +0 -9
- package/dist/chunk-e64fe80074576b85.js +0 -2
- package/dist/chunk-f9d7921dc209275a.js +0 -2
- package/dist/email/EmailServiceProvider.d.ts +0 -8
- package/dist/email/EmailServiceProvider.d.ts.map +0 -1
- package/dist/email/EmailTemplate.d.ts +0 -22
- package/dist/email/EmailTemplate.d.ts.map +0 -1
- package/dist/email/providers.d.ts +0 -5
- package/dist/email/providers.d.ts.map +0 -1
- package/dist/email/types.d.ts.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{B as N} from"./chunk-e3d242546d1a2927.js";import{K as _} from"./chunk-3bb296632dccdb02.js";var B$=N((i6,U$)=>{var Y9=function(z,Z){if(z)return;if(e4)throw new Error(PY);var Y=typeof Z==="function"?Z():Z,$=Y?"".concat(PY,": ").concat(Y):PY;throw new Error($)},e4=!1,PY="Invariant failed";U$.exports=Y9});var S=N((R$)=>{var z9=function(z){var Z=z.use(Z9.default),Y=Z.Type,$=Z.builtInTypes,K=$.number;function J(G){return Y.from(function(O){return K.check(O)&&O>=G},K+" >= "+G)}var X={null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},q=Y.or($.string,$.number,$.boolean,$.null,$.undefined),W=Y.from(function(G){if(G===null)return!0;var O=typeof G;if(O==="object"||O==="function")return!1;return!0},q.toString());return{geq:J,defaults:X,isPrimitive:W}},K9=function(z){try{var Z=z(),Y=Z.exports,$=Y.default}catch(K){return}if($&&$!==Y&&typeof Y==="object"){if(Object.assign($,Y,{default:$}),Y.__esModule)Object.defineProperty($,"__esModule",{value:!0});Z.exports=$}};Object.defineProperty(R$,"__esModule",{value:!0});R$.maybeSetModuleExports=void 0;var $9=_(),Z9=$9.__importDefault(y());R$.default=z9;R$.maybeSetModuleExports=K9});var y=N((N$,M$)=>{var gY=function(z){if(Array.isArray(z))return"["+z.map(gY).join(", ")+"]";if(z&&typeof z==="object")return"{ "+Object.keys(z).map(function(Z){return Z+": "+z[Z]}).join(", ")+" }";return JSON.stringify(z)},X9=function(z){var Z={or:function(){var R=[];for(var T=0;T<arguments.length;T++)R[T]=arguments[T];return new v$(R.map(function(L){return Z.from(L)}))},from:function(R,T){if(R instanceof yY||R instanceof L$||R instanceof T$||R instanceof v$||R instanceof FY)return R;if(R instanceof UY)return R.type;if(q.check(R)){if(R.length!==1)throw new Error("only one element type is permitted for typed arrays");return new yY(Z.from(R[0]))}if(W.check(R))return new T$(Object.keys(R).map(function(C){return new k$(C,Z.from(R[C],C))}));if(typeof R==="function"){var L=Y.indexOf(R);if(L>=0)return $[L];if(typeof T!=="string")throw new Error("missing name");return new FY(T,R)}return new L$(R)},def:function(R){return s.call(Q,R)?Q[R]:Q[R]=new A(R)},hasDef:function(R){return s.call(Q,R)}},Y=[],$=[];function K(R,T){var L=BY.call(T),C=new FY(R,function(M){return BY.call(M)===L});if(T&&typeof T.constructor==="function")Y.push(T.constructor),$.push(C);return C}var J=K("string","truthy"),X=K("function",function(){}),q=K("array",[]),W=K("object",{}),G=K("RegExp",/./),O=K("Date",new Date),w=K("number",3),I=K("boolean",!0),V=K("null",null),D=K("undefined",void 0),H=typeof BigInt==="function"?K("BigInt",BigInt(1234)):new FY("BigInt",function(){return!1}),E={string:J,function:X,array:q,object:W,RegExp:G,Date:O,number:w,boolean:I,null:V,undefined:D,BigInt:H},Q=Object.create(null);function U(R){if(R&&typeof R==="object"){var T=R.type;if(typeof T==="string"&&s.call(Q,T)){var L=Q[T];if(L.finalized)return L}}return null}var A=function(R){KY.__extends(T,R);function T(L){var C=R.call(this,new FY(L,function(M,x){return C.check(M,x)}),L)||this;return C}return T.prototype.check=function(L,C){if(this.finalized!==!0)throw new Error("prematurely checking unfinalized type "+this.typeName);if(L===null||typeof L!=="object")return!1;var M=U(L);if(!M){if(this.typeName==="SourceLocation"||this.typeName==="Position")return this.checkAllFields(L,C);return!1}if(C&&M===this)return this.checkAllFields(L,C);if(!this.isSupertypeOf(M))return!1;if(!C)return!0;return M.checkAllFields(L,C)&&this.checkAllFields(L,!1)},T.prototype.build=function(){var L=this,C=[];for(var M=0;M<arguments.length;M++)C[M]=arguments[M];if(this.buildParams=C,this.buildable)return this;this.field("type",String,function(){return L.typeName}),this.buildable=!0;var x=function(g,h,t,YY){if(s.call(g,h))return;var a=L.allFields;if(!s.call(a,h))throw new Error(""+h);var $Y=a[h],r4=$Y.type,GY;if(YY)GY=t;else if($Y.defaultFn)GY=$Y.defaultFn.call(g);else{var t4="no value or default function given for field "+JSON.stringify(h)+" of "+L.typeName+"("+L.buildParams.map(function(a4){return a[a4]}).join(", ")+")";throw new Error(t4)}if(!r4.check(GY))throw new Error(gY(GY)+" does not match field "+$Y+" of type "+L.typeName);g[h]=GY},l=function(){var g=[];for(var h=0;h<arguments.length;h++)g[h]=arguments[h];var t=g.length;if(!L.finalized)throw new Error("attempting to instantiate unfinalized type "+L.typeName);var YY=Object.create(k);if(L.buildParams.forEach(function(a,$Y){if($Y<t)x(YY,a,g[$Y],!0);else x(YY,a,null,!1)}),Object.keys(L.allFields).forEach(function(a){x(YY,a,null,!1)}),YY.type!==L.typeName)throw new Error("");return YY};return l.from=function(g){if(!L.finalized)throw new Error("attempting to instantiate unfinalized type "+L.typeName);var h=Object.create(k);if(Object.keys(L.allFields).forEach(function(t){if(s.call(g,t))x(h,t,g[t],!0);else x(h,t,null,!1)}),h.type!==L.typeName)throw new Error("");return h},Object.defineProperty(B,u(this.typeName),{enumerable:!0,value:l}),this},T.prototype.field=function(L,C,M,x){if(this.finalized)return console.error("Ignoring attempt to redefine field "+JSON.stringify(L)+" of finalized type "+JSON.stringify(this.typeName)),this;return this.ownFields[L]=new k$(L,Z.from(C),M,x),this},T.prototype.finalize=function(){var L=this;if(!this.finalized){var C=this.allFields,M=this.allSupertypes;this.baseNames.forEach(function(l){var g=Q[l];if(g instanceof UY)g.finalize(),bY(C,g.allFields),bY(M,g.allSupertypes);else{var h="unknown supertype name "+JSON.stringify(l)+" for subtype "+JSON.stringify(L.typeName);throw new Error(h)}}),bY(C,this.ownFields),M[this.typeName]=this,this.fieldNames.length=0;for(var x in C)if(s.call(C,x)&&!C[x].hidden)this.fieldNames.push(x);if(Object.defineProperty(j$,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,i4(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0)o4(this.typeName)}},T}(UY);function F(R){if(!s.call(Q,R))throw new Error("");var T=Q[R];if(T.finalized!==!0)throw new Error("");return T.supertypeList.slice(1)}function j(R){var T={},L=Object.keys(Q),C=L.length;for(var M=0;M<C;++M){var x=L[M],l=Q[x];if(l.finalized!==!0)throw new Error(""+x);for(var g=0;g<l.supertypeList.length;++g){var h=l.supertypeList[g];if(s.call(R,h)){T[x]=h;break}}}return T}var B=Object.create(null),k={};function b(R,T){var L=k[R];if(D.check(T))delete k[R];else X.assert(T),Object.defineProperty(k,R,{enumerable:!0,configurable:!0,value:T});return L}function u(R){return R.replace(/^[A-Z]+/,function(T){var L=T.length;switch(L){case 0:return"";case 1:return T.toLowerCase();default:return T.slice(0,L-1).toLowerCase()+T.charAt(L-1)}})}function i(R){return R=u(R),R.replace(/(Expression)?$/,"Statement")}var j$={};function _Y(R){var T=U(R);if(T)return T.fieldNames.slice(0);if("type"in R)throw new Error("did not recognize object of type "+JSON.stringify(R.type));return Object.keys(R)}function SY(R,T){var L=U(R);if(L){var C=L.allFields[T];if(C)return C.getValue(R)}return R&&R[T]}function s4(R,T,L){_Y(R).forEach(function(C){T.call(this,C,SY(R,C))},L)}function n4(R,T,L){return _Y(R).some(function(C){return T.call(this,C,SY(R,C))},L)}function o4(R){var T=i(R);if(B[T])return;var L=B[u(R)];if(!L)return;var C=function(){var M=[];for(var x=0;x<arguments.length;x++)M[x]=arguments[x];return B.expressionStatement(L.apply(B,M))};C.from=function(){var M=[];for(var x=0;x<arguments.length;x++)M[x]=arguments[x];return B.expressionStatement(L.from.apply(B,M))},B[T]=C}function i4(R,T){T.length=0,T.push(R);var L=Object.create(null);for(var C=0;C<T.length;++C){R=T[C];var M=Q[R];if(M.finalized!==!0)throw new Error("");if(s.call(L,R))delete T[L[R]];L[R]=C,T.push.apply(T,M.baseNames)}for(var x=0,l=x,g=T.length;l<g;++l)if(s.call(T,l))T[x++]=T[l];T.length=x}function bY(R,T){return Object.keys(T).forEach(function(L){R[L]=T[L]}),R}function p4(){Object.keys(Q).forEach(function(R){Q[R].finalize()})}return{Type:Z,builtInTypes:E,getSupertypeNames:F,computeSupertypeLookupTable:j,builders:B,defineMethod:b,getBuilderName:u,getStatementBuilderName:i,namedTypes:j$,getFieldNames:_Y,getFieldValue:SY,eachField:s4,someField:n4,finalize:p4}};Object.defineProperty(N$,"__esModule",{value:!0});N$.Def=void 0;var KY=_(),W9=S(),C$=Object.prototype,BY=C$.toString,s=C$.hasOwnProperty,IY=function(){function z(){}return z.prototype.assert=function(Z,Y){if(!this.check(Z,Y)){var $=gY(Z);throw new Error($+" does not match type "+this)}return!0},z.prototype.arrayOf=function(){var Z=this;return new yY(Z)},z}(),yY=function(z){KY.__extends(Z,z);function Z(Y){var $=z.call(this)||this;return $.elemType=Y,$.kind="ArrayType",$}return Z.prototype.toString=function(){return"["+this.elemType+"]"},Z.prototype.check=function(Y,$){var K=this;return Array.isArray(Y)&&Y.every(function(J){return K.elemType.check(J,$)})},Z}(IY),L$=function(z){KY.__extends(Z,z);function Z(Y){var $=z.call(this)||this;return $.value=Y,$.kind="IdentityType",$}return Z.prototype.toString=function(){return String(this.value)},Z.prototype.check=function(Y,$){var K=Y===this.value;if(!K&&typeof $==="function")$(this,Y);return K},Z}(IY),T$=function(z){KY.__extends(Z,z);function Z(Y){var $=z.call(this)||this;return $.fields=Y,$.kind="ObjectType",$}return Z.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"},Z.prototype.check=function(Y,$){return BY.call(Y)===BY.call({})&&this.fields.every(function(K){return K.type.check(Y[K.name],$)})},Z}(IY),v$=function(z){KY.__extends(Z,z);function Z(Y){var $=z.call(this)||this;return $.types=Y,$.kind="OrType",$}return Z.prototype.toString=function(){return this.types.join(" | ")},Z.prototype.check=function(Y,$){if(this.types.some(function(K){return K.check(Y,!!$)}))return!0;if(typeof $==="function")$(this,Y);return!1},Z}(IY),FY=function(z){KY.__extends(Z,z);function Z(Y,$){var K=z.call(this)||this;return K.name=Y,K.predicate=$,K.kind="PredicateType",K}return Z.prototype.toString=function(){return this.name},Z.prototype.check=function(Y,$){var K=this.predicate(Y,$);if(!K&&typeof $==="function")$(this,Y);return K},Z}(IY),UY=function(){function z(Z,Y){this.type=Z,this.typeName=Y,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 z.prototype.isSupertypeOf=function(Z){if(Z instanceof z){if(this.finalized!==!0||Z.finalized!==!0)throw new Error("");return s.call(Z.allSupertypes,this.typeName)}else throw new Error(Z+" is not a Def")},z.prototype.checkAllFields=function(Z,Y){var $=this.allFields;if(this.finalized!==!0)throw new Error(""+this.typeName);function K(J){var X=$[J],q=X.type,W=X.getValue(Z);return q.check(W,Y)}return Z!==null&&typeof Z==="object"&&Object.keys($).every(K)},z.prototype.bases=function(){var Z=[];for(var Y=0;Y<arguments.length;Y++)Z[Y]=arguments[Y];var $=this.baseNames;if(this.finalized){if(Z.length!==$.length)throw new Error("");for(var K=0;K<Z.length;K++)if(Z[K]!==$[K])throw new Error("");return this}return Z.forEach(function(J){if($.indexOf(J)<0)$.push(J)}),this},z}();N$.Def=UY;var k$=function(){function z(Z,Y,$,K){this.name=Z,this.type=Y,this.defaultFn=$,this.hidden=!!K}return z.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},z.prototype.getValue=function(Z){var Y=Z[this.name];if(typeof Y!=="undefined")return Y;if(typeof this.defaultFn==="function")Y=this.defaultFn.call(Z);return Y},z}();N$.default=X9;W9.maybeSetModuleExports(function(){return M$})});var hY=N((_$,S$)=>{var F9=function(z){var Z=z.use(q9.default),Y=Z.builtInTypes.array,$=Z.builtInTypes.number,K=function w(I,V,D){if(!(this instanceof w))throw new Error("Path constructor cannot be invoked without 'new'");if(V){if(!(V instanceof w))throw new Error("")}else V=null,D=null;this.value=I,this.parentPath=V,this.name=D,this.__childCache=null},J=K.prototype;function X(w){return w.__childCache||(w.__childCache=Object.create(null))}function q(w,I){var V=X(w),D=w.getValueProperty(I),H=V[I];if(!RY.call(V,I)||H.value!==D)H=V[I]=new w.constructor(D,w,I);return H}J.getValueProperty=function w(I){return this.value[I]},J.get=function w(){var I=[];for(var V=0;V<arguments.length;V++)I[V]=arguments[V];var D=this,H=I.length;for(var E=0;E<H;++E)D=q(D,I[E]);return D},J.each=function w(I,V){var D=[],H=this.value.length,E=0;for(var E=0;E<H;++E)if(RY.call(this.value,E))D[E]=this.get(E);V=V||this;for(E=0;E<H;++E)if(RY.call(D,E))I.call(V,D[E])},J.map=function w(I,V){var D=[];return this.each(function(H){D.push(I.call(this,H))},V),D},J.filter=function w(I,V){var D=[];return this.each(function(H){if(I.call(this,H))D.push(H)},V),D};function W(){}function G(w,I,V,D){if(Y.assert(w.value),I===0)return W;var H=w.value.length;if(H<1)return W;var E=arguments.length;if(E===2)V=0,D=H;else if(E===3)V=Math.max(V,0),D=H;else V=Math.max(V,0),D=Math.min(D,H);$.assert(V),$.assert(D);var Q=Object.create(null),U=X(w);for(var A=V;A<D;++A)if(RY.call(w.value,A)){var F=w.get(A);if(F.name!==A)throw new Error("");var j=A+I;F.name=j,Q[j]=F,delete U[A]}return delete U.length,function(){for(var B in Q){var k=Q[B];if(k.name!==+B)throw new Error("");U[B]=k,w.value[B]=k.value}}}J.shift=function w(){var I=G(this,-1),V=this.value.shift();return I(),V},J.unshift=function w(){var I=[];for(var V=0;V<arguments.length;V++)I[V]=arguments[V];var D=G(this,I.length),H=this.value.unshift.apply(this.value,I);return D(),H},J.push=function w(){var I=[];for(var V=0;V<arguments.length;V++)I[V]=arguments[V];return Y.assert(this.value),delete X(this).length,this.value.push.apply(this.value,I)},J.pop=function w(){Y.assert(this.value);var I=X(this);return delete I[this.value.length-1],delete I.length,this.value.pop()},J.insertAt=function w(I){var V=arguments.length,D=G(this,V-1,I);if(D===W&&V<=1)return this;I=Math.max(I,0);for(var H=1;H<V;++H)this.value[I+H-1]=arguments[H];return D(),this},J.insertBefore=function w(){var I=[];for(var V=0;V<arguments.length;V++)I[V]=arguments[V];var D=this.parentPath,H=I.length,E=[this.name];for(var Q=0;Q<H;++Q)E.push(I[Q]);return D.insertAt.apply(D,E)},J.insertAfter=function w(){var I=[];for(var V=0;V<arguments.length;V++)I[V]=arguments[V];var D=this.parentPath,H=I.length,E=[this.name+1];for(var Q=0;Q<H;++Q)E.push(I[Q]);return D.insertAt.apply(D,E)};function O(w){if(!(w instanceof K))throw new Error("");var I=w.parentPath;if(!I)return w;var V=I.value,D=X(I);if(V[w.name]===w.value)D[w.name]=w;else if(Y.check(V)){var H=V.indexOf(w.value);if(H>=0)D[w.name=H]=w}else V[w.name]=w.value,D[w.name]=w;if(V[w.name]!==w.value)throw new Error("");if(w.parentPath.get(w.name)!==w)throw new Error("");return w}return J.replace=function w(I){var V=[],D=this.parentPath.value,H=X(this.parentPath),E=arguments.length;if(O(this),Y.check(D)){var Q=D.length,U=G(this.parentPath,E-1,this.name+1),A=[this.name,1];for(var F=0;F<E;++F)A.push(arguments[F]);var j=D.splice.apply(D,A);if(j[0]!==this.value)throw new Error("");if(D.length!==Q-1+E)throw new Error("");if(U(),E===0)delete this.value,delete H[this.name],this.__childCache=null;else{if(D[this.name]!==I)throw new Error("");if(this.value!==I)this.value=I,this.__childCache=null;for(F=0;F<E;++F)V.push(this.parentPath.get(this.name+F));if(V[0]!==this)throw new Error("")}}else if(E===1){if(this.value!==I)this.__childCache=null;this.value=D[this.name]=I,V.push(this)}else if(E===0)delete D[this.name],delete this.value,this.__childCache=null;else throw new Error("Could not replace path");return V},K};Object.defineProperty(_$,"__esModule",{value:!0});var D9=_(),H9=S(),q9=D9.__importDefault(y()),G9=Object.prototype,RY=G9.hasOwnProperty;_$.default=F9;H9.maybeSetModuleExports(function(){return S$})});var y$=N((b$,P$)=>{var w9=function(z){var Z=z.use(V9.default),Y=Z.Type,$=Z.namedTypes,K=$.Node,J=$.Expression,X=Z.builtInTypes.array,q=Z.builders,W=function F(j,B){if(!(this instanceof F))throw new Error("Scope constructor cannot be invoked without 'new'");if(!O.check(j.value))G.assert(j.value);var k;if(B){if(!(B instanceof F))throw new Error("");k=B.depth+1}else B=null,k=0;Object.defineProperties(this,{path:{value:j},node:{value:j.value},isGlobal:{value:!B,enumerable:!0},depth:{value:k},parent:{value:B},bindings:{value:{}},types:{value:{}}})},G=Y.or($.Program,$.Function,$.CatchClause),O=Y.or($.Function,$.ClassDeclaration,$.ClassExpression,$.InterfaceDeclaration,$.TSInterfaceDeclaration,$.TypeAlias,$.TSTypeAliasDeclaration),w=Y.or($.TypeParameter,$.TSTypeParameter);W.isEstablishedBy=function(F){return G.check(F)||O.check(F)};var I=W.prototype;I.didScan=!1,I.declares=function(F){return this.scan(),JY.call(this.bindings,F)},I.declaresType=function(F){return this.scan(),JY.call(this.types,F)},I.declareTemporary=function(F){if(F){if(!/^[a-z$_]/i.test(F))throw new Error("")}else F="t$";F+=this.depth.toString(36)+"$",this.scan();var j=0;while(this.declares(F+j))++j;var B=F+j;return this.bindings[B]=Z.builders.identifier(B)},I.injectTemporary=function(F,j){F||(F=this.declareTemporary());var B=this.path.get("body");if($.BlockStatement.check(B.value))B=B.get("body");return B.unshift(q.variableDeclaration("var",[q.variableDeclarator(F,j||null)])),F},I.scan=function(F){if(F||!this.didScan){for(var j in this.bindings)delete this.bindings[j];for(var j in this.types)delete this.types[j];V(this.path,this.bindings,this.types),this.didScan=!0}},I.getBindings=function(){return this.scan(),this.bindings},I.getTypes=function(){return this.scan(),this.types};function V(F,j,B){var k=F.value;if(O.check(k)){var b=F.get("typeParameters","params");if(X.check(b.value))b.each(function(u){A(u,B)})}if(G.check(k))if($.CatchClause.check(k))Q(F.get("param"),j);else D(F,j,B)}function D(F,j,B){var k=F.value;if(F.parent&&$.FunctionExpression.check(F.parent.node)&&F.parent.node.id)Q(F.parent.get("id"),j);if(!k);else if(X.check(k))F.each(function(b){E(b,j,B)});else if($.Function.check(k))F.get("params").each(function(b){Q(b,j)}),E(F.get("body"),j,B),D(F.get("typeParameters"),j,B);else if($.TypeAlias&&$.TypeAlias.check(k)||$.InterfaceDeclaration&&$.InterfaceDeclaration.check(k)||$.TSTypeAliasDeclaration&&$.TSTypeAliasDeclaration.check(k)||$.TSInterfaceDeclaration&&$.TSInterfaceDeclaration.check(k))U(F.get("id"),B);else if($.VariableDeclarator.check(k))Q(F.get("id"),j),E(F.get("init"),j,B);else if(k.type==="ImportSpecifier"||k.type==="ImportNamespaceSpecifier"||k.type==="ImportDefaultSpecifier")Q(F.get(k.local?"local":k.name?"name":"id"),j);else if(K.check(k)&&!J.check(k))Z.eachField(k,function(b,u){var i=F.get(b);if(!H(i,u))throw new Error("");E(i,j,B)})}function H(F,j){if(F.value===j)return!0;if(Array.isArray(F.value)&&F.value.length===0&&Array.isArray(j)&&j.length===0)return!0;return!1}function E(F,j,B){var k=F.value;if(!k||J.check(k));else if($.FunctionDeclaration.check(k)&&k.id!==null)Q(F.get("id"),j);else if($.ClassDeclaration&&$.ClassDeclaration.check(k)&&k.id!==null)Q(F.get("id"),j),D(F.get("typeParameters"),j,B);else if($.InterfaceDeclaration&&$.InterfaceDeclaration.check(k)||$.TSInterfaceDeclaration&&$.TSInterfaceDeclaration.check(k))U(F.get("id"),B);else if(G.check(k)){if($.CatchClause.check(k)&&$.Identifier.check(k.param)){var b=k.param.name,u=JY.call(j,b);if(D(F.get("body"),j,B),!u)delete j[b]}}else D(F,j,B)}function Q(F,j){var B=F.value;if($.Pattern.assert(B),$.Identifier.check(B))if(JY.call(j,B.name))j[B.name].push(F);else j[B.name]=[F];else if($.AssignmentPattern&&$.AssignmentPattern.check(B))Q(F.get("left"),j);else if($.ObjectPattern&&$.ObjectPattern.check(B))F.get("properties").each(function(k){var b=k.value;if($.Pattern.check(b))Q(k,j);else if($.Property.check(b)||$.ObjectProperty&&$.ObjectProperty.check(b))Q(k.get("value"),j);else if($.SpreadProperty&&$.SpreadProperty.check(b))Q(k.get("argument"),j)});else if($.ArrayPattern&&$.ArrayPattern.check(B))F.get("elements").each(function(k){var b=k.value;if($.Pattern.check(b))Q(k,j);else if($.SpreadElement&&$.SpreadElement.check(b))Q(k.get("argument"),j)});else if($.PropertyPattern&&$.PropertyPattern.check(B))Q(F.get("pattern"),j);else if($.SpreadElementPattern&&$.SpreadElementPattern.check(B)||$.RestElement&&$.RestElement.check(B)||$.SpreadPropertyPattern&&$.SpreadPropertyPattern.check(B))Q(F.get("argument"),j)}function U(F,j){var B=F.value;if($.Pattern.assert(B),$.Identifier.check(B))if(JY.call(j,B.name))j[B.name].push(F);else j[B.name]=[F]}function A(F,j){var B=F.value;if(w.assert(B),JY.call(j,B.name))j[B.name].push(F);else j[B.name]=[F]}return I.lookup=function(F){for(var j=this;j;j=j.parent)if(j.declares(F))break;return j},I.lookupType=function(F){for(var j=this;j;j=j.parent)if(j.declaresType(F))break;return j},I.getGlobalScope=function(){var F=this;while(!F.isGlobal)F=F.parent;return F},W};Object.defineProperty(b$,"__esModule",{value:!0});var E9=_(),O9=S(),V9=E9.__importDefault(y()),JY=Object.prototype.hasOwnProperty;b$.default=w9;O9.maybeSetModuleExports(function(){return P$})});var mY=N((g$,h$)=>{var L9=function(z){var Z=z.use(U9.default),Y=Z.namedTypes,$=Z.builders,K=Z.builtInTypes.number,J=Z.builtInTypes.array,X=z.use(B9.default),q=z.use(R9.default),W=function Q(U,A,F){if(!(this instanceof Q))throw new Error("NodePath constructor cannot be invoked without 'new'");X.call(this,U,A,F)},G=W.prototype=Object.create(X.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(G,{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}}}),G.replace=function(){return delete this.node,delete this.parent,delete this.scope,X.prototype.replace.apply(this,arguments)},G.prune=function(){var Q=this.parent;return this.replace(),H(Q)},G._computeNode=function(){var Q=this.value;if(Y.Node.check(Q))return Q;var U=this.parentPath;return U&&U.node||null},G._computeParent=function(){var Q=this.value,U=this.parentPath;if(!Y.Node.check(Q)){while(U&&!Y.Node.check(U.value))U=U.parentPath;if(U)U=U.parentPath}while(U&&!Y.Node.check(U.value))U=U.parentPath;return U||null},G._computeScope=function(){var Q=this.value,U=this.parentPath,A=U&&U.scope;if(Y.Node.check(Q)&&q.isEstablishedBy(Q))A=new q(this,A);return A||null},G.getValueProperty=function(Q){return Z.getFieldValue(this.value,Q)},G.needsParens=function(Q){var U=this.parentPath;if(!U)return!1;var A=this.value;if(!Y.Expression.check(A))return!1;if(A.type==="Identifier")return!1;while(!Y.Node.check(U.value))if(U=U.parentPath,!U)return!1;var F=U.value;switch(A.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return F.type==="MemberExpression"&&this.name==="object"&&F.object===A;case"BinaryExpression":case"LogicalExpression":switch(F.type){case"CallExpression":return this.name==="callee"&&F.callee===A;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return this.name==="object"&&F.object===A;case"BinaryExpression":case"LogicalExpression":{var j=A,B=F.operator,k=I[B],b=j.operator,u=I[b];if(k>u)return!0;if(k===u&&this.name==="right"){if(F.right!==j)throw new Error("Nodes must be equal");return!0}}default:return!1}case"SequenceExpression":switch(F.type){case"ForStatement":return!1;case"ExpressionStatement":return this.name!=="expression";default:return!0}case"YieldExpression":switch(F.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 F.type==="MemberExpression"&&K.check(A.value)&&this.name==="object"&&F.object===A;case"AssignmentExpression":case"ConditionalExpression":switch(F.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return this.name==="callee"&&F.callee===A;case"ConditionalExpression":return this.name==="test"&&F.test===A;case"MemberExpression":return this.name==="object"&&F.object===A;default:return!1}default:if(F.type==="NewExpression"&&this.name==="callee"&&F.callee===A)return V(A)}if(Q!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())return!0;return!1};function O(Q){return Y.BinaryExpression.check(Q)||Y.LogicalExpression.check(Q)}function w(Q){return Y.UnaryExpression.check(Q)||Y.SpreadElement&&Y.SpreadElement.check(Q)||Y.SpreadProperty&&Y.SpreadProperty.check(Q)}var I={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(Q,U){Q.forEach(function(A){I[A]=U})});function V(Q){if(Y.CallExpression.check(Q))return!0;if(J.check(Q))return Q.some(V);if(Y.Node.check(Q))return Z.someField(Q,function(U,A){return V(A)});return!1}G.canBeFirstInStatement=function(){var Q=this.node;return!Y.FunctionExpression.check(Q)&&!Y.ObjectExpression.check(Q)},G.firstInStatement=function(){return D(this)};function D(Q){for(var U,A;Q.parent;Q=Q.parent){if(U=Q.node,A=Q.parent.node,Y.BlockStatement.check(A)&&Q.parent.name==="body"&&Q.name===0){if(A.body[0]!==U)throw new Error("Nodes must be equal");return!0}if(Y.ExpressionStatement.check(A)&&Q.name==="expression"){if(A.expression!==U)throw new Error("Nodes must be equal");return!0}if(Y.SequenceExpression.check(A)&&Q.parent.name==="expressions"&&Q.name===0){if(A.expressions[0]!==U)throw new Error("Nodes must be equal");continue}if(Y.CallExpression.check(A)&&Q.name==="callee"){if(A.callee!==U)throw new Error("Nodes must be equal");continue}if(Y.MemberExpression.check(A)&&Q.name==="object"){if(A.object!==U)throw new Error("Nodes must be equal");continue}if(Y.ConditionalExpression.check(A)&&Q.name==="test"){if(A.test!==U)throw new Error("Nodes must be equal");continue}if(O(A)&&Q.name==="left"){if(A.left!==U)throw new Error("Nodes must be equal");continue}if(Y.UnaryExpression.check(A)&&!A.prefix&&Q.name==="argument"){if(A.argument!==U)throw new Error("Nodes must be equal");continue}return!1}return!0}function H(Q){if(Y.VariableDeclaration.check(Q.node)){var U=Q.get("declarations").value;if(!U||U.length===0)return Q.prune()}else if(Y.ExpressionStatement.check(Q.node)){if(!Q.get("expression").value)return Q.prune()}else if(Y.IfStatement.check(Q.node))E(Q);return Q}function E(Q){var U=Q.get("test").value,A=Q.get("alternate").value,F=Q.get("consequent").value;if(!F&&!A){var j=$.expressionStatement(U);Q.replace(j)}else if(!F&&A){var B=$.unaryExpression("!",U,!0);if(Y.UnaryExpression.check(U)&&U.operator==="!")B=U.argument;Q.get("test").replace(B),Q.get("consequent").replace(A),Q.get("alternate").replace()}}return W};Object.defineProperty(g$,"__esModule",{value:!0});var cY=_(),U9=cY.__importDefault(y()),B9=cY.__importDefault(hY()),R9=cY.__importDefault(y$()),A9=S();g$.default=L9;A9.maybeSetModuleExports(function(){return h$})});var u$=N((m$,f$)=>{var N9=function(z){var Z=z.use(v9.default),Y=z.use(k9.default),$=Z.builtInTypes.array,K=Z.builtInTypes.object,J=Z.builtInTypes.function,X,q=function D(){if(!(this instanceof D))throw new Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=W(this),this._shouldVisitComments=AY.call(this._methodNameTable,"Block")||AY.call(this._methodNameTable,"Line"),this.Context=I(this),this._visiting=!1,this._changeReported=!1};function W(D){var H=Object.create(null);for(var E in D)if(/^visit[A-Z]/.test(E))H[E.slice("visit".length)]=!0;var Q=Z.computeSupertypeLookupTable(H),U=Object.create(null),A=Object.keys(Q),F=A.length;for(var j=0;j<F;++j){var B=A[j];if(E="visit"+Q[B],J.check(D[E]))U[B]=E}return U}q.fromMethodsObject=function D(H){if(H instanceof q)return H;if(!K.check(H))return new q;var E=function U(){if(!(this instanceof U))throw new Error("Visitor constructor cannot be invoked without 'new'");q.call(this)},Q=E.prototype=Object.create(O);return Q.constructor=E,G(Q,H),G(E,q),J.assert(E.fromMethodsObject),J.assert(E.visit),new E};function G(D,H){for(var E in H)if(AY.call(H,E))D[E]=H[E];return D}q.visit=function D(H,E){return q.fromMethodsObject(E).visit(H)};var O=q.prototype;O.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;var D=arguments.length,H=new Array(D);for(var E=0;E<D;++E)H[E]=arguments[E];if(!(H[0]instanceof Y))H[0]=new Y({root:H[0]}).get("root");this.reset.apply(this,H);var Q;try{var U=this.visitWithoutReset(H[0]);Q=!0}finally{if(this._visiting=!1,!Q&&this._abortRequested)return H[0].value}return U},O.AbortRequest=function D(){},O.abort=function(){var D=this;D._abortRequested=!0;var H=new D.AbortRequest;throw H.cancel=function(){D._abortRequested=!1},H},O.reset=function(D){},O.visitWithoutReset=function(D){if(this instanceof this.Context)return this.visitor.visitWithoutReset(D);if(!(D instanceof Y))throw new Error("");var H=D.value,E=H&&typeof H==="object"&&typeof H.type==="string"&&this._methodNameTable[H.type];if(E){var Q=this.acquireContext(D);try{return Q.invokeVisitorMethod(E)}finally{this.releaseContext(Q)}}else return w(D,this)};function w(D,H){if(!(D instanceof Y))throw new Error("");if(!(H instanceof q))throw new Error("");var E=D.value;if($.check(E))D.each(H.visitWithoutReset,H);else if(!K.check(E));else{var Q=Z.getFieldNames(E);if(H._shouldVisitComments&&E.comments&&Q.indexOf("comments")<0)Q.push("comments");var U=Q.length,A=[];for(var F=0;F<U;++F){var j=Q[F];if(!AY.call(E,j))E[j]=Z.getFieldValue(E,j);A.push(D.get(j))}for(var F=0;F<U;++F)H.visitWithoutReset(A[F])}return D.value}O.acquireContext=function(D){if(this._reusableContextStack.length===0)return new this.Context(D);return this._reusableContextStack.pop().reset(D)},O.releaseContext=function(D){if(!(D instanceof this.Context))throw new Error("");this._reusableContextStack.push(D),D.currentPath=null},O.reportChanged=function(){this._changeReported=!0},O.wasChangeReported=function(){return this._changeReported};function I(D){function H(Q){if(!(this instanceof H))throw new Error("");if(!(this instanceof q))throw new Error("");if(!(Q instanceof Y))throw new Error("");Object.defineProperty(this,"visitor",{value:D,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=Q,this.needToCallTraverse=!0,Object.seal(this)}if(!(D instanceof q))throw new Error("");var E=H.prototype=Object.create(D);return E.constructor=H,G(E,V),H}var V=Object.create(null);return V.reset=function D(H){if(!(this instanceof this.Context))throw new Error("");if(!(H instanceof Y))throw new Error("");return this.currentPath=H,this.needToCallTraverse=!0,this},V.invokeVisitorMethod=function D(H){if(!(this instanceof this.Context))throw new Error("");if(!(this.currentPath instanceof Y))throw new Error("");var E=this.visitor[H].call(this,this.currentPath);if(E===!1)this.needToCallTraverse=!1;else if(E!==X){if(this.currentPath=this.currentPath.replace(E)[0],this.needToCallTraverse)this.traverse(this.currentPath)}if(this.needToCallTraverse!==!1)throw new Error("Must either call this.traverse or return false in "+H);var Q=this.currentPath;return Q&&Q.value},V.traverse=function D(H,E){if(!(this instanceof this.Context))throw new Error("");if(!(H instanceof Y))throw new Error("");if(!(this.currentPath instanceof Y))throw new Error("");return this.needToCallTraverse=!1,w(H,q.fromMethodsObject(E||this.visitor))},V.visit=function D(H,E){if(!(this instanceof this.Context))throw new Error("");if(!(H instanceof Y))throw new Error("");if(!(this.currentPath instanceof Y))throw new Error("");return this.needToCallTraverse=!1,q.fromMethodsObject(E||this.visitor).visitWithoutReset(H)},V.reportChanged=function D(){this.visitor.reportChanged()},V.abort=function D(){this.needToCallTraverse=!1,this.visitor.abort()},q};Object.defineProperty(m$,"__esModule",{value:!0});var c$=_(),v9=c$.__importDefault(y()),k9=c$.__importDefault(mY()),C9=S(),AY=Object.prototype.hasOwnProperty;m$.default=N9;C9.maybeSetModuleExports(function(){return f$})});var s$=N((l$,d$)=>{var b9=function(z){var Z=z.use(S9.default),Y=Z.getFieldNames,$=Z.getFieldValue,K=Z.builtInTypes.array,J=Z.builtInTypes.object,X=Z.builtInTypes.Date,q=Z.builtInTypes.RegExp,W=Object.prototype.hasOwnProperty;function G(D,H,E){if(K.check(E))E.length=0;else E=null;return w(D,H,E)}G.assert=function(D,H){var E=[];if(!G(D,H,E))if(E.length===0){if(D!==H)throw new Error("Nodes must be equal")}else throw new Error("Nodes differ in the following path: "+E.map(O).join(""))};function O(D){if(/[_$a-z][_$a-z0-9]*/i.test(D))return"."+D;return"["+JSON.stringify(D)+"]"}function w(D,H,E){if(D===H)return!0;if(K.check(D))return I(D,H,E);if(J.check(D))return V(D,H,E);if(X.check(D))return X.check(H)&&+D===+H;if(q.check(D))return q.check(H)&&(D.source===H.source&&D.global===H.global&&D.multiline===H.multiline&&D.ignoreCase===H.ignoreCase);return D==H}function I(D,H,E){K.assert(D);var Q=D.length;if(!K.check(H)||H.length!==Q){if(E)E.push("length");return!1}for(var U=0;U<Q;++U){if(E)E.push(U);if(U in D!==U in H)return!1;if(!w(D[U],H[U],E))return!1;if(E){var A=E.pop();if(A!==U)throw new Error(""+A)}}return!0}function V(D,H,E){if(J.assert(D),!J.check(H))return!1;if(D.type!==H.type){if(E)E.push("type");return!1}var Q=Y(D),U=Q.length,A=Y(H),F=A.length;if(U===F){for(var j=0;j<U;++j){var B=Q[j],k=$(D,B),b=$(H,B);if(E)E.push(B);if(!w(k,b,E))return!1;if(E){var u=E.pop();if(u!==B)throw new Error(""+u)}}return!0}if(!E)return!1;var i=Object.create(null);for(j=0;j<U;++j)i[Q[j]]=!0;for(j=0;j<F;++j){if(B=A[j],!W.call(i,B))return E.push(B),!1;delete i[B]}for(B in i){E.push(B);break}return!1}return G};Object.defineProperty(l$,"__esModule",{value:!0});var x9=_(),_9=S(),S9=x9.__importDefault(y());l$.default=b9;_9.maybeSetModuleExports(function(){return d$})});var i$=N((n$,o$)=>{var u9=function(z){var Z=l9(),Y=Z.use(y9.default);z.forEach(Z.use),Y.finalize();var $=Z.use(g9.default);return{Type:Y.Type,builtInTypes:Y.builtInTypes,namedTypes:Y.namedTypes,builders:Y.builders,defineMethod:Y.defineMethod,getFieldNames:Y.getFieldNames,getFieldValue:Y.getFieldValue,eachField:Y.eachField,someField:Y.someField,getSupertypeNames:Y.getSupertypeNames,getBuilderName:Y.getBuilderName,astNodesAreEquivalent:Z.use(h9.default),finalize:Y.finalize,Path:Z.use(c9.default),NodePath:Z.use(m9.default),PathVisitor:$,use:Z.use,visit:$.visit}},l9=function(){var z=[],Z=[];function Y(K){var J=z.indexOf(K);if(J===-1)J=z.length,z.push(K),Z[J]=K($);return Z[J]}var $={use:Y};return $};Object.defineProperty(n$,"__esModule",{value:!0});var EY=_(),y9=EY.__importDefault(y()),g9=EY.__importDefault(u$()),h9=EY.__importDefault(s$()),c9=EY.__importDefault(hY()),m9=EY.__importDefault(mY()),f9=S();n$.default=u9;f9.maybeSetModuleExports(function(){return o$})});var fY=N((p$,r$)=>{var n9=function(){return{BinaryOperators:["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}};Object.defineProperty(p$,"__esModule",{value:!0});var s9=S();p$.default=n9;s9.maybeSetModuleExports(function(){return r$})});var uY=N((t$,a$)=>{var t9=function(z){var Z=z.use(r9.default);if(Z.BinaryOperators.indexOf("**")<0)Z.BinaryOperators.push("**");if(Z.AssignmentOperators.indexOf("**=")<0)Z.AssignmentOperators.push("**=");return Z};Object.defineProperty(t$,"__esModule",{value:!0});var i9=_(),p9=S(),r9=i9.__importDefault(fY());t$.default=t9;p9.maybeSetModuleExports(function(){return a$})});var lY=N((e$,YZ)=>{var Zz=function(z){var Z=z.use($z.default);if(Z.LogicalOperators.indexOf("??")<0)Z.LogicalOperators.push("??");return Z};Object.defineProperty(e$,"__esModule",{value:!0});var e9=_(),Yz=S(),$z=e9.__importDefault(uY());e$.default=Zz;Yz.maybeSetModuleExports(function(){return YZ})});var zZ=N(($Z,ZZ)=>{var Xz=function(z){var Z=z.use(Wz.default);return Z.LogicalOperators.forEach(function(Y){var $=Y+"=";if(Z.AssignmentOperators.indexOf($)<0)Z.AssignmentOperators.push($)}),Z};Object.defineProperty($Z,"__esModule",{value:!0});var Kz=_(),Jz=S(),Wz=Kz.__importDefault(lY());$Z.default=Xz;Jz.maybeSetModuleExports(function(){return ZZ})});var XZ=N((JZ,WZ)=>{var qz=function(z){var Z=z.use(Hz.default),Y=Z.Type,$=Y.def,K=Y.or,J=z.use(KZ.default),X=J.defaults,q=J.geq,W=z.use(Dz.default),G=W.BinaryOperators,O=W.AssignmentOperators,w=W.LogicalOperators;$("Printable").field("loc",K($("SourceLocation"),null),X.null,!0),$("Node").bases("Printable").field("type",String).field("comments",K([$("Comment")],null),X.null,!0),$("SourceLocation").field("start",$("Position")).field("end",$("Position")).field("source",K(String,null),X.null),$("Position").field("line",q(1)).field("column",q(0)),$("File").bases("Node").build("program","name").field("program",$("Program")).field("name",K(String,null),X.null),$("Program").bases("Node").build("body").field("body",[$("Statement")]),$("Function").bases("Node").field("id",K($("Identifier"),null),X.null).field("params",[$("Pattern")]).field("body",$("BlockStatement")).field("generator",Boolean,X.false).field("async",Boolean,X.false),$("Statement").bases("Node"),$("EmptyStatement").bases("Statement").build(),$("BlockStatement").bases("Statement").build("body").field("body",[$("Statement")]),$("ExpressionStatement").bases("Statement").build("expression").field("expression",$("Expression")),$("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",$("Expression")).field("consequent",$("Statement")).field("alternate",K($("Statement"),null),X.null),$("LabeledStatement").bases("Statement").build("label","body").field("label",$("Identifier")).field("body",$("Statement")),$("BreakStatement").bases("Statement").build("label").field("label",K($("Identifier"),null),X.null),$("ContinueStatement").bases("Statement").build("label").field("label",K($("Identifier"),null),X.null),$("WithStatement").bases("Statement").build("object","body").field("object",$("Expression")).field("body",$("Statement")),$("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",$("Expression")).field("cases",[$("SwitchCase")]).field("lexical",Boolean,X.false),$("ReturnStatement").bases("Statement").build("argument").field("argument",K($("Expression"),null)),$("ThrowStatement").bases("Statement").build("argument").field("argument",$("Expression")),$("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",$("BlockStatement")).field("handler",K($("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[$("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[$("CatchClause")],X.emptyArray).field("finalizer",K($("BlockStatement"),null),X.null),$("CatchClause").bases("Node").build("param","guard","body").field("param",$("Pattern")).field("guard",K($("Expression"),null),X.null).field("body",$("BlockStatement")),$("WhileStatement").bases("Statement").build("test","body").field("test",$("Expression")).field("body",$("Statement")),$("DoWhileStatement").bases("Statement").build("body","test").field("body",$("Statement")).field("test",$("Expression")),$("ForStatement").bases("Statement").build("init","test","update","body").field("init",K($("VariableDeclaration"),$("Expression"),null)).field("test",K($("Expression"),null)).field("update",K($("Expression"),null)).field("body",$("Statement")),$("ForInStatement").bases("Statement").build("left","right","body").field("left",K($("VariableDeclaration"),$("Expression"))).field("right",$("Expression")).field("body",$("Statement")),$("DebuggerStatement").bases("Statement").build(),$("Declaration").bases("Statement"),$("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",$("Identifier")),$("FunctionExpression").bases("Function","Expression").build("id","params","body"),$("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",K("var","let","const")).field("declarations",[$("VariableDeclarator")]),$("VariableDeclarator").bases("Node").build("id","init").field("id",$("Pattern")).field("init",K($("Expression"),null),X.null),$("Expression").bases("Node"),$("ThisExpression").bases("Expression").build(),$("ArrayExpression").bases("Expression").build("elements").field("elements",[K($("Expression"),null)]),$("ObjectExpression").bases("Expression").build("properties").field("properties",[$("Property")]),$("Property").bases("Node").build("kind","key","value").field("kind",K("init","get","set")).field("key",K($("Literal"),$("Identifier"))).field("value",$("Expression")),$("SequenceExpression").bases("Expression").build("expressions").field("expressions",[$("Expression")]);var I=K("-","+","!","~","typeof","void","delete");$("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",I).field("argument",$("Expression")).field("prefix",Boolean,X.true);var V=K.apply(void 0,G);$("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",V).field("left",$("Expression")).field("right",$("Expression"));var D=K.apply(void 0,O);$("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",D).field("left",K($("Pattern"),$("MemberExpression"))).field("right",$("Expression"));var H=K("++","--");$("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",H).field("argument",$("Expression")).field("prefix",Boolean);var E=K.apply(void 0,w);$("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",E).field("left",$("Expression")).field("right",$("Expression")),$("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",$("Expression")).field("consequent",$("Expression")).field("alternate",$("Expression")),$("NewExpression").bases("Expression").build("callee","arguments").field("callee",$("Expression")).field("arguments",[$("Expression")]),$("CallExpression").bases("Expression").build("callee","arguments").field("callee",$("Expression")).field("arguments",[$("Expression")]),$("MemberExpression").bases("Expression").build("object","property","computed").field("object",$("Expression")).field("property",K($("Identifier"),$("Expression"))).field("computed",Boolean,function(){var Q=this.property.type;if(Q==="Literal"||Q==="MemberExpression"||Q==="BinaryExpression")return!0;return!1}),$("Pattern").bases("Node"),$("SwitchCase").bases("Node").build("test","consequent").field("test",K($("Expression"),null)).field("consequent",[$("Statement")]),$("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,X.false),$("Literal").bases("Expression").build("value").field("value",K(String,Boolean,null,Number,RegExp,BigInt)),$("Comment").bases("Printable").field("value",String).field("leading",Boolean,X.true).field("trailing",Boolean,X.false)};Object.defineProperty(JZ,"__esModule",{value:!0});var dY=_(),Dz=dY.__importDefault(fY()),Hz=dY.__importDefault(y()),KZ=dY.__importStar(S());JZ.default=qz;KZ.maybeSetModuleExports(function(){return WZ})});var qZ=N((DZ,HZ)=>{var Ez=function(z){z.use(Fz.default);var Z=z.use(Iz.default),Y=Z.Type.def,$=Z.Type.or,K=z.use(QZ.default).defaults;Y("Function").field("generator",Boolean,K.false).field("expression",Boolean,K.false).field("defaults",[$(Y("Expression"),null)],K.emptyArray).field("rest",$(Y("Identifier"),null),K.null),Y("RestElement").bases("Pattern").build("argument").field("argument",Y("Pattern")).field("typeAnnotation",$(Y("TypeAnnotation"),Y("TSTypeAnnotation"),null),K.null),Y("SpreadElementPattern").bases("Pattern").build("argument").field("argument",Y("Pattern")),Y("FunctionDeclaration").build("id","params","body","generator","expression").field("id",$(Y("Identifier"),null)),Y("FunctionExpression").build("id","params","body","generator","expression"),Y("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,K.null).field("body",$(Y("BlockStatement"),Y("Expression"))).field("generator",!1,K.false),Y("ForOfStatement").bases("Statement").build("left","right","body").field("left",$(Y("VariableDeclaration"),Y("Pattern"))).field("right",Y("Expression")).field("body",Y("Statement")),Y("YieldExpression").bases("Expression").build("argument","delegate").field("argument",$(Y("Expression"),null)).field("delegate",Boolean,K.false),Y("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",Y("Expression")).field("blocks",[Y("ComprehensionBlock")]).field("filter",$(Y("Expression"),null)),Y("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",Y("Expression")).field("blocks",[Y("ComprehensionBlock")]).field("filter",$(Y("Expression"),null)),Y("ComprehensionBlock").bases("Node").build("left","right","each").field("left",Y("Pattern")).field("right",Y("Expression")).field("each",Boolean),Y("Property").field("key",$(Y("Literal"),Y("Identifier"),Y("Expression"))).field("value",$(Y("Expression"),Y("Pattern"))).field("method",Boolean,K.false).field("shorthand",Boolean,K.false).field("computed",Boolean,K.false),Y("ObjectProperty").field("shorthand",Boolean,K.false),Y("PropertyPattern").bases("Pattern").build("key","pattern").field("key",$(Y("Literal"),Y("Identifier"),Y("Expression"))).field("pattern",Y("Pattern")).field("computed",Boolean,K.false),Y("ObjectPattern").bases("Pattern").build("properties").field("properties",[$(Y("PropertyPattern"),Y("Property"))]),Y("ArrayPattern").bases("Pattern").build("elements").field("elements",[$(Y("Pattern"),null)]),Y("SpreadElement").bases("Node").build("argument").field("argument",Y("Expression")),Y("ArrayExpression").field("elements",[$(Y("Expression"),Y("SpreadElement"),Y("RestElement"),null)]),Y("NewExpression").field("arguments",[$(Y("Expression"),Y("SpreadElement"))]),Y("CallExpression").field("arguments",[$(Y("Expression"),Y("SpreadElement"))]),Y("AssignmentPattern").bases("Pattern").build("left","right").field("left",Y("Pattern")).field("right",Y("Expression")),Y("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",$("constructor","method","get","set")).field("key",Y("Expression")).field("value",Y("Function")).field("computed",Boolean,K.false).field("static",Boolean,K.false);var J=$(Y("MethodDefinition"),Y("VariableDeclarator"),Y("ClassPropertyDefinition"),Y("ClassProperty"),Y("StaticBlock"));Y("ClassProperty").bases("Declaration").build("key").field("key",$(Y("Literal"),Y("Identifier"),Y("Expression"))).field("computed",Boolean,K.false),Y("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",J),Y("ClassBody").bases("Declaration").build("body").field("body",[J]),Y("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",$(Y("Identifier"),null)).field("body",Y("ClassBody")).field("superClass",$(Y("Expression"),null),K.null),Y("ClassExpression").bases("Expression").build("id","body","superClass").field("id",$(Y("Identifier"),null),K.null).field("body",Y("ClassBody")).field("superClass",$(Y("Expression"),null),K.null),Y("Super").bases("Expression").build(),Y("Specifier").bases("Node"),Y("ModuleSpecifier").bases("Specifier").field("local",$(Y("Identifier"),null),K.null).field("id",$(Y("Identifier"),null),K.null).field("name",$(Y("Identifier"),null),K.null),Y("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",Y("Identifier")),Y("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),Y("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),Y("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[$(Y("ImportSpecifier"),Y("ImportNamespaceSpecifier"),Y("ImportDefaultSpecifier"))],K.emptyArray).field("source",Y("Literal")).field("importKind",$("value","type"),function(){return"value"}),Y("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",$(Y("Declaration"),null)).field("specifiers",[Y("ExportSpecifier")],K.emptyArray).field("source",$(Y("Literal"),null),K.null),Y("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",Y("Identifier")),Y("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",$(Y("Declaration"),Y("Expression"))),Y("ExportAllDeclaration").bases("Declaration").build("source").field("source",Y("Literal")),Y("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",Y("Expression")).field("quasi",Y("TemplateLiteral")),Y("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[Y("TemplateElement")]).field("expressions",[Y("Expression")]),Y("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),Y("MetaProperty").bases("Expression").build("meta","property").field("meta",Y("Identifier")).field("property",Y("Identifier"))};Object.defineProperty(DZ,"__esModule",{value:!0});var sY=_(),Fz=sY.__importDefault(XZ()),Iz=sY.__importDefault(y()),QZ=sY.__importStar(S());DZ.default=Ez;QZ.maybeSetModuleExports(function(){return HZ})});var EZ=N((FZ,IZ)=>{var Uz=function(z){z.use(Vz.default),z.use(wz.default)};Object.defineProperty(FZ,"__esModule",{value:!0});var GZ=_(),Vz=GZ.__importDefault(uY()),wz=GZ.__importDefault(qZ()),jz=S();FZ.default=Uz;jz.maybeSetModuleExports(function(){return IZ})});var jZ=N((VZ,wZ)=>{var Lz=function(z){z.use(Rz.default);var Z=z.use(Az.default),Y=Z.Type.def,$=z.use(OZ.default).defaults;Y("Function").field("async",Boolean,$.false),Y("AwaitExpression").bases("Expression").build("argument").field("argument",Y("Expression"))};Object.defineProperty(VZ,"__esModule",{value:!0});var nY=_(),Rz=nY.__importDefault(EZ()),Az=nY.__importDefault(y()),OZ=nY.__importStar(S());VZ.default=Lz;OZ.maybeSetModuleExports(function(){return wZ})});var AZ=N((BZ,RZ)=>{var Cz=function(z){z.use(vz.default);var Z=z.use(kz.default),Y=Z.Type.def,$=Z.Type.or,K=z.use(UZ.default).defaults;Y("ForOfStatement").field("await",Boolean,K.false),Y("SpreadProperty").bases("Node").build("argument").field("argument",Y("Expression")),Y("ObjectExpression").field("properties",[$(Y("Property"),Y("SpreadProperty"),Y("SpreadElement"))]),Y("TemplateElement").field("value",{cooked:$(String,null),raw:String}),Y("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",Y("Pattern")),Y("ObjectPattern").field("properties",[$(Y("PropertyPattern"),Y("Property"),Y("RestElement"),Y("SpreadPropertyPattern"))])};Object.defineProperty(BZ,"__esModule",{value:!0});var oY=_(),vz=oY.__importDefault(jZ()),kz=oY.__importDefault(y()),UZ=oY.__importStar(S());BZ.default=Cz;UZ.maybeSetModuleExports(function(){return RZ})});var kZ=N((TZ,vZ)=>{var _z=function(z){z.use(Mz.default);var Z=z.use(xz.default),Y=Z.Type.def,$=Z.Type.or,K=z.use(LZ.default).defaults;Y("CatchClause").field("param",$(Y("Pattern"),null),K.null)};Object.defineProperty(TZ,"__esModule",{value:!0});var iY=_(),Mz=iY.__importDefault(AZ()),xz=iY.__importDefault(y()),LZ=iY.__importStar(S());TZ.default=_z;LZ.maybeSetModuleExports(function(){return vZ})});var xZ=N((NZ,MZ)=>{var gz=function(z){z.use(bz.default),z.use(Pz.default);var Z=z.use(yz.default),Y=Z.Type.def,$=Z.Type.or,K=z.use(CZ.default),J=K.defaults;Y("ImportExpression").bases("Expression").build("source").field("source",Y("Expression")),Y("ExportAllDeclaration").bases("Declaration").build("source","exported").field("source",Y("Literal")).field("exported",$(Y("Identifier"),null,void 0),J.null),Y("ChainElement").bases("Node").field("optional",Boolean,J.false),Y("CallExpression").bases("Expression","ChainElement"),Y("MemberExpression").bases("Expression","ChainElement"),Y("ChainExpression").bases("Expression").build("expression").field("expression",Y("ChainElement")),Y("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,J.true),Y("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,J.true)};Object.defineProperty(NZ,"__esModule",{value:!0});var LY=_(),bz=LY.__importDefault(lY()),Pz=LY.__importDefault(kZ()),yz=LY.__importDefault(y()),CZ=LY.__importStar(S());NZ.default=gz;CZ.maybeSetModuleExports(function(){return MZ})});var PZ=N((SZ,bZ)=>{var uz=function(z){z.use(cz.default),z.use(mz.default)};Object.defineProperty(SZ,"__esModule",{value:!0});var _Z=_(),cz=_Z.__importDefault(zZ()),mz=_Z.__importDefault(xZ()),fz=S();SZ.default=uz;fz.maybeSetModuleExports(function(){return bZ})});var cZ=N((gZ,hZ)=>{var oz=function(z){z.use(dz.default);var Z=z.use(sz.default),Y=Z.Type.def;Y("StaticBlock").bases("Declaration").build("body").field("body",[Y("Statement")])};Object.defineProperty(gZ,"__esModule",{value:!0});var yZ=_(),dz=yZ.__importDefault(PZ()),sz=yZ.__importDefault(y()),nz=S();gZ.default=oz;nz.maybeSetModuleExports(function(){return hZ})});var WY=N((fZ,uZ)=>{var tz=function(z){z.use(rz.default);var Z=z.use(pz.default),Y=Z.Type,$=Z.Type.def,K=Y.or,J=z.use(mZ.default),X=J.defaults;$("AwaitExpression").build("argument","all").field("argument",K($("Expression"),null)).field("all",Boolean,X.false),$("Decorator").bases("Node").build("expression").field("expression",$("Expression")),$("Property").field("decorators",K([$("Decorator")],null),X.null),$("MethodDefinition").field("decorators",K([$("Decorator")],null),X.null),$("PrivateName").bases("Expression","Pattern").build("id").field("id",$("Identifier")),$("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",$("PrivateName")).field("value",K($("Expression"),null),X.null),$("ImportAttribute").bases("Node").build("key","value").field("key",K($("Identifier"),$("Literal"))).field("value",$("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach(function(q){$(q).field("assertions",[$("ImportAttribute")],X.emptyArray)}),$("RecordExpression").bases("Expression").build("properties").field("properties",[K($("ObjectProperty"),$("ObjectMethod"),$("SpreadElement"))]),$("TupleExpression").bases("Expression").build("elements").field("elements",[K($("Expression"),$("SpreadElement"),null)]),$("ModuleExpression").bases("Node").build("body").field("body",$("Program"))};Object.defineProperty(fZ,"__esModule",{value:!0});var pY=_(),pz=pY.__importDefault(y()),mZ=pY.__importStar(S()),rz=pY.__importDefault(cZ());fZ.default=tz;mZ.maybeSetModuleExports(function(){return uZ})});var nZ=N((dZ,sZ)=>{var $8=function(z){z.use(ez.default);var Z=z.use(Y8.default),Y=Z.Type.def,$=Z.Type.or,K=z.use(lZ.default).defaults;Y("JSXAttribute").bases("Node").build("name","value").field("name",$(Y("JSXIdentifier"),Y("JSXNamespacedName"))).field("value",$(Y("Literal"),Y("JSXExpressionContainer"),Y("JSXElement"),Y("JSXFragment"),null),K.null),Y("JSXIdentifier").bases("Identifier").build("name").field("name",String),Y("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",Y("JSXIdentifier")).field("name",Y("JSXIdentifier")),Y("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",$(Y("JSXIdentifier"),Y("JSXMemberExpression"))).field("property",Y("JSXIdentifier")).field("computed",Boolean,K.false);var J=$(Y("JSXIdentifier"),Y("JSXNamespacedName"),Y("JSXMemberExpression"));Y("JSXSpreadAttribute").bases("Node").build("argument").field("argument",Y("Expression"));var X=[$(Y("JSXAttribute"),Y("JSXSpreadAttribute"))];Y("JSXExpressionContainer").bases("Expression").build("expression").field("expression",$(Y("Expression"),Y("JSXEmptyExpression")));var q=[$(Y("JSXText"),Y("JSXExpressionContainer"),Y("JSXSpreadChild"),Y("JSXElement"),Y("JSXFragment"),Y("Literal"))];Y("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",Y("JSXOpeningElement")).field("closingElement",$(Y("JSXClosingElement"),null),K.null).field("children",q,K.emptyArray).field("name",J,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",X,function(){return this.openingElement.attributes},!0),Y("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",J).field("attributes",X,K.emptyArray).field("selfClosing",Boolean,K.false),Y("JSXClosingElement").bases("Node").build("name").field("name",J),Y("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",Y("JSXOpeningFragment")).field("closingFragment",Y("JSXClosingFragment")).field("children",q,K.emptyArray),Y("JSXOpeningFragment").bases("Node").build(),Y("JSXClosingFragment").bases("Node").build(),Y("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),Y("JSXEmptyExpression").bases("Node").build(),Y("JSXSpreadChild").bases("Node").build("expression").field("expression",Y("Expression"))};Object.defineProperty(dZ,"__esModule",{value:!0});var rY=_(),ez=rY.__importDefault(WY()),Y8=rY.__importDefault(y()),lZ=rY.__importStar(S());dZ.default=$8;lZ.maybeSetModuleExports(function(){return sZ})});var tY=N((pZ,rZ)=>{var K8=function(z){var Z=z.use(z8.default),Y=Z.Type.def,$=Z.Type.or,K=z.use(iZ.default).defaults,J=$(Y("TypeAnnotation"),Y("TSTypeAnnotation"),null),X=$(Y("TypeParameterDeclaration"),Y("TSTypeParameterDeclaration"),null);Y("Identifier").field("typeAnnotation",J,K.null),Y("ObjectPattern").field("typeAnnotation",J,K.null),Y("Function").field("returnType",J,K.null).field("typeParameters",X,K.null),Y("ClassProperty").build("key","value","typeAnnotation","static").field("value",$(Y("Expression"),null)).field("static",Boolean,K.false).field("typeAnnotation",J,K.null),["ClassDeclaration","ClassExpression"].forEach(function(q){Y(q).field("typeParameters",X,K.null).field("superTypeParameters",$(Y("TypeParameterInstantiation"),Y("TSTypeParameterInstantiation"),null),K.null).field("implements",$([Y("ClassImplements")],[Y("TSExpressionWithTypeArguments")]),K.emptyArray)})};Object.defineProperty(pZ,"__esModule",{value:!0});var oZ=_(),z8=oZ.__importDefault(y()),iZ=oZ.__importStar(S());pZ.default=K8;iZ.maybeSetModuleExports(function(){return rZ})});var aY=N((aZ,eZ)=>{var D8=function(z){z.use(W8.default),z.use(X8.default);var Z=z.use(Q8.default),Y=Z.Type.def,$=Z.Type.or,K=z.use(tZ.default).defaults;Y("Flow").bases("Node"),Y("FlowType").bases("Flow"),Y("AnyTypeAnnotation").bases("FlowType").build(),Y("EmptyTypeAnnotation").bases("FlowType").build(),Y("MixedTypeAnnotation").bases("FlowType").build(),Y("VoidTypeAnnotation").bases("FlowType").build(),Y("SymbolTypeAnnotation").bases("FlowType").build(),Y("NumberTypeAnnotation").bases("FlowType").build(),Y("BigIntTypeAnnotation").bases("FlowType").build(),Y("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),Y("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),Y("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),Y("StringTypeAnnotation").bases("FlowType").build(),Y("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),Y("BooleanTypeAnnotation").bases("FlowType").build(),Y("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),Y("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",Y("FlowType")),Y("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",Y("FlowType")),Y("NullLiteralTypeAnnotation").bases("FlowType").build(),Y("NullTypeAnnotation").bases("FlowType").build(),Y("ThisTypeAnnotation").bases("FlowType").build(),Y("ExistsTypeAnnotation").bases("FlowType").build(),Y("ExistentialTypeParam").bases("FlowType").build(),Y("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[Y("FunctionTypeParam")]).field("returnType",Y("FlowType")).field("rest",$(Y("FunctionTypeParam"),null)).field("typeParameters",$(Y("TypeParameterDeclaration"),null)),Y("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",$(Y("Identifier"),null)).field("typeAnnotation",Y("FlowType")).field("optional",Boolean),Y("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",Y("FlowType")),Y("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[$(Y("ObjectTypeProperty"),Y("ObjectTypeSpreadProperty"))]).field("indexers",[Y("ObjectTypeIndexer")],K.emptyArray).field("callProperties",[Y("ObjectTypeCallProperty")],K.emptyArray).field("inexact",$(Boolean,void 0),K.undefined).field("exact",Boolean,K.false).field("internalSlots",[Y("ObjectTypeInternalSlot")],K.emptyArray),Y("Variance").bases("Node").build("kind").field("kind",$("plus","minus"));var J=$(Y("Variance"),"plus","minus",null);Y("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",$(Y("Literal"),Y("Identifier"))).field("value",Y("FlowType")).field("optional",Boolean).field("variance",J,K.null),Y("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",Y("Identifier")).field("key",Y("FlowType")).field("value",Y("FlowType")).field("variance",J,K.null).field("static",Boolean,K.false),Y("ObjectTypeCallProperty").bases("Node").build("value").field("value",Y("FunctionTypeAnnotation")).field("static",Boolean,K.false),Y("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",$(Y("Identifier"),Y("QualifiedTypeIdentifier"))).field("id",Y("Identifier")),Y("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",$(Y("Identifier"),Y("QualifiedTypeIdentifier"))).field("typeParameters",$(Y("TypeParameterInstantiation"),null)),Y("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",Y("Identifier")).field("property",$(Y("MemberTypeAnnotation"),Y("GenericTypeAnnotation"))),Y("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",Y("FlowType")).field("indexType",Y("FlowType")),Y("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",Y("FlowType")).field("indexType",Y("FlowType")).field("optional",Boolean),Y("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[Y("FlowType")]),Y("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[Y("FlowType")]),Y("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",Y("FlowType")),Y("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",Y("FlowType")),Y("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",Y("Identifier")).field("value",Y("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),Y("TypeParameterDeclaration").bases("Node").build("params").field("params",[Y("TypeParameter")]),Y("TypeParameterInstantiation").bases("Node").build("params").field("params",[Y("FlowType")]),Y("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",J,K.null).field("bound",$(Y("TypeAnnotation"),null),K.null).field("default",$(Y("FlowType"),null),K.null),Y("ClassProperty").field("variance",J,K.null),Y("ClassImplements").bases("Node").build("id").field("id",Y("Identifier")).field("superClass",$(Y("Expression"),null),K.null).field("typeParameters",$(Y("TypeParameterInstantiation"),null),K.null),Y("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",Y("ObjectTypeAnnotation")).field("extends",$([Y("InterfaceExtends")],null),K.null),Y("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",Y("Identifier")).field("typeParameters",$(Y("TypeParameterDeclaration"),null),K.null).field("body",Y("ObjectTypeAnnotation")).field("extends",[Y("InterfaceExtends")]),Y("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),Y("InterfaceExtends").bases("Node").build("id").field("id",Y("Identifier")).field("typeParameters",$(Y("TypeParameterInstantiation"),null),K.null),Y("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",Y("Identifier")).field("typeParameters",$(Y("TypeParameterDeclaration"),null)).field("right",Y("FlowType")),Y("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),Y("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",Y("Identifier")).field("typeParameters",$(Y("TypeParameterDeclaration"),null)).field("impltype",Y("FlowType")).field("supertype",$(Y("FlowType"),null)),Y("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",$(Y("FlowType"),null)),Y("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",Y("Expression")).field("typeAnnotation",Y("TypeAnnotation")),Y("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[Y("FlowType")]),Y("DeclareVariable").bases("Statement").build("id").field("id",Y("Identifier")),Y("DeclareFunction").bases("Statement").build("id").field("id",Y("Identifier")).field("predicate",$(Y("FlowPredicate"),null),K.null),Y("DeclareClass").bases("InterfaceDeclaration").build("id"),Y("DeclareModule").bases("Statement").build("id","body").field("id",$(Y("Identifier"),Y("Literal"))).field("body",Y("BlockStatement")),Y("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",Y("TypeAnnotation")),Y("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",$(Y("DeclareVariable"),Y("DeclareFunction"),Y("DeclareClass"),Y("FlowType"),Y("TypeAlias"),Y("DeclareOpaqueType"),Y("InterfaceDeclaration"),null)).field("specifiers",[$(Y("ExportSpecifier"),Y("ExportBatchSpecifier"))],K.emptyArray).field("source",$(Y("Literal"),null),K.null),Y("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",$(Y("Literal"),null),K.null),Y("ImportDeclaration").field("importKind",$("value","type","typeof"),function(){return"value"}),Y("FlowPredicate").bases("Flow"),Y("InferredPredicate").bases("FlowPredicate").build(),Y("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",Y("Expression")),Y("Function").field("predicate",$(Y("FlowPredicate"),null),K.null),Y("CallExpression").field("typeArguments",$(null,Y("TypeParameterInstantiation")),K.null),Y("NewExpression").field("typeArguments",$(null,Y("TypeParameterInstantiation")),K.null),Y("EnumDeclaration").bases("Declaration").build("id","body").field("id",Y("Identifier")).field("body",$(Y("EnumBooleanBody"),Y("EnumNumberBody"),Y("EnumStringBody"),Y("EnumSymbolBody"))),Y("EnumBooleanBody").build("members","explicitType").field("members",[Y("EnumBooleanMember")]).field("explicitType",Boolean),Y("EnumNumberBody").build("members","explicitType").field("members",[Y("EnumNumberMember")]).field("explicitType",Boolean),Y("EnumStringBody").build("members","explicitType").field("members",$([Y("EnumStringMember")],[Y("EnumDefaultedMember")])).field("explicitType",Boolean),Y("EnumSymbolBody").build("members").field("members",[Y("EnumDefaultedMember")]),Y("EnumBooleanMember").build("id","init").field("id",Y("Identifier")).field("init",$(Y("Literal"),Boolean)),Y("EnumNumberMember").build("id","init").field("id",Y("Identifier")).field("init",Y("Literal")),Y("EnumStringMember").build("id","init").field("id",Y("Identifier")).field("init",Y("Literal")),Y("EnumDefaultedMember").build("id").field("id",Y("Identifier"))};Object.defineProperty(aZ,"__esModule",{value:!0});var TY=_(),W8=TY.__importDefault(WY()),X8=TY.__importDefault(tY()),Q8=TY.__importDefault(y()),tZ=TY.__importStar(S());aZ.default=D8;tZ.maybeSetModuleExports(function(){return eZ})});var z4=N(($4,Z4)=>{var F8=function(z){z.use(q8.default);var Z=z.use(G8.default),Y=z.use(Y4.default).defaults,$=Z.Type.def,K=Z.Type.or;$("VariableDeclaration").field("declarations",[K($("VariableDeclarator"),$("Identifier"))]),$("Property").field("value",K($("Expression"),$("Pattern"))),$("ArrayPattern").field("elements",[K($("Pattern"),$("SpreadElement"),null)]),$("ObjectPattern").field("properties",[K($("Property"),$("PropertyPattern"),$("SpreadPropertyPattern"),$("SpreadProperty"))]),$("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),$("ExportBatchSpecifier").bases("Specifier").build(),$("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",K($("Declaration"),$("Expression"),null)).field("specifiers",[K($("ExportSpecifier"),$("ExportBatchSpecifier"))],Y.emptyArray).field("source",K($("Literal"),null),Y.null),$("Block").bases("Comment").build("value","leading","trailing"),$("Line").bases("Comment").build("value","leading","trailing")};Object.defineProperty($4,"__esModule",{value:!0});var eY=_(),q8=eY.__importDefault(WY()),G8=eY.__importDefault(y()),Y4=eY.__importStar(S());$4.default=F8;Y4.maybeSetModuleExports(function(){return Z4})});var $$=N((J4,W4)=>{var V8=function(z){var Z,Y,$,K,J;z.use(E8.default);var X=z.use(O8.default),q=z.use(K4.default).defaults,W=X.Type.def,G=X.Type.or,O=X.builtInTypes.undefined;W("Noop").bases("Statement").build(),W("DoExpression").bases("Expression").build("body").field("body",[W("Statement")]),W("BindExpression").bases("Expression").build("object","callee").field("object",G(W("Expression"),null)).field("callee",W("Expression")),W("ParenthesizedExpression").bases("Expression").build("expression").field("expression",W("Expression")),W("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",W("Identifier")),W("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",W("Identifier")),W("CommentBlock").bases("Comment").build("value","leading","trailing"),W("CommentLine").bases("Comment").build("value","leading","trailing"),W("Directive").bases("Node").build("value").field("value",W("DirectiveLiteral")),W("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,q["use strict"]),W("InterpreterDirective").bases("Node").build("value").field("value",String),W("BlockStatement").bases("Statement").build("body").field("body",[W("Statement")]).field("directives",[W("Directive")],q.emptyArray),W("Program").bases("Node").build("body").field("body",[W("Statement")]).field("directives",[W("Directive")],q.emptyArray).field("interpreter",G(W("InterpreterDirective"),null),q.null);function w(H,E){if(H===void 0)H=String;return["extra",{rawValue:H,raw:String},function Q(){var U=X.getFieldValue(this,"value");return{rawValue:U,raw:E?E(U):String(U)}}]}(Z=W("StringLiteral").bases("Literal").build("value").field("value",String)).field.apply(Z,w(String,function(H){return JSON.stringify(H)})),(Y=W("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",G(String,null),q.null)).field.apply(Y,w(Number)),($=W("BigIntLiteral").bases("Literal").build("value").field("value",G(String,Number))).field.apply($,w(String,function(H){return H+"n"})),(K=W("DecimalLiteral").bases("Literal").build("value").field("value",String)).field.apply(K,w(String,function(H){return H+"m"})),W("NullLiteral").bases("Literal").build().field("value",null,q.null),W("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),(J=W("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(J,w(G(RegExp,O),function(H){return"/".concat(H.pattern,"/").concat(H.flags||"")})).field("regex",{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var I=G(W("Property"),W("ObjectMethod"),W("ObjectProperty"),W("SpreadProperty"),W("SpreadElement"));W("ObjectExpression").bases("Expression").build("properties").field("properties",[I]),W("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",G("method","get","set")).field("key",G(W("Literal"),W("Identifier"),W("Expression"))).field("params",[W("Pattern")]).field("body",W("BlockStatement")).field("computed",Boolean,q.false).field("generator",Boolean,q.false).field("async",Boolean,q.false).field("accessibility",G(W("Literal"),null),q.null).field("decorators",G([W("Decorator")],null),q.null),W("ObjectProperty").bases("Node").build("key","value").field("key",G(W("Literal"),W("Identifier"),W("Expression"))).field("value",G(W("Expression"),W("Pattern"))).field("accessibility",G(W("Literal"),null),q.null).field("computed",Boolean,q.false);var V=G(W("MethodDefinition"),W("VariableDeclarator"),W("ClassPropertyDefinition"),W("ClassProperty"),W("ClassPrivateProperty"),W("ClassMethod"),W("ClassPrivateMethod"),W("ClassAccessorProperty"),W("StaticBlock"));W("ClassBody").bases("Declaration").build("body").field("body",[V]),W("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",G(W("Literal"),W("Identifier"),W("Expression"))),W("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",W("PrivateName")),W("ClassAccessorProperty").bases("Declaration").build("key","value","decorators","computed","static").field("key",G(W("Literal"),W("Identifier"),W("PrivateName"),W("Expression"))).field("value",G(W("Expression"),null),q.null),["ClassMethod","ClassPrivateMethod"].forEach(function(H){W(H).field("kind",G("get","set","method","constructor"),function(){return"method"}).field("body",W("BlockStatement")).field("access",G("public","private","protected",null),q.null)}),["ClassMethod","ClassPrivateMethod","ClassAccessorProperty"].forEach(function(H){W(H).field("computed",Boolean,q.false).field("static",Boolean,q.false).field("abstract",Boolean,q.false).field("accessibility",G("public","private","protected",null),q.null).field("decorators",G([W("Decorator")],null),q.null).field("definite",Boolean,q.false).field("optional",Boolean,q.false).field("override",Boolean,q.false).field("readonly",Boolean,q.false)});var D=G(W("Property"),W("PropertyPattern"),W("SpreadPropertyPattern"),W("SpreadProperty"),W("ObjectProperty"),W("RestProperty"),W("RestElement"));W("ObjectPattern").bases("Pattern").build("properties").field("properties",[D]).field("decorators",G([W("Decorator")],null),q.null),W("SpreadProperty").bases("Node").build("argument").field("argument",W("Expression")),W("RestProperty").bases("Node").build("argument").field("argument",W("Expression")),W("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",G(W("VariableDeclaration"),W("Expression"))).field("right",W("Expression")).field("body",W("Statement")),W("Import").bases("Expression").build()};Object.defineProperty(J4,"__esModule",{value:!0});var Y$=_(),E8=Y$.__importDefault(WY()),O8=Y$.__importDefault(y()),K4=Y$.__importStar(S());J4.default=V8;K4.maybeSetModuleExports(function(){return W4})});var D4=N((X4,Q4)=>{var A8=function(z){var Z=z.use(j8.default),Y=Z.Type.def;z.use(U8.default),z.use(B8.default),Y("V8IntrinsicIdentifier").bases("Expression").build("name").field("name",String),Y("TopicReference").bases("Expression").build()};Object.defineProperty(X4,"__esModule",{value:!0});var Z$=_(),j8=Z$.__importDefault(y()),U8=Z$.__importDefault($$()),B8=Z$.__importDefault(aY()),R8=S();X4.default=A8;R8.maybeSetModuleExports(function(){return Q4})});var F4=N((q4,G4)=>{var C8=function(z){z.use(T8.default),z.use(v8.default);var Z=z.use(k8.default),Y=Z.namedTypes,$=Z.Type.def,K=Z.Type.or,J=z.use(H4.default).defaults,X=Z.Type.from(function(O,w){if(Y.StringLiteral&&Y.StringLiteral.check(O,w))return!0;if(Y.Literal&&Y.Literal.check(O,w)&&typeof O.value==="string")return!0;return!1},"StringLiteral");$("TSType").bases("Node");var q=K($("Identifier"),$("TSQualifiedName"));$("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",q),$("TSHasOptionalTypeParameterInstantiation").field("typeParameters",K($("TSTypeParameterInstantiation"),null),J.null),$("TSHasOptionalTypeParameters").field("typeParameters",K($("TSTypeParameterDeclaration"),null,void 0),J.null),$("TSHasOptionalTypeAnnotation").field("typeAnnotation",K($("TSTypeAnnotation"),null),J.null),$("TSQualifiedName").bases("Node").build("left","right").field("left",q).field("right",q),$("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",$("Expression")).field("typeAnnotation",$("TSType")).field("extra",K({parenthesized:Boolean},null),J.null),$("TSTypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",$("Expression")).field("typeAnnotation",$("TSType")),$("TSSatisfiesExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",$("Expression")).field("typeAnnotation",$("TSType")),$("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",$("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSIntrinsicKeyword","TSThisType"].forEach(function(O){$(O).bases("TSType").build()}),$("TSArrayType").bases("TSType").build("elementType").field("elementType",$("TSType")),$("TSLiteralType").bases("TSType").build("literal").field("literal",K($("NumericLiteral"),$("StringLiteral"),$("BooleanLiteral"),$("TemplateLiteral"),$("UnaryExpression"),$("BigIntLiteral"))),$("TemplateLiteral").field("expressions",K([$("Expression")],[$("TSType")])),["TSUnionType","TSIntersectionType"].forEach(function(O){$(O).bases("TSType").build("types").field("types",[$("TSType")])}),$("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",$("TSType")).field("extendsType",$("TSType")).field("trueType",$("TSType")).field("falseType",$("TSType")),$("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",$("TSTypeParameter")),$("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",$("TSType"));var W=[K($("Identifier"),$("RestElement"),$("ArrayPattern"),$("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(function(O){$(O).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",W)}),$("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,J.false).field("async",Boolean,J.false).field("generator",Boolean,J.false).field("id",K($("Identifier"),null),J.null).field("params",[$("Pattern")]).field("returnType",K($("TSTypeAnnotation"),$("Noop"),null),J.null),$("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,J.false).field("generator",Boolean,J.false).field("params",[$("Pattern")]).field("abstract",Boolean,J.false).field("accessibility",K("public","private","protected",void 0),J.undefined).field("static",Boolean,J.false).field("computed",Boolean,J.false).field("optional",Boolean,J.false).field("key",K($("Identifier"),$("StringLiteral"),$("NumericLiteral"),$("Expression"))).field("kind",K("get","set","method","constructor"),function O(){return"method"}).field("access",K("public","private","protected",void 0),J.undefined).field("decorators",K([$("Decorator")],null),J.null).field("returnType",K($("TSTypeAnnotation"),$("Noop"),null),J.null),$("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",K(Boolean,"+","-"),J.false).field("typeParameter",$("TSTypeParameter")).field("optional",K(Boolean,"+","-"),J.false).field("typeAnnotation",K($("TSType"),null),J.null),$("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[K($("TSType"),$("TSNamedTupleMember"))]),$("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",$("Identifier")).field("optional",Boolean,J.false).field("elementType",$("TSType")),$("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",$("TSType")),$("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",$("TSType")),$("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",$("TSType")).field("indexType",$("TSType")),$("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",$("TSType")),$("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",K($("TSType"),$("TSTypeAnnotation"))),$("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[$("Identifier")]).field("readonly",Boolean,J.false),$("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",$("Expression")).field("computed",Boolean,J.false).field("readonly",Boolean,J.false).field("optional",Boolean,J.false).field("initializer",K($("Expression"),null),J.null),$("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",$("Expression")).field("computed",Boolean,J.false).field("optional",Boolean,J.false).field("parameters",W),$("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",K($("Identifier"),$("TSThisType"))).field("typeAnnotation",K($("TSTypeAnnotation"),null),J.null).field("asserts",Boolean,J.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(function(O){$(O).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",W)}),$("TSEnumMember").bases("Node").build("id","initializer").field("id",K($("Identifier"),X)).field("initializer",K($("Expression"),null),J.null),$("TSTypeQuery").bases("TSType").build("exprName").field("exprName",K(q,$("TSImportType")));var G=K($("TSCallSignatureDeclaration"),$("TSConstructSignatureDeclaration"),$("TSIndexSignature"),$("TSMethodSignature"),$("TSPropertySignature"));$("TSTypeLiteral").bases("TSType").build("members").field("members",[G]),$("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",K($("Identifier"),String)).field("constraint",K($("TSType"),void 0),J.undefined).field("default",K($("TSType"),void 0),J.undefined),$("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",$("TSType")).field("expression",$("Expression")).field("extra",K({parenthesized:Boolean},null),J.null),$("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[$("TSTypeParameter")]),$("TSInstantiationExpression").bases("Expression","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",$("Expression")),$("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[$("TSType")]),$("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",$("Identifier")).field("const",Boolean,J.false).field("declare",Boolean,J.false).field("members",[$("TSEnumMember")]).field("initializer",K($("Expression"),null),J.null),$("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",$("Identifier")).field("declare",Boolean,J.false).field("typeAnnotation",$("TSType")),$("TSModuleBlock").bases("Node").build("body").field("body",[$("Statement")]),$("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",K(X,q)).field("declare",Boolean,J.false).field("global",Boolean,J.false).field("body",K($("TSModuleBlock"),$("TSModuleDeclaration"),null),J.null),$("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",X).field("qualifier",K(q,void 0),J.undefined),$("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",$("Identifier")).field("isExport",Boolean,J.false).field("moduleReference",K(q,$("TSExternalModuleReference"))),$("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",X),$("TSExportAssignment").bases("Statement").build("expression").field("expression",$("Expression")),$("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",$("Identifier")),$("TSInterfaceBody").bases("Node").build("body").field("body",[G]),$("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",q),$("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",q).field("declare",Boolean,J.false).field("extends",K([$("TSExpressionWithTypeArguments")],null),J.null).field("body",$("TSInterfaceBody")),$("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",K("public","private","protected",void 0),J.undefined).field("readonly",Boolean,J.false).field("parameter",K($("Identifier"),$("AssignmentPattern"))),$("ClassProperty").field("access",K("public","private","protected",void 0),J.undefined),$("ClassAccessorProperty").bases("Declaration","TSHasOptionalTypeAnnotation"),$("ClassBody").field("body",[K($("MethodDefinition"),$("VariableDeclarator"),$("ClassPropertyDefinition"),$("ClassProperty"),$("ClassPrivateProperty"),$("ClassAccessorProperty"),$("ClassMethod"),$("ClassPrivateMethod"),$("StaticBlock"),$("TSDeclareMethod"),G)])};Object.defineProperty(q4,"__esModule",{value:!0});var vY=_(),T8=vY.__importDefault($$()),v8=vY.__importDefault(tY()),k8=vY.__importDefault(y()),H4=vY.__importStar(S());q4.default=C8;H4.maybeSetModuleExports(function(){return G4})});var E4=N((I4)=>{Object.defineProperty(I4,"__esModule",{value:!0});I4.namedTypes=void 0;var M8;(function(z){})(M8=I4.namedTypes||(I4.namedTypes={}))});var w4=N((K$)=>{Object.defineProperty(K$,"__esModule",{value:!0});K$.visit=K$.use=K$.Type=K$.someField=K$.PathVisitor=K$.Path=K$.NodePath=K$.namedTypes=K$.getSupertypeNames=K$.getFieldValue=K$.getFieldNames=K$.getBuilderName=K$.finalize=K$.eachField=K$.defineMethod=K$.builtInTypes=K$.builders=K$.astNodesAreEquivalent=void 0;var ZY=_(),x8=ZY.__importDefault(i$()),_8=ZY.__importDefault(WY()),S8=ZY.__importDefault(nZ()),b8=ZY.__importDefault(aY()),P8=ZY.__importDefault(z4()),y8=ZY.__importDefault(D4()),g8=ZY.__importDefault(F4()),O4=E4();Object.defineProperty(K$,"namedTypes",{enumerable:!0,get:function(){return O4.namedTypes}});var m=x8.default([_8.default,S8.default,b8.default,P8.default,y8.default,g8.default]),h8=m.astNodesAreEquivalent,c8=m.builders,m8=m.builtInTypes,f8=m.defineMethod,u8=m.eachField,l8=m.finalize,d8=m.getBuilderName,s8=m.getFieldNames,n8=m.getFieldValue,o8=m.getSupertypeNames,i8=m.namedTypes,p8=m.NodePath,r8=m.Path,t8=m.PathVisitor,a8=m.someField,e8=m.Type,YK=m.use,$K=m.visit;K$.astNodesAreEquivalent=h8;K$.builders=c8;K$.builtInTypes=m8;K$.defineMethod=f8;K$.eachField=u8;K$.finalize=l8;K$.getBuilderName=d8;K$.getFieldNames=s8;K$.getFieldValue=n8;K$.getSupertypeNames=o8;K$.NodePath=p8;K$.Path=r8;K$.PathVisitor=t8;K$.someField=a8;K$.Type=e8;K$.use=YK;K$.visit=$K;Object.assign(O4.namedTypes,i8)});var U4=N((wK)=>{var j4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");wK.encode=function(z){if(0<=z&&z<j4.length)return j4[z];throw new TypeError("Must be between 0 and 63: "+z)};wK.decode=function(z){var Z=65,Y=90,$=97,K=122,J=48,X=57,q=43,W=47,G=26,O=52;if(Z<=z&&z<=Y)return z-Z;if($<=z&&z<=K)return z-$+G;if(J<=z&&z<=X)return z-J+O;if(z==q)return 62;if(z==W)return 63;return-1}});var W$=N((AK)=>{var BK=function(z){return z<0?(-z<<1)+1:(z<<1)+0},RK=function(z){var Z=(z&1)===1,Y=z>>1;return Z?-Y:Y},B4=U4(),J$=5,R4=1<<J$,A4=R4-1,L4=R4;AK.encode=function z(Z){var Y="",$,K=BK(Z);do{if($=K&A4,K>>>=J$,K>0)$|=L4;Y+=B4.encode($)}while(K>0);return Y};AK.decode=function z(Z,Y,$){var K=Z.length,J=0,X=0,q,W;do{if(Y>=K)throw new Error("Expected more digits in base 64 VLQ value.");if(W=B4.decode(Z.charCodeAt(Y++)),W===-1)throw new Error("Invalid base64 digit: "+Z.charAt(Y-1));q=!!(W&L4),W&=A4,J=J+(W<<X),X+=J$}while(q);$.value=RK(J),$.rest=Y}});var DY=N((yK)=>{var vK=function(z,Z,Y){if(Z in z)return z[Z];else if(arguments.length===3)return Y;else throw new Error('"'+Z+'" is a required argument.')},OY=function(z){var Z=z.match(T4);if(!Z)return null;return{scheme:Z[1],auth:Z[2],host:Z[3],port:Z[4],path:Z[5]}},XY=function(z){var Z="";if(z.scheme)Z+=z.scheme+":";if(Z+="//",z.auth)Z+=z.auth+"@";if(z.host)Z+=z.host;if(z.port)Z+=":"+z.port;if(z.path)Z+=z.path;return Z},X$=function(z){var Z=z,Y=OY(z);if(Y){if(!Y.path)return z;Z=Y.path}var $=yK.isAbsolute(Z),K=Z.split(/\/+/);for(var J,X=0,q=K.length-1;q>=0;q--)if(J=K[q],J===".")K.splice(q,1);else if(J==="..")X++;else if(X>0)if(J==="")K.splice(q+1,X),X=0;else K.splice(q,2),X--;if(Z=K.join("/"),Z==="")Z=$?"/":".";if(Y)return Y.path=Z,XY(Y);return Z},v4=function(z,Z){if(z==="")z=".";if(Z==="")Z=".";var Y=OY(Z),$=OY(z);if($)z=$.path||"/";if(Y&&!Y.scheme){if($)Y.scheme=$.scheme;return XY(Y)}if(Y||Z.match(kK))return Z;if($&&!$.host&&!$.path)return $.host=Z,XY($);var K=Z.charAt(0)==="/"?Z:X$(z.replace(/\/+$/,"")+"/"+Z);if($)return $.path=K,XY($);return K},CK=function(z,Z){if(z==="")z=".";z=z.replace(/\/$/,"");var Y=0;while(Z.indexOf(z+"/")!==0){var $=z.lastIndexOf("/");if($<0)return Z;if(z=z.slice(0,$),z.match(/^([^\/]+:\/)?\/*$/))return Z;++Y}return Array(Y+1).join("../")+Z.substr(z.length+1)},C4=function(z){return z},NK=function(z){if(N4(z))return"$"+z;return z},MK=function(z){if(N4(z))return z.slice(1);return z},N4=function(z){if(!z)return!1;var Z=z.length;if(Z<9)return!1;if(z.charCodeAt(Z-1)!==95||z.charCodeAt(Z-2)!==95||z.charCodeAt(Z-3)!==111||z.charCodeAt(Z-4)!==116||z.charCodeAt(Z-5)!==111||z.charCodeAt(Z-6)!==114||z.charCodeAt(Z-7)!==112||z.charCodeAt(Z-8)!==95||z.charCodeAt(Z-9)!==95)return!1;for(var Y=Z-10;Y>=0;Y--)if(z.charCodeAt(Y)!==36)return!1;return!0},xK=function(z,Z,Y){var $=QY(z.source,Z.source);if($!==0)return $;if($=z.originalLine-Z.originalLine,$!==0)return $;if($=z.originalColumn-Z.originalColumn,$!==0||Y)return $;if($=z.generatedColumn-Z.generatedColumn,$!==0)return $;if($=z.generatedLine-Z.generatedLine,$!==0)return $;return QY(z.name,Z.name)},_K=function(z,Z,Y){var $=z.generatedLine-Z.generatedLine;if($!==0)return $;if($=z.generatedColumn-Z.generatedColumn,$!==0||Y)return $;if($=QY(z.source,Z.source),$!==0)return $;if($=z.originalLine-Z.originalLine,$!==0)return $;if($=z.originalColumn-Z.originalColumn,$!==0)return $;return QY(z.name,Z.name)},QY=function(z,Z){if(z===Z)return 0;if(z===null)return 1;if(Z===null)return-1;if(z>Z)return 1;return-1},SK=function(z,Z){var Y=z.generatedLine-Z.generatedLine;if(Y!==0)return Y;if(Y=z.generatedColumn-Z.generatedColumn,Y!==0)return Y;if(Y=QY(z.source,Z.source),Y!==0)return Y;if(Y=z.originalLine-Z.originalLine,Y!==0)return Y;if(Y=z.originalColumn-Z.originalColumn,Y!==0)return Y;return QY(z.name,Z.name)},bK=function(z){return JSON.parse(z.replace(/^\)]}'[^\n]*\n/,""))},PK=function(z,Z,Y){if(Z=Z||"",z){if(z[z.length-1]!=="/"&&Z[0]!=="/")z+="/";Z=z+Z}if(Y){var $=OY(Y);if(!$)throw new Error("sourceMapURL could not be parsed");if($.path){var K=$.path.lastIndexOf("/");if(K>=0)$.path=$.path.substring(0,K+1)}Z=v4(XY($),Z)}return X$(Z)};yK.getArg=vK;var T4=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,kK=/^data:.+\,.+$/;yK.urlParse=OY;yK.urlGenerate=XY;yK.normalize=X$;yK.join=v4;yK.isAbsolute=function(z){return z.charAt(0)==="/"||T4.test(z)};yK.relative=CK;var k4=function(){var z=Object.create(null);return!("__proto__"in z)}();yK.toSetString=k4?C4:NK;yK.fromSetString=k4?C4:MK;yK.compareByOriginalPositions=xK;yK.compareByGeneratedPositionsDeflated=_K;yK.compareByGeneratedPositionsInflated=SK;yK.parseSourceMapInput=bK;yK.computeSourceURL=PK});var H$=N((tK)=>{var r=function(){this._array=[],this._set=zY?new Map:Object.create(null)},Q$=DY(),D$=Object.prototype.hasOwnProperty,zY=typeof Map!=="undefined";r.fromArray=function z(Z,Y){var $=new r;for(var K=0,J=Z.length;K<J;K++)$.add(Z[K],Y);return $};r.prototype.size=function z(){return zY?this._set.size:Object.getOwnPropertyNames(this._set).length};r.prototype.add=function z(Z,Y){var $=zY?Z:Q$.toSetString(Z),K=zY?this.has(Z):D$.call(this._set,$),J=this._array.length;if(!K||Y)this._array.push(Z);if(!K)if(zY)this._set.set(Z,J);else this._set[$]=J};r.prototype.has=function z(Z){if(zY)return this._set.has(Z);else{var Y=Q$.toSetString(Z);return D$.call(this._set,Y)}};r.prototype.indexOf=function z(Z){if(zY){var Y=this._set.get(Z);if(Y>=0)return Y}else{var $=Q$.toSetString(Z);if(D$.call(this._set,$))return this._set[$]}throw new Error('"'+Z+'" is not in the set.')};r.prototype.at=function z(Z){if(Z>=0&&Z<this._array.length)return this._array[Z];throw new Error("No element indexed by "+Z)};r.prototype.toArray=function z(){return this._array.slice()};tK.ArraySet=r});var x4=N((Y6)=>{var eK=function(z,Z){var Y=z.generatedLine,$=Z.generatedLine,K=z.generatedColumn,J=Z.generatedColumn;return $>Y||$==Y&&J>=K||M4.compareByGeneratedPositionsInflated(z,Z)<=0},kY=function(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}},M4=DY();kY.prototype.unsortedForEach=function z(Z,Y){this._array.forEach(Z,Y)};kY.prototype.add=function z(Z){if(eK(this._last,Z))this._last=Z,this._array.push(Z);else this._sorted=!1,this._array.push(Z)};kY.prototype.toArray=function z(){if(!this._sorted)this._array.sort(M4.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};Y6.MappingList=kY});var q$=N((z6)=>{var n=function(z){if(!z)z={};this._file=c.getArg(z,"file",null),this._sourceRoot=c.getArg(z,"sourceRoot",null),this._skipValidation=c.getArg(z,"skipValidation",!1),this._sources=new CY,this._names=new CY,this._mappings=new Z6,this._sourcesContents=null},VY=W$(),c=DY(),CY=H$().ArraySet,Z6=x4().MappingList;n.prototype._version=3;n.fromSourceMap=function z(Z){var Y=Z.sourceRoot,$=new n({file:Z.file,sourceRoot:Y});return Z.eachMapping(function(K){var J={generated:{line:K.generatedLine,column:K.generatedColumn}};if(K.source!=null){if(J.source=K.source,Y!=null)J.source=c.relative(Y,J.source);if(J.original={line:K.originalLine,column:K.originalColumn},K.name!=null)J.name=K.name}$.addMapping(J)}),Z.sources.forEach(function(K){var J=K;if(Y!==null)J=c.relative(Y,K);if(!$._sources.has(J))$._sources.add(J);var X=Z.sourceContentFor(K);if(X!=null)$.setSourceContent(K,X)}),$};n.prototype.addMapping=function z(Z){var Y=c.getArg(Z,"generated"),$=c.getArg(Z,"original",null),K=c.getArg(Z,"source",null),J=c.getArg(Z,"name",null);if(!this._skipValidation)this._validateMapping(Y,$,K,J);if(K!=null){if(K=String(K),!this._sources.has(K))this._sources.add(K)}if(J!=null){if(J=String(J),!this._names.has(J))this._names.add(J)}this._mappings.add({generatedLine:Y.line,generatedColumn:Y.column,originalLine:$!=null&&$.line,originalColumn:$!=null&&$.column,source:K,name:J})};n.prototype.setSourceContent=function z(Z,Y){var $=Z;if(this._sourceRoot!=null)$=c.relative(this._sourceRoot,$);if(Y!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[c.toSetString($)]=Y}else if(this._sourcesContents){if(delete this._sourcesContents[c.toSetString($)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};n.prototype.applySourceMap=function z(Z,Y,$){var K=Y;if(Y==null){if(Z.file==null)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');K=Z.file}var J=this._sourceRoot;if(J!=null)K=c.relative(J,K);var X=new CY,q=new CY;this._mappings.unsortedForEach(function(W){if(W.source===K&&W.originalLine!=null){var G=Z.originalPositionFor({line:W.originalLine,column:W.originalColumn});if(G.source!=null){if(W.source=G.source,$!=null)W.source=c.join($,W.source);if(J!=null)W.source=c.relative(J,W.source);if(W.originalLine=G.line,W.originalColumn=G.column,G.name!=null)W.name=G.name}}var O=W.source;if(O!=null&&!X.has(O))X.add(O);var w=W.name;if(w!=null&&!q.has(w))q.add(w)},this),this._sources=X,this._names=q,Z.sources.forEach(function(W){var G=Z.sourceContentFor(W);if(G!=null){if($!=null)W=c.join($,W);if(J!=null)W=c.relative(J,W);this.setSourceContent(W,G)}},this)};n.prototype._validateMapping=function z(Z,Y,$,K){if(Y&&typeof Y.line!=="number"&&typeof Y.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(Z&&"line"in Z&&"column"in Z&&Z.line>0&&Z.column>=0&&!Y&&!$&&!K)return;else if(Z&&"line"in Z&&"column"in Z&&Y&&"line"in Y&&"column"in Y&&Z.line>0&&Z.column>=0&&Y.line>0&&Y.column>=0&&$)return;else throw new Error("Invalid mapping: "+JSON.stringify({generated:Z,source:$,original:Y,name:K}))};n.prototype._serializeMappings=function z(){var Z=0,Y=1,$=0,K=0,J=0,X=0,q="",W,G,O,w,I=this._mappings.toArray();for(var V=0,D=I.length;V<D;V++){if(G=I[V],W="",G.generatedLine!==Y){Z=0;while(G.generatedLine!==Y)W+=";",Y++}else if(V>0){if(!c.compareByGeneratedPositionsInflated(G,I[V-1]))continue;W+=","}if(W+=VY.encode(G.generatedColumn-Z),Z=G.generatedColumn,G.source!=null){if(w=this._sources.indexOf(G.source),W+=VY.encode(w-X),X=w,W+=VY.encode(G.originalLine-1-K),K=G.originalLine-1,W+=VY.encode(G.originalColumn-$),$=G.originalColumn,G.name!=null)O=this._names.indexOf(G.name),W+=VY.encode(O-J),J=O}q+=W}return q};n.prototype._generateSourcesContent=function z(Z,Y){return Z.map(function($){if(!this._sourcesContents)return null;if(Y!=null)$=c.relative(Y,$);var K=c.toSetString($);return Object.prototype.hasOwnProperty.call(this._sourcesContents,K)?this._sourcesContents[K]:null},this)};n.prototype.toJSON=function z(){var Z={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)Z.file=this._file;if(this._sourceRoot!=null)Z.sourceRoot=this._sourceRoot;if(this._sourcesContents)Z.sourcesContent=this._generateSourcesContent(Z.sources,Z.sourceRoot);return Z};n.prototype.toString=function z(){return JSON.stringify(this.toJSON())};z6.SourceMapGenerator=n});var S4=N((J6)=>{var G$=function(z,Z,Y,$,K,J){var X=Math.floor((Z-z)/2)+z,q=K(Y,$[X],!0);if(q===0)return X;else if(q>0){if(Z-X>1)return G$(X,Z,Y,$,K,J);if(J==J6.LEAST_UPPER_BOUND)return Z<$.length?Z:-1;else return X}else{if(X-z>1)return G$(z,X,Y,$,K,J);if(J==J6.LEAST_UPPER_BOUND)return X;else return z<0?-1:z}};J6.GREATEST_LOWER_BOUND=1;J6.LEAST_UPPER_BOUND=2;J6.search=function z(Z,Y,$,K){if(Y.length===0)return-1;var J=G$(-1,Y.length,Z,Y,$,K||J6.GREATEST_LOWER_BOUND);if(J<0)return-1;while(J-1>=0){if($(Y[J],Y[J-1],!0)!==0)break;--J}return J}});var b4=N((Q6)=>{var I$=function(z,Z,Y){var $=z[Z];z[Z]=z[Y],z[Y]=$},X6=function(z,Z){return Math.round(z+Math.random()*(Z-z))},E$=function(z,Z,Y,$){if(Y<$){var K=X6(Y,$),J=Y-1;I$(z,K,$);var X=z[$];for(var q=Y;q<$;q++)if(Z(z[q],X)<=0)J+=1,I$(z,J,q);I$(z,J+1,q);var W=J+1;E$(z,Z,Y,W-1),E$(z,Z,W+1,$)}};Q6.quickSort=function(z,Z){E$(z,Z,0,z.length-1)}});var y4=N((q6)=>{var P=function(z,Z){var Y=z;if(typeof z==="string")Y=v.parseSourceMapInput(z);return Y.sections!=null?new o(Y,Z):new f(Y,Z)},f=function(z,Z){var Y=z;if(typeof z==="string")Y=v.parseSourceMapInput(z);var $=v.getArg(Y,"version"),K=v.getArg(Y,"sources"),J=v.getArg(Y,"names",[]),X=v.getArg(Y,"sourceRoot",null),q=v.getArg(Y,"sourcesContent",null),W=v.getArg(Y,"mappings"),G=v.getArg(Y,"file",null);if($!=this._version)throw new Error("Unsupported version: "+$);if(X)X=v.normalize(X);K=K.map(String).map(v.normalize).map(function(O){return X&&v.isAbsolute(X)&&v.isAbsolute(O)?v.relative(X,O):O}),this._names=HY.fromArray(J.map(String),!0),this._sources=HY.fromArray(K,!0),this._absoluteSources=this._sources.toArray().map(function(O){return v.computeSourceURL(X,O,Z)}),this.sourceRoot=X,this.sourcesContent=q,this._mappings=W,this._sourceMapURL=Z,this.file=G},P4=function(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null},o=function(z,Z){var Y=z;if(typeof z==="string")Y=v.parseSourceMapInput(z);var $=v.getArg(Y,"version"),K=v.getArg(Y,"sections");if($!=this._version)throw new Error("Unsupported version: "+$);this._sources=new HY,this._names=new HY;var J={line:-1,column:0};this._sections=K.map(function(X){if(X.url)throw new Error("Support for url field in sections not implemented.");var q=v.getArg(X,"offset"),W=v.getArg(q,"line"),G=v.getArg(q,"column");if(W<J.line||W===J.line&&G<J.column)throw new Error("Section offsets must be ordered and non-overlapping.");return J=q,{generatedOffset:{generatedLine:W+1,generatedColumn:G+1},consumer:new P(v.getArg(X,"map"),Z)}})},v=DY(),O$=S4(),HY=H$().ArraySet,H6=W$(),wY=b4().quickSort;P.fromSourceMap=function(z,Z){return f.fromSourceMap(z,Z)};P.prototype._version=3;P.prototype.__generatedMappings=null;Object.defineProperty(P.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});P.prototype.__originalMappings=null;Object.defineProperty(P.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});P.prototype._charIsMappingSeparator=function z(Z,Y){var $=Z.charAt(Y);return $===";"||$===","};P.prototype._parseMappings=function z(Z,Y){throw new Error("Subclasses must implement _parseMappings")};P.GENERATED_ORDER=1;P.ORIGINAL_ORDER=2;P.GREATEST_LOWER_BOUND=1;P.LEAST_UPPER_BOUND=2;P.prototype.eachMapping=function z(Z,Y,$){var K=Y||null,J=$||P.GENERATED_ORDER,X;switch(J){case P.GENERATED_ORDER:X=this._generatedMappings;break;case P.ORIGINAL_ORDER:X=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var q=this.sourceRoot;X.map(function(W){var G=W.source===null?null:this._sources.at(W.source);return G=v.computeSourceURL(q,G,this._sourceMapURL),{source:G,generatedLine:W.generatedLine,generatedColumn:W.generatedColumn,originalLine:W.originalLine,originalColumn:W.originalColumn,name:W.name===null?null:this._names.at(W.name)}},this).forEach(Z,K)};P.prototype.allGeneratedPositionsFor=function z(Z){var Y=v.getArg(Z,"line"),$={source:v.getArg(Z,"source"),originalLine:Y,originalColumn:v.getArg(Z,"column",0)};if($.source=this._findSourceIndex($.source),$.source<0)return[];var K=[],J=this._findMapping($,this._originalMappings,"originalLine","originalColumn",v.compareByOriginalPositions,O$.LEAST_UPPER_BOUND);if(J>=0){var X=this._originalMappings[J];if(Z.column===void 0){var q=X.originalLine;while(X&&X.originalLine===q)K.push({line:v.getArg(X,"generatedLine",null),column:v.getArg(X,"generatedColumn",null),lastColumn:v.getArg(X,"lastGeneratedColumn",null)}),X=this._originalMappings[++J]}else{var W=X.originalColumn;while(X&&X.originalLine===Y&&X.originalColumn==W)K.push({line:v.getArg(X,"generatedLine",null),column:v.getArg(X,"generatedColumn",null),lastColumn:v.getArg(X,"lastGeneratedColumn",null)}),X=this._originalMappings[++J]}}return K};q6.SourceMapConsumer=P;f.prototype=Object.create(P.prototype);f.prototype.consumer=P;f.prototype._findSourceIndex=function(z){var Z=z;if(this.sourceRoot!=null)Z=v.relative(this.sourceRoot,Z);if(this._sources.has(Z))return this._sources.indexOf(Z);var Y;for(Y=0;Y<this._absoluteSources.length;++Y)if(this._absoluteSources[Y]==z)return Y;return-1};f.fromSourceMap=function z(Z,Y){var $=Object.create(f.prototype),K=$._names=HY.fromArray(Z._names.toArray(),!0),J=$._sources=HY.fromArray(Z._sources.toArray(),!0);$.sourceRoot=Z._sourceRoot,$.sourcesContent=Z._generateSourcesContent($._sources.toArray(),$.sourceRoot),$.file=Z._file,$._sourceMapURL=Y,$._absoluteSources=$._sources.toArray().map(function(V){return v.computeSourceURL($.sourceRoot,V,Y)});var X=Z._mappings.toArray().slice(),q=$.__generatedMappings=[],W=$.__originalMappings=[];for(var G=0,O=X.length;G<O;G++){var w=X[G],I=new P4;if(I.generatedLine=w.generatedLine,I.generatedColumn=w.generatedColumn,w.source){if(I.source=J.indexOf(w.source),I.originalLine=w.originalLine,I.originalColumn=w.originalColumn,w.name)I.name=K.indexOf(w.name);W.push(I)}q.push(I)}return wY($.__originalMappings,v.compareByOriginalPositions),$};f.prototype._version=3;Object.defineProperty(f.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});f.prototype._parseMappings=function z(Z,Y){var $=1,K=0,J=0,X=0,q=0,W=0,G=Z.length,O=0,w={},I={},V=[],D=[],H,E,Q,U,A;while(O<G)if(Z.charAt(O)===";")$++,O++,K=0;else if(Z.charAt(O)===",")O++;else{H=new P4,H.generatedLine=$;for(U=O;U<G;U++)if(this._charIsMappingSeparator(Z,U))break;if(E=Z.slice(O,U),Q=w[E],Q)O+=E.length;else{Q=[];while(O<U)H6.decode(Z,O,I),A=I.value,O=I.rest,Q.push(A);if(Q.length===2)throw new Error("Found a source, but no line and column");if(Q.length===3)throw new Error("Found a source and line, but no column");w[E]=Q}if(H.generatedColumn=K+Q[0],K=H.generatedColumn,Q.length>1){if(H.source=q+Q[1],q+=Q[1],H.originalLine=J+Q[2],J=H.originalLine,H.originalLine+=1,H.originalColumn=X+Q[3],X=H.originalColumn,Q.length>4)H.name=W+Q[4],W+=Q[4]}if(D.push(H),typeof H.originalLine==="number")V.push(H)}wY(D,v.compareByGeneratedPositionsDeflated),this.__generatedMappings=D,wY(V,v.compareByOriginalPositions),this.__originalMappings=V};f.prototype._findMapping=function z(Z,Y,$,K,J,X){if(Z[$]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+Z[$]);if(Z[K]<0)throw new TypeError("Column must be greater than or equal to 0, got "+Z[K]);return O$.search(Z,Y,J,X)};f.prototype.computeColumnSpans=function z(){for(var Z=0;Z<this._generatedMappings.length;++Z){var Y=this._generatedMappings[Z];if(Z+1<this._generatedMappings.length){var $=this._generatedMappings[Z+1];if(Y.generatedLine===$.generatedLine){Y.lastGeneratedColumn=$.generatedColumn-1;continue}}Y.lastGeneratedColumn=Infinity}};f.prototype.originalPositionFor=function z(Z){var Y={generatedLine:v.getArg(Z,"line"),generatedColumn:v.getArg(Z,"column")},$=this._findMapping(Y,this._generatedMappings,"generatedLine","generatedColumn",v.compareByGeneratedPositionsDeflated,v.getArg(Z,"bias",P.GREATEST_LOWER_BOUND));if($>=0){var K=this._generatedMappings[$];if(K.generatedLine===Y.generatedLine){var J=v.getArg(K,"source",null);if(J!==null)J=this._sources.at(J),J=v.computeSourceURL(this.sourceRoot,J,this._sourceMapURL);var X=v.getArg(K,"name",null);if(X!==null)X=this._names.at(X);return{source:J,line:v.getArg(K,"originalLine",null),column:v.getArg(K,"originalColumn",null),name:X}}}return{source:null,line:null,column:null,name:null}};f.prototype.hasContentsOfAllSources=function z(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(Z){return Z==null})};f.prototype.sourceContentFor=function z(Z,Y){if(!this.sourcesContent)return null;var $=this._findSourceIndex(Z);if($>=0)return this.sourcesContent[$];var K=Z;if(this.sourceRoot!=null)K=v.relative(this.sourceRoot,K);var J;if(this.sourceRoot!=null&&(J=v.urlParse(this.sourceRoot))){var X=K.replace(/^file:\/\//,"");if(J.scheme=="file"&&this._sources.has(X))return this.sourcesContent[this._sources.indexOf(X)];if((!J.path||J.path=="/")&&this._sources.has("/"+K))return this.sourcesContent[this._sources.indexOf("/"+K)]}if(Y)return null;else throw new Error('"'+K+'" is not in the SourceMap.')};f.prototype.generatedPositionFor=function z(Z){var Y=v.getArg(Z,"source");if(Y=this._findSourceIndex(Y),Y<0)return{line:null,column:null,lastColumn:null};var $={source:Y,originalLine:v.getArg(Z,"line"),originalColumn:v.getArg(Z,"column")},K=this._findMapping($,this._originalMappings,"originalLine","originalColumn",v.compareByOriginalPositions,v.getArg(Z,"bias",P.GREATEST_LOWER_BOUND));if(K>=0){var J=this._originalMappings[K];if(J.source===$.source)return{line:v.getArg(J,"generatedLine",null),column:v.getArg(J,"generatedColumn",null),lastColumn:v.getArg(J,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};q6.BasicSourceMapConsumer=f;o.prototype=Object.create(P.prototype);o.prototype.constructor=P;o.prototype._version=3;Object.defineProperty(o.prototype,"sources",{get:function(){var z=[];for(var Z=0;Z<this._sections.length;Z++)for(var Y=0;Y<this._sections[Z].consumer.sources.length;Y++)z.push(this._sections[Z].consumer.sources[Y]);return z}});o.prototype.originalPositionFor=function z(Z){var Y={generatedLine:v.getArg(Z,"line"),generatedColumn:v.getArg(Z,"column")},$=O$.search(Y,this._sections,function(J,X){var q=J.generatedLine-X.generatedOffset.generatedLine;if(q)return q;return J.generatedColumn-X.generatedOffset.generatedColumn}),K=this._sections[$];if(!K)return{source:null,line:null,column:null,name:null};return K.consumer.originalPositionFor({line:Y.generatedLine-(K.generatedOffset.generatedLine-1),column:Y.generatedColumn-(K.generatedOffset.generatedLine===Y.generatedLine?K.generatedOffset.generatedColumn-1:0),bias:Z.bias})};o.prototype.hasContentsOfAllSources=function z(){return this._sections.every(function(Z){return Z.consumer.hasContentsOfAllSources()})};o.prototype.sourceContentFor=function z(Z,Y){for(var $=0;$<this._sections.length;$++){var K=this._sections[$],J=K.consumer.sourceContentFor(Z,!0);if(J)return J}if(Y)return null;else throw new Error('"'+Z+'" is not in the SourceMap.')};o.prototype.generatedPositionFor=function z(Z){for(var Y=0;Y<this._sections.length;Y++){var $=this._sections[Y];if($.consumer._findSourceIndex(v.getArg(Z,"source"))===-1)continue;var K=$.consumer.generatedPositionFor(Z);if(K){var J={line:K.line+($.generatedOffset.generatedLine-1),column:K.column+($.generatedOffset.generatedLine===K.line?$.generatedOffset.generatedColumn-1:0)};return J}}return{line:null,column:null}};o.prototype._parseMappings=function z(Z,Y){this.__generatedMappings=[],this.__originalMappings=[];for(var $=0;$<this._sections.length;$++){var K=this._sections[$],J=K.consumer._generatedMappings;for(var X=0;X<J.length;X++){var q=J[X],W=K.consumer._sources.at(q.source);W=v.computeSourceURL(K.consumer.sourceRoot,W,this._sourceMapURL),this._sources.add(W),W=this._sources.indexOf(W);var G=null;if(q.name)G=K.consumer._names.at(q.name),this._names.add(G),G=this._names.indexOf(G);var O={source:W,generatedLine:q.generatedLine+(K.generatedOffset.generatedLine-1),generatedColumn:q.generatedColumn+(K.generatedOffset.generatedLine===q.generatedLine?K.generatedOffset.generatedColumn-1:0),originalLine:q.originalLine,originalColumn:q.originalColumn,name:G};if(this.__generatedMappings.push(O),typeof O.originalLine==="number")this.__originalMappings.push(O)}}wY(this.__generatedMappings,v.compareByGeneratedPositionsDeflated),wY(this.__originalMappings,v.compareByOriginalPositions)};q6.IndexedSourceMapConsumer=o});var g4=N((w6)=>{var d=function(z,Z,Y,$,K){if(this.children=[],this.sourceContents={},this.line=z==null?null:z,this.column=Z==null?null:Z,this.source=Y==null?null:Y,this.name=K==null?null:K,this[qY]=!0,$!=null)this.add($)},E6=q$().SourceMapGenerator,NY=DY(),O6=/(\r?\n)/,V6=10,qY="$$$isSourceNode$$$";d.fromStringWithSourceMap=function z(Z,Y,$){var K=new d,J=Z.split(O6),X=0,q=function(){var I=D(),V=D()||"";return I+V;function D(){return X<J.length?J[X++]:void 0}},W=1,G=0,O=null;if(Y.eachMapping(function(I){if(O!==null)if(W<I.generatedLine)w(O,q()),W++,G=0;else{var V=J[X]||"",D=V.substr(0,I.generatedColumn-G);J[X]=V.substr(I.generatedColumn-G),G=I.generatedColumn,w(O,D),O=I;return}while(W<I.generatedLine)K.add(q()),W++;if(G<I.generatedColumn){var V=J[X]||"";K.add(V.substr(0,I.generatedColumn)),J[X]=V.substr(I.generatedColumn),G=I.generatedColumn}O=I},this),X<J.length){if(O)w(O,q());K.add(J.splice(X).join(""))}return Y.sources.forEach(function(I){var V=Y.sourceContentFor(I);if(V!=null){if($!=null)I=NY.join($,I);K.setSourceContent(I,V)}}),K;function w(I,V){if(I===null||I.source===void 0)K.add(V);else{var D=$?NY.join($,I.source):I.source;K.add(new d(I.originalLine,I.originalColumn,D,V,I.name))}}};d.prototype.add=function z(Z){if(Array.isArray(Z))Z.forEach(function(Y){this.add(Y)},this);else if(Z[qY]||typeof Z==="string"){if(Z)this.children.push(Z)}else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+Z);return this};d.prototype.prepend=function z(Z){if(Array.isArray(Z))for(var Y=Z.length-1;Y>=0;Y--)this.prepend(Z[Y]);else if(Z[qY]||typeof Z==="string")this.children.unshift(Z);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+Z);return this};d.prototype.walk=function z(Z){var Y;for(var $=0,K=this.children.length;$<K;$++)if(Y=this.children[$],Y[qY])Y.walk(Z);else if(Y!=="")Z(Y,{source:this.source,line:this.line,column:this.column,name:this.name})};d.prototype.join=function z(Z){var Y,$,K=this.children.length;if(K>0){Y=[];for($=0;$<K-1;$++)Y.push(this.children[$]),Y.push(Z);Y.push(this.children[$]),this.children=Y}return this};d.prototype.replaceRight=function z(Z,Y){var $=this.children[this.children.length-1];if($[qY])$.replaceRight(Z,Y);else if(typeof $==="string")this.children[this.children.length-1]=$.replace(Z,Y);else this.children.push("".replace(Z,Y));return this};d.prototype.setSourceContent=function z(Z,Y){this.sourceContents[NY.toSetString(Z)]=Y};d.prototype.walkSourceContents=function z(Z){for(var Y=0,$=this.children.length;Y<$;Y++)if(this.children[Y][qY])this.children[Y].walkSourceContents(Z);var K=Object.keys(this.sourceContents);for(var Y=0,$=K.length;Y<$;Y++)Z(NY.fromSetString(K[Y]),this.sourceContents[K[Y]])};d.prototype.toString=function z(){var Z="";return this.walk(function(Y){Z+=Y}),Z};d.prototype.toStringWithSourceMap=function z(Z){var Y={code:"",line:1,column:0},$=new E6(Z),K=!1,J=null,X=null,q=null,W=null;return this.walk(function(G,O){if(Y.code+=G,O.source!==null&&O.line!==null&&O.column!==null){if(J!==O.source||X!==O.line||q!==O.column||W!==O.name)$.addMapping({source:O.source,original:{line:O.line,column:O.column},generated:{line:Y.line,column:Y.column},name:O.name});J=O.source,X=O.line,q=O.column,W=O.name,K=!0}else if(K)$.addMapping({generated:{line:Y.line,column:Y.column}}),J=null,K=!1;for(var w=0,I=G.length;w<I;w++)if(G.charCodeAt(w)===V6){if(Y.line++,Y.column=0,w+1===I)J=null,K=!1;else if(K)$.addMapping({source:O.source,original:{line:O.line,column:O.column},generated:{line:Y.line,column:Y.column},name:O.name})}else Y.column++}),this.walkSourceContents(function(G,O){$.setSourceContent(G,O)}),{code:Y.code,map:$}};w6.SourceNode=d});var h4=N((U6)=>{U6.SourceMapGenerator=q$().SourceMapGenerator;U6.SourceMapConsumer=y4().SourceMapConsumer;U6.SourceNode=g4().SourceNode});var o6=N((l4)=>{var v6=function(){return u4()?"\n":import.meta.require("os").EOL||"\n"},u4=function(){return typeof window!=="undefined"&&typeof window.document!=="undefined"},k6=function(z,Z,Y){if(z&&f4.call(z,Z))return z[Z];return Y},C6=function(){var z=[];for(var Z=0;Z<arguments.length;Z++)z[Z]=arguments[Z];var Y={},$=z.length;for(var K=0;K<$;++K){var J=Object.keys(z[K]),X=J.length;for(var q=0;q<X;++q)Y[J[q]]=!0}return Y},p=function(z,Z){return z.line-Z.line||z.column-Z.column},e=function(z){return{line:z.line,column:z.column}},N6=function(z,Z){if(z){if(!Z)return z}else return Z||null;var Y=new c4(z),$=new c4(Z),K=new T6({file:Z.file,sourceRoot:Z.sourceRoot}),J={};return $.eachMapping(function(X){var q=Y.originalPositionFor({line:X.originalLine,column:X.originalColumn}),W=q.source;if(W===null)return;K.addMapping({source:W,original:e(q),generated:{line:X.generatedLine,column:X.generatedColumn},name:X.name});var G=Y.sourceContentFor(W);if(G&&!f4.call(J,W))J[W]=G,K.setSourceContent(W,G)}),K.toJSON()},M6=function(z,Z){if(!z.loc)return null;var Y={start:z.loc.start,end:z.loc.end};function $(K){V$(Y,K.loc)}if(z.declaration&&z.declaration.decorators&&xY(z))z.declaration.decorators.forEach($);if(p(Y.start,Y.end)<0){if(Y.start=e(Y.start),Z.skipSpaces(Y.start,!1,!0),p(Y.start,Y.end)<0)Y.end=e(Y.end),Z.skipSpaces(Y.end,!0,!0)}if(z.comments)z.comments.forEach($);return Y},V$=function(z,Z){if(z&&Z){if(p(Z.start,z.start)<0)z.start=Z.start;if(p(z.end,Z.end)<0)z.end=Z.end}},x6=function(z,Z){var Y=z.loc;if(Y){if(Y.start.line<1)Y.start.line=1;if(Y.end.line<1)Y.end.line=1}if(z.type==="File")Y.start=Z.firstPos(),Y.end=Z.lastPos();if(_6(z,Z),S6(z,Z),Y&&z.decorators)z.decorators.forEach(function(X){V$(Y,X.loc)});else if(z.declaration&&xY(z)){z.declaration.loc=null;var $=z.declaration.decorators;if($)$.forEach(function(X){V$(Y,X.loc)})}else if(MY.MethodDefinition&&MY.MethodDefinition.check(z)||MY.Property.check(z)&&(z.method||z.shorthand)){if(z.value.loc=null,MY.FunctionExpression.check(z.value))z.value.id=null}else if(z.type==="ObjectTypeProperty"){var K=z.loc,J=K&&K.end;if(J){if(J=e(J),Z.prevPos(J)&&Z.charAt(J)===","){if(J=Z.skipSpaces(J,!0,!0))K.end=J}}}},_6=function(z,Z){if(z.type!=="ForStatement")return;function Y($){var K=$&&$.loc,J=K&&K.start,X=K&&e(K.end);while(J&&X&&p(J,X)<0)if(Z.prevPos(X),Z.charAt(X)===";")K.end.line=X.line,K.end.column=X.column;else break}Y(z.init),Y(z.test),Y(z.update)},S6=function(z,Z){if(z.type!=="TemplateLiteral")return;if(z.quasis.length===0)return;if(z.loc){var Y=e(z.loc.start);jY.default(Z.charAt(Y)==="`"),jY.default(Z.nextPos(Y));var $=z.quasis[0];if(p($.loc.start,Y)<0)$.loc.start=Y;var K=e(z.loc.end);jY.default(Z.prevPos(K)),jY.default(Z.charAt(K)==="`");var J=z.quasis[z.quasis.length-1];if(p(K,J.loc.end)<0)J.loc.end=K}z.expressions.forEach(function(X,q){var W=Z.skipSpaces(X.loc.start,!0,!1);if(Z.prevPos(W)&&Z.charAt(W)==="{"&&Z.prevPos(W)&&Z.charAt(W)==="$"){var G=z.quasis[q];if(p(W,G.loc.end)<0)G.loc.end=W}var O=Z.skipSpaces(X.loc.end,!1,!1);if(Z.charAt(O)==="}"){jY.default(Z.nextPos(O));var w=z.quasis[q+1];if(p(w.loc.start,O)<0)w.loc.start=O}})},xY=function(z){if(z)switch(z.type){case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1},b6=function(z){var Z=z.getParentNode();if(z.getName()==="declaration"&&xY(Z))return Z;return null},P6=function(z,Z){var Y=z.trailingComma;if(typeof Y==="object")return!!Y[Z];return!!Y};Object.defineProperty(l4,"__esModule",{value:!0});l4.isTrailingCommaEnabled=l4.getParentExportDeclaration=l4.isExportDeclaration=l4.fixFaultyLocations=l4.getTrueLoc=l4.composeSourceMaps=l4.copyPos=l4.comparePos=l4.getUnionOfKeys=l4.getOption=l4.isBrowser=l4.getLineTerminator=void 0;var w$=_(),jY=w$.__importDefault(B$()),L6=w$.__importStar(w4()),MY=L6.namedTypes,m4=w$.__importDefault(h4()),c4=m4.default.SourceMapConsumer,T6=m4.default.SourceMapGenerator,f4=Object.prototype.hasOwnProperty;l4.getLineTerminator=v6;l4.isBrowser=u4;l4.getOption=k6;l4.getUnionOfKeys=C6;l4.comparePos=p;l4.copyPos=e;l4.composeSourceMaps=N6;l4.getTrueLoc=M6;l4.fixFaultyLocations=x6;l4.isExportDeclaration=xY;l4.getParentExportDeclaration=b6;l4.isTrailingCommaEnabled=P6});
|
|
2
|
+
export{w4 as G,B$ as H,h4 as I,o6 as J};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{A as _} from"./chunk-e3d242546d1a2927.js";import"./chunk-ed4022c20775d58f.js";import{ub as y} from"./chunk-9ca526226958d45c.js";import{Db as S,xb as K} from"./chunk-827fe74e5b55863c.js";var o=_(y(),1);import{exec as A} from"child_process";import{promisify as T} from"util";var i=(c,n,s)=>{if(n.Version!==1)throw Error(`Profile ${c} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${c} credential_process returned invalid credentials.`);if(n.Expiration){const t=new Date;if(new Date(n.Expiration)<t)throw Error(`Profile ${c} credential_process returned expired credentials.`)}let e=n.AccountId;if(!e&&s?.[c]?.aws_account_id)e=s[c].aws_account_id;return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...e&&{accountId:e}}};var x=async(c,n,s)=>{const e=n[c];if(n[c]){const t=e.credential_process;if(t!==void 0){const u=T(A);try{const{stdout:r}=await u(t);let w;try{w=JSON.parse(r.trim())}catch{throw Error(`Profile ${c} credential_process returned invalid JSON.`)}return i(c,w,n)}catch(r){throw new o.CredentialsProviderError(r.message,{logger:s})}}else throw new o.CredentialsProviderError(`Profile ${c} did not contain credential_process.`,{logger:s})}else throw new o.CredentialsProviderError(`Profile ${c} could not be found in shared credentials file.`,{logger:s})};var b=(c={})=>async()=>{c.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const n=await S(c);return x(K(c),n,c.logger)};export{b as fromProcess};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{A as l} from"./chunk-e3d242546d1a2927.js";import{ub as m} from"./chunk-9ca526226958d45c.js";var E=l(m(),1);import{readFileSync as S} from"fs";var t=(e)=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:c,policyArns:i,policy:_,durationSeconds:N}=e;let{roleAssumerWithWebIdentity:s}=e;if(!s){const{getDefaultRoleAssumerWithWebIdentity:d}=await import("./chunk-1e96eb132f10e361.js");s=d({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:e.parentClientConfig},e.clientPlugins)}return s({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:c,PolicyArns:i,Policy:_,DurationSeconds:N})};var p="AWS_WEB_IDENTITY_TOKEN_FILE",f="AWS_ROLE_ARN",T="AWS_ROLE_SESSION_NAME",I=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const o=e?.webIdentityTokenFile??process.env[p],r=e?.roleArn??process.env[f],n=e?.roleSessionName??process.env[T];if(!o||!r)throw new E.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});return t({...e,webIdentityToken:S(o,{encoding:"ascii"}),roleArn:r,roleSessionName:n})()};export{t as fromWebToken,I as fromTokenFile};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{A as _} from"./chunk-e3d242546d1a2927.js";import{ub as S} from"./chunk-9ca526226958d45c.js";var E=_(S(),1),p="AWS_ACCESS_KEY_ID",A="AWS_SECRET_ACCESS_KEY",C="AWS_SESSION_TOKEN",N="AWS_CREDENTIAL_EXPIRATION",I="AWS_CREDENTIAL_SCOPE",a="AWS_ACCOUNT_ID",i=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const o=process.env[p],r=process.env[A],n=process.env[C],s=process.env[N],t=process.env[I],c=process.env[a];if(o&&r)return{accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...c&&{accountId:c}};throw new E.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};export{i as fromEnv,C as ENV_SESSION,A as ENV_SECRET,p as ENV_KEY,N as ENV_EXPIRATION,I as ENV_CREDENTIAL_SCOPE,a as ENV_ACCOUNT_ID};export{p as t,A as u,i as v};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{A as K} from"./chunk-e3d242546d1a2927.js";import"./chunk-ed4022c20775d58f.js";import{sb as v,tb as P} from"./chunk-1488c30be491de9b.js";import{ub as _} from"./chunk-9ca526226958d45c.js";import"./chunk-827fe74e5b55863c.js";var m=K(_(),1);import{parse as o} from"url";var z=K(_(),1);import{Buffer as a} from"buffer";import{request as n} from"http";function f(c){return new Promise((I,x)=>{const T=n({method:"GET",...c,hostname:c.hostname?.replace(/^\[(.+)\]$/,"$1")});T.on("error",(N)=>{x(Object.assign(new z.ProviderError("Unable to connect to instance metadata service"),N)),T.destroy()}),T.on("timeout",()=>{x(new z.ProviderError("TimeoutError from instance metadata service")),T.destroy()}),T.on("response",(N)=>{const{statusCode:O=400}=N;if(O<200||300<=O)x(Object.assign(new z.ProviderError("Error response received from instance metadata service"),{statusCode:O})),T.destroy();const u=[];N.on("data",(y)=>{u.push(y)}),N.on("end",()=>{I(a.concat(u)),T.destroy()})}),T.end()})}var D=(c)=>Boolean(c)&&typeof c==="object"&&typeof c.AccessKeyId==="string"&&typeof c.SecretAccessKey==="string"&&typeof c.Token==="string"&&typeof c.Expiration==="string",G=(c)=>({accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.Token,expiration:new Date(c.Expiration),...c.AccountId&&{accountId:c.AccountId}});var fc=1000,uc=0,Q=({maxRetries:c=0,timeout:I=1000})=>({maxRetries:c,timeout:I});var J=(c,I)=>{let x=c();for(let T=0;T<I;T++)x=x.catch(c);return x};var Z="AWS_CONTAINER_CREDENTIALS_FULL_URI",L="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",B="AWS_CONTAINER_AUTHORIZATION_TOKEN",zc=(c={})=>{const{timeout:I,maxRetries:x}=Q(c);return()=>J(async()=>{const T=await d({logger:c.logger}),N=JSON.parse(await s(I,T));if(!D(N))throw new m.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:c.logger});return G(N)},x)},s=async(c,I)=>{if(process.env[B])I.headers={...I.headers,Authorization:process.env[B]};return(await f({...I,timeout:c})).toString()},g="169.254.170.2",l={localhost:!0,"127.0.0.1":!0},r={"http:":!0,"https:":!0},d=async({logger:c})=>{if(process.env[L])return{hostname:g,path:process.env[L]};if(process.env[Z]){const I=o(process.env[Z]);if(!I.hostname||!(I.hostname in l))throw new m.CredentialsProviderError(`${I.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:c});if(!I.protocol||!(I.protocol in r))throw new m.CredentialsProviderError(`${I.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:c});return{...I,port:I.port?parseInt(I.port,10):void 0}}throw new m.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${L} or ${Z} environment`+" variable is set",{tryNextLink:!1,logger:c})};var q=K(_(),1);var U=K(_(),1);class X extends U.CredentialsProviderError{constructor(c,I=!0){super(c,I);this.tryNextLink=I,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,X.prototype)}}var j;(function(c){c.IPv4="http://169.254.169.254",c.IPv6="http://[fd00:ec2::254]"})(j||(j={}));var t={environmentVariableSelector:(c)=>c["AWS_EC2_METADATA_SERVICE_ENDPOINT"],configFileSelector:(c)=>c["ec2_metadata_service_endpoint"],default:void 0};var S;(function(c){c.IPv4="IPv4",c.IPv6="IPv6"})(S||(S={}));var e="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",i="ec2_metadata_service_endpoint_mode",F={environmentVariableSelector:(c)=>c[e],configFileSelector:(c)=>c[i],default:S.IPv4};var W=async()=>P(await cc()||await Ic()),cc=async()=>v(t)(),Ic=async()=>{const c=await v(F)();switch(c){case S.IPv4:return j.IPv4;case S.IPv6:return j.IPv6;default:throw new Error(`Unsupported endpoint mode: ${c}.`+` Select from ${Object.values(S)}`)}};var b=(c,I)=>{const x=300+Math.floor(Math.random()*300),T=new Date(Date.now()+x*1000);I.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+`credentials will be attempted after ${new Date(T)}.\nFor more information, please visit: `+"https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html");const N=c.originalExpiration??c.expiration;return{...c,...N?{originalExpiration:N}:{},expiration:T}};var V=(c,I={})=>{const x=I?.logger||console;let T;return async()=>{let N;try{if(N=await c(),N.expiration&&N.expiration.getTime()<Date.now())N=b(N,x)}catch(O){if(T)x.warn("Credential renew failed: ",O),N=b(T,x);else throw O}return T=N,N}};var k="/latest/meta-data/iam/security-credentials/",Tc="/latest/api/token",H="AWS_EC2_METADATA_V1_DISABLED",R="ec2_metadata_v1_disabled",M="x-aws-ec2-metadata-token",oc=(c={})=>V(Nc(c),{logger:c.logger}),Nc=(c={})=>{let I=!1;const{logger:x,profile:T}=c,{timeout:N,maxRetries:O}=Q(c),u=async(y,E)=>{if(I||E.headers?.[M]==null){let w=!1,h=!1;const C=await v({environmentVariableSelector:(Y)=>{const $=Y[H];if(h=!!$&&$!=="false",$===void 0)throw new q.CredentialsProviderError(`${H} not set in env, checking config file next.`,{logger:c.logger});return h},configFileSelector:(Y)=>{const $=Y[R];return w=!!$&&$!=="false",w},default:!1},{profile:T})();if(c.ec2MetadataV1Disabled||C){const Y=[];if(c.ec2MetadataV1Disabled)Y.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(w)Y.push(`config file profile (${R})`);if(h)Y.push(`process environment variable (${H})`);throw new X(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Y.join(", ")}].`)}}const p=(await J(async()=>{let w;try{w=await Oc(E)}catch(h){if(h.statusCode===401)I=!1;throw h}return w},y)).trim();return J(async()=>{let w;try{w=await yc(p,E,c)}catch(h){if(h.statusCode===401)I=!1;throw h}return w},y)};return async()=>{const y=await W();if(I)return x?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),u(O,{...y,timeout:N});else{let E;try{E=(await xc({...y,timeout:N})).toString()}catch(A){if(A?.statusCode===400)throw Object.assign(A,{message:"EC2 Metadata token request returned error"});else if(A.message==="TimeoutError"||[403,404,405].includes(A.statusCode))I=!0;return x?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),u(O,{...y,timeout:N})}return u(O,{...y,headers:{[M]:E},timeout:N})}}},xc=async(c)=>f({...c,path:Tc,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Oc=async(c)=>(await f({...c,path:k})).toString(),yc=async(c,I,x)=>{const T=JSON.parse((await f({...I,path:k+c})).toString());if(!D(T))throw new q.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:x.logger});return G(T)};export{Q as providerConfigFromInit,f as httpRequest,W as getInstanceMetadataEndpoint,oc as fromInstanceMetadata,zc as fromContainerMetadata,j as Endpoint,L as ENV_CMDS_RELATIVE_URI,Z as ENV_CMDS_FULL_URI,B as ENV_CMDS_AUTH_TOKEN,fc as DEFAULT_TIMEOUT,uc as DEFAULT_MAX_RETRIES};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var et=function(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)},F=function(t,e=!1){let s=[],i=0;for(;i<t.length;){let a=t[i],u=function(o){if(!e)throw new TypeError(o);s.push({type:"INVALID_CHAR",index:i,value:t[i++]})};if(a==="*"){s.push({type:"ASTERISK",index:i,value:t[i++]});continue}if(a==="+"||a==="?"){s.push({type:"OTHER_MODIFIER",index:i,value:t[i++]});continue}if(a==="\\"){s.push({type:"ESCAPED_CHAR",index:i++,value:t[i++]});continue}if(a==="{"){s.push({type:"OPEN",index:i,value:t[i++]});continue}if(a==="}"){s.push({type:"CLOSE",index:i,value:t[i++]});continue}if(a===":"){let o="",r=i+1;for(;r<t.length;){let h=t.substr(r,1);if(r===i+1&&Y.test(h)||r!==i+1&&tt.test(h)){o+=t[r++];continue}break}if(!o){u(`Missing parameter name at ${i}`);continue}s.push({type:"NAME",index:i,value:o}),i=r;continue}if(a==="("){let o=1,r="",h=i+1,n=!1;if(t[h]==="?"){u(`Pattern cannot start with "?" at ${h}`);continue}for(;h<t.length;){if(!et(t[h],!1)){u(`Invalid character '${t[h]}' at ${h}.`),n=!0;break}if(t[h]==="\\"){r+=t[h++]+t[h++];continue}if(t[h]===")"){if(o--,o===0){h++;break}}else if(t[h]==="("&&(o++,t[h+1]!=="?")){u(`Capturing groups are not allowed at ${h}`),n=!0;break}r+=t[h++]}if(n)continue;if(o){u(`Unbalanced pattern at ${i}`);continue}if(!r){u(`Missing pattern at ${i}`);continue}s.push({type:"REGEX",index:i,value:r}),i=h;continue}s.push({type:"CHAR",index:i,value:t[i++]})}return s.push({type:"END",index:i,value:""}),s},M=function(t,e={}){let s=F(t);e.delimiter??="/#?",e.prefixes??="./";let i=`[^${d(e.delimiter)}]+?`,a=[],u=0,o=0,r="",h=new Set,n=(p)=>{if(o<s.length&&s[o].type===p)return s[o++].value},f=()=>n("OTHER_MODIFIER")??n("ASTERISK"),w=(p)=>{let c=n(p);if(c!==void 0)return c;let{type:l,index:R}=s[o];throw new TypeError(`Unexpected ${l} at ${R}, expected ${p}`)},E=()=>{let p="",c;for(;c=n("CHAR")??n("ESCAPED_CHAR");)p+=c;return p},Q=(p)=>p,T=e.encodePart||Q,U="",O=(p)=>{U+=p},I=()=>{U.length&&(a.push(new P(3,"","",T(U),"",3)),U="")},_=(p,c,l,R,v)=>{let g=3;switch(v){case"?":g=1;break;case"*":g=0;break;case"+":g=2;break}if(!c&&!l&&g===3){O(p);return}if(I(),!c&&!l){if(!p)return;a.push(new P(3,"","",T(p),"",g));return}let m;l?l==="*"?m=D:m=l:m=i;let C=2;m===i?(C=1,m=""):m===D&&(C=0,m="");let b;if(c?b=c:l&&(b=u++),h.has(b))throw new TypeError(`Duplicate name '${b}'.`);h.add(b),a.push(new P(C,b,T(p),m,T(R),g))};for(;o<s.length;){let p=n("CHAR"),c=n("NAME"),l=n("REGEX");if(!c&&!l&&(l=n("ASTERISK")),c||l){let v=p??"";e.prefixes.indexOf(v)===-1&&(O(v),v=""),I();let g=f();_(v,c,l,"",g);continue}let R=p??n("ESCAPED_CHAR");if(R){O(R);continue}if(n("OPEN")){let v=E(),g=n("NAME"),m=n("REGEX");!g&&!m&&(m=n("ASTERISK"));let C=E();w("CLOSE");let b=f();_(v,g,m,C,b);continue}I(),w("END")}return a},d=function(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")},j=function(t){return t&&t.ignoreCase?"ui":"u"},st=function(t,e,s){return W(M(t,s),e,s)},k=function(t){switch(t){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}},W=function(t,e,s={}){s.delimiter??="/#?",s.prefixes??="./",s.sensitive??=!1,s.strict??=!1,s.end??=!0,s.start??=!0,s.endsWith="";let i=s.start?"^":"";for(let r of t){if(r.type===3){r.modifier===3?i+=d(r.value):i+=`(?:${d(r.value)})${k(r.modifier)}`;continue}e&&e.push(r.name);let h=`[^${d(s.delimiter)}]+?`,n=r.value;if(r.type===1?n=h:r.type===0&&(n=D),!r.prefix.length&&!r.suffix.length){r.modifier===3||r.modifier===1?i+=`(${n})${k(r.modifier)}`:i+=`((?:${n})${k(r.modifier)})`;continue}if(r.modifier===3||r.modifier===1){i+=`(?:${d(r.prefix)}(${n})${d(r.suffix)})`,i+=k(r.modifier);continue}i+=`(?:${d(r.prefix)}`,i+=`((?:${n})(?:`,i+=d(r.suffix),i+=d(r.prefix),i+=`(?:${n}))*)${d(r.suffix)})`,r.modifier===0&&(i+="?")}let a=`[${d(s.endsWith)}]|\$`,u=`[${d(s.delimiter)}]`;if(s.end)return s.strict||(i+=`${u}?`),s.endsWith.length?i+=`(?=${a})`:i+="$",new RegExp(i,j(s));s.strict||(i+=`(?:${u}(?=${a}))?`);let o=!1;if(t.length){let r=t[t.length-1];r.type===3&&r.modifier===3&&(o=s.delimiter.indexOf(r)>-1)}return o||(i+=`(?=${u}|${a})`),new RegExp(i,j(s))},nt=function(t,e){return t.length?t[0]==="/"?!0:!e||t.length<2?!1:(t[0]=="\\"||t[0]=="{")&&t[1]=="/":!1},G=function(t,e){return t.startsWith(e)?t.substring(e.length,t.length):t},ot=function(t,e){return t.endsWith(e)?t.substr(0,t.length-e.length):t},K=function(t){return!t||t.length<2?!1:t[0]==="["||(t[0]==="\\"||t[0]==="{")&&t[1]==="["},V=function(t){if(!t)return!0;for(let e of X)if(t.test(e))return!0;return!1},ht=function(t,e){if(t=G(t,"#"),e||t==="")return t;let s=new URL("https://example.com");return s.hash=t,s.hash?s.hash.substring(1,s.hash.length):""},at=function(t,e){if(t=G(t,"?"),e||t==="")return t;let s=new URL("https://example.com");return s.search=t,s.search?s.search.substring(1,s.search.length):""},ut=function(t,e){return e||t===""?t:K(t)?q(t):Z(t)},pt=function(t,e){if(e||t==="")return t;let s=new URL("https://example.com");return s.password=t,s.password},ct=function(t,e){if(e||t==="")return t;let s=new URL("https://example.com");return s.username=t,s.username},ft=function(t,e,s){if(s||t==="")return t;if(e&&!X.includes(e))return new URL(`${e}:${t}`).pathname;let i=t[0]=="/";return t=new URL(i?t:"/-"+t,"https://example.com").pathname,i||(t=t.substring(2,t.length)),t},lt=function(t,e,s){return z(e)===t&&(t=""),s||t===""?t:B(t)},mt=function(t,e){return t=ot(t,":"),e||t===""?t:N(t)},z=function(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}},N=function(t){if(t==="")return t;if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw new TypeError(`Invalid protocol '${t}'.`)},dt=function(t){if(t==="")return t;let e=new URL("https://example.com");return e.username=t,e.username},gt=function(t){if(t==="")return t;let e=new URL("https://example.com");return e.password=t,e.password},Z=function(t){if(t==="")return t;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t))throw new TypeError(`Invalid hostname '${t}'`);let e=new URL("https://example.com");return e.hostname=t,e.hostname},q=function(t){if(t==="")return t;if(/[^0-9a-fA-F[\]:]/g.test(t))throw new TypeError(`Invalid IPv6 hostname '${t}'`);return t.toLowerCase()},B=function(t){if(t===""||/^[0-9]*$/.test(t)&&parseInt(t)<=65535)return t;throw new TypeError(`Invalid port '${t}'.`)},wt=function(t){if(t==="")return t;let e=new URL("https://example.com");return e.pathname=t[0]!=="/"?"/-"+t:t,t[0]!=="/"?e.pathname.substring(2,e.pathname.length):e.pathname},yt=function(t){return t===""?t:new URL(`data:${t}`).pathname},vt=function(t){if(t==="")return t;let e=new URL("https://example.com");return e.search=t,e.search.substring(1,e.search.length)},bt=function(t){if(t==="")return t;let e=new URL("https://example.com");return e.hash=t,e.hash.substring(1,e.hash.length)},H=function(t,e){if(typeof t!="string")throw new TypeError("parameter 1 is not of type 'string'.");let s=new URL(t,e);return{protocol:s.protocol.substring(0,s.protocol.length-1),username:s.username,password:s.password,hostname:s.hostname,port:s.port,pathname:s.pathname,search:s.search!==""?s.search.substring(1,s.search.length):void 0,hash:s.hash!==""?s.hash.substring(1,s.hash.length):void 0}},y=function(t,e){return e?A(t):t},L=function(t,e,s){let i;if(typeof e.baseURL=="string")try{i=new URL(e.baseURL),e.protocol===void 0&&(t.protocol=y(i.protocol.substring(0,i.protocol.length-1),s)),!s&&e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.username===void 0&&(t.username=y(i.username,s)),!s&&e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.username===void 0&&e.password===void 0&&(t.password=y(i.password,s)),e.protocol===void 0&&e.hostname===void 0&&(t.hostname=y(i.hostname,s)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&(t.port=y(i.port,s)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&(t.pathname=y(i.pathname,s)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&e.search===void 0&&(t.search=y(i.search.substring(1,i.search.length),s)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&e.search===void 0&&e.hash===void 0&&(t.hash=y(i.hash.substring(1,i.hash.length),s))}catch{throw new TypeError(`invalid baseURL '${e.baseURL}'.`)}if(typeof e.protocol=="string"&&(t.protocol=mt(e.protocol,s)),typeof e.username=="string"&&(t.username=ct(e.username,s)),typeof e.password=="string"&&(t.password=pt(e.password,s)),typeof e.hostname=="string"&&(t.hostname=ut(e.hostname,s)),typeof e.port=="string"&&(t.port=lt(e.port,t.protocol,s)),typeof e.pathname=="string"){if(t.pathname=e.pathname,i&&!nt(t.pathname,s)){let a=i.pathname.lastIndexOf("/");a>=0&&(t.pathname=y(i.pathname.substring(0,a+1),s)+t.pathname)}t.pathname=ft(t.pathname,t.protocol,s)}return typeof e.search=="string"&&(t.search=at(e.search,s)),typeof e.hash=="string"&&(t.hash=ht(e.hash,s)),t},A=function(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")},$t=function(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")},Et=function(t,e){e.delimiter??="/#?",e.prefixes??="./",e.sensitive??=!1,e.strict??=!1,e.end??=!0,e.start??=!0,e.endsWith="";let s=".*",i=`[^${$t(e.delimiter)}]+?`,a=/[$_\u200C\u200D\p{ID_Continue}]/u,u="";for(let o=0;o<t.length;++o){let r=t[o];if(r.type===3){if(r.modifier===3){u+=A(r.value);continue}u+=`{${A(r.value)}}${k(r.modifier)}`;continue}let h=r.hasCustomName(),n=!!r.suffix.length||!!r.prefix.length&&(r.prefix.length!==1||!e.prefixes.includes(r.prefix)),f=o>0?t[o-1]:null,w=o<t.length-1?t[o+1]:null;if(!n&&h&&r.type===1&&r.modifier===3&&w&&!w.prefix.length&&!w.suffix.length)if(w.type===3){let E=w.value.length>0?w.value[0]:"";n=a.test(E)}else n=!w.hasCustomName();if(!n&&!r.prefix.length&&f&&f.type===3){let E=f.value[f.value.length-1];n=e.prefixes.includes(E)}n&&(u+="{"),u+=A(r.prefix),h&&(u+=`:${r.name}`),r.type===2?u+=`(${r.value})`:r.type===1?h||(u+=`(${i})`):r.type===0&&(!h&&(!f||f.type===3||f.modifier!==3||n||r.prefix!=="")?u+="*":u+=`(${s})`),r.type===1&&h&&r.suffix.length&&a.test(r.suffix[0])&&(u+="\\"),u+=A(r.suffix),n&&(u+="}"),r.modifier!==3&&(u+=k(r.modifier))}return u},P=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(t,e,s,i,a,u){this.type=t,this.name=e,this.prefix=s,this.value=i,this.suffix=a,this.modifier=u}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},Y=/[$_\p{ID_Start}]/u,tt=/[$_\u200C\u200D\p{ID_Continue}]/u,D=".*",$={delimiter:"",prefixes:"",sensitive:!0,strict:!0},rt={delimiter:".",prefixes:"",sensitive:!0,strict:!0},it={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0},X=["ftp","file","http","https","ws","wss"],xt=class{#n;#r=[];#e={};#t=0;#i=1;#u=0;#h=0;#l=0;#m=0;#d=!1;constructor(t){this.#n=t}get result(){return this.#e}parse(){for(this.#r=F(this.#n,!0);this.#t<this.#r.length;this.#t+=this.#i){if(this.#i=1,this.#r[this.#t].type==="END"){if(this.#h===0){this.#v(),this.#p()?this.#s(9,1):this.#c()?this.#s(8,1):this.#s(7,0);continue}else if(this.#h===2){this.#f(5);continue}this.#s(10,0);break}if(this.#l>0)if(this.#C())this.#l-=1;else continue;if(this.#k()){this.#l+=1;continue}switch(this.#h){case 0:this.#b()&&this.#f(1);break;case 1:if(this.#b()){this.#P();let t=7,e=1;this.#$()?(t=2,e=3):this.#d&&(t=2),this.#s(t,e)}break;case 2:this.#w()?this.#f(3):(this.#y()||this.#c()||this.#p())&&this.#f(5);break;case 3:this.#E()?this.#s(4,1):this.#w()&&this.#s(5,1);break;case 4:this.#w()&&this.#s(5,1);break;case 5:this.#L()?this.#m+=1:this.#A()&&(this.#m-=1),this.#R()&&!this.#m?this.#s(6,1):this.#y()?this.#s(7,0):this.#c()?this.#s(8,1):this.#p()&&this.#s(9,1);break;case 6:this.#y()?this.#s(7,0):this.#c()?this.#s(8,1):this.#p()&&this.#s(9,1);break;case 7:this.#c()?this.#s(8,1):this.#p()&&this.#s(9,1);break;case 8:this.#p()&&this.#s(9,1);break;case 9:break;case 10:break}}this.#e.hostname!==void 0&&this.#e.port===void 0&&(this.#e.port="")}#s(t,e){switch(this.#h){case 0:break;case 1:this.#e.protocol=this.#a();break;case 2:break;case 3:this.#e.username=this.#a();break;case 4:this.#e.password=this.#a();break;case 5:this.#e.hostname=this.#a();break;case 6:this.#e.port=this.#a();break;case 7:this.#e.pathname=this.#a();break;case 8:this.#e.search=this.#a();break;case 9:this.#e.hash=this.#a();break;case 10:break}this.#h!==0&&t!==10&&([1,2,3,4].includes(this.#h)&&[6,7,8,9].includes(t)&&(this.#e.hostname??=""),[1,2,3,4,5,6].includes(this.#h)&&[8,9].includes(t)&&(this.#e.pathname??=this.#d?"/":""),[1,2,3,4,5,6,7].includes(this.#h)&&t===9&&(this.#e.search??="")),this.#x(t,e)}#x(t,e){this.#h=t,this.#u=this.#t+e,this.#t+=e,this.#i=0}#v(){this.#t=this.#u,this.#i=0}#f(t){this.#v(),this.#h=t}#g(t){return t<0&&(t=this.#r.length-t),t<this.#r.length?this.#r[t]:this.#r[this.#r.length-1]}#o(t,e){let s=this.#g(t);return s.value===e&&(s.type==="CHAR"||s.type==="ESCAPED_CHAR"||s.type==="INVALID_CHAR")}#b(){return this.#o(this.#t,":")}#$(){return this.#o(this.#t+1,"/")&&this.#o(this.#t+2,"/")}#w(){return this.#o(this.#t,"@")}#E(){return this.#o(this.#t,":")}#R(){return this.#o(this.#t,":")}#y(){return this.#o(this.#t,"/")}#c(){if(this.#o(this.#t,"?"))return!0;if(this.#r[this.#t].value!=="?")return!1;let t=this.#g(this.#t-1);return t.type!=="NAME"&&t.type!=="REGEX"&&t.type!=="CLOSE"&&t.type!=="ASTERISK"}#p(){return this.#o(this.#t,"#")}#k(){return this.#r[this.#t].type=="OPEN"}#C(){return this.#r[this.#t].type=="CLOSE"}#L(){return this.#o(this.#t,"[")}#A(){return this.#o(this.#t,"]")}#a(){let t=this.#r[this.#t],e=this.#g(this.#u).index;return this.#n.substring(e,t.index)}#P(){let t={};Object.assign(t,$),t.encodePart=N;let e=st(this.#a(),void 0,t);this.#d=V(e)}},S=["protocol","username","password","hostname","port","pathname","search","hash"],x="*",J=class{#n;#r={};#e={};#t={};#i={};#u=!1;constructor(t={},e,s){try{let i;if(typeof e=="string"?i=e:s=e,typeof t=="string"){let r=new xt(t);if(r.parse(),t=r.result,i===void 0&&typeof t.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=i}else{if(!t||typeof t!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(i)throw new TypeError("parameter 1 is not of type 'string'.")}typeof s>"u"&&(s={ignoreCase:!1});let a={ignoreCase:s.ignoreCase===!0},u={pathname:x,protocol:x,username:x,password:x,hostname:x,port:x,search:x,hash:x};this.#n=L(u,t,!0),z(this.#n.protocol)===this.#n.port&&(this.#n.port="");let o;for(o of S){if(!(o in this.#n))continue;let r={},h=this.#n[o];switch(this.#e[o]=[],o){case"protocol":Object.assign(r,$),r.encodePart=N;break;case"username":Object.assign(r,$),r.encodePart=dt;break;case"password":Object.assign(r,$),r.encodePart=gt;break;case"hostname":Object.assign(r,rt),K(h)?r.encodePart=q:r.encodePart=Z;break;case"port":Object.assign(r,$),r.encodePart=B;break;case"pathname":V(this.#r.protocol)?(Object.assign(r,it,a),r.encodePart=wt):(Object.assign(r,$,a),r.encodePart=yt);break;case"search":Object.assign(r,$,a),r.encodePart=vt;break;case"hash":Object.assign(r,$,a),r.encodePart=bt;break}try{this.#i[o]=M(h,r),this.#r[o]=W(this.#i[o],this.#e[o],r),this.#t[o]=Et(this.#i[o],r),this.#u=this.#u||this.#i[o].some((n)=>n.type===2)}catch{throw new TypeError(`invalid ${o} pattern '${this.#n[o]}'.`)}}}catch(i){throw new TypeError(`Failed to construct 'URLPattern': ${i.message}`)}}test(t={},e){let s={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{typeof t=="object"?s=L(s,t,!1):s=L(s,H(t,e),!1)}catch{return!1}let i;for(i of S)if(!this.#r[i].exec(s[i]))return!1;return!0}exec(t={},e){let s={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&e)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{typeof t=="object"?s=L(s,t,!1):s=L(s,H(t,e),!1)}catch{return null}let i={};e?i.inputs=[t,e]:i.inputs=[t];let a;for(a of S){let u=this.#r[a].exec(s[a]);if(!u)return null;let o={};for(let[r,h]of this.#e[a].entries())if(typeof h=="string"||typeof h=="number"){let n=u[r+1];o[h]=n}i[a]={input:s[a]??"",groups:o}}return i}static compareComponent(t,e,s){let i=(r,h)=>{for(let n of["type","modifier","prefix","value","suffix"]){if(r[n]<h[n])return-1;if(r[n]===h[n])continue;return 1}return 0},a=new P(3,"","","","",3),u=new P(0,"","","","",3),o=(r,h)=>{let n=0;for(;n<Math.min(r.length,h.length);++n){let f=i(r[n],h[n]);if(f)return f}return r.length===h.length?0:i(r[n]??a,h[n]??a)};return!e.#t[t]&&!s.#t[t]?0:e.#t[t]&&!s.#t[t]?o(e.#i[t],[u]):!e.#t[t]&&s.#t[t]?o([u],s.#i[t]):o(e.#i[t],s.#i[t])}get protocol(){return this.#t.protocol}get username(){return this.#t.username}get password(){return this.#t.password}get hostname(){return this.#t.hostname}get port(){return this.#t.port}get pathname(){return this.#t.pathname}get search(){return this.#t.search}get hash(){return this.#t.hash}get hasRegExpGroups(){return this.#u}};if(!globalThis.URLPattern)globalThis.URLPattern=J;function Tt(t){const e=t.toString(),s=new Bun.CryptoHasher("sha1");return s.update(e),s.digest("hex")}
|
|
2
|
-
export{J as
|
|
2
|
+
export{J as w,Tt as x};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{B as D} from"./chunk-e3d242546d1a2927.js";var S=D((y,w)=>{var{defineProperty:G,getOwnPropertyDescriptor:v,getOwnPropertyNames:O}=Object,x=Object.prototype.hasOwnProperty,Q=(b,j)=>G(b,"name",{value:j,configurable:!0}),U=(b,j)=>{for(var z in j)G(b,z,{get:j[z],enumerable:!0})},K=(b,j,z,V)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let B of O(j))if(!x.call(b,B)&&B!==z)G(b,B,{get:()=>j[B],enumerable:!(V=v(j,B))||V.enumerable})}return b},q=(b)=>K(G({},"__esModule",{value:!0}),b),W={};U(W,{AlgorithmId:()=>J,EndpointURLScheme:()=>X,FieldPosition:()=>M,HttpApiKeyAuthLocation:()=>$,HttpAuthLocation:()=>Z,IniSectionType:()=>N,RequestHandlerProtocol:()=>Y,SMITHY_CONTEXT_KEY:()=>R,getDefaultClientConfiguration:()=>T,resolveDefaultRuntimeConfig:()=>k});w.exports=q(W);var Z=((b)=>{return b.HEADER="header",b.QUERY="query",b})(Z||{}),$=((b)=>{return b.HEADER="header",b.QUERY="query",b})($||{}),X=((b)=>{return b.HTTP="http",b.HTTPS="https",b})(X||{}),J=((b)=>{return b.MD5="md5",b.CRC32="crc32",b.CRC32C="crc32c",b.SHA1="sha1",b.SHA256="sha256",b})(J||{}),E=Q((b)=>{const j=[];if(b.sha256!==void 0)j.push({algorithmId:()=>"sha256",checksumConstructor:()=>b.sha256});if(b.md5!=null)j.push({algorithmId:()=>"md5",checksumConstructor:()=>b.md5});return{_checksumAlgorithms:j,addChecksumAlgorithm(z){this._checksumAlgorithms.push(z)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),F=Q((b)=>{const j={};return b.checksumAlgorithms().forEach((z)=>{j[z.algorithmId()]=z.checksumConstructor()}),j},"resolveChecksumRuntimeConfig"),T=Q((b)=>{return{...E(b)}},"getDefaultClientConfiguration"),k=Q((b)=>{return{...F(b)}},"resolveDefaultRuntimeConfig"),M=((b)=>{return b[b.HEADER=0]="HEADER",b[b.TRAILER=1]="TRAILER",b})(M||{}),R="__smithy_context",N=((b)=>{return b.PROFILE="profile",b.SSO_SESSION="sso-session",b.SERVICES="services",b})(N||{}),Y=((b)=>{return b.HTTP_0_9="http/0.9",b.HTTP_1_0="http/1.0",b.TDS_8_0="tds/8.0",b})(Y||{})});
|
|
2
|
-
export{S as
|
|
2
|
+
export{S as rb};
|