@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.
Files changed (642) hide show
  1. package/bin/claudio +7 -0
  2. package/dist/chunks/AgentTool-0.1.14-cdr5h1g4.mjs +1 -0
  3. package/dist/chunks/App-0.1.14-pg2tqqjz.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.14-e86h3nff.mjs +1 -0
  5. package/dist/chunks/{AssistantSessionChooser-0.1.12-x3zt5579.mjs → AssistantSessionChooser-0.1.14-tf848k8v.mjs} +1 -1
  6. package/dist/chunks/AutoModeOptInDialog-0.1.14-ftdkaf8h.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.14-d45z21x5.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.14-dzhpgrhm.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.1.14-y2v8vg76.mjs +1 -0
  10. package/dist/chunks/{DiffDialog-0.1.12-tzjdg5ys.mjs → DiffDialog-0.1.14-wtx2wmbs.mjs} +1 -1
  11. package/dist/chunks/Doctor-0.1.14-rhryp3qj.mjs +1 -0
  12. package/dist/chunks/Grove-0.1.14-4pt83x25.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.1.14-xtdr5bmp.mjs +1 -0
  14. package/dist/chunks/{InProcessTransport-0.1.12-xnrc78z1.mjs → InProcessTransport-0.1.14-wdqgcpb4.mjs} +1 -1
  15. package/dist/chunks/InvalidConfigDialog-0.1.14-rx2djmka.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-0.1.14-nhkj2max.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-0.1.14-f6hf3ymp.mjs +1 -0
  18. package/dist/chunks/Onboarding-0.1.14-1rddgg2b.mjs +1 -0
  19. package/dist/chunks/ProviderManager-0.1.14-2d77t0cr.mjs +1 -0
  20. package/dist/chunks/REPL-0.1.14-rz1jsayd.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-0.1.14-79hg5s2w.mjs +1 -0
  22. package/dist/chunks/{SnapshotUpdateDialog-0.1.12-f1byjres.mjs → SnapshotUpdateDialog-0.1.14-sbjnsz3c.mjs} +1 -1
  23. package/dist/chunks/TeleportProgress-0.1.14-411m3y24.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-0.1.14-v6ytg24w.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-0.1.14-8wfa8twy.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-0.1.14-175xkeyy.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-0.1.14-rpbvvb5j.mjs +1 -0
  28. package/dist/chunks/TrustDialog-0.1.14-zvmfmtg5.mjs +1 -0
  29. package/dist/chunks/activeProvider-0.1.14-5cpywex1.mjs +1 -0
  30. package/dist/chunks/add-dir-0.1.14-q700x1tp.mjs +1 -0
  31. package/dist/chunks/agents-0.1.14-nm4k11re.mjs +3 -0
  32. package/dist/chunks/{agents-0.1.12-vfwpnn0d.mjs → agents-0.1.14-pjr42t23.mjs} +2 -2
  33. package/dist/chunks/api-0.1.14-v09922m9.mjs +1 -0
  34. package/dist/chunks/{asciicast-0.1.12-nwzfr5gz.mjs → asciicast-0.1.14-kgp9j4z6.mjs} +1 -1
  35. package/dist/chunks/assistant-0.1.14-yt6v1sjy.mjs +1 -0
  36. package/dist/chunks/auth-0.1.14-vg6ez70v.mjs +1 -0
  37. package/dist/chunks/{auth-0.1.12-vhdwtwhb.mjs → auth-0.1.14-vj6095mm.mjs} +1 -1
  38. package/dist/chunks/{autoMode-0.1.12-xjr5qd6q.mjs → autoMode-0.1.14-jxse6h16.mjs} +1 -1
  39. package/dist/chunks/backgroundHousekeeping-0.1.14-bh13ez8a.mjs +1 -0
  40. package/dist/chunks/branch-0.1.14-r5tt7cec.mjs +4 -0
  41. package/dist/chunks/{bridgePointer-0.1.12-vdj4j4ke.mjs → bridgePointer-0.1.14-2w1wvxgt.mjs} +1 -1
  42. package/dist/chunks/btw-0.1.14-j1cexrtn.mjs +1 -0
  43. package/dist/chunks/{buddy-0.1.12-4q50s2x4.mjs → buddy-0.1.14-r4nmfbke.mjs} +1 -1
  44. package/dist/chunks/cacache-0.1.14-3vw5qkqs.mjs +1 -0
  45. package/dist/chunks/{cache-probe-0.1.12-4s8cc2km.mjs → cache-probe-0.1.14-zfb6aw4f.mjs} +1 -1
  46. package/dist/chunks/{cacheStats-0.1.12-qqcw6b5n.mjs → cacheStats-0.1.14-15eahew3.mjs} +1 -1
  47. package/dist/chunks/caches-0.1.14-et2zg3m5.mjs +1 -0
  48. package/dist/chunks/{claudeDesktop-0.1.12-1yrkynq4.mjs → claudeDesktop-0.1.14-0df0z4v6.mjs} +1 -1
  49. package/dist/chunks/claudemd-0.1.14-exzt8psa.mjs +1 -0
  50. package/dist/chunks/clear-0.1.14-62gnxkg3.mjs +1 -0
  51. package/dist/chunks/clearTerminal-0.1.14-5p1j5sbv.mjs +1 -0
  52. package/dist/chunks/cli-0.1.14-08ambmnj.mjs +2 -0
  53. package/dist/chunks/cli-0.1.14-0a8ckx07.mjs +2 -0
  54. package/dist/chunks/cli-0.1.14-0ctjta81.mjs +5 -0
  55. package/dist/chunks/{cli-0.1.12-faa9mx3m.mjs → cli-0.1.14-0kzzfe41.mjs} +2 -2
  56. package/dist/chunks/cli-0.1.14-0nhaxy76.mjs +4 -0
  57. package/dist/chunks/{cli-0.1.12-q63qrz06.mjs → cli-0.1.14-0x3m90bk.mjs} +2 -2
  58. package/dist/chunks/{cli-0.1.12-v000x470.mjs → cli-0.1.14-16jrehc2.mjs} +2 -2
  59. package/dist/chunks/{cli-0.1.12-352pjhkh.mjs → cli-0.1.14-1g5jq0j8.mjs} +2 -2
  60. package/dist/chunks/cli-0.1.14-1shkmy81.mjs +2 -0
  61. package/dist/chunks/{cli-0.1.12-trdq9d6x.mjs → cli-0.1.14-1xkst5wv.mjs} +2 -2
  62. package/dist/chunks/{cli-0.1.12-rwhrpb6w.mjs → cli-0.1.14-244fknyr.mjs} +2 -2
  63. package/dist/chunks/{cli-0.1.12-1x06khjr.mjs → cli-0.1.14-25ta9abj.mjs} +2 -2
  64. package/dist/chunks/{cli-0.1.12-0vf5f6qn.mjs → cli-0.1.14-28exj8zm.mjs} +2 -2
  65. package/dist/chunks/cli-0.1.14-2e2jfccr.mjs +2 -0
  66. package/dist/chunks/{cli-0.1.12-vzga2are.mjs → cli-0.1.14-2f7s5xbd.mjs} +6 -6
  67. package/dist/chunks/{cli-0.1.12-rzpc0tr9.mjs → cli-0.1.14-2mzb5ath.mjs} +2 -2
  68. package/dist/chunks/cli-0.1.14-373staaj.mjs +2 -0
  69. package/dist/chunks/cli-0.1.14-39y8qfj7.mjs +2 -0
  70. package/dist/chunks/cli-0.1.14-3m63hy2a.mjs +3 -0
  71. package/dist/chunks/cli-0.1.14-3scecgzx.mjs +6 -0
  72. package/dist/chunks/{cli-0.1.12-g2s9mjr6.mjs → cli-0.1.14-3w7fbjhy.mjs} +2 -2
  73. package/dist/chunks/{cli-0.1.12-9pq0gse0.mjs → cli-0.1.14-3xj419mp.mjs} +2 -2
  74. package/dist/chunks/{cli-0.1.12-yk12dgnx.mjs → cli-0.1.14-3yj4dkmn.mjs} +2 -2
  75. package/dist/chunks/cli-0.1.14-3zj4s594.mjs +2 -0
  76. package/dist/chunks/{cli-0.1.12-ae3e3ffp.mjs → cli-0.1.14-42sm5vzr.mjs} +2 -2
  77. package/dist/chunks/cli-0.1.14-442a367x.mjs +2 -0
  78. package/dist/chunks/{cli-0.1.12-jqrk975g.mjs → cli-0.1.14-473sgexj.mjs} +2 -2
  79. package/dist/chunks/{cli-0.1.12-6238zg7k.mjs → cli-0.1.14-4mde8z7h.mjs} +2 -2
  80. package/dist/chunks/{cli-0.1.12-9v01t95v.mjs → cli-0.1.14-4tmbgg29.mjs} +2 -2
  81. package/dist/chunks/cli-0.1.14-4wdh3k7y.mjs +2 -0
  82. package/dist/chunks/{cli-0.1.12-vxej5jdm.mjs → cli-0.1.14-59axynr8.mjs} +2 -2
  83. package/dist/chunks/{cli-0.1.12-qsh4sj4y.mjs → cli-0.1.14-5brvxst8.mjs} +2 -2
  84. package/dist/chunks/cli-0.1.14-5e5kkjam.mjs +2 -0
  85. package/dist/chunks/cli-0.1.14-5rp4y3q2.mjs +2 -0
  86. package/dist/chunks/{cli-0.1.12-0eznapyf.mjs → cli-0.1.14-5te1nbdc.mjs} +2 -2
  87. package/dist/chunks/cli-0.1.14-68wbwy40.mjs +4 -0
  88. package/dist/chunks/cli-0.1.14-6cjjzttb.mjs +3 -0
  89. package/dist/chunks/{cli-0.1.12-v8j9zstg.mjs → cli-0.1.14-71m91842.mjs} +2 -2
  90. package/dist/chunks/{cli-0.1.12-0kqx19vz.mjs → cli-0.1.14-71sp86jb.mjs} +2 -2
  91. package/dist/chunks/{cli-0.1.12-d0es0fxd.mjs → cli-0.1.14-77ha4n58.mjs} +2 -2
  92. package/dist/chunks/{cli-0.1.12-a2qh6gjr.mjs → cli-0.1.14-7zjhrz42.mjs} +3 -3
  93. package/dist/chunks/{cli-0.1.12-r6f9sy54.mjs → cli-0.1.14-7zz7abpc.mjs} +2 -2
  94. package/dist/chunks/cli-0.1.14-86gckvrm.mjs +2 -0
  95. package/dist/chunks/cli-0.1.14-893g12wf.mjs +2 -0
  96. package/dist/chunks/cli-0.1.14-8fr10t94.mjs +17 -0
  97. package/dist/chunks/{cli-0.1.12-3ywnr2v1.mjs → cli-0.1.14-90zkq8jm.mjs} +2 -2
  98. package/dist/chunks/cli-0.1.14-9b8kspnd.mjs +2 -0
  99. package/dist/chunks/cli-0.1.14-9evp0ewn.mjs +2 -0
  100. package/dist/chunks/cli-0.1.14-9gem156t.mjs +2 -0
  101. package/dist/chunks/{cli-0.1.12-hsw67esw.mjs → cli-0.1.14-9kxzs20h.mjs} +2 -2
  102. package/dist/chunks/{cli-0.1.12-4wwhk7dc.mjs → cli-0.1.14-9vc52dnj.mjs} +2 -2
  103. package/dist/chunks/cli-0.1.14-a15xdexp.mjs +12 -0
  104. package/dist/chunks/cli-0.1.14-a6kwmqhz.mjs +16 -0
  105. package/dist/chunks/{cli-0.1.12-37ga9zc2.mjs → cli-0.1.14-a9ytrehs.mjs} +2 -2
  106. package/dist/chunks/{cli-0.1.12-7ehqw1dk.mjs → cli-0.1.14-ab0rxxvk.mjs} +2 -2
  107. package/dist/chunks/{cli-0.1.12-mr41yjpw.mjs → cli-0.1.14-adz0gnzy.mjs} +2 -2
  108. package/dist/chunks/{cli-0.1.12-ktpqrbjc.mjs → cli-0.1.14-aky5tegx.mjs} +2 -2
  109. package/dist/chunks/{cli-0.1.12-vgbc3g9x.mjs → cli-0.1.14-akz49g5v.mjs} +2 -2
  110. package/dist/chunks/{cli-0.1.12-sgtpyf6y.mjs → cli-0.1.14-as1s0b0t.mjs} +2 -2
  111. package/dist/chunks/cli-0.1.14-as9nq99n.mjs +2 -0
  112. package/dist/chunks/{cli-0.1.12-5exp787z.mjs → cli-0.1.14-ba919tmj.mjs} +2 -2
  113. package/dist/chunks/cli-0.1.14-bat0c779.mjs +2 -0
  114. package/dist/chunks/{cli-0.1.12-v0510w04.mjs → cli-0.1.14-bgqm4vsk.mjs} +2 -2
  115. package/dist/chunks/{cli-0.1.12-756ngehz.mjs → cli-0.1.14-c0bv9eha.mjs} +2 -2
  116. package/dist/chunks/{cli-0.1.12-f0x1y6nn.mjs → cli-0.1.14-c4v2kfdn.mjs} +2 -2
  117. package/dist/chunks/{cli-0.1.12-xekep4qg.mjs → cli-0.1.14-canpypsb.mjs} +2 -2
  118. package/dist/chunks/{cli-0.1.12-g3ycbjxk.mjs → cli-0.1.14-cdby401e.mjs} +2 -2
  119. package/dist/chunks/cli-0.1.14-ch9c9c38.mjs +2 -0
  120. package/dist/chunks/{cli-0.1.12-nv2m8kgk.mjs → cli-0.1.14-ckjcet41.mjs} +2 -2
  121. package/dist/chunks/{cli-0.1.12-c23pyffx.mjs → cli-0.1.14-cp2pada5.mjs} +2 -2
  122. package/dist/chunks/cli-0.1.14-d1edbjh4.mjs +25 -0
  123. package/dist/chunks/{cli-0.1.12-z8eybrhz.mjs → cli-0.1.14-d483gd53.mjs} +2 -2
  124. package/dist/chunks/{cli-0.1.12-d8m01qtm.mjs → cli-0.1.14-d4zkffre.mjs} +2 -2
  125. package/dist/chunks/{cli-0.1.12-ps94e9y5.mjs → cli-0.1.14-dcgxqsyp.mjs} +2 -2
  126. package/dist/chunks/cli-0.1.14-dntkrp1j.mjs +134 -0
  127. package/dist/chunks/cli-0.1.14-dq7jkw1n.mjs +2 -0
  128. package/dist/chunks/cli-0.1.14-dqads3y3.mjs +2 -0
  129. package/dist/chunks/{cli-0.1.12-8znn9f50.mjs → cli-0.1.14-dt11hwkv.mjs} +2 -2
  130. package/dist/chunks/{cli-0.1.12-kys514qx.mjs → cli-0.1.14-dw74ppax.mjs} +2 -2
  131. package/dist/chunks/cli-0.1.14-dz2jvye2.mjs +2 -0
  132. package/dist/chunks/cli-0.1.14-e40hm9sd.mjs +2 -0
  133. package/dist/chunks/{cli-0.1.12-2zqgfhrb.mjs → cli-0.1.14-edjtfw4q.mjs} +2 -2
  134. package/dist/chunks/cli-0.1.14-efhhkgkx.mjs +2 -0
  135. package/dist/chunks/cli-0.1.14-eq0gbnpg.mjs +2 -0
  136. package/dist/chunks/cli-0.1.14-et8yewbf.mjs +2 -0
  137. package/dist/chunks/cli-0.1.14-fdpfr31f.mjs +2 -0
  138. package/dist/chunks/{cli-0.1.12-mwp84gtr.mjs → cli-0.1.14-fhfj87ej.mjs} +2 -2
  139. package/dist/chunks/{cli-0.1.12-zs5rpqmb.mjs → cli-0.1.14-fmgz6tx2.mjs} +3 -3
  140. package/dist/chunks/{cli-0.1.12-ds2mn8zn.mjs → cli-0.1.14-fmmxw3gj.mjs} +2 -2
  141. package/dist/chunks/{cli-0.1.12-5ye0t0xd.mjs → cli-0.1.14-fspxpmh7.mjs} +2 -2
  142. package/dist/chunks/{cli-0.1.12-h0d833vg.mjs → cli-0.1.14-ftjxb57b.mjs} +4 -4
  143. package/dist/chunks/{cli-0.1.12-wdmxm11z.mjs → cli-0.1.14-g5q2xqp3.mjs} +2 -2
  144. package/dist/chunks/cli-0.1.14-gdm27acz.mjs +2 -0
  145. package/dist/chunks/{cli-0.1.12-ytxphavm.mjs → cli-0.1.14-harz1d9d.mjs} +2 -2
  146. package/dist/chunks/{cli-0.1.12-qn20n18h.mjs → cli-0.1.14-heevc19y.mjs} +5 -5
  147. package/dist/chunks/{cli-0.1.12-04jw23rj.mjs → cli-0.1.14-hjktwgtk.mjs} +2 -2
  148. package/dist/chunks/cli-0.1.14-hkaqyhx1.mjs +2 -0
  149. package/dist/chunks/{cli-0.1.12-4syxz3pe.mjs → cli-0.1.14-hvfg45y0.mjs} +2 -2
  150. package/dist/chunks/{cli-0.1.12-04v3yab2.mjs → cli-0.1.14-hxvzvfr2.mjs} +3 -3
  151. package/dist/chunks/cli-0.1.14-j5sbzwhy.mjs +5045 -0
  152. package/dist/chunks/cli-0.1.14-ja2ctrem.mjs +2 -0
  153. package/dist/chunks/{cli-0.1.12-m6jeef2z.mjs → cli-0.1.14-jbn4ywda.mjs} +2 -2
  154. package/dist/chunks/{cli-0.1.12-7xsa2bcp.mjs → cli-0.1.14-jf8019sb.mjs} +2 -2
  155. package/dist/chunks/cli-0.1.14-jnfs73kb.mjs +2 -0
  156. package/dist/chunks/{cli-0.1.12-4qedbzt3.mjs → cli-0.1.14-jpe9sxch.mjs} +2 -2
  157. package/dist/chunks/{cli-0.1.12-7mjpbm22.mjs → cli-0.1.14-k8nwm06m.mjs} +2 -2
  158. package/dist/chunks/{cli-0.1.12-j6hwb68p.mjs → cli-0.1.14-k9jcmxtd.mjs} +2 -2
  159. package/dist/chunks/cli-0.1.14-ka0xhrv6.mjs +2 -0
  160. package/dist/chunks/cli-0.1.14-kcrsww4s.mjs +2 -0
  161. package/dist/chunks/{cli-0.1.12-bh7jp3zk.mjs → cli-0.1.14-khtq9cgy.mjs} +2 -2
  162. package/dist/chunks/{cli-0.1.12-j6gjfwh5.mjs → cli-0.1.14-kmsvd61a.mjs} +2 -2
  163. package/dist/chunks/{cli-0.1.12-zk49aaxv.mjs → cli-0.1.14-kn1f2x94.mjs} +2 -2
  164. package/dist/chunks/cli-0.1.14-kpsh76mj.mjs +2 -0
  165. package/dist/chunks/{cli-0.1.12-34gqc6yf.mjs → cli-0.1.14-kt6sq4nr.mjs} +2 -2
  166. package/dist/chunks/{cli-0.1.12-w0qbr98a.mjs → cli-0.1.14-ktz3cgwa.mjs} +2 -2
  167. package/dist/chunks/{cli-0.1.12-y04asmqh.mjs → cli-0.1.14-kv650aha.mjs} +2 -2
  168. package/dist/chunks/{cli-0.1.12-024a8zz7.mjs → cli-0.1.14-m75ce5ve.mjs} +2 -2
  169. package/dist/chunks/cli-0.1.14-m7khgn2k.mjs +2 -0
  170. package/dist/chunks/{cli-0.1.12-fqpxr3qb.mjs → cli-0.1.14-m7xchegb.mjs} +2 -2
  171. package/dist/chunks/{cli-0.1.12-bhxgr018.mjs → cli-0.1.14-mgcmwvcn.mjs} +2 -2
  172. package/dist/chunks/{cli-0.1.12-238c85zt.mjs → cli-0.1.14-mngn74ga.mjs} +2 -2
  173. package/dist/chunks/cli-0.1.14-mx9yse7m.mjs +2 -0
  174. package/dist/chunks/{cli-0.1.12-ng34ay3g.mjs → cli-0.1.14-nbvvdkk2.mjs} +1 -1
  175. package/dist/chunks/{cli-0.1.12-830kqdpq.mjs → cli-0.1.14-nkza93de.mjs} +2 -2
  176. package/dist/chunks/cli-0.1.14-nmmtd1d6.mjs +2 -0
  177. package/dist/chunks/cli-0.1.14-nnr43nyg.mjs +2 -0
  178. package/dist/chunks/{cli-0.1.12-xj3mv67x.mjs → cli-0.1.14-nprcbhwn.mjs} +2 -2
  179. package/dist/chunks/{cli-0.1.12-86nmrm6g.mjs → cli-0.1.14-ntq8w1ss.mjs} +2 -2
  180. package/dist/chunks/{cli-0.1.12-73k5qd97.mjs → cli-0.1.14-nxphqjb4.mjs} +7 -10
  181. package/dist/chunks/{cli-0.1.12-8qvgy8xr.mjs → cli-0.1.14-nzsj259d.mjs} +2 -2
  182. package/dist/chunks/cli-0.1.14-qe5zyvfh.mjs +2 -0
  183. package/dist/chunks/{cli-0.1.12-1hv04bp7.mjs → cli-0.1.14-qn4ftczz.mjs} +1 -1
  184. package/dist/chunks/{cli-0.1.12-4sh0f4y1.mjs → cli-0.1.14-qyx55m6c.mjs} +2 -2
  185. package/dist/chunks/cli-0.1.14-qzcceap6.mjs +20 -0
  186. package/dist/chunks/{cli-0.1.12-s0cwq66w.mjs → cli-0.1.14-r00mjm41.mjs} +2 -2
  187. package/dist/chunks/cli-0.1.14-r46jh9af.mjs +2 -0
  188. package/dist/chunks/{cli-0.1.12-c28bme4j.mjs → cli-0.1.14-r5qyt63x.mjs} +2 -2
  189. package/dist/chunks/{cli-0.1.12-erggrdth.mjs → cli-0.1.14-rc5yd94n.mjs} +3 -3
  190. package/dist/chunks/{cli-0.1.12-cxn1ke77.mjs → cli-0.1.14-rtstk94r.mjs} +2 -2
  191. package/dist/chunks/{cli-0.1.12-ra3sby5b.mjs → cli-0.1.14-s9m1y93w.mjs} +2 -2
  192. package/dist/chunks/cli-0.1.14-sb7dm65b.mjs +2 -0
  193. package/dist/chunks/{cli-0.1.12-bddm1g1s.mjs → cli-0.1.14-seq2fm2d.mjs} +2 -2
  194. package/dist/chunks/cli-0.1.14-sn1rf71y.mjs +2 -0
  195. package/dist/chunks/{cli-0.1.12-rwzav5h1.mjs → cli-0.1.14-stv1d0q3.mjs} +2 -2
  196. package/dist/chunks/cli-0.1.14-svqkx41a.mjs +2 -0
  197. package/dist/chunks/cli-0.1.14-t3fga5je.mjs +2 -0
  198. package/dist/chunks/{cli-0.1.12-a5h71tt8.mjs → cli-0.1.14-ta3w93yb.mjs} +2 -2
  199. package/dist/chunks/{cli-0.1.12-t8712dbc.mjs → cli-0.1.14-tkb5t0xv.mjs} +2 -2
  200. package/dist/chunks/{cli-0.1.12-7da43cy1.mjs → cli-0.1.14-tqexnkmz.mjs} +2 -2
  201. package/dist/chunks/{cli-0.1.12-41zq3gv6.mjs → cli-0.1.14-tsth8deg.mjs} +1 -1
  202. package/dist/chunks/cli-0.1.14-tyv29sz9.mjs +2 -0
  203. package/dist/chunks/cli-0.1.14-v2acyy7r.mjs +4 -0
  204. package/dist/chunks/{cli-0.1.12-9gs0g8yb.mjs → cli-0.1.14-v9q1cxjy.mjs} +2 -2
  205. package/dist/chunks/{cli-0.1.12-c47ape20.mjs → cli-0.1.14-vp1kn532.mjs} +2 -2
  206. package/dist/chunks/cli-0.1.14-w3rwfr1d.mjs +2 -0
  207. package/dist/chunks/{cli-0.1.12-tyt09z73.mjs → cli-0.1.14-w6nzk5dc.mjs} +2 -2
  208. package/dist/chunks/cli-0.1.14-w8efvbh6.mjs +2 -0
  209. package/dist/chunks/{cli-0.1.12-awb2yac7.mjs → cli-0.1.14-we6s7jfg.mjs} +2 -2
  210. package/dist/chunks/{cli-0.1.12-bjzb0sjt.mjs → cli-0.1.14-wgatq2fj.mjs} +2 -2
  211. package/dist/chunks/{cli-0.1.12-k2164g7e.mjs → cli-0.1.14-whe4bxfr.mjs} +2 -2
  212. package/dist/chunks/cli-0.1.14-wwehdfwx.mjs +9 -0
  213. package/dist/chunks/{cli-0.1.12-0xzdygm2.mjs → cli-0.1.14-wymtdw5f.mjs} +2 -2
  214. package/dist/chunks/{cli-0.1.12-actnmgw5.mjs → cli-0.1.14-wz5yr49j.mjs} +2 -2
  215. package/dist/chunks/{cli-0.1.12-a2frnpdd.mjs → cli-0.1.14-x88ypr2r.mjs} +2 -2
  216. package/dist/chunks/cli-0.1.14-xp6rc33g.mjs +2 -0
  217. package/dist/chunks/{cli-0.1.12-6ddq5n4e.mjs → cli-0.1.14-y2wxptpk.mjs} +2 -2
  218. package/dist/chunks/cli-0.1.14-y55hrwdp.mjs +3 -0
  219. package/dist/chunks/{cli-0.1.12-wcdh3m4s.mjs → cli-0.1.14-y56629hj.mjs} +2 -2
  220. package/dist/chunks/{cli-0.1.12-g728hcdr.mjs → cli-0.1.14-yagh75p5.mjs} +2 -2
  221. package/dist/chunks/cli-0.1.14-ydm3fwx1.mjs +2 -0
  222. package/dist/chunks/cli-0.1.14-yfc7weqn.mjs +821 -0
  223. package/dist/chunks/{cli-0.1.12-qrx9nssg.mjs → cli-0.1.14-yphht6rx.mjs} +2 -2
  224. package/dist/chunks/{cli-0.1.12-kzd4y6yq.mjs → cli-0.1.14-yxce1bdc.mjs} +2 -2
  225. package/dist/chunks/cli-0.1.14-yxq1tr3a.mjs +2 -0
  226. package/dist/chunks/{cli-0.1.12-5pw10pf8.mjs → cli-0.1.14-z0ckw2hb.mjs} +2 -2
  227. package/dist/chunks/cli-0.1.14-z8j2n955.mjs +2 -0
  228. package/dist/chunks/{cli-0.1.12-2fajd44n.mjs → cli-0.1.14-zjqt3r89.mjs} +2 -2
  229. package/dist/chunks/{cli-0.1.12-af1r644n.mjs → cli-0.1.14-zq66y0mv.mjs} +2 -2
  230. package/dist/chunks/cli-0.1.14-zrmretjp.mjs +4 -0
  231. package/dist/chunks/cli-0.1.14-zs4vmj7z.mjs +4 -0
  232. package/dist/chunks/client-0.1.14-3t6sfwha.mjs +1 -0
  233. package/dist/chunks/color-0.1.14-65rf0ap9.mjs +1 -0
  234. package/dist/chunks/compact-0.1.14-mx9ng433.mjs +3 -0
  235. package/dist/chunks/config-0.1.14-1v5v86ax.mjs +1 -0
  236. package/dist/chunks/config-0.1.14-76vavy7t.mjs +1 -0
  237. package/dist/chunks/context-0.1.14-hyykwj83.mjs +1 -0
  238. package/dist/chunks/context-noninteractive-0.1.14-24qfm7b9.mjs +1 -0
  239. package/dist/chunks/conversation-0.1.14-mkc1cd5a.mjs +1 -0
  240. package/dist/chunks/{copy-0.1.12-w6tabpy0.mjs → copy-0.1.14-kp76nh7r.mjs} +1 -1
  241. package/dist/chunks/cost-0.1.14-3d4g5gqm.mjs +1 -0
  242. package/dist/chunks/createSession-0.1.14-8599rbgg.mjs +1 -0
  243. package/dist/chunks/desktop-0.1.14-bx4eky6b.mjs +1 -0
  244. package/dist/chunks/detectRepository-0.1.14-8yam7kv4.mjs +1 -0
  245. package/dist/chunks/detection-0.1.14-vz5bqsc0.mjs +1 -0
  246. package/dist/chunks/diff-0.1.14-e4pm39ee.mjs +1 -0
  247. package/dist/chunks/doctor-0.1.14-22fc2q8y.mjs +1 -0
  248. package/dist/chunks/earlyInput-0.1.14-997vtdw4.mjs +1 -0
  249. package/dist/chunks/effort-0.1.14-d9xmff2t.mjs +8 -0
  250. package/dist/chunks/environmentSelection-0.1.14-fn5p85z5.mjs +1 -0
  251. package/dist/chunks/environments-0.1.14-7napbg6g.mjs +1 -0
  252. package/dist/chunks/exit-0.1.14-v8j7rsfw.mjs +1 -0
  253. package/dist/chunks/export-0.1.14-qpt72paa.mjs +2 -0
  254. package/dist/chunks/extra-usage-0.1.14-tmwgn4dh.mjs +1 -0
  255. package/dist/chunks/extra-usage-noninteractive-0.1.14-b2pdph8q.mjs +1 -0
  256. package/dist/chunks/fast-0.1.14-q1tyk3k8.mjs +1 -0
  257. package/dist/chunks/feedback-0.1.14-qhk5ek0b.mjs +14 -0
  258. package/dist/chunks/{firstPartyEventLogger-0.1.12-95kzm3md.mjs → firstPartyEventLogger-0.1.14-78y09nr6.mjs} +1 -1
  259. package/dist/chunks/git-0.1.14-zvsa13gk.mjs +1 -0
  260. package/dist/chunks/githubModelsCredentials-0.1.14-r30t00rx.mjs +1 -0
  261. package/dist/chunks/{growthbook-0.1.12-4phnr6b3.mjs → growthbook-0.1.14-dcdeqgyq.mjs} +1 -1
  262. package/dist/chunks/{heapdump-0.1.12-m49qs4r7.mjs → heapdump-0.1.14-tj7w79dt.mjs} +1 -1
  263. package/dist/chunks/help-0.1.14-gk9s0stg.mjs +1 -0
  264. package/dist/chunks/{hookChains-0.1.12-brq8x7f7.mjs → hookChains-0.1.14-wng6tzfd.mjs} +2 -2
  265. package/dist/chunks/hooks-0.1.14-jy9bt7s6.mjs +79 -0
  266. package/dist/chunks/hooks-0.1.14-ybdbkdfh.mjs +1 -0
  267. package/dist/chunks/{ide-0.1.12-553mazfs.mjs → ide-0.1.14-0ar60k4r.mjs} +1 -1
  268. package/dist/chunks/image-processor-napi-0.1.14-p1r3vkb0.mjs +1 -0
  269. package/dist/chunks/index-0.1.14-071xy8v4.mjs +1 -0
  270. package/dist/chunks/index-0.1.14-1mttyja2.mjs +2 -0
  271. package/dist/chunks/index-0.1.14-272zxs9n.mjs +1 -0
  272. package/dist/chunks/index-0.1.14-2v6wa4p4.mjs +1 -0
  273. package/dist/chunks/{index-0.1.12-3nbh75ta.mjs → index-0.1.14-2x59va64.mjs} +1 -1
  274. package/dist/chunks/index-0.1.14-3m7vrt91.mjs +1 -0
  275. package/dist/chunks/index-0.1.14-4hv4f8g9.mjs +1 -0
  276. package/dist/chunks/index-0.1.14-8v5xwttx.mjs +10 -0
  277. package/dist/chunks/index-0.1.14-ac13h1t1.mjs +1 -0
  278. package/dist/chunks/index-0.1.14-dmbjzapt.mjs +2 -0
  279. package/dist/chunks/index-0.1.14-g5kkm9ng.mjs +1 -0
  280. package/dist/chunks/index-0.1.14-h8gc6ph5.mjs +1 -0
  281. package/dist/chunks/index-0.1.14-hqphn8m5.mjs +5 -0
  282. package/dist/chunks/index-0.1.14-ksa4vdak.mjs +9 -0
  283. package/dist/chunks/index-0.1.14-mzhk0gvs.mjs +1 -0
  284. package/dist/chunks/index-0.1.14-qrykb444.mjs +9 -0
  285. package/dist/chunks/index-0.1.14-qvap58wt.mjs +1 -0
  286. package/dist/chunks/index-0.1.14-vygpnv88.mjs +1 -0
  287. package/dist/chunks/index-0.1.14-wjc5jkvz.mjs +1 -0
  288. package/dist/chunks/{index-0.1.12-rhj8dsvk.mjs → index-0.1.14-y3aj57xa.mjs} +1 -1
  289. package/dist/chunks/index-0.1.14-yjw9017n.mjs +1 -0
  290. package/dist/chunks/index-0.1.14-zgwbnfqh.mjs +1 -0
  291. package/dist/chunks/initReplBridge-0.1.14-qe820gff.mjs +1 -0
  292. package/dist/chunks/ink-0.1.14-kxs7ygns.mjs +1 -0
  293. package/dist/chunks/{insights-0.1.12-93mz1f1d.mjs → insights-0.1.14-9n58d9t8.mjs} +3 -3
  294. package/dist/chunks/install-0.1.14-1zyjez10.mjs +1 -0
  295. package/dist/chunks/{install-github-app-0.1.12-qd8g81v4.mjs → install-github-app-0.1.14-kmetkgdq.mjs} +1 -1
  296. package/dist/chunks/install-slack-app-0.1.14-64534gsm.mjs +1 -0
  297. package/dist/chunks/instrumentation-0.1.14-fsgk97cp.mjs +12 -0
  298. package/dist/chunks/interactiveHelpers-0.1.14-ca4bp7gy.mjs +1 -0
  299. package/dist/chunks/keybindings-0.1.14-zk3nyh0h.mjs +2 -0
  300. package/dist/chunks/knowledge-0.1.14-f7w4damb.mjs +2 -0
  301. package/dist/chunks/loadAgentsDir-0.1.14-md40mt17.mjs +1 -0
  302. package/dist/chunks/loadPluginHooks-0.1.14-d998c7wf.mjs +1 -0
  303. package/dist/chunks/lsp-0.1.14-cks4jevz.mjs +1 -0
  304. package/dist/chunks/main-0.1.14-94wst05h.mjs +1 -0
  305. package/dist/chunks/managedEnv-0.1.14-tvr9zhbp.mjs +1 -0
  306. package/dist/chunks/mcp-0.1.14-3tzc0agq.mjs +1 -0
  307. package/dist/chunks/{mcp-0.1.12-vm3tpth6.mjs → mcp-0.1.14-dmtc9tjr.mjs} +3 -3
  308. package/dist/chunks/mcp-0.1.14-tepbr987.mjs +4 -0
  309. package/dist/chunks/mcpServer-0.1.14-0mvs3bcw.mjs +1 -0
  310. package/dist/chunks/mcpb-0.1.14-ffa57420.mjs +1 -0
  311. package/dist/chunks/memory-0.1.14-cgx518q9.mjs +3 -0
  312. package/dist/chunks/{mobile-0.1.12-qdtxwz76.mjs → mobile-0.1.14-bwjnmpy0.mjs} +1 -1
  313. package/dist/chunks/model-0.1.14-rq2dkze7.mjs +2 -0
  314. package/dist/chunks/model-0.1.14-zg566cz0.mjs +1 -0
  315. package/dist/chunks/{oauth-0.1.12-3aky0v8n.mjs → oauth-0.1.14-gftadks2.mjs} +1 -1
  316. package/dist/chunks/{openaiShim-0.1.12-p458t1q6.mjs → openaiShim-0.1.14-jv6416m8.mjs} +2 -2
  317. package/dist/chunks/{output-style-0.1.12-cahkbh9x.mjs → output-style-0.1.14-v41ce6t5.mjs} +1 -1
  318. package/dist/chunks/package-WSP46L7M-0.1.14-xy3ej2c4.mjs +1 -0
  319. package/dist/chunks/parser-0.1.14-jr4b3as9.mjs +1 -0
  320. package/dist/chunks/passes-0.1.14-0jjh5wg5.mjs +1 -0
  321. package/dist/chunks/permissions-0.1.14-hh0d709r.mjs +3 -0
  322. package/dist/chunks/plan-0.1.14-kxb7xax2.mjs +1 -0
  323. package/dist/chunks/plist-0.1.14-ssqtjjq9.mjs +1 -0
  324. package/dist/chunks/plugin-0.1.14-01jhhdd3.mjs +29 -0
  325. package/dist/chunks/pluginStartupCheck-0.1.14-zjwy126p.mjs +1 -0
  326. package/dist/chunks/{plugins-0.1.12-sm87b8fm.mjs → plugins-0.1.14-4tggkexv.mjs} +2 -2
  327. package/dist/chunks/{print-0.1.12-8mgqmx4k.mjs → print-0.1.14-m719w2yp.mjs} +10 -10
  328. package/dist/chunks/privacy-settings-0.1.14-2gv7gdy1.mjs +1 -0
  329. package/dist/chunks/{process-0.1.12-t401v84c.mjs → process-0.1.14-vgdgd7sq.mjs} +1 -1
  330. package/dist/chunks/processBashCommand-0.1.14-d3xsyk5f.mjs +1 -0
  331. package/dist/chunks/processSlashCommand-0.1.14-7w1v93bg.mjs +9 -0
  332. package/dist/chunks/prompt-0.1.14-30e7kfkx.mjs +1 -0
  333. package/dist/chunks/prompt-0.1.14-brtd9j19.mjs +1 -0
  334. package/dist/chunks/prompts-0.1.14-bv9qxc0a.mjs +1 -0
  335. package/dist/chunks/provider-0.1.14-xs34vy3w.mjs +2 -0
  336. package/dist/chunks/providerProfiles-0.1.14-068kvwwx.mjs +1 -0
  337. package/dist/chunks/rate-limit-options-0.1.14-2ftxh15k.mjs +1 -0
  338. package/dist/chunks/registry-0.1.14-ad3na7g6.mjs +1 -0
  339. package/dist/chunks/release-notes-0.1.14-b7e554an.mjs +5 -0
  340. package/dist/chunks/reload-plugins-0.1.14-3w9v6nw6.mjs +2 -0
  341. package/dist/chunks/remote-env-0.1.14-jyc0gkhb.mjs +1 -0
  342. package/dist/chunks/remoteBridgeCore-0.1.14-8kt4ffzy.mjs +1 -0
  343. package/dist/chunks/remoteSession-0.1.14-ppejxt7n.mjs +1 -0
  344. package/dist/chunks/rename-0.1.14-tx9dpgk1.mjs +1 -0
  345. package/dist/chunks/replBridgeHandle-0.1.14-gsqgzdev.mjs +1 -0
  346. package/dist/chunks/resume-0.1.14-7sda36n0.mjs +2 -0
  347. package/dist/chunks/{rewind-0.1.12-707se5pz.mjs → rewind-0.1.14-zba66at0.mjs} +1 -1
  348. package/dist/chunks/sandbox-adapter-0.1.14-k97fyzcg.mjs +1 -0
  349. package/dist/chunks/sandbox-toggle-0.1.14-jz6x02qp.mjs +1 -0
  350. package/dist/chunks/session-0.1.14-5qsfxmey.mjs +2 -0
  351. package/dist/chunks/sessionFileAccessHooks-0.1.14-mgx78eqm.mjs +1 -0
  352. package/dist/chunks/sessionStorage-0.1.14-sz2medpp.mjs +1 -0
  353. package/dist/chunks/setup-0.1.14-f13rnmdg.mjs +5 -0
  354. package/dist/chunks/sinks-0.1.14-bkyqa9eq.mjs +1 -0
  355. package/dist/chunks/skills-0.1.14-1vvr60ph.mjs +1 -0
  356. package/dist/chunks/startupProfiler-0.1.14-sabjns03.mjs +1 -0
  357. package/dist/chunks/state-0.1.14-rj00ry6n.mjs +1 -0
  358. package/dist/chunks/{stats-0.1.12-5pj1c6sr.mjs → stats-0.1.14-rr3tpwqw.mjs} +1 -1
  359. package/dist/chunks/status-0.1.14-d4fcn5sn.mjs +1 -0
  360. package/dist/chunks/stickers-0.1.14-s9x2bdhp.mjs +1 -0
  361. package/dist/chunks/subprocessEnv-0.1.14-spqyrvd7.mjs +1 -0
  362. package/dist/chunks/tasks-0.1.14-yje1cmy8.mjs +1 -0
  363. package/dist/chunks/teamHelpers-0.1.14-zv908fgk.mjs +1 -0
  364. package/dist/chunks/teammateModeSnapshot-0.1.14-natmxyx5.mjs +1 -0
  365. package/dist/chunks/teleport-0.1.14-np0wrxrm.mjs +1 -0
  366. package/dist/chunks/terminalSetup-0.1.14-dzsstmk7.mjs +1 -0
  367. package/dist/chunks/theme-0.1.14-202es8wd.mjs +1 -0
  368. package/dist/chunks/thinkback-0.1.14-k4krnzrn.mjs +1 -0
  369. package/dist/chunks/thinkback-play-0.1.14-nn1v84ja.mjs +1 -0
  370. package/dist/chunks/toolPool-0.1.14-4etecef4.mjs +1 -0
  371. package/dist/chunks/toolSearch-0.1.14-q506jg4k.mjs +1 -0
  372. package/dist/chunks/trustedDevice-0.1.14-qq8dmccd.mjs +1 -0
  373. package/dist/chunks/{turndown.cjs-0.1.12-9525v010.mjs → turndown.cjs-0.1.14-nw2rtcyd.mjs} +1 -1
  374. package/dist/chunks/{ultrareviewCommand-0.1.12-d5c4096k.mjs → ultrareviewCommand-0.1.14-9twnt5bp.mjs} +1 -1
  375. package/dist/chunks/{update-0.1.12-hwx0e6fq.mjs → update-0.1.14-9dhep94r.mjs} +11 -11
  376. package/dist/chunks/upgrade-0.1.14-4nr1rdba.mjs +1 -0
  377. package/dist/chunks/{upstreamproxy-0.1.12-yhnqfcyb.mjs → upstreamproxy-0.1.14-sc0x4n7b.mjs} +1 -1
  378. package/dist/chunks/usage-0.1.14-sbaqxx8h.mjs +1 -0
  379. package/dist/chunks/util-0.1.14-vfg50acy.mjs +1 -0
  380. package/dist/chunks/utils-0.1.14-heqqycdx.mjs +1 -0
  381. package/dist/chunks/vim-0.1.14-z71303w7.mjs +1 -0
  382. package/dist/chunks/watcher-0.1.14-h1wk07kt.mjs +1 -0
  383. package/dist/chunks/{wiki-0.1.12-vecp82xq.mjs → wiki-0.1.14-s3exyf45.mjs} +1 -1
  384. package/dist/chunks/worktree-0.1.14-5486fw5t.mjs +1 -0
  385. package/dist/chunks/worktreeModeEnabled-0.1.14-xn1mf8hc.mjs +1 -0
  386. package/dist/chunks/{wrapper-0.1.12-bpewypaz.mjs → wrapper-0.1.14-a4mesaeh.mjs} +1 -1
  387. package/dist/claudio-vscode.vsix +0 -0
  388. package/dist/cli.mjs +5 -5
  389. package/package.json +2 -19
  390. package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +0 -1
  391. package/dist/chunks/App-0.1.12-t1g68ag4.mjs +0 -1
  392. package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +0 -1
  393. package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +0 -1
  394. package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +0 -1
  395. package/dist/chunks/ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs +0 -1
  396. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +0 -1
  397. package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +0 -1
  398. package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +0 -1
  399. package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +0 -1
  400. package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +0 -1
  401. package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +0 -1
  402. package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +0 -1
  403. package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +0 -1
  404. package/dist/chunks/Onboarding-0.1.12-tc4trc3y.mjs +0 -1
  405. package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +0 -1
  406. package/dist/chunks/REPL-0.1.12-4750qvss.mjs +0 -1
  407. package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +0 -1
  408. package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +0 -1
  409. package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +0 -1
  410. package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +0 -1
  411. package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +0 -9
  412. package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +0 -1
  413. package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +0 -1
  414. package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +0 -1
  415. package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +0 -1
  416. package/dist/chunks/agents-0.1.12-1dz073e3.mjs +0 -3
  417. package/dist/chunks/api-0.1.12-e314x4g9.mjs +0 -1
  418. package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +0 -1
  419. package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +0 -1
  420. package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +0 -1
  421. package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +0 -4
  422. package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +0 -1
  423. package/dist/chunks/cacache-0.1.12-mtaw8981.mjs +0 -1
  424. package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +0 -1
  425. package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +0 -1
  426. package/dist/chunks/chromeNativeHost-0.1.12-7e2jv2nr.mjs +0 -2
  427. package/dist/chunks/claude-for-chrome-mcp-0.1.12-2q97mema.mjs +0 -1
  428. package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +0 -1
  429. package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +0 -1
  430. package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +0 -1
  431. package/dist/chunks/cli-0.1.12-0x3cd401.mjs +0 -2
  432. package/dist/chunks/cli-0.1.12-19as1myk.mjs +0 -2
  433. package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +0 -2
  434. package/dist/chunks/cli-0.1.12-242der7s.mjs +0 -5036
  435. package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +0 -2
  436. package/dist/chunks/cli-0.1.12-2sqxe53a.mjs +0 -2
  437. package/dist/chunks/cli-0.1.12-2v18rdhk.mjs +0 -2
  438. package/dist/chunks/cli-0.1.12-2yy1nw3s.mjs +0 -2
  439. package/dist/chunks/cli-0.1.12-37ezy1qg.mjs +0 -2
  440. package/dist/chunks/cli-0.1.12-3d2xpvk2.mjs +0 -2
  441. package/dist/chunks/cli-0.1.12-4gj8p030.mjs +0 -22
  442. package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +0 -2
  443. package/dist/chunks/cli-0.1.12-4ys47rex.mjs +0 -2
  444. package/dist/chunks/cli-0.1.12-52dbx2x6.mjs +0 -4
  445. package/dist/chunks/cli-0.1.12-5b3j1c9c.mjs +0 -2
  446. package/dist/chunks/cli-0.1.12-5k9mfnz0.mjs +0 -2
  447. package/dist/chunks/cli-0.1.12-5p9g1vcm.mjs +0 -2
  448. package/dist/chunks/cli-0.1.12-5qhkbp8w.mjs +0 -2
  449. package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +0 -16
  450. package/dist/chunks/cli-0.1.12-6rjh20wh.mjs +0 -2
  451. package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +0 -2
  452. package/dist/chunks/cli-0.1.12-6zryzryc.mjs +0 -2
  453. package/dist/chunks/cli-0.1.12-74tt2500.mjs +0 -2
  454. package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +0 -2
  455. package/dist/chunks/cli-0.1.12-817sd5bc.mjs +0 -6
  456. package/dist/chunks/cli-0.1.12-8qm558mj.mjs +0 -2
  457. package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +0 -2
  458. package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +0 -2
  459. package/dist/chunks/cli-0.1.12-b01yrner.mjs +0 -2
  460. package/dist/chunks/cli-0.1.12-baxk5jyy.mjs +0 -4
  461. package/dist/chunks/cli-0.1.12-bmtahtv7.mjs +0 -2
  462. package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +0 -2
  463. package/dist/chunks/cli-0.1.12-bnss4rxn.mjs +0 -833
  464. package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +0 -2
  465. package/dist/chunks/cli-0.1.12-dc4e6688.mjs +0 -2
  466. package/dist/chunks/cli-0.1.12-dqynn0at.mjs +0 -2
  467. package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +0 -8
  468. package/dist/chunks/cli-0.1.12-e262snmb.mjs +0 -3
  469. package/dist/chunks/cli-0.1.12-e4zeaahk.mjs +0 -2
  470. package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +0 -2
  471. package/dist/chunks/cli-0.1.12-g1yp7kdf.mjs +0 -2
  472. package/dist/chunks/cli-0.1.12-g4sdgt8h.mjs +0 -2
  473. package/dist/chunks/cli-0.1.12-g604mknq.mjs +0 -2
  474. package/dist/chunks/cli-0.1.12-g8mny195.mjs +0 -2
  475. package/dist/chunks/cli-0.1.12-h248m986.mjs +0 -2
  476. package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +0 -2
  477. package/dist/chunks/cli-0.1.12-jjza3gz9.mjs +0 -2
  478. package/dist/chunks/cli-0.1.12-kea0zcje.mjs +0 -2
  479. package/dist/chunks/cli-0.1.12-kg8gb6e3.mjs +0 -2
  480. package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +0 -2
  481. package/dist/chunks/cli-0.1.12-m3q5r7wd.mjs +0 -2
  482. package/dist/chunks/cli-0.1.12-mevh0dza.mjs +0 -2
  483. package/dist/chunks/cli-0.1.12-nfvtmt75.mjs +0 -2
  484. package/dist/chunks/cli-0.1.12-nnyca8nb.mjs +0 -2
  485. package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +0 -4
  486. package/dist/chunks/cli-0.1.12-pm5cwtxh.mjs +0 -2
  487. package/dist/chunks/cli-0.1.12-pnh4t8c3.mjs +0 -2
  488. package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +0 -3
  489. package/dist/chunks/cli-0.1.12-q8k1zvhb.mjs +0 -2
  490. package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +0 -2
  491. package/dist/chunks/cli-0.1.12-rqedb88a.mjs +0 -10
  492. package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +0 -4
  493. package/dist/chunks/cli-0.1.12-ryycx3v6.mjs +0 -2
  494. package/dist/chunks/cli-0.1.12-sd72y750.mjs +0 -12
  495. package/dist/chunks/cli-0.1.12-strz382t.mjs +0 -2
  496. package/dist/chunks/cli-0.1.12-sxxpysy8.mjs +0 -2
  497. package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +0 -2
  498. package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +0 -2
  499. package/dist/chunks/cli-0.1.12-taqfqnag.mjs +0 -4
  500. package/dist/chunks/cli-0.1.12-v79j5ced.mjs +0 -2
  501. package/dist/chunks/cli-0.1.12-vpnp7x5c.mjs +0 -100
  502. package/dist/chunks/cli-0.1.12-vwcas8f6.mjs +0 -2
  503. package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +0 -3
  504. package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +0 -134
  505. package/dist/chunks/cli-0.1.12-xanhpra7.mjs +0 -2
  506. package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +0 -2
  507. package/dist/chunks/cli-0.1.12-xfqkrd5x.mjs +0 -2
  508. package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +0 -2
  509. package/dist/chunks/cli-0.1.12-y9598sy3.mjs +0 -16
  510. package/dist/chunks/cli-0.1.12-ybm1kvwy.mjs +0 -4
  511. package/dist/chunks/cli-0.1.12-zwyec6tj.mjs +0 -2
  512. package/dist/chunks/client-0.1.12-f54egbjx.mjs +0 -1
  513. package/dist/chunks/color-0.1.12-jss6svg8.mjs +0 -1
  514. package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +0 -3
  515. package/dist/chunks/config-0.1.12-1pyte6wv.mjs +0 -1
  516. package/dist/chunks/config-0.1.12-ryxz4stj.mjs +0 -1
  517. package/dist/chunks/context-0.1.12-mnwn2xss.mjs +0 -1
  518. package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +0 -1
  519. package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +0 -1
  520. package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +0 -1
  521. package/dist/chunks/createSession-0.1.12-117q0efg.mjs +0 -1
  522. package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +0 -1
  523. package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +0 -1
  524. package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +0 -1
  525. package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +0 -1
  526. package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +0 -1
  527. package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +0 -1
  528. package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +0 -8
  529. package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +0 -1
  530. package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +0 -1
  531. package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +0 -1
  532. package/dist/chunks/export-0.1.12-s6ag6jke.mjs +0 -2
  533. package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +0 -1
  534. package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +0 -1
  535. package/dist/chunks/fast-0.1.12-9x69m50c.mjs +0 -1
  536. package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +0 -14
  537. package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +0 -1
  538. package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +0 -1
  539. package/dist/chunks/help-0.1.12-f02ce11x.mjs +0 -1
  540. package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +0 -1
  541. package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +0 -79
  542. package/dist/chunks/image-processor-napi-0.1.12-3mrm0vts.mjs +0 -1
  543. package/dist/chunks/index-0.1.12-218arkqe.mjs +0 -9
  544. package/dist/chunks/index-0.1.12-2ykt90tn.mjs +0 -1
  545. package/dist/chunks/index-0.1.12-34ew4zjx.mjs +0 -1
  546. package/dist/chunks/index-0.1.12-41g5mvtk.mjs +0 -7
  547. package/dist/chunks/index-0.1.12-77szwkm6.mjs +0 -1
  548. package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +0 -1
  549. package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +0 -1
  550. package/dist/chunks/index-0.1.12-d5w1w05d.mjs +0 -1
  551. package/dist/chunks/index-0.1.12-d7j83tkh.mjs +0 -1
  552. package/dist/chunks/index-0.1.12-hvf65cbr.mjs +0 -1
  553. package/dist/chunks/index-0.1.12-m0e193t8.mjs +0 -1
  554. package/dist/chunks/index-0.1.12-nc3z95ph.mjs +0 -5
  555. package/dist/chunks/index-0.1.12-r92p75vh.mjs +0 -1
  556. package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +0 -1
  557. package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +0 -1
  558. package/dist/chunks/index-0.1.12-v53nbtdb.mjs +0 -2
  559. package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +0 -1
  560. package/dist/chunks/index-0.1.12-z0brwe1k.mjs +0 -2
  561. package/dist/chunks/index-0.1.12-zc2ayczg.mjs +0 -1
  562. package/dist/chunks/index-0.1.12-zqrp5tve.mjs +0 -9
  563. package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +0 -1
  564. package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +0 -1
  565. package/dist/chunks/install-0.1.12-11xkk6vf.mjs +0 -1
  566. package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +0 -1
  567. package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +0 -12
  568. package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +0 -1
  569. package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +0 -2
  570. package/dist/chunks/knowledge-0.1.12-1zq0qj6h.mjs +0 -2
  571. package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +0 -1
  572. package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +0 -1
  573. package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +0 -1
  574. package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +0 -1
  575. package/dist/chunks/main-0.1.12-47ck3kj2.mjs +0 -1
  576. package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +0 -1
  577. package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +0 -1
  578. package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +0 -4
  579. package/dist/chunks/mcpServer-0.1.12-zwsas6ss.mjs +0 -1
  580. package/dist/chunks/mcpb-0.1.12-mcbd7ywh.mjs +0 -1
  581. package/dist/chunks/memory-0.1.12-7x2msczw.mjs +0 -3
  582. package/dist/chunks/model-0.1.12-15e9c8j0.mjs +0 -2
  583. package/dist/chunks/model-0.1.12-z2qjscwh.mjs +0 -1
  584. package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +0 -1
  585. package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +0 -1
  586. package/dist/chunks/passes-0.1.12-7vmawmvq.mjs +0 -1
  587. package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +0 -3
  588. package/dist/chunks/plan-0.1.12-waed49m8.mjs +0 -1
  589. package/dist/chunks/plist-0.1.12-65r770yt.mjs +0 -1
  590. package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +0 -29
  591. package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +0 -1
  592. package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +0 -1
  593. package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +0 -1
  594. package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +0 -9
  595. package/dist/chunks/prompt-0.1.12-786vk11a.mjs +0 -1
  596. package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +0 -1
  597. package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +0 -1
  598. package/dist/chunks/provider-0.1.12-wrfpbx8a.mjs +0 -2
  599. package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +0 -1
  600. package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +0 -1
  601. package/dist/chunks/registry-0.1.12-btwd6z61.mjs +0 -1
  602. package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +0 -5
  603. package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +0 -2
  604. package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +0 -1
  605. package/dist/chunks/remoteBridgeCore-0.1.12-c0y46zw8.mjs +0 -1
  606. package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +0 -1
  607. package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +0 -1
  608. package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +0 -1
  609. package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +0 -2
  610. package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +0 -1
  611. package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +0 -1
  612. package/dist/chunks/session-0.1.12-2xgt0x74.mjs +0 -2
  613. package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +0 -1
  614. package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +0 -1
  615. package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +0 -5
  616. package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +0 -1
  617. package/dist/chunks/skills-0.1.12-sh637gsv.mjs +0 -1
  618. package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +0 -1
  619. package/dist/chunks/state-0.1.12-e374v6h8.mjs +0 -1
  620. package/dist/chunks/status-0.1.12-qphx08h4.mjs +0 -1
  621. package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +0 -1
  622. package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +0 -1
  623. package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +0 -1
  624. package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +0 -1
  625. package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +0 -1
  626. package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +0 -1
  627. package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +0 -1
  628. package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +0 -1
  629. package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +0 -1
  630. package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +0 -1
  631. package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +0 -1
  632. package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +0 -1
  633. package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +0 -1
  634. package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +0 -1
  635. package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +0 -1
  636. package/dist/chunks/util-0.1.12-qdejkkj5.mjs +0 -1
  637. package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +0 -1
  638. package/dist/chunks/vim-0.1.12-z78k9k65.mjs +0 -1
  639. package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +0 -1
  640. package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +0 -1
  641. package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +0 -1
  642. /package/dist/chunks/{cli-0.1.12-tvawkeks.mjs → cli-0.1.14-cahvg3jq.mjs} +0 -0
@@ -1,22 +0,0 @@
1
- import{h6 as nr}from"./cli-0.1.12-wfbfq2mm.mjs";import{xna as mr}from"./cli-0.1.12-9dvxchv3.mjs";import{yna as J0}from"./cli-0.1.12-xanhpra7.mjs";import{zna as Cr}from"./cli-0.1.12-74tt2500.mjs";import{Cna as M1,Dna as vt,Ena as mx,Fna as hs,Gna as wA,Hna as is,Ina as D1,Jna as ns}from"./cli-0.1.12-6e4e36bv.mjs";import{Kna as Mn}from"./cli-0.1.12-dtba3gm9.mjs";import{Nna as vi}from"./cli-0.1.12-dqynn0at.mjs";import{Ona as rf}from"./cli-0.1.12-qf1kw5cr.mjs";import{Pna as Ot}from"./cli-0.1.12-2f2v27e3.mjs";import{Sna as $,Vna as st}from"./cli-0.1.12-1hv04bp7.mjs";var Si=$((Zd)=>{Zd.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Zd.HttpAuthLocation||(Zd.HttpAuthLocation={}));Zd.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Zd.HttpApiKeyAuthLocation||(Zd.HttpApiKeyAuthLocation={}));Zd.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(Zd.EndpointURLScheme||(Zd.EndpointURLScheme={}));Zd.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Zd.AlgorithmId||(Zd.AlgorithmId={}));var Vd=(t)=>{let s=[];if(t.sha256!==void 0)s.push({algorithmId:()=>Zd.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)s.push({algorithmId:()=>Zd.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(e){s.push(e)},checksumAlgorithms(){return s}}},Yd=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{s[e.algorithmId()]=e.checksumConstructor()}),s},Wd=(t)=>{return Vd(t)},Gd=(t)=>{return Yd(t)};Zd.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Zd.FieldPosition||(Zd.FieldPosition={}));var Jd="__smithy_context";Zd.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(Zd.IniSectionType||(Zd.IniSectionType={}));Zd.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(Zd.RequestHandlerProtocol||(Zd.RequestHandlerProtocol={}));Zd.SMITHY_CONTEXT_KEY=Jd;Zd.getDefaultClientConfiguration=Wd;Zd.resolveDefaultRuntimeConfig=Gd});var bi=$((el)=>{var qd=Si(),kd=(t)=>{return{setHttpHandler(s){t.httpHandler=s},httpHandler(){return t.httpHandler},updateHttpClientConfig(s,e){t.httpHandler?.updateHttpClientConfig(s,e)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},vd=(t)=>{return{httpHandler:t.httpHandler()}};class Ni{name;kind;values;constructor({name:t,kind:s=qd.FieldPosition.HEADER,values:e=[]}){this.name=t,this.kind=s,this.values=e}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((s)=>s!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class gi{entries={};encoding;constructor({fields:t=[],encoding:s="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=s}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((s)=>s.kind===t)}}class ys{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let s=new ys({...t,headers:{...t.headers}});if(s.query)s.query=tl(s.query);return s}static isInstance(t){if(!t)return!1;let s=t;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return ys.clone(this)}}function tl(t){return Object.keys(t).reduce((s,e)=>{let r=t[e];return{...s,[e]:Array.isArray(r)?[...r]:r}},{})}class pi{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let s=t;return typeof s.statusCode==="number"&&typeof s.headers==="object"}}function sl(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}el.Field=Ni;el.Fields=gi;el.HttpRequest=ys;el.HttpResponse=pi;el.getHttpHandlerExtensionConfiguration=kd;el.isValidHostname=sl;el.resolveHttpHandlerRuntimeConfig=vd});var Al=$((al)=>{var ul=bi();function dl(t){return t}var $i=(t)=>(s)=>async(e)=>{if(!ul.HttpRequest.isInstance(e.request))return s(e);let{request:r}=e,{handlerProtocol:o=""}=t.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let h=r.hostname;if(r.port!=null)h+=`:${r.port}`;r.headers.host=h}return s(e)},Ri={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},ll=(t)=>({applyToStack:(s)=>{s.add($i(t),Ri)}});al.getHostHeaderPlugin=ll;al.hostHeaderMiddleware=$i;al.hostHeaderMiddlewareOptions=Ri;al.resolveHostHeaderConfig=dl});var pl=$((yl)=>{var _i=()=>(t,s)=>async(e)=>{try{let r=await t(e),{clientName:o,commandName:h,logger:n,dynamoDbDocumentClientOptions:f={}}=s,{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:a}=f,w=u??s.inputFilterSensitiveLog,T=a??s.outputFilterSensitiveLog,{$metadata:m,...g}=r.output;return n?.info?.({clientName:o,commandName:h,input:w(e.input),output:T(g),metadata:m}),r}catch(r){let{clientName:o,commandName:h,logger:n,dynamoDbDocumentClientOptions:f={}}=s,{overrideInputFilterSensitiveLog:u}=f,a=u??s.inputFilterSensitiveLog;throw n?.error?.({clientName:o,commandName:h,input:a(e.input),error:r,metadata:r.$metadata}),r}},Mi={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},ml=(t)=>({applyToStack:(s)=>{s.add(_i(),Mi)}});yl.getLoggerPlugin=ml;yl.loggerMiddleware=_i;yl.loggerMiddlewareOptions=Mi});var Li=$((bl)=>{var Gt={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")},pe=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!pe)globalThis.awslambda=globalThis.awslambda||{};class Ss{static PROTECTED_KEYS=Gt;isProtectedKey(t){return Object.values(Gt).includes(t)}getRequestId(){return this.get(Gt.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(Gt.X_RAY_TRACE_ID)}getTenantId(){return this.get(Gt.TENANT_ID)}}class Di extends Ss{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(t){return this.currentContext?.[t]}set(t,s){if(this.isProtectedKey(t))throw Error(`Cannot modify protected Lambda context field: ${String(t)}`);this.currentContext=this.currentContext||{},this.currentContext[t]=s}run(t,s){return this.currentContext=t,s()}}class $e extends Ss{als;static async create(){let t=new $e,s=await import("node:async_hooks");return t.als=new s.AsyncLocalStorage,t}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(t){return this.als.getStore()?.[t]}set(t,s){if(this.isProtectedKey(t))throw Error(`Cannot modify protected Lambda context field: ${String(t)}`);let e=this.als.getStore();if(!e)throw Error("No context available");e[t]=s}run(t,s){return this.als.run(t,s)}}bl.InvokeStore=void 0;(function(t){let s=null;async function e(r){if(!s)s=(async()=>{let h=r===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await $e.create():new Di;if(!pe&&globalThis.awslambda?.InvokeStore)return globalThis.awslambda.InvokeStore;else if(!pe&&globalThis.awslambda)return globalThis.awslambda.InvokeStore=h,h;else return h})();return s}t.getInstanceAsync=e,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{if(s=null,globalThis.awslambda?.InvokeStore)delete globalThis.awslambda.InvokeStore;globalThis.awslambda={InvokeStore:void 0}}}:void 0})(bl.InvokeStore||(bl.InvokeStore={}));bl.InvokeStoreBase=Ss});var Ii=$((Il)=>{Il.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Il.HttpAuthLocation||(Il.HttpAuthLocation={}));Il.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Il.HttpApiKeyAuthLocation||(Il.HttpApiKeyAuthLocation={}));Il.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(Il.EndpointURLScheme||(Il.EndpointURLScheme={}));Il.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Il.AlgorithmId||(Il.AlgorithmId={}));var Rl=(t)=>{let s=[];if(t.sha256!==void 0)s.push({algorithmId:()=>Il.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)s.push({algorithmId:()=>Il.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(e){s.push(e)},checksumAlgorithms(){return s}}},_l=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{s[e.algorithmId()]=e.checksumConstructor()}),s},Ml=(t)=>{return Rl(t)},Dl=(t)=>{return _l(t)};Il.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Il.FieldPosition||(Il.FieldPosition={}));var Ll="__smithy_context";Il.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(Il.IniSectionType||(Il.IniSectionType={}));Il.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(Il.RequestHandlerProtocol||(Il.RequestHandlerProtocol={}));Il.SMITHY_CONTEXT_KEY=Ll;Il.getDefaultClientConfiguration=Ml;Il.resolveDefaultRuntimeConfig=Dl});var Pi=$((Ql)=>{var Pl=Ii(),zl=(t)=>{return{setHttpHandler(s){t.httpHandler=s},httpHandler(){return t.httpHandler},updateHttpClientConfig(s,e){t.httpHandler?.updateHttpClientConfig(s,e)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},Cl=(t)=>{return{httpHandler:t.httpHandler()}};class Ui{name;kind;values;constructor({name:t,kind:s=Pl.FieldPosition.HEADER,values:e=[]}){this.name=t,this.kind=s,this.values=e}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((s)=>s!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class Oi{entries={};encoding;constructor({fields:t=[],encoding:s="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=s}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((s)=>s.kind===t)}}class Ns{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let s=new Ns({...t,headers:{...t.headers}});if(s.query)s.query=Bl(s.query);return s}static isInstance(t){if(!t)return!1;let s=t;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return Ns.clone(this)}}function Bl(t){return Object.keys(t).reduce((s,e)=>{let r=t[e];return{...s,[e]:Array.isArray(r)?[...r]:r}},{})}class Hi{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let s=t;return typeof s.statusCode==="number"&&typeof s.headers==="object"}}function Xl(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}Ql.Field=Ui;Ql.Fields=Oi;Ql.HttpRequest=Ns;Ql.HttpResponse=Hi;Ql.getHttpHandlerExtensionConfiguration=zl;Ql.isValidHostname=Xl;Ql.resolveHttpHandlerRuntimeConfig=Cl});var Bi=$((zi)=>{Object.defineProperty(zi,"__esModule",{value:!0});zi.recursionDetectionMiddleware=void 0;var jl=Li(),Fl=Pi(),Ue="X-Amzn-Trace-Id",ql="AWS_LAMBDA_FUNCTION_NAME",kl="_X_AMZN_TRACE_ID",vl=()=>(t)=>async(s)=>{let{request:e}=s;if(!Fl.HttpRequest.isInstance(e))return t(s);let r=Object.keys(e.headers??{}).find((w)=>w.toLowerCase()===Ue.toLowerCase())??Ue;if(e.headers.hasOwnProperty(r))return t(s);let o=process.env[ql],h=process.env[kl],u=(await jl.InvokeStore.getInstanceAsync())?.getXRayTraceId()??h,a=(w)=>typeof w==="string"&&w.length>0;if(a(o)&&a(u))e.headers[Ue]=u;return t({...s,request:e})};zi.recursionDetectionMiddleware=vl});var ra=$((Kt)=>{var Zt=Bi(),ta={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},sa=(t)=>({applyToStack:(s)=>{s.add(Zt.recursionDetectionMiddleware(),ta)}});Kt.getRecursionDetectionPlugin=sa;Object.prototype.hasOwnProperty.call(Zt,"__proto__")&&!Object.prototype.hasOwnProperty.call(Kt,"__proto__")&&Object.defineProperty(Kt,"__proto__",{enumerable:!0,value:Zt.__proto__});Object.keys(Zt).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(Kt,t))Kt[t]=Zt[t]})});var Xi=$((fa)=>{fa.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(fa.HttpAuthLocation||(fa.HttpAuthLocation={}));fa.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(fa.HttpApiKeyAuthLocation||(fa.HttpApiKeyAuthLocation={}));fa.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(fa.EndpointURLScheme||(fa.EndpointURLScheme={}));fa.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(fa.AlgorithmId||(fa.AlgorithmId={}));var ha=(t)=>{let s=[];if(t.sha256!==void 0)s.push({algorithmId:()=>fa.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)s.push({algorithmId:()=>fa.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(e){s.push(e)},checksumAlgorithms(){return s}}},ia=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{s[e.algorithmId()]=e.checksumConstructor()}),s},na=(t)=>{return ha(t)},ca=(t)=>{return ia(t)};fa.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(fa.FieldPosition||(fa.FieldPosition={}));var oa="__smithy_context";fa.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(fa.IniSectionType||(fa.IniSectionType={}));fa.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(fa.RequestHandlerProtocol||(fa.RequestHandlerProtocol={}));fa.SMITHY_CONTEXT_KEY=oa;fa.getDefaultClientConfiguration=na;fa.resolveDefaultRuntimeConfig=ca});var Ge=$((Ia)=>{var Qe=Xi();class Qi{capacity;data=new Map;parameters=[];constructor({size:t,params:s}){if(this.capacity=t??50,s)this.parameters=s}get(t,s){let e=this.hash(t);if(e===!1)return s();if(!this.data.has(e)){if(this.data.size>this.capacity+10){let r=this.data.keys(),o=0;while(!0){let{value:h,done:n}=r.next();if(this.data.delete(h),n||++o>10)break}}this.data.set(e,s())}return this.data.get(e)}size(){return this.data.size}hash(t){let s="",{parameters:e}=this;if(e.length===0)return!1;for(let r of e){let o=String(t[r]??"");if(o.includes("|;"))return!1;s+=o+"|;"}return s}}var aa=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Vi=(t)=>aa.test(t)||t.startsWith("[")&&t.endsWith("]"),Ea=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Ye=(t,s=!1)=>{if(!s)return Ea.test(t);let e=t.split(".");for(let r of e)if(!Ye(r))return!1;return!0},Ve={},Ft="endpoints";function Et(t){if(typeof t!=="object"||t==null)return t;if("ref"in t)return`$${Et(t.ref)}`;if("fn"in t)return`${t.fn}(${(t.argv||[]).map(Et).join(", ")})`;return JSON.stringify(t,null,2)}class j extends Error{constructor(t){super(t);this.name="EndpointError"}}var wa=(t,s)=>t===s,xa=(t)=>{let s=t.split("."),e=[];for(let r of s){let o=r.indexOf("[");if(o!==-1){if(r.indexOf("]")!==r.length-1)throw new j(`Path: '${t}' does not end with ']'`);let h=r.slice(o+1,-1);if(Number.isNaN(parseInt(h)))throw new j(`Invalid array index: '${h}' in path: '${t}'`);if(o!==0)e.push(r.slice(0,o));e.push(h)}else e.push(r)}return e},Yi=(t,s)=>xa(s).reduce((e,r)=>{if(typeof e!=="object")throw new j(`Index '${r}' in '${s}' not found in '${JSON.stringify(t)}'`);else if(Array.isArray(e))return e[parseInt(r)];return e[r]},t),Ta=(t)=>t!=null,Aa=(t)=>!t,Xe={[Qe.EndpointURLScheme.HTTP]:80,[Qe.EndpointURLScheme.HTTPS]:443},ma=(t)=>{let s=(()=>{try{if(t instanceof URL)return t;if(typeof t==="object"&&"hostname"in t){let{hostname:m,port:g,protocol:p="",path:b="",query:P={}}=t,X=new URL(`${p}//${m}${g?`:${g}`:""}${b}`);return X.search=Object.entries(P).map(([U,D])=>`${U}=${D}`).join("&"),X}return new URL(t)}catch(m){return null}})();if(!s)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let e=s.href,{host:r,hostname:o,pathname:h,protocol:n,search:f}=s;if(f)return null;let u=n.slice(0,-1);if(!Object.values(Qe.EndpointURLScheme).includes(u))return null;let a=Vi(o),w=e.includes(`${r}:${Xe[u]}`)||typeof t==="string"&&t.includes(`${r}:${Xe[u]}`),T=`${r}${w?`:${Xe[u]}`:""}`;return{scheme:u,authority:T,path:h,normalizedPath:h.endsWith("/")?h:`${h}/`,isIp:a}},ya=(t,s)=>t===s,Sa=(t,s,e,r)=>{if(s>=e||t.length<e||/[^\u0000-\u007f]/.test(t))return null;if(!r)return t.substring(s,e);return t.substring(t.length-e,t.length-s)},Na=(t)=>encodeURIComponent(t).replace(/[!*'()]/g,(s)=>`%${s.charCodeAt(0).toString(16).toUpperCase()}`),ga={booleanEquals:wa,getAttr:Yi,isSet:Ta,isValidHostLabel:Ye,not:Aa,parseURL:ma,stringEquals:ya,substring:Sa,uriEncode:Na},Wi=(t,s)=>{let e=[],r={...s.endpointParams,...s.referenceRecord},o=0;while(o<t.length){let h=t.indexOf("{",o);if(h===-1){e.push(t.slice(o));break}e.push(t.slice(o,h));let n=t.indexOf("}",h);if(n===-1){e.push(t.slice(h));break}if(t[h+1]==="{"&&t[n+1]==="}")e.push(t.slice(h+1,n)),o=n+2;let f=t.substring(h+1,n);if(f.includes("#")){let[u,a]=f.split("#");e.push(Yi(r[u],a))}else e.push(r[f]);o=n+1}return e.join("")},pa=({ref:t},s)=>{return{...s.endpointParams,...s.referenceRecord}[t]},gs=(t,s,e)=>{if(typeof t==="string")return Wi(t,e);else if(t.fn)return Ji.callFunction(t,e);else if(t.ref)return pa(t,e);throw new j(`'${s}': ${String(t)} is not a string, function or reference.`)},Gi=({fn:t,argv:s},e)=>{let r=s.map((h)=>["boolean","number"].includes(typeof h)?h:Ji.evaluateExpression(h,"arg",e)),o=t.split(".");if(o[0]in Ve&&o[1]!=null)return Ve[o[0]][o[1]](...r);return ga[t](...r)},Ji={evaluateExpression:gs,callFunction:Gi},ba=({assign:t,...s},e)=>{if(t&&t in e.referenceRecord)throw new j(`'${t}' is already defined in Reference Record.`);let r=Gi(s,e);return e.logger?.debug?.(`${Ft} evaluateCondition: ${Et(s)} = ${Et(r)}`),{result:r===""?!0:!!r,...t!=null&&{toAssign:{name:t,value:r}}}},We=(t=[],s)=>{let e={};for(let r of t){let{result:o,toAssign:h}=ba(r,{...s,referenceRecord:{...s.referenceRecord,...e}});if(!o)return{result:o};if(h)e[h.name]=h.value,s.logger?.debug?.(`${Ft} assign: ${h.name} := ${Et(h.value)}`)}return{result:!0,referenceRecord:e}},$a=(t,s)=>Object.entries(t).reduce((e,[r,o])=>({...e,[r]:o.map((h)=>{let n=gs(h,"Header value entry",s);if(typeof n!=="string")throw new j(`Header '${r}' value '${n}' is not a string`);return n})}),{}),Zi=(t,s)=>Object.entries(t).reduce((e,[r,o])=>({...e,[r]:ji.getEndpointProperty(o,s)}),{}),Ki=(t,s)=>{if(Array.isArray(t))return t.map((e)=>Ki(e,s));switch(typeof t){case"string":return Wi(t,s);case"object":if(t===null)throw new j(`Unexpected endpoint property: ${t}`);return ji.getEndpointProperties(t,s);case"boolean":return t;default:throw new j(`Unexpected endpoint property type: ${typeof t}`)}},ji={getEndpointProperty:Ki,getEndpointProperties:Zi},Ra=(t,s)=>{let e=gs(t,"Endpoint URL",s);if(typeof e==="string")try{return new URL(e)}catch(r){throw console.error(`Failed to construct URL with ${e}`,r),r}throw new j(`Endpoint URL must be a string, got ${typeof e}`)},_a=(t,s)=>{let{conditions:e,endpoint:r}=t,{result:o,referenceRecord:h}=We(e,s);if(!o)return;let n={...s,referenceRecord:{...s.referenceRecord,...h}},{url:f,properties:u,headers:a}=r;return s.logger?.debug?.(`${Ft} Resolving endpoint from template: ${Et(r)}`),{...a!=null&&{headers:$a(a,n)},...u!=null&&{properties:Zi(u,n)},url:Ra(f,n)}},Ma=(t,s)=>{let{conditions:e,error:r}=t,{result:o,referenceRecord:h}=We(e,s);if(!o)return;throw new j(gs(r,"Error",{...s,referenceRecord:{...s.referenceRecord,...h}}))},Fi=(t,s)=>{for(let e of t)if(e.type==="endpoint"){let r=_a(e,s);if(r)return r}else if(e.type==="error")Ma(e,s);else if(e.type==="tree"){let r=qi.evaluateTreeRule(e,s);if(r)return r}else throw new j(`Unknown endpoint rule: ${e}`);throw new j("Rules evaluation failed")},Da=(t,s)=>{let{conditions:e,rules:r}=t,{result:o,referenceRecord:h}=We(e,s);if(!o)return;return qi.evaluateRules(r,{...s,referenceRecord:{...s.referenceRecord,...h}})},qi={evaluateRules:Fi,evaluateTreeRule:Da},La=(t,s)=>{let{endpointParams:e,logger:r}=s,{parameters:o,rules:h}=t;s.logger?.debug?.(`${Ft} Initial EndpointParams: ${Et(e)}`);let n=Object.entries(o).filter(([,a])=>a.default!=null).map(([a,w])=>[a,w.default]);if(n.length>0)for(let[a,w]of n)e[a]=e[a]??w;let f=Object.entries(o).filter(([,a])=>a.required).map(([a])=>a);for(let a of f)if(e[a]==null)throw new j(`Missing required parameter: '${a}'`);let u=Fi(h,{endpointParams:e,logger:r,referenceRecord:{}});return s.logger?.debug?.(`${Ft} Resolved endpoint: ${Et(u)}`),u};Ia.EndpointCache=Qi;Ia.EndpointError=j;Ia.customEndpointFunctions=Ve;Ia.isIpAddress=Vi;Ia.isValidHostLabel=Ye;Ia.resolveEndpoint=La});var fn=$((Za)=>{var _t=Ge(),Ba=vi(),tn=(t,s=!1)=>{if(s){for(let e of t.split("."))if(!tn(e))return!1;return!0}if(!_t.isValidHostLabel(t))return!1;if(t.length<3||t.length>63)return!1;if(t!==t.toLowerCase())return!1;if(_t.isIpAddress(t))return!1;return!0},ki=":",Xa="/",Qa=(t)=>{let s=t.split(ki);if(s.length<6)return null;let[e,r,o,h,n,...f]=s;if(e!=="arn"||r===""||o===""||f.join(ki)==="")return null;let u=f.map((a)=>a.split(Xa)).flat();return{partition:r,service:o,region:h,accountId:n,resourceId:u}},Va=[{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)"}}}],Ya="1.1",sn={partitions:Va,version:Ya},en=sn,rn="",hn=(t)=>{let{partitions:s}=en;for(let r of s){let{regions:o,outputs:h}=r;for(let[n,f]of Object.entries(o))if(n===t)return{...h,...f}}for(let r of s){let{regionRegex:o,outputs:h}=r;if(new RegExp(o).test(t))return{...h}}let e=s.find((r)=>r.id==="aws");if(!e)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...e.outputs}},nn=(t,s="")=>{en=t,rn=s},Wa=()=>{nn(sn,"")},Ga=()=>rn,cn={isVirtualHostableS3Bucket:tn,parseArn:Qa,partition:hn};_t.customEndpointFunctions.aws=cn;var Ja=(t)=>{if(typeof t.endpointProvider!=="function")throw Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:s}=t;if(s===void 0)t.endpoint=async()=>{return on(t.endpointProvider({Region:typeof t.region==="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint==="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint==="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))};return t},on=(t)=>Ba.parseUrl(t.url);Za.EndpointError=_t.EndpointError;Za.isIpAddress=_t.isIpAddress;Za.resolveEndpoint=_t.resolveEndpoint;Za.awsEndpointFunctions=cn;Za.getUserAgentPrefix=Ga;Za.partition=hn;Za.resolveDefaultAwsRegionalEndpointsConfig=Ja;Za.setPartitionInfo=nn;Za.toEndpointV1=on;Za.useDefaultPartitionInfo=Wa});var un=$((fE)=>{fE.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(fE.HttpAuthLocation||(fE.HttpAuthLocation={}));fE.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(fE.HttpApiKeyAuthLocation||(fE.HttpApiKeyAuthLocation={}));fE.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(fE.EndpointURLScheme||(fE.EndpointURLScheme={}));fE.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(fE.AlgorithmId||(fE.AlgorithmId={}));var hE=(t)=>{let s=[];if(t.sha256!==void 0)s.push({algorithmId:()=>fE.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)s.push({algorithmId:()=>fE.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(e){s.push(e)},checksumAlgorithms(){return s}}},iE=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{s[e.algorithmId()]=e.checksumConstructor()}),s},nE=(t)=>{return hE(t)},cE=(t)=>{return iE(t)};fE.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(fE.FieldPosition||(fE.FieldPosition={}));var oE="__smithy_context";fE.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(fE.IniSectionType||(fE.IniSectionType={}));fE.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(fE.RequestHandlerProtocol||(fE.RequestHandlerProtocol={}));fE.SMITHY_CONTEXT_KEY=oE;fE.getDefaultClientConfiguration=nE;fE.resolveDefaultRuntimeConfig=cE});var En=$((AE)=>{var aE=un(),EE=(t)=>{return{setHttpHandler(s){t.httpHandler=s},httpHandler(){return t.httpHandler},updateHttpClientConfig(s,e){t.httpHandler?.updateHttpClientConfig(s,e)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},wE=(t)=>{return{httpHandler:t.httpHandler()}};class dn{name;kind;values;constructor({name:t,kind:s=aE.FieldPosition.HEADER,values:e=[]}){this.name=t,this.kind=s,this.values=e}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((s)=>s!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class ln{entries={};encoding;constructor({fields:t=[],encoding:s="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=s}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((s)=>s.kind===t)}}class ps{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let s=new ps({...t,headers:{...t.headers}});if(s.query)s.query=xE(s.query);return s}static isInstance(t){if(!t)return!1;let s=t;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return ps.clone(this)}}function xE(t){return Object.keys(t).reduce((s,e)=>{let r=t[e];return{...s,[e]:Array.isArray(r)?[...r]:r}},{})}class an{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let s=t;return typeof s.statusCode==="number"&&typeof s.headers==="object"}}function TE(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}AE.Field=dn;AE.Fields=ln;AE.HttpRequest=ps;AE.HttpResponse=an;AE.getHttpHandlerExtensionConfiguration=EE;AE.isValidHostname=TE;AE.resolveHttpHandlerRuntimeConfig=wE});var ve=$((HE)=>{var $E=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],RE=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],_E=["TimeoutError","RequestTimeout","RequestTimeoutException"],ME=[500,502,503,504],DE=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],LE=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],wn=(t)=>t?.$retryable!==void 0,IE=(t)=>$E.includes(t.name),xn=(t)=>t.$metadata?.clockSkewCorrected,Tn=(t)=>{let s=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(t&&t instanceof TypeError))return!1;return s.has(t.message)},UE=(t)=>t.$metadata?.httpStatusCode===429||RE.includes(t.name)||t.$retryable?.throttling==!0,ke=(t,s=0)=>wn(t)||xn(t)||_E.includes(t.name)||DE.includes(t?.code||"")||LE.includes(t?.code||"")||ME.includes(t.$metadata?.httpStatusCode||0)||Tn(t)||t.cause!==void 0&&s<=10&&ke(t.cause,s+1),OE=(t)=>{if(t.$metadata?.httpStatusCode!==void 0){let s=t.$metadata.httpStatusCode;if(500<=s&&s<=599&&!ke(t))return!0;return!1}return!1};HE.isBrowserNetworkError=Tn;HE.isClockSkewCorrectedError=xn;HE.isClockSkewError=IE;HE.isRetryableByTrait=wn;HE.isServerError=OE;HE.isThrottlingError=UE;HE.isTransientError=ke});var rr=$((KE)=>{var YE=ve();KE.RETRY_MODES=void 0;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(KE.RETRY_MODES||(KE.RETRY_MODES={}));var tr=3,WE=KE.RETRY_MODES.STANDARD;class bs{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??0.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??0.5,this.scaleConstant=t?.scaleConstant??0.4,this.smooth=t?.smooth??0.8;let s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(!this.enabled)return;if(this.refillTokenBucket(),t>this.availableTokens){let s=(t-this.availableTokens)/this.fillRate*1000;await new Promise((e)=>bs.setTimeoutFn(e,s))}this.availableTokens=this.availableTokens-t}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let s=(t-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+s),this.lastTimestamp=t}updateClientSendingRate(t){let s;this.updateMeasuredRate();let e=t;if(e?.errorType==="THROTTLING"||YE.isThrottlingError(e?.error??t)){let h=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=h,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),s=this.cubicThrottle(h),this.enableTokenBucket()}else this.calculateTimeWindow(),s=this.cubicSuccess(this.getCurrentTimeInSeconds());let o=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(o)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),s=Math.floor(t*2)/2;if(this.requestCount++,s>this.lastTxRateBucket){let e=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=s}}getPrecise(t){return parseFloat(t.toFixed(8))}}var kt=100,er=20000,mn=500,sr=500,yn=5,Sn=10,Nn=1,GE="amz-sdk-invocation-id",JE="amz-sdk-request",ZE=()=>{let t=kt;return{computeNextBackoffDelay:(r)=>{return Math.floor(Math.min(er,Math.random()*2**r*t))},setDelayBase:(r)=>{t=r}}},An=({retryDelay:t,retryCount:s,retryCost:e})=>{return{getRetryCount:()=>s,getRetryDelay:()=>Math.min(er,t),getRetryCost:()=>e}};class $s{maxAttempts;mode=KE.RETRY_MODES.STANDARD;capacity=sr;retryBackoffStrategy=ZE();maxAttemptsProvider;constructor(t){this.maxAttempts=t,this.maxAttemptsProvider=typeof t==="function"?t:async()=>t}async acquireInitialRetryToken(t){return An({retryDelay:kt,retryCount:0})}async refreshRetryTokenForRetry(t,s){let e=await this.getMaxAttempts();if(this.shouldRetry(t,s,e)){let r=s.errorType;this.retryBackoffStrategy.setDelayBase(r==="THROTTLING"?mn:kt);let o=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),h=s.retryAfterHint?Math.max(s.retryAfterHint.getTime()-Date.now()||0,o):o,n=this.getCapacityCost(r);return this.capacity-=n,An({retryDelay:h,retryCount:t.getRetryCount()+1,retryCost:n})}throw Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(sr,this.capacity+(t.getRetryCost()??Nn))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(t){return console.warn(`Max attempts provider could not resolve. Using default of ${tr}`),tr}}shouldRetry(t,s,e){return t.getRetryCount()+1<e&&this.capacity>=this.getCapacityCost(s.errorType)&&this.isRetryableError(s.errorType)}getCapacityCost(t){return t==="TRANSIENT"?Sn:yn}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class gn{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=KE.RETRY_MODES.ADAPTIVE;constructor(t,s){this.maxAttemptsProvider=t;let{rateLimiter:e}=s??{};this.rateLimiter=e??new bs,this.standardRetryStrategy=new $s(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,s){return this.rateLimiter.updateClientSendingRate(s),this.standardRetryStrategy.refreshRetryTokenForRetry(t,s)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}class pn extends $s{computeNextBackoffDelay;constructor(t,s=kt){super(typeof t==="function"?t:async()=>t);if(typeof s==="number")this.computeNextBackoffDelay=()=>s;else this.computeNextBackoffDelay=s}async refreshRetryTokenForRetry(t,s){let e=await super.refreshRetryTokenForRetry(t,s);return e.getRetryDelay=()=>this.computeNextBackoffDelay(e.getRetryCount()),e}}KE.AdaptiveRetryStrategy=gn;KE.ConfiguredRetryStrategy=pn;KE.DEFAULT_MAX_ATTEMPTS=tr;KE.DEFAULT_RETRY_DELAY_BASE=kt;KE.DEFAULT_RETRY_MODE=WE;KE.DefaultRateLimiter=bs;KE.INITIAL_RETRY_TOKENS=sr;KE.INVOCATION_ID_HEADER=GE;KE.MAXIMUM_RETRY_DELAY=er;KE.NO_RETRY_INCREMENT=Nn;KE.REQUEST_HEADER=JE;KE.RETRY_COST=yn;KE.StandardRetryStrategy=$s;KE.THROTTLING_RETRY_DELAY_BASE=mn;KE.TIMEOUT_RETRY_COST=Sn});var Un=$((Nw)=>{var uw=nr(),dw=fn(),lw=En(),nt=Mn(),bn=rr(),Dn=void 0;function aw(t){if(t===void 0)return!0;return typeof t==="string"&&t.length<=50}function Ew(t){let s=uw.normalizeProvider(t.userAgentAppId??Dn),{customUserAgent:e}=t;return Object.assign(t,{customUserAgent:typeof e==="string"?[[e]]:e,userAgentAppId:async()=>{let r=await s();if(!aw(r)){let o=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;if(typeof r!=="string")o?.warn("userAgentAppId must be a string or undefined.");else if(r.length>50)o?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}var ww=/\d{12}\.ddb/;async function xw(t,s,e){if(e.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")nt.setFeature(t,"PROTOCOL_RPC_V2_CBOR","M");if(typeof s.retryStrategy==="function"){let h=await s.retryStrategy();if(typeof h.mode==="string")switch(h.mode){case bn.RETRY_MODES.ADAPTIVE:nt.setFeature(t,"RETRY_MODE_ADAPTIVE","F");break;case bn.RETRY_MODES.STANDARD:nt.setFeature(t,"RETRY_MODE_STANDARD","E");break}}if(typeof s.accountIdEndpointMode==="function"){let h=t.endpointV2;if(String(h?.url?.hostname).match(ww))nt.setFeature(t,"ACCOUNT_ID_ENDPOINT","O");switch(await s.accountIdEndpointMode?.()){case"disabled":nt.setFeature(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":nt.setFeature(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":nt.setFeature(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let o=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(o?.$source){let h=o;if(h.accountId)nt.setFeature(t,"RESOLVED_ACCOUNT_ID","T");for(let[n,f]of Object.entries(h.$source??{}))nt.setFeature(t,n,f)}}var $n="user-agent",hr="x-amz-user-agent",Rn=" ",ir="/",Tw=/[^!$%&'*+\-.^_`|~\w]/g,Aw=/[^!$%&'*+\-.^_`|~\w#]/g,_n="-",mw=1024;function yw(t){let s="";for(let e in t){let r=t[e];if(s.length+r.length+1<=mw){if(s.length)s+=","+r;else s+=r;continue}break}return s}var Ln=(t)=>(s,e)=>async(r)=>{let{request:o}=r;if(!lw.HttpRequest.isInstance(o))return s(r);let{headers:h}=o,n=e?.userAgent?.map(Rs)||[],f=(await t.defaultUserAgentProvider()).map(Rs);await xw(e,t,r);let u=e;f.push(`m/${yw(Object.assign({},e.__smithy_context?.features,u.__aws_sdk_context?.features))}`);let a=t?.customUserAgent?.map(Rs)||[],w=await t.userAgentAppId();if(w)f.push(Rs(["app",`${w}`]));let T=dw.getUserAgentPrefix(),m=(T?[T]:[]).concat([...f,...n,...a]).join(Rn),g=[...f.filter((p)=>p.startsWith("aws-sdk-")),...a].join(Rn);if(t.runtime!=="browser"){if(g)h[hr]=h[hr]?`${h[$n]} ${g}`:g;h[$n]=m}else h[hr]=m;return s({...r,request:o})},Rs=(t)=>{let s=t[0].split(ir).map((n)=>n.replace(Tw,_n)).join(ir),e=t[1]?.replace(Aw,_n),r=s.indexOf(ir),o=s.substring(0,r),h=s.substring(r+1);if(o==="api")h=h.toLowerCase();return[o,h,e].filter((n)=>n&&n.length>0).reduce((n,f,u)=>{switch(u){case 0:return f;case 1:return`${n}/${f}`;default:return`${n}#${f}`}},"")},In={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Sw=(t)=>({applyToStack:(s)=>{s.add(Ln(t),In)}});Nw.DEFAULT_UA_APP_ID=Dn;Nw.getUserAgentMiddlewareOptions=In;Nw.getUserAgentPlugin=Sw;Nw.resolveUserAgentConfig=Ew;Nw.userAgentMiddleware=Ln});var or=$((Dw)=>{var _w=(t,s,e)=>{if(!(s in t))return;if(t[s]==="true")return!0;if(t[s]==="false")return!1;throw Error(`Cannot load ${e} "${s}". Expected "true" or "false", got ${t[s]}.`)},Mw=(t,s,e)=>{if(!(s in t))return;let r=parseInt(t[s],10);if(Number.isNaN(r))throw TypeError(`Cannot load ${e} '${s}'. Expected number, got '${t[s]}'.`);return r};Dw.SelectorType=void 0;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Dw.SelectorType||(Dw.SelectorType={}));Dw.booleanSelector=_w;Dw.numberSelector=Mw});var Ms=$((kw)=>{var K=or(),_s=vt(),Uw=Ge(),fr="AWS_USE_DUALSTACK_ENDPOINT",ur="use_dualstack_endpoint",Ow=!1,Hw={environmentVariableSelector:(t)=>K.booleanSelector(t,fr,K.SelectorType.ENV),configFileSelector:(t)=>K.booleanSelector(t,ur,K.SelectorType.CONFIG),default:!1},Pw={environmentVariableSelector:(t)=>K.booleanSelector(t,fr,K.SelectorType.ENV),configFileSelector:(t)=>K.booleanSelector(t,ur,K.SelectorType.CONFIG),default:void 0},dr="AWS_USE_FIPS_ENDPOINT",lr="use_fips_endpoint",zw=!1,Cw={environmentVariableSelector:(t)=>K.booleanSelector(t,dr,K.SelectorType.ENV),configFileSelector:(t)=>K.booleanSelector(t,lr,K.SelectorType.CONFIG),default:!1},Bw={environmentVariableSelector:(t)=>K.booleanSelector(t,dr,K.SelectorType.ENV),configFileSelector:(t)=>K.booleanSelector(t,lr,K.SelectorType.CONFIG),default:void 0},Xw=(t)=>{let{tls:s,endpoint:e,urlParser:r,useDualstackEndpoint:o}=t;return Object.assign(t,{tls:s??!0,endpoint:_s.normalizeProvider(typeof e==="string"?r(e):e),isCustomEndpoint:!0,useDualstackEndpoint:_s.normalizeProvider(o??!1)})},Qw=async(t)=>{let{tls:s=!0}=t,e=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(e))throw Error("Invalid region in client config");let o=await t.useDualstackEndpoint(),h=await t.useFipsEndpoint(),{hostname:n}=await t.regionInfoProvider(e,{useDualstackEndpoint:o,useFipsEndpoint:h})??{};if(!n)throw Error("Cannot resolve hostname from client config");return t.urlParser(`${s?"https:":"http:"}//${n}`)},Vw=(t)=>{let s=_s.normalizeProvider(t.useDualstackEndpoint??!1),{endpoint:e,useFipsEndpoint:r,urlParser:o,tls:h}=t;return Object.assign(t,{tls:h??!0,endpoint:e?_s.normalizeProvider(typeof e==="string"?o(e):e):()=>Qw({...t,useDualstackEndpoint:s,useFipsEndpoint:r}),isCustomEndpoint:!!e,useDualstackEndpoint:s})},Pn="AWS_REGION",zn="region",Yw={environmentVariableSelector:(t)=>t[Pn],configFileSelector:(t)=>t[zn],default:()=>{throw Error("Region is missing")}},Ww={preferredFile:"credentials"},On=new Set,Gw=(t,s=Uw.isValidHostLabel)=>{if(!On.has(t)&&!s(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else On.add(t)},Cn=(t)=>typeof t==="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),Jw=(t)=>Cn(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,Zw=(t)=>{let{region:s,useFipsEndpoint:e}=t;if(!s)throw Error("Region is missing");return Object.assign(t,{region:async()=>{let r=typeof s==="function"?await s():s,o=Jw(r);return Gw(o),o},useFipsEndpoint:async()=>{let r=typeof s==="string"?s:await s();if(Cn(r))return!0;return typeof e!=="function"?Promise.resolve(!!e):e()}})},Hn=(t=[],{useFipsEndpoint:s,useDualstackEndpoint:e})=>t.find(({tags:r})=>s===r.includes("fips")&&e===r.includes("dualstack"))?.hostname,Kw=(t,{regionHostname:s,partitionHostname:e})=>s?s:e?e.replace("{region}",t):void 0,jw=(t,{partitionHash:s})=>Object.keys(s||{}).find((e)=>s[e].regions.includes(t))??"aws",Fw=(t,{signingRegion:s,regionRegex:e,useFipsEndpoint:r})=>{if(s)return s;else if(r){let o=e.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),h=t.match(o);if(h)return h[0].slice(1,-1)}},qw=(t,{useFipsEndpoint:s=!1,useDualstackEndpoint:e=!1,signingService:r,regionHash:o,partitionHash:h})=>{let n=jw(t,{partitionHash:h}),f=t in o?t:h[n]?.endpoint??t,u={useFipsEndpoint:s,useDualstackEndpoint:e},a=Hn(o[f]?.variants,u),w=Hn(h[n]?.variants,u),T=Kw(f,{regionHostname:a,partitionHostname:w});if(T===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:f,useFipsEndpoint:s,useDualstackEndpoint:e}}`);let m=Fw(T,{signingRegion:o[f]?.signingRegion,regionRegex:h[n].regionRegex,useFipsEndpoint:s});return{partition:n,signingService:r,hostname:T,...m&&{signingRegion:m},...o[f]?.signingService&&{signingService:o[f].signingService}}};kw.CONFIG_USE_DUALSTACK_ENDPOINT=ur;kw.CONFIG_USE_FIPS_ENDPOINT=lr;kw.DEFAULT_USE_DUALSTACK_ENDPOINT=Ow;kw.DEFAULT_USE_FIPS_ENDPOINT=zw;kw.ENV_USE_DUALSTACK_ENDPOINT=fr;kw.ENV_USE_FIPS_ENDPOINT=dr;kw.NODE_REGION_CONFIG_FILE_OPTIONS=Ww;kw.NODE_REGION_CONFIG_OPTIONS=Yw;kw.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Hw;kw.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Cw;kw.REGION_ENV_NAME=Pn;kw.REGION_INI_NAME=zn;kw.getRegionInfo=qw;kw.nodeDualstackConfigSelectors=Pw;kw.nodeFipsConfigSelectors=Bw;kw.resolveCustomEndpointsConfig=Xw;kw.resolveEndpointsConfig=Vw;kw.resolveRegionConfig=Zw});var Bn=$((N0)=>{N0.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(N0.HttpAuthLocation||(N0.HttpAuthLocation={}));N0.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(N0.HttpApiKeyAuthLocation||(N0.HttpApiKeyAuthLocation={}));N0.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(N0.EndpointURLScheme||(N0.EndpointURLScheme={}));N0.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(N0.AlgorithmId||(N0.AlgorithmId={}));var T0=(t)=>{let s=[];if(t.sha256!==void 0)s.push({algorithmId:()=>N0.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)s.push({algorithmId:()=>N0.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(e){s.push(e)},checksumAlgorithms(){return s}}},A0=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{s[e.algorithmId()]=e.checksumConstructor()}),s},m0=(t)=>{return T0(t)},y0=(t)=>{return A0(t)};N0.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(N0.FieldPosition||(N0.FieldPosition={}));var S0="__smithy_context";N0.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(N0.IniSectionType||(N0.IniSectionType={}));N0.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(N0.RequestHandlerProtocol||(N0.RequestHandlerProtocol={}));N0.SMITHY_CONTEXT_KEY=S0;N0.getDefaultClientConfiguration=m0;N0.resolveDefaultRuntimeConfig=y0});var Yn=$((L0)=>{var $0=Bn(),R0=(t)=>{return{setHttpHandler(s){t.httpHandler=s},httpHandler(){return t.httpHandler},updateHttpClientConfig(s,e){t.httpHandler?.updateHttpClientConfig(s,e)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},_0=(t)=>{return{httpHandler:t.httpHandler()}};class Xn{name;kind;values;constructor({name:t,kind:s=$0.FieldPosition.HEADER,values:e=[]}){this.name=t,this.kind=s,this.values=e}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((s)=>s!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class Qn{entries={};encoding;constructor({fields:t=[],encoding:s="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=s}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((s)=>s.kind===t)}}class Ds{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let s=new Ds({...t,headers:{...t.headers}});if(s.query)s.query=M0(s.query);return s}static isInstance(t){if(!t)return!1;let s=t;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return Ds.clone(this)}}function M0(t){return Object.keys(t).reduce((s,e)=>{let r=t[e];return{...s,[e]:Array.isArray(r)?[...r]:r}},{})}class Vn{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let s=t;return typeof s.statusCode==="number"&&typeof s.headers==="object"}}function D0(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}L0.Field=Xn;L0.Fields=Qn;L0.HttpRequest=Ds;L0.HttpResponse=Vn;L0.getHttpHandlerExtensionConfiguration=R0;L0.isValidHostname=D0;L0.resolveHttpHandlerRuntimeConfig=_0});var G0=$((Q0)=>{var B0=Yn(),Wn="content-length";function Gn(t){return(s)=>async(e)=>{let r=e.request;if(B0.HttpRequest.isInstance(r)){let{body:o,headers:h}=r;if(o&&Object.keys(h).map((n)=>n.toLowerCase()).indexOf(Wn)===-1)try{let n=t(o);r.headers={...r.headers,[Wn]:String(n)}}catch(n){}}return s({...e,request:r})}}var Jn={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},X0=(t)=>({applyToStack:(s)=>{s.add(Gn(t.bodyLengthChecker),Jn)}});Q0.contentLengthMiddleware=Gn;Q0.contentLengthMiddlewareOptions=Jn;Q0.getContentLengthPlugin=X0});var kn=$((Fn)=>{Object.defineProperty(Fn,"__esModule",{value:!0});Fn.getEndpointUrlConfig=void 0;var Zn=J0(),Kn="AWS_ENDPOINT_URL",jn="endpoint_url",Z0=(t)=>({environmentVariableSelector:(s)=>{let e=t.split(" ").map((h)=>h.toUpperCase()),r=s[[Kn,...e].join("_")];if(r)return r;let o=s[Kn];if(o)return o;return},configFileSelector:(s,e)=>{if(e&&s.services){let o=e[["services",s.services].join(Zn.CONFIG_PREFIX_SEPARATOR)];if(o){let h=t.split(" ").map((f)=>f.toLowerCase()),n=o[[h.join("_"),jn].join(Zn.CONFIG_PREFIX_SEPARATOR)];if(n)return n}}let r=s[jn];if(r)return r;return},default:void 0});Fn.getEndpointUrlConfig=Z0});var sc=$((vn)=>{Object.defineProperty(vn,"__esModule",{value:!0});vn.getEndpointFromConfig=void 0;var K0=mr(),j0=kn(),F0=async(t)=>(0,K0.loadConfig)((0,j0.getEndpointUrlConfig)(t??""))();vn.getEndpointFromConfig=F0});var ec=$((ex)=>{ex.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(ex.HttpAuthLocation||(ex.HttpAuthLocation={}));ex.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(ex.HttpApiKeyAuthLocation||(ex.HttpApiKeyAuthLocation={}));ex.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(ex.EndpointURLScheme||(ex.EndpointURLScheme={}));ex.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(ex.AlgorithmId||(ex.AlgorithmId={}));var q0=(t)=>{let s=[];if(t.sha256!==void 0)s.push({algorithmId:()=>ex.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)s.push({algorithmId:()=>ex.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(e){s.push(e)},checksumAlgorithms(){return s}}},k0=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{s[e.algorithmId()]=e.checksumConstructor()}),s},v0=(t)=>{return q0(t)},tx=(t)=>{return k0(t)};ex.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(ex.FieldPosition||(ex.FieldPosition={}));var sx="__smithy_context";ex.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(ex.IniSectionType||(ex.IniSectionType={}));ex.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(ex.RequestHandlerProtocol||(ex.RequestHandlerProtocol={}));ex.SMITHY_CONTEXT_KEY=sx;ex.getDefaultClientConfiguration=v0;ex.resolveDefaultRuntimeConfig=tx});var nc=$((dx)=>{var nx=ec(),cx=(t)=>{return{setHttpHandler(s){t.httpHandler=s},httpHandler(){return t.httpHandler},updateHttpClientConfig(s,e){t.httpHandler?.updateHttpClientConfig(s,e)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},ox=(t)=>{return{httpHandler:t.httpHandler()}};class rc{name;kind;values;constructor({name:t,kind:s=nx.FieldPosition.HEADER,values:e=[]}){this.name=t,this.kind=s,this.values=e}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((s)=>s!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class hc{entries={};encoding;constructor({fields:t=[],encoding:s="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=s}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((s)=>s.kind===t)}}class Ls{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let s=new Ls({...t,headers:{...t.headers}});if(s.query)s.query=fx(s.query);return s}static isInstance(t){if(!t)return!1;let s=t;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return Ls.clone(this)}}function fx(t){return Object.keys(t).reduce((s,e)=>{let r=t[e];return{...s,[e]:Array.isArray(r)?[...r]:r}},{})}class ic{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let s=t;return typeof s.statusCode==="number"&&typeof s.headers==="object"}}function ux(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}dx.Field=rc;dx.Fields=hc;dx.HttpRequest=Ls;dx.HttpResponse=ic;dx.getHttpHandlerExtensionConfiguration=cx;dx.isValidHostname=ux;dx.resolveHttpHandlerRuntimeConfig=ox});var dc=$((gx)=>{var yx=nc(),Sx=mx(),cc=(t,s)=>(e,r)=>async(o)=>{let{response:h}=await e(o);try{let n=await s(h,t);return{response:h,output:n}}catch(n){if(Object.defineProperty(n,"$response",{value:h,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in n)){try{n.message+=`
2
- Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(u){if(!r.logger||r.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else r.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof n.$responseBodyText<"u"){if(n.$response)n.$response.body=n.$responseBodyText}try{if(yx.HttpResponse.isInstance(h)){let{headers:u={}}=h,a=Object.entries(u);n.$metadata={httpStatusCode:h.statusCode,requestId:$r(/^x-[\w-]+-request-?id$/,a),extendedRequestId:$r(/^x-[\w-]+-id-2$/,a),cfId:$r(/^x-[\w-]+-cf-id$/,a)}}}catch(u){}}throw n}},$r=(t,s)=>{return(s.find(([e])=>{return e.match(t)})||[void 0,void 0])[1]},oc=(t,s)=>(e,r)=>async(o)=>{let h=t,n=r.endpointV2?async()=>Sx.toEndpointV1(r.endpointV2):h.endpoint;if(!n)throw Error("No valid endpoint provider available.");let f=await s(o.input,{...t,endpoint:n});return e({...o,request:f})},fc={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},uc={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Nx(t,s,e){return{applyToStack:(r)=>{r.add(cc(t,e),fc),r.add(oc(t,s),uc)}}}gx.deserializerMiddleware=cc;gx.deserializerMiddlewareOption=fc;gx.getSerdePlugin=Nx;gx.serializerMiddleware=oc;gx.serializerMiddlewareOption=uc});var Fx=$((Qx)=>{var ac=sc(),lc=vi(),Mx=nr(),Is=vt(),Dx=dc(),Lx=async(t)=>{let s=t?.Bucket||"";if(typeof t.Bucket==="string")t.Bucket=s.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Px(s)){if(t.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!Hx(s)||s.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||s.toLowerCase()!==s||s.length<3)t.ForcePathStyle=!0;if(t.DisableMultiRegionAccessPoints)t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0;return t},Ix=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Ux=/(\d+\.){3}\d+/,Ox=/\.\./,Hx=(t)=>Ix.test(t)&&!Ux.test(t)&&!Ox.test(t),Px=(t)=>{let[s,e,r,,,o]=t.split(":"),h=s==="arn"&&t.split(":").length>=6,n=Boolean(h&&e&&r&&o);if(h&&!n)throw Error(`Invalid ARN: ${t} was an invalid ARN.`);return n},zx=(t,s,e,r=!1)=>{let o=async()=>{let h;if(r)h=e.clientContextParams?.[t]??e[t]??e[s];else h=e[t]??e[s];if(typeof h==="function")return h();return h};if(t==="credentialScope"||s==="CredentialScope")return async()=>{let h=typeof e.credentials==="function"?await e.credentials():e.credentials;return h?.credentialScope??h?.CredentialScope};if(t==="accountId"||s==="AccountId")return async()=>{let h=typeof e.credentials==="function"?await e.credentials():e.credentials;return h?.accountId??h?.AccountId};if(t==="endpoint"||s==="endpoint")return async()=>{if(e.isCustomEndpoint===!1)return;let h=await o();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){let{protocol:n,hostname:f,port:u,path:a}=h;return`${n}//${f}${u?":"+u:""}${a}`}}return h};return o},Rr=(t)=>{if(typeof t==="object"){if("url"in t){let s=lc.parseUrl(t.url);if(t.headers){s.headers={};for(let[e,r]of Object.entries(t.headers))s.headers[e.toLowerCase()]=r.join(", ")}return s}return t}return lc.parseUrl(t)},Ec=async(t,s,e,r)=>{if(!e.isCustomEndpoint){let n;if(e.serviceConfiguredEndpoint)n=await e.serviceConfiguredEndpoint();else n=await ac.getEndpointFromConfig(e.serviceId);if(n)e.endpoint=()=>Promise.resolve(Rr(n)),e.isCustomEndpoint=!0}let o=await wc(t,s,e);if(typeof e.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let h=e.endpointProvider(o,r);if(e.isCustomEndpoint&&e.endpoint){let n=await e.endpoint();if(n?.headers){h.headers??={};for(let[f,u]of Object.entries(n.headers))h.headers[f]=Array.isArray(u)?u:[u]}}return h},wc=async(t,s,e)=>{let r={},o=s?.getEndpointParameterInstructions?.()||{};for(let[h,n]of Object.entries(o))switch(n.type){case"staticContextParams":r[h]=n.value;break;case"contextParams":r[h]=t[n.name];break;case"clientContextParams":case"builtInParams":r[h]=await zx(n.name,h,e,n.type!=="builtInParams")();break;case"operationContextParams":r[h]=n.get(t);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(n))}if(Object.keys(o).length===0)Object.assign(r,e);if(String(e.serviceId).toLowerCase()==="s3")await Lx(r);return r},xc=({config:t,instructions:s})=>{return(e,r)=>async(o)=>{if(t.isCustomEndpoint)Mx.setFeature(r,"ENDPOINT_OVERRIDE","N");let h=await Ec(o.input,{getEndpointParameterInstructions(){return s}},{...t},r);r.endpointV2=h,r.authSchemes=h.properties?.authSchemes;let n=r.authSchemes?.[0];if(n){r.signing_region=n.signingRegion,r.signing_service=n.signingName;let u=Is.getSmithyContext(r)?.selectedHttpAuthScheme?.httpAuthOption;if(u)u.signingProperties=Object.assign(u.signingProperties||{},{signing_region:n.signingRegion,signingRegion:n.signingRegion,signing_service:n.signingName,signingName:n.signingName,signingRegionSet:n.signingRegionSet},n.properties)}return e({...o})}},Tc={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Dx.serializerMiddlewareOption.name},Cx=(t,s)=>({applyToStack:(e)=>{e.addRelativeTo(xc({config:t,instructions:s}),Tc)}}),Bx=(t)=>{let s=t.tls??!0,{endpoint:e,useDualstackEndpoint:r,useFipsEndpoint:o}=t,h=e!=null?async()=>Rr(await Is.normalizeProvider(e)()):void 0,f=Object.assign(t,{endpoint:h,tls:s,isCustomEndpoint:!!e,useDualstackEndpoint:Is.normalizeProvider(r??!1),useFipsEndpoint:Is.normalizeProvider(o??!1)}),u=void 0;return f.serviceConfiguredEndpoint=async()=>{if(t.serviceId&&!u)u=ac.getEndpointFromConfig(t.serviceId);return u},f},Xx=(t)=>{let{endpoint:s}=t;if(s===void 0)t.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return t};Qx.endpointMiddleware=xc;Qx.endpointMiddlewareOptions=Tc;Qx.getEndpointFromInstructions=Ec;Qx.getEndpointPlugin=Cx;Qx.resolveEndpointConfig=Bx;Qx.resolveEndpointRequiredConfig=Xx;Qx.resolveParams=wc;Qx.toEndpointV1=Rr});var Or=$((eT)=>{eT.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(eT.HttpAuthLocation||(eT.HttpAuthLocation={}));eT.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(eT.HttpApiKeyAuthLocation||(eT.HttpApiKeyAuthLocation={}));eT.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(eT.EndpointURLScheme||(eT.EndpointURLScheme={}));eT.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(eT.AlgorithmId||(eT.AlgorithmId={}));var qx=(t)=>{let s=[];if(t.sha256!==void 0)s.push({algorithmId:()=>eT.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)s.push({algorithmId:()=>eT.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(e){s.push(e)},checksumAlgorithms(){return s}}},kx=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{s[e.algorithmId()]=e.checksumConstructor()}),s},vx=(t)=>{return qx(t)},tT=(t)=>{return kx(t)};eT.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(eT.FieldPosition||(eT.FieldPosition={}));var sT="__smithy_context";eT.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(eT.IniSectionType||(eT.IniSectionType={}));eT.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(eT.RequestHandlerProtocol||(eT.RequestHandlerProtocol={}));eT.SMITHY_CONTEXT_KEY=sT;eT.getDefaultClientConfiguration=vx;eT.resolveDefaultRuntimeConfig=tT});var Sc=$((dT)=>{var nT=Or(),cT=(t)=>{return{setHttpHandler(s){t.httpHandler=s},httpHandler(){return t.httpHandler},updateHttpClientConfig(s,e){t.httpHandler?.updateHttpClientConfig(s,e)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},oT=(t)=>{return{httpHandler:t.httpHandler()}};class Ac{name;kind;values;constructor({name:t,kind:s=nT.FieldPosition.HEADER,values:e=[]}){this.name=t,this.kind=s,this.values=e}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((s)=>s!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class mc{entries={};encoding;constructor({fields:t=[],encoding:s="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=s}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((s)=>s.kind===t)}}class Us{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let s=new Us({...t,headers:{...t.headers}});if(s.query)s.query=fT(s.query);return s}static isInstance(t){if(!t)return!1;let s=t;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return Us.clone(this)}}function fT(t){return Object.keys(t).reduce((s,e)=>{let r=t[e];return{...s,[e]:Array.isArray(r)?[...r]:r}},{})}class yc{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let s=t;return typeof s.statusCode==="number"&&typeof s.headers==="object"}}function uT(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}dT.Field=Ac;dT.Fields=mc;dT.HttpRequest=Us;dT.HttpResponse=yc;dT.getHttpHandlerExtensionConfiguration=cT;dT.isValidHostname=uT;dT.resolveHttpHandlerRuntimeConfig=oT});var Oc=$((rs)=>{var gc=Cr(),Br=ns(),Os=Or(),mT=hs(),Hs=is();class pc{config;middlewareStack=gc.constructStack();initConfig;handlers;constructor(t){this.config=t;let{protocol:s,protocolSettings:e}=t;if(e){if(typeof s==="function")t.protocol=new s(e)}}send(t,s,e){let r=typeof s!=="function"?s:void 0,o=typeof s==="function"?s:e,h=r===void 0&&this.config.cacheMiddleware===!0,n;if(h){if(!this.handlers)this.handlers=new WeakMap;let f=this.handlers;if(f.has(t.constructor))n=f.get(t.constructor);else n=t.resolveMiddleware(this.middlewareStack,this.config,r),f.set(t.constructor,n)}else delete this.handlers,n=t.resolveMiddleware(this.middlewareStack,this.config,r);if(o)n(t).then((f)=>o(null,f.output),(f)=>o(f)).catch(()=>{});else return n(t).then((f)=>f.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var Hr="***SensitiveInformation***";function Pr(t,s){if(s==null)return s;let e=mT.NormalizedSchema.of(t);if(e.getMergedTraits().sensitive)return Hr;if(e.isListSchema()){if(!!e.getValueSchema().getMergedTraits().sensitive)return Hr}else if(e.isMapSchema()){if(!!e.getKeySchema().getMergedTraits().sensitive||!!e.getValueSchema().getMergedTraits().sensitive)return Hr}else if(e.isStructSchema()&&typeof s==="object"){let r=s,o={};for(let[h,n]of e.structIterator())if(r[h]!=null)o[h]=Pr(n,r[h]);return o}return s}class Xr{middlewareStack=gc.constructStack();schema;static classBuilder(){return new bc}resolveMiddlewareWithContext(t,s,e,{middlewareFn:r,clientName:o,commandName:h,inputFilterSensitiveLog:n,outputFilterSensitiveLog:f,smithyContext:u,additionalContext:a,CommandCtor:w}){for(let b of r.bind(this)(w,t,s,e))this.middlewareStack.use(b);let T=t.concat(this.middlewareStack),{logger:m}=s,g={logger:m,clientName:o,commandName:h,inputFilterSensitiveLog:n,outputFilterSensitiveLog:f,[Os.SMITHY_CONTEXT_KEY]:{commandInstance:this,...u},...a},{requestHandler:p}=s;return T.resolve((b)=>p.handle(b.request,e||{}),g)}}class bc{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,s,e={}){return this._smithyContext={service:t,operation:s,...e},this}c(t={}){return this._additionalContext=t,this}n(t,s){return this._clientName=t,this._commandName=s,this}f(t=(e)=>e,s=(e)=>e){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=s,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){let t=this,s;return s=class extends Xr{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[e]){super();this.input=e??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(e,r,o){let h=t._operationSchema,n=h?.[4]??h?.input,f=h?.[5]??h?.output;return this.resolveMiddlewareWithContext(e,r,o,{CommandCtor:s,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(h?Pr.bind(null,n):(u)=>u),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(h?Pr.bind(null,f):(u)=>u),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}var yT="***SensitiveInformation***",ST=(t,s,e)=>{for(let[h,n]of Object.entries(t)){let f=async function(a,w,T){let m=new n(a);if(typeof w==="function")this.send(m,w);else if(typeof T==="function"){if(typeof w!=="object")throw Error(`Expected http options but got ${typeof w}`);this.send(m,w||{},T)}else return this.send(m,w)},u=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");s.prototype[u]=f}let{paginators:r={},waiters:o={}}=e??{};for(let[h,n]of Object.entries(r))if(s.prototype[h]===void 0)s.prototype[h]=function(f={},u,...a){return n({...u,client:this},f,...a)};for(let[h,n]of Object.entries(o))if(s.prototype[h]===void 0)s.prototype[h]=async function(f={},u,...a){let w=u;if(typeof u==="number")w={maxWaitTime:u};return n({...w,client:this},f,...a)}};class Dt extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;let s=t;return Dt.prototype.isPrototypeOf(s)||Boolean(s.$fault)&&Boolean(s.$metadata)&&(s.$fault==="client"||s.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;let s=t;if(this===Dt)return Dt.isInstance(t);if(Dt.isInstance(t)){if(s.name&&this.name)return this.prototype.isPrototypeOf(t)||s.name===this.name;return this.prototype.isPrototypeOf(t)}return!1}}var $c=(t,s={})=>{Object.entries(s).filter(([,r])=>r!==void 0).forEach(([r,o])=>{if(t[r]==null||t[r]==="")t[r]=o});let e=t.message||t.Message||"UnknownError";return t.message=e,delete t.Message,t},Rc=({output:t,parsedBody:s,exceptionCtor:e,errorCode:r})=>{let o=gT(t),h=o.httpStatusCode?o.httpStatusCode+"":void 0,n=new e({name:s?.code||s?.Code||r||h||"UnknownError",$fault:"client",$metadata:o});throw $c(n,s)},NT=(t)=>{return({output:s,parsedBody:e,errorCode:r})=>{Rc({output:s,parsedBody:e,exceptionCtor:t,errorCode:r})}},gT=(t)=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),pT=(t)=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},Nc=!1,bT=(t)=>{if(t&&!Nc&&parseInt(t.substring(1,t.indexOf(".")))<16)Nc=!0},_c=Object.values(Os.AlgorithmId),$T=(t)=>{let s=[];for(let e in Os.AlgorithmId){let r=Os.AlgorithmId[e];if(t[r]===void 0)continue;s.push({algorithmId:()=>r,checksumConstructor:()=>t[r]})}for(let[e,r]of Object.entries(t.checksumAlgorithms??{}))s.push({algorithmId:()=>e,checksumConstructor:()=>r});return{addChecksumAlgorithm(e){t.checksumAlgorithms=t.checksumAlgorithms??{};let r=e.algorithmId(),o=e.checksumConstructor();if(_c.includes(r))t.checksumAlgorithms[r.toUpperCase()]=o;else t.checksumAlgorithms[r]=o;s.push(e)},checksumAlgorithms(){return s}}},RT=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{let r=e.algorithmId();if(_c.includes(r))s[r]=e.checksumConstructor()}),s},_T=(t)=>{return{setRetryStrategy(s){t.retryStrategy=s},retryStrategy(){return t.retryStrategy}}},MT=(t)=>{let s={};return s.retryStrategy=t.retryStrategy(),s},Mc=(t)=>{return Object.assign($T(t),_T(t))},DT=Mc,LT=(t)=>{return Object.assign(RT(t),MT(t))},IT=(t)=>Array.isArray(t)?t:[t],Dc=(t)=>{for(let e in t)if(t.hasOwnProperty(e)&&t[e]["#text"]!==void 0)t[e]=t[e]["#text"];else if(typeof t[e]==="object"&&t[e]!==null)t[e]=Dc(t[e]);return t},UT=(t)=>{return t!=null};class Lc{trace(){}debug(){}info(){}warn(){}error(){}}function Ic(t,s,e){let r,o,h;if(typeof s>"u"&&typeof e>"u")r={},h=t;else if(r=t,typeof s==="function")return o=s,h=e,PT(r,o,h);else h=s;for(let n of Object.keys(h)){if(!Array.isArray(h[n])){r[n]=h[n];continue}Uc(r,null,h,n)}return r}var OT=(t)=>{let s={};for(let[e,r]of Object.entries(t||{}))s[e]=[,r];return s},HT=(t,s)=>{let e={};for(let r in s)Uc(e,t,s,r);return e},PT=(t,s,e)=>{return Ic(t,Object.entries(e).reduce((r,[o,h])=>{if(Array.isArray(h))r[o]=h;else if(typeof h==="function")r[o]=[s,h()];else r[o]=[s,h];return r},{}))},Uc=(t,s,e,r)=>{if(s!==null){let n=e[r];if(typeof n==="function")n=[,n];let[f=zT,u=CT,a=r]=n;if(typeof f==="function"&&f(s[a])||typeof f!=="function"&&!!f)t[r]=u(s[a]);return}let[o,h]=e[r];if(typeof h==="function"){let n,f=o===void 0&&(n=h())!=null,u=typeof o==="function"&&!!o(void 0)||typeof o!=="function"&&!!o;if(f)t[r]=n;else if(u)t[r]=h()}else{let n=o===void 0&&h!=null,f=typeof o==="function"&&!!o(h)||typeof o!=="function"&&!!o;if(n||f)t[r]=h}},zT=(t)=>t!=null,CT=(t)=>t,BT=(t)=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},XT=(t)=>t.toISOString().replace(".000Z","Z"),zr=(t)=>{if(t==null)return{};if(Array.isArray(t))return t.filter((s)=>s!=null).map(zr);if(typeof t==="object"){let s={};for(let e of Object.keys(t)){if(t[e]==null)continue;s[e]=zr(t[e])}return s}return t};rs.collectBody=Br.collectBody;rs.extendedEncodeURIComponent=Br.extendedEncodeURIComponent;rs.resolvedPath=Br.resolvedPath;rs.Client=pc;rs.Command=Xr;rs.NoOpLogger=Lc;rs.SENSITIVE_STRING=yT;rs.ServiceException=Dt;rs._json=zr;rs.convertMap=OT;rs.createAggregatedClient=ST;rs.decorateServiceException=$c;rs.emitWarningIfUnsupportedVersion=bT;rs.getArrayIfSingleItem=IT;rs.getDefaultClientConfiguration=DT;rs.getDefaultExtensionConfiguration=Mc;rs.getValueFromTextNode=Dc;rs.isSerializableHeaderValue=UT;rs.loadConfigsForDefaultMode=pT;rs.map=Ic;rs.resolveDefaultRuntimeConfig=LT;rs.serializeDateTime=XT;rs.serializeFloat=BT;rs.take=HT;rs.throwDefaultError=Rc;rs.withBaseException=NT;Object.prototype.hasOwnProperty.call(Hs,"__proto__")&&!Object.prototype.hasOwnProperty.call(rs,"__proto__")&&Object.defineProperty(rs,"__proto__",{enumerable:!0,value:Hs.__proto__});Object.keys(Hs).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(rs,t))rs[t]=Hs[t]})});var zc=$((Hc)=>{Object.defineProperty(Hc,"__esModule",{value:!0});Hc.isStreamingPayload=void 0;var aA=st("stream"),EA=(t)=>t?.body instanceof aA.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream;Hc.isStreamingPayload=EA});var ZA=$((_A)=>{var Y=rr(),Lt=Sc(),wt=ve(),Bc=wA(),Cc=vt(),xA=Oc(),TA=zc(),AA=(t,s)=>{let e=t,r=Y.NO_RETRY_INCREMENT,o=Y.RETRY_COST,h=Y.TIMEOUT_RETRY_COST,n=t,f=(T)=>T.name==="TimeoutError"?h:o,u=(T)=>f(T)<=n;return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:(T)=>{if(!u(T))throw Error("No retry token available");let m=f(T);return n-=m,m},releaseRetryTokens:(T)=>{n+=T??r,n=Math.min(n,e)}})},Xc=(t,s)=>Math.floor(Math.min(Y.MAXIMUM_RETRY_DELAY,Math.random()*2**s*t)),Qc=(t)=>{if(!t)return!1;return wt.isRetryableByTrait(t)||wt.isClockSkewError(t)||wt.isThrottlingError(t)||wt.isTransientError(t)},Vc=(t)=>{if(t instanceof Error)return t;if(t instanceof Object)return Object.assign(Error(),t);if(typeof t==="string")return Error(t);return Error(`AWS SDK error wrapper for ${t}`)};class Yr{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=Y.RETRY_MODES.STANDARD;constructor(t,s){this.maxAttemptsProvider=t,this.retryDecider=s?.retryDecider??Qc,this.delayDecider=s?.delayDecider??Xc,this.retryQuota=s?.retryQuota??AA(Y.INITIAL_RETRY_TOKENS)}shouldRetry(t,s,e){return s<e&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch(s){t=Y.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,s,e){let r,o=0,h=0,n=await this.getMaxAttempts(),{request:f}=s;if(Lt.HttpRequest.isInstance(f))f.headers[Y.INVOCATION_ID_HEADER]=Bc.v4();while(!0)try{if(Lt.HttpRequest.isInstance(f))f.headers[Y.REQUEST_HEADER]=`attempt=${o+1}; max=${n}`;if(e?.beforeRequest)await e.beforeRequest();let{response:u,output:a}=await t(s);if(e?.afterRequest)e.afterRequest(u);return this.retryQuota.releaseRetryTokens(r),a.$metadata.attempts=o+1,a.$metadata.totalRetryDelay=h,{response:u,output:a}}catch(u){let a=Vc(u);if(o++,this.shouldRetry(a,o,n)){r=this.retryQuota.retrieveRetryTokens(a);let w=this.delayDecider(wt.isThrottlingError(a)?Y.THROTTLING_RETRY_DELAY_BASE:Y.DEFAULT_RETRY_DELAY_BASE,o),T=mA(a.$response),m=Math.max(T||0,w);h+=m,await new Promise((g)=>setTimeout(g,m));continue}if(!a.$metadata)a.$metadata={};throw a.$metadata.attempts=o,a.$metadata.totalRetryDelay=h,a}}}var mA=(t)=>{if(!Lt.HttpResponse.isInstance(t))return;let s=Object.keys(t.headers).find((h)=>h.toLowerCase()==="retry-after");if(!s)return;let e=t.headers[s],r=Number(e);if(!Number.isNaN(r))return r*1000;return new Date(e).getTime()-Date.now()};class Yc extends Yr{rateLimiter;constructor(t,s){let{rateLimiter:e,...r}=s??{};super(t,r);this.rateLimiter=e??new Y.DefaultRateLimiter,this.mode=Y.RETRY_MODES.ADAPTIVE}async retry(t,s){return super.retry(t,s,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(e)=>{this.rateLimiter.updateClientSendingRate(e)}})}}var Qr="AWS_MAX_ATTEMPTS",Vr="max_attempts",yA={environmentVariableSelector:(t)=>{let s=t[Qr];if(!s)return;let e=parseInt(s);if(Number.isNaN(e))throw Error(`Environment variable ${Qr} mast be a number, got "${s}"`);return e},configFileSelector:(t)=>{let s=t[Vr];if(!s)return;let e=parseInt(s);if(Number.isNaN(e))throw Error(`Shared config file entry ${Vr} mast be a number, got "${s}"`);return e},default:Y.DEFAULT_MAX_ATTEMPTS},SA=(t)=>{let{retryStrategy:s,retryMode:e}=t,r=Cc.normalizeProvider(t.maxAttempts??Y.DEFAULT_MAX_ATTEMPTS),o=s?Promise.resolve(s):void 0,h=async()=>await Cc.normalizeProvider(e)()===Y.RETRY_MODES.ADAPTIVE?new Y.AdaptiveRetryStrategy(r):new Y.StandardRetryStrategy(r);return Object.assign(t,{maxAttempts:r,retryStrategy:()=>o??=h()})},Wc="AWS_RETRY_MODE",Gc="retry_mode",NA={environmentVariableSelector:(t)=>t[Wc],configFileSelector:(t)=>t[Gc],default:Y.DEFAULT_RETRY_MODE},Jc=()=>(t)=>async(s)=>{let{request:e}=s;if(Lt.HttpRequest.isInstance(e))delete e.headers[Y.INVOCATION_ID_HEADER],delete e.headers[Y.REQUEST_HEADER];return t(s)},Zc={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},gA=(t)=>({applyToStack:(s)=>{s.addRelativeTo(Jc(),Zc)}}),Kc=(t)=>(s,e)=>async(r)=>{let o=await t.retryStrategy(),h=await t.maxAttempts();if(pA(o)){o=o;let n=await o.acquireInitialRetryToken(e.partition_id),f=Error(),u=0,a=0,{request:w}=r,T=Lt.HttpRequest.isInstance(w);if(T)w.headers[Y.INVOCATION_ID_HEADER]=Bc.v4();while(!0)try{if(T)w.headers[Y.REQUEST_HEADER]=`attempt=${u+1}; max=${h}`;let{response:m,output:g}=await s(r);return o.recordSuccess(n),g.$metadata.attempts=u+1,g.$metadata.totalRetryDelay=a,{response:m,output:g}}catch(m){let g=bA(m);if(f=Vc(m),T&&TA.isStreamingPayload(w))throw(e.logger instanceof xA.NoOpLogger?console:e.logger)?.warn("An error was encountered in a non-retryable streaming request."),f;try{n=await o.refreshRetryTokenForRetry(n,g)}catch(b){if(!f.$metadata)f.$metadata={};throw f.$metadata.attempts=u+1,f.$metadata.totalRetryDelay=a,f}u=n.getRetryCount();let p=n.getRetryDelay();a+=p,await new Promise((b)=>setTimeout(b,p))}}else{if(o=o,o?.mode)e.userAgent=[...e.userAgent||[],["cfg/retry-mode",o.mode]];return o.retry(s,r)}},pA=(t)=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",bA=(t)=>{let s={error:t,errorType:$A(t)},e=Fc(t.$response);if(e)s.retryAfterHint=e;return s},$A=(t)=>{if(wt.isThrottlingError(t))return"THROTTLING";if(wt.isTransientError(t))return"TRANSIENT";if(wt.isServerError(t))return"SERVER_ERROR";return"CLIENT_ERROR"},jc={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},RA=(t)=>({applyToStack:(s)=>{s.add(Kc(t),jc)}}),Fc=(t)=>{if(!Lt.HttpResponse.isInstance(t))return;let s=Object.keys(t.headers).find((h)=>h.toLowerCase()==="retry-after");if(!s)return;let e=t.headers[s],r=Number(e);if(!Number.isNaN(r))return new Date(r*1000);return new Date(e)};_A.AdaptiveRetryStrategy=Yc;_A.CONFIG_MAX_ATTEMPTS=Vr;_A.CONFIG_RETRY_MODE=Gc;_A.ENV_MAX_ATTEMPTS=Qr;_A.ENV_RETRY_MODE=Wc;_A.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=yA;_A.NODE_RETRY_MODE_CONFIG_OPTIONS=NA;_A.StandardRetryStrategy=Yr;_A.defaultDelayDecider=Xc;_A.defaultRetryDecider=Qc;_A.getOmitRetryHeadersPlugin=gA;_A.getRetryAfterHint=Fc;_A.getRetryPlugin=RA;_A.omitRetryHeadersMiddleware=Jc;_A.omitRetryHeadersMiddlewareOptions=Zc;_A.resolveRetryConfig=SA;_A.retryMiddleware=Kc;_A.retryMiddlewareOptions=jc});var Fr=$((vA)=>{vA.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(vA.HttpAuthLocation||(vA.HttpAuthLocation={}));vA.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(vA.HttpApiKeyAuthLocation||(vA.HttpApiKeyAuthLocation={}));vA.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(vA.EndpointURLScheme||(vA.EndpointURLScheme={}));vA.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(vA.AlgorithmId||(vA.AlgorithmId={}));var KA=(t)=>{let s=[];if(t.sha256!==void 0)s.push({algorithmId:()=>vA.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)s.push({algorithmId:()=>vA.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(e){s.push(e)},checksumAlgorithms(){return s}}},jA=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{s[e.algorithmId()]=e.checksumConstructor()}),s},FA=(t)=>{return KA(t)},qA=(t)=>{return jA(t)};vA.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(vA.FieldPosition||(vA.FieldPosition={}));var kA="__smithy_context";vA.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(vA.IniSectionType||(vA.IniSectionType={}));vA.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(vA.RequestHandlerProtocol||(vA.RequestHandlerProtocol={}));vA.SMITHY_CONTEXT_KEY=kA;vA.getDefaultClientConfiguration=FA;vA.resolveDefaultRuntimeConfig=qA});var qm=$((os)=>{var kc=Cr(),th=ns(),Ps=Fr(),rm=hs(),zs=is();class vc{config;middlewareStack=kc.constructStack();initConfig;handlers;constructor(t){this.config=t;let{protocol:s,protocolSettings:e}=t;if(e){if(typeof s==="function")t.protocol=new s(e)}}send(t,s,e){let r=typeof s!=="function"?s:void 0,o=typeof s==="function"?s:e,h=r===void 0&&this.config.cacheMiddleware===!0,n;if(h){if(!this.handlers)this.handlers=new WeakMap;let f=this.handlers;if(f.has(t.constructor))n=f.get(t.constructor);else n=t.resolveMiddleware(this.middlewareStack,this.config,r),f.set(t.constructor,n)}else delete this.handlers,n=t.resolveMiddleware(this.middlewareStack,this.config,r);if(o)n(t).then((f)=>o(null,f.output),(f)=>o(f)).catch(()=>{});else return n(t).then((f)=>f.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var qr="***SensitiveInformation***";function kr(t,s){if(s==null)return s;let e=rm.NormalizedSchema.of(t);if(e.getMergedTraits().sensitive)return qr;if(e.isListSchema()){if(!!e.getValueSchema().getMergedTraits().sensitive)return qr}else if(e.isMapSchema()){if(!!e.getKeySchema().getMergedTraits().sensitive||!!e.getValueSchema().getMergedTraits().sensitive)return qr}else if(e.isStructSchema()&&typeof s==="object"){let r=s,o={};for(let[h,n]of e.structIterator())if(r[h]!=null)o[h]=kr(n,r[h]);return o}return s}class sh{middlewareStack=kc.constructStack();schema;static classBuilder(){return new to}resolveMiddlewareWithContext(t,s,e,{middlewareFn:r,clientName:o,commandName:h,inputFilterSensitiveLog:n,outputFilterSensitiveLog:f,smithyContext:u,additionalContext:a,CommandCtor:w}){for(let b of r.bind(this)(w,t,s,e))this.middlewareStack.use(b);let T=t.concat(this.middlewareStack),{logger:m}=s,g={logger:m,clientName:o,commandName:h,inputFilterSensitiveLog:n,outputFilterSensitiveLog:f,[Ps.SMITHY_CONTEXT_KEY]:{commandInstance:this,...u},...a},{requestHandler:p}=s;return T.resolve((b)=>p.handle(b.request,e||{}),g)}}class to{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,s,e={}){return this._smithyContext={service:t,operation:s,...e},this}c(t={}){return this._additionalContext=t,this}n(t,s){return this._clientName=t,this._commandName=s,this}f(t=(e)=>e,s=(e)=>e){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=s,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){let t=this,s;return s=class extends sh{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[e]){super();this.input=e??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(e,r,o){let h=t._operationSchema,n=h?.[4]??h?.input,f=h?.[5]??h?.output;return this.resolveMiddlewareWithContext(e,r,o,{CommandCtor:s,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(h?kr.bind(null,n):(u)=>u),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(h?kr.bind(null,f):(u)=>u),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}var hm="***SensitiveInformation***",im=(t,s,e)=>{for(let[h,n]of Object.entries(t)){let f=async function(a,w,T){let m=new n(a);if(typeof w==="function")this.send(m,w);else if(typeof T==="function"){if(typeof w!=="object")throw Error(`Expected http options but got ${typeof w}`);this.send(m,w||{},T)}else return this.send(m,w)},u=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");s.prototype[u]=f}let{paginators:r={},waiters:o={}}=e??{};for(let[h,n]of Object.entries(r))if(s.prototype[h]===void 0)s.prototype[h]=function(f={},u,...a){return n({...u,client:this},f,...a)};for(let[h,n]of Object.entries(o))if(s.prototype[h]===void 0)s.prototype[h]=async function(f={},u,...a){let w=u;if(typeof u==="number")w={maxWaitTime:u};return n({...w,client:this},f,...a)}};class It extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;let s=t;return It.prototype.isPrototypeOf(s)||Boolean(s.$fault)&&Boolean(s.$metadata)&&(s.$fault==="client"||s.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;let s=t;if(this===It)return It.isInstance(t);if(It.isInstance(t)){if(s.name&&this.name)return this.prototype.isPrototypeOf(t)||s.name===this.name;return this.prototype.isPrototypeOf(t)}return!1}}var so=(t,s={})=>{Object.entries(s).filter(([,r])=>r!==void 0).forEach(([r,o])=>{if(t[r]==null||t[r]==="")t[r]=o});let e=t.message||t.Message||"UnknownError";return t.message=e,delete t.Message,t},eo=({output:t,parsedBody:s,exceptionCtor:e,errorCode:r})=>{let o=cm(t),h=o.httpStatusCode?o.httpStatusCode+"":void 0,n=new e({name:s?.code||s?.Code||r||h||"UnknownError",$fault:"client",$metadata:o});throw so(n,s)},nm=(t)=>{return({output:s,parsedBody:e,errorCode:r})=>{eo({output:s,parsedBody:e,exceptionCtor:t,errorCode:r})}},cm=(t)=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),om=(t)=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},qc=!1,fm=(t)=>{if(t&&!qc&&parseInt(t.substring(1,t.indexOf(".")))<16)qc=!0},ro=Object.values(Ps.AlgorithmId),um=(t)=>{let s=[];for(let e in Ps.AlgorithmId){let r=Ps.AlgorithmId[e];if(t[r]===void 0)continue;s.push({algorithmId:()=>r,checksumConstructor:()=>t[r]})}for(let[e,r]of Object.entries(t.checksumAlgorithms??{}))s.push({algorithmId:()=>e,checksumConstructor:()=>r});return{addChecksumAlgorithm(e){t.checksumAlgorithms=t.checksumAlgorithms??{};let r=e.algorithmId(),o=e.checksumConstructor();if(ro.includes(r))t.checksumAlgorithms[r.toUpperCase()]=o;else t.checksumAlgorithms[r]=o;s.push(e)},checksumAlgorithms(){return s}}},dm=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{let r=e.algorithmId();if(ro.includes(r))s[r]=e.checksumConstructor()}),s},lm=(t)=>{return{setRetryStrategy(s){t.retryStrategy=s},retryStrategy(){return t.retryStrategy}}},am=(t)=>{let s={};return s.retryStrategy=t.retryStrategy(),s},ho=(t)=>{return Object.assign(um(t),lm(t))},Em=ho,wm=(t)=>{return Object.assign(dm(t),am(t))},xm=(t)=>Array.isArray(t)?t:[t],io=(t)=>{for(let e in t)if(t.hasOwnProperty(e)&&t[e]["#text"]!==void 0)t[e]=t[e]["#text"];else if(typeof t[e]==="object"&&t[e]!==null)t[e]=io(t[e]);return t},Tm=(t)=>{return t!=null};class no{trace(){}debug(){}info(){}warn(){}error(){}}function co(t,s,e){let r,o,h;if(typeof s>"u"&&typeof e>"u")r={},h=t;else if(r=t,typeof s==="function")return o=s,h=e,ym(r,o,h);else h=s;for(let n of Object.keys(h)){if(!Array.isArray(h[n])){r[n]=h[n];continue}oo(r,null,h,n)}return r}var Am=(t)=>{let s={};for(let[e,r]of Object.entries(t||{}))s[e]=[,r];return s},mm=(t,s)=>{let e={};for(let r in s)oo(e,t,s,r);return e},ym=(t,s,e)=>{return co(t,Object.entries(e).reduce((r,[o,h])=>{if(Array.isArray(h))r[o]=h;else if(typeof h==="function")r[o]=[s,h()];else r[o]=[s,h];return r},{}))},oo=(t,s,e,r)=>{if(s!==null){let n=e[r];if(typeof n==="function")n=[,n];let[f=Sm,u=Nm,a=r]=n;if(typeof f==="function"&&f(s[a])||typeof f!=="function"&&!!f)t[r]=u(s[a]);return}let[o,h]=e[r];if(typeof h==="function"){let n,f=o===void 0&&(n=h())!=null,u=typeof o==="function"&&!!o(void 0)||typeof o!=="function"&&!!o;if(f)t[r]=n;else if(u)t[r]=h()}else{let n=o===void 0&&h!=null,f=typeof o==="function"&&!!o(h)||typeof o!=="function"&&!!o;if(n||f)t[r]=h}},Sm=(t)=>t!=null,Nm=(t)=>t,gm=(t)=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},pm=(t)=>t.toISOString().replace(".000Z","Z"),vr=(t)=>{if(t==null)return{};if(Array.isArray(t))return t.filter((s)=>s!=null).map(vr);if(typeof t==="object"){let s={};for(let e of Object.keys(t)){if(t[e]==null)continue;s[e]=vr(t[e])}return s}return t};os.collectBody=th.collectBody;os.extendedEncodeURIComponent=th.extendedEncodeURIComponent;os.resolvedPath=th.resolvedPath;os.Client=vc;os.Command=sh;os.NoOpLogger=no;os.SENSITIVE_STRING=hm;os.ServiceException=It;os._json=vr;os.convertMap=Am;os.createAggregatedClient=im;os.decorateServiceException=so;os.emitWarningIfUnsupportedVersion=fm;os.getArrayIfSingleItem=xm;os.getDefaultClientConfiguration=Em;os.getDefaultExtensionConfiguration=ho;os.getValueFromTextNode=io;os.isSerializableHeaderValue=Tm;os.loadConfigsForDefaultMode=om;os.map=co;os.resolveDefaultRuntimeConfig=wm;os.serializeDateTime=pm;os.serializeFloat=gm;os.take=mm;os.throwDefaultError=eo;os.withBaseException=nm;Object.prototype.hasOwnProperty.call(zs,"__proto__")&&!Object.prototype.hasOwnProperty.call(os,"__proto__")&&Object.defineProperty(os,"__proto__",{enumerable:!0,value:zs.__proto__});Object.keys(zs).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(os,t))os[t]=zs[t]})});var lo=$((uo)=>{Object.defineProperty(uo,"__esModule",{value:!0});uo.warning=void 0;uo.stsRegionDefaultResolver=vm;var fo=Ms(),km=mr();function vm(t={}){return(0,km.loadConfig)({...fo.NODE_REGION_CONFIG_OPTIONS,async default(){if(!uo.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"}},{...fo.NODE_REGION_CONFIG_FILE_OPTIONS,...t})}uo.warning={silence:!1}});var uy=$((fs)=>{var Cs=lo(),us=Ms(),sy=(t)=>{return{setRegion(s){t.region=s},region(){return t.region}}},ey=(t)=>{return{region:t.region()}};fs.NODE_REGION_CONFIG_FILE_OPTIONS=us.NODE_REGION_CONFIG_FILE_OPTIONS;fs.NODE_REGION_CONFIG_OPTIONS=us.NODE_REGION_CONFIG_OPTIONS;fs.REGION_ENV_NAME=us.REGION_ENV_NAME;fs.REGION_INI_NAME=us.REGION_INI_NAME;fs.resolveRegionConfig=us.resolveRegionConfig;fs.getAwsRegionExtensionConfiguration=sy;fs.resolveAwsRegionExtensionConfiguration=ey;Object.prototype.hasOwnProperty.call(Cs,"__proto__")&&!Object.prototype.hasOwnProperty.call(fs,"__proto__")&&Object.defineProperty(fs,"__proto__",{enumerable:!0,value:Cs.__proto__});Object.keys(Cs).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(fs,t))fs[t]=Cs[t]})});var py=$((xy)=>{var dy=Fr(),ly=(t)=>{return{setHttpHandler(s){t.httpHandler=s},httpHandler(){return t.httpHandler},updateHttpClientConfig(s,e){t.httpHandler?.updateHttpClientConfig(s,e)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},ay=(t)=>{return{httpHandler:t.httpHandler()}};class ao{name;kind;values;constructor({name:t,kind:s=dy.FieldPosition.HEADER,values:e=[]}){this.name=t,this.kind=s,this.values=e}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((s)=>s!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class Eo{entries={};encoding;constructor({fields:t=[],encoding:s="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=s}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((s)=>s.kind===t)}}class Bs{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let s=new Bs({...t,headers:{...t.headers}});if(s.query)s.query=Ey(s.query);return s}static isInstance(t){if(!t)return!1;let s=t;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return Bs.clone(this)}}function Ey(t){return Object.keys(t).reduce((s,e)=>{let r=t[e];return{...s,[e]:Array.isArray(r)?[...r]:r}},{})}class wo{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let s=t;return typeof s.statusCode==="number"&&typeof s.headers==="object"}}function wy(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}xy.Field=ao;xy.Fields=Eo;xy.HttpRequest=Bs;xy.HttpResponse=wo;xy.getHttpHandlerExtensionConfiguration=ly;xy.isValidHostname=wy;xy.resolveHttpHandlerRuntimeConfig=ay});var fh=$((Dy)=>{Dy.HttpAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Dy.HttpAuthLocation||(Dy.HttpAuthLocation={}));Dy.HttpApiKeyAuthLocation=void 0;(function(t){t.HEADER="header",t.QUERY="query"})(Dy.HttpApiKeyAuthLocation||(Dy.HttpApiKeyAuthLocation={}));Dy.EndpointURLScheme=void 0;(function(t){t.HTTP="http",t.HTTPS="https"})(Dy.EndpointURLScheme||(Dy.EndpointURLScheme={}));Dy.AlgorithmId=void 0;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Dy.AlgorithmId||(Dy.AlgorithmId={}));var by=(t)=>{let s=[];if(t.sha256!==void 0)s.push({algorithmId:()=>Dy.AlgorithmId.SHA256,checksumConstructor:()=>t.sha256});if(t.md5!=null)s.push({algorithmId:()=>Dy.AlgorithmId.MD5,checksumConstructor:()=>t.md5});return{addChecksumAlgorithm(e){s.push(e)},checksumAlgorithms(){return s}}},$y=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{s[e.algorithmId()]=e.checksumConstructor()}),s},Ry=(t)=>{return by(t)},_y=(t)=>{return $y(t)};Dy.FieldPosition=void 0;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Dy.FieldPosition||(Dy.FieldPosition={}));var My="__smithy_context";Dy.IniSectionType=void 0;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(Dy.IniSectionType||(Dy.IniSectionType={}));Dy.RequestHandlerProtocol=void 0;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(Dy.RequestHandlerProtocol||(Dy.RequestHandlerProtocol={}));Dy.SMITHY_CONTEXT_KEY=My;Dy.getDefaultClientConfiguration=Ry;Dy.resolveDefaultRuntimeConfig=_y});var uh=$((By)=>{var Oy=fh(),Hy=(t)=>{return{setHttpHandler(s){t.httpHandler=s},httpHandler(){return t.httpHandler},updateHttpClientConfig(s,e){t.httpHandler?.updateHttpClientConfig(s,e)},httpHandlerConfigs(){return t.httpHandler.httpHandlerConfigs()}}},Py=(t)=>{return{httpHandler:t.httpHandler()}};class xo{name;kind;values;constructor({name:t,kind:s=Oy.FieldPosition.HEADER,values:e=[]}){this.name=t,this.kind=s,this.values=e}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((s)=>s!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}}class To{entries={};encoding;constructor({fields:t=[],encoding:s="utf-8"}){t.forEach(this.setField.bind(this)),this.encoding=s}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((s)=>s.kind===t)}}class Xs{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let s=new Xs({...t,headers:{...t.headers}});if(s.query)s.query=zy(s.query);return s}static isInstance(t){if(!t)return!1;let s=t;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return Xs.clone(this)}}function zy(t){return Object.keys(t).reduce((s,e)=>{let r=t[e];return{...s,[e]:Array.isArray(r)?[...r]:r}},{})}class Ao{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let s=t;return typeof s.statusCode==="number"&&typeof s.headers==="object"}}function Cy(t){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(t)}By.Field=xo;By.Fields=To;By.HttpRequest=Xs;By.HttpResponse=Ao;By.getHttpHandlerExtensionConfiguration=Hy;By.isValidHostname=Cy;By.resolveHttpHandlerRuntimeConfig=Py});var yo=$((jy)=>{var mo={},dh={};for(let t=0;t<256;t++){let s=t.toString(16).toLowerCase();if(s.length===1)s=`0${s}`;mo[t]=s,dh[s]=t}function Zy(t){if(t.length%2!==0)throw Error("Hex encoded strings must have an even number length");let s=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2){let r=t.slice(e,e+2).toLowerCase();if(r in dh)s[e/2]=dh[r];else throw Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return s}function Ky(t){let s="";for(let e=0;e<t.byteLength;e++)s+=mo[t[e]];return s}jy.fromHex=Zy;jy.toHex=Ky});var So=$((vy)=>{var ky=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";vy.isArrayBuffer=ky});var go=$((rS)=>{var No=(t)=>encodeURIComponent(t).replace(/[!'()*]/g,sS),sS=(t)=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,eS=(t)=>t.split("/").map(No).join("/");rS.escapeUri=No;rS.escapeUriPath=eS});var jo=$((xS)=>{var xt=yo(),pt=Ot(),nS=So(),Ro=uh(),po=vt(),Qs=go(),_o="X-Amz-Algorithm",Mo="X-Amz-Credential",Eh="X-Amz-Date",Do="X-Amz-SignedHeaders",Lo="X-Amz-Expires",wh="X-Amz-Signature",xh="X-Amz-Security-Token",cS="X-Amz-Region-Set",Th="authorization",Ah=Eh.toLowerCase(),Io="date",Uo=[Th,Ah,Io],Oo=wh.toLowerCase(),Js="x-amz-content-sha256",Ho=xh.toLowerCase(),oS="host",Po={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},zo=/^proxy-/,Co=/^sec-/,fS=[/^proxy-/i,/^sec-/i],Vs="AWS4-HMAC-SHA256",uS="AWS4-ECDSA-P256-SHA256",Bo="AWS4-HMAC-SHA256-PAYLOAD",Xo="UNSIGNED-PAYLOAD",Qo=50,mh="aws4_request",Vo=604800,Ut={},Ys=[],Ws=(t,s,e)=>`${t}/${s}/${e}/${mh}`,Yo=async(t,s,e,r,o)=>{let h=await bo(t,s.secretAccessKey,s.accessKeyId),n=`${e}:${r}:${o}:${xt.toHex(h)}:${s.sessionToken}`;if(n in Ut)return Ut[n];Ys.push(n);while(Ys.length>Qo)delete Ut[Ys.shift()];let f=`AWS4${s.secretAccessKey}`;for(let u of[e,r,o,mh])f=await bo(t,f,u);return Ut[n]=f},dS=()=>{Ys.length=0,Object.keys(Ut).forEach((t)=>{delete Ut[t]})},bo=(t,s,e)=>{let r=new t(s);return r.update(pt.toUint8Array(e)),r.digest()},lh=({headers:t},s,e)=>{let r={};for(let o of Object.keys(t).sort()){if(t[o]==null)continue;let h=o.toLowerCase();if(h in Po||s?.has(h)||zo.test(h)||Co.test(h)){if(!e||e&&!e.has(h))continue}r[h]=t[o].trim().replace(/\s+/g," ")}return r},Gs=async({headers:t,body:s},e)=>{for(let r of Object.keys(t))if(r.toLowerCase()===Js)return t[r];if(s==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof s==="string"||ArrayBuffer.isView(s)||nS.isArrayBuffer(s)){let r=new e;return r.update(pt.toUint8Array(s)),xt.toHex(await r.digest())}return Xo};class Wo{format(t){let s=[];for(let o of Object.keys(t)){let h=pt.fromUtf8(o);s.push(Uint8Array.from([h.byteLength]),h,this.formatHeaderValue(t[o]))}let e=new Uint8Array(s.reduce((o,h)=>o+h.byteLength,0)),r=0;for(let o of s)e.set(o,r),r+=o.byteLength;return e}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let s=new DataView(new ArrayBuffer(3));return s.setUint8(0,3),s.setInt16(1,t.value,!1),new Uint8Array(s.buffer);case"integer":let e=new DataView(new ArrayBuffer(5));return e.setUint8(0,4),e.setInt32(1,t.value,!1),new Uint8Array(e.buffer);case"long":let r=new Uint8Array(9);return r[0]=5,r.set(t.value.bytes,1),r;case"binary":let o=new DataView(new ArrayBuffer(3+t.value.byteLength));o.setUint8(0,6),o.setUint16(1,t.value.byteLength,!1);let h=new Uint8Array(o.buffer);return h.set(t.value,3),h;case"string":let n=pt.fromUtf8(t.value),f=new DataView(new ArrayBuffer(3+n.byteLength));f.setUint8(0,7),f.setUint16(1,n.byteLength,!1);let u=new Uint8Array(f.buffer);return u.set(n,3),u;case"timestamp":let a=new Uint8Array(9);return a[0]=8,a.set(yh.fromNumber(t.value.valueOf()).bytes,1),a;case"uuid":if(!lS.test(t.value))throw Error(`Invalid UUID received: ${t.value}`);let w=new Uint8Array(17);return w[0]=9,w.set(xt.fromHex(t.value.replace(/\-/g,"")),1),w}}}var lS=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class yh{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776000||t<-9223372036854776000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let s=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)s[e]=r;if(t<0)$o(s);return new yh(s)}valueOf(){let t=this.bytes.slice(0),s=t[0]&128;if(s)$o(t);return parseInt(xt.toHex(t),16)*(s?-1:1)}toString(){return String(this.valueOf())}}function $o(t){for(let s=0;s<8;s++)t[s]^=255;for(let s=7;s>-1;s--)if(t[s]++,t[s]!==0)break}var Go=(t,s)=>{t=t.toLowerCase();for(let e of Object.keys(s))if(t===e.toLowerCase())return!0;return!1},Jo=(t,s={})=>{let{headers:e,query:r={}}=Ro.HttpRequest.clone(t);for(let o of Object.keys(e)){let h=o.toLowerCase();if(h.slice(0,6)==="x-amz-"&&!s.unhoistableHeaders?.has(h)||s.hoistableHeaders?.has(h))r[o]=e[o],delete e[o]}return{...t,headers:e,query:r}},ah=(t)=>{t=Ro.HttpRequest.clone(t);for(let s of Object.keys(t.headers))if(Uo.indexOf(s.toLowerCase())>-1)delete t.headers[s];return t},Zo=({query:t={}})=>{let s=[],e={};for(let r of Object.keys(t)){if(r.toLowerCase()===Oo)continue;let o=Qs.escapeUri(r);s.push(o);let h=t[r];if(typeof h==="string")e[o]=`${o}=${Qs.escapeUri(h)}`;else if(Array.isArray(h))e[o]=h.slice(0).reduce((n,f)=>n.concat([`${o}=${Qs.escapeUri(f)}`]),[]).sort().join("&")}return s.sort().map((r)=>e[r]).filter((r)=>r).join("&")},aS=(t)=>ES(t).toISOString().replace(/\.\d{3}Z$/,"Z"),ES=(t)=>{if(typeof t==="number")return new Date(t*1000);if(typeof t==="string"){if(Number(t))return new Date(Number(t)*1000);return new Date(t)}return t};class Sh{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:s,region:e,service:r,sha256:o,uriEscapePath:h=!0}){this.service=r,this.sha256=o,this.uriEscapePath=h,this.applyChecksum=typeof t==="boolean"?t:!0,this.regionProvider=po.normalizeProvider(e),this.credentialProvider=po.normalizeProvider(s)}createCanonicalRequest(t,s,e){let r=Object.keys(s).sort();return`${t.method}
3
- ${this.getCanonicalPath(t)}
4
- ${Zo(t)}
5
- ${r.map((o)=>`${o}:${s[o]}`).join(`
6
- `)}
7
-
8
- ${r.join(";")}
9
- ${e}`}async createStringToSign(t,s,e,r){let o=new this.sha256;o.update(pt.toUint8Array(e));let h=await o.digest();return`${r}
10
- ${t}
11
- ${s}
12
- ${xt.toHex(h)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let s=[];for(let o of t.split("/")){if(o?.length===0)continue;if(o===".")continue;if(o==="..")s.pop();else s.push(o)}let e=`${t?.startsWith("/")?"/":""}${s.join("/")}${s.length>0&&t?.endsWith("/")?"/":""}`;return Qs.escapeUri(e).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!=="object"||typeof t.accessKeyId!=="string"||typeof t.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(t){let s=aS(t).replace(/[\-:]/g,"");return{longDate:s,shortDate:s.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}class Ko extends Sh{headerFormatter=new Wo;constructor({applyChecksum:t,credentials:s,region:e,service:r,sha256:o,uriEscapePath:h=!0}){super({applyChecksum:t,credentials:s,region:e,service:r,sha256:o,uriEscapePath:h})}async presign(t,s={}){let{signingDate:e=new Date,expiresIn:r=3600,unsignableHeaders:o,unhoistableHeaders:h,signableHeaders:n,hoistableHeaders:f,signingRegion:u,signingService:a}=s,w=await this.credentialProvider();this.validateResolvedCredentials(w);let T=u??await this.regionProvider(),{longDate:m,shortDate:g}=this.formatDate(e);if(r>Vo)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let p=Ws(g,T,a??this.service),b=Jo(ah(t),{unhoistableHeaders:h,hoistableHeaders:f});if(w.sessionToken)b.query[xh]=w.sessionToken;b.query[_o]=Vs,b.query[Mo]=`${w.accessKeyId}/${p}`,b.query[Eh]=m,b.query[Lo]=r.toString(10);let P=lh(b,o,n);return b.query[Do]=this.getCanonicalHeaderList(P),b.query[wh]=await this.getSignature(m,p,this.getSigningKey(w,T,g,a),this.createCanonicalRequest(b,P,await Gs(t,this.sha256))),b}async sign(t,s){if(typeof t==="string")return this.signString(t,s);else if(t.headers&&t.payload)return this.signEvent(t,s);else if(t.message)return this.signMessage(t,s);else return this.signRequest(t,s)}async signEvent({headers:t,payload:s},{signingDate:e=new Date,priorSignature:r,signingRegion:o,signingService:h}){let n=o??await this.regionProvider(),{shortDate:f,longDate:u}=this.formatDate(e),a=Ws(f,n,h??this.service),w=await Gs({headers:{},body:s},this.sha256),T=new this.sha256;T.update(t);let m=xt.toHex(await T.digest()),g=[Bo,u,a,r,m,w].join(`
13
- `);return this.signString(g,{signingDate:e,signingRegion:n,signingService:h})}async signMessage(t,{signingDate:s=new Date,signingRegion:e,signingService:r}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:s,signingRegion:e,signingService:r,priorSignature:t.priorSignature}).then((h)=>{return{message:t.message,signature:h}})}async signString(t,{signingDate:s=new Date,signingRegion:e,signingService:r}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let h=e??await this.regionProvider(),{shortDate:n}=this.formatDate(s),f=new this.sha256(await this.getSigningKey(o,h,n,r));return f.update(pt.toUint8Array(t)),xt.toHex(await f.digest())}async signRequest(t,{signingDate:s=new Date,signableHeaders:e,unsignableHeaders:r,signingRegion:o,signingService:h}={}){let n=await this.credentialProvider();this.validateResolvedCredentials(n);let f=o??await this.regionProvider(),u=ah(t),{longDate:a,shortDate:w}=this.formatDate(s),T=Ws(w,f,h??this.service);if(u.headers[Ah]=a,n.sessionToken)u.headers[Ho]=n.sessionToken;let m=await Gs(u,this.sha256);if(!Go(Js,u.headers)&&this.applyChecksum)u.headers[Js]=m;let g=lh(u,r,e),p=await this.getSignature(a,T,this.getSigningKey(n,f,w,h),this.createCanonicalRequest(u,g,m));return u.headers[Th]=`${Vs} Credential=${n.accessKeyId}/${T}, SignedHeaders=${this.getCanonicalHeaderList(g)}, Signature=${p}`,u}async getSignature(t,s,e,r){let o=await this.createStringToSign(t,s,r,Vs),h=new this.sha256(await e);return h.update(pt.toUint8Array(o)),xt.toHex(await h.digest())}getSigningKey(t,s,e,r){return Yo(this.sha256,t,e,s,r||this.service)}}var wS={SignatureV4a:null};xS.ALGORITHM_IDENTIFIER=Vs;xS.ALGORITHM_IDENTIFIER_V4A=uS;xS.ALGORITHM_QUERY_PARAM=_o;xS.ALWAYS_UNSIGNABLE_HEADERS=Po;xS.AMZ_DATE_HEADER=Ah;xS.AMZ_DATE_QUERY_PARAM=Eh;xS.AUTH_HEADER=Th;xS.CREDENTIAL_QUERY_PARAM=Mo;xS.DATE_HEADER=Io;xS.EVENT_ALGORITHM_IDENTIFIER=Bo;xS.EXPIRES_QUERY_PARAM=Lo;xS.GENERATED_HEADERS=Uo;xS.HOST_HEADER=oS;xS.KEY_TYPE_IDENTIFIER=mh;xS.MAX_CACHE_SIZE=Qo;xS.MAX_PRESIGNED_TTL=Vo;xS.PROXY_HEADER_PATTERN=zo;xS.REGION_SET_PARAM=cS;xS.SEC_HEADER_PATTERN=Co;xS.SHA256_HEADER=Js;xS.SIGNATURE_HEADER=Oo;xS.SIGNATURE_QUERY_PARAM=wh;xS.SIGNED_HEADERS_QUERY_PARAM=Do;xS.SignatureV4=Ko;xS.SignatureV4Base=Sh;xS.TOKEN_HEADER=Ho;xS.TOKEN_QUERY_PARAM=xh;xS.UNSIGNABLE_PATTERNS=fS;xS.UNSIGNED_PAYLOAD=Xo;xS.clearCredentialCache=dS;xS.createScope=Ws;xS.getCanonicalHeaders=lh;xS.getCanonicalQuery=Zo;xS.getPayloadHash=Gs;xS.getSigningKey=Yo;xS.hasHeader=Go;xS.moveHeadersToQuery=Jo;xS.prepareRequest=ah;xS.signatureV4aContainer=wS});var NN=$((dN)=>{var Nh=uh(),Tt=nr(),Fo=rf(),eN=Mn(),qo=jo(),ko=(t)=>Nh.HttpResponse.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,gh=(t)=>new Date(Date.now()+t),rN=(t,s)=>Math.abs(gh(s).getTime()-t)>=300000,vo=(t,s)=>{let e=Date.parse(t);if(rN(e,s))return e-Date.now();return s},ls=(t,s)=>{if(!s)throw Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return s},ph=async(t)=>{let s=ls("context",t.context),e=ls("config",t.config),r=s.endpointV2?.properties?.authSchemes?.[0],h=await ls("signer",e.signer)(r),n=t?.signingRegion,f=t?.signingRegionSet,u=t?.signingName;return{config:e,signer:h,signingRegion:n,signingRegionSet:f,signingName:u}};class Zs{async sign(t,s,e){if(!Nh.HttpRequest.isInstance(t))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let r=await ph(e),{config:o,signer:h}=r,{signingRegion:n,signingName:f}=r,u=e.context;if(u?.authSchemes?.length??!1){let[w,T]=u.authSchemes;if(w?.name==="sigv4a"&&T?.name==="sigv4")n=T?.signingRegion??n,f=T?.signingName??f}return await h.sign(t,{signingDate:gh(o.systemClockOffset),signingRegion:n,signingService:f})}errorHandler(t){return(s)=>{let e=s.ServerTime??ko(s.$response);if(e){let r=ls("config",t.config),o=r.systemClockOffset;if(r.systemClockOffset=vo(e,r.systemClockOffset),r.systemClockOffset!==o&&s.$metadata)s.$metadata.clockSkewCorrected=!0}throw s}}successHandler(t,s){let e=ko(t);if(e){let r=ls("config",s.config);r.systemClockOffset=vo(e,r.systemClockOffset)}}}var hN=Zs;class hf extends Zs{async sign(t,s,e){if(!Nh.HttpRequest.isInstance(t))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:r,signer:o,signingRegion:h,signingRegionSet:n,signingName:f}=await ph(e),a=(await r.sigv4aSigningRegionSet?.()??n??[h]).join(",");return await o.sign(t,{signingDate:gh(r.systemClockOffset),signingRegion:a,signingService:f})}}var tf=(t)=>typeof t==="string"&&t.length>0?t.split(",").map((s)=>s.trim()):[],nf=(t)=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`,sf="AWS_AUTH_SCHEME_PREFERENCE",ef="auth_scheme_preference",iN={environmentVariableSelector:(t,s)=>{if(s?.signingName){if(nf(s.signingName)in t)return["httpBearerAuth"]}if(!(sf in t))return;return tf(t[sf])},configFileSelector:(t)=>{if(!(ef in t))return;return tf(t[ef])},default:[]},nN=(t)=>{return t.sigv4aSigningRegionSet=Tt.normalizeProvider(t.sigv4aSigningRegionSet),t},cN={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((s)=>s.trim());throw new Fo.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map((s)=>s.trim());throw new Fo.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},cf=(t)=>{let s=t.credentials,e=!!t.credentials,r=void 0;Object.defineProperty(t,"credentials",{set(a){if(a&&a!==s&&a!==r)e=!0;s=a;let w=fN(t,{credentials:s,credentialDefaultProvider:t.credentialDefaultProvider}),T=uN(t,w);if(e&&!T.attributed){let m=typeof s==="object"&&s!==null;r=async(g)=>{let b=await T(g);if(m&&(!b.$source||Object.keys(b.$source).length===0))return eN.setCredentialFeature(b,"CREDENTIALS_CODE","e");return b},r.memoized=T.memoized,r.configBound=T.configBound,r.attributed=!0}else r=T},get(){return r},enumerable:!0,configurable:!0}),t.credentials=s;let{signingEscapePath:o=!0,systemClockOffset:h=t.systemClockOffset||0,sha256:n}=t,f;if(t.signer)f=Tt.normalizeProvider(t.signer);else if(t.regionInfoProvider)f=()=>Tt.normalizeProvider(t.region)().then(async(a)=>[await t.regionInfoProvider(a,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},a]).then(([a,w])=>{let{signingRegion:T,signingService:m}=a;t.signingRegion=t.signingRegion||T||w,t.signingName=t.signingName||m||t.serviceId;let g={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:n,uriEscapePath:o};return new(t.signerConstructor||qo.SignatureV4)(g)});else f=async(a)=>{a=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await Tt.normalizeProvider(t.region)(),properties:{}},a);let{signingRegion:w,signingName:T}=a;t.signingRegion=t.signingRegion||w,t.signingName=t.signingName||T||t.serviceId;let m={...t,credentials:t.credentials,region:t.signingRegion,service:t.signingName,sha256:n,uriEscapePath:o};return new(t.signerConstructor||qo.SignatureV4)(m)};return Object.assign(t,{systemClockOffset:h,signingEscapePath:o,signer:f})},oN=cf;function fN(t,{credentials:s,credentialDefaultProvider:e}){let r;if(s)if(!s?.memoized)r=Tt.memoizeIdentityProvider(s,Tt.isIdentityExpired,Tt.doesIdentityRequireRefresh);else r=s;else if(e)r=Tt.normalizeProvider(e(Object.assign({},t,{parentClientConfig:t})));else r=async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return r.memoized=!0,r}function uN(t,s){if(s.configBound)return s;let e=async(r)=>s({...r,callerClientConfig:t});return e.memoized=s.memoized,e.configBound=!0,e}dN.AWSSDKSigV4Signer=hN;dN.AwsSdkSigV4ASigner=hf;dN.AwsSdkSigV4Signer=Zs;dN.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=iN;dN.NODE_SIGV4A_CONFIG_OPTIONS=cN;dN.getBearerTokenEnvKey=nf;dN.resolveAWSSDKSigV4Config=oN;dN.resolveAwsSdkSigV4AConfig=nN;dN.resolveAwsSdkSigV4Config=cf;dN.validateSigningProperties=ph});var gN=$((b$,Fs)=>{var of,ff,uf,df,lf,af,Ef,wf,xf,Tf,Af,mf,yf,Ks,bh,Sf,Nf,gf,Ht,pf,bf,$f,Rf,_f,Mf,Df,Lf,If,js,Uf,Of,Hf;(function(t){var s=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(r){t(e(s,e(r)))});else if(typeof Fs==="object"&&typeof b$==="object")t(e(s,e(b$)));else t(e(s));function e(r,o){if(r!==s)if(typeof Object.create==="function")Object.defineProperty(r,"__esModule",{value:!0});else r.__esModule=!0;return function(h,n){return r[h]=o?o(h,n):n}}})(function(t){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,n){h.__proto__=n}||function(h,n){for(var f in n)if(Object.prototype.hasOwnProperty.call(n,f))h[f]=n[f]};of=function(h,n){if(typeof n!=="function"&&n!==null)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");s(h,n);function f(){this.constructor=h}h.prototype=n===null?Object.create(n):(f.prototype=n.prototype,new f)},ff=Object.assign||function(h){for(var n,f=1,u=arguments.length;f<u;f++){n=arguments[f];for(var a in n)if(Object.prototype.hasOwnProperty.call(n,a))h[a]=n[a]}return h},uf=function(h,n){var f={};for(var u in h)if(Object.prototype.hasOwnProperty.call(h,u)&&n.indexOf(u)<0)f[u]=h[u];if(h!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var a=0,u=Object.getOwnPropertySymbols(h);a<u.length;a++)if(n.indexOf(u[a])<0&&Object.prototype.propertyIsEnumerable.call(h,u[a]))f[u[a]]=h[u[a]]}return f},df=function(h,n,f,u){var a=arguments.length,w=a<3?n:u===null?u=Object.getOwnPropertyDescriptor(n,f):u,T;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")w=Reflect.decorate(h,n,f,u);else for(var m=h.length-1;m>=0;m--)if(T=h[m])w=(a<3?T(w):a>3?T(n,f,w):T(n,f))||w;return a>3&&w&&Object.defineProperty(n,f,w),w},lf=function(h,n){return function(f,u){n(f,u,h)}},af=function(h,n,f,u,a,w){function T(Q){if(Q!==void 0&&typeof Q!=="function")throw TypeError("Function expected");return Q}var m=u.kind,g=m==="getter"?"get":m==="setter"?"set":"value",p=!n&&h?u.static?h:h.prototype:null,b=n||(p?Object.getOwnPropertyDescriptor(p,u.name):{}),P,X=!1;for(var U=f.length-1;U>=0;U--){var D={};for(var W in u)D[W]=W==="access"?{}:u[W];for(var W in u.access)D.access[W]=u.access[W];D.addInitializer=function(Q){if(X)throw TypeError("Cannot add initializers after decoration has completed");w.push(T(Q||null))};var v=(0,f[U])(m==="accessor"?{get:b.get,set:b.set}:b[g],D);if(m==="accessor"){if(v===void 0)continue;if(v===null||typeof v!=="object")throw TypeError("Object expected");if(P=T(v.get))b.get=P;if(P=T(v.set))b.set=P;if(P=T(v.init))a.unshift(P)}else if(P=T(v))if(m==="field")a.unshift(P);else b[g]=P}if(p)Object.defineProperty(p,u.name,b);X=!0},Ef=function(h,n,f){var u=arguments.length>2;for(var a=0;a<n.length;a++)f=u?n[a].call(h,f):n[a].call(h);return u?f:void 0},wf=function(h){return typeof h==="symbol"?h:"".concat(h)},xf=function(h,n,f){if(typeof n==="symbol")n=n.description?"[".concat(n.description,"]"):"";return Object.defineProperty(h,"name",{configurable:!0,value:f?"".concat(f," ",n):n})},Tf=function(h,n){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(h,n)},Af=function(h,n,f,u){function a(w){return w instanceof f?w:new f(function(T){T(w)})}return new(f||(f=Promise))(function(w,T){function m(b){try{p(u.next(b))}catch(P){T(P)}}function g(b){try{p(u.throw(b))}catch(P){T(P)}}function p(b){b.done?w(b.value):a(b.value).then(m,g)}p((u=u.apply(h,n||[])).next())})},mf=function(h,n){var f={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},u,a,w,T=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return T.next=m(0),T.throw=m(1),T.return=m(2),typeof Symbol==="function"&&(T[Symbol.iterator]=function(){return this}),T;function m(p){return function(b){return g([p,b])}}function g(p){if(u)throw TypeError("Generator is already executing.");while(T&&(T=0,p[0]&&(f=0)),f)try{if(u=1,a&&(w=p[0]&2?a.return:p[0]?a.throw||((w=a.return)&&w.call(a),0):a.next)&&!(w=w.call(a,p[1])).done)return w;if(a=0,w)p=[p[0]&2,w.value];switch(p[0]){case 0:case 1:w=p;break;case 4:return f.label++,{value:p[1],done:!1};case 5:f.label++,a=p[1],p=[0];continue;case 7:p=f.ops.pop(),f.trys.pop();continue;default:if((w=f.trys,!(w=w.length>0&&w[w.length-1]))&&(p[0]===6||p[0]===2)){f=0;continue}if(p[0]===3&&(!w||p[1]>w[0]&&p[1]<w[3])){f.label=p[1];break}if(p[0]===6&&f.label<w[1]){f.label=w[1],w=p;break}if(w&&f.label<w[2]){f.label=w[2],f.ops.push(p);break}if(w[2])f.ops.pop();f.trys.pop();continue}p=n.call(h,f)}catch(b){p=[6,b],a=0}finally{u=w=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},yf=function(h,n){for(var f in h)if(f!=="default"&&!Object.prototype.hasOwnProperty.call(n,f))js(n,h,f)},js=Object.create?function(h,n,f,u){if(u===void 0)u=f;var a=Object.getOwnPropertyDescriptor(n,f);if(!a||("get"in a?!n.__esModule:a.writable||a.configurable))a={enumerable:!0,get:function(){return n[f]}};Object.defineProperty(h,u,a)}:function(h,n,f,u){if(u===void 0)u=f;h[u]=n[f]},Ks=function(h){var n=typeof Symbol==="function"&&Symbol.iterator,f=n&&h[n],u=0;if(f)return f.call(h);if(h&&typeof h.length==="number")return{next:function(){if(h&&u>=h.length)h=void 0;return{value:h&&h[u++],done:!h}}};throw TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},bh=function(h,n){var f=typeof Symbol==="function"&&h[Symbol.iterator];if(!f)return h;var u=f.call(h),a,w=[],T;try{while((n===void 0||n-- >0)&&!(a=u.next()).done)w.push(a.value)}catch(m){T={error:m}}finally{try{if(a&&!a.done&&(f=u.return))f.call(u)}finally{if(T)throw T.error}}return w},Sf=function(){for(var h=[],n=0;n<arguments.length;n++)h=h.concat(bh(arguments[n]));return h},Nf=function(){for(var h=0,n=0,f=arguments.length;n<f;n++)h+=arguments[n].length;for(var u=Array(h),a=0,n=0;n<f;n++)for(var w=arguments[n],T=0,m=w.length;T<m;T++,a++)u[a]=w[T];return u},gf=function(h,n,f){if(f||arguments.length===2){for(var u=0,a=n.length,w;u<a;u++)if(w||!(u in n)){if(!w)w=Array.prototype.slice.call(n,0,u);w[u]=n[u]}}return h.concat(w||Array.prototype.slice.call(n))},Ht=function(h){return this instanceof Ht?(this.v=h,this):new Ht(h)},pf=function(h,n,f){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var u=f.apply(h,n||[]),a,w=[];return a=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),m("next"),m("throw"),m("return",T),a[Symbol.asyncIterator]=function(){return this},a;function T(U){return function(D){return Promise.resolve(D).then(U,P)}}function m(U,D){if(u[U]){if(a[U]=function(W){return new Promise(function(v,Q){w.push([U,W,v,Q])>1||g(U,W)})},D)a[U]=D(a[U])}}function g(U,D){try{p(u[U](D))}catch(W){X(w[0][3],W)}}function p(U){U.value instanceof Ht?Promise.resolve(U.value.v).then(b,P):X(w[0][2],U)}function b(U){g("next",U)}function P(U){g("throw",U)}function X(U,D){if(U(D),w.shift(),w.length)g(w[0][0],w[0][1])}},bf=function(h){var n,f;return n={},u("next"),u("throw",function(a){throw a}),u("return"),n[Symbol.iterator]=function(){return this},n;function u(a,w){n[a]=h[a]?function(T){return(f=!f)?{value:Ht(h[a](T)),done:!1}:w?w(T):T}:w}},$f=function(h){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n=h[Symbol.asyncIterator],f;return n?n.call(h):(h=typeof Ks==="function"?Ks(h):h[Symbol.iterator](),f={},u("next"),u("throw"),u("return"),f[Symbol.asyncIterator]=function(){return this},f);function u(w){f[w]=h[w]&&function(T){return new Promise(function(m,g){T=h[w](T),a(m,g,T.done,T.value)})}}function a(w,T,m,g){Promise.resolve(g).then(function(p){w({value:p,done:m})},T)}},Rf=function(h,n){if(Object.defineProperty)Object.defineProperty(h,"raw",{value:n});else h.raw=n;return h};var e=Object.create?function(h,n){Object.defineProperty(h,"default",{enumerable:!0,value:n})}:function(h,n){h.default=n},r=function(h){return r=Object.getOwnPropertyNames||function(n){var f=[];for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u))f[f.length]=u;return f},r(h)};_f=function(h){if(h&&h.__esModule)return h;var n={};if(h!=null){for(var f=r(h),u=0;u<f.length;u++)if(f[u]!=="default")js(n,h,f[u])}return e(n,h),n},Mf=function(h){return h&&h.__esModule?h:{default:h}},Df=function(h,n,f,u){if(f==="a"&&!u)throw TypeError("Private accessor was defined without a getter");if(typeof n==="function"?h!==n||!u:!n.has(h))throw TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?u:f==="a"?u.call(h):u?u.value:n.get(h)},Lf=function(h,n,f,u,a){if(u==="m")throw TypeError("Private method is not writable");if(u==="a"&&!a)throw TypeError("Private accessor was defined without a setter");if(typeof n==="function"?h!==n||!a:!n.has(h))throw TypeError("Cannot write private member to an object whose class did not declare it");return u==="a"?a.call(h,f):a?a.value=f:n.set(h,f),f},If=function(h,n){if(n===null||typeof n!=="object"&&typeof n!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof h==="function"?n===h:h.has(n)},Uf=function(h,n,f){if(n!==null&&n!==void 0){if(typeof n!=="object"&&typeof n!=="function")throw TypeError("Object expected.");var u,a;if(f){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");u=n[Symbol.asyncDispose]}if(u===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(u=n[Symbol.dispose],f)a=u}if(typeof u!=="function")throw TypeError("Object not disposable.");if(a)u=function(){try{a.call(this)}catch(w){return Promise.reject(w)}};h.stack.push({value:n,dispose:u,async:f})}else if(f)h.stack.push({async:!0});return n};var o=typeof SuppressedError==="function"?SuppressedError:function(h,n,f){var u=Error(f);return u.name="SuppressedError",u.error=h,u.suppressed=n,u};Of=function(h){function n(w){h.error=h.hasError?new o(w,h.error,"An error was suppressed during disposal."):w,h.hasError=!0}var f,u=0;function a(){while(f=h.stack.pop())try{if(!f.async&&u===1)return u=0,h.stack.push(f),Promise.resolve().then(a);if(f.dispose){var w=f.dispose.call(f.value);if(f.async)return u|=2,Promise.resolve(w).then(a,function(T){return n(T),a()})}else u|=1}catch(T){n(T)}if(u===1)return h.hasError?Promise.reject(h.error):Promise.resolve();if(h.hasError)throw h.error}return a()},Hf=function(h,n){if(typeof h==="string"&&/^\.\.?\//.test(h))return h.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(f,u,a,w,T){return u?n?".jsx":".js":a&&(!w||!T)?f:a+w+"."+T.toLowerCase()+"js"});return h},t("__extends",of),t("__assign",ff),t("__rest",uf),t("__decorate",df),t("__param",lf),t("__esDecorate",af),t("__runInitializers",Ef),t("__propKey",wf),t("__setFunctionName",xf),t("__metadata",Tf),t("__awaiter",Af),t("__generator",mf),t("__exportStar",yf),t("__createBinding",js),t("__values",Ks),t("__read",bh),t("__spread",Sf),t("__spreadArrays",Nf),t("__spreadArray",gf),t("__await",Ht),t("__asyncGenerator",pf),t("__asyncDelegator",bf),t("__asyncValues",$f),t("__makeTemplateObject",Rf),t("__importStar",_f),t("__importDefault",Mf),t("__classPrivateFieldGet",Df),t("__classPrivateFieldSet",Lf),t("__classPrivateFieldIn",If),t("__addDisposableResource",Uf),t("__disposeResources",Of),t("__rewriteRelativeImportExtension",Hf)})});var bN=$(($$,pN)=>{pN.exports={name:"@aws-sdk/nested-clients",version:"3.996.17",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.973.26","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.9","@aws-sdk/middleware-user-agent":"^3.972.27","@aws-sdk/region-config-resolver":"^3.972.10","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.13","@smithy/config-resolver":"^4.4.13","@smithy/core":"^3.23.13","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.28","@smithy/middleware-retry":"^4.4.45","@smithy/middleware-serde":"^4.2.16","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.1","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.8","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@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.44","@smithy/util-defaults-mode-node":"^4.2.48","@smithy/util-endpoints":"^3.3.3","@smithy/util-middleware":"^4.2.12","@smithy/util-retry":"^4.2.12","@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 JN=$((BN)=>{var __dirname="/workspace/viudes/claudio/node_modules/@aws-sdk/util-user-agent-node/dist-cjs",Pf=st("node:os"),as=st("node:process"),zf=or(),Cf=st("node:fs/promises"),Pt=st("node:path"),$N=Un(),RN=()=>{let t=["deno","bun","llrt"];for(let s of t)if(as.versions[s])return[`md/${s}`,as.versions[s]];return["md/nodejs",as.versions.node]},_N=(t)=>{let s=process.cwd();if(!t)return[s];let e=Pt.normalize(t),r=e.split(Pt.sep),o=r.indexOf("node_modules"),h=o!==-1?r.slice(0,o).join(Pt.sep):e;if(s===h)return[s];return[h,s]},MN=/^(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-]+)*)?$/,Bf=(t="")=>{let s=t.match(MN);if(!s)return;let[e,r,o,h]=[s[1],s[2],s[3],s[4]];return h?`${e}.${r}.${o}-${h}`:`${e}.${r}.${o}`},DN=["^","~",">=","<=",">","<"],LN=["latest","beta","dev","rc","insiders","next"],IN=(t="")=>{if(LN.includes(t))return t;let s=DN.find((r)=>t.startsWith(r))??"",e=Bf(t.slice(s.length));if(!e)return;return`${s}${e}`},ht,UN=Pt.join("node_modules","typescript","package.json"),ON=async()=>{if(ht===null)return;else if(typeof ht==="string")return["md/tsc",ht];let t=!1;try{t=zf.booleanSelector(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",zf.SelectorType.ENV)||!1}catch{}if(t){ht=null;return}let e=_N(typeof __dirname<"u"?__dirname:void 0),r;for(let n of e)try{let f=Pt.join(n,"package.json"),u=await Cf.readFile(f,"utf-8"),{dependencies:a,devDependencies:w}=JSON.parse(u),T=w?.typescript??a?.typescript;if(typeof T!=="string")continue;r=T;break}catch{}if(!r){ht=null;return}let o;for(let n of e)try{let f=Pt.join(n,UN),u=await Cf.readFile(f,"utf-8"),{version:a}=JSON.parse(u),w=Bf(a);if(typeof w!=="string")continue;o=w;break}catch{}if(o)return ht=o,["md/tsc",ht];let h=IN(r);if(typeof h!=="string"){ht=null;return}return ht=`dev_${h}`,["md/tsc",ht]},Xf={isCrtAvailable:!1},HN=()=>{if(Xf.isCrtAvailable)return["md/crt-avail"];return null},Qf=({serviceId:t,clientVersion:s})=>{let e=RN();return async(r)=>{let o=[["aws-sdk-js",s],["ua","2.1"],[`os/${Pf.platform()}`,Pf.release()],["lang/js"],e],h=await ON();if(h)o.push(h);let n=HN();if(n)o.push(n);if(t)o.push([`api/${t}`,s]);if(as.env.AWS_EXECUTION_ENV)o.push([`exec-env/${as.env.AWS_EXECUTION_ENV}`]);let f=await r?.userAgentAppId?.();return f?[...o,[`app/${f}`]]:[...o]}},PN=Qf,Vf="AWS_SDK_UA_APP_ID",Yf="sdk_ua_app_id",zN="sdk-ua-app-id",CN={environmentVariableSelector:(t)=>t[Vf],configFileSelector:(t)=>t[Yf]??t[zN],default:$N.DEFAULT_UA_APP_ID};BN.NODE_APP_ID_CONFIG_OPTIONS=CN;BN.UA_APP_ID_ENV_NAME=Vf;BN.UA_APP_ID_INI_NAME=Yf;BN.createDefaultUserAgentProvider=Qf;BN.crtAvailability=Xf;BN.defaultUserAgent=PN});var Wf=$((KN)=>{var ZN=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";KN.isArrayBuffer=ZN});var Gf=$((vN)=>{var FN=Wf(),$h=st("buffer"),qN=(t,s=0,e=t.byteLength-s)=>{if(!FN.isArrayBuffer(t))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return $h.Buffer.from(t,s,e)},kN=(t,s)=>{if(typeof t!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return s?$h.Buffer.from(t,s):$h.Buffer.from(t)};vN.fromArrayBuffer=qN;vN.fromString=kN});var n1=$((h1)=>{var Rh=Gf(),e1=Ot(),r1=st("buffer"),Jf=st("crypto");class Kf{algorithmIdentifier;secret;hash;constructor(t,s){this.algorithmIdentifier=t,this.secret=s,this.reset()}update(t,s){this.hash.update(e1.toUint8Array(Zf(t,s)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Jf.createHmac(this.algorithmIdentifier,Zf(this.secret)):Jf.createHash(this.algorithmIdentifier)}}function Zf(t,s){if(r1.Buffer.isBuffer(t))return t;if(typeof t==="string")return Rh.fromString(t,s);if(ArrayBuffer.isView(t))return Rh.fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength);return Rh.fromArrayBuffer(t)}h1.Hash=Kf});var u1=$((o1)=>{var _h=st("node:fs"),c1=(t)=>{if(!t)return 0;if(typeof t==="string")return Buffer.byteLength(t);else if(typeof t.byteLength==="number")return t.byteLength;else if(typeof t.size==="number")return t.size;else if(typeof t.start==="number"&&typeof t.end==="number")return t.end+1-t.start;else if(t instanceof _h.ReadStream){if(t.path!=null)return _h.lstatSync(t.path).size;else if(typeof t.fd==="number")return _h.fstatSync(t.fd).size}throw Error(`Body Length computation failed for ${t}`)};o1.calculateBodyLength=c1});var b1=$((g1)=>{var d1=Ms(),jf=mr(),l1=rf(),a1="AWS_EXECUTION_ENV",Ff="AWS_REGION",qf="AWS_DEFAULT_REGION",E1="AWS_EC2_METADATA_DISABLED",w1=["in-region","cross-region","mobile","standard","legacy"],x1="/latest/meta-data/placement/region",T1="AWS_DEFAULTS_MODE",A1="defaults_mode",m1={environmentVariableSelector:(t)=>{return t[T1]},configFileSelector:(t)=>{return t[A1]},default:"legacy"},y1=({region:t=jf.loadConfig(d1.NODE_REGION_CONFIG_OPTIONS),defaultsMode:s=jf.loadConfig(m1)}={})=>l1.memoize(async()=>{let e=typeof s==="function"?await s():s;switch(e?.toLowerCase()){case"auto":return S1(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(e?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${w1.join(", ")}, got ${e}`)}}),S1=async(t)=>{if(t){let s=typeof t==="function"?await t():t,e=await N1();if(!e)return"standard";if(s===e)return"in-region";else return"cross-region"}return"standard"},N1=async()=>{if(process.env[a1]&&(process.env[Ff]||process.env[qf]))return process.env[Ff]??process.env[qf];if(!process.env[E1])try{let{getInstanceMetadataEndpoint:t,httpRequest:s}=await import("./index-0.1.12-z0brwe1k.mjs"),e=await t();return(await s({...e,path:x1})).toString()}catch(t){}};g1.resolveDefaultsModeConfig=y1});var vf=$((R1)=>{var kf=typeof TextEncoder=="function"?new TextEncoder:null,$1=(t)=>{if(typeof t==="string"){if(kf)return kf.encode(t).byteLength;let s=t.length;for(let e=s-1;e>=0;e--){let r=t.charCodeAt(e);if(r>127&&r<=2047)s++;else if(r>2047&&r<=65535)s+=2;if(r>=56320&&r<=57343)e--}return s}else if(typeof t.byteLength==="number")return t.byteLength;else if(typeof t.size==="number")return t.size;throw Error(`Body Length computation failed for ${t}`)};R1.calculateBodyLength=$1});var au=$((v1)=>{var Ct=is(),ru=Ot(),ws=ns(),L1=M1(),I1=vf(),zt=hs(),U1=vt(),hu=D1(),vs=0,te=1,bt=2,At=3,Es=4,qs=5,iu=6,Mh=7,nu=20,Ih=21,cu=22,O1=23,Oh=24,$t=25,Rt=26,mt=27,Hh=31;function Bt(t){return typeof Buffer<"u"?Buffer.alloc(t):new Uint8Array(t)}var Ph=Symbol("@smithy/core/cbor::tagSymbol");function zh(t){return t[Ph]=!0,t}var H1=typeof TextDecoder<"u",P1=typeof Buffer<"u",B=Bt(0),ft=new DataView(B.buffer,B.byteOffset,B.byteLength),tu=H1?new TextDecoder:null,O=0;function z1(t){B=t,ft=new DataView(B.buffer,B.byteOffset,B.byteLength)}function ut(t,s){if(t>=s)throw Error("unexpected end of (decode) payload.");let e=(B[t]&224)>>5,r=B[t]&31;switch(e){case vs:case te:case iu:let o,h;if(r<24)o=r,h=1;else switch(r){case Oh:case $t:case Rt:case mt:let n=fu[r],f=n+1;if(h=f,s-t<f)throw Error(`countLength ${n} greater than remaining buf len.`);let u=t+1;if(n===1)o=B[u];else if(n===2)o=ft.getUint16(u);else if(n===4)o=ft.getUint32(u);else o=ft.getBigUint64(u);break;default:throw Error(`unexpected minor value ${r}.`)}if(e===vs)return O=h,Dh(o);else if(e===te){let n;if(typeof o==="bigint")n=BigInt(-1)-o;else n=-1-o;return O=h,Dh(n)}else if(r===2||r===3){let n=xs(t+h,s),f=BigInt(0),u=t+h+O;for(let a=u;a<u+n;++a)f=f<<BigInt(8)|BigInt(B[a]);return O=h+O+n,r===3?-f-BigInt(1):f}else if(r===4){let n=ut(t+h,s),[f,u]=n,a=u<0?-1:1,w="0".repeat(Math.abs(f)+1)+String(BigInt(a)*BigInt(u)),T,m=u<0?"-":"";if(T=f===0?w:w.slice(0,w.length+f)+"."+w.slice(f),T=T.replace(/^0+/g,""),T==="")T="0";if(T[0]===".")T="0"+T;return T=m+T,O=h+O,Ct.nv(T)}else{let n=ut(t+h,s);return O=h+O,zh({tag:Dh(o),value:n})}case At:case qs:case Es:case bt:if(r===Hh)switch(e){case At:return Q1(t,s);case qs:return J1(t,s);case Es:return W1(t,s);case bt:return V1(t,s)}else switch(e){case At:return X1(t,s);case qs:return G1(t,s);case Es:return Y1(t,s);case bt:return Ch(t,s)}default:return Z1(t,s)}}function ou(t,s,e){if(P1&&t.constructor?.name==="Buffer")return t.toString("utf-8",s,e);if(tu)return tu.decode(t.subarray(s,e));return ru.toUtf8(t.subarray(s,e))}function C1(t){let s=Number(t);if(s<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<s)console.warn(Error(`@smithy/core/cbor - truncating BigInt(${t}) to ${s} with loss of precision.`));return s}var fu={[Oh]:1,[$t]:2,[Rt]:4,[mt]:8};function B1(t,s){let e=t>>7,r=(t&124)>>2,o=(t&3)<<8|s,h=e===0?1:-1,n,f;if(r===0)if(o===0)return 0;else n=Math.pow(2,-14),f=0;else if(r===31)if(o===0)return h*(1/0);else return NaN;else n=Math.pow(2,r-15),f=1;return f+=o/1024,h*(n*f)}function xs(t,s){let e=B[t]&31;if(e<24)return O=1,e;if(e===Oh||e===$t||e===Rt||e===mt){let r=fu[e];if(O=r+1,s-t<O)throw Error(`countLength ${r} greater than remaining buf len.`);let o=t+1;if(r===1)return B[o];else if(r===2)return ft.getUint16(o);else if(r===4)return ft.getUint32(o);return C1(ft.getBigUint64(o))}throw Error(`unexpected minor value ${e}.`)}function X1(t,s){let e=xs(t,s),r=O;if(t+=r,s-t<e)throw Error(`string len ${e} greater than remaining buf len.`);let o=ou(B,t,t+e);return O=r+e,o}function Q1(t,s){t+=1;let e=[];for(let r=t;t<s;){if(B[t]===255){let u=Bt(e.length);return u.set(e,0),O=t-r+2,ou(u,0,u.length)}let o=(B[t]&224)>>5,h=B[t]&31;if(o!==At)throw Error(`unexpected major type ${o} in indefinite string.`);if(h===Hh)throw Error("nested indefinite string.");let n=Ch(t,s);t+=O;for(let u=0;u<n.length;++u)e.push(n[u])}throw Error("expected break marker.")}function Ch(t,s){let e=xs(t,s),r=O;if(t+=r,s-t<e)throw Error(`unstructured byte string len ${e} greater than remaining buf len.`);let o=B.subarray(t,t+e);return O=r+e,o}function V1(t,s){t+=1;let e=[];for(let r=t;t<s;){if(B[t]===255){let u=Bt(e.length);return u.set(e,0),O=t-r+2,u}let o=(B[t]&224)>>5,h=B[t]&31;if(o!==bt)throw Error(`unexpected major type ${o} in indefinite string.`);if(h===Hh)throw Error("nested indefinite string.");let n=Ch(t,s);t+=O;for(let u=0;u<n.length;++u)e.push(n[u])}throw Error("expected break marker.")}function Y1(t,s){let e=xs(t,s),r=O;t+=r;let o=t,h=Array(e);for(let n=0;n<e;++n){let f=ut(t,s),u=O;h[n]=f,t+=u}return O=r+(t-o),h}function W1(t,s){t+=1;let e=[];for(let r=t;t<s;){if(B[t]===255)return O=t-r+2,e;let o=ut(t,s);t+=O,e.push(o)}throw Error("expected break marker.")}function G1(t,s){let e=xs(t,s),r=O;t+=r;let o=t,h={};for(let n=0;n<e;++n){if(t>=s)throw Error("unexpected end of map payload.");let f=(B[t]&224)>>5;if(f!==At)throw Error(`unexpected major type ${f} for map key at index ${t}.`);let u=ut(t,s);t+=O;let a=ut(t,s);t+=O,h[u]=a}return O=r+(t-o),h}function J1(t,s){t+=1;let e=t,r={};for(;t<s;){if(t>=s)throw Error("unexpected end of map payload.");if(B[t]===255)return O=t-e+2,r;let o=(B[t]&224)>>5;if(o!==At)throw Error(`unexpected major type ${o} for map key.`);let h=ut(t,s);t+=O;let n=ut(t,s);t+=O,r[h]=n}throw Error("expected break marker.")}function Z1(t,s){let e=B[t]&31;switch(e){case Ih:case nu:return O=1,e===Ih;case cu:return O=1,null;case O1:return O=1,null;case $t:if(s-t<3)throw Error("incomplete float16 at end of buf.");return O=3,B1(B[t+1],B[t+2]);case Rt:if(s-t<5)throw Error("incomplete float32 at end of buf.");return O=5,ft.getFloat32(t+1);case mt:if(s-t<9)throw Error("incomplete float64 at end of buf.");return O=9,ft.getFloat64(t+1);default:throw Error(`unexpected minor value ${e}.`)}}function Dh(t){if(typeof t==="number")return t;let s=Number(t);if(Number.MIN_SAFE_INTEGER<=s&&s<=Number.MAX_SAFE_INTEGER)return s;return t}var su=typeof Buffer<"u",K1=2048,L=Bt(K1),ot=new DataView(L.buffer,L.byteOffset,L.byteLength),M=0;function Lh(t){if(L.byteLength-M<t)if(M<16000000)Uh(Math.max(L.byteLength*4,L.byteLength+t));else Uh(L.byteLength+t+16000000)}function eu(){let t=Bt(M);return t.set(L.subarray(0,M),0),M=0,t}function Uh(t){let s=L;if(L=Bt(t),s)if(s.copy)s.copy(L,0,0,s.byteLength);else L.set(s,0);ot=new DataView(L.buffer,L.byteOffset,L.byteLength)}function ct(t,s){if(s<24)L[M++]=t<<5|s;else if(s<256)L[M++]=t<<5|24,L[M++]=s;else if(s<65536)L[M++]=t<<5|$t,ot.setUint16(M,s),M+=2;else if(s<4294967296)L[M++]=t<<5|Rt,ot.setUint32(M,s),M+=4;else L[M++]=t<<5|mt,ot.setBigUint64(M,typeof s==="bigint"?s:BigInt(s)),M+=8}function j1(t){let s=[t];while(s.length){let e=s.pop();if(Lh(typeof e==="string"?e.length*4:64),typeof e==="string"){if(su)ct(At,Buffer.byteLength(e)),M+=L.write(e,M);else{let r=ru.fromUtf8(e);ct(At,r.byteLength),L.set(r,M),M+=r.byteLength}continue}else if(typeof e==="number"){if(Number.isInteger(e)){let r=e>=0,o=r?vs:te,h=r?e:-e-1;if(h<24)L[M++]=o<<5|h;else if(h<256)L[M++]=o<<5|24,L[M++]=h;else if(h<65536)L[M++]=o<<5|$t,L[M++]=h>>8,L[M++]=h;else if(h<4294967296)L[M++]=o<<5|Rt,ot.setUint32(M,h),M+=4;else L[M++]=o<<5|mt,ot.setBigUint64(M,BigInt(h)),M+=8;continue}L[M++]=Mh<<5|mt,ot.setFloat64(M,e),M+=8;continue}else if(typeof e==="bigint"){let r=e>=0,o=r?vs:te,h=r?e:-e-BigInt(1),n=Number(h);if(n<24)L[M++]=o<<5|n;else if(n<256)L[M++]=o<<5|24,L[M++]=n;else if(n<65536)L[M++]=o<<5|$t,L[M++]=n>>8,L[M++]=n&255;else if(n<4294967296)L[M++]=o<<5|Rt,ot.setUint32(M,n),M+=4;else if(h<BigInt("18446744073709551616"))L[M++]=o<<5|mt,ot.setBigUint64(M,h),M+=8;else{let f=h.toString(2),u=new Uint8Array(Math.ceil(f.length/8)),a=h,w=0;while(u.byteLength-++w>=0)u[u.byteLength-w]=Number(a&BigInt(255)),a>>=BigInt(8);if(Lh(u.byteLength*2),L[M++]=r?194:195,su)ct(bt,Buffer.byteLength(u));else ct(bt,u.byteLength);L.set(u,M),M+=u.byteLength}continue}else if(e===null){L[M++]=Mh<<5|cu;continue}else if(typeof e==="boolean"){L[M++]=Mh<<5|(e?Ih:nu);continue}else if(typeof e>"u")throw Error("@smithy/core/cbor: client may not serialize undefined value.");else if(Array.isArray(e)){for(let r=e.length-1;r>=0;--r)s.push(e[r]);ct(Es,e.length);continue}else if(typeof e.byteLength==="number"){Lh(e.length*2),ct(bt,e.length),L.set(e,M),M+=e.byteLength;continue}else if(typeof e==="object"){if(e instanceof Ct.NumericValue){let o=e.string.indexOf("."),h=o===-1?0:o-e.string.length+1,n=BigInt(e.string.replace(".",""));L[M++]=196,s.push(n),s.push(h),ct(Es,2);continue}if(e[Ph])if("tag"in e&&"value"in e){s.push(e.value),ct(iu,e.tag);continue}else throw Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(e));let r=Object.keys(e);for(let o=r.length-1;o>=0;--o){let h=r[o];s.push(e[h]),s.push(h)}ct(qs,r.length);continue}throw Error(`data type ${e?.constructor?.name??typeof e} not compatible for encoding.`)}}var se={deserialize(t){return z1(t),ut(0,t.length)},serialize(t){try{return j1(t),eu()}catch(s){throw eu(),s}},resizeEncodingBuffer(t){Uh(t)}},uu=(t,s)=>{return ws.collectBody(t,s).then(async(e)=>{if(e.length)try{return se.deserialize(e)}catch(r){throw Object.defineProperty(r,"$responseBodyText",{value:s.utf8Encoder(e)}),r}return{}})},ks=(t)=>{return zh({tag:1,value:t.getTime()/1000})},F1=async(t,s)=>{let e=await uu(t,s);return e.message=e.message??e.Message,e},du=(t,s)=>{let e=(o)=>{let h=o;if(typeof h==="number")h=h.toString();if(h.indexOf(",")>=0)h=h.split(",")[0];if(h.indexOf(":")>=0)h=h.split(":")[0];if(h.indexOf("#")>=0)h=h.split("#")[1];return h};if(s.__type!==void 0)return e(s.__type);let r=Object.keys(s).find((o)=>o.toLowerCase()==="code");if(r&&s[r]!==void 0)return e(s[r])},q1=(t)=>{if(String(t.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor")throw Error("Malformed RPCv2 CBOR response, status: "+t.statusCode)},k1=async(t,s,e,r,o)=>{let h=await t.endpoint(),{hostname:n,protocol:f="https",port:u,path:a}=h,w={protocol:f,hostname:n,port:u,method:"POST",path:a.endsWith("/")?a.slice(0,-1)+e:a+e,headers:{...s}};if(r!==void 0)w.hostname=r;if(h.headers)for(let[T,m]of Object.entries(h.headers))w.headers[T]=m;if(o!==void 0){w.body=o;try{w.headers["content-length"]=String(I1.calculateBodyLength(o))}catch(T){}}return new L1.HttpRequest(w)};class Bh extends ws.SerdeContext{createSerializer(){let t=new Xh;return t.setSerdeContext(this.serdeContext),t}createDeserializer(){let t=new Qh;return t.setSerdeContext(this.serdeContext),t}}class Xh extends ws.SerdeContext{value;write(t,s){this.value=this.serialize(t,s)}serialize(t,s){let e=zt.NormalizedSchema.of(t);if(s==null){if(e.isIdempotencyToken())return Ct.generateIdempotencyToken();return s}if(e.isBlobSchema()){if(typeof s==="string")return(this.serdeContext?.base64Decoder??hu.fromBase64)(s);return s}if(e.isTimestampSchema()){if(typeof s==="number"||typeof s==="bigint")return ks(new Date(Number(s)/1000|0));return ks(s)}if(typeof s==="function"||typeof s==="object"){let r=s;if(e.isListSchema()&&Array.isArray(r)){let h=!!e.getMergedTraits().sparse,n=[],f=0;for(let u of r){let a=this.serialize(e.getValueSchema(),u);if(a!=null||h)n[f++]=a}return n}if(r instanceof Date)return ks(r);let o={};if(e.isMapSchema()){let h=!!e.getMergedTraits().sparse;for(let n of Object.keys(r)){let f=this.serialize(e.getValueSchema(),r[n]);if(f!=null||h)o[n]=f}}else if(e.isStructSchema()){for(let[n,f]of e.structIterator()){let u=this.serialize(f,r[n]);if(u!=null)o[n]=u}if(e.isUnionSchema()&&Array.isArray(r.$unknown)){let[n,f]=r.$unknown;o[n]=f}else if(typeof r.__type==="string"){for(let[n,f]of Object.entries(r))if(!(n in o))o[n]=this.serialize(15,f)}}else if(e.isDocumentSchema())for(let h of Object.keys(r))o[h]=this.serialize(e.getValueSchema(),r[h]);else if(e.isBigDecimalSchema())return r;return o}return s}flush(){let t=se.serialize(this.value);return this.value=void 0,t}}class Qh extends ws.SerdeContext{read(t,s){let e=se.deserialize(s);return this.readValue(t,e)}readValue(t,s){let e=zt.NormalizedSchema.of(t);if(e.isTimestampSchema()){if(typeof s==="number")return Ct._parseEpochTimestamp(s);if(typeof s==="object"){if(s.tag===1&&"value"in s)return Ct._parseEpochTimestamp(s.value)}}if(e.isBlobSchema()){if(typeof s==="string")return(this.serdeContext?.base64Decoder??hu.fromBase64)(s);return s}if(typeof s>"u"||typeof s==="boolean"||typeof s==="number"||typeof s==="string"||typeof s==="bigint"||typeof s==="symbol")return s;else if(typeof s==="object"){if(s===null)return null;if("byteLength"in s)return s;if(s instanceof Date)return s;if(e.isDocumentSchema())return s;if(e.isListSchema()){let o=[],h=e.getValueSchema();for(let n of s){let f=this.readValue(h,n);o.push(f)}return o}let r={};if(e.isMapSchema()){let o=e.getValueSchema();for(let h of Object.keys(s)){let n=this.readValue(o,s[h]);r[h]=n}}else if(e.isStructSchema()){let o=e.isUnionSchema(),h;if(o)h=new Set(Object.keys(s).filter((n)=>n!=="__type"));for(let[n,f]of e.structIterator()){if(o)h.delete(n);if(s[n]!=null)r[n]=this.readValue(f,s[n])}if(o&&h?.size===1&&Object.keys(r).length===0){let n=h.values().next().value;r.$unknown=[n,s[n]]}else if(typeof s.__type==="string"){for(let[n,f]of Object.entries(s))if(!(n in r))r[n]=f}}else if(s instanceof Ct.NumericValue)return s;return r}else return s}}class lu extends ws.RpcProtocol{codec=new Bh;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:t,errorTypeRegistries:s}){super({defaultNamespace:t,errorTypeRegistries:s})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(t,s,e){let r=await super.serializeRequest(t,s,e);if(Object.assign(r.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),zt.deref(t.input)==="unit")delete r.body,delete r.headers["content-type"];else{if(!r.body)this.serializer.write(15,{}),r.body=this.serializer.flush();try{r.headers["content-length"]=String(r.body.byteLength)}catch(f){}}let{service:o,operation:h}=U1.getSmithyContext(e),n=`/service/${o}/operation/${h}`;if(r.path.endsWith("/"))r.path+=n.slice(1);else r.path+=n;return r}async deserializeResponse(t,s,e){return super.deserializeResponse(t,s,e)}async handleError(t,s,e,r,o){let h=du(e,r)??"Unknown",n={$metadata:o,$fault:e.statusCode<=500?"client":"server"},f=this.options.defaultNamespace;if(h.includes("#"))[f]=h.split("#");let u=this.compositeErrorRegistry,a=zt.TypeRegistry.for(f);u.copyFrom(a);let w;try{w=u.getSchema(h)}catch(P){if(r.Message)r.message=r.Message;let X=zt.TypeRegistry.for("smithy.ts.sdk.synthetic."+f);u.copyFrom(X);let U=u.getBaseException();if(U){let D=u.getErrorCtor(U);throw Object.assign(new D({name:h}),n,r)}throw Object.assign(Error(h),n,r)}let T=zt.NormalizedSchema.of(w),m=u.getErrorCtor(w),g=r.message??r.Message??"Unknown",p=new m(g),b={};for(let[P,X]of T.structIterator())b[P]=this.deserializer.readValue(X,r[P]);throw Object.assign(p,n,{$fault:T.getMergedTraits().error,message:g},b)}getDefaultContentType(){return"application/cbor"}}v1.CborCodec=Bh;v1.CborShapeDeserializer=Qh;v1.CborShapeSerializer=Xh;v1.SmithyRpcV2CborProtocol=lu;v1.buildHttpRpcRequest=k1;v1.cbor=se;v1.checkCborResponse=q1;v1.dateToTag=ks;v1.loadSmithyRpcV2CborErrorCode=du;v1.parseCborBody=uu;v1.parseCborErrorBody=F1;v1.tag=zh;v1.tagSymbol=Ph});var $u=$((Ts)=>{var wu=Cr(),Gh=ns(),ee=fh(),ag=hs(),re=is();class xu{config;middlewareStack=wu.constructStack();initConfig;handlers;constructor(t){this.config=t;let{protocol:s,protocolSettings:e}=t;if(e){if(typeof s==="function")t.protocol=new s(e)}}send(t,s,e){let r=typeof s!=="function"?s:void 0,o=typeof s==="function"?s:e,h=r===void 0&&this.config.cacheMiddleware===!0,n;if(h){if(!this.handlers)this.handlers=new WeakMap;let f=this.handlers;if(f.has(t.constructor))n=f.get(t.constructor);else n=t.resolveMiddleware(this.middlewareStack,this.config,r),f.set(t.constructor,n)}else delete this.handlers,n=t.resolveMiddleware(this.middlewareStack,this.config,r);if(o)n(t).then((f)=>o(null,f.output),(f)=>o(f)).catch(()=>{});else return n(t).then((f)=>f.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var Vh="***SensitiveInformation***";function Yh(t,s){if(s==null)return s;let e=ag.NormalizedSchema.of(t);if(e.getMergedTraits().sensitive)return Vh;if(e.isListSchema()){if(!!e.getValueSchema().getMergedTraits().sensitive)return Vh}else if(e.isMapSchema()){if(!!e.getKeySchema().getMergedTraits().sensitive||!!e.getValueSchema().getMergedTraits().sensitive)return Vh}else if(e.isStructSchema()&&typeof s==="object"){let r=s,o={};for(let[h,n]of e.structIterator())if(r[h]!=null)o[h]=Yh(n,r[h]);return o}return s}class Jh{middlewareStack=wu.constructStack();schema;static classBuilder(){return new Tu}resolveMiddlewareWithContext(t,s,e,{middlewareFn:r,clientName:o,commandName:h,inputFilterSensitiveLog:n,outputFilterSensitiveLog:f,smithyContext:u,additionalContext:a,CommandCtor:w}){for(let b of r.bind(this)(w,t,s,e))this.middlewareStack.use(b);let T=t.concat(this.middlewareStack),{logger:m}=s,g={logger:m,clientName:o,commandName:h,inputFilterSensitiveLog:n,outputFilterSensitiveLog:f,[ee.SMITHY_CONTEXT_KEY]:{commandInstance:this,...u},...a},{requestHandler:p}=s;return T.resolve((b)=>p.handle(b.request,e||{}),g)}}class Tu{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,s,e={}){return this._smithyContext={service:t,operation:s,...e},this}c(t={}){return this._additionalContext=t,this}n(t,s){return this._clientName=t,this._commandName=s,this}f(t=(e)=>e,s=(e)=>e){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=s,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){let t=this,s;return s=class extends Jh{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[e]){super();this.input=e??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(e,r,o){let h=t._operationSchema,n=h?.[4]??h?.input,f=h?.[5]??h?.output;return this.resolveMiddlewareWithContext(e,r,o,{CommandCtor:s,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(h?Yh.bind(null,n):(u)=>u),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(h?Yh.bind(null,f):(u)=>u),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}var Eg="***SensitiveInformation***",wg=(t,s,e)=>{for(let[h,n]of Object.entries(t)){let f=async function(a,w,T){let m=new n(a);if(typeof w==="function")this.send(m,w);else if(typeof T==="function"){if(typeof w!=="object")throw Error(`Expected http options but got ${typeof w}`);this.send(m,w||{},T)}else return this.send(m,w)},u=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");s.prototype[u]=f}let{paginators:r={},waiters:o={}}=e??{};for(let[h,n]of Object.entries(r))if(s.prototype[h]===void 0)s.prototype[h]=function(f={},u,...a){return n({...u,client:this},f,...a)};for(let[h,n]of Object.entries(o))if(s.prototype[h]===void 0)s.prototype[h]=async function(f={},u,...a){let w=u;if(typeof u==="number")w={maxWaitTime:u};return n({...w,client:this},f,...a)}};class Xt extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;let s=t;return Xt.prototype.isPrototypeOf(s)||Boolean(s.$fault)&&Boolean(s.$metadata)&&(s.$fault==="client"||s.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;let s=t;if(this===Xt)return Xt.isInstance(t);if(Xt.isInstance(t)){if(s.name&&this.name)return this.prototype.isPrototypeOf(t)||s.name===this.name;return this.prototype.isPrototypeOf(t)}return!1}}var Au=(t,s={})=>{Object.entries(s).filter(([,r])=>r!==void 0).forEach(([r,o])=>{if(t[r]==null||t[r]==="")t[r]=o});let e=t.message||t.Message||"UnknownError";return t.message=e,delete t.Message,t},mu=({output:t,parsedBody:s,exceptionCtor:e,errorCode:r})=>{let o=Tg(t),h=o.httpStatusCode?o.httpStatusCode+"":void 0,n=new e({name:s?.code||s?.Code||r||h||"UnknownError",$fault:"client",$metadata:o});throw Au(n,s)},xg=(t)=>{return({output:s,parsedBody:e,errorCode:r})=>{mu({output:s,parsedBody:e,exceptionCtor:t,errorCode:r})}},Tg=(t)=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),Ag=(t)=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},Eu=!1,mg=(t)=>{if(t&&!Eu&&parseInt(t.substring(1,t.indexOf(".")))<16)Eu=!0},yu=Object.values(ee.AlgorithmId),yg=(t)=>{let s=[];for(let e in ee.AlgorithmId){let r=ee.AlgorithmId[e];if(t[r]===void 0)continue;s.push({algorithmId:()=>r,checksumConstructor:()=>t[r]})}for(let[e,r]of Object.entries(t.checksumAlgorithms??{}))s.push({algorithmId:()=>e,checksumConstructor:()=>r});return{addChecksumAlgorithm(e){t.checksumAlgorithms=t.checksumAlgorithms??{};let r=e.algorithmId(),o=e.checksumConstructor();if(yu.includes(r))t.checksumAlgorithms[r.toUpperCase()]=o;else t.checksumAlgorithms[r]=o;s.push(e)},checksumAlgorithms(){return s}}},Sg=(t)=>{let s={};return t.checksumAlgorithms().forEach((e)=>{let r=e.algorithmId();if(yu.includes(r))s[r]=e.checksumConstructor()}),s},Ng=(t)=>{return{setRetryStrategy(s){t.retryStrategy=s},retryStrategy(){return t.retryStrategy}}},gg=(t)=>{let s={};return s.retryStrategy=t.retryStrategy(),s},Su=(t)=>{return Object.assign(yg(t),Ng(t))},pg=Su,bg=(t)=>{return Object.assign(Sg(t),gg(t))},$g=(t)=>Array.isArray(t)?t:[t],Nu=(t)=>{for(let e in t)if(t.hasOwnProperty(e)&&t[e]["#text"]!==void 0)t[e]=t[e]["#text"];else if(typeof t[e]==="object"&&t[e]!==null)t[e]=Nu(t[e]);return t},Rg=(t)=>{return t!=null};class gu{trace(){}debug(){}info(){}warn(){}error(){}}function pu(t,s,e){let r,o,h;if(typeof s>"u"&&typeof e>"u")r={},h=t;else if(r=t,typeof s==="function")return o=s,h=e,Dg(r,o,h);else h=s;for(let n of Object.keys(h)){if(!Array.isArray(h[n])){r[n]=h[n];continue}bu(r,null,h,n)}return r}var _g=(t)=>{let s={};for(let[e,r]of Object.entries(t||{}))s[e]=[,r];return s},Mg=(t,s)=>{let e={};for(let r in s)bu(e,t,s,r);return e},Dg=(t,s,e)=>{return pu(t,Object.entries(e).reduce((r,[o,h])=>{if(Array.isArray(h))r[o]=h;else if(typeof h==="function")r[o]=[s,h()];else r[o]=[s,h];return r},{}))},bu=(t,s,e,r)=>{if(s!==null){let n=e[r];if(typeof n==="function")n=[,n];let[f=Lg,u=Ig,a=r]=n;if(typeof f==="function"&&f(s[a])||typeof f!=="function"&&!!f)t[r]=u(s[a]);return}let[o,h]=e[r];if(typeof h==="function"){let n,f=o===void 0&&(n=h())!=null,u=typeof o==="function"&&!!o(void 0)||typeof o!=="function"&&!!o;if(f)t[r]=n;else if(u)t[r]=h()}else{let n=o===void 0&&h!=null,f=typeof o==="function"&&!!o(h)||typeof o!=="function"&&!!o;if(n||f)t[r]=h}},Lg=(t)=>t!=null,Ig=(t)=>t,Ug=(t)=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},Og=(t)=>t.toISOString().replace(".000Z","Z"),Wh=(t)=>{if(t==null)return{};if(Array.isArray(t))return t.filter((s)=>s!=null).map(Wh);if(typeof t==="object"){let s={};for(let e of Object.keys(t)){if(t[e]==null)continue;s[e]=Wh(t[e])}return s}return t};Ts.collectBody=Gh.collectBody;Ts.extendedEncodeURIComponent=Gh.extendedEncodeURIComponent;Ts.resolvedPath=Gh.resolvedPath;Ts.Client=xu;Ts.Command=Jh;Ts.NoOpLogger=gu;Ts.SENSITIVE_STRING=Eg;Ts.ServiceException=Xt;Ts._json=Wh;Ts.convertMap=_g;Ts.createAggregatedClient=wg;Ts.decorateServiceException=Au;Ts.emitWarningIfUnsupportedVersion=mg;Ts.getArrayIfSingleItem=$g;Ts.getDefaultClientConfiguration=pg;Ts.getDefaultExtensionConfiguration=Su;Ts.getValueFromTextNode=Nu;Ts.isSerializableHeaderValue=Rg;Ts.loadConfigsForDefaultMode=Ag;Ts.map=pu;Ts.resolveDefaultRuntimeConfig=bg;Ts.serializeDateTime=Og;Ts.serializeFloat=Ug;Ts.take=Mg;Ts.throwDefaultError=mu;Ts.withBaseException=xg;Object.prototype.hasOwnProperty.call(re,"__proto__")&&!Object.prototype.hasOwnProperty.call(Ts,"__proto__")&&Object.defineProperty(Ts,"__proto__",{enumerable:!0,value:re.__proto__});Object.keys(re).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(Ts,t))Ts[t]=re[t]})});var Ru=$((op)=>{var cp=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";op.isArrayBuffer=cp});var Kh=$((ap)=>{var up=Ru(),Zh=st("buffer"),dp=(t,s=0,e=t.byteLength-s)=>{if(!up.isArrayBuffer(t))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Zh.Buffer.from(t,s,e)},lp=(t,s)=>{if(typeof t!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return s?Zh.Buffer.from(t,s):Zh.Buffer.from(t)};ap.fromArrayBuffer=dp;ap.fromString=lp});var Du=$((_u)=>{Object.defineProperty(_u,"__esModule",{value:!0});_u.fromBase64=void 0;var xp=Kh(),Tp=/^[A-Za-z0-9+/]*={0,2}$/,Ap=(t)=>{if(t.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Tp.exec(t))throw TypeError("Invalid base64 string.");let s=(0,xp.fromString)(t,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)};_u.fromBase64=Ap});var Uu=$((Lu)=>{Object.defineProperty(Lu,"__esModule",{value:!0});Lu.toBase64=void 0;var mp=Kh(),yp=Ot(),Sp=(t)=>{let s;if(typeof t==="string")s=(0,yp.fromUtf8)(t);else s=t;if(typeof s!=="object"||typeof s.byteOffset!=="number"||typeof s.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,mp.fromArrayBuffer)(s.buffer,s.byteOffset,s.byteLength).toString("base64")};Lu.toBase64=Sp});var Ou=$((dt)=>{var he=Du(),ie=Uu();Object.prototype.hasOwnProperty.call(he,"__proto__")&&!Object.prototype.hasOwnProperty.call(dt,"__proto__")&&Object.defineProperty(dt,"__proto__",{enumerable:!0,value:he.__proto__});Object.keys(he).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(dt,t))dt[t]=he[t]});Object.prototype.hasOwnProperty.call(ie,"__proto__")&&!Object.prototype.hasOwnProperty.call(dt,"__proto__")&&Object.defineProperty(dt,"__proto__",{enumerable:!0,value:ie.__proto__});Object.keys(ie).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(dt,t))dt[t]=ie[t]})});var Pu=$((V$,Hu)=>{(()=>{var t={d:(i,c)=>{for(var d in c)t.o(c,d)&&!t.o(i,d)&&Object.defineProperty(i,d,{enumerable:!0,get:c[d]})},o:(i,c)=>Object.prototype.hasOwnProperty.call(i,c),r:(i)=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})}},s={};t.r(s),t.d(s,{XMLBuilder:()=>Xd,XMLParser:()=>xi,XMLValidator:()=>Qd});let e=":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",r=new RegExp("^["+e+"]["+e+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function o(i,c){let d=[],l=c.exec(i);for(;l;){let x=[];x.startIndex=c.lastIndex-l[0].length;let E=l.length;for(let S=0;S<E;S++)x.push(l[S]);d.push(x),l=c.exec(i)}return d}let h=function(i){return r.exec(i)!=null},n=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],f=["__proto__","constructor","prototype"],u={allowBooleanAttributes:!1,unpairedTags:[]};function a(i,c){c=Object.assign({},u,c);let d=[],l=!1,x=!1;i[0]==="\uFEFF"&&(i=i.substr(1));for(let E=0;E<i.length;E++)if(i[E]==="<"&&i[E+1]==="?"){if(E+=2,E=T(i,E),E.err)return E}else{if(i[E]!=="<"){if(w(i[E]))continue;return D("InvalidChar","char '"+i[E]+"' is not expected.",Q(i,E))}{let S=E;if(E++,i[E]==="!"){E=m(i,E);continue}{let A=!1;i[E]==="/"&&(A=!0,E++);let y="";for(;E<i.length&&i[E]!==">"&&i[E]!==" "&&i[E]!=="\t"&&i[E]!==`
14
- `&&i[E]!=="\r";E++)y+=i[E];if(y=y.trim(),y[y.length-1]==="/"&&(y=y.substring(0,y.length-1),E--),!v(y)){let R;return R=y.trim().length===0?"Invalid space after '<'.":"Tag '"+y+"' is an invalid name.",D("InvalidTag",R,Q(i,E))}let N=b(i,E);if(N===!1)return D("InvalidAttr","Attributes for '"+y+"' have open quote.",Q(i,E));let _=N.value;if(E=N.index,_[_.length-1]==="/"){let R=E-_.length;_=_.substring(0,_.length-1);let z=X(_,c);if(z!==!0)return D(z.err.code,z.err.msg,Q(i,R+z.err.line));l=!0}else if(A){if(!N.tagClosed)return D("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",Q(i,E));if(_.trim().length>0)return D("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",Q(i,S));if(d.length===0)return D("InvalidTag","Closing tag '"+y+"' has not been opened.",Q(i,S));{let R=d.pop();if(y!==R.tagName){let z=Q(i,R.tagStartPos);return D("InvalidTag","Expected closing tag '"+R.tagName+"' (opened in line "+z.line+", col "+z.col+") instead of closing tag '"+y+"'.",Q(i,S))}d.length==0&&(x=!0)}}else{let R=X(_,c);if(R!==!0)return D(R.err.code,R.err.msg,Q(i,E-_.length+R.err.line));if(x===!0)return D("InvalidXml","Multiple possible root nodes found.",Q(i,E));c.unpairedTags.indexOf(y)!==-1||d.push({tagName:y,tagStartPos:S}),l=!0}for(E++;E<i.length;E++)if(i[E]==="<"){if(i[E+1]==="!"){E++,E=m(i,E);continue}if(i[E+1]!=="?")break;if(E=T(i,++E),E.err)return E}else if(i[E]==="&"){let R=U(i,E);if(R==-1)return D("InvalidChar","char '&' is not expected.",Q(i,E));E=R}else if(x===!0&&!w(i[E]))return D("InvalidXml","Extra text at the end",Q(i,E));i[E]==="<"&&E--}}}return l?d.length==1?D("InvalidTag","Unclosed tag '"+d[0].tagName+"'.",Q(i,d[0].tagStartPos)):!(d.length>0)||D("InvalidXml","Invalid '"+JSON.stringify(d.map((E)=>E.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):D("InvalidXml","Start tag expected.",1)}function w(i){return i===" "||i==="\t"||i===`
15
- `||i==="\r"}function T(i,c){let d=c;for(;c<i.length;c++)if(i[c]=="?"||i[c]==" "){let l=i.substr(d,c-d);if(c>5&&l==="xml")return D("InvalidXml","XML declaration allowed only at the start of the document.",Q(i,c));if(i[c]=="?"&&i[c+1]==">"){c++;break}continue}return c}function m(i,c){if(i.length>c+5&&i[c+1]==="-"&&i[c+2]==="-"){for(c+=3;c<i.length;c++)if(i[c]==="-"&&i[c+1]==="-"&&i[c+2]===">"){c+=2;break}}else if(i.length>c+8&&i[c+1]==="D"&&i[c+2]==="O"&&i[c+3]==="C"&&i[c+4]==="T"&&i[c+5]==="Y"&&i[c+6]==="P"&&i[c+7]==="E"){let d=1;for(c+=8;c<i.length;c++)if(i[c]==="<")d++;else if(i[c]===">"&&(d--,d===0))break}else if(i.length>c+9&&i[c+1]==="["&&i[c+2]==="C"&&i[c+3]==="D"&&i[c+4]==="A"&&i[c+5]==="T"&&i[c+6]==="A"&&i[c+7]==="["){for(c+=8;c<i.length;c++)if(i[c]==="]"&&i[c+1]==="]"&&i[c+2]===">"){c+=2;break}}return c}let g='"',p="'";function b(i,c){let d="",l="",x=!1;for(;c<i.length;c++){if(i[c]===g||i[c]===p)l===""?l=i[c]:l!==i[c]||(l="");else if(i[c]===">"&&l===""){x=!0;break}d+=i[c]}return l===""&&{value:d,index:c,tagClosed:x}}let P=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function X(i,c){let d=o(i,P),l={};for(let x=0;x<d.length;x++){if(d[x][1].length===0)return D("InvalidAttr","Attribute '"+d[x][2]+"' has no space in starting.",et(d[x]));if(d[x][3]!==void 0&&d[x][4]===void 0)return D("InvalidAttr","Attribute '"+d[x][2]+"' is without value.",et(d[x]));if(d[x][3]===void 0&&!c.allowBooleanAttributes)return D("InvalidAttr","boolean attribute '"+d[x][2]+"' is not allowed.",et(d[x]));let E=d[x][2];if(!W(E))return D("InvalidAttr","Attribute '"+E+"' is an invalid name.",et(d[x]));if(Object.prototype.hasOwnProperty.call(l,E))return D("InvalidAttr","Attribute '"+E+"' is repeated.",et(d[x]));l[E]=1}return!0}function U(i,c){if(i[++c]===";")return-1;if(i[c]==="#")return function(l,x){let E=/\d/;for(l[x]==="x"&&(x++,E=/[\da-fA-F]/);x<l.length;x++){if(l[x]===";")return x;if(!l[x].match(E))break}return-1}(i,++c);let d=0;for(;c<i.length;c++,d++)if(!(i[c].match(/\w/)&&d<20)){if(i[c]===";")break;return-1}return c}function D(i,c,d){return{err:{code:i,msg:c,line:d.line||d,col:d.col}}}function W(i){return h(i)}function v(i){return h(i)}function Q(i,c){let d=i.substring(0,c).split(/\r?\n/);return{line:d.length,col:d[d.length-1].length+1}}function et(i){return i.startIndex+i[1].length}let oi=(i)=>n.includes(i)?"__"+i:i,nd={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(i,c){return c},attributeValueProcessor:function(i,c){return c},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(i,c,d){return i},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:oi};function cd(i,c){if(typeof i!="string")return;let d=i.toLowerCase();if(n.some((l)=>d===l.toLowerCase()))throw Error(`[SECURITY] Invalid ${c}: "${i}" is a reserved JavaScript keyword that could cause prototype pollution`);if(f.some((l)=>d===l.toLowerCase()))throw Error(`[SECURITY] Invalid ${c}: "${i}" is a reserved JavaScript keyword that could cause prototype pollution`)}function fi(i){return typeof i=="boolean"?{enabled:i,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1000,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof i=="object"&&i!==null?{enabled:i.enabled!==!1,maxEntitySize:Math.max(1,i.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,i.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,i.maxTotalExpansions??1000),maxExpandedLength:Math.max(1,i.maxExpandedLength??1e5),maxEntityCount:Math.max(1,i.maxEntityCount??100),allowedTags:i.allowedTags??null,tagFilter:i.tagFilter??null}:fi(!0)}let od=function(i){let c=Object.assign({},nd,i),d=[{value:c.attributeNamePrefix,name:"attributeNamePrefix"},{value:c.attributesGroupName,name:"attributesGroupName"},{value:c.textNodeName,name:"textNodeName"},{value:c.cdataPropName,name:"cdataPropName"},{value:c.commentPropName,name:"commentPropName"}];for(let{value:l,name:x}of d)l&&cd(l,x);return c.onDangerousProperty===null&&(c.onDangerousProperty=oi),c.processEntities=fi(c.processEntities),c.stopNodes&&Array.isArray(c.stopNodes)&&(c.stopNodes=c.stopNodes.map((l)=>typeof l=="string"&&l.startsWith("*.")?".."+l.substring(2):l)),c},de;de=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class it{constructor(i){this.tagname=i,this.child=[],this[":@"]=Object.create(null)}add(i,c){i==="__proto__"&&(i="#__proto__"),this.child.push({[i]:c})}addChild(i,c){i.tagname==="__proto__"&&(i.tagname="#__proto__"),i[":@"]&&Object.keys(i[":@"]).length>0?this.child.push({[i.tagname]:i.child,":@":i[":@"]}):this.child.push({[i.tagname]:i.child}),c!==void 0&&(this.child[this.child.length-1][de]={startIndex:c})}static getMetaDataSymbol(){return de}}class ui{constructor(i){this.suppressValidationErr=!i,this.options=i}readDocType(i,c){let d=Object.create(null),l=0;if(i[c+3]!=="O"||i[c+4]!=="C"||i[c+5]!=="T"||i[c+6]!=="Y"||i[c+7]!=="P"||i[c+8]!=="E")throw Error("Invalid Tag instead of DOCTYPE");{c+=9;let x=1,E=!1,S=!1,A="";for(;c<i.length;c++)if(i[c]!=="<"||S)if(i[c]===">"){if(S?i[c-1]==="-"&&i[c-2]==="-"&&(S=!1,x--):x--,x===0)break}else i[c]==="["?E=!0:A+=i[c];else{if(E&&St(i,"!ENTITY",c)){let y,N;if(c+=7,[y,N,c]=this.readEntityExp(i,c+1,this.suppressValidationErr),N.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&l>=this.options.maxEntityCount)throw Error(`Entity count (${l+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);let _=y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");d[y]={regx:RegExp(`&${_};`,"g"),val:N},l++}}else if(E&&St(i,"!ELEMENT",c)){c+=8;let{index:y}=this.readElementExp(i,c+1);c=y}else if(E&&St(i,"!ATTLIST",c))c+=8;else if(E&&St(i,"!NOTATION",c)){c+=9;let{index:y}=this.readNotationExp(i,c+1,this.suppressValidationErr);c=y}else{if(!St(i,"!--",c))throw Error("Invalid DOCTYPE");S=!0}x++,A=""}if(x!==0)throw Error("Unclosed DOCTYPE")}return{entities:d,i:c}}readEntityExp(i,c){let d=c=q(i,c);for(;c<i.length&&!/\s/.test(i[c])&&i[c]!=='"'&&i[c]!=="'";)c++;let l=i.substring(d,c);if(Yt(l),c=q(i,c),!this.suppressValidationErr){if(i.substring(c,c+6).toUpperCase()==="SYSTEM")throw Error("External entities are not supported");if(i[c]==="%")throw Error("Parameter entities are not supported")}let x="";if([c,x]=this.readIdentifierVal(i,c,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&x.length>this.options.maxEntitySize)throw Error(`Entity "${l}" size (${x.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[l,x,--c]}readNotationExp(i,c){let d=c=q(i,c);for(;c<i.length&&!/\s/.test(i[c]);)c++;let l=i.substring(d,c);!this.suppressValidationErr&&Yt(l),c=q(i,c);let x=i.substring(c,c+6).toUpperCase();if(!this.suppressValidationErr&&x!=="SYSTEM"&&x!=="PUBLIC")throw Error(`Expected SYSTEM or PUBLIC, found "${x}"`);c+=x.length,c=q(i,c);let E=null,S=null;if(x==="PUBLIC")[c,E]=this.readIdentifierVal(i,c,"publicIdentifier"),i[c=q(i,c)]!=='"'&&i[c]!=="'"||([c,S]=this.readIdentifierVal(i,c,"systemIdentifier"));else if(x==="SYSTEM"&&([c,S]=this.readIdentifierVal(i,c,"systemIdentifier"),!this.suppressValidationErr&&!S))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:l,publicIdentifier:E,systemIdentifier:S,index:--c}}readIdentifierVal(i,c,d){let l="",x=i[c];if(x!=='"'&&x!=="'")throw Error(`Expected quoted string, found "${x}"`);let E=++c;for(;c<i.length&&i[c]!==x;)c++;if(l=i.substring(E,c),i[c]!==x)throw Error(`Unterminated ${d} value`);return[++c,l]}readElementExp(i,c){let d=c=q(i,c);for(;c<i.length&&!/\s/.test(i[c]);)c++;let l=i.substring(d,c);if(!this.suppressValidationErr&&!h(l))throw Error(`Invalid element name: "${l}"`);let x="";if(i[c=q(i,c)]==="E"&&St(i,"MPTY",c))c+=4;else if(i[c]==="A"&&St(i,"NY",c))c+=2;else if(i[c]==="("){let E=++c;for(;c<i.length&&i[c]!==")";)c++;if(x=i.substring(E,c),i[c]!==")")throw Error("Unterminated content model")}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${i[c]}"`);return{elementName:l,contentModel:x.trim(),index:c}}readAttlistExp(i,c){let d=c=q(i,c);for(;c<i.length&&!/\s/.test(i[c]);)c++;let l=i.substring(d,c);for(Yt(l),d=c=q(i,c);c<i.length&&!/\s/.test(i[c]);)c++;let x=i.substring(d,c);if(!Yt(x))throw Error(`Invalid attribute name: "${x}"`);c=q(i,c);let E="";if(i.substring(c,c+8).toUpperCase()==="NOTATION"){if(E="NOTATION",i[c=q(i,c+=8)]!=="(")throw Error(`Expected '(', found "${i[c]}"`);c++;let A=[];for(;c<i.length&&i[c]!==")";){let y=c;for(;c<i.length&&i[c]!=="|"&&i[c]!==")";)c++;let N=i.substring(y,c);if(N=N.trim(),!Yt(N))throw Error(`Invalid notation name: "${N}"`);A.push(N),i[c]==="|"&&(c++,c=q(i,c))}if(i[c]!==")")throw Error("Unterminated list of notations");c++,E+=" ("+A.join("|")+")"}else{let A=c;for(;c<i.length&&!/\s/.test(i[c]);)c++;E+=i.substring(A,c);let y=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!y.includes(E.toUpperCase()))throw Error(`Invalid attribute type: "${E}"`)}c=q(i,c);let S="";return i.substring(c,c+8).toUpperCase()==="#REQUIRED"?(S="#REQUIRED",c+=8):i.substring(c,c+7).toUpperCase()==="#IMPLIED"?(S="#IMPLIED",c+=7):[c,S]=this.readIdentifierVal(i,c,"ATTLIST"),{elementName:l,attributeName:x,attributeType:E,defaultValue:S,index:c}}}let q=(i,c)=>{for(;c<i.length&&/\s/.test(i[c]);)c++;return c};function St(i,c,d){for(let l=0;l<c.length;l++)if(c[l]!==i[d+l+1])return!1;return!0}function Yt(i){if(h(i))return i;throw Error(`Invalid entity name ${i}`)}let fd=/^[-+]?0x[a-fA-F0-9]+$/,ud=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,dd={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"},ld=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/,ad=new Set(["push","pop","reset","updateCurrent","restore"]);class ms{constructor(i={}){this.separator=i.separator||".",this.path=[],this.siblingStacks=[]}push(i,c=null,d=null){this.path.length>0&&(this.path[this.path.length-1].values=void 0);let l=this.path.length;this.siblingStacks[l]||(this.siblingStacks[l]=new Map);let x=this.siblingStacks[l],E=d?`${d}:${i}`:i,S=x.get(E)||0,A=0;for(let N of x.values())A+=N;x.set(E,S+1);let y={tag:i,position:A,counter:S};d!=null&&(y.namespace=d),c!=null&&(y.values=c),this.path.push(y)}pop(){if(this.path.length===0)return;let i=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),i}updateCurrent(i){if(this.path.length>0){let c=this.path[this.path.length-1];i!=null&&(c.values=i)}}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(i){if(this.path.length===0)return;return this.path[this.path.length-1].values?.[i]}hasAttr(i){if(this.path.length===0)return!1;let c=this.path[this.path.length-1];return c.values!==void 0&&i in c.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(i,c=!0){let d=i||this.separator;return this.path.map((l)=>c&&l.namespace?`${l.namespace}:${l.tag}`:l.tag).join(d)}toArray(){return this.path.map((i)=>i.tag)}reset(){this.path=[],this.siblingStacks=[]}matches(i){let c=i.segments;return c.length!==0&&(i.hasDeepWildcard()?this._matchWithDeepWildcard(c):this._matchSimple(c))}_matchSimple(i){if(this.path.length!==i.length)return!1;for(let c=0;c<i.length;c++){let d=i[c],l=this.path[c],x=c===this.path.length-1;if(!this._matchSegment(d,l,x))return!1}return!0}_matchWithDeepWildcard(i){let c=this.path.length-1,d=i.length-1;for(;d>=0&&c>=0;){let l=i[d];if(l.type==="deep-wildcard"){if(d--,d<0)return!0;let x=i[d],E=!1;for(let S=c;S>=0;S--){let A=S===this.path.length-1;if(this._matchSegment(x,this.path[S],A)){c=S-1,d--,E=!0;break}}if(!E)return!1}else{let x=c===this.path.length-1;if(!this._matchSegment(l,this.path[c],x))return!1;c--,d--}}return d<0}_matchSegment(i,c,d){if(i.tag!=="*"&&i.tag!==c.tag)return!1;if(i.namespace!==void 0&&i.namespace!=="*"&&i.namespace!==c.namespace)return!1;if(i.attrName!==void 0){if(!d)return!1;if(!c.values||!(i.attrName in c.values))return!1;if(i.attrValue!==void 0){let l=c.values[i.attrName];if(String(l)!==String(i.attrValue))return!1}}if(i.position!==void 0){if(!d)return!1;let l=c.counter??0;if(i.position==="first"&&l!==0)return!1;if(i.position==="odd"&&l%2!=1)return!1;if(i.position==="even"&&l%2!=0)return!1;if(i.position==="nth"&&l!==i.positionValue)return!1}return!0}snapshot(){return{path:this.path.map((i)=>({...i})),siblingStacks:this.siblingStacks.map((i)=>new Map(i))}}restore(i){this.path=i.path.map((c)=>({...c})),this.siblingStacks=i.siblingStacks.map((c)=>new Map(c))}readOnly(){return new Proxy(this,{get(i,c,d){if(ad.has(c))return()=>{throw TypeError(`Cannot call '${c}' on a read-only Matcher. Obtain a writable instance to mutate state.`)};let l=Reflect.get(i,c,d);return c==="path"||c==="siblingStacks"?Object.freeze(Array.isArray(l)?l.map((x)=>x instanceof Map?Object.freeze(new Map(x)):Object.freeze({...x})):l):typeof l=="function"?l.bind(i):l},set(i,c){throw TypeError(`Cannot set property '${String(c)}' on a read-only Matcher.`)},deleteProperty(i,c){throw TypeError(`Cannot delete property '${String(c)}' from a read-only Matcher.`)}})}}class Nt{constructor(i,c={}){this.pattern=i,this.separator=c.separator||".",this.segments=this._parse(i),this._hasDeepWildcard=this.segments.some((d)=>d.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some((d)=>d.attrName!==void 0),this._hasPositionSelector=this.segments.some((d)=>d.position!==void 0)}_parse(i){let c=[],d=0,l="";for(;d<i.length;)i[d]===this.separator?d+1<i.length&&i[d+1]===this.separator?(l.trim()&&(c.push(this._parseSegment(l.trim())),l=""),c.push({type:"deep-wildcard"}),d+=2):(l.trim()&&c.push(this._parseSegment(l.trim())),l="",d++):(l+=i[d],d++);return l.trim()&&c.push(this._parseSegment(l.trim())),c}_parseSegment(i){let c={type:"tag"},d=null,l=i,x=i.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(x&&(l=x[1]+x[3],x[2])){let N=x[2].slice(1,-1);N&&(d=N)}let E,S,A=l;if(l.includes("::")){let N=l.indexOf("::");if(E=l.substring(0,N).trim(),A=l.substring(N+2).trim(),!E)throw Error(`Invalid namespace in pattern: ${i}`)}let y=null;if(A.includes(":")){let N=A.lastIndexOf(":"),_=A.substring(0,N).trim(),R=A.substring(N+1).trim();["first","last","odd","even"].includes(R)||/^nth\(\d+\)$/.test(R)?(S=_,y=R):S=A}else S=A;if(!S)throw Error(`Invalid segment pattern: ${i}`);if(c.tag=S,E&&(c.namespace=E),d)if(d.includes("=")){let N=d.indexOf("=");c.attrName=d.substring(0,N).trim(),c.attrValue=d.substring(N+1).trim()}else c.attrName=d.trim();if(y){let N=y.match(/^nth\((\d+)\)$/);N?(c.position="nth",c.positionValue=parseInt(N[1],10)):c.position=y}return c}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}function Ed(i,c){if(!i)return{};let d=c.attributesGroupName?i[c.attributesGroupName]:i;if(!d)return{};let l={};for(let x in d)x.startsWith(c.attributeNamePrefix)?l[x.substring(c.attributeNamePrefix.length)]=d[x]:l[x]=d[x];return l}function wd(i){if(!i||typeof i!="string")return;let c=i.indexOf(":");if(c!==-1&&c>0){let d=i.substring(0,c);if(d!=="xmlns")return d}}class di{constructor(i){var c;if(this.options=i,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(d,l)=>ai(l,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(d,l)=>ai(l,16,"&#x")}},this.addExternalEntities=xd,this.parseXml=Sd,this.parseTextData=Td,this.resolveNameSpace=Ad,this.buildAttributesMap=yd,this.isItStopNode=bd,this.replaceEntitiesValue=gd,this.readStopNodeData=$d,this.saveTextToParentTag=pd,this.addChild=Nd,this.ignoreAttributesFn=typeof(c=this.options.ignoreAttributes)=="function"?c:Array.isArray(c)?(d)=>{for(let l of c){if(typeof l=="string"&&d===l)return!0;if(l instanceof RegExp&&l.test(d))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0,this.matcher=new ms,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let d=0;d<this.options.stopNodes.length;d++){let l=this.options.stopNodes[d];typeof l=="string"?this.stopNodeExpressions.push(new Nt(l)):l instanceof Nt&&this.stopNodeExpressions.push(l)}}}}function xd(i){let c=Object.keys(i);for(let d=0;d<c.length;d++){let l=c[d],x=l.replace(/[.\-+*:]/g,"\\.");this.lastEntities[l]={regex:new RegExp("&"+x+";","g"),val:i[l]}}}function Td(i,c,d,l,x,E,S){if(i!==void 0&&(this.options.trimValues&&!l&&(i=i.trim()),i.length>0)){S||(i=this.replaceEntitiesValue(i,c,d));let A=this.options.jPath?d.toString():d,y=this.options.tagValueProcessor(c,i,A,x,E);return y==null?i:typeof y!=typeof i||y!==i?y:this.options.trimValues||i.trim()===i?li(i,this.options.parseTagValue,this.options.numberParseOptions):i}}function Ad(i){if(this.options.removeNSPrefix){let c=i.split(":"),d=i.charAt(0)==="/"?"/":"";if(c[0]==="xmlns")return"";c.length===2&&(i=d+c[1])}return i}let md=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function yd(i,c,d){if(this.options.ignoreAttributes!==!0&&typeof i=="string"){let l=o(i,md),x=l.length,E={},S={};for(let A=0;A<x;A++){let y=this.resolveNameSpace(l[A][1]),N=l[A][4];if(y.length&&N!==void 0){let _=N;this.options.trimValues&&(_=_.trim()),_=this.replaceEntitiesValue(_,d,this.readonlyMatcher),S[y]=_}}Object.keys(S).length>0&&typeof c=="object"&&c.updateCurrent&&c.updateCurrent(S);for(let A=0;A<x;A++){let y=this.resolveNameSpace(l[A][1]),N=this.options.jPath?c.toString():this.readonlyMatcher;if(this.ignoreAttributesFn(y,N))continue;let _=l[A][4],R=this.options.attributeNamePrefix+y;if(y.length)if(this.options.transformAttributeName&&(R=this.options.transformAttributeName(R)),R=Ei(R,this.options),_!==void 0){this.options.trimValues&&(_=_.trim()),_=this.replaceEntitiesValue(_,d,this.readonlyMatcher);let z=this.options.jPath?c.toString():this.readonlyMatcher,I=this.options.attributeValueProcessor(y,_,z);E[R]=I==null?_:typeof I!=typeof _||I!==_?I:li(_,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(E[R]=!0)}if(!Object.keys(E).length)return;if(this.options.attributesGroupName){let A={};return A[this.options.attributesGroupName]=E,A}return E}}let Sd=function(i){i=i.replace(/\r\n?/g,`
16
- `);let c=new it("!xml"),d=c,l="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let x=new ui(this.options.processEntities);for(let E=0;E<i.length;E++)if(i[E]==="<")if(i[E+1]==="/"){let S=gt(i,">",E,"Closing Tag is not closed."),A=i.substring(E+2,S).trim();if(this.options.removeNSPrefix){let N=A.indexOf(":");N!==-1&&(A=A.substr(N+1))}A=ae(this.options.transformTagName,A,"",this.options).tagName,d&&(l=this.saveTextToParentTag(l,d,this.readonlyMatcher));let y=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw Error(`Unpaired tag can not be used as closing tag: </${A}>`);y&&this.options.unpairedTags.indexOf(y)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,d=this.tagsNodeStack.pop(),l="",E=S}else if(i[E+1]==="?"){let S=le(i,E,!1,"?>");if(!S)throw Error("Pi Tag is not closed.");if(l=this.saveTextToParentTag(l,d,this.readonlyMatcher),this.options.ignoreDeclaration&&S.tagName==="?xml"||this.options.ignorePiTags);else{let A=new it(S.tagName);A.add(this.options.textNodeName,""),S.tagName!==S.tagExp&&S.attrExpPresent&&(A[":@"]=this.buildAttributesMap(S.tagExp,this.matcher,S.tagName)),this.addChild(d,A,this.readonlyMatcher,E)}E=S.closeIndex+1}else if(i.substr(E+1,3)==="!--"){let S=gt(i,"-->",E+4,"Comment is not closed.");if(this.options.commentPropName){let A=i.substring(E+4,S-2);l=this.saveTextToParentTag(l,d,this.readonlyMatcher),d.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}E=S}else if(i.substr(E+1,2)==="!D"){let S=x.readDocType(i,E);this.docTypeEntities=S.entities,E=S.i}else if(i.substr(E+1,2)==="!["){let S=gt(i,"]]>",E,"CDATA is not closed.")-2,A=i.substring(E+9,S);l=this.saveTextToParentTag(l,d,this.readonlyMatcher);let y=this.parseTextData(A,d.tagname,this.readonlyMatcher,!0,!1,!0,!0);y==null&&(y=""),this.options.cdataPropName?d.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):d.add(this.options.textNodeName,y),E=S+2}else{let S=le(i,E,this.options.removeNSPrefix);if(!S){let k=i.substring(Math.max(0,E-50),Math.min(i.length,E+50));throw Error(`readTagExp returned undefined at position ${E}. Context: "${k}"`)}let{tagName:A,rawTagName:y,tagExp:N,attrExpPresent:_,closeIndex:R}=S;if({tagName:A,tagExp:N}=ae(this.options.transformTagName,A,N,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw Error(`Invalid tag name: ${A}`);d&&l&&d.tagname!=="!xml"&&(l=this.saveTextToParentTag(l,d,this.readonlyMatcher,!1));let z=d;z&&this.options.unpairedTags.indexOf(z.tagname)!==-1&&(d=this.tagsNodeStack.pop(),this.matcher.pop());let I=!1;N.length>0&&N.lastIndexOf("/")===N.length-1&&(I=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),N=A):N=N.substr(0,N.length-1),_=A!==N);let H,C=null,rt={};H=wd(y),A!==c.tagname&&this.matcher.push(A,{},H),A!==N&&_&&(C=this.buildAttributesMap(N,this.matcher,A),C&&(rt=Ed(C,this.options))),A!==c.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let J=E;if(this.isCurrentNodeStopNode){let k="";if(I)E=S.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)E=S.closeIndex;else{let Te=this.readStopNodeData(i,y,R+1);if(!Te)throw Error(`Unexpected end of ${y}`);E=Te.i,k=Te.tagContent}let xe=new it(A);C&&(xe[":@"]=C),xe.add(this.options.textNodeName,k),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(d,xe,this.readonlyMatcher,J)}else{if(I){({tagName:A,tagExp:N}=ae(this.options.transformTagName,A,N,this.options));let k=new it(A);C&&(k[":@"]=C),this.addChild(d,k,this.readonlyMatcher,J),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(this.options.unpairedTags.indexOf(A)!==-1){let k=new it(A);C&&(k[":@"]=C),this.addChild(d,k,this.readonlyMatcher,J),this.matcher.pop(),this.isCurrentNodeStopNode=!1,E=S.closeIndex;continue}{let k=new it(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw Error("Maximum nested tags exceeded");this.tagsNodeStack.push(d),C&&(k[":@"]=C),this.addChild(d,k,this.readonlyMatcher,J),d=k}}l="",E=R}}else l+=i[E];return c.child};function Nd(i,c,d,l){this.options.captureMetaData||(l=void 0);let x=this.options.jPath?d.toString():d,E=this.options.updateTag(c.tagname,x,c[":@"]);E===!1||(typeof E=="string"?(c.tagname=E,i.addChild(c,l)):i.addChild(c,l))}function gd(i,c,d){let l=this.options.processEntities;if(!l||!l.enabled)return i;if(l.allowedTags){let x=this.options.jPath?d.toString():d;if(!(Array.isArray(l.allowedTags)?l.allowedTags.includes(c):l.allowedTags(c,x)))return i}if(l.tagFilter){let x=this.options.jPath?d.toString():d;if(!l.tagFilter(c,x))return i}for(let x of Object.keys(this.docTypeEntities)){let E=this.docTypeEntities[x],S=i.match(E.regx);if(S){if(this.entityExpansionCount+=S.length,l.maxTotalExpansions&&this.entityExpansionCount>l.maxTotalExpansions)throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${l.maxTotalExpansions}`);let A=i.length;if(i=i.replace(E.regx,E.val),l.maxExpandedLength&&(this.currentExpandedLength+=i.length-A,this.currentExpandedLength>l.maxExpandedLength))throw Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${l.maxExpandedLength}`)}}for(let x of Object.keys(this.lastEntities)){let E=this.lastEntities[x],S=i.match(E.regex);if(S&&(this.entityExpansionCount+=S.length,l.maxTotalExpansions&&this.entityExpansionCount>l.maxTotalExpansions))throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${l.maxTotalExpansions}`);i=i.replace(E.regex,E.val)}if(i.indexOf("&")===-1)return i;if(this.options.htmlEntities)for(let x of Object.keys(this.htmlEntities)){let E=this.htmlEntities[x],S=i.match(E.regex);if(S&&(this.entityExpansionCount+=S.length,l.maxTotalExpansions&&this.entityExpansionCount>l.maxTotalExpansions))throw Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${l.maxTotalExpansions}`);i=i.replace(E.regex,E.val)}return i.replace(this.ampEntity.regex,this.ampEntity.val)}function pd(i,c,d,l){return i&&(l===void 0&&(l=c.child.length===0),(i=this.parseTextData(i,c.tagname,d,!1,!!c[":@"]&&Object.keys(c[":@"]).length!==0,l))!==void 0&&i!==""&&c.add(this.options.textNodeName,i),i=""),i}function bd(i,c){if(!i||i.length===0)return!1;for(let d=0;d<i.length;d++)if(c.matches(i[d]))return!0;return!1}function gt(i,c,d,l){let x=i.indexOf(c,d);if(x===-1)throw Error(l);return x+c.length-1}function le(i,c,d,l=">"){let x=function(R,z,I=">"){let H,C="";for(let rt=z;rt<R.length;rt++){let J=R[rt];if(H)J===H&&(H="");else if(J==='"'||J==="'")H=J;else if(J===I[0]){if(!I[1])return{data:C,index:rt};if(R[rt+1]===I[1])return{data:C,index:rt}}else J==="\t"&&(J=" ");C+=J}}(i,c+1,l);if(!x)return;let{data:E,index:S}=x,A=E.search(/\s/),y=E,N=!0;A!==-1&&(y=E.substring(0,A),E=E.substring(A+1).trimStart());let _=y;if(d){let R=y.indexOf(":");R!==-1&&(y=y.substr(R+1),N=y!==x.data.substr(R+1))}return{tagName:y,tagExp:E,closeIndex:S,attrExpPresent:N,rawTagName:_}}function $d(i,c,d){let l=d,x=1;for(;d<i.length;d++)if(i[d]==="<")if(i[d+1]==="/"){let E=gt(i,">",d,`${c} is not closed`);if(i.substring(d+2,E).trim()===c&&(x--,x===0))return{tagContent:i.substring(l,d),i:E};d=E}else if(i[d+1]==="?")d=gt(i,"?>",d+1,"StopNode is not closed.");else if(i.substr(d+1,3)==="!--")d=gt(i,"-->",d+3,"StopNode is not closed.");else if(i.substr(d+1,2)==="![")d=gt(i,"]]>",d,"StopNode is not closed.")-2;else{let E=le(i,d,">");E&&((E&&E.tagName)===c&&E.tagExp[E.tagExp.length-1]!=="/"&&x++,d=E.closeIndex)}}function li(i,c,d){if(c&&typeof i=="string"){let l=i.trim();return l==="true"||l!=="false"&&function(x,E={}){if(E=Object.assign({},dd,E),!x||typeof x!="string")return x;let S=x.trim();if(E.skipLike!==void 0&&E.skipLike.test(S))return x;if(x==="0")return 0;if(E.hex&&fd.test(S))return function(y){if(parseInt)return parseInt(y,16);if(Number.parseInt)return Number.parseInt(y,16);if(window&&window.parseInt)return window.parseInt(y,16);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}(S);if(isFinite(S)){if(S.includes("e")||S.includes("E"))return function(y,N,_){if(!_.eNotation)return y;let R=N.match(ld);if(R){let z=R[1]||"",I=R[3].indexOf("e")===-1?"E":"e",H=R[2],C=z?y[H.length+1]===I:y[H.length]===I;return H.length>1&&C?y:(H.length!==1||!R[3].startsWith(`.${I}`)&&R[3][0]!==I)&&H.length>0?_.leadingZeros&&!C?(N=(R[1]||"")+R[3],Number(N)):y:Number(N)}return y}(x,S,E);{let y=ud.exec(S);if(y){let N=y[1]||"",_=y[2],R=(A=y[3])&&A.indexOf(".")!==-1?((A=A.replace(/0+$/,""))==="."?A="0":A[0]==="."?A="0"+A:A[A.length-1]==="."&&(A=A.substring(0,A.length-1)),A):A,z=N?x[_.length+1]===".":x[_.length]===".";if(!E.leadingZeros&&(_.length>1||_.length===1&&!z))return x;{let I=Number(S),H=String(I);if(I===0)return I;if(H.search(/[eE]/)!==-1)return E.eNotation?I:x;if(S.indexOf(".")!==-1)return H==="0"||H===R||H===`${N}${R}`?I:x;let C=_?R:S;return _?C===H||N+C===H?I:x:C===H||C===N+H?I:x}}return x}}var A;return function(y,N,_){let R=N===1/0;switch(_.infinity.toLowerCase()){case"null":return null;case"infinity":return N;case"string":return R?"Infinity":"-Infinity";default:return y}}(x,Number(S),E)}(i,d)}return i!==void 0?i:""}function ai(i,c,d){let l=Number.parseInt(i,c);return l>=0&&l<=1114111?String.fromCodePoint(l):d+i+";"}function ae(i,c,d,l){if(i){let x=i(c);d===c&&(d=x),c=x}return{tagName:c=Ei(c,l),tagExp:d}}function Ei(i,c){if(f.includes(i))throw Error(`[SECURITY] Invalid name: "${i}" is a reserved JavaScript keyword that could cause prototype pollution`);return n.includes(i)?c.onDangerousProperty(i):i}let Ee=it.getMetaDataSymbol();function Rd(i,c){if(!i||typeof i!="object")return{};if(!c)return i;let d={};for(let l in i)l.startsWith(c)?d[l.substring(c.length)]=i[l]:d[l]=i[l];return d}function _d(i,c,d,l){return wi(i,c,d,l)}function wi(i,c,d,l){let x,E={};for(let S=0;S<i.length;S++){let A=i[S],y=Md(A);if(y!==void 0&&y!==c.textNodeName){let N=Rd(A[":@"]||{},c.attributeNamePrefix);d.push(y,N)}if(y===c.textNodeName)x===void 0?x=A[y]:x+=""+A[y];else{if(y===void 0)continue;if(A[y]){let N=wi(A[y],c,d,l),_=Ld(N,c);if(A[":@"]?Dd(N,A[":@"],l,c):Object.keys(N).length!==1||N[c.textNodeName]===void 0||c.alwaysCreateTextNode?Object.keys(N).length===0&&(c.alwaysCreateTextNode?N[c.textNodeName]="":N=""):N=N[c.textNodeName],A[Ee]!==void 0&&typeof N=="object"&&N!==null&&(N[Ee]=A[Ee]),E[y]!==void 0&&Object.prototype.hasOwnProperty.call(E,y))Array.isArray(E[y])||(E[y]=[E[y]]),E[y].push(N);else{let R=c.jPath?l.toString():l;c.isArray(y,R,_)?E[y]=[N]:E[y]=N}y!==void 0&&y!==c.textNodeName&&d.pop()}}}return typeof x=="string"?x.length>0&&(E[c.textNodeName]=x):x!==void 0&&(E[c.textNodeName]=x),E}function Md(i){let c=Object.keys(i);for(let d=0;d<c.length;d++){let l=c[d];if(l!==":@")return l}}function Dd(i,c,d,l){if(c){let x=Object.keys(c),E=x.length;for(let S=0;S<E;S++){let A=x[S],y=A.startsWith(l.attributeNamePrefix)?A.substring(l.attributeNamePrefix.length):A,N=l.jPath?d.toString()+"."+y:d;l.isArray(A,N,!0,!0)?i[A]=[c[A]]:i[A]=c[A]}}}function Ld(i,c){let{textNodeName:d}=c,l=Object.keys(i).length;return l===0||!(l!==1||!i[d]&&typeof i[d]!="boolean"&&i[d]!==0)}class xi{constructor(i){this.externalEntities={},this.options=od(i)}parse(i,c){if(typeof i!="string"&&i.toString)i=i.toString();else if(typeof i!="string")throw Error("XML data is accepted in String or Bytes[] form.");if(c){c===!0&&(c={});let x=a(i,c);if(x!==!0)throw Error(`${x.err.msg}:${x.err.line}:${x.err.col}`)}let d=new di(this.options);d.addExternalEntities(this.externalEntities);let l=d.parseXml(i);return this.options.preserveOrder||l===void 0?l:_d(l,this.options,d.matcher,d.readonlyMatcher)}addEntity(i,c){if(c.indexOf("&")!==-1)throw Error("Entity value can't have '&'");if(i.indexOf("&")!==-1||i.indexOf(";")!==-1)throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(c==="&")throw Error("An entity with value '&' is not permitted");this.externalEntities[i]=c}static getMetaDataSymbol(){return it.getMetaDataSymbol()}}function Id(i,c){let d="";c.format&&c.indentBy.length>0&&(d=`
17
- `);let l=[];if(c.stopNodes&&Array.isArray(c.stopNodes))for(let x=0;x<c.stopNodes.length;x++){let E=c.stopNodes[x];typeof E=="string"?l.push(new Nt(E)):E instanceof Nt&&l.push(E)}return Ti(i,c,d,new ms,l)}function Ti(i,c,d,l,x){let E="",S=!1;if(c.maxNestedTags&&l.getDepth()>c.maxNestedTags)throw Error("Maximum nested tags exceeded");if(!Array.isArray(i)){if(i!=null){let A=i.toString();return A=we(A,c),A}return""}for(let A=0;A<i.length;A++){let y=i[A],N=mi(y);if(N===void 0)continue;let _=Ud(y[":@"],c);l.push(N,_);let R=Hd(l,x);if(N===c.textNodeName){let C=y[N];R||(C=c.tagValueProcessor(N,C),C=we(C,c)),S&&(E+=d),E+=C,S=!1,l.pop();continue}if(N===c.cdataPropName){S&&(E+=d),E+=`<![CDATA[${y[N][0][c.textNodeName]}]]>`,S=!1,l.pop();continue}if(N===c.commentPropName){E+=d+`<!--${y[N][0][c.textNodeName]}-->`,S=!0,l.pop();continue}if(N[0]==="?"){let C=yi(y[":@"],c,R),rt=N==="?xml"?"":d,J=y[N][0][c.textNodeName];J=J.length!==0?" "+J:"",E+=rt+`<${N}${J}${C}?>`,S=!0,l.pop();continue}let z=d;z!==""&&(z+=c.indentBy);let I=d+`<${N}${yi(y[":@"],c,R)}`,H;H=R?Ai(y[N],c):Ti(y[N],c,z,l,x),c.unpairedTags.indexOf(N)!==-1?c.suppressUnpairedNode?E+=I+">":E+=I+"/>":H&&H.length!==0||!c.suppressEmptyNode?H&&H.endsWith(">")?E+=I+`>${H}${d}</${N}>`:(E+=I+">",H&&d!==""&&(H.includes("/>")||H.includes("</"))?E+=d+c.indentBy+H+d:E+=H,E+=`</${N}>`):E+=I+"/>",S=!0,l.pop()}return E}function Ud(i,c){if(!i||c.ignoreAttributes)return null;let d={},l=!1;for(let x in i)Object.prototype.hasOwnProperty.call(i,x)&&(d[x.startsWith(c.attributeNamePrefix)?x.substr(c.attributeNamePrefix.length):x]=i[x],l=!0);return l?d:null}function Ai(i,c){if(!Array.isArray(i))return i!=null?i.toString():"";let d="";for(let l=0;l<i.length;l++){let x=i[l],E=mi(x);if(E===c.textNodeName)d+=x[E];else if(E===c.cdataPropName)d+=x[E][0][c.textNodeName];else if(E===c.commentPropName)d+=x[E][0][c.textNodeName];else{if(E&&E[0]==="?")continue;if(E){let S=Od(x[":@"],c),A=Ai(x[E],c);A&&A.length!==0?d+=`<${E}${S}>${A}</${E}>`:d+=`<${E}${S}/>`}}}return d}function Od(i,c){let d="";if(i&&!c.ignoreAttributes)for(let l in i){if(!Object.prototype.hasOwnProperty.call(i,l))continue;let x=i[l];x===!0&&c.suppressBooleanAttributes?d+=` ${l.substr(c.attributeNamePrefix.length)}`:d+=` ${l.substr(c.attributeNamePrefix.length)}="${x}"`}return d}function mi(i){let c=Object.keys(i);for(let d=0;d<c.length;d++){let l=c[d];if(Object.prototype.hasOwnProperty.call(i,l)&&l!==":@")return l}}function yi(i,c,d){let l="";if(i&&!c.ignoreAttributes)for(let x in i){if(!Object.prototype.hasOwnProperty.call(i,x))continue;let E;d?E=i[x]:(E=c.attributeValueProcessor(x,i[x]),E=we(E,c)),E===!0&&c.suppressBooleanAttributes?l+=` ${x.substr(c.attributeNamePrefix.length)}`:l+=` ${x.substr(c.attributeNamePrefix.length)}="${E}"`}return l}function Hd(i,c){if(!c||c.length===0)return!1;for(let d=0;d<c.length;d++)if(i.matches(c[d]))return!0;return!1}function we(i,c){if(i&&i.length>0&&c.processEntities)for(let d=0;d<c.entities.length;d++){let l=c.entities[d];i=i.replace(l.regex,l.val)}return i}let Pd={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(i,c){return c},attributeValueProcessor:function(i,c){return c},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function tt(i){if(this.options=Object.assign({},Pd,i),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map((d)=>typeof d=="string"&&d.startsWith("*.")?".."+d.substring(2):d)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let d=0;d<this.options.stopNodes.length;d++){let l=this.options.stopNodes[d];typeof l=="string"?this.stopNodeExpressions.push(new Nt(l)):l instanceof Nt&&this.stopNodeExpressions.push(l)}var c;this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=typeof(c=this.options.ignoreAttributes)=="function"?c:Array.isArray(c)?(d)=>{for(let l of c){if(typeof l=="string"&&d===l)return!0;if(l instanceof RegExp&&l.test(d))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Bd),this.processTextOrObjNode=zd,this.options.format?(this.indentate=Cd,this.tagEndChar=`>
18
- `,this.newLine=`
19
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function zd(i,c,d,l){let x=this.extractAttributes(i);if(l.push(c,x),this.checkStopNode(l)){let S=this.buildRawContent(i),A=this.buildAttributesForStopNode(i);return l.pop(),this.buildObjectNode(S,c,A,d)}let E=this.j2x(i,d+1,l);return l.pop(),i[this.options.textNodeName]!==void 0&&Object.keys(i).length===1?this.buildTextValNode(i[this.options.textNodeName],c,E.attrStr,d,l):this.buildObjectNode(E.val,c,E.attrStr,d)}function Cd(i){return this.options.indentBy.repeat(i)}function Bd(i){return!(!i.startsWith(this.options.attributeNamePrefix)||i===this.options.textNodeName)&&i.substr(this.attrPrefixLen)}tt.prototype.build=function(i){if(this.options.preserveOrder)return Id(i,this.options);{Array.isArray(i)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(i={[this.options.arrayNodeName]:i});let c=new ms;return this.j2x(i,0,c).val}},tt.prototype.j2x=function(i,c,d){let l="",x="";if(this.options.maxNestedTags&&d.getDepth()>=this.options.maxNestedTags)throw Error("Maximum nested tags exceeded");let E=this.options.jPath?d.toString():d,S=this.checkStopNode(d);for(let A in i)if(Object.prototype.hasOwnProperty.call(i,A))if(i[A]===void 0)this.isAttribute(A)&&(x+="");else if(i[A]===null)this.isAttribute(A)||A===this.options.cdataPropName?x+="":A[0]==="?"?x+=this.indentate(c)+"<"+A+"?"+this.tagEndChar:x+=this.indentate(c)+"<"+A+"/"+this.tagEndChar;else if(i[A]instanceof Date)x+=this.buildTextValNode(i[A],A,"",c,d);else if(typeof i[A]!="object"){let y=this.isAttribute(A);if(y&&!this.ignoreAttributesFn(y,E))l+=this.buildAttrPairStr(y,""+i[A],S);else if(!y)if(A===this.options.textNodeName){let N=this.options.tagValueProcessor(A,""+i[A]);x+=this.replaceEntitiesValue(N)}else{d.push(A);let N=this.checkStopNode(d);if(d.pop(),N){let _=""+i[A];x+=_===""?this.indentate(c)+"<"+A+this.closeTag(A)+this.tagEndChar:this.indentate(c)+"<"+A+">"+_+"</"+A+this.tagEndChar}else x+=this.buildTextValNode(i[A],A,"",c,d)}}else if(Array.isArray(i[A])){let y=i[A].length,N="",_="";for(let R=0;R<y;R++){let z=i[A][R];if(z===void 0);else if(z===null)A[0]==="?"?x+=this.indentate(c)+"<"+A+"?"+this.tagEndChar:x+=this.indentate(c)+"<"+A+"/"+this.tagEndChar;else if(typeof z=="object")if(this.options.oneListGroup){d.push(A);let I=this.j2x(z,c+1,d);d.pop(),N+=I.val,this.options.attributesGroupName&&z.hasOwnProperty(this.options.attributesGroupName)&&(_+=I.attrStr)}else N+=this.processTextOrObjNode(z,A,c,d);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(A,z);I=this.replaceEntitiesValue(I),N+=I}else{d.push(A);let I=this.checkStopNode(d);if(d.pop(),I){let H=""+z;N+=H===""?this.indentate(c)+"<"+A+this.closeTag(A)+this.tagEndChar:this.indentate(c)+"<"+A+">"+H+"</"+A+this.tagEndChar}else N+=this.buildTextValNode(z,A,"",c,d)}}this.options.oneListGroup&&(N=this.buildObjectNode(N,A,_,c)),x+=N}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){let y=Object.keys(i[A]),N=y.length;for(let _=0;_<N;_++)l+=this.buildAttrPairStr(y[_],""+i[A][y[_]],S)}else x+=this.processTextOrObjNode(i[A],A,c,d);return{attrStr:l,val:x}},tt.prototype.buildAttrPairStr=function(i,c,d){return d||(c=this.options.attributeValueProcessor(i,""+c),c=this.replaceEntitiesValue(c)),this.options.suppressBooleanAttributes&&c==="true"?" "+i:" "+i+'="'+c+'"'},tt.prototype.extractAttributes=function(i){if(!i||typeof i!="object")return null;let c={},d=!1;if(this.options.attributesGroupName&&i[this.options.attributesGroupName]){let l=i[this.options.attributesGroupName];for(let x in l)Object.prototype.hasOwnProperty.call(l,x)&&(c[x.startsWith(this.options.attributeNamePrefix)?x.substring(this.options.attributeNamePrefix.length):x]=l[x],d=!0)}else for(let l in i){if(!Object.prototype.hasOwnProperty.call(i,l))continue;let x=this.isAttribute(l);x&&(c[x]=i[l],d=!0)}return d?c:null},tt.prototype.buildRawContent=function(i){if(typeof i=="string")return i;if(typeof i!="object"||i===null)return String(i);if(i[this.options.textNodeName]!==void 0)return i[this.options.textNodeName];let c="";for(let d in i){if(!Object.prototype.hasOwnProperty.call(i,d))continue;if(this.isAttribute(d))continue;if(this.options.attributesGroupName&&d===this.options.attributesGroupName)continue;let l=i[d];if(d===this.options.textNodeName)c+=l;else if(Array.isArray(l)){for(let x of l)if(typeof x=="string"||typeof x=="number")c+=`<${d}>${x}</${d}>`;else if(typeof x=="object"&&x!==null){let E=this.buildRawContent(x),S=this.buildAttributesForStopNode(x);c+=E===""?`<${d}${S}/>`:`<${d}${S}>${E}</${d}>`}}else if(typeof l=="object"&&l!==null){let x=this.buildRawContent(l),E=this.buildAttributesForStopNode(l);c+=x===""?`<${d}${E}/>`:`<${d}${E}>${x}</${d}>`}else c+=`<${d}>${l}</${d}>`}return c},tt.prototype.buildAttributesForStopNode=function(i){if(!i||typeof i!="object")return"";let c="";if(this.options.attributesGroupName&&i[this.options.attributesGroupName]){let d=i[this.options.attributesGroupName];for(let l in d){if(!Object.prototype.hasOwnProperty.call(d,l))continue;let x=l.startsWith(this.options.attributeNamePrefix)?l.substring(this.options.attributeNamePrefix.length):l,E=d[l];E===!0&&this.options.suppressBooleanAttributes?c+=" "+x:c+=" "+x+'="'+E+'"'}}else for(let d in i){if(!Object.prototype.hasOwnProperty.call(i,d))continue;let l=this.isAttribute(d);if(l){let x=i[d];x===!0&&this.options.suppressBooleanAttributes?c+=" "+l:c+=" "+l+'="'+x+'"'}}return c},tt.prototype.buildObjectNode=function(i,c,d,l){if(i==="")return c[0]==="?"?this.indentate(l)+"<"+c+d+"?"+this.tagEndChar:this.indentate(l)+"<"+c+d+this.closeTag(c)+this.tagEndChar;{let x="</"+c+this.tagEndChar,E="";return c[0]==="?"&&(E="?",x=""),!d&&d!==""||i.indexOf("<")!==-1?this.options.commentPropName!==!1&&c===this.options.commentPropName&&E.length===0?this.indentate(l)+`<!--${i}-->`+this.newLine:this.indentate(l)+"<"+c+d+E+this.tagEndChar+i+this.indentate(l)+x:this.indentate(l)+"<"+c+d+E+">"+i+x}},tt.prototype.closeTag=function(i){let c="";return this.options.unpairedTags.indexOf(i)!==-1?this.options.suppressUnpairedNode||(c="/"):c=this.options.suppressEmptyNode?"/":`></${i}`,c},tt.prototype.checkStopNode=function(i){if(!this.stopNodeExpressions||this.stopNodeExpressions.length===0)return!1;for(let c=0;c<this.stopNodeExpressions.length;c++)if(i.matches(this.stopNodeExpressions[c]))return!0;return!1},tt.prototype.buildTextValNode=function(i,c,d,l,x){if(this.options.cdataPropName!==!1&&c===this.options.cdataPropName)return this.indentate(l)+`<![CDATA[${i}]]>`+this.newLine;if(this.options.commentPropName!==!1&&c===this.options.commentPropName)return this.indentate(l)+`<!--${i}-->`+this.newLine;if(c[0]==="?")return this.indentate(l)+"<"+c+d+"?"+this.tagEndChar;{let E=this.options.tagValueProcessor(c,i);return E=this.replaceEntitiesValue(E),E===""?this.indentate(l)+"<"+c+d+this.closeTag(c)+this.tagEndChar:this.indentate(l)+"<"+c+d+">"+E+"</"+c+this.tagEndChar}},tt.prototype.replaceEntitiesValue=function(i){if(i&&i.length>0&&this.options.processEntities)for(let c=0;c<this.options.entities.length;c++){let d=this.options.entities[c];i=i.replace(d.regex,d.val)}return i};let Xd=tt,Qd={validate:a};Hu.exports=s})()});var Cu=$((zu)=>{Object.defineProperty(zu,"__esModule",{value:!0});zu.parseXML=gp;var Np=Pu(),jh=new Np.XMLParser({attributeNamePrefix:"",processEntities:{enabled:!0,maxTotalExpansions:1/0},htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(t,s)=>s.trim()===""&&s.includes(`
20
- `)?"":void 0,maxNestedTags:1/0});jh.addEntity("#xD","\r");jh.addEntity("#10",`
21
- `);function gp(t){return jh.parse(t,!0)}});var Bu=$((Ip)=>{var bp=Cu(),$p=/[&<>"]/g,Rp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function _p(t){return t.replace($p,(s)=>Rp[s])}var Mp=/[&"'<>\r\n\u0085\u2028]/g,Dp={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;","\r":"&#x0D;","\n":"&#x0A;","…":"&#x85;","\u2028":"&#x2028;"};function Lp(t){return t.replace(Mp,(s)=>Dp[s])}class Fh{value;constructor(t){this.value=t}toString(){return Lp(""+this.value)}}class As{name;children;attributes={};static of(t,s,e){let r=new As(t);if(s!==void 0)r.addChildNode(new Fh(s));if(e!==void 0)r.withName(e);return r}constructor(t,s=[]){this.name=t,this.children=s}withName(t){return this.name=t,this}addAttribute(t,s){return this.attributes[t]=s,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,s){if(s!=null)this.attributes[t]=s;return this}cc(t,s,e=s){if(t[s]!=null){let r=As.of(s,t[s]).withName(e);this.c(r)}}l(t,s,e,r){if(t[s]!=null)r().map((h)=>{h.withName(e),this.c(h)})}lc(t,s,e,r){if(t[s]!=null){let o=r(),h=new As(e);o.map((n)=>{h.c(n)}),this.c(h)}}toString(){let t=Boolean(this.children.length),s=`<${this.name}`,e=this.attributes;for(let r of Object.keys(e)){let o=e[r];if(o!=null)s+=` ${r}="${_p(""+o)}"`}return s+=!t?"/>":`>${this.children.map((r)=>r.toString()).join("")}</${this.name}>`}}Ip.parseXML=bp.parseXML;Ip.XmlNode=As;Ip.XmlText=Fh});var wb=$((Yp)=>{var Xu=au(),V=hs(),lt=$u(),Z=ns(),G=is(),Qt=Ou(),Vu=Ot(),F=Bu();class Vt{queryCompat;errorRegistry;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,s){let e=s.getMemberSchemas(),r=Object.values(e).find((o)=>{return!!o.getMergedTraits().httpPayload});if(r){let o=r.getMergedTraits().mediaType;if(o)return o;else if(r.isStringSchema())return"text/plain";else if(r.isBlobSchema())return"application/octet-stream";else return t}else if(!s.isUnitSchema()){if(Object.values(e).find((h)=>{let{httpQuery:n,httpQueryParams:f,httpHeader:u,httpLabel:a,httpPrefixHeaders:w}=h.getMergedTraits();return!n&&!f&&!u&&!a&&w===void 0}))return t}}async getErrorSchemaOrThrowBaseException(t,s,e,r,o,h){let n=t;if(t.includes("#"))[,n]=t.split("#");let f={$metadata:o,$fault:e.statusCode<500?"client":"server"};if(!this.errorRegistry)throw Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:h?.(this.errorRegistry,n)??this.errorRegistry.getSchema(t),errorMetadata:f}}catch(u){r.message=r.message??r.Message??"UnknownError";let a=this.errorRegistry,w=a.getBaseException();if(w){let g=a.getErrorCtor(w)??Error;throw this.decorateServiceException(Object.assign(new g({name:n}),f),r)}let T=r,m=T?.message??T?.Message??T?.Error?.Message??T?.Error?.message;throw this.decorateServiceException(Object.assign(Error(m),{name:n},f),r)}}compose(t,s,e){let r=e;if(s.includes("#"))[r]=s.split("#");let o=V.TypeRegistry.for(r),h=V.TypeRegistry.for("smithy.ts.sdk.synthetic."+e);t.copyFrom(o),t.copyFrom(h),this.errorRegistry=t}decorateServiceException(t,s={}){if(this.queryCompat){let e=t.Message??s.Message,r=lt.decorateServiceException(t,s);if(e)r.message=e;r.Error={...r.Error,Type:r.Error?.Type,Code:r.Error?.Code,Message:r.Error?.message??r.Error?.Message??e};let o=r.$metadata.requestId;if(o)r.RequestId=o;return r}return lt.decorateServiceException(t,s)}setQueryCompatError(t,s){let e=s.headers?.["x-amzn-query-error"];if(t!==void 0&&e!=null){let[r,o]=e.split(";"),h=Object.entries(t),n={Code:r,Type:o};Object.assign(t,n);for(let[f,u]of h)n[f==="message"?"Message":f]=u;delete n.__type,t.Error=n}}queryCompatOutput(t,s){if(t.Error)s.Error=t.Error;if(t.Type)s.Type=t.Type;if(t.Code)s.Code=t.Code}findQueryCompatibleError(t,s){try{return t.getSchema(s)}catch(e){return t.find((r)=>V.NormalizedSchema.of(r).getMergedTraits().awsQueryError?.[0]===s)}}}class Yu extends Xu.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:t,errorTypeRegistries:s,awsQueryCompatible:e}){super({defaultNamespace:t,errorTypeRegistries:s});this.awsQueryCompatible=!!e,this.mixin=new Vt(this.awsQueryCompatible)}async serializeRequest(t,s,e){let r=await super.serializeRequest(t,s,e);if(this.awsQueryCompatible)r.headers["x-amzn-query-mode"]="true";return r}async handleError(t,s,e,r,o){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(r,e);let h=(()=>{let g=e.headers["x-amzn-query-error"];if(g&&this.awsQueryCompatible)return g.split(";")[0];return Xu.loadSmithyRpcV2CborErrorCode(e,r)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,h,this.options.defaultNamespace);let{errorSchema:n,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(h,this.options.defaultNamespace,e,r,o,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=V.NormalizedSchema.of(n),a=r.message??r.Message??"UnknownError",T=new(this.compositeErrorRegistry.getErrorCtor(n)??Error)(a),m={};for(let[g,p]of u.structIterator())if(r[g]!=null)m[g]=this.deserializer.readValue(p,r[g]);if(this.awsQueryCompatible)this.mixin.queryCompatOutput(r,m);throw this.mixin.decorateServiceException(Object.assign(T,f,{$fault:u.getMergedTraits().error,message:a},m),r)}}var Pp=(t)=>{if(t==null)return t;if(typeof t==="number"||typeof t==="bigint"){let s=Error(`Received number ${t} where a string was expected.`);return s.name="Warning",console.warn(s),String(t)}if(typeof t==="boolean"){let s=Error(`Received boolean ${t} where a string was expected.`);return s.name="Warning",console.warn(s),String(t)}return t},zp=(t)=>{if(t==null)return t;if(typeof t==="string"){let s=t.toLowerCase();if(t!==""&&s!=="false"&&s!=="true"){let e=Error(`Received string "${t}" where a boolean was expected.`);e.name="Warning",console.warn(e)}return t!==""&&s!=="false"}return t},Cp=(t)=>{if(t==null)return t;if(typeof t==="string"){let s=Number(t);if(s.toString()!==t){let e=Error(`Received string "${t}" where a number was expected.`);return e.name="Warning",console.warn(e),t}return s}return t};class yt{serdeContext;setSerdeContext(t){this.serdeContext=t}}class qh{from;to;keys;constructor(t,s){this.from=t,this.to=s,this.keys=new Set(Object.keys(this.from).filter((e)=>e!=="__type"))}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let t=this.keys.values().next().value,s=this.from[t];this.to.$unknown=[t,s]}}}function Bp(t,s,e){if(e?.source){let r=e.source;if(typeof s==="number"){if(s>Number.MAX_SAFE_INTEGER||s<Number.MIN_SAFE_INTEGER||r!==String(s))if(r.includes("."))return new G.NumericValue(r,"bigDecimal");else return BigInt(r)}}return s}var Wu=(t,s)=>lt.collectBody(t,s).then((e)=>(s?.utf8Encoder??Vu.toUtf8)(e)),kh=(t,s)=>Wu(t,s).then((e)=>{if(e.length)try{return JSON.parse(e)}catch(r){if(r?.name==="SyntaxError")Object.defineProperty(r,"$responseBodyText",{value:e});throw r}return{}}),Xp=async(t,s)=>{let e=await kh(t,s);return e.message=e.message??e.Message,e},vh=(t,s)=>{let e=(h,n)=>Object.keys(h).find((f)=>f.toLowerCase()===n.toLowerCase()),r=(h)=>{let n=h;if(typeof n==="number")n=n.toString();if(n.indexOf(",")>=0)n=n.split(",")[0];if(n.indexOf(":")>=0)n=n.split(":")[0];if(n.indexOf("#")>=0)n=n.split("#")[1];return n},o=e(t.headers,"x-amzn-errortype");if(o!==void 0)return r(t.headers[o]);if(s&&typeof s==="object"){let h=e(s,"code");if(h&&s[h]!==void 0)return r(s[h]);if(s.__type!==void 0)return r(s.__type)}};class ti extends yt{settings;constructor(t){super();this.settings=t}async read(t,s){return this._read(t,typeof s==="string"?JSON.parse(s,Bp):await kh(s,this.serdeContext))}readObject(t,s){return this._read(t,s)}_read(t,s){let e=s!==null&&typeof s==="object",r=V.NormalizedSchema.of(t);if(e){if(r.isStructSchema()){let h=s,n=r.isUnionSchema(),f={},u=void 0,{jsonName:a}=this.settings;if(a)u={};let w;if(n)w=new qh(h,f);for(let[T,m]of r.structIterator()){let g=T;if(a)g=m.getMergedTraits().jsonName??g,u[g]=T;if(n)w.mark(g);if(h[g]!=null)f[T]=this._read(m,h[g])}if(n)w.writeUnknown();else if(typeof h.__type==="string")for(let[T,m]of Object.entries(h)){let g=a?u[T]??T:T;if(!(g in f))f[g]=m}return f}if(Array.isArray(s)&&r.isListSchema()){let h=r.getValueSchema(),n=[];for(let f of s)n.push(this._read(h,f));return n}if(r.isMapSchema()){let h=r.getValueSchema(),n={};for(let[f,u]of Object.entries(s))n[f]=this._read(h,u);return n}}if(r.isBlobSchema()&&typeof s==="string")return Qt.fromBase64(s);let o=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof s==="string"&&o){if(o==="application/json"||o.endsWith("+json"))return G.LazyJsonString.from(s);return s}if(r.isTimestampSchema()&&s!=null)switch(Z.determineTimestampFormat(r,this.settings)){case 5:return G.parseRfc3339DateTimeWithOffset(s);case 6:return G.parseRfc7231DateTime(s);case 7:return G.parseEpochTimestamp(s);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",s),new Date(s)}if(r.isBigIntegerSchema()&&(typeof s==="number"||typeof s==="string"))return BigInt(s);if(r.isBigDecimalSchema()&&s!=null){if(s instanceof G.NumericValue)return s;let h=s;if(h.type==="bigDecimal"&&"string"in h)return new G.NumericValue(h.string,h.type);return new G.NumericValue(String(s),"bigDecimal")}if(r.isNumericSchema()&&typeof s==="string"){switch(s){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return s}if(r.isDocumentSchema())if(e){let h=Array.isArray(s)?[]:{};for(let[n,f]of Object.entries(s))if(f instanceof G.NumericValue)h[n]=f;else h[n]=this._read(r,f);return h}else return structuredClone(s);return s}}var Qu=String.fromCharCode(925);class Gu{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,(t,s)=>{if(s instanceof G.NumericValue){let e=`${Qu+"nv"+this.counter++}_`+s.string;return this.values.set(`"${e}"`,s.string),e}if(typeof s==="bigint"){let e=s.toString(),r=`${Qu+"b"+this.counter++}_`+e;return this.values.set(`"${r}"`,e),r}return s}}replaceInJson(t){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 t;for(let[s,e]of this.values)t=t.replace(s,e);return t}}class si extends yt{settings;buffer;useReplacer=!1;rootSchema;constructor(t){super();this.settings=t}write(t,s){this.rootSchema=V.NormalizedSchema.of(t),this.buffer=this._write(this.rootSchema,s)}writeDiscriminatedDocument(t,s){if(this.write(t,s),typeof this.buffer==="object")this.buffer.__type=V.NormalizedSchema.of(t).getName(!0)}flush(){let{rootSchema:t,useReplacer:s}=this;if(this.rootSchema=void 0,this.useReplacer=!1,t?.isStructSchema()||t?.isDocumentSchema()){if(!s)return JSON.stringify(this.buffer);let e=new Gu;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(t,s,e){let r=s!==null&&typeof s==="object",o=V.NormalizedSchema.of(t);if(r){if(o.isStructSchema()){let h=s,n={},{jsonName:f}=this.settings,u=void 0;if(f)u={};for(let[a,w]of o.structIterator()){let T=this._write(w,h[a],o);if(T!==void 0){let m=a;if(f)m=w.getMergedTraits().jsonName??a,u[a]=m;n[m]=T}}if(o.isUnionSchema()&&Object.keys(n).length===0){let{$unknown:a}=h;if(Array.isArray(a)){let[w,T]=a;n[w]=this._write(15,T)}}else if(typeof h.__type==="string")for(let[a,w]of Object.entries(h)){let T=f?u[a]??a:a;if(!(T in n))n[T]=this._write(15,w)}return n}if(Array.isArray(s)&&o.isListSchema()){let h=o.getValueSchema(),n=[],f=!!o.getMergedTraits().sparse;for(let u of s)if(f||u!=null)n.push(this._write(h,u));return n}if(o.isMapSchema()){let h=o.getValueSchema(),n={},f=!!o.getMergedTraits().sparse;for(let[u,a]of Object.entries(s))if(f||a!=null)n[u]=this._write(h,a);return n}if(s instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema())){if(o===this.rootSchema)return s;return(this.serdeContext?.base64Encoder??Qt.toBase64)(s)}if(s instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(Z.determineTimestampFormat(o,this.settings)){case 5:return s.toISOString().replace(".000Z","Z");case 6:return G.dateToUtcString(s);case 7:return s.getTime()/1000;default:return console.warn("Missing timestamp format, using epoch seconds",s),s.getTime()/1000}if(s instanceof G.NumericValue)this.useReplacer=!0}if(s===null&&e?.isStructSchema())return;if(o.isStringSchema()){if(typeof s>"u"&&o.isIdempotencyToken())return G.generateIdempotencyToken();let h=o.getMergedTraits().mediaType;if(s!=null&&h){if(h==="application/json"||h.endsWith("+json"))return G.LazyJsonString.from(s)}return s}if(typeof s==="number"&&o.isNumericSchema()){if(Math.abs(s)===1/0||isNaN(s))return String(s);return s}if(typeof s==="string"&&o.isBlobSchema()){if(o===this.rootSchema)return s;return(this.serdeContext?.base64Encoder??Qt.toBase64)(s)}if(typeof s==="bigint")this.useReplacer=!0;if(o.isDocumentSchema())if(r){let h=Array.isArray(s)?[]:{};for(let[n,f]of Object.entries(s))if(f instanceof G.NumericValue)this.useReplacer=!0,h[n]=f;else h[n]=this._write(o,f);return h}else return structuredClone(s);return s}}class ne extends yt{settings;constructor(t){super();this.settings=t}createSerializer(){let t=new si(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){let t=new ti(this.settings);return t.setSerdeContext(this.serdeContext),t}}class ce extends Z.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,errorTypeRegistries:s,serviceTarget:e,awsQueryCompatible:r,jsonCodec:o}){super({defaultNamespace:t,errorTypeRegistries:s});this.serviceTarget=e,this.codec=o??new ne({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new Vt(this.awsQueryCompatible)}async serializeRequest(t,s,e){let r=await super.serializeRequest(t,s,e);if(!r.path.endsWith("/"))r.path+="/";if(Object.assign(r.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${t.name}`}),this.awsQueryCompatible)r.headers["x-amzn-query-mode"]="true";if(V.deref(t.input)==="unit"||!r.body)r.body="{}";return r}getPayloadCodec(){return this.codec}async handleError(t,s,e,r,o){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(r,e);let h=vh(e,r)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,h,this.options.defaultNamespace);let{errorSchema:n,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(h,this.options.defaultNamespace,e,r,o,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=V.NormalizedSchema.of(n),a=r.message??r.Message??"UnknownError",T=new(this.compositeErrorRegistry.getErrorCtor(n)??Error)(a),m={};for(let[g,p]of u.structIterator())if(r[g]!=null)m[g]=this.codec.createDeserializer().readObject(p,r[g]);if(this.awsQueryCompatible)this.mixin.queryCompatOutput(r,m);throw this.mixin.decorateServiceException(Object.assign(T,f,{$fault:u.getMergedTraits().error,message:a},m),r)}}class Ju extends ce{constructor({defaultNamespace:t,errorTypeRegistries:s,serviceTarget:e,awsQueryCompatible:r,jsonCodec:o}){super({defaultNamespace:t,errorTypeRegistries:s,serviceTarget:e,awsQueryCompatible:r,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class Zu extends ce{constructor({defaultNamespace:t,errorTypeRegistries:s,serviceTarget:e,awsQueryCompatible:r,jsonCodec:o}){super({defaultNamespace:t,errorTypeRegistries:s,serviceTarget:e,awsQueryCompatible:r,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class Ku extends Z.HttpBindingProtocol{serializer;deserializer;codec;mixin=new Vt;constructor({defaultNamespace:t,errorTypeRegistries:s}){super({defaultNamespace:t,errorTypeRegistries:s});let e={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new ne(e),this.serializer=new Z.HttpInterceptingShapeSerializer(this.codec.createSerializer(),e),this.deserializer=new Z.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),e)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(t){this.codec.setSerdeContext(t),super.setSerdeContext(t)}async serializeRequest(t,s,e){let r=await super.serializeRequest(t,s,e),o=V.NormalizedSchema.of(t.input);if(!r.headers["content-type"]){let h=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);if(h)r.headers["content-type"]=h}if(r.body==null&&r.headers["content-type"]===this.getDefaultContentType())r.body="{}";return r}async deserializeResponse(t,s,e){let r=await super.deserializeResponse(t,s,e),o=V.NormalizedSchema.of(t.output);for(let[h,n]of o.structIterator())if(n.getMemberTraits().httpPayload&&!(h in r))r[h]=null;return r}async handleError(t,s,e,r,o){let h=vh(e,r)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,h,this.options.defaultNamespace);let{errorSchema:n,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(h,this.options.defaultNamespace,e,r,o),u=V.NormalizedSchema.of(n),a=r.message??r.Message??"UnknownError",T=new(this.compositeErrorRegistry.getErrorCtor(n)??Error)(a);await this.deserializeHttpMessage(n,s,e,r);let m={};for(let[g,p]of u.structIterator()){let b=p.getMergedTraits().jsonName??g;m[g]=this.codec.createDeserializer().readObject(p,r[b])}throw this.mixin.decorateServiceException(Object.assign(T,f,{$fault:u.getMergedTraits().error,message:a},m),r)}getDefaultContentType(){return"application/json"}}var Qp=(t)=>{if(t==null)return;if(typeof t==="object"&&"__type"in t)delete t.__type;return lt.expectUnion(t)};class oe extends yt{settings;stringDeserializer;constructor(t){super();this.settings=t,this.stringDeserializer=new Z.FromStringShapeDeserializer(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,s,e){let r=V.NormalizedSchema.of(t),o=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&!!Object.values(o).find((u)=>{return!!u.getMemberTraits().eventPayload})){let u={},a=Object.keys(o)[0];if(o[a].isBlobSchema())u[a]=s;else u[a]=this.read(o[a],s);return u}let n=(this.serdeContext?.utf8Encoder??Vu.toUtf8)(s),f=this.parseXml(n);return this.readSchema(t,e?f[e]:f)}readSchema(t,s){let e=V.NormalizedSchema.of(t);if(e.isUnitSchema())return;let r=e.getMergedTraits();if(e.isListSchema()&&!Array.isArray(s))return this.readSchema(e,[s]);if(s==null)return s;if(typeof s==="object"){let o=!!r.xmlFlattened;if(e.isListSchema()){let n=e.getValueSchema(),f=[],u=n.getMergedTraits().xmlName??"member",a=o?s:(s[0]??s)[u];if(a==null)return f;let w=Array.isArray(a)?a:[a];for(let T of w)f.push(this.readSchema(n,T));return f}let h={};if(e.isMapSchema()){let n=e.getKeySchema(),f=e.getValueSchema(),u;if(o)u=Array.isArray(s)?s:[s];else u=Array.isArray(s.entry)?s.entry:[s.entry];let a=n.getMergedTraits().xmlName??"key",w=f.getMergedTraits().xmlName??"value";for(let T of u){let m=T[a],g=T[w];h[m]=this.readSchema(f,g)}return h}if(e.isStructSchema()){let n=e.isUnionSchema(),f;if(n)f=new qh(s,h);for(let[u,a]of e.structIterator()){let w=a.getMergedTraits(),T=!w.httpPayload?a.getMemberTraits().xmlName??u:w.xmlName??a.getName();if(n)f.mark(T);if(s[T]!=null)h[u]=this.readSchema(a,s[T])}if(n)f.writeUnknown();return h}if(e.isDocumentSchema())return s;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${e.getName(!0)}`)}if(e.isListSchema())return[];if(e.isMapSchema()||e.isStructSchema())return{};return this.stringDeserializer.read(e,s)}parseXml(t){if(t.length){let s;try{s=F.parseXML(t)}catch(h){if(h&&typeof h==="object")Object.defineProperty(h,"$responseBodyText",{value:t});throw h}let e="#text",r=Object.keys(s)[0],o=s[r];if(o[e])o[r]=o[e],delete o[e];return lt.getValueFromTextNode(o)}return{}}}class ei extends yt{settings;buffer;constructor(t){super();this.settings=t}write(t,s,e=""){if(this.buffer===void 0)this.buffer="";let r=V.NormalizedSchema.of(t);if(e&&!e.endsWith("."))e+=".";if(r.isBlobSchema()){if(typeof s==="string"||s instanceof Uint8Array)this.writeKey(e),this.writeValue((this.serdeContext?.base64Encoder??Qt.toBase64)(s))}else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema()){if(s!=null)this.writeKey(e),this.writeValue(String(s));else if(r.isIdempotencyToken())this.writeKey(e),this.writeValue(G.generateIdempotencyToken())}else if(r.isBigIntegerSchema()){if(s!=null)this.writeKey(e),this.writeValue(String(s))}else if(r.isBigDecimalSchema()){if(s!=null)this.writeKey(e),this.writeValue(s instanceof G.NumericValue?s.string:String(s))}else if(r.isTimestampSchema()){if(s instanceof Date)switch(this.writeKey(e),Z.determineTimestampFormat(r,this.settings)){case 5:this.writeValue(s.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(lt.dateToUtcString(s));break;case 7:this.writeValue(String(s.getTime()/1000));break}}else if(r.isDocumentSchema())if(Array.isArray(s))this.write(79,s,e);else if(s instanceof Date)this.write(4,s,e);else if(s instanceof Uint8Array)this.write(21,s,e);else if(s&&typeof s==="object")this.write(143,s,e);else this.writeKey(e),this.writeValue(String(s));else if(r.isListSchema()){if(Array.isArray(s))if(s.length===0){if(this.settings.serializeEmptyLists)this.writeKey(e),this.writeValue("")}else{let o=r.getValueSchema(),h=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,n=1;for(let f of s){if(f==null)continue;let u=o.getMergedTraits(),a=this.getKey("member",u.xmlName,u.ec2QueryName),w=h?`${e}${n}`:`${e}${a}.${n}`;this.write(o,f,w),++n}}}else if(r.isMapSchema()){if(s&&typeof s==="object"){let o=r.getKeySchema(),h=r.getValueSchema(),n=r.getMergedTraits().xmlFlattened,f=1;for(let[u,a]of Object.entries(s)){if(a==null)continue;let w=o.getMergedTraits(),T=this.getKey("key",w.xmlName,w.ec2QueryName),m=n?`${e}${f}.${T}`:`${e}entry.${f}.${T}`,g=h.getMergedTraits(),p=this.getKey("value",g.xmlName,g.ec2QueryName),b=n?`${e}${f}.${p}`:`${e}entry.${f}.${p}`;this.write(o,u,m),this.write(h,a,b),++f}}}else if(r.isStructSchema()){if(s&&typeof s==="object"){let o=!1;for(let[h,n]of r.structIterator()){if(s[h]==null&&!n.isIdempotencyToken())continue;let f=n.getMergedTraits(),u=this.getKey(h,f.xmlName,f.ec2QueryName,"struct"),a=`${e}${u}`;this.write(n,s[h],a),o=!0}if(!o&&r.isUnionSchema()){let{$unknown:h}=s;if(Array.isArray(h)){let[n,f]=h,u=`${e}${n}`;this.write(15,f,u)}}}}else if(r.isUnitSchema());else throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${r.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let t=this.buffer;return delete this.buffer,t}getKey(t,s,e,r){let{ec2:o,capitalizeKeys:h}=this.settings;if(o&&e)return e;let n=s??t;if(h&&r==="struct")return n[0].toUpperCase()+n.slice(1);return n}writeKey(t){if(t.endsWith("."))t=t.slice(0,t.length-1);this.buffer+=`&${Z.extendedEncodeURIComponent(t)}=`}writeValue(t){this.buffer+=Z.extendedEncodeURIComponent(t)}}class ri extends Z.RpcProtocol{options;serializer;deserializer;mixin=new Vt;constructor(t){super({defaultNamespace:t.defaultNamespace,errorTypeRegistries:t.errorTypeRegistries});this.options=t;let s={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new ei(s),this.deserializer=new oe(s)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,s,e){let r=await super.serializeRequest(t,s,e);if(!r.path.endsWith("/"))r.path+="/";if(Object.assign(r.headers,{"content-type":"application/x-www-form-urlencoded"}),V.deref(t.input)==="unit"||!r.body)r.body="";let o=t.name.split("#")[1]??t.name;if(r.body=`Action=${o}&Version=${this.options.version}`+r.body,r.body.endsWith("&"))r.body=r.body.slice(-1);return r}async deserializeResponse(t,s,e){let r=this.deserializer,o=V.NormalizedSchema.of(t.output),h={};if(e.statusCode>=300){let w=await Z.collectBody(e.body,s);if(w.byteLength>0)Object.assign(h,await r.read(15,w));await this.handleError(t,s,e,h,this.deserializeMetadata(e))}for(let w in e.headers){let T=e.headers[w];delete e.headers[w],e.headers[w.toLowerCase()]=T}let n=t.name.split("#")[1]??t.name,f=o.isStructSchema()&&this.useNestedResult()?n+"Result":void 0,u=await Z.collectBody(e.body,s);if(u.byteLength>0)Object.assign(h,await r.read(o,u,f));return{$metadata:this.deserializeMetadata(e),...h}}useNestedResult(){return!0}async handleError(t,s,e,r,o){let h=this.loadQueryErrorCode(e,r)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,h,this.options.defaultNamespace);let n=this.loadQueryError(r)??{},f=this.loadQueryErrorMessage(r);n.message=f,n.Error={Type:n.Type,Code:n.Code,Message:f};let{errorSchema:u,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(h,this.options.defaultNamespace,e,n,o,this.mixin.findQueryCompatibleError),w=V.NormalizedSchema.of(u),m=new(this.compositeErrorRegistry.getErrorCtor(u)??Error)(f),g={Type:n.Error.Type,Code:n.Error.Code,Error:n.Error};for(let[p,b]of w.structIterator()){let P=b.getMergedTraits().xmlName??p,X=n[P]??r[P];g[p]=this.deserializer.readSchema(b,X)}throw this.mixin.decorateServiceException(Object.assign(m,a,{$fault:w.getMergedTraits().error,message:f},g),r)}loadQueryErrorCode(t,s){let e=(s.Errors?.[0]?.Error??s.Errors?.Error??s.Error)?.Code;if(e!==void 0)return e;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){let s=this.loadQueryError(t);return s?.message??s?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class ju extends ri{options;constructor(t){super(t);this.options=t;let s={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,s)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}var Fu=(t,s)=>Wu(t,s).then((e)=>{if(e.length){let r;try{r=F.parseXML(e)}catch(f){if(f&&typeof f==="object")Object.defineProperty(f,"$responseBodyText",{value:e});throw f}let o="#text",h=Object.keys(r)[0],n=r[h];if(n[o])n[h]=n[o],delete n[o];return lt.getValueFromTextNode(n)}return{}}),Vp=async(t,s)=>{let e=await Fu(t,s);if(e.Error)e.Error.message=e.Error.message??e.Error.Message;return e},qu=(t,s)=>{if(s?.Error?.Code!==void 0)return s.Error.Code;if(s?.Code!==void 0)return s.Code;if(t.statusCode==404)return"NotFound"};class hi extends yt{settings;stringBuffer;byteBuffer;buffer;constructor(t){super();this.settings=t}write(t,s){let e=V.NormalizedSchema.of(t);if(e.isStringSchema()&&typeof s==="string")this.stringBuffer=s;else if(e.isBlobSchema())this.byteBuffer="byteLength"in s?s:(this.serdeContext?.base64Decoder??Qt.fromBase64)(s);else{this.buffer=this.writeStruct(e,s,void 0);let r=e.getMergedTraits();if(r.httpPayload&&!r.xmlName)this.buffer.withName(e.getName())}}flush(){if(this.byteBuffer!==void 0){let s=this.byteBuffer;return delete this.byteBuffer,s}if(this.stringBuffer!==void 0){let s=this.stringBuffer;return delete this.stringBuffer,s}let t=this.buffer;if(this.settings.xmlNamespace){if(!t?.attributes?.xmlns)t.addAttribute("xmlns",this.settings.xmlNamespace)}return delete this.buffer,t.toString()}writeStruct(t,s,e){let r=t.getMergedTraits(),o=t.isMemberSchema()&&!r.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():r.xmlName??t.getName();if(!o||!t.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);let h=F.XmlNode.of(o),[n,f]=this.getXmlnsAttribute(t,e);for(let[a,w]of t.structIterator()){let T=s[a];if(T!=null||w.isIdempotencyToken()){if(w.getMergedTraits().xmlAttribute){h.addAttribute(w.getMergedTraits().xmlName??a,this.writeSimple(w,T));continue}if(w.isListSchema())this.writeList(w,T,h,f);else if(w.isMapSchema())this.writeMap(w,T,h,f);else if(w.isStructSchema())h.addChildNode(this.writeStruct(w,T,f));else{let m=F.XmlNode.of(w.getMergedTraits().xmlName??w.getMemberName());this.writeSimpleInto(w,T,m,f),h.addChildNode(m)}}}let{$unknown:u}=s;if(u&&t.isUnionSchema()&&Array.isArray(u)&&Object.keys(s).length===1){let[a,w]=u,T=F.XmlNode.of(a);if(typeof w!=="string")if(s instanceof F.XmlNode||s instanceof F.XmlText)h.addChildNode(s);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,w,T,f),h.addChildNode(T)}if(f)h.addAttribute(n,f);return h}writeList(t,s,e,r){if(!t.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);let o=t.getMergedTraits(),h=t.getValueSchema(),n=h.getMergedTraits(),f=!!n.sparse,u=!!o.xmlFlattened,[a,w]=this.getXmlnsAttribute(t,r),T=(m,g)=>{if(h.isListSchema())this.writeList(h,Array.isArray(g)?g:[g],m,w);else if(h.isMapSchema())this.writeMap(h,g,m,w);else if(h.isStructSchema()){let p=this.writeStruct(h,g,w);m.addChildNode(p.withName(u?o.xmlName??t.getMemberName():n.xmlName??"member"))}else{let p=F.XmlNode.of(u?o.xmlName??t.getMemberName():n.xmlName??"member");this.writeSimpleInto(h,g,p,w),m.addChildNode(p)}};if(u){for(let m of s)if(f||m!=null)T(e,m)}else{let m=F.XmlNode.of(o.xmlName??t.getMemberName());if(w)m.addAttribute(a,w);for(let g of s)if(f||g!=null)T(m,g);e.addChildNode(m)}}writeMap(t,s,e,r,o=!1){if(!t.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);let h=t.getMergedTraits(),n=t.getKeySchema(),u=n.getMergedTraits().xmlName??"key",a=t.getValueSchema(),w=a.getMergedTraits(),T=w.xmlName??"value",m=!!w.sparse,g=!!h.xmlFlattened,[p,b]=this.getXmlnsAttribute(t,r),P=(X,U,D)=>{let W=F.XmlNode.of(u,U),[v,Q]=this.getXmlnsAttribute(n,b);if(Q)W.addAttribute(v,Q);X.addChildNode(W);let et=F.XmlNode.of(T);if(a.isListSchema())this.writeList(a,D,et,b);else if(a.isMapSchema())this.writeMap(a,D,et,b,!0);else if(a.isStructSchema())et=this.writeStruct(a,D,b);else this.writeSimpleInto(a,D,et,b);X.addChildNode(et)};if(g){for(let[X,U]of Object.entries(s))if(m||U!=null){let D=F.XmlNode.of(h.xmlName??t.getMemberName());P(D,X,U),e.addChildNode(D)}}else{let X;if(!o){if(X=F.XmlNode.of(h.xmlName??t.getMemberName()),b)X.addAttribute(p,b);e.addChildNode(X)}for(let[U,D]of Object.entries(s))if(m||D!=null){let W=F.XmlNode.of("entry");P(W,U,D),(o?e:X).addChildNode(W)}}}writeSimple(t,s){if(s===null)throw Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let e=V.NormalizedSchema.of(t),r=null;if(s&&typeof s==="object")if(e.isBlobSchema())r=(this.serdeContext?.base64Encoder??Qt.toBase64)(s);else if(e.isTimestampSchema()&&s instanceof Date)switch(Z.determineTimestampFormat(e,this.settings)){case 5:r=s.toISOString().replace(".000Z","Z");break;case 6:r=lt.dateToUtcString(s);break;case 7:r=String(s.getTime()/1000);break;default:console.warn("Missing timestamp format, using http date",s),r=lt.dateToUtcString(s);break}else if(e.isBigDecimalSchema()&&s){if(s instanceof G.NumericValue)return s.string;return String(s)}else if(e.isMapSchema()||e.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: ${e.getName(!0)}`);if(e.isBooleanSchema()||e.isNumericSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema())r=String(s);if(e.isStringSchema())if(s===void 0&&e.isIdempotencyToken())r=G.generateIdempotencyToken();else r=String(s);if(r===null)throw Error(`Unhandled schema-value pair ${e.getName(!0)}=${s}`);return r}writeSimpleInto(t,s,e,r){let o=this.writeSimple(t,s),h=V.NormalizedSchema.of(t),n=new F.XmlText(o),[f,u]=this.getXmlnsAttribute(h,r);if(u)e.addAttribute(f,u);e.addChildNode(n)}getXmlnsAttribute(t,s){let e=t.getMergedTraits(),[r,o]=e.xmlNamespace??[];if(o&&o!==s)return[r?`xmlns:${r}`:"xmlns",o];return[void 0,void 0]}}class ii extends yt{settings;constructor(t){super();this.settings=t}createSerializer(){let t=new hi(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){let t=new oe(this.settings);return t.setSerdeContext(this.serdeContext),t}}class ku extends Z.HttpBindingProtocol{codec;serializer;deserializer;mixin=new Vt;constructor(t){super(t);let s={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new ii(s),this.serializer=new Z.HttpInterceptingShapeSerializer(this.codec.createSerializer(),s),this.deserializer=new Z.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),s),this.compositeErrorRegistry}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,s,e){let r=await super.serializeRequest(t,s,e),o=V.NormalizedSchema.of(t.input);if(!r.headers["content-type"]){let h=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);if(h)r.headers["content-type"]=h}if(typeof r.body==="string"&&r.headers["content-type"]===this.getDefaultContentType()&&!r.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(o))r.body='<?xml version="1.0" encoding="UTF-8"?>'+r.body;return r}async deserializeResponse(t,s,e){return super.deserializeResponse(t,s,e)}async handleError(t,s,e,r,o){let h=qu(e,r)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,h,this.options.defaultNamespace),r.Error&&typeof r.Error==="object"){for(let g of Object.keys(r.Error))if(r[g]=r.Error[g],g.toLowerCase()==="message")r.message=r.Error[g]}if(r.RequestId&&!o.requestId)o.requestId=r.RequestId;let{errorSchema:n,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(h,this.options.defaultNamespace,e,r,o),u=V.NormalizedSchema.of(n),a=r.Error?.message??r.Error?.Message??r.message??r.Message??"UnknownError",T=new(this.compositeErrorRegistry.getErrorCtor(n)??Error)(a);await this.deserializeHttpMessage(n,s,e,r);let m={};for(let[g,p]of u.structIterator()){let b=p.getMergedTraits().xmlName??g,P=r.Error?.[b]??r[b];m[g]=this.codec.createDeserializer().readSchema(p,P)}throw this.mixin.decorateServiceException(Object.assign(T,f,{$fault:u.getMergedTraits().error,message:a},m),r)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(let[,s]of t.structIterator())if(s.getMergedTraits().httpPayload)return!(s.isStructSchema()||s.isMapSchema()||s.isListSchema());return!1}}Yp.AwsEc2QueryProtocol=ju;Yp.AwsJson1_0Protocol=Ju;Yp.AwsJson1_1Protocol=Zu;Yp.AwsJsonRpcProtocol=ce;Yp.AwsQueryProtocol=ri;Yp.AwsRestJsonProtocol=Ku;Yp.AwsRestXmlProtocol=ku;Yp.AwsSmithyRpcV2CborProtocol=Yu;Yp.JsonCodec=ne;Yp.JsonShapeDeserializer=ti;Yp.JsonShapeSerializer=si;Yp.QueryShapeSerializer=ei;Yp.XmlCodec=ii;Yp.XmlShapeDeserializer=oe;Yp.XmlShapeSerializer=hi;Yp._toBool=zp;Yp._toNum=Cp;Yp._toStr=Pp;Yp.awsExpectUnion=Qp;Yp.loadRestJsonErrorCode=vh;Yp.loadRestXmlErrorCode=qu;Yp.parseJsonBody=kh;Yp.parseJsonErrorBody=Xp;Yp.parseXmlBody=Fu;Yp.parseXmlErrorBody=Vp});var vu=$((Tb)=>{var xb=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";Tb.isArrayBuffer=xb});var ci=$((Nb)=>{var mb=vu(),ni=st("buffer"),yb=(t,s=0,e=t.byteLength-s)=>{if(!mb.isArrayBuffer(t))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return ni.Buffer.from(t,s,e)},Sb=(t,s)=>{if(typeof t!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return s?ni.Buffer.from(t,s):ni.Buffer.from(t)};Nb.fromArrayBuffer=yb;Nb.fromString=Sb});var ed=$((td)=>{Object.defineProperty(td,"__esModule",{value:!0});td.fromBase64=void 0;var bb=ci(),$b=/^[A-Za-z0-9+/]*={0,2}$/,Rb=(t)=>{if(t.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!$b.exec(t))throw TypeError("Invalid base64 string.");let s=(0,bb.fromString)(t,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)};td.fromBase64=Rb});var id=$((rd)=>{Object.defineProperty(rd,"__esModule",{value:!0});rd.toBase64=void 0;var _b=ci(),Mb=Ot(),Db=(t)=>{let s;if(typeof t==="string")s=(0,Mb.fromUtf8)(t);else s=t;if(typeof s!=="object"||typeof s.byteOffset!=="number"||typeof s.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,_b.fromArrayBuffer)(s.buffer,s.byteOffset,s.byteLength).toString("base64")};rd.toBase64=Db});var Lb=$((at)=>{var fe=ed(),ue=id();Object.prototype.hasOwnProperty.call(fe,"__proto__")&&!Object.prototype.hasOwnProperty.call(at,"__proto__")&&Object.defineProperty(at,"__proto__",{enumerable:!0,value:fe.__proto__});Object.keys(fe).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(at,t))at[t]=fe[t]});Object.prototype.hasOwnProperty.call(ue,"__proto__")&&!Object.prototype.hasOwnProperty.call(at,"__proto__")&&Object.defineProperty(at,"__proto__",{enumerable:!0,value:ue.__proto__});Object.keys(ue).forEach(function(t){if(t!=="default"&&!Object.prototype.hasOwnProperty.call(at,t))at[t]=ue[t]})});
22
- export{NN as M5,Al as N5,pl as O5,ra as P5,Ge as Q5,fn as R5,rr as S5,Un as T5,Ms as U5,G0 as V5,Fx as W5,ZA as X5,qm as Y5,gN as Z5,bN as _5,JN as $5,n1 as a6,u1 as b6,b1 as c6,wb as d6,Lb as e6,uy as f6,py as g6};