jialing-code 1.1.0
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 +97 -0
- package/dist/chunk-065m026w.js +97 -0
- package/dist/chunk-06saje2v.js +39 -0
- package/dist/chunk-0731m51q.js +8 -0
- package/dist/chunk-0975ccyw.js +265 -0
- package/dist/chunk-09n3fjx5.js +67 -0
- package/dist/chunk-0bdjdzew.js +41 -0
- package/dist/chunk-0ce6kd7y.js +212 -0
- package/dist/chunk-0e1xsncc.js +969 -0
- package/dist/chunk-0m2861gw.js +154 -0
- package/dist/chunk-0paqc2yw.js +15 -0
- package/dist/chunk-0rg6yrhy.js +99 -0
- package/dist/chunk-0sakxrcf.js +643 -0
- package/dist/chunk-0v9hwxvz.js +105 -0
- package/dist/chunk-0vkfrmqm.js +690 -0
- package/dist/chunk-0vvfnhhv.js +248 -0
- package/dist/chunk-0w4rsycj.js +145 -0
- package/dist/chunk-0x9b2nmd.js +63 -0
- package/dist/chunk-0xjaqda8.js +1124 -0
- package/dist/chunk-1141xmr4.js +8 -0
- package/dist/chunk-13d1842d.js +154 -0
- package/dist/chunk-1921a6yb.js +32 -0
- package/dist/chunk-1ad8mk9g.js +527 -0
- package/dist/chunk-1ax41pws.js +28 -0
- package/dist/chunk-1c8z1b5v.js +16 -0
- package/dist/chunk-1cbn5kxf.js +7 -0
- package/dist/chunk-1eapde8a.js +726 -0
- package/dist/chunk-1h2famwb.js +49 -0
- package/dist/chunk-1jggnf7z.js +85 -0
- package/dist/chunk-1k92pn9c.js +32 -0
- package/dist/chunk-1qakq4sn.js +802 -0
- package/dist/chunk-1rvz0433.js +722 -0
- package/dist/chunk-1xkekb9y.js +19 -0
- package/dist/chunk-238g70xa.js +36 -0
- package/dist/chunk-24ge0eqa.js +106 -0
- package/dist/chunk-278vghwm.js +5395 -0
- package/dist/chunk-27xc1csx.js +104 -0
- package/dist/chunk-2a42s11t.js +412 -0
- package/dist/chunk-2aa02aw6.js +438 -0
- package/dist/chunk-2eykm0j0.js +20 -0
- package/dist/chunk-2gzv8nrw.js +205 -0
- package/dist/chunk-2k995y2x.js +880 -0
- package/dist/chunk-2nayx6q1.js +63 -0
- package/dist/chunk-2sd2w2h4.js +44 -0
- package/dist/chunk-2tw2ve8h.js +145 -0
- package/dist/chunk-30rst83v.js +168 -0
- package/dist/chunk-3aavh06g.js +1581 -0
- package/dist/chunk-3b0yvt2h.js +469 -0
- package/dist/chunk-3be7ka25.js +56 -0
- package/dist/chunk-3c25bcsw.js +17 -0
- package/dist/chunk-3dyxka97.js +584 -0
- package/dist/chunk-3f7rypmf.js +16544 -0
- package/dist/chunk-3fsd7f51.js +93 -0
- package/dist/chunk-3gqdqmzb.js +75 -0
- package/dist/chunk-3h8a89gy.js +46 -0
- package/dist/chunk-3m84sret.js +71 -0
- package/dist/chunk-3nb7j3js.js +96 -0
- package/dist/chunk-3p08nvn2.js +98 -0
- package/dist/chunk-3r09htpc.js +318 -0
- package/dist/chunk-3r24h7t6.js +113 -0
- package/dist/chunk-3rkfxjtq.js +80 -0
- package/dist/chunk-3tmk7dc2.js +604 -0
- package/dist/chunk-3w6s9m5w.js +16 -0
- package/dist/chunk-43qjymy5.js +92 -0
- package/dist/chunk-44fpr6jq.js +434 -0
- package/dist/chunk-45kxdsp8.js +444 -0
- package/dist/chunk-495d85x1.js +8066 -0
- package/dist/chunk-4ba796se.js +1095 -0
- package/dist/chunk-4g3v8y12.js +23 -0
- package/dist/chunk-4h53xj8n.js +3445 -0
- package/dist/chunk-4jm600zv.js +13 -0
- package/dist/chunk-4jy9dtwk.js +116 -0
- package/dist/chunk-4p60dd45.js +55 -0
- package/dist/chunk-4z0jsrqg.js +81 -0
- package/dist/chunk-4zfkzkt6.js +37 -0
- package/dist/chunk-55wgxwa9.js +13877 -0
- package/dist/chunk-5dbk24zg.js +890 -0
- package/dist/chunk-5hzvp4va.js +115 -0
- package/dist/chunk-5kbt1mbt.js +500 -0
- package/dist/chunk-5pen7vr8.js +176 -0
- package/dist/chunk-5r280eng.js +198 -0
- package/dist/chunk-5srym52s.js +88 -0
- package/dist/chunk-600kg7k6.js +41 -0
- package/dist/chunk-616w0qj3.js +160 -0
- package/dist/chunk-62jw1t8c.js +94 -0
- package/dist/chunk-62xmt9mk.js +372 -0
- package/dist/chunk-64bvg7c3.js +229 -0
- package/dist/chunk-65yhe4s0.js +281 -0
- package/dist/chunk-6aewh27m.js +102 -0
- package/dist/chunk-6bd8brc4.js +48 -0
- package/dist/chunk-6dj5t602.js +341 -0
- package/dist/chunk-6exxdk1p.js +6956 -0
- package/dist/chunk-6f5j8fs0.js +752 -0
- package/dist/chunk-6g62sjpf.js +328 -0
- package/dist/chunk-6gecq2ta.js +1493 -0
- package/dist/chunk-6gr3c3w9.js +378 -0
- package/dist/chunk-6kpbgc5w.js +23 -0
- package/dist/chunk-6kseqw79.js +154 -0
- package/dist/chunk-6mxm1qd0.js +40764 -0
- package/dist/chunk-6n2qgm9v.js +8 -0
- package/dist/chunk-6tq2v3rk.js +186 -0
- package/dist/chunk-6wsdhj3v.js +93 -0
- package/dist/chunk-6zw9fhgb.js +4389 -0
- package/dist/chunk-71grc1mw.js +111 -0
- package/dist/chunk-73rpbt04.js +1947 -0
- package/dist/chunk-748feghg.js +604 -0
- package/dist/chunk-75e8gtg9.js +84 -0
- package/dist/chunk-75th4717.js +780 -0
- package/dist/chunk-760252na.js +101 -0
- package/dist/chunk-7739pg2c.js +4261 -0
- package/dist/chunk-778fnx46.js +472 -0
- package/dist/chunk-77g09znh.js +391 -0
- package/dist/chunk-7aw745vx.js +40175 -0
- package/dist/chunk-7m2nd8da.js +110 -0
- package/dist/chunk-7n35vjtw.js +444 -0
- package/dist/chunk-7n5ss4sh.js +144 -0
- package/dist/chunk-7rjnxcfe.js +107 -0
- package/dist/chunk-7sb5axvf.js +122 -0
- package/dist/chunk-7wm5s02e.js +216 -0
- package/dist/chunk-7ymfj7m3.js +151 -0
- package/dist/chunk-7z8j9qfn.js +121 -0
- package/dist/chunk-7zsapntc.js +216 -0
- package/dist/chunk-805fhkfh.js +908 -0
- package/dist/chunk-80k1nj24.js +253 -0
- package/dist/chunk-83hfzbx3.js +10 -0
- package/dist/chunk-85cypsdd.js +92 -0
- package/dist/chunk-8760caxf.js +2644 -0
- package/dist/chunk-88f6egg6.js +387 -0
- package/dist/chunk-88r7kwgj.js +22 -0
- package/dist/chunk-89e1v45e.js +463 -0
- package/dist/chunk-8bedvdm1.js +32 -0
- package/dist/chunk-8c4x4vdz.js +177 -0
- package/dist/chunk-8hq5kk3y.js +44 -0
- package/dist/chunk-8ngxagxq.js +18 -0
- package/dist/chunk-8tnsngw2.js +31 -0
- package/dist/chunk-8wjnca8h.js +307 -0
- package/dist/chunk-8y12jxg8.js +10 -0
- package/dist/chunk-8ymf4e6z.js +48 -0
- package/dist/chunk-90wp6wez.js +10510 -0
- package/dist/chunk-92bp5bnf.js +650 -0
- package/dist/chunk-92q8sx5z.js +90 -0
- package/dist/chunk-958rtmtx.js +10476 -0
- package/dist/chunk-9e2kqv5g.js +125 -0
- package/dist/chunk-9f4f1hy5.js +281 -0
- package/dist/chunk-9gbamk79.js +93 -0
- package/dist/chunk-9k5s3ryh.js +167 -0
- package/dist/chunk-9xzfqm15.js +97 -0
- package/dist/chunk-9zgdvbm6.js +110 -0
- package/dist/chunk-a0p3q8jw.js +24 -0
- package/dist/chunk-a22sayzp.js +220 -0
- package/dist/chunk-a8ejc632.js +3094 -0
- package/dist/chunk-a8gj9d9z.js +120 -0
- package/dist/chunk-a9vdeb6y.js +258 -0
- package/dist/chunk-a9yev47v.js +674 -0
- package/dist/chunk-a9zh40sj.js +48 -0
- package/dist/chunk-ack5mfba.js +105 -0
- package/dist/chunk-ae76ded0.js +30 -0
- package/dist/chunk-akjw4dh6.js +538 -0
- package/dist/chunk-asc6wz4q.js +1188 -0
- package/dist/chunk-atqejh3p.js +273 -0
- package/dist/chunk-atv2e6b7.js +61 -0
- package/dist/chunk-axvvkwz8.js +1551 -0
- package/dist/chunk-azgz7kj9.js +38 -0
- package/dist/chunk-b3zave8q.js +275 -0
- package/dist/chunk-b4wg70y1.js +54 -0
- package/dist/chunk-b8b13qn2.js +100 -0
- package/dist/chunk-bg3mt9bm.js +28 -0
- package/dist/chunk-bh4jvcjn.js +91 -0
- package/dist/chunk-bhdt6k7w.js +15 -0
- package/dist/chunk-bm1qb16p.js +17 -0
- package/dist/chunk-bpvsd1j1.js +266 -0
- package/dist/chunk-bqfnp99q.js +477 -0
- package/dist/chunk-bsbmmfyt.js +17 -0
- package/dist/chunk-bsbt34jm.js +42 -0
- package/dist/chunk-c78akdhr.js +458 -0
- package/dist/chunk-cdz5yb0r.js +57 -0
- package/dist/chunk-cfv996bs.js +22 -0
- package/dist/chunk-cgfdkzhb.js +12 -0
- package/dist/chunk-ckh4r5er.js +257 -0
- package/dist/chunk-cmgjnvn9.js +89 -0
- package/dist/chunk-cpjgvay8.js +687 -0
- package/dist/chunk-crfryjx9.js +276 -0
- package/dist/chunk-ctw5jwcd.js +213 -0
- package/dist/chunk-cvy3vntc.js +65 -0
- package/dist/chunk-cwbzz504.js +94 -0
- package/dist/chunk-cy2hswr1.js +15 -0
- package/dist/chunk-cyejkay3.js +222 -0
- package/dist/chunk-d18z9pna.js +106 -0
- package/dist/chunk-d5cq0n0v.js +162 -0
- package/dist/chunk-db45aryp.js +50 -0
- package/dist/chunk-de8nqh0z.js +790 -0
- package/dist/chunk-dfw6h350.js +2336 -0
- package/dist/chunk-dgqrcy74.js +48 -0
- package/dist/chunk-dn75ptgd.js +184 -0
- package/dist/chunk-dnh7jtpb.js +37 -0
- package/dist/chunk-dpshyv9m.js +90 -0
- package/dist/chunk-dt8cdvnm.js +642 -0
- package/dist/chunk-dtxby6fr.js +306 -0
- package/dist/chunk-dv1wfr85.js +6373 -0
- package/dist/chunk-dw363edx.js +1154 -0
- package/dist/chunk-dwrdacck.js +62 -0
- package/dist/chunk-dxnnv5e3.js +276 -0
- package/dist/chunk-e3g8q4cn.js +1646 -0
- package/dist/chunk-e3m9k9s2.js +542 -0
- package/dist/chunk-e4q49asn.js +155 -0
- package/dist/chunk-e5pntxye.js +37 -0
- package/dist/chunk-e7393td6.js +42 -0
- package/dist/chunk-ead42yrh.js +87 -0
- package/dist/chunk-eb90vwvr.js +152 -0
- package/dist/chunk-ecvwk9hg.js +250 -0
- package/dist/chunk-edjd6aay.js +173 -0
- package/dist/chunk-eg0h8mtm.js +130 -0
- package/dist/chunk-ehtwnxpg.js +1591 -0
- package/dist/chunk-ek686gx1.js +94 -0
- package/dist/chunk-eqp1rfft.js +17 -0
- package/dist/chunk-evhwt0ar.js +1015 -0
- package/dist/chunk-ewadzrm8.js +103 -0
- package/dist/chunk-ewsgsw9h.js +172291 -0
- package/dist/chunk-f0pa0r7e.js +3198 -0
- package/dist/chunk-f2mhrmww.js +62 -0
- package/dist/chunk-f39zxvwn.js +401 -0
- package/dist/chunk-f46z54tq.js +374 -0
- package/dist/chunk-f5ma3nh5.js +3436 -0
- package/dist/chunk-f60q23az.js +3038 -0
- package/dist/chunk-f6v2nz57.js +107 -0
- package/dist/chunk-f6yjan38.js +38 -0
- package/dist/chunk-fbv4apne.js +51 -0
- package/dist/chunk-fem4s778.js +70 -0
- package/dist/chunk-fezm1kn8.js +376 -0
- package/dist/chunk-fm1n3ysp.js +6108 -0
- package/dist/chunk-frg83bfw.js +225 -0
- package/dist/chunk-fscm8db0.js +692 -0
- package/dist/chunk-fyc5fepv.js +10 -0
- package/dist/chunk-g0j0t6qk.js +26 -0
- package/dist/chunk-g0nc1ftf.js +849 -0
- package/dist/chunk-g338npwr.js +1061 -0
- package/dist/chunk-g3t0act8.js +8 -0
- package/dist/chunk-g75w4hw3.js +26 -0
- package/dist/chunk-g8vp82en.js +1866 -0
- package/dist/chunk-gax0fcbx.js +182 -0
- package/dist/chunk-gsz4dh3y.js +606 -0
- package/dist/chunk-gtfffm7h.js +440 -0
- package/dist/chunk-gver9zb9.js +420 -0
- package/dist/chunk-gyj242zr.js +20 -0
- package/dist/chunk-h0qngp9w.js +157 -0
- package/dist/chunk-h14kemnk.js +123 -0
- package/dist/chunk-h8wj1a74.js +8960 -0
- package/dist/chunk-h9mcb2eg.js +87 -0
- package/dist/chunk-h9nh2980.js +91 -0
- package/dist/chunk-hakdhagh.js +16606 -0
- package/dist/chunk-hbc6ymdv.js +55 -0
- package/dist/chunk-hh7cmy4k.js +20 -0
- package/dist/chunk-hjhc4cpt.js +69 -0
- package/dist/chunk-hjwez8qc.js +5018 -0
- package/dist/chunk-hk9xz7gk.js +118 -0
- package/dist/chunk-hqmz36b3.js +552 -0
- package/dist/chunk-hrzerbfw.js +1299 -0
- package/dist/chunk-hs8ph4p8.js +8 -0
- package/dist/chunk-ht1xwrnd.js +716 -0
- package/dist/chunk-hvmfg2dc.js +338 -0
- package/dist/chunk-hx2tr4ep.js +7189 -0
- package/dist/chunk-hzhe8ygc.js +547 -0
- package/dist/chunk-j2k4p94p.js +55 -0
- package/dist/chunk-j3a4p81y.js +184 -0
- package/dist/chunk-j49g6g3s.js +57 -0
- package/dist/chunk-j5d5hp9h.js +71 -0
- package/dist/chunk-j64ga6ta.js +8035 -0
- package/dist/chunk-j7tyxan1.js +116 -0
- package/dist/chunk-j8v4774z.js +424 -0
- package/dist/chunk-jafes477.js +29 -0
- package/dist/chunk-jd32zbps.js +15 -0
- package/dist/chunk-jdgeec04.js +4249 -0
- package/dist/chunk-jftd4jq5.js +4521 -0
- package/dist/chunk-jkxqhv6y.js +812 -0
- package/dist/chunk-jmfr6h0n.js +120 -0
- package/dist/chunk-jn4aabmx.js +40 -0
- package/dist/chunk-jnhkref0.js +30 -0
- package/dist/chunk-jsbpm1gz.js +27 -0
- package/dist/chunk-jtcyjc3k.js +5802 -0
- package/dist/chunk-jx817w05.js +11 -0
- package/dist/chunk-jzmz18nn.js +65 -0
- package/dist/chunk-k0p9w03v.js +4957 -0
- package/dist/chunk-k3dcdnck.js +89 -0
- package/dist/chunk-k3wadzcd.js +88 -0
- package/dist/chunk-kaeshsk1.js +713 -0
- package/dist/chunk-kbkey9ed.js +522 -0
- package/dist/chunk-kcwfhqbb.js +196 -0
- package/dist/chunk-key6jr7p.js +224 -0
- package/dist/chunk-knay8cy9.js +173 -0
- package/dist/chunk-kr3rg2y1.js +95 -0
- package/dist/chunk-kwekc97v.js +18 -0
- package/dist/chunk-m06q12hg.js +61 -0
- package/dist/chunk-m2mcpbhk.js +43 -0
- package/dist/chunk-m8v220gz.js +71 -0
- package/dist/chunk-mgpqy78h.js +208 -0
- package/dist/chunk-mkejwh4t.js +16 -0
- package/dist/chunk-mptyw5n1.js +107 -0
- package/dist/chunk-mqajm0dp.js +66 -0
- package/dist/chunk-mrksbgxj.js +490 -0
- package/dist/chunk-msjfc5ba.js +246 -0
- package/dist/chunk-mt25echc.js +6157 -0
- package/dist/chunk-mt3jfnr8.js +277 -0
- package/dist/chunk-mtn242d4.js +9300 -0
- package/dist/chunk-mzfkvave.js +169 -0
- package/dist/chunk-n0qaeaa5.js +256 -0
- package/dist/chunk-n1erf6kh.js +22820 -0
- package/dist/chunk-n2avk1r2.js +61 -0
- package/dist/chunk-n6atnpcq.js +765 -0
- package/dist/chunk-n7ttdtk0.js +641 -0
- package/dist/chunk-ncnfzby5.js +822 -0
- package/dist/chunk-ncnr1jtf.js +2058 -0
- package/dist/chunk-nerv0jvx.js +74 -0
- package/dist/chunk-ngd2abep.js +90 -0
- package/dist/chunk-nka1g8f4.js +773 -0
- package/dist/chunk-nnaxkc2z.js +128 -0
- package/dist/chunk-npyrtj8j.js +691 -0
- package/dist/chunk-nq0fxyxh.js +752 -0
- package/dist/chunk-nrmffak7.js +114 -0
- package/dist/chunk-nsz546wq.js +1170 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-nv64x1z5.js +86 -0
- package/dist/chunk-nxsh6de2.js +1711 -0
- package/dist/chunk-nz4getcr.js +40 -0
- package/dist/chunk-p1f607pa.js +83 -0
- package/dist/chunk-p2816w9z.js +1486 -0
- package/dist/chunk-p2d5nh3g.js +342 -0
- package/dist/chunk-p4r5y02t.js +90 -0
- package/dist/chunk-p7g7pf3f.js +336 -0
- package/dist/chunk-pb4ad8r2.js +110 -0
- package/dist/chunk-pbrhz0zr.js +716 -0
- package/dist/chunk-ps49ymvj.js +43 -0
- package/dist/chunk-pwnt3veb.js +103 -0
- package/dist/chunk-pwwa7s62.js +11 -0
- package/dist/chunk-px3w0kde.js +299 -0
- package/dist/chunk-pzn777jb.js +756 -0
- package/dist/chunk-q25bjaev.js +15 -0
- package/dist/chunk-q5by3da6.js +8 -0
- package/dist/chunk-q6av622g.js +38 -0
- package/dist/chunk-q6xkvtf2.js +1318 -0
- package/dist/chunk-q81jx1tq.js +476 -0
- package/dist/chunk-qehb6fk5.js +339 -0
- package/dist/chunk-qj1avx1q.js +87 -0
- package/dist/chunk-qn2dxr66.js +105 -0
- package/dist/chunk-qnfx3qtx.js +617 -0
- package/dist/chunk-qp18kd4h.js +48 -0
- package/dist/chunk-qp2qdcda.js +100 -0
- package/dist/chunk-qpjy9tcf.js +133 -0
- package/dist/chunk-qqfa0dqg.js +2343 -0
- package/dist/chunk-qwh3htcz.js +202 -0
- package/dist/chunk-qz2x630m.js +49145 -0
- package/dist/chunk-r3vakcs1.js +496 -0
- package/dist/chunk-r66hz8j6.js +34 -0
- package/dist/chunk-r6b58y3x.js +17 -0
- package/dist/chunk-rekp48rk.js +62 -0
- package/dist/chunk-rn0v1hk8.js +34 -0
- package/dist/chunk-rs1xrs6m.js +534 -0
- package/dist/chunk-rs45skes.js +123 -0
- package/dist/chunk-rzszqp82.js +524 -0
- package/dist/chunk-s274nv8k.js +8 -0
- package/dist/chunk-s3pzvdss.js +50 -0
- package/dist/chunk-s9mesaw0.js +26840 -0
- package/dist/chunk-sd36yzx8.js +954 -0
- package/dist/chunk-sdj9b9wh.js +782 -0
- package/dist/chunk-sdw2q69p.js +227 -0
- package/dist/chunk-sfgp9cc0.js +130 -0
- package/dist/chunk-spqaamnc.js +63 -0
- package/dist/chunk-spzrs4df.js +73 -0
- package/dist/chunk-sxkr7k43.js +55 -0
- package/dist/chunk-szj5wvdy.js +28 -0
- package/dist/chunk-t0rgmccj.js +39 -0
- package/dist/chunk-t1nnzjgg.js +17 -0
- package/dist/chunk-t94fcnt8.js +566 -0
- package/dist/chunk-tjaqa99q.js +125 -0
- package/dist/chunk-tjq2evtw.js +328 -0
- package/dist/chunk-ts2p6bv1.js +224 -0
- package/dist/chunk-ttk5dzz8.js +25 -0
- package/dist/chunk-tw0q7ynt.js +59 -0
- package/dist/chunk-v02jkvgy.js +131 -0
- package/dist/chunk-v084bqt3.js +1529 -0
- package/dist/chunk-v0amythm.js +164 -0
- package/dist/chunk-v1kzp02e.js +785 -0
- package/dist/chunk-v1mgv1et.js +15 -0
- package/dist/chunk-v399mzxk.js +58 -0
- package/dist/chunk-v3gm2day.js +8 -0
- package/dist/chunk-v43hrrxp.js +71 -0
- package/dist/chunk-v6aqb2aj.js +102 -0
- package/dist/chunk-v78fj8by.js +145 -0
- package/dist/chunk-v7qmhjdn.js +1921 -0
- package/dist/chunk-v9smspw2.js +4301 -0
- package/dist/chunk-vdw93s4h.js +2431 -0
- package/dist/chunk-vest0y6x.js +3830 -0
- package/dist/chunk-vf5sd1nq.js +12 -0
- package/dist/chunk-vratq94g.js +349 -0
- package/dist/chunk-vrz7t3m3.js +20 -0
- package/dist/chunk-vtb185z9.js +70 -0
- package/dist/chunk-vx01rvg8.js +654 -0
- package/dist/chunk-vyc0rjyx.js +31 -0
- package/dist/chunk-vyjeh50y.js +2149 -0
- package/dist/chunk-vzpffsza.js +269 -0
- package/dist/chunk-w2ef3kxk.js +3353 -0
- package/dist/chunk-w2z5pqd3.js +336 -0
- package/dist/chunk-w3whm4mn.js +432 -0
- package/dist/chunk-w7wgpqcp.js +157 -0
- package/dist/chunk-waa00cvb.js +301 -0
- package/dist/chunk-wb0qm4es.js +155 -0
- package/dist/chunk-wbkahkdc.js +27 -0
- package/dist/chunk-wfz0qffj.js +3939 -0
- package/dist/chunk-wn0cx0pt.js +283 -0
- package/dist/chunk-wv6gzt9c.js +726 -0
- package/dist/chunk-wx42ycm4.js +998 -0
- package/dist/chunk-wxkpgy05.js +268 -0
- package/dist/chunk-wzpdet3m.js +843 -0
- package/dist/chunk-x0mwzt38.js +714 -0
- package/dist/chunk-x592wbfh.js +244 -0
- package/dist/chunk-x5pqsp9r.js +100 -0
- package/dist/chunk-x679thag.js +825 -0
- package/dist/chunk-x8b7vft8.js +132 -0
- package/dist/chunk-x8cftch7.js +119 -0
- package/dist/chunk-x9q7r885.js +348 -0
- package/dist/chunk-xawkt0vb.js +1585 -0
- package/dist/chunk-xdw5dv00.js +8 -0
- package/dist/chunk-xe9cc860.js +287 -0
- package/dist/chunk-xjr9c3vt.js +101 -0
- package/dist/chunk-xk7zaqta.js +21933 -0
- package/dist/chunk-xktbmawc.js +678 -0
- package/dist/chunk-xn6yw46v.js +140 -0
- package/dist/chunk-xsq9ae7x.js +90 -0
- package/dist/chunk-xszk7n10.js +14358 -0
- package/dist/chunk-xt8a5r1t.js +84 -0
- package/dist/chunk-xydyndkv.js +195 -0
- package/dist/chunk-xzt10yc5.js +60 -0
- package/dist/chunk-y04y95dr.js +91 -0
- package/dist/chunk-y1784krc.js +19 -0
- package/dist/chunk-y1x32h3x.js +128 -0
- package/dist/chunk-y3s7aww5.js +99 -0
- package/dist/chunk-y47cg3kz.js +42 -0
- package/dist/chunk-y7kzvepn.js +469 -0
- package/dist/chunk-y89kbsyc.js +287 -0
- package/dist/chunk-yd87p1c3.js +159 -0
- package/dist/chunk-yf3yw8fw.js +105 -0
- package/dist/chunk-ygbf0ezx.js +1391 -0
- package/dist/chunk-yjbxnshv.js +208 -0
- package/dist/chunk-ynednmqd.js +192 -0
- package/dist/chunk-yvhez44y.js +259 -0
- package/dist/chunk-ywxd4qw4.js +22 -0
- package/dist/chunk-yzrmgpy4.js +117 -0
- package/dist/chunk-z0b2vb24.js +862 -0
- package/dist/chunk-z1zj044v.js +655 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z3w0xasa.js +165 -0
- package/dist/chunk-z7ycmrb3.js +644 -0
- package/dist/chunk-zh11tdkb.js +347 -0
- package/dist/chunk-zk2wsm7d.js +15 -0
- package/dist/chunk-zqfqcf22.js +229 -0
- package/dist/chunk-zqk2j8px.js +699 -0
- package/dist/chunk-zqvsc10j.js +2833 -0
- package/dist/chunk-zsfxha74.js +17655 -0
- package/dist/chunk-zvc4snyb.js +117 -0
- package/dist/cli.js +194 -0
- package/package.json +173 -0
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
require_dist_cjs4 as require_dist_cjs2
|
|
4
|
+
} from "./chunk-wfz0qffj.js";
|
|
5
|
+
import {
|
|
6
|
+
require_dist_cjs
|
|
7
|
+
} from "./chunk-xsq9ae7x.js";
|
|
8
|
+
import {
|
|
9
|
+
__commonJS
|
|
10
|
+
} from "./chunk-qp2qdcda.js";
|
|
11
|
+
|
|
12
|
+
// node_modules/.bun/@smithy+util-config-provider@4.2.2/node_modules/@smithy/util-config-provider/dist-cjs/index.js
|
|
13
|
+
var require_dist_cjs3 = __commonJS((exports) => {
|
|
14
|
+
var booleanSelector = (obj, key, type) => {
|
|
15
|
+
if (!(key in obj))
|
|
16
|
+
return;
|
|
17
|
+
if (obj[key] === "true")
|
|
18
|
+
return true;
|
|
19
|
+
if (obj[key] === "false")
|
|
20
|
+
return false;
|
|
21
|
+
throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
|
|
22
|
+
};
|
|
23
|
+
var numberSelector = (obj, key, type) => {
|
|
24
|
+
if (!(key in obj))
|
|
25
|
+
return;
|
|
26
|
+
const numberValue = parseInt(obj[key], 10);
|
|
27
|
+
if (Number.isNaN(numberValue)) {
|
|
28
|
+
throw new TypeError(`Cannot load ${type} '${key}'. Expected number, got '${obj[key]}'.`);
|
|
29
|
+
}
|
|
30
|
+
return numberValue;
|
|
31
|
+
};
|
|
32
|
+
exports.SelectorType = undefined;
|
|
33
|
+
(function(SelectorType) {
|
|
34
|
+
SelectorType["ENV"] = "env";
|
|
35
|
+
SelectorType["CONFIG"] = "shared config entry";
|
|
36
|
+
})(exports.SelectorType || (exports.SelectorType = {}));
|
|
37
|
+
exports.booleanSelector = booleanSelector;
|
|
38
|
+
exports.numberSelector = numberSelector;
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
// node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-cjs/index.js
|
|
42
|
+
var require_dist_cjs4 = __commonJS((exports) => {
|
|
43
|
+
var types = require_dist_cjs();
|
|
44
|
+
|
|
45
|
+
class EndpointCache {
|
|
46
|
+
capacity;
|
|
47
|
+
data = new Map;
|
|
48
|
+
parameters = [];
|
|
49
|
+
constructor({ size, params }) {
|
|
50
|
+
this.capacity = size ?? 50;
|
|
51
|
+
if (params) {
|
|
52
|
+
this.parameters = params;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
get(endpointParams, resolver) {
|
|
56
|
+
const key = this.hash(endpointParams);
|
|
57
|
+
if (key === false) {
|
|
58
|
+
return resolver();
|
|
59
|
+
}
|
|
60
|
+
if (!this.data.has(key)) {
|
|
61
|
+
if (this.data.size > this.capacity + 10) {
|
|
62
|
+
const keys = this.data.keys();
|
|
63
|
+
let i = 0;
|
|
64
|
+
while (true) {
|
|
65
|
+
const { value, done } = keys.next();
|
|
66
|
+
this.data.delete(value);
|
|
67
|
+
if (done || ++i > 10) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
this.data.set(key, resolver());
|
|
73
|
+
}
|
|
74
|
+
return this.data.get(key);
|
|
75
|
+
}
|
|
76
|
+
size() {
|
|
77
|
+
return this.data.size;
|
|
78
|
+
}
|
|
79
|
+
hash(endpointParams) {
|
|
80
|
+
let buffer = "";
|
|
81
|
+
const { parameters } = this;
|
|
82
|
+
if (parameters.length === 0) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
for (const param of parameters) {
|
|
86
|
+
const val = String(endpointParams[param] ?? "");
|
|
87
|
+
if (val.includes("|;")) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
buffer += val + "|;";
|
|
91
|
+
}
|
|
92
|
+
return buffer;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);
|
|
96
|
+
var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
|
|
97
|
+
var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
|
|
98
|
+
var isValidHostLabel = (value, allowSubDomains = false) => {
|
|
99
|
+
if (!allowSubDomains) {
|
|
100
|
+
return VALID_HOST_LABEL_REGEX.test(value);
|
|
101
|
+
}
|
|
102
|
+
const labels = value.split(".");
|
|
103
|
+
for (const label of labels) {
|
|
104
|
+
if (!isValidHostLabel(label)) {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return true;
|
|
109
|
+
};
|
|
110
|
+
var customEndpointFunctions = {};
|
|
111
|
+
var debugId = "endpoints";
|
|
112
|
+
function toDebugString(input) {
|
|
113
|
+
if (typeof input !== "object" || input == null) {
|
|
114
|
+
return input;
|
|
115
|
+
}
|
|
116
|
+
if ("ref" in input) {
|
|
117
|
+
return `$${toDebugString(input.ref)}`;
|
|
118
|
+
}
|
|
119
|
+
if ("fn" in input) {
|
|
120
|
+
return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`;
|
|
121
|
+
}
|
|
122
|
+
return JSON.stringify(input, null, 2);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
class EndpointError extends Error {
|
|
126
|
+
constructor(message) {
|
|
127
|
+
super(message);
|
|
128
|
+
this.name = "EndpointError";
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
var booleanEquals = (value1, value2) => value1 === value2;
|
|
132
|
+
var getAttrPathList = (path) => {
|
|
133
|
+
const parts = path.split(".");
|
|
134
|
+
const pathList = [];
|
|
135
|
+
for (const part of parts) {
|
|
136
|
+
const squareBracketIndex = part.indexOf("[");
|
|
137
|
+
if (squareBracketIndex !== -1) {
|
|
138
|
+
if (part.indexOf("]") !== part.length - 1) {
|
|
139
|
+
throw new EndpointError(`Path: '${path}' does not end with ']'`);
|
|
140
|
+
}
|
|
141
|
+
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
|
142
|
+
if (Number.isNaN(parseInt(arrayIndex))) {
|
|
143
|
+
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`);
|
|
144
|
+
}
|
|
145
|
+
if (squareBracketIndex !== 0) {
|
|
146
|
+
pathList.push(part.slice(0, squareBracketIndex));
|
|
147
|
+
}
|
|
148
|
+
pathList.push(arrayIndex);
|
|
149
|
+
} else {
|
|
150
|
+
pathList.push(part);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return pathList;
|
|
154
|
+
};
|
|
155
|
+
var getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
|
|
156
|
+
if (typeof acc !== "object") {
|
|
157
|
+
throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
|
|
158
|
+
} else if (Array.isArray(acc)) {
|
|
159
|
+
return acc[parseInt(index)];
|
|
160
|
+
}
|
|
161
|
+
return acc[index];
|
|
162
|
+
}, value);
|
|
163
|
+
var isSet = (value) => value != null;
|
|
164
|
+
var not = (value) => !value;
|
|
165
|
+
var DEFAULT_PORTS = {
|
|
166
|
+
[types.EndpointURLScheme.HTTP]: 80,
|
|
167
|
+
[types.EndpointURLScheme.HTTPS]: 443
|
|
168
|
+
};
|
|
169
|
+
var parseURL = (value) => {
|
|
170
|
+
const whatwgURL = (() => {
|
|
171
|
+
try {
|
|
172
|
+
if (value instanceof URL) {
|
|
173
|
+
return value;
|
|
174
|
+
}
|
|
175
|
+
if (typeof value === "object" && "hostname" in value) {
|
|
176
|
+
const { hostname: hostname2, port, protocol: protocol2 = "", path = "", query = {} } = value;
|
|
177
|
+
const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path}`);
|
|
178
|
+
url.search = Object.entries(query).map(([k, v]) => `${k}=${v}`).join("&");
|
|
179
|
+
return url;
|
|
180
|
+
}
|
|
181
|
+
return new URL(value);
|
|
182
|
+
} catch (error) {
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
})();
|
|
186
|
+
if (!whatwgURL) {
|
|
187
|
+
console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`);
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
const urlString = whatwgURL.href;
|
|
191
|
+
const { host, hostname, pathname, protocol, search } = whatwgURL;
|
|
192
|
+
if (search) {
|
|
193
|
+
return null;
|
|
194
|
+
}
|
|
195
|
+
const scheme = protocol.slice(0, -1);
|
|
196
|
+
if (!Object.values(types.EndpointURLScheme).includes(scheme)) {
|
|
197
|
+
return null;
|
|
198
|
+
}
|
|
199
|
+
const isIp = isIpAddress(hostname);
|
|
200
|
+
const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`);
|
|
201
|
+
const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`;
|
|
202
|
+
return {
|
|
203
|
+
scheme,
|
|
204
|
+
authority,
|
|
205
|
+
path: pathname,
|
|
206
|
+
normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`,
|
|
207
|
+
isIp
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
var stringEquals = (value1, value2) => value1 === value2;
|
|
211
|
+
var substring = (input, start, stop, reverse) => {
|
|
212
|
+
if (start >= stop || input.length < stop || /[^\u0000-\u007f]/.test(input)) {
|
|
213
|
+
return null;
|
|
214
|
+
}
|
|
215
|
+
if (!reverse) {
|
|
216
|
+
return input.substring(start, stop);
|
|
217
|
+
}
|
|
218
|
+
return input.substring(input.length - stop, input.length - start);
|
|
219
|
+
};
|
|
220
|
+
var uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
221
|
+
var endpointFunctions = {
|
|
222
|
+
booleanEquals,
|
|
223
|
+
getAttr,
|
|
224
|
+
isSet,
|
|
225
|
+
isValidHostLabel,
|
|
226
|
+
not,
|
|
227
|
+
parseURL,
|
|
228
|
+
stringEquals,
|
|
229
|
+
substring,
|
|
230
|
+
uriEncode
|
|
231
|
+
};
|
|
232
|
+
var evaluateTemplate = (template, options) => {
|
|
233
|
+
const evaluatedTemplateArr = [];
|
|
234
|
+
const templateContext = {
|
|
235
|
+
...options.endpointParams,
|
|
236
|
+
...options.referenceRecord
|
|
237
|
+
};
|
|
238
|
+
let currentIndex = 0;
|
|
239
|
+
while (currentIndex < template.length) {
|
|
240
|
+
const openingBraceIndex = template.indexOf("{", currentIndex);
|
|
241
|
+
if (openingBraceIndex === -1) {
|
|
242
|
+
evaluatedTemplateArr.push(template.slice(currentIndex));
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex));
|
|
246
|
+
const closingBraceIndex = template.indexOf("}", openingBraceIndex);
|
|
247
|
+
if (closingBraceIndex === -1) {
|
|
248
|
+
evaluatedTemplateArr.push(template.slice(openingBraceIndex));
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") {
|
|
252
|
+
evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex));
|
|
253
|
+
currentIndex = closingBraceIndex + 2;
|
|
254
|
+
}
|
|
255
|
+
const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);
|
|
256
|
+
if (parameterName.includes("#")) {
|
|
257
|
+
const [refName, attrName] = parameterName.split("#");
|
|
258
|
+
evaluatedTemplateArr.push(getAttr(templateContext[refName], attrName));
|
|
259
|
+
} else {
|
|
260
|
+
evaluatedTemplateArr.push(templateContext[parameterName]);
|
|
261
|
+
}
|
|
262
|
+
currentIndex = closingBraceIndex + 1;
|
|
263
|
+
}
|
|
264
|
+
return evaluatedTemplateArr.join("");
|
|
265
|
+
};
|
|
266
|
+
var getReferenceValue = ({ ref }, options) => {
|
|
267
|
+
const referenceRecord = {
|
|
268
|
+
...options.endpointParams,
|
|
269
|
+
...options.referenceRecord
|
|
270
|
+
};
|
|
271
|
+
return referenceRecord[ref];
|
|
272
|
+
};
|
|
273
|
+
var evaluateExpression = (obj, keyName, options) => {
|
|
274
|
+
if (typeof obj === "string") {
|
|
275
|
+
return evaluateTemplate(obj, options);
|
|
276
|
+
} else if (obj["fn"]) {
|
|
277
|
+
return group$2.callFunction(obj, options);
|
|
278
|
+
} else if (obj["ref"]) {
|
|
279
|
+
return getReferenceValue(obj, options);
|
|
280
|
+
}
|
|
281
|
+
throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
|
|
282
|
+
};
|
|
283
|
+
var callFunction = ({ fn, argv }, options) => {
|
|
284
|
+
const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : group$2.evaluateExpression(arg, "arg", options));
|
|
285
|
+
const fnSegments = fn.split(".");
|
|
286
|
+
if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
|
|
287
|
+
return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
|
|
288
|
+
}
|
|
289
|
+
return endpointFunctions[fn](...evaluatedArgs);
|
|
290
|
+
};
|
|
291
|
+
var group$2 = {
|
|
292
|
+
evaluateExpression,
|
|
293
|
+
callFunction
|
|
294
|
+
};
|
|
295
|
+
var evaluateCondition = ({ assign, ...fnArgs }, options) => {
|
|
296
|
+
if (assign && assign in options.referenceRecord) {
|
|
297
|
+
throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
|
|
298
|
+
}
|
|
299
|
+
const value = callFunction(fnArgs, options);
|
|
300
|
+
options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
|
|
301
|
+
return {
|
|
302
|
+
result: value === "" ? true : !!value,
|
|
303
|
+
...assign != null && { toAssign: { name: assign, value } }
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
var evaluateConditions = (conditions = [], options) => {
|
|
307
|
+
const conditionsReferenceRecord = {};
|
|
308
|
+
for (const condition of conditions) {
|
|
309
|
+
const { result, toAssign } = evaluateCondition(condition, {
|
|
310
|
+
...options,
|
|
311
|
+
referenceRecord: {
|
|
312
|
+
...options.referenceRecord,
|
|
313
|
+
...conditionsReferenceRecord
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
if (!result) {
|
|
317
|
+
return { result };
|
|
318
|
+
}
|
|
319
|
+
if (toAssign) {
|
|
320
|
+
conditionsReferenceRecord[toAssign.name] = toAssign.value;
|
|
321
|
+
options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
return { result: true, referenceRecord: conditionsReferenceRecord };
|
|
325
|
+
};
|
|
326
|
+
var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
|
|
327
|
+
...acc,
|
|
328
|
+
[headerKey]: headerVal.map((headerValEntry) => {
|
|
329
|
+
const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
|
|
330
|
+
if (typeof processedExpr !== "string") {
|
|
331
|
+
throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
|
|
332
|
+
}
|
|
333
|
+
return processedExpr;
|
|
334
|
+
})
|
|
335
|
+
}), {});
|
|
336
|
+
var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
|
|
337
|
+
...acc,
|
|
338
|
+
[propertyKey]: group$1.getEndpointProperty(propertyVal, options)
|
|
339
|
+
}), {});
|
|
340
|
+
var getEndpointProperty = (property, options) => {
|
|
341
|
+
if (Array.isArray(property)) {
|
|
342
|
+
return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
|
|
343
|
+
}
|
|
344
|
+
switch (typeof property) {
|
|
345
|
+
case "string":
|
|
346
|
+
return evaluateTemplate(property, options);
|
|
347
|
+
case "object":
|
|
348
|
+
if (property === null) {
|
|
349
|
+
throw new EndpointError(`Unexpected endpoint property: ${property}`);
|
|
350
|
+
}
|
|
351
|
+
return group$1.getEndpointProperties(property, options);
|
|
352
|
+
case "boolean":
|
|
353
|
+
return property;
|
|
354
|
+
default:
|
|
355
|
+
throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`);
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
var group$1 = {
|
|
359
|
+
getEndpointProperty,
|
|
360
|
+
getEndpointProperties
|
|
361
|
+
};
|
|
362
|
+
var getEndpointUrl = (endpointUrl, options) => {
|
|
363
|
+
const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
|
|
364
|
+
if (typeof expression === "string") {
|
|
365
|
+
try {
|
|
366
|
+
return new URL(expression);
|
|
367
|
+
} catch (error) {
|
|
368
|
+
console.error(`Failed to construct URL with ${expression}`, error);
|
|
369
|
+
throw error;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
|
|
373
|
+
};
|
|
374
|
+
var evaluateEndpointRule = (endpointRule, options) => {
|
|
375
|
+
const { conditions, endpoint } = endpointRule;
|
|
376
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
377
|
+
if (!result) {
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
const endpointRuleOptions = {
|
|
381
|
+
...options,
|
|
382
|
+
referenceRecord: { ...options.referenceRecord, ...referenceRecord }
|
|
383
|
+
};
|
|
384
|
+
const { url, properties, headers } = endpoint;
|
|
385
|
+
options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`);
|
|
386
|
+
return {
|
|
387
|
+
...headers != null && {
|
|
388
|
+
headers: getEndpointHeaders(headers, endpointRuleOptions)
|
|
389
|
+
},
|
|
390
|
+
...properties != null && {
|
|
391
|
+
properties: getEndpointProperties(properties, endpointRuleOptions)
|
|
392
|
+
},
|
|
393
|
+
url: getEndpointUrl(url, endpointRuleOptions)
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
var evaluateErrorRule = (errorRule, options) => {
|
|
397
|
+
const { conditions, error } = errorRule;
|
|
398
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
399
|
+
if (!result) {
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
throw new EndpointError(evaluateExpression(error, "Error", {
|
|
403
|
+
...options,
|
|
404
|
+
referenceRecord: { ...options.referenceRecord, ...referenceRecord }
|
|
405
|
+
}));
|
|
406
|
+
};
|
|
407
|
+
var evaluateRules = (rules, options) => {
|
|
408
|
+
for (const rule of rules) {
|
|
409
|
+
if (rule.type === "endpoint") {
|
|
410
|
+
const endpointOrUndefined = evaluateEndpointRule(rule, options);
|
|
411
|
+
if (endpointOrUndefined) {
|
|
412
|
+
return endpointOrUndefined;
|
|
413
|
+
}
|
|
414
|
+
} else if (rule.type === "error") {
|
|
415
|
+
evaluateErrorRule(rule, options);
|
|
416
|
+
} else if (rule.type === "tree") {
|
|
417
|
+
const endpointOrUndefined = group.evaluateTreeRule(rule, options);
|
|
418
|
+
if (endpointOrUndefined) {
|
|
419
|
+
return endpointOrUndefined;
|
|
420
|
+
}
|
|
421
|
+
} else {
|
|
422
|
+
throw new EndpointError(`Unknown endpoint rule: ${rule}`);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
throw new EndpointError(`Rules evaluation failed`);
|
|
426
|
+
};
|
|
427
|
+
var evaluateTreeRule = (treeRule, options) => {
|
|
428
|
+
const { conditions, rules } = treeRule;
|
|
429
|
+
const { result, referenceRecord } = evaluateConditions(conditions, options);
|
|
430
|
+
if (!result) {
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
return group.evaluateRules(rules, {
|
|
434
|
+
...options,
|
|
435
|
+
referenceRecord: { ...options.referenceRecord, ...referenceRecord }
|
|
436
|
+
});
|
|
437
|
+
};
|
|
438
|
+
var group = {
|
|
439
|
+
evaluateRules,
|
|
440
|
+
evaluateTreeRule
|
|
441
|
+
};
|
|
442
|
+
var resolveEndpoint = (ruleSetObject, options) => {
|
|
443
|
+
const { endpointParams, logger } = options;
|
|
444
|
+
const { parameters, rules } = ruleSetObject;
|
|
445
|
+
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
446
|
+
const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]);
|
|
447
|
+
if (paramsWithDefault.length > 0) {
|
|
448
|
+
for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
|
|
449
|
+
endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k]) => k);
|
|
453
|
+
for (const requiredParam of requiredParams) {
|
|
454
|
+
if (endpointParams[requiredParam] == null) {
|
|
455
|
+
throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });
|
|
459
|
+
options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
|
|
460
|
+
return endpoint;
|
|
461
|
+
};
|
|
462
|
+
exports.EndpointCache = EndpointCache;
|
|
463
|
+
exports.EndpointError = EndpointError;
|
|
464
|
+
exports.customEndpointFunctions = customEndpointFunctions;
|
|
465
|
+
exports.isIpAddress = isIpAddress;
|
|
466
|
+
exports.isValidHostLabel = isValidHostLabel;
|
|
467
|
+
exports.resolveEndpoint = resolveEndpoint;
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
// node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-cjs/index.js
|
|
471
|
+
var require_dist_cjs5 = __commonJS((exports) => {
|
|
472
|
+
var utilConfigProvider = require_dist_cjs3();
|
|
473
|
+
var utilMiddleware = require_dist_cjs2();
|
|
474
|
+
var utilEndpoints = require_dist_cjs4();
|
|
475
|
+
var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
476
|
+
var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
|
|
477
|
+
var DEFAULT_USE_DUALSTACK_ENDPOINT = false;
|
|
478
|
+
var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
479
|
+
environmentVariableSelector: (env) => utilConfigProvider.booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, utilConfigProvider.SelectorType.ENV),
|
|
480
|
+
configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, utilConfigProvider.SelectorType.CONFIG),
|
|
481
|
+
default: false
|
|
482
|
+
};
|
|
483
|
+
var nodeDualstackConfigSelectors = {
|
|
484
|
+
environmentVariableSelector: (env) => utilConfigProvider.booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, utilConfigProvider.SelectorType.ENV),
|
|
485
|
+
configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, utilConfigProvider.SelectorType.CONFIG),
|
|
486
|
+
default: undefined
|
|
487
|
+
};
|
|
488
|
+
var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
|
|
489
|
+
var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
|
|
490
|
+
var DEFAULT_USE_FIPS_ENDPOINT = false;
|
|
491
|
+
var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
492
|
+
environmentVariableSelector: (env) => utilConfigProvider.booleanSelector(env, ENV_USE_FIPS_ENDPOINT, utilConfigProvider.SelectorType.ENV),
|
|
493
|
+
configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, utilConfigProvider.SelectorType.CONFIG),
|
|
494
|
+
default: false
|
|
495
|
+
};
|
|
496
|
+
var nodeFipsConfigSelectors = {
|
|
497
|
+
environmentVariableSelector: (env) => utilConfigProvider.booleanSelector(env, ENV_USE_FIPS_ENDPOINT, utilConfigProvider.SelectorType.ENV),
|
|
498
|
+
configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, utilConfigProvider.SelectorType.CONFIG),
|
|
499
|
+
default: undefined
|
|
500
|
+
};
|
|
501
|
+
var resolveCustomEndpointsConfig = (input) => {
|
|
502
|
+
const { tls, endpoint, urlParser, useDualstackEndpoint } = input;
|
|
503
|
+
return Object.assign(input, {
|
|
504
|
+
tls: tls ?? true,
|
|
505
|
+
endpoint: utilMiddleware.normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint),
|
|
506
|
+
isCustomEndpoint: true,
|
|
507
|
+
useDualstackEndpoint: utilMiddleware.normalizeProvider(useDualstackEndpoint ?? false)
|
|
508
|
+
});
|
|
509
|
+
};
|
|
510
|
+
var getEndpointFromRegion = async (input) => {
|
|
511
|
+
const { tls = true } = input;
|
|
512
|
+
const region = await input.region();
|
|
513
|
+
const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);
|
|
514
|
+
if (!dnsHostRegex.test(region)) {
|
|
515
|
+
throw new Error("Invalid region in client config");
|
|
516
|
+
}
|
|
517
|
+
const useDualstackEndpoint = await input.useDualstackEndpoint();
|
|
518
|
+
const useFipsEndpoint = await input.useFipsEndpoint();
|
|
519
|
+
const { hostname } = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint }) ?? {};
|
|
520
|
+
if (!hostname) {
|
|
521
|
+
throw new Error("Cannot resolve hostname from client config");
|
|
522
|
+
}
|
|
523
|
+
return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`);
|
|
524
|
+
};
|
|
525
|
+
var resolveEndpointsConfig = (input) => {
|
|
526
|
+
const useDualstackEndpoint = utilMiddleware.normalizeProvider(input.useDualstackEndpoint ?? false);
|
|
527
|
+
const { endpoint, useFipsEndpoint, urlParser, tls } = input;
|
|
528
|
+
return Object.assign(input, {
|
|
529
|
+
tls: tls ?? true,
|
|
530
|
+
endpoint: endpoint ? utilMiddleware.normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }),
|
|
531
|
+
isCustomEndpoint: !!endpoint,
|
|
532
|
+
useDualstackEndpoint
|
|
533
|
+
});
|
|
534
|
+
};
|
|
535
|
+
var REGION_ENV_NAME = "AWS_REGION";
|
|
536
|
+
var REGION_INI_NAME = "region";
|
|
537
|
+
var NODE_REGION_CONFIG_OPTIONS = {
|
|
538
|
+
environmentVariableSelector: (env) => env[REGION_ENV_NAME],
|
|
539
|
+
configFileSelector: (profile) => profile[REGION_INI_NAME],
|
|
540
|
+
default: () => {
|
|
541
|
+
throw new Error("Region is missing");
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
var NODE_REGION_CONFIG_FILE_OPTIONS = {
|
|
545
|
+
preferredFile: "credentials"
|
|
546
|
+
};
|
|
547
|
+
var validRegions = new Set;
|
|
548
|
+
var checkRegion = (region, check = utilEndpoints.isValidHostLabel) => {
|
|
549
|
+
if (!validRegions.has(region) && !check(region)) {
|
|
550
|
+
if (region === "*") {
|
|
551
|
+
console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);
|
|
552
|
+
} else {
|
|
553
|
+
throw new Error(`Region not accepted: region="${region}" is not a valid hostname component.`);
|
|
554
|
+
}
|
|
555
|
+
} else {
|
|
556
|
+
validRegions.add(region);
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
|
|
560
|
+
var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
|
|
561
|
+
var resolveRegionConfig = (input) => {
|
|
562
|
+
const { region, useFipsEndpoint } = input;
|
|
563
|
+
if (!region) {
|
|
564
|
+
throw new Error("Region is missing");
|
|
565
|
+
}
|
|
566
|
+
return Object.assign(input, {
|
|
567
|
+
region: async () => {
|
|
568
|
+
const providedRegion = typeof region === "function" ? await region() : region;
|
|
569
|
+
const realRegion = getRealRegion(providedRegion);
|
|
570
|
+
checkRegion(realRegion);
|
|
571
|
+
return realRegion;
|
|
572
|
+
},
|
|
573
|
+
useFipsEndpoint: async () => {
|
|
574
|
+
const providedRegion = typeof region === "string" ? region : await region();
|
|
575
|
+
if (isFipsRegion(providedRegion)) {
|
|
576
|
+
return true;
|
|
577
|
+
}
|
|
578
|
+
return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
};
|
|
582
|
+
var getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))?.hostname;
|
|
583
|
+
var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : undefined;
|
|
584
|
+
var getResolvedPartition = (region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws";
|
|
585
|
+
var getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => {
|
|
586
|
+
if (signingRegion) {
|
|
587
|
+
return signingRegion;
|
|
588
|
+
} else if (useFipsEndpoint) {
|
|
589
|
+
const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\.");
|
|
590
|
+
const regionRegexmatchArray = hostname.match(regionRegexJs);
|
|
591
|
+
if (regionRegexmatchArray) {
|
|
592
|
+
return regionRegexmatchArray[0].slice(1, -1);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
var getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash }) => {
|
|
597
|
+
const partition = getResolvedPartition(region, { partitionHash });
|
|
598
|
+
const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
|
|
599
|
+
const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
|
|
600
|
+
const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
|
|
601
|
+
const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
|
|
602
|
+
const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname });
|
|
603
|
+
if (hostname === undefined) {
|
|
604
|
+
throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`);
|
|
605
|
+
}
|
|
606
|
+
const signingRegion = getResolvedSigningRegion(hostname, {
|
|
607
|
+
signingRegion: regionHash[resolvedRegion]?.signingRegion,
|
|
608
|
+
regionRegex: partitionHash[partition].regionRegex,
|
|
609
|
+
useFipsEndpoint
|
|
610
|
+
});
|
|
611
|
+
return {
|
|
612
|
+
partition,
|
|
613
|
+
signingService,
|
|
614
|
+
hostname,
|
|
615
|
+
...signingRegion && { signingRegion },
|
|
616
|
+
...regionHash[resolvedRegion]?.signingService && {
|
|
617
|
+
signingService: regionHash[resolvedRegion].signingService
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
exports.CONFIG_USE_DUALSTACK_ENDPOINT = CONFIG_USE_DUALSTACK_ENDPOINT;
|
|
622
|
+
exports.CONFIG_USE_FIPS_ENDPOINT = CONFIG_USE_FIPS_ENDPOINT;
|
|
623
|
+
exports.DEFAULT_USE_DUALSTACK_ENDPOINT = DEFAULT_USE_DUALSTACK_ENDPOINT;
|
|
624
|
+
exports.DEFAULT_USE_FIPS_ENDPOINT = DEFAULT_USE_FIPS_ENDPOINT;
|
|
625
|
+
exports.ENV_USE_DUALSTACK_ENDPOINT = ENV_USE_DUALSTACK_ENDPOINT;
|
|
626
|
+
exports.ENV_USE_FIPS_ENDPOINT = ENV_USE_FIPS_ENDPOINT;
|
|
627
|
+
exports.NODE_REGION_CONFIG_FILE_OPTIONS = NODE_REGION_CONFIG_FILE_OPTIONS;
|
|
628
|
+
exports.NODE_REGION_CONFIG_OPTIONS = NODE_REGION_CONFIG_OPTIONS;
|
|
629
|
+
exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS;
|
|
630
|
+
exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS;
|
|
631
|
+
exports.REGION_ENV_NAME = REGION_ENV_NAME;
|
|
632
|
+
exports.REGION_INI_NAME = REGION_INI_NAME;
|
|
633
|
+
exports.getRegionInfo = getRegionInfo;
|
|
634
|
+
exports.nodeDualstackConfigSelectors = nodeDualstackConfigSelectors;
|
|
635
|
+
exports.nodeFipsConfigSelectors = nodeFipsConfigSelectors;
|
|
636
|
+
exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig;
|
|
637
|
+
exports.resolveEndpointsConfig = resolveEndpointsConfig;
|
|
638
|
+
exports.resolveRegionConfig = resolveRegionConfig;
|
|
639
|
+
});
|
|
640
|
+
|
|
641
|
+
export { require_dist_cjs4 as require_dist_cjs, require_dist_cjs3 as require_dist_cjs1, require_dist_cjs5 as require_dist_cjs2 };
|