@stacksjs/buddy 0.70.11 → 0.70.12

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 (37) hide show
  1. package/dist/{chunk-cdr3xnz9.js → chunk-02xryjt7.js} +1 -1
  2. package/dist/{chunk-2pj0cr49.js → chunk-0pctvmzj.js} +1 -1
  3. package/dist/{chunk-mvkb5fc3.js → chunk-18tc3app.js} +2 -2
  4. package/dist/{chunk-68apz1e2.js → chunk-1hyckzds.js} +1 -1
  5. package/dist/{chunk-hjdz5p2e.js → chunk-1xg8yqzr.js} +2 -2
  6. package/dist/{chunk-zxq24dtw.js → chunk-225rwa7q.js} +1 -1
  7. package/dist/chunk-2kgzc9hn.js +2 -0
  8. package/dist/{chunk-rewjb3gf.js → chunk-51z2y1an.js} +2 -2
  9. package/dist/{chunk-fvdx05dx.js → chunk-59wz96e5.js} +2 -2
  10. package/dist/{chunk-1e89wpt6.js → chunk-5ac533gv.js} +1 -1
  11. package/dist/{chunk-ks9kq37e.js → chunk-6bsjhkd1.js} +1 -1
  12. package/dist/chunk-7pzg81vs.js +5 -0
  13. package/dist/{chunk-2htrvvzn.js → chunk-97y685k1.js} +1 -1
  14. package/dist/{chunk-992fz6fq.js → chunk-c57y9ssg.js} +1 -1
  15. package/dist/{chunk-x46hz7dc.js → chunk-enzd7k3d.js} +1 -1
  16. package/dist/{chunk-2nrg08kz.js → chunk-f6ns0rrk.js} +1 -1
  17. package/dist/{chunk-z4zm45jz.js → chunk-jaw9rsy5.js} +1 -1
  18. package/dist/{chunk-s6kch47s.js → chunk-mq9sjfzt.js} +1 -1
  19. package/dist/{chunk-f0ftye71.js → chunk-rjjeq0tb.js} +1 -1
  20. package/dist/chunk-swrx1kwt.js +2 -0
  21. package/dist/{chunk-9j2yq17h.js → chunk-tb4wat6y.js} +1 -1
  22. package/dist/{chunk-am6xbcgg.js → chunk-tnexd1vh.js} +1 -1
  23. package/dist/{chunk-x0ahr107.js → chunk-w410kf33.js} +1 -1
  24. package/dist/{chunk-sgrntkej.js → chunk-x50q43zy.js} +2 -2
  25. package/dist/{chunk-whp9hjd8.js → chunk-xhnxfews.js} +1 -1
  26. package/dist/{chunk-m05w5c0s.js → chunk-y21redjp.js} +1 -1
  27. package/dist/{chunk-at17xh96.js → chunk-y6xd7gz4.js} +1 -1
  28. package/dist/{chunk-nec9r4e3.js → chunk-y9we573f.js} +1 -1
  29. package/dist/{chunk-cptthhq1.js → chunk-yen4jxhm.js} +2 -2
  30. package/dist/{chunk-d9bheak7.js → chunk-yjmev4jy.js} +2 -2
  31. package/dist/{chunk-z8qfv6vv.js → chunk-yvw4pjx6.js} +148 -148
  32. package/dist/cli.js +1 -1
  33. package/dist/index.js +1 -1
  34. package/package.json +45 -45
  35. package/dist/chunk-4v1a15ke.js +0 -5
  36. package/dist/chunk-8nb3z33p.js +0 -2
  37. package/dist/chunk-9jthaaph.js +0 -2
@@ -1,4 +1,4 @@
1
- import{Rc as QZ,Tc as ZZ}from"./chunk-2pj0cr49.js";var U_=ZZ((BO,N_)=>{var B_,d0,i0,o0,n0,r0,U0,m1,C0,s0,M_,a0,w0,t0,e0,_1,e,J_,z1,Z1,OZ;t0=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;w0=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;d0=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;_1=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;a0=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;e=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Z1=/[\t\v\f\ufeff\p{Zs}]+/yu;C0=/\r?\n|[\r\u2028\u2029]/y;s0=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;e0=/\/\/.*/y;B_=/^#!.*/;o0=/[<>.:={}]|\/(?![\/*])/y;i0=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;n0=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;r0=/[^<>{}]+/y;z1=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;J_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;U0=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;m1=/^(?:return|throw|yield)$/;M_=RegExp(C0.source);N_.exports=OZ=function*(_,{jsx:z=!1}={}){var Z,O,Q,j,H,$,K,W,Y,G,V,q,C,B;if({length:$}=_,j=0,H="",B=[{tag:"JS"}],Z=[],V=0,q=!1,K=B_.exec(_))yield{type:"HashbangComment",value:K[0]},j=K[0].length;while(j<$){switch(W=B[B.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[j]==="/"&&(z1.test(H)||U0.test(H))){if(t0.lastIndex=j,K=t0.exec(_)){j=t0.lastIndex,H=K[0],q=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}}if(w0.lastIndex=j,K=w0.exec(_)){switch(C=K[0],Y=w0.lastIndex,G=C,C){case"(":if(H==="?NonExpressionParenKeyword")B.push({tag:"JSNonExpressionParen",nesting:V});V++,q=!1;break;case")":if(V--,q=!0,W.tag==="JSNonExpressionParen"&&V===W.nesting)B.pop(),G="?NonExpressionParenEnd",q=!1;break;case"{":w0.lastIndex=0,Q=!J_.test(H)&&(z1.test(H)||U0.test(H)),Z.push(Q),q=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(Z.length===W.nesting){if(e.lastIndex=j,K=e.exec(_),j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",q=!1,yield{type:"TemplateMiddle",value:K[0]};else B.pop(),q=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"};continue}break;case"InterpolationInJSX":if(Z.length===W.nesting){B.pop(),j+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}q=Z.pop(),G=q?"?ExpressionBraceEnd":"}";break;case"]":q=!0;break;case"++":case"--":G=q?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(z1.test(H)||U0.test(H))){B.push({tag:"JSXTag"}),j+=1,H="<",yield{type:"JSXPunctuator",value:C};continue}q=!1;break;default:q=!1}j=Y,H=G,yield{type:"Punctuator",value:C};continue}if(d0.lastIndex=j,K=d0.exec(_)){switch(j=d0.lastIndex,G=K[0],K[0]){case"for":case"if":case"while":case"with":if(H!=="."&&H!=="?.")G="?NonExpressionParenKeyword"}H=G,q=!U0.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(_1.lastIndex=j,K=_1.exec(_)){j=_1.lastIndex,H=K[0],q=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(a0.lastIndex=j,K=a0.exec(_)){j=a0.lastIndex,H=K[0],q=!0,yield{type:"NumericLiteral",value:K[0]};continue}if(e.lastIndex=j,K=e.exec(_)){if(j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",B.push({tag:"InterpolationInTemplate",nesting:Z.length}),q=!1,yield{type:"TemplateHead",value:K[0]};else q=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"};continue}break;case"JSXTag":case"JSXTagEnd":if(o0.lastIndex=j,K=o0.exec(_)){switch(j=o0.lastIndex,G=K[0],K[0]){case"<":B.push({tag:"JSXTag"});break;case">":if(B.pop(),H==="/"||W.tag==="JSXTagEnd")G="?JSX",q=!0;else B.push({tag:"JSXChildren"});break;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),G="?InterpolationInJSX",q=!1;break;case"/":if(H==="<"){if(B.pop(),B[B.length-1].tag==="JSXChildren")B.pop();B.push({tag:"JSXTagEnd"})}}H=G,yield{type:"JSXPunctuator",value:K[0]};continue}if(i0.lastIndex=j,K=i0.exec(_)){j=i0.lastIndex,H=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(n0.lastIndex=j,K=n0.exec(_)){j=n0.lastIndex,H=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(r0.lastIndex=j,K=r0.exec(_)){j=r0.lastIndex,H=K[0],yield{type:"JSXText",value:K[0]};continue}switch(_[j]){case"<":B.push({tag:"JSXTag"}),j++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),j++,H="?InterpolationInJSX",q=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Z1.lastIndex=j,K=Z1.exec(_)){j=Z1.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(C0.lastIndex=j,K=C0.exec(_)){if(j=C0.lastIndex,q=!1,m1.test(H))H="?NoLineTerminatorHere";yield{type:"LineTerminatorSequence",value:K[0]};continue}if(s0.lastIndex=j,K=s0.exec(_)){if(j=s0.lastIndex,M_.test(K[0])){if(q=!1,m1.test(H))H="?NoLineTerminatorHere"}yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(e0.lastIndex=j,K=e0.exec(_)){j=e0.lastIndex,q=!1,yield{type:"SingleLineComment",value:K[0]};continue}O=String.fromCodePoint(_.codePointAt(j)),j+=O.length,H=O,q=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:O}}return}});var D_=/^[A-Za-z]:\//;function K0(_=""){if(!_)return _;return _.replace(/\\/g,"/").replace(D_,(z)=>z.toUpperCase())}var v_=/^[/\\]{2}/,y_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,i1=/^[A-Za-z]:$/,d1=/^\/([A-Za-z]:)?$/,S_=/.(\.[^./]+|\.)$/,f_=/^[/\\]|^[a-zA-Z]:[/\\]/;var o1=function(_){if(_.length===0)return".";_=K0(_);let z=_.match(v_),Z=l(_),O=_[_.length-1]==="/";if(_=j1(_,!Z),_.length===0){if(Z)return"/";return O?"./":"."}if(O)_+="/";if(i1.test(_))_+="/";if(z){if(!Z)return`//./${_}`;return`//${_}`}return Z&&!l(_)?`/${_}`:_},I_=function(..._){let z="";for(let Z of _){if(!Z)continue;if(z.length>0){let O=z[z.length-1]==="/",Q=Z[0]==="/";if(O&&Q)z+=Z.slice(1);else z+=O||Q?Z:`/${Z}`}else z+=Z}return o1(z)};function b_(){if(typeof process!=="undefined"&&typeof process.cwd==="function")return process.cwd().replace(/\\/g,"/");return"/"}var $0=function(..._){_=_.map((O)=>K0(O));let z="",Z=!1;for(let O=_.length-1;O>=-1&&!Z;O--){let Q=O>=0?_[O]:b_();if(!Q||Q.length===0)continue;z=`${Q}/${z}`,Z=l(Q)}if(z=j1(z,!Z),Z&&!l(z))return`/${z}`;return z.length>0?z:"."};function j1(_,z){let Z="",O=0,Q=-1,j=0,H=null;for(let $=0;$<=_.length;++$){if($<_.length)H=_[$];else if(H==="/")break;else H="/";if(H==="/"){if(Q===$-1||j===1);else if(j===2){if(Z.length<2||O!==2||Z[Z.length-1]!=="."||Z[Z.length-2]!=="."){if(Z.length>2){let K=Z.lastIndexOf("/");if(K===-1)Z="",O=0;else Z=Z.slice(0,K),O=Z.length-1-Z.lastIndexOf("/");Q=$,j=0;continue}else if(Z.length>0){Z="",O=0,Q=$,j=0;continue}}if(z)Z+=Z.length>0?"/..":"..",O=2}else{if(Z.length>0)Z+=`/${_.slice(Q+1,$)}`;else Z=_.slice(Q+1,$);O=$-Q-1}Q=$,j=0}else if(H==="."&&j!==-1)++j;else j=-1}return Z}var l=function(_){return y_.test(_)};var n1=function(_){if(_==="..")return"";let z=S_.exec(K0(_));return z&&z[1]||""},H1=function(_,z){let Z=$0(_).replace(d1,"$1").split("/"),O=$0(z).replace(d1,"$1").split("/");if(O[0][1]===":"&&Z[0][1]===":"&&Z[0]!==O[0])return O.join("/");let Q=[...Z];for(let j of Q){if(O[0]!==j)break;Z.shift(),O.shift()}return[...Z.map(()=>".."),...O].join("/")},r1=function(_){let z=K0(_).replace(/\/$/,"").split("/").slice(0,-1);if(z.length===1&&i1.test(z[0]))z[0]+="/";return z.join("/")||(l(_)?"/":".")};var s1=function(_,z){let Z=K0(_).split("/"),O="";for(let Q=Z.length-1;Q>=0;Q--){let j=Z[Q];if(j){O=j;break}}return z&&O.endsWith(z)?O.slice(0,-z.length):O},k_=function(_){let z=f_.exec(_)?.[0]?.replace(/\\/g,"/")||"",Z=s1(_),O=n1(Z);return{root:z,dir:r1(_),base:Z,ext:O,name:Z.slice(0,Z.length-O.length)}};var x_=/\d/,h_=["-","_","/","."];function g_(_=""){if(x_.test(_))return;return _!==_.toLowerCase()}function a1(_,z){let Z=z??h_,O=[];if(!_||typeof _!=="string")return O;let Q="",j,H;for(let $ of _){let K=Z.includes($);if(K===!0){O.push(Q),Q="",j=void 0;continue}let W=g_($);if(H===!1){if(j===!1&&W===!0){O.push(Q),Q=$,j=W;continue}if(j===!0&&W===!1&&Q.length>1){let Y=Q.at(-1);O.push(Q.slice(0,Math.max(0,Q.length-1))),Q=Y+$,j=W;continue}}Q+=$,j=W,H=K}return O.push(Q),O}function u_(_){return _?_[0].toUpperCase()+_.slice(1):""}function m_(_){return _?_[0].toLowerCase()+_.slice(1):""}function l_(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>u_(z?.normalize?Z.toLowerCase():Z)).join(""):""}function R1(_,z){return m_(l_(_||"",z))}function T0(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>Z.toLowerCase()).join(z??"-"):""}var _2=new Uint8Array(64),p_=new Uint8Array(128);for(let _=0;_<64;_++){let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(_);_2[_]=z,p_[z]=_}function W0(_,z,Z){let O=z-Z;O=O<0?-O<<1|1:O<<1;do{let Q=O&31;if(O>>>=5,O>0)Q|=32;_.write(_2[Q])}while(O>0);return z}var t1=16384,e1=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let z="";for(let Z=0;Z<_.length;Z++)z+=String.fromCharCode(_[Z]);return z}};class z2{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(t1)}write(_){let{buffer:z}=this;if(z[this.pos++]=_,this.pos===t1)this.out+=e1.decode(z),this.pos=0}flush(){let{buffer:_,out:z,pos:Z}=this;return Z>0?z+e1.decode(_.subarray(0,Z)):z}}function Z2(_){let z=new z2,Z=0,O=0,Q=0,j=0;for(let H=0;H<_.length;H++){let $=_[H];if(H>0)z.write(59);if($.length===0)continue;let K=0;for(let W=0;W<$.length;W++){let Y=$[W];if(W>0)z.write(44);if(K=W0(z,Y[0],K),Y.length===1)continue;if(Z=W0(z,Y[1],Z),O=W0(z,Y[2],O),Q=W0(z,Y[3],Q),Y.length===4)continue;j=W0(z,Y[4],j)}}return z.flush()}class E0{constructor(_){this.bits=_ instanceof E0?_.bits.slice():[]}add(_){this.bits[_>>5]|=1<<(_&31)}has(_){return!!(this.bits[_>>5]&1<<(_&31))}}class G0{constructor(_,z,Z){this.start=_,this.end=z,this.original=Z,this.intro="",this.outro="",this.content=Z,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(_){this.outro+=_}appendRight(_){this.intro=this.intro+_}clone(){let _=new G0(this.start,this.end,this.original);return _.intro=this.intro,_.outro=this.outro,_.content=this.content,_.storeName=this.storeName,_.edited=this.edited,_}contains(_){return this.start<_&&_<this.end}eachNext(_){let z=this;while(z)_(z),z=z.next}eachPrevious(_){let z=this;while(z)_(z),z=z.previous}edit(_,z,Z){if(this.content=_,!Z)this.intro="",this.outro="";return this.storeName=z,this.edited=!0,this}prependLeft(_){this.outro=_+this.outro}prependRight(_){this.intro=_+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(_){let z=_-this.start,Z=this.original.slice(0,z),O=this.original.slice(z);this.original=Z;let Q=new G0(_,this.end,O);if(Q.outro=this.outro,this.outro="",this.end=_,this.edited)Q.edit("",!1),this.content="";else this.content=Z;if(Q.next=this.next,Q.next)Q.next.previous=Q;return Q.previous=this,this.next=Q,Q}toString(){return this.intro+this.content+this.outro}trimEnd(_){if(this.outro=this.outro.replace(_,""),this.outro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){if(this.split(this.start+z.length).edit("",void 0,!0),this.edited)this.edit(z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(_,""),this.intro.length)return!0}trimStart(_){if(this.intro=this.intro.replace(_,""),this.intro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){let Z=this.split(this.end-z.length);if(this.edited)Z.edit(z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(_,""),this.outro.length)return!0}}function c_(){if(typeof globalThis!=="undefined"&&typeof globalThis.btoa==="function")return(_)=>globalThis.btoa(unescape(encodeURIComponent(_)));else if(typeof Buffer==="function")return(_)=>Buffer.from(_,"utf-8").toString("base64");else return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var d_=c_();class Q2{constructor(_){if(this.version=3,this.file=_.file,this.sources=_.sources,this.sourcesContent=_.sourcesContent,this.names=_.names,this.mappings=Z2(_.mappings),typeof _.x_google_ignoreList!=="undefined")this.x_google_ignoreList=_.x_google_ignoreList;if(typeof _.debugId!=="undefined")this.debugId=_.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d_(this.toString())}}function i_(_){let z=_.split(`
1
+ import{Uc as QZ,Wc as ZZ}from"./chunk-0pctvmzj.js";var U_=ZZ((BO,N_)=>{var B_,d0,i0,o0,n0,r0,U0,m1,C0,s0,M_,a0,w0,t0,e0,_1,e,J_,z1,Z1,OZ;t0=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;w0=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;d0=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;_1=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;a0=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;e=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Z1=/[\t\v\f\ufeff\p{Zs}]+/yu;C0=/\r?\n|[\r\u2028\u2029]/y;s0=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;e0=/\/\/.*/y;B_=/^#!.*/;o0=/[<>.:={}]|\/(?![\/*])/y;i0=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;n0=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;r0=/[^<>{}]+/y;z1=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;J_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;U0=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;m1=/^(?:return|throw|yield)$/;M_=RegExp(C0.source);N_.exports=OZ=function*(_,{jsx:z=!1}={}){var Z,O,Q,j,H,$,K,W,Y,G,V,q,C,B;if({length:$}=_,j=0,H="",B=[{tag:"JS"}],Z=[],V=0,q=!1,K=B_.exec(_))yield{type:"HashbangComment",value:K[0]},j=K[0].length;while(j<$){switch(W=B[B.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[j]==="/"&&(z1.test(H)||U0.test(H))){if(t0.lastIndex=j,K=t0.exec(_)){j=t0.lastIndex,H=K[0],q=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}}if(w0.lastIndex=j,K=w0.exec(_)){switch(C=K[0],Y=w0.lastIndex,G=C,C){case"(":if(H==="?NonExpressionParenKeyword")B.push({tag:"JSNonExpressionParen",nesting:V});V++,q=!1;break;case")":if(V--,q=!0,W.tag==="JSNonExpressionParen"&&V===W.nesting)B.pop(),G="?NonExpressionParenEnd",q=!1;break;case"{":w0.lastIndex=0,Q=!J_.test(H)&&(z1.test(H)||U0.test(H)),Z.push(Q),q=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(Z.length===W.nesting){if(e.lastIndex=j,K=e.exec(_),j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",q=!1,yield{type:"TemplateMiddle",value:K[0]};else B.pop(),q=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"};continue}break;case"InterpolationInJSX":if(Z.length===W.nesting){B.pop(),j+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}q=Z.pop(),G=q?"?ExpressionBraceEnd":"}";break;case"]":q=!0;break;case"++":case"--":G=q?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(z1.test(H)||U0.test(H))){B.push({tag:"JSXTag"}),j+=1,H="<",yield{type:"JSXPunctuator",value:C};continue}q=!1;break;default:q=!1}j=Y,H=G,yield{type:"Punctuator",value:C};continue}if(d0.lastIndex=j,K=d0.exec(_)){switch(j=d0.lastIndex,G=K[0],K[0]){case"for":case"if":case"while":case"with":if(H!=="."&&H!=="?.")G="?NonExpressionParenKeyword"}H=G,q=!U0.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(_1.lastIndex=j,K=_1.exec(_)){j=_1.lastIndex,H=K[0],q=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(a0.lastIndex=j,K=a0.exec(_)){j=a0.lastIndex,H=K[0],q=!0,yield{type:"NumericLiteral",value:K[0]};continue}if(e.lastIndex=j,K=e.exec(_)){if(j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",B.push({tag:"InterpolationInTemplate",nesting:Z.length}),q=!1,yield{type:"TemplateHead",value:K[0]};else q=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"};continue}break;case"JSXTag":case"JSXTagEnd":if(o0.lastIndex=j,K=o0.exec(_)){switch(j=o0.lastIndex,G=K[0],K[0]){case"<":B.push({tag:"JSXTag"});break;case">":if(B.pop(),H==="/"||W.tag==="JSXTagEnd")G="?JSX",q=!0;else B.push({tag:"JSXChildren"});break;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),G="?InterpolationInJSX",q=!1;break;case"/":if(H==="<"){if(B.pop(),B[B.length-1].tag==="JSXChildren")B.pop();B.push({tag:"JSXTagEnd"})}}H=G,yield{type:"JSXPunctuator",value:K[0]};continue}if(i0.lastIndex=j,K=i0.exec(_)){j=i0.lastIndex,H=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(n0.lastIndex=j,K=n0.exec(_)){j=n0.lastIndex,H=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(r0.lastIndex=j,K=r0.exec(_)){j=r0.lastIndex,H=K[0],yield{type:"JSXText",value:K[0]};continue}switch(_[j]){case"<":B.push({tag:"JSXTag"}),j++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),j++,H="?InterpolationInJSX",q=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Z1.lastIndex=j,K=Z1.exec(_)){j=Z1.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(C0.lastIndex=j,K=C0.exec(_)){if(j=C0.lastIndex,q=!1,m1.test(H))H="?NoLineTerminatorHere";yield{type:"LineTerminatorSequence",value:K[0]};continue}if(s0.lastIndex=j,K=s0.exec(_)){if(j=s0.lastIndex,M_.test(K[0])){if(q=!1,m1.test(H))H="?NoLineTerminatorHere"}yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(e0.lastIndex=j,K=e0.exec(_)){j=e0.lastIndex,q=!1,yield{type:"SingleLineComment",value:K[0]};continue}O=String.fromCodePoint(_.codePointAt(j)),j+=O.length,H=O,q=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:O}}return}});var D_=/^[A-Za-z]:\//;function K0(_=""){if(!_)return _;return _.replace(/\\/g,"/").replace(D_,(z)=>z.toUpperCase())}var v_=/^[/\\]{2}/,y_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,i1=/^[A-Za-z]:$/,d1=/^\/([A-Za-z]:)?$/,S_=/.(\.[^./]+|\.)$/,f_=/^[/\\]|^[a-zA-Z]:[/\\]/;var o1=function(_){if(_.length===0)return".";_=K0(_);let z=_.match(v_),Z=l(_),O=_[_.length-1]==="/";if(_=j1(_,!Z),_.length===0){if(Z)return"/";return O?"./":"."}if(O)_+="/";if(i1.test(_))_+="/";if(z){if(!Z)return`//./${_}`;return`//${_}`}return Z&&!l(_)?`/${_}`:_},I_=function(..._){let z="";for(let Z of _){if(!Z)continue;if(z.length>0){let O=z[z.length-1]==="/",Q=Z[0]==="/";if(O&&Q)z+=Z.slice(1);else z+=O||Q?Z:`/${Z}`}else z+=Z}return o1(z)};function b_(){if(typeof process!=="undefined"&&typeof process.cwd==="function")return process.cwd().replace(/\\/g,"/");return"/"}var $0=function(..._){_=_.map((O)=>K0(O));let z="",Z=!1;for(let O=_.length-1;O>=-1&&!Z;O--){let Q=O>=0?_[O]:b_();if(!Q||Q.length===0)continue;z=`${Q}/${z}`,Z=l(Q)}if(z=j1(z,!Z),Z&&!l(z))return`/${z}`;return z.length>0?z:"."};function j1(_,z){let Z="",O=0,Q=-1,j=0,H=null;for(let $=0;$<=_.length;++$){if($<_.length)H=_[$];else if(H==="/")break;else H="/";if(H==="/"){if(Q===$-1||j===1);else if(j===2){if(Z.length<2||O!==2||Z[Z.length-1]!=="."||Z[Z.length-2]!=="."){if(Z.length>2){let K=Z.lastIndexOf("/");if(K===-1)Z="",O=0;else Z=Z.slice(0,K),O=Z.length-1-Z.lastIndexOf("/");Q=$,j=0;continue}else if(Z.length>0){Z="",O=0,Q=$,j=0;continue}}if(z)Z+=Z.length>0?"/..":"..",O=2}else{if(Z.length>0)Z+=`/${_.slice(Q+1,$)}`;else Z=_.slice(Q+1,$);O=$-Q-1}Q=$,j=0}else if(H==="."&&j!==-1)++j;else j=-1}return Z}var l=function(_){return y_.test(_)};var n1=function(_){if(_==="..")return"";let z=S_.exec(K0(_));return z&&z[1]||""},H1=function(_,z){let Z=$0(_).replace(d1,"$1").split("/"),O=$0(z).replace(d1,"$1").split("/");if(O[0][1]===":"&&Z[0][1]===":"&&Z[0]!==O[0])return O.join("/");let Q=[...Z];for(let j of Q){if(O[0]!==j)break;Z.shift(),O.shift()}return[...Z.map(()=>".."),...O].join("/")},r1=function(_){let z=K0(_).replace(/\/$/,"").split("/").slice(0,-1);if(z.length===1&&i1.test(z[0]))z[0]+="/";return z.join("/")||(l(_)?"/":".")};var s1=function(_,z){let Z=K0(_).split("/"),O="";for(let Q=Z.length-1;Q>=0;Q--){let j=Z[Q];if(j){O=j;break}}return z&&O.endsWith(z)?O.slice(0,-z.length):O},k_=function(_){let z=f_.exec(_)?.[0]?.replace(/\\/g,"/")||"",Z=s1(_),O=n1(Z);return{root:z,dir:r1(_),base:Z,ext:O,name:Z.slice(0,Z.length-O.length)}};var x_=/\d/,h_=["-","_","/","."];function g_(_=""){if(x_.test(_))return;return _!==_.toLowerCase()}function a1(_,z){let Z=z??h_,O=[];if(!_||typeof _!=="string")return O;let Q="",j,H;for(let $ of _){let K=Z.includes($);if(K===!0){O.push(Q),Q="",j=void 0;continue}let W=g_($);if(H===!1){if(j===!1&&W===!0){O.push(Q),Q=$,j=W;continue}if(j===!0&&W===!1&&Q.length>1){let Y=Q.at(-1);O.push(Q.slice(0,Math.max(0,Q.length-1))),Q=Y+$,j=W;continue}}Q+=$,j=W,H=K}return O.push(Q),O}function u_(_){return _?_[0].toUpperCase()+_.slice(1):""}function m_(_){return _?_[0].toLowerCase()+_.slice(1):""}function l_(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>u_(z?.normalize?Z.toLowerCase():Z)).join(""):""}function R1(_,z){return m_(l_(_||"",z))}function T0(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>Z.toLowerCase()).join(z??"-"):""}var _2=new Uint8Array(64),p_=new Uint8Array(128);for(let _=0;_<64;_++){let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(_);_2[_]=z,p_[z]=_}function W0(_,z,Z){let O=z-Z;O=O<0?-O<<1|1:O<<1;do{let Q=O&31;if(O>>>=5,O>0)Q|=32;_.write(_2[Q])}while(O>0);return z}var t1=16384,e1=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let z="";for(let Z=0;Z<_.length;Z++)z+=String.fromCharCode(_[Z]);return z}};class z2{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(t1)}write(_){let{buffer:z}=this;if(z[this.pos++]=_,this.pos===t1)this.out+=e1.decode(z),this.pos=0}flush(){let{buffer:_,out:z,pos:Z}=this;return Z>0?z+e1.decode(_.subarray(0,Z)):z}}function Z2(_){let z=new z2,Z=0,O=0,Q=0,j=0;for(let H=0;H<_.length;H++){let $=_[H];if(H>0)z.write(59);if($.length===0)continue;let K=0;for(let W=0;W<$.length;W++){let Y=$[W];if(W>0)z.write(44);if(K=W0(z,Y[0],K),Y.length===1)continue;if(Z=W0(z,Y[1],Z),O=W0(z,Y[2],O),Q=W0(z,Y[3],Q),Y.length===4)continue;j=W0(z,Y[4],j)}}return z.flush()}class E0{constructor(_){this.bits=_ instanceof E0?_.bits.slice():[]}add(_){this.bits[_>>5]|=1<<(_&31)}has(_){return!!(this.bits[_>>5]&1<<(_&31))}}class G0{constructor(_,z,Z){this.start=_,this.end=z,this.original=Z,this.intro="",this.outro="",this.content=Z,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(_){this.outro+=_}appendRight(_){this.intro=this.intro+_}clone(){let _=new G0(this.start,this.end,this.original);return _.intro=this.intro,_.outro=this.outro,_.content=this.content,_.storeName=this.storeName,_.edited=this.edited,_}contains(_){return this.start<_&&_<this.end}eachNext(_){let z=this;while(z)_(z),z=z.next}eachPrevious(_){let z=this;while(z)_(z),z=z.previous}edit(_,z,Z){if(this.content=_,!Z)this.intro="",this.outro="";return this.storeName=z,this.edited=!0,this}prependLeft(_){this.outro=_+this.outro}prependRight(_){this.intro=_+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(_){let z=_-this.start,Z=this.original.slice(0,z),O=this.original.slice(z);this.original=Z;let Q=new G0(_,this.end,O);if(Q.outro=this.outro,this.outro="",this.end=_,this.edited)Q.edit("",!1),this.content="";else this.content=Z;if(Q.next=this.next,Q.next)Q.next.previous=Q;return Q.previous=this,this.next=Q,Q}toString(){return this.intro+this.content+this.outro}trimEnd(_){if(this.outro=this.outro.replace(_,""),this.outro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){if(this.split(this.start+z.length).edit("",void 0,!0),this.edited)this.edit(z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(_,""),this.intro.length)return!0}trimStart(_){if(this.intro=this.intro.replace(_,""),this.intro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){let Z=this.split(this.end-z.length);if(this.edited)Z.edit(z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(_,""),this.outro.length)return!0}}function c_(){if(typeof globalThis!=="undefined"&&typeof globalThis.btoa==="function")return(_)=>globalThis.btoa(unescape(encodeURIComponent(_)));else if(typeof Buffer==="function")return(_)=>Buffer.from(_,"utf-8").toString("base64");else return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var d_=c_();class Q2{constructor(_){if(this.version=3,this.file=_.file,this.sources=_.sources,this.sourcesContent=_.sourcesContent,this.names=_.names,this.mappings=Z2(_.mappings),typeof _.x_google_ignoreList!=="undefined")this.x_google_ignoreList=_.x_google_ignoreList;if(typeof _.debugId!=="undefined")this.debugId=_.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d_(this.toString())}}function i_(_){let z=_.split(`
2
2
  `),Z=z.filter((j)=>/^\t+/.test(j)),O=z.filter((j)=>/^ {2,}/.test(j));if(Z.length===0&&O.length===0)return null;if(Z.length>=O.length)return"\t";let Q=O.reduce((j,H)=>{let $=/^ +/.exec(H)[0].length;return Math.min($,j)},1/0);return new Array(Q+1).join(" ")}function o_(_,z){let Z=_.split(/[/\\]/),O=z.split(/[/\\]/);Z.pop();while(Z[0]===O[0])Z.shift(),O.shift();if(Z.length){let Q=Z.length;while(Q--)Z[Q]=".."}return Z.concat(O).join("/")}var n_=Object.prototype.toString;function r_(_){return n_.call(_)==="[object Object]"}function O2(_){let z=_.split(`
3
3
  `),Z=[];for(let O=0,Q=0;O<z.length;O++)Z.push(Q),Q+=z[O].length+1;return function O(Q){let j=0,H=Z.length;while(j<H){let W=j+H>>1;if(Q<Z[W])H=W;else j=W+1}let $=j-1,K=Q-Z[$];return{line:$,column:K}}}var s_=/\w/;class j2{constructor(_){this.hires=_,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(_,z,Z,O){if(z.length){let Q=z.length-1,j=z.indexOf(`
4
4
  `,0),H=-1;while(j>=0&&Q>j){let K=[this.generatedCodeColumn,_,Z.line,Z.column];if(O>=0)K.push(O);this.rawSegments.push(K),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,H=j,j=z.indexOf(`
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ia as gr,Ja as jr,Ka as nr,La as ir,Ma as Ir,Na as ar,Oa as Se,Pa as fr,Qa as kr,Ra as Nr,Sa as we,Ta as wr,Ua as Ne,Va as Cr,Wa as Ar,Xa as Gr,Ya as Hr,Za as Lr,_a as mr}from"./chunk-f0ftye71.js";import{lc as Oe,mc as $r,nc as B,oc as Tr,pc as E,qc as w}from"./chunk-fvdx05dx.js";import{sc as hr,vc as Pr,wc as Sr,zc as Mr}from"./chunk-rewjb3gf.js";import"./chunk-sgrntkej.js";import"./chunk-hjdz5p2e.js";import"./chunk-cptthhq1.js";import{Tc as d}from"./chunk-2pj0cr49.js";var H=d((X)=>{Object.defineProperty(X,"__esModule",{value:!0});X.resolveHttpAuthSchemeConfig=X.defaultSSOOIDCHttpAuthSchemeProvider=X.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var xe=w(),K=Oe(),ce=async(e,r,l)=>{return{operation:K.getSmithyContext(r).operation,region:await K.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};X.defaultSSOOIDCHttpAuthSchemeParametersProvider=ce;function oe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,l)=>({signingProperties:{config:r,context:l}})}}function ue(e){return{schemeId:"smithy.api#noAuth"}}var pe=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(ue(e));break}default:r.push(oe(e))}return r};X.defaultSSOOIDCHttpAuthSchemeProvider=pe;var te=(e)=>{let r=xe.resolveAwsSdkSigV4Config(e);return Object.assign(r,{})};X.resolveHttpAuthSchemeConfig=te});var p=d((o)=>{Object.defineProperty(o,"__esModule",{value:!0});o.ruleSet=void 0;var m="required",S="fn",N="argv",U="ref",J=!0,Q="isSet",k="booleanEquals",F="error",_="endpoint",s="tree",L="PartitionResult",V="getAttr",Z={[m]:!1,type:"String"},$={[m]:!0,default:!1,type:"Boolean"},h={[U]:"Endpoint"},O={[S]:k,[N]:[{[U]:"UseFIPS"},!0]},x={[S]:k,[N]:[{[U]:"UseDualStack"},!0]},P={},g={[S]:V,[N]:[{[U]:L},"supportsFIPS"]},c={[U]:L},j={[S]:k,[N]:[!0,{[S]:V,[N]:[c,"supportsDualStack"]}]},n=[O],a=[x],f=[{[U]:"Region"}],lr={version:"1.0",parameters:{Region:Z,UseDualStack:$,UseFIPS:$,Endpoint:Z},rules:[{conditions:[{[S]:Q,[N]:[h]}],rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:F},{conditions:a,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:F},{endpoint:{url:h,properties:P,headers:P},type:_}],type:s},{conditions:[{[S]:Q,[N]:f}],rules:[{conditions:[{[S]:"aws.partition",[N]:f,assign:L}],rules:[{conditions:[O,x],rules:[{conditions:[{[S]:k,[N]:[J,g]},j],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:F}],type:s},{conditions:n,rules:[{conditions:[{[S]:k,[N]:[g,J]}],rules:[{conditions:[{[S]:"stringEquals",[N]:[{[S]:V,[N]:[c,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:P,headers:P},type:_},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS is enabled but this partition does not support FIPS",type:F}],type:s},{conditions:a,rules:[{conditions:[j],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"DualStack is enabled but this partition does not support DualStack",type:F}],type:s},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s}],type:s},{error:"Invalid Configuration: Missing Region",type:F}]};o.ruleSet=lr});var re=d((t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.defaultEndpointResolver=void 0;var vr=Ir(),b=ir(),Dr=p(),qr=new b.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),yr=(e,r={})=>{return qr.get(e,()=>b.resolveEndpoint(Dr.ruleSet,{endpointParams:e,logger:r.logger}))};t.defaultEndpointResolver=yr;b.customEndpointFunctions.aws=vr.awsEndpointFunctions});var De=d((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getRuntimeConfig=void 0;var Rr=w(),Er=B(),sr=E(),dr=Nr(),le=Sr(),ie=Pr(),Fr=H(),_r=re(),Ur=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??le.fromBase64,base64Encoder:e?.base64Encoder??le.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_r.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Fr.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new Rr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Er.NoAuthSigner}],logger:e?.logger??new sr.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??dr.parseUrl,utf8Decoder:e?.utf8Decoder??ie.fromUtf8,utf8Encoder:e?.utf8Encoder??ie.toUtf8}};Ie.getRuntimeConfig=Ur});var se=d((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.getRuntimeConfig=void 0;var Vr=Tr(),br=Vr.__importDefault(Cr()),Br=w(),qe=Ar(),C=Se(),Wr=Gr(),ye=Ne(),M=kr(),Pe=Mr(),Yr=Hr(),Kr=wr(),Xr=De(),zr=E(),Jr=Lr(),Qr=E(),Zr=(e)=>{Qr.emitWarningIfUnsupportedVersion(process.version);let r=Jr.resolveDefaultsModeConfig(e),l=()=>r().then(zr.loadConfigsForDefaultMode),v=Xr.getRuntimeConfig(e);Br.emitWarningIfUnsupportedVersion(process.version);let I={profile:e?.profile};return{...v,...e,runtime:"node",defaultsMode:r,bodyLengthChecker:e?.bodyLengthChecker??Yr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??qe.createDefaultUserAgentProvider({serviceId:v.serviceId,clientVersion:br.default.version}),maxAttempts:e?.maxAttempts??M.loadConfig(ye.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??M.loadConfig(C.NODE_REGION_CONFIG_OPTIONS,{...C.NODE_REGION_CONFIG_FILE_OPTIONS,...I}),requestHandler:Pe.NodeHttpHandler.create(e?.requestHandler??l),retryMode:e?.retryMode??M.loadConfig({...ye.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await l()).retryMode||Kr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Wr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Pe.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??M.loadConfig(C.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,I),useFipsEndpoint:e?.useFipsEndpoint??M.loadConfig(C.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,I),userAgentAppId:e?.userAgentAppId??M.loadConfig(qe.NODE_APP_ID_CONFIG_OPTIONS,I)}};Re.getRuntimeConfig=Zr});var Wl=d((Ql,je)=>{var{defineProperty:A,getOwnPropertyDescriptor:Or,getOwnPropertyNames:xr}=Object,cr=Object.prototype.hasOwnProperty,D=(e,r)=>A(e,"name",{value:r,configurable:!0}),or=(e,r)=>{for(var l in r)A(e,l,{get:r[l],enumerable:!0})},ur=(e,r,l,v)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let I of xr(r))if(!cr.call(e,I)&&I!==l)A(e,I,{get:()=>r[I],enumerable:!(v=Or(r,I))||v.enumerable})}return e},pr=(e)=>ur(A({},"__esModule",{value:!0}),e),Ce={};or(Ce,{$Command:()=>He.Command,AccessDeniedException:()=>Le,AuthorizationPendingException:()=>Ve,CreateTokenCommand:()=>he,CreateTokenRequestFilterSensitiveLog:()=>be,CreateTokenResponseFilterSensitiveLog:()=>Be,ExpiredTokenException:()=>We,InternalServerException:()=>Ye,InvalidClientException:()=>Ke,InvalidGrantException:()=>Xe,InvalidRequestException:()=>ze,InvalidScopeException:()=>Je,SSOOIDC:()=>ge,SSOOIDCClient:()=>Ge,SSOOIDCServiceException:()=>y,SlowDownException:()=>Qe,UnauthorizedClientException:()=>Ze,UnsupportedGrantTypeException:()=>$e,__Client:()=>Ae.Client});je.exports=pr(Ce);var de=gr(),tr=jr(),el=nr(),Fe=ar(),rl=Se(),W=B(),ll=fr(),il=we(),_e=Ne(),Ae=E(),Ue=H(),Il=D((e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},"resolveClientEndpointParameters"),vl={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Dl=se(),Me=mr(),Te=hr(),ke=E(),ql=D((e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:l,credentials:v}=e;return{setHttpAuthScheme(I){let q=r.findIndex((G)=>G.schemeId===I.schemeId);if(q===-1)r.push(I);else r.splice(q,1,I)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(I){l=I},httpAuthSchemeProvider(){return l},setCredentials(I){v=I},credentials(){return v}}},"getHttpAuthExtensionConfiguration"),yl=D((e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},"resolveHttpAuthRuntimeConfig"),Pl=D((e,r)=>{let l=Object.assign(Me.getAwsRegionExtensionConfiguration(e),ke.getDefaultExtensionConfiguration(e),Te.getHttpHandlerExtensionConfiguration(e),ql(e));return r.forEach((v)=>v.configure(l)),Object.assign(e,Me.resolveAwsRegionExtensionConfiguration(l),ke.resolveDefaultRuntimeConfig(l),Te.resolveHttpHandlerRuntimeConfig(l),yl(l))},"resolveRuntimeExtensions"),Ge=class extends Ae.Client{static{D(this,"SSOOIDCClient")}config;constructor(...[e]){let r=Dl.getRuntimeConfig(e||{});super(r);this.initConfig=r;let l=Il(r),v=Fe.resolveUserAgentConfig(l),I=_e.resolveRetryConfig(v),q=rl.resolveRegionConfig(I),G=de.resolveHostHeaderConfig(q),ne=il.resolveEndpointConfig(G),ae=Ue.resolveHttpAuthSchemeConfig(ne),fe=Pl(ae,e?.extensions||[]);this.config=fe,this.middlewareStack.use(Fe.getUserAgentPlugin(this.config)),this.middlewareStack.use(_e.getRetryPlugin(this.config)),this.middlewareStack.use(ll.getContentLengthPlugin(this.config)),this.middlewareStack.use(de.getHostHeaderPlugin(this.config)),this.middlewareStack.use(tr.getLoggerPlugin(this.config)),this.middlewareStack.use(el.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(W.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ue.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:D(async(me)=>new W.DefaultIdentityProviderConfig({"aws.auth#sigv4":me.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(W.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},Sl=E(),Nl=we(),Rl=$r(),He=E(),T=E(),El=E(),y=class e extends El.ServiceException{static{D(this,"SSOOIDCServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,e.prototype)}},Le=class e extends y{static{D(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ve=class e extends y{static{D(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},be=D((e)=>({...e,...e.clientSecret&&{clientSecret:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.codeVerifier&&{codeVerifier:T.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),Be=D((e)=>({...e,...e.accessToken&&{accessToken:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.idToken&&{idToken:T.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),We=class e extends y{static{D(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ye=class e extends y{static{D(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(r){super({name:"InternalServerException",$fault:"server",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ke=class e extends y{static{D(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(r){super({name:"InvalidClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Xe=class e extends y{static{D(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},ze=class e extends y{static{D(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Je=class e extends y{static{D(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Qe=class e extends y{static{D(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(r){super({name:"SlowDownException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ze=class e extends y{static{D(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},$e=class e extends y{static{D(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Y=w(),sl=B(),i=E(),dl=D(async(e,r)=>{let l=sl.requestBuilder(e,r),v={"content-type":"application/json"};l.bp("/token");let I;return I=JSON.stringify(i.take(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:D((q)=>i._json(q),"scope")})),l.m("POST").h(v).b(I),l.build()},"se_CreateTokenCommand"),Fl=D(async(e,r)=>{if(e.statusCode!==200&&e.statusCode>=300)return _l(e,r);let l=i.map({$metadata:R(e)}),v=i.expectNonNull(i.expectObject(await Y.parseJsonBody(e.body,r)),"body"),I=i.take(v,{accessToken:i.expectString,expiresIn:i.expectInt32,idToken:i.expectString,refreshToken:i.expectString,tokenType:i.expectString});return Object.assign(l,I),l},"de_CreateTokenCommand"),_l=D(async(e,r)=>{let l={...e,body:await Y.parseJsonErrorBody(e.body,r)},v=Y.loadRestJsonErrorCode(e,l.body);switch(v){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Ml(l,r);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Tl(l,r);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await kl(l,r);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await wl(l,r);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Cl(l,r);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Al(l,r);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Gl(l,r);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Hl(l,r);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Ll(l,r);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Vl(l,r);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await bl(l,r);default:let I=l.body;return Ul({output:e,parsedBody:I,errorCode:v})}},"de_CommandError"),Ul=i.withBaseException(y),Ml=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Le({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AccessDeniedExceptionRes"),Tl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ve({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AuthorizationPendingExceptionRes"),kl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new We({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_ExpiredTokenExceptionRes"),wl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ye({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InternalServerExceptionRes"),Cl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ke({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidClientExceptionRes"),Al=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Xe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidGrantExceptionRes"),Gl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidRequestExceptionRes"),Hl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Je({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidScopeExceptionRes"),Ll=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Qe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_SlowDownExceptionRes"),Vl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnauthorizedClientExceptionRes"),bl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new $e({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnsupportedGrantTypeExceptionRes"),R=D((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"]}),"deserializeMetadata"),he=class extends He.Command.classBuilder().ep(vl).m(function(e,r,l,v){return[Rl.getSerdePlugin(l,this.serialize,this.deserialize),Nl.getEndpointPlugin(l,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(be,Be).ser(dl).de(Fl).build(){static{D(this,"CreateTokenCommand")}},Bl={CreateTokenCommand:he},ge=class extends Ge{static{D(this,"SSOOIDC")}};Sl.createAggregatedClient(Bl,ge)});export default Wl();
2
+ import{Ia as gr,Ja as jr,Ka as nr,La as ir,Ma as Ir,Na as ar,Oa as Se,Pa as fr,Qa as kr,Ra as Nr,Sa as we,Ta as wr,Ua as Ne,Va as Cr,Wa as Ar,Xa as Gr,Ya as Hr,Za as Lr,_a as mr}from"./chunk-rjjeq0tb.js";import{pc as Oe,qc as $r,rc as B,sc as Tr,tc as E,uc as w}from"./chunk-59wz96e5.js";import{Ac as Sr,Cc as Mr,wc as hr,zc as Pr}from"./chunk-51z2y1an.js";import"./chunk-x50q43zy.js";import"./chunk-1xg8yqzr.js";import"./chunk-yen4jxhm.js";import{Wc as d}from"./chunk-0pctvmzj.js";var H=d((X)=>{Object.defineProperty(X,"__esModule",{value:!0});X.resolveHttpAuthSchemeConfig=X.defaultSSOOIDCHttpAuthSchemeProvider=X.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var xe=w(),K=Oe(),ce=async(e,r,l)=>{return{operation:K.getSmithyContext(r).operation,region:await K.normalizeProvider(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};X.defaultSSOOIDCHttpAuthSchemeParametersProvider=ce;function oe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,l)=>({signingProperties:{config:r,context:l}})}}function ue(e){return{schemeId:"smithy.api#noAuth"}}var pe=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(ue(e));break}default:r.push(oe(e))}return r};X.defaultSSOOIDCHttpAuthSchemeProvider=pe;var te=(e)=>{let r=xe.resolveAwsSdkSigV4Config(e);return Object.assign(r,{})};X.resolveHttpAuthSchemeConfig=te});var p=d((o)=>{Object.defineProperty(o,"__esModule",{value:!0});o.ruleSet=void 0;var m="required",S="fn",N="argv",U="ref",J=!0,Q="isSet",k="booleanEquals",F="error",_="endpoint",s="tree",L="PartitionResult",V="getAttr",Z={[m]:!1,type:"String"},$={[m]:!0,default:!1,type:"Boolean"},h={[U]:"Endpoint"},O={[S]:k,[N]:[{[U]:"UseFIPS"},!0]},x={[S]:k,[N]:[{[U]:"UseDualStack"},!0]},P={},g={[S]:V,[N]:[{[U]:L},"supportsFIPS"]},c={[U]:L},j={[S]:k,[N]:[!0,{[S]:V,[N]:[c,"supportsDualStack"]}]},n=[O],a=[x],f=[{[U]:"Region"}],lr={version:"1.0",parameters:{Region:Z,UseDualStack:$,UseFIPS:$,Endpoint:Z},rules:[{conditions:[{[S]:Q,[N]:[h]}],rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:F},{conditions:a,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:F},{endpoint:{url:h,properties:P,headers:P},type:_}],type:s},{conditions:[{[S]:Q,[N]:f}],rules:[{conditions:[{[S]:"aws.partition",[N]:f,assign:L}],rules:[{conditions:[O,x],rules:[{conditions:[{[S]:k,[N]:[J,g]},j],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:F}],type:s},{conditions:n,rules:[{conditions:[{[S]:k,[N]:[g,J]}],rules:[{conditions:[{[S]:"stringEquals",[N]:[{[S]:V,[N]:[c,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:P,headers:P},type:_},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"FIPS is enabled but this partition does not support FIPS",type:F}],type:s},{conditions:a,rules:[{conditions:[j],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:P,headers:P},type:_}],type:s},{error:"DualStack is enabled but this partition does not support DualStack",type:F}],type:s},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:P,headers:P},type:_}],type:s}],type:s},{error:"Invalid Configuration: Missing Region",type:F}]};o.ruleSet=lr});var re=d((t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.defaultEndpointResolver=void 0;var vr=Ir(),b=ir(),Dr=p(),qr=new b.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),yr=(e,r={})=>{return qr.get(e,()=>b.resolveEndpoint(Dr.ruleSet,{endpointParams:e,logger:r.logger}))};t.defaultEndpointResolver=yr;b.customEndpointFunctions.aws=vr.awsEndpointFunctions});var De=d((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getRuntimeConfig=void 0;var Rr=w(),Er=B(),sr=E(),dr=Nr(),le=Sr(),ie=Pr(),Fr=H(),_r=re(),Ur=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??le.fromBase64,base64Encoder:e?.base64Encoder??le.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_r.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Fr.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new Rr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Er.NoAuthSigner}],logger:e?.logger??new sr.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??dr.parseUrl,utf8Decoder:e?.utf8Decoder??ie.fromUtf8,utf8Encoder:e?.utf8Encoder??ie.toUtf8}};Ie.getRuntimeConfig=Ur});var se=d((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.getRuntimeConfig=void 0;var Vr=Tr(),br=Vr.__importDefault(Cr()),Br=w(),qe=Ar(),C=Se(),Wr=Gr(),ye=Ne(),M=kr(),Pe=Mr(),Yr=Hr(),Kr=wr(),Xr=De(),zr=E(),Jr=Lr(),Qr=E(),Zr=(e)=>{Qr.emitWarningIfUnsupportedVersion(process.version);let r=Jr.resolveDefaultsModeConfig(e),l=()=>r().then(zr.loadConfigsForDefaultMode),v=Xr.getRuntimeConfig(e);Br.emitWarningIfUnsupportedVersion(process.version);let I={profile:e?.profile};return{...v,...e,runtime:"node",defaultsMode:r,bodyLengthChecker:e?.bodyLengthChecker??Yr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??qe.createDefaultUserAgentProvider({serviceId:v.serviceId,clientVersion:br.default.version}),maxAttempts:e?.maxAttempts??M.loadConfig(ye.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??M.loadConfig(C.NODE_REGION_CONFIG_OPTIONS,{...C.NODE_REGION_CONFIG_FILE_OPTIONS,...I}),requestHandler:Pe.NodeHttpHandler.create(e?.requestHandler??l),retryMode:e?.retryMode??M.loadConfig({...ye.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await l()).retryMode||Kr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??Wr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Pe.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??M.loadConfig(C.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,I),useFipsEndpoint:e?.useFipsEndpoint??M.loadConfig(C.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,I),userAgentAppId:e?.userAgentAppId??M.loadConfig(qe.NODE_APP_ID_CONFIG_OPTIONS,I)}};Re.getRuntimeConfig=Zr});var Wl=d((Ql,je)=>{var{defineProperty:A,getOwnPropertyDescriptor:Or,getOwnPropertyNames:xr}=Object,cr=Object.prototype.hasOwnProperty,D=(e,r)=>A(e,"name",{value:r,configurable:!0}),or=(e,r)=>{for(var l in r)A(e,l,{get:r[l],enumerable:!0})},ur=(e,r,l,v)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let I of xr(r))if(!cr.call(e,I)&&I!==l)A(e,I,{get:()=>r[I],enumerable:!(v=Or(r,I))||v.enumerable})}return e},pr=(e)=>ur(A({},"__esModule",{value:!0}),e),Ce={};or(Ce,{$Command:()=>He.Command,AccessDeniedException:()=>Le,AuthorizationPendingException:()=>Ve,CreateTokenCommand:()=>he,CreateTokenRequestFilterSensitiveLog:()=>be,CreateTokenResponseFilterSensitiveLog:()=>Be,ExpiredTokenException:()=>We,InternalServerException:()=>Ye,InvalidClientException:()=>Ke,InvalidGrantException:()=>Xe,InvalidRequestException:()=>ze,InvalidScopeException:()=>Je,SSOOIDC:()=>ge,SSOOIDCClient:()=>Ge,SSOOIDCServiceException:()=>y,SlowDownException:()=>Qe,UnauthorizedClientException:()=>Ze,UnsupportedGrantTypeException:()=>$e,__Client:()=>Ae.Client});je.exports=pr(Ce);var de=gr(),tr=jr(),el=nr(),Fe=ar(),rl=Se(),W=B(),ll=fr(),il=we(),_e=Ne(),Ae=E(),Ue=H(),Il=D((e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},"resolveClientEndpointParameters"),vl={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Dl=se(),Me=mr(),Te=hr(),ke=E(),ql=D((e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:l,credentials:v}=e;return{setHttpAuthScheme(I){let q=r.findIndex((G)=>G.schemeId===I.schemeId);if(q===-1)r.push(I);else r.splice(q,1,I)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(I){l=I},httpAuthSchemeProvider(){return l},setCredentials(I){v=I},credentials(){return v}}},"getHttpAuthExtensionConfiguration"),yl=D((e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},"resolveHttpAuthRuntimeConfig"),Pl=D((e,r)=>{let l=Object.assign(Me.getAwsRegionExtensionConfiguration(e),ke.getDefaultExtensionConfiguration(e),Te.getHttpHandlerExtensionConfiguration(e),ql(e));return r.forEach((v)=>v.configure(l)),Object.assign(e,Me.resolveAwsRegionExtensionConfiguration(l),ke.resolveDefaultRuntimeConfig(l),Te.resolveHttpHandlerRuntimeConfig(l),yl(l))},"resolveRuntimeExtensions"),Ge=class extends Ae.Client{static{D(this,"SSOOIDCClient")}config;constructor(...[e]){let r=Dl.getRuntimeConfig(e||{});super(r);this.initConfig=r;let l=Il(r),v=Fe.resolveUserAgentConfig(l),I=_e.resolveRetryConfig(v),q=rl.resolveRegionConfig(I),G=de.resolveHostHeaderConfig(q),ne=il.resolveEndpointConfig(G),ae=Ue.resolveHttpAuthSchemeConfig(ne),fe=Pl(ae,e?.extensions||[]);this.config=fe,this.middlewareStack.use(Fe.getUserAgentPlugin(this.config)),this.middlewareStack.use(_e.getRetryPlugin(this.config)),this.middlewareStack.use(ll.getContentLengthPlugin(this.config)),this.middlewareStack.use(de.getHostHeaderPlugin(this.config)),this.middlewareStack.use(tr.getLoggerPlugin(this.config)),this.middlewareStack.use(el.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(W.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ue.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:D(async(me)=>new W.DefaultIdentityProviderConfig({"aws.auth#sigv4":me.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(W.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},Sl=E(),Nl=we(),Rl=$r(),He=E(),T=E(),El=E(),y=class e extends El.ServiceException{static{D(this,"SSOOIDCServiceException")}constructor(r){super(r);Object.setPrototypeOf(this,e.prototype)}},Le=class e extends y{static{D(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;error_description;constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ve=class e extends y{static{D(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},be=D((e)=>({...e,...e.clientSecret&&{clientSecret:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.codeVerifier&&{codeVerifier:T.SENSITIVE_STRING}}),"CreateTokenRequestFilterSensitiveLog"),Be=D((e)=>({...e,...e.accessToken&&{accessToken:T.SENSITIVE_STRING},...e.refreshToken&&{refreshToken:T.SENSITIVE_STRING},...e.idToken&&{idToken:T.SENSITIVE_STRING}}),"CreateTokenResponseFilterSensitiveLog"),We=class e extends y{static{D(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ye=class e extends y{static{D(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(r){super({name:"InternalServerException",$fault:"server",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ke=class e extends y{static{D(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(r){super({name:"InvalidClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Xe=class e extends y{static{D(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},ze=class e extends y{static{D(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;error_description;constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Je=class e extends y{static{D(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Qe=class e extends y{static{D(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(r){super({name:"SlowDownException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Ze=class e extends y{static{D(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},$e=class e extends y{static{D(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});Object.setPrototypeOf(this,e.prototype),this.error=r.error,this.error_description=r.error_description}},Y=w(),sl=B(),i=E(),dl=D(async(e,r)=>{let l=sl.requestBuilder(e,r),v={"content-type":"application/json"};l.bp("/token");let I;return I=JSON.stringify(i.take(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:D((q)=>i._json(q),"scope")})),l.m("POST").h(v).b(I),l.build()},"se_CreateTokenCommand"),Fl=D(async(e,r)=>{if(e.statusCode!==200&&e.statusCode>=300)return _l(e,r);let l=i.map({$metadata:R(e)}),v=i.expectNonNull(i.expectObject(await Y.parseJsonBody(e.body,r)),"body"),I=i.take(v,{accessToken:i.expectString,expiresIn:i.expectInt32,idToken:i.expectString,refreshToken:i.expectString,tokenType:i.expectString});return Object.assign(l,I),l},"de_CreateTokenCommand"),_l=D(async(e,r)=>{let l={...e,body:await Y.parseJsonErrorBody(e.body,r)},v=Y.loadRestJsonErrorCode(e,l.body);switch(v){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Ml(l,r);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Tl(l,r);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await kl(l,r);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await wl(l,r);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Cl(l,r);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Al(l,r);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Gl(l,r);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Hl(l,r);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await Ll(l,r);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Vl(l,r);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await bl(l,r);default:let I=l.body;return Ul({output:e,parsedBody:I,errorCode:v})}},"de_CommandError"),Ul=i.withBaseException(y),Ml=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Le({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AccessDeniedExceptionRes"),Tl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ve({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_AuthorizationPendingExceptionRes"),kl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new We({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_ExpiredTokenExceptionRes"),wl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ye({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InternalServerExceptionRes"),Cl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ke({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidClientExceptionRes"),Al=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Xe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidGrantExceptionRes"),Gl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidRequestExceptionRes"),Hl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Je({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_InvalidScopeExceptionRes"),Ll=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Qe({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_SlowDownExceptionRes"),Vl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new Ze({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnauthorizedClientExceptionRes"),bl=D(async(e,r)=>{let l=i.map({}),v=e.body,I=i.take(v,{error:i.expectString,error_description:i.expectString});Object.assign(l,I);let q=new $e({$metadata:R(e),...l});return i.decorateServiceException(q,e.body)},"de_UnsupportedGrantTypeExceptionRes"),R=D((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"]}),"deserializeMetadata"),he=class extends He.Command.classBuilder().ep(vl).m(function(e,r,l,v){return[Rl.getSerdePlugin(l,this.serialize,this.deserialize),Nl.getEndpointPlugin(l,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(be,Be).ser(dl).de(Fl).build(){static{D(this,"CreateTokenCommand")}},Bl={CreateTokenCommand:he},ge=class extends Ge{static{D(this,"SSOOIDC")}};Sl.createAggregatedClient(Bl,ge)});export default Wl();
@@ -1 +1 @@
1
- import{Lc as S}from"./chunk-sgrntkej.js";import{Rc as x}from"./chunk-2pj0cr49.js";var q="AWS_PROFILE";var B=(o)=>o.profile||process.env.AWS_PROFILE||"default";import{join as b}from"node:path";import{homedir as N}from"node:os";import{sep as L}from"node:path";var d={},w=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f=()=>{let{HOME:o,USERPROFILE:e,HOMEPATH:t,HOMEDRIVE:r=`C:${L}`}=process.env;if(o)return o;if(e)return e;if(t)return`${r}${t}`;let i=w();if(!d[i])d[i]=N();return d[i]};var v="AWS_CONFIG_FILE",g=()=>process.env[v]||b(f(),".aws","config");var D=x(S(),1);import{join as I}from"node:path";var h=x(S(),1);var O=(o)=>Object.entries(o).filter(([e])=>{let t=e.indexOf(c);if(t===-1)return!1;return Object.values(h.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,r])=>{let i=t.indexOf(c),s=t.substring(0,i)===h.IniSectionType.PROFILE?t.substring(i+1):t;return e[s]=r,e},{...o.default&&{default:o.default}});import{join as j}from"node:path";var y="AWS_SHARED_CREDENTIALS_FILE",_=()=>process.env[y]||j(f(),".aws","credentials");var C=x(S(),1);var $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,G=["__proto__","profile __proto__"],a=(o)=>{let e={},t,r;for(let i of o.split(/\r?\n/)){let s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;let n=s.substring(1,s.length-1),m=$.exec(n);if(m){let[,p,,F]=m;if(Object.values(C.IniSectionType).includes(p))t=[p,F].join(c)}else t=n;if(G.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(t){let n=s.indexOf("=");if(![0,-1].includes(n)){let[m,p]=[s.substring(0,n).trim(),s.substring(n+1).trim()];if(p==="")r=m;else{if(r&&i.trimStart()===i)r=void 0;e[t]=e[t]||{};let F=r?[r,m].join(c):m;e[t][F]=p}}}}return e};import{promises as W}from"node:fs";var{readFile:K}=W,E={},l=(o,e)=>{if(!E[o]||e?.ignoreCache)E[o]=K(o,"utf8");return E[o]};var P=()=>({}),c=".",R=async(o={})=>{let{filepath:e=_(),configFilepath:t=g()}=o,r=f(),i="~/",s=e;if(e.startsWith("~/"))s=I(r,e.slice(2));let u=t;if(t.startsWith("~/"))u=I(r,t.slice(2));let n=await Promise.all([l(u,{ignoreCache:o.ignoreCache}).then(a).then(O).catch(P),l(s,{ignoreCache:o.ignoreCache}).then(a).catch(P)]);return{configFile:n[0],credentialsFile:n[1]}};var T=(o)=>Object.entries(o).filter(([e])=>e.startsWith(D.IniSectionType.SSO_SESSION+c)).reduce((e,[t,r])=>({...e,[t.substring(t.indexOf(c)+1)]:r}),{});var V=()=>({}),Pe=async(o={})=>l(o.configFilepath??g()).then(a).then(T).catch(V);var A=(...o)=>{let e={};for(let t of o)for(let[r,i]of Object.entries(t))if(e[r]!==void 0)Object.assign(e[r],i);else e[r]=i;return e};var He=async(o)=>{let e=await R(o);return A(e.configFile,e.credentialsFile)};import{createHash as U}from"node:crypto";import{join as X}from"node:path";var H=(o)=>{let t=U("sha1").update(o).digest("hex");return X(f(),".aws","sso","cache",`${t}.json`)};import{promises as k}from"node:fs";var{readFile:M}=k,$e=async(o)=>{let e=H(o),t=await M(e,"utf8");return JSON.parse(t)};export{q as Dc,B as Ec,H as Fc,$e as Gc,c as Hc,R as Ic,Pe as Jc,He as Kc};
1
+ import{Oc as S}from"./chunk-x50q43zy.js";import{Uc as x}from"./chunk-0pctvmzj.js";var q="AWS_PROFILE";var B=(o)=>o.profile||process.env.AWS_PROFILE||"default";import{join as b}from"node:path";import{homedir as N}from"node:os";import{sep as L}from"node:path";var d={},w=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f=()=>{let{HOME:o,USERPROFILE:e,HOMEPATH:t,HOMEDRIVE:r=`C:${L}`}=process.env;if(o)return o;if(e)return e;if(t)return`${r}${t}`;let i=w();if(!d[i])d[i]=N();return d[i]};var v="AWS_CONFIG_FILE",g=()=>process.env[v]||b(f(),".aws","config");var D=x(S(),1);import{join as I}from"node:path";var h=x(S(),1);var O=(o)=>Object.entries(o).filter(([e])=>{let t=e.indexOf(c);if(t===-1)return!1;return Object.values(h.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,r])=>{let i=t.indexOf(c),s=t.substring(0,i)===h.IniSectionType.PROFILE?t.substring(i+1):t;return e[s]=r,e},{...o.default&&{default:o.default}});import{join as j}from"node:path";var y="AWS_SHARED_CREDENTIALS_FILE",_=()=>process.env[y]||j(f(),".aws","credentials");var C=x(S(),1);var $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,G=["__proto__","profile __proto__"],a=(o)=>{let e={},t,r;for(let i of o.split(/\r?\n/)){let s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;let n=s.substring(1,s.length-1),m=$.exec(n);if(m){let[,p,,F]=m;if(Object.values(C.IniSectionType).includes(p))t=[p,F].join(c)}else t=n;if(G.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(t){let n=s.indexOf("=");if(![0,-1].includes(n)){let[m,p]=[s.substring(0,n).trim(),s.substring(n+1).trim()];if(p==="")r=m;else{if(r&&i.trimStart()===i)r=void 0;e[t]=e[t]||{};let F=r?[r,m].join(c):m;e[t][F]=p}}}}return e};import{promises as W}from"node:fs";var{readFile:K}=W,E={},l=(o,e)=>{if(!E[o]||e?.ignoreCache)E[o]=K(o,"utf8");return E[o]};var P=()=>({}),c=".",R=async(o={})=>{let{filepath:e=_(),configFilepath:t=g()}=o,r=f(),i="~/",s=e;if(e.startsWith("~/"))s=I(r,e.slice(2));let u=t;if(t.startsWith("~/"))u=I(r,t.slice(2));let n=await Promise.all([l(u,{ignoreCache:o.ignoreCache}).then(a).then(O).catch(P),l(s,{ignoreCache:o.ignoreCache}).then(a).catch(P)]);return{configFile:n[0],credentialsFile:n[1]}};var T=(o)=>Object.entries(o).filter(([e])=>e.startsWith(D.IniSectionType.SSO_SESSION+c)).reduce((e,[t,r])=>({...e,[t.substring(t.indexOf(c)+1)]:r}),{});var V=()=>({}),Pe=async(o={})=>l(o.configFilepath??g()).then(a).then(T).catch(V);var A=(...o)=>{let e={};for(let t of o)for(let[r,i]of Object.entries(t))if(e[r]!==void 0)Object.assign(e[r],i);else e[r]=i;return e};var He=async(o)=>{let e=await R(o);return A(e.configFile,e.credentialsFile)};import{createHash as U}from"node:crypto";import{join as X}from"node:path";var H=(o)=>{let t=U("sha1").update(o).digest("hex");return X(f(),".aws","sso","cache",`${t}.json`)};import{promises as k}from"node:fs";var{readFile:M}=k,$e=async(o)=>{let e=H(o),t=await M(e,"utf8");return JSON.parse(t)};export{q as Gc,B as Hc,H as Ic,$e as Jc,c as Kc,R as Lc,Pe as Mc,He as Nc};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ga as U,Ha as m}from"./chunk-6v69415e.js";import"./chunk-2pj0cr49.js";/*!
2
+ import{Ga as U,Ha as m}from"./chunk-6v69415e.js";import"./chunk-0pctvmzj.js";/*!
3
3
  * Copyright (c) Squirrel Chat et al., All rights reserved.
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  *
@@ -1,2 +1,2 @@
1
- import{Tc as $}from"./chunk-2pj0cr49.js";var S=$((N,Z)=>{var{defineProperty:I,getOwnPropertyDescriptor:z,getOwnPropertyNames:A}=Object,D=Object.prototype.hasOwnProperty,H=(j,b)=>I(j,"name",{value:b,configurable:!0}),M=(j,b)=>{for(var F in b)I(j,F,{get:b[F],enumerable:!0})},J=(j,b,F,B)=>{if(b&&typeof b==="object"||typeof b==="function"){for(let G of A(b))if(!D.call(j,G)&&G!==F)I(j,G,{get:()=>b[G],enumerable:!(B=z(b,G))||B.enumerable})}return j},T=(j)=>J(I({},"__esModule",{value:!0}),j),Y={};M(Y,{CredentialsProviderError:()=>V,ProviderError:()=>K,TokenProviderError:()=>w,chain:()=>O,fromStatic:()=>q,memoize:()=>L});Z.exports=T(Y);var K=class j extends Error{constructor(b,F=!0){let B,G=!0;if(typeof F==="boolean")B=void 0,G=F;else if(F!=null&&typeof F==="object")B=F.logger,G=F.tryNextLink??!0;super(b);this.name="ProviderError",this.tryNextLink=G,Object.setPrototypeOf(this,j.prototype),B?.debug?.(`@smithy/property-provider ${G?"->":"(!)"} ${b}`)}static{H(this,"ProviderError")}static from(b,F=!0){return Object.assign(new this(b.message,F),b)}},V=class j extends K{constructor(b,F=!0){super(b,F);this.name="CredentialsProviderError",Object.setPrototypeOf(this,j.prototype)}static{H(this,"CredentialsProviderError")}},w=class j extends K{constructor(b,F=!0){super(b,F);this.name="TokenProviderError",Object.setPrototypeOf(this,j.prototype)}static{H(this,"TokenProviderError")}},O=H((...j)=>async()=>{if(j.length===0)throw new K("No providers in chain");let b;for(let F of j)try{return await F()}catch(B){if(b=B,B?.tryNextLink)continue;throw B}throw b},"chain"),q=H((j)=>()=>Promise.resolve(j),"fromStatic"),L=H((j,b,F)=>{let B,G,Q,U=!1,W=H(async()=>{if(!G)G=j();try{B=await G,Q=!0,U=!1}finally{G=void 0}return B},"coalesceProvider");if(b===void 0)return async(X)=>{if(!Q||X?.forceRefresh)B=await W();return B};return async(X)=>{if(!Q||X?.forceRefresh)B=await W();if(U)return B;if(F&&!F(B))return U=!0,B;if(b(B))return await W(),B;return B}},"memoize")});
2
- export{S as Qc};
1
+ import{Wc as $}from"./chunk-0pctvmzj.js";var S=$((N,Z)=>{var{defineProperty:I,getOwnPropertyDescriptor:z,getOwnPropertyNames:A}=Object,D=Object.prototype.hasOwnProperty,H=(j,b)=>I(j,"name",{value:b,configurable:!0}),M=(j,b)=>{for(var F in b)I(j,F,{get:b[F],enumerable:!0})},J=(j,b,F,B)=>{if(b&&typeof b==="object"||typeof b==="function"){for(let G of A(b))if(!D.call(j,G)&&G!==F)I(j,G,{get:()=>b[G],enumerable:!(B=z(b,G))||B.enumerable})}return j},T=(j)=>J(I({},"__esModule",{value:!0}),j),Y={};M(Y,{CredentialsProviderError:()=>V,ProviderError:()=>K,TokenProviderError:()=>w,chain:()=>O,fromStatic:()=>q,memoize:()=>L});Z.exports=T(Y);var K=class j extends Error{constructor(b,F=!0){let B,G=!0;if(typeof F==="boolean")B=void 0,G=F;else if(F!=null&&typeof F==="object")B=F.logger,G=F.tryNextLink??!0;super(b);this.name="ProviderError",this.tryNextLink=G,Object.setPrototypeOf(this,j.prototype),B?.debug?.(`@smithy/property-provider ${G?"->":"(!)"} ${b}`)}static{H(this,"ProviderError")}static from(b,F=!0){return Object.assign(new this(b.message,F),b)}},V=class j extends K{constructor(b,F=!0){super(b,F);this.name="CredentialsProviderError",Object.setPrototypeOf(this,j.prototype)}static{H(this,"CredentialsProviderError")}},w=class j extends K{constructor(b,F=!0){super(b,F);this.name="TokenProviderError",Object.setPrototypeOf(this,j.prototype)}static{H(this,"TokenProviderError")}},O=H((...j)=>async()=>{if(j.length===0)throw new K("No providers in chain");let b;for(let F of j)try{return await F()}catch(B){if(b=B,B?.tryNextLink)continue;throw B}throw b},"chain"),q=H((j)=>()=>Promise.resolve(j),"fromStatic"),L=H((j,b,F)=>{let B,G,Q,U=!1,W=H(async()=>{if(!G)G=j();try{B=await G,Q=!0,U=!1}finally{G=void 0}return B},"coalesceProvider");if(b===void 0)return async(X)=>{if(!Q||X?.forceRefresh)B=await W();return B};return async(X)=>{if(!Q||X?.forceRefresh)B=await W();if(U)return B;if(F&&!F(B))return U=!0,B;if(b(B))return await W(),B;return B}},"memoize")});
2
+ export{S as Tc};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J as d6,K as x6,L as F0,M as M0,N as q0,O as Ly,a as Nf,b as Cf,c as zf,d as hy,e as Of,f as $y,g as S0,h as jy,j as Cy,k as Fy,l as Sy,m as Vy,n as By,o as Yy,p as y0,q as Zy,r as uy,s as $0,t as j0,u as f1,v as C0,w as V0,x as I,y as l6,z as B0}from"./chunk-whp9hjd8.js";import{Ca as l8}from"./chunk-ks9kq37e.js";import{Rc as _1,Tc as E,Wc as R}from"./chunk-2pj0cr49.js";var N0=E((K0)=>{Object.defineProperty(K0,"__esModule",{value:!0});K0.splitWhen=K0.flatten=void 0;function ry(f){return f.reduce((_,w)=>[].concat(_,w),[])}K0.flatten=ry;function Ty(f,_){let w=[[]],h=0;for(let S of f)if(_(S))h++,w[h]=[];else w[h].push(S);return w}K0.splitWhen=Ty});var T0=E((U0)=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.isEnoentCodeError=void 0;function Iy(f){return f.code==="ENOENT"}U0.isEnoentCodeError=Iy});var G0=E((I0)=>{Object.defineProperty(I0,"__esModule",{value:!0});I0.createDirentFromStats=void 0;class D0{constructor(f,_){this.name=f,this.isBlockDevice=_.isBlockDevice.bind(_),this.isCharacterDevice=_.isCharacterDevice.bind(_),this.isDirectory=_.isDirectory.bind(_),this.isFIFO=_.isFIFO.bind(_),this.isFile=_.isFile.bind(_),this.isSocket=_.isSocket.bind(_),this.isSymbolicLink=_.isSymbolicLink.bind(_)}}function cy(f,_){return new D0(f,_)}I0.createDirentFromStats=cy});var R0=E((l0)=>{Object.defineProperty(l0,"__esModule",{value:!0});l0.convertPosixPathToPattern=l0.convertWindowsPathToPattern=l0.convertPathToPattern=l0.escapePosixPath=l0.escapeWindowsPath=l0.escape=l0.removeLeadingDotSegment=l0.makeAbsolute=l0.unixify=void 0;var Gy=R("node:os"),Ay=R("node:path"),A0=Gy.platform()==="win32",Hy=2,ky=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,ly=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Py=/^\\\\([.?])/,Ry=/\\(?![!()+@[\]{}])/g;function dy(f){return f.replace(/\\/g,"/")}l0.unixify=dy;function xy(f,_){return Ay.resolve(f,_)}l0.makeAbsolute=xy;function by(f){if(f.charAt(0)==="."){let _=f.charAt(1);if(_==="/"||_==="\\")return f.slice(Hy)}return f}l0.removeLeadingDotSegment=by;l0.escape=A0?y1:F1;function y1(f){return f.replace(ly,"\\$2")}l0.escapeWindowsPath=y1;function F1(f){return f.replace(ky,"\\$2")}l0.escapePosixPath=F1;l0.convertPathToPattern=A0?H0:k0;function H0(f){return y1(f).replace(Py,"//$1").replace(Ry,"/")}l0.convertWindowsPathToPattern=H0;function k0(f){return F1(f)}l0.convertPosixPathToPattern=k0});var x0=E((n6,d0)=>{/*!
2
+ import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J as d6,K as x6,L as F0,M as M0,N as q0,O as Ly,a as Nf,b as Cf,c as zf,d as hy,e as Of,f as $y,g as S0,h as jy,j as Cy,k as Fy,l as Sy,m as Vy,n as By,o as Yy,p as y0,q as Zy,r as uy,s as $0,t as j0,u as f1,v as C0,w as V0,x as I,y as l6,z as B0}from"./chunk-xhnxfews.js";import{Ca as l8}from"./chunk-6bsjhkd1.js";import{Uc as _1,Wc as E,Zc as R}from"./chunk-0pctvmzj.js";var N0=E((K0)=>{Object.defineProperty(K0,"__esModule",{value:!0});K0.splitWhen=K0.flatten=void 0;function ry(f){return f.reduce((_,w)=>[].concat(_,w),[])}K0.flatten=ry;function Ty(f,_){let w=[[]],h=0;for(let S of f)if(_(S))h++,w[h]=[];else w[h].push(S);return w}K0.splitWhen=Ty});var T0=E((U0)=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.isEnoentCodeError=void 0;function Iy(f){return f.code==="ENOENT"}U0.isEnoentCodeError=Iy});var G0=E((I0)=>{Object.defineProperty(I0,"__esModule",{value:!0});I0.createDirentFromStats=void 0;class D0{constructor(f,_){this.name=f,this.isBlockDevice=_.isBlockDevice.bind(_),this.isCharacterDevice=_.isCharacterDevice.bind(_),this.isDirectory=_.isDirectory.bind(_),this.isFIFO=_.isFIFO.bind(_),this.isFile=_.isFile.bind(_),this.isSocket=_.isSocket.bind(_),this.isSymbolicLink=_.isSymbolicLink.bind(_)}}function cy(f,_){return new D0(f,_)}I0.createDirentFromStats=cy});var R0=E((l0)=>{Object.defineProperty(l0,"__esModule",{value:!0});l0.convertPosixPathToPattern=l0.convertWindowsPathToPattern=l0.convertPathToPattern=l0.escapePosixPath=l0.escapeWindowsPath=l0.escape=l0.removeLeadingDotSegment=l0.makeAbsolute=l0.unixify=void 0;var Gy=R("node:os"),Ay=R("node:path"),A0=Gy.platform()==="win32",Hy=2,ky=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,ly=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Py=/^\\\\([.?])/,Ry=/\\(?![!()+@[\]{}])/g;function dy(f){return f.replace(/\\/g,"/")}l0.unixify=dy;function xy(f,_){return Ay.resolve(f,_)}l0.makeAbsolute=xy;function by(f){if(f.charAt(0)==="."){let _=f.charAt(1);if(_==="/"||_==="\\")return f.slice(Hy)}return f}l0.removeLeadingDotSegment=by;l0.escape=A0?y1:F1;function y1(f){return f.replace(ly,"\\$2")}l0.escapeWindowsPath=y1;function F1(f){return f.replace(ky,"\\$2")}l0.escapePosixPath=F1;l0.convertPathToPattern=A0?H0:k0;function H0(f){return y1(f).replace(Py,"//$1").replace(Ry,"/")}l0.convertWindowsPathToPattern=H0;function k0(f){return F1(f)}l0.convertPosixPathToPattern=k0});var x0=E((n6,d0)=>{/*!
3
3
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
4
4
  *
5
5
  * Copyright (c) 2014-2016, Jon Schlinkert.
@@ -31,5 +31,5 @@ import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J
31
31
  `+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>"\r"+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`\r
32
32
  `+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`
33
33
  `+"\t".repeat(_)),new Array(Lf).fill(0).map((f,_)=>"\r"+"\t".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`\r
34
- `+"\t".repeat(_));var tf;(function(f){f.DEFAULT={allowTrailingComma:!1}})(tf||(tf={}));function O8(f,_=[],w=tf.DEFAULT){let h=null,S=[],y=[];function F(q){Array.isArray(S)?S.push(q):h!==null&&(S[h]=q)}return K8(f,{onObjectBegin:()=>{let q={};F(q),y.push(S),S=q,h=null},onObjectProperty:(q)=>{h=q},onObjectEnd:()=>{S=y.pop()},onArrayBegin:()=>{let q=[];F(q),y.push(S),S=q,h=null},onArrayEnd:()=>{S=y.pop()},onLiteralValue:F,onError:(q,$,C)=>{_.push({error:q,offset:$,length:C})}},w),S[0]}function K8(f,_,w=tf.DEFAULT){let h=z8(f,!1),S=[],y=0;function F(r){return r?()=>y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function q(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function $(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice()):()=>!0}function C(r){return r?()=>{y>0?y++:r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice())===!1&&(y=1)}:()=>!0}function j(r){return r?()=>{y>0&&y--,y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter())}:()=>!0}let V=C(_.onObjectBegin),B=$(_.onObjectProperty),W=j(_.onObjectEnd),L=C(_.onArrayBegin),Q=j(_.onArrayEnd),O=$(_.onLiteralValue),U=q(_.onSeparator),b=F(_.onComment),J=q(_.onError),A=w&&w.disallowComments,K=w&&w.allowTrailingComma;function g(){for(;;){let r=h.scan();switch(h.getTokenError()){case 4:X(14);break;case 5:X(15);break;case 3:X(13);break;case 1:A||X(11);break;case 2:X(12);break;case 6:X(16);break}switch(r){case 12:case 13:A?X(10):b();break;case 16:X(1);break;case 15:case 14:break;default:return r}}}function X(r,Y=[],Z=[]){if(J(r),Y.length+Z.length>0){let i=h.getToken();for(;i!==17;){if(Y.indexOf(i)!==-1){g();break}else if(Z.indexOf(i)!==-1)break;i=g()}}}function N(r){let Y=h.getTokenValue();return r?O(Y):(B(Y),S.push(Y)),g(),!0}function G(){switch(h.getToken()){case 11:let r=h.getTokenValue(),Y=Number(r);isNaN(Y)&&(X(2),Y=0),O(Y);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return g(),!0}function v(){return h.getToken()!==10?(X(3,[],[2,5]),!1):(N(!1),h.getToken()===6?(U(":"),g(),H()||X(4,[],[2,5])):X(5,[],[2,5]),S.pop(),!0)}function u(){V(),g();let r=!1;for(;h.getToken()!==2&&h.getToken()!==17;){if(h.getToken()===5){if(r||X(4,[],[]),U(","),g(),h.getToken()===2&&K)break}else r&&X(6,[],[]);v()||X(4,[],[2,5]),r=!0}return W(),h.getToken()!==2?X(7,[2],[]):g(),!0}function k(){L(),g();let r=!0,Y=!1;for(;h.getToken()!==4&&h.getToken()!==17;){if(h.getToken()===5){if(Y||X(4,[],[]),U(","),g(),h.getToken()===4&&K)break}else Y&&X(6,[],[]);r?(S.push(0),r=!1):S[S.length-1]++,H()||X(4,[],[4,5]),Y=!0}return Q(),r||S.pop(),h.getToken()!==4?X(8,[4],[]):g(),!0}function H(){switch(h.getToken()){case 3:return k();case 1:return u();case 10:return N(!0);default:return G()}}return g(),h.getToken()===17?w.allowEmptyContent?!0:(X(4,[],[]),!1):H()?(h.getToken()!==17&&X(9,[],[]),!0):(X(4,[],[]),!1)}var fy;(function(f){f[f.None=0]="None",f[f.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=2]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",f[f.InvalidUnicode=4]="InvalidUnicode",f[f.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",f[f.InvalidCharacter=6]="InvalidCharacter"})(fy||(fy={}));var _y;(function(f){f[f.OpenBraceToken=1]="OpenBraceToken",f[f.CloseBraceToken=2]="CloseBraceToken",f[f.OpenBracketToken=3]="OpenBracketToken",f[f.CloseBracketToken=4]="CloseBracketToken",f[f.CommaToken=5]="CommaToken",f[f.ColonToken=6]="ColonToken",f[f.NullKeyword=7]="NullKeyword",f[f.TrueKeyword=8]="TrueKeyword",f[f.FalseKeyword=9]="FalseKeyword",f[f.StringLiteral=10]="StringLiteral",f[f.NumericLiteral=11]="NumericLiteral",f[f.LineCommentTrivia=12]="LineCommentTrivia",f[f.BlockCommentTrivia=13]="BlockCommentTrivia",f[f.LineBreakTrivia=14]="LineBreakTrivia",f[f.Trivia=15]="Trivia",f[f.Unknown=16]="Unknown",f[f.EOF=17]="EOF"})(_y||(_y={}));var g8=O8,wy;(function(f){f[f.InvalidSymbol=1]="InvalidSymbol",f[f.InvalidNumberFormat=2]="InvalidNumberFormat",f[f.PropertyNameExpected=3]="PropertyNameExpected",f[f.ValueExpected=4]="ValueExpected",f[f.ColonExpected=5]="ColonExpected",f[f.CommaExpected=6]="CommaExpected",f[f.CloseBraceExpected=7]="CloseBraceExpected",f[f.CloseBracketExpected=8]="CloseBracketExpected",f[f.EndOfFileExpected=9]="EndOfFileExpected",f[f.InvalidCommentToken=10]="InvalidCommentToken",f[f.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=12]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",f[f.InvalidUnicode=14]="InvalidUnicode",f[f.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",f[f.InvalidCharacter=16]="InvalidCharacter"})(wy||(wy={}));function t1(f,_){let w=JSON.parse(f,_?.reviver);return s1(f,w,_),w}function p1(f,_){let w=g8(f,_?.errors,_);return s1(f,w,_),w}var D8={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:(f)=>{try{if(r8(f).isFile())return!0}catch{}}};async function I8(f,_={}){let w=Array.isArray(f)?f:[f],h={...D8,..._},S=zf(h.startingFrom),y=S[0]==="/",F=S.split("/").filter(Boolean);if(y)F[0]="/"+F[0];let q=F.findIndex(($)=>$.match(h.rootPattern));if(q===-1)q=0;if(h.reverse)for(let $=q+1;$<=F.length;$++)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}else for(let $=F.length;$>q;$--)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}throw new Error(`Cannot find matching ${f} in ${h.startingFrom} or parent directories`)}function c8(f,_={}){return I8(f,_)}var G8=new Map;async function yy(f,_={}){let w=await f0(f,_),h=_.cache&&typeof _.cache!=="boolean"?_.cache:G8;if(_.cache&&h.has(w))return h.get(w);let S=await T8.readFile(w,"utf8"),y;try{y=t1(S)}catch{y=p1(S)}return h.set(w,y),y}async function f0(f=process.cwd(),_={}){let w=hy(f)?f:await Sy(f,_);return c8("package.json",{startingFrom:w,..._})}import{createRequire as A8}from"node:module";import J9,{dirname as E9,win32 as H8,join as z9}from"node:path";import _0 from"node:process";function k8(f,_={}){if(_.platform==="auto"||!_.platform)_.platform=_0.platform==="win32"?"win32":"posix";if(_0.versions.pnp){let h=_.paths||[];if(h.length===0)h.push(_0.cwd());let S=A8(import.meta.url);try{return S.resolve(f,{paths:h})}catch{}}let w=Fy(f,{url:_.paths});if(_.platform==="win32")return H8.normalize(w);return w}function Kf(f,_={}){try{return k8(f,_)}catch{return}}var E0="3.14.6";function v8(f){let _=[];if(Array.isArray(f.addons))_.push(...f.addons);else{let w=new Map;if(f.addons?.addons?.length){let h=0;for(let S of f.addons.addons)w.set(S.name||`external:custom-${h++}`,S)}if(f.addons?.vueTemplate){if(!w.has(F0))w.set(F0,M0())}if(f.addons?.vueDirectives){if(!w.has(q0))w.set(q0,Ly(typeof f.addons.vueDirectives==="object"?f.addons.vueDirectives:void 0))}_.push(...w.values())}return _}async function m8(f,_,w){let h=w1(f),S=h.original,y=V0(S,w?.transformVirtualImports!==!1&&_.options.virtualImports?.length?{filter:(B)=>!_.options.virtualImports.includes(B),fillChar:"-"}:void 0),F=uy(y),q=F.hasCJS&&!F.hasESM,$=[],C=new Map,j=await _.getImportMap();if(w?.autoImport!==!1){Array.from(y.matchAll(C0)).forEach((W)=>{if(W[1]===".")return null;let L=y[W.index+W[0].length],Q=y[W.index-1];if(L===":"&&!["?","case"].includes(W[1].trim())&&Q!==":")return null;let O=W[2],U=W.index+W[1].length;if(C.get(O)||Number.POSITIVE_INFINITY>U)C.set(O,U)});for(let W of $0)for(let L of y.matchAll(W)){let Q=[...L[1]?.split(f1)||[],...L[2]?.split(f1)||[]];for(let O of Q){let U=O.replace(j0,"").trim();C.delete(U)}}let B=new Set(C.keys());$=Array.from(B).map((W)=>{let L=j.get(W);if(L&&!L.disabled)return L;return C.delete(W),null}).filter(Boolean);for(let W of _.addons)$=await W.matchImports?.call(_,B,$)||$}if(w?.transformVirtualImports!==!1&&_.options.virtualImports?.length){let B=n8(y,j,_.options.virtualImports);B.ranges.forEach(([W,L])=>{h.remove(W,L)}),$.push(...B.imports)}let V=Math.min(...Array.from(C.entries()).map((B)=>B[1]));return{s:h,strippedCode:y,isCJSContext:q,matchedImports:$,firstOccurrence:V}}function n8(f,_,w){let h=[],S=[];if(w?.length)Vy(f).filter((y)=>w.includes(y.specifier)).map((y)=>By(y)).forEach((y)=>{S.push([y.start,y.end]),Object.entries(y.namedImports||{}).forEach(([F,q])=>{let $=_.get(F);if(!$)throw new Error(`[unimport] failed to find "${F}" imported from "${y.specifier}"`);h.push({from:$.from,name:$.name,as:q})})});return{imports:h,ranges:S}}async function Qy(f,_,w){if(w?.parser==="acorn")return import("./chunk-z4zm45jz.js").then((h)=>h.detectImportsAcorn(f,_,w));return m8(f,_,w)}var My=["mts","cts","ts","tsx","mjs","cjs","js","jsx"],e8=`*.{${My.join(",")}}`;function a8(f,_){return`${f.startsWith("!")?"!":""}${zf(_,f.replace(/^!/,""))}`}function s8(f,_){return Cf($y(f)==="*"?Of(f):f,_)}function Xy(f,_){let w=_?.types??!0,h=_?.cwd??X0.cwd(),S=_?.filePatterns||[e8];return f.map((y)=>{let F=typeof y==="string",q=a8(F?y:y.glob,h),$=F?w:y.types??w;if(q.match(/\.\w+$/))return{glob:q,types:$};let C=S.map((j)=>({glob:s8(q,j),types:$}));return[{glob:q,types:$},...C]}).flat()}async function Jy(f,_){let w=(Array.isArray(f)?f:[f]).map((q)=>q.glob),h=(await Wy.default(w,{absolute:!0,cwd:_?.cwd||X0.cwd(),onlyFiles:!0,followSymbolicLinks:!0,unique:!0})).map((q)=>Nf(q)),S=_?.fileFilter||(()=>!0),y=(q)=>w.findIndex(($)=>J0.default.isMatch(q,$));return h.reduce((q,$)=>{let C=y($);if(q[C])q[C].push(Nf($));else q[C]=[Nf($)];return q},[]).map((q)=>q.sort()).flat().filter(S)}async function Ey(f,_){let w=Xy(f,_),h=await Jy(w,_),S=w.filter(($)=>!$.glob.startsWith("!")&&$.types),y=($)=>S.some((C)=>J0.default.isMatch($,C.glob)),F=(await Promise.all(h.map(($)=>h1($,y($))))).flat();return zy(F)}function zy(f){return f.filter((_)=>{if(!_.type)return!0;if(_.declarationType==="enum"||_.declarationType==="class")return!0;return!f.find((w)=>w.as===_.as&&w.name===_.name&&!w.type)})}async function h1(f,_,w=new Set){if(w.has(f))return console.warn(`[unimport] "${f}" is already scanned, skipping`),[];w.add(f);let h=[],S=await x8(f,"utf-8"),y=Yy(S);if(y.find((C)=>C.type==="default")){let C=S0(f).name;if(C==="index")C=S0(f.split("/").slice(0,-1).join("/")).name;let j=/[-_.]/.test(C)?jy(C):C;h.push({name:"default",as:j,from:f})}async function q(C,j){for(let V of C)if(V.type==="named")for(let B of V.names)h.push({name:B,as:B,from:f,...j});else if(V.type==="declaration"){if(V.name){if(h.push({name:V.name,as:V.name,from:f,...j}),V.declarationType==="enum"||V.declarationType==="class")h.push({name:V.name,as:V.name,from:f,type:!0,declarationType:V.declarationType,...j})}}else if(V.type==="star"&&V.specifier)if(V.name)h.push({name:V.name,as:V.name,from:f,...j});else{let B=V.specifier,W=zf(Of(f),B),L=!1;for(let O of My)if(gf(`${W}.${O}`)){W=`${W}.${O}`;break}else if(gf(`${W}/index.${O}`)){W=`${W}/index.${O}`;break}if(gf(W))L=!0;else try{if(W=await Cy(V.specifier),W=Nf(b8(W)),gf(W))L=!0}catch{}if(!L){console.warn(`[unimport] failed to resolve "${W}", skip scanning`);continue}let Q=await h1(W,_,w);h.push(...j?Q.map((O)=>({...O,...j})):Q)}}if(f.match(/\.d\.[mc]?ts$/)){if(_)await q(y,{type:!0}),await q(y0(S),{type:!0})}else if(await q(y),_)await q(y0(S),{type:!0});return h}var qy=Cf(i8.tmpdir(),"unimport"),pf;async function o8(f){return(await t8(f.package,f.url,f.cache)).filter((h)=>{for(let S of f.ignore||[]){if(typeof S==="string"&&S===h)return!1;if(S instanceof RegExp&&S.test(h))return!1;if(typeof S==="function"&&S(h)===!1)return!1}return!0}).map((h)=>({from:f.package,name:h}))}async function t8(f,_,w=!0){let h=await f0(f,{url:_}),y=(await yy(h)).version,F=Cf(qy,`${f}@${y}`,"exports.json");if(w&&pf===void 0)try{pf=p8(qy)}catch{pf=!1}let q=w&&y&&pf;if(q&&gf(F))return JSON.parse(await w0.readFile(F,"utf-8"));let $=await Zy(f,{url:_});if(q)await w0.mkdir(Of(F),{recursive:!0}),await w0.writeFile(F,JSON.stringify($),"utf-8");return $}function p8(f){try{return P8(f,R8.W_OK),!0}catch{return!1}}var f6=I({from:"date-fns",imports:["add","addBusinessDays","addDays","addHours","addISOWeekYears","addMilliseconds","addMinutes","addMonths","addQuarters","addSeconds","addWeeks","addYears","areIntervalsOverlapping","clamp","closestIndexTo","closestTo","compareAsc","compareDesc","constants","daysToWeeks","differenceInBusinessDays","differenceInCalendarDays","differenceInCalendarISOWeekYears","differenceInCalendarISOWeeks","differenceInCalendarMonths","differenceInCalendarQuarters","differenceInCalendarWeeks","differenceInCalendarYears","differenceInDays","differenceInHours","differenceInISOWeekYears","differenceInMilliseconds","differenceInMinutes","differenceInMonths","differenceInQuarters","differenceInSeconds","differenceInWeeks","differenceInYears","eachDayOfInterval","eachHourOfInterval","eachMinuteOfInterval","eachMonthOfInterval","eachQuarterOfInterval","eachWeekOfInterval","eachWeekendOfInterval","eachWeekendOfMonth","eachWeekendOfYear","eachYearOfInterval","endOfDay","endOfDecade","endOfHour","endOfISOWeek","endOfISOWeekYear","endOfMinute","endOfMonth","endOfQuarter","endOfSecond","endOfToday","endOfTomorrow","endOfWeek","endOfYear","endOfYesterday","format","formatDistance","formatDistanceStrict","formatDistanceToNow","formatDistanceToNowStrict","formatDuration","formatISO","formatISO9075","formatISODuration","formatRFC3339","formatRFC7231","formatRelative","fromUnixTime","getDate","getDay","getDayOfYear","getDaysInMonth","getDaysInYear","getDecade","getDefaultOptions","getHours","getISODay","getISOWeek","getISOWeekYear","getISOWeeksInYear","getMilliseconds","getMinutes","getMonth","getOverlappingDaysInIntervals","getQuarter","getSeconds","getTime","getUnixTime","getWeek","getWeekOfMonth","getWeekYear","getWeeksInMonth","getYear","hoursToMilliseconds","hoursToMinutes","hoursToSeconds","intervalToDuration","intlFormat","intlFormatDistance","isAfter","isBefore","isDate","isEqual","isExists","isFirstDayOfMonth","isFriday","isFuture","isLastDayOfMonth","isLeapYear","isMatch","isMonday","isPast","isSameDay","isSameHour","isSameISOWeek","isSameISOWeekYear","isSameMinute","isSameMonth","isSameQuarter","isSameSecond","isSameWeek","isSameYear","isSaturday","isSunday","isThisHour","isThisISOWeek","isThisMinute","isThisMonth","isThisQuarter","isThisSecond","isThisWeek","isThisYear","isThursday","isToday","isTomorrow","isTuesday","isValid","isWednesday","isWeekend","isWithinInterval","isYesterday","lastDayOfDecade","lastDayOfISOWeek","lastDayOfISOWeekYear","lastDayOfMonth","lastDayOfQuarter","lastDayOfWeek","lastDayOfYear","lightFormat","max","milliseconds","millisecondsToHours","millisecondsToMinutes","millisecondsToSeconds","min","minutesToHours","minutesToMilliseconds","minutesToSeconds","monthsToQuarters","monthsToYears","nextDay","nextFriday","nextMonday","nextSaturday","nextSunday","nextThursday","nextTuesday","nextWednesday","parse","parseISO","parseJSON","previousDay","previousFriday","previousMonday","previousSaturday","previousSunday","previousThursday","previousTuesday","previousWednesday","quartersToMonths","quartersToYears","roundToNearestMinutes","secondsToHours","secondsToMilliseconds","secondsToMinutes","set","setDate","setDay","setDayOfYear","setDefaultOptions","setHours","setISODay","setISOWeek","setISOWeekYear","setMilliseconds","setMinutes","setMonth","setQuarter","setSeconds","setWeek","setWeekYear","setYear","startOfDay","startOfDecade","startOfHour","startOfISOWeek","startOfISOWeekYear","startOfMinute","startOfMonth","startOfQuarter","startOfSecond","startOfToday","startOfTomorrow","startOfWeek","startOfWeekYear","startOfYear","startOfYesterday","sub","subBusinessDays","subDays","subHours","subISOWeekYears","subMilliseconds","subMinutes","subMonths","subQuarters","subSeconds","subWeeks","subYears","toDate","weeksToDays","yearsToMonths","yearsToQuarters"]}),_6=I({from:"pinia",imports:["acceptHMRUpdate","createPinia","defineStore","getActivePinia","mapActions","mapGetters","mapState","mapStores","mapWritableState","setActivePinia","setMapStoreSuffix","storeToRefs"]}),w6=I({from:"preact",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),h6=I({from:"quasar",imports:["useQuasar","useDialogPluginComponent","useFormChild","useMeta"]}),S6=I({from:"react",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),Oy=["useOutletContext","useHref","useInRouterContext","useLocation","useNavigationType","useNavigate","useOutlet","useParams","useResolvedPath","useRoutes"],y6=I({from:"react-router",imports:[...Oy]}),F6=I({from:"react-router-dom",imports:[...Oy,"useLinkClickHandler","useSearchParams","Link","NavLink","Navigate","Outlet","Route","Routes"]}),q6=I({from:"rxjs",imports:["of","from","map","tap","filter","forkJoin","throwError","catchError","Observable","mergeMap","switchMap","merge","zip","take","takeUntil","first","lastValueFrom","skip","skipUntil","distinct","distinctUntilChanged","throttle","throttleTime","retry","retryWhen","timeout","delay","debounce","debounceTime","find","every"]}),$6=I({from:"solid-js",imports:["createSignal","createEffect","createMemo","createResource","onMount","onCleanup","onError","untrack","batch","on","createRoot","mergeProps","splitProps","useTransition","observable","mapArray","indexArray","createContext","useContext","children","lazy","createDeferred","createRenderEffect","createSelector","For","Show","Switch","Match","Index","ErrorBoundary","Suspense","SuspenseList"]}),j6=I({from:"solid-js/store",imports:["createStore","produce","reconcile","createMutable"]}),C6=I({from:"solid-js/web",imports:["Dynamic","hydrate","render","renderToString","renderToStringAsync","renderToStream","isServer","Portal"]}),V6=I({from:"solid-js",imports:[$6,j6,C6]}),B6=I({from:"solid-app-router",imports:["Link","NavLink","Navigate","Outlet","Route","Router","Routes","_mergeSearchString","createIntegration","hashIntegration","normalizeIntegration","pathIntegration","staticIntegration","useHref","useIsRouting","useLocation","useMatch","useNavigate","useParams","useResolvedPath","useRouteData","useRoutes","useSearchParams"]}),Y6=I({from:"svelte/animate",imports:["flip"]}),Z6=I({from:"svelte/easing",imports:["back","bounce","circ","cubic","elastic","expo","quad","quart","quint","sine"].reduce((f,_)=>{return f.push(`${_}In`,`${_}Out`,`${_}InOut`),f},["linear"])}),u6=I({from:"svelte/store",imports:["writable","readable","derived","get"]}),L6=I({from:"svelte/motion",imports:["tweened","spring"]}),W6=I({from:"svelte/transition",imports:["fade","blur","fly","slide","scale","draw","crossfade"]}),Q6=I({from:"svelte",imports:["onMount","beforeUpdate","afterUpdate","onDestroy","tick","setContext","getContext","hasContext","getAllContexts","createEventDispatcher"]}),M6=I({from:"@dcloudio/uni-app",imports:["onAddToFavorites","onBackPress","onError","onHide","onLaunch","onLoad","onNavigationBarButtonTap","onNavigationBarSearchInputChanged","onNavigationBarSearchInputClicked","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged","onPageNotFound","onPageScroll","onPullDownRefresh","onReachBottom","onReady","onResize","onShareAppMessage","onShareTimeline","onShow","onTabItemTap","onThemeChange","onUnhandledRejection","onUnload"]}),X6=I({from:"vee-validate",imports:["validate","defineRule","configure","useField","useForm","useFieldArray","useResetForm","useIsFieldDirty","useIsFieldTouched","useIsFieldValid","useIsSubmitting","useValidateField","useIsFormDirty","useIsFormTouched","useIsFormValid","useValidateForm","useSubmitCount","useFieldValue","useFormValues","useFormErrors","useFieldError","useSubmitForm","FormContextKey","FieldContextKey"]}),J6=I({from:"vitepress",imports:["useData","useRoute","useRouter","withBase"]}),E6=I({from:"vitest",imports:["suite","test","describe","it","chai","expect","assert","vitest","vi","beforeAll","afterAll","beforeEach","afterEach"]}),z0=["onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onErrorCaptured","onDeactivated","onMounted","onServerPrefetch","onUnmounted","onUpdated","useAttrs","useSlots","computed","customRef","isReadonly","isRef","isProxy","isReactive","markRaw","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","triggerRef","toRaw","toRef","toRefs","toValue","unref","watch","watchEffect","watchPostEffect","watchSyncEffect","defineComponent","defineAsyncComponent","getCurrentInstance","h","inject","nextTick","provide","useCssModule","createApp","effectScope","EffectScope","getCurrentScope","onScopeDispose",...["Component","ComponentPublicInstance","ComputedRef","DirectiveBinding","ExtractDefaultPropTypes","ExtractPropTypes","ExtractPublicPropTypes","InjectionKey","PropType","Ref","MaybeRef","MaybeRefOrGetter","VNode","WritableComputedRef"].map((f)=>({name:f,type:!0}))],z6=I({from:"vue",imports:[...z0,"onRenderTracked","onRenderTriggered","resolveComponent","useCssVars","useModel","onWatcherCleanup","useId","useTemplateRef"]}),O6=I({from:"@vue/composition-api",imports:z0}),K6=I({from:"vue-demi",imports:z0}),g6=I({from:"vue-i18n",imports:["useI18n"]}),N6=I({from:"vue/macros",imports:["$","$$","$ref","$shallowRef","$toRef","$customRef","$computed"]}),U6=I({from:"vue-router",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),r6=I({from:"vue-router/composables",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),h0,T6=()=>{let f=["toRefs","utils"];if(!h0)try{let _=Kf("@vueuse/core")||X0.cwd(),w=Kf("@vueuse/core/indexes.json")||Kf("@vueuse/metadata/index.json")||Kf("@vueuse/metadata/index.json",{paths:[_]}),h=JSON.parse(d8(w,"utf-8"));h0=I({from:"@vueuse/core",imports:h.functions.filter((S)=>["core","shared"].includes(S.package)).map((S)=>S.name).filter((S)=>S&&S.length>=4&&!f.includes(S))})}catch(_){throw console.error(_),new Error("[auto-import] failed to load @vueuse/core, have you installed it?")}return h0},D6=I({from:"@vueuse/head",imports:["useHead"]}),I6=I({from:"vuex",imports:["createStore","createLogger","mapState","mapGetters","mapActions","mapMutations","createNamespacedHelpers","useStore"]}),Ky={"@vue/composition-api":O6,"@vueuse/core":T6,"@vueuse/head":D6,pinia:_6,preact:w6,quasar:h6,react:S6,"react-router":y6,"react-router-dom":F6,svelte:Q6,"svelte/animate":Y6,"svelte/easing":Z6,"svelte/motion":L6,"svelte/store":u6,"svelte/transition":W6,"vee-validate":X6,vitepress:J6,"vue-demi":K6,"vue-i18n":g6,"vue-router":U6,"vue-router-composables":r6,vue:z6,"vue/macros":N6,vuex:I6,vitest:E6,"uni-app":M6,"solid-js":V6,"solid-app-router":B6,rxjs:q6,"date-fns":f6},c6=["from","priority","disabled","dtsDisabled","meta","type"];async function O0(f){let _=[];if("package"in f)return await o8(f);let w={};c6.forEach((h)=>{if(h in f)w[h]=f[h]});for(let h of f.imports)if(typeof h==="string")_.push({...w,name:h,as:h});else if(Array.isArray(h))_.push({...w,name:h[0],as:h[1]||h[0],from:h[2]||f.from});else if(h.imports)_.push(...await O0(h));else _.push({...w,...h});return _}async function gy(f){return(await Promise.all(f.map(async(w)=>{let h=typeof w==="string"?Ky[w]:w;if(typeof h==="function")h=h();return await O0(h)}))).flat()}function G6(f){let _=A6(f);async function w(q){let $={resolvePath:(W)=>Z0(W.typeFrom||W.from),...q},{typeReExports:C=!0}=$,j=await _.getImports(),V=u0(j.filter((W)=>!W.type&&!W.dtsDisabled),$),B=j.filter((W)=>W.type);if(C&&B.length)V+=`
34
+ `+"\t".repeat(_));var tf;(function(f){f.DEFAULT={allowTrailingComma:!1}})(tf||(tf={}));function O8(f,_=[],w=tf.DEFAULT){let h=null,S=[],y=[];function F(q){Array.isArray(S)?S.push(q):h!==null&&(S[h]=q)}return K8(f,{onObjectBegin:()=>{let q={};F(q),y.push(S),S=q,h=null},onObjectProperty:(q)=>{h=q},onObjectEnd:()=>{S=y.pop()},onArrayBegin:()=>{let q=[];F(q),y.push(S),S=q,h=null},onArrayEnd:()=>{S=y.pop()},onLiteralValue:F,onError:(q,$,C)=>{_.push({error:q,offset:$,length:C})}},w),S[0]}function K8(f,_,w=tf.DEFAULT){let h=z8(f,!1),S=[],y=0;function F(r){return r?()=>y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function q(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function $(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice()):()=>!0}function C(r){return r?()=>{y>0?y++:r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice())===!1&&(y=1)}:()=>!0}function j(r){return r?()=>{y>0&&y--,y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter())}:()=>!0}let V=C(_.onObjectBegin),B=$(_.onObjectProperty),W=j(_.onObjectEnd),L=C(_.onArrayBegin),Q=j(_.onArrayEnd),O=$(_.onLiteralValue),U=q(_.onSeparator),b=F(_.onComment),J=q(_.onError),A=w&&w.disallowComments,K=w&&w.allowTrailingComma;function g(){for(;;){let r=h.scan();switch(h.getTokenError()){case 4:X(14);break;case 5:X(15);break;case 3:X(13);break;case 1:A||X(11);break;case 2:X(12);break;case 6:X(16);break}switch(r){case 12:case 13:A?X(10):b();break;case 16:X(1);break;case 15:case 14:break;default:return r}}}function X(r,Y=[],Z=[]){if(J(r),Y.length+Z.length>0){let i=h.getToken();for(;i!==17;){if(Y.indexOf(i)!==-1){g();break}else if(Z.indexOf(i)!==-1)break;i=g()}}}function N(r){let Y=h.getTokenValue();return r?O(Y):(B(Y),S.push(Y)),g(),!0}function G(){switch(h.getToken()){case 11:let r=h.getTokenValue(),Y=Number(r);isNaN(Y)&&(X(2),Y=0),O(Y);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return g(),!0}function v(){return h.getToken()!==10?(X(3,[],[2,5]),!1):(N(!1),h.getToken()===6?(U(":"),g(),H()||X(4,[],[2,5])):X(5,[],[2,5]),S.pop(),!0)}function u(){V(),g();let r=!1;for(;h.getToken()!==2&&h.getToken()!==17;){if(h.getToken()===5){if(r||X(4,[],[]),U(","),g(),h.getToken()===2&&K)break}else r&&X(6,[],[]);v()||X(4,[],[2,5]),r=!0}return W(),h.getToken()!==2?X(7,[2],[]):g(),!0}function k(){L(),g();let r=!0,Y=!1;for(;h.getToken()!==4&&h.getToken()!==17;){if(h.getToken()===5){if(Y||X(4,[],[]),U(","),g(),h.getToken()===4&&K)break}else Y&&X(6,[],[]);r?(S.push(0),r=!1):S[S.length-1]++,H()||X(4,[],[4,5]),Y=!0}return Q(),r||S.pop(),h.getToken()!==4?X(8,[4],[]):g(),!0}function H(){switch(h.getToken()){case 3:return k();case 1:return u();case 10:return N(!0);default:return G()}}return g(),h.getToken()===17?w.allowEmptyContent?!0:(X(4,[],[]),!1):H()?(h.getToken()!==17&&X(9,[],[]),!0):(X(4,[],[]),!1)}var fy;(function(f){f[f.None=0]="None",f[f.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=2]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",f[f.InvalidUnicode=4]="InvalidUnicode",f[f.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",f[f.InvalidCharacter=6]="InvalidCharacter"})(fy||(fy={}));var _y;(function(f){f[f.OpenBraceToken=1]="OpenBraceToken",f[f.CloseBraceToken=2]="CloseBraceToken",f[f.OpenBracketToken=3]="OpenBracketToken",f[f.CloseBracketToken=4]="CloseBracketToken",f[f.CommaToken=5]="CommaToken",f[f.ColonToken=6]="ColonToken",f[f.NullKeyword=7]="NullKeyword",f[f.TrueKeyword=8]="TrueKeyword",f[f.FalseKeyword=9]="FalseKeyword",f[f.StringLiteral=10]="StringLiteral",f[f.NumericLiteral=11]="NumericLiteral",f[f.LineCommentTrivia=12]="LineCommentTrivia",f[f.BlockCommentTrivia=13]="BlockCommentTrivia",f[f.LineBreakTrivia=14]="LineBreakTrivia",f[f.Trivia=15]="Trivia",f[f.Unknown=16]="Unknown",f[f.EOF=17]="EOF"})(_y||(_y={}));var g8=O8,wy;(function(f){f[f.InvalidSymbol=1]="InvalidSymbol",f[f.InvalidNumberFormat=2]="InvalidNumberFormat",f[f.PropertyNameExpected=3]="PropertyNameExpected",f[f.ValueExpected=4]="ValueExpected",f[f.ColonExpected=5]="ColonExpected",f[f.CommaExpected=6]="CommaExpected",f[f.CloseBraceExpected=7]="CloseBraceExpected",f[f.CloseBracketExpected=8]="CloseBracketExpected",f[f.EndOfFileExpected=9]="EndOfFileExpected",f[f.InvalidCommentToken=10]="InvalidCommentToken",f[f.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=12]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",f[f.InvalidUnicode=14]="InvalidUnicode",f[f.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",f[f.InvalidCharacter=16]="InvalidCharacter"})(wy||(wy={}));function t1(f,_){let w=JSON.parse(f,_?.reviver);return s1(f,w,_),w}function p1(f,_){let w=g8(f,_?.errors,_);return s1(f,w,_),w}var D8={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:(f)=>{try{if(r8(f).isFile())return!0}catch{}}};async function I8(f,_={}){let w=Array.isArray(f)?f:[f],h={...D8,..._},S=zf(h.startingFrom),y=S[0]==="/",F=S.split("/").filter(Boolean);if(y)F[0]="/"+F[0];let q=F.findIndex(($)=>$.match(h.rootPattern));if(q===-1)q=0;if(h.reverse)for(let $=q+1;$<=F.length;$++)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}else for(let $=F.length;$>q;$--)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}throw new Error(`Cannot find matching ${f} in ${h.startingFrom} or parent directories`)}function c8(f,_={}){return I8(f,_)}var G8=new Map;async function yy(f,_={}){let w=await f0(f,_),h=_.cache&&typeof _.cache!=="boolean"?_.cache:G8;if(_.cache&&h.has(w))return h.get(w);let S=await T8.readFile(w,"utf8"),y;try{y=t1(S)}catch{y=p1(S)}return h.set(w,y),y}async function f0(f=process.cwd(),_={}){let w=hy(f)?f:await Sy(f,_);return c8("package.json",{startingFrom:w,..._})}import{createRequire as A8}from"node:module";import J9,{dirname as E9,win32 as H8,join as z9}from"node:path";import _0 from"node:process";function k8(f,_={}){if(_.platform==="auto"||!_.platform)_.platform=_0.platform==="win32"?"win32":"posix";if(_0.versions.pnp){let h=_.paths||[];if(h.length===0)h.push(_0.cwd());let S=A8(import.meta.url);try{return S.resolve(f,{paths:h})}catch{}}let w=Fy(f,{url:_.paths});if(_.platform==="win32")return H8.normalize(w);return w}function Kf(f,_={}){try{return k8(f,_)}catch{return}}var E0="3.14.6";function v8(f){let _=[];if(Array.isArray(f.addons))_.push(...f.addons);else{let w=new Map;if(f.addons?.addons?.length){let h=0;for(let S of f.addons.addons)w.set(S.name||`external:custom-${h++}`,S)}if(f.addons?.vueTemplate){if(!w.has(F0))w.set(F0,M0())}if(f.addons?.vueDirectives){if(!w.has(q0))w.set(q0,Ly(typeof f.addons.vueDirectives==="object"?f.addons.vueDirectives:void 0))}_.push(...w.values())}return _}async function m8(f,_,w){let h=w1(f),S=h.original,y=V0(S,w?.transformVirtualImports!==!1&&_.options.virtualImports?.length?{filter:(B)=>!_.options.virtualImports.includes(B),fillChar:"-"}:void 0),F=uy(y),q=F.hasCJS&&!F.hasESM,$=[],C=new Map,j=await _.getImportMap();if(w?.autoImport!==!1){Array.from(y.matchAll(C0)).forEach((W)=>{if(W[1]===".")return null;let L=y[W.index+W[0].length],Q=y[W.index-1];if(L===":"&&!["?","case"].includes(W[1].trim())&&Q!==":")return null;let O=W[2],U=W.index+W[1].length;if(C.get(O)||Number.POSITIVE_INFINITY>U)C.set(O,U)});for(let W of $0)for(let L of y.matchAll(W)){let Q=[...L[1]?.split(f1)||[],...L[2]?.split(f1)||[]];for(let O of Q){let U=O.replace(j0,"").trim();C.delete(U)}}let B=new Set(C.keys());$=Array.from(B).map((W)=>{let L=j.get(W);if(L&&!L.disabled)return L;return C.delete(W),null}).filter(Boolean);for(let W of _.addons)$=await W.matchImports?.call(_,B,$)||$}if(w?.transformVirtualImports!==!1&&_.options.virtualImports?.length){let B=n8(y,j,_.options.virtualImports);B.ranges.forEach(([W,L])=>{h.remove(W,L)}),$.push(...B.imports)}let V=Math.min(...Array.from(C.entries()).map((B)=>B[1]));return{s:h,strippedCode:y,isCJSContext:q,matchedImports:$,firstOccurrence:V}}function n8(f,_,w){let h=[],S=[];if(w?.length)Vy(f).filter((y)=>w.includes(y.specifier)).map((y)=>By(y)).forEach((y)=>{S.push([y.start,y.end]),Object.entries(y.namedImports||{}).forEach(([F,q])=>{let $=_.get(F);if(!$)throw new Error(`[unimport] failed to find "${F}" imported from "${y.specifier}"`);h.push({from:$.from,name:$.name,as:q})})});return{imports:h,ranges:S}}async function Qy(f,_,w){if(w?.parser==="acorn")return import("./chunk-jaw9rsy5.js").then((h)=>h.detectImportsAcorn(f,_,w));return m8(f,_,w)}var My=["mts","cts","ts","tsx","mjs","cjs","js","jsx"],e8=`*.{${My.join(",")}}`;function a8(f,_){return`${f.startsWith("!")?"!":""}${zf(_,f.replace(/^!/,""))}`}function s8(f,_){return Cf($y(f)==="*"?Of(f):f,_)}function Xy(f,_){let w=_?.types??!0,h=_?.cwd??X0.cwd(),S=_?.filePatterns||[e8];return f.map((y)=>{let F=typeof y==="string",q=a8(F?y:y.glob,h),$=F?w:y.types??w;if(q.match(/\.\w+$/))return{glob:q,types:$};let C=S.map((j)=>({glob:s8(q,j),types:$}));return[{glob:q,types:$},...C]}).flat()}async function Jy(f,_){let w=(Array.isArray(f)?f:[f]).map((q)=>q.glob),h=(await Wy.default(w,{absolute:!0,cwd:_?.cwd||X0.cwd(),onlyFiles:!0,followSymbolicLinks:!0,unique:!0})).map((q)=>Nf(q)),S=_?.fileFilter||(()=>!0),y=(q)=>w.findIndex(($)=>J0.default.isMatch(q,$));return h.reduce((q,$)=>{let C=y($);if(q[C])q[C].push(Nf($));else q[C]=[Nf($)];return q},[]).map((q)=>q.sort()).flat().filter(S)}async function Ey(f,_){let w=Xy(f,_),h=await Jy(w,_),S=w.filter(($)=>!$.glob.startsWith("!")&&$.types),y=($)=>S.some((C)=>J0.default.isMatch($,C.glob)),F=(await Promise.all(h.map(($)=>h1($,y($))))).flat();return zy(F)}function zy(f){return f.filter((_)=>{if(!_.type)return!0;if(_.declarationType==="enum"||_.declarationType==="class")return!0;return!f.find((w)=>w.as===_.as&&w.name===_.name&&!w.type)})}async function h1(f,_,w=new Set){if(w.has(f))return console.warn(`[unimport] "${f}" is already scanned, skipping`),[];w.add(f);let h=[],S=await x8(f,"utf-8"),y=Yy(S);if(y.find((C)=>C.type==="default")){let C=S0(f).name;if(C==="index")C=S0(f.split("/").slice(0,-1).join("/")).name;let j=/[-_.]/.test(C)?jy(C):C;h.push({name:"default",as:j,from:f})}async function q(C,j){for(let V of C)if(V.type==="named")for(let B of V.names)h.push({name:B,as:B,from:f,...j});else if(V.type==="declaration"){if(V.name){if(h.push({name:V.name,as:V.name,from:f,...j}),V.declarationType==="enum"||V.declarationType==="class")h.push({name:V.name,as:V.name,from:f,type:!0,declarationType:V.declarationType,...j})}}else if(V.type==="star"&&V.specifier)if(V.name)h.push({name:V.name,as:V.name,from:f,...j});else{let B=V.specifier,W=zf(Of(f),B),L=!1;for(let O of My)if(gf(`${W}.${O}`)){W=`${W}.${O}`;break}else if(gf(`${W}/index.${O}`)){W=`${W}/index.${O}`;break}if(gf(W))L=!0;else try{if(W=await Cy(V.specifier),W=Nf(b8(W)),gf(W))L=!0}catch{}if(!L){console.warn(`[unimport] failed to resolve "${W}", skip scanning`);continue}let Q=await h1(W,_,w);h.push(...j?Q.map((O)=>({...O,...j})):Q)}}if(f.match(/\.d\.[mc]?ts$/)){if(_)await q(y,{type:!0}),await q(y0(S),{type:!0})}else if(await q(y),_)await q(y0(S),{type:!0});return h}var qy=Cf(i8.tmpdir(),"unimport"),pf;async function o8(f){return(await t8(f.package,f.url,f.cache)).filter((h)=>{for(let S of f.ignore||[]){if(typeof S==="string"&&S===h)return!1;if(S instanceof RegExp&&S.test(h))return!1;if(typeof S==="function"&&S(h)===!1)return!1}return!0}).map((h)=>({from:f.package,name:h}))}async function t8(f,_,w=!0){let h=await f0(f,{url:_}),y=(await yy(h)).version,F=Cf(qy,`${f}@${y}`,"exports.json");if(w&&pf===void 0)try{pf=p8(qy)}catch{pf=!1}let q=w&&y&&pf;if(q&&gf(F))return JSON.parse(await w0.readFile(F,"utf-8"));let $=await Zy(f,{url:_});if(q)await w0.mkdir(Of(F),{recursive:!0}),await w0.writeFile(F,JSON.stringify($),"utf-8");return $}function p8(f){try{return P8(f,R8.W_OK),!0}catch{return!1}}var f6=I({from:"date-fns",imports:["add","addBusinessDays","addDays","addHours","addISOWeekYears","addMilliseconds","addMinutes","addMonths","addQuarters","addSeconds","addWeeks","addYears","areIntervalsOverlapping","clamp","closestIndexTo","closestTo","compareAsc","compareDesc","constants","daysToWeeks","differenceInBusinessDays","differenceInCalendarDays","differenceInCalendarISOWeekYears","differenceInCalendarISOWeeks","differenceInCalendarMonths","differenceInCalendarQuarters","differenceInCalendarWeeks","differenceInCalendarYears","differenceInDays","differenceInHours","differenceInISOWeekYears","differenceInMilliseconds","differenceInMinutes","differenceInMonths","differenceInQuarters","differenceInSeconds","differenceInWeeks","differenceInYears","eachDayOfInterval","eachHourOfInterval","eachMinuteOfInterval","eachMonthOfInterval","eachQuarterOfInterval","eachWeekOfInterval","eachWeekendOfInterval","eachWeekendOfMonth","eachWeekendOfYear","eachYearOfInterval","endOfDay","endOfDecade","endOfHour","endOfISOWeek","endOfISOWeekYear","endOfMinute","endOfMonth","endOfQuarter","endOfSecond","endOfToday","endOfTomorrow","endOfWeek","endOfYear","endOfYesterday","format","formatDistance","formatDistanceStrict","formatDistanceToNow","formatDistanceToNowStrict","formatDuration","formatISO","formatISO9075","formatISODuration","formatRFC3339","formatRFC7231","formatRelative","fromUnixTime","getDate","getDay","getDayOfYear","getDaysInMonth","getDaysInYear","getDecade","getDefaultOptions","getHours","getISODay","getISOWeek","getISOWeekYear","getISOWeeksInYear","getMilliseconds","getMinutes","getMonth","getOverlappingDaysInIntervals","getQuarter","getSeconds","getTime","getUnixTime","getWeek","getWeekOfMonth","getWeekYear","getWeeksInMonth","getYear","hoursToMilliseconds","hoursToMinutes","hoursToSeconds","intervalToDuration","intlFormat","intlFormatDistance","isAfter","isBefore","isDate","isEqual","isExists","isFirstDayOfMonth","isFriday","isFuture","isLastDayOfMonth","isLeapYear","isMatch","isMonday","isPast","isSameDay","isSameHour","isSameISOWeek","isSameISOWeekYear","isSameMinute","isSameMonth","isSameQuarter","isSameSecond","isSameWeek","isSameYear","isSaturday","isSunday","isThisHour","isThisISOWeek","isThisMinute","isThisMonth","isThisQuarter","isThisSecond","isThisWeek","isThisYear","isThursday","isToday","isTomorrow","isTuesday","isValid","isWednesday","isWeekend","isWithinInterval","isYesterday","lastDayOfDecade","lastDayOfISOWeek","lastDayOfISOWeekYear","lastDayOfMonth","lastDayOfQuarter","lastDayOfWeek","lastDayOfYear","lightFormat","max","milliseconds","millisecondsToHours","millisecondsToMinutes","millisecondsToSeconds","min","minutesToHours","minutesToMilliseconds","minutesToSeconds","monthsToQuarters","monthsToYears","nextDay","nextFriday","nextMonday","nextSaturday","nextSunday","nextThursday","nextTuesday","nextWednesday","parse","parseISO","parseJSON","previousDay","previousFriday","previousMonday","previousSaturday","previousSunday","previousThursday","previousTuesday","previousWednesday","quartersToMonths","quartersToYears","roundToNearestMinutes","secondsToHours","secondsToMilliseconds","secondsToMinutes","set","setDate","setDay","setDayOfYear","setDefaultOptions","setHours","setISODay","setISOWeek","setISOWeekYear","setMilliseconds","setMinutes","setMonth","setQuarter","setSeconds","setWeek","setWeekYear","setYear","startOfDay","startOfDecade","startOfHour","startOfISOWeek","startOfISOWeekYear","startOfMinute","startOfMonth","startOfQuarter","startOfSecond","startOfToday","startOfTomorrow","startOfWeek","startOfWeekYear","startOfYear","startOfYesterday","sub","subBusinessDays","subDays","subHours","subISOWeekYears","subMilliseconds","subMinutes","subMonths","subQuarters","subSeconds","subWeeks","subYears","toDate","weeksToDays","yearsToMonths","yearsToQuarters"]}),_6=I({from:"pinia",imports:["acceptHMRUpdate","createPinia","defineStore","getActivePinia","mapActions","mapGetters","mapState","mapStores","mapWritableState","setActivePinia","setMapStoreSuffix","storeToRefs"]}),w6=I({from:"preact",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),h6=I({from:"quasar",imports:["useQuasar","useDialogPluginComponent","useFormChild","useMeta"]}),S6=I({from:"react",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),Oy=["useOutletContext","useHref","useInRouterContext","useLocation","useNavigationType","useNavigate","useOutlet","useParams","useResolvedPath","useRoutes"],y6=I({from:"react-router",imports:[...Oy]}),F6=I({from:"react-router-dom",imports:[...Oy,"useLinkClickHandler","useSearchParams","Link","NavLink","Navigate","Outlet","Route","Routes"]}),q6=I({from:"rxjs",imports:["of","from","map","tap","filter","forkJoin","throwError","catchError","Observable","mergeMap","switchMap","merge","zip","take","takeUntil","first","lastValueFrom","skip","skipUntil","distinct","distinctUntilChanged","throttle","throttleTime","retry","retryWhen","timeout","delay","debounce","debounceTime","find","every"]}),$6=I({from:"solid-js",imports:["createSignal","createEffect","createMemo","createResource","onMount","onCleanup","onError","untrack","batch","on","createRoot","mergeProps","splitProps","useTransition","observable","mapArray","indexArray","createContext","useContext","children","lazy","createDeferred","createRenderEffect","createSelector","For","Show","Switch","Match","Index","ErrorBoundary","Suspense","SuspenseList"]}),j6=I({from:"solid-js/store",imports:["createStore","produce","reconcile","createMutable"]}),C6=I({from:"solid-js/web",imports:["Dynamic","hydrate","render","renderToString","renderToStringAsync","renderToStream","isServer","Portal"]}),V6=I({from:"solid-js",imports:[$6,j6,C6]}),B6=I({from:"solid-app-router",imports:["Link","NavLink","Navigate","Outlet","Route","Router","Routes","_mergeSearchString","createIntegration","hashIntegration","normalizeIntegration","pathIntegration","staticIntegration","useHref","useIsRouting","useLocation","useMatch","useNavigate","useParams","useResolvedPath","useRouteData","useRoutes","useSearchParams"]}),Y6=I({from:"svelte/animate",imports:["flip"]}),Z6=I({from:"svelte/easing",imports:["back","bounce","circ","cubic","elastic","expo","quad","quart","quint","sine"].reduce((f,_)=>{return f.push(`${_}In`,`${_}Out`,`${_}InOut`),f},["linear"])}),u6=I({from:"svelte/store",imports:["writable","readable","derived","get"]}),L6=I({from:"svelte/motion",imports:["tweened","spring"]}),W6=I({from:"svelte/transition",imports:["fade","blur","fly","slide","scale","draw","crossfade"]}),Q6=I({from:"svelte",imports:["onMount","beforeUpdate","afterUpdate","onDestroy","tick","setContext","getContext","hasContext","getAllContexts","createEventDispatcher"]}),M6=I({from:"@dcloudio/uni-app",imports:["onAddToFavorites","onBackPress","onError","onHide","onLaunch","onLoad","onNavigationBarButtonTap","onNavigationBarSearchInputChanged","onNavigationBarSearchInputClicked","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged","onPageNotFound","onPageScroll","onPullDownRefresh","onReachBottom","onReady","onResize","onShareAppMessage","onShareTimeline","onShow","onTabItemTap","onThemeChange","onUnhandledRejection","onUnload"]}),X6=I({from:"vee-validate",imports:["validate","defineRule","configure","useField","useForm","useFieldArray","useResetForm","useIsFieldDirty","useIsFieldTouched","useIsFieldValid","useIsSubmitting","useValidateField","useIsFormDirty","useIsFormTouched","useIsFormValid","useValidateForm","useSubmitCount","useFieldValue","useFormValues","useFormErrors","useFieldError","useSubmitForm","FormContextKey","FieldContextKey"]}),J6=I({from:"vitepress",imports:["useData","useRoute","useRouter","withBase"]}),E6=I({from:"vitest",imports:["suite","test","describe","it","chai","expect","assert","vitest","vi","beforeAll","afterAll","beforeEach","afterEach"]}),z0=["onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onErrorCaptured","onDeactivated","onMounted","onServerPrefetch","onUnmounted","onUpdated","useAttrs","useSlots","computed","customRef","isReadonly","isRef","isProxy","isReactive","markRaw","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","triggerRef","toRaw","toRef","toRefs","toValue","unref","watch","watchEffect","watchPostEffect","watchSyncEffect","defineComponent","defineAsyncComponent","getCurrentInstance","h","inject","nextTick","provide","useCssModule","createApp","effectScope","EffectScope","getCurrentScope","onScopeDispose",...["Component","ComponentPublicInstance","ComputedRef","DirectiveBinding","ExtractDefaultPropTypes","ExtractPropTypes","ExtractPublicPropTypes","InjectionKey","PropType","Ref","MaybeRef","MaybeRefOrGetter","VNode","WritableComputedRef"].map((f)=>({name:f,type:!0}))],z6=I({from:"vue",imports:[...z0,"onRenderTracked","onRenderTriggered","resolveComponent","useCssVars","useModel","onWatcherCleanup","useId","useTemplateRef"]}),O6=I({from:"@vue/composition-api",imports:z0}),K6=I({from:"vue-demi",imports:z0}),g6=I({from:"vue-i18n",imports:["useI18n"]}),N6=I({from:"vue/macros",imports:["$","$$","$ref","$shallowRef","$toRef","$customRef","$computed"]}),U6=I({from:"vue-router",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),r6=I({from:"vue-router/composables",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),h0,T6=()=>{let f=["toRefs","utils"];if(!h0)try{let _=Kf("@vueuse/core")||X0.cwd(),w=Kf("@vueuse/core/indexes.json")||Kf("@vueuse/metadata/index.json")||Kf("@vueuse/metadata/index.json",{paths:[_]}),h=JSON.parse(d8(w,"utf-8"));h0=I({from:"@vueuse/core",imports:h.functions.filter((S)=>["core","shared"].includes(S.package)).map((S)=>S.name).filter((S)=>S&&S.length>=4&&!f.includes(S))})}catch(_){throw console.error(_),new Error("[auto-import] failed to load @vueuse/core, have you installed it?")}return h0},D6=I({from:"@vueuse/head",imports:["useHead"]}),I6=I({from:"vuex",imports:["createStore","createLogger","mapState","mapGetters","mapActions","mapMutations","createNamespacedHelpers","useStore"]}),Ky={"@vue/composition-api":O6,"@vueuse/core":T6,"@vueuse/head":D6,pinia:_6,preact:w6,quasar:h6,react:S6,"react-router":y6,"react-router-dom":F6,svelte:Q6,"svelte/animate":Y6,"svelte/easing":Z6,"svelte/motion":L6,"svelte/store":u6,"svelte/transition":W6,"vee-validate":X6,vitepress:J6,"vue-demi":K6,"vue-i18n":g6,"vue-router":U6,"vue-router-composables":r6,vue:z6,"vue/macros":N6,vuex:I6,vitest:E6,"uni-app":M6,"solid-js":V6,"solid-app-router":B6,rxjs:q6,"date-fns":f6},c6=["from","priority","disabled","dtsDisabled","meta","type"];async function O0(f){let _=[];if("package"in f)return await o8(f);let w={};c6.forEach((h)=>{if(h in f)w[h]=f[h]});for(let h of f.imports)if(typeof h==="string")_.push({...w,name:h,as:h});else if(Array.isArray(h))_.push({...w,name:h[0],as:h[1]||h[0],from:h[2]||f.from});else if(h.imports)_.push(...await O0(h));else _.push({...w,...h});return _}async function gy(f){return(await Promise.all(f.map(async(w)=>{let h=typeof w==="string"?Ky[w]:w;if(typeof h==="function")h=h();return await O0(h)}))).flat()}function G6(f){let _=A6(f);async function w(q){let $={resolvePath:(W)=>Z0(W.typeFrom||W.from),...q},{typeReExports:C=!0}=$,j=await _.getImports(),V=u0(j.filter((W)=>!W.type&&!W.dtsDisabled),$),B=j.filter((W)=>W.type);if(C&&B.length)V+=`
35
35
  ${L0(B,$)}`;for(let W of _.addons)V=await W.declaration?.call(_,V,$)??V;return V}async function h(q,$=!0){let C=await h1(q,$);return await _.modifyDynamicImports((j)=>j.filter((V)=>V.from!==q).concat(C)),C}async function S(q=_.options.dirs||[],$=_.options.dirsScanOptions){let C=await Ey(q,$),j=new Set(C.map((V)=>V.from));return await _.modifyDynamicImports((V)=>V.filter((B)=>!j.has(B.from)).concat(C)),C}async function y(q,$,C){let j=await H6(q,$,_,{...f,...C}),V=_.getMetadata();if(V)j.imports.forEach((B)=>{if(V.injectionUsage[B.name]=V.injectionUsage[B.name]||{import:B,count:0,moduleIds:[]},V.injectionUsage[B.name].count++,$&&!V.injectionUsage[B.name].moduleIds.includes($))V.injectionUsage[B.name].moduleIds.push($)});return j}async function F(){if(_.options.dirs?.length)await S()}return{version:E0,init:F,clearDynamicImports:()=>_.clearDynamicImports(),modifyDynamicImports:(q)=>_.modifyDynamicImports(q),scanImportsFromDir:S,scanImportsFromFile:h,getImports:()=>_.getImports(),getImportMap:()=>_.getImportMap(),detectImports:(q)=>Qy(q,_),injectImports:y,generateTypeDeclarations:(q)=>w(q),getMetadata:()=>_.getMetadata(),getInternalContext:()=>_,toExports:async(q,$=!1)=>Y0(await _.getImports(),q,$)}}function A6(f){let _,w=new Map,h=v8(f);f.addons=h,f.commentsDisable=f.commentsDisable??["@unimport-disable","@imports-disable"],f.commentsDebug=f.commentsDebug??["@unimport-debug","@imports-debug"];let S;if(f.collectMeta)S={injectionUsage:{}};let y,F={version:E0,options:f,addons:h,staticImports:[...f.imports||[]].filter(Boolean),dynamicImports:[],modifyDynamicImports:$,clearDynamicImports:C,async getImports(){return await y,q()},async replaceImports(j){return F.staticImports=[...j||[]].filter(Boolean),F.invalidate(),await y,q()},async getImportMap(){return await F.getImports(),w},getMetadata(){return S},invalidate(){_=void 0},resolveId:(j,V)=>f.resolveId?.(j,V)};y=gy(f.presets||[]).then((j)=>{F.staticImports.unshift(...j),_=void 0,q()});function q(){if(!_){let j=Q0(B0([...F.staticImports,...F.dynamicImports],f.warn||console.warn));for(let V of F.addons)if(V.extendImports)j=V.extendImports.call(F,j)??j;j=j.filter((V)=>!V.disabled),w.clear();for(let V of j)if(!V.type)w.set(V.as??V.name,V);_=j}return _}async function $(j){let V=await j(F.dynamicImports);if(Array.isArray(V))F.dynamicImports=V;F.invalidate()}function C(){F.dynamicImports.length=0,F.invalidate()}return F}async function H6(f,_,w,h){let S=w1(f);if(w.options.commentsDisable?.some((C)=>S.original.includes(C)))return{s:S,get code(){return S.toString()},imports:[]};for(let C of w.addons)await C.transform?.call(w,S,_);let{isCJSContext:y,matchedImports:F,firstOccurrence:q}=await Qy(S,w,h),$=await k6(w,F,_);if(w.options.commentsDebug?.some((C)=>S.original.includes(C)))(w.options.debugLog||console.log)(`[unimport] ${$.length} imports detected in "${_}"${$.length?`: ${$.map((j)=>j.name).join(", ")}`:""}`);return{...W0(S,$,y,h?.mergeExisting,h?.injectAtEnd,q,(C)=>{for(let j of w.addons)C=j.injectImportsResolved?.call(w,C,S,_)??C;return C},(C,j)=>{for(let V of w.addons)C=V.injectImportsStringified?.call(w,C,j,S,_)??C;return C}),imports:$}}async function k6(f,_,w){let h=new Map;return(await Promise.all(_.map(async(y)=>{if(!h.has(y.from))h.set(y.from,await f.resolveId(y.from,w)||y.from);let F=h.get(y.from);if(y.from===w||!F||F==="."||F===w)return;return{...y,from:F}}))).filter(Boolean)}var P9=_1(a1(),1);async function R9(f,_={}){let{globalObject:w=globalThis,overrides:h=!1}=_;return f=Array.isArray(f)?f:await f.getImports(),await Promise.all(f.map(async(S)=>{if(S.disabled||S.type)return;let y=S.as||S.name;if(h||!(y in w)){let F=await import(S.from);w[y]=F[S.name]}})),w}export{M0 as vueTemplateAddon,E0 as version,L0 as toTypeReExports,P6 as toTypeDeclarationItems,u0 as toTypeDeclarationFile,x6 as toImports,Y0 as toExports,Z0 as stripFileExtension,V0 as stripCommentsAndStrings,l6 as stringifyImports,f1 as separatorRE,Jy as scanFilesFromDir,h1 as scanExports,Ey as scanDirExports,O0 as resolvePreset,d6 as resolveIdAbsolute,gy as resolveBuiltinPresets,Xy as normalizeScanDirs,Q0 as normalizeImports,C0 as matchRE,R9 as installGlobalAutoImports,j0 as importAsRE,R6 as getString,w1 as getMagicString,$0 as excludeRE,I as defineUnimportPreset,B0 as dedupeImports,zy as dedupeDtsExports,G6 as createUnimport,Ky as builtinPresets,W0 as addImportToCode};