@bkm016/basalt 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/{chunk-n981vx1t.js → chunk-0d51ggzj.js} +6 -6
- package/chunk-12trygzx.js +25 -0
- package/{chunk-s6dejhfj.js → chunk-26cz8et8.js} +1 -1
- package/{chunk-zxkq9m8e.js → chunk-2ek3wq4b.js} +2 -2
- package/chunk-2gcp3xdc.js +2 -0
- package/{chunk-x4874m8e.js → chunk-2ks2tnac.js} +2 -2
- package/{chunk-0javrjcm.js → chunk-2nrkqq45.js} +22 -22
- package/chunk-320174qe.js +2 -0
- package/{chunk-ey15ye2h.js → chunk-3hg7yn1t.js} +1 -1
- package/{chunk-benrzwea.js → chunk-3j2kkgsc.js} +1 -1
- package/{chunk-8x21n7y9.js → chunk-47vf66t6.js} +1 -1
- package/chunk-4n49ptbz.js +3 -0
- package/{chunk-7hr6zw2m.js → chunk-5gxj9560.js} +1 -1
- package/{chunk-g0t9c3gv.js → chunk-6vnjg5x9.js} +1 -1
- package/{chunk-dnx91jrd.js → chunk-7kjr9gdx.js} +2 -2
- package/{chunk-y8dkfpmj.js → chunk-7p6e2f5s.js} +3 -3
- package/{chunk-053vb71h.js → chunk-86xhmz7k.js} +1 -1
- package/{chunk-ebpyvs1d.js → chunk-91r5nvth.js} +2 -2
- package/{chunk-c7rcw9fb.js → chunk-adys4qq4.js} +4 -4
- package/{chunk-npez1492.js → chunk-ckjw3b61.js} +2 -2
- package/{chunk-f156y565.js → chunk-d37gemt2.js} +3 -3
- package/{chunk-j7yvh0ae.js → chunk-dcwdmpw2.js} +1 -1
- package/chunk-dvb5nd2x.js +2 -0
- package/{chunk-063vbmtp.js → chunk-e6c2mzxc.js} +2 -2
- package/{chunk-s7skpgm2.js → chunk-ef9yhnk3.js} +1 -1
- package/{chunk-ecf896fz.js → chunk-fpxc6qjr.js} +2 -2
- package/chunk-frt9k18g.js +480 -0
- package/{chunk-bdy4jksd.js → chunk-fzcmzbsq.js} +1 -1
- package/{chunk-q9dd6fhj.js → chunk-g3ed130w.js} +3 -3
- package/{chunk-d48bfd2e.js → chunk-h1kb8b49.js} +2 -2
- package/{chunk-arcqjt91.js → chunk-hd3x1w46.js} +1 -1
- package/{chunk-dpz4hwqb.js → chunk-j781n7ca.js} +2 -2
- package/{chunk-z02sj1je.js → chunk-jp5afrwm.js} +2 -2
- package/{chunk-r8vvcp6c.js → chunk-jyv9cae6.js} +1 -1
- package/{chunk-whj87h4r.js → chunk-k3q5jqjj.js} +3 -3
- package/{chunk-75434aay.js → chunk-k3rmjrf1.js} +1 -1
- package/{chunk-peja51xv.js → chunk-kgkrccr1.js} +2 -2
- package/{chunk-pg5nkf1y.js → chunk-kpvaqb7c.js} +2 -2
- package/{chunk-hksqjts3.js → chunk-ky55taar.js} +332 -289
- package/{chunk-10p3mb40.js → chunk-mr807v9n.js} +1 -1
- package/chunk-n015c8nx.js +2 -0
- package/chunk-ndt6rjt9.js +2 -0
- package/{chunk-gv7wqkey.js → chunk-nmtk9xra.js} +2 -2
- package/{chunk-d6p2hgxh.js → chunk-pehyqj8k.js} +1 -1
- package/{chunk-ca982n62.js → chunk-pkpj7s2k.js} +1 -1
- package/{chunk-fx7f4m3c.js → chunk-pn413hjw.js} +1 -1
- package/{chunk-6ptv4g5e.js → chunk-ppxv5q7y.js} +3 -3
- package/{chunk-8wj32837.js → chunk-qmdpgbg3.js} +1 -1
- package/{chunk-8wv5t0w6.js → chunk-rnt1ckk9.js} +6 -6
- package/{chunk-prgm07j4.js → chunk-t40fag3z.js} +2 -2
- package/{chunk-w67dvqtb.js → chunk-t66jqz12.js} +2 -2
- package/{chunk-39vwrg8n.js → chunk-v2srrqcv.js} +2 -2
- package/{chunk-n85qs7cs.js → chunk-x496kg3v.js} +1 -1
- package/{chunk-6kdgk70p.js → chunk-xjw78yey.js} +4 -4
- package/chunk-xy2bxwq8.js +2 -0
- package/{chunk-y69ewdn2.js → chunk-ypqjfv3a.js} +2 -2
- package/{chunk-f544p9rh.js → chunk-yyy2yp6f.js} +10 -10
- package/{chunk-8gw5bvh3.js → chunk-yzevjkms.js} +5 -5
- package/chunk-z3ch1wg6.js +16 -0
- package/chunk-zdyd8hbn.js +2 -0
- package/compiled.js +6 -6
- package/package.json +1 -1
- package/ui-test-worker.js +19 -19
- package/web/{chunk-rf9dt6bg.js → chunk-0j9a7811.js} +6 -6
- package/web/chunk-0jfda4jw.js +2 -0
- package/web/{chunk-z1geewdf.js → chunk-0zwc2rvh.js} +2 -2
- package/web/{chunk-ht1dzftc.js → chunk-1gx0zpmp.js} +7 -7
- package/web/{chunk-0gg00f86.js → chunk-1s8zg6fb.js} +51 -51
- package/web/chunk-2axwda8c.js +89 -0
- package/web/chunk-2p3fkhy8.js +1 -0
- package/web/{chunk-xvcfp1zh.js → chunk-33w36n91.js} +2 -2
- package/web/{chunk-5v44qv67.js → chunk-3q0v8w45.js} +81 -81
- package/web/chunk-3sz5qcwj.js +1 -0
- package/web/chunk-433c80pc.js +1 -0
- package/web/chunk-48cnmhvd.js +106 -0
- package/web/{chunk-da7m1kva.js → chunk-4anjs6yp.js} +2 -2
- package/web/chunk-5r37rwq1.js +4 -0
- package/web/{chunk-g81h1e6n.js → chunk-6e38yf3a.js} +23 -23
- package/web/{chunk-zp3qrrkb.js → chunk-7a4xk6j9.js} +72 -72
- package/web/chunk-7f1t7z72.js +2 -0
- package/web/chunk-7qq1ypvj.js +1 -0
- package/web/{chunk-h6k1x096.js → chunk-7tkgbbf9.js} +2 -2
- package/web/chunk-7x35g67d.js +78 -0
- package/web/{chunk-n1jpg57t.js → chunk-823b7866.js} +15 -15
- package/web/chunk-85gdsmt4.js +1 -0
- package/web/{chunk-gyp6v7jd.js → chunk-8773nwdc.js} +2 -2
- package/web/{chunk-cktmyc13.js → chunk-8dp7h6w8.js} +24 -24
- package/web/{chunk-czq1yz51.js → chunk-8nv7q5ac.js} +9 -9
- package/web/chunk-8pzg8qw4.js +1 -0
- package/web/chunk-8wg44w91.js +2 -0
- package/web/chunk-9p5dfvav.js +1 -0
- package/web/chunk-9q9w9pay.js +1 -0
- package/web/chunk-a3teqvz2.js +39 -0
- package/web/chunk-bd8ftfxn.js +3 -0
- package/web/chunk-c03bt2pz.js +1 -0
- package/web/chunk-c1ha2xg6.js +8 -0
- package/web/chunk-cez1k71m.js +1 -0
- package/web/chunk-cgng31df.js +1 -0
- package/web/chunk-cn0tmwjs.js +2 -0
- package/web/{chunk-jve1zc80.js → chunk-cn1xpg3q.js} +2 -2
- package/web/chunk-cvd4f51j.js +1 -0
- package/web/chunk-cybvxssy.js +1 -0
- package/web/{chunk-a7gtb4kg.js → chunk-cyjnert7.js} +19 -19
- package/web/{chunk-twdy2f67.js → chunk-d0m0h0eb.js} +1 -1
- package/web/{chunk-hy4m34qp.js → chunk-dgwkqcz6.js} +37 -37
- package/web/{chunk-kyawkpv2.js → chunk-dtg5yhhs.js} +1 -1
- package/web/chunk-dynajx8x.js +2 -0
- package/web/{chunk-t851gdjh.js → chunk-et8q775x.js} +4 -4
- package/web/chunk-f3vv7n52.js +1 -0
- package/web/{chunk-3de552rg.js → chunk-f93pe4kb.js} +15 -15
- package/web/{chunk-5nda24gv.js → chunk-fe31sv6t.js} +1 -1
- package/web/chunk-fpa81dv7.js +62 -0
- package/web/{chunk-nyn9tghz.js → chunk-fx4mackk.js} +9 -9
- package/web/chunk-g17n6asp.js +1 -0
- package/web/chunk-g9dzaw9e.js +30 -0
- package/web/chunk-gcwhx3av.js +1139 -0
- package/web/chunk-gf8vm6b5.js +1 -0
- package/web/chunk-gnmeyy4h.js +1 -0
- package/web/chunk-h5cfg3vv.js +2 -0
- package/web/{chunk-d6tbw8br.js → chunk-hbkasy6c.js} +46 -46
- package/web/chunk-hn7mhsbg.js +1 -0
- package/web/{chunk-12xxh71x.js → chunk-hstbgb83.js} +26 -26
- package/web/chunk-jjjtv2r1.js +2 -0
- package/web/chunk-jzte2phh.js +2 -0
- package/web/chunk-k8h8zx6r.js +24 -0
- package/web/chunk-m3ajw575.js +1 -0
- package/web/chunk-m5y2d4zv.js +1 -0
- package/web/chunk-mbwwj216.js +1 -0
- package/web/chunk-mf6xng5b.js +2 -0
- package/web/chunk-nky3bqfg.js +1 -0
- package/web/chunk-np33kmn4.js +1 -0
- package/web/chunk-nvk8mazs.js +1 -0
- package/web/chunk-nyw5ewgv.js +1 -0
- package/web/{chunk-dwajwrpk.js → chunk-p0cjvjdx.js} +1 -1
- package/web/chunk-p56dcqpr.js +1 -0
- package/web/chunk-pdn4r8x4.js +1 -0
- package/web/chunk-q1xxs319.js +41 -0
- package/web/chunk-qpt34d8d.js +1 -0
- package/web/{chunk-96v2avmw.js → chunk-qq2v8h6d.js} +7 -7
- package/web/chunk-qskt3tqa.js +1 -0
- package/web/chunk-qt3n897m.js +4 -0
- package/web/chunk-r1rt48h9.js +1 -0
- package/web/{chunk-ck8rr0sr.js → chunk-r4ffr96e.js} +1 -1
- package/web/chunk-r7tgd2fm.js +7 -0
- package/web/{chunk-x5s7zr5f.js → chunk-rbdvc8x7.js} +7 -7
- package/web/{chunk-v4yqrx5y.js → chunk-rkjkynm3.js} +33 -33
- package/web/chunk-rznszqmy.js +1 -0
- package/web/chunk-s1pefd34.js +1 -0
- package/web/chunk-s38s9ff9.js +370 -0
- package/web/{chunk-vw1pbv1x.js → chunk-s7e93552.js} +8 -8
- package/web/chunk-sc29azev.js +1 -0
- package/web/{chunk-9c1yt2ex.js → chunk-sda7cyrt.js} +52 -52
- package/web/chunk-svh2gkx8.js +2 -0
- package/web/chunk-t4jc4nac.js +1 -0
- package/web/chunk-t7g366a5.js +24 -0
- package/web/chunk-tj1fn8v2.js +1 -0
- package/web/{chunk-sy7e4dmq.js → chunk-tkp72r9b.js} +1 -1
- package/web/{chunk-xc2sq3t5.js → chunk-v14s4vgc.js} +1 -1
- package/web/chunk-v94v68xg.js +36 -0
- package/web/{chunk-0whceqes.js → chunk-vvvd3grf.js} +2 -2
- package/web/chunk-w37n09px.js +21 -0
- package/web/chunk-wcphswcx.js +2 -0
- package/web/{chunk-fxs4nb93.js → chunk-wj3ymejj.js} +38 -38
- package/web/chunk-wwcnvyjh.css +1 -0
- package/web/{chunk-s2920f21.js → chunk-xabcx3ry.js} +6 -6
- package/web/chunk-xb9m0092.js +1 -0
- package/web/chunk-xfd3b01q.js +1 -0
- package/web/{chunk-03dmzvaq.js → chunk-xqyazzm7.js} +17 -17
- package/web/{chunk-prvh9syp.js → chunk-xsz1dfm2.js} +23 -23
- package/web/chunk-z0zrp8n8.js +1 -0
- package/web/index.html +1 -1
- package/worker.js +1 -1
- package/chunk-8saewt61.js +0 -3
- package/chunk-a0c989ky.js +0 -2
- package/chunk-a5apjjcn.js +0 -16
- package/chunk-a81p46j7.js +0 -2
- package/chunk-agsfy9w7.js +0 -2
- package/chunk-d20p02ny.js +0 -2
- package/chunk-ejsneb6f.js +0 -2
- package/chunk-fmq3zwzk.js +0 -2
- package/chunk-rfb85nj7.js +0 -2
- package/chunk-rfdt992v.js +0 -25
- package/chunk-tgfbtehh.js +0 -480
- package/web/chunk-0fgaepwm.js +0 -3
- package/web/chunk-0pecj6d7.js +0 -1
- package/web/chunk-0wt1dgny.js +0 -1
- package/web/chunk-1ves7sq5.js +0 -1
- package/web/chunk-1yj79b48.js +0 -1
- package/web/chunk-296hgy6k.js +0 -370
- package/web/chunk-2bmq1whf.js +0 -1
- package/web/chunk-2wqxhqr9.js +0 -1
- package/web/chunk-30zfw7zg.js +0 -1
- package/web/chunk-39ng8zwx.css +0 -1
- package/web/chunk-3nbzj48p.js +0 -36
- package/web/chunk-3zebd9fq.js +0 -7
- package/web/chunk-4r1n98zx.js +0 -2
- package/web/chunk-59678wmg.js +0 -1
- package/web/chunk-5wdk97mk.js +0 -4
- package/web/chunk-64rafq66.js +0 -78
- package/web/chunk-6kkw9ptc.js +0 -1
- package/web/chunk-718mr5gc.js +0 -2
- package/web/chunk-7hs57qdr.js +0 -1
- package/web/chunk-7kp237t3.js +0 -106
- package/web/chunk-86p42kym.js +0 -1
- package/web/chunk-8n79cqyd.js +0 -1
- package/web/chunk-9an6wcnr.js +0 -1
- package/web/chunk-9w5tf22s.js +0 -1
- package/web/chunk-b985y17w.js +0 -2
- package/web/chunk-bz2v64xe.js +0 -1
- package/web/chunk-c3nn0vvc.js +0 -1
- package/web/chunk-cb2rxtq9.js +0 -2
- package/web/chunk-cm92fyr3.js +0 -2
- package/web/chunk-cwtn2kdm.js +0 -1
- package/web/chunk-d4z2rgpx.js +0 -1
- package/web/chunk-dpkyygej.js +0 -1
- package/web/chunk-et5ess72.js +0 -1
- package/web/chunk-ez8b6neq.js +0 -1
- package/web/chunk-f5txt81n.js +0 -2
- package/web/chunk-fd1kqwe3.js +0 -1
- package/web/chunk-fp48zz2e.js +0 -2
- package/web/chunk-fx0n2g22.js +0 -89
- package/web/chunk-g6k9z8zt.js +0 -1
- package/web/chunk-gsh80797.js +0 -41
- package/web/chunk-hs5x78fb.js +0 -1
- package/web/chunk-hyd5hzpa.js +0 -1
- package/web/chunk-hyt1nkaw.js +0 -1
- package/web/chunk-j6a4z530.js +0 -1139
- package/web/chunk-kegv14sg.js +0 -2
- package/web/chunk-kw9emsqw.js +0 -1
- package/web/chunk-m2prjwk3.js +0 -4
- package/web/chunk-m9bzz9m0.js +0 -19
- package/web/chunk-mqsyzzgt.js +0 -30
- package/web/chunk-nywdeb4m.js +0 -2
- package/web/chunk-pxkhm40r.js +0 -2
- package/web/chunk-q9ekgjh6.js +0 -62
- package/web/chunk-r3mj50zs.js +0 -1
- package/web/chunk-sc0ghp25.js +0 -24
- package/web/chunk-t74r2n8h.js +0 -1
- package/web/chunk-t9mvsgt9.js +0 -1
- package/web/chunk-vf4vkcf9.js +0 -24
- package/web/chunk-vnt34mkb.js +0 -1
- package/web/chunk-vtxw9rmr.js +0 -1
- package/web/chunk-x19v2sxv.js +0 -1
- package/web/chunk-y21zy3eh.js +0 -1
- package/web/chunk-ya3ghn3n.js +0 -2
- package/web/chunk-yd74yxzt.js +0 -8
- package/web/chunk-z4ha8181.js +0 -1
- package/web/chunk-z8rarqe6.js +0 -1
- package/web/chunk-zsxw5fj7.js +0 -39
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{kt,zt,jt,Vt,Kt,gr,yr,Rt,br,Sr,xr,
|
|
2
|
+
import{kt,zt,jt,Vt,Kt,gr,yr,Rt,br,Sr,wr,xr,vr,_r}from"./chunk-yyy2yp6f.js";import{ee}from"./chunk-tvm4zmgj.js";import{q,V}from"./chunk-ypqjfv3a.js";import{K}from"./chunk-e6c2mzxc.js";import{y}from"./chunk-3k627vf2.js";import{ge}from"./chunk-2ks2tnac.js";import{U,de,oe,Oe,Q,G}from"./chunk-0d51ggzj.js";import{M}from"./chunk-jp5afrwm.js";var w=0,C=(n,a,t)=>{let o=new M,g=Oe(a);return(async()=>{let e={role:"assistant",content:[],api:"google-generative-ai",provider:n.provider,model:n.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};try{if(t?.fetch&&t.fetch!==globalThis.fetch)throw Error("Custom fetch is not supported by the Google Generative AI adapter");let l=t?.apiKey;if(!l)throw Error(`No API key for provider: ${n.provider}`);let c=T(n,l,t?.headers),h=S(n,g,t),k=await t?.onPayload?.(h,n);if(k!==void 0)h=k;let p=await _r(()=>c.models.generateContentStream(h),t);o.push({type:"start",partial:e});let i=null,f=e.content,u=()=>f.length-1;for await(let s of p){await t?.onProviderStreamEvent?.(s,n),e.responseId||=s.responseId;let m=s.candidates?.[0];if(m?.content?.parts)for(let r of m.content.parts){if(r.text!==void 0){let d=yr(r);if(!i||d&&i.type!=="thinking"||!d&&i.type!=="text"){if(i)if(i.type==="text")o.push({type:"text_end",contentIndex:f.length-1,content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});if(d)i={type:"thinking",thinking:"",thinkingSignature:void 0},e.content.push(i),o.push({type:"thinking_start",contentIndex:u(),partial:e});else i={type:"text",text:""},e.content.push(i),o.push({type:"text_start",contentIndex:u(),partial:e})}if(i.type==="thinking")i.thinking+=r.text,i.thinkingSignature=Rt(i.thinkingSignature,r.thoughtSignature),o.push({type:"thinking_delta",contentIndex:u(),delta:r.text,partial:e});else i.text+=r.text,i.textSignature=Rt(i.textSignature,r.thoughtSignature),o.push({type:"text_delta",contentIndex:u(),delta:r.text,partial:e})}if(r.functionCall){if(i){if(i.type==="text")o.push({type:"text_end",contentIndex:u(),content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});i=null}let d=r.functionCall.id,x={type:"toolCall",id:!d||e.content.some((b)=>b.type==="toolCall"&&b.id===d)?`${r.functionCall.name}_${Date.now()}_${++w}`:d,name:r.functionCall.name||"",arguments:r.functionCall.args??{},...r.thoughtSignature&&{thoughtSignature:r.thoughtSignature}};e.content.push(x),o.push({type:"toolcall_start",contentIndex:u(),partial:e}),o.push({type:"toolcall_delta",contentIndex:u(),delta:JSON.stringify(x.arguments),partial:e}),o.push({type:"toolcall_end",contentIndex:u(),toolCall:x,partial:e})}}if(m?.finishReason){if(e.rawStopReason=m.finishReason,e.stopReason=vr(m.finishReason),e.content.some((r)=>r.type==="toolCall")&&e.stopReason==="stop")e.stopReason="toolUse"}if(s.usageMetadata)e.usage={input:(s.usageMetadata.promptTokenCount||0)-(s.usageMetadata.cachedContentTokenCount||0),output:(s.usageMetadata.candidatesTokenCount||0)+(s.usageMetadata.thoughtsTokenCount||0),cacheRead:s.usageMetadata.cachedContentTokenCount||0,cacheWrite:0,reasoning:s.usageMetadata.thoughtsTokenCount||0,totalTokens:s.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},Q(n,e.usage)}if(i)if(i.type==="text")o.push({type:"text_end",contentIndex:u(),content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});if(t?.signal?.aborted)throw Error("Request was aborted");if(e.stopReason==="pending")throw Error("Google stream ended without a finish reason");if(e.stopReason==="aborted"||e.stopReason==="error"){let s=e.rawStopReason?`Provider stopped with: ${e.rawStopReason}`:"An unknown error occurred";throw Error(s)}o.push({type:"done",reason:e.stopReason,message:e}),o.end()}catch(l){for(let c of e.content)if("index"in c)delete c.index;e.stopReason=t?.signal?.aborted?"aborted":"error",e.errorMessage=V(q(l)),o.push({type:"error",reason:e.stopReason,error:e}),o.end()}})(),o},j=(n,a,t)=>{let o=t?.apiKey;if(!o)throw Error(`No API key for provider: ${n.provider}`);let g={...K(n,a,t,o),toolChoice:t?.toolChoice};if(!t?.reasoning)return C(n,a,{...g,thinking:{enabled:!1}});let e=G(n,t.reasoning);if(e==="off")return C(n,a,{...g,thinking:{enabled:!1}});let l=zt(n,e);if(jt(n))return C(n,a,{...g,thinking:{enabled:!0,level:Vt(l)}});return C(n,a,{...g,thinking:{enabled:!0,budgetTokens:I(n,l,t.thinkingBudgets)}})};function T(n,a,t){let o={};if(n.baseUrl)o.baseUrl=n.baseUrl,o.apiVersion="";let g=ge({"User-Agent":ee(),...n.headers,...t});if(g)o.headers=g;return new kt({apiKey:a,httpOptions:Object.keys(o).length>0?o:void 0})}function S(n,a,t={}){let o=br(n,a),g=de(a.messages),e=oe(a.messages),l={};if(t.temperature!==void 0)l.temperature=t.temperature;if(t.maxTokens!==void 0)l.maxOutputTokens=t.maxTokens;let c=wr(n.id),h=e.length>0?xr(e,t.toolChoice,c):void 0,k=g?U(g):"",p={...Object.keys(l).length>0&&l,...k&&{systemInstruction:y(k)},...e.length>0&&{tools:Sr(e,!1,c)},...h!==void 0&&{toolConfig:{functionCallingConfig:{mode:h}}}};if(t.thinking?.enabled&&n.reasoning){let f={includeThoughts:!0};if(t.thinking.level!==void 0)f.thinkingLevel=Kt(t.thinking.level);else if(t.thinking.budgetTokens!==void 0)f.thinkingBudget=t.thinking.budgetTokens;p.thinkingConfig=f}else if(n.reasoning&&t.thinking&&!t.thinking.enabled)p.thinkingConfig=gr(n);if(t.signal){if(t.signal.aborted)throw Error("Request aborted");p.abortSignal=t.signal}return{model:n.id,contents:o,config:p}}function I(n,a,t){if(t?.[a]!==void 0)return t[a];if(n.id.includes("2.5-pro"))return{minimal:128,low:2048,medium:8192,high:32768}[a];if(n.id.includes("2.5-flash-lite"))return{minimal:512,low:2048,medium:8192,high:24576}[a];if(n.id.includes("2.5-flash"))return{minimal:128,low:2048,medium:8192,high:24576}[a];return-1}export{C as stream,j as streamSimple};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{yt,Ne,X,b,Se,J,H}from"./chunk-c7rcw9fb.js";import{r,p}from"./chunk-bwawt15q.js";var qe=r(function(yr){var{Readable:Kt}=p("stream"),{NoOpLogger:Xt,normalizeProvider:_e}=X(),{HttpResponse:Me,HttpRequest:N}=H(),{parseRfc7231DateTime:Qt,v4:we}=J(),{hasOwn:Jt}=Ne(),Ee=(e)=>e?.body instanceof Kt||typeof ReadableStream<"u"&&e?.body instanceof ReadableStream,Zt=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],er=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],tr=["TimeoutError","RequestTimeout","RequestTimeoutException"],rr=[500,502,503,504],nr=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],ir=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"],j=(e)=>e?.$retryable!==void 0,Te=(e)=>Zt.includes(e.name),Re=(e)=>e.$metadata?.clockSkewCorrected,Pe=(e)=>{let s=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(e&&e instanceof TypeError))return!1;return s.has(e.message)},P=(e)=>e.$metadata?.httpStatusCode===429||er.includes(e.name)||e.$retryable?.throttling==!0,x=(e,s=0)=>e?.name!=="AbortError"&&(j(e)||Re(e)||e.name==="InvalidSignatureException"&&e.message?.includes("Signature expired")||tr.includes(e.name)||nr.includes(e?.code||"")||ir.includes(e?.code||"")||rr.includes(e.$metadata?.httpStatusCode||0)||Pe(e)||Oe(e)||e.cause!==void 0&&s<=10&&x(e.cause,s+1)),xe=(e)=>{if(e.$metadata?.httpStatusCode!==void 0){let s=e.$metadata.httpStatusCode;if(500<=s&&s<=599&&!x(e))return!0;return!1}return!1};function Oe(e){return e.code==="ERR_HTTP2_STREAM_ERROR"&&e.message.includes("NGHTTP2_REFUSED_STREAM")}var ke=100,C=20000,Fe=500,D=500,Ie=5,De=10,K=1,B="amz-sdk-invocation-id",U="amz-sdk-request";function Ce(e,s){if(!Me.isInstance(e))return;for(let c in e.headers){if(!Jt(e.headers,c))continue;let u=c.toLowerCase();if(u==="retry-after"){let o=e.headers[c],a=NaN;if(o.endsWith("GMT"))try{a=(Qt(o).getTime()-Date.now())/1000}catch(d){s?.trace?.("Failed to parse retry-after header"),s?.trace?.(d)}else if(o.match(/ GMT, ((\d+)|(\d+\.\d+))$/))a=Number(o.match(/ GMT, ([\d.]+)$/)?.[1]);else if(o.match(/^((\d+)|(\d+\.\d+))$/))a=Number(o);else if(Date.parse(o)>=Date.now())a=(Date.parse(o)-Date.now())/1000;if(isNaN(a))return;return new Date(Date.now()+a*1000)}else if(u==="x-amz-retry-after"){let o=e.headers[c],a=Number(o);if(isNaN(a)){s?.trace?.(`Failed to parse x-amz-retry-after=${o}`);return}return new Date(Date.now()+a)}}}function sr(e,s){return Ce(e,s)}var Be=(e)=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(Error(),e);if(typeof e==="string")return Error(e);return Error(`AWS SDK error wrapper for ${e}`)};function Le(e){return(s)=>(c,u)=>async(o)=>{let a=await s.retryStrategy(),d=await s.maxAttempts();if(ar(a)){a=a;let t=await a.acquireInitialRetryToken((u.partition_id??"")+(u.__retryLongPoll?":longpoll":"")),n=Error(),i=0,g=0,{request:l}=o,f=N.isInstance(l);if(f)l.headers[B]=we();while(!0)try{if(f)l.headers[U]=`attempt=${i+1}; max=${d}`;let{response:h,output:m}=await c(o);return a.recordSuccess(t),m.$metadata.attempts=i+1,m.$metadata.totalRetryDelay=g,{response:h,output:m}}catch(h){let m=cr(h,s.logger);if(n=Be(h),f&&e(l))throw(u.logger instanceof Xt?console:u.logger)?.warn("An error was encountered in a non-retryable streaming request."),n;try{t=await a.refreshRetryTokenForRetry(t,m)}catch(S){if(!n.$metadata)n.$metadata={};throw n.$metadata.attempts=i+1,n.$metadata.totalRetryDelay=g,n}i=t.getRetryCount();let A=t.getRetryDelay();if(g+=(t?.$retryLog?.acquisitionDelay??0)+A,A>0)await or(A)}}else{if(a=a,a?.mode)u.userAgent=[...u.userAgent||[],["cfg/retry-mode",a.mode]];return a.retry(c,o)}}}var or=(e)=>new Promise((s)=>setTimeout(s,e)),ar=(e)=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",cr=(e,s)=>{let c={error:e,errorType:ur(e)},u=Ce(e.$response,s);if(u)c.retryAfterHint=u;return c},ur=(e)=>{if(P(e))return"THROTTLING";if(x(e))return"TRANSIENT";if(xe(e))return"SERVER_ERROR";return"CLIENT_ERROR"},Ue={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function dr(e){let s=Le(e);return(c)=>({applyToStack:(u)=>{u.add(s(c),Ue)}})}class O{static setTimeoutFn=(e,s)=>setTimeout(e,s);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??0.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??0.5,this.scaleConstant=e?.scaleConstant??0.4,this.smooth=e?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let s;this.updateMeasuredRate();let c=e;if(c?.errorType==="THROTTLING"||P(c?.error??e)){let a=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),s=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),s=this.cubicSuccess(this.getCurrentTimeInSeconds());let o=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(o)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(e){if(!this.enabled)return;this.refillTokenBucket();while(e>this.availableTokens){let s=(e-this.availableTokens)/this.fillRate*1000;await new Promise((c)=>O.setTimeoutFn(c,s)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let s=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+s),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),s=Math.floor(e*2)/2;if(this.requestCount++,s>this.lastTxRateBucket){let c=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(c*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=s}}getPrecise(e){return parseFloat(e.toFixed(8))}}class y{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return y.v2026?50:100}static throttlingDelay(){return y.v2026?1000:500}static cost(){return y.v2026?14:5}static throttlingCost(){return y.v2026?5:10}static modifiedCostType(){return y.v2026?"THROTTLING":"TRANSIENT"}}class He{x=y.delay();computeNextBackoffDelay(e){let s=Math.random(),c=2,u=s*Math.min(this.x*2**e,C);return Math.floor(u)}setDelayBase(e){this.x=e}}class V{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,s,c,u){this.delay=e,this.count=s,this.cost=c,this.longPoll=u}getRetryCount(){return this.count}getRetryDelay(){return Math.min(C,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var w;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(w||(w={}));var E=3,Ge=w.STANDARD,I={incompatible:1,attempts:2,capacity:3},R=class{mode=w.STANDARD;retryBackoffStrategy;capacity=D;maxAttemptsProvider;baseDelay;constructor(s){if(typeof s==="number")this.maxAttemptsProvider=async()=>s;else if(typeof s==="function")this.maxAttemptsProvider=s;else if(s&&typeof s==="object")this.maxAttemptsProvider=async()=>s.maxAttempts,this.baseDelay=s.baseDelay,this.retryBackoffStrategy=s.backoff;this.maxAttemptsProvider??=async()=>E,this.baseDelay??=y.delay(),this.retryBackoffStrategy??=new He}async acquireInitialRetryToken(s){return new V(y.delay(),0,void 0,y.v2026&&s.includes(":longpoll"))}async refreshRetryTokenForRetry(s,c){let u=await this.getMaxAttempts(),o=this.retryCode(s,c,u),a=o===0,d=s.isLongPoll?.();if(a||d){let t=c.errorType;this.retryBackoffStrategy.setDelayBase(t==="THROTTLING"?y.throttlingDelay():this.baseDelay);let n=this.retryBackoffStrategy.computeNextBackoffDelay(s.getRetryCount()),i=n;if(c.retryAfterHint instanceof Date)i=Math.max(n,Math.min(c.retryAfterHint.getTime()-Date.now(),n+5000));if(!a){let g=y.v2026&&o===I.capacity&&d?i:0;if(g>0)await new Promise((l)=>setTimeout(l,g))}else{let g=this.getCapacityCost(t);this.capacity-=g;let l=new V(0,s.getRetryCount()+1,g,s.isLongPoll?.()??!1);return await new Promise((f)=>setTimeout(f,i)),l.$retryLog.acquisitionDelay=i,l}}throw Error("No retry token available")}recordSuccess(s){this.capacity=Math.min(D,this.capacity+(s.getRetryCost()??K))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(s){return console.warn(`Max attempts provider could not resolve. Using default of ${E}`),E}}retryCode(s,c,u){let o=s.getRetryCount()+1,a=this.isRetryableError(c.errorType)?0:I.incompatible,d=o<u?0:I.attempts,t=this.capacity>=this.getCapacityCost(c.errorType)?0:I.capacity;return a||d||t}getCapacityCost(s){return s===y.modifiedCostType()?y.throttlingCost():y.cost()}isRetryableError(s){return s==="THROTTLING"||s==="TRANSIENT"}},We=class{mode=w.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(s,c){let{rateLimiter:u}=c??{};this.rateLimiter=u??new O,this.standardRetryStrategy=c?new R({maxAttempts:typeof s==="number"?s:3,...c}):new R(s)}async acquireInitialRetryToken(s){let c=await this.standardRetryStrategy.acquireInitialRetryToken(s);return await this.rateLimiter.getSendToken(),c}async refreshRetryTokenForRetry(s,c){this.rateLimiter.updateClientSendingRate(c);let u=await this.standardRetryStrategy.refreshRetryTokenForRetry(s,c);return await this.rateLimiter.getSendToken(),u}recordSuccess(s){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(s)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class $e extends R{computeNextBackoffDelay;constructor(e,s=y.delay()){super(typeof e==="function"?e:async()=>e);if(typeof s==="number")this.computeNextBackoffDelay=()=>s;else this.computeNextBackoffDelay=s;this.retryBackoffStrategy.computeNextBackoffDelay=(c)=>{let u=c+1;return this.computeNextBackoffDelay(u)}}}var lr=(e,s)=>{let c=e,u=K,o=Ie,a=De,d=e,t=(l)=>l.name==="TimeoutError"?a:o,n=(l)=>t(l)<=d;return Object.freeze({hasRetryTokens:n,retrieveRetryTokens:(l)=>{if(!n(l))throw Error("No retry token available");let f=t(l);return d-=f,f},releaseRetryTokens:(l)=>{d+=l??u,d=Math.min(d,c)}})},Ve=(e,s)=>Math.floor(Math.min(C,Math.random()*2**s*e)),ze=(e)=>{if(!e)return!1;return j(e)||Te(e)||P(e)||x(e)};class Q{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=w.STANDARD;constructor(e,s){this.maxAttemptsProvider=e,this.retryDecider=s?.retryDecider??ze,this.delayDecider=s?.delayDecider??Ve,this.retryQuota=s?.retryQuota??lr(D)}shouldRetry(e,s,c){return s<c&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(s){e=E}return e}async retry(e,s,c){let u,o=0,a=0,d=await this.getMaxAttempts(),{request:t}=s;if(N.isInstance(t))t.headers[B]=we();while(!0)try{if(N.isInstance(t))t.headers[U]=`attempt=${o+1}; max=${d}`;if(c?.beforeRequest)await c.beforeRequest();let{response:n,output:i}=await e(s);if(c?.afterRequest)c.afterRequest(n);return this.retryQuota.releaseRetryTokens(u),i.$metadata.attempts=o+1,i.$metadata.totalRetryDelay=a,{response:n,output:i}}catch(n){let i=Be(n);if(o++,this.shouldRetry(i,o,d)){u=this.retryQuota.retrieveRetryTokens(i);let g=this.delayDecider(P(i)?Fe:ke,o),l=fr(i.$response),f=Math.max(l||0,g);a+=f,await new Promise((h)=>setTimeout(h,f));continue}if(!i.$metadata)i.$metadata={};throw i.$metadata.attempts=o,i.$metadata.totalRetryDelay=a,i}}}var fr=(e)=>{if(!Me.isInstance(e))return;let s=Object.keys(e.headers).find((a)=>a.toLowerCase()==="retry-after");if(!s)return;let c=e.headers[s],u=Number(c);if(!Number.isNaN(u))return Math.min(u*1000,20000);let o=new Date(c);return Math.min(o.getTime()-Date.now(),20000)};class Ye extends Q{rateLimiter;constructor(e,s){let{rateLimiter:c,...u}=s??{};super(e,u);this.rateLimiter=c??new O,this.mode=w.ADAPTIVE}async retry(e,s){return super.retry(e,s,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:(c)=>{this.rateLimiter.updateClientSendingRate(c)}})}}var z="AWS_MAX_ATTEMPTS",Y="max_attempts",pr={environmentVariableSelector:(e)=>{let s=e[z];if(!s)return;let c=parseInt(s);if(Number.isNaN(c))throw Error(`Environment variable ${z} mast be a number, got "${s}"`);return c},configFileSelector:(e)=>{let s=e[Y];if(!s)return;let c=parseInt(s);if(Number.isNaN(c))throw Error(`Shared config file entry ${Y} mast be a number, got "${s}"`);return c},default:E},hr=(e,s)=>{let{retryStrategy:c,retryMode:u}=e,{defaultMaxAttempts:o=E,defaultBaseDelay:a=y.delay()}=s??{},d=_e(e.maxAttempts??o),t=c?Promise.resolve(c):void 0,n=async()=>{let i=await d();if(await _e(u)()===w.ADAPTIVE)return new We(d,{maxAttempts:i,baseDelay:a});return new R({maxAttempts:i,baseDelay:a})};return Object.assign(e,{maxAttempts:d,retryStrategy:()=>t??=n()})},je="AWS_RETRY_MODE",Ke="retry_mode",gr={environmentVariableSelector:(e)=>e[je],configFileSelector:(e)=>e[Ke],default:Ge},Xe=()=>(e)=>async(s)=>{let{request:c}=s;if(N.isInstance(c))delete c.headers[B],delete c.headers[U];return e(s)},Qe={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},mr=(e)=>({applyToStack:(s)=>{s.addRelativeTo(Xe(),Qe)}}),Ar=Le(Ee),br=dr(Ee);yr.AdaptiveRetryStrategy=We;yr.CONFIG_MAX_ATTEMPTS=Y;yr.CONFIG_RETRY_MODE=Ke;yr.ConfiguredRetryStrategy=$e;yr.DEFAULT_MAX_ATTEMPTS=E;yr.DEFAULT_RETRY_DELAY_BASE=ke;yr.DEFAULT_RETRY_MODE=Ge;yr.DefaultRateLimiter=O;yr.DeprecatedAdaptiveRetryStrategy=Ye;yr.DeprecatedStandardRetryStrategy=Q;yr.ENV_MAX_ATTEMPTS=z;yr.ENV_RETRY_MODE=je;yr.INITIAL_RETRY_TOKENS=D;yr.INVOCATION_ID_HEADER=B;yr.MAXIMUM_RETRY_DELAY=C;yr.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=pr;yr.NODE_RETRY_MODE_CONFIG_OPTIONS=gr;yr.NO_RETRY_INCREMENT=K;yr.REQUEST_HEADER=U;yr.RETRY_COST=Ie;yr.RETRY_MODES=w;yr.Retry=y;yr.StandardRetryStrategy=R;yr.THROTTLING_RETRY_DELAY_BASE=Fe;yr.TIMEOUT_RETRY_COST=De;yr.defaultDelayDecider=Ve;yr.defaultRetryDecider=ze;yr.getOmitRetryHeadersPlugin=mr;yr.getRetryAfterHint=sr;yr.getRetryPlugin=br;yr.isBrowserNetworkError=Pe;yr.isClockSkewCorrectedError=Re;yr.isClockSkewError=Te;yr.isNodeJsHttp2TransientError=Oe;yr.isRetryableByTrait=j;yr.isServerError=xe;yr.isThrottlingError=P;yr.isTransientError=x;yr.omitRetryHeadersMiddleware=Xe;yr.omitRetryHeadersMiddlewareOptions=Qe;yr.resolveRetryConfig=hr;yr.retryMiddleware=Ar;yr.retryMiddlewareOptions=Ue});var Ze=r(function(dn){var v={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},Z=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!Z)globalThis.awslambda=globalThis.awslambda||{};class q{static PROTECTED_KEYS=v;isProtectedKey(e){return Object.values(v).includes(e)}getRequestId(){return this.get(v.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(v.X_RAY_TRACE_ID)}getTenantId(){return this.get(v.TENANT_ID)}getTraceparent(){return this.get(v.TRACEPARENT)}getTracestate(){return this.get(v.TRACESTATE)}getBaggage(){return this.get(v.BAGGAGE)}}class Je extends q{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,s){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=s}run(e,s){return this.currentContext=e,s()}}class te extends q{als;static async create(){let e=new te,s=await import("async_hooks");return e.als=new s.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,s){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);let c=this.als.getStore();if(!c)throw Error("No context available");c[e]=s}run(e,s){return this.als.run(e,s)}}dn.InvokeStore=void 0;(function(e){let s=null;async function c(u){if(!s)s=(async()=>{let a=u===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await te.create():new Je;if(!Z&&globalThis.awslambda?.InvokeStore)return globalThis.awslambda.InvokeStore;else if(!Z&&globalThis.awslambda)return globalThis.awslambda.InvokeStore=a,a;else return a})();return s}e.getInstanceAsync=c,e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{if(s=null,globalThis.awslambda?.InvokeStore)delete globalThis.awslambda.InvokeStore;globalThis.awslambda={InvokeStore:void 0}}}:void 0})(dn.InvokeStore||(dn.InvokeStore={}));dn.InvokeStoreBase=q});var ve=r(function(Pn){var{getSmithyContext:re,hasOwn:fn}=Ne();Pn.getSmithyContext=re;var{HttpRequest:ne}=H(),{requestBuilder:pn}=H();Pn.requestBuilder=pn;var{HttpApiKeyAuthLocation:et}=yt(),hn=(e,s)=>{if(!s||s.length===0)return e;let c=[];for(let u of s)for(let o of e)if(o.schemeId.split("#")[1]===u)c.push(o);for(let u of e)if(!c.find(({schemeId:o})=>o===u.schemeId))c.push(u);return c};function gn(e){let s=new Map;for(let c of e)s.set(c.schemeId,c);return s}var ie=(e,s)=>(c,u)=>async(o)=>{let a=e.httpAuthSchemeProvider(await s.httpAuthSchemeParametersProvider(e,u,o.input)),d=e.authSchemePreference?await e.authSchemePreference():[],t=hn(a,d),n=gn(e.httpAuthSchemes),i=re(u),g=[];for(let l of t){let f=n.get(l.schemeId);if(!f){g.push(`HttpAuthScheme \`${l.schemeId}\` was not enabled for this service.`);continue}let h=f.identityProvider(await s.identityProviderConfigProvider(e));if(!h){g.push(`HttpAuthScheme \`${l.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:m={},signingProperties:A={}}=l.propertiesExtractor?.(e,u)||{};l.identityProperties=Object.assign(l.identityProperties||{},m),l.signingProperties=Object.assign(l.signingProperties||{},A),i.selectedHttpAuthScheme={httpAuthOption:l,identity:await h(l.identityProperties),signer:f.signer};break}if(!i.selectedHttpAuthScheme)throw Error(g.join(`
|
|
3
|
-
`));return c(o)},tt={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},mn=(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c})=>({applyToStack:(u)=>{u.addRelativeTo(ie(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c}),tt)}}),rt={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},An=(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c})=>({applyToStack:(u)=>{u.addRelativeTo(ie(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c}),rt)}}),bn=(e)=>(s)=>{throw s},yn=(e,s)=>{},nt=(e)=>(s,c)=>async(u)=>{if(!ne.isInstance(u.request))return s(u);let a=re(c).selectedHttpAuthScheme;if(!a)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:d={}},identity:t,signer:n}=a,i=await s({...u,request:await n.sign(u.request,t,d)}).catch((n.errorHandler||bn)(d));return(n.successHandler||yn)(i.response,d),i},it={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Sn=(e)=>({applyToStack:(s)=>{s.addRelativeTo(nt(),it)}}),_n=(e)=>{if(typeof e==="function")return e;let s=Promise.resolve(e);return()=>s},Mn=async(e,s,c,u=(a)=>a,...o)=>{let a=new e(c);return a=u(a)??a,await s.send(a,...o)};function wn(e,s,c,u,o){return async function*(d,t,...n){let i=t,g=d.startingToken??i[c],l=!0,f;while(l){if(i[c]=g,o)i[o]=i[o]??d.pageSize;if(d.client instanceof e)f=await Mn(s,d.client,t,d.withCommand,...n);else throw Error(`Invalid client, expected instance of ${e.name}`);yield f;let h=g;g=vn(f,u),l=!!(g&&(!d.stopOnSameToken||g!==h))}return}}var vn=(e,s)=>{let c=e,u=s.split(".");for(let o of u){if(!c||typeof c!=="object")return;c=c[o]}return c};function En(e,s,c){if(!e.__smithy_context)e.__smithy_context={features:{}};else if(!e.__smithy_context.features)e.__smithy_context.features={};e.__smithy_context.features[s]=c}class st{authSchemes=new Map;constructor(e){for(let s in e){if(!fn(e,s))continue;let c=e[s];if(c!==void 0)this.authSchemes.set(s,c)}}getIdentityProvider(e){return this.authSchemes.get(e)}}class ot{async sign(e,s,c){if(!c)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!c.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!c.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!s.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let u=ne.clone(e);if(c.in===et.QUERY)u.query[c.name]=s.apiKey;else if(c.in===et.HEADER)u.headers[c.name]=c.scheme?`${c.scheme} ${s.apiKey}`:s.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+c.in+"`");return u}}class at{async sign(e,s,c){let u=ne.clone(e);if(!s.token)throw Error("request could not be signed with `token` since the `token` is not defined");return u.headers.Authorization=`Bearer ${s.token}`,u}}class ct{async sign(e,s,c){return e}}var ut=(e)=>function(c){return lt(c)&&c.expiration.getTime()-Date.now()<e},dt=300000,Tn=ut(dt),lt=(e)=>e.expiration!==void 0,Rn=(e,s,c)=>{if(e===void 0)return;let u=typeof e!=="function"?async()=>Promise.resolve(e):e,o,a,d,t=!1,n=async(i)=>{if(!a)a=u(i);try{o=await a,d=!0,t=!1}finally{a=void 0}return o};if(s===void 0)return async(i)=>{if(!d||i?.forceRefresh)o=await n(i);return o};return async(i)=>{if(!d||i?.forceRefresh)o=await n(i);if(t)return o;if(!c(o))return t=!0,o;if(s(o))return await n(i),o;return o}};Pn.DefaultIdentityProviderConfig=st;Pn.EXPIRATION_MS=dt;Pn.HttpApiKeyAuthSigner=ot;Pn.HttpBearerAuthSigner=at;Pn.NoAuthSigner=ct;Pn.createIsIdentityExpiredFunction=ut;Pn.createPaginator=wn;Pn.doesIdentityRequireRefresh=lt;Pn.getHttpAuthSchemeEndpointRuleSetPlugin=mn;Pn.getHttpAuthSchemePlugin=An;Pn.getHttpSigningPlugin=Sn;Pn.httpAuthSchemeEndpointRuleSetMiddlewareOptions=tt;Pn.httpAuthSchemeMiddleware=ie;Pn.httpAuthSchemeMiddlewareOptions=rt;Pn.httpSigningMiddleware=nt;Pn.httpSigningMiddlewareOptions=it;Pn.isIdentityExpired=Tn;Pn.memoizeIdentityProvider=Rn;Pn.normalizeProvider=_n;Pn.setFeature=En});var ft=r(function(k,se){(function(e,s){typeof k=="object"&&typeof se=="object"?se.exports=s():typeof define=="function"&&define.amd?define([],s):typeof k=="object"?k.bowser=s():e.bowser=s()})(k,function(){return function(e){var s={};function c(u){if(s[u])return s[u].exports;var o=s[u]={i:u,l:!1,exports:{}};return e[u].call(o.exports,o,o.exports,c),o.l=!0,o.exports}return c.m=e,c.c=s,c.d=function(u,o,a){c.o(u,o)||Object.defineProperty(u,o,{enumerable:!0,get:a})},c.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},c.t=function(u,o){if(1&o&&(u=c(u)),8&o)return u;if(4&o&&typeof u=="object"&&u&&u.__esModule)return u;var a=Object.create(null);if(c.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:u}),2&o&&typeof u!="string")for(var d in u)c.d(a,d,function(t){return u[t]}.bind(null,d));return a},c.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return c.d(o,"a",o),o},c.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},c.p="",c(c.s=90)}({17:function(e,s,c){s.__esModule=!0,s.default=void 0;var u=c(18),o=function(){function a(){}return a.getFirstMatch=function(d,t){var n=t.match(d);return n&&n.length>0&&n[1]||""},a.getSecondMatch=function(d,t){var n=t.match(d);return n&&n.length>1&&n[2]||""},a.matchAndReturnConst=function(d,t,n){if(d.test(t))return n},a.getWindowsVersionName=function(d){switch(d){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},a.getMacOSVersionName=function(d){var t=d.split(".").splice(0,2).map(function(g){return parseInt(g,10)||0});t.push(0);var n=t[0],i=t[1];if(n===10)switch(i){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(n){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},a.getAndroidVersionName=function(d){var t=d.split(".").splice(0,2).map(function(n){return parseInt(n,10)||0});if(t.push(0),!(t[0]===1&&t[1]<5))return t[0]===1&&t[1]<6?"Cupcake":t[0]===1&&t[1]>=6?"Donut":t[0]===2&&t[1]<2?"Eclair":t[0]===2&&t[1]===2?"Froyo":t[0]===2&&t[1]>2?"Gingerbread":t[0]===3?"Honeycomb":t[0]===4&&t[1]<1?"Ice Cream Sandwich":t[0]===4&&t[1]<4?"Jelly Bean":t[0]===4&&t[1]>=4?"KitKat":t[0]===5?"Lollipop":t[0]===6?"Marshmallow":t[0]===7?"Nougat":t[0]===8?"Oreo":t[0]===9?"Pie":void 0},a.getVersionPrecision=function(d){return d.split(".").length},a.compareVersions=function(d,t,n){n===void 0&&(n=!1);var i=a.getVersionPrecision(d),g=a.getVersionPrecision(t),l=Math.max(i,g),f=0,h=a.map([d,t],function(m){var A=l-a.getVersionPrecision(m),S=m+Array(A+1).join(".0");return a.map(S.split("."),function(T){return Array(20-T.length).join("0")+T}).reverse()});for(n&&(f=l-Math.min(i,g)),l-=1;l>=f;){if(h[0][l]>h[1][l])return 1;if(h[0][l]===h[1][l]){if(l===f)return 0;l-=1}else if(h[0][l]<h[1][l])return-1}},a.map=function(d,t){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(d,t);for(n=0;n<d.length;n+=1)i.push(t(d[n]));return i},a.find=function(d,t){var n,i;if(Array.prototype.find)return Array.prototype.find.call(d,t);for(n=0,i=d.length;n<i;n+=1){var g=d[n];if(t(g,n))return g}},a.assign=function(d){for(var t,n,i=d,g=arguments.length,l=Array(g>1?g-1:0),f=1;f<g;f++)l[f-1]=arguments[f];if(Object.assign)return Object.assign.apply(Object,[d].concat(l));var h=function(){var m=l[t];typeof m=="object"&&m!==null&&Object.keys(m).forEach(function(A){i[A]=m[A]})};for(t=0,n=l.length;t<n;t+=1)h();return d},a.getBrowserAlias=function(d){return u.BROWSER_ALIASES_MAP[d]},a.getBrowserTypeByAlias=function(d){return u.BROWSER_MAP[d]||""},a}();s.default=o,e.exports=s.default},18:function(e,s,c){s.__esModule=!0,s.ENGINE_MAP=s.OS_MAP=s.PLATFORMS_MAP=s.BROWSER_MAP=s.BROWSER_ALIASES_MAP=void 0,s.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},s.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},s.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},s.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},s.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,s,c){s.__esModule=!0,s.default=void 0;var u,o=(u=c(91))&&u.__esModule?u:{default:u},a=c(18);function d(n,i){for(var g=0;g<i.length;g++){var l=i[g];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}var t=function(){function n(){}var i,g,l;return n.getParser=function(f,h,m){if(h===void 0&&(h=!1),m===void 0&&(m=null),typeof f!="string")throw Error("UserAgent should be a string");return new o.default(f,h,m)},n.parse=function(f,h){return h===void 0&&(h=null),new o.default(f,h).getResult()},i=n,l=[{key:"BROWSER_MAP",get:function(){return a.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return a.ENGINE_MAP}},{key:"OS_MAP",get:function(){return a.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return a.PLATFORMS_MAP}}],(g=null)&&d(i.prototype,g),l&&d(i,l),n}();s.default=t,e.exports=s.default},91:function(e,s,c){s.__esModule=!0,s.default=void 0;var u=n(c(92)),o=n(c(93)),a=n(c(94)),d=n(c(95)),t=n(c(17));function n(g){return g&&g.__esModule?g:{default:g}}var i=function(){function g(f,h,m){if(h===void 0&&(h=!1),m===void 0&&(m=null),f==null||f==="")throw Error("UserAgent parameter can't be empty");this._ua=f;var A=!1;typeof h=="boolean"?(A=h,this._hints=m):this._hints=h!=null&&typeof h=="object"?h:null,this.parsedResult={},A!==!0&&this.parse()}var l=g.prototype;return l.getHints=function(){return this._hints},l.hasBrand=function(f){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var h=f.toLowerCase();return this._hints.brands.some(function(m){return m.brand&&m.brand.toLowerCase()===h})},l.getBrandVersion=function(f){if(this._hints&&Array.isArray(this._hints.brands)){var h=f.toLowerCase(),m=this._hints.brands.find(function(A){return A.brand&&A.brand.toLowerCase()===h});return m?m.version:void 0}},l.getUA=function(){return this._ua},l.test=function(f){return f.test(this._ua)},l.parseBrowser=function(){var f=this;this.parsedResult.browser={};var h=t.default.find(u.default,function(m){if(typeof m.test=="function")return m.test(f);if(Array.isArray(m.test))return m.test.some(function(A){return f.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.browser=h.describe(this.getUA(),this)),this.parsedResult.browser},l.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},l.getBrowserName=function(f){return f?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},l.getBrowserVersion=function(){return this.getBrowser().version},l.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},l.parseOS=function(){var f=this;this.parsedResult.os={};var h=t.default.find(o.default,function(m){if(typeof m.test=="function")return m.test(f);if(Array.isArray(m.test))return m.test.some(function(A){return f.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.os=h.describe(this.getUA())),this.parsedResult.os},l.getOSName=function(f){var h=this.getOS().name;return f?String(h).toLowerCase()||"":h||""},l.getOSVersion=function(){return this.getOS().version},l.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},l.getPlatformType=function(f){f===void 0&&(f=!1);var h=this.getPlatform().type;return f?String(h).toLowerCase()||"":h||""},l.parsePlatform=function(){var f=this;this.parsedResult.platform={};var h=t.default.find(a.default,function(m){if(typeof m.test=="function")return m.test(f);if(Array.isArray(m.test))return m.test.some(function(A){return f.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.platform=h.describe(this.getUA())),this.parsedResult.platform},l.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},l.getEngineName=function(f){return f?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},l.parseEngine=function(){var f=this;this.parsedResult.engine={};var h=t.default.find(d.default,function(m){if(typeof m.test=="function")return m.test(f);if(Array.isArray(m.test))return m.test.some(function(A){return f.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.engine=h.describe(this.getUA())),this.parsedResult.engine},l.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},l.getResult=function(){return t.default.assign({},this.parsedResult)},l.satisfies=function(f){var h=this,m={},A=0,S={},T=0;if(Object.keys(f).forEach(function(M){var F=f[M];typeof F=="string"?(S[M]=F,T+=1):typeof F=="object"&&(m[M]=F,A+=1)}),A>0){var he=Object.keys(m),ge=t.default.find(he,function(M){return h.isOS(M)});if(ge){var me=this.satisfies(m[ge]);if(me!==void 0)return me}var Ae=t.default.find(he,function(M){return h.isPlatform(M)});if(Ae){var be=this.satisfies(m[Ae]);if(be!==void 0)return be}}if(T>0){var jt=Object.keys(S),ye=t.default.find(jt,function(M){return h.isBrowser(M,!0)});if(ye!==void 0)return this.compareVersion(S[ye])}},l.isBrowser=function(f,h){h===void 0&&(h=!1);var m=this.getBrowserName().toLowerCase(),A=f.toLowerCase(),S=t.default.getBrowserTypeByAlias(A);return h&&S&&(A=S.toLowerCase()),A===m},l.compareVersion=function(f){var h=[0],m=f,A=!1,S=this.getBrowserVersion();if(typeof S=="string")return f[0]===">"||f[0]==="<"?(m=f.substr(1),f[1]==="="?(A=!0,m=f.substr(2)):h=[],f[0]===">"?h.push(1):h.push(-1)):f[0]==="="?m=f.substr(1):f[0]==="~"&&(A=!0,m=f.substr(1)),h.indexOf(t.default.compareVersions(S,m,A))>-1},l.isOS=function(f){return this.getOSName(!0)===String(f).toLowerCase()},l.isPlatform=function(f){return this.getPlatformType(!0)===String(f).toLowerCase()},l.isEngine=function(f){return this.getEngineName(!0)===String(f).toLowerCase()},l.is=function(f,h){return h===void 0&&(h=!1),this.isBrowser(f,h)||this.isOS(f)||this.isPlatform(f)},l.some=function(f){var h=this;return f===void 0&&(f=[]),f.some(function(m){return h.is(m)})},g}();s.default=i,e.exports=s.default},92:function(e,s,c){s.__esModule=!0,s.default=void 0;var u,o=(u=c(17))&&u.__esModule?u:{default:u},a=/version\/(\d+(\.?_?\d+)+)/i,d=[{test:[/gptbot/i],describe:function(t){var n={name:"GPTBot"},i=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/chatgpt-user/i],describe:function(t){var n={name:"ChatGPT-User"},i=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/oai-searchbot/i],describe:function(t){var n={name:"OAI-SearchBot"},i=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(t){var n={name:"ClaudeBot"},i=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(t){var n={name:"Omgilibot"},i=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/diffbot/i],describe:function(t){var n={name:"Diffbot"},i=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/perplexitybot/i],describe:function(t){var n={name:"PerplexityBot"},i=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/perplexity-user/i],describe:function(t){var n={name:"Perplexity-User"},i=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/youbot/i],describe:function(t){var n={name:"YouBot"},i=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-webindexer/i],describe:function(t){var n={name:"Meta-WebIndexer"},i=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-externalads/i],describe:function(t){var n={name:"Meta-ExternalAds"},i=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-externalagent/i],describe:function(t){var n={name:"Meta-ExternalAgent"},i=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-externalfetcher/i],describe:function(t){var n={name:"Meta-ExternalFetcher"},i=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/googlebot/i],describe:function(t){var n={name:"Googlebot"},i=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/linespider/i],describe:function(t){var n={name:"Linespider"},i=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/amazonbot/i],describe:function(t){var n={name:"AmazonBot"},i=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/bingbot/i],describe:function(t){var n={name:"BingCrawler"},i=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/baiduspider/i],describe:function(t){var n={name:"BaiduSpider"},i=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/duckduckbot/i],describe:function(t){var n={name:"DuckDuckBot"},i=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/ia_archiver/i],describe:function(t){var n={name:"InternetArchiveCrawler"},i=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(t){var n={name:"SlackBot"},i=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(t){var n={name:"Opera"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/opr\/|opios/i],describe:function(t){var n={name:"Opera"},i=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/SamsungBrowser/i],describe:function(t){var n={name:"Samsung Internet for Android"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/Whale/i],describe:function(t){var n={name:"NAVER Whale Browser"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/PaleMoon/i],describe:function(t){var n={name:"Pale Moon"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/MZBrowser/i],describe:function(t){var n={name:"MZ Browser"},i=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/focus/i],describe:function(t){var n={name:"Focus"},i=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/swing/i],describe:function(t){var n={name:"Swing"},i=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/coast/i],describe:function(t){var n={name:"Opera Coast"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var n={name:"Opera Touch"},i=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/yabrowser/i],describe:function(t){var n={name:"Yandex Browser"},i=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/ucbrowser/i],describe:function(t){var n={name:"UC Browser"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/Maxthon|mxios/i],describe:function(t){var n={name:"Maxthon"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/epiphany/i],describe:function(t){var n={name:"Epiphany"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/puffin/i],describe:function(t){var n={name:"Puffin"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sleipnir/i],describe:function(t){var n={name:"Sleipnir"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/k-meleon/i],describe:function(t){var n={name:"K-Meleon"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/micromessenger/i],describe:function(t){var n={name:"WeChat"},i=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/qqbrowser/i],describe:function(t){var n={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},i=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/msie|trident/i],describe:function(t){var n={name:"Internet Explorer"},i=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/\sedg\//i],describe:function(t){var n={name:"Microsoft Edge"},i=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/edg([ea]|ios)/i],describe:function(t){var n={name:"Microsoft Edge"},i=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/vivaldi/i],describe:function(t){var n={name:"Vivaldi"},i=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/seamonkey/i],describe:function(t){var n={name:"SeaMonkey"},i=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sailfish/i],describe:function(t){var n={name:"Sailfish"},i=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return i&&(n.version=i),n}},{test:[/silk/i],describe:function(t){var n={name:"Amazon Silk"},i=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/phantom/i],describe:function(t){var n={name:"PhantomJS"},i=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/slimerjs/i],describe:function(t){var n={name:"SlimerJS"},i=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n={name:"BlackBerry"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n={name:"WebOS Browser"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/bada/i],describe:function(t){var n={name:"Bada"},i=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/tizen/i],describe:function(t){var n={name:"Tizen"},i=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/qupzilla/i],describe:function(t){var n={name:"QupZilla"},i=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/librewolf/i],describe:function(t){var n={name:"LibreWolf"},i=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var n={name:"Firefox"},i=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/electron/i],describe:function(t){var n={name:"Electron"},i=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(t){var n={name:"Sogou Browser"},i=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,t),g=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t),l=o.default.getFirstMatch(/se ([\d.]+)x/i,t),f=i||g||l;return f&&(n.version=f),n}},{test:[/MiuiBrowser/i],describe:function(t){var n={name:"Miui"},i=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){return!!t.hasBrand("DuckDuckGo")||t.test(/\sDdg\/[\d.]+$/i)},describe:function(t,n){var i={name:"DuckDuckGo"};if(n){var g=n.getBrandVersion("DuckDuckGo");if(g)return i.version=g,i}var l=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,t);return l&&(i.version=l),i}},{test:function(t){return t.hasBrand("Brave")},describe:function(t,n){var i={name:"Brave"};if(n){var g=n.getBrandVersion("Brave");if(g)return i.version=g,i}return i}},{test:[/chromium/i],describe:function(t){var n={name:"Chromium"},i=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/chrome|crios|crmo/i],describe:function(t){var n={name:"Chrome"},i=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/GSA/i],describe:function(t){var n={name:"Google Search"},i=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){var n=!t.test(/like android/i),i=t.test(/android/i);return n&&i},describe:function(t){var n={name:"Android Browser"},i=o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/playstation 4/i],describe:function(t){var n={name:"PlayStation 4"},i=o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/safari|applewebkit/i],describe:function(t){var n={name:"Safari"},i=o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/.*/i],describe:function(t){var n=t.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(n,t),version:o.default.getSecondMatch(n,t)}}}];s.default=d,e.exports=s.default},93:function(e,s,c){s.__esModule=!0,s.default=void 0;var u,o=(u=c(17))&&u.__esModule?u:{default:u},a=c(18),d=[{test:[/Roku\/DVP/],describe:function(t){var n=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:a.OS_MAP.Roku,version:n}}},{test:[/windows phone/i],describe:function(t){var n=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.WindowsPhone,version:n}}},{test:[/windows /i],describe:function(t){var n=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),i=o.default.getWindowsVersionName(n);return{name:a.OS_MAP.Windows,version:n,versionName:i}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var n={name:a.OS_MAP.iOS},i=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return i&&(n.version=i),n}},{test:[/macintosh/i],describe:function(t){var n=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),i=o.default.getMacOSVersionName(n),g={name:a.OS_MAP.MacOS,version:n};return i&&(g.versionName=i),g}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var n=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:a.OS_MAP.iOS,version:n}}},{test:[/OpenHarmony/i],describe:function(t){var n=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.HarmonyOS,version:n}}},{test:function(t){var n=!t.test(/like android/i),i=t.test(/android/i);return n&&i},describe:function(t){var n=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),i=o.default.getAndroidVersionName(n),g={name:a.OS_MAP.Android,version:n};return i&&(g.versionName=i),g}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),i={name:a.OS_MAP.WebOS};return n&&n.length&&(i.version=n),i}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||o.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:a.OS_MAP.BlackBerry,version:n}}},{test:[/bada/i],describe:function(t){var n=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.Bada,version:n}}},{test:[/tizen/i],describe:function(t){var n=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.Tizen,version:n}}},{test:[/linux/i],describe:function(){return{name:a.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:a.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var n=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.PlayStation4,version:n}}}];s.default=d,e.exports=s.default},94:function(e,s,c){s.__esModule=!0,s.default=void 0;var u,o=(u=c(17))&&u.__esModule?u:{default:u},a=c(18),d=[{test:[/googlebot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(t){var n=o.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",i={type:a.PLATFORMS_MAP.mobile,vendor:"Huawei"};return n&&(i.model=n),i}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(t){var n=t.test(/ipod|iphone/i),i=t.test(/like (ipod|iphone)/i);return n&&!i},describe:function(t){var n=o.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:a.PLATFORMS_MAP.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(t){var n=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,t),i={type:a.PLATFORMS_MAP.mobile,vendor:"Nokia"};return n&&(i.model=n),i}},{test:[/[^-]mobi/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getBrowserName(!0)==="blackberry"},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return t.getBrowserName(!0)==="bada"},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getBrowserName()==="windows phone"},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var n=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&n>=3},describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(t){return t.getOSName(!0)==="android"},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(t){return t.getOSName(!0)==="macos"},describe:function(){return{type:a.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return t.getOSName(!0)==="windows"},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(t){return t.getOSName(!0)==="linux"},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(t){return t.getOSName(!0)==="playstation 4"},describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(t){return t.getOSName(!0)==="roku"},describe:function(){return{type:a.PLATFORMS_MAP.tv}}}];s.default=d,e.exports=s.default},95:function(e,s,c){s.__esModule=!0,s.default=void 0;var u,o=(u=c(17))&&u.__esModule?u:{default:u},a=c(18),d=[{test:function(t){return t.getBrowserName(!0)==="microsoft edge"},describe:function(t){if(/\sedg\//i.test(t))return{name:a.ENGINE_MAP.Blink};var n=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:a.ENGINE_MAP.EdgeHTML,version:n}}},{test:[/trident/i],describe:function(t){var n={name:a.ENGINE_MAP.Trident},i=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){return t.test(/presto/i)},describe:function(t){var n={name:a.ENGINE_MAP.Presto},i=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){var n=t.test(/gecko/i),i=t.test(/like gecko/i);return n&&!i},describe:function(t){var n={name:a.ENGINE_MAP.Gecko},i=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:a.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var n={name:a.ENGINE_MAP.WebKit},i=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}}];s.default=d,e.exports=s.default}})})});var L=r(function(Vi){var{Retry:Qn,RETRY_MODES:pt}=qe(),{HttpRequest:le,parseUrl:Jn}=H(),{InvokeStore:ht}=Ze(),{normalizeProvider:Zn}=ve(),{platform:ei,release:ti}=p("os"),{versions:oe,env:gt}=p("process"),{isValidHostLabel:ri,isIpAddress:_t,customEndpointFunctions:ni}=Se(),{EndpointError:ii,resolveEndpoint:si}=Se();Vi.EndpointError=ii;Vi.isIpAddress=_t;Vi.resolveEndpoint=si;var{loadConfig:oi,NODE_REGION_CONFIG_OPTIONS:Mt,NODE_REGION_CONFIG_FILE_OPTIONS:wt}=b(),{REGION_ENV_NAME:ai,REGION_INI_NAME:ci,resolveRegionConfig:ui}=b();Vi.NODE_REGION_CONFIG_FILE_OPTIONS=wt;Vi.NODE_REGION_CONFIG_OPTIONS=Mt;Vi.REGION_ENV_NAME=ai;Vi.REGION_INI_NAME=ci;Vi.resolveRegionConfig=ui;var W={warningEmitted:!1},di=(e)=>{if(e&&!W.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){W.warningEmitted=!0;return}let s=parseInt(e.substring(1,e.indexOf("."))),c=22;if(s<c)W.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
2
|
+
import{yt,De,X,b,we,J,H}from"./chunk-adys4qq4.js";import{r,p}from"./chunk-bwawt15q.js";var qe=r(function(yr){var{Readable:Kt}=p("stream"),{NoOpLogger:Xt,normalizeProvider:Se}=X(),{HttpResponse:Me,HttpRequest:N}=H(),{parseRfc7231DateTime:Qt,v4:ve}=J(),{hasOwn:Jt}=De(),Ee=(e)=>e?.body instanceof Kt||typeof ReadableStream<"u"&&e?.body instanceof ReadableStream,Zt=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],er=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],tr=["TimeoutError","RequestTimeout","RequestTimeoutException"],rr=[500,502,503,504],nr=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],ir=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"],j=(e)=>e?.$retryable!==void 0,Te=(e)=>Zt.includes(e.name),Re=(e)=>e.$metadata?.clockSkewCorrected,Pe=(e)=>{let s=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(e&&e instanceof TypeError))return!1;return s.has(e.message)},P=(e)=>e.$metadata?.httpStatusCode===429||er.includes(e.name)||e.$retryable?.throttling==!0,x=(e,s=0)=>e?.name!=="AbortError"&&(j(e)||Re(e)||e.name==="InvalidSignatureException"&&e.message?.includes("Signature expired")||tr.includes(e.name)||nr.includes(e?.code||"")||ir.includes(e?.code||"")||rr.includes(e.$metadata?.httpStatusCode||0)||Pe(e)||Oe(e)||e.cause!==void 0&&s<=10&&x(e.cause,s+1)),xe=(e)=>{if(e.$metadata?.httpStatusCode!==void 0){let s=e.$metadata.httpStatusCode;if(500<=s&&s<=599&&!x(e))return!0;return!1}return!1};function Oe(e){return e.code==="ERR_HTTP2_STREAM_ERROR"&&e.message.includes("NGHTTP2_REFUSED_STREAM")}var ke=100,C=20000,Fe=500,D=500,Ie=5,Ne=10,K=1,B="amz-sdk-invocation-id",U="amz-sdk-request";function Ce(e,s){if(!Me.isInstance(e))return;for(let c in e.headers){if(!Jt(e.headers,c))continue;let u=c.toLowerCase();if(u==="retry-after"){let o=e.headers[c],a=NaN;if(o.endsWith("GMT"))try{a=(Qt(o).getTime()-Date.now())/1000}catch(d){s?.trace?.("Failed to parse retry-after header"),s?.trace?.(d)}else if(o.match(/ GMT, ((\d+)|(\d+\.\d+))$/))a=Number(o.match(/ GMT, ([\d.]+)$/)?.[1]);else if(o.match(/^((\d+)|(\d+\.\d+))$/))a=Number(o);else if(Date.parse(o)>=Date.now())a=(Date.parse(o)-Date.now())/1000;if(isNaN(a))return;return new Date(Date.now()+a*1000)}else if(u==="x-amz-retry-after"){let o=e.headers[c],a=Number(o);if(isNaN(a)){s?.trace?.(`Failed to parse x-amz-retry-after=${o}`);return}return new Date(Date.now()+a)}}}function sr(e,s){return Ce(e,s)}var Be=(e)=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(Error(),e);if(typeof e==="string")return Error(e);return Error(`AWS SDK error wrapper for ${e}`)};function Le(e){return(s)=>(c,u)=>async(o)=>{let a=await s.retryStrategy(),d=await s.maxAttempts();if(ar(a)){a=a;let t=await a.acquireInitialRetryToken((u.partition_id??"")+(u.__retryLongPoll?":longpoll":"")),n=Error(),i=0,g=0,{request:l}=o,f=N.isInstance(l);if(f)l.headers[B]=ve();while(!0)try{if(f)l.headers[U]=`attempt=${i+1}; max=${d}`;let{response:h,output:m}=await c(o);return a.recordSuccess(t),m.$metadata.attempts=i+1,m.$metadata.totalRetryDelay=g,{response:h,output:m}}catch(h){let m=cr(h,s.logger);if(n=Be(h),f&&e(l))throw(u.logger instanceof Xt?console:u.logger)?.warn("An error was encountered in a non-retryable streaming request."),n;try{t=await a.refreshRetryTokenForRetry(t,m)}catch(S){if(!n.$metadata)n.$metadata={};throw n.$metadata.attempts=i+1,n.$metadata.totalRetryDelay=g,n}i=t.getRetryCount();let A=t.getRetryDelay();if(g+=(t?.$retryLog?.acquisitionDelay??0)+A,A>0)await or(A)}}else{if(a=a,a?.mode)u.userAgent=[...u.userAgent||[],["cfg/retry-mode",a.mode]];return a.retry(c,o)}}}var or=(e)=>new Promise((s)=>setTimeout(s,e)),ar=(e)=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",cr=(e,s)=>{let c={error:e,errorType:ur(e)},u=Ce(e.$response,s);if(u)c.retryAfterHint=u;return c},ur=(e)=>{if(P(e))return"THROTTLING";if(x(e))return"TRANSIENT";if(xe(e))return"SERVER_ERROR";return"CLIENT_ERROR"},Ue={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function dr(e){let s=Le(e);return(c)=>({applyToStack:(u)=>{u.add(s(c),Ue)}})}class O{static setTimeoutFn=(e,s)=>setTimeout(e,s);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??0.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??0.5,this.scaleConstant=e?.scaleConstant??0.4,this.smooth=e?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let s;this.updateMeasuredRate();let c=e;if(c?.errorType==="THROTTLING"||P(c?.error??e)){let a=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),s=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),s=this.cubicSuccess(this.getCurrentTimeInSeconds());let o=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(o)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(e){if(!this.enabled)return;this.refillTokenBucket();while(e>this.availableTokens){let s=(e-this.availableTokens)/this.fillRate*1000;await new Promise((c)=>O.setTimeoutFn(c,s)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let s=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+s),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),s=Math.floor(e*2)/2;if(this.requestCount++,s>this.lastTxRateBucket){let c=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(c*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=s}}getPrecise(e){return parseFloat(e.toFixed(8))}}class y{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return y.v2026?50:100}static throttlingDelay(){return y.v2026?1000:500}static cost(){return y.v2026?14:5}static throttlingCost(){return y.v2026?5:10}static modifiedCostType(){return y.v2026?"THROTTLING":"TRANSIENT"}}class He{x=y.delay();computeNextBackoffDelay(e){let s=Math.random(),c=2,u=s*Math.min(this.x*2**e,C);return Math.floor(u)}setDelayBase(e){this.x=e}}class V{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,s,c,u){this.delay=e,this.count=s,this.cost=c,this.longPoll=u}getRetryCount(){return this.count}getRetryDelay(){return Math.min(C,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var w;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(w||(w={}));var E=3,Ge=w.STANDARD,I={incompatible:1,attempts:2,capacity:3},R=class{mode=w.STANDARD;retryBackoffStrategy;capacity=D;maxAttemptsProvider;baseDelay;constructor(s){if(typeof s==="number")this.maxAttemptsProvider=async()=>s;else if(typeof s==="function")this.maxAttemptsProvider=s;else if(s&&typeof s==="object")this.maxAttemptsProvider=async()=>s.maxAttempts,this.baseDelay=s.baseDelay,this.retryBackoffStrategy=s.backoff;this.maxAttemptsProvider??=async()=>E,this.baseDelay??=y.delay(),this.retryBackoffStrategy??=new He}async acquireInitialRetryToken(s){return new V(y.delay(),0,void 0,y.v2026&&s.includes(":longpoll"))}async refreshRetryTokenForRetry(s,c){let u=await this.getMaxAttempts(),o=this.retryCode(s,c,u),a=o===0,d=s.isLongPoll?.();if(a||d){let t=c.errorType;this.retryBackoffStrategy.setDelayBase(t==="THROTTLING"?y.throttlingDelay():this.baseDelay);let n=this.retryBackoffStrategy.computeNextBackoffDelay(s.getRetryCount()),i=n;if(c.retryAfterHint instanceof Date)i=Math.max(n,Math.min(c.retryAfterHint.getTime()-Date.now(),n+5000));if(!a){let g=y.v2026&&o===I.capacity&&d?i:0;if(g>0)await new Promise((l)=>setTimeout(l,g))}else{let g=this.getCapacityCost(t);this.capacity-=g;let l=new V(0,s.getRetryCount()+1,g,s.isLongPoll?.()??!1);return await new Promise((f)=>setTimeout(f,i)),l.$retryLog.acquisitionDelay=i,l}}throw Error("No retry token available")}recordSuccess(s){this.capacity=Math.min(D,this.capacity+(s.getRetryCost()??K))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(s){return console.warn(`Max attempts provider could not resolve. Using default of ${E}`),E}}retryCode(s,c,u){let o=s.getRetryCount()+1,a=this.isRetryableError(c.errorType)?0:I.incompatible,d=o<u?0:I.attempts,t=this.capacity>=this.getCapacityCost(c.errorType)?0:I.capacity;return a||d||t}getCapacityCost(s){return s===y.modifiedCostType()?y.throttlingCost():y.cost()}isRetryableError(s){return s==="THROTTLING"||s==="TRANSIENT"}},We=class{mode=w.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(s,c){let{rateLimiter:u}=c??{};this.rateLimiter=u??new O,this.standardRetryStrategy=c?new R({maxAttempts:typeof s==="number"?s:3,...c}):new R(s)}async acquireInitialRetryToken(s){let c=await this.standardRetryStrategy.acquireInitialRetryToken(s);return await this.rateLimiter.getSendToken(),c}async refreshRetryTokenForRetry(s,c){this.rateLimiter.updateClientSendingRate(c);let u=await this.standardRetryStrategy.refreshRetryTokenForRetry(s,c);return await this.rateLimiter.getSendToken(),u}recordSuccess(s){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(s)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class $e extends R{computeNextBackoffDelay;constructor(e,s=y.delay()){super(typeof e==="function"?e:async()=>e);if(typeof s==="number")this.computeNextBackoffDelay=()=>s;else this.computeNextBackoffDelay=s;this.retryBackoffStrategy.computeNextBackoffDelay=(c)=>{let u=c+1;return this.computeNextBackoffDelay(u)}}}var lr=(e,s)=>{let c=e,u=K,o=Ie,a=Ne,d=e,t=(l)=>l.name==="TimeoutError"?a:o,n=(l)=>t(l)<=d;return Object.freeze({hasRetryTokens:n,retrieveRetryTokens:(l)=>{if(!n(l))throw Error("No retry token available");let f=t(l);return d-=f,f},releaseRetryTokens:(l)=>{d+=l??u,d=Math.min(d,c)}})},Ve=(e,s)=>Math.floor(Math.min(C,Math.random()*2**s*e)),ze=(e)=>{if(!e)return!1;return j(e)||Te(e)||P(e)||x(e)};class Q{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=w.STANDARD;constructor(e,s){this.maxAttemptsProvider=e,this.retryDecider=s?.retryDecider??ze,this.delayDecider=s?.delayDecider??Ve,this.retryQuota=s?.retryQuota??lr(D)}shouldRetry(e,s,c){return s<c&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(s){e=E}return e}async retry(e,s,c){let u,o=0,a=0,d=await this.getMaxAttempts(),{request:t}=s;if(N.isInstance(t))t.headers[B]=ve();while(!0)try{if(N.isInstance(t))t.headers[U]=`attempt=${o+1}; max=${d}`;if(c?.beforeRequest)await c.beforeRequest();let{response:n,output:i}=await e(s);if(c?.afterRequest)c.afterRequest(n);return this.retryQuota.releaseRetryTokens(u),i.$metadata.attempts=o+1,i.$metadata.totalRetryDelay=a,{response:n,output:i}}catch(n){let i=Be(n);if(o++,this.shouldRetry(i,o,d)){u=this.retryQuota.retrieveRetryTokens(i);let g=this.delayDecider(P(i)?Fe:ke,o),l=fr(i.$response),f=Math.max(l||0,g);a+=f,await new Promise((h)=>setTimeout(h,f));continue}if(!i.$metadata)i.$metadata={};throw i.$metadata.attempts=o,i.$metadata.totalRetryDelay=a,i}}}var fr=(e)=>{if(!Me.isInstance(e))return;let s=Object.keys(e.headers).find((a)=>a.toLowerCase()==="retry-after");if(!s)return;let c=e.headers[s],u=Number(c);if(!Number.isNaN(u))return Math.min(u*1000,20000);let o=new Date(c);return Math.min(o.getTime()-Date.now(),20000)};class Ye extends Q{rateLimiter;constructor(e,s){let{rateLimiter:c,...u}=s??{};super(e,u);this.rateLimiter=c??new O,this.mode=w.ADAPTIVE}async retry(e,s){return super.retry(e,s,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:(c)=>{this.rateLimiter.updateClientSendingRate(c)}})}}var z="AWS_MAX_ATTEMPTS",Y="max_attempts",pr={environmentVariableSelector:(e)=>{let s=e[z];if(!s)return;let c=parseInt(s);if(Number.isNaN(c))throw Error(`Environment variable ${z} mast be a number, got "${s}"`);return c},configFileSelector:(e)=>{let s=e[Y];if(!s)return;let c=parseInt(s);if(Number.isNaN(c))throw Error(`Shared config file entry ${Y} mast be a number, got "${s}"`);return c},default:E},hr=(e,s)=>{let{retryStrategy:c,retryMode:u}=e,{defaultMaxAttempts:o=E,defaultBaseDelay:a=y.delay()}=s??{},d=Se(e.maxAttempts??o),t=c?Promise.resolve(c):void 0,n=async()=>{let i=await d();if(await Se(u)()===w.ADAPTIVE)return new We(d,{maxAttempts:i,baseDelay:a});return new R({maxAttempts:i,baseDelay:a})};return Object.assign(e,{maxAttempts:d,retryStrategy:()=>t??=n()})},je="AWS_RETRY_MODE",Ke="retry_mode",gr={environmentVariableSelector:(e)=>e[je],configFileSelector:(e)=>e[Ke],default:Ge},Xe=()=>(e)=>async(s)=>{let{request:c}=s;if(N.isInstance(c))delete c.headers[B],delete c.headers[U];return e(s)},Qe={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},mr=(e)=>({applyToStack:(s)=>{s.addRelativeTo(Xe(),Qe)}}),Ar=Le(Ee),br=dr(Ee);yr.AdaptiveRetryStrategy=We;yr.CONFIG_MAX_ATTEMPTS=Y;yr.CONFIG_RETRY_MODE=Ke;yr.ConfiguredRetryStrategy=$e;yr.DEFAULT_MAX_ATTEMPTS=E;yr.DEFAULT_RETRY_DELAY_BASE=ke;yr.DEFAULT_RETRY_MODE=Ge;yr.DefaultRateLimiter=O;yr.DeprecatedAdaptiveRetryStrategy=Ye;yr.DeprecatedStandardRetryStrategy=Q;yr.ENV_MAX_ATTEMPTS=z;yr.ENV_RETRY_MODE=je;yr.INITIAL_RETRY_TOKENS=D;yr.INVOCATION_ID_HEADER=B;yr.MAXIMUM_RETRY_DELAY=C;yr.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=pr;yr.NODE_RETRY_MODE_CONFIG_OPTIONS=gr;yr.NO_RETRY_INCREMENT=K;yr.REQUEST_HEADER=U;yr.RETRY_COST=Ie;yr.RETRY_MODES=w;yr.Retry=y;yr.StandardRetryStrategy=R;yr.THROTTLING_RETRY_DELAY_BASE=Fe;yr.TIMEOUT_RETRY_COST=Ne;yr.defaultDelayDecider=Ve;yr.defaultRetryDecider=ze;yr.getOmitRetryHeadersPlugin=mr;yr.getRetryAfterHint=sr;yr.getRetryPlugin=br;yr.isBrowserNetworkError=Pe;yr.isClockSkewCorrectedError=Re;yr.isClockSkewError=Te;yr.isNodeJsHttp2TransientError=Oe;yr.isRetryableByTrait=j;yr.isServerError=xe;yr.isThrottlingError=P;yr.isTransientError=x;yr.omitRetryHeadersMiddleware=Xe;yr.omitRetryHeadersMiddlewareOptions=Qe;yr.resolveRetryConfig=hr;yr.retryMiddleware=Ar;yr.retryMiddlewareOptions=Ue});var Ze=r(function(dn){var v={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},Z=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!Z)globalThis.awslambda=globalThis.awslambda||{};class q{static PROTECTED_KEYS=v;isProtectedKey(e){return Object.values(v).includes(e)}getRequestId(){return this.get(v.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(v.X_RAY_TRACE_ID)}getTenantId(){return this.get(v.TENANT_ID)}getTraceparent(){return this.get(v.TRACEPARENT)}getTracestate(){return this.get(v.TRACESTATE)}getBaggage(){return this.get(v.BAGGAGE)}}class Je extends q{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,s){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=s}run(e,s){return this.currentContext=e,s()}}class te extends q{als;static async create(){let e=new te,s=await import("async_hooks");return e.als=new s.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,s){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);let c=this.als.getStore();if(!c)throw Error("No context available");c[e]=s}run(e,s){return this.als.run(e,s)}}dn.InvokeStore=void 0;(function(e){let s=null;async function c(u){if(!s)s=(async()=>{let a=u===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await te.create():new Je;if(!Z&&globalThis.awslambda?.InvokeStore)return globalThis.awslambda.InvokeStore;else if(!Z&&globalThis.awslambda)return globalThis.awslambda.InvokeStore=a,a;else return a})();return s}e.getInstanceAsync=c,e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{if(s=null,globalThis.awslambda?.InvokeStore)delete globalThis.awslambda.InvokeStore;globalThis.awslambda={InvokeStore:void 0}}}:void 0})(dn.InvokeStore||(dn.InvokeStore={}));dn.InvokeStoreBase=q});var _e=r(function(Pn){var{getSmithyContext:re,hasOwn:fn}=De();Pn.getSmithyContext=re;var{HttpRequest:ne}=H(),{requestBuilder:pn}=H();Pn.requestBuilder=pn;var{HttpApiKeyAuthLocation:et}=yt(),hn=(e,s)=>{if(!s||s.length===0)return e;let c=[];for(let u of s)for(let o of e)if(o.schemeId.split("#")[1]===u)c.push(o);for(let u of e)if(!c.find(({schemeId:o})=>o===u.schemeId))c.push(u);return c};function gn(e){let s=new Map;for(let c of e)s.set(c.schemeId,c);return s}var ie=(e,s)=>(c,u)=>async(o)=>{let a=e.httpAuthSchemeProvider(await s.httpAuthSchemeParametersProvider(e,u,o.input)),d=e.authSchemePreference?await e.authSchemePreference():[],t=hn(a,d),n=gn(e.httpAuthSchemes),i=re(u),g=[];for(let l of t){let f=n.get(l.schemeId);if(!f){g.push(`HttpAuthScheme \`${l.schemeId}\` was not enabled for this service.`);continue}let h=f.identityProvider(await s.identityProviderConfigProvider(e));if(!h){g.push(`HttpAuthScheme \`${l.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:m={},signingProperties:A={}}=l.propertiesExtractor?.(e,u)||{};l.identityProperties=Object.assign(l.identityProperties||{},m),l.signingProperties=Object.assign(l.signingProperties||{},A),i.selectedHttpAuthScheme={httpAuthOption:l,identity:await h(l.identityProperties),signer:f.signer};break}if(!i.selectedHttpAuthScheme)throw Error(g.join(`
|
|
3
|
+
`));return c(o)},tt={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},mn=(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c})=>({applyToStack:(u)=>{u.addRelativeTo(ie(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c}),tt)}}),rt={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},An=(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c})=>({applyToStack:(u)=>{u.addRelativeTo(ie(e,{httpAuthSchemeParametersProvider:s,identityProviderConfigProvider:c}),rt)}}),bn=(e)=>(s)=>{throw s},yn=(e,s)=>{},nt=(e)=>(s,c)=>async(u)=>{if(!ne.isInstance(u.request))return s(u);let a=re(c).selectedHttpAuthScheme;if(!a)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:d={}},identity:t,signer:n}=a,i=await s({...u,request:await n.sign(u.request,t,d)}).catch((n.errorHandler||bn)(d));return(n.successHandler||yn)(i.response,d),i},it={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Sn=(e)=>({applyToStack:(s)=>{s.addRelativeTo(nt(),it)}}),_n=(e)=>{if(typeof e==="function")return e;let s=Promise.resolve(e);return()=>s},Mn=async(e,s,c,u=(a)=>a,...o)=>{let a=new e(c);return a=u(a)??a,await s.send(a,...o)};function wn(e,s,c,u,o){return async function*(d,t,...n){let i=t,g=d.startingToken??i[c],l=!0,f;while(l){if(i[c]=g,o)i[o]=i[o]??d.pageSize;if(d.client instanceof e)f=await Mn(s,d.client,t,d.withCommand,...n);else throw Error(`Invalid client, expected instance of ${e.name}`);yield f;let h=g;g=vn(f,u),l=!!(g&&(!d.stopOnSameToken||g!==h))}return}}var vn=(e,s)=>{let c=e,u=s.split(".");for(let o of u){if(!c||typeof c!=="object")return;c=c[o]}return c};function En(e,s,c){if(!e.__smithy_context)e.__smithy_context={features:{}};else if(!e.__smithy_context.features)e.__smithy_context.features={};e.__smithy_context.features[s]=c}class st{authSchemes=new Map;constructor(e){for(let s in e){if(!fn(e,s))continue;let c=e[s];if(c!==void 0)this.authSchemes.set(s,c)}}getIdentityProvider(e){return this.authSchemes.get(e)}}class ot{async sign(e,s,c){if(!c)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!c.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!c.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!s.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let u=ne.clone(e);if(c.in===et.QUERY)u.query[c.name]=s.apiKey;else if(c.in===et.HEADER)u.headers[c.name]=c.scheme?`${c.scheme} ${s.apiKey}`:s.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+c.in+"`");return u}}class at{async sign(e,s,c){let u=ne.clone(e);if(!s.token)throw Error("request could not be signed with `token` since the `token` is not defined");return u.headers.Authorization=`Bearer ${s.token}`,u}}class ct{async sign(e,s,c){return e}}var ut=(e)=>function(c){return lt(c)&&c.expiration.getTime()-Date.now()<e},dt=300000,Tn=ut(dt),lt=(e)=>e.expiration!==void 0,Rn=(e,s,c)=>{if(e===void 0)return;let u=typeof e!=="function"?async()=>Promise.resolve(e):e,o,a,d,t=!1,n=async(i)=>{if(!a)a=u(i);try{o=await a,d=!0,t=!1}finally{a=void 0}return o};if(s===void 0)return async(i)=>{if(!d||i?.forceRefresh)o=await n(i);return o};return async(i)=>{if(!d||i?.forceRefresh)o=await n(i);if(t)return o;if(!c(o))return t=!0,o;if(s(o))return await n(i),o;return o}};Pn.DefaultIdentityProviderConfig=st;Pn.EXPIRATION_MS=dt;Pn.HttpApiKeyAuthSigner=ot;Pn.HttpBearerAuthSigner=at;Pn.NoAuthSigner=ct;Pn.createIsIdentityExpiredFunction=ut;Pn.createPaginator=wn;Pn.doesIdentityRequireRefresh=lt;Pn.getHttpAuthSchemeEndpointRuleSetPlugin=mn;Pn.getHttpAuthSchemePlugin=An;Pn.getHttpSigningPlugin=Sn;Pn.httpAuthSchemeEndpointRuleSetMiddlewareOptions=tt;Pn.httpAuthSchemeMiddleware=ie;Pn.httpAuthSchemeMiddlewareOptions=rt;Pn.httpSigningMiddleware=nt;Pn.httpSigningMiddlewareOptions=it;Pn.isIdentityExpired=Tn;Pn.memoizeIdentityProvider=Rn;Pn.normalizeProvider=_n;Pn.setFeature=En});var ft=r(function(k,se){(function(e,s){typeof k=="object"&&typeof se=="object"?se.exports=s():typeof define=="function"&&define.amd?define([],s):typeof k=="object"?k.bowser=s():e.bowser=s()})(k,function(){return function(e){var s={};function c(u){if(s[u])return s[u].exports;var o=s[u]={i:u,l:!1,exports:{}};return e[u].call(o.exports,o,o.exports,c),o.l=!0,o.exports}return c.m=e,c.c=s,c.d=function(u,o,a){c.o(u,o)||Object.defineProperty(u,o,{enumerable:!0,get:a})},c.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},c.t=function(u,o){if(1&o&&(u=c(u)),8&o)return u;if(4&o&&typeof u=="object"&&u&&u.__esModule)return u;var a=Object.create(null);if(c.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:u}),2&o&&typeof u!="string")for(var d in u)c.d(a,d,function(t){return u[t]}.bind(null,d));return a},c.n=function(u){var o=u&&u.__esModule?function(){return u.default}:function(){return u};return c.d(o,"a",o),o},c.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},c.p="",c(c.s=90)}({17:function(e,s,c){s.__esModule=!0,s.default=void 0;var u=c(18),o=function(){function a(){}return a.getFirstMatch=function(d,t){var n=t.match(d);return n&&n.length>0&&n[1]||""},a.getSecondMatch=function(d,t){var n=t.match(d);return n&&n.length>1&&n[2]||""},a.matchAndReturnConst=function(d,t,n){if(d.test(t))return n},a.getWindowsVersionName=function(d){switch(d){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},a.getMacOSVersionName=function(d){var t=d.split(".").splice(0,2).map(function(g){return parseInt(g,10)||0});t.push(0);var n=t[0],i=t[1];if(n===10)switch(i){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(n){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},a.getAndroidVersionName=function(d){var t=d.split(".").splice(0,2).map(function(n){return parseInt(n,10)||0});if(t.push(0),!(t[0]===1&&t[1]<5))return t[0]===1&&t[1]<6?"Cupcake":t[0]===1&&t[1]>=6?"Donut":t[0]===2&&t[1]<2?"Eclair":t[0]===2&&t[1]===2?"Froyo":t[0]===2&&t[1]>2?"Gingerbread":t[0]===3?"Honeycomb":t[0]===4&&t[1]<1?"Ice Cream Sandwich":t[0]===4&&t[1]<4?"Jelly Bean":t[0]===4&&t[1]>=4?"KitKat":t[0]===5?"Lollipop":t[0]===6?"Marshmallow":t[0]===7?"Nougat":t[0]===8?"Oreo":t[0]===9?"Pie":void 0},a.getVersionPrecision=function(d){return d.split(".").length},a.compareVersions=function(d,t,n){n===void 0&&(n=!1);var i=a.getVersionPrecision(d),g=a.getVersionPrecision(t),l=Math.max(i,g),f=0,h=a.map([d,t],function(m){var A=l-a.getVersionPrecision(m),S=m+Array(A+1).join(".0");return a.map(S.split("."),function(T){return Array(20-T.length).join("0")+T}).reverse()});for(n&&(f=l-Math.min(i,g)),l-=1;l>=f;){if(h[0][l]>h[1][l])return 1;if(h[0][l]===h[1][l]){if(l===f)return 0;l-=1}else if(h[0][l]<h[1][l])return-1}},a.map=function(d,t){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(d,t);for(n=0;n<d.length;n+=1)i.push(t(d[n]));return i},a.find=function(d,t){var n,i;if(Array.prototype.find)return Array.prototype.find.call(d,t);for(n=0,i=d.length;n<i;n+=1){var g=d[n];if(t(g,n))return g}},a.assign=function(d){for(var t,n,i=d,g=arguments.length,l=Array(g>1?g-1:0),f=1;f<g;f++)l[f-1]=arguments[f];if(Object.assign)return Object.assign.apply(Object,[d].concat(l));var h=function(){var m=l[t];typeof m=="object"&&m!==null&&Object.keys(m).forEach(function(A){i[A]=m[A]})};for(t=0,n=l.length;t<n;t+=1)h();return d},a.getBrowserAlias=function(d){return u.BROWSER_ALIASES_MAP[d]},a.getBrowserTypeByAlias=function(d){return u.BROWSER_MAP[d]||""},a}();s.default=o,e.exports=s.default},18:function(e,s,c){s.__esModule=!0,s.ENGINE_MAP=s.OS_MAP=s.PLATFORMS_MAP=s.BROWSER_MAP=s.BROWSER_ALIASES_MAP=void 0,s.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},s.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},s.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},s.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},s.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,s,c){s.__esModule=!0,s.default=void 0;var u,o=(u=c(91))&&u.__esModule?u:{default:u},a=c(18);function d(n,i){for(var g=0;g<i.length;g++){var l=i[g];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}var t=function(){function n(){}var i,g,l;return n.getParser=function(f,h,m){if(h===void 0&&(h=!1),m===void 0&&(m=null),typeof f!="string")throw Error("UserAgent should be a string");return new o.default(f,h,m)},n.parse=function(f,h){return h===void 0&&(h=null),new o.default(f,h).getResult()},i=n,l=[{key:"BROWSER_MAP",get:function(){return a.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return a.ENGINE_MAP}},{key:"OS_MAP",get:function(){return a.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return a.PLATFORMS_MAP}}],(g=null)&&d(i.prototype,g),l&&d(i,l),n}();s.default=t,e.exports=s.default},91:function(e,s,c){s.__esModule=!0,s.default=void 0;var u=n(c(92)),o=n(c(93)),a=n(c(94)),d=n(c(95)),t=n(c(17));function n(g){return g&&g.__esModule?g:{default:g}}var i=function(){function g(f,h,m){if(h===void 0&&(h=!1),m===void 0&&(m=null),f==null||f==="")throw Error("UserAgent parameter can't be empty");this._ua=f;var A=!1;typeof h=="boolean"?(A=h,this._hints=m):this._hints=h!=null&&typeof h=="object"?h:null,this.parsedResult={},A!==!0&&this.parse()}var l=g.prototype;return l.getHints=function(){return this._hints},l.hasBrand=function(f){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var h=f.toLowerCase();return this._hints.brands.some(function(m){return m.brand&&m.brand.toLowerCase()===h})},l.getBrandVersion=function(f){if(this._hints&&Array.isArray(this._hints.brands)){var h=f.toLowerCase(),m=this._hints.brands.find(function(A){return A.brand&&A.brand.toLowerCase()===h});return m?m.version:void 0}},l.getUA=function(){return this._ua},l.test=function(f){return f.test(this._ua)},l.parseBrowser=function(){var f=this;this.parsedResult.browser={};var h=t.default.find(u.default,function(m){if(typeof m.test=="function")return m.test(f);if(Array.isArray(m.test))return m.test.some(function(A){return f.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.browser=h.describe(this.getUA(),this)),this.parsedResult.browser},l.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},l.getBrowserName=function(f){return f?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},l.getBrowserVersion=function(){return this.getBrowser().version},l.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},l.parseOS=function(){var f=this;this.parsedResult.os={};var h=t.default.find(o.default,function(m){if(typeof m.test=="function")return m.test(f);if(Array.isArray(m.test))return m.test.some(function(A){return f.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.os=h.describe(this.getUA())),this.parsedResult.os},l.getOSName=function(f){var h=this.getOS().name;return f?String(h).toLowerCase()||"":h||""},l.getOSVersion=function(){return this.getOS().version},l.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},l.getPlatformType=function(f){f===void 0&&(f=!1);var h=this.getPlatform().type;return f?String(h).toLowerCase()||"":h||""},l.parsePlatform=function(){var f=this;this.parsedResult.platform={};var h=t.default.find(a.default,function(m){if(typeof m.test=="function")return m.test(f);if(Array.isArray(m.test))return m.test.some(function(A){return f.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.platform=h.describe(this.getUA())),this.parsedResult.platform},l.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},l.getEngineName=function(f){return f?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},l.parseEngine=function(){var f=this;this.parsedResult.engine={};var h=t.default.find(d.default,function(m){if(typeof m.test=="function")return m.test(f);if(Array.isArray(m.test))return m.test.some(function(A){return f.test(A)});throw Error("Browser's test function is not valid")});return h&&(this.parsedResult.engine=h.describe(this.getUA())),this.parsedResult.engine},l.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},l.getResult=function(){return t.default.assign({},this.parsedResult)},l.satisfies=function(f){var h=this,m={},A=0,S={},T=0;if(Object.keys(f).forEach(function(M){var F=f[M];typeof F=="string"?(S[M]=F,T+=1):typeof F=="object"&&(m[M]=F,A+=1)}),A>0){var he=Object.keys(m),ge=t.default.find(he,function(M){return h.isOS(M)});if(ge){var me=this.satisfies(m[ge]);if(me!==void 0)return me}var Ae=t.default.find(he,function(M){return h.isPlatform(M)});if(Ae){var be=this.satisfies(m[Ae]);if(be!==void 0)return be}}if(T>0){var jt=Object.keys(S),ye=t.default.find(jt,function(M){return h.isBrowser(M,!0)});if(ye!==void 0)return this.compareVersion(S[ye])}},l.isBrowser=function(f,h){h===void 0&&(h=!1);var m=this.getBrowserName().toLowerCase(),A=f.toLowerCase(),S=t.default.getBrowserTypeByAlias(A);return h&&S&&(A=S.toLowerCase()),A===m},l.compareVersion=function(f){var h=[0],m=f,A=!1,S=this.getBrowserVersion();if(typeof S=="string")return f[0]===">"||f[0]==="<"?(m=f.substr(1),f[1]==="="?(A=!0,m=f.substr(2)):h=[],f[0]===">"?h.push(1):h.push(-1)):f[0]==="="?m=f.substr(1):f[0]==="~"&&(A=!0,m=f.substr(1)),h.indexOf(t.default.compareVersions(S,m,A))>-1},l.isOS=function(f){return this.getOSName(!0)===String(f).toLowerCase()},l.isPlatform=function(f){return this.getPlatformType(!0)===String(f).toLowerCase()},l.isEngine=function(f){return this.getEngineName(!0)===String(f).toLowerCase()},l.is=function(f,h){return h===void 0&&(h=!1),this.isBrowser(f,h)||this.isOS(f)||this.isPlatform(f)},l.some=function(f){var h=this;return f===void 0&&(f=[]),f.some(function(m){return h.is(m)})},g}();s.default=i,e.exports=s.default},92:function(e,s,c){s.__esModule=!0,s.default=void 0;var u,o=(u=c(17))&&u.__esModule?u:{default:u},a=/version\/(\d+(\.?_?\d+)+)/i,d=[{test:[/gptbot/i],describe:function(t){var n={name:"GPTBot"},i=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/chatgpt-user/i],describe:function(t){var n={name:"ChatGPT-User"},i=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/oai-searchbot/i],describe:function(t){var n={name:"OAI-SearchBot"},i=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(t){var n={name:"ClaudeBot"},i=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(t){var n={name:"Omgilibot"},i=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/diffbot/i],describe:function(t){var n={name:"Diffbot"},i=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/perplexitybot/i],describe:function(t){var n={name:"PerplexityBot"},i=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/perplexity-user/i],describe:function(t){var n={name:"Perplexity-User"},i=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/youbot/i],describe:function(t){var n={name:"YouBot"},i=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-webindexer/i],describe:function(t){var n={name:"Meta-WebIndexer"},i=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-externalads/i],describe:function(t){var n={name:"Meta-ExternalAds"},i=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-externalagent/i],describe:function(t){var n={name:"Meta-ExternalAgent"},i=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/meta-externalfetcher/i],describe:function(t){var n={name:"Meta-ExternalFetcher"},i=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/googlebot/i],describe:function(t){var n={name:"Googlebot"},i=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/linespider/i],describe:function(t){var n={name:"Linespider"},i=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/amazonbot/i],describe:function(t){var n={name:"AmazonBot"},i=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/bingbot/i],describe:function(t){var n={name:"BingCrawler"},i=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/baiduspider/i],describe:function(t){var n={name:"BaiduSpider"},i=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/duckduckbot/i],describe:function(t){var n={name:"DuckDuckBot"},i=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/ia_archiver/i],describe:function(t){var n={name:"InternetArchiveCrawler"},i=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(t){var n={name:"SlackBot"},i=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(t){var n={name:"Opera"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/opr\/|opios/i],describe:function(t){var n={name:"Opera"},i=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/SamsungBrowser/i],describe:function(t){var n={name:"Samsung Internet for Android"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/Whale/i],describe:function(t){var n={name:"NAVER Whale Browser"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/PaleMoon/i],describe:function(t){var n={name:"Pale Moon"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/MZBrowser/i],describe:function(t){var n={name:"MZ Browser"},i=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/focus/i],describe:function(t){var n={name:"Focus"},i=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/swing/i],describe:function(t){var n={name:"Swing"},i=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/coast/i],describe:function(t){var n={name:"Opera Coast"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var n={name:"Opera Touch"},i=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/yabrowser/i],describe:function(t){var n={name:"Yandex Browser"},i=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/ucbrowser/i],describe:function(t){var n={name:"UC Browser"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/Maxthon|mxios/i],describe:function(t){var n={name:"Maxthon"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/epiphany/i],describe:function(t){var n={name:"Epiphany"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/puffin/i],describe:function(t){var n={name:"Puffin"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sleipnir/i],describe:function(t){var n={name:"Sleipnir"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/k-meleon/i],describe:function(t){var n={name:"K-Meleon"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/micromessenger/i],describe:function(t){var n={name:"WeChat"},i=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/qqbrowser/i],describe:function(t){var n={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},i=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/msie|trident/i],describe:function(t){var n={name:"Internet Explorer"},i=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/\sedg\//i],describe:function(t){var n={name:"Microsoft Edge"},i=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/edg([ea]|ios)/i],describe:function(t){var n={name:"Microsoft Edge"},i=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/vivaldi/i],describe:function(t){var n={name:"Vivaldi"},i=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/seamonkey/i],describe:function(t){var n={name:"SeaMonkey"},i=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sailfish/i],describe:function(t){var n={name:"Sailfish"},i=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return i&&(n.version=i),n}},{test:[/silk/i],describe:function(t){var n={name:"Amazon Silk"},i=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/phantom/i],describe:function(t){var n={name:"PhantomJS"},i=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/slimerjs/i],describe:function(t){var n={name:"SlimerJS"},i=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n={name:"BlackBerry"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n={name:"WebOS Browser"},i=o.default.getFirstMatch(a,t)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/bada/i],describe:function(t){var n={name:"Bada"},i=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/tizen/i],describe:function(t){var n={name:"Tizen"},i=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/qupzilla/i],describe:function(t){var n={name:"QupZilla"},i=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/librewolf/i],describe:function(t){var n={name:"LibreWolf"},i=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var n={name:"Firefox"},i=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/electron/i],describe:function(t){var n={name:"Electron"},i=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(t){var n={name:"Sogou Browser"},i=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,t),g=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t),l=o.default.getFirstMatch(/se ([\d.]+)x/i,t),f=i||g||l;return f&&(n.version=f),n}},{test:[/MiuiBrowser/i],describe:function(t){var n={name:"Miui"},i=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){return!!t.hasBrand("DuckDuckGo")||t.test(/\sDdg\/[\d.]+$/i)},describe:function(t,n){var i={name:"DuckDuckGo"};if(n){var g=n.getBrandVersion("DuckDuckGo");if(g)return i.version=g,i}var l=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,t);return l&&(i.version=l),i}},{test:function(t){return t.hasBrand("Brave")},describe:function(t,n){var i={name:"Brave"};if(n){var g=n.getBrandVersion("Brave");if(g)return i.version=g,i}return i}},{test:[/chromium/i],describe:function(t){var n={name:"Chromium"},i=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/chrome|crios|crmo/i],describe:function(t){var n={name:"Chrome"},i=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/GSA/i],describe:function(t){var n={name:"Google Search"},i=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){var n=!t.test(/like android/i),i=t.test(/android/i);return n&&i},describe:function(t){var n={name:"Android Browser"},i=o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/playstation 4/i],describe:function(t){var n={name:"PlayStation 4"},i=o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/safari|applewebkit/i],describe:function(t){var n={name:"Safari"},i=o.default.getFirstMatch(a,t);return i&&(n.version=i),n}},{test:[/.*/i],describe:function(t){var n=t.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(n,t),version:o.default.getSecondMatch(n,t)}}}];s.default=d,e.exports=s.default},93:function(e,s,c){s.__esModule=!0,s.default=void 0;var u,o=(u=c(17))&&u.__esModule?u:{default:u},a=c(18),d=[{test:[/Roku\/DVP/],describe:function(t){var n=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:a.OS_MAP.Roku,version:n}}},{test:[/windows phone/i],describe:function(t){var n=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.WindowsPhone,version:n}}},{test:[/windows /i],describe:function(t){var n=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),i=o.default.getWindowsVersionName(n);return{name:a.OS_MAP.Windows,version:n,versionName:i}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var n={name:a.OS_MAP.iOS},i=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return i&&(n.version=i),n}},{test:[/macintosh/i],describe:function(t){var n=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),i=o.default.getMacOSVersionName(n),g={name:a.OS_MAP.MacOS,version:n};return i&&(g.versionName=i),g}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var n=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:a.OS_MAP.iOS,version:n}}},{test:[/OpenHarmony/i],describe:function(t){var n=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.HarmonyOS,version:n}}},{test:function(t){var n=!t.test(/like android/i),i=t.test(/android/i);return n&&i},describe:function(t){var n=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),i=o.default.getAndroidVersionName(n),g={name:a.OS_MAP.Android,version:n};return i&&(g.versionName=i),g}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),i={name:a.OS_MAP.WebOS};return n&&n.length&&(i.version=n),i}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||o.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:a.OS_MAP.BlackBerry,version:n}}},{test:[/bada/i],describe:function(t){var n=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.Bada,version:n}}},{test:[/tizen/i],describe:function(t){var n=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.Tizen,version:n}}},{test:[/linux/i],describe:function(){return{name:a.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:a.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var n=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:a.OS_MAP.PlayStation4,version:n}}}];s.default=d,e.exports=s.default},94:function(e,s,c){s.__esModule=!0,s.default=void 0;var u,o=(u=c(17))&&u.__esModule?u:{default:u},a=c(18),d=[{test:[/googlebot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:a.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(t){var n=o.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",i={type:a.PLATFORMS_MAP.mobile,vendor:"Huawei"};return n&&(i.model=n),i}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(t){var n=t.test(/ipod|iphone/i),i=t.test(/like (ipod|iphone)/i);return n&&!i},describe:function(t){var n=o.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:a.PLATFORMS_MAP.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(t){var n=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,t),i={type:a.PLATFORMS_MAP.mobile,vendor:"Nokia"};return n&&(i.model=n),i}},{test:[/[^-]mobi/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getBrowserName(!0)==="blackberry"},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return t.getBrowserName(!0)==="bada"},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(t){return t.getBrowserName()==="windows phone"},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var n=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&n>=3},describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(t){return t.getOSName(!0)==="android"},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(t){return t.getOSName(!0)==="macos"},describe:function(){return{type:a.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return t.getOSName(!0)==="windows"},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(t){return t.getOSName(!0)==="linux"},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(t){return t.getOSName(!0)==="playstation 4"},describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(t){return t.getOSName(!0)==="roku"},describe:function(){return{type:a.PLATFORMS_MAP.tv}}}];s.default=d,e.exports=s.default},95:function(e,s,c){s.__esModule=!0,s.default=void 0;var u,o=(u=c(17))&&u.__esModule?u:{default:u},a=c(18),d=[{test:function(t){return t.getBrowserName(!0)==="microsoft edge"},describe:function(t){if(/\sedg\//i.test(t))return{name:a.ENGINE_MAP.Blink};var n=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:a.ENGINE_MAP.EdgeHTML,version:n}}},{test:[/trident/i],describe:function(t){var n={name:a.ENGINE_MAP.Trident},i=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){return t.test(/presto/i)},describe:function(t){var n={name:a.ENGINE_MAP.Presto},i=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:function(t){var n=t.test(/gecko/i),i=t.test(/like gecko/i);return n&&!i},describe:function(t){var n={name:a.ENGINE_MAP.Gecko},i=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:a.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var n={name:a.ENGINE_MAP.WebKit},i=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return i&&(n.version=i),n}}];s.default=d,e.exports=s.default}})})});var L=r(function(Vi){var{Retry:Qn,RETRY_MODES:pt}=qe(),{HttpRequest:le,parseUrl:Jn}=H(),{InvokeStore:ht}=Ze(),{normalizeProvider:Zn}=_e(),{platform:ei,release:ti}=p("os"),{versions:oe,env:gt}=p("process"),{isValidHostLabel:ri,isIpAddress:_t,customEndpointFunctions:ni}=we(),{EndpointError:ii,resolveEndpoint:si}=we();Vi.EndpointError=ii;Vi.isIpAddress=_t;Vi.resolveEndpoint=si;var{loadConfig:oi,NODE_REGION_CONFIG_OPTIONS:Mt,NODE_REGION_CONFIG_FILE_OPTIONS:wt}=b(),{REGION_ENV_NAME:ai,REGION_INI_NAME:ci,resolveRegionConfig:ui}=b();Vi.NODE_REGION_CONFIG_FILE_OPTIONS=wt;Vi.NODE_REGION_CONFIG_OPTIONS=Mt;Vi.REGION_ENV_NAME=ai;Vi.REGION_INI_NAME=ci;Vi.resolveRegionConfig=ui;var W={warningEmitted:!1},di=(e)=>{if(e&&!W.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){W.warningEmitted=!0;return}let s=parseInt(e.substring(1,e.indexOf("."))),c=22;if(s<c)W.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
4
4
|
versions published after the first week of January 2027
|
|
5
5
|
will require node >=${c}. You are running node ${e}.
|
|
6
6
|
|
|
@@ -8,4 +8,4 @@ To continue receiving updates to AWS services, bug fixes,
|
|
|
8
8
|
and security updates please upgrade to node >=${c}.
|
|
9
9
|
|
|
10
10
|
More information can be found at: https://a.co/c895JFp`)}},li=()=>(e,s)=>async(c)=>(s.__retryLongPoll=!0,e(c)),fi={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},pi=(e)=>({applyToStack:(s)=>{s.add(li(),fi)}});function hi(e,s,c){if(!e.$source)e.$source={};return e.$source[s]=c,e}Qn.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function _(e,s,c){if(!e.__aws_sdk_context)e.__aws_sdk_context={features:{}};else if(!e.__aws_sdk_context.features)e.__aws_sdk_context.features={};e.__aws_sdk_context.features[s]=c}function gi(e,s,c){if(!e.$source)e.$source={};return e.$source[s]=c,e}function mi(e){return e}var vt=(e)=>(s)=>async(c)=>{if(!le.isInstance(c.request))return s(c);let{request:u}=c,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!u.headers[":authority"])delete u.headers.host,u.headers[":authority"]=u.hostname+(u.port?":"+u.port:"");else if(!u.headers.host){let a=u.hostname;if(u.port!=null)a+=`:${u.port}`;u.headers.host=a}return s(c)},Et={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Ai=(e)=>({applyToStack:(s)=>{s.add(vt(e),Et)}}),Tt=()=>(e,s)=>async(c)=>{try{let u=await e(c),{clientName:o,commandName:a,logger:d,dynamoDbDocumentClientOptions:t={}}=s,{overrideInputFilterSensitiveLog:n,overrideOutputFilterSensitiveLog:i}=t,g=n??s.inputFilterSensitiveLog,l=i??s.outputFilterSensitiveLog,{$metadata:f,...h}=u.output;return d?.info?.({clientName:o,commandName:a,input:g(c.input),output:l(h),metadata:f}),u}catch(u){let{clientName:o,commandName:a,logger:d,dynamoDbDocumentClientOptions:t={}}=s,{overrideInputFilterSensitiveLog:n}=t,i=n??s.inputFilterSensitiveLog;throw d?.error?.({clientName:o,commandName:a,input:i(c.input),error:u,metadata:u.$metadata}),u}},Rt={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},bi=(e)=>({applyToStack:(s)=>{s.add(Tt(),Rt)}}),Pt={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},yi="AWS_LAMBDA_FUNCTION_NAME",Si="_X_AMZN_TRACE_ID",ae="X-Amzn-Trace-Id",de="traceparent",xt="tracestate",Ot="baggage",kt=()=>(e)=>async(s)=>{let{request:c}=s;if(!le.isInstance(c))return e(s);let u;{let o=Object.keys(c.headers??{}).find((a)=>a.toLowerCase()===ae.toLowerCase())??ae;if(!c.headers.hasOwnProperty(o)){let a=process.env[yi],d=process.env[Si];u??=await ht.getInstanceAsync();let n=u?.getXRayTraceId()??d,i=(g)=>typeof g==="string"&&g.length>0;if(i(a)&&i(n))c.headers[ae]=n}}if(_i(c.headers),!c.headers[de]){let a=(u??=await ht.getInstanceAsync())?.getTraceparent?.();if(a){c.headers[de]=a;let d=u?.getTracestate?.();if(d)c.headers[xt]=d;let t=u?.getBaggage?.();if(t)c.headers[Ot]=t}}return e(s)};function _i(e){for(let s of Object.keys(e)){let c=s.toLowerCase();if(s!==c&&(c===de||c===xt||c===Ot))e[c]=e[s],delete e[s]}}var Mi=(e)=>({applyToStack:(s)=>{s.add(kt(),Pt)}}),fe=void 0;function wi(e){if(e===void 0)return!0;return typeof e==="string"&&e.length<=50}function vi(e){let s=Zn(e.userAgentAppId??fe),{customUserAgent:c}=e;return Object.assign(e,{customUserAgent:typeof c==="string"?[[c]]:c,userAgentAppId:async()=>{let u=await s();if(!wi(u)){let o=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof u!=="string")o?.warn("userAgentAppId must be a string or undefined.");else if(u.length>50)o?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return u}})}var Ft={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"},It=Ft,Nt="",Dt=(e)=>{let{partitions:s}=It;for(let u of s){let{regions:o,outputs:a}=u;for(let[d,t]of Object.entries(o))if(d===e)return{...a,...t}}for(let u of s){let{regionRegex:o,outputs:a}=u;if(new RegExp(o).test(e))return{...a}}let c=s.find((u)=>u.id==="aws");if(!c)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...c.outputs}},Ct=(e,s="")=>{It=e,Nt=s},Ei=()=>{Ct(Ft,"")},Bt=()=>Nt,Ti=/\d{12}\.ddb/;async function Ri(e,s,c){if(c.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")_(e,"PROTOCOL_RPC_V2_CBOR","M");if(typeof s.retryStrategy==="function"){let a=await s.retryStrategy();if(typeof a.mode==="string")switch(a.mode){case pt.ADAPTIVE:_(e,"RETRY_MODE_ADAPTIVE","F");break;case pt.STANDARD:_(e,"RETRY_MODE_STANDARD","E");break}}if(typeof s.accountIdEndpointMode==="function"){let a=e.endpointV2;if(String(a?.url?.hostname).match(Ti))_(e,"ACCOUNT_ID_ENDPOINT","O");switch(await s.accountIdEndpointMode?.()){case"disabled":_(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":_(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":_(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let o=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(o?.$source){let a=o;if(a.accountId)_(e,"RESOLVED_ACCOUNT_ID","T");for(let[d,t]of Object.entries(a.$source??{}))_(e,d,t)}}var mt="user-agent",ce="x-amz-user-agent",At=" ",ue="/",Pi=/[^!$%&'*+\-.^_`|~\w]/g,xi=/[^!$%&'*+\-.^_`|~\w#]/g,bt="-",Oi=1024;function ki(e){let s="";for(let c in e){let u=e[c];if(s.length+u.length+1<=Oi){if(s.length)s+=","+u;else s+=u;continue}break}return s}var Lt=(e)=>(s,c)=>async(u)=>{let{request:o}=u;if(!le.isInstance(o))return s(u);let{headers:a}=o,d=c?.userAgent?.map(G)||[],t=(await e.defaultUserAgentProvider()).map(G);await Ri(c,e,u);let n=c;t.push(`m/${ki(Object.assign({},c.__smithy_context?.features,n.__aws_sdk_context?.features))}`);let i=e?.customUserAgent?.map(G)||[],g=await e.userAgentAppId();if(g)t.push(G(["app",`${g}`]));let l=Bt(),f=(l?[l]:[]).concat([...t,...d,...i]).join(At),h=[...t.filter((m)=>m.startsWith("aws-sdk-")),...i].join(At);if(e.runtime!=="browser"){if(h)a[ce]=a[ce]?`${a[mt]} ${h}`:h;a[mt]=f}else a[ce]=f;return s({...u,request:o})},G=(e)=>{let s=e[0].split(ue).map((d)=>d.replace(Pi,bt)).join(ue),c=e[1]?.replace(xi,bt),u=s.indexOf(ue),o=s.substring(0,u),a=s.substring(u+1);if(o==="api")a=a.toLowerCase();return[o,a,c].filter((d)=>d&&d.length>0).reduce((d,t,n)=>{switch(n){case 0:return t;case 1:return`${d}/${t}`;default:return`${d}#${t}`}},"")},Ut={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Fi=(e)=>({applyToStack:(s)=>{s.add(Lt(e),Ut)}}),Ii=()=>{let e=["deno","bun","llrt"];for(let s of e)if(oe[s])return[`md/${s}`,oe[s]];return["md/nodejs",oe.node]},Ht={isCrtAvailable:!1},Ni=()=>{if(Ht.isCrtAvailable)return["md/crt-avail"];return null},qt=({serviceId:e,clientVersion:s})=>{let c=Ii();return async(u)=>{let o=[["aws-sdk-js",s],["ua","2.1"],[`os/${ei()}`,ti()],["lang/js"],c],a=Ni();if(a)o.push(a);if(e)o.push([`api/${e}`,s]);if(gt.AWS_EXECUTION_ENV)o.push([`exec-env/${gt.AWS_EXECUTION_ENV}`]);let d=await u?.userAgentAppId?.();return d?[...o,[`app/${d}`]]:[...o]}},Di=qt,Gt="AWS_SDK_UA_APP_ID",Wt="sdk_ua_app_id",Ci="sdk-ua-app-id",Bi={environmentVariableSelector:(e)=>e[Gt],configFileSelector:(e)=>e[Wt]??e[Ci],default:fe},Li=({serviceId:e,clientVersion:s})=>async(c)=>{let u=ft(),o=u.parse??u.default.parse??(()=>""),a=typeof window<"u"&&window?.navigator?.userAgent?o(window.navigator.userAgent):void 0,d=[["aws-sdk-js",s],["ua","2.1"],[`os/${a?.os?.name||"other"}`,a?.os?.version],["lang/js"],["md/browser",`${a?.browser?.name??"unknown"}_${a?.browser?.version??"unknown"}`]];if(e)d.push([`api/${e}`,s]);let t=await c?.userAgentAppId?.();if(t)d.push([`app/${t}`]);return d},Ui={os(e){if(/iPhone|iPad|iPod/.test(e))return"iOS";if(/Macintosh|Mac OS X/.test(e))return"macOS";if(/Windows NT/.test(e))return"Windows";if(/Android/.test(e))return"Android";if(/Linux/.test(e))return"Linux";return},browser(e){if(/EdgiOS|EdgA|Edg\//.test(e))return"Microsoft Edge";if(/Firefox\//.test(e))return"Firefox";if(/Chrome\//.test(e))return"Chrome";if(/Safari\//.test(e))return"Safari";return}},pe=(e,s=!1)=>{if(s){for(let c of e.split("."))if(!pe(c))return!1;return!0}if(!ri(e))return!1;if(e.length<3||e.length>63)return!1;if(e!==e.toLowerCase())return!1;if(_t(e))return!1;return!0},St=":",Hi="/",$t=(e)=>{let s=e.split(St);if(s.length<6)return null;let[c,u,o,a,d,...t]=s;if(c!=="arn"||u===""||o===""||t.join(St)==="")return null;let n=t.map((i)=>i.split(Hi)).flat();return{partition:u,service:o,region:a,accountId:d,resourceId:n}},Vt={isVirtualHostableS3Bucket:pe,parseArn:$t,partition:Dt};ni.aws=Vt;var qi=(e)=>{if(typeof e.endpointProvider!=="function")throw Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:s}=e;if(s===void 0)e.endpoint=async()=>zt(e.endpointProvider({Region:typeof e.region==="function"?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint==="function"?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint==="function"?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:void 0},{logger:e.logger}));return e},zt=(e)=>Jn(e.url);function Gi(e={}){return oi({...Mt,async default(){if(!Yt.silence)console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.");return"us-east-1"}},{...wt,...e})}var Yt={silence:!1},Wi=(e)=>({setRegion(s){e.region=s},region(){return e.region}}),$i=(e)=>({region:e.region()});Vi.DEFAULT_UA_APP_ID=fe;Vi.NODE_APP_ID_CONFIG_OPTIONS=Bi;Vi.UA_APP_ID_ENV_NAME=Gt;Vi.UA_APP_ID_INI_NAME=Wt;Vi.awsEndpointFunctions=Vt;Vi.createDefaultUserAgentProvider=qt;Vi.createUserAgentStringParsingProvider=Li;Vi.crtAvailability=Ht;Vi.defaultUserAgent=Di;Vi.emitWarningIfUnsupportedVersion=di;Vi.fallback=Ui;Vi.getAwsRegionExtensionConfiguration=Wi;Vi.getHostHeaderPlugin=Ai;Vi.getLoggerPlugin=bi;Vi.getLongPollPlugin=pi;Vi.getRecursionDetectionPlugin=Mi;Vi.getUserAgentMiddlewareOptions=Ut;Vi.getUserAgentPlugin=Fi;Vi.getUserAgentPrefix=Bt;Vi.hostHeaderMiddleware=vt;Vi.hostHeaderMiddlewareOptions=Et;Vi.isVirtualHostableS3Bucket=pe;Vi.loggerMiddleware=Tt;Vi.loggerMiddlewareOptions=Rt;Vi.parseArn=$t;Vi.partition=Dt;Vi.recursionDetectionMiddleware=kt;Vi.recursionDetectionMiddlewareOptions=Pt;Vi.resolveAwsRegionExtensionConfiguration=$i;Vi.resolveDefaultAwsRegionalEndpointsConfig=qi;Vi.resolveHostHeaderConfig=mi;Vi.resolveUserAgentConfig=vi;Vi.setCredentialFeature=hi;Vi.setFeature=_;Vi.setPartitionInfo=Ct;Vi.setTokenFeature=gi;Vi.state=W;Vi.stsRegionDefaultResolver=Gi;Vi.stsRegionWarning=Yt;Vi.toEndpointV1=zt;Vi.useDefaultPartitionInfo=Ei;Vi.userAgentMiddleware=Lt});
|
|
11
|
-
export{qe,
|
|
11
|
+
export{qe,_e,L};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
function c(e){if(!(e instanceof Error)||!("status"in e)||!("headers"in e))return!1;return(e.status===void 0||typeof e.status==="number")&&(e.headers===void 0||e.headers instanceof Headers)}function d(e){let t=e.headers?.get("x-should-retry");if(t==="true")return!0;if(t==="false")return!1;if(e.status===void 0)return!0;return e.status===408||e.status===409||e.status===429||typeof e.status==="number"&&e.status>=500}function f(e,t,s){let n=t??60000;if(n>0&&e>n)throw Error(`Server requested ${Math.ceil(e/1000)}s retry delay (max: ${Math.ceil(n/1000)}s). ${s}`);return e}function l(e,t,s){let n=e.headers?.get("retry-after-ms");if(n){let a=Number.parseFloat(n);if(Number.isFinite(a))return f(a,s,e.message)}let r=e.headers?.get("retry-after");if(r){let a=Number.parseFloat(r),o=Number.isNaN(a)?Date.parse(r)-Date.now():a*1000;if(Number.isFinite(o))return f(o,s,e.message)}return Math.min(0.5*2**t,8)*1000*(1-Math.random()*0.25)}function i(){let e=Error("Request aborted");return e.name="AbortError",e}function m(e,t){return new Promise((s,n)=>{if(t?.aborted){n(i());return}let r=()=>{clearTimeout(u),n(i())},u=setTimeout(()=>{t?.removeEventListener("abort",r),s()},Math.max(0,e));t?.addEventListener("abort",r,{once:!0})})}async function
|
|
3
|
-
export{
|
|
2
|
+
function c(e){if(!(e instanceof Error)||!("status"in e)||!("headers"in e))return!1;return(e.status===void 0||typeof e.status==="number")&&(e.headers===void 0||e.headers instanceof Headers)}function d(e){let t=e.headers?.get("x-should-retry");if(t==="true")return!0;if(t==="false")return!1;if(e.status===void 0)return!0;return e.status===408||e.status===409||e.status===429||typeof e.status==="number"&&e.status>=500}function f(e,t,s){let n=t??60000;if(n>0&&e>n)throw Error(`Server requested ${Math.ceil(e/1000)}s retry delay (max: ${Math.ceil(n/1000)}s). ${s}`);return e}function l(e,t,s){let n=e.headers?.get("retry-after-ms");if(n){let a=Number.parseFloat(n);if(Number.isFinite(a))return f(a,s,e.message)}let r=e.headers?.get("retry-after");if(r){let a=Number.parseFloat(r),o=Number.isNaN(a)?Date.parse(r)-Date.now():a*1000;if(Number.isFinite(o))return f(o,s,e.message)}return Math.min(0.5*2**t,8)*1000*(1-Math.random()*0.25)}function i(){let e=Error("Request aborted");return e.name="AbortError",e}function m(e,t){return new Promise((s,n)=>{if(t?.aborted){n(i());return}let r=()=>{clearTimeout(u),n(i())},u=setTimeout(()=>{t?.removeEventListener("abort",r),s()},Math.max(0,e));t?.addEventListener("abort",r,{once:!0})})}async function se(e,t={}){let s=t.maxRetries??0,n=s;for(;;)try{return await e()}catch(r){if(t.signal?.aborted)throw i();if(n<=0||!c(r)||!d(r))throw r;if(r.status!==void 0&&t.noRetryStatuses?.includes(r.status))throw r;let u=s-n;n--,await m(l(r,u,t.maxRetryDelayMs),t.signal)}}
|
|
3
|
+
export{se};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ue,it}from"./chunk-8wv5t0w6.js";import{Be}from"./chunk-ecf896fz.js";import{qe,ve,L}from"./chunk-q9dd6fhj.js";import{be,X,b,Se,J,Qe,H}from"./chunk-c7rcw9fb.js";var{awsEndpointFunctions:Ce,emitWarningIfUnsupportedVersion:Ae,createDefaultUserAgentProvider:ye,NODE_APP_ID_CONFIG_OPTIONS:Te,getAwsRegionExtensionConfiguration:Oe,resolveAwsRegionExtensionConfiguration:we,resolveUserAgentConfig:De,resolveHostHeaderConfig:Re,getUserAgentPlugin:ke,getHostHeaderPlugin:$e,getLoggerPlugin:Ne,getRecursionDetectionPlugin:Fe}=L(),{NoAuthSigner:ze,getHttpAuthSchemeEndpointRuleSetPlugin:He,DefaultIdentityProviderConfig:Ge,getHttpSigningPlugin:Me}=ve(),{normalizeProvider:K,getSmithyContext:je,ServiceException:Ke,NoOpLogger:Ve,emitWarningIfUnsupportedVersion:Le,loadConfigsForDefaultMode:We,getDefaultExtensionConfiguration:Ye,resolveDefaultRuntimeConfig:Je,Client:V,makeBuilder:Xe,createAggregatedClient:Ze}=X(),{Command:et}=X();var Kr=et,Vr=V;var{resolveDefaultsModeConfig:tt,loadConfig:h,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:rt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:ot,NODE_REGION_CONFIG_OPTIONS:nt,NODE_REGION_CONFIG_FILE_OPTIONS:st,resolveRegionConfig:ct}=b(),{BinaryDecisionDiagram:at,EndpointCache:dt,decideEndpoint:pt,customEndpointFunctions:ut,resolveEndpointConfig:lt,getEndpointPlugin:ht}=Se(),{parseUrl:Et,getHttpHandlerExtensionConfiguration:gt,resolveHttpHandlerRuntimeConfig:_t,getContentLengthPlugin:mt}=H(),{DEFAULT_RETRY_MODE:xt,NODE_RETRY_MODE_CONFIG_OPTIONS:St,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ft,resolveRetryConfig:It,getRetryPlugin:vt}=qe(),{TypeRegistry:B,getSchemaSerdePlugin:Pt}=be(),{resolveAwsSdkSigV4Config:Ct,AwsSdkSigV4Signer:At,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yt}=Ue(),{toUtf8:Tt,fromUtf8:Ot,toBase64:wt,fromBase64:Dt,calculateBodyLength:Rt}=J(),{streamCollector:kt,NodeHttpHandler:$t}=Be(),{AwsRestJsonProtocol:Nt}=it(),{Sha256:bt}=Qe(),Ut=async(e,t,n)=>({operation:je(t).operation,region:await K(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ft(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function qt(e){return{schemeId:"smithy.api#noAuth"}}var zt=(e)=>{let t=[];switch(e.operation){case"CreateToken":{t.push(qt());break}default:t.push(Ft(e))}return t},Ht=(e)=>{let t=Ct(e);return Object.assign(t,{authSchemePreference:K(e.authSchemePreference??[])})},Gt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),Mt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},jt="3.997.47",Kt={version:jt},_="ref",E=-1,x=!0,z="isSet",W="PartitionResult",S="booleanEquals",k="getAttr",G={[_]:"Endpoint"},N={[_]:W},g={},M=[{[_]:"Region"}],j={conditions:[[z,[G]],[z,M],["aws.partition",M,W],[S,[{[_]:"UseFIPS"},x]],[S,[{[_]:"UseDualStack"},x]],[S,[{fn:k,argv:[N,"supportsDualStack"]},x]],[S,[{fn:k,argv:[N,"supportsFIPS"]},x]],["stringEquals",[{fn:k,argv:[N,"name"]},"aws-us-gov"]]],results:[[E],[E,"Invalid Configuration: FIPS and custom endpoint are not supported"],[E,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[G,g],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",g],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",g],[E,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",g],[E,"Invalid Configuration: Missing Region"]]},Vt=2,c=1e8,Lt=new Int32Array([-1,1,-1,0,13,3,1,4,c+12,2,5,c+12,3,8,6,4,7,c+11,5,c+9,c+10,4,11,9,6,10,c+8,7,c+6,c+7,5,12,c+5,6,c+4,c+5,3,c+1,14,4,c+2,c+3]),Bt=at.from(Lt,Vt,j.conditions,j.results),Wt=new dt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Yt=(e,t={})=>Wt.get(e,()=>pt(Bt,{endpointParams:e,logger:t.logger}));ut.aws=Ce;class i extends Ke{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e);Object.setPrototypeOf(this,i.prototype)}}class f extends i{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,f.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class I extends i{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype),this.error=e.error,this.error_description=e.error_description}}class v extends i{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,v.prototype),this.error=e.error,this.error_description=e.error_description}}class P extends i{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,P.prototype),this.error=e.error,this.error_description=e.error_description}}class C extends i{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends i{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class y extends i{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class T extends i{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}class O extends i{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,O.prototype),this.error=e.error,this.error_description=e.error_description}}class w extends i{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,w.prototype),this.error=e.error,this.error_description=e.error_description}}class D extends i{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,D.prototype),this.error=e.error,this.error_description=e.error_description}}var Jt="AccessDeniedException",Xt="AuthorizationPendingException",Qt="AccessToken",Zt="ClientSecret",er="CreateToken",tr="CreateTokenRequest",rr="CreateTokenResponse",or="CodeVerifier",nr="ExpiredTokenException",sr="InvalidClientException",ir="InvalidGrantException",cr="InvalidRequestException",ar="InternalServerException",dr="InvalidScopeException",pr="IdToken",ur="RefreshToken",lr="SlowDownException",hr="UnauthorizedClientException",Er="UnsupportedGrantTypeException",gr="accessToken",l="client",_r="clientId",mr="clientSecret",xr="codeVerifier",Sr="code",fr="deviceCode",r="error",Ir="expiresIn",p="error_description",vr="grantType",Pr="http",u="httpError",Cr="idToken",Y="reason",Q="refreshToken",Ar="redirectUri",Z="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",yr="scope",Tr="server",Or="tokenType",o="com.amazonaws.ssooidc",ee=new B(Z),te=[-3,Z,"SSOOIDCServiceException",0,[],[]];ee.registerError(te,i);var a=new B(o),re=[-3,o,Jt,{[r]:l,[u]:400},[r,Y,p],[0,0,0]];a.registerError(re,f);var oe=[-3,o,Xt,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(oe,I);var ne=[-3,o,nr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ne,v);var se=[-3,o,ar,{[r]:Tr,[u]:500},[r,p],[0,0]];a.registerError(se,P);var ie=[-3,o,sr,{[r]:l,[u]:401},[r,p],[0,0]];a.registerError(ie,C);var ce=[-3,o,ir,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ce,A);var ae=[-3,o,cr,{[r]:l,[u]:400},[r,Y,p],[0,0,0]];a.registerError(ae,y);var de=[-3,o,dr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(de,T);var pe=[-3,o,lr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(pe,O);var ue=[-3,o,hr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ue,w);var le=[-3,o,Er,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(le,D);var he=[ee,a],wr=[0,o,Qt,8,0],Dr=[0,o,Zt,8,0],Rr=[0,o,or,8,0],kr=[0,o,pr,8,0],Ee=[0,o,ur,8,0],ge=[3,o,tr,0,[_r,mr,vr,fr,Sr,Q,yr,Ar,xr],[0,[()=>Dr,0],0,0,0,[()=>Ee,0],64,0,[()=>Rr,0]],3],_e=[3,o,rr,0,[gr,Or,Ir,Q,Cr],[[()=>wr,0],0,1,[()=>Ee,0],[()=>kr,0]]],me=[9,o,er,{[Pr]:["POST","/token",200]},()=>ge,()=>_e],$r=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Yt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??zt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new At},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ze}],logger:e?.logger??new Ve,protocol:e?.protocol??Nt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:he,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??bt,urlParser:e?.urlParser??Et,utf8Decoder:e?.utf8Decoder??Ot,utf8Encoder:e?.utf8Encoder??Tt}),Nr=(e)=>{Le(process.version);let t=tt(e),n=()=>t().then(We),d=$r(e);Ae(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??h(yt,s),bodyLengthChecker:e?.bodyLengthChecker??Rt,defaultUserAgentProvider:e?.defaultUserAgentProvider??ye({serviceId:d.serviceId,clientVersion:Kt.version}),maxAttempts:e?.maxAttempts??h(ft,e),region:e?.region??h(nt,{...st,...s}),requestHandler:$t.create(e?.requestHandler??n),retryMode:e?.retryMode??h({...St,default:async()=>(await n()).retryMode||xt},e),streamCollector:e?.streamCollector??kt,useDualstackEndpoint:e?.useDualstackEndpoint??h(ot,s),useFipsEndpoint:e?.useFipsEndpoint??h(rt,s),userAgentAppId:e?.userAgentAppId??h(Te,s)}},br=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:n,credentials:d}=e;return{setHttpAuthScheme(s){let m=t.findIndex((R)=>R.schemeId===s.schemeId);if(m===-1)t.push(s);else t.splice(m,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){d=s},credentials(){return d}}},Ur=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Fr=(e,t)=>{let n=Object.assign(Oe(e),Ye(e),gt(e),br(e));return t.forEach((d)=>d.configure(n)),Object.assign(e,we(n),Je(n),_t(n),Ur(n))};class U extends V{config;constructor(...[e]){let t=Nr(e||{});super(t);this.initConfig=t;let n=Gt(t),d=De(n),s=It(d),m=ct(s),R=Re(m),xe=lt(R),fe=Ht(xe),Ie=Fr(fe,e?.extensions||[]);this.config=Ie,this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use(ke(this.config)),this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use($e(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(Fe(this.config)),this.middlewareStack.use(He(this.config,{httpAuthSchemeParametersProvider:Ut,identityProviderConfigProvider:async(Pe)=>new Ge({"aws.auth#sigv4":Pe.credentials})})),this.middlewareStack.use(Me(this.config))}destroy(){super.destroy()}}var qr=Xe(Mt,"AWSSSOOIDCService","SSOOIDCClient",ht),zr={},Hr=(e,t,n,d)=>[];class F extends qr(zr,Hr,"CreateToken",me){}var Gr={CreateTokenCommand:F};class q extends U{}Ze(Gr,q);var Mr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},jr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var Lr=f,Br=re,Wr=Mr,Yr=I,Jr=oe,Xr=me,Qr=F,Zr=ge,eo=_e,to=v,ro=ne,oo=P,no=se,so=C,io=ie,co=A,ao=ce,po=y,uo=ae,lo=jr,ho=T,Eo=de,go=q,_o=U,mo=i,xo=te,So=O,fo=pe,Io=w,vo=ue,Po=D,Co=le,Ao=he;export{Kr as $Command,Vr as __Client,Lr as AccessDeniedException,Br as AccessDeniedException$,Wr as AccessDeniedExceptionReason,Yr as AuthorizationPendingException,Jr as AuthorizationPendingException$,Xr as CreateToken$,Qr as CreateTokenCommand,Zr as CreateTokenRequest$,eo as CreateTokenResponse$,to as ExpiredTokenException,ro as ExpiredTokenException$,oo as InternalServerException,no as InternalServerException$,so as InvalidClientException,io as InvalidClientException$,co as InvalidGrantException,ao as InvalidGrantException$,po as InvalidRequestException,uo as InvalidRequestException$,lo as InvalidRequestExceptionReason,ho as InvalidScopeException,Eo as InvalidScopeException$,go as SSOOIDC,_o as SSOOIDCClient,mo as SSOOIDCServiceException,xo as SSOOIDCServiceException$,So as SlowDownException,fo as SlowDownException$,Io as UnauthorizedClientException,vo as UnauthorizedClientException$,Po as UnsupportedGrantTypeException,Co as UnsupportedGrantTypeException$,Ao as errorTypeRegistries};
|
|
2
|
+
import{Be,it}from"./chunk-rnt1ckk9.js";import{Fe}from"./chunk-fpxc6qjr.js";import{qe,_e,L}from"./chunk-g3ed130w.js";import{Se,X,b,we,J,Qe,H}from"./chunk-adys4qq4.js";var{awsEndpointFunctions:Ce,emitWarningIfUnsupportedVersion:Ae,createDefaultUserAgentProvider:ye,NODE_APP_ID_CONFIG_OPTIONS:Te,getAwsRegionExtensionConfiguration:Oe,resolveAwsRegionExtensionConfiguration:De,resolveUserAgentConfig:Re,resolveHostHeaderConfig:ke,getUserAgentPlugin:$e,getHostHeaderPlugin:Ne,getLoggerPlugin:be,getRecursionDetectionPlugin:Ue}=L(),{NoAuthSigner:ze,getHttpAuthSchemeEndpointRuleSetPlugin:He,DefaultIdentityProviderConfig:Ge,getHttpSigningPlugin:Me}=_e(),{normalizeProvider:K,getSmithyContext:je,ServiceException:Ke,NoOpLogger:Ve,emitWarningIfUnsupportedVersion:Le,loadConfigsForDefaultMode:We,getDefaultExtensionConfiguration:Ye,resolveDefaultRuntimeConfig:Je,Client:V,makeBuilder:Xe,createAggregatedClient:Ze}=X(),{Command:et}=X();var Kr=et,Vr=V;var{resolveDefaultsModeConfig:tt,loadConfig:h,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:rt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:ot,NODE_REGION_CONFIG_OPTIONS:nt,NODE_REGION_CONFIG_FILE_OPTIONS:st,resolveRegionConfig:ct}=b(),{BinaryDecisionDiagram:at,EndpointCache:dt,decideEndpoint:pt,customEndpointFunctions:ut,resolveEndpointConfig:lt,getEndpointPlugin:ht}=we(),{parseUrl:Et,getHttpHandlerExtensionConfiguration:gt,resolveHttpHandlerRuntimeConfig:_t,getContentLengthPlugin:mt}=H(),{DEFAULT_RETRY_MODE:xt,NODE_RETRY_MODE_CONFIG_OPTIONS:St,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:ft,resolveRetryConfig:It,getRetryPlugin:vt}=qe(),{TypeRegistry:B,getSchemaSerdePlugin:Pt}=Se(),{resolveAwsSdkSigV4Config:Ct,AwsSdkSigV4Signer:At,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:yt}=Be(),{toUtf8:Tt,fromUtf8:Ot,toBase64:wt,fromBase64:Dt,calculateBodyLength:Rt}=J(),{streamCollector:kt,NodeHttpHandler:$t}=Fe(),{AwsRestJsonProtocol:Nt}=it(),{Sha256:bt}=Qe(),Ut=async(e,t,n)=>({operation:je(t).operation,region:await K(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ft(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function qt(e){return{schemeId:"smithy.api#noAuth"}}var zt=(e)=>{let t=[];switch(e.operation){case"CreateToken":{t.push(qt());break}default:t.push(Ft(e))}return t},Ht=(e)=>{let t=Ct(e);return Object.assign(t,{authSchemePreference:K(e.authSchemePreference??[])})},Gt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),Mt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},jt="3.997.47",Kt={version:jt},_="ref",E=-1,x=!0,z="isSet",W="PartitionResult",S="booleanEquals",k="getAttr",G={[_]:"Endpoint"},N={[_]:W},g={},M=[{[_]:"Region"}],j={conditions:[[z,[G]],[z,M],["aws.partition",M,W],[S,[{[_]:"UseFIPS"},x]],[S,[{[_]:"UseDualStack"},x]],[S,[{fn:k,argv:[N,"supportsDualStack"]},x]],[S,[{fn:k,argv:[N,"supportsFIPS"]},x]],["stringEquals",[{fn:k,argv:[N,"name"]},"aws-us-gov"]]],results:[[E],[E,"Invalid Configuration: FIPS and custom endpoint are not supported"],[E,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[G,g],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",g],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",g],[E,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[E,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",g],[E,"Invalid Configuration: Missing Region"]]},Vt=2,c=1e8,Lt=new Int32Array([-1,1,-1,0,13,3,1,4,c+12,2,5,c+12,3,8,6,4,7,c+11,5,c+9,c+10,4,11,9,6,10,c+8,7,c+6,c+7,5,12,c+5,6,c+4,c+5,3,c+1,14,4,c+2,c+3]),Bt=at.from(Lt,Vt,j.conditions,j.results),Wt=new dt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Yt=(e,t={})=>Wt.get(e,()=>pt(Bt,{endpointParams:e,logger:t.logger}));ut.aws=Ce;class i extends Ke{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e);Object.setPrototypeOf(this,i.prototype)}}class f extends i{static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,f.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class I extends i{static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype),this.error=e.error,this.error_description=e.error_description}}class v extends i{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,v.prototype),this.error=e.error,this.error_description=e.error_description}}class P extends i{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,P.prototype),this.error=e.error,this.error_description=e.error_description}}class C extends i{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends i{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class y extends i{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}class T extends i{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}class O extends i{static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,O.prototype),this.error=e.error,this.error_description=e.error_description}}class w extends i{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,w.prototype),this.error=e.error,this.error_description=e.error_description}}class D extends i{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,D.prototype),this.error=e.error,this.error_description=e.error_description}}var Jt="AccessDeniedException",Xt="AuthorizationPendingException",Qt="AccessToken",Zt="ClientSecret",er="CreateToken",tr="CreateTokenRequest",rr="CreateTokenResponse",or="CodeVerifier",nr="ExpiredTokenException",sr="InvalidClientException",ir="InvalidGrantException",cr="InvalidRequestException",ar="InternalServerException",dr="InvalidScopeException",pr="IdToken",ur="RefreshToken",lr="SlowDownException",hr="UnauthorizedClientException",Er="UnsupportedGrantTypeException",gr="accessToken",l="client",_r="clientId",mr="clientSecret",xr="codeVerifier",Sr="code",fr="deviceCode",r="error",Ir="expiresIn",p="error_description",vr="grantType",Pr="http",u="httpError",Cr="idToken",Y="reason",Q="refreshToken",Ar="redirectUri",Z="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",yr="scope",Tr="server",Or="tokenType",o="com.amazonaws.ssooidc",ee=new B(Z),te=[-3,Z,"SSOOIDCServiceException",0,[],[]];ee.registerError(te,i);var a=new B(o),re=[-3,o,Jt,{[r]:l,[u]:400},[r,Y,p],[0,0,0]];a.registerError(re,f);var oe=[-3,o,Xt,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(oe,I);var ne=[-3,o,nr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ne,v);var se=[-3,o,ar,{[r]:Tr,[u]:500},[r,p],[0,0]];a.registerError(se,P);var ie=[-3,o,sr,{[r]:l,[u]:401},[r,p],[0,0]];a.registerError(ie,C);var ce=[-3,o,ir,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ce,A);var ae=[-3,o,cr,{[r]:l,[u]:400},[r,Y,p],[0,0,0]];a.registerError(ae,y);var de=[-3,o,dr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(de,T);var pe=[-3,o,lr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(pe,O);var ue=[-3,o,hr,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(ue,w);var le=[-3,o,Er,{[r]:l,[u]:400},[r,p],[0,0]];a.registerError(le,D);var he=[ee,a],wr=[0,o,Qt,8,0],Dr=[0,o,Zt,8,0],Rr=[0,o,or,8,0],kr=[0,o,pr,8,0],Ee=[0,o,ur,8,0],ge=[3,o,tr,0,[_r,mr,vr,fr,Sr,Q,yr,Ar,xr],[0,[()=>Dr,0],0,0,0,[()=>Ee,0],64,0,[()=>Rr,0]],3],me=[3,o,rr,0,[gr,Or,Ir,Q,Cr],[[()=>wr,0],0,1,[()=>Ee,0],[()=>kr,0]]],xe=[9,o,er,{[Pr]:["POST","/token",200]},()=>ge,()=>me],$r=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Dt,base64Encoder:e?.base64Encoder??wt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Yt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??zt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new At},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ze}],logger:e?.logger??new Ve,protocol:e?.protocol??Nt,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:he,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",sha256:e?.sha256??bt,urlParser:e?.urlParser??Et,utf8Decoder:e?.utf8Decoder??Ot,utf8Encoder:e?.utf8Encoder??Tt}),Nr=(e)=>{Le(process.version);let t=tt(e),n=()=>t().then(We),d=$r(e);Ae(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??h(yt,s),bodyLengthChecker:e?.bodyLengthChecker??Rt,defaultUserAgentProvider:e?.defaultUserAgentProvider??ye({serviceId:d.serviceId,clientVersion:Kt.version}),maxAttempts:e?.maxAttempts??h(ft,e),region:e?.region??h(nt,{...st,...s}),requestHandler:$t.create(e?.requestHandler??n),retryMode:e?.retryMode??h({...St,default:async()=>(await n()).retryMode||xt},e),streamCollector:e?.streamCollector??kt,useDualstackEndpoint:e?.useDualstackEndpoint??h(ot,s),useFipsEndpoint:e?.useFipsEndpoint??h(rt,s),userAgentAppId:e?.userAgentAppId??h(Te,s)}},br=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:n,credentials:d}=e;return{setHttpAuthScheme(s){let m=t.findIndex((R)=>R.schemeId===s.schemeId);if(m===-1)t.push(s);else t.splice(m,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){d=s},credentials(){return d}}},Ur=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Fr=(e,t)=>{let n=Object.assign(Oe(e),Ye(e),gt(e),br(e));return t.forEach((d)=>d.configure(n)),Object.assign(e,De(n),Je(n),_t(n),Ur(n))};class U extends V{config;constructor(...[e]){let t=Nr(e||{});super(t);this.initConfig=t;let n=Gt(t),d=Re(n),s=It(d),m=ct(s),R=ke(m),fe=lt(R),Ie=Ht(fe),ve=Fr(Ie,e?.extensions||[]);this.config=ve,this.middlewareStack.use(Pt(this.config)),this.middlewareStack.use($e(this.config)),this.middlewareStack.use(vt(this.config)),this.middlewareStack.use(mt(this.config)),this.middlewareStack.use(Ne(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(Ue(this.config)),this.middlewareStack.use(He(this.config,{httpAuthSchemeParametersProvider:Ut,identityProviderConfigProvider:async(Pe)=>new Ge({"aws.auth#sigv4":Pe.credentials})})),this.middlewareStack.use(Me(this.config))}destroy(){super.destroy()}}var qr=Xe(Mt,"AWSSSOOIDCService","SSOOIDCClient",ht),zr={},Hr=(e,t,n,d)=>[];class F extends qr(zr,Hr,"CreateToken",xe){}var Gr={CreateTokenCommand:F};class q extends U{}Ze(Gr,q);var Mr={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},jr={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};var Lr=f,Br=re,Wr=Mr,Yr=I,Jr=oe,Xr=xe,Qr=F,Zr=ge,eo=me,to=v,ro=ne,oo=P,no=se,so=C,io=ie,co=A,ao=ce,po=y,uo=ae,lo=jr,ho=T,Eo=de,go=q,_o=U,mo=i,xo=te,So=O,fo=pe,Io=w,vo=ue,Po=D,Co=le,Ao=he;export{Kr as $Command,Vr as __Client,Lr as AccessDeniedException,Br as AccessDeniedException$,Wr as AccessDeniedExceptionReason,Yr as AuthorizationPendingException,Jr as AuthorizationPendingException$,Xr as CreateToken$,Qr as CreateTokenCommand,Zr as CreateTokenRequest$,eo as CreateTokenResponse$,to as ExpiredTokenException,ro as ExpiredTokenException$,oo as InternalServerException,no as InternalServerException$,so as InvalidClientException,io as InvalidClientException$,co as InvalidGrantException,ao as InvalidGrantException$,po as InvalidRequestException,uo as InvalidRequestException$,lo as InvalidRequestExceptionReason,ho as InvalidScopeException,Eo as InvalidScopeException$,go as SSOOIDC,_o as SSOOIDCClient,mo as SSOOIDCServiceException,xo as SSOOIDCServiceException$,So as SlowDownException,fo as SlowDownException$,Io as UnauthorizedClientException,vo as UnauthorizedClientException$,Po as UnsupportedGrantTypeException,Co as UnsupportedGrantTypeException$,Ao as errorTypeRegistries};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var f=new Set;function
|
|
3
|
-
export{
|
|
2
|
+
var f=new Set;function zn(r){return f.add(r),()=>{f.delete(r)}}function Ti(r){let t=[];for(let s of f)try{s(r)}catch(e){t.push(e)}if(t.length>0)throw AggregateError(t,"Failed to cleanup session resources")}var a=(1n<<41n)-1n,u=-1,n;function Kr(r){let t=r??Date.now();if(!Number.isInteger(t)||t<0||t>281474976710655)throw RangeError("UUIDv7 timestamp must be an integer between 0 and 281474976710655");let s=r===void 0?Math.max(t,u):r;if(r===void 0)u=s;let e=new Uint8Array(16);if(globalThis.crypto.getRandomValues(e),n===void 0)n=BigInt(e[1])<<32n|BigInt(e[2])<<24n|BigInt(e[3])<<16n|BigInt(e[4])<<8n|BigInt(e[5]);else{if(n===a)throw RangeError("UUIDv7 generator sequence exhausted");n++}let c=BigInt(s);for(let o=5;o>=0;o--)e[o]=Number(c>>BigInt((5-o)*8))&255;e[6]=112|Number(n>>37n&0x0fn),e[7]=Number(n>>29n&0xffn),e[8]=128|Number(n>>23n&0x3fn),e[9]=Number(n>>15n&0xffn),e[10]=Number(n>>7n&0xffn),e[11]=Number((n&0x7fn)<<1n)|e[11]&1;let i=Array.from(e,(o)=>o.toString(16).padStart(2,"0"));return`${i.slice(0,4).join("")}-${i.slice(4,6).join("")}-${i.slice(6,8).join("")}-${i.slice(8,10).join("")}-${i.slice(10).join("")}`}
|
|
3
|
+
export{zn,Ti,Kr};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
class n{incoming=[];outgoing=[];get length(){return this.incoming.length+this.outgoing.length}enqueue(e){this.incoming.push(e)}dequeue(){if(this.outgoing.length===0)while(this.incoming.length>0)this.outgoing.push(this.incoming.pop());return this.outgoing.pop()}}class
|
|
3
|
-
export{
|
|
2
|
+
class n{incoming=[];outgoing=[];get length(){return this.incoming.length+this.outgoing.length}enqueue(e){this.incoming.push(e)}dequeue(){if(this.outgoing.length===0)while(this.incoming.length>0)this.outgoing.push(this.incoming.pop());return this.outgoing.pop()}}class Jn{queue=new n;waiting=new n;done=!1;finalResultPromise;resolveFinalResult;isComplete;extractResult;constructor(e,t){this.isComplete=e,this.extractResult=t,this.finalResultPromise=new Promise((i)=>{this.resolveFinalResult=i})}push(e){if(this.done)return;if(this.isComplete(e))this.done=!0,this.resolveFinalResult(this.extractResult(e));let t=this.waiting.dequeue();if(t)t({value:e,done:!1});else this.queue.enqueue(e)}end(e){if(this.done=!0,e!==void 0)this.resolveFinalResult(e);while(this.waiting.length>0)this.waiting.dequeue()({value:void 0,done:!0})}async*[Symbol.asyncIterator](){while(!0)if(this.queue.length>0)yield this.queue.dequeue();else if(this.done)return;else{let e=await new Promise((t)=>this.waiting.enqueue(t));if(e.done)return;yield e.value}}result(){return this.finalResultPromise}}class M extends Jn{#t=Date.now();#i=performance.now();constructor(){super((e)=>e.type==="done"||e.type==="error",(e)=>{if(e.type==="done")return e.message;else if(e.type==="error")return e.error;throw Error("Unexpected event type for final result")})}push(e){if(e.type==="done")this.#e(e.message);else if(e.type==="error")this.#e(e.error);super.push(e)}end(e){if(e!==void 0)this.#e(e);super.end(e)}#e(e){if(this.done||e.durationMs!==void 0||e.timestamp<this.#t)return;e.durationMs=Math.max(0,Math.round(performance.now()-this.#i))}}function Yn(){return new M}function Ve(e){if(e instanceof Error)return e.message||e.name;if(typeof e==="string")return e;return String(e)}function _i(e){if(!(e instanceof Error))return{name:"ThrownValue",message:Ve(e)};let t=e.code;return{name:e.name||void 0,message:e.message||e.name,stack:e.stack,code:typeof t==="string"||typeof t==="number"?t:void 0}}function Ht(e,t,i){return{type:e,timestamp:Date.now(),error:_i(t),details:i}}function ke(e,t){e.diagnostics=[...e.diagnostics??[],t]}
|
|
3
|
+
export{Jn,M,Yn,Ve,_i,Ht,ke};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Mn}from"./chunk-7kjr9gdx.js";import{realpath as b}from"fs/promises";import{basename as w,dirname as h,isAbsolute as v,join as y,relative as R}from"path";var k="**/*.{ts,tsx,js,jsx,mjs,cjs}",I=["node_modules",".git","dist"],E=/\b(?:FROM|JOIN|INTO|UPDATE)\s+(?:sessions|entries|projects|plugin_\w+)\b/i,m=(s)=>s instanceof Error?s.message:String(s);async function N(s,t,r){let u=await s.webBundle(t);if(!u)throw Error("Web bundle became unavailable during verification");let e=await Mn(u,t,{signal:r});if(!("slots"in e))throw Error("Invalid module inspection report");let i=[];if(e.pageNav){let{viewID:n,kind:o}=e.pageNav;if(!e.views.includes(n))i.push(`pageNav.viewID is missing from views: ${n}`);else if(o!=="page")i.push(`pageNav.viewID must reference a page view: ${n}`)}return{slots:e.slots,views:e.views,codeBlocks:e.codeBlocks,pageNav:e.pageNav??null,themes:e.themes??[],hints:i}}function B(s,t){if(!/^index\.[^.]+$/.test(w(t)))return[w(t)];return new Bun.Glob(k).scan({cwd:s,onlyFiles:!0,followSymlinks:!1})}async function W(s,t){let r=await b(h(s));for await(let u of B(r,s)){if(t?.throwIfAborted(),u.split("/").some((n)=>I.includes(n)))continue;let e=await b(y(r,u)),i=R(r,e);if(i.startsWith("..")||v(i))continue;if(E.test(await Bun.file(e).text()))return!0}return!1}async function A(s,t,r,u,e){let i=[],n={status:"skipped",errors:[]},o=[],l=[],p=[],g=null,a=[],c=null;if(t.status!=="enabled")n.reason=`Plugin is ${t.status}; enable or repair it before building.`,i.push(n.reason);else if(!t.webBundle){if(n.reason="No dynamic Web entry is declared or discovered.",r.length&&!t.builtin)i.push("Web views are registered but no Web bundle is available.")}else{let d=u??await s.buildWeb(t.id);if(!d.ok){if(n.status="failed",n.errors=d.errors,i.push("Web build failed; fix the reported errors before testing the UI."),r.length)i.push("Registered Web views cannot render while their bundle fails to build.")}else{n.status="passed";try{let f=await N(s,t.id,e);({slots:o,views:l,codeBlocks:p,pageNav:g,themes:a}=f),i.push(...f.hints)}catch(f){e?.throwIfAborted(),c=m(f),i.push(`Web module inspection failed: ${c}`)}}}if(n.status==="passed"&&!c){for(let{view:d}of r)if(d&&!l.includes(d))i.push(`Registered view is missing from Web module: ${d}`)}return{build:n,slots:o,views:l,codeBlocks:p,pageNav:g,themes:a,moduleError:c,hints:i}}async function D(s,t,r,u){r?.throwIfAborted();let e=s.list().find((a)=>a.id===t);if(!e)throw Error(`Unknown plugin: ${t}. Load the plugin before verifying it.`);let i=(e.web??[]).map(({id:a,kind:c,view:d,title:f})=>({id:a,kind:c,view:d,title:f})),n=e.registrations.filter((a)=>a.kind==="route"||a.kind==="websocket"),o=await A(s,e,i,u,r),l=[...o.hints],p=s.sourceEntry(t);if(p&&!e.builtin)try{if(await W(p,r))l.push("\u5BBF\u4E3B\u8868\u4E0D\u662F\u7A33\u5B9A\u5951\u7EA6\uFF0C\u6539\u7528 b.sessions")}catch(a){r?.throwIfAborted(),l.push(`Plugin source scan failed: ${m(a)}`)}if(e.error)l.push("The host reports a plugin error; a previous generation may still be active.");if(n.length)l.push("Routes were not invoked. Use request with explicit inputs to check status and JSON responses.");let g=s.list().find((a)=>a.id===t);if(g?.webRevision!==e.webRevision||g?.status!==e.status)l.push("The plugin changed during verification; rerun verify for a consistent generation.");return{id:t,setup:{ok:e.status==="enabled"&&!e.error,status:e.status,error:e.error??null},registrations:e.registrations,web:{bundle:e.webBundle??!1,build:o.build,slots:o.slots,views:o.views,codeBlocks:o.codeBlocks,pageNav:o.pageNav,themes:o.themes,contributions:i,moduleError:o.moduleError},routes:n,hints:l}}export{D as verifyPlugin};
|