@claudiolabs/claudio 0.1.12 → 0.1.14
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/bin/claudio +7 -0
- package/dist/chunks/AgentTool-0.1.14-cdr5h1g4.mjs +1 -0
- package/dist/chunks/App-0.1.14-pg2tqqjz.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.14-e86h3nff.mjs +1 -0
- package/dist/chunks/{AssistantSessionChooser-0.1.12-x3zt5579.mjs → AssistantSessionChooser-0.1.14-tf848k8v.mjs} +1 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.14-ftdkaf8h.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.14-d45z21x5.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.14-dzhpgrhm.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.14-y2v8vg76.mjs +1 -0
- package/dist/chunks/{DiffDialog-0.1.12-tzjdg5ys.mjs → DiffDialog-0.1.14-wtx2wmbs.mjs} +1 -1
- package/dist/chunks/Doctor-0.1.14-rhryp3qj.mjs +1 -0
- package/dist/chunks/Grove-0.1.14-4pt83x25.mjs +1 -0
- package/dist/chunks/ITermBackend-0.1.14-xtdr5bmp.mjs +1 -0
- package/dist/chunks/{InProcessTransport-0.1.12-xnrc78z1.mjs → InProcessTransport-0.1.14-wdqgcpb4.mjs} +1 -1
- package/dist/chunks/InvalidConfigDialog-0.1.14-rx2djmka.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.14-nhkj2max.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.14-f6hf3ymp.mjs +1 -0
- package/dist/chunks/Onboarding-0.1.14-1rddgg2b.mjs +1 -0
- package/dist/chunks/ProviderManager-0.1.14-2d77t0cr.mjs +1 -0
- package/dist/chunks/REPL-0.1.14-rz1jsayd.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.1.14-79hg5s2w.mjs +1 -0
- package/dist/chunks/{SnapshotUpdateDialog-0.1.12-f1byjres.mjs → SnapshotUpdateDialog-0.1.14-sbjnsz3c.mjs} +1 -1
- package/dist/chunks/TeleportProgress-0.1.14-411m3y24.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.14-v6ytg24w.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.1.14-8wfa8twy.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.1.14-175xkeyy.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.1.14-rpbvvb5j.mjs +1 -0
- package/dist/chunks/TrustDialog-0.1.14-zvmfmtg5.mjs +1 -0
- package/dist/chunks/activeProvider-0.1.14-5cpywex1.mjs +1 -0
- package/dist/chunks/add-dir-0.1.14-q700x1tp.mjs +1 -0
- package/dist/chunks/agents-0.1.14-nm4k11re.mjs +3 -0
- package/dist/chunks/{agents-0.1.12-vfwpnn0d.mjs → agents-0.1.14-pjr42t23.mjs} +2 -2
- package/dist/chunks/api-0.1.14-v09922m9.mjs +1 -0
- package/dist/chunks/{asciicast-0.1.12-nwzfr5gz.mjs → asciicast-0.1.14-kgp9j4z6.mjs} +1 -1
- package/dist/chunks/assistant-0.1.14-yt6v1sjy.mjs +1 -0
- package/dist/chunks/auth-0.1.14-vg6ez70v.mjs +1 -0
- package/dist/chunks/{auth-0.1.12-vhdwtwhb.mjs → auth-0.1.14-vj6095mm.mjs} +1 -1
- package/dist/chunks/{autoMode-0.1.12-xjr5qd6q.mjs → autoMode-0.1.14-jxse6h16.mjs} +1 -1
- package/dist/chunks/backgroundHousekeeping-0.1.14-bh13ez8a.mjs +1 -0
- package/dist/chunks/branch-0.1.14-r5tt7cec.mjs +4 -0
- package/dist/chunks/{bridgePointer-0.1.12-vdj4j4ke.mjs → bridgePointer-0.1.14-2w1wvxgt.mjs} +1 -1
- package/dist/chunks/btw-0.1.14-j1cexrtn.mjs +1 -0
- package/dist/chunks/{buddy-0.1.12-4q50s2x4.mjs → buddy-0.1.14-r4nmfbke.mjs} +1 -1
- package/dist/chunks/cacache-0.1.14-3vw5qkqs.mjs +1 -0
- package/dist/chunks/{cache-probe-0.1.12-4s8cc2km.mjs → cache-probe-0.1.14-zfb6aw4f.mjs} +1 -1
- package/dist/chunks/{cacheStats-0.1.12-qqcw6b5n.mjs → cacheStats-0.1.14-15eahew3.mjs} +1 -1
- package/dist/chunks/caches-0.1.14-et2zg3m5.mjs +1 -0
- package/dist/chunks/{claudeDesktop-0.1.12-1yrkynq4.mjs → claudeDesktop-0.1.14-0df0z4v6.mjs} +1 -1
- package/dist/chunks/claudemd-0.1.14-exzt8psa.mjs +1 -0
- package/dist/chunks/clear-0.1.14-62gnxkg3.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.14-5p1j5sbv.mjs +1 -0
- package/dist/chunks/cli-0.1.14-08ambmnj.mjs +2 -0
- package/dist/chunks/cli-0.1.14-0a8ckx07.mjs +2 -0
- package/dist/chunks/cli-0.1.14-0ctjta81.mjs +5 -0
- package/dist/chunks/{cli-0.1.12-faa9mx3m.mjs → cli-0.1.14-0kzzfe41.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-0nhaxy76.mjs +4 -0
- package/dist/chunks/{cli-0.1.12-q63qrz06.mjs → cli-0.1.14-0x3m90bk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-v000x470.mjs → cli-0.1.14-16jrehc2.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-352pjhkh.mjs → cli-0.1.14-1g5jq0j8.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-1shkmy81.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-trdq9d6x.mjs → cli-0.1.14-1xkst5wv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-rwhrpb6w.mjs → cli-0.1.14-244fknyr.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-1x06khjr.mjs → cli-0.1.14-25ta9abj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-0vf5f6qn.mjs → cli-0.1.14-28exj8zm.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-2e2jfccr.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-vzga2are.mjs → cli-0.1.14-2f7s5xbd.mjs} +6 -6
- package/dist/chunks/{cli-0.1.12-rzpc0tr9.mjs → cli-0.1.14-2mzb5ath.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-373staaj.mjs +2 -0
- package/dist/chunks/cli-0.1.14-39y8qfj7.mjs +2 -0
- package/dist/chunks/cli-0.1.14-3m63hy2a.mjs +3 -0
- package/dist/chunks/cli-0.1.14-3scecgzx.mjs +6 -0
- package/dist/chunks/{cli-0.1.12-g2s9mjr6.mjs → cli-0.1.14-3w7fbjhy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-9pq0gse0.mjs → cli-0.1.14-3xj419mp.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-yk12dgnx.mjs → cli-0.1.14-3yj4dkmn.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-3zj4s594.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-ae3e3ffp.mjs → cli-0.1.14-42sm5vzr.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-442a367x.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-jqrk975g.mjs → cli-0.1.14-473sgexj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-6238zg7k.mjs → cli-0.1.14-4mde8z7h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-9v01t95v.mjs → cli-0.1.14-4tmbgg29.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-4wdh3k7y.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-vxej5jdm.mjs → cli-0.1.14-59axynr8.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-qsh4sj4y.mjs → cli-0.1.14-5brvxst8.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-5e5kkjam.mjs +2 -0
- package/dist/chunks/cli-0.1.14-5rp4y3q2.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-0eznapyf.mjs → cli-0.1.14-5te1nbdc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-68wbwy40.mjs +4 -0
- package/dist/chunks/cli-0.1.14-6cjjzttb.mjs +3 -0
- package/dist/chunks/{cli-0.1.12-v8j9zstg.mjs → cli-0.1.14-71m91842.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-0kqx19vz.mjs → cli-0.1.14-71sp86jb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-d0es0fxd.mjs → cli-0.1.14-77ha4n58.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-a2qh6gjr.mjs → cli-0.1.14-7zjhrz42.mjs} +3 -3
- package/dist/chunks/{cli-0.1.12-r6f9sy54.mjs → cli-0.1.14-7zz7abpc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-86gckvrm.mjs +2 -0
- package/dist/chunks/cli-0.1.14-893g12wf.mjs +2 -0
- package/dist/chunks/cli-0.1.14-8fr10t94.mjs +17 -0
- package/dist/chunks/{cli-0.1.12-3ywnr2v1.mjs → cli-0.1.14-90zkq8jm.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-9b8kspnd.mjs +2 -0
- package/dist/chunks/cli-0.1.14-9evp0ewn.mjs +2 -0
- package/dist/chunks/cli-0.1.14-9gem156t.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-hsw67esw.mjs → cli-0.1.14-9kxzs20h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-4wwhk7dc.mjs → cli-0.1.14-9vc52dnj.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-a15xdexp.mjs +12 -0
- package/dist/chunks/cli-0.1.14-a6kwmqhz.mjs +16 -0
- package/dist/chunks/{cli-0.1.12-37ga9zc2.mjs → cli-0.1.14-a9ytrehs.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-7ehqw1dk.mjs → cli-0.1.14-ab0rxxvk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-mr41yjpw.mjs → cli-0.1.14-adz0gnzy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-ktpqrbjc.mjs → cli-0.1.14-aky5tegx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-vgbc3g9x.mjs → cli-0.1.14-akz49g5v.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-sgtpyf6y.mjs → cli-0.1.14-as1s0b0t.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-as9nq99n.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-5exp787z.mjs → cli-0.1.14-ba919tmj.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-bat0c779.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-v0510w04.mjs → cli-0.1.14-bgqm4vsk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-756ngehz.mjs → cli-0.1.14-c0bv9eha.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-f0x1y6nn.mjs → cli-0.1.14-c4v2kfdn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-xekep4qg.mjs → cli-0.1.14-canpypsb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-g3ycbjxk.mjs → cli-0.1.14-cdby401e.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-ch9c9c38.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-nv2m8kgk.mjs → cli-0.1.14-ckjcet41.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-c23pyffx.mjs → cli-0.1.14-cp2pada5.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-d1edbjh4.mjs +25 -0
- package/dist/chunks/{cli-0.1.12-z8eybrhz.mjs → cli-0.1.14-d483gd53.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-d8m01qtm.mjs → cli-0.1.14-d4zkffre.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-ps94e9y5.mjs → cli-0.1.14-dcgxqsyp.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-dntkrp1j.mjs +134 -0
- package/dist/chunks/cli-0.1.14-dq7jkw1n.mjs +2 -0
- package/dist/chunks/cli-0.1.14-dqads3y3.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-8znn9f50.mjs → cli-0.1.14-dt11hwkv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-kys514qx.mjs → cli-0.1.14-dw74ppax.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-dz2jvye2.mjs +2 -0
- package/dist/chunks/cli-0.1.14-e40hm9sd.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-2zqgfhrb.mjs → cli-0.1.14-edjtfw4q.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-efhhkgkx.mjs +2 -0
- package/dist/chunks/cli-0.1.14-eq0gbnpg.mjs +2 -0
- package/dist/chunks/cli-0.1.14-et8yewbf.mjs +2 -0
- package/dist/chunks/cli-0.1.14-fdpfr31f.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-mwp84gtr.mjs → cli-0.1.14-fhfj87ej.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-zs5rpqmb.mjs → cli-0.1.14-fmgz6tx2.mjs} +3 -3
- package/dist/chunks/{cli-0.1.12-ds2mn8zn.mjs → cli-0.1.14-fmmxw3gj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-5ye0t0xd.mjs → cli-0.1.14-fspxpmh7.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-h0d833vg.mjs → cli-0.1.14-ftjxb57b.mjs} +4 -4
- package/dist/chunks/{cli-0.1.12-wdmxm11z.mjs → cli-0.1.14-g5q2xqp3.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-gdm27acz.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-ytxphavm.mjs → cli-0.1.14-harz1d9d.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-qn20n18h.mjs → cli-0.1.14-heevc19y.mjs} +5 -5
- package/dist/chunks/{cli-0.1.12-04jw23rj.mjs → cli-0.1.14-hjktwgtk.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-hkaqyhx1.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-4syxz3pe.mjs → cli-0.1.14-hvfg45y0.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-04v3yab2.mjs → cli-0.1.14-hxvzvfr2.mjs} +3 -3
- package/dist/chunks/cli-0.1.14-j5sbzwhy.mjs +5045 -0
- package/dist/chunks/cli-0.1.14-ja2ctrem.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-m6jeef2z.mjs → cli-0.1.14-jbn4ywda.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-7xsa2bcp.mjs → cli-0.1.14-jf8019sb.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-jnfs73kb.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-4qedbzt3.mjs → cli-0.1.14-jpe9sxch.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-7mjpbm22.mjs → cli-0.1.14-k8nwm06m.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-j6hwb68p.mjs → cli-0.1.14-k9jcmxtd.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-ka0xhrv6.mjs +2 -0
- package/dist/chunks/cli-0.1.14-kcrsww4s.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-bh7jp3zk.mjs → cli-0.1.14-khtq9cgy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-j6gjfwh5.mjs → cli-0.1.14-kmsvd61a.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-zk49aaxv.mjs → cli-0.1.14-kn1f2x94.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-kpsh76mj.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-34gqc6yf.mjs → cli-0.1.14-kt6sq4nr.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-w0qbr98a.mjs → cli-0.1.14-ktz3cgwa.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-y04asmqh.mjs → cli-0.1.14-kv650aha.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-024a8zz7.mjs → cli-0.1.14-m75ce5ve.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-m7khgn2k.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-fqpxr3qb.mjs → cli-0.1.14-m7xchegb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-bhxgr018.mjs → cli-0.1.14-mgcmwvcn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-238c85zt.mjs → cli-0.1.14-mngn74ga.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-mx9yse7m.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-ng34ay3g.mjs → cli-0.1.14-nbvvdkk2.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-830kqdpq.mjs → cli-0.1.14-nkza93de.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-nmmtd1d6.mjs +2 -0
- package/dist/chunks/cli-0.1.14-nnr43nyg.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-xj3mv67x.mjs → cli-0.1.14-nprcbhwn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-86nmrm6g.mjs → cli-0.1.14-ntq8w1ss.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-73k5qd97.mjs → cli-0.1.14-nxphqjb4.mjs} +7 -10
- package/dist/chunks/{cli-0.1.12-8qvgy8xr.mjs → cli-0.1.14-nzsj259d.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-qe5zyvfh.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-1hv04bp7.mjs → cli-0.1.14-qn4ftczz.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-4sh0f4y1.mjs → cli-0.1.14-qyx55m6c.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-qzcceap6.mjs +20 -0
- package/dist/chunks/{cli-0.1.12-s0cwq66w.mjs → cli-0.1.14-r00mjm41.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-r46jh9af.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-c28bme4j.mjs → cli-0.1.14-r5qyt63x.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-erggrdth.mjs → cli-0.1.14-rc5yd94n.mjs} +3 -3
- package/dist/chunks/{cli-0.1.12-cxn1ke77.mjs → cli-0.1.14-rtstk94r.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-ra3sby5b.mjs → cli-0.1.14-s9m1y93w.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-sb7dm65b.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-bddm1g1s.mjs → cli-0.1.14-seq2fm2d.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-sn1rf71y.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-rwzav5h1.mjs → cli-0.1.14-stv1d0q3.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-svqkx41a.mjs +2 -0
- package/dist/chunks/cli-0.1.14-t3fga5je.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-a5h71tt8.mjs → cli-0.1.14-ta3w93yb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-t8712dbc.mjs → cli-0.1.14-tkb5t0xv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-7da43cy1.mjs → cli-0.1.14-tqexnkmz.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-41zq3gv6.mjs → cli-0.1.14-tsth8deg.mjs} +1 -1
- package/dist/chunks/cli-0.1.14-tyv29sz9.mjs +2 -0
- package/dist/chunks/cli-0.1.14-v2acyy7r.mjs +4 -0
- package/dist/chunks/{cli-0.1.12-9gs0g8yb.mjs → cli-0.1.14-v9q1cxjy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-c47ape20.mjs → cli-0.1.14-vp1kn532.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-w3rwfr1d.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-tyt09z73.mjs → cli-0.1.14-w6nzk5dc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-w8efvbh6.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-awb2yac7.mjs → cli-0.1.14-we6s7jfg.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-bjzb0sjt.mjs → cli-0.1.14-wgatq2fj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-k2164g7e.mjs → cli-0.1.14-whe4bxfr.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-wwehdfwx.mjs +9 -0
- package/dist/chunks/{cli-0.1.12-0xzdygm2.mjs → cli-0.1.14-wymtdw5f.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-actnmgw5.mjs → cli-0.1.14-wz5yr49j.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-a2frnpdd.mjs → cli-0.1.14-x88ypr2r.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-xp6rc33g.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-6ddq5n4e.mjs → cli-0.1.14-y2wxptpk.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-y55hrwdp.mjs +3 -0
- package/dist/chunks/{cli-0.1.12-wcdh3m4s.mjs → cli-0.1.14-y56629hj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-g728hcdr.mjs → cli-0.1.14-yagh75p5.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-ydm3fwx1.mjs +2 -0
- package/dist/chunks/cli-0.1.14-yfc7weqn.mjs +821 -0
- package/dist/chunks/{cli-0.1.12-qrx9nssg.mjs → cli-0.1.14-yphht6rx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-kzd4y6yq.mjs → cli-0.1.14-yxce1bdc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-yxq1tr3a.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-5pw10pf8.mjs → cli-0.1.14-z0ckw2hb.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-z8j2n955.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-2fajd44n.mjs → cli-0.1.14-zjqt3r89.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-af1r644n.mjs → cli-0.1.14-zq66y0mv.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-zrmretjp.mjs +4 -0
- package/dist/chunks/cli-0.1.14-zs4vmj7z.mjs +4 -0
- package/dist/chunks/client-0.1.14-3t6sfwha.mjs +1 -0
- package/dist/chunks/color-0.1.14-65rf0ap9.mjs +1 -0
- package/dist/chunks/compact-0.1.14-mx9ng433.mjs +3 -0
- package/dist/chunks/config-0.1.14-1v5v86ax.mjs +1 -0
- package/dist/chunks/config-0.1.14-76vavy7t.mjs +1 -0
- package/dist/chunks/context-0.1.14-hyykwj83.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.1.14-24qfm7b9.mjs +1 -0
- package/dist/chunks/conversation-0.1.14-mkc1cd5a.mjs +1 -0
- package/dist/chunks/{copy-0.1.12-w6tabpy0.mjs → copy-0.1.14-kp76nh7r.mjs} +1 -1
- package/dist/chunks/cost-0.1.14-3d4g5gqm.mjs +1 -0
- package/dist/chunks/createSession-0.1.14-8599rbgg.mjs +1 -0
- package/dist/chunks/desktop-0.1.14-bx4eky6b.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.14-8yam7kv4.mjs +1 -0
- package/dist/chunks/detection-0.1.14-vz5bqsc0.mjs +1 -0
- package/dist/chunks/diff-0.1.14-e4pm39ee.mjs +1 -0
- package/dist/chunks/doctor-0.1.14-22fc2q8y.mjs +1 -0
- package/dist/chunks/earlyInput-0.1.14-997vtdw4.mjs +1 -0
- package/dist/chunks/effort-0.1.14-d9xmff2t.mjs +8 -0
- package/dist/chunks/environmentSelection-0.1.14-fn5p85z5.mjs +1 -0
- package/dist/chunks/environments-0.1.14-7napbg6g.mjs +1 -0
- package/dist/chunks/exit-0.1.14-v8j7rsfw.mjs +1 -0
- package/dist/chunks/export-0.1.14-qpt72paa.mjs +2 -0
- package/dist/chunks/extra-usage-0.1.14-tmwgn4dh.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.14-b2pdph8q.mjs +1 -0
- package/dist/chunks/fast-0.1.14-q1tyk3k8.mjs +1 -0
- package/dist/chunks/feedback-0.1.14-qhk5ek0b.mjs +14 -0
- package/dist/chunks/{firstPartyEventLogger-0.1.12-95kzm3md.mjs → firstPartyEventLogger-0.1.14-78y09nr6.mjs} +1 -1
- package/dist/chunks/git-0.1.14-zvsa13gk.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.1.14-r30t00rx.mjs +1 -0
- package/dist/chunks/{growthbook-0.1.12-4phnr6b3.mjs → growthbook-0.1.14-dcdeqgyq.mjs} +1 -1
- package/dist/chunks/{heapdump-0.1.12-m49qs4r7.mjs → heapdump-0.1.14-tj7w79dt.mjs} +1 -1
- package/dist/chunks/help-0.1.14-gk9s0stg.mjs +1 -0
- package/dist/chunks/{hookChains-0.1.12-brq8x7f7.mjs → hookChains-0.1.14-wng6tzfd.mjs} +2 -2
- package/dist/chunks/hooks-0.1.14-jy9bt7s6.mjs +79 -0
- package/dist/chunks/hooks-0.1.14-ybdbkdfh.mjs +1 -0
- package/dist/chunks/{ide-0.1.12-553mazfs.mjs → ide-0.1.14-0ar60k4r.mjs} +1 -1
- package/dist/chunks/image-processor-napi-0.1.14-p1r3vkb0.mjs +1 -0
- package/dist/chunks/index-0.1.14-071xy8v4.mjs +1 -0
- package/dist/chunks/index-0.1.14-1mttyja2.mjs +2 -0
- package/dist/chunks/index-0.1.14-272zxs9n.mjs +1 -0
- package/dist/chunks/index-0.1.14-2v6wa4p4.mjs +1 -0
- package/dist/chunks/{index-0.1.12-3nbh75ta.mjs → index-0.1.14-2x59va64.mjs} +1 -1
- package/dist/chunks/index-0.1.14-3m7vrt91.mjs +1 -0
- package/dist/chunks/index-0.1.14-4hv4f8g9.mjs +1 -0
- package/dist/chunks/index-0.1.14-8v5xwttx.mjs +10 -0
- package/dist/chunks/index-0.1.14-ac13h1t1.mjs +1 -0
- package/dist/chunks/index-0.1.14-dmbjzapt.mjs +2 -0
- package/dist/chunks/index-0.1.14-g5kkm9ng.mjs +1 -0
- package/dist/chunks/index-0.1.14-h8gc6ph5.mjs +1 -0
- package/dist/chunks/index-0.1.14-hqphn8m5.mjs +5 -0
- package/dist/chunks/index-0.1.14-ksa4vdak.mjs +9 -0
- package/dist/chunks/index-0.1.14-mzhk0gvs.mjs +1 -0
- package/dist/chunks/index-0.1.14-qrykb444.mjs +9 -0
- package/dist/chunks/index-0.1.14-qvap58wt.mjs +1 -0
- package/dist/chunks/index-0.1.14-vygpnv88.mjs +1 -0
- package/dist/chunks/index-0.1.14-wjc5jkvz.mjs +1 -0
- package/dist/chunks/{index-0.1.12-rhj8dsvk.mjs → index-0.1.14-y3aj57xa.mjs} +1 -1
- package/dist/chunks/index-0.1.14-yjw9017n.mjs +1 -0
- package/dist/chunks/index-0.1.14-zgwbnfqh.mjs +1 -0
- package/dist/chunks/initReplBridge-0.1.14-qe820gff.mjs +1 -0
- package/dist/chunks/ink-0.1.14-kxs7ygns.mjs +1 -0
- package/dist/chunks/{insights-0.1.12-93mz1f1d.mjs → insights-0.1.14-9n58d9t8.mjs} +3 -3
- package/dist/chunks/install-0.1.14-1zyjez10.mjs +1 -0
- package/dist/chunks/{install-github-app-0.1.12-qd8g81v4.mjs → install-github-app-0.1.14-kmetkgdq.mjs} +1 -1
- package/dist/chunks/install-slack-app-0.1.14-64534gsm.mjs +1 -0
- package/dist/chunks/instrumentation-0.1.14-fsgk97cp.mjs +12 -0
- package/dist/chunks/interactiveHelpers-0.1.14-ca4bp7gy.mjs +1 -0
- package/dist/chunks/keybindings-0.1.14-zk3nyh0h.mjs +2 -0
- package/dist/chunks/knowledge-0.1.14-f7w4damb.mjs +2 -0
- package/dist/chunks/loadAgentsDir-0.1.14-md40mt17.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.14-d998c7wf.mjs +1 -0
- package/dist/chunks/lsp-0.1.14-cks4jevz.mjs +1 -0
- package/dist/chunks/main-0.1.14-94wst05h.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.14-tvr9zhbp.mjs +1 -0
- package/dist/chunks/mcp-0.1.14-3tzc0agq.mjs +1 -0
- package/dist/chunks/{mcp-0.1.12-vm3tpth6.mjs → mcp-0.1.14-dmtc9tjr.mjs} +3 -3
- package/dist/chunks/mcp-0.1.14-tepbr987.mjs +4 -0
- package/dist/chunks/mcpServer-0.1.14-0mvs3bcw.mjs +1 -0
- package/dist/chunks/mcpb-0.1.14-ffa57420.mjs +1 -0
- package/dist/chunks/memory-0.1.14-cgx518q9.mjs +3 -0
- package/dist/chunks/{mobile-0.1.12-qdtxwz76.mjs → mobile-0.1.14-bwjnmpy0.mjs} +1 -1
- package/dist/chunks/model-0.1.14-rq2dkze7.mjs +2 -0
- package/dist/chunks/model-0.1.14-zg566cz0.mjs +1 -0
- package/dist/chunks/{oauth-0.1.12-3aky0v8n.mjs → oauth-0.1.14-gftadks2.mjs} +1 -1
- package/dist/chunks/{openaiShim-0.1.12-p458t1q6.mjs → openaiShim-0.1.14-jv6416m8.mjs} +2 -2
- package/dist/chunks/{output-style-0.1.12-cahkbh9x.mjs → output-style-0.1.14-v41ce6t5.mjs} +1 -1
- package/dist/chunks/package-WSP46L7M-0.1.14-xy3ej2c4.mjs +1 -0
- package/dist/chunks/parser-0.1.14-jr4b3as9.mjs +1 -0
- package/dist/chunks/passes-0.1.14-0jjh5wg5.mjs +1 -0
- package/dist/chunks/permissions-0.1.14-hh0d709r.mjs +3 -0
- package/dist/chunks/plan-0.1.14-kxb7xax2.mjs +1 -0
- package/dist/chunks/plist-0.1.14-ssqtjjq9.mjs +1 -0
- package/dist/chunks/plugin-0.1.14-01jhhdd3.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.1.14-zjwy126p.mjs +1 -0
- package/dist/chunks/{plugins-0.1.12-sm87b8fm.mjs → plugins-0.1.14-4tggkexv.mjs} +2 -2
- package/dist/chunks/{print-0.1.12-8mgqmx4k.mjs → print-0.1.14-m719w2yp.mjs} +10 -10
- package/dist/chunks/privacy-settings-0.1.14-2gv7gdy1.mjs +1 -0
- package/dist/chunks/{process-0.1.12-t401v84c.mjs → process-0.1.14-vgdgd7sq.mjs} +1 -1
- package/dist/chunks/processBashCommand-0.1.14-d3xsyk5f.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.1.14-7w1v93bg.mjs +9 -0
- package/dist/chunks/prompt-0.1.14-30e7kfkx.mjs +1 -0
- package/dist/chunks/prompt-0.1.14-brtd9j19.mjs +1 -0
- package/dist/chunks/prompts-0.1.14-bv9qxc0a.mjs +1 -0
- package/dist/chunks/provider-0.1.14-xs34vy3w.mjs +2 -0
- package/dist/chunks/providerProfiles-0.1.14-068kvwwx.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.14-2ftxh15k.mjs +1 -0
- package/dist/chunks/registry-0.1.14-ad3na7g6.mjs +1 -0
- package/dist/chunks/release-notes-0.1.14-b7e554an.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.14-3w9v6nw6.mjs +2 -0
- package/dist/chunks/remote-env-0.1.14-jyc0gkhb.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.1.14-8kt4ffzy.mjs +1 -0
- package/dist/chunks/remoteSession-0.1.14-ppejxt7n.mjs +1 -0
- package/dist/chunks/rename-0.1.14-tx9dpgk1.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.14-gsqgzdev.mjs +1 -0
- package/dist/chunks/resume-0.1.14-7sda36n0.mjs +2 -0
- package/dist/chunks/{rewind-0.1.12-707se5pz.mjs → rewind-0.1.14-zba66at0.mjs} +1 -1
- package/dist/chunks/sandbox-adapter-0.1.14-k97fyzcg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.1.14-jz6x02qp.mjs +1 -0
- package/dist/chunks/session-0.1.14-5qsfxmey.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.14-mgx78eqm.mjs +1 -0
- package/dist/chunks/sessionStorage-0.1.14-sz2medpp.mjs +1 -0
- package/dist/chunks/setup-0.1.14-f13rnmdg.mjs +5 -0
- package/dist/chunks/sinks-0.1.14-bkyqa9eq.mjs +1 -0
- package/dist/chunks/skills-0.1.14-1vvr60ph.mjs +1 -0
- package/dist/chunks/startupProfiler-0.1.14-sabjns03.mjs +1 -0
- package/dist/chunks/state-0.1.14-rj00ry6n.mjs +1 -0
- package/dist/chunks/{stats-0.1.12-5pj1c6sr.mjs → stats-0.1.14-rr3tpwqw.mjs} +1 -1
- package/dist/chunks/status-0.1.14-d4fcn5sn.mjs +1 -0
- package/dist/chunks/stickers-0.1.14-s9x2bdhp.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.14-spqyrvd7.mjs +1 -0
- package/dist/chunks/tasks-0.1.14-yje1cmy8.mjs +1 -0
- package/dist/chunks/teamHelpers-0.1.14-zv908fgk.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.1.14-natmxyx5.mjs +1 -0
- package/dist/chunks/teleport-0.1.14-np0wrxrm.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.14-dzsstmk7.mjs +1 -0
- package/dist/chunks/theme-0.1.14-202es8wd.mjs +1 -0
- package/dist/chunks/thinkback-0.1.14-k4krnzrn.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.14-nn1v84ja.mjs +1 -0
- package/dist/chunks/toolPool-0.1.14-4etecef4.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.14-q506jg4k.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.14-qq8dmccd.mjs +1 -0
- package/dist/chunks/{turndown.cjs-0.1.12-9525v010.mjs → turndown.cjs-0.1.14-nw2rtcyd.mjs} +1 -1
- package/dist/chunks/{ultrareviewCommand-0.1.12-d5c4096k.mjs → ultrareviewCommand-0.1.14-9twnt5bp.mjs} +1 -1
- package/dist/chunks/{update-0.1.12-hwx0e6fq.mjs → update-0.1.14-9dhep94r.mjs} +11 -11
- package/dist/chunks/upgrade-0.1.14-4nr1rdba.mjs +1 -0
- package/dist/chunks/{upstreamproxy-0.1.12-yhnqfcyb.mjs → upstreamproxy-0.1.14-sc0x4n7b.mjs} +1 -1
- package/dist/chunks/usage-0.1.14-sbaqxx8h.mjs +1 -0
- package/dist/chunks/util-0.1.14-vfg50acy.mjs +1 -0
- package/dist/chunks/utils-0.1.14-heqqycdx.mjs +1 -0
- package/dist/chunks/vim-0.1.14-z71303w7.mjs +1 -0
- package/dist/chunks/watcher-0.1.14-h1wk07kt.mjs +1 -0
- package/dist/chunks/{wiki-0.1.12-vecp82xq.mjs → wiki-0.1.14-s3exyf45.mjs} +1 -1
- package/dist/chunks/worktree-0.1.14-5486fw5t.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.14-xn1mf8hc.mjs +1 -0
- package/dist/chunks/{wrapper-0.1.12-bpewypaz.mjs → wrapper-0.1.14-a4mesaeh.mjs} +1 -1
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +5 -5
- package/package.json +2 -19
- package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +0 -1
- package/dist/chunks/App-0.1.12-t1g68ag4.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +0 -1
- package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +0 -1
- package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.12-tc4trc3y.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +0 -1
- package/dist/chunks/REPL-0.1.12-4750qvss.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +0 -1
- package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +0 -1
- package/dist/chunks/agents-0.1.12-1dz073e3.mjs +0 -3
- package/dist/chunks/api-0.1.12-e314x4g9.mjs +0 -1
- package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +0 -1
- package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +0 -1
- package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +0 -4
- package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +0 -1
- package/dist/chunks/cacache-0.1.12-mtaw8981.mjs +0 -1
- package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +0 -1
- package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +0 -1
- package/dist/chunks/chromeNativeHost-0.1.12-7e2jv2nr.mjs +0 -2
- package/dist/chunks/claude-for-chrome-mcp-0.1.12-2q97mema.mjs +0 -1
- package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +0 -1
- package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +0 -1
- package/dist/chunks/cli-0.1.12-0x3cd401.mjs +0 -2
- package/dist/chunks/cli-0.1.12-19as1myk.mjs +0 -2
- package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +0 -2
- package/dist/chunks/cli-0.1.12-242der7s.mjs +0 -5036
- package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +0 -2
- package/dist/chunks/cli-0.1.12-2sqxe53a.mjs +0 -2
- package/dist/chunks/cli-0.1.12-2v18rdhk.mjs +0 -2
- package/dist/chunks/cli-0.1.12-2yy1nw3s.mjs +0 -2
- package/dist/chunks/cli-0.1.12-37ezy1qg.mjs +0 -2
- package/dist/chunks/cli-0.1.12-3d2xpvk2.mjs +0 -2
- package/dist/chunks/cli-0.1.12-4gj8p030.mjs +0 -22
- package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +0 -2
- package/dist/chunks/cli-0.1.12-4ys47rex.mjs +0 -2
- package/dist/chunks/cli-0.1.12-52dbx2x6.mjs +0 -4
- package/dist/chunks/cli-0.1.12-5b3j1c9c.mjs +0 -2
- package/dist/chunks/cli-0.1.12-5k9mfnz0.mjs +0 -2
- package/dist/chunks/cli-0.1.12-5p9g1vcm.mjs +0 -2
- package/dist/chunks/cli-0.1.12-5qhkbp8w.mjs +0 -2
- package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +0 -16
- package/dist/chunks/cli-0.1.12-6rjh20wh.mjs +0 -2
- package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +0 -2
- package/dist/chunks/cli-0.1.12-6zryzryc.mjs +0 -2
- package/dist/chunks/cli-0.1.12-74tt2500.mjs +0 -2
- package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +0 -2
- package/dist/chunks/cli-0.1.12-817sd5bc.mjs +0 -6
- package/dist/chunks/cli-0.1.12-8qm558mj.mjs +0 -2
- package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +0 -2
- package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +0 -2
- package/dist/chunks/cli-0.1.12-b01yrner.mjs +0 -2
- package/dist/chunks/cli-0.1.12-baxk5jyy.mjs +0 -4
- package/dist/chunks/cli-0.1.12-bmtahtv7.mjs +0 -2
- package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +0 -2
- package/dist/chunks/cli-0.1.12-bnss4rxn.mjs +0 -833
- package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +0 -2
- package/dist/chunks/cli-0.1.12-dc4e6688.mjs +0 -2
- package/dist/chunks/cli-0.1.12-dqynn0at.mjs +0 -2
- package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +0 -8
- package/dist/chunks/cli-0.1.12-e262snmb.mjs +0 -3
- package/dist/chunks/cli-0.1.12-e4zeaahk.mjs +0 -2
- package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +0 -2
- package/dist/chunks/cli-0.1.12-g1yp7kdf.mjs +0 -2
- package/dist/chunks/cli-0.1.12-g4sdgt8h.mjs +0 -2
- package/dist/chunks/cli-0.1.12-g604mknq.mjs +0 -2
- package/dist/chunks/cli-0.1.12-g8mny195.mjs +0 -2
- package/dist/chunks/cli-0.1.12-h248m986.mjs +0 -2
- package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +0 -2
- package/dist/chunks/cli-0.1.12-jjza3gz9.mjs +0 -2
- package/dist/chunks/cli-0.1.12-kea0zcje.mjs +0 -2
- package/dist/chunks/cli-0.1.12-kg8gb6e3.mjs +0 -2
- package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +0 -2
- package/dist/chunks/cli-0.1.12-m3q5r7wd.mjs +0 -2
- package/dist/chunks/cli-0.1.12-mevh0dza.mjs +0 -2
- package/dist/chunks/cli-0.1.12-nfvtmt75.mjs +0 -2
- package/dist/chunks/cli-0.1.12-nnyca8nb.mjs +0 -2
- package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +0 -4
- package/dist/chunks/cli-0.1.12-pm5cwtxh.mjs +0 -2
- package/dist/chunks/cli-0.1.12-pnh4t8c3.mjs +0 -2
- package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +0 -3
- package/dist/chunks/cli-0.1.12-q8k1zvhb.mjs +0 -2
- package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +0 -2
- package/dist/chunks/cli-0.1.12-rqedb88a.mjs +0 -10
- package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +0 -4
- package/dist/chunks/cli-0.1.12-ryycx3v6.mjs +0 -2
- package/dist/chunks/cli-0.1.12-sd72y750.mjs +0 -12
- package/dist/chunks/cli-0.1.12-strz382t.mjs +0 -2
- package/dist/chunks/cli-0.1.12-sxxpysy8.mjs +0 -2
- package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +0 -2
- package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +0 -2
- package/dist/chunks/cli-0.1.12-taqfqnag.mjs +0 -4
- package/dist/chunks/cli-0.1.12-v79j5ced.mjs +0 -2
- package/dist/chunks/cli-0.1.12-vpnp7x5c.mjs +0 -100
- package/dist/chunks/cli-0.1.12-vwcas8f6.mjs +0 -2
- package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +0 -3
- package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +0 -134
- package/dist/chunks/cli-0.1.12-xanhpra7.mjs +0 -2
- package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +0 -2
- package/dist/chunks/cli-0.1.12-xfqkrd5x.mjs +0 -2
- package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +0 -2
- package/dist/chunks/cli-0.1.12-y9598sy3.mjs +0 -16
- package/dist/chunks/cli-0.1.12-ybm1kvwy.mjs +0 -4
- package/dist/chunks/cli-0.1.12-zwyec6tj.mjs +0 -2
- package/dist/chunks/client-0.1.12-f54egbjx.mjs +0 -1
- package/dist/chunks/color-0.1.12-jss6svg8.mjs +0 -1
- package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +0 -3
- package/dist/chunks/config-0.1.12-1pyte6wv.mjs +0 -1
- package/dist/chunks/config-0.1.12-ryxz4stj.mjs +0 -1
- package/dist/chunks/context-0.1.12-mnwn2xss.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +0 -1
- package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +0 -1
- package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +0 -1
- package/dist/chunks/createSession-0.1.12-117q0efg.mjs +0 -1
- package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +0 -1
- package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +0 -1
- package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +0 -1
- package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +0 -1
- package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +0 -1
- package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +0 -1
- package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +0 -1
- package/dist/chunks/export-0.1.12-s6ag6jke.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +0 -1
- package/dist/chunks/fast-0.1.12-9x69m50c.mjs +0 -1
- package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +0 -14
- package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +0 -1
- package/dist/chunks/help-0.1.12-f02ce11x.mjs +0 -1
- package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +0 -1
- package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +0 -79
- package/dist/chunks/image-processor-napi-0.1.12-3mrm0vts.mjs +0 -1
- package/dist/chunks/index-0.1.12-218arkqe.mjs +0 -9
- package/dist/chunks/index-0.1.12-2ykt90tn.mjs +0 -1
- package/dist/chunks/index-0.1.12-34ew4zjx.mjs +0 -1
- package/dist/chunks/index-0.1.12-41g5mvtk.mjs +0 -7
- package/dist/chunks/index-0.1.12-77szwkm6.mjs +0 -1
- package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +0 -1
- package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +0 -1
- package/dist/chunks/index-0.1.12-d5w1w05d.mjs +0 -1
- package/dist/chunks/index-0.1.12-d7j83tkh.mjs +0 -1
- package/dist/chunks/index-0.1.12-hvf65cbr.mjs +0 -1
- package/dist/chunks/index-0.1.12-m0e193t8.mjs +0 -1
- package/dist/chunks/index-0.1.12-nc3z95ph.mjs +0 -5
- package/dist/chunks/index-0.1.12-r92p75vh.mjs +0 -1
- package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +0 -1
- package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +0 -1
- package/dist/chunks/index-0.1.12-v53nbtdb.mjs +0 -2
- package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +0 -1
- package/dist/chunks/index-0.1.12-z0brwe1k.mjs +0 -2
- package/dist/chunks/index-0.1.12-zc2ayczg.mjs +0 -1
- package/dist/chunks/index-0.1.12-zqrp5tve.mjs +0 -9
- package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +0 -1
- package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +0 -1
- package/dist/chunks/install-0.1.12-11xkk6vf.mjs +0 -1
- package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +0 -1
- package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +0 -12
- package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +0 -1
- package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +0 -2
- package/dist/chunks/knowledge-0.1.12-1zq0qj6h.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +0 -1
- package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +0 -1
- package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +0 -1
- package/dist/chunks/main-0.1.12-47ck3kj2.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +0 -1
- package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +0 -1
- package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +0 -4
- package/dist/chunks/mcpServer-0.1.12-zwsas6ss.mjs +0 -1
- package/dist/chunks/mcpb-0.1.12-mcbd7ywh.mjs +0 -1
- package/dist/chunks/memory-0.1.12-7x2msczw.mjs +0 -3
- package/dist/chunks/model-0.1.12-15e9c8j0.mjs +0 -2
- package/dist/chunks/model-0.1.12-z2qjscwh.mjs +0 -1
- package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +0 -1
- package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +0 -1
- package/dist/chunks/passes-0.1.12-7vmawmvq.mjs +0 -1
- package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +0 -3
- package/dist/chunks/plan-0.1.12-waed49m8.mjs +0 -1
- package/dist/chunks/plist-0.1.12-65r770yt.mjs +0 -1
- package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +0 -1
- package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +0 -9
- package/dist/chunks/prompt-0.1.12-786vk11a.mjs +0 -1
- package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +0 -1
- package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +0 -1
- package/dist/chunks/provider-0.1.12-wrfpbx8a.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +0 -1
- package/dist/chunks/registry-0.1.12-btwd6z61.mjs +0 -1
- package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +0 -2
- package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.1.12-c0y46zw8.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +0 -1
- package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +0 -1
- package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +0 -2
- package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +0 -1
- package/dist/chunks/session-0.1.12-2xgt0x74.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +0 -1
- package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +0 -5
- package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +0 -1
- package/dist/chunks/skills-0.1.12-sh637gsv.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +0 -1
- package/dist/chunks/state-0.1.12-e374v6h8.mjs +0 -1
- package/dist/chunks/status-0.1.12-qphx08h4.mjs +0 -1
- package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +0 -1
- package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +0 -1
- package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +0 -1
- package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +0 -1
- package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +0 -1
- package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +0 -1
- package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +0 -1
- package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +0 -1
- package/dist/chunks/util-0.1.12-qdejkkj5.mjs +0 -1
- package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +0 -1
- package/dist/chunks/vim-0.1.12-z78k9k65.mjs +0 -1
- package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +0 -1
- package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +0 -1
- /package/dist/chunks/{cli-0.1.12-tvawkeks.mjs → cli-0.1.14-cahvg3jq.mjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{i as
|
|
1
|
+
import{Cd as R,Ed as d}from"./cli-0.1.14-khtq9cgy.mjs";import{$R as j,cS as c}from"./cli-0.1.14-zjqt3r89.mjs";import{Yea as C,cfa as h,wfa as K,zfa as D}from"./cli-0.1.14-2mzb5ath.mjs";import{bma as I,cma as J}from"./cli-0.1.14-qn4ftczz.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-0.1.14-vj6095mm.mjs"),{getOrganizationUUID:Z}=await import("./client-0.1.14-3t6sfwha.mjs"),{getOauthConfig:V}=await import("./oauth-0.1.14-gftadks2.mjs"),{getOAuthHeaders:P}=await import("./api-0.1.14-v09922m9.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-0.1.14-8yam7kv4.mjs"),{getDefaultBranch:_}=await import("./git-0.1.14-zvsa13gk.mjs"),{getMainLoopModel:M}=await import("./model-0.1.14-zg566cz0.mjs"),{default:T}=await import("./index-0.1.14-4hv4f8g9.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-0.1.14-8yam7kv4.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.1.14-vj6095mm.mjs"),{getOrganizationUUID:$}=await import("./client-0.1.14-3t6sfwha.mjs"),{getOauthConfig:Y}=await import("./oauth-0.1.14-gftadks2.mjs"),{getOAuthHeaders:z}=await import("./api-0.1.14-v09922m9.mjs"),{default:G}=await import("./index-0.1.14-4hv4f8g9.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.1.14-vj6095mm.mjs"),{getOrganizationUUID:$}=await import("./client-0.1.14-3t6sfwha.mjs"),{getOauthConfig:Y}=await import("./oauth-0.1.14-gftadks2.mjs"),{getOAuthHeaders:z}=await import("./api-0.1.14-v09922m9.mjs"),{default:G}=await import("./index-0.1.14-4hv4f8g9.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-0.1.14-vj6095mm.mjs"),{getOrganizationUUID:Y}=await import("./client-0.1.14-3t6sfwha.mjs"),{getOauthConfig:z}=await import("./oauth-0.1.14-gftadks2.mjs"),{getOAuthHeaders:G}=await import("./api-0.1.14-v09922m9.mjs"),{default:L}=await import("./index-0.1.14-4hv4f8g9.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
|
|
2
|
+
export{i as ud,r as vd,t as wd,o as xd,p as yd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{kb as U,lb as y}from"./cli-0.1.14-9kxzs20h.mjs";import{pY as K}from"./cli-0.1.14-e40hm9sd.mjs";import{J2 as _,N2 as $,S2 as H,y3 as f}from"./cli-0.1.14-a6kwmqhz.mjs";import{Gaa as G,U$ as Q,X$ as B,Z_ as N,_5 as W,d6 as P,j$ as g,oaa as A,r9 as J,s9 as X,x9 as b,yaa as Y,zaa as Z}from"./cli-0.1.14-2f7s5xbd.mjs";import{Xea as V,cfa as O}from"./cli-0.1.14-2mzb5ath.mjs";import{Iia as I,mla as L}from"./cli-0.1.14-r46jh9af.mjs";L();f();A();O();P();G();b();g();function i(j){return(k)=>({...k,...typeof j.permission_mode==="string"?{toolPermissionContext:{...k.toolPermissionContext,mode:X(j.permission_mode)}}:{},...typeof j.is_ultraplan_mode==="boolean"?{isUltraplanMode:j.is_ultraplan_mode}:{}})}function p({newState:j,oldState:k}){let R=k.toolPermissionContext.mode,D=j.toolPermissionContext.mode;if(R!==D){let q=J(R),z=J(D);if(q!==z){let F=z==="plan"&&j.isUltraplanMode&&!k.isUltraplanMode?!0:null;U({permission_mode:z,is_ultraplan_mode:F})}y(D)}if(j.mainLoopModel!==k.mainLoopModel&&j.mainLoopModel===null)N("userSettings",{model:void 0}),I(null),Z();if(j.mainLoopModel!==k.mainLoopModel&&j.mainLoopModel!==null)N("userSettings",{model:j.mainLoopModel}),I(j.mainLoopModel),Y(j.mainLoopModel);if(j.expandedView!==k.expandedView){let q=j.expandedView==="tasks",z=j.expandedView==="teammates";if(B().showExpandedTodos!==q||B().showSpinnerTree!==z)Q((F)=>({...F,showExpandedTodos:q,showSpinnerTree:z}))}if(j.verbose!==k.verbose&&B().verbose!==j.verbose){let q=j.verbose;Q((z)=>({...z,verbose:q}))}if(j.settings!==k.settings)try{if(_(),$(),H(),j.settings.env!==k.settings.env)K()}catch(q){W(V(q))}}
|
|
2
|
+
export{i as bb,p as cb};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
|
|
2
|
-
export{z as
|
|
2
|
+
export{z as Zla,A as _la,B as $la,C as ama,D as bma,F as cma,G as dma,H as ema};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{tea as L,xea as O}from"./cli-0.1.14-16jrehc2.mjs";import{bma as N}from"./cli-0.1.14-qn4ftczz.mjs";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
|
|
2
2
|
`,w++;continue}z+=K,w++}}function J(){if(!D)return;if(D=!1,F)process.stdin.removeListener("readable",F),F=null}function T(){J();let q=z.trim();return z="",q}function U(){return z.trim().length>0}function V(q){z=q}function W(){return D}var z="",D=!1,F=null;var Q=N(()=>{O()});
|
|
3
|
-
export{S as
|
|
3
|
+
export{S as gV,J as hV,T as iV,U as jV,V as kV,W as lV,Q as mV};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{y4 as as}from"./cli-0.1.14-3m63hy2a.mjs";import{Nla as Du,Ola as uu,Pla as os,Qla as Jc}from"./cli-0.1.14-wwehdfwx.mjs";import{Tla as Vi,Ula as mt,Vla as Ct,Wla as zn,Xla as Ee,Yla as pe}from"./cli-0.1.14-8fr10t94.mjs";import{$la as $,cma as ht}from"./cli-0.1.14-qn4ftczz.mjs";var Rn=$((xe)=>{Object.defineProperty(xe,"__esModule",{value:!0});xe.resolveHttpHandlerRuntimeConfig=xe.getHttpHandlerExtensionConfiguration=xe.isValidHostname=xe.HttpResponse=xe.HttpRequest=xe.Fields=xe.Field=void 0;var ze=pe();Object.defineProperty(xe,"Field",{enumerable:!0,get:function(){return ze.Field}});Object.defineProperty(xe,"Fields",{enumerable:!0,get:function(){return ze.Fields}});Object.defineProperty(xe,"HttpRequest",{enumerable:!0,get:function(){return ze.HttpRequest}});Object.defineProperty(xe,"HttpResponse",{enumerable:!0,get:function(){return ze.HttpResponse}});Object.defineProperty(xe,"isValidHostname",{enumerable:!0,get:function(){return ze.isValidHostname}});Object.defineProperty(xe,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return ze.getHttpHandlerExtensionConfiguration}});Object.defineProperty(xe,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return ze.resolveHttpHandlerRuntimeConfig}})});var Na=$((ma)=>{var da=Rn();function fa(e){return e}var Dn=(e)=>(t)=>async(i)=>{if(!da.HttpRequest.isInstance(i.request))return t(i);let{request:s}=i,{handlerProtocol:c=""}=e.requestHandler.metadata||{};if(c.indexOf("h2")>=0&&!s.headers[":authority"])delete s.headers.host,s.headers[":authority"]=s.hostname+(s.port?":"+s.port:"");else if(!s.headers.host){let o=s.hostname;if(s.port!=null)o+=`:${s.port}`;s.headers.host=o}return t(i)},Mn={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(Dn(e),Mn)}});ma.getHostHeaderPlugin=pa;ma.hostHeaderMiddleware=Dn;ma.hostHeaderMiddlewareOptions=Mn;ma.resolveHostHeaderConfig=fa});var Oa=$((xa)=>{var jn=()=>(e,t)=>async(i)=>{try{let s=await e(i),{clientName:c,commandName:o,logger:a,dynamoDbDocumentClientOptions:l={}}=t,{overrideInputFilterSensitiveLog:f,overrideOutputFilterSensitiveLog:m}=l,g=f??t.inputFilterSensitiveLog,b=m??t.outputFilterSensitiveLog,{$metadata:w,..._}=s.output;return a?.info?.({clientName:c,commandName:o,input:g(i.input),output:b(_),metadata:w}),s}catch(s){let{clientName:c,commandName:o,logger:a,dynamoDbDocumentClientOptions:l={}}=t,{overrideInputFilterSensitiveLog:f}=l,m=f??t.inputFilterSensitiveLog;throw a?.error?.({clientName:c,commandName:o,input:m(i.input),error:s,metadata:s.$metadata}),s}},Ln={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},wa=(e)=>({applyToStack:(t)=>{t.add(jn(),Ln)}});xa.getLoggerPlugin=wa;xa.loggerMiddleware=jn;xa.loggerMiddlewareOptions=Ln});var Hn=$((Pa)=>{var lt={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")},cr=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!cr)globalThis.awslambda=globalThis.awslambda||{};class Pt{static PROTECTED_KEYS=lt;isProtectedKey(e){return Object.values(lt).includes(e)}getRequestId(){return this.get(lt.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(lt.X_RAY_TRACE_ID)}getTenantId(){return this.get(lt.TENANT_ID)}}class $n extends Pt{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=t}run(e,t){return this.currentContext=e,t()}}class hr extends Pt{als;static async create(){let e=new hr,t=await import("node:async_hooks");return e.als=new t.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);let i=this.als.getStore();if(!i)throw Error("No context available");i[e]=t}run(e,t){return this.als.run(e,t)}}Pa.InvokeStore=void 0;(function(e){let t=null;async function i(s){if(!t)t=(async()=>{let o=s===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await hr.create():new $n;if(!cr&&globalThis.awslambda?.InvokeStore)return globalThis.awslambda.InvokeStore;else if(!cr&&globalThis.awslambda)return globalThis.awslambda.InvokeStore=o,o;else return o})();return t}e.getInstanceAsync=i,e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{if(t=null,globalThis.awslambda?.InvokeStore)delete globalThis.awslambda.InvokeStore;globalThis.awslambda={InvokeStore:void 0}}}:void 0})(Pa.InvokeStore||(Pa.InvokeStore={}));Pa.InvokeStoreBase=Pt});var Un=$((Se)=>{Object.defineProperty(Se,"__esModule",{value:!0});Se.resolveHttpHandlerRuntimeConfig=Se.getHttpHandlerExtensionConfiguration=Se.isValidHostname=Se.HttpResponse=Se.HttpRequest=Se.Fields=Se.Field=void 0;var qe=pe();Object.defineProperty(Se,"Field",{enumerable:!0,get:function(){return qe.Field}});Object.defineProperty(Se,"Fields",{enumerable:!0,get:function(){return qe.Fields}});Object.defineProperty(Se,"HttpRequest",{enumerable:!0,get:function(){return qe.HttpRequest}});Object.defineProperty(Se,"HttpResponse",{enumerable:!0,get:function(){return qe.HttpResponse}});Object.defineProperty(Se,"isValidHostname",{enumerable:!0,get:function(){return qe.isValidHostname}});Object.defineProperty(Se,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return qe.getHttpHandlerExtensionConfiguration}});Object.defineProperty(Se,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return qe.resolveHttpHandlerRuntimeConfig}})});var Vn=$((Fn)=>{Object.defineProperty(Fn,"__esModule",{value:!0});Fn.recursionDetectionMiddleware=void 0;var Ia=Hn(),Ra=Un(),dr="X-Amzn-Trace-Id",Da="AWS_LAMBDA_FUNCTION_NAME",Ma="_X_AMZN_TRACE_ID",ja=()=>(e)=>async(t)=>{let{request:i}=t;if(!Ra.HttpRequest.isInstance(i))return e(t);let s=Object.keys(i.headers??{}).find((g)=>g.toLowerCase()===dr.toLowerCase())??dr;if(i.headers.hasOwnProperty(s))return e(t);let c=process.env[Da],o=process.env[Ma],f=(await Ia.InvokeStore.getInstanceAsync())?.getXRayTraceId()??o,m=(g)=>typeof g==="string"&&g.length>0;if(m(c)&&m(f))i.headers[dr]=f;return e({...t,request:i})};Fn.recursionDetectionMiddleware=ja});var Ua=$((ft)=>{var dt=Vn(),La={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},$a=(e)=>({applyToStack:(t)=>{t.add(dt.recursionDetectionMiddleware(),La)}});ft.getRecursionDetectionPlugin=$a;Object.prototype.hasOwnProperty.call(dt,"__proto__")&&!Object.prototype.hasOwnProperty.call(ft,"__proto__")&&Object.defineProperty(ft,"__proto__",{enumerable:!0,value:dt.__proto__});Object.keys(dt).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(ft,e))ft[e]=dt[e]})});var qn=$((ye)=>{Object.defineProperty(ye,"__esModule",{value:!0});ye.EndpointError=ye.resolveEndpoint=ye.customEndpointFunctions=ye.isValidHostLabel=ye.isIpAddress=ye.decideEndpoint=ye.EndpointCache=ye.BinaryDecisionDiagram=void 0;var Me=zn();Object.defineProperty(ye,"BinaryDecisionDiagram",{enumerable:!0,get:function(){return Me.BinaryDecisionDiagram}});Object.defineProperty(ye,"EndpointCache",{enumerable:!0,get:function(){return Me.EndpointCache}});Object.defineProperty(ye,"decideEndpoint",{enumerable:!0,get:function(){return Me.decideEndpoint}});Object.defineProperty(ye,"isIpAddress",{enumerable:!0,get:function(){return Me.isIpAddress}});Object.defineProperty(ye,"isValidHostLabel",{enumerable:!0,get:function(){return Me.isValidHostLabel}});Object.defineProperty(ye,"customEndpointFunctions",{enumerable:!0,get:function(){return Me.customEndpointFunctions}});Object.defineProperty(ye,"resolveEndpoint",{enumerable:!0,get:function(){return Me.resolveEndpoint}});Object.defineProperty(ye,"EndpointError",{enumerable:!0,get:function(){return Me.EndpointError}})});var Xn=$((fr)=>{Object.defineProperty(fr,"__esModule",{value:!0});fr.parseUrl=void 0;var Ba=pe();Object.defineProperty(fr,"parseUrl",{enumerable:!0,get:function(){return Ba.parseUrl}})});var es=$((Ya)=>{var ve=qn(),za=Xn(),kn=(e,t=!1)=>{if(t){for(let i of e.split("."))if(!kn(i))return!1;return!0}if(!ve.isValidHostLabel(e))return!1;if(e.length<3||e.length>63)return!1;if(e!==e.toLowerCase())return!1;if(ve.isIpAddress(e))return!1;return!0},Gn=":",qa="/",Xa=(e)=>{let t=e.split(Gn);if(t.length<6)return null;let[i,s,c,o,a,...l]=t;if(i!=="arn"||s===""||c===""||l.join(Gn)==="")return null;let f=l.map((m)=>m.split(qa)).flat();return{partition:s,service:c,region:o,accountId:a,resourceId:f}},Ga=[{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)"}}}],ka="1.1",Wn={partitions:Ga,version:ka},Qn=Wn,Kn="",Yn=(e)=>{let{partitions:t}=Qn;for(let s of t){let{regions:c,outputs:o}=s;for(let[a,l]of Object.entries(c))if(a===e)return{...o,...l}}for(let s of t){let{regionRegex:c,outputs:o}=s;if(new RegExp(c).test(e))return{...o}}let i=t.find((s)=>s.id==="aws");if(!i)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...i.outputs}},Jn=(e,t="")=>{Qn=e,Kn=t},Wa=()=>{Jn(Wn,"")},Qa=()=>Kn,Zn={isVirtualHostableS3Bucket:kn,parseArn:Xa,partition:Yn};ve.customEndpointFunctions.aws=Zn;var Ka=(e)=>{if(typeof e.endpointProvider!=="function")throw Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:t}=e;if(t===void 0)e.endpoint=async()=>{return vn(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},vn=(e)=>za.parseUrl(e.url);Ya.EndpointError=ve.EndpointError;Ya.isIpAddress=ve.isIpAddress;Ya.resolveEndpoint=ve.resolveEndpoint;Ya.awsEndpointFunctions=Zn;Ya.getUserAgentPrefix=Qa;Ya.partition=Yn;Ya.resolveDefaultAwsRegionalEndpointsConfig=Ka;Ya.setPartitionInfo=Jn;Ya.toEndpointV1=vn;Ya.useDefaultPartitionInfo=Wa});var ts=$((_e)=>{Object.defineProperty(_e,"__esModule",{value:!0});_e.resolveHttpHandlerRuntimeConfig=_e.getHttpHandlerExtensionConfiguration=_e.isValidHostname=_e.HttpResponse=_e.HttpRequest=_e.Fields=_e.Field=void 0;var Xe=pe();Object.defineProperty(_e,"Field",{enumerable:!0,get:function(){return Xe.Field}});Object.defineProperty(_e,"Fields",{enumerable:!0,get:function(){return Xe.Fields}});Object.defineProperty(_e,"HttpRequest",{enumerable:!0,get:function(){return Xe.HttpRequest}});Object.defineProperty(_e,"HttpResponse",{enumerable:!0,get:function(){return Xe.HttpResponse}});Object.defineProperty(_e,"isValidHostname",{enumerable:!0,get:function(){return Xe.isValidHostname}});Object.defineProperty(_e,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return Xe.getHttpHandlerExtensionConfiguration}});Object.defineProperty(_e,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return Xe.resolveHttpHandlerRuntimeConfig}})});var hs=$((wu)=>{var cu=as(),lu=es(),hu=ts(),Te=os(),rs=uu(),us=void 0;function du(e){if(e===void 0)return!0;return typeof e==="string"&&e.length<=50}function fu(e){let t=cu.normalizeProvider(e.userAgentAppId??us),{customUserAgent:i}=e;return Object.assign(e,{customUserAgent:typeof i==="string"?[[i]]:i,userAgentAppId:async()=>{let s=await t();if(!du(s)){let c=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof s!=="string")c?.warn("userAgentAppId must be a string or undefined.");else if(s.length>50)c?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return s}})}var pu=/\d{12}\.ddb/;async function mu(e,t,i){if(i.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")Te.setFeature(e,"PROTOCOL_RPC_V2_CBOR","M");if(typeof t.retryStrategy==="function"){let o=await t.retryStrategy();if(typeof o.mode==="string")switch(o.mode){case rs.RETRY_MODES.ADAPTIVE:Te.setFeature(e,"RETRY_MODE_ADAPTIVE","F");break;case rs.RETRY_MODES.STANDARD:Te.setFeature(e,"RETRY_MODE_STANDARD","E");break}}if(typeof t.accountIdEndpointMode==="function"){let o=e.endpointV2;if(String(o?.url?.hostname).match(pu))Te.setFeature(e,"ACCOUNT_ID_ENDPOINT","O");switch(await t.accountIdEndpointMode?.()){case"disabled":Te.setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Te.setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Te.setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let c=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(c?.$source){let o=c;if(o.accountId)Te.setFeature(e,"RESOLVED_ACCOUNT_ID","T");for(let[a,l]of Object.entries(o.$source??{}))Te.setFeature(e,a,l)}}var ns="user-agent",pr="x-amz-user-agent",ss=" ",mr="/",gu=/[^!$%&'*+\-.^_`|~\w]/g,yu=/[^!$%&'*+\-.^_`|~\w#]/g,is="-",bu=1024;function Eu(e){let t="";for(let i in e){let s=e[i];if(t.length+s.length+1<=bu){if(t.length)t+=","+s;else t+=s;continue}break}return t}var cs=(e)=>(t,i)=>async(s)=>{let{request:c}=s;if(!hu.HttpRequest.isInstance(c))return t(s);let{headers:o}=c,a=i?.userAgent?.map(At)||[],l=(await e.defaultUserAgentProvider()).map(At);await mu(i,e,s);let f=i;l.push(`m/${Eu(Object.assign({},i.__smithy_context?.features,f.__aws_sdk_context?.features))}`);let m=e?.customUserAgent?.map(At)||[],g=await e.userAgentAppId();if(g)l.push(At(["app",`${g}`]));let b=lu.getUserAgentPrefix(),w=(b?[b]:[]).concat([...l,...a,...m]).join(ss),_=[...l.filter((T)=>T.startsWith("aws-sdk-")),...m].join(ss);if(e.runtime!=="browser"){if(_)o[pr]=o[pr]?`${o[ns]} ${_}`:_;o[ns]=w}else o[pr]=w;return t({...s,request:c})},At=(e)=>{let t=e[0].split(mr).map((a)=>a.replace(gu,is)).join(mr),i=e[1]?.replace(yu,is),s=t.indexOf(mr),c=t.substring(0,s),o=t.substring(s+1);if(c==="api")o=o.toLowerCase();return[c,o,i].filter((a)=>a&&a.length>0).reduce((a,l,f)=>{switch(f){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},ls={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Nu=(e)=>({applyToStack:(t)=>{t.add(cs(e),ls)}});wu.DEFAULT_UA_APP_ID=us;wu.getUserAgentMiddlewareOptions=ls;wu.getUserAgentPlugin=Nu;wu.resolveUserAgentConfig=fu;wu.userAgentMiddleware=cs});var gr=$((J)=>{Object.defineProperty(J,"__esModule",{value:!0});J.getRegionInfo=J.resolveRegionConfig=J.NODE_REGION_CONFIG_FILE_OPTIONS=J.NODE_REGION_CONFIG_OPTIONS=J.REGION_INI_NAME=J.REGION_ENV_NAME=J.resolveEndpointsConfig=J.resolveCustomEndpointsConfig=J.nodeFipsConfigSelectors=J.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=J.DEFAULT_USE_FIPS_ENDPOINT=J.CONFIG_USE_FIPS_ENDPOINT=J.ENV_USE_FIPS_ENDPOINT=J.nodeDualstackConfigSelectors=J.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=J.DEFAULT_USE_DUALSTACK_ENDPOINT=J.CONFIG_USE_DUALSTACK_ENDPOINT=J.ENV_USE_DUALSTACK_ENDPOINT=void 0;var te=Ct();Object.defineProperty(J,"ENV_USE_DUALSTACK_ENDPOINT",{enumerable:!0,get:function(){return te.ENV_USE_DUALSTACK_ENDPOINT}});Object.defineProperty(J,"CONFIG_USE_DUALSTACK_ENDPOINT",{enumerable:!0,get:function(){return te.CONFIG_USE_DUALSTACK_ENDPOINT}});Object.defineProperty(J,"DEFAULT_USE_DUALSTACK_ENDPOINT",{enumerable:!0,get:function(){return te.DEFAULT_USE_DUALSTACK_ENDPOINT}});Object.defineProperty(J,"NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS",{enumerable:!0,get:function(){return te.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS}});Object.defineProperty(J,"nodeDualstackConfigSelectors",{enumerable:!0,get:function(){return te.nodeDualstackConfigSelectors}});Object.defineProperty(J,"ENV_USE_FIPS_ENDPOINT",{enumerable:!0,get:function(){return te.ENV_USE_FIPS_ENDPOINT}});Object.defineProperty(J,"CONFIG_USE_FIPS_ENDPOINT",{enumerable:!0,get:function(){return te.CONFIG_USE_FIPS_ENDPOINT}});Object.defineProperty(J,"DEFAULT_USE_FIPS_ENDPOINT",{enumerable:!0,get:function(){return te.DEFAULT_USE_FIPS_ENDPOINT}});Object.defineProperty(J,"NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS",{enumerable:!0,get:function(){return te.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS}});Object.defineProperty(J,"nodeFipsConfigSelectors",{enumerable:!0,get:function(){return te.nodeFipsConfigSelectors}});Object.defineProperty(J,"resolveCustomEndpointsConfig",{enumerable:!0,get:function(){return te.resolveCustomEndpointsConfig}});Object.defineProperty(J,"resolveEndpointsConfig",{enumerable:!0,get:function(){return te.resolveEndpointsConfig}});Object.defineProperty(J,"REGION_ENV_NAME",{enumerable:!0,get:function(){return te.REGION_ENV_NAME}});Object.defineProperty(J,"REGION_INI_NAME",{enumerable:!0,get:function(){return te.REGION_INI_NAME}});Object.defineProperty(J,"NODE_REGION_CONFIG_OPTIONS",{enumerable:!0,get:function(){return te.NODE_REGION_CONFIG_OPTIONS}});Object.defineProperty(J,"NODE_REGION_CONFIG_FILE_OPTIONS",{enumerable:!0,get:function(){return te.NODE_REGION_CONFIG_FILE_OPTIONS}});Object.defineProperty(J,"resolveRegionConfig",{enumerable:!0,get:function(){return te.resolveRegionConfig}});Object.defineProperty(J,"getRegionInfo",{enumerable:!0,get:function(){return te.getRegionInfo}})});var Cu=$((pt)=>{Object.defineProperty(pt,"__esModule",{value:!0});pt.getContentLengthPlugin=pt.contentLengthMiddlewareOptions=pt.contentLengthMiddleware=void 0;var yr=pe();Object.defineProperty(pt,"contentLengthMiddleware",{enumerable:!0,get:function(){return yr.contentLengthMiddleware}});Object.defineProperty(pt,"contentLengthMiddlewareOptions",{enumerable:!0,get:function(){return yr.contentLengthMiddlewareOptions}});Object.defineProperty(pt,"getContentLengthPlugin",{enumerable:!0,get:function(){return yr.getContentLengthPlugin}})});var Ru=$((be)=>{Object.defineProperty(be,"__esModule",{value:!0});be.resolveEndpointRequiredConfig=be.resolveEndpointConfig=be.getEndpointPlugin=be.endpointMiddlewareOptions=be.endpointMiddleware=be.toEndpointV1=be.resolveParams=be.getEndpointFromInstructions=void 0;var je=zn();Object.defineProperty(be,"getEndpointFromInstructions",{enumerable:!0,get:function(){return je.getEndpointFromInstructions}});Object.defineProperty(be,"resolveParams",{enumerable:!0,get:function(){return je.resolveParams}});Object.defineProperty(be,"toEndpointV1",{enumerable:!0,get:function(){return je.toEndpointV1}});Object.defineProperty(be,"endpointMiddleware",{enumerable:!0,get:function(){return je.endpointMiddleware}});Object.defineProperty(be,"endpointMiddlewareOptions",{enumerable:!0,get:function(){return je.endpointMiddlewareOptions}});Object.defineProperty(be,"getEndpointPlugin",{enumerable:!0,get:function(){return je.getEndpointPlugin}});Object.defineProperty(be,"resolveEndpointConfig",{enumerable:!0,get:function(){return je.resolveEndpointConfig}});Object.defineProperty(be,"resolveEndpointRequiredConfig",{enumerable:!0,get:function(){return je.resolveEndpointRequiredConfig}})});var ju=$((Z)=>{Object.defineProperty(Z,"__esModule",{value:!0});Z.retryMiddlewareOptions=Z.retryMiddleware=Z.resolveRetryConfig=Z.omitRetryHeadersMiddlewareOptions=Z.omitRetryHeadersMiddleware=Z.getRetryPlugin=Z.getRetryAfterHint=Z.getOmitRetryHeadersPlugin=Z.defaultRetryDecider=Z.defaultDelayDecider=Z.NODE_RETRY_MODE_CONFIG_OPTIONS=Z.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Z.ENV_RETRY_MODE=Z.ENV_MAX_ATTEMPTS=Z.CONFIG_RETRY_MODE=Z.CONFIG_MAX_ATTEMPTS=Z.StandardRetryStrategy=Z.AdaptiveRetryStrategy=void 0;var re=Du();Object.defineProperty(Z,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return re.DeprecatedAdaptiveRetryStrategy}});Object.defineProperty(Z,"StandardRetryStrategy",{enumerable:!0,get:function(){return re.DeprecatedStandardRetryStrategy}});Object.defineProperty(Z,"CONFIG_MAX_ATTEMPTS",{enumerable:!0,get:function(){return re.CONFIG_MAX_ATTEMPTS}});Object.defineProperty(Z,"CONFIG_RETRY_MODE",{enumerable:!0,get:function(){return re.CONFIG_RETRY_MODE}});Object.defineProperty(Z,"ENV_MAX_ATTEMPTS",{enumerable:!0,get:function(){return re.ENV_MAX_ATTEMPTS}});Object.defineProperty(Z,"ENV_RETRY_MODE",{enumerable:!0,get:function(){return re.ENV_RETRY_MODE}});Object.defineProperty(Z,"NODE_MAX_ATTEMPT_CONFIG_OPTIONS",{enumerable:!0,get:function(){return re.NODE_MAX_ATTEMPT_CONFIG_OPTIONS}});Object.defineProperty(Z,"NODE_RETRY_MODE_CONFIG_OPTIONS",{enumerable:!0,get:function(){return re.NODE_RETRY_MODE_CONFIG_OPTIONS}});Object.defineProperty(Z,"defaultDelayDecider",{enumerable:!0,get:function(){return re.defaultDelayDecider}});Object.defineProperty(Z,"defaultRetryDecider",{enumerable:!0,get:function(){return re.defaultRetryDecider}});Object.defineProperty(Z,"getOmitRetryHeadersPlugin",{enumerable:!0,get:function(){return re.getOmitRetryHeadersPlugin}});Object.defineProperty(Z,"getRetryAfterHint",{enumerable:!0,get:function(){return re.getRetryAfterHint}});Object.defineProperty(Z,"getRetryPlugin",{enumerable:!0,get:function(){return re.getRetryPlugin}});Object.defineProperty(Z,"omitRetryHeadersMiddleware",{enumerable:!0,get:function(){return re.omitRetryHeadersMiddleware}});Object.defineProperty(Z,"omitRetryHeadersMiddlewareOptions",{enumerable:!0,get:function(){return re.omitRetryHeadersMiddlewareOptions}});Object.defineProperty(Z,"resolveRetryConfig",{enumerable:!0,get:function(){return re.resolveRetryConfig}});Object.defineProperty(Z,"retryMiddleware",{enumerable:!0,get:function(){return re.retryMiddleware}});Object.defineProperty(Z,"retryMiddlewareOptions",{enumerable:!0,get:function(){return re.retryMiddlewareOptions}})});var Hu=$((A)=>{Object.defineProperty(A,"__esModule",{value:!0});A.createAggregatedClient=A.convertMap=A._json=A.ServiceException=A.SENSITIVE_STRING=A.NoOpLogger=A.Command=A.Client=A.strictParseShort=A.strictParseLong=A.strictParseInt32=A.strictParseInt=A.strictParseFloat32=A.strictParseFloat=A.strictParseDouble=A.strictParseByte=A.splitHeader=A.splitEvery=A.quoteHeader=A.parseRfc7231DateTime=A.parseRfc3339DateTimeWithOffset=A.parseRfc3339DateTime=A.parseEpochTimestamp=A.parseBoolean=A.nv=A.logger=A.limitedParseFloat32=A.limitedParseFloat=A.limitedParseDouble=A.handleFloat=A.generateIdempotencyToken=A.expectUnion=A.expectString=A.expectShort=A.expectObject=A.expectNumber=A.expectNonNull=A.expectLong=A.expectInt32=A.expectInt=A.expectFloat32=A.expectByte=A.expectBoolean=A.dateToUtcString=A.copyDocumentWithTransform=A._parseRfc7231DateTime=A._parseRfc3339DateTimeWithOffset=A._parseEpochTimestamp=A.NumericValue=A.LazyJsonString=void 0;A.resolvedPath=A.extendedEncodeURIComponent=A.collectBody=A.withBaseException=A.throwDefaultError=A.take=A.serializeFloat=A.serializeDateTime=A.resolveDefaultRuntimeConfig=A.map=A.loadConfigsForDefaultMode=A.isSerializableHeaderValue=A.getValueFromTextNode=A.getDefaultExtensionConfiguration=A.getDefaultClientConfiguration=A.getArrayIfSingleItem=A.emitWarningIfUnsupportedVersion=A.decorateServiceException=void 0;var H=Ee();Object.defineProperty(A,"LazyJsonString",{enumerable:!0,get:function(){return H.LazyJsonString}});Object.defineProperty(A,"NumericValue",{enumerable:!0,get:function(){return H.NumericValue}});Object.defineProperty(A,"_parseEpochTimestamp",{enumerable:!0,get:function(){return H._parseEpochTimestamp}});Object.defineProperty(A,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return H._parseRfc3339DateTimeWithOffset}});Object.defineProperty(A,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return H._parseRfc7231DateTime}});Object.defineProperty(A,"copyDocumentWithTransform",{enumerable:!0,get:function(){return H.copyDocumentWithTransform}});Object.defineProperty(A,"dateToUtcString",{enumerable:!0,get:function(){return H.dateToUtcString}});Object.defineProperty(A,"expectBoolean",{enumerable:!0,get:function(){return H.expectBoolean}});Object.defineProperty(A,"expectByte",{enumerable:!0,get:function(){return H.expectByte}});Object.defineProperty(A,"expectFloat32",{enumerable:!0,get:function(){return H.expectFloat32}});Object.defineProperty(A,"expectInt",{enumerable:!0,get:function(){return H.expectInt}});Object.defineProperty(A,"expectInt32",{enumerable:!0,get:function(){return H.expectInt32}});Object.defineProperty(A,"expectLong",{enumerable:!0,get:function(){return H.expectLong}});Object.defineProperty(A,"expectNonNull",{enumerable:!0,get:function(){return H.expectNonNull}});Object.defineProperty(A,"expectNumber",{enumerable:!0,get:function(){return H.expectNumber}});Object.defineProperty(A,"expectObject",{enumerable:!0,get:function(){return H.expectObject}});Object.defineProperty(A,"expectShort",{enumerable:!0,get:function(){return H.expectShort}});Object.defineProperty(A,"expectString",{enumerable:!0,get:function(){return H.expectString}});Object.defineProperty(A,"expectUnion",{enumerable:!0,get:function(){return H.expectUnion}});Object.defineProperty(A,"generateIdempotencyToken",{enumerable:!0,get:function(){return H.generateIdempotencyToken}});Object.defineProperty(A,"handleFloat",{enumerable:!0,get:function(){return H.handleFloat}});Object.defineProperty(A,"limitedParseDouble",{enumerable:!0,get:function(){return H.limitedParseDouble}});Object.defineProperty(A,"limitedParseFloat",{enumerable:!0,get:function(){return H.limitedParseFloat}});Object.defineProperty(A,"limitedParseFloat32",{enumerable:!0,get:function(){return H.limitedParseFloat32}});Object.defineProperty(A,"logger",{enumerable:!0,get:function(){return H.logger}});Object.defineProperty(A,"nv",{enumerable:!0,get:function(){return H.nv}});Object.defineProperty(A,"parseBoolean",{enumerable:!0,get:function(){return H.parseBoolean}});Object.defineProperty(A,"parseEpochTimestamp",{enumerable:!0,get:function(){return H.parseEpochTimestamp}});Object.defineProperty(A,"parseRfc3339DateTime",{enumerable:!0,get:function(){return H.parseRfc3339DateTime}});Object.defineProperty(A,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return H.parseRfc3339DateTimeWithOffset}});Object.defineProperty(A,"parseRfc7231DateTime",{enumerable:!0,get:function(){return H.parseRfc7231DateTime}});Object.defineProperty(A,"quoteHeader",{enumerable:!0,get:function(){return H.quoteHeader}});Object.defineProperty(A,"splitEvery",{enumerable:!0,get:function(){return H.splitEvery}});Object.defineProperty(A,"splitHeader",{enumerable:!0,get:function(){return H.splitHeader}});Object.defineProperty(A,"strictParseByte",{enumerable:!0,get:function(){return H.strictParseByte}});Object.defineProperty(A,"strictParseDouble",{enumerable:!0,get:function(){return H.strictParseDouble}});Object.defineProperty(A,"strictParseFloat",{enumerable:!0,get:function(){return H.strictParseFloat}});Object.defineProperty(A,"strictParseFloat32",{enumerable:!0,get:function(){return H.strictParseFloat32}});Object.defineProperty(A,"strictParseInt",{enumerable:!0,get:function(){return H.strictParseInt}});Object.defineProperty(A,"strictParseInt32",{enumerable:!0,get:function(){return H.strictParseInt32}});Object.defineProperty(A,"strictParseLong",{enumerable:!0,get:function(){return H.strictParseLong}});Object.defineProperty(A,"strictParseShort",{enumerable:!0,get:function(){return H.strictParseShort}});var W=mt();Object.defineProperty(A,"Client",{enumerable:!0,get:function(){return W.Client}});Object.defineProperty(A,"Command",{enumerable:!0,get:function(){return W.Command}});Object.defineProperty(A,"NoOpLogger",{enumerable:!0,get:function(){return W.NoOpLogger}});Object.defineProperty(A,"SENSITIVE_STRING",{enumerable:!0,get:function(){return W.SENSITIVE_STRING}});Object.defineProperty(A,"ServiceException",{enumerable:!0,get:function(){return W.ServiceException}});Object.defineProperty(A,"_json",{enumerable:!0,get:function(){return W._json}});Object.defineProperty(A,"convertMap",{enumerable:!0,get:function(){return W.convertMap}});Object.defineProperty(A,"createAggregatedClient",{enumerable:!0,get:function(){return W.createAggregatedClient}});Object.defineProperty(A,"decorateServiceException",{enumerable:!0,get:function(){return W.decorateServiceException}});Object.defineProperty(A,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return W.emitWarningIfUnsupportedVersion}});Object.defineProperty(A,"getArrayIfSingleItem",{enumerable:!0,get:function(){return W.getArrayIfSingleItem}});Object.defineProperty(A,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return W.getDefaultClientConfiguration}});Object.defineProperty(A,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return W.getDefaultExtensionConfiguration}});Object.defineProperty(A,"getValueFromTextNode",{enumerable:!0,get:function(){return W.getValueFromTextNode}});Object.defineProperty(A,"isSerializableHeaderValue",{enumerable:!0,get:function(){return W.isSerializableHeaderValue}});Object.defineProperty(A,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return W.loadConfigsForDefaultMode}});Object.defineProperty(A,"map",{enumerable:!0,get:function(){return W.map}});Object.defineProperty(A,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return W.resolveDefaultRuntimeConfig}});Object.defineProperty(A,"serializeDateTime",{enumerable:!0,get:function(){return W.serializeDateTime}});Object.defineProperty(A,"serializeFloat",{enumerable:!0,get:function(){return W.serializeFloat}});Object.defineProperty(A,"take",{enumerable:!0,get:function(){return W.take}});Object.defineProperty(A,"throwDefaultError",{enumerable:!0,get:function(){return W.throwDefaultError}});Object.defineProperty(A,"withBaseException",{enumerable:!0,get:function(){return W.withBaseException}});var br=pe();Object.defineProperty(A,"collectBody",{enumerable:!0,get:function(){return br.collectBody}});Object.defineProperty(A,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return br.extendedEncodeURIComponent}});Object.defineProperty(A,"resolvedPath",{enumerable:!0,get:function(){return br.resolvedPath}})});var ds=$((Er)=>{Object.defineProperty(Er,"__esModule",{value:!0});Er.loadConfig=void 0;var Uu=Ct();Object.defineProperty(Er,"loadConfig",{enumerable:!0,get:function(){return Uu.loadConfig}})});var ms=$((ps)=>{Object.defineProperty(ps,"__esModule",{value:!0});ps.warning=void 0;ps.stsRegionDefaultResolver=Vu;var fs=gr(),Bu=ds();function Vu(e={}){return(0,Bu.loadConfig)({...fs.NODE_REGION_CONFIG_OPTIONS,async default(){if(!ps.warning.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"}},{...fs.NODE_REGION_CONFIG_FILE_OPTIONS,...e})}ps.warning={silence:!1}});var Zu=$((gt)=>{var It=ms(),yt=gr(),qu=(e)=>{return{setRegion(t){e.region=t},region(){return e.region}}},Xu=(e)=>{return{region:e.region()}};gt.NODE_REGION_CONFIG_FILE_OPTIONS=yt.NODE_REGION_CONFIG_FILE_OPTIONS;gt.NODE_REGION_CONFIG_OPTIONS=yt.NODE_REGION_CONFIG_OPTIONS;gt.REGION_ENV_NAME=yt.REGION_ENV_NAME;gt.REGION_INI_NAME=yt.REGION_INI_NAME;gt.resolveRegionConfig=yt.resolveRegionConfig;gt.getAwsRegionExtensionConfiguration=qu;gt.resolveAwsRegionExtensionConfiguration=Xu;Object.prototype.hasOwnProperty.call(It,"__proto__")&&!Object.prototype.hasOwnProperty.call(gt,"__proto__")&&Object.defineProperty(gt,"__proto__",{enumerable:!0,value:It.__proto__});Object.keys(It).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(gt,e))gt[e]=It[e]})});var ec=$((Oe)=>{Object.defineProperty(Oe,"__esModule",{value:!0});Oe.resolveHttpHandlerRuntimeConfig=Oe.getHttpHandlerExtensionConfiguration=Oe.isValidHostname=Oe.HttpResponse=Oe.HttpRequest=Oe.Fields=Oe.Field=void 0;var Ge=pe();Object.defineProperty(Oe,"Field",{enumerable:!0,get:function(){return Ge.Field}});Object.defineProperty(Oe,"Fields",{enumerable:!0,get:function(){return Ge.Fields}});Object.defineProperty(Oe,"HttpRequest",{enumerable:!0,get:function(){return Ge.HttpRequest}});Object.defineProperty(Oe,"HttpResponse",{enumerable:!0,get:function(){return Ge.HttpResponse}});Object.defineProperty(Oe,"isValidHostname",{enumerable:!0,get:function(){return Ge.isValidHostname}});Object.defineProperty(Oe,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return Ge.getHttpHandlerExtensionConfiguration}});Object.defineProperty(Oe,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return Ge.resolveHttpHandlerRuntimeConfig}})});var gs=$((Pe)=>{Object.defineProperty(Pe,"__esModule",{value:!0});Pe.resolveHttpHandlerRuntimeConfig=Pe.getHttpHandlerExtensionConfiguration=Pe.isValidHostname=Pe.HttpResponse=Pe.HttpRequest=Pe.Fields=Pe.Field=void 0;var ke=pe();Object.defineProperty(Pe,"Field",{enumerable:!0,get:function(){return ke.Field}});Object.defineProperty(Pe,"Fields",{enumerable:!0,get:function(){return ke.Fields}});Object.defineProperty(Pe,"HttpRequest",{enumerable:!0,get:function(){return ke.HttpRequest}});Object.defineProperty(Pe,"HttpResponse",{enumerable:!0,get:function(){return ke.HttpResponse}});Object.defineProperty(Pe,"isValidHostname",{enumerable:!0,get:function(){return ke.isValidHostname}});Object.defineProperty(Pe,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return ke.getHttpHandlerExtensionConfiguration}});Object.defineProperty(Pe,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return ke.resolveHttpHandlerRuntimeConfig}})});var zs=$((hc)=>{var ie=Ee(),ys=mt(),tt=pe();class ws{format(e){let t=[];for(let c of Object.keys(e)){let o=ie.fromUtf8(c);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[c]))}let i=new Uint8Array(t.reduce((c,o)=>c+o.byteLength,0)),s=0;for(let c of t)i.set(c,s),s+=c.byteLength;return i}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let i=new DataView(new ArrayBuffer(5));return i.setUint8(0,4),i.setInt32(1,e.value,!1),new Uint8Array(i.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let c=new DataView(new ArrayBuffer(3+e.value.byteLength));c.setUint8(0,6),c.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(c.buffer);return o.set(e.value,3),o;case"string":let a=ie.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);let f=new Uint8Array(l.buffer);return f.set(a,3),f;case"timestamp":let m=new Uint8Array(9);return m[0]=8,m.set(Sr.fromNumber(e.value.valueOf()).bytes,1),m;case"uuid":if(!rc.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let g=new Uint8Array(17);return g[0]=9,g.set(ie.fromHex(e.value.replace(/\-/g,"")),1),g}}}var bs;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(bs||(bs={}));var rc=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Sr{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let i=7,s=Math.abs(Math.round(e));i>-1&&s>0;i--,s/=256)t[i]=s;if(e<0)Es(t);return new Sr(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Es(e);return parseInt(ie.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Es(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var xs="X-Amz-Algorithm",Ss="X-Amz-Credential",_r="X-Amz-Date",_s="X-Amz-SignedHeaders",Ts="X-Amz-Expires",Tr="X-Amz-Signature",Or="X-Amz-Security-Token",nc="X-Amz-Region-Set",Pr="authorization",Ar=_r.toLowerCase(),Os="date",Ps=[Pr,Ar,Os],As=Tr.toLowerCase(),Lt="x-amz-content-sha256",Cs=Or.toLowerCase(),sc="host",Is={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Rs=/^proxy-/,Ds=/^sec-/,ic=[/^proxy-/i,/^sec-/i],Rt="AWS4-HMAC-SHA256",oc="AWS4-ECDSA-P256-SHA256",Ms="AWS4-HMAC-SHA256-PAYLOAD",js="UNSIGNED-PAYLOAD",Ls=50,Cr="aws4_request",$s=604800,Hs=({query:e={}})=>{let t=[],i={};for(let s of Object.keys(e)){if(s.toLowerCase()===As)continue;let c=tt.escapeUri(s);t.push(c);let o=e[s];if(typeof o==="string")i[c]=`${c}=${tt.escapeUri(o)}`;else if(Array.isArray(o))i[c]=o.slice(0).reduce((a,l)=>a.concat([`${c}=${tt.escapeUri(l)}`]),[]).sort().join("&")}return t.sort().map((s)=>i[s]).filter((s)=>s).join("&")},ac=(e)=>uc(e).toISOString().replace(/\.\d{3}Z$/,"Z"),uc=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ir{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:i,service:s,sha256:c,uriEscapePath:o=!0}){this.service=s,this.sha256=c,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=ys.normalizeProvider(i),this.credentialProvider=ys.normalizeProvider(t)}createCanonicalRequest(e,t,i){let s=Object.keys(t).sort();return`${e.method}
|
|
2
|
+
${this.getCanonicalPath(e)}
|
|
3
|
+
${Hs(e)}
|
|
4
|
+
${s.map((c)=>`${c}:${t[c]}`).join(`
|
|
5
|
+
`)}
|
|
6
|
+
|
|
7
|
+
${s.join(";")}
|
|
8
|
+
${i}`}async createStringToSign(e,t,i,s){let c=new this.sha256;c.update(ie.toUint8Array(i));let o=await c.digest();return`${s}
|
|
9
|
+
${e}
|
|
10
|
+
${t}
|
|
11
|
+
${ie.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let c of e.split("/")){if(c?.length===0)continue;if(c===".")continue;if(c==="..")t.pop();else t.push(c)}let i=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return tt.escapeUri(i).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=ac(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var et={},Dt=[],Mt=(e,t,i)=>`${e}/${t}/${i}/${Cr}`,Us=async(e,t,i,s,c)=>{let o=await Ns(e,t.secretAccessKey,t.accessKeyId),a=`${i}:${s}:${c}:${ie.toHex(o)}:${t.sessionToken}`;if(a in et)return et[a];Dt.push(a);while(Dt.length>Ls)delete et[Dt.shift()];let l=`AWS4${t.secretAccessKey}`;for(let f of[i,s,c,Cr])l=await Ns(e,l,f);return et[a]=l},cc=()=>{Dt.length=0,Object.keys(et).forEach((e)=>{delete et[e]})},Ns=(e,t,i)=>{let s=new e(t);return s.update(ie.toUint8Array(i)),s.digest()},wr=({headers:e},t,i)=>{let s={};for(let c of Object.keys(e).sort()){if(e[c]==null)continue;let o=c.toLowerCase();if(o in Is||t?.has(o)||Rs.test(o)||Ds.test(o)){if(!i||i&&!i.has(o))continue}s[o]=e[c].trim().replace(/\s+/g," ")}return s},jt=async({headers:e,body:t},i)=>{for(let s of Object.keys(e))if(s.toLowerCase()===Lt)return e[s];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||ie.isArrayBuffer(t)){let s=new i;return s.update(ie.toUint8Array(t)),ie.toHex(await s.digest())}return js},Fs=(e,t)=>{e=e.toLowerCase();for(let i of Object.keys(t))if(e===i.toLowerCase())return!0;return!1},Bs=(e,t={})=>{let{headers:i,query:s={}}=tt.HttpRequest.clone(e);for(let c of Object.keys(i)){let o=c.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))s[c]=i[c],delete i[c]}return{...e,headers:i,query:s}},xr=(e)=>{e=tt.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Ps.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class Vs extends Ir{headerFormatter=new ws;constructor({applyChecksum:e,credentials:t,region:i,service:s,sha256:c,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:i,service:s,sha256:c,uriEscapePath:o})}async presign(e,t={}){let{signingDate:i=new Date,expiresIn:s=3600,unsignableHeaders:c,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:l,signingRegion:f,signingService:m}=t,g=await this.credentialProvider();this.validateResolvedCredentials(g);let b=f??await this.regionProvider(),{longDate:w,shortDate:_}=this.formatDate(i);if(s>$s)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let T=Mt(_,b,m??this.service),P=Bs(xr(e),{unhoistableHeaders:o,hoistableHeaders:l});if(g.sessionToken)P.query[Or]=g.sessionToken;P.query[xs]=Rt,P.query[Ss]=`${g.accessKeyId}/${T}`,P.query[_r]=w,P.query[Ts]=s.toString(10);let V=wr(P,c,a);return P.query[_s]=this.getCanonicalHeaderList(V),P.query[Tr]=await this.getSignature(w,T,this.getSigningKey(g,b,_,m),this.createCanonicalRequest(P,V,await jt(e,this.sha256))),P}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:i=new Date,priorSignature:s,signingRegion:c,signingService:o,eventStreamCredentials:a}){let l=c??await this.regionProvider(),{shortDate:f,longDate:m}=this.formatDate(i),g=Mt(f,l,o??this.service),b=await jt({headers:{},body:t},this.sha256),w=new this.sha256;w.update(e);let _=ie.toHex(await w.digest()),T=[Ms,m,g,s,_,b].join(`
|
|
12
|
+
`);return this.signString(T,{signingDate:i,signingRegion:l,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:i,signingService:s,eventStreamCredentials:c}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:i,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:c}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:i,signingService:s,eventStreamCredentials:c}={}){let o=c??await this.credentialProvider();this.validateResolvedCredentials(o);let a=i??await this.regionProvider(),{shortDate:l}=this.formatDate(t),f=new this.sha256(await this.getSigningKey(o,a,l,s));return f.update(ie.toUint8Array(e)),ie.toHex(await f.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:i,unsignableHeaders:s,signingRegion:c,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let l=c??await this.regionProvider(),f=xr(e),{longDate:m,shortDate:g}=this.formatDate(t),b=Mt(g,l,o??this.service);if(f.headers[Ar]=m,a.sessionToken)f.headers[Cs]=a.sessionToken;let w=await jt(f,this.sha256);if(!Fs(Lt,f.headers)&&this.applyChecksum)f.headers[Lt]=w;let _=wr(f,s,i),T=await this.getSignature(m,b,this.getSigningKey(a,l,g,o),this.createCanonicalRequest(f,_,w));return f.headers[Pr]=`${Rt} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(_)}, Signature=${T}`,f}async getSignature(e,t,i,s){let c=await this.createStringToSign(e,t,s,Rt),o=new this.sha256(await i);return o.update(ie.toUint8Array(c)),ie.toHex(await o.digest())}getSigningKey(e,t,i,s){return Us(this.sha256,e,i,t,s||this.service)}}var lc={SignatureV4a:null};hc.ALGORITHM_IDENTIFIER=Rt;hc.ALGORITHM_IDENTIFIER_V4A=oc;hc.ALGORITHM_QUERY_PARAM=xs;hc.ALWAYS_UNSIGNABLE_HEADERS=Is;hc.AMZ_DATE_HEADER=Ar;hc.AMZ_DATE_QUERY_PARAM=_r;hc.AUTH_HEADER=Pr;hc.CREDENTIAL_QUERY_PARAM=Ss;hc.DATE_HEADER=Os;hc.EVENT_ALGORITHM_IDENTIFIER=Ms;hc.EXPIRES_QUERY_PARAM=Ts;hc.GENERATED_HEADERS=Ps;hc.HOST_HEADER=sc;hc.KEY_TYPE_IDENTIFIER=Cr;hc.MAX_CACHE_SIZE=Ls;hc.MAX_PRESIGNED_TTL=$s;hc.PROXY_HEADER_PATTERN=Rs;hc.REGION_SET_PARAM=nc;hc.SEC_HEADER_PATTERN=Ds;hc.SHA256_HEADER=Lt;hc.SIGNATURE_HEADER=As;hc.SIGNATURE_QUERY_PARAM=Tr;hc.SIGNED_HEADERS_QUERY_PARAM=_s;hc.SignatureV4=Vs;hc.SignatureV4Base=Ir;hc.TOKEN_HEADER=Cs;hc.TOKEN_QUERY_PARAM=Or;hc.UNSIGNABLE_PATTERNS=ic;hc.UNSIGNED_PAYLOAD=js;hc.clearCredentialCache=cc;hc.createScope=Mt;hc.getCanonicalHeaders=wr;hc.getCanonicalQuery=Hs;hc.getPayloadHash=jt;hc.getSigningKey=Us;hc.hasHeader=Fs;hc.moveHeadersToQuery=Bs;hc.prepareRequest=xr;hc.signatureV4aContainer=lc});var bl=$((al)=>{var Rr=gs(),Le=as(),qs=Jc(),Zc=os(),Xs=zs(),Gs=(e)=>Rr.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Dr=(e)=>new Date(Date.now()+e),vc=(e,t)=>Math.abs(Dr(t).getTime()-e)>=300000,ks=(e,t)=>{let i=Date.parse(e);if(vc(i,t))return i-Date.now();return t},bt=(e,t)=>{if(!t)throw Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},Mr=async(e)=>{let t=bt("context",e.context),i=bt("config",e.config),s=t.endpointV2?.properties?.authSchemes?.[0],o=await bt("signer",i.signer)(s),a=e?.signingRegion,l=e?.signingRegionSet,f=e?.signingName;return{config:i,signer:o,signingRegion:a,signingRegionSet:l,signingName:f}};class $t{async sign(e,t,i){if(!Rr.HttpRequest.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await Mr(i),{config:c,signer:o}=s,{signingRegion:a,signingName:l}=s,f=i.context;if(f?.authSchemes?.length??!1){let[g,b]=f.authSchemes;if(g?.name==="sigv4a"&&b?.name==="sigv4")a=b?.signingRegion??a,l=b?.signingName??l}return await o.sign(e,{signingDate:Dr(c.systemClockOffset),signingRegion:a,signingService:l})}errorHandler(e){return(t)=>{let i=t.ServerTime??Gs(t.$response);if(i){let s=bt("config",e.config),c=s.systemClockOffset;if(s.systemClockOffset=ks(i,s.systemClockOffset),s.systemClockOffset!==c&&t.$metadata)t.$metadata.clockSkewCorrected=!0}throw t}}successHandler(e,t){let i=Gs(e);if(i){let s=bt("config",t.config);s.systemClockOffset=ks(i,s.systemClockOffset)}}}var el=$t;class Ys extends $t{async sign(e,t,i){if(!Rr.HttpRequest.isInstance(e))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:c,signingRegion:o,signingRegionSet:a,signingName:l}=await Mr(i),m=(await s.sigv4aSigningRegionSet?.()??a??[o]).join(",");return await c.sign(e,{signingDate:Dr(s.systemClockOffset),signingRegion:m,signingService:l})}}var Ws=(e)=>typeof e==="string"&&e.length>0?e.split(",").map((t)=>t.trim()):[],Js=(e)=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`,Qs="AWS_AUTH_SCHEME_PREFERENCE",Ks="auth_scheme_preference",tl={environmentVariableSelector:(e,t)=>{if(t?.signingName){if(Js(t.signingName)in e)return["httpBearerAuth"]}if(!(Qs in e))return;return Ws(e[Qs])},configFileSelector:(e)=>{if(!(Ks in e))return;return Ws(e[Ks])},default:[]},rl=(e)=>{return e.sigv4aSigningRegionSet=Le.normalizeProvider(e.sigv4aSigningRegionSet),e},nl={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET)return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((t)=>t.trim());throw new qs.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(e){if(e.sigv4a_signing_region_set)return(e.sigv4a_signing_region_set??"").split(",").map((t)=>t.trim());throw new qs.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Zs=(e)=>{let t=e.credentials,i=!!e.credentials,s=void 0;Object.defineProperty(e,"credentials",{set(m){if(m&&m!==t&&m!==s)i=!0;t=m;let g=il(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),b=ol(e,g);if(i&&!b.attributed){let w=typeof t==="object"&&t!==null;s=async(_)=>{let P=await b(_);if(w&&(!P.$source||Object.keys(P.$source).length===0))return Zc.setCredentialFeature(P,"CREDENTIALS_CODE","e");return P},s.memoized=b.memoized,s.configBound=b.configBound,s.attributed=!0}else s=b},get(){return s},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:c=!0,systemClockOffset:o=e.systemClockOffset||0,sha256:a}=e,l;if(e.signer)l=Le.normalizeProvider(e.signer);else if(e.regionInfoProvider)l=()=>Le.normalizeProvider(e.region)().then(async(m)=>[await e.regionInfoProvider(m,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},m]).then(([m,g])=>{let{signingRegion:b,signingService:w}=m;e.signingRegion=e.signingRegion||b||g,e.signingName=e.signingName||w||e.serviceId;let _={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:c};return new(e.signerConstructor||Xs.SignatureV4)(_)});else l=async(m)=>{m=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Le.normalizeProvider(e.region)(),properties:{}},m);let{signingRegion:g,signingName:b}=m;e.signingRegion=e.signingRegion||g,e.signingName=e.signingName||b||e.serviceId;let w={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:c};return new(e.signerConstructor||Xs.SignatureV4)(w)};return Object.assign(e,{systemClockOffset:o,signingEscapePath:c,signer:l})},sl=Zs;function il(e,{credentials:t,credentialDefaultProvider:i}){let s;if(t)if(!t?.memoized)s=Le.memoizeIdentityProvider(t,Le.isIdentityExpired,Le.doesIdentityRequireRefresh);else s=t;else if(i)s=Le.normalizeProvider(i(Object.assign({},e,{parentClientConfig:e})));else s=async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return s.memoized=!0,s}function ol(e,t){if(t.configBound)return t;let i=async(s)=>t({...s,callerClientConfig:e});return i.memoized=t.memoized,i.configBound=!0,i}al.AWSSDKSigV4Signer=el;al.AwsSdkSigV4ASigner=Ys;al.AwsSdkSigV4Signer=$t;al.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=tl;al.NODE_SIGV4A_CONFIG_OPTIONS=nl;al.getBearerTokenEnvKey=Js;al.resolveAWSSDKSigV4Config=sl;al.resolveAwsSdkSigV4AConfig=rl;al.resolveAwsSdkSigV4Config=Zs;al.validateSigningProperties=Mr});var Nl=$((Ht)=>{Object.defineProperty(Ht,"__esModule",{value:!0});Ht.normalizeProvider=Ht.getSmithyContext=void 0;var vs=mt();Object.defineProperty(Ht,"getSmithyContext",{enumerable:!0,get:function(){return vs.getSmithyContext}});Object.defineProperty(Ht,"normalizeProvider",{enumerable:!0,get:function(){return vs.normalizeProvider}})});var wl=$((eg,Bt)=>{var ei,ti,ri,ni,si,ii,oi,ai,ui,ci,li,hi,di,Ut,jr,fi,pi,mi,rt,gi,yi,bi,Ei,Ni,wi,xi,Si,_i,Ft,Ti,Oi,Pi;(function(e){var t=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(s){e(i(t,i(s)))});else if(typeof Bt==="object"&&typeof eg==="object")e(i(t,i(eg)));else e(i(t));function i(s,c){if(s!==t)if(typeof Object.create==="function")Object.defineProperty(s,"__esModule",{value:!0});else s.__esModule=!0;return function(o,a){return s[o]=c?c(o,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l))o[l]=a[l]};ei=function(o,a){if(typeof a!=="function"&&a!==null)throw TypeError("Class extends value "+String(a)+" is not a constructor or null");t(o,a);function l(){this.constructor=o}o.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)},ti=Object.assign||function(o){for(var a,l=1,f=arguments.length;l<f;l++){a=arguments[l];for(var m in a)if(Object.prototype.hasOwnProperty.call(a,m))o[m]=a[m]}return o},ri=function(o,a){var l={};for(var f in o)if(Object.prototype.hasOwnProperty.call(o,f)&&a.indexOf(f)<0)l[f]=o[f];if(o!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var m=0,f=Object.getOwnPropertySymbols(o);m<f.length;m++)if(a.indexOf(f[m])<0&&Object.prototype.propertyIsEnumerable.call(o,f[m]))l[f[m]]=o[f[m]]}return l},ni=function(o,a,l,f){var m=arguments.length,g=m<3?a:f===null?f=Object.getOwnPropertyDescriptor(a,l):f,b;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")g=Reflect.decorate(o,a,l,f);else for(var w=o.length-1;w>=0;w--)if(b=o[w])g=(m<3?b(g):m>3?b(a,l,g):b(a,l))||g;return m>3&&g&&Object.defineProperty(a,l,g),g},si=function(o,a){return function(l,f){a(l,f,o)}},ii=function(o,a,l,f,m,g){function b(G){if(G!==void 0&&typeof G!=="function")throw TypeError("Function expected");return G}var w=f.kind,_=w==="getter"?"get":w==="setter"?"set":"value",T=!a&&o?f.static?o:o.prototype:null,P=a||(T?Object.getOwnPropertyDescriptor(T,f.name):{}),V,X=!1;for(var B=l.length-1;B>=0;B--){var j={};for(var v in f)j[v]=v==="access"?{}:f[v];for(var v in f.access)j.access[v]=f.access[v];j.addInitializer=function(G){if(X)throw TypeError("Cannot add initializers after decoration has completed");g.push(b(G||null))};var he=(0,l[B])(w==="accessor"?{get:P.get,set:P.set}:P[_],j);if(w==="accessor"){if(he===void 0)continue;if(he===null||typeof he!=="object")throw TypeError("Object expected");if(V=b(he.get))P.get=V;if(V=b(he.set))P.set=V;if(V=b(he.init))m.unshift(V)}else if(V=b(he))if(w==="field")m.unshift(V);else P[_]=V}if(T)Object.defineProperty(T,f.name,P);X=!0},oi=function(o,a,l){var f=arguments.length>2;for(var m=0;m<a.length;m++)l=f?a[m].call(o,l):a[m].call(o);return f?l:void 0},ai=function(o){return typeof o==="symbol"?o:"".concat(o)},ui=function(o,a,l){if(typeof a==="symbol")a=a.description?"[".concat(a.description,"]"):"";return Object.defineProperty(o,"name",{configurable:!0,value:l?"".concat(l," ",a):a})},ci=function(o,a){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(o,a)},li=function(o,a,l,f){function m(g){return g instanceof l?g:new l(function(b){b(g)})}return new(l||(l=Promise))(function(g,b){function w(P){try{T(f.next(P))}catch(V){b(V)}}function _(P){try{T(f.throw(P))}catch(V){b(V)}}function T(P){P.done?g(P.value):m(P.value).then(w,_)}T((f=f.apply(o,a||[])).next())})},hi=function(o,a){var l={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},f,m,g,b=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return b.next=w(0),b.throw=w(1),b.return=w(2),typeof Symbol==="function"&&(b[Symbol.iterator]=function(){return this}),b;function w(T){return function(P){return _([T,P])}}function _(T){if(f)throw TypeError("Generator is already executing.");while(b&&(b=0,T[0]&&(l=0)),l)try{if(f=1,m&&(g=T[0]&2?m.return:T[0]?m.throw||((g=m.return)&&g.call(m),0):m.next)&&!(g=g.call(m,T[1])).done)return g;if(m=0,g)T=[T[0]&2,g.value];switch(T[0]){case 0:case 1:g=T;break;case 4:return l.label++,{value:T[1],done:!1};case 5:l.label++,m=T[1],T=[0];continue;case 7:T=l.ops.pop(),l.trys.pop();continue;default:if((g=l.trys,!(g=g.length>0&&g[g.length-1]))&&(T[0]===6||T[0]===2)){l=0;continue}if(T[0]===3&&(!g||T[1]>g[0]&&T[1]<g[3])){l.label=T[1];break}if(T[0]===6&&l.label<g[1]){l.label=g[1],g=T;break}if(g&&l.label<g[2]){l.label=g[2],l.ops.push(T);break}if(g[2])l.ops.pop();l.trys.pop();continue}T=a.call(o,l)}catch(P){T=[6,P],m=0}finally{f=g=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}},di=function(o,a){for(var l in o)if(l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l))Ft(a,o,l)},Ft=Object.create?function(o,a,l,f){if(f===void 0)f=l;var m=Object.getOwnPropertyDescriptor(a,l);if(!m||("get"in m?!a.__esModule:m.writable||m.configurable))m={enumerable:!0,get:function(){return a[l]}};Object.defineProperty(o,f,m)}:function(o,a,l,f){if(f===void 0)f=l;o[f]=a[l]},Ut=function(o){var a=typeof Symbol==="function"&&Symbol.iterator,l=a&&o[a],f=0;if(l)return l.call(o);if(o&&typeof o.length==="number")return{next:function(){if(o&&f>=o.length)o=void 0;return{value:o&&o[f++],done:!o}}};throw TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},jr=function(o,a){var l=typeof Symbol==="function"&&o[Symbol.iterator];if(!l)return o;var f=l.call(o),m,g=[],b;try{while((a===void 0||a-- >0)&&!(m=f.next()).done)g.push(m.value)}catch(w){b={error:w}}finally{try{if(m&&!m.done&&(l=f.return))l.call(f)}finally{if(b)throw b.error}}return g},fi=function(){for(var o=[],a=0;a<arguments.length;a++)o=o.concat(jr(arguments[a]));return o},pi=function(){for(var o=0,a=0,l=arguments.length;a<l;a++)o+=arguments[a].length;for(var f=Array(o),m=0,a=0;a<l;a++)for(var g=arguments[a],b=0,w=g.length;b<w;b++,m++)f[m]=g[b];return f},mi=function(o,a,l){if(l||arguments.length===2){for(var f=0,m=a.length,g;f<m;f++)if(g||!(f in a)){if(!g)g=Array.prototype.slice.call(a,0,f);g[f]=a[f]}}return o.concat(g||Array.prototype.slice.call(a))},rt=function(o){return this instanceof rt?(this.v=o,this):new rt(o)},gi=function(o,a,l){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var f=l.apply(o,a||[]),m,g=[];return m=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),w("next"),w("throw"),w("return",b),m[Symbol.asyncIterator]=function(){return this},m;function b(B){return function(j){return Promise.resolve(j).then(B,V)}}function w(B,j){if(f[B]){if(m[B]=function(v){return new Promise(function(he,G){g.push([B,v,he,G])>1||_(B,v)})},j)m[B]=j(m[B])}}function _(B,j){try{T(f[B](j))}catch(v){X(g[0][3],v)}}function T(B){B.value instanceof rt?Promise.resolve(B.value.v).then(P,V):X(g[0][2],B)}function P(B){_("next",B)}function V(B){_("throw",B)}function X(B,j){if(B(j),g.shift(),g.length)_(g[0][0],g[0][1])}},yi=function(o){var a,l;return a={},f("next"),f("throw",function(m){throw m}),f("return"),a[Symbol.iterator]=function(){return this},a;function f(m,g){a[m]=o[m]?function(b){return(l=!l)?{value:rt(o[m](b)),done:!1}:g?g(b):b}:g}},bi=function(o){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a=o[Symbol.asyncIterator],l;return a?a.call(o):(o=typeof Ut==="function"?Ut(o):o[Symbol.iterator](),l={},f("next"),f("throw"),f("return"),l[Symbol.asyncIterator]=function(){return this},l);function f(g){l[g]=o[g]&&function(b){return new Promise(function(w,_){b=o[g](b),m(w,_,b.done,b.value)})}}function m(g,b,w,_){Promise.resolve(_).then(function(T){g({value:T,done:w})},b)}},Ei=function(o,a){if(Object.defineProperty)Object.defineProperty(o,"raw",{value:a});else o.raw=a;return o};var i=Object.create?function(o,a){Object.defineProperty(o,"default",{enumerable:!0,value:a})}:function(o,a){o.default=a},s=function(o){return s=Object.getOwnPropertyNames||function(a){var l=[];for(var f in a)if(Object.prototype.hasOwnProperty.call(a,f))l[l.length]=f;return l},s(o)};Ni=function(o){if(o&&o.__esModule)return o;var a={};if(o!=null){for(var l=s(o),f=0;f<l.length;f++)if(l[f]!=="default")Ft(a,o,l[f])}return i(a,o),a},wi=function(o){return o&&o.__esModule?o:{default:o}},xi=function(o,a,l,f){if(l==="a"&&!f)throw TypeError("Private accessor was defined without a getter");if(typeof a==="function"?o!==a||!f:!a.has(o))throw TypeError("Cannot read private member from an object whose class did not declare it");return l==="m"?f:l==="a"?f.call(o):f?f.value:a.get(o)},Si=function(o,a,l,f,m){if(f==="m")throw TypeError("Private method is not writable");if(f==="a"&&!m)throw TypeError("Private accessor was defined without a setter");if(typeof a==="function"?o!==a||!m:!a.has(o))throw TypeError("Cannot write private member to an object whose class did not declare it");return f==="a"?m.call(o,l):m?m.value=l:a.set(o,l),l},_i=function(o,a){if(a===null||typeof a!=="object"&&typeof a!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof o==="function"?a===o:o.has(a)},Ti=function(o,a,l){if(a!==null&&a!==void 0){if(typeof a!=="object"&&typeof a!=="function")throw TypeError("Object expected.");var f,m;if(l){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");f=a[Symbol.asyncDispose]}if(f===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(f=a[Symbol.dispose],l)m=f}if(typeof f!=="function")throw TypeError("Object not disposable.");if(m)f=function(){try{m.call(this)}catch(g){return Promise.reject(g)}};o.stack.push({value:a,dispose:f,async:l})}else if(l)o.stack.push({async:!0});return a};var c=typeof SuppressedError==="function"?SuppressedError:function(o,a,l){var f=Error(l);return f.name="SuppressedError",f.error=o,f.suppressed=a,f};Oi=function(o){function a(g){o.error=o.hasError?new c(g,o.error,"An error was suppressed during disposal."):g,o.hasError=!0}var l,f=0;function m(){while(l=o.stack.pop())try{if(!l.async&&f===1)return f=0,o.stack.push(l),Promise.resolve().then(m);if(l.dispose){var g=l.dispose.call(l.value);if(l.async)return f|=2,Promise.resolve(g).then(m,function(b){return a(b),m()})}else f|=1}catch(b){a(b)}if(f===1)return o.hasError?Promise.reject(o.error):Promise.resolve();if(o.hasError)throw o.error}return m()},Pi=function(o,a){if(typeof o==="string"&&/^\.\.?\//.test(o))return o.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(l,f,m,g,b){return f?a?".jsx":".js":m&&(!g||!b)?l:m+g+"."+b.toLowerCase()+"js"});return o},e("__extends",ei),e("__assign",ti),e("__rest",ri),e("__decorate",ni),e("__param",si),e("__esDecorate",ii),e("__runInitializers",oi),e("__propKey",ai),e("__setFunctionName",ui),e("__metadata",ci),e("__awaiter",li),e("__generator",hi),e("__exportStar",di),e("__createBinding",Ft),e("__values",Ut),e("__read",jr),e("__spread",fi),e("__spreadArrays",pi),e("__spreadArray",mi),e("__await",rt),e("__asyncGenerator",gi),e("__asyncDelegator",yi),e("__asyncValues",bi),e("__makeTemplateObject",Ei),e("__importStar",Ni),e("__importDefault",wi),e("__classPrivateFieldGet",xi),e("__classPrivateFieldSet",Si),e("__classPrivateFieldIn",_i),e("__addDisposableResource",Ti),e("__disposeResources",Oi),e("__rewriteRelativeImportExtension",Pi)})});var Sl=$((tg,xl)=>{xl.exports={name:"@aws-sdk/nested-clients",version:"3.997.6",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=20.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.8","@aws-sdk/middleware-host-header":"^3.972.10","@aws-sdk/middleware-logger":"^3.972.10","@aws-sdk/middleware-recursion-detection":"^3.972.11","@aws-sdk/middleware-user-agent":"^3.972.38","@aws-sdk/region-config-resolver":"^3.972.13","@aws-sdk/signature-v4-multi-region":"^3.996.25","@aws-sdk/types":"^3.973.8","@aws-sdk/util-endpoints":"^3.996.8","@aws-sdk/util-user-agent-browser":"^3.972.10","@aws-sdk/util-user-agent-node":"^3.973.24","@smithy/config-resolver":"^4.4.17","@smithy/core":"^3.23.17","@smithy/fetch-http-handler":"^5.3.17","@smithy/hash-node":"^4.2.14","@smithy/invalid-dependency":"^4.2.14","@smithy/middleware-content-length":"^4.2.14","@smithy/middleware-endpoint":"^4.4.32","@smithy/middleware-retry":"^4.5.7","@smithy/middleware-serde":"^4.2.20","@smithy/middleware-stack":"^4.2.14","@smithy/node-config-provider":"^4.3.14","@smithy/node-http-handler":"^4.6.1","@smithy/protocol-http":"^5.3.14","@smithy/smithy-client":"^4.12.13","@smithy/types":"^4.14.1","@smithy/url-parser":"^4.2.14","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.49","@smithy/util-defaults-mode-node":"^4.2.54","@smithy/util-endpoints":"^3.4.2","@smithy/util-middleware":"^4.2.14","@smithy/util-retry":"^4.3.6","@smithy/util-utf8":"^4.2.2",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}}}});var Ai=$((Et)=>{Object.defineProperty(Et,"__esModule",{value:!0});Et.SelectorType=Et.numberSelector=Et.booleanSelector=void 0;var Lr=Ct();Object.defineProperty(Et,"booleanSelector",{enumerable:!0,get:function(){return Lr.booleanSelector}});Object.defineProperty(Et,"numberSelector",{enumerable:!0,get:function(){return Lr.numberSelector}});Object.defineProperty(Et,"SelectorType",{enumerable:!0,get:function(){return Lr.SelectorType}})});var Gl=$((Ul)=>{var __dirname="/workspace/viudes/claudio/node_modules/@aws-sdk/util-user-agent-node/dist-cjs",Ci=ht("node:os"),Nt=ht("node:process"),Ii=Ai(),Ri=ht("node:fs/promises"),nt=ht("node:path"),Tl=hs(),Ol=()=>{let e=["deno","bun","llrt"];for(let t of e)if(Nt.versions[t])return[`md/${t}`,Nt.versions[t]];return["md/nodejs",Nt.versions.node]},Pl=(e)=>{let t=process.cwd();if(!e)return[t];let i=nt.normalize(e),s=i.split(nt.sep),c=s.indexOf("node_modules"),o=c!==-1?s.slice(0,c).join(nt.sep):i;if(t===o)return[t];return[o,t]},Al=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/,Di=(e="")=>{let t=e.match(Al);if(!t)return;let[i,s,c,o]=[t[1],t[2],t[3],t[4]];return o?`${i}.${s}.${c}-${o}`:`${i}.${s}.${c}`},Cl=["^","~",">=","<=",">","<"],Il=["latest","beta","dev","rc","insiders","next"],Rl=(e="")=>{if(Il.includes(e))return e;let t=Cl.find((s)=>e.startsWith(s))??"",i=Di(e.slice(t.length));if(!i)return;return`${t}${i}`},Ne,Dl=nt.join("node_modules","typescript","package.json"),Ml=async()=>{if(Ne===null)return;else if(typeof Ne==="string")return["md/tsc",Ne];let e=!1;try{e=Ii.booleanSelector(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",Ii.SelectorType.ENV)||!1}catch{}if(e){Ne=null;return}let i=Pl(typeof __dirname<"u"?__dirname:void 0),s;for(let a of i)try{let l=nt.join(a,"package.json"),f=await Ri.readFile(l,"utf-8"),{dependencies:m,devDependencies:g}=JSON.parse(f),b=g?.typescript??m?.typescript;if(typeof b!=="string")continue;s=b;break}catch{}if(!s){Ne=null;return}let c;for(let a of i)try{let l=nt.join(a,Dl),f=await Ri.readFile(l,"utf-8"),{version:m}=JSON.parse(f),g=Di(m);if(typeof g!=="string")continue;c=g;break}catch{}if(c)return Ne=c,["md/tsc",Ne];let o=Rl(s);if(typeof o!=="string"){Ne=null;return}return Ne=`dev_${o}`,["md/tsc",Ne]},Mi={isCrtAvailable:!1},jl=()=>{if(Mi.isCrtAvailable)return["md/crt-avail"];return null},ji=({serviceId:e,clientVersion:t})=>{let i=Ol();return async(s)=>{let c=[["aws-sdk-js",t],["ua","2.1"],[`os/${Ci.platform()}`,Ci.release()],["lang/js"],i],o=await Ml();if(o)c.push(o);let a=jl();if(a)c.push(a);if(e)c.push([`api/${e}`,t]);if(Nt.env.AWS_EXECUTION_ENV)c.push([`exec-env/${Nt.env.AWS_EXECUTION_ENV}`]);let l=await s?.userAgentAppId?.();return l?[...c,[`app/${l}`]]:[...c]}},Ll=ji,Li="AWS_SDK_UA_APP_ID",$i="sdk_ua_app_id",$l="sdk-ua-app-id",Hl={environmentVariableSelector:(e)=>e[Li],configFileSelector:(e)=>e[$i]??e[$l],default:Tl.DEFAULT_UA_APP_ID};Ul.NODE_APP_ID_CONFIG_OPTIONS=Hl;Ul.UA_APP_ID_ENV_NAME=Li;Ul.UA_APP_ID_INI_NAME=$i;Ul.createDefaultUserAgentProvider=ji;Ul.crtAvailability=Mi;Ul.defaultUserAgent=Ll});var Ql=$(($r)=>{Object.defineProperty($r,"__esModule",{value:!0});$r.Hash=void 0;var kl=Ee();Object.defineProperty($r,"Hash",{enumerable:!0,get:function(){return kl.Hash}})});var Jl=$((Hr)=>{Object.defineProperty(Hr,"__esModule",{value:!0});Hr.calculateBodyLength=void 0;var Kl=Ee();Object.defineProperty(Hr,"calculateBodyLength",{enumerable:!0,get:function(){return Kl.calculateBodyLength}})});var eh=$((Ur)=>{Object.defineProperty(Ur,"__esModule",{value:!0});Ur.resolveDefaultsModeConfig=void 0;var Zl=Ct();Object.defineProperty(Ur,"resolveDefaultsModeConfig",{enumerable:!0,get:function(){return Zl.resolveDefaultsModeConfig}})});var Hi=$((wt)=>{Object.defineProperty(wt,"__esModule",{value:!0});wt.toUtf8=wt.toUint8Array=wt.fromUtf8=void 0;var Fr=Ee();Object.defineProperty(wt,"fromUtf8",{enumerable:!0,get:function(){return Fr.fromUtf8}});Object.defineProperty(wt,"toUint8Array",{enumerable:!0,get:function(){return Fr.toUint8Array}});Object.defineProperty(wt,"toUtf8",{enumerable:!0,get:function(){return Fr.toUtf8}})});var Yi=$((xh)=>{var ge=Ee(),it=pe(),rh=mt(),st=Vi(),qt=0,Xt=1,We=2,$e=3,xt=4,Vt=5,zi=6,Br=7,qi=20,qr=21,Xi=22,nh=23,Gr=24,Qe=25,Ke=26,He=27,kr=31;function ot(e){return typeof Buffer<"u"?Buffer.alloc(e):new Uint8Array(e)}var Wr=Symbol("@smithy/core/cbor::tagSymbol");function Qr(e){return e[Wr]=!0,e}var sh=typeof TextDecoder<"u",ih=typeof Buffer<"u",q=ot(0),Ie=new DataView(q.buffer,q.byteOffset,q.byteLength),Ui=sh?new TextDecoder:null,F=0;function oh(e){q=e,Ie=new DataView(q.buffer,q.byteOffset,q.byteLength)}function Re(e,t){if(e>=t)throw Error("unexpected end of (decode) payload.");let i=(q[e]&224)>>5,s=q[e]&31;switch(i){case qt:case Xt:case zi:let c,o;if(s<24)c=s,o=1;else switch(s){case Gr:case Qe:case Ke:case He:let a=ki[s],l=a+1;if(o=l,t-e<l)throw Error(`countLength ${a} greater than remaining buf len.`);let f=e+1;if(a===1)c=q[f];else if(a===2)c=Ie.getUint16(f);else if(a===4)c=Ie.getUint32(f);else c=Ie.getBigUint64(f);break;default:throw Error(`unexpected minor value ${s}.`)}if(i===qt)return F=o,Vr(c);else if(i===Xt){let a;if(typeof c==="bigint")a=BigInt(-1)-c;else a=-1-c;return F=o,Vr(a)}else if(s===2||s===3){let a=St(e+o,t),l=BigInt(0),f=e+o+F;for(let m=f;m<f+a;++m)l=l<<BigInt(8)|BigInt(q[m]);return F=o+F+a,s===3?-l-BigInt(1):l}else if(s===4){let a=Re(e+o,t),[l,f]=a,m=f<0?-1:1,g="0".repeat(Math.abs(l)+1)+String(BigInt(m)*BigInt(f)),b,w=f<0?"-":"";if(b=l===0?g:g.slice(0,g.length+l)+"."+g.slice(l),b=b.replace(/^0+/g,""),b==="")b="0";if(b[0]===".")b="0"+b;return b=w+b,F=o+F,ge.nv(b)}else{let a=Re(e+o,t);return F=o+F,Qr({tag:Vr(c),value:a})}case $e:case Vt:case xt:case We:if(s===kr)switch(i){case $e:return lh(e,t);case Vt:return mh(e,t);case xt:return fh(e,t);case We:return hh(e,t)}else switch(i){case $e:return ch(e,t);case Vt:return ph(e,t);case xt:return dh(e,t);case We:return Kr(e,t)}default:return gh(e,t)}}function Gi(e,t,i){if(ih&&e.constructor?.name==="Buffer")return e.toString("utf-8",t,i);if(Ui)return Ui.decode(e.subarray(t,i));return ge.toUtf8(e.subarray(t,i))}function ah(e){let t=Number(e);if(t<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<t)console.warn(Error(`@smithy/core/cbor - truncating BigInt(${e}) to ${t} with loss of precision.`));return t}var ki={[Gr]:1,[Qe]:2,[Ke]:4,[He]:8};function uh(e,t){let i=e>>7,s=(e&124)>>2,c=(e&3)<<8|t,o=i===0?1:-1,a,l;if(s===0)if(c===0)return 0;else a=Math.pow(2,-14),l=0;else if(s===31)if(c===0)return o*(1/0);else return NaN;else a=Math.pow(2,s-15),l=1;return l+=c/1024,o*(a*l)}function St(e,t){let i=q[e]&31;if(i<24)return F=1,i;if(i===Gr||i===Qe||i===Ke||i===He){let s=ki[i];if(F=s+1,t-e<F)throw Error(`countLength ${s} greater than remaining buf len.`);let c=e+1;if(s===1)return q[c];else if(s===2)return Ie.getUint16(c);else if(s===4)return Ie.getUint32(c);return ah(Ie.getBigUint64(c))}throw Error(`unexpected minor value ${i}.`)}function ch(e,t){let i=St(e,t),s=F;if(e+=s,t-e<i)throw Error(`string len ${i} greater than remaining buf len.`);let c=Gi(q,e,e+i);return F=s+i,c}function lh(e,t){e+=1;let i=[];for(let s=e;e<t;){if(q[e]===255){let f=ot(i.length);return f.set(i,0),F=e-s+2,Gi(f,0,f.length)}let c=(q[e]&224)>>5,o=q[e]&31;if(c!==$e)throw Error(`unexpected major type ${c} in indefinite string.`);if(o===kr)throw Error("nested indefinite string.");let a=Kr(e,t);e+=F;for(let f=0;f<a.length;++f)i.push(a[f])}throw Error("expected break marker.")}function Kr(e,t){let i=St(e,t),s=F;if(e+=s,t-e<i)throw Error(`unstructured byte string len ${i} greater than remaining buf len.`);let c=q.subarray(e,e+i);return F=s+i,c}function hh(e,t){e+=1;let i=[];for(let s=e;e<t;){if(q[e]===255){let f=ot(i.length);return f.set(i,0),F=e-s+2,f}let c=(q[e]&224)>>5,o=q[e]&31;if(c!==We)throw Error(`unexpected major type ${c} in indefinite string.`);if(o===kr)throw Error("nested indefinite string.");let a=Kr(e,t);e+=F;for(let f=0;f<a.length;++f)i.push(a[f])}throw Error("expected break marker.")}function dh(e,t){let i=St(e,t),s=F;e+=s;let c=e,o=Array(i);for(let a=0;a<i;++a){let l=Re(e,t),f=F;o[a]=l,e+=f}return F=s+(e-c),o}function fh(e,t){e+=1;let i=[];for(let s=e;e<t;){if(q[e]===255)return F=e-s+2,i;let c=Re(e,t);e+=F,i.push(c)}throw Error("expected break marker.")}function ph(e,t){let i=St(e,t),s=F;e+=s;let c=e,o={};for(let a=0;a<i;++a){if(e>=t)throw Error("unexpected end of map payload.");let l=(q[e]&224)>>5;if(l!==$e)throw Error(`unexpected major type ${l} for map key at index ${e}.`);let f=Re(e,t);e+=F;let m=Re(e,t);e+=F,o[f]=m}return F=s+(e-c),o}function mh(e,t){e+=1;let i=e,s={};for(;e<t;){if(e>=t)throw Error("unexpected end of map payload.");if(q[e]===255)return F=e-i+2,s;let c=(q[e]&224)>>5;if(c!==$e)throw Error(`unexpected major type ${c} for map key.`);let o=Re(e,t);e+=F;let a=Re(e,t);e+=F,s[o]=a}throw Error("expected break marker.")}function gh(e,t){let i=q[e]&31;switch(i){case qr:case qi:return F=1,i===qr;case Xi:return F=1,null;case nh:return F=1,null;case Qe:if(t-e<3)throw Error("incomplete float16 at end of buf.");return F=3,uh(q[e+1],q[e+2]);case Ke:if(t-e<5)throw Error("incomplete float32 at end of buf.");return F=5,Ie.getFloat32(e+1);case He:if(t-e<9)throw Error("incomplete float64 at end of buf.");return F=9,Ie.getFloat64(e+1);default:throw Error(`unexpected minor value ${i}.`)}}function Vr(e){if(typeof e==="number")return e;let t=Number(e);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER)return t;return e}var Fi=typeof Buffer<"u",yh=2048,L=ot(yh),Ce=new DataView(L.buffer,L.byteOffset,L.byteLength),R=0;function zr(e){if(L.byteLength-R<e)if(R<16000000)Xr(Math.max(L.byteLength*4,L.byteLength+e));else Xr(L.byteLength+e+16000000)}function Bi(){let e=ot(R);return e.set(L.subarray(0,R),0),R=0,e}function Xr(e){let t=L;if(L=ot(e),t)if(t.copy)t.copy(L,0,0,t.byteLength);else L.set(t,0);Ce=new DataView(L.buffer,L.byteOffset,L.byteLength)}function Ae(e,t){if(t<24)L[R++]=e<<5|t;else if(t<256)L[R++]=e<<5|24,L[R++]=t;else if(t<65536)L[R++]=e<<5|Qe,Ce.setUint16(R,t),R+=2;else if(t<4294967296)L[R++]=e<<5|Ke,Ce.setUint32(R,t),R+=4;else L[R++]=e<<5|He,Ce.setBigUint64(R,typeof t==="bigint"?t:BigInt(t)),R+=8}function bh(e){let t=[e];while(t.length){let i=t.pop();if(zr(typeof i==="string"?i.length*4:64),typeof i==="string"){if(Fi)Ae($e,Buffer.byteLength(i)),R+=L.write(i,R);else{let s=ge.fromUtf8(i);Ae($e,s.byteLength),L.set(s,R),R+=s.byteLength}continue}else if(typeof i==="number"){if(Number.isInteger(i)){let s=i>=0,c=s?qt:Xt,o=s?i:-i-1;if(o<24)L[R++]=c<<5|o;else if(o<256)L[R++]=c<<5|24,L[R++]=o;else if(o<65536)L[R++]=c<<5|Qe,L[R++]=o>>8,L[R++]=o;else if(o<4294967296)L[R++]=c<<5|Ke,Ce.setUint32(R,o),R+=4;else L[R++]=c<<5|He,Ce.setBigUint64(R,BigInt(o)),R+=8;continue}L[R++]=Br<<5|He,Ce.setFloat64(R,i),R+=8;continue}else if(typeof i==="bigint"){let s=i>=0,c=s?qt:Xt,o=s?i:-i-BigInt(1),a=Number(o);if(a<24)L[R++]=c<<5|a;else if(a<256)L[R++]=c<<5|24,L[R++]=a;else if(a<65536)L[R++]=c<<5|Qe,L[R++]=a>>8,L[R++]=a&255;else if(a<4294967296)L[R++]=c<<5|Ke,Ce.setUint32(R,a),R+=4;else if(o<BigInt("18446744073709551616"))L[R++]=c<<5|He,Ce.setBigUint64(R,o),R+=8;else{let l=o.toString(2),f=new Uint8Array(Math.ceil(l.length/8)),m=o,g=0;while(f.byteLength-++g>=0)f[f.byteLength-g]=Number(m&BigInt(255)),m>>=BigInt(8);if(zr(f.byteLength*2),L[R++]=s?194:195,Fi)Ae(We,Buffer.byteLength(f));else Ae(We,f.byteLength);L.set(f,R),R+=f.byteLength}continue}else if(i===null){L[R++]=Br<<5|Xi;continue}else if(typeof i==="boolean"){L[R++]=Br<<5|(i?qr:qi);continue}else if(typeof i>"u")throw Error("@smithy/core/cbor: client may not serialize undefined value.");else if(Array.isArray(i)){for(let s=i.length-1;s>=0;--s)t.push(i[s]);Ae(xt,i.length);continue}else if(typeof i.byteLength==="number"){zr(i.length*2),Ae(We,i.length),L.set(i,R),R+=i.byteLength;continue}else if(typeof i==="object"){if(i instanceof ge.NumericValue){let c=i.string.indexOf("."),o=c===-1?0:c-i.string.length+1,a=BigInt(i.string.replace(".",""));L[R++]=196,t.push(a),t.push(o),Ae(xt,2);continue}if(i[Wr])if("tag"in i&&"value"in i){t.push(i.value),Ae(zi,i.tag);continue}else throw Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(i));let s=Object.keys(i);for(let c=s.length-1;c>=0;--c){let o=s[c];t.push(i[o]),t.push(o)}Ae(Vt,s.length);continue}throw Error(`data type ${i?.constructor?.name??typeof i} not compatible for encoding.`)}}var Gt={deserialize(e){return oh(e),Re(0,e.length)},serialize(e){try{return bh(e),Bi()}catch(t){throw Bi(),t}},resizeEncodingBuffer(e){Xr(e)}},Wi=(e,t)=>{return it.collectBody(e,t).then(async(i)=>{if(i.length)try{return Gt.deserialize(i)}catch(s){throw Object.defineProperty(s,"$responseBodyText",{value:t.utf8Encoder(i)}),s}return{}})},zt=(e)=>{return Qr({tag:1,value:e.getTime()/1000})},Eh=async(e,t)=>{let i=await Wi(e,t);return i.message=i.message??i.Message,i},Qi=(e,t)=>{let i=(c)=>{let o=c;if(typeof o==="number")o=o.toString();if(o.indexOf(",")>=0)o=o.split(",")[0];if(o.indexOf(":")>=0)o=o.split(":")[0];if(o.indexOf("#")>=0)o=o.split("#")[1];return o};if(t.__type!==void 0)return i(t.__type);let s;for(let c in t)if(c.toLowerCase()==="code"){s=c;break}if(s&&t[s]!==void 0)return i(t[s])},Nh=(e)=>{if(String(e.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor")throw Error("Malformed RPCv2 CBOR response, status: "+e.statusCode)},wh=async(e,t,i,s,c)=>{let o=await e.endpoint(),{hostname:a,protocol:l="https",port:f,path:m}=o,g={protocol:l,hostname:a,port:f,method:"POST",path:m.endsWith("/")?m.slice(0,-1)+i:m+i,headers:{...t}};if(s!==void 0)g.hostname=s;if(o.headers)for(let b in o.headers)g.headers[b]=o.headers[b];if(c!==void 0){g.body=c;try{g.headers["content-length"]=String(ge.calculateBodyLength(c))}catch(b){}}return new it.HttpRequest(g)};class Yr extends it.SerdeContext{createSerializer(){let e=new Jr;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Zr;return e.setSerdeContext(this.serdeContext),e}}class Jr extends it.SerdeContext{value;write(e,t){this.value=this.serialize(e,t)}serialize(e,t){let i=st.NormalizedSchema.of(e);if(t==null){if(i.isIdempotencyToken())return ge.generateIdempotencyToken();return t}if(i.isBlobSchema()){if(typeof t==="string")return(this.serdeContext?.base64Decoder??ge.fromBase64)(t);return t}if(i.isTimestampSchema()){if(typeof t==="number"||typeof t==="bigint")return zt(new Date(Number(t)/1000|0));return zt(t)}if(typeof t==="function"||typeof t==="object"){let s=t;if(i.isListSchema()&&Array.isArray(s)){let o=!!i.getMergedTraits().sparse,a=[],l=0;for(let f of s){let m=this.serialize(i.getValueSchema(),f);if(m!=null||o)a[l++]=m}return a}if(s instanceof Date)return zt(s);let c={};if(i.isMapSchema()){let o=!!i.getMergedTraits().sparse;for(let a in s){let l=this.serialize(i.getValueSchema(),s[a]);if(l!=null||o)c[a]=l}}else if(i.isStructSchema()){for(let[a,l]of i.structIterator()){let f=this.serialize(l,s[a]);if(f!=null)c[a]=f}if(i.isUnionSchema()&&Array.isArray(s.$unknown)){let[a,l]=s.$unknown;c[a]=l}else if(typeof s.__type==="string"){for(let a in s)if(!(a in c))c[a]=this.serialize(15,s[a])}}else if(i.isDocumentSchema())for(let o in s)c[o]=this.serialize(i.getValueSchema(),s[o]);else if(i.isBigDecimalSchema())return s;return c}return t}flush(){let e=Gt.serialize(this.value);return this.value=void 0,e}}class Zr extends it.SerdeContext{read(e,t){let i=Gt.deserialize(t);return this.readValue(e,i)}readValue(e,t){let i=st.NormalizedSchema.of(e);if(i.isTimestampSchema()){if(typeof t==="number")return ge._parseEpochTimestamp(t);if(typeof t==="object"){if(t.tag===1&&"value"in t)return ge._parseEpochTimestamp(t.value)}}if(i.isBlobSchema()){if(typeof t==="string")return(this.serdeContext?.base64Decoder??ge.fromBase64)(t);return t}if(typeof t>"u"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol")return t;else if(typeof t==="object"){if(t===null)return null;if("byteLength"in t)return t;if(t instanceof Date)return t;if(i.isDocumentSchema())return t;if(i.isListSchema()){let c=[],o=i.getValueSchema();for(let a of t){let l=this.readValue(o,a);c.push(l)}return c}let s={};if(i.isMapSchema()){let c=i.getValueSchema();for(let o in t){let a=this.readValue(c,t[o]);s[o]=a}}else if(i.isStructSchema()){let c=i.isUnionSchema(),o;if(c){o=new Set;for(let a in t)if(a!=="__type")o.add(a)}for(let[a,l]of i.structIterator()){if(c)o.delete(a);if(t[a]!=null)s[a]=this.readValue(l,t[a])}if(c&&o?.size===1){let a=!0;for(let l in s){a=!1;break}if(a){let l=o.values().next().value;s.$unknown=[l,t[l]]}}else if(typeof t.__type==="string"){for(let a in t)if(!(a in s))s[a]=t[a]}}else if(t instanceof ge.NumericValue)return t;return s}else return t}}class Ki extends it.RpcProtocol{codec=new Yr;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,t,i){let s=await super.serializeRequest(e,t,i);if(Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),st.deref(e.input)==="unit")delete s.body,delete s.headers["content-type"];else{if(!s.body)this.serializer.write(15,{}),s.body=this.serializer.flush();try{s.headers["content-length"]=String(s.body.byteLength)}catch(l){}}let{service:c,operation:o}=rh.getSmithyContext(i),a=`/service/${c}/operation/${o}`;if(s.path.endsWith("/"))s.path+=a.slice(1);else s.path+=a;return s}async deserializeResponse(e,t,i){return super.deserializeResponse(e,t,i)}async handleError(e,t,i,s,c){let o=Qi(i,s)??"Unknown",a={$metadata:c,$fault:i.statusCode<=500?"client":"server"},l=this.options.defaultNamespace;if(o.includes("#"))[l]=o.split("#");let f=this.compositeErrorRegistry,m=st.TypeRegistry.for(l);f.copyFrom(m);let g;try{g=f.getSchema(o)}catch(V){if(s.Message)s.message=s.Message;let X=st.TypeRegistry.for("smithy.ts.sdk.synthetic."+l);f.copyFrom(X);let B=f.getBaseException();if(B){let j=f.getErrorCtor(B);throw Object.assign(new j({name:o}),a,s)}throw Object.assign(Error(o),a,s)}let b=st.NormalizedSchema.of(g),w=f.getErrorCtor(g),_=s.message??s.Message??"Unknown",T=new w(_),P={};for(let[V,X]of b.structIterator())P[V]=this.deserializer.readValue(X,s[V]);throw Object.assign(T,a,{$fault:b.getMergedTraits().error,message:_},P)}getDefaultContentType(){return"application/cbor"}}xh.CborCodec=Yr;xh.CborShapeDeserializer=Zr;xh.CborShapeSerializer=Jr;xh.SmithyRpcV2CborProtocol=Ki;xh.buildHttpRpcRequest=wh;xh.cbor=Gt;xh.checkCborResponse=Nh;xh.dateToTag=zt;xh.loadSmithyRpcV2CborErrorCode=Qi;xh.parseCborBody=Wi;xh.parseCborErrorBody=Eh;xh.tag=Qr;xh.tagSymbol=Wr});var Ji=$((C)=>{Object.defineProperty(C,"__esModule",{value:!0});C.createAggregatedClient=C.convertMap=C._json=C.ServiceException=C.SENSITIVE_STRING=C.NoOpLogger=C.Command=C.Client=C.strictParseShort=C.strictParseLong=C.strictParseInt32=C.strictParseInt=C.strictParseFloat32=C.strictParseFloat=C.strictParseDouble=C.strictParseByte=C.splitHeader=C.splitEvery=C.quoteHeader=C.parseRfc7231DateTime=C.parseRfc3339DateTimeWithOffset=C.parseRfc3339DateTime=C.parseEpochTimestamp=C.parseBoolean=C.nv=C.logger=C.limitedParseFloat32=C.limitedParseFloat=C.limitedParseDouble=C.handleFloat=C.generateIdempotencyToken=C.expectUnion=C.expectString=C.expectShort=C.expectObject=C.expectNumber=C.expectNonNull=C.expectLong=C.expectInt32=C.expectInt=C.expectFloat32=C.expectByte=C.expectBoolean=C.dateToUtcString=C.copyDocumentWithTransform=C._parseRfc7231DateTime=C._parseRfc3339DateTimeWithOffset=C._parseEpochTimestamp=C.NumericValue=C.LazyJsonString=void 0;C.resolvedPath=C.extendedEncodeURIComponent=C.collectBody=C.withBaseException=C.throwDefaultError=C.take=C.serializeFloat=C.serializeDateTime=C.resolveDefaultRuntimeConfig=C.map=C.loadConfigsForDefaultMode=C.isSerializableHeaderValue=C.getValueFromTextNode=C.getDefaultExtensionConfiguration=C.getDefaultClientConfiguration=C.getArrayIfSingleItem=C.emitWarningIfUnsupportedVersion=C.decorateServiceException=void 0;var U=Ee();Object.defineProperty(C,"LazyJsonString",{enumerable:!0,get:function(){return U.LazyJsonString}});Object.defineProperty(C,"NumericValue",{enumerable:!0,get:function(){return U.NumericValue}});Object.defineProperty(C,"_parseEpochTimestamp",{enumerable:!0,get:function(){return U._parseEpochTimestamp}});Object.defineProperty(C,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return U._parseRfc3339DateTimeWithOffset}});Object.defineProperty(C,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return U._parseRfc7231DateTime}});Object.defineProperty(C,"copyDocumentWithTransform",{enumerable:!0,get:function(){return U.copyDocumentWithTransform}});Object.defineProperty(C,"dateToUtcString",{enumerable:!0,get:function(){return U.dateToUtcString}});Object.defineProperty(C,"expectBoolean",{enumerable:!0,get:function(){return U.expectBoolean}});Object.defineProperty(C,"expectByte",{enumerable:!0,get:function(){return U.expectByte}});Object.defineProperty(C,"expectFloat32",{enumerable:!0,get:function(){return U.expectFloat32}});Object.defineProperty(C,"expectInt",{enumerable:!0,get:function(){return U.expectInt}});Object.defineProperty(C,"expectInt32",{enumerable:!0,get:function(){return U.expectInt32}});Object.defineProperty(C,"expectLong",{enumerable:!0,get:function(){return U.expectLong}});Object.defineProperty(C,"expectNonNull",{enumerable:!0,get:function(){return U.expectNonNull}});Object.defineProperty(C,"expectNumber",{enumerable:!0,get:function(){return U.expectNumber}});Object.defineProperty(C,"expectObject",{enumerable:!0,get:function(){return U.expectObject}});Object.defineProperty(C,"expectShort",{enumerable:!0,get:function(){return U.expectShort}});Object.defineProperty(C,"expectString",{enumerable:!0,get:function(){return U.expectString}});Object.defineProperty(C,"expectUnion",{enumerable:!0,get:function(){return U.expectUnion}});Object.defineProperty(C,"generateIdempotencyToken",{enumerable:!0,get:function(){return U.generateIdempotencyToken}});Object.defineProperty(C,"handleFloat",{enumerable:!0,get:function(){return U.handleFloat}});Object.defineProperty(C,"limitedParseDouble",{enumerable:!0,get:function(){return U.limitedParseDouble}});Object.defineProperty(C,"limitedParseFloat",{enumerable:!0,get:function(){return U.limitedParseFloat}});Object.defineProperty(C,"limitedParseFloat32",{enumerable:!0,get:function(){return U.limitedParseFloat32}});Object.defineProperty(C,"logger",{enumerable:!0,get:function(){return U.logger}});Object.defineProperty(C,"nv",{enumerable:!0,get:function(){return U.nv}});Object.defineProperty(C,"parseBoolean",{enumerable:!0,get:function(){return U.parseBoolean}});Object.defineProperty(C,"parseEpochTimestamp",{enumerable:!0,get:function(){return U.parseEpochTimestamp}});Object.defineProperty(C,"parseRfc3339DateTime",{enumerable:!0,get:function(){return U.parseRfc3339DateTime}});Object.defineProperty(C,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return U.parseRfc3339DateTimeWithOffset}});Object.defineProperty(C,"parseRfc7231DateTime",{enumerable:!0,get:function(){return U.parseRfc7231DateTime}});Object.defineProperty(C,"quoteHeader",{enumerable:!0,get:function(){return U.quoteHeader}});Object.defineProperty(C,"splitEvery",{enumerable:!0,get:function(){return U.splitEvery}});Object.defineProperty(C,"splitHeader",{enumerable:!0,get:function(){return U.splitHeader}});Object.defineProperty(C,"strictParseByte",{enumerable:!0,get:function(){return U.strictParseByte}});Object.defineProperty(C,"strictParseDouble",{enumerable:!0,get:function(){return U.strictParseDouble}});Object.defineProperty(C,"strictParseFloat",{enumerable:!0,get:function(){return U.strictParseFloat}});Object.defineProperty(C,"strictParseFloat32",{enumerable:!0,get:function(){return U.strictParseFloat32}});Object.defineProperty(C,"strictParseInt",{enumerable:!0,get:function(){return U.strictParseInt}});Object.defineProperty(C,"strictParseInt32",{enumerable:!0,get:function(){return U.strictParseInt32}});Object.defineProperty(C,"strictParseLong",{enumerable:!0,get:function(){return U.strictParseLong}});Object.defineProperty(C,"strictParseShort",{enumerable:!0,get:function(){return U.strictParseShort}});var Q=mt();Object.defineProperty(C,"Client",{enumerable:!0,get:function(){return Q.Client}});Object.defineProperty(C,"Command",{enumerable:!0,get:function(){return Q.Command}});Object.defineProperty(C,"NoOpLogger",{enumerable:!0,get:function(){return Q.NoOpLogger}});Object.defineProperty(C,"SENSITIVE_STRING",{enumerable:!0,get:function(){return Q.SENSITIVE_STRING}});Object.defineProperty(C,"ServiceException",{enumerable:!0,get:function(){return Q.ServiceException}});Object.defineProperty(C,"_json",{enumerable:!0,get:function(){return Q._json}});Object.defineProperty(C,"convertMap",{enumerable:!0,get:function(){return Q.convertMap}});Object.defineProperty(C,"createAggregatedClient",{enumerable:!0,get:function(){return Q.createAggregatedClient}});Object.defineProperty(C,"decorateServiceException",{enumerable:!0,get:function(){return Q.decorateServiceException}});Object.defineProperty(C,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return Q.emitWarningIfUnsupportedVersion}});Object.defineProperty(C,"getArrayIfSingleItem",{enumerable:!0,get:function(){return Q.getArrayIfSingleItem}});Object.defineProperty(C,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return Q.getDefaultClientConfiguration}});Object.defineProperty(C,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return Q.getDefaultExtensionConfiguration}});Object.defineProperty(C,"getValueFromTextNode",{enumerable:!0,get:function(){return Q.getValueFromTextNode}});Object.defineProperty(C,"isSerializableHeaderValue",{enumerable:!0,get:function(){return Q.isSerializableHeaderValue}});Object.defineProperty(C,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return Q.loadConfigsForDefaultMode}});Object.defineProperty(C,"map",{enumerable:!0,get:function(){return Q.map}});Object.defineProperty(C,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return Q.resolveDefaultRuntimeConfig}});Object.defineProperty(C,"serializeDateTime",{enumerable:!0,get:function(){return Q.serializeDateTime}});Object.defineProperty(C,"serializeFloat",{enumerable:!0,get:function(){return Q.serializeFloat}});Object.defineProperty(C,"take",{enumerable:!0,get:function(){return Q.take}});Object.defineProperty(C,"throwDefaultError",{enumerable:!0,get:function(){return Q.throwDefaultError}});Object.defineProperty(C,"withBaseException",{enumerable:!0,get:function(){return Q.withBaseException}});var vr=pe();Object.defineProperty(C,"collectBody",{enumerable:!0,get:function(){return vr.collectBody}});Object.defineProperty(C,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return vr.extendedEncodeURIComponent}});Object.defineProperty(C,"resolvedPath",{enumerable:!0,get:function(){return vr.resolvedPath}})});var vi=$((kt)=>{Object.defineProperty(kt,"__esModule",{value:!0});kt.toBase64=kt.fromBase64=void 0;var Zi=Ee();Object.defineProperty(kt,"fromBase64",{enumerable:!0,get:function(){return Zi.fromBase64}});Object.defineProperty(kt,"toBase64",{enumerable:!0,get:function(){return Zi.toBase64}})});var to=$((Ay,eo)=>{(()=>{var e={d:(r,n)=>{for(var u in n)e.o(n,u)&&!e.o(r,u)&&Object.defineProperty(r,u,{enumerable:!0,get:n[u]})},o:(r,n)=>Object.prototype.hasOwnProperty.call(r,n),r:(r)=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{XMLBuilder:()=>ca,XMLParser:()=>On,XMLValidator:()=>la});let i=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s=new RegExp("^["+i+"]["+i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function c(r,n){let u=[],h=n.exec(r);for(;h;){let d=[];d.startIndex=n.lastIndex-h[0].length;let p=h.length;for(let x=0;x<p;x++)d.push(h[x]);u.push(d),h=n.exec(r)}return u}let o=function(r){return s.exec(r)!=null},a=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],l=["__proto__","constructor","prototype"],f={allowBooleanAttributes:!1,unpairedTags:[]};function m(r,n){n=Object.assign({},f,n);let u=[],h=!1,d=!1;r[0]==="\uFEFF"&&(r=r.substr(1));for(let p=0;p<r.length;p++)if(r[p]==="<"&&r[p+1]==="?"){if(p+=2,p=b(r,p),p.err)return p}else{if(r[p]!=="<"){if(g(r[p]))continue;return j("InvalidChar","char '"+r[p]+"' is not expected.",G(r,p))}{let x=p;if(p++,r[p]==="!"){p=w(r,p);continue}{let y=!1;r[p]==="/"&&(y=!0,p++);let N="";for(;p<r.length&&r[p]!==">"&&r[p]!==" "&&r[p]!=="\t"&&r[p]!==`
|
|
13
|
+
`&&r[p]!=="\r";p++)N+=r[p];if(N=N.trim(),N[N.length-1]==="/"&&(N=N.substring(0,N.length-1),p--),!he(N)){let O;return O=N.trim().length===0?"Invalid space after '<'.":"Tag '"+N+"' is an invalid name.",j("InvalidTag",O,G(r,p))}let E=P(r,p);if(E===!1)return j("InvalidAttr","Attributes for '"+N+"' have open quote.",G(r,p));let S=E.value;if(p=E.index,S[S.length-1]==="/"){let O=p-S.length;S=S.substring(0,S.length-1);let I=X(S,n);if(I!==!0)return j(I.err.code,I.err.msg,G(r,O+I.err.line));h=!0}else if(y){if(!E.tagClosed)return j("InvalidTag","Closing tag '"+N+"' doesn't have proper closing.",G(r,p));if(S.trim().length>0)return j("InvalidTag","Closing tag '"+N+"' can't have attributes or invalid starting.",G(r,x));if(u.length===0)return j("InvalidTag","Closing tag '"+N+"' has not been opened.",G(r,x));{let O=u.pop();if(N!==O.tagName){let I=G(r,O.tagStartPos);return j("InvalidTag","Expected closing tag '"+O.tagName+"' (opened in line "+I.line+", col "+I.col+") instead of closing tag '"+N+"'.",G(r,x))}u.length==0&&(d=!0)}}else{let O=X(S,n);if(O!==!0)return j(O.err.code,O.err.msg,G(r,p-S.length+O.err.line));if(d===!0)return j("InvalidXml","Multiple possible root nodes found.",G(r,p));n.unpairedTags.indexOf(N)!==-1||u.push({tagName:N,tagStartPos:x}),h=!0}for(p++;p<r.length;p++)if(r[p]==="<"){if(r[p+1]==="!"){p++,p=w(r,p);continue}if(r[p+1]!=="?")break;if(p=b(r,++p),p.err)return p}else if(r[p]==="&"){let O=B(r,p);if(O==-1)return j("InvalidChar","char '&' is not expected.",G(r,p));p=O}else if(d===!0&&!g(r[p]))return j("InvalidXml","Extra text at the end",G(r,p));r[p]==="<"&&p--}}}return h?u.length==1?j("InvalidTag","Unclosed tag '"+u[0].tagName+"'.",G(r,u[0].tagStartPos)):!(u.length>0)||j("InvalidXml","Invalid '"+JSON.stringify(u.map((p)=>p.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):j("InvalidXml","Start tag expected.",1)}function g(r){return r===" "||r==="\t"||r===`
|
|
14
|
+
`||r==="\r"}function b(r,n){let u=n;for(;n<r.length;n++)if(r[n]=="?"||r[n]==" "){let h=r.substr(u,n-u);if(n>5&&h==="xml")return j("InvalidXml","XML declaration allowed only at the start of the document.",G(r,n));if(r[n]=="?"&&r[n+1]==">"){n++;break}continue}return n}function w(r,n){if(r.length>n+5&&r[n+1]==="-"&&r[n+2]==="-"){for(n+=3;n<r.length;n++)if(r[n]==="-"&&r[n+1]==="-"&&r[n+2]===">"){n+=2;break}}else if(r.length>n+8&&r[n+1]==="D"&&r[n+2]==="O"&&r[n+3]==="C"&&r[n+4]==="T"&&r[n+5]==="Y"&&r[n+6]==="P"&&r[n+7]==="E"){let u=1;for(n+=8;n<r.length;n++)if(r[n]==="<")u++;else if(r[n]===">"&&(u--,u===0))break}else if(r.length>n+9&&r[n+1]==="["&&r[n+2]==="C"&&r[n+3]==="D"&&r[n+4]==="A"&&r[n+5]==="T"&&r[n+6]==="A"&&r[n+7]==="["){for(n+=8;n<r.length;n++)if(r[n]==="]"&&r[n+1]==="]"&&r[n+2]===">"){n+=2;break}}return n}let _='"',T="'";function P(r,n){let u="",h="",d=!1;for(;n<r.length;n++){if(r[n]===_||r[n]===T)h===""?h=r[n]:h!==r[n]||(h="");else if(r[n]===">"&&h===""){d=!0;break}u+=r[n]}return h===""&&{value:u,index:n,tagClosed:d}}let V=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function X(r,n){let u=c(r,V),h={};for(let d=0;d<u.length;d++){if(u[d][1].length===0)return j("InvalidAttr","Attribute '"+u[d][2]+"' has no space in starting.",me(u[d]));if(u[d][3]!==void 0&&u[d][4]===void 0)return j("InvalidAttr","Attribute '"+u[d][2]+"' is without value.",me(u[d]));if(u[d][3]===void 0&&!n.allowBooleanAttributes)return j("InvalidAttr","boolean attribute '"+u[d][2]+"' is not allowed.",me(u[d]));let p=u[d][2];if(!v(p))return j("InvalidAttr","Attribute '"+p+"' is an invalid name.",me(u[d]));if(Object.prototype.hasOwnProperty.call(h,p))return j("InvalidAttr","Attribute '"+p+"' is repeated.",me(u[d]));h[p]=1}return!0}function B(r,n){if(r[++n]===";")return-1;if(r[n]==="#")return function(h,d){let p=/\d/;for(h[d]==="x"&&(d++,p=/[\da-fA-F]/);d<h.length;d++){if(h[d]===";")return d;if(!h[d].match(p))break}return-1}(r,++n);let u=0;for(;n<r.length;n++,u++)if(!(r[n].match(/\w/)&&u<20)){if(r[n]===";")break;return-1}return n}function j(r,n,u){return{err:{code:r,msg:n,line:u.line||u,col:u.col}}}function v(r){return o(r)}function he(r){return o(r)}function G(r,n){let u=r.substring(0,n).split(/\r?\n/);return{line:u.length,col:u[u.length-1].length+1}}function me(r){return r.startIndex+r[1].length}let pn=(r)=>a.includes(r)?"__"+r:r,Oo={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,n){return n},attributeValueProcessor:function(r,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,n,u){return r},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:pn};function Po(r,n){if(typeof r!="string")return;let u=r.toLowerCase();if(a.some((h)=>u===h.toLowerCase()))throw Error(`[SECURITY] Invalid ${n}: "${r}" is a reserved JavaScript keyword that could cause prototype pollution`);if(l.some((h)=>u===h.toLowerCase()))throw Error(`[SECURITY] Invalid ${n}: "${r}" is a reserved JavaScript keyword that could cause prototype pollution`)}function mn(r,n){return typeof r=="boolean"?{enabled:r,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1000,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof r=="object"&&r!==null?{enabled:r.enabled!==!1,maxEntitySize:Math.max(1,r.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,r.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,r.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,r.maxExpandedLength??1e5),maxEntityCount:Math.max(1,r.maxEntityCount??1000),allowedTags:r.allowedTags??null,tagFilter:r.tagFilter??null,appliesTo:r.appliesTo??"all"}:mn(!0)}let Ao=function(r){let n=Object.assign({},Oo,r),u=[{value:n.attributeNamePrefix,name:"attributeNamePrefix"},{value:n.attributesGroupName,name:"attributesGroupName"},{value:n.textNodeName,name:"textNodeName"},{value:n.cdataPropName,name:"cdataPropName"},{value:n.commentPropName,name:"commentPropName"}];for(let{value:h,name:d}of u)h&&Po(h,d);return n.onDangerousProperty===null&&(n.onDangerousProperty=pn),n.processEntities=mn(n.processEntities,n.htmlEntities),n.unpairedTagsSet=new Set(n.unpairedTags),n.stopNodes&&Array.isArray(n.stopNodes)&&(n.stopNodes=n.stopNodes.map((h)=>typeof h=="string"&&h.startsWith("*.")?".."+h.substring(2):h)),n},er;er=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class we{constructor(r){this.tagname=r,this.child=[],this[":@"]=Object.create(null)}add(r,n){r==="__proto__"&&(r="#__proto__"),this.child.push({[r]:n})}addChild(r,n){r.tagname==="__proto__"&&(r.tagname="#__proto__"),r[":@"]&&Object.keys(r[":@"]).length>0?this.child.push({[r.tagname]:r.child,":@":r[":@"]}):this.child.push({[r.tagname]:r.child}),n!==void 0&&(this.child[this.child.length-1][er]={startIndex:n})}static getMetaDataSymbol(){return er}}class gn{constructor(r){this.suppressValidationErr=!r,this.options=r}readDocType(r,n){let u=Object.create(null),h=0;if(r[n+3]!=="O"||r[n+4]!=="C"||r[n+5]!=="T"||r[n+6]!=="Y"||r[n+7]!=="P"||r[n+8]!=="E")throw Error("Invalid Tag instead of DOCTYPE");{n+=9;let d=1,p=!1,x=!1,y="";for(;n<r.length;n++)if(r[n]!=="<"||x)if(r[n]===">"){if(x?r[n-1]==="-"&&r[n-2]==="-"&&(x=!1,d--):d--,d===0)break}else r[n]==="["?p=!0:y+=r[n];else{if(p&&Fe(r,"!ENTITY",n)){let N,E;if(n+=7,[N,E,n]=this.readEntityExp(r,n+1,this.suppressValidationErr),E.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&h>=this.options.maxEntityCount)throw Error(`Entity count (${h+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);u[N]=E,h++}}else if(p&&Fe(r,"!ELEMENT",n)){n+=8;let{index:N}=this.readElementExp(r,n+1);n=N}else if(p&&Fe(r,"!ATTLIST",n))n+=8;else if(p&&Fe(r,"!NOTATION",n)){n+=9;let{index:N}=this.readNotationExp(r,n+1,this.suppressValidationErr);n=N}else{if(!Fe(r,"!--",n))throw Error("Invalid DOCTYPE");x=!0}d++,y=""}if(d!==0)throw Error("Unclosed DOCTYPE")}return{entities:u,i:n}}readEntityExp(r,n){let u=n=ce(r,n);for(;n<r.length&&!/\s/.test(r[n])&&r[n]!=='"'&&r[n]!=="'";)n++;let h=r.substring(u,n);if(ct(h),n=ce(r,n),!this.suppressValidationErr){if(r.substring(n,n+6).toUpperCase()==="SYSTEM")throw Error("External entities are not supported");if(r[n]==="%")throw Error("Parameter entities are not supported")}let d="";if([n,d]=this.readIdentifierVal(r,n,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&d.length>this.options.maxEntitySize)throw Error(`Entity "${h}" size (${d.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[h,d,--n]}readNotationExp(r,n){let u=n=ce(r,n);for(;n<r.length&&!/\s/.test(r[n]);)n++;let h=r.substring(u,n);!this.suppressValidationErr&&ct(h),n=ce(r,n);let d=r.substring(n,n+6).toUpperCase();if(!this.suppressValidationErr&&d!=="SYSTEM"&&d!=="PUBLIC")throw Error(`Expected SYSTEM or PUBLIC, found "${d}"`);n+=d.length,n=ce(r,n);let p=null,x=null;if(d==="PUBLIC")[n,p]=this.readIdentifierVal(r,n,"publicIdentifier"),r[n=ce(r,n)]!=='"'&&r[n]!=="'"||([n,x]=this.readIdentifierVal(r,n,"systemIdentifier"));else if(d==="SYSTEM"&&([n,x]=this.readIdentifierVal(r,n,"systemIdentifier"),!this.suppressValidationErr&&!x))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:h,publicIdentifier:p,systemIdentifier:x,index:--n}}readIdentifierVal(r,n,u){let h="",d=r[n];if(d!=='"'&&d!=="'")throw Error(`Expected quoted string, found "${d}"`);let p=++n;for(;n<r.length&&r[n]!==d;)n++;if(h=r.substring(p,n),r[n]!==d)throw Error(`Unterminated ${u} value`);return[++n,h]}readElementExp(r,n){let u=n=ce(r,n);for(;n<r.length&&!/\s/.test(r[n]);)n++;let h=r.substring(u,n);if(!this.suppressValidationErr&&!o(h))throw Error(`Invalid element name: "${h}"`);let d="";if(r[n=ce(r,n)]==="E"&&Fe(r,"MPTY",n))n+=4;else if(r[n]==="A"&&Fe(r,"NY",n))n+=2;else if(r[n]==="("){let p=++n;for(;n<r.length&&r[n]!==")";)n++;if(d=r.substring(p,n),r[n]!==")")throw Error("Unterminated content model")}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${r[n]}"`);return{elementName:h,contentModel:d.trim(),index:n}}readAttlistExp(r,n){let u=n=ce(r,n);for(;n<r.length&&!/\s/.test(r[n]);)n++;let h=r.substring(u,n);for(ct(h),u=n=ce(r,n);n<r.length&&!/\s/.test(r[n]);)n++;let d=r.substring(u,n);if(!ct(d))throw Error(`Invalid attribute name: "${d}"`);n=ce(r,n);let p="";if(r.substring(n,n+8).toUpperCase()==="NOTATION"){if(p="NOTATION",r[n=ce(r,n+=8)]!=="(")throw Error(`Expected '(', found "${r[n]}"`);n++;let y=[];for(;n<r.length&&r[n]!==")";){let N=n;for(;n<r.length&&r[n]!=="|"&&r[n]!==")";)n++;let E=r.substring(N,n);if(E=E.trim(),!ct(E))throw Error(`Invalid notation name: "${E}"`);y.push(E),r[n]==="|"&&(n++,n=ce(r,n))}if(r[n]!==")")throw Error("Unterminated list of notations");n++,p+=" ("+y.join("|")+")"}else{let y=n;for(;n<r.length&&!/\s/.test(r[n]);)n++;p+=r.substring(y,n);let N=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!N.includes(p.toUpperCase()))throw Error(`Invalid attribute type: "${p}"`)}n=ce(r,n);let x="";return r.substring(n,n+8).toUpperCase()==="#REQUIRED"?(x="#REQUIRED",n+=8):r.substring(n,n+7).toUpperCase()==="#IMPLIED"?(x="#IMPLIED",n+=7):[n,x]=this.readIdentifierVal(r,n,"ATTLIST"),{elementName:h,attributeName:d,attributeType:p,defaultValue:x,index:n}}}let ce=(r,n)=>{for(;n<r.length&&/\s/.test(r[n]);)n++;return n};function Fe(r,n,u){for(let h=0;h<n.length;h++)if(n[h]!==r[u+h+1])return!1;return!0}function ct(r){if(o(r))return r;throw Error(`Invalid entity name ${r}`)}let Co=/^[-+]?0x[a-fA-F0-9]+$/,Io=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,Ro={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"},Do=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class yn{constructor(r){this._matcher=r}get separator(){return this._matcher.separator}getCurrentTag(){let r=this._matcher.path;return r.length>0?r[r.length-1].tag:void 0}getCurrentNamespace(){let r=this._matcher.path;return r.length>0?r[r.length-1].namespace:void 0}getAttrValue(r){let n=this._matcher.path;if(n.length!==0)return n[n.length-1].values?.[r]}hasAttr(r){let n=this._matcher.path;if(n.length===0)return!1;let u=n[n.length-1];return u.values!==void 0&&r in u.values}getPosition(){let r=this._matcher.path;return r.length===0?-1:r[r.length-1].position??0}getCounter(){let r=this._matcher.path;return r.length===0?-1:r[r.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(r,n=!0){return this._matcher.toString(r,n)}toArray(){return this._matcher.path.map((r)=>r.tag)}matches(r){return this._matcher.matches(r)}matchesAny(r){return r.matchesAny(this._matcher)}}class Tt{constructor(r={}){this.separator=r.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new yn(this)}push(r,n=null,u=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let h=this.path.length;this.siblingStacks[h]||(this.siblingStacks[h]=new Map);let d=this.siblingStacks[h],p=u?`${u}:${r}`:r,x=d.get(p)||0,y=0;for(let E of d.values())y+=E;d.set(p,x+1);let N={tag:r,position:y,counter:x};u!=null&&(N.namespace=u),n!=null&&(N.values=n),this.path.push(N)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let r=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),r}updateCurrent(r){if(this.path.length>0){let n=this.path[this.path.length-1];r!=null&&(n.values=r)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(r){if(this.path.length!==0)return this.path[this.path.length-1].values?.[r]}hasAttr(r){if(this.path.length===0)return!1;let n=this.path[this.path.length-1];return n.values!==void 0&&r in n.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(r,n=!0){let u=r||this.separator;if(u===this.separator&&n===!0){if(this._pathStringCache!==null)return this._pathStringCache;let h=this.path.map((d)=>d.namespace?`${d.namespace}:${d.tag}`:d.tag).join(u);return this._pathStringCache=h,h}return this.path.map((h)=>n&&h.namespace?`${h.namespace}:${h.tag}`:h.tag).join(u)}toArray(){return this.path.map((r)=>r.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(r){let n=r.segments;return n.length!==0&&(r.hasDeepWildcard()?this._matchWithDeepWildcard(n):this._matchSimple(n))}_matchSimple(r){if(this.path.length!==r.length)return!1;for(let n=0;n<r.length;n++)if(!this._matchSegment(r[n],this.path[n],n===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(r){let n=this.path.length-1,u=r.length-1;for(;u>=0&&n>=0;){let h=r[u];if(h.type==="deep-wildcard"){if(u--,u<0)return!0;let d=r[u],p=!1;for(let x=n;x>=0;x--)if(this._matchSegment(d,this.path[x],x===this.path.length-1)){n=x-1,u--,p=!0;break}if(!p)return!1}else{if(!this._matchSegment(h,this.path[n],n===this.path.length-1))return!1;n--,u--}}return u<0}_matchSegment(r,n,u){if(r.tag!=="*"&&r.tag!==n.tag)return!1;if(r.namespace!==void 0&&r.namespace!=="*"&&r.namespace!==n.namespace)return!1;if(r.attrName!==void 0){if(!u)return!1;if(!n.values||!(r.attrName in n.values))return!1;if(r.attrValue!==void 0&&String(n.values[r.attrName])!==String(r.attrValue))return!1}if(r.position!==void 0){if(!u)return!1;let h=n.counter??0;if(r.position==="first"&&h!==0)return!1;if(r.position==="odd"&&h%2!=1)return!1;if(r.position==="even"&&h%2!=0)return!1;if(r.position==="nth"&&h!==r.positionValue)return!1}return!0}matchesAny(r){return r.matchesAny(this)}snapshot(){return{path:this.path.map((r)=>({...r})),siblingStacks:this.siblingStacks.map((r)=>new Map(r))}}restore(r){this._pathStringCache=null,this.path=r.path.map((n)=>({...n})),this.siblingStacks=r.siblingStacks.map((n)=>new Map(n))}readOnly(){return this._view}}class Be{constructor(r,n={},u){this.pattern=r,this.separator=n.separator||".",this.segments=this._parse(r),this.data=u,this._hasDeepWildcard=this.segments.some((h)=>h.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some((h)=>h.attrName!==void 0),this._hasPositionSelector=this.segments.some((h)=>h.position!==void 0)}_parse(r){let n=[],u=0,h="";for(;u<r.length;)r[u]===this.separator?u+1<r.length&&r[u+1]===this.separator?(h.trim()&&(n.push(this._parseSegment(h.trim())),h=""),n.push({type:"deep-wildcard"}),u+=2):(h.trim()&&n.push(this._parseSegment(h.trim())),h="",u++):(h+=r[u],u++);return h.trim()&&n.push(this._parseSegment(h.trim())),n}_parseSegment(r){let n={type:"tag"},u=null,h=r,d=r.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(d&&(h=d[1]+d[3],d[2])){let E=d[2].slice(1,-1);E&&(u=E)}let p,x,y=h;if(h.includes("::")){let E=h.indexOf("::");if(p=h.substring(0,E).trim(),y=h.substring(E+2).trim(),!p)throw Error(`Invalid namespace in pattern: ${r}`)}let N=null;if(y.includes(":")){let E=y.lastIndexOf(":"),S=y.substring(0,E).trim(),O=y.substring(E+1).trim();["first","last","odd","even"].includes(O)||/^nth\(\d+\)$/.test(O)?(x=S,N=O):x=y}else x=y;if(!x)throw Error(`Invalid segment pattern: ${r}`);if(n.tag=x,p&&(n.namespace=p),u)if(u.includes("=")){let E=u.indexOf("=");n.attrName=u.substring(0,E).trim(),n.attrValue=u.substring(E+1).trim()}else n.attrName=u.trim();if(N){let E=N.match(/^nth\((\d+)\)$/);E?(n.position="nth",n.positionValue=parseInt(E[1],10)):n.position=N}return n}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}class bn{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._patterns=new Set,this._sealed=!1}add(r){if(this._sealed)throw TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(r.pattern))return this;if(this._patterns.add(r.pattern),r.hasDeepWildcard())return this._deepWildcards.push(r),this;let n=r.length,u=r.segments[r.segments.length-1],h=u?.tag;if(h&&h!=="*"){let d=`${n}:${h}`;this._byDepthAndTag.has(d)||this._byDepthAndTag.set(d,[]),this._byDepthAndTag.get(d).push(r)}else this._wildcardByDepth.has(n)||this._wildcardByDepth.set(n,[]),this._wildcardByDepth.get(n).push(r);return this}addAll(r){for(let n of r)this.add(n);return this}has(r){return this._patterns.has(r.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(r){return this.findMatch(r)!==null}findMatch(r){let n=r.getDepth(),u=`${n}:${r.getCurrentTag()}`,h=this._byDepthAndTag.get(u);if(h){for(let p=0;p<h.length;p++)if(r.matches(h[p]))return h[p]}let d=this._wildcardByDepth.get(n);if(d){for(let p=0;p<d.length;p++)if(r.matches(d[p]))return d[p]}for(let p=0;p<this._deepWildcards.length;p++)if(r.matches(this._deepWildcards[p]))return this._deepWildcards[p];return null}}let Mo={cent:"¢",pound:"£",curren:"¤",yen:"¥",euro:"€",dollar:"$",euro:"€",fnof:"ƒ",inr:"₹",af:"؋",birr:"ብር",peso:"₱",rub:"₽",won:"₩",yuan:"¥",cedil:"¸"},En={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},jo={nbsp:" ",copy:"©",reg:"®",trade:"™",mdash:"—",ndash:"–",hellip:"…",laquo:"«",raquo:"»",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",para:"¶",sect:"§",deg:"°",frac12:"½",frac14:"¼",frac34:"¾"},Lo=new Set("!?\\\\/[]$%{}^&*()<>|+");function Nn(r){if(r[0]==="#")throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${r}"`);for(let n of r)if(Lo.has(n))throw Error(`[EntityReplacer] Invalid character '${n}' in entity name: "${r}"`);return r}function tr(...r){let n=Object.create(null);for(let u of r)if(u)for(let h of Object.keys(u)){let d=u[h];if(typeof d=="string")n[h]=d;else if(d&&typeof d=="object"&&d.val!==void 0){let p=d.val;typeof p=="string"&&(n[h]=p)}}return n}let Ve="external",Ot="base",rr="all",de=Object.freeze({allow:0,leave:1,remove:2,throw:3}),$o=new Set([9,10,13]);class wn{constructor(r={}){var n;this._limit=r.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof r.postCheck=="function"?r.postCheck:(h)=>h,this._limitTiers=(n=this._limit.applyLimitsTo??Ve)&&n!==Ve?n===rr?new Set([rr]):n===Ot?new Set([Ot]):Array.isArray(n)?new Set(n):new Set([Ve]):new Set([Ve]),this._numericAllowed=r.numericAllowed??!0,this._baseMap=tr(En,r.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(r.remove&&Array.isArray(r.remove)?r.remove:[]),this._leaveSet=new Set(r.leave&&Array.isArray(r.leave)?r.leave:[]);let u=function(h){if(!h)return{xmlVersion:1,onLevel:de.allow,nullLevel:de.remove};let d=h.xmlVersion===1.1?1.1:1,p=de[h.onNCR]??de.allow,x=de[h.nullNCR]??de.remove;return{xmlVersion:d,onLevel:p,nullLevel:Math.max(x,de.remove)}}(r.ncr);this._ncrXmlVersion=u.xmlVersion,this._ncrOnLevel=u.onLevel,this._ncrNullLevel=u.nullLevel}setExternalEntities(r){if(r)for(let n of Object.keys(r))Nn(n);this._externalMap=tr(r)}addExternalEntity(r,n){Nn(r),typeof n=="string"&&n.indexOf("&")===-1&&(this._externalMap[r]=n)}addInputEntities(r){this._totalExpansions=0,this._expandedLength=0,this._inputMap=tr(r)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(r){this._ncrXmlVersion=r===1.1?1.1:1}decode(r){if(typeof r!="string"||r.length===0)return r;let n=r,u=[],h=r.length,d=0,p=0,x=this._maxTotalExpansions>0,y=this._maxExpandedLength>0,N=x||y;for(;p<h;){if(r.charCodeAt(p)!==38){p++;continue}let S=p+1;for(;S<h&&r.charCodeAt(S)!==59&&S-p<=32;)S++;if(S>=h||r.charCodeAt(S)!==59){p++;continue}let O=r.slice(p+1,S);if(O.length===0){p++;continue}let I,D;if(this._removeSet.has(O))I="",D===void 0&&(D=Ve);else{if(this._leaveSet.has(O)){p++;continue}if(O.charCodeAt(0)===35){let M=this._resolveNCR(O);if(M===void 0){p++;continue}I=M,D=Ot}else{let M=this._resolveName(O);I=M?.value,D=M?.tier}}if(I!==void 0){if(p>d&&u.push(r.slice(d,p)),u.push(I),d=S+1,p=d,N&&this._tierCounts(D)){if(x&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(y){let M=I.length-(O.length+2);if(M>0&&(this._expandedLength+=M,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else p++}d<h&&u.push(r.slice(d));let E=u.length===0?r:u.join("");return this._postCheck(E,n)}_tierCounts(r){return!!this._limitTiers.has(rr)||this._limitTiers.has(r)}_resolveName(r){return r in this._inputMap?{value:this._inputMap[r],tier:Ve}:(r in this._externalMap)?{value:this._externalMap[r],tier:Ve}:(r in this._baseMap)?{value:this._baseMap[r],tier:Ot}:void 0}_classifyNCR(r){return r===0?this._ncrNullLevel:r>=55296&&r<=57343||this._ncrXmlVersion===1&&r>=1&&r<=31&&!$o.has(r)?de.remove:-1}_applyNCRAction(r,n,u){switch(r){case de.allow:return String.fromCodePoint(u);case de.remove:return"";case de.leave:return;case de.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${n}; (U+${u.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(u)}}_resolveNCR(r){let n=r.charCodeAt(1),u;if(u=n===120||n===88?parseInt(r.slice(2),16):parseInt(r.slice(1),10),Number.isNaN(u)||u<0||u>1114111)return;let h=this._classifyNCR(u);if(!this._numericAllowed&&h<de.remove)return;let d=h===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,h);return this._applyNCRAction(d,r,u)}}function Ho(r,n){if(!r)return{};let u=n.attributesGroupName?r[n.attributesGroupName]:r;if(!u)return{};let h={};for(let d in u)d.startsWith(n.attributeNamePrefix)?h[d.substring(n.attributeNamePrefix.length)]=u[d]:h[d]=u[d];return h}function Uo(r){if(!r||typeof r!="string")return;let n=r.indexOf(":");if(n!==-1&&n>0){let u=r.substring(0,n);if(u!=="xmlns")return u}}class xn{constructor(r,n){var u;this.options=r,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=qo,this.parseTextData=Fo,this.resolveNameSpace=Bo,this.buildAttributesMap=zo,this.isItStopNode=Wo,this.replaceEntitiesValue=Go,this.readStopNodeData=Ko,this.saveTextToParentTag=ko,this.addChild=Xo,this.ignoreAttributesFn=typeof(u=this.options.ignoreAttributes)=="function"?u:Array.isArray(u)?(p)=>{for(let x of u){if(typeof x=="string"&&p===x)return!0;if(x instanceof RegExp&&x.test(p))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let h={...En};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?h=this.options.htmlEntities:this.options.htmlEntities===!0&&(h={...jo,...Mo}),this.entityDecoder=new wn({namedEntities:{...h,...n},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Tt,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new bn;let d=this.options.stopNodes;if(d&&d.length>0){for(let p=0;p<d.length;p++){let x=d[p];typeof x=="string"?this.stopNodeExpressionsSet.add(new Be(x)):x instanceof Be&&this.stopNodeExpressionsSet.add(x)}this.stopNodeExpressionsSet.seal()}}}function Fo(r,n,u,h,d,p,x){let y=this.options;if(r!==void 0&&(y.trimValues&&!h&&(r=r.trim()),r.length>0)){x||(r=this.replaceEntitiesValue(r,n,u));let N=y.jPath?u.toString():u,E=y.tagValueProcessor(n,r,N,d,p);return E==null?r:typeof E!=typeof r||E!==r?E:y.trimValues||r.trim()===r?Sn(r,y.parseTagValue,y.numberParseOptions):r}}function Bo(r){if(this.options.removeNSPrefix){let n=r.split(":"),u=r.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(r=u+n[1])}return r}let Vo=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function zo(r,n,u,h=!1){let d=this.options;if(h===!0||d.ignoreAttributes!==!0&&typeof r=="string"){let p=c(r,Vo),x=p.length,y={},N=Array(x),E=!1,S={};for(let D=0;D<x;D++){let M=this.resolveNameSpace(p[D][1]),z=p[D][4];if(M.length&&z!==void 0){let Y=z;d.trimValues&&(Y=Y.trim()),Y=this.replaceEntitiesValue(Y,u,this.readonlyMatcher),N[D]=Y,S[M]=Y,E=!0}}E&&typeof n=="object"&&n.updateCurrent&&n.updateCurrent(S);let O=d.jPath?n.toString():this.readonlyMatcher,I=!1;for(let D=0;D<x;D++){let M=this.resolveNameSpace(p[D][1]);if(this.ignoreAttributesFn(M,O))continue;let z=d.attributeNamePrefix+M;if(M.length)if(d.transformAttributeName&&(z=d.transformAttributeName(z)),z=_n(z,d),p[D][4]!==void 0){let Y=N[D],oe=d.attributeValueProcessor(M,Y,O);y[z]=oe==null?Y:typeof oe!=typeof Y||oe!==Y?oe:Sn(Y,d.parseAttributeValue,d.numberParseOptions),I=!0}else d.allowBooleanAttributes&&(y[z]=!0,I=!0)}if(!I)return;if(d.attributesGroupName&&!d.preserveOrder){let D={};return D[d.attributesGroupName]=y,D}return y}}let qo=function(r){r=r.replace(/\r\n?/g,`
|
|
15
|
+
`);let n=new we("!xml"),u=n,h="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let d=this.options,p=new gn(d.processEntities),x=r.length;for(let y=0;y<x;y++)if(r[y]==="<"){let N=r.charCodeAt(y+1);if(N===47){let E=Je(r,">",y,"Closing Tag is not closed."),S=r.substring(y+2,E).trim();if(d.removeNSPrefix){let I=S.indexOf(":");I!==-1&&(S=S.substr(I+1))}S=sr(d.transformTagName,S,"",d).tagName,u&&(h=this.saveTextToParentTag(h,u,this.readonlyMatcher));let O=this.matcher.getCurrentTag();if(S&&d.unpairedTagsSet.has(S))throw Error(`Unpaired tag can not be used as closing tag: </${S}>`);O&&d.unpairedTagsSet.has(O)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,u=this.tagsNodeStack.pop(),h="",y=E}else if(N===63){let E=nr(r,y,!1,"?>");if(!E)throw Error("Pi Tag is not closed.");h=this.saveTextToParentTag(h,u,this.readonlyMatcher);let S=this.buildAttributesMap(E.tagExp,this.matcher,E.tagName,!0);if(S){let O=S[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(O)||1)}if(d.ignoreDeclaration&&E.tagName==="?xml"||d.ignorePiTags);else{let O=new we(E.tagName);O.add(d.textNodeName,""),E.tagName!==E.tagExp&&E.attrExpPresent&&d.ignoreAttributes!==!0&&(O[":@"]=S),this.addChild(u,O,this.readonlyMatcher,y)}y=E.closeIndex+1}else if(N===33&&r.charCodeAt(y+2)===45&&r.charCodeAt(y+3)===45){let E=Je(r,"-->",y+4,"Comment is not closed.");if(d.commentPropName){let S=r.substring(y+4,E-2);h=this.saveTextToParentTag(h,u,this.readonlyMatcher),u.add(d.commentPropName,[{[d.textNodeName]:S}])}y=E}else if(N===33&&r.charCodeAt(y+2)===68){let E=p.readDocType(r,y);this.entityDecoder.addInputEntities(E.entities),y=E.i}else if(N===33&&r.charCodeAt(y+2)===91){let E=Je(r,"]]>",y,"CDATA is not closed.")-2,S=r.substring(y+9,E);h=this.saveTextToParentTag(h,u,this.readonlyMatcher);let O=this.parseTextData(S,u.tagname,this.readonlyMatcher,!0,!1,!0,!0);O==null&&(O=""),d.cdataPropName?u.add(d.cdataPropName,[{[d.textNodeName]:S}]):u.add(d.textNodeName,O),y=E+2}else{let E=nr(r,y,d.removeNSPrefix);if(!E){let K=r.substring(Math.max(0,y-50),Math.min(x,y+50));throw Error(`readTagExp returned undefined at position ${y}. Context: "${K}"`)}let{tagName:S,rawTagName:O,tagExp:I,attrExpPresent:D,closeIndex:M}=E;if({tagName:S,tagExp:I}=sr(d.transformTagName,S,I,d),d.strictReservedNames&&(S===d.commentPropName||S===d.cdataPropName||S===d.textNodeName||S===d.attributesGroupName))throw Error(`Invalid tag name: ${S}`);u&&h&&u.tagname!=="!xml"&&(h=this.saveTextToParentTag(h,u,this.readonlyMatcher,!1));let z=u;z&&d.unpairedTagsSet.has(z.tagname)&&(u=this.tagsNodeStack.pop(),this.matcher.pop());let Y=!1;I.length>0&&I.lastIndexOf("/")===I.length-1&&(Y=!0,S[S.length-1]==="/"?(S=S.substr(0,S.length-1),I=S):I=I.substr(0,I.length-1),D=S!==I);let oe,ne=null,Ze={};oe=Uo(O),S!==n.tagname&&this.matcher.push(S,{},oe),S!==I&&D&&(ne=this.buildAttributesMap(I,this.matcher,S),ne&&(Ze=Ho(ne,d))),S!==n.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let ae=y;if(this.isCurrentNodeStopNode){let K="";if(Y)y=E.closeIndex;else if(d.unpairedTagsSet.has(S))y=E.closeIndex;else{let ur=this.readStopNodeData(r,O,M+1);if(!ur)throw Error(`Unexpected end of ${O}`);y=ur.i,K=ur.tagContent}let ar=new we(S);ne&&(ar[":@"]=ne),ar.add(d.textNodeName,K),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(u,ar,this.readonlyMatcher,ae)}else{if(Y){({tagName:S,tagExp:I}=sr(d.transformTagName,S,I,d));let K=new we(S);ne&&(K[":@"]=ne),this.addChild(u,K,this.readonlyMatcher,ae),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(d.unpairedTagsSet.has(S)){let K=new we(S);ne&&(K[":@"]=ne),this.addChild(u,K,this.readonlyMatcher,ae),this.matcher.pop(),this.isCurrentNodeStopNode=!1,y=E.closeIndex;continue}{let K=new we(S);if(this.tagsNodeStack.length>d.maxNestedTags)throw Error("Maximum nested tags exceeded");this.tagsNodeStack.push(u),ne&&(K[":@"]=ne),this.addChild(u,K,this.readonlyMatcher,ae),u=K}}h="",y=M}}}else h+=r[y];return n.child};function Xo(r,n,u,h){this.options.captureMetaData||(h=void 0);let d=this.options.jPath?u.toString():u,p=this.options.updateTag(n.tagname,d,n[":@"]);p===!1||(typeof p=="string"?(n.tagname=p,r.addChild(n,h)):r.addChild(n,h))}function Go(r,n,u){let h=this.options.processEntities;if(!h||!h.enabled)return r;if(h.allowedTags){let d=this.options.jPath?u.toString():u;if(!(Array.isArray(h.allowedTags)?h.allowedTags.includes(n):h.allowedTags(n,d)))return r}if(h.tagFilter){let d=this.options.jPath?u.toString():u;if(!h.tagFilter(n,d))return r}return this.entityDecoder.decode(r)}function ko(r,n,u,h){return r&&(h===void 0&&(h=n.child.length===0),(r=this.parseTextData(r,n.tagname,u,!1,!!n[":@"]&&Object.keys(n[":@"]).length!==0,h))!==void 0&&r!==""&&n.add(this.options.textNodeName,r),r=""),r}function Wo(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Je(r,n,u,h){let d=r.indexOf(n,u);if(d===-1)throw Error(h);return d+n.length-1}function Qo(r,n,u,h){let d=r.indexOf(n,u);if(d===-1)throw Error(h);return d}function nr(r,n,u,h=">"){let d=function(O,I,D=">"){let M=0,z=O.length,Y=D.charCodeAt(0),oe=D.length>1?D.charCodeAt(1):-1,ne="",Ze=I;for(let ae=I;ae<z;ae++){let K=O.charCodeAt(ae);if(M)K===M&&(M=0);else if(K===34||K===39)M=K;else if(K===Y){if(oe===-1)return ne+=O.substring(Ze,ae),{data:ne,index:ae};if(O.charCodeAt(ae+1)===oe)return ne+=O.substring(Ze,ae),{data:ne,index:ae}}else K!==9||M||(ne+=O.substring(Ze,ae)+" ",Ze=ae+1)}}(r,n+1,h);if(!d)return;let{data:p,index:x}=d,y=p.search(/\s/),N=p,E=!0;y!==-1&&(N=p.substring(0,y),p=p.substring(y+1).trimStart());let S=N;if(u){let O=N.indexOf(":");O!==-1&&(N=N.substr(O+1),E=N!==d.data.substr(O+1))}return{tagName:N,tagExp:p,closeIndex:x,attrExpPresent:E,rawTagName:S}}function Ko(r,n,u){let h=u,d=1,p=r.length;for(;u<p;u++)if(r[u]==="<"){let x=r.charCodeAt(u+1);if(x===47){let y=Qo(r,">",u,`${n} is not closed`);if(r.substring(u+2,y).trim()===n&&(d--,d===0))return{tagContent:r.substring(h,u),i:y};u=y}else if(x===63)u=Je(r,"?>",u+1,"StopNode is not closed.");else if(x===33&&r.charCodeAt(u+2)===45&&r.charCodeAt(u+3)===45)u=Je(r,"-->",u+3,"StopNode is not closed.");else if(x===33&&r.charCodeAt(u+2)===91)u=Je(r,"]]>",u,"StopNode is not closed.")-2;else{let y=nr(r,u,">");y&&((y&&y.tagName)===n&&y.tagExp[y.tagExp.length-1]!=="/"&&d++,u=y.closeIndex)}}}function Sn(r,n,u){if(n&&typeof r=="string"){let h=r.trim();return h==="true"||h!=="false"&&function(d,p={}){if(p=Object.assign({},Ro,p),!d||typeof d!="string")return d;let x=d.trim();if(x.length===0)return d;if(p.skipLike!==void 0&&p.skipLike.test(x))return d;if(x==="0")return 0;if(p.hex&&Co.test(x))return function(N){if(parseInt)return parseInt(N,16);if(Number.parseInt)return Number.parseInt(N,16);if(window&&window.parseInt)return window.parseInt(N,16);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}(x);if(isFinite(x)){if(x.includes("e")||x.includes("E"))return function(N,E,S){if(!S.eNotation)return N;let O=E.match(Do);if(O){let I=O[1]||"",D=O[3].indexOf("e")===-1?"E":"e",M=O[2],z=I?N[M.length+1]===D:N[M.length]===D;return M.length>1&&z?N:(M.length!==1||!O[3].startsWith(`.${D}`)&&O[3][0]!==D)&&M.length>0?S.leadingZeros&&!z?(E=(O[1]||"")+O[3],Number(E)):N:Number(E)}return N}(d,x,p);{let N=Io.exec(x);if(N){let E=N[1]||"",S=N[2],O=(y=N[3])&&y.indexOf(".")!==-1?((y=y.replace(/0+$/,""))==="."?y="0":y[0]==="."?y="0"+y:y[y.length-1]==="."&&(y=y.substring(0,y.length-1)),y):y,I=E?d[S.length+1]===".":d[S.length]===".";if(!p.leadingZeros&&(S.length>1||S.length===1&&!I))return d;{let D=Number(x),M=String(D);if(D===0)return D;if(M.search(/[eE]/)!==-1)return p.eNotation?D:d;if(x.indexOf(".")!==-1)return M==="0"||M===O||M===`${E}${O}`?D:d;let z=S?O:x;return S?z===M||E+z===M?D:d:z===M||z===E+M?D:d}}return d}}var y;return function(N,E,S){let O=E===1/0;switch(S.infinity.toLowerCase()){case"null":return null;case"infinity":return E;case"string":return O?"Infinity":"-Infinity";default:return N}}(d,Number(x),p)}(r,u)}return r!==void 0?r:""}function sr(r,n,u,h){if(r){let d=r(n);u===n&&(u=d),n=d}return{tagName:n=_n(n,h),tagExp:u}}function _n(r,n){if(l.includes(r))throw Error(`[SECURITY] Invalid name: "${r}" is a reserved JavaScript keyword that could cause prototype pollution`);return a.includes(r)?n.onDangerousProperty(r):r}let ir=we.getMetaDataSymbol();function Yo(r,n){if(!r||typeof r!="object")return{};if(!n)return r;let u={};for(let h in r)h.startsWith(n)?u[h.substring(n.length)]=r[h]:u[h]=r[h];return u}function Jo(r,n,u,h){return Tn(r,n,u,h)}function Tn(r,n,u,h){let d,p={};for(let x=0;x<r.length;x++){let y=r[x],N=Zo(y);if(N!==void 0&&N!==n.textNodeName){let E=Yo(y[":@"]||{},n.attributeNamePrefix);u.push(N,E)}if(N===n.textNodeName)d===void 0?d=y[N]:d+=""+y[N];else{if(N===void 0)continue;if(y[N]){let E=Tn(y[N],n,u,h),S=ea(E,n);if(y[":@"]?vo(E,y[":@"],h,n):Object.keys(E).length!==1||E[n.textNodeName]===void 0||n.alwaysCreateTextNode?Object.keys(E).length===0&&(n.alwaysCreateTextNode?E[n.textNodeName]="":E=""):E=E[n.textNodeName],y[ir]!==void 0&&typeof E=="object"&&E!==null&&(E[ir]=y[ir]),p[N]!==void 0&&Object.prototype.hasOwnProperty.call(p,N))Array.isArray(p[N])||(p[N]=[p[N]]),p[N].push(E);else{let O=n.jPath?h.toString():h;n.isArray(N,O,S)?p[N]=[E]:p[N]=E}N!==void 0&&N!==n.textNodeName&&u.pop()}}}return typeof d=="string"?d.length>0&&(p[n.textNodeName]=d):d!==void 0&&(p[n.textNodeName]=d),p}function Zo(r){let n=Object.keys(r);for(let u=0;u<n.length;u++){let h=n[u];if(h!==":@")return h}}function vo(r,n,u,h){if(n){let d=Object.keys(n),p=d.length;for(let x=0;x<p;x++){let y=d[x],N=y.startsWith(h.attributeNamePrefix)?y.substring(h.attributeNamePrefix.length):y,E=h.jPath?u.toString()+"."+N:u;h.isArray(y,E,!0,!0)?r[y]=[n[y]]:r[y]=n[y]}}}function ea(r,n){let{textNodeName:u}=n,h=Object.keys(r).length;return h===0||!(h!==1||!r[u]&&typeof r[u]!="boolean"&&r[u]!==0)}class On{constructor(r){this.externalEntities={},this.options=Ao(r)}parse(r,n){if(typeof r!="string"&&r.toString)r=r.toString();else if(typeof r!="string")throw Error("XML data is accepted in String or Bytes[] form.");if(n){n===!0&&(n={});let d=m(r,n);if(d!==!0)throw Error(`${d.err.msg}:${d.err.line}:${d.err.col}`)}let u=new xn(this.options,this.externalEntities),h=u.parseXml(r);return this.options.preserveOrder||h===void 0?h:Jo(h,this.options,u.matcher,u.readonlyMatcher)}addEntity(r,n){if(n.indexOf("&")!==-1)throw Error("Entity value can't have '&'");if(r.indexOf("&")!==-1||r.indexOf(";")!==-1)throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(n==="&")throw Error("An entity with value '&' is not permitted");this.externalEntities[r]=n}static getMetaDataSymbol(){return we.getMetaDataSymbol()}}function ta(r,n){let u="";n.format&&n.indentBy.length>0&&(u=`
|
|
16
|
+
`);let h=[];if(n.stopNodes&&Array.isArray(n.stopNodes))for(let d=0;d<n.stopNodes.length;d++){let p=n.stopNodes[d];typeof p=="string"?h.push(new Be(p)):p instanceof Be&&h.push(p)}return Pn(r,n,u,new Tt,h)}function Pn(r,n,u,h,d){let p="",x=!1;if(n.maxNestedTags&&h.getDepth()>n.maxNestedTags)throw Error("Maximum nested tags exceeded");if(!Array.isArray(r)){if(r!=null){let y=r.toString();return y=or(y,n),y}return""}for(let y=0;y<r.length;y++){let N=r[y],E=Cn(N);if(E===void 0)continue;let S=ra(N[":@"],n);h.push(E,S);let O=sa(h,d);if(E===n.textNodeName){let z=N[E];O||(z=n.tagValueProcessor(E,z),z=or(z,n)),x&&(p+=u),p+=z,x=!1,h.pop();continue}if(E===n.cdataPropName){x&&(p+=u);let z=N[E][0][n.textNodeName];p+=`<![CDATA[${String(z).replace(/\]\]>/g,"]]]]><![CDATA[>")}]]>`,x=!1,h.pop();continue}if(E===n.commentPropName){let z=N[E][0][n.textNodeName];p+=u+`<!--${String(z).replace(/--/g,"- -").replace(/-$/,"- ")}-->`,x=!0,h.pop();continue}if(E[0]==="?"){let z=In(N[":@"],n,O),Y=E==="?xml"?"":u,oe=N[E][0][n.textNodeName];oe=oe.length!==0?" "+oe:"",p+=Y+`<${E}${oe}${z}?>`,x=!0,h.pop();continue}let I=u;I!==""&&(I+=n.indentBy);let D=u+`<${E}${In(N[":@"],n,O)}`,M;M=O?An(N[E],n):Pn(N[E],n,I,h,d),n.unpairedTags.indexOf(E)!==-1?n.suppressUnpairedNode?p+=D+">":p+=D+"/>":M&&M.length!==0||!n.suppressEmptyNode?M&&M.endsWith(">")?p+=D+`>${M}${u}</${E}>`:(p+=D+">",M&&u!==""&&(M.includes("/>")||M.includes("</"))?p+=u+n.indentBy+M+u:p+=M,p+=`</${E}>`):p+=D+"/>",x=!0,h.pop()}return p}function ra(r,n){if(!r||n.ignoreAttributes)return null;let u={},h=!1;for(let d in r)Object.prototype.hasOwnProperty.call(r,d)&&(u[d.startsWith(n.attributeNamePrefix)?d.substr(n.attributeNamePrefix.length):d]=r[d],h=!0);return h?u:null}function An(r,n){if(!Array.isArray(r))return r!=null?r.toString():"";let u="";for(let h=0;h<r.length;h++){let d=r[h],p=Cn(d);if(p===n.textNodeName)u+=d[p];else if(p===n.cdataPropName)u+=d[p][0][n.textNodeName];else if(p===n.commentPropName)u+=d[p][0][n.textNodeName];else{if(p&&p[0]==="?")continue;if(p){let x=na(d[":@"],n),y=An(d[p],n);y&&y.length!==0?u+=`<${p}${x}>${y}</${p}>`:u+=`<${p}${x}/>`}}}return u}function na(r,n){let u="";if(r&&!n.ignoreAttributes)for(let h in r){if(!Object.prototype.hasOwnProperty.call(r,h))continue;let d=r[h];d===!0&&n.suppressBooleanAttributes?u+=` ${h.substr(n.attributeNamePrefix.length)}`:u+=` ${h.substr(n.attributeNamePrefix.length)}="${d}"`}return u}function Cn(r){let n=Object.keys(r);for(let u=0;u<n.length;u++){let h=n[u];if(Object.prototype.hasOwnProperty.call(r,h)&&h!==":@")return h}}function In(r,n,u){let h="";if(r&&!n.ignoreAttributes)for(let d in r){if(!Object.prototype.hasOwnProperty.call(r,d))continue;let p;u?p=r[d]:(p=n.attributeValueProcessor(d,r[d]),p=or(p,n)),p===!0&&n.suppressBooleanAttributes?h+=` ${d.substr(n.attributeNamePrefix.length)}`:h+=` ${d.substr(n.attributeNamePrefix.length)}="${p}"`}return h}function sa(r,n){if(!n||n.length===0)return!1;for(let u=0;u<n.length;u++)if(r.matches(n[u]))return!0;return!1}function or(r,n){if(r&&r.length>0&&n.processEntities)for(let u=0;u<n.entities.length;u++){let h=n.entities[u];r=r.replace(h.regex,h.val)}return r}let ia={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(r,n){return n},attributeValueProcessor:function(r,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function fe(r){if(this.options=Object.assign({},ia,r),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map((u)=>typeof u=="string"&&u.startsWith("*.")?".."+u.substring(2):u)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let u=0;u<this.options.stopNodes.length;u++){let h=this.options.stopNodes[u];typeof h=="string"?this.stopNodeExpressions.push(new Be(h)):h instanceof Be&&this.stopNodeExpressions.push(h)}var n;this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=typeof(n=this.options.ignoreAttributes)=="function"?n:Array.isArray(n)?(u)=>{for(let h of n){if(typeof h=="string"&&u===h)return!0;if(h instanceof RegExp&&h.test(u))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ua),this.processTextOrObjNode=oa,this.options.format?(this.indentate=aa,this.tagEndChar=`>
|
|
17
|
+
`,this.newLine=`
|
|
18
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function oa(r,n,u,h){let d=this.extractAttributes(r);if(h.push(n,d),this.checkStopNode(h)){let x=this.buildRawContent(r),y=this.buildAttributesForStopNode(r);return h.pop(),this.buildObjectNode(x,n,y,u)}let p=this.j2x(r,u+1,h);return h.pop(),r[this.options.textNodeName]!==void 0&&Object.keys(r).length===1?this.buildTextValNode(r[this.options.textNodeName],n,p.attrStr,u,h):this.buildObjectNode(p.val,n,p.attrStr,u)}function aa(r){return this.options.indentBy.repeat(r)}function ua(r){return!(!r.startsWith(this.options.attributeNamePrefix)||r===this.options.textNodeName)&&r.substr(this.attrPrefixLen)}fe.prototype.build=function(r){if(this.options.preserveOrder)return ta(r,this.options);{Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(r={[this.options.arrayNodeName]:r});let n=new Tt;return this.j2x(r,0,n).val}},fe.prototype.j2x=function(r,n,u){let h="",d="";if(this.options.maxNestedTags&&u.getDepth()>=this.options.maxNestedTags)throw Error("Maximum nested tags exceeded");let p=this.options.jPath?u.toString():u,x=this.checkStopNode(u);for(let y in r)if(Object.prototype.hasOwnProperty.call(r,y))if(r[y]===void 0)this.isAttribute(y)&&(d+="");else if(r[y]===null)this.isAttribute(y)||y===this.options.cdataPropName?d+="":y[0]==="?"?d+=this.indentate(n)+"<"+y+"?"+this.tagEndChar:d+=this.indentate(n)+"<"+y+"/"+this.tagEndChar;else if(r[y]instanceof Date)d+=this.buildTextValNode(r[y],y,"",n,u);else if(typeof r[y]!="object"){let N=this.isAttribute(y);if(N&&!this.ignoreAttributesFn(N,p))h+=this.buildAttrPairStr(N,""+r[y],x);else if(!N)if(y===this.options.textNodeName){let E=this.options.tagValueProcessor(y,""+r[y]);d+=this.replaceEntitiesValue(E)}else{u.push(y);let E=this.checkStopNode(u);if(u.pop(),E){let S=""+r[y];d+=S===""?this.indentate(n)+"<"+y+this.closeTag(y)+this.tagEndChar:this.indentate(n)+"<"+y+">"+S+"</"+y+this.tagEndChar}else d+=this.buildTextValNode(r[y],y,"",n,u)}}else if(Array.isArray(r[y])){let N=r[y].length,E="",S="";for(let O=0;O<N;O++){let I=r[y][O];if(I===void 0);else if(I===null)y[0]==="?"?d+=this.indentate(n)+"<"+y+"?"+this.tagEndChar:d+=this.indentate(n)+"<"+y+"/"+this.tagEndChar;else if(typeof I=="object")if(this.options.oneListGroup){u.push(y);let D=this.j2x(I,n+1,u);u.pop(),E+=D.val,this.options.attributesGroupName&&I.hasOwnProperty(this.options.attributesGroupName)&&(S+=D.attrStr)}else E+=this.processTextOrObjNode(I,y,n,u);else if(this.options.oneListGroup){let D=this.options.tagValueProcessor(y,I);D=this.replaceEntitiesValue(D),E+=D}else{u.push(y);let D=this.checkStopNode(u);if(u.pop(),D){let M=""+I;E+=M===""?this.indentate(n)+"<"+y+this.closeTag(y)+this.tagEndChar:this.indentate(n)+"<"+y+">"+M+"</"+y+this.tagEndChar}else E+=this.buildTextValNode(I,y,"",n,u)}}this.options.oneListGroup&&(E=this.buildObjectNode(E,y,S,n)),d+=E}else if(this.options.attributesGroupName&&y===this.options.attributesGroupName){let N=Object.keys(r[y]),E=N.length;for(let S=0;S<E;S++)h+=this.buildAttrPairStr(N[S],""+r[y][N[S]],x)}else d+=this.processTextOrObjNode(r[y],y,n,u);return{attrStr:h,val:d}},fe.prototype.buildAttrPairStr=function(r,n,u){return u||(n=this.options.attributeValueProcessor(r,""+n),n=this.replaceEntitiesValue(n)),this.options.suppressBooleanAttributes&&n==="true"?" "+r:" "+r+'="'+n+'"'},fe.prototype.extractAttributes=function(r){if(!r||typeof r!="object")return null;let n={},u=!1;if(this.options.attributesGroupName&&r[this.options.attributesGroupName]){let h=r[this.options.attributesGroupName];for(let d in h)Object.prototype.hasOwnProperty.call(h,d)&&(n[d.startsWith(this.options.attributeNamePrefix)?d.substring(this.options.attributeNamePrefix.length):d]=h[d],u=!0)}else for(let h in r){if(!Object.prototype.hasOwnProperty.call(r,h))continue;let d=this.isAttribute(h);d&&(n[d]=r[h],u=!0)}return u?n:null},fe.prototype.buildRawContent=function(r){if(typeof r=="string")return r;if(typeof r!="object"||r===null)return String(r);if(r[this.options.textNodeName]!==void 0)return r[this.options.textNodeName];let n="";for(let u in r){if(!Object.prototype.hasOwnProperty.call(r,u))continue;if(this.isAttribute(u))continue;if(this.options.attributesGroupName&&u===this.options.attributesGroupName)continue;let h=r[u];if(u===this.options.textNodeName)n+=h;else if(Array.isArray(h)){for(let d of h)if(typeof d=="string"||typeof d=="number")n+=`<${u}>${d}</${u}>`;else if(typeof d=="object"&&d!==null){let p=this.buildRawContent(d),x=this.buildAttributesForStopNode(d);n+=p===""?`<${u}${x}/>`:`<${u}${x}>${p}</${u}>`}}else if(typeof h=="object"&&h!==null){let d=this.buildRawContent(h),p=this.buildAttributesForStopNode(h);n+=d===""?`<${u}${p}/>`:`<${u}${p}>${d}</${u}>`}else n+=`<${u}>${h}</${u}>`}return n},fe.prototype.buildAttributesForStopNode=function(r){if(!r||typeof r!="object")return"";let n="";if(this.options.attributesGroupName&&r[this.options.attributesGroupName]){let u=r[this.options.attributesGroupName];for(let h in u){if(!Object.prototype.hasOwnProperty.call(u,h))continue;let d=h.startsWith(this.options.attributeNamePrefix)?h.substring(this.options.attributeNamePrefix.length):h,p=u[h];p===!0&&this.options.suppressBooleanAttributes?n+=" "+d:n+=" "+d+'="'+p+'"'}}else for(let u in r){if(!Object.prototype.hasOwnProperty.call(r,u))continue;let h=this.isAttribute(u);if(h){let d=r[u];d===!0&&this.options.suppressBooleanAttributes?n+=" "+h:n+=" "+h+'="'+d+'"'}}return n},fe.prototype.buildObjectNode=function(r,n,u,h){if(r==="")return n[0]==="?"?this.indentate(h)+"<"+n+u+"?"+this.tagEndChar:this.indentate(h)+"<"+n+u+this.closeTag(n)+this.tagEndChar;{let d="</"+n+this.tagEndChar,p="";return n[0]==="?"&&(p="?",d=""),!u&&u!==""||r.indexOf("<")!==-1?this.options.commentPropName!==!1&&n===this.options.commentPropName&&p.length===0?this.indentate(h)+`<!--${r}-->`+this.newLine:this.indentate(h)+"<"+n+u+p+this.tagEndChar+r+this.indentate(h)+d:this.indentate(h)+"<"+n+u+p+">"+r+d}},fe.prototype.closeTag=function(r){let n="";return this.options.unpairedTags.indexOf(r)!==-1?this.options.suppressUnpairedNode||(n="/"):n=this.options.suppressEmptyNode?"/":`></${r}`,n},fe.prototype.checkStopNode=function(r){if(!this.stopNodeExpressions||this.stopNodeExpressions.length===0)return!1;for(let n=0;n<this.stopNodeExpressions.length;n++)if(r.matches(this.stopNodeExpressions[n]))return!0;return!1},fe.prototype.buildTextValNode=function(r,n,u,h,d){if(this.options.cdataPropName!==!1&&n===this.options.cdataPropName){let p=String(r).replace(/\]\]>/g,"]]]]><![CDATA[>");return this.indentate(h)+`<![CDATA[${p}]]>`+this.newLine}if(this.options.commentPropName!==!1&&n===this.options.commentPropName){let p=String(r).replace(/--/g,"- -").replace(/-$/,"- ");return this.indentate(h)+`<!--${p}-->`+this.newLine}if(n[0]==="?")return this.indentate(h)+"<"+n+u+"?"+this.tagEndChar;{let p=this.options.tagValueProcessor(n,r);return p=this.replaceEntitiesValue(p),p===""?this.indentate(h)+"<"+n+u+this.closeTag(n)+this.tagEndChar:this.indentate(h)+"<"+n+u+">"+p+"</"+n+this.tagEndChar}},fe.prototype.replaceEntitiesValue=function(r){if(r&&r.length>0&&this.options.processEntities)for(let n=0;n<this.options.entities.length;n++){let u=this.options.entities[n];r=r.replace(u.regex,u.val)}return r};let ca=fe,la={validate:m};eo.exports=t})()});var oo=$((no)=>{Object.defineProperty(no,"__esModule",{value:!0});no.EntityDecoderImpl=no.CURRENCY=no.COMMON_HTML=no.XML=void 0;no.XML={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};no.COMMON_HTML={nbsp:" ",copy:"©",reg:"®",trade:"™",mdash:"—",ndash:"–",hellip:"…",laquo:"«",raquo:"»",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",para:"¶",sect:"§",deg:"°",frac12:"½",frac14:"¼",frac34:"¾"};no.CURRENCY={cent:"¢",pound:"£",curren:"¤",yen:"¥",euro:"€",dollar:"$",fnof:"ƒ",inr:"₹",af:"؋",birr:"ብር",peso:"₱",rub:"₽",won:"₩",yuan:"¥",cedil:"¸"};var Fh=new Set("!?\\/[]$%{}^&*()<>|+");function ro(e){if(e[0]==="#")throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(Fh.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function en(...e){let t=Object.create(null);for(let i of e){if(!i)continue;for(let s of Object.keys(i)){let c=i[s];if(typeof c==="string")t[s]=c;else if(c&&typeof c==="object"&&c.val!==void 0){let o=c.val;if(typeof o==="string")t[s]=o}}}return t}var Ye="external",Wt="base",tn="all";function Bh(e){if(!e||e===Ye)return new Set([Ye]);if(e===tn)return new Set([tn]);if(e===Wt)return new Set([Wt]);if(Array.isArray(e))return new Set(e);return new Set([Ye])}var le=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Vh=new Set([9,10,13]);function zh(e){if(!e)return{xmlVersion:1,onLevel:le.allow,nullLevel:le.remove};let t=e.xmlVersion===1.1?1.1:1,i=le[e.onNCR??"allow"]??le.allow,s=le[e.nullNCR??"remove"]??le.remove,c=Math.max(s,le.remove);return{xmlVersion:t,onLevel:i,nullLevel:c}}var qh=class{_limit;_maxTotalExpansions;_maxExpandedLength;_postCheck;_limitTiers;_numericAllowed;_baseMap;_externalMap;_inputMap;_totalExpansions;_expandedLength;_removeSet;_leaveSet;_ncrXmlVersion;_ncrOnLevel;_ncrNullLevel;constructor(t={}){this._limit=t.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof t.postCheck==="function"?t.postCheck:(s)=>s,this._limitTiers=Bh(this._limit.applyLimitsTo??Ye),this._numericAllowed=t.numericAllowed??!0,this._baseMap=en(no.XML,t.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(t.remove&&Array.isArray(t.remove)?t.remove:[]),this._leaveSet=new Set(t.leave&&Array.isArray(t.leave)?t.leave:[]);let i=zh(t.ncr);this._ncrXmlVersion=i.xmlVersion,this._ncrOnLevel=i.onLevel,this._ncrNullLevel=i.nullLevel}setExternalEntities(t){if(t)for(let i of Object.keys(t))ro(i);this._externalMap=en(t)}addExternalEntity(t,i){if(ro(t),typeof i==="string"&&i.indexOf("&")===-1)this._externalMap[t]=i}addInputEntities(t){this._totalExpansions=0,this._expandedLength=0,this._inputMap=en(t)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(t){this._ncrXmlVersion=t==="1.1"||t===1.1?1.1:1}decode(t){if(typeof t!=="string"||t.length===0)return t;let i=t,s=[],c=t.length,o=0,a=0,l=this._maxTotalExpansions>0,f=this._maxExpandedLength>0,m=l||f;while(a<c){if(t.charCodeAt(a)!==38){a++;continue}let b=a+1;while(b<c&&t.charCodeAt(b)!==59&&b-a<=32)b++;if(b>=c||t.charCodeAt(b)!==59){a++;continue}let w=t.slice(a+1,b);if(w.length===0){a++;continue}let _,T;if(this._removeSet.has(w)){if(_="",T===void 0)T=Ye}else if(this._leaveSet.has(w)){a++;continue}else if(w.charCodeAt(0)===35){let P=this._resolveNCR(w);if(P===void 0){a++;continue}_=P,T=Wt}else{let P=this._resolveName(w);_=P?.value,T=P?.tier}if(_===void 0){a++;continue}if(a>o)s.push(t.slice(o,a));if(s.push(_),o=b+1,a=o,m&&this._tierCounts(T)){if(l){if(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions)throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`)}if(f){let P=_.length-(w.length+2);if(P>0){if(this._expandedLength+=P,this._expandedLength>this._maxExpandedLength)throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}}if(o<c)s.push(t.slice(o));let g=s.length===0?t:s.join("");return this._postCheck(g,i)}_tierCounts(t){if(this._limitTiers.has(tn))return!0;return this._limitTiers.has(t)}_resolveName(t){if(t in this._inputMap)return{value:this._inputMap[t],tier:Ye};if(t in this._externalMap)return{value:this._externalMap[t],tier:Ye};if(t in this._baseMap)return{value:this._baseMap[t],tier:Wt};return}_classifyNCR(t){if(t===0)return this._ncrNullLevel;if(t>=55296&&t<=57343)return le.remove;if(this._ncrXmlVersion===1){if(t>=1&&t<=31&&!Vh.has(t))return le.remove}return-1}_applyNCRAction(t,i,s){switch(t){case le.allow:return String.fromCodePoint(s);case le.remove:return"";case le.leave:return;case le.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${i}; (U+${s.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(s)}}_resolveNCR(t){let i=t.charCodeAt(1),s;if(i===120||i===88)s=parseInt(t.slice(2),16);else s=parseInt(t.slice(1),10);if(Number.isNaN(s)||s<0||s>1114111)return;let c=this._classifyNCR(s);if(!this._numericAllowed&&c<le.remove)return;let o=c===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,c);return this._applyNCRAction(o,t,s)}};no.EntityDecoderImpl=qh});var uo=$((ao)=>{Object.defineProperty(ao,"__esModule",{value:!0});ao.parseXML=Qh;var kh=to(),Qt=oo(),Kt=new Qt.EntityDecoderImpl({namedEntities:{...Qt.XML,...Qt.COMMON_HTML,...Qt.CURRENCY},numericAllowed:!0,limit:{maxTotalExpansions:1/0},ncr:{xmlVersion:1.1}}),Wh=new kh.XMLParser({attributeNamePrefix:"",processEntities:{enabled:!0,maxTotalExpansions:1/0},htmlEntities:!0,entityDecoder:{setExternalEntities:(e)=>{Kt.setExternalEntities(e)},addInputEntities:(e)=>{Kt.addInputEntities(e)},reset:()=>{Kt.reset()},decode:(e)=>{return Kt.decode(e)},setXmlVersion:(e)=>{return}},ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>t.trim()===""&&t.includes(`
|
|
19
|
+
`)?"":void 0,maxNestedTags:1/0});function Qh(e){return Wh.parse(e,!0)}});var co=$((nd)=>{var Yh=uo(),Jh=/[&<>"]/g,Zh={"&":"&","<":"<",">":">",'"':"""};function vh(e){return e.replace(Jh,(t)=>Zh[t])}var ed=/[&"'<>\r\n\u0085\u2028]/g,td={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","
":"…","\u2028":"
"};function rd(e){return e.replace(ed,(t)=>td[t])}class rn{value;constructor(e){this.value=e}toString(){return rd(""+this.value)}}class _t{name;children;attributes={};static of(e,t,i){let s=new _t(e);if(t!==void 0)s.addChildNode(new rn(t));if(i!==void 0)s.withName(i);return s}constructor(e,t=[]){this.name=e,this.children=t}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){if(t!=null)this.attributes[e]=t;return this}cc(e,t,i=t){if(e[t]!=null){let s=_t.of(t,e[t]).withName(i);this.c(s)}}l(e,t,i,s){if(e[t]!=null)s().map((o)=>{o.withName(i),this.c(o)})}lc(e,t,i,s){if(e[t]!=null){let c=s(),o=new _t(i);c.map((a)=>{o.c(a)}),this.c(o)}}toString(){let e=Boolean(this.children.length),t=`<${this.name}`,i=this.attributes;for(let s of Object.keys(i)){let c=i[s];if(c!=null)t+=` ${s}="${vh(""+c)}"`}return t+=!e?"/>":`>${this.children.map((s)=>s.toString()).join("")}</${this.name}>`}}nd.parseXML=Yh.parseXML;nd.XmlNode=_t;nd.XmlText=rn});var Bd=$((pd)=>{var lo=Yi(),k=Vi(),De=Ji(),se=pe(),ee=Ee(),at=vi(),po=Hi(),ue=co();class ut{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){let i=t.getMemberSchemas(),s=Object.values(i).find((c)=>{return!!c.getMergedTraits().httpPayload});if(s){let c=s.getMergedTraits().mediaType;if(c)return c;else if(s.isStringSchema())return"text/plain";else if(s.isBlobSchema())return"application/octet-stream";else return e}else if(!t.isUnitSchema()){if(Object.values(i).find((o)=>{let{httpQuery:a,httpQueryParams:l,httpHeader:f,httpLabel:m,httpPrefixHeaders:g}=o.getMergedTraits();return!a&&!l&&!f&&!m&&g===void 0}))return e}}async getErrorSchemaOrThrowBaseException(e,t,i,s,c,o){let a=e;if(e.includes("#"))[,a]=e.split("#");let l={$metadata:c,$fault:i.statusCode<500?"client":"server"};if(!this.errorRegistry)throw Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:o?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:l}}catch(f){s.message=s.message??s.Message??"UnknownError";let m=this.errorRegistry,g=m.getBaseException();if(g){let _=m.getErrorCtor(g)??Error;throw this.decorateServiceException(Object.assign(new _({name:a}),l),s)}let b=s,w=b?.message??b?.Message??b?.Error?.Message??b?.Error?.message;throw this.decorateServiceException(Object.assign(Error(w),{name:a},l),s)}}compose(e,t,i){let s=i;if(t.includes("#"))[s]=t.split("#");let c=k.TypeRegistry.for(s),o=k.TypeRegistry.for("smithy.ts.sdk.synthetic."+i);e.copyFrom(c),e.copyFrom(o),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let i=e.Message??t.Message,s=De.decorateServiceException(e,t);if(i)s.message=i;let c=s.Error??{};c.Type=s.Error?.Type,c.Code=s.Error?.Code,c.Message=s.Error?.message??s.Error?.Message??i,s.Error=c;let o=s.$metadata.requestId;if(o)s.RequestId=o;return s}return De.decorateServiceException(e,t)}setQueryCompatError(e,t){let i=t.headers?.["x-amzn-query-error"];if(e!==void 0&&i!=null){let[s,c]=i.split(";"),o=Object.keys(e),a={Code:s,Type:c};e.Code=s,e.Type=c;for(let l=0;l<o.length;l++){let f=o[l];a[f==="message"?"Message":f]=e[f]}delete a.__type,e.Error=a}}queryCompatOutput(e,t){if(e.Error)t.Error=e.Error;if(e.Type)t.Type=e.Type;if(e.Code)t.Code=e.Code}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(i){return e.find((s)=>k.NormalizedSchema.of(s).getMergedTraits().awsQueryError?.[0]===t)}}}class mo extends lo.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:t,awsQueryCompatible:i}){super({defaultNamespace:e,errorTypeRegistries:t});this.awsQueryCompatible=!!i,this.mixin=new ut(this.awsQueryCompatible)}async serializeRequest(e,t,i){let s=await super.serializeRequest(e,t,i);if(this.awsQueryCompatible)s.headers["x-amzn-query-mode"]="true";return s}async handleError(e,t,i,s,c){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(s,i);let o=(()=>{let _=i.headers["x-amzn-query-error"];if(_&&this.awsQueryCompatible)return _.split(";")[0];return lo.loadSmithyRpcV2CborErrorCode(i,s)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,i,s,c,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),f=k.NormalizedSchema.of(a),m=s.message??s.Message??"UnknownError",b=new(this.compositeErrorRegistry.getErrorCtor(a)??Error)(m),w={};for(let[_,T]of f.structIterator())if(s[_]!=null)w[_]=this.deserializer.readValue(T,s[_]);if(this.awsQueryCompatible)this.mixin.queryCompatOutput(s,w);throw this.mixin.decorateServiceException(Object.assign(b,l,{$fault:f.getMergedTraits().error,message:m},w),s)}}var ad=(e)=>{if(e==null)return e;if(typeof e==="number"||typeof e==="bigint"){let t=Error(`Received number ${e} where a string was expected.`);return t.name="Warning",console.warn(t),String(e)}if(typeof e==="boolean"){let t=Error(`Received boolean ${e} where a string was expected.`);return t.name="Warning",console.warn(t),String(e)}return e},ud=(e)=>{if(e==null)return e;if(typeof e==="string"){let t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){let i=Error(`Received string "${e}" where a boolean was expected.`);i.name="Warning",console.warn(i)}return e!==""&&t!=="false"}return e},cd=(e)=>{if(e==null)return e;if(typeof e==="string"){let t=Number(e);if(t.toString()!==e){let i=Error(`Received string "${e}" where a number was expected.`);return i.name="Warning",console.warn(i),e}return t}return e};class Ue{serdeContext;setSerdeContext(e){this.serdeContext=e}}class sn{from;to;keys;constructor(e,t){this.from=e,this.to=t;let i=Object.keys(this.from),s=new Set(i);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}function ld(e,t,i){if(i?.source){let s=i.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||s!==String(t))if(s.includes("."))return new ee.NumericValue(s,"bigDecimal");else return BigInt(s)}}return t}var go=(e,t)=>De.collectBody(e,t).then((i)=>(t?.utf8Encoder??po.toUtf8)(i)),on=(e,t)=>go(e,t).then((i)=>{if(i.length)try{return JSON.parse(i)}catch(s){if(s?.name==="SyntaxError")Object.defineProperty(s,"$responseBodyText",{value:i});throw s}return{}}),hd=async(e,t)=>{let i=await on(e,t);return i.message=i.message??i.Message,i},ho=(e,t)=>Object.keys(e).find((i)=>i.toLowerCase()===t.toLowerCase()),nn=(e)=>{let t=e;if(typeof t==="number")t=t.toString();if(t.indexOf(",")>=0)t=t.split(",")[0];if(t.indexOf(":")>=0)t=t.split(":")[0];if(t.indexOf("#")>=0)t=t.split("#")[1];return t},an=(e,t)=>{let i=ho(e.headers,"x-amzn-errortype");if(i!==void 0)return nn(e.headers[i]);if(t&&typeof t==="object"){let s=ho(t,"code");if(s&&t[s]!==void 0)return nn(t[s]);if(t.__type!==void 0)return nn(t.__type)}};class un extends Ue{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,ld):await on(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let i=t!==null&&typeof t==="object",s=k.NormalizedSchema.of(e);if(i){if(s.isStructSchema()){let o=t,a=s.isUnionSchema(),l={},f=void 0,{jsonName:m}=this.settings;if(m)f={};let g;if(a)g=new sn(o,l);for(let[b,w]of s.structIterator()){let _=b;if(m)_=w.getMergedTraits().jsonName??_,f[_]=b;if(a)g.mark(_);if(o[_]!=null)l[b]=this._read(w,o[_])}if(a)g.writeUnknown();else if(typeof o.__type==="string")for(let b in o){let w=o[b],_=m?f[b]??b:b;if(!(_ in l))l[_]=w}return l}if(Array.isArray(t)&&s.isListSchema()){let o=s.getValueSchema(),a=[];for(let l of t)a.push(this._read(o,l));return a}if(s.isMapSchema()){let o=s.getValueSchema(),a={};for(let l in t)a[l]=this._read(o,t[l]);return a}}if(s.isBlobSchema()&&typeof t==="string")return at.fromBase64(t);let c=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof t==="string"&&c){if(c==="application/json"||c.endsWith("+json"))return ee.LazyJsonString.from(t);return t}if(s.isTimestampSchema()&&t!=null)switch(se.determineTimestampFormat(s,this.settings)){case 5:return ee.parseRfc3339DateTimeWithOffset(t);case 6:return ee.parseRfc7231DateTime(t);case 7:return ee.parseEpochTimestamp(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}if(s.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string"))return BigInt(t);if(s.isBigDecimalSchema()&&t!=null){if(t instanceof ee.NumericValue)return t;let o=t;if(o.type==="bigDecimal"&&"string"in o)return new ee.NumericValue(o.string,o.type);return new ee.NumericValue(String(t),"bigDecimal")}if(s.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return t}if(s.isDocumentSchema())if(i){let o=Array.isArray(t)?[]:{};for(let a in t){let l=t[a];if(l instanceof ee.NumericValue)o[a]=l;else o[a]=this._read(s,l)}return o}else return structuredClone(t);return t}}var fo=String.fromCharCode(925);class yo{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,t)=>{if(t instanceof ee.NumericValue){let i=`${fo+"nv"+this.counter++}_`+t.string;return this.values.set(`"${i}"`,t.string),i}if(typeof t==="bigint"){let i=t.toString(),s=`${fo+"b"+this.counter++}_`+i;return this.values.set(`"${s}"`,i),s}return t}}replaceInJson(e){if(this.stage===0)throw Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[t,i]of this.values)e=e.replace(t,i);return e}}class cn extends Ue{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=k.NormalizedSchema.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let i=new yo;return i.replaceInJson(JSON.stringify(this.buffer,i.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){if(this.write(e,t),typeof this.buffer==="object")this.buffer.__type=k.NormalizedSchema.of(e).getName(!0)}_write(e,t,i){let s=t!==null&&typeof t==="object",c=k.NormalizedSchema.of(e);if(s){if(c.isStructSchema()){let o=t,a={},{jsonName:l}=this.settings,f=void 0;if(l)f={};let m=0;for(let[g,b]of c.structIterator()){let w=this._write(b,o[g],c);if(w!==void 0){let _=g;if(l)_=b.getMergedTraits().jsonName??g,f[g]=_;a[_]=w,m++}}if(c.isUnionSchema()&&m===0){let{$unknown:g}=o;if(Array.isArray(g)){let[b,w]=g;a[b]=this._write(15,w)}}else if(typeof o.__type==="string")for(let g in o){let b=o[g],w=l?f[g]??g:g;if(!(w in a))a[w]=this._write(15,b)}return a}if(Array.isArray(t)&&c.isListSchema()){let o=c.getValueSchema(),a=[],l=!!c.getMergedTraits().sparse;for(let f of t)if(l||f!=null)a.push(this._write(o,f));return a}if(c.isMapSchema()){let o=c.getValueSchema(),a={},l=!!c.getMergedTraits().sparse;for(let f in t){let m=t[f];if(l||m!=null)a[f]=this._write(o,m)}return a}if(t instanceof Uint8Array&&(c.isBlobSchema()||c.isDocumentSchema())){if(c===this.rootSchema)return t;return(this.serdeContext?.base64Encoder??at.toBase64)(t)}if(t instanceof Date&&(c.isTimestampSchema()||c.isDocumentSchema()))switch(se.determineTimestampFormat(c,this.settings)){case 5:return t.toISOString().replace(".000Z","Z");case 6:return ee.dateToUtcString(t);case 7:return t.getTime()/1000;default:return console.warn("Missing timestamp format, using epoch seconds",t),t.getTime()/1000}if(t instanceof ee.NumericValue)this.useReplacer=!0}if(t===null&&i?.isStructSchema())return;if(c.isStringSchema()){if(typeof t>"u"&&c.isIdempotencyToken())return ee.generateIdempotencyToken();let o=c.getMergedTraits().mediaType;if(t!=null&&o){if(o==="application/json"||o.endsWith("+json"))return ee.LazyJsonString.from(t)}return t}if(typeof t==="number"&&c.isNumericSchema()){if(Math.abs(t)===1/0||isNaN(t))return String(t);return t}if(typeof t==="string"&&c.isBlobSchema()){if(c===this.rootSchema)return t;return(this.serdeContext?.base64Encoder??at.toBase64)(t)}if(typeof t==="bigint")this.useReplacer=!0;if(c.isDocumentSchema())if(s){let o=Array.isArray(t)?[]:{};for(let a in t){let l=t[a];if(l instanceof ee.NumericValue)this.useReplacer=!0,o[a]=l;else o[a]=this._write(c,l)}return o}else return structuredClone(t);return t}}class Yt extends Ue{settings;constructor(e){super();this.settings=e}createSerializer(){let e=new cn(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new un(this.settings);return e.setSerdeContext(this.serdeContext),e}}class Jt extends se.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:i,awsQueryCompatible:s,jsonCodec:c}){super({defaultNamespace:e,errorTypeRegistries:t});this.serviceTarget=i,this.codec=c??new Yt({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new ut(this.awsQueryCompatible)}async serializeRequest(e,t,i){let s=await super.serializeRequest(e,t,i);if(!s.path.endsWith("/"))s.path+="/";if(s.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,s.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible)s.headers["x-amzn-query-mode"]="true";if(k.deref(e.input)==="unit"||!s.body)s.body="{}";return s}getPayloadCodec(){return this.codec}async handleError(e,t,i,s,c){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(s,i);let o=an(i,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,i,s,c,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),f=k.NormalizedSchema.of(a),m=s.message??s.Message??"UnknownError",b=new(this.compositeErrorRegistry.getErrorCtor(a)??Error)(m),w={},_=this.codec.createDeserializer();for(let[T,P]of f.structIterator())if(s[T]!=null)w[T]=_.readObject(P,s[T]);if(this.awsQueryCompatible)this.mixin.queryCompatOutput(s,w);throw this.mixin.decorateServiceException(Object.assign(b,l,{$fault:f.getMergedTraits().error,message:m},w),s)}}class bo extends Jt{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:i,awsQueryCompatible:s,jsonCodec:c}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:i,awsQueryCompatible:s,jsonCodec:c})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class Eo extends Jt{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:i,awsQueryCompatible:s,jsonCodec:c}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:i,awsQueryCompatible:s,jsonCodec:c})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class No extends se.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ut;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let i={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new Yt(i),this.serializer=new se.HttpInterceptingShapeSerializer(this.codec.createSerializer(),i),this.deserializer=new se.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),i)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,i){let s=await super.serializeRequest(e,t,i),c=k.NormalizedSchema.of(e.input);if(!s.headers["content-type"]){let o=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);if(o)s.headers["content-type"]=o}if(s.body==null&&s.headers["content-type"]===this.getDefaultContentType())s.body="{}";return s}async deserializeResponse(e,t,i){let s=await super.deserializeResponse(e,t,i),c=k.NormalizedSchema.of(e.output);for(let[o,a]of c.structIterator())if(a.getMemberTraits().httpPayload&&!(o in s))s[o]=null;return s}async handleError(e,t,i,s,c){let o=an(i,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:a,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,i,s,c),f=k.NormalizedSchema.of(a),m=s.message??s.Message??"UnknownError",b=new(this.compositeErrorRegistry.getErrorCtor(a)??Error)(m);await this.deserializeHttpMessage(a,t,i,s);let w={},_=this.codec.createDeserializer();for(let[T,P]of f.structIterator()){let V=P.getMergedTraits().jsonName??T;w[T]=_.readObject(P,s[V])}throw this.mixin.decorateServiceException(Object.assign(b,l,{$fault:f.getMergedTraits().error,message:m},w),s)}getDefaultContentType(){return"application/json"}}var dd=(e)=>{if(e==null)return;if(typeof e==="object"&&"__type"in e)delete e.__type;return De.expectUnion(e)};class Zt extends Ue{settings;stringDeserializer;constructor(e){super();this.settings=e,this.stringDeserializer=new se.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,i){let s=k.NormalizedSchema.of(e),c=s.getMemberSchemas();if(s.isStructSchema()&&s.isMemberSchema()&&!!Object.values(c).find((f)=>{return!!f.getMemberTraits().eventPayload})){let f={},m=Object.keys(c)[0];if(c[m].isBlobSchema())f[m]=t;else f[m]=this.read(c[m],t);return f}let a=(this.serdeContext?.utf8Encoder??po.toUtf8)(t),l=this.parseXml(a);return this.readSchema(e,i?l[i]:l)}readSchema(e,t){let i=k.NormalizedSchema.of(e);if(i.isUnitSchema())return;let s=i.getMergedTraits();if(i.isListSchema()&&!Array.isArray(t))return this.readSchema(i,[t]);if(t==null)return t;if(typeof t==="object"){let c=!!s.xmlFlattened;if(i.isListSchema()){let a=i.getValueSchema(),l=[],f=a.getMergedTraits().xmlName??"member",m=c?t:(t[0]??t)[f];if(m==null)return l;let g=Array.isArray(m)?m:[m];for(let b of g)l.push(this.readSchema(a,b));return l}let o={};if(i.isMapSchema()){let a=i.getKeySchema(),l=i.getValueSchema(),f;if(c)f=Array.isArray(t)?t:[t];else f=Array.isArray(t.entry)?t.entry:[t.entry];let m=a.getMergedTraits().xmlName??"key",g=l.getMergedTraits().xmlName??"value";for(let b of f){let w=b[m],_=b[g];o[w]=this.readSchema(l,_)}return o}if(i.isStructSchema()){let a=i.isUnionSchema(),l;if(a)l=new sn(t,o);for(let[f,m]of i.structIterator()){let g=m.getMergedTraits(),b=!g.httpPayload?m.getMemberTraits().xmlName??f:g.xmlName??m.getName();if(a)l.mark(b);if(t[b]!=null)o[f]=this.readSchema(m,t[b])}if(a)l.writeUnknown();return o}if(i.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${i.getName(!0)}`)}if(i.isListSchema())return[];if(i.isMapSchema()||i.isStructSchema())return{};return this.stringDeserializer.read(i,t)}parseXml(e){if(e.length){let t;try{t=ue.parseXML(e)}catch(o){if(o&&typeof o==="object")Object.defineProperty(o,"$responseBodyText",{value:e});throw o}let i="#text",s=Object.keys(t)[0],c=t[s];if(c[i])c[s]=c[i],delete c[i];return De.getValueFromTextNode(c)}return{}}}class ln extends Ue{settings;buffer;constructor(e){super();this.settings=e}write(e,t,i=""){if(this.buffer===void 0)this.buffer="";let s=k.NormalizedSchema.of(e);if(i&&!i.endsWith("."))i+=".";if(s.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array)this.writeKey(i),this.writeValue((this.serdeContext?.base64Encoder??at.toBase64)(t))}else if(s.isBooleanSchema()||s.isNumericSchema()||s.isStringSchema()){if(t!=null)this.writeKey(i),this.writeValue(String(t));else if(s.isIdempotencyToken())this.writeKey(i),this.writeValue(ee.generateIdempotencyToken())}else if(s.isBigIntegerSchema()){if(t!=null)this.writeKey(i),this.writeValue(String(t))}else if(s.isBigDecimalSchema()){if(t!=null)this.writeKey(i),this.writeValue(t instanceof ee.NumericValue?t.string:String(t))}else if(s.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(i),se.determineTimestampFormat(s,this.settings)){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(De.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1000));break}}else if(s.isDocumentSchema())if(Array.isArray(t))this.write(79,t,i);else if(t instanceof Date)this.write(4,t,i);else if(t instanceof Uint8Array)this.write(21,t,i);else if(t&&typeof t==="object")this.write(143,t,i);else this.writeKey(i),this.writeValue(String(t));else if(s.isListSchema()){if(Array.isArray(t))if(t.length===0){if(this.settings.serializeEmptyLists)this.writeKey(i),this.writeValue("")}else{let c=s.getValueSchema(),o=this.settings.flattenLists||s.getMergedTraits().xmlFlattened,a=1;for(let l of t){if(l==null)continue;let f=c.getMergedTraits(),m=this.getKey("member",f.xmlName,f.ec2QueryName),g=o?`${i}${a}`:`${i}${m}.${a}`;this.write(c,l,g),++a}}}else if(s.isMapSchema()){if(t&&typeof t==="object"){let c=s.getKeySchema(),o=s.getValueSchema(),a=s.getMergedTraits().xmlFlattened,l=1;for(let f in t){let m=t[f];if(m==null)continue;let g=c.getMergedTraits(),b=this.getKey("key",g.xmlName,g.ec2QueryName),w=a?`${i}${l}.${b}`:`${i}entry.${l}.${b}`,_=o.getMergedTraits(),T=this.getKey("value",_.xmlName,_.ec2QueryName),P=a?`${i}${l}.${T}`:`${i}entry.${l}.${T}`;this.write(c,f,w),this.write(o,m,P),++l}}}else if(s.isStructSchema()){if(t&&typeof t==="object"){let c=!1;for(let[o,a]of s.structIterator()){if(t[o]==null&&!a.isIdempotencyToken())continue;let l=a.getMergedTraits(),f=this.getKey(o,l.xmlName,l.ec2QueryName,"struct"),m=`${i}${f}`;this.write(a,t[o],m),c=!0}if(!c&&s.isUnionSchema()){let{$unknown:o}=t;if(Array.isArray(o)){let[a,l]=o,f=`${i}${a}`;this.write(15,l,f)}}}}else if(s.isUnitSchema());else throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${s.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,t,i,s){let{ec2:c,capitalizeKeys:o}=this.settings;if(c&&i)return i;let a=t??e;if(o&&s==="struct")return a[0].toUpperCase()+a.slice(1);return a}writeKey(e){if(e.endsWith("."))e=e.slice(0,e.length-1);this.buffer+=`&${se.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=se.extendedEncodeURIComponent(e)}}class hn extends se.RpcProtocol{options;serializer;deserializer;mixin=new ut;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries});this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new ln(t),this.deserializer=new Zt(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,i){let s=await super.serializeRequest(e,t,i);if(!s.path.endsWith("/"))s.path+="/";if(s.headers["content-type"]="application/x-www-form-urlencoded",k.deref(e.input)==="unit"||!s.body)s.body="";let c=e.name.split("#")[1]??e.name;if(s.body=`Action=${c}&Version=${this.options.version}`+s.body,s.body.endsWith("&"))s.body=s.body.slice(-1);return s}async deserializeResponse(e,t,i){let s=this.deserializer,c=k.NormalizedSchema.of(e.output),o={};if(i.statusCode>=300){let m=await se.collectBody(i.body,t);if(m.byteLength>0)Object.assign(o,await s.read(15,m));await this.handleError(e,t,i,o,this.deserializeMetadata(i))}for(let m in i.headers){let g=i.headers[m];delete i.headers[m],i.headers[m.toLowerCase()]=g}let a=e.name.split("#")[1]??e.name,l=c.isStructSchema()&&this.useNestedResult()?a+"Result":void 0,f=await se.collectBody(i.body,t);if(f.byteLength>0)Object.assign(o,await s.read(c,f,l));return o.$metadata=this.deserializeMetadata(i),o}useNestedResult(){return!0}async handleError(e,t,i,s,c){let o=this.loadQueryErrorCode(i,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let a=this.loadQueryError(s)??{},l=this.loadQueryErrorMessage(s);a.message=l,a.Error={Type:a.Type,Code:a.Code,Message:l};let{errorSchema:f,errorMetadata:m}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,i,a,c,this.mixin.findQueryCompatibleError),g=k.NormalizedSchema.of(f),w=new(this.compositeErrorRegistry.getErrorCtor(f)??Error)(l),_={Type:a.Error.Type,Code:a.Error.Code,Error:a.Error};for(let[T,P]of g.structIterator()){let V=P.getMergedTraits().xmlName??T,X=a[V]??s[V];_[T]=this.deserializer.readSchema(P,X)}throw this.mixin.decorateServiceException(Object.assign(w,m,{$fault:g.getMergedTraits().error,message:l},_),s)}loadQueryErrorCode(e,t){let i=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(i!==void 0)return i;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class wo extends hn{options;constructor(e){super(e);this.options=e;let t={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,t)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}var xo=(e,t)=>go(e,t).then((i)=>{if(i.length){let s;try{s=ue.parseXML(i)}catch(l){if(l&&typeof l==="object")Object.defineProperty(l,"$responseBodyText",{value:i});throw l}let c="#text",o=Object.keys(s)[0],a=s[o];if(a[c])a[o]=a[c],delete a[c];return De.getValueFromTextNode(a)}return{}}),fd=async(e,t)=>{let i=await xo(e,t);if(i.Error)i.Error.message=i.Error.message??i.Error.Message;return i},So=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"};class dn extends Ue{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){let i=k.NormalizedSchema.of(e);if(i.isStringSchema()&&typeof t==="string")this.stringBuffer=t;else if(i.isBlobSchema())this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??at.fromBase64)(t);else{this.buffer=this.writeStruct(i,t,void 0);let s=i.getMergedTraits();if(s.httpPayload&&!s.xmlName)this.buffer.withName(i.getName())}}flush(){if(this.byteBuffer!==void 0){let t=this.byteBuffer;return delete this.byteBuffer,t}if(this.stringBuffer!==void 0){let t=this.stringBuffer;return delete this.stringBuffer,t}let e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.xmlns)e.addAttribute("xmlns",this.settings.xmlNamespace)}return delete this.buffer,e.toString()}writeStruct(e,t,i){let s=e.getMergedTraits(),c=e.isMemberSchema()&&!s.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():s.xmlName??e.getName();if(!c||!e.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let o=ue.XmlNode.of(c),[a,l]=this.getXmlnsAttribute(e,i);for(let[m,g]of e.structIterator()){let b=t[m];if(b!=null||g.isIdempotencyToken()){if(g.getMergedTraits().xmlAttribute){o.addAttribute(g.getMergedTraits().xmlName??m,this.writeSimple(g,b));continue}if(g.isListSchema())this.writeList(g,b,o,l);else if(g.isMapSchema())this.writeMap(g,b,o,l);else if(g.isStructSchema())o.addChildNode(this.writeStruct(g,b,l));else{let w=ue.XmlNode.of(g.getMergedTraits().xmlName??g.getMemberName());this.writeSimpleInto(g,b,w,l),o.addChildNode(w)}}}let{$unknown:f}=t;if(f&&e.isUnionSchema()&&Array.isArray(f)&&Object.keys(t).length===1){let[m,g]=f,b=ue.XmlNode.of(m);if(typeof g!=="string")if(t instanceof ue.XmlNode||t instanceof ue.XmlText)o.addChildNode(t);else throw Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,g,b,l),o.addChildNode(b)}if(l)o.addAttribute(a,l);return o}writeList(e,t,i,s){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let c=e.getMergedTraits(),o=e.getValueSchema(),a=o.getMergedTraits(),l=!!a.sparse,f=!!c.xmlFlattened,[m,g]=this.getXmlnsAttribute(e,s),b=(w,_)=>{if(o.isListSchema())this.writeList(o,Array.isArray(_)?_:[_],w,g);else if(o.isMapSchema())this.writeMap(o,_,w,g);else if(o.isStructSchema()){let T=this.writeStruct(o,_,g);w.addChildNode(T.withName(f?c.xmlName??e.getMemberName():a.xmlName??"member"))}else{let T=ue.XmlNode.of(f?c.xmlName??e.getMemberName():a.xmlName??"member");this.writeSimpleInto(o,_,T,g),w.addChildNode(T)}};if(f){for(let w of t)if(l||w!=null)b(i,w)}else{let w=ue.XmlNode.of(c.xmlName??e.getMemberName());if(g)w.addAttribute(m,g);for(let _ of t)if(l||_!=null)b(w,_);i.addChildNode(w)}}writeMap(e,t,i,s,c=!1){if(!e.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let o=e.getMergedTraits(),a=e.getKeySchema(),f=a.getMergedTraits().xmlName??"key",m=e.getValueSchema(),g=m.getMergedTraits(),b=g.xmlName??"value",w=!!g.sparse,_=!!o.xmlFlattened,[T,P]=this.getXmlnsAttribute(e,s),V=(X,B,j)=>{let v=ue.XmlNode.of(f,B),[he,G]=this.getXmlnsAttribute(a,P);if(G)v.addAttribute(he,G);X.addChildNode(v);let me=ue.XmlNode.of(b);if(m.isListSchema())this.writeList(m,j,me,P);else if(m.isMapSchema())this.writeMap(m,j,me,P,!0);else if(m.isStructSchema())me=this.writeStruct(m,j,P);else this.writeSimpleInto(m,j,me,P);X.addChildNode(me)};if(_)for(let X in t){let B=t[X];if(w||B!=null){let j=ue.XmlNode.of(o.xmlName??e.getMemberName());V(j,X,B),i.addChildNode(j)}}else{let X;if(!c){if(X=ue.XmlNode.of(o.xmlName??e.getMemberName()),P)X.addAttribute(T,P);i.addChildNode(X)}for(let B in t){let j=t[B];if(w||j!=null){let v=ue.XmlNode.of("entry");V(v,B,j),(c?i:X).addChildNode(v)}}}}writeSimple(e,t){if(t===null)throw Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let i=k.NormalizedSchema.of(e),s=null;if(t&&typeof t==="object")if(i.isBlobSchema())s=(this.serdeContext?.base64Encoder??at.toBase64)(t);else if(i.isTimestampSchema()&&t instanceof Date)switch(se.determineTimestampFormat(i,this.settings)){case 5:s=t.toISOString().replace(".000Z","Z");break;case 6:s=De.dateToUtcString(t);break;case 7:s=String(t.getTime()/1000);break;default:console.warn("Missing timestamp format, using http date",t),s=De.dateToUtcString(t);break}else if(i.isBigDecimalSchema()&&t){if(t instanceof ee.NumericValue)return t.string;return String(t)}else if(i.isMapSchema()||i.isListSchema())throw Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${i.getName(!0)}`);if(i.isBooleanSchema()||i.isNumericSchema()||i.isBigIntegerSchema()||i.isBigDecimalSchema())s=String(t);if(i.isStringSchema())if(t===void 0&&i.isIdempotencyToken())s=ee.generateIdempotencyToken();else s=String(t);if(s===null)throw Error(`Unhandled schema-value pair ${i.getName(!0)}=${t}`);return s}writeSimpleInto(e,t,i,s){let c=this.writeSimple(e,t),o=k.NormalizedSchema.of(e),a=new ue.XmlText(c),[l,f]=this.getXmlnsAttribute(o,s);if(f)i.addAttribute(l,f);i.addChildNode(a)}getXmlnsAttribute(e,t){let i=e.getMergedTraits(),[s,c]=i.xmlNamespace??[];if(c&&c!==t)return[s?`xmlns:${s}`:"xmlns",c];return[void 0,void 0]}}class fn extends Ue{settings;constructor(e){super();this.settings=e}createSerializer(){let e=new dn(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Zt(this.settings);return e.setSerdeContext(this.serdeContext),e}}class _o extends se.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ut;constructor(e){super(e);let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new fn(t),this.serializer=new se.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t),this.deserializer=new se.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,i){let s=await super.serializeRequest(e,t,i),c=k.NormalizedSchema.of(e.input);if(!s.headers["content-type"]){let o=this.mixin.resolveRestContentType(this.getDefaultContentType(),c);if(o)s.headers["content-type"]=o}if(typeof s.body==="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(c))s.body='<?xml version="1.0" encoding="UTF-8"?>'+s.body;return s}async deserializeResponse(e,t,i){return super.deserializeResponse(e,t,i)}async handleError(e,t,i,s,c){let o=So(i,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace),s.Error&&typeof s.Error==="object"){for(let T of Object.keys(s.Error))if(s[T]=s.Error[T],T.toLowerCase()==="message")s.message=s.Error[T]}if(s.RequestId&&!c.requestId)c.requestId=s.RequestId;let{errorSchema:a,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,i,s,c),f=k.NormalizedSchema.of(a),m=s.Error?.message??s.Error?.Message??s.message??s.Message??"UnknownError",b=new(this.compositeErrorRegistry.getErrorCtor(a)??Error)(m);await this.deserializeHttpMessage(a,t,i,s);let w={},_=this.codec.createDeserializer();for(let[T,P]of f.structIterator()){let V=P.getMergedTraits().xmlName??T,X=s.Error?.[V]??s[V];w[T]=_.readSchema(P,X)}throw this.mixin.decorateServiceException(Object.assign(b,l,{$fault:f.getMergedTraits().error,message:m},w),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}}pd.AwsEc2QueryProtocol=wo;pd.AwsJson1_0Protocol=bo;pd.AwsJson1_1Protocol=Eo;pd.AwsJsonRpcProtocol=Jt;pd.AwsQueryProtocol=hn;pd.AwsRestJsonProtocol=No;pd.AwsRestXmlProtocol=_o;pd.AwsSmithyRpcV2CborProtocol=mo;pd.JsonCodec=Yt;pd.JsonShapeDeserializer=un;pd.JsonShapeSerializer=cn;pd.QueryShapeSerializer=ln;pd.XmlCodec=fn;pd.XmlShapeDeserializer=Zt;pd.XmlShapeSerializer=dn;pd._toBool=ud;pd._toNum=cd;pd._toStr=ad;pd.awsExpectUnion=dd;pd.loadRestJsonErrorCode=an;pd.loadRestXmlErrorCode=So;pd.parseJsonBody=on;pd.parseJsonErrorBody=hd;pd.parseXmlBody=xo;pd.parseXmlErrorBody=fd});var zd=$((vt)=>{Object.defineProperty(vt,"__esModule",{value:!0});vt.toBase64=vt.fromBase64=void 0;var To=Ee();Object.defineProperty(vt,"fromBase64",{enumerable:!0,get:function(){return To.fromBase64}});Object.defineProperty(vt,"toBase64",{enumerable:!0,get:function(){return To.toBase64}})});
|
|
20
|
+
export{bl as Z3,Na as _3,Oa as $3,Ua as a4,qn as b4,Xn as c4,es as d4,hs as e4,gr as f4,Cu as g4,Ru as h4,ju as i4,Hu as j4,Nl as k4,wl as l4,Sl as m4,Ai as n4,Gl as o4,Ql as p4,ds as q4,Jl as r4,eh as s4,Hi as t4,Bd as u4,zd as v4,Zu as w4,ec as x4};
|