gemi 0.4.64 → 0.4.66

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.
Files changed (114) hide show
  1. package/dist/app/App.d.ts.map +1 -1
  2. package/dist/app/index.js +64 -64
  3. package/dist/auth/AuthenticationServiceProvider.d.ts.map +1 -1
  4. package/dist/bin/index.js +7 -6
  5. package/dist/chunk-02118fc60206588d.js +2 -0
  6. package/dist/chunk-03c8e645c994d40a.js +1 -1
  7. package/dist/chunk-0de36a7e51fbd11b.js +9 -0
  8. package/dist/chunk-0e125593337a68aa.js +18 -0
  9. package/dist/chunk-136896e8038083a1.js +2 -0
  10. package/dist/chunk-14e60554a2e78f4a.js +2 -0
  11. package/dist/chunk-1900e90c372bb1d6.js +1 -1
  12. package/dist/chunk-1b3b7c2c9ae041ca.js +2 -0
  13. package/dist/chunk-1d6e287ca9c14fef.js +1 -1
  14. package/dist/chunk-21b1f7ac5f75cd26.js +2 -0
  15. package/dist/chunk-25dd80c6d9144f89.js +1 -1
  16. package/dist/chunk-285299d784985340.js +3 -0
  17. package/dist/chunk-2a0e8565f874d787.js +18 -0
  18. package/dist/chunk-2a5b4dfab2e26e21.js +1 -0
  19. package/dist/chunk-30f854fb2ba73268.js +2 -0
  20. package/dist/chunk-361f806684fe532e.js +6 -0
  21. package/dist/chunk-3f1eaa4b49aa9a15.js +3 -0
  22. package/dist/chunk-42aa6e3d42149620.js +1 -1
  23. package/dist/chunk-432bbd1d38ff3b52.js +2 -0
  24. package/dist/chunk-543013123141745c.js +1 -1
  25. package/dist/chunk-5fd67245740e3908.js +1 -1
  26. package/dist/chunk-65cd4d128b79bd93.js +2 -0
  27. package/dist/chunk-699957e6eb705a81.js +2 -0
  28. package/dist/chunk-6c345dba15e1c3f2.js +2 -0
  29. package/dist/chunk-6f78f2a54491595d.js +2 -0
  30. package/dist/chunk-733688c7851fffd1.js +2 -0
  31. package/dist/chunk-7898dd7609f163e8.js +2 -0
  32. package/dist/chunk-78ab7bcbe6104c5f.js +2 -0
  33. package/dist/chunk-7dfb17814922ade0.js +2 -0
  34. package/dist/chunk-82f72dfc6e27be04.js +1 -0
  35. package/dist/chunk-8884e59809021f5f.js +2 -0
  36. package/dist/chunk-8b40d6a498f8bf81.js +2 -0
  37. package/dist/chunk-8c8c8fd3646b76a1.js +2 -0
  38. package/dist/chunk-a004fce37a0f5a65.js +2 -0
  39. package/dist/chunk-a14516ac5e6f78aa.js +1 -0
  40. package/dist/chunk-a1efc60864e65ef2.js +1 -0
  41. package/dist/chunk-a35eb04f0c7c9944.js +2 -0
  42. package/dist/chunk-a4b231bf6d911e01.js +2 -0
  43. package/dist/chunk-a885dc5561caa8e0.js +3 -0
  44. package/dist/chunk-b13cfa16a8a18324.js +3 -0
  45. package/dist/chunk-b3e27ec4b56a20ac.js +2 -0
  46. package/dist/chunk-b7c4dc1136fcaeb7.js +2 -0
  47. package/dist/chunk-bdc34785363e3f34.js +2 -0
  48. package/dist/chunk-bffb8d677e1424a9.js +6 -0
  49. package/dist/chunk-c609d06153ed09ce.js +1 -1
  50. package/dist/chunk-c6d988f5928a4df1.js +1 -1
  51. package/dist/chunk-c7e2acfd5087fb30.js +2 -0
  52. package/dist/chunk-cf7dde2ab1be3a3c.js +1 -0
  53. package/dist/chunk-cf8b1c7a4e9fc32d.js +18 -0
  54. package/dist/chunk-d03b02d5f8128f13.js +2 -0
  55. package/dist/chunk-d27588325ae2c0f3.js +2 -0
  56. package/dist/chunk-d37757ffee07b05f.js +6 -0
  57. package/dist/chunk-d3b4a3c778c23705.js +2 -0
  58. package/dist/chunk-d3e039d010842a3f.js +2 -0
  59. package/dist/chunk-d7c78cd1ab7dc7ed.js +2 -0
  60. package/dist/chunk-d850d83873a89e2b.js +18 -0
  61. package/dist/chunk-d93a6531661d56b5.js +9 -0
  62. package/dist/chunk-d950bbcb684a11ef.js +2 -0
  63. package/dist/chunk-dac0e2ef13060d02.js +1 -0
  64. package/dist/chunk-dac9276e506d125d.js +2 -0
  65. package/dist/chunk-db2270bbca7854fe.js +2 -0
  66. package/dist/chunk-e06fbc8e70a88f07.js +2 -0
  67. package/dist/chunk-e8159722d49ad044.js +1 -1
  68. package/dist/chunk-ed589d4e4c575de7.js +1 -1
  69. package/dist/chunk-eea1d6f60a6875d5.js +2 -0
  70. package/dist/chunk-eeb3b193701aec43.js +1 -0
  71. package/dist/chunk-f1dfc76a05462dde.js +2 -0
  72. package/dist/chunk-f25e3644c98f64a7.js +2 -0
  73. package/dist/chunk-f404a785b581d029.js +2 -0
  74. package/dist/chunk-f5a531a49e7591bd.js +2 -0
  75. package/dist/chunk-f69bcbd7998553cb.js +2 -0
  76. package/dist/chunk-f8ad65b3a07ce3c4.js +6 -0
  77. package/dist/chunk-ff1bbce70d726bc6.js +9 -0
  78. package/dist/client/ClientRouterContext.d.ts +0 -1
  79. package/dist/client/ClientRouterContext.d.ts.map +1 -1
  80. package/dist/client/HttpReload.d.ts +2 -0
  81. package/dist/client/HttpReload.d.ts.map +1 -0
  82. package/dist/client/Mutation.d.ts +5 -5
  83. package/dist/client/Mutation.d.ts.map +1 -1
  84. package/dist/client/ProgressManager.d.ts +1 -1
  85. package/dist/client/index.d.ts +2 -1
  86. package/dist/client/index.d.ts.map +1 -1
  87. package/dist/client/index.js +186 -158
  88. package/dist/client/types.d.ts +7 -6
  89. package/dist/client/types.d.ts.map +1 -1
  90. package/dist/client/useMutation.d.ts +11 -2
  91. package/dist/client/useMutation.d.ts.map +1 -1
  92. package/dist/client/useNavigate.d.ts.map +1 -1
  93. package/dist/client/useParams.d.ts +2 -0
  94. package/dist/client/useParams.d.ts.map +1 -0
  95. package/dist/facades/Redirect.d.ts +2 -1
  96. package/dist/facades/Redirect.d.ts.map +1 -1
  97. package/dist/facades/index.js +1 -1
  98. package/dist/http/ApiRouter.d.ts.map +1 -1
  99. package/dist/http/HttpRequest.d.ts +1 -1
  100. package/dist/http/HttpRequest.d.ts.map +1 -1
  101. package/dist/http/I18nServiceContainer.d.ts +2 -5
  102. package/dist/http/I18nServiceContainer.d.ts.map +1 -1
  103. package/dist/http/ViewRouter.d.ts.map +1 -1
  104. package/dist/http/index.js +1 -1
  105. package/dist/kernel/index.js +2 -2
  106. package/dist/server/index.js +3 -3
  107. package/dist/storage/index.js +1 -10
  108. package/dist/utils/type.d.ts +1 -1
  109. package/dist/utils/type.d.ts.map +1 -1
  110. package/dist/vite/index-M61-SALR.mjs +20030 -0
  111. package/dist/vite/index.mjs +4 -0
  112. package/dist/vite/typescript-puyfmcra.mjs +14089 -0
  113. package/package.json +7 -10
  114. package/dist/vite/index.js +0 -2
@@ -0,0 +1,2 @@
1
+ import{z as N} from"./chunk-7ce930fe69575c87.js";import{E as _} from"./chunk-d7c78cd1ab7dc7ed.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 A,B$ as B,h4 as C,o6 as D};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-74ab9c225bfe0eaa.js";import{y as A} from"./chunk-7ce930fe69575c87.js";import"./chunk-d7c78cd1ab7dc7ed.js";import{F as w0,G as G0,H as W0,J as Nl,K as F0,O as Wl,P as Tl,R as Al,S as Rl,V as sl,W as _l,ba as K,ca as Hh,da as o0,ha as T0,ja as S,la as u,oa as A0,qa as $0,ra as T,sa as R0,ta as bl,ua as fl,va as I0,wa as H0,xa as eh} from"./chunk-b13cfa16a8a18324.js";import{Da as D0,Ea as E0,Fa as k0,Ga as K0,Ha as Sd,Ka as Qh,La as B0,Ma as Pl,Na as vl,Oa as Ml,Pa as q0,Qa as Cl,Ra as Ol,Sa as gl,Ta as xl,Ua as y0,Va as Q0,Xa as F,Ya as B,Za as X0,_a as il,ab as cl,bb as Y0,cb as el,db as Z0,eb as dh,fb as pl,gb as nl,hb as ol,ib as ul,jb as S0,kb as m0} from"./chunk-0e125593337a68aa.js";import"./chunk-c7e2acfd5087fb30.js";import{mb as f,nb as Ll} from"./chunk-ed589d4e4c575de7.js";import"./chunk-2db6c9bb69bb27aa.js";import{ub as Xh} from"./chunk-1d6e287ca9c14fef.js";import"./chunk-82f72dfc6e27be04.js";var C=A(Qh(),1);var wl=A(dh(),1),wh=A(Sd(),1);var md=function(h){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:h.region},propertiesExtractor:(d,l)=>({signingProperties:{config:d,context:l}})}},dl=function(h){return{schemeId:"smithy.api#noAuth"}},Gl=async(h,d,l)=>{return{operation:wh.getSmithyContext(d).operation,region:await wh.normalizeProvider(h.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},Il=(h)=>{const d=[];switch(h.operation){case"AssumeRoleWithSAML":{d.push(dl(h));break}case"AssumeRoleWithWebIdentity":{d.push(dl(h));break}default:d.push(md(h))}return d},Jd=(h)=>({...h,stsClientCtor:R}),Hl=(h)=>{const d=Jd(h);return{...wl.resolveAwsSdkSigV4Config(d)}};var Sl=(h)=>{return{...h,useDualstackEndpoint:h.useDualstackEndpoint??!1,useFipsEndpoint:h.useFipsEndpoint??!1,useGlobalEndpoint:h.useGlobalEndpoint??!1,defaultSigningName:"sts"}},D={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var ml={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.629.0","@aws-sdk/core":"3.629.0","@aws-sdk/credential-provider-node":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}};var Gh=A(dh(),1);var tl=A(Qh(),1);var jl=A(dh(),1),al=A(Qh(),1);var Jl={["required"]:!1,["type"]:"String"},yh={["required"]:!0,default:!1,["type"]:"Boolean"},Ql={["ref"]:"Endpoint"},Dl={["fn"]:"isSet",["argv"]:[{["ref"]:"Region"}]},J={["ref"]:"Region"},El={["fn"]:"aws.partition",["argv"]:[J],assign:"PartitionResult"},Xl={["ref"]:"UseFIPS"},Yl={["ref"]:"UseDualStack"},E={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},X={},kl={conditions:[{["fn"]:"stringEquals",["argv"]:[J,"aws-global"]}],["endpoint"]:E,["type"]:"endpoint"},Zl={["fn"]:"booleanEquals",["argv"]:[Xl,!0]},$l={["fn"]:"booleanEquals",["argv"]:[Yl,!0]},Kl={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Ul={["ref"]:"PartitionResult"},Fl={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Ul,"supportsDualStack"]}]},Bl=[{["fn"]:"isSet",["argv"]:[Ql]}],ql=[Zl],yl=[$l],Ed={version:"1.0",parameters:{Region:Jl,UseDualStack:yh,UseFIPS:yh,Endpoint:Jl,UseGlobalEndpoint:yh},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:Bl},Dl,El,{["fn"]:"booleanEquals",["argv"]:[Xl,!1]},{["fn"]:"booleanEquals",["argv"]:[Yl,!1]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-northeast-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-south-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-southeast-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ap-southeast-2"]}],endpoint:E,["type"]:"endpoint"},kl,{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"ca-central-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-central-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-north-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-west-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-west-2"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"eu-west-3"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"sa-east-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-east-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-east-2"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-west-1"]}],endpoint:E,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[J,"us-west-2"]}],endpoint:E,["type"]:"endpoint"},{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:X},["type"]:"endpoint"}],["type"]:"tree"},{conditions:Bl,rules:[{conditions:ql,error:"Invalid Configuration: FIPS and custom endpoint are not supported",["type"]:"error"},{conditions:yl,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",["type"]:"error"},{endpoint:{url:Ql,properties:X,headers:X},["type"]:"endpoint"}],["type"]:"tree"},{conditions:[Dl],rules:[{conditions:[El],rules:[{conditions:[Zl,$l],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Kl]},Fl],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:X,headers:X},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",["type"]:"error"}],["type"]:"tree"},{conditions:ql,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Kl,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Ul,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:X,headers:X},["type"]:"endpoint"},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:X,headers:X},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",["type"]:"error"}],["type"]:"tree"},{conditions:yl,rules:[{conditions:[Fl],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:X,headers:X},["type"]:"endpoint"}],["type"]:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",["type"]:"error"}],["type"]:"tree"},kl,{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:X,headers:X},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Configuration: Missing Region",["type"]:"error"}]},Vl=Ed;var zl=(h,d={})=>{return vl(Vl,{endpointParams:h,logger:d.logger})};Pl.aws=Ml;var rl=(h)=>{return{apiVersion:"2011-06-15",base64Decoder:h?.base64Decoder??Wl,base64Encoder:h?.base64Encoder??Rl,disableHostPrefix:h?.disableHostPrefix??!1,endpointProvider:h?.endpointProvider??zl,extensions:h?.extensions??[],httpAuthSchemeProvider:h?.httpAuthSchemeProvider??Il,httpAuthSchemes:h?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(d)=>d.getIdentityProvider("aws.auth#sigv4"),signer:new jl.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(d)=>d.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new al.NoAuthSigner}],logger:h?.logger??new Nl,serviceId:h?.serviceId??"STS",urlParser:h?.urlParser??Ll,utf8Decoder:h?.utf8Decoder??Tl,utf8Encoder:h?.utf8Encoder??Al}};var h0=(h)=>{fl(process.version);const d=ul(h),l=()=>d().then(bl),w=rl(h);return Gh.emitWarningIfUnsupportedVersion(process.version),{...w,...h,runtime:"node",defaultsMode:d,bodyLengthChecker:h?.bodyLengthChecker??ol,credentialDefaultProvider:h?.credentialDefaultProvider??Xh,defaultUserAgentProvider:h?.defaultUserAgentProvider??pl({serviceId:w.serviceId,clientVersion:ml.version}),httpAuthSchemes:h?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(G)=>G.getIdentityProvider("aws.auth#sigv4")||(async(H)=>await Xh(H?.__config||{})()),signer:new Gh.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(G)=>G.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new tl.NoAuthSigner}],maxAttempts:h?.maxAttempts??f(cl),region:h?.region??f(gl,xl),requestHandler:sl.create(h?.requestHandler??l),retryMode:h?.retryMode??f({...el,default:async()=>(await l()).retryMode||il}),sha256:h?.sha256??nl.bind(null,"sha256"),streamCollector:h?.streamCollector??_l,useDualstackEndpoint:h?.useDualstackEndpoint??f(Cl),useFipsEndpoint:h?.useFipsEndpoint??f(Ol)}};var l0=(h)=>{const d=h.httpAuthSchemes;let{httpAuthSchemeProvider:l,credentials:w}=h;return{setHttpAuthScheme(G){const H=d.findIndex((I)=>I.schemeId===G.schemeId);if(H===-1)d.push(G);else d.splice(H,1,G)},httpAuthSchemes(){return d},setHttpAuthSchemeProvider(G){l=G},httpAuthSchemeProvider(){return l},setCredentials(G){w=G},credentials(){return w}}},d0=(h)=>{return{httpAuthSchemes:h.httpAuthSchemes(),httpAuthSchemeProvider:h.httpAuthSchemeProvider(),credentials:h.credentials()}};var Ih=(h)=>h,J0=(h,d)=>{const l={...Ih(S0(h)),...Ih(I0(h)),...Ih(w0(h)),...Ih(l0(h))};return d.forEach((w)=>w.configure(l)),{...h,...m0(l),...H0(l),...G0(l),...d0(l)}};class R extends F0{constructor(...[h]){const d=h0(h||{}),l=Sl(d),w=B0(l),G=Y0(w),H=y0(G),I=D0(H),Q=X0(I),v=Hl(Q),M=J0(v,h?.extensions||[]);super(M);this.config=M,this.middlewareStack.use(q0(this.config)),this.middlewareStack.use(Z0(this.config)),this.middlewareStack.use(Q0(this.config)),this.middlewareStack.use(E0(this.config)),this.middlewareStack.use(k0(this.config)),this.middlewareStack.use(K0(this.config)),this.middlewareStack.use(C.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Gl,identityProviderConfigProvider:async(n)=>new C.DefaultIdentityProviderConfig({"aws.auth#sigv4":n.credentials})})),this.middlewareStack.use(C.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class Y extends $0{constructor(h){super(h);Object.setPrototypeOf(this,Y.prototype)}}class Sh extends Y{constructor(h){super({name:"ExpiredTokenException",$fault:"client",...h});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,Sh.prototype)}}class mh extends Y{constructor(h){super({name:"MalformedPolicyDocumentException",$fault:"client",...h});this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,mh.prototype)}}class Jh extends Y{constructor(h){super({name:"PackedPolicyTooLargeException",$fault:"client",...h});this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,Jh.prototype)}}class Dh extends Y{constructor(h){super({name:"RegionDisabledException",$fault:"client",...h});this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,Dh.prototype)}}class Eh extends Y{constructor(h){super({name:"IDPRejectedClaimException",$fault:"client",...h});this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,Eh.prototype)}}class kh extends Y{constructor(h){super({name:"InvalidIdentityTokenException",$fault:"client",...h});this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,kh.prototype)}}class Kh extends Y{constructor(h){super({name:"IDPCommunicationErrorException",$fault:"client",...h});this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,Kh.prototype)}}class Fh extends Y{constructor(h){super({name:"InvalidAuthorizationMessageException",$fault:"client",...h});this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,Fh.prototype)}}var o=(h)=>({...h,...h.SecretAccessKey&&{SecretAccessKey:Hh}}),U0=(h)=>({...h,...h.Credentials&&{Credentials:o(h.Credentials)}}),V0=(h)=>({...h,...h.SAMLAssertion&&{SAMLAssertion:Hh}}),P0=(h)=>({...h,...h.Credentials&&{Credentials:o(h.Credentials)}}),v0=(h)=>({...h,...h.WebIdentityToken&&{WebIdentityToken:Hh}}),M0=(h)=>({...h,...h.Credentials&&{Credentials:o(h.Credentials)}}),z0=(h)=>({...h,...h.Credentials&&{Credentials:o(h.Credentials)}}),N0=(h)=>({...h,...h.Credentials&&{Credentials:o(h.Credentials)}});var P=A(dh(),1);var L0=async(h,d)=>{const l=a;let w;return w=b({...Yd(h,d),[s]:od,[_]:r}),j(d,l,"/",void 0,w)},j0=async(h,d)=>{const l=a;let w;return w=b({...Zd(h,d),[s]:ud,[_]:r}),j(d,l,"/",void 0,w)},a0=async(h,d)=>{const l=a;let w;return w=b({...$d(h,d),[s]:td,[_]:r}),j(d,l,"/",void 0,w)},r0=async(h,d)=>{const l=a;let w;return w=b({...Ud(h,d),[s]:hw,[_]:r}),j(d,l,"/",void 0,w)},s0=async(h,d)=>{const l=a;let w;return w=b({...Vd(h,d),[s]:lw,[_]:r}),j(d,l,"/",void 0,w)},_0=async(h,d)=>{const l=a;let w;return w=b({...Pd(h,d),[s]:dw,[_]:r}),j(d,l,"/",void 0,w)},b0=async(h,d)=>{const l=a;let w;return w=b({...vd(h,d),[s]:ww,[_]:r}),j(d,l,"/",void 0,w)},f0=async(h,d)=>{const l=a;let w;return w=b({...Md(h,d),[s]:Gw,[_]:r}),j(d,l,"/",void 0,w)},C0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=Rd(l.AssumeRoleResult,d),{$metadata:k(h),...w}},O0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=Ld(l.AssumeRoleWithSAMLResult,d),{$metadata:k(h),...w}},g0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=jd(l.AssumeRoleWithWebIdentityResult,d),{$metadata:k(h),...w}},x0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=ad(l.DecodeAuthorizationMessageResult,d),{$metadata:k(h),...w}},i0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=_d(l.GetAccessKeyInfoResult,d),{$metadata:k(h),...w}},c0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=bd(l.GetCallerIdentityResult,d),{$metadata:k(h),...w}},e0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=fd(l.GetFederationTokenResult,d),{$metadata:k(h),...w}},p0=async(h,d)=>{if(h.statusCode>=300)return L(h,d);const l=await P.parseXmlBody(h.body,d);let w={};return w=Cd(l.GetSessionTokenResult,d),{$metadata:k(h),...w}},L=async(h,d)=>{const l={...h,body:await P.parseXmlErrorBody(h.body,d)},w=Iw(h,l.body);switch(w){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await kd(l,d);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await yd(l,d);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Qd(l,d);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Xd(l,d);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Fd(l,d);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await qd(l,d);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Kd(l,d);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await Bd(l,d);default:const G=l.body;return nd({output:h,parsedBody:G.Error,errorCode:w})}},kd=async(h,d)=>{const l=h.body,w=rd(l.Error,d),G=new Sh({$metadata:k(h),...w});return T(G,l)},Kd=async(h,d)=>{const l=h.body,w=Od(l.Error,d),G=new Kh({$metadata:k(h),...w});return T(G,l)},Fd=async(h,d)=>{const l=h.body,w=gd(l.Error,d),G=new Eh({$metadata:k(h),...w});return T(G,l)},Bd=async(h,d)=>{const l=h.body,w=xd(l.Error,d),G=new Fh({$metadata:k(h),...w});return T(G,l)},qd=async(h,d)=>{const l=h.body,w=id(l.Error,d),G=new kh({$metadata:k(h),...w});return T(G,l)},yd=async(h,d)=>{const l=h.body,w=cd(l.Error,d),G=new mh({$metadata:k(h),...w});return T(G,l)},Qd=async(h,d)=>{const l=h.body,w=ed(l.Error,d),G=new Jh({$metadata:k(h),...w});return T(G,l)},Xd=async(h,d)=>{const l=h.body,w=pd(l.Error,d),G=new Dh({$metadata:k(h),...w});return T(G,l)},Yd=(h,d)=>{const l={};if(h[W]!=null)l[W]=h[W];if(h[i]!=null)l[i]=h[i];if(h[$]!=null){const w=Bh(h[$],d);if(h[$]?.length===0)l.PolicyArns=[];Object.entries(w).forEach(([G,H])=>{const I=`PolicyArns.${G}`;l[I]=H})}if(h[Z]!=null)l[Z]=h[Z];if(h[y]!=null)l[y]=h[y];if(h[e]!=null){const w=n0(h[e],d);if(h[e]?.length===0)l.Tags=[];Object.entries(w).forEach(([G,H])=>{const I=`Tags.${G}`;l[I]=H})}if(h[Oh]!=null){const w=Ad(h[Oh],d);if(h[Oh]?.length===0)l.TransitiveTagKeys=[];Object.entries(w).forEach(([G,H])=>{const I=`TransitiveTagKeys.${G}`;l[I]=H})}if(h[Vh]!=null)l[Vh]=h[Vh];if(h[c]!=null)l[c]=h[c];if(h[p]!=null)l[p]=h[p];if(h[V]!=null)l[V]=h[V];if(h[Lh]!=null){const w=Wd(h[Lh],d);if(h[Lh]?.length===0)l.ProvidedContexts=[];Object.entries(w).forEach(([G,H])=>{const I=`ProvidedContexts.${G}`;l[I]=H})}return l},Zd=(h,d)=>{const l={};if(h[W]!=null)l[W]=h[W];if(h[Ah]!=null)l[Ah]=h[Ah];if(h[_h]!=null)l[_h]=h[_h];if(h[$]!=null){const w=Bh(h[$],d);if(h[$]?.length===0)l.PolicyArns=[];Object.entries(w).forEach(([G,H])=>{const I=`PolicyArns.${G}`;l[I]=H})}if(h[Z]!=null)l[Z]=h[Z];if(h[y]!=null)l[y]=h[y];return l},$d=(h,d)=>{const l={};if(h[W]!=null)l[W]=h[W];if(h[i]!=null)l[i]=h[i];if(h[ih]!=null)l[ih]=h[ih];if(h[jh]!=null)l[jh]=h[jh];if(h[$]!=null){const w=Bh(h[$],d);if(h[$]?.length===0)l.PolicyArns=[];Object.entries(w).forEach(([G,H])=>{const I=`PolicyArns.${G}`;l[I]=H})}if(h[Z]!=null)l[Z]=h[Z];if(h[y]!=null)l[y]=h[y];return l},Ud=(h,d)=>{const l={};if(h[Ph]!=null)l[Ph]=h[Ph];return l},Vd=(h,d)=>{const l={};if(h[O]!=null)l[O]=h[O];return l},Pd=(h,d)=>{return{}},vd=(h,d)=>{const l={};if(h[Wh]!=null)l[Wh]=h[Wh];if(h[Z]!=null)l[Z]=h[Z];if(h[$]!=null){const w=Bh(h[$],d);if(h[$]?.length===0)l.PolicyArns=[];Object.entries(w).forEach(([G,H])=>{const I=`PolicyArns.${G}`;l[I]=H})}if(h[y]!=null)l[y]=h[y];if(h[e]!=null){const w=n0(h[e],d);if(h[e]?.length===0)l.Tags=[];Object.entries(w).forEach(([G,H])=>{const I=`Tags.${G}`;l[I]=H})}return l},Md=(h,d)=>{const l={};if(h[y]!=null)l[y]=h[y];if(h[c]!=null)l[c]=h[c];if(h[p]!=null)l[p]=h[p];return l},Bh=(h,d)=>{const l={};let w=1;for(let G of h){if(G===null)continue;const H=zd(G,d);Object.entries(H).forEach(([I,Q])=>{l[`member.${w}.${I}`]=Q}),w++}return l},zd=(h,d)=>{const l={};if(h[ch]!=null)l[ch]=h[ch];return l},Nd=(h,d)=>{const l={};if(h[Rh]!=null)l[Rh]=h[Rh];if(h[Zh]!=null)l[Zh]=h[Zh];return l},Wd=(h,d)=>{const l={};let w=1;for(let G of h){if(G===null)continue;const H=Nd(G,d);Object.entries(H).forEach(([I,Q])=>{l[`member.${w}.${I}`]=Q}),w++}return l},Td=(h,d)=>{const l={};if(h[Nh]!=null)l[Nh]=h[Nh];if(h[xh]!=null)l[xh]=h[xh];return l},Ad=(h,d)=>{const l={};let w=1;for(let G of h){if(G===null)continue;l[`member.${w}`]=G,w++}return l},n0=(h,d)=>{const l={};let w=1;for(let G of h){if(G===null)continue;const H=Td(G,d);Object.entries(H).forEach(([I,Q])=>{l[`member.${w}.${I}`]=Q}),w++}return l},ph=(h,d)=>{const l={};if(h[Yh]!=null)l[Yh]=S(h[Yh]);if(h[N]!=null)l[N]=S(h[N]);return l},Rd=(h,d)=>{const l={};if(h[q]!=null)l[q]=t(h[q],d);if(h[z]!=null)l[z]=ph(h[z],d);if(h[U]!=null)l[U]=u(h[U]);if(h[V]!=null)l[V]=S(h[V]);return l},Ld=(h,d)=>{const l={};if(h[q]!=null)l[q]=t(h[q],d);if(h[z]!=null)l[z]=ph(h[z],d);if(h[U]!=null)l[U]=u(h[U]);if(h[rh]!=null)l[rh]=S(h[rh]);if(h[fh]!=null)l[fh]=S(h[fh]);if(h[zh]!=null)l[zh]=S(h[zh]);if(h[x]!=null)l[x]=S(h[x]);if(h[Th]!=null)l[Th]=S(h[Th]);if(h[V]!=null)l[V]=S(h[V]);return l},jd=(h,d)=>{const l={};if(h[q]!=null)l[q]=t(h[q],d);if(h[bh]!=null)l[bh]=S(h[bh]);if(h[z]!=null)l[z]=ph(h[z],d);if(h[U]!=null)l[U]=u(h[U]);if(h[ah]!=null)l[ah]=S(h[ah]);if(h[x]!=null)l[x]=S(h[x]);if(h[V]!=null)l[V]=S(h[V]);return l},t=(h,d)=>{const l={};if(h[O]!=null)l[O]=S(h[O]);if(h[sh]!=null)l[sh]=S(h[sh]);if(h[Ch]!=null)l[Ch]=S(h[Ch]);if(h[Uh]!=null)l[Uh]=T0(A0(h[Uh]));return l},ad=(h,d)=>{const l={};if(h[$h]!=null)l[$h]=S(h[$h]);return l},rd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},sd=(h,d)=>{const l={};if(h[Mh]!=null)l[Mh]=S(h[Mh]);if(h[N]!=null)l[N]=S(h[N]);return l},_d=(h,d)=>{const l={};if(h[g]!=null)l[g]=S(h[g]);return l},bd=(h,d)=>{const l={};if(h[gh]!=null)l[gh]=S(h[gh]);if(h[g]!=null)l[g]=S(h[g]);if(h[N]!=null)l[N]=S(h[N]);return l},fd=(h,d)=>{const l={};if(h[q]!=null)l[q]=t(h[q],d);if(h[vh]!=null)l[vh]=sd(h[vh],d);if(h[U]!=null)l[U]=u(h[U]);return l},Cd=(h,d)=>{const l={};if(h[q]!=null)l[q]=t(h[q],d);return l},Od=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},gd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},xd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},id=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},cd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},ed=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},pd=(h,d)=>{const l={};if(h[m]!=null)l[m]=S(h[m]);return l},k=(h)=>({httpStatusCode:h.statusCode,requestId:h.headers["x-amzn-requestid"]??h.headers["x-amzn-request-id"]??h.headers["x-amz-request-id"],extendedRequestId:h.headers["x-amz-id-2"],cfId:h.headers["x-amz-cf-id"]});var nd=R0(Y),j=async(h,d,l,w,G)=>{const{hostname:H,protocol:I="https",port:Q,path:v}=await h.endpoint(),M={protocol:I,hostname:H,port:Q,method:"POST",path:v.endsWith("/")?v.slice(0,-1)+l:v+l,headers:d};if(w!==void 0)M.hostname=w;if(G!==void 0)M.body=G;return new W0(M)},a={"content-type":"application/x-www-form-urlencoded"},r="2011-06-15",s="Action",O="AccessKeyId",od="AssumeRole",Yh="AssumedRoleId",z="AssumedRoleUser",ud="AssumeRoleWithSAML",td="AssumeRoleWithWebIdentity",g="Account",N="Arn",x="Audience",q="Credentials",Zh="ContextAssertion",hw="DecodeAuthorizationMessage",$h="DecodedMessage",y="DurationSeconds",Uh="Expiration",Vh="ExternalId",Ph="EncodedMessage",vh="FederatedUser",Mh="FederatedUserId",lw="GetAccessKeyInfo",dw="GetCallerIdentity",ww="GetFederationToken",Gw="GetSessionToken",zh="Issuer",Nh="Key",Wh="Name",Th="NameQualifier",Z="Policy",$="PolicyArns",Ah="PrincipalArn",Rh="ProviderArn",Lh="ProvidedContexts",jh="ProviderId",U="PackedPolicySize",ah="Provider",W="RoleArn",i="RoleSessionName",rh="Subject",sh="SecretAccessKey",_h="SAMLAssertion",bh="SubjectFromWebIdentityToken",V="SourceIdentity",c="SerialNumber",fh="SubjectType",Ch="SessionToken",e="Tags",p="TokenCode",Oh="TransitiveTagKeys",gh="UserId",_="Version",xh="Value",ih="WebIdentityToken",ch="arn",m="message",b=(h)=>Object.entries(h).map(([d,l])=>eh(d)+"="+eh(l)).join("&"),Iw=(h,d)=>{if(d.Error?.Code!==void 0)return d.Error.Code;if(h.statusCode==404)return"NotFound"};class hh extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,U0).ser(L0).de(C0).build(){}class nh extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithSAML",{}).n("STSClient","AssumeRoleWithSAMLCommand").f(V0,P0).ser(j0).de(O0).build(){}class lh extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(v0,M0).ser(a0).de(g0).build(){}class oh extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","DecodeAuthorizationMessage",{}).n("STSClient","DecodeAuthorizationMessageCommand").f(void 0,void 0).ser(r0).de(x0).build(){}class uh extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetAccessKeyInfo",{}).n("STSClient","GetAccessKeyInfoCommand").f(void 0,void 0).ser(s0).de(i0).build(){}class th extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetCallerIdentity",{}).n("STSClient","GetCallerIdentityCommand").f(void 0,void 0).ser(_0).de(c0).build(){}class hl extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetFederationToken",{}).n("STSClient","GetFederationTokenCommand").f(void 0,z0).ser(b0).de(e0).build(){}class ll extends K.classBuilder().ep({...D}).m(function(h,d,l,w){return[F(l,this.serialize,this.deserialize),B(l,h.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetSessionToken",{}).n("STSClient","GetSessionTokenCommand").f(void 0,N0).ser(f0).de(p0).build(){}var Hw={AssumeRoleCommand:hh,AssumeRoleWithSAMLCommand:nh,AssumeRoleWithWebIdentityCommand:lh,DecodeAuthorizationMessageCommand:oh,GetAccessKeyInfoCommand:uh,GetCallerIdentityCommand:th,GetFederationTokenCommand:hl,GetSessionTokenCommand:ll};class u0 extends R{}o0(Hw,u0);var t0="us-east-1",hd=(h)=>{if(typeof h?.Arn==="string"){const d=h.Arn.split(":");if(d.length>4&&d[4]!=="")return d[4]}return},ld=async(h,d,l)=>{const w=typeof h==="function"?await h():h,G=typeof d==="function"?await d():d;return l?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${w} (provider)`,`${G} (parent client)`,`${t0} (STS default)`),w??G??t0},dd=(h,d)=>{let l,w;return async(G,H)=>{if(w=G,!l){const{logger:M=h?.parentClientConfig?.logger,region:n,requestHandler:qh=h?.parentClientConfig?.requestHandler,credentialProviderLogger:Id}=h,Hd=await ld(n,h?.parentClientConfig?.region,Id);l=new d({credentialDefaultProvider:()=>async()=>w,region:Hd,requestHandler:qh,logger:M})}const{Credentials:I,AssumedRoleUser:Q}=await l.send(new hh(H));if(!I||!I.AccessKeyId||!I.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${H.RoleArn}`);const v=hd(Q);return{accessKeyId:I.AccessKeyId,secretAccessKey:I.SecretAccessKey,sessionToken:I.SessionToken,expiration:I.Expiration,...I.CredentialScope&&{credentialScope:I.CredentialScope},...v&&{accountId:v}}}},wd=(h,d)=>{let l;return async(w)=>{if(!l){const{logger:Q=h?.parentClientConfig?.logger,region:v,requestHandler:M=h?.parentClientConfig?.requestHandler,credentialProviderLogger:n}=h,qh=await ld(v,h?.parentClientConfig?.region,n);l=new d({region:qh,requestHandler:M,logger:Q})}const{Credentials:G,AssumedRoleUser:H}=await l.send(new lh(w));if(!G||!G.AccessKeyId||!G.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${w.RoleArn}`);const I=hd(H);return{accessKeyId:G.AccessKeyId,secretAccessKey:G.SecretAccessKey,sessionToken:G.SessionToken,expiration:G.Expiration,...G.CredentialScope&&{credentialScope:G.CredentialScope},...I&&{accountId:I}}}};var Gd=(h,d)=>{if(!d)return h;else return class l extends h{constructor(w){super(w);for(let G of d)this.middlewareStack.use(G)}}},Sw=(h={},d)=>dd(h,Gd(R,d)),mw=(h={},d)=>wd(h,Gd(R,d)),AG=(h)=>(d)=>h({roleAssumer:Sw(d),roleAssumerWithWebIdentity:mw(d),...d});export{mw as getDefaultRoleAssumerWithWebIdentity,Sw as getDefaultRoleAssumer,AG as decorateDefaultCredentialProvider,F0 as __Client,Y as STSServiceException,R as STSClient,u0 as STS,Dh as RegionDisabledException,Jh as PackedPolicyTooLargeException,mh as MalformedPolicyDocumentException,kh as InvalidIdentityTokenException,Fh as InvalidAuthorizationMessageException,Eh as IDPRejectedClaimException,Kh as IDPCommunicationErrorException,N0 as GetSessionTokenResponseFilterSensitiveLog,ll as GetSessionTokenCommand,z0 as GetFederationTokenResponseFilterSensitiveLog,hl as GetFederationTokenCommand,th as GetCallerIdentityCommand,uh as GetAccessKeyInfoCommand,Sh as ExpiredTokenException,oh as DecodeAuthorizationMessageCommand,o as CredentialsFilterSensitiveLog,M0 as AssumeRoleWithWebIdentityResponseFilterSensitiveLog,v0 as AssumeRoleWithWebIdentityRequestFilterSensitiveLog,lh as AssumeRoleWithWebIdentityCommand,P0 as AssumeRoleWithSAMLResponseFilterSensitiveLog,V0 as AssumeRoleWithSAMLRequestFilterSensitiveLog,nh as AssumeRoleWithSAMLCommand,U0 as AssumeRoleResponseFilterSensitiveLog,hh as AssumeRoleCommand,K as $Command};
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ import{y as h} from"./chunk-7ce930fe69575c87.js";import{H as g,W as P,Z as w,na as I} from"./chunk-285299d784985340.js";import"./chunk-14e60554a2e78f4a.js";import{qb as d} from"./chunk-8b40d6a498f8bf81.js";var i=h(d(),1);import A from"fs/promises";var C=h(d(),1);var E="169.254.170.2",R="169.254.170.23",p="[fd00:ec2::23]",S=(e,c)=>{if(e.protocol==="https:")return;if(e.hostname===E||e.hostname===R||e.hostname===p)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;const a=e.hostname.split("."),r=(t)=>{const s=parseInt(t,10);return 0<=s&&s<=255};if(a[0]==="127"&&r(a[1])&&r(a[2])&&r(a[3])&&a.length===4)return}throw new C.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
3
+ - loopback CIDR 127.0.0.0/8 or [::1/128]
4
+ - ECS container host 169.254.170.2
5
+ - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:c})};var m=h(d(),1);function K(e){return new g({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((c,[a,r])=>{return c[a]=r,c},{}),fragment:e.hash})}async function T(e,c){const r=await w(e.body).transformToString();if(e.statusCode===200){const t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new m.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:c});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:I(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new m.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:c}),{Code:t.Code,Message:t.Message})}throw new m.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:c})}var x=(e,c,a)=>{return async()=>{for(let r=0;r<c;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,a))}return await e()}};var O="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",b="http://169.254.170.2",_="AWS_CONTAINER_CREDENTIALS_FULL_URI",v="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",B="AWS_CONTAINER_AUTHORIZATION_TOKEN",D=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let c;const a=e.awsContainerCredentialsRelativeUri??process.env[O],r=e.awsContainerCredentialsFullUri??process.env[_],t=e.awsContainerAuthorizationToken??process.env[B],s=e.awsContainerAuthorizationTokenFile??process.env[v],n=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console.warn:e.logger.warn;if(a&&r)n("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),n("awsContainerCredentialsFullUri will take precedence.");if(t&&s)n("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),n("awsContainerAuthorizationToken will take precedence.");if(r)c=r;else if(a)c=`${b}${a}`;else throw new i.CredentialsProviderError(`No HTTP credential provider host provided.
6
+ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});const y=new URL(c);S(y,e.logger);const u=new P({requestTimeout:e.timeout??1000,connectionTimeout:e.timeout??1000});return x(async()=>{const o=K(y);if(t)o.headers.Authorization=t;else if(s)o.headers.Authorization=(await A.readFile(s)).toString();try{const f=await u.handle(o);return T(f.response)}catch(f){throw new i.CredentialsProviderError(String(f),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000)};export{D as fromHttp};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{y as c} from"./chunk-7ce930fe69575c87.js";import"./chunk-d7c78cd1ab7dc7ed.js";import{Ba as Ne,F as Be,G as Fe,J as g,K as We,O as ee,P as se,R as te,S as re,V as ce,W as ie,ba as ss,ca as R,ha as D,ia as Ge,ja as h,qa as Te,ra as u,sa as Ve,ta as le,ua as pe,va as _e,wa as $e,ya as i,za as y} from"./chunk-b13cfa16a8a18324.js";import{Da as Ie,Ea as Le,Fa as Ce,Ga as Me,Ha as os,Ka as F,La as Ae,Ma as G,Na as V,Oa as N,Pa as Ke,Qa as ye,Ra as me,Sa as he,Ta as ue,Ua as Qe,Va as Xe,Xa as ts,Ya as rs,Za as Ye,_a as we,ab as be,bb as Ze,cb as xe,db as je,eb as x,fb as ve,gb as ke,hb as Re,ib as qe,jb as Pe,kb as Je} from"./chunk-0e125593337a68aa.js";import"./chunk-c7e2acfd5087fb30.js";import{mb as l,nb as ae} from"./chunk-ed589d4e4c575de7.js";import"./chunk-2db6c9bb69bb27aa.js";import"./chunk-82f72dfc6e27be04.js";var p=c(F(),1);var $=c(x(),1),v=c(os(),1),cs=function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}},b=function(e){return{schemeId:"smithy.api#noAuth"}},P=async(e,s,t)=>{return{operation:v.getSmithyContext(s).operation,region:await v.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},J=(e)=>{const s=[];switch(e.operation){case"GetRoleCredentials":{s.push(b(e));break}case"ListAccountRoles":{s.push(b(e));break}case"ListAccounts":{s.push(b(e));break}case"Logout":{s.push(b(e));break}default:s.push(cs(e))}return s},U=(e)=>{return{...$.resolveAwsSdkSigV4Config(e)}};var I=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},L={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var C={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}};var Ee=c(x(),1);var ne=c(x(),1),de=c(F(),1);var M={["required"]:!1,type:"String"},W={["required"]:!0,default:!1,type:"Boolean"},A={["ref"]:"Endpoint"},j={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},T={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},d={},K={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},H={["ref"]:"PartitionResult"},Q={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[H,"supportsDualStack"]}]},X=[j],Y=[T],Z=[{["ref"]:"Region"}],ls={version:"1.0",parameters:{Region:M,UseDualStack:W,UseFIPS:W,Endpoint:M},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[A]}],rules:[{conditions:X,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Y,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:A,properties:d,headers:d},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:Z}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:Z,assign:"PartitionResult"}],rules:[{conditions:[j,T],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,K]},Q],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:X,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[K,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[H,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:d,headers:d},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Y,rules:[{conditions:[Q],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},O=ls;var f=(e,s={})=>{return V(O,{endpointParams:e,logger:s.logger})};G.aws=N;var oe=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??ee,base64Encoder:e?.base64Encoder??re,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??f,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??J,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new ne.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new de.NoAuthSigner}],logger:e?.logger??new g,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??ae,utf8Decoder:e?.utf8Decoder??se,utf8Encoder:e?.utf8Encoder??te}};var Se=(e)=>{pe(process.version);const s=qe(e),t=()=>s().then(le),r=oe(e);return Ee.emitWarningIfUnsupportedVersion(process.version),{...r,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??Re,defaultUserAgentProvider:e?.defaultUserAgentProvider??ve({serviceId:r.serviceId,clientVersion:C.version}),maxAttempts:e?.maxAttempts??l(be),region:e?.region??l(he,ue),requestHandler:ce.create(e?.requestHandler??t),retryMode:e?.retryMode??l({...xe,default:async()=>(await t()).retryMode||we}),sha256:e?.sha256??ke.bind(null,"sha256"),streamCollector:e?.streamCollector??ie,useDualstackEndpoint:e?.useDualstackEndpoint??l(ye),useFipsEndpoint:e?.useFipsEndpoint??l(me)}};var ze=(e)=>{const s=e.httpAuthSchemes;let{httpAuthSchemeProvider:t,credentials:r}=e;return{setHttpAuthScheme(a){const n=s.findIndex((B)=>B.schemeId===a.schemeId);if(n===-1)s.push(a);else s.splice(n,1,a)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(a){t=a},httpAuthSchemeProvider(){return t},setCredentials(a){r=a},credentials(){return r}}},De=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var k=(e)=>e,Ue=(e,s)=>{const t={...k(Pe(e)),...k(_e(e)),...k(Be(e)),...k(ze(e))};return s.forEach((r)=>r.configure(t)),{...e,...Je(t),...$e(t),...Fe(t),...De(t)}};class ps extends We{constructor(...[e]){const s=Se(e||{}),t=I(s),r=Ae(t),a=Ze(r),n=Qe(a),B=Ie(n),as=Ye(B),ns=U(as),_=Ue(ns,e?.extensions||[]);super(_);this.config=_,this.middlewareStack.use(Ke(this.config)),this.middlewareStack.use(je(this.config)),this.middlewareStack.use(Xe(this.config)),this.middlewareStack.use(Le(this.config)),this.middlewareStack.use(Ce(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(p.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:P,identityProviderConfigProvider:async(ds)=>new p.DefaultIdentityProviderConfig({"aws.auth#sigv4":ds.credentials})})),this.middlewareStack.use(p.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class o extends Te{constructor(e){super(e);Object.setPrototypeOf(this,o.prototype)}}class q extends o{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,q.prototype)}}class E extends o{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,E.prototype)}}class S extends o{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,S.prototype)}}class z extends o{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,z.prototype)}}var He=(e)=>({...e,...e.accessToken&&{accessToken:R}}),ys=(e)=>({...e,...e.secretAccessKey&&{secretAccessKey:R},...e.sessionToken&&{sessionToken:R}}),Oe=(e)=>({...e,...e.roleCredentials&&{roleCredentials:ys(e.roleCredentials)}});var m=c(x(),1),fe=c(F(),1);var ge=async(e,s)=>{const t=fe.requestBuilder(e,s),r=i({},vs,{[zs]:e[Rs]});t.bp("/federation/credentials");const a=i({[Ss]:[,D(e[Es],"roleName")],[qs]:[,D(e[ks],"accountId")]});let n;return t.m("GET").h(r).q(a).b(n),t.build()};var es=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return ms(e,s);const t=i({$metadata:w(e)}),r=D(Ge(await m.parseJsonBody(e.body,s)),"body"),a=y(r,{roleCredentials:Ne});return Object.assign(t,a),t};var ms=async(e,s)=>{const t={...e,body:await m.parseJsonErrorBody(e.body,s)},r=m.loadRestJsonErrorCode(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await us(t,s);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await ws(t,s);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await bs(t,s);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await xs(t,s);default:const a=t.body;return hs({output:e,parsedBody:a,errorCode:r})}},hs=Ve(o),us=async(e,s)=>{const t=i({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new q({$metadata:w(e),...t});return u(n,e.body)},ws=async(e,s)=>{const t=i({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new E({$metadata:w(e),...t});return u(n,e.body)},bs=async(e,s)=>{const t=i({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new S({$metadata:w(e),...t});return u(n,e.body)},xs=async(e,s)=>{const t=i({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new z({$metadata:w(e),...t});return u(n,e.body)},w=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var vs=(e)=>e!==void 0&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),ks="accountId",Rs="accessToken",qs="account_id";var Es="roleName",Ss="role_name",zs="x-amz-sso_bearer_token";class Ds extends ss.classBuilder().ep({...L}).m(function(e,s,t,r){return[ts(t,this.serialize,this.deserialize),rs(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(He,Oe).ser(ge).de(es).build(){}export{ps as SSOClient,Ds as GetRoleCredentialsCommand};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{y as c} from"./chunk-7ce930fe69575c87.js";import"./chunk-d7c78cd1ab7dc7ed.js";import{Ba as fe,F as Fe,G as _e,J as ee,L as Ae,P as se,Q as te,S as re,T as ae,W as ie,X as le,ba as ts,ca as k,ha as z,ia as Ve,ja as h,qa as He,ra as u,sa as Ne,ta as pe,ua as ye,va as $e,wa as Pe,ya as i,za as y} from"./chunk-285299d784985340.js";import{$a as Ze,Da as Le,Ea as Ce,Fa as Me,Ga as We,Ka as B,La as _,Ma as $,Na as Ke,Oa as V,Pa as N,Qa as f,Ra as Qe,Sa as me,Ta as he,Ua as ue,Va as we,Wa as Xe,Xa as Ye,Za as rs,_a as as,ab as be,cb as xe,db as je,eb as ve,fb as Te,gb as x,hb as ke,ib as Re,jb as qe,kb as Ee,lb as Je,mb as Ue} from"./chunk-cf8b1c7a4e9fc32d.js";import"./chunk-14e60554a2e78f4a.js";import{ob as ps,pb as l} from"./chunk-cf7dde2ab1be3a3c.js";import"./chunk-8b40d6a498f8bf81.js";import"./chunk-dac0e2ef13060d02.js";var p=c(B(),1);var P=c(x(),1);var cs=function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}},b=function(e){return{schemeId:"smithy.api#noAuth"}},J=async(e,s,t)=>{return{operation:_(s).operation,region:await $(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},U=(e)=>{const s=[];switch(e.operation){case"GetRoleCredentials":{s.push(b(e));break}case"ListAccountRoles":{s.push(b(e));break}case"ListAccounts":{s.push(b(e));break}case"Logout":{s.push(b(e));break}default:s.push(cs(e))}return s},I=(e)=>{return{...P.resolveAwsSdkSigV4Config(e)}};var L=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},C={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var M={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}};var Se=c(x(),1);var ne=c(x(),1),de=c(B(),1);var oe=c(ps(),1);var W={["required"]:!1,type:"String"},A={["required"]:!0,default:!1,type:"Boolean"},K={["ref"]:"Endpoint"},T={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},H={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},d={},Q={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},O={["ref"]:"PartitionResult"},X={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[O,"supportsDualStack"]}]},Y=[T],Z=[H],j=[{["ref"]:"Region"}],ls={version:"1.0",parameters:{Region:W,UseDualStack:A,UseFIPS:A,Endpoint:W},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[K]}],rules:[{conditions:Y,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Z,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:K,properties:d,headers:d},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:j}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:j,assign:"PartitionResult"}],rules:[{conditions:[T,H],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Q]},X],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:Y,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Q,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[O,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:d,headers:d},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Z,rules:[{conditions:[X],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},G=ls;var g=(e,s={})=>{return N(G,{endpointParams:e,logger:s.logger})};V.aws=f;var ce=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??se,base64Encoder:e?.base64Encoder??ae,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??g,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??U,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new ne.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new de.NoAuthSigner}],logger:e?.logger??new ee,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??oe.parseUrl,utf8Decoder:e?.utf8Decoder??te,utf8Encoder:e?.utf8Encoder??re}};var ze=(e)=>{ye(process.version);const s=Ee(e),t=()=>s().then(pe),r=ce(e);return Se.emitWarningIfUnsupportedVersion(process.version),{...r,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??qe,defaultUserAgentProvider:e?.defaultUserAgentProvider??ke({serviceId:r.serviceId,clientVersion:M.version}),maxAttempts:e?.maxAttempts??l(xe),region:e?.region??l(ue,we),requestHandler:ie.create(e?.requestHandler??t),retryMode:e?.retryMode??l({...ve,default:async()=>(await t()).retryMode||be}),sha256:e?.sha256??Re.bind(null,"sha256"),streamCollector:e?.streamCollector??le,useDualstackEndpoint:e?.useDualstackEndpoint??l(me),useFipsEndpoint:e?.useFipsEndpoint??l(he)}};var De=(e)=>{const s=e.httpAuthSchemes;let{httpAuthSchemeProvider:t,credentials:r}=e;return{setHttpAuthScheme(a){const n=s.findIndex((D)=>D.schemeId===a.schemeId);if(n===-1)s.push(a);else s.splice(n,1,a)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(a){t=a},httpAuthSchemeProvider(){return t},setCredentials(a){r=a},credentials(){return r}}},Be=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var v=(e)=>e,Ie=(e,s)=>{const t={...v(Je(e)),...v($e(e)),...v(Fe(e)),...v(De(e))};return s.forEach((r)=>r.configure(t)),{...e,...Ue(t),...Pe(t),..._e(t),...Be(t)}};class ys extends Ae{constructor(...[e]){const s=ze(e||{}),t=L(s),r=Ke(t),a=je(r),n=Xe(a),D=Le(n),ns=Ze(D),ds=I(ns),F=Ie(ds,e?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(Qe(this.config)),this.middlewareStack.use(Te(this.config)),this.middlewareStack.use(Ye(this.config)),this.middlewareStack.use(Ce(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(p.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:async(os)=>new p.DefaultIdentityProviderConfig({"aws.auth#sigv4":os.credentials})})),this.middlewareStack.use(p.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class o extends He{constructor(e){super(e);Object.setPrototypeOf(this,o.prototype)}}class R extends o{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,R.prototype)}}class q extends o{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,q.prototype)}}class E extends o{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,E.prototype)}}class S extends o{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,S.prototype)}}var Oe=(e)=>({...e,...e.accessToken&&{accessToken:k}}),ms=(e)=>({...e,...e.secretAccessKey&&{secretAccessKey:k},...e.sessionToken&&{sessionToken:k}}),Ge=(e)=>({...e,...e.roleCredentials&&{roleCredentials:ms(e.roleCredentials)}});var m=c(x(),1),ge=c(B(),1);var es=async(e,s)=>{const t=ge.requestBuilder(e,s),r=i({},ks,{[Ds]:e[qs]});t.bp("/federation/credentials");const a=i({[zs]:[,z(e[Ss],"roleName")],[Es]:[,z(e[Rs],"accountId")]});let n;return t.m("GET").h(r).q(a).b(n),t.build()};var ss=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return hs(e,s);const t=i({$metadata:w(e)}),r=z(Ve(await m.parseJsonBody(e.body,s)),"body"),a=y(r,{roleCredentials:fe});return Object.assign(t,a),t};var hs=async(e,s)=>{const t={...e,body:await m.parseJsonErrorBody(e.body,s)},r=m.loadRestJsonErrorCode(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await ws(t,s);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await bs(t,s);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await xs(t,s);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await vs(t,s);default:const a=t.body;return us({output:e,parsedBody:a,errorCode:r})}},us=Ne(o),ws=async(e,s)=>{const t=i({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new R({$metadata:w(e),...t});return u(n,e.body)},bs=async(e,s)=>{const t=i({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new q({$metadata:w(e),...t});return u(n,e.body)},xs=async(e,s)=>{const t=i({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new E({$metadata:w(e),...t});return u(n,e.body)},vs=async(e,s)=>{const t=i({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new S({$metadata:w(e),...t});return u(n,e.body)},w=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var ks=(e)=>e!==void 0&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Rs="accountId",qs="accessToken",Es="account_id";var Ss="roleName",zs="role_name",Ds="x-amz-sso_bearer_token";class Bs extends ts.classBuilder().ep({...C}).m(function(e,s,t,r){return[rs(t,this.serialize,this.deserialize),as(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(Oe,Ge).ser(es).de(ss).build(){}export{ys as SSOClient,Bs as GetRoleCredentialsCommand};
@@ -0,0 +1,2 @@
1
+ import{z as ee} from"./chunk-7ce930fe69575c87.js";var te=ee((re,T)=>{var R,j,I,P,N,D,C,F,L,H,M,G,U,m,A,W,V,B,E,Y,K,q,z,Q,J,X,Z,$,g,k,x;(function(c){var O=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(b){c(w(O,w(b)))});else if(typeof T==="object"&&typeof re==="object")c(w(O,w(re)));else c(w(O));function w(b,e){if(b!==O)if(typeof Object.create==="function")Object.defineProperty(b,"__esModule",{value:!0});else b.__esModule=!0;return function(t,r){return b[t]=e?e(t,r):r}}})(function(c){var O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};R=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");O(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},j=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e},I=function(e,t){var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)r[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)if(t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a]))r[n[a]]=e[n[a]]}return r},P=function(e,t,r,n){var a=arguments.length,o=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)if(i=e[u])o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o;return a>3&&o&&Object.defineProperty(t,r,o),o},N=function(e,t){return function(r,n){t(r,n,e)}},D=function(e,t,r,n,a,o){function i(v){if(v!==void 0&&typeof v!=="function")throw new TypeError("Function expected");return v}var u=n.kind,_=u==="getter"?"get":u==="setter"?"set":"value",f=!t&&e?n.static?e:e.prototype:null,l=t||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),y,S=!1;for(var s=r.length-1;s>=0;s--){var p={};for(var d in n)p[d]=d==="access"?{}:n[d];for(var d in n.access)p.access[d]=n.access[d];p.addInitializer=function(v){if(S)throw new TypeError("Cannot add initializers after decoration has completed");o.push(i(v||null))};var h=r[s](u==="accessor"?{get:l.get,set:l.set}:l[_],p);if(u==="accessor"){if(h===void 0)continue;if(h===null||typeof h!=="object")throw new TypeError("Object expected");if(y=i(h.get))l.get=y;if(y=i(h.set))l.set=y;if(y=i(h.init))a.unshift(y)}else if(y=i(h))if(u==="field")a.unshift(y);else l[_]=y}if(f)Object.defineProperty(f,n.name,l);S=!0},C=function(e,t,r){var n=arguments.length>2;for(var a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0},F=function(e){return typeof e==="symbol"?e:"".concat(e)},L=function(e,t,r){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})},H=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)},M=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(l){try{f(n.next(l))}catch(y){i(y)}}function _(l){try{f(n.throw(l))}catch(y){i(y)}}function f(l){l.done?o(l.value):a(l.value).then(u,_)}f((n=n.apply(e,t||[])).next())})},G=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(f){return function(l){return _([f,l])}}function _(f){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,f[0]&&(r=0)),r)try{if(n=1,a&&(o=f[0]&2?a.return:f[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,f[1])).done)return o;if(a=0,o)f=[f[0]&2,o.value];switch(f[0]){case 0:case 1:o=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if((o=r.trys,!(o=o.length>0&&o[o.length-1]))&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){r.label=f[1];break}if(f[0]===6&&r.label<o[1]){r.label=o[1],o=f;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(f);break}if(o[2])r.ops.pop();r.trys.pop();continue}f=t.call(e,r)}catch(l){f=[6,l],a=0}finally{n=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},U=function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))g(t,e,r)},g=Object.create?function(e,t,r,n){if(n===void 0)n=r;var a=Object.getOwnPropertyDescriptor(t,r);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable))a={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,a)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]},m=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},A=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],i;try{while((t===void 0||t-- >0)&&!(a=n.next()).done)o.push(a.value)}catch(u){i={error:u}}finally{try{if(a&&!a.done&&(r=n.return))r.call(n)}finally{if(i)throw i.error}}return o},W=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(A(arguments[t]));return e},V=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],i=0,u=o.length;i<u;i++,a++)n[a]=o[i];return n},B=function(e,t,r){if(r||arguments.length===2){for(var n=0,a=t.length,o;n<a;n++)if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))},E=function(e){return this instanceof E?(this.v=e,this):new E(e)},Y=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),a,o=[];return a={},u("next"),u("throw"),u("return",i),a[Symbol.asyncIterator]=function(){return this},a;function i(s){return function(p){return Promise.resolve(p).then(s,y)}}function u(s,p){if(n[s]){if(a[s]=function(d){return new Promise(function(h,v){o.push([s,d,h,v])>1||_(s,d)})},p)a[s]=p(a[s])}}function _(s,p){try{f(n[s](p))}catch(d){S(o[0][3],d)}}function f(s){s.value instanceof E?Promise.resolve(s.value.v).then(l,y):S(o[0][2],s)}function l(s){_("next",s)}function y(s){_("throw",s)}function S(s,p){if(s(p),o.shift(),o.length)_(o[0][0],o[0][1])}},K=function(e){var t,r;return t={},n("next"),n("throw",function(a){throw a}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(a,o){t[a]=e[a]?function(i){return(r=!r)?{value:E(e[a](i)),done:!1}:o?o(i):i}:o}},q=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof m==="function"?m(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(i){return new Promise(function(u,_){i=e[o](i),a(u,_,i.done,i.value)})}}function a(o,i,u,_){Promise.resolve(_).then(function(f){o({value:f,done:u})},i)}},z=function(e,t){if(Object.defineProperty)Object.defineProperty(e,"raw",{value:t});else e.raw=t;return e};var w=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Q=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))g(t,e,r)}return w(t,e),t},J=function(e){return e&&e.__esModule?e:{default:e}},X=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Z=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},$=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)},k=function(e,t,r){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n,a;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(n=t[Symbol.dispose],r)a=n}if(typeof n!=="function")throw new TypeError("Object not disposable.");if(a)n=function(){try{a.call(this)}catch(o){return Promise.reject(o)}};e.stack.push({value:t,dispose:n,async:r})}else if(r)e.stack.push({async:!0});return t};var b=typeof SuppressedError==="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};x=function(e){function t(n){e.error=e.hasError?new b(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){while(e.stack.length){var n=e.stack.pop();try{var a=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(a).then(r,function(o){return t(o),r()})}catch(o){t(o)}}if(e.hasError)throw e.error}return r()},c("__extends",R),c("__assign",j),c("__rest",I),c("__decorate",P),c("__param",N),c("__esDecorate",D),c("__runInitializers",C),c("__propKey",F),c("__setFunctionName",L),c("__metadata",H),c("__awaiter",M),c("__generator",G),c("__exportStar",U),c("__createBinding",g),c("__values",m),c("__read",A),c("__spread",W),c("__spreadArrays",V),c("__spreadArray",B),c("__await",E),c("__asyncGenerator",Y),c("__asyncDelegator",K),c("__asyncValues",q),c("__makeTemplateObject",z),c("__importStar",Q),c("__importDefault",J),c("__classPrivateFieldGet",X),c("__classPrivateFieldSet",Z),c("__classPrivateFieldIn",$),c("__addDisposableResource",k),c("__disposeResources",x)})});
2
+ export{te as E};