claude-code-best 2.5.0 → 2.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AddWorkspaceDirectory-BYyM_V0q.js +1 -0
- package/dist/chunks/App-BboadKdn.js +1 -0
- package/dist/chunks/ApproveApiKey-BLp4742y.js +1 -0
- package/dist/chunks/ApproveApiKey-DiEe4eui.js +1 -0
- package/dist/chunks/AssistantSessionChooser-B88DM0Oq.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-ByraVuXh.js +2 -0
- package/dist/chunks/BypassPermissionsModeDialog-BDvmz12S.js +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-B6XNhFqq.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-B4ocUjev.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-BNhlq7_K.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-BvaB9b0y.js +1 -0
- package/dist/chunks/DesktopHandoff-S-w4bs5T.js +1 -0
- package/dist/chunks/DevChannelsDialog-BljR0X9X.js +1 -0
- package/dist/chunks/Dialog-DYFGqyDs.js +1 -0
- package/dist/chunks/DiffDialog-BhQ2QaLW.js +3 -0
- package/dist/chunks/Doctor-BXb0qv6n.js +3 -0
- package/dist/chunks/Doctor-C5DYPEGl.js +1 -0
- package/dist/chunks/ExitFlow-CSBDxw9H.js +2 -0
- package/dist/chunks/Feedback-DwHzc4UT.js +2 -0
- package/dist/chunks/Grove-DSXRnXKv.js +11 -0
- package/dist/chunks/Grove-DnTo982-.js +1 -0
- package/dist/chunks/HybridTransport-CuT3KI5e.js +4 -0
- package/dist/chunks/ITermBackend-mokGZVH_.js +1 -0
- package/dist/chunks/InProcessTransport-DB52dh4f.js +1 -0
- package/dist/chunks/InvalidConfigDialog-Bi4RKYlk.js +1 -0
- package/dist/chunks/InvalidSettingsDialog-0zKo4-so.js +1 -0
- package/dist/chunks/ListItem-OFARanN7.js +1 -0
- package/dist/chunks/MCPConnectionManager-DYGoS1Ht.js +1 -0
- package/dist/chunks/McpParsingWarnings-EzgsOoHw.js +1 -0
- package/dist/chunks/MessageSelector-DTmUuEKJ.js +3 -0
- package/dist/chunks/Messages-DWiKTx5o.js +11 -0
- package/dist/chunks/Onboarding-odmthwzz.js +1 -0
- package/dist/chunks/OverageCreditUpsell-Cpk_5Lv0.js +1 -0
- package/dist/chunks/PermissionDialog-5MlJf7ew.js +1 -0
- package/dist/chunks/PluginSettings-eYcWehI8.js +17 -0
- package/dist/chunks/PressEnterToContinue-BdA9zDGs.js +1 -0
- package/dist/chunks/PromptInputFooterSuggestions-DrrkNOuS.js +1 -0
- package/dist/chunks/PromptInputHelpMenu-DMsF4D6d.js +1 -0
- package/dist/chunks/QueryEngine-C_KZts4y.js +1 -0
- package/dist/chunks/REPL-C6YR0VKU.js +1 -0
- package/dist/chunks/REPL-DzHz-LOY.js +97 -0
- package/dist/chunks/RemoteCallout-CnpCWRPk.js +1 -0
- package/dist/chunks/RemoteSessionManager-OWg_Yccq.js +2 -0
- package/dist/chunks/ResumeConversation-BktSnsCm.js +1 -0
- package/dist/chunks/SSETransport-BpnapvlK.js +4 -0
- package/dist/chunks/SearchBox-DfOmUoaI.js +1 -0
- package/dist/chunks/SearchExtraToolsTool-CqFD8vVS.js +1 -0
- package/dist/chunks/SentryErrorBoundary-BUirJRWU.js +1 -0
- package/dist/chunks/SentryErrorBoundary-C-NlfQZw.js +2 -0
- package/dist/chunks/Settings-vfFvcweR.js +2 -0
- package/dist/chunks/TeleportProgress-CYXay2ZL.js +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-_zbZTvcJ.js +1 -0
- package/dist/chunks/TeleportResumeWrapper-DiHQeZIM.js +1 -0
- package/dist/chunks/ThemePicker-BRh027fA.js +1 -0
- package/dist/chunks/TmuxBackend-BaX2U7iZ.js +9 -0
- package/dist/chunks/TrustDialog-CVbzrv6g.js +1 -0
- package/dist/chunks/TungstenTool-C5IqKVr0.js +1 -0
- package/dist/chunks/TungstenTool-V-Bwqlx3.js +1 -0
- package/dist/chunks/ValidationErrorsList-CdCUgfIl.js +2 -0
- package/dist/chunks/WelcomeV2-DCXcYd2x.js +1 -0
- package/dist/chunks/WindowsTerminalBackend-BE9NX5IH.js +2 -0
- package/dist/chunks/add-dir-ldGd3Ppz.js +1 -0
- package/dist/chunks/agentDisplay-CVnAeURF.js +1 -0
- package/dist/chunks/agents-C08NzRZx.js +2 -0
- package/dist/chunks/agents-DH5fmbVw.js +103 -0
- package/dist/chunks/ajv-B_OpU_Uh.js +8 -0
- package/dist/chunks/analytics-DqMQntaB.js +1 -0
- package/dist/chunks/ant-DJren1Aa.js +1 -0
- package/dist/chunks/api-6tcwJlf_.js +1 -0
- package/dist/chunks/api-CGOR_Xfl.js +1 -0
- package/dist/chunks/asciicast-aoKFhc7C.js +1 -0
- package/dist/chunks/asciicast-o5Zg4dJt.js +4 -0
- package/dist/chunks/assistant-BlzrMSkM.js +1 -0
- package/dist/chunks/assistant-CwbhlCM-.js +1 -0
- package/dist/chunks/assistant-aWkDcurV.js +1 -0
- package/dist/chunks/attributionHooks-PygdohOh.js +1 -0
- package/dist/chunks/attributionTrailer-BpvhXgRP.js +1 -0
- package/dist/chunks/auth-CSB2RDKF.js +1 -0
- package/dist/chunks/auth-GxZhOvQ1.js +1 -0
- package/dist/chunks/autoMode-CWvZs1jO.js +45 -0
- package/dist/chunks/autoModeDenials-Cp6VFdsm.js +1 -0
- package/dist/chunks/autonomy-BkVcSMCZ.js +19 -0
- package/dist/chunks/autonomy-DK42aJYt.js +1 -0
- package/dist/chunks/autonomyPanel-Cn4IhXgE.js +1 -0
- package/dist/chunks/axios-DLnc2dVy.js +1 -0
- package/dist/chunks/axios-DhfaybwJ.js +12 -0
- package/dist/chunks/backgroundHousekeeping-BIZTAYho.js +17 -0
- package/dist/chunks/backgroundHousekeeping-Csh58CxV.js +1 -0
- package/dist/chunks/banner-CVXH2xts.js +2 -0
- package/dist/chunks/base64-js-DIVSFswY.js +1 -0
- package/dist/chunks/bedrockClient-qi1-JCOK.js +15 -0
- package/dist/chunks/bg-DK0E4ZtW.js +9 -0
- package/dist/chunks/bg-Dbh5z3Y8.js +1 -0
- package/dist/chunks/branch-juox_fko.js +3 -0
- package/dist/chunks/break-cache-ByJ7U2Ts.js +8 -0
- package/dist/chunks/bridge-DudsCZkh.js +2 -0
- package/dist/chunks/bridgeConfig-D4tpc568.js +1 -0
- package/dist/chunks/bridgeConfig-lRZfQqmA.js +1 -0
- package/dist/chunks/bridgeEnabled-B8_c_Ppq.js +1 -0
- package/dist/chunks/bridgeEnabled-D2IykaHE.js +1 -0
- package/dist/chunks/bridgeMain-C5RDihlX.js +68 -0
- package/dist/chunks/bridgeMain-D7_lg2iJ.js +1 -0
- package/dist/chunks/bridgeMessaging-CqNURC4-.js +1 -0
- package/dist/chunks/bridgePointer-FvAMj3re.js +1 -0
- package/dist/chunks/browser-fLRXxIsQ.js +1 -0
- package/dist/chunks/btw-DKlE3Dea.js +1 -0
- package/dist/chunks/buddy-DQYgHR63.js +3 -0
- package/dist/chunks/bundledMode-kSQejuY4.js +1 -0
- package/dist/chunks/bypassPermissionsKillswitch-Bof-UtM-.js +1 -0
- package/dist/chunks/caches-B5QZDncQ.js +3 -0
- package/dist/chunks/caches-dGk7xsDu.js +1 -0
- package/dist/chunks/capacityWake-BXlUpptF.js +1 -0
- package/dist/chunks/ccrClient-BaWg4E9-.js +1 -0
- package/dist/chunks/ccshareResume-DWLjTF22.js +1 -0
- package/dist/chunks/changeDetector-DoLfg8a6.js +1 -0
- package/dist/chunks/channelNotification-B7A-9DIl.js +1 -0
- package/dist/chunks/channelNotification-DDErroWn.js +1 -0
- package/dist/chunks/chokidar-BcI3rIKm.js +1 -0
- package/dist/chunks/chokidar-SzksMqYp.js +1 -0
- package/dist/chunks/chrome-jMAks7-w.js +1 -0
- package/dist/chunks/chromeNativeHost-4U39yLtd.js +1 -0
- package/dist/chunks/chunk-DR8-3Aex.js +1 -0
- package/dist/chunks/classPrivateFieldSet2-EAQNhHs8.js +1 -0
- package/dist/chunks/claudeDesktop-D0S1eq1F.js +1 -0
- package/dist/chunks/cleanup-Bg_gFgcj.js +1 -0
- package/dist/chunks/clear-OudnCGa7.js +1 -0
- package/dist/chunks/cliLaunch-BQa48gsr.js +1 -0
- package/dist/chunks/client-CPn1wQyc.js +7 -0
- package/dist/chunks/client-DxDmXXTh.js +1 -0
- package/dist/chunks/client-_sjL0I7A.js +35 -0
- package/dist/chunks/color-DG_R5-hl.js +1 -0
- package/dist/chunks/color-convert-ULbeSgNC.js +1 -0
- package/dist/chunks/commands-BWIOEBPs.js +1 -0
- package/dist/chunks/commitAttribution-BA4fcbHf.js +1 -0
- package/dist/chunks/commitAttribution-C22a3OCi.js +2 -0
- package/dist/chunks/common-B379wT22.js +1 -0
- package/dist/chunks/common-B_BC3eMY.js +1 -0
- package/dist/chunks/common-CMCv4N_v.js +1 -0
- package/dist/chunks/compact-BWvnb4or.js +3 -0
- package/dist/chunks/companion-Bkn2lSLj.js +1 -0
- package/dist/chunks/completionCache-DHfUBBMH.js +1 -0
- package/dist/chunks/completionCache-DORrtxkS.js +4 -0
- package/dist/chunks/computerUseLock-BjoDJH2h.js +1 -0
- package/dist/chunks/config-BvpTbJ5p.js +1 -0
- package/dist/chunks/config-D-dzD6n-.js +1 -0
- package/dist/chunks/connectHeadless-CwsFt-Mh.js +1 -0
- package/dist/chunks/constants-41VpZw2G.js +1 -0
- package/dist/chunks/context-DzNahdyP.js +1 -0
- package/dist/chunks/context-noninteractive-CM1-lUSe.js +1 -0
- package/dist/chunks/context-noninteractive-yiyJriiw.js +54 -0
- package/dist/chunks/controlMessageCompat-BJhFiS7u.js +1 -0
- package/dist/chunks/conversation-DKlz47xf.js +1 -0
- package/dist/chunks/conversation-cUxdb8MN.js +1 -0
- package/dist/chunks/copy-9k9JPRqW.js +7 -0
- package/dist/chunks/createSSHSession-BZf-Loo5.js +6 -0
- package/dist/chunks/createSession-BuJcoBAj.js +1 -0
- package/dist/chunks/createSession-kiTHYXSL.js +1 -0
- package/dist/chunks/cron-DiW7eIPP.js +1 -0
- package/dist/chunks/cronJitterConfig-CYP7yrQu.js +6 -0
- package/dist/chunks/crossProjectResume-BJisir9Z.js +40 -0
- package/dist/chunks/cwd--iizewsn.js +1 -0
- package/dist/chunks/cwd-BgpSJxd7.js +1 -0
- package/dist/chunks/daemon-VYRit6Aq.js +2 -0
- package/dist/chunks/dangerousBackend-BU_PHGR2.js +1 -0
- package/dist/chunks/datadog-Bg-zL-i7.js +1 -0
- package/dist/chunks/datadog-CVeFkaQu.js +1 -0
- package/dist/chunks/debug-DM5ezCBS.js +1 -0
- package/dist/chunks/debug-UI3T040K.js +5 -0
- package/dist/chunks/debugUtils-BBMFODKH.js +1 -0
- package/dist/chunks/defineProperty-80gRi2ZW.js +1 -0
- package/dist/chunks/desktop-DpaStjc-.js +1 -0
- package/dist/chunks/detached-D300jlhj.js +5 -0
- package/dist/chunks/detect-libc-DNuQfUvI.js +1 -0
- package/dist/chunks/detectRepository-CBk3S2zv.js +1 -0
- package/dist/chunks/detectRepository-DCTvg4p0.js +1 -0
- package/dist/chunks/detection-CQsNad64.js +1 -0
- package/dist/chunks/detection-DJ-vTbBf.js +1 -0
- package/dist/chunks/diff-N_VSBo3Z.js +1 -0
- package/dist/chunks/directoryCompletion-DP_4B1GL.js +1 -0
- package/dist/chunks/dist-CanSxOZ1.js +5 -0
- package/dist/chunks/dist-Cg1a1Exw.js +29 -0
- package/dist/chunks/dist-Q7YNoZ0H.js +20 -0
- package/dist/chunks/dist-es-4z5T3Jzm.js +1 -0
- package/dist/chunks/dist-es-B2jg52tM2.js +1 -0
- package/dist/chunks/dist-es-B6OXHQ1S.js +1 -0
- package/dist/chunks/dist-es-B8NEy5hc.js +1 -0
- package/dist/chunks/dist-es-BVGppqE4.js +1 -0
- package/dist/chunks/dist-es-Bcw5GZko.js +1 -0
- package/dist/chunks/dist-es-BoIJpncb.js +9 -0
- package/dist/chunks/dist-es-Bu_Fshi1.js +1 -0
- package/dist/chunks/dist-es-C-1vn4OP2.js +1 -0
- package/dist/chunks/dist-es-C41b_0B5.js +1 -0
- package/dist/chunks/dist-es-CCZYybbG2.js +1 -0
- package/dist/chunks/dist-es-CLK1mey-.js +1 -0
- package/dist/chunks/dist-es-CQz2aNf72.js +1 -0
- package/dist/chunks/dist-es-CSfI8B8l.js +1 -0
- package/dist/chunks/dist-es-CUZBYppo.js +1 -0
- package/dist/chunks/dist-es-CZkzHpjF.js +1 -0
- package/dist/chunks/dist-es-Cbf0_D8d.js +5 -0
- package/dist/chunks/dist-es-ChHe-SVL.js +1 -0
- package/dist/chunks/dist-es-ClYOf0My.js +1 -0
- package/dist/chunks/dist-es-D-kJbj4A2.js +1 -0
- package/dist/chunks/dist-es-D1LN6CJd.js +1 -0
- package/dist/chunks/dist-es-DC1sC3ph.js +1 -0
- package/dist/chunks/dist-es-DGn8uOwQ2.js +1 -0
- package/dist/chunks/dist-es-DK5fTeKM2.js +1 -0
- package/dist/chunks/dist-es-DN7otr6F.js +1 -0
- package/dist/chunks/dist-es-DPM0mPK5.js +1 -0
- package/dist/chunks/dist-es-DqZAh3nG.js +1 -0
- package/dist/chunks/dist-es-DuAZyxJ02.js +5 -0
- package/dist/chunks/dist-es-HVQrM0oE.js +1 -0
- package/dist/chunks/dist-es-OVleIB54.js +1 -0
- package/dist/chunks/dist-es-UAs0rdXg.js +1 -0
- package/dist/chunks/dist-es-WvMMuHmx2.js +1 -0
- package/dist/chunks/dist-es-fjXft-jH.js +1 -0
- package/dist/chunks/dist-es-hdN_ShpZ.js +3 -0
- package/dist/chunks/dist-es-neiUvMJb.js +1 -0
- package/dist/chunks/dist-es-yMYpDtui2.js +1 -0
- package/dist/chunks/dist-es-zjcbuB72.js +1 -0
- package/dist/chunks/distRoot-CcxmnzqQ.js +1 -0
- package/dist/chunks/doctor-CUWjbh1X.js +1 -0
- package/dist/chunks/earlyInput-JGJo1zcC.js +1 -0
- package/dist/chunks/earlyInput-tRkbxFv2.js +2 -0
- package/dist/chunks/effort-loH1TUvE.js +9 -0
- package/dist/chunks/entry-D58E-E6Y.js +14 -0
- package/dist/chunks/env-chR0gV31.js +1 -0
- package/dist/chunks/envLessBridgeConfig-CT8sdmFu.js +1 -0
- package/dist/chunks/envLessBridgeConfig-SPEr9oqO.js +1 -0
- package/dist/chunks/envUtils-BWeoiL4Y.js +1 -0
- package/dist/chunks/escHotkey-Cyz0yyh1.js +259 -0
- package/dist/chunks/esm--xjzB1hI.js +1 -0
- package/dist/chunks/esm-B2HIF0XY.js +1 -0
- package/dist/chunks/esm-BGQPWnJy.js +1 -0
- package/dist/chunks/esm-C-1qL9Mn.js +1 -0
- package/dist/chunks/esm-C3jcs1DH.js +1 -0
- package/dist/chunks/esm-C97WL9nC.js +1 -0
- package/dist/chunks/esm-CIL-SKM8.js +1 -0
- package/dist/chunks/esm-CJlBxjtx.js +1 -0
- package/dist/chunks/esm-CsGLyWmS.js +56 -0
- package/dist/chunks/esm-DQHmDm-H.js +1 -0
- package/dist/chunks/esm-DcdOXSzi.js +1 -0
- package/dist/chunks/esm-DhNYgGTV.js +1 -0
- package/dist/chunks/esm-DxPW7qPs.js +1 -0
- package/dist/chunks/esm-FBUWr3vI.js +1 -0
- package/dist/chunks/esm-QgL6y---.js +10 -0
- package/dist/chunks/esm-v0kPjgVS.js +1 -0
- package/dist/chunks/esm-vIn-YV_h.js +1 -0
- package/dist/chunks/event-streams-BV7ngMXu.js +1 -0
- package/dist/chunks/eventLoopStallDetector-Dnh1fc31.js +1 -0
- package/dist/chunks/execAsync-BkA6ogic.js +1 -0
- package/dist/chunks/execFileNoThrow-CuQN1sz8.js +1 -0
- package/dist/chunks/execSyncWrapper-C2XQnFVo.js +1 -0
- package/dist/chunks/execa-CGue6Z3n.js +34 -0
- package/dist/chunks/executor-4EeD8GNm.js +1561 -0
- package/dist/chunks/executor-BHEuNh5F.js +1 -0
- package/dist/chunks/exit-D-tuPpbx.js +1 -0
- package/dist/chunks/exit-_obETqBv.js +2 -0
- package/dist/chunks/export-BIZ_SPXJ.js +2 -0
- package/dist/chunks/exportRenderer-CWPSMaqM.js +1 -0
- package/dist/chunks/extra-usage-CCMwIa85.js +1 -0
- package/dist/chunks/extra-usage-core-BNW4VT7o.js +1 -0
- package/dist/chunks/extra-usage-noninteractive-B_WjXO1E.js +1 -0
- package/dist/chunks/extra-usage-rdJ7ecEb.js +1 -0
- package/dist/chunks/extraUsage-CNMMTNJi.js +1 -0
- package/dist/chunks/extractMemories-BrvZVsmM.js +1 -0
- package/dist/chunks/fast-CG1v3fRr.js +1 -0
- package/dist/chunks/fast-CLKKsx2H.js +1 -0
- package/dist/chunks/featureCheck-Cm0YNDXO.js +1 -0
- package/dist/chunks/featureCheck-p7OeCYzj.js +1 -0
- package/dist/chunks/feedback-CG4mS_-B.js +1 -0
- package/dist/chunks/figures-gfT9mM8P.js +1 -0
- package/dist/chunks/fileStateCache-C7-TxF8G.js +1 -0
- package/dist/chunks/files-DYvAZGxp.js +2 -0
- package/dist/chunks/firstPartyEventLogger-Y_jAnHoR.js +1 -0
- package/dist/chunks/flushGate-COPcye5f.js +1 -0
- package/dist/chunks/foundry-sdk-BFN5VDFQ.js +1 -0
- package/dist/chunks/fpsMetrics-DeezdcwV.js +1 -0
- package/dist/chunks/fuse-Ch_OAlm3.js +1 -0
- package/dist/chunks/gates-CSHuXnUx.js +1 -0
- package/dist/chunks/gates-CSKxLmMJ.js +1 -0
- package/dist/chunks/gemini-B3uSLiNp.js +1 -0
- package/dist/chunks/generateRecap-D7rG3jIm.js +1 -0
- package/dist/chunks/generateSessionName-zbqanivg.js +1 -0
- package/dist/chunks/genericProcessUtils-BGvcwuPt.js +23 -0
- package/dist/chunks/getMachineId-bsd-BMtYGBUL.js +1 -0
- package/dist/chunks/getMachineId-darwin-CiLdFH7z.js +2 -0
- package/dist/chunks/getMachineId-linux-Cr27rIeY.js +1 -0
- package/dist/chunks/getMachineId-unsupported-ceiBLwAN.js +1 -0
- package/dist/chunks/getMachineId-win-DFTmsQHq.js +1 -0
- package/dist/chunks/git-CN3qtTb_.js +6 -0
- package/dist/chunks/git-D23Mzu_K.js +1 -0
- package/dist/chunks/githubRepoPathMapping-B04nEUDG.js +1 -0
- package/dist/chunks/graceful-fs-Cgc0rjGF.js +2 -0
- package/dist/chunks/grok-CDOpos8E.js +1 -0
- package/dist/chunks/growthbook-C_EY78Sn.js +1 -0
- package/dist/chunks/hash-BRmOQc3c.js +1 -0
- package/dist/chunks/heapdump-CpmhJ55b.js +5 -0
- package/dist/chunks/help-EHn2neTv.js +1 -0
- package/dist/chunks/hooks-BFdX17Za.js +1 -0
- package/dist/chunks/hooks-BV6HqbU4.js +79 -0
- package/dist/chunks/hostAdapter-_SmFAVNf.js +1 -0
- package/dist/chunks/hostGuard-zim_4F9V.js +1 -0
- package/dist/chunks/httpAuthSchemes-Wq4XWeLL.js +13 -0
- package/dist/chunks/ide-DkN0KdTR.js +2 -0
- package/dist/chunks/inboundAttachments-BVUunfAX.js +1 -0
- package/dist/chunks/inboundAttachments-DnGQw7Pf.js +1 -0
- package/dist/chunks/index.min-BJnb9GQI.js +1 -0
- package/dist/chunks/initReplBridge-tPRGPBq7.js +1 -0
- package/dist/chunks/insights-Bs9kJDG6.js +822 -0
- package/dist/chunks/install-CFX_ph9z.js +1 -0
- package/dist/chunks/install-github-app-CvRjY1Wi.js +147 -0
- package/dist/chunks/install-slack-app-DjhnVSe0.js +1 -0
- package/dist/chunks/instinctParser-DHMa8xa0.js +1 -0
- package/dist/chunks/instrumentation-c5zlOWom.js +12 -0
- package/dist/chunks/intl-Pse97ORk.js +1 -0
- package/dist/chunks/isObject-DaxDnPKm.js +1 -0
- package/dist/chunks/isSymbol-Dp3irZaY.js +1 -0
- package/dist/chunks/job-3QwLq609.js +2 -0
- package/dist/chunks/json-bigint-OxRwRvup.js +8 -0
- package/dist/chunks/jsx-runtime-D-D469L8.js +1 -0
- package/dist/chunks/jws-2vqRyZtR.js +3 -0
- package/dist/chunks/jwtUtils-CpXwh_du.js +1 -0
- package/dist/chunks/keybindings-7mDm3UKD.js +2 -0
- package/dist/chunks/lang-DyyjY20G.js +1 -0
- package/dist/chunks/language-CPRGmY8Q.js +1 -0
- package/dist/chunks/language-Cf6bMI4N.js +1 -0
- package/dist/chunks/launchAgentsPlatform-CpsMsTqQ.js +1 -0
- package/dist/chunks/launchAutofixPr-D9h6YAZY.js +2 -0
- package/dist/chunks/launchCommand-Du91jxMC.js +1 -0
- package/dist/chunks/launchLocalMemory-DlYQcEQJ.js +3 -0
- package/dist/chunks/launchLocalVault-CP0AyPjj.js +3 -0
- package/dist/chunks/launchMemoryStores-BHoDFkJ5.js +1 -0
- package/dist/chunks/launchOnboarding-CFTNXcnc.js +8 -0
- package/dist/chunks/launchSchedule-5KQr6x_A.js +1 -0
- package/dist/chunks/launchSkillStore-D0yGuE68.js +1 -0
- package/dist/chunks/launchTeleport-DRKnXOwY.js +3 -0
- package/dist/chunks/launchVault-XA-zAswX.js +1 -0
- package/dist/chunks/lazySchema-2sOku3cX.js +1 -0
- package/dist/chunks/lib-B4Q0Nrpb.js +14 -0
- package/dist/chunks/lib-Ca3QWJjN.js +2 -0
- package/dist/chunks/lib-inCisXen.js +8 -0
- package/dist/chunks/loadAgentsDir-DCyiY0MN.js +1 -0
- package/dist/chunks/loadAgentsDir-DI1a76pd.js +4601 -0
- package/dist/chunks/loadPluginHooks-C0Ei-0E2.js +1 -0
- package/dist/chunks/loadSso-sDs471GC.js +1 -0
- package/dist/chunks/localSearch-CDOJNc_E.js +1 -0
- package/dist/chunks/localSearch-MBx7KzC2.js +1 -0
- package/dist/chunks/lockfile-DBwdlC3K.js +1 -0
- package/dist/chunks/log-CzsijfHZ.js +1 -0
- package/dist/chunks/login-D8UKKaud.js +1 -0
- package/dist/chunks/login-nwTOoyxv.js +1 -0
- package/dist/chunks/logoV2Utils-DDUoPClc.js +1 -0
- package/dist/chunks/logout-B0BjqlGi.js +1 -0
- package/dist/chunks/magicDocs-CmUlOWjI.js +57 -0
- package/dist/chunks/main-C6be1KFk.js +31 -0
- package/dist/chunks/main-CeG_nUsC.js +1108 -0
- package/dist/chunks/mappers-CJ8IO1o1.js +1 -0
- package/dist/chunks/mcp-CanCqnch.js +2 -0
- package/dist/chunks/mcp-Dq0kxZFx.js +6 -0
- package/dist/chunks/mcp-zbxZM9BP.js +1 -0
- package/dist/chunks/mcpServer-DPHQVYdC.js +1 -0
- package/dist/chunks/mcpServer-lIneUZ5p.js +1 -0
- package/dist/chunks/memoize-DNnuA2aU.js +1 -0
- package/dist/chunks/memoize-DxwLawI2.js +1 -0
- package/dist/chunks/memory-BcWBkKV8.js +1 -0
- package/dist/chunks/mobile-umu5P0cM.js +2 -0
- package/dist/chunks/modalContext-CmSKRyea.js +1 -0
- package/dist/chunks/model-DJLzVvcF.js +1 -0
- package/dist/chunks/model-H3rtl6eR.js +1 -0
- package/dist/chunks/normalization-Cox8C0dP.js +1 -0
- package/dist/chunks/oauth-CdZEzMww.js +1 -0
- package/dist/chunks/oauth-CmensepG.js +1 -0
- package/dist/chunks/observationStore-tvkldXUo.js +4 -0
- package/dist/chunks/onChangeAppState-Dxbl8fvk.js +1 -0
- package/dist/chunks/open-CDditBQ-.js +1 -0
- package/dist/chunks/openai-DkYK4THc.js +10 -0
- package/dist/chunks/openaiShared-D5lOejS1.js +16 -0
- package/dist/chunks/output-style-XDb9-2Kk.js +1 -0
- package/dist/chunks/overageCreditGrant-DLKadMYU.js +1 -0
- package/dist/chunks/p-map-9Ud1LOrJ.js +1 -0
- package/dist/chunks/p-map-D7WEmnBE.js +1 -0
- package/dist/chunks/package-BhL7chzt.js +1 -0
- package/dist/chunks/panel-ByW1omJn.js +1 -0
- package/dist/chunks/panel-Bz_8td5D.js +1 -0
- package/dist/chunks/parseConnectUrl-BS6i9JPo.js +1 -0
- package/dist/chunks/parser-CmngCwjB.js +1 -0
- package/dist/chunks/parser-SWIZo39J.js +1 -0
- package/dist/chunks/passes-BIfuerjL.js +1 -0
- package/dist/chunks/path-C4kbwvSH.js +1 -0
- package/dist/chunks/paths-BBvuDQl9.js +39 -0
- package/dist/chunks/permissions-DXLfdE7b.js +1 -0
- package/dist/chunks/permissions-Ps_D01ZB.js +1 -0
- package/dist/chunks/permissions-S2EvIRKj.js +3 -0
- package/dist/chunks/pipeTransport-DVoIA1uN.js +1 -0
- package/dist/chunks/plan--lnWxB3Q.js +1 -0
- package/dist/chunks/platform-CuyedWpe.js +2 -0
- package/dist/chunks/plist-BO4ZqMZc.js +6 -0
- package/dist/chunks/plugin-DWLyrLw4.js +1 -0
- package/dist/chunks/pluginAutoupdate-CGXIWBrb.js +1 -0
- package/dist/chunks/pluginBlocklist-DJrMdzT0.js +1 -0
- package/dist/chunks/pluginCliCommands-C08q9dHk.js +1 -0
- package/dist/chunks/pluginFlagging-Dggxke70.js +1 -0
- package/dist/chunks/pluginOperations-CNCImIe8.js +2 -0
- package/dist/chunks/pluginStartupCheck-BW2fjg2P.js +1 -0
- package/dist/chunks/pluginStartupCheck-DpxQPXJE.js +1 -0
- package/dist/chunks/plugins-DQ3CRWWO.js +4 -0
- package/dist/chunks/policyLimits-BotYrS-v.js +1 -0
- package/dist/chunks/pollConfig-DAQ-ives.js +1 -0
- package/dist/chunks/poller-Ds0Y6Cir.js +1 -0
- package/dist/chunks/poor-DqfrQT61.js +1 -0
- package/dist/chunks/poorMode-DEAe3hiK.js +1 -0
- package/dist/chunks/poorMode-DzYT47KW.js +1 -0
- package/dist/chunks/postCommitAttribution-Ehmwzzuq.js +1 -0
- package/dist/chunks/print-GGVp62vj.js +39 -0
- package/dist/chunks/privacy-settings-agwqjYJo.js +1 -0
- package/dist/chunks/process-CWupreF6.js +1 -0
- package/dist/chunks/process-DMKLUQIO.js +1 -0
- package/dist/chunks/processBashCommand-DHHN8Ca4.js +1 -0
- package/dist/chunks/processSlashCommand-COtIO6Jy.js +6 -0
- package/dist/chunks/projectContext-0fpRKUeH.js +1 -0
- package/dist/chunks/projectContext-eXMSfgdZ.js +1 -0
- package/dist/chunks/prompt-4tea6NJQ.js +54 -0
- package/dist/chunks/prompt-CO160cIr.js +1 -0
- package/dist/chunks/prompt-CjFAtm3w.js +222 -0
- package/dist/chunks/prompt-GY9hlRvI.js +1 -0
- package/dist/chunks/promptEditor-EgosPsy-.js +4 -0
- package/dist/chunks/protocolHandler-mtPUT9U0.js +13 -0
- package/dist/chunks/protocols-CAyQOlkr.js +7 -0
- package/dist/chunks/proxy-CfZp-wce.js +99 -0
- package/dist/chunks/rate-limit-options-C6SFOHue.js +1 -0
- package/dist/chunks/rcDebugLog-CPKZCtR8.js +11 -0
- package/dist/chunks/referral-DeDr9zAE.js +1 -0
- package/dist/chunks/refresh-D7pdoY_X.js +1 -0
- package/dist/chunks/registerProtocol-BZBH8Zgl.js +36 -0
- package/dist/chunks/registry-Dz6AbiYP.js +1 -0
- package/dist/chunks/release-notes-DiUNOrg9.js +4 -0
- package/dist/chunks/releaseNotes-CnhQit0y.js +2 -0
- package/dist/chunks/reload-plugins-Dx52GcaG.js +1 -0
- package/dist/chunks/remote-env-B67Oo3sI.js +1 -0
- package/dist/chunks/remoteBridgeCore-BzSUgPbt.js +1 -0
- package/dist/chunks/remoteControlServer-L8smP7Zu.js +3 -0
- package/dist/chunks/rename-C4PauyTZ.js +1 -0
- package/dist/chunks/renderOptions-BiyC2rj1.js +1 -0
- package/dist/chunks/resume-CrSn26xq.js +2 -0
- package/dist/chunks/rewind-CXplHgh_.js +1 -0
- package/dist/chunks/rollback-DbSpxmJE.js +11 -0
- package/dist/chunks/runtimeObserver-YNy3mIb7.js +1 -0
- package/dist/chunks/runtimeObserver-nAhH4Wca.js +10 -0
- package/dist/chunks/sandbox-adapter-CzwHes1i.js +1 -0
- package/dist/chunks/sandbox-toggle-BYqbcI5d.js +1 -0
- package/dist/chunks/sanitization-CYp-9DbE.js +1 -0
- package/dist/chunks/satisfies-BaHgd_ie.js +1 -0
- package/dist/chunks/schemas-BGAvj1T4.js +40 -0
- package/dist/chunks/sdk-DEtgRZvI.js +1 -0
- package/dist/chunks/sdkHeapDumpMonitor--fevrC5z.js +1 -0
- package/dist/chunks/searchExtraTools-CcpdCO6l.js +1 -0
- package/dist/chunks/semver-Cq33BYay.js +1 -0
- package/dist/chunks/semver-Tw0AFar5.js +1 -0
- package/dist/chunks/sentry-BNVxoVLS.js +13 -0
- package/dist/chunks/server-C5XZSlto.js +1 -0
- package/dist/chunks/server-DzOdtq8A.js +1 -0
- package/dist/chunks/serverBanner-WlSYP-f8.js +1 -0
- package/dist/chunks/serverLog-DtsUvDiY.js +1 -0
- package/dist/chunks/session-BuEmHrqM.js +2 -0
- package/dist/chunks/sessionDataUploader-Ctjo1bgR.js +1 -0
- package/dist/chunks/sessionDiscovery-Mcsfa0g-.js +1 -0
- package/dist/chunks/sessionFileAccessHooks-qnNiGMnE.js +1 -0
- package/dist/chunks/sessionManager-Dw72ZUTg.js +1 -0
- package/dist/chunks/sessionMemory-CMahwDdW.js +1 -0
- package/dist/chunks/sessionMemory-pFSn4HSN.js +1 -0
- package/dist/chunks/sessionMemoryUtils-Du5jUl7M.js +1 -0
- package/dist/chunks/sessionObserver-DG2zQgfi.js +20 -0
- package/dist/chunks/sessionObserver-Je868MC9.js +1 -0
- package/dist/chunks/sessionStorage-D3FhAADV.js +1 -0
- package/dist/chunks/sessionStoragePortable-BI9q2WcJ.js +3 -0
- package/dist/chunks/sessionTitle-zUVSAHO7.js +14 -0
- package/dist/chunks/sessionTracing-DoRJ4nSa.js +11 -0
- package/dist/chunks/settingsSync-B9bz77E1.js +1 -0
- package/dist/chunks/setup-B1JbPepL.js +9 -0
- package/dist/chunks/setup-CCOLlRtP.js +1 -0
- package/dist/chunks/setup-DWkSjA49.js +2 -0
- package/dist/chunks/shadowedRuleDetection-BBR3uEgx.js +1 -0
- package/dist/chunks/shellQuote-DgjT8KBA.js +1 -0
- package/dist/chunks/sideQuestion-DHW5rgKz.js +20 -0
- package/dist/chunks/signin-QEeYpJZw.js +1 -0
- package/dist/chunks/sink-DxDOsLa2.js +1 -0
- package/dist/chunks/sink-cQOgsnw3.js +1 -0
- package/dist/chunks/sinks-BrrTUxkC.js +2 -0
- package/dist/chunks/sinks-Djiz_5-Z.js +1 -0
- package/dist/chunks/skill-learning-C0nOKZfg.js +5 -0
- package/dist/chunks/skillChangeDetector-D8C-uQSQ.js +1 -0
- package/dist/chunks/skillGapStore-Czi5jKjJ.js +1 -0
- package/dist/chunks/skillGapStore-_YuJP5KI.js +5 -0
- package/dist/chunks/skillGenerator-kbaRbpqJ.js +8 -0
- package/dist/chunks/skillLearning-3KWrBczS.js +1 -0
- package/dist/chunks/skillLearning-DBbdGbk-.js +1 -0
- package/dist/chunks/skillPanel-BxDvlPzd.js +28 -0
- package/dist/chunks/skillSearchPanel-D-MX6Qgt.js +21 -0
- package/dist/chunks/skills-NpEgFkFZ.js +1 -0
- package/dist/chunks/slashCommandParsing-Cari0pNg.js +1 -0
- package/dist/chunks/sleep-8Eb9j_Ly.js +1 -0
- package/dist/chunks/sprites-DD4eIkN7.js +1 -0
- package/dist/chunks/src-BIPP3_mo.js +26 -0
- package/dist/chunks/src-BJz1KAd_.js +6 -0
- package/dist/chunks/src-BRAdBA8A.js +1 -0
- package/dist/chunks/src-BRC_BuUP.js +1 -0
- package/dist/chunks/src-BaB-bpCj.js +5 -0
- package/dist/chunks/src-BlLavFUS.js +7 -0
- package/dist/chunks/src-C5yhFG0C.js +19 -0
- package/dist/chunks/src-CI_jaaBj.js +2 -0
- package/dist/chunks/src-CRsA-Z4y.js +1 -0
- package/dist/chunks/src-CYLfL70h.js +1 -0
- package/dist/chunks/src-DJXCzwyJ.js +1 -0
- package/dist/chunks/src-DJXKJavk.js +1 -0
- package/dist/chunks/src-Di342QoJ.js +53 -0
- package/dist/chunks/src-DsMd9Q9e.js +2 -0
- package/dist/chunks/src-DzH9IdOo.js +1 -0
- package/dist/chunks/src-hdbPEvzO.js +9 -0
- package/dist/chunks/src-poaoYkuc.js +1 -0
- package/dist/chunks/src-x7u_sB6m.js +1 -0
- package/dist/chunks/sso-oidc-BX1MlBX0.js +1 -0
- package/dist/chunks/startupProfiler-DnXZaX4A.js +3 -0
- package/dist/chunks/startupProfiler-SOE--nM9.js +1 -0
- package/dist/chunks/state-B2GIOsTB.js +1 -0
- package/dist/chunks/state-Ce1HlR-H.js +1 -0
- package/dist/chunks/state-sIHsFpDu.js +1 -0
- package/dist/chunks/staticRender-Br64h1E1.js +1 -0
- package/dist/chunks/stats-xL3NHwhp.js +1 -0
- package/dist/chunks/status-B5E70xRv.js +1 -0
- package/dist/chunks/statusNoticeHelpers-DcssRhLw.js +1 -0
- package/dist/chunks/stdio-BEEzuxaZ.js +1 -0
- package/dist/chunks/stdio-D4cT86R0.js +3 -0
- package/dist/chunks/stickers-2K05wjSp.js +1 -0
- package/dist/chunks/store-DhI7Lcan.js +1 -0
- package/dist/chunks/sts-BDFJ-6QE.js +1 -0
- package/dist/chunks/subprocessEnv-CggQWZCx.js +1 -0
- package/dist/chunks/subprocessEnv-DV6q6o6w.js +1 -0
- package/dist/chunks/supports-color-lkzOMQ6u.js +1 -0
- package/dist/chunks/systemPromptSections-BcN_XBTx.js +1 -0
- package/dist/chunks/systemPromptSections-DB93ZNWP.js +1 -0
- package/dist/chunks/systemTheme-dDbitcxB.js +1 -0
- package/dist/chunks/tag-BELr-qIa.js +11 -0
- package/dist/chunks/tasks-CrdWcSt-.js +1 -0
- package/dist/chunks/teamHelpers--3ZyNDlv.js +1 -0
- package/dist/chunks/teamHelpers-CUAiXng3.js +1 -0
- package/dist/chunks/teammate-DMYOtLTK.js +1 -0
- package/dist/chunks/teammateModeSnapshot-C6EWhR0X.js +1 -0
- package/dist/chunks/teammateModeSnapshot-DOQMTKbQ.js +1 -0
- package/dist/chunks/teleport-LXFOan9C.js +1 -0
- package/dist/chunks/templateJobs-8IY2Cgig.js +12 -0
- package/dist/chunks/terminalSetup-C4psrmpb.js +1 -0
- package/dist/chunks/terminalSetup-Lyg4NbGA.js +33 -0
- package/dist/chunks/theme-B8GNnJ_q.js +1 -0
- package/dist/chunks/thinkback-DPXwEK3B.js +1 -0
- package/dist/chunks/thinkback-DZW3Mcx_.js +1 -0
- package/dist/chunks/thinkback-play-BMOE-ceh.js +1 -0
- package/dist/chunks/tmux-CvbhsfwG.js +1 -0
- package/dist/chunks/toolEventObserver-D0TSHm01.js +1 -0
- package/dist/chunks/toolEventObserver-DzLd0MSn.js +1 -0
- package/dist/chunks/toolPool-DVOfpjDz.js +1 -0
- package/dist/chunks/toolPool-Dq-Vtvrj.js +1 -0
- package/dist/chunks/trustedDevice-1iTu4LEm.js +1 -0
- package/dist/chunks/trustedDevice-BvYYXfd8.js +1 -0
- package/dist/chunks/tui-BVc2q4Xv.js +6 -0
- package/dist/chunks/turndown.es-Bv06VjMb.js +69 -0
- package/dist/chunks/types-CQ1wrnQ0.js +1 -0
- package/dist/chunks/types-Csi32ZXh.js +17 -0
- package/dist/chunks/types-RJTEOuIt.js +3 -0
- package/dist/chunks/udsClient-BvG_Jip0.js +1 -0
- package/dist/chunks/ultrareviewCommand-BTXAN2wP.js +3 -0
- package/dist/chunks/undercover-C_44e3oN.js +1 -0
- package/dist/chunks/undercover-DvvnEmsX.js +31 -0
- package/dist/chunks/up-D-U4wUCe.js +12 -0
- package/dist/chunks/updateCCB-C-qfLi0j.js +11 -0
- package/dist/chunks/upgrade-CGXa5Dwy.js +1 -0
- package/dist/chunks/upgrade-DTBZSxwv.js +1 -0
- package/dist/chunks/upload-BF8tf_Eo.js +1 -0
- package/dist/chunks/upstreamproxy-DcLeL2XX.js +11 -0
- package/dist/chunks/usage-BRYRRgNt.js +1 -0
- package/dist/chunks/usage-DvSTXEYY.js +1 -0
- package/dist/chunks/useKeybinding-FsOnjW6T.js +1 -0
- package/dist/chunks/useMainLoopModel-CwvuTRXn.js +1 -0
- package/dist/chunks/useManagePlugins-GmnI9K53.js +1 -0
- package/dist/chunks/useMergedTools-Dah5KDMi.js +1 -0
- package/dist/chunks/useSearchInput-BV_azHiA.js +1 -0
- package/dist/chunks/useSettingsErrors-C-j_Zt7g.js +1 -0
- package/dist/chunks/useVoice-DR69NLxp.js +1 -0
- package/dist/chunks/util-BpyJ4Bom.js +1 -0
- package/dist/chunks/utils-CrZcpypC.js +1 -0
- package/dist/chunks/v4-f1i_CNUT.js +1 -0
- package/dist/chunks/validatePlugin-vptAYuYu.js +1 -0
- package/dist/chunks/vertex-sdk-CSGw3fvU.js +9 -0
- package/dist/chunks/vim-DvOw8dfR.js +1 -0
- package/dist/chunks/voice-B3BZs53f.js +2 -0
- package/dist/chunks/voice-DXiiy8HX.js +8 -0
- package/dist/chunks/voiceModeEnabled-DA76xN1Q.js +1 -0
- package/dist/chunks/voiceModeEnabled-DIveLYGb.js +1 -0
- package/dist/chunks/voiceStreamSTT-_w1VjIOs.js +1 -0
- package/dist/chunks/voiceStreamSTT-hpzWd_zl.js +1 -0
- package/dist/chunks/which-DqSAIvp2.js +1 -0
- package/dist/chunks/windowsPaths-C9CigqoF.js +1 -0
- package/dist/chunks/windowsPaths-swxCp7bX.js +2 -0
- package/dist/chunks/workSecret-mS2OrpxF.js +1 -0
- package/dist/chunks/workerRegistry-2_MZVih1.js +1 -0
- package/dist/chunks/worktree-CCuDwRmS.js +1 -0
- package/dist/chunks/worktreeModeEnabled-Db6b_Iy_.js +1 -0
- package/dist/chunks/worktreeModeEnabled-THQb19xR.js +1 -0
- package/dist/chunks/wrapper-BSK0MCQH.js +1 -0
- package/dist/chunks/wrapper-D5qL1aQL.js +6 -0
- package/dist/chunks/xdg-CBxMmQux.js +1 -0
- package/dist/chunks/xml-Dx--sNE1.js +1 -0
- package/dist/chunks/zod-DT6hytkp.js +1 -0
- package/dist/cli.js +1 -10978
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-80gRi2ZW.js";import{a as r,i,r as a,t as o}from"./dist-es-C41b_0B5.js";import{A as s,C as c,D as l,E as ee,F as te,I as ne,L as re,M as ie,N as ae,O as oe,P as se,R as ce,S as u,_ as le,a as ue,b as de,c as fe,d as pe,f as me,g as he,h as ge,i as _e,j as ve,k as ye,l as be,m as xe,p as Se,r as Ce,s as we,t as Te,u as Ee,v as De,w as d,x as Oe,y as ke,z as Ae}from"./dist-es-Cbf0_D8d.js";import{C as je,S as Me,_ as Ne,b as Pe,c as Fe,d as Ie,f as Le,h as Re,m as ze,n as Be,p as Ve,t as He,v as Ue}from"./httpAuthSchemes-Wq4XWeLL.js";import{n as We,r as Ge,t as Ke}from"./dist-es-Bu_Fshi1.js";import{i as qe,n as Je,t as Ye}from"./dist-es-BVGppqE4.js";import{D as Xe,F as Ze,L as Qe,N as $e,O as et,P as tt,R as nt,k as f,v as rt,x as it,y as at,z as ot}from"./protocols-CAyQOlkr.js";import{n as st,t as ct}from"./dist-es-CSfI8B8l.js";import{a as lt,d as ut,g as dt,h as ft,i as pt,m as mt,n as ht,o as gt,r as _t,t as vt,u as yt}from"./dist-es-OVleIB54.js";import{g as bt,i as xt,p as St,t as Ct}from"./client-CPn1wQyc.js";import{n as p,t as wt}from"./dist-es-zjcbuB72.js";import{a as Tt,c as Et,d as m,f as Dt,i as Ot,n as kt,o as At,s as jt,t as h,u as Mt}from"./dist-es-UAs0rdXg.js";import{i as Nt,t as Pt}from"./dist-es-BoIJpncb.js";import{n as Ft,r as It,t as Lt}from"./dist-es-B8NEy5hc.js";import{Readable as Rt}from"stream";import{Buffer as zt}from"buffer";import{PassThrough as Bt,Readable as Vt,Transform as Ht,pipeline as Ut}from"node:stream";function Wt(e){let t=e.signer,n=e.signer,r=Object.assign(e,{eventSigner:t,messageSigner:n}),i=r.eventStreamPayloadHandlerProvider(r);return Object.assign(r,{eventStreamPayloadHandler:i})}var Gt=e((()=>{})),Kt,qt,Jt=e((()=>{o(),Kt=e=>(t,n)=>async r=>{let{request:i}=r;return a.isInstance(i)?e.eventStreamPayloadHandler.handle(t,r,n):t(r)},qt={tags:[`EVENT_STREAM`,`SIGNATURE`,`HANDLE`],name:`eventStreamHandlingMiddleware`,relation:`after`,toMiddleware:`awsAuthMiddleware`,override:!0}})),Yt,Xt,Zt=e((()=>{o(),Yt=e=>async t=>{let{request:n}=t;return a.isInstance(n)?(n.headers={...n.headers,"content-type":`application/vnd.amazon.eventstream`,"x-amz-content-sha256":`STREAMING-AWS4-HMAC-SHA256-EVENTS`},e({...t,request:n})):e(t)},Xt={step:`build`,tags:[`EVENT_STREAM`,`HEADER`,`CONTENT_TYPE`,`CONTENT_SHA256`],name:`eventStreamHeaderMiddleware`,override:!0}})),Qt,$t=e((()=>{Jt(),Zt(),Qt=e=>({applyToStack:t=>{t.addRelativeTo(Kt(e),qt),t.add(Yt,Xt)}})})),en=e((()=>{Gt(),Jt(),Zt(),$t()}));function tn(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function nn(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function rn(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}var an=e((()=>{})),on,sn=e((()=>{on=e=>typeof ArrayBuffer==`function`&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`})),cn,ln,un=e((()=>{sn(),cn=(e,t=0,n=e.byteLength-t)=>{if(!on(e))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return zt.from(e,t,n)},ln=(e,t)=>{if(typeof e!=`string`)throw TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?zt.from(e,t):zt.from(e)}})),dn,fn=e((()=>{un(),dn=e=>{let t=ln(e,`utf8`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)}})),pn=e((()=>{})),mn,hn=e((()=>{un(),mn=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return cn(e.buffer,e.byteOffset,e.byteLength).toString(`utf8`)}})),gn=e((()=>{fn(),pn(),hn()}));function _n(e){return e instanceof Uint8Array?e:typeof e==`string`?vn(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var vn,yn=e((()=>{gn(),vn=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:dn}));function bn(e){return typeof e==`string`?e.length===0:e.byteLength===0}var xn=e((()=>{}));function Sn(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}var Cn=e((()=>{}));function wn(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n<e.length;)t[n]=e[n],n+=1;return t}return Uint32Array.from(e)}var Tn=e((()=>{})),En=e((()=>{yn(),xn(),Cn(),Tn()})),Dn=e((()=>{an(),En(),An(),function(){function e(){this.crc32=new On}return e.prototype.update=function(e){bn(e)||this.crc32.update(_n(e))},e.prototype.digest=function(){return tn(this,void 0,void 0,function(){return nn(this,function(e){return[2,Sn(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new On},e}()})),On,kn,An=e((()=>{an(),En(),Dn(),On=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var r=rn(e),i=r.next();!i.done;i=r.next()){var a=i.value;this.checksum=this.checksum>>>8^kn[(this.checksum^a)&255]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),kn=wn([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117])}));function jn(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var Mn,Nn=e((()=>{et(),t(),Mn=class e{constructor(e){if(n(this,`bytes`,void 0),this.bytes=e,e.byteLength!==8)throw Error(`Int64 buffers must be exactly 8 bytes`)}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let n=new Uint8Array(8);for(let e=7,r=Math.abs(Math.round(t));e>-1&&r>0;e--,r/=256)n[e]=r;return t<0&&jn(n),new e(n)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;return t&&jn(e),parseInt(f(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}})),Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn=e((()=>{et(),Nn(),t(),Pn=class{constructor(e,t){n(this,`toUtf8`,void 0),n(this,`fromUtf8`,void 0),this.toUtf8=e,this.fromUtf8=t}format(e){let t=[];for(let n of Object.keys(e)){let r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}let n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0)),r=0;for(let e of t)n.set(e,r),r+=e.byteLength;return n}formatHeaderValue(e){switch(e.type){case`boolean`:return Uint8Array.from([+!e.value]);case`byte`:return Uint8Array.from([2,e.value]);case`short`:let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case`integer`:let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case`long`:let r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case`binary`:let i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(i.buffer);return a.set(e.value,3),a;case`string`:let o=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+o.byteLength));s.setUint8(0,7),s.setUint16(1,o.byteLength,!1);let c=new Uint8Array(s.buffer);return c.set(o,3),c;case`timestamp`:let l=new Uint8Array(9);return l[0]=8,l.set(Mn.fromNumber(e.value.valueOf()).bytes,1),l;case`uuid`:if(!Gn.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let ee=new Uint8Array(17);return ee[0]=9,ee.set(Xe(e.value.replace(/\-/g,``)),1),ee}}parse(e){let t={},n=0;for(;n<e.byteLength;){let r=e.getUint8(n++),i=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,r));switch(n+=r,e.getUint8(n++)){case 0:t[i]={type:In,value:!0};break;case 1:t[i]={type:In,value:!1};break;case 2:t[i]={type:Ln,value:e.getInt8(n++)};break;case 3:t[i]={type:Rn,value:e.getInt16(n,!1)},n+=2;break;case 4:t[i]={type:zn,value:e.getInt32(n,!1)},n+=4;break;case 5:t[i]={type:Bn,value:new Mn(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let r=e.getUint16(n,!1);n+=2,t[i]={type:Vn,value:new Uint8Array(e.buffer,e.byteOffset+n,r)},n+=r;break;case 7:let a=e.getUint16(n,!1);n+=2,t[i]={type:Hn,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,a))},n+=a;break;case 8:t[i]={type:Un,value:new Date(new Mn(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let o=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,t[i]={type:Wn,value:`${f(o.subarray(0,4))}-${f(o.subarray(4,6))}-${f(o.subarray(6,8))}-${f(o.subarray(8,10))}-${f(o.subarray(10))}`};break;default:throw Error(`Unrecognized header type tag`)}}return t}},(function(e){e[e.boolTrue=0]=`boolTrue`,e[e.boolFalse=1]=`boolFalse`,e[e.byte=2]=`byte`,e[e.short=3]=`short`,e[e.integer=4]=`integer`,e[e.long=5]=`long`,e[e.byteArray=6]=`byteArray`,e[e.string=7]=`string`,e[e.timestamp=8]=`timestamp`,e[e.uuid=9]=`uuid`})(Fn||(Fn={})),In=`boolean`,Ln=`byte`,Rn=`short`,zn=`integer`,Bn=`long`,Vn=`binary`,Hn=`string`,Un=`timestamp`,Wn=`uuid`,Gn=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/}));function qn({byteLength:e,byteOffset:t,buffer:n}){if(e<Yn)throw Error(`Provided message too short to accommodate event stream message overhead`);let r=new DataView(n,t,e),i=r.getUint32(0,!1);if(e!==i)throw Error(`Reported message length does not match received message length`);let a=r.getUint32(Jn,!1),o=r.getUint32(g,!1),s=r.getUint32(e-_,!1),c=new On().update(new Uint8Array(n,t,g));if(o!==c.digest())throw Error(`The prelude checksum specified in the message (${o}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(n,t+g,e-(g+_))),s!==c.digest())throw Error(`The message checksum (${c.digest()}) did not match the expected value of ${s}`);return{headers:new DataView(n,t+g+_,a),body:new Uint8Array(n,t+g+_+a,i-a-(g+_+_))}}var Jn,g,_,Yn,Xn=e((()=>{An(),Jn=4,g=Jn*2,_=4,Yn=g+_*2})),Zn,Qn=e((()=>{An(),Kn(),Xn(),t(),Zn=class{constructor(e,t){n(this,`headerMarshaller`,void 0),n(this,`messageBuffer`,void 0),n(this,`isEndOfStream`,void 0),this.headerMarshaller=new Pn(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){let n=this.headerMarshaller.format(e),r=n.byteLength+t.byteLength+16,i=new Uint8Array(r),a=new DataView(i.buffer,i.byteOffset,i.byteLength),o=new On;return a.setUint32(0,r,!1),a.setUint32(4,n.byteLength,!1),a.setUint32(8,o.update(i.subarray(0,8)).digest(),!1),i.set(n,12),i.set(t,n.byteLength+12),a.setUint32(r-4,o.update(i.subarray(8,r-4)).digest(),!1),i}decode(e){let{headers:t,body:n}=qn(e);return{headers:this.headerMarshaller.parse(t),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}})),$n=e((()=>{})),er,tr,nr=e((()=>{t(),er=Symbol.asyncIterator,tr=class{constructor(e){n(this,`options`,void 0),this.options=e}[er](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}})),rr,ir,ar=e((()=>{t(),rr=Symbol.asyncIterator,ir=class{constructor(e){n(this,`options`,void 0),this.options=e}[rr](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array)}}})),or,sr,cr=e((()=>{t(),or=Symbol.asyncIterator,sr=class{constructor(e){n(this,`options`,void 0),this.options=e}[or](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let t=await this.options.deserializer(e);t!==void 0&&(yield t)}}}})),lr,ur,dr=e((()=>{t(),lr=Symbol.asyncIterator,ur=class{constructor(e){n(this,`options`,void 0),this.options=e}[lr](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}})),fr=e((()=>{Qn(),Kn(),Nn(),$n(),nr(),ar(),cr(),dr()}));function pr(e){let t=0,n=0,r=null,i=null,a=e=>{if(typeof e!=`number`)throw Error(`Attempted to allocate an event message where size was not a number: `+e);t=e,n=4,r=new Uint8Array(e),new DataView(r.buffer).setUint32(0,e,!1)},o=async function*(){let o=e[Symbol.asyncIterator]();for(;;){let{value:e,done:s}=await o.next();if(s){if(!t)return;if(t===n)yield r;else throw Error(`Truncated event message received.`);return}let c=e.length,l=0;for(;l<c;){if(!r){let t=c-l;i||(i=new Uint8Array(4));let r=Math.min(4-n,t);if(i.set(e.slice(l,l+r),n),n+=r,l+=r,n<4)break;a(new DataView(i.buffer).getUint32(0,!1)),i=null}let o=Math.min(t-n,c-l);r.set(e.slice(l,l+o),n),n+=o,l+=o,t&&t===n&&(yield r,r=null,t=0,n=0)}}};return{[Symbol.asyncIterator]:o}}var mr=e((()=>{}));function hr(e,t){return async function(n){let{value:r}=n.headers[`:message-type`];if(r===`error`){let e=Error(n.headers[`:error-message`].value||`UnknownError`);throw e.name=n.headers[`:error-code`].value,e}else if(r===`exception`){let r=n.headers[`:exception-type`].value,i=await e({[r]:n});if(i.$unknown){let e=Error(t(n.body));throw e.name=r,e}throw i[r]}else if(r===`event`){let t=await e({[n.headers[`:event-type`].value]:n});return t.$unknown?void 0:t}else throw Error(`Unrecognizable event type: ${n.headers[`:event-type`].value}`)}}var gr=e((()=>{})),_r,vr=e((()=>{fr(),mr(),gr(),t(),_r=class{constructor({utf8Encoder:e,utf8Decoder:t}){n(this,`eventStreamCodec`,void 0),n(this,`utfEncoder`,void 0),this.eventStreamCodec=new Zn(e,t),this.utfEncoder=e}deserialize(e,t){return new sr({messageStream:new tr({inputStream:pr(e),decoder:this.eventStreamCodec}),deserializer:hr(t,this.utfEncoder)})}serialize(e,t){return new ir({messageStream:new ur({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}})),yr=e((()=>{})),br=e((()=>{vr(),yr()})),xr,Sr=e((()=>{xr=e=>e.protocol===`ws:`||e.protocol===`wss:`})),Cr=e((()=>{})),wr,Tr,Er=e((()=>{o(),wr=(e,t)=>n=>r=>{let{request:i}=r;if(a.isInstance(i)&&e.requestHandler.metadata?.handlerProtocol?.toLowerCase().includes(`websocket`)){i.protocol=`wss:`,i.method=`GET`,i.path=`${i.path}-websocket`;let{headers:e}=i;delete e[`content-type`],delete e[`x-amz-content-sha256`];for(let n of Object.keys(e))if(n.indexOf(t.headerPrefix)===0){let r=n.replace(t.headerPrefix,``);i.query[r]=e[n]}e[`x-amz-user-agent`]&&(i.query[`user-agent`]=e[`x-amz-user-agent`]),i.headers={host:e.host??i.hostname}}return n(r)},Tr={name:`websocketEndpointMiddleware`,tags:[`WEBSOCKET`,`EVENT_STREAM`],relation:`after`,toMiddleware:`eventStreamHeaderMiddleware`,override:!0}})),Dr,Or,kr=e((()=>{Dr=()=>e=>async t=>{let n={...t.input},r=await e(t),i=r.output;return n.SessionId&&i.SessionId==null&&(i.SessionId=n.SessionId),r},Or={step:`initialize`,name:`injectSessionIdMiddleware`,tags:[`WEBSOCKET`,`EVENT_STREAM`],override:!0}})),Ar,jr=e((()=>{Er(),kr(),Ar=(e,t)=>({applyToStack:n=>{n.addRelativeTo(wr(e,t),Tr),n.add(Dr(),Or)}})})),Mr,Nr=e((()=>{o(),Sr(),t(),Mr=class{constructor(e){n(this,`signer`,void 0),this.signer=e.signer}presign(e,t={}){return this.signer.presign(e,t)}async sign(e,t){return a.isInstance(e)&&xr(e)?{...await this.signer.presign({...e,body:``},{...t,expiresIn:60,unsignableHeaders:new Set(Object.keys(e.headers).filter(e=>e!==`host`))}),body:e.body}:this.signer.sign(e,t)}signMessage(e,t){return this.signer.signMessage(e,t)}}})),Pr,Fr,Ir=e((()=>{Nr(),Pr=e=>{let{signer:t}=e;return Object.assign(e,{signer:async e=>{let n=await t(e);if(Fr(n))return new Mr({signer:n});throw Error(`Expected WebsocketSignatureV4 signer, please check the client constructor.`)}})},Fr=e=>!!e})),Lr=e((()=>{})),Rr=e((()=>{Cr(),jr(),Ir(),Lr()})),zr,Br=e((()=>{zr=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)})})),Vr=e((()=>{Br()}));function Hr(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`bedrock`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Ur(e){return{schemeId:`smithy.api#httpBearerAuth`,propertiesExtractor:({profile:e,filepath:t,configFilepath:n,ignoreCache:r},i)=>({identityProperties:{profile:e,filepath:t,configFilepath:n,ignoreCache:r}})}}var Wr,Gr,Kr,qr=e((()=>{He(),Le(),Ke(),Wr=async(e,t,n)=>({operation:Ge(t).operation,region:await We(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Gr=e=>{let t=[];switch(e.operation){default:t.push(Hr(e)),t.push(Ur(e))}return t},Kr=e=>{let t=Re(e.token,ze,Ve),n=Be(e);return Object.assign(n,{authSchemePreference:We(e.authSchemePreference??[]),token:t})}})),Jr,v,y=e((()=>{Jr=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`bedrock`}),v={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi=e((()=>{Yr=`@aws-sdk/client-bedrock-runtime`,Xr=`AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native`,Zr=`3.1037.0`,Qr={build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-bedrock-runtime`,"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`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo bedrock-runtime`,test:`yarn g:vitest run --passWithNoTests`,"test:browser":`yarn g:vitest run -c vitest.config.browser.e2e.mts`,"test:browser:watch":`yarn g:vitest watch -c vitest.config.browser.e2e.mts`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch --passWithNoTests`},$r=`./dist-cjs/index.js`,ei=`./dist-types/index.d.ts`,ti=`./dist-es/index.js`,ni={"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.5`,"@aws-sdk/credential-provider-node":`^3.972.36`,"@aws-sdk/eventstream-handler-node":`^3.972.14`,"@aws-sdk/middleware-eventstream":`^3.972.10`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-user-agent":`^3.972.35`,"@aws-sdk/middleware-websocket":`^3.972.16`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/token-providers":`3.1037.0`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.21`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/eventstream-serde-browser":`^4.2.14`,"@smithy/eventstream-serde-config-resolver":`^4.3.14`,"@smithy/eventstream-serde-node":`^4.2.14`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.5`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.4`,"@smithy/util-stream":`^4.5.25`,"@smithy/util-utf8":`^4.2.2`,tslib:`^2.6.2`},ri={"@smithy/snapshot-testing":`^2.0.8`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},ii={node:`>=20.0.0`},ai={"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},oi=[`dist-*/**`],si={name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},ci=`Apache-2.0`,li={"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},ui=`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-runtime`,di={type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-bedrock-runtime`},fi={name:Yr,description:Xr,version:Zr,scripts:Qr,main:$r,types:ei,module:ti,sideEffects:!1,dependencies:ni,devDependencies:ri,engines:ii,typesVersions:ai,files:oi,author:si,license:ci,browser:li,"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:ui,repository:di}}));function mi(e){let t=Buffer.from(e,`hex`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)}var hi,gi=e((()=>{t(),hi=class extends Ht{constructor(e){super({autoDestroy:!0,readableObjectMode:!0,writableObjectMode:!0,...e}),n(this,`priorSignature`,void 0),n(this,`messageSigner`,void 0),n(this,`eventStreamCodec`,void 0),n(this,`systemClockOffsetProvider`,void 0),n(this,`staticCredentials`,void 0),this.priorSignature=e.priorSignature,this.eventStreamCodec=e.eventStreamCodec,this.messageSigner=e.messageSigner,this.systemClockOffsetProvider=e.systemClockOffsetProvider,this.staticCredentials=e.credentials?.()}async _transform(e,t,n){try{let t=new Date(Date.now()+await this.systemClockOffsetProvider()),r={":date":{type:`timestamp`,value:t}},i=await this.messageSigner.sign({message:{body:e,headers:r},priorSignature:this.priorSignature},{signingDate:t,eventStreamCredentials:await this.staticCredentials});this.priorSignature=i.signature;let a=this.eventStreamCodec.encode({headers:{...r,":chunk-signature":{type:`binary`,value:mi(i.signature)}},body:e});return this.push(a),n()}catch(e){n(e)}}}})),_i,vi=e((()=>{fr(),gi(),t(),_i=class{constructor(e){n(this,`messageSigner`,void 0),n(this,`eventStreamCodec`,void 0),n(this,`systemClockOffsetProvider`,void 0),n(this,`credentials`,void 0),this.messageSigner=e.messageSigner,this.eventStreamCodec=new Zn(e.utf8Encoder,e.utf8Decoder),this.systemClockOffsetProvider=async()=>e.systemClockOffset??0,this.credentials=e.credentials}async handle(e,t,n={}){let r=t.request,{body:i,query:a}=r;if(!(i instanceof Vt))throw Error(`Eventstream payload must be a Readable stream.`);let o=i;r.body=new Bt({objectMode:!0});let s=r.headers?.authorization?.match(/Signature=([\w]+)$/)?.[1]??a?.[`X-Amz-Signature`]??``;n.__staticSignature&&(s=``);let c=new hi({priorSignature:s,eventStreamCodec:this.eventStreamCodec,messageSigner:await this.messageSigner(),systemClockOffsetProvider:this.systemClockOffsetProvider,credentials:this.credentials}),l,ee=new Promise((e,t)=>{l=()=>e(void 0),Ut(o,c,r.body,e=>{e&&t(Error(`Pipeline error in @aws-sdk/eventstream-handler-node: ${e.message}`,{cause:e}))})}),te;try{te=await Promise.race([e(t),ee])}catch(e){throw r.body.end(),e}finally{l()}return te}}})),yi,bi=e((()=>{vi(),yi=e=>new _i(e)})),xi=e((()=>{bi()}));async function*Si(e){let t=!1,n=!1,r=[];for(e.on(`error`,e=>{if(t||(t=!0),e)throw e}),e.on(`data`,e=>{r.push(e)}),e.on(`end`,()=>{t=!0});!n;){let e=await new Promise(e=>setTimeout(()=>e(r.shift()),0));e&&(yield e),n=t&&r.length===0}}var Ci=e((()=>{})),wi,Ti=e((()=>{br(),Ci(),t(),wi=class{constructor({utf8Encoder:e,utf8Decoder:t}){n(this,`universalMarshaller`,void 0),this.universalMarshaller=new _r({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){let n=typeof e[Symbol.asyncIterator]==`function`?e:Si(e);return this.universalMarshaller.deserialize(n,t)}serialize(e,t){return Rt.from(this.universalMarshaller.serialize(e,t))}}})),Ei,Di=e((()=>{Ti(),Ei=e=>new wi(e)})),Oi=e((()=>{Ti(),Di()})),b,x,ki,Ai,ji,Mi,Ni,Pi,Fi,S,Ii,Li,Ri,C,zi,Bi,Vi=e((()=>{yt(),b=`ref`,x=-1,ki=!0,Ai=`isSet`,ji=`PartitionResult`,Mi=`booleanEquals`,Ni=`getAttr`,Pi={[b]:`Endpoint`},Fi={[b]:ji},S={},Ii=[{[b]:`Region`}],Li={conditions:[[Ai,[Pi]],[Ai,Ii],[`aws.partition`,Ii,ji],[Mi,[{[b]:`UseFIPS`},ki]],[Mi,[{[b]:`UseDualStack`},ki]],[Mi,[{fn:Ni,argv:[Fi,`supportsDualStack`]},ki]],[Mi,[{fn:Ni,argv:[Fi,`supportsFIPS`]},ki]]],results:[[x],[x,`Invalid Configuration: FIPS and custom endpoint are not supported`],[x,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Pi,S],[`https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,S],[x,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}`,S],[x,`FIPS is enabled but this partition does not support FIPS`],[`https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}`,S],[x,`DualStack is enabled but this partition does not support DualStack`],[`https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}`,S],[x,`Invalid Configuration: Missing Region`]]},Ri=2,C=1e8,zi=new Int32Array([-1,1,-1,0,12,3,1,4,C+11,2,5,C+11,3,8,6,4,7,C+10,5,C+8,C+9,4,10,9,6,C+6,C+7,5,11,C+5,6,C+4,C+5,3,C+1,13,4,C+2,C+3]),Bi=dt.from(zi,Ri,Li.conditions,Li.results)})),Hi,Ui,Wi=e((()=>{s(),yt(),Vi(),Hi=new ft({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Ui=(e,t={})=>Hi.get(e,()=>ut(Bi,{endpointParams:e,logger:t.logger})),mt.aws=ve})),w,Gi=e((()=>{h(),w=class e extends Et{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia=e((()=>{Gi(),t(),Ki=class e extends w{constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),n(this,`name`,`AccessDeniedException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},qi=class e extends w{constructor(t){super({name:`InternalServerException`,$fault:`server`,...t}),n(this,`name`,`InternalServerException`),n(this,`$fault`,`server`),Object.setPrototypeOf(this,e.prototype)}},Ji=class e extends w{constructor(t){super({name:`ThrottlingException`,$fault:`client`,...t}),n(this,`name`,`ThrottlingException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Yi=class e extends w{constructor(t){super({name:`ValidationException`,$fault:`client`,...t}),n(this,`name`,`ValidationException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Xi=class e extends w{constructor(t){super({name:`ConflictException`,$fault:`client`,...t}),n(this,`name`,`ConflictException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Zi=class e extends w{constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),n(this,`name`,`ResourceNotFoundException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Qi=class e extends w{constructor(t){super({name:`ServiceQuotaExceededException`,$fault:`client`,...t}),n(this,`name`,`ServiceQuotaExceededException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},$i=class e extends w{constructor(t){super({name:`ServiceUnavailableException`,$fault:`server`,...t}),n(this,`name`,`ServiceUnavailableException`),n(this,`$fault`,`server`),Object.setPrototypeOf(this,e.prototype)}},ea=class e extends w{constructor(t){super({name:`ModelErrorException`,$fault:`client`,...t}),n(this,`name`,`ModelErrorException`),n(this,`$fault`,`client`),n(this,`originalStatusCode`,void 0),n(this,`resourceName`,void 0),Object.setPrototypeOf(this,e.prototype),this.originalStatusCode=t.originalStatusCode,this.resourceName=t.resourceName}},ta=class e extends w{constructor(t){super({name:`ModelNotReadyException`,$fault:`client`,...t}),n(this,`name`,`ModelNotReadyException`),n(this,`$fault`,`client`),n(this,`$retryable`,{}),Object.setPrototypeOf(this,e.prototype)}},na=class e extends w{constructor(t){super({name:`ModelTimeoutException`,$fault:`client`,...t}),n(this,`name`,`ModelTimeoutException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},ra=class e extends w{constructor(t){super({name:`ModelStreamErrorException`,$fault:`client`,...t}),n(this,`name`,`ModelStreamErrorException`),n(this,`$fault`,`client`),n(this,`originalStatusCode`,void 0),n(this,`originalMessage`,void 0),Object.setPrototypeOf(this,e.prototype),this.originalStatusCode=t.originalStatusCode,this.originalMessage=t.originalMessage}}})),aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,T,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,E,Nl,D,O,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,k,iu,au,ou,su,cu,lu,uu,du,fu,A,pu,mu,hu,j,gu,_u,vu,M,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,N,ku,Au,ju,P,Mu,F,I,L,R,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,z,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,B,rd,V,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,H,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf,uf,df,ff,U,pf,mf,hf,gf,_f,vf,yf,bf,W,xf,G,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,K,Gf,Kf,qf,Jf,Yf,Xf,Zf,q,Qf,$f,J,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,Y,fp,pp,X,mp,hp,Z,gp,_p,vp,yp,bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp,Np,Pp,Fp,Ip,Lp,Rp,zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,Q,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh,Gh,Kh,qh,Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg,Jg,Yg,Xg,Zg,Qg,$g,e_,t_,n_,r_,i_,a_,o_,s_,c_,l_,u_,d_,f_,p_,m_,h_,g_,$=e((()=>{rt(),Gi(),ia(),aa=`Accept`,oa=`AudioBlock`,sa=`AccessDeniedException`,ca=`ApplyGuardrail`,la=`AppliedGuardrailDetails`,ua=`ApplyGuardrailRequest`,da=`ApplyGuardrailResponse`,fa=`AsyncInvokeMessage`,pa=`AsyncInvokeOutputDataConfig`,ma=`AsyncInvokeSummary`,ha=`AsyncInvokeS3OutputDataConfig`,ga=`AsyncInvokeSummaries`,_a=`AudioSource`,va=`AnyToolChoice`,ya=`AutoToolChoice`,ba=`Body`,xa=`BidirectionalInputPayloadPart`,Sa=`BidirectionalOutputPayloadPart`,Ca=`Citation`,wa=`ContentBlocks`,Ta=`ContentBlockDelta`,Ea=`ContentBlockDeltaEvent`,Da=`ContentBlockStart`,Oa=`ContentBlockStartEvent`,ka=`ContentBlockStopEvent`,Aa=`ContentBlock`,ja=`CitationsConfig`,Ma=`CitationsContentBlock`,Na=`CacheDetail`,Pa=`CacheDetailsList`,Fa=`CitationsDelta`,Ia=`ConflictException`,La=`CitationGeneratedContent`,Ra=`CitationGeneratedContentList`,za=`CitationLocation`,Ba=`ConverseMetrics`,Va=`ConverseOutput`,Ha=`CachePointBlock`,Ua=`ConverseRequest`,Wa=`ConverseResponse`,Ga=`ConverseStream`,Ka=`CitationSourceContent`,qa=`CitationSourceContentDelta`,Ja=`CitationSourceContentList`,Ya=`CitationSourceContentListDelta`,Xa=`ConverseStreamMetrics`,Za=`ConverseStreamMetadataEvent`,Qa=`ConverseStreamOutput`,$a=`ConverseStreamRequest`,eo=`ConverseStreamResponse`,to=`ConverseStreamTrace`,no=`ConverseTrace`,ro=`CountTokensInput`,io=`ConverseTokensRequest`,ao=`CountTokensRequest`,oo=`CountTokensResponse`,so=`Content-Type`,co=`CountTokens`,lo=`Citations`,uo=`Converse`,fo=`DocumentBlock`,po=`DocumentContentBlocks`,mo=`DocumentContentBlock`,ho=`DocumentCharLocation`,go=`DocumentChunkLocation`,_o=`DocumentPageLocation`,vo=`DocumentSource`,yo=`ErrorBlock`,bo=`GuardrailAssessment`,xo=`GetAsyncInvoke`,So=`GetAsyncInvokeRequest`,Co=`GetAsyncInvokeResponse`,wo=`GuardrailAssessmentList`,To=`GuardrailAssessmentListMap`,Eo=`GuardrailAssessmentMap`,Do=`GuardrailAutomatedReasoningDifferenceScenarioList`,Oo=`GuardrailAutomatedReasoningFinding`,ko=`GuardrailAutomatedReasoningFindingList`,Ao=`GuardrailAutomatedReasoningImpossibleFinding`,jo=`GuardrailAutomatedReasoningInvalidFinding`,Mo=`GuardrailAutomatedReasoningInputTextReference`,No=`GuardrailAutomatedReasoningInputTextReferenceList`,Po=`GuardrailAutomatedReasoningLogicWarning`,Fo=`GuardrailAutomatedReasoningNoTranslationsFinding`,Io=`GuardrailAutomatedReasoningPolicyAssessment`,Lo=`GuardrailAutomatedReasoningRule`,Ro=`GuardrailAutomatedReasoningRuleList`,zo=`GuardrailAutomatedReasoningScenario`,Bo=`GuardrailAutomatedReasoningSatisfiableFinding`,Vo=`GuardrailAutomatedReasoningStatementList`,Ho=`GuardrailAutomatedReasoningStatementLogicContent`,Uo=`GuardrailAutomatedReasoningStatementNaturalLanguageContent`,Wo=`GuardrailAutomatedReasoningStatement`,Go=`GuardrailAutomatedReasoningTranslation`,Ko=`GuardrailAutomatedReasoningTranslationAmbiguousFinding`,qo=`GuardrailAutomatedReasoningTooComplexFinding`,Jo=`GuardrailAutomatedReasoningTranslationList`,Yo=`GuardrailAutomatedReasoningTranslationOption`,Xo=`GuardrailAutomatedReasoningTranslationOptionList`,Zo=`GuardrailAutomatedReasoningValidFinding`,Qo=`GuardrailConfiguration`,$o=`GuardrailContentBlock`,es=`GuardrailContentBlockList`,ts=`GuardrailConverseContentBlock`,ns=`GuardrailContentFilter`,rs=`GuardrailContentFilterList`,is=`GuardrailContextualGroundingFilter`,as=`GuardrailContextualGroundingFilters`,os=`GuardrailContextualGroundingPolicyAssessment`,ss=`GuardrailConverseImageBlock`,cs=`GuardrailConverseImageSource`,ls=`GuardrailContentPolicyAssessment`,us=`GuardrailConverseTextBlock`,ds=`GuardrailCustomWord`,fs=`GuardrailCustomWordList`,ps=`GuardrailCoverage`,ms=`GuardrailImageBlock`,hs=`GuardrailImageCoverage`,gs=`GuardrailInvocationMetrics`,_s=`GuardrailImageSource`,vs=`GuardrailManagedWord`,ys=`GuardrailManagedWordList`,bs=`GuardrailOutputContent`,xs=`GuardrailOutputContentList`,Ss=`GuardrailPiiEntityFilter`,Cs=`GuardrailPiiEntityFilterList`,ws=`GuardrailRegexFilter`,Ts=`GuardrailRegexFilterList`,Es=`GuardrailStreamConfiguration`,Ds=`GuardrailSensitiveInformationPolicyAssessment`,Os=`GuardrailTopic`,ks=`GuardrailTraceAssessment`,As=`GuardrailTextBlock`,js=`GuardrailTextCharactersCoverage`,Ms=`GuardrailTopicList`,Ns=`GuardrailTopicPolicyAssessment`,Ps=`GuardrailUsage`,Fs=`GuardrailWordPolicyAssessment`,Is=`ImageBlock`,Ls=`ImageBlockDelta`,Rs=`ImageBlockStart`,zs=`InferenceConfiguration`,Bs=`InvokeModel`,Vs=`InvokeModelRequest`,Hs=`InvokeModelResponse`,Us=`InvokeModelTokensRequest`,Ws=`InvokeModelWithBidirectionalStream`,Gs=`InvokeModelWithBidirectionalStreamInput`,Ks=`InvokeModelWithBidirectionalStreamOutput`,qs=`InvokeModelWithBidirectionalStreamRequest`,Js=`InvokeModelWithBidirectionalStreamResponse`,Ys=`InvokeModelWithResponseStream`,Xs=`InvokeModelWithResponseStreamRequest`,Zs=`InvokeModelWithResponseStreamResponse`,Qs=`ImageSource`,$s=`InternalServerException`,ec=`JsonSchemaDefinition`,tc=`ListAsyncInvokes`,nc=`ListAsyncInvokesRequest`,rc=`ListAsyncInvokesResponse`,ic=`Message`,ac=`ModelErrorException`,oc=`ModelInputPayload`,sc=`ModelNotReadyException`,cc=`MessageStartEvent`,lc=`ModelStreamErrorException`,uc=`MessageStopEvent`,dc=`ModelTimeoutException`,fc=`Messages`,pc=`OutputConfig`,mc=`OutputFormat`,hc=`OutputFormatStructure`,gc=`PartBody`,_c=`PerformanceConfiguration`,vc=`PayloadPart`,yc=`PromptRouterTrace`,bc=`PromptVariableMap`,xc=`PromptVariableValues`,Sc=`ReasoningContentBlock`,Cc=`ReasoningContentBlockDelta`,wc=`RequestMetadata`,Tc=`ResourceNotFoundException`,Ec=`ResponseStream`,Dc=`ReasoningTextBlock`,Oc=`StartAsyncInvoke`,kc=`StartAsyncInvokeRequest`,Ac=`StartAsyncInvokeResponse`,jc=`SystemContentBlocks`,Mc=`SystemContentBlock`,Nc=`S3Location`,Pc=`ServiceQuotaExceededException`,Fc=`SearchResultBlock`,Ic=`SearchResultContentBlock`,Lc=`SearchResultContentBlocks`,Rc=`SearchResultLocation`,zc=`ServiceTier`,Bc=`SpecificToolChoice`,Vc=`SystemTool`,Hc=`ServiceUnavailableException`,Uc=`Tag`,Wc=`ToolConfiguration`,Gc=`ToolChoice`,Kc=`ThrottlingException`,qc=`ToolInputSchema`,Jc=`TagList`,Yc=`ToolResultBlock`,Xc=`ToolResultBlocksDelta`,Zc=`ToolResultBlockDelta`,Qc=`ToolResultBlockStart`,$c=`ToolResultContentBlocks`,el=`ToolResultContentBlock`,tl=`ToolSpecification`,nl=`TokenUsage`,rl=`ToolUseBlock`,il=`ToolUseBlockDelta`,al=`ToolUseBlockStart`,ol=`Tools`,sl=`Tool`,cl=`VideoBlock`,ll=`ValidationException`,ul=`VideoSource`,dl=`WebLocation`,fl=`X-Amzn-Bedrock-Accept`,pl=`X-Amzn-Bedrock-Content-Type`,ml=`X-Amzn-Bedrock-GuardrailIdentifier`,hl=`X-Amzn-Bedrock-GuardrailVersion`,gl=`X-Amzn-Bedrock-PerformanceConfig-Latency`,_l=`X-Amzn-Bedrock-Service-Tier`,vl=`X-Amzn-Bedrock-Trace`,T=`action`,yl=`appliedGuardrailDetails`,bl=`asyncInvokeSummaries`,xl=`additionalModelRequestFields`,Sl=`additionalModelResponseFieldPaths`,Cl=`additionalModelResponseFields`,wl=`actionReason`,Tl=`automatedReasoningPolicy`,El=`automatedReasoningPolicyUnits`,Dl=`automatedReasoningPolicies`,Ol=`accept`,kl=`any`,Al=`assessments`,jl=`audio`,Ml=`auto`,E=`bytes`,Nl=`bucketOwner`,D=`body`,O=`client`,Pl=`contentBlockDelta`,Fl=`contentBlockIndex`,Il=`contentBlockStart`,Ll=`contentBlockStop`,Rl=`citationsContent`,zl=`cacheDetails`,Bl=`claimsFalseScenario`,Vl=`contextualGroundingPolicy`,Hl=`contextualGroundingPolicyUnits`,Ul=`contentPolicy`,Wl=`contentPolicyImageUnits`,Gl=`contentPolicyUnits`,Kl=`cachePoint`,ql=`contradictingRules`,Jl=`cacheReadInputTokens`,Yl=`clientRequestToken`,Xl=`contentType`,Zl=`claimsTrueScenario`,Ql=`customWords`,$l=`cacheWriteInputTokens`,eu=`chunk`,tu=`citations`,nu=`citation`,ru=`claims`,k=`content`,iu=`context`,au=`confidence`,ou=`converse`,su=`delta`,cu=`documentChar`,lu=`documentChunk`,uu=`documentIndex`,du=`documentPage`,fu=`differenceScenarios`,A=`detected`,pu=`description`,mu=`domain`,hu=`document`,j=`error`,gu=`endTime`,_u=`enabled`,vu=`end`,M=`format`,yu=`failureMessage`,bu=`filterStrength`,xu=`findings`,Su=`filters`,Cu=`guardrail`,wu=`guardrailArn`,Tu=`guardrailCoverage`,Eu=`guardrailConfig`,Du=`guardContent`,Ou=`guardrailId`,N=`guardrailIdentifier`,ku=`guardrailOrigin`,Au=`guardrailOwnership`,ju=`guardrailProcessingLatency`,P=`guardrailVersion`,Mu=`guarded`,F=`http`,I=`httpError`,L=`httpHeader`,R=`httpQuery`,Nu=`input`,Pu=`invocationArn`,Fu=`inputAssessment`,Iu=`inferenceConfig`,Lu=`invocationMetrics`,Ru=`invokedModelId`,zu=`invokeModel`,Bu=`inputSchema`,Vu=`internalServerException`,Hu=`inputTokens`,Uu=`identifier`,Wu=`images`,z=`image`,Gu=`impossible`,Ku=`invalid`,qu=`json`,Ju=`jsonSchema`,Yu=`key`,Xu=`kmsKeyId`,Zu=`location`,Qu=`latencyMs`,$u=`lastModifiedTime`,ed=`logicWarning`,td=`latency`,nd=`logic`,B=`message`,rd=`modelArn`,V=`modelId`,id=`modelInput`,ad=`modelOutput`,od=`maxResults`,sd=`messageStart`,cd=`modelStreamErrorException`,ld=`messageStop`,ud=`maxTokens`,dd=`modelTimeoutException`,fd=`managedWordLists`,pd=`match`,md=`messages`,hd=`metrics`,gd=`metadata`,H=`name`,_d=`naturalLanguage`,vd=`nextToken`,yd=`noTranslations`,bd=`outputs`,xd=`outputAssessments`,Sd=`outputConfig`,Cd=`outputDataConfig`,wd=`originalMessage`,Td=`outputScope`,Ed=`originalStatusCode`,Dd=`outputTokens`,Od=`options`,kd=`output`,Ad=`premises`,jd=`performanceConfig`,Md=`performanceConfigLatency`,Nd=`piiEntities`,Pd=`promptRouter`,Fd=`promptVariables`,Id=`policyVersionArn`,Ld=`qualifiers`,Rd=`regex`,zd=`reasoningContent`,Bd=`redactedContent`,Vd=`requestMetadata`,Hd=`resourceName`,Ud=`reasoningText`,Wd=`regexes`,Gd=`role`,Kd=`smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime`,qd=`sortBy`,Jd=`sourceContent`,Yd=`statusEquals`,Xd=`sensitiveInformationPolicy`,Zd=`sensitiveInformationPolicyFreeUnits`,Qd=`sensitiveInformationPolicyUnits`,$d=`s3Location`,ef=`sortOrder`,tf=`s3OutputDataConfig`,nf=`streamProcessingMode`,rf=`stopReason`,af=`searchResultIndex`,of=`searchResultLocation`,sf=`searchResult`,cf=`supportingRules`,lf=`stopSequences`,uf=`submitTime`,df=`submitTimeAfter`,ff=`submitTimeBefore`,U=`serviceTier`,pf=`systemTool`,mf=`s3Uri`,hf=`serviceUnavailableException`,gf=`satisfiable`,_f=`score`,vf=`schema`,yf=`server`,bf=`signature`,W=`source`,xf=`status`,G=`start`,Sf=`statements`,Cf=`stream`,wf=`streaming`,Tf=`strict`,Ef=`structure`,Df=`system`,Of=`ttl`,kf=`translationAmbiguous`,Af=`toolConfig`,jf=`textCharacters`,Mf=`toolChoice`,Nf=`tooComplex`,Pf=`throttlingException`,Ff=`textFormat`,If=`topicPolicy`,Lf=`topicPolicyUnits`,Rf=`topP`,zf=`toolResult`,Bf=`toolSpec`,Vf=`totalTokens`,Hf=`toolUse`,Uf=`toolUseId`,Wf=`tags`,K=`text`,Gf=`temperature`,Kf=`threshold`,qf=`title`,Jf=`total`,Yf=`tools`,Xf=`tool`,Zf=`topics`,q=`trace`,Qf=`translation`,$f=`translations`,J=`type`,ep=`usage`,tp=`untranslatedClaims`,np=`untranslatedPremises`,rp=`uri`,ip=`url`,ap=`value`,op=`validationException`,sp=`valid`,cp=`video`,lp=`web`,up=`wordPolicy`,dp=`wordPolicyUnits`,Y=`com.amazonaws.bedrockruntime`,fp=at.for(Kd),pp=[-3,Kd,`BedrockRuntimeServiceException`,0,[],[]],fp.registerError(pp,w),X=at.for(Y),mp=[-3,Y,sa,{[j]:O,[I]:403},[B],[0]],X.registerError(mp,Ki),hp=[-3,Y,Ia,{[j]:O,[I]:400},[B],[0]],X.registerError(hp,Xi),Z=[-3,Y,$s,{[j]:yf,[I]:500},[B],[0]],X.registerError(Z,qi),gp=[-3,Y,ac,{[j]:O,[I]:424},[B,Ed,Hd],[0,1,0]],X.registerError(gp,ea),_p=[-3,Y,sc,{[j]:O,[I]:429},[B],[0]],X.registerError(_p,ta),vp=[-3,Y,lc,{[j]:O,[I]:424},[B,Ed,wd],[0,1,0]],X.registerError(vp,ra),yp=[-3,Y,dc,{[j]:O,[I]:408},[B],[0]],X.registerError(yp,na),bp=[-3,Y,Tc,{[j]:O,[I]:404},[B],[0]],X.registerError(bp,Zi),xp=[-3,Y,Pc,{[j]:O,[I]:400},[B],[0]],X.registerError(xp,Qi),Sp=[-3,Y,Hc,{[j]:yf,[I]:503},[B],[0]],X.registerError(Sp,$i),Cp=[-3,Y,Kc,{[j]:O,[I]:429},[B],[0]],X.registerError(Cp,Ji),wp=[-3,Y,ll,{[j]:O,[I]:400},[B],[0]],X.registerError(wp,Yi),Tp=[fp,X],Ep=[0,Y,fa,8,0],Dp=[0,Y,ba,8,21],Op=[0,Y,Ho,8,0],kp=[0,Y,Uo,8,0],Ap=[0,Y,oc,8,15],jp=[0,Y,gc,8,21],Mp=[3,Y,va,0,[],[]],Np=[3,Y,la,0,[Ou,P,wu,ku,Au],[0,0,0,64,0]],Pp=[3,Y,ua,0,[N,P,W,k,Td],[[0,1],[0,1],0,[()=>cg,0],0],4],Fp=[3,Y,da,0,[ep,T,bd,Al,wl,Tu],[()=>th,0,()=>pg,[()=>eg,0],0,()=>zm],4],Ip=[3,Y,ha,0,[mf,Xu,Nl],[0,0,0],1],Lp=[3,Y,ma,0,[Pu,rd,uf,Cd,Yl,xf,yu,$u,gu],[0,0,5,()=>Og,0,0,[()=>Ep,0],5,5],4],Rp=[3,Y,oa,0,[M,W,j],[0,[()=>kg,0],[()=>mm,0]],2],zp=[3,Y,ya,0,[],[]],Bp=[3,Y,xa,8,[E],[[()=>jp,0]]],Vp=[3,Y,Sa,8,[E],[[()=>jp,0]]],Hp=[3,Y,Na,0,[Of,Hu],[0,1],2],Up=[3,Y,Ha,0,[J,Of],[0,0],1],Wp=[3,Y,Ca,0,[qf,W,Jd,Zu],[0,0,()=>Xh,()=>jg]],Gp=[3,Y,ja,0,[_u],[2],1],Kp=[3,Y,Ma,0,[k,tu],[()=>Jh,()=>Yh]],qp=[3,Y,Fa,0,[qf,W,Jd,Zu],[0,0,()=>Zh,()=>jg]],Jp=[3,Y,qa,0,[K],[0]],Yp=[3,Y,Ea,0,[su,Fl],[[()=>Pg,0],1],2],Xp=[3,Y,Oa,0,[G,Fl],[()=>Fg,1],2],Zp=[3,Y,ka,0,[Fl],[1],1],Qp=[3,Y,Ba,0,[Qu],[1],1],$p=[3,Y,Ua,0,[V,md,Df,Iu,Af,Eu,xl,Fd,Sl,Vd,jd,U,Sd],[[0,1],[()=>_g,0],[()=>yg,0],()=>oh,()=>Lh,()=>Mm,15,[()=>Eg,0],64,[()=>Dg,0],()=>Ch,()=>Ah,[()=>bh,0]],1],em=[3,Y,Wa,0,[kd,rf,ep,hd,Cl,q,jd,U],[[()=>Ig,0],0,()=>Ih,()=>Qp,15,[()=>sm,0],()=>Ch,()=>Ah],4],tm=[3,Y,Za,0,[ep,hd,q,jd,U],[()=>Ih,()=>nm,[()=>am,0],()=>Ch,()=>Ah],2],nm=[3,Y,Xa,0,[Qu],[1],1],rm=[3,Y,$a,0,[V,md,Df,Iu,Af,Eu,xl,Fd,Sl,Vd,jd,U,Sd],[[0,1],[()=>_g,0],[()=>yg,0],()=>oh,()=>Lh,()=>Ym,15,[()=>Eg,0],64,[()=>Dg,0],()=>Ch,()=>Ah,[()=>bh,0]],1],im=[3,Y,eo,0,[Cf],[[()=>Lg,16]]],am=[3,Y,to,0,[Cu,Pd],[[()=>eh,0],()=>wh]],om=[3,Y,io,0,[md,Df,Af,xl],[[()=>_g,0],[()=>yg,0],()=>Lh,15]],sm=[3,Y,no,0,[Cu,Pd],[[()=>eh,0],()=>wh]],cm=[3,Y,ao,0,[V,Nu],[[0,1],[()=>Rg,0]],2],lm=[3,Y,oo,0,[Hu],[1],1],um=[3,Y,fo,0,[H,W,M,iu,tu],[0,()=>Bg,0,0,()=>Gp],2],dm=[3,Y,ho,0,[uu,G,vu],[1,1,1]],fm=[3,Y,go,0,[uu,G,vu],[1,1,1]],pm=[3,Y,_o,0,[uu,G,vu],[1,1,1]],mm=[3,Y,yo,8,[B],[0]],hm=[3,Y,So,0,[Pu],[[0,1]],1],gm=[3,Y,Co,0,[Pu,rd,xf,uf,Cd,Yl,yu,$u,gu],[0,0,0,5,()=>Og,0,[()=>Ep,0],5,5],5],_m=[3,Y,bo,0,[If,Ul,up,Xd,Vl,Tl,Lu,yl],[()=>$m,()=>Pm,()=>nh,()=>Jm,()=>Im,[()=>Cm,0],()=>Um,()=>Np]],vm=[3,Y,Ao,0,[Qf,ql,ed],[[()=>Q,0],()=>ig,[()=>xm,0]]],ym=[3,Y,Mo,0,[K],[[()=>kp,0]]],bm=[3,Y,jo,0,[Qf,ql,ed],[[()=>Q,0],()=>ig,[()=>xm,0]]],xm=[3,Y,Po,0,[J,Ad,ru],[0,[()=>ag,0],[()=>ag,0]]],Sm=[3,Y,Fo,0,[],[]],Cm=[3,Y,Io,0,[xu],[[()=>ng,0]]],wm=[3,Y,Lo,0,[Uu,Id],[0,0]],Tm=[3,Y,Bo,0,[Qf,Zl,Bl,ed],[[()=>Q,0],[()=>Em,0],[()=>Em,0],[()=>xm,0]]],Em=[3,Y,zo,0,[Sf],[[()=>ag,0]]],Dm=[3,Y,Wo,0,[nd,_d],[[()=>Op,0],[()=>kp,0]]],Om=[3,Y,qo,0,[],[]],Q=[3,Y,Go,0,[Ad,ru,np,tp,au],[[()=>ag,0],[()=>ag,0],[()=>rg,0],[()=>rg,0],1]],km=[3,Y,Ko,0,[Od,fu],[[()=>sg,0],[()=>tg,0]]],Am=[3,Y,Yo,0,[$f],[[()=>og,0]]],jm=[3,Y,Zo,0,[Qf,Zl,cf,ed],[[()=>Q,0],[()=>Em,0],()=>ig,[()=>xm,0]]],Mm=[3,Y,Qo,0,[N,P,q],[0,0,0]],Nm=[3,Y,ns,0,[J,au,T,bu,A],[0,0,0,0,2],3],Pm=[3,Y,ls,0,[Su],[()=>lg],1],Fm=[3,Y,is,0,[J,Kf,_f,T,A],[0,1,1,0,2],4],Im=[3,Y,os,0,[Su],[()=>ug]],Lm=[3,Y,ss,8,[M,W],[0,[()=>Wg,0]],2],Rm=[3,Y,us,0,[K,Ld],[0,64],1],zm=[3,Y,ps,0,[jf,Wu],[()=>Zm,()=>Hm]],Bm=[3,Y,ds,0,[pd,T,A],[0,0,2],2],Vm=[3,Y,ms,8,[M,W],[0,[()=>Gg,0]],2],Hm=[3,Y,hs,0,[Mu,Jf],[1,1]],Um=[3,Y,gs,0,[ju,ep,Tu],[1,()=>th,()=>zm]],Wm=[3,Y,vs,0,[pd,J,T,A],[0,0,0,2],3],Gm=[3,Y,bs,0,[K],[0]],Km=[3,Y,Ss,0,[pd,J,T,A],[0,0,0,2],3],qm=[3,Y,ws,0,[T,H,pd,Rd,A],[0,0,0,0,2],1],Jm=[3,Y,Ds,0,[Nd,Wd],[()=>mg,()=>hg],2],Ym=[3,Y,Es,0,[N,P,q,nf],[0,0,0,0]],Xm=[3,Y,As,0,[K,Ld],[0,64],1],Zm=[3,Y,js,0,[Mu,Jf],[1,1]],Qm=[3,Y,Os,0,[H,J,T,A],[0,0,0,2],3],$m=[3,Y,Ns,0,[Zf],[()=>gg],1],eh=[3,Y,ks,0,[ad,Fu,xd,wl],[64,[()=>Tg,0],[()=>wg,0],0]],th=[3,Y,Ps,0,[Lf,Gl,dp,Qd,Zd,Hl,Wl,El,Dl],[1,1,1,1,1,1,1,1,1],6],nh=[3,Y,Fs,0,[Ql,fd],[()=>dg,()=>fg],2],rh=[3,Y,Is,0,[M,W,j],[0,[()=>Kg,0],[()=>mm,0]],2],ih=[3,Y,Ls,0,[W,j],[[()=>Kg,0],[()=>mm,0]]],ah=[3,Y,Rs,0,[M],[0],1],oh=[3,Y,zs,0,[ud,Gf,Rf,lf],[1,1,1,64]],sh=[3,Y,Vs,0,[V,D,Xl,Ol,q,N,P,Md,U],[[0,1],[()=>Dp,16],[0,{[L]:so}],[0,{[L]:aa}],[0,{[L]:vl}],[0,{[L]:ml}],[0,{[L]:hl}],[0,{[L]:gl}],[0,{[L]:_l}]],1],ch=[3,Y,Hs,0,[D,Xl,Md,U],[[()=>Dp,16],[0,{[L]:so}],[0,{[L]:gl}],[0,{[L]:_l}]],2],lh=[3,Y,Us,0,[D],[[()=>Dp,0]],1],uh=[3,Y,qs,0,[V,D],[[0,1],[()=>qg,16]],2],dh=[3,Y,Js,0,[D],[[()=>Jg,16]],1],fh=[3,Y,Xs,0,[V,D,Xl,Ol,q,N,P,Md,U],[[0,1],[()=>Dp,16],[0,{[L]:so}],[0,{[L]:fl}],[0,{[L]:vl}],[0,{[L]:ml}],[0,{[L]:hl}],[0,{[L]:gl}],[0,{[L]:_l}]],1],ph=[3,Y,Zs,0,[D,Xl,Md,U],[[()=>$g,16],[0,{[L]:pl}],[0,{[L]:gl}],[0,{[L]:_l}]],2],mh=[3,Y,ec,0,[vf,H,pu],[0,0,0],1],hh=[3,Y,nc,0,[df,ff,Yd,od,vd,qd,ef],[[5,{[R]:df}],[5,{[R]:ff}],[0,{[R]:Yd}],[1,{[R]:od}],[0,{[R]:vd}],[0,{[R]:qd}],[0,{[R]:ef}]]],gh=[3,Y,rc,0,[vd,bl],[0,[()=>Kh,0]]],_h=[3,Y,ic,0,[Gd,k],[0,[()=>Qh,0]],2],vh=[3,Y,cc,0,[Gd],[0],1],yh=[3,Y,uc,0,[rf,Cl],[0,15],1],bh=[3,Y,pc,0,[Ff],[[()=>xh,0]]],xh=[3,Y,mc,0,[J,Ef],[0,[()=>Yg,0]],2],Sh=[3,Y,vc,8,[E],[[()=>jp,0]]],Ch=[3,Y,_c,0,[td],[0]],wh=[3,Y,yc,0,[Ru],[0]],Th=[3,Y,Dc,8,[K,bf],[0,0],1],Eh=[3,Y,Nc,0,[rp,Nl],[0,0],1],Dh=[3,Y,Fc,0,[W,qf,k,tu],[0,0,()=>vg,()=>Gp],3],Oh=[3,Y,Ic,0,[K],[0],1],kh=[3,Y,Rc,0,[af,G,vu],[1,1,1]],Ah=[3,Y,zc,0,[J],[0],1],jh=[3,Y,Bc,0,[H],[0],1],Mh=[3,Y,kc,0,[V,id,Cd,Yl,Wf],[0,[()=>Ap,0],()=>Og,[0,4],()=>bg],3],Nh=[3,Y,Ac,0,[Pu],[0],1],Ph=[3,Y,Vc,0,[H],[0],1],Fh=[3,Y,Uc,0,[Yu,ap],[0,0],2],Ih=[3,Y,nl,0,[Hu,Dd,Vf,Jl,$l,zl],[1,1,1,1,1,()=>qh],3],Lh=[3,Y,Wc,0,[Yf,Mf],[()=>Cg,()=>n_],1],Rh=[3,Y,Yc,0,[Uf,k,xf,J],[0,[()=>Sg,0],0,0],2],zh=[3,Y,Qc,0,[Uf,J,xf],[0,0,0],1],Bh=[3,Y,tl,0,[H,Bu,pu,Tf],[0,()=>r_,0,2],2],Vh=[3,Y,rl,0,[Uf,H,Nu,J],[0,0,15,0],3],Hh=[3,Y,il,0,[Nu],[0],1],Uh=[3,Y,al,0,[Uf,H,J],[0,0,0],2],Wh=[3,Y,cl,0,[M,W],[0,()=>o_],2],Gh=[3,Y,dl,0,[ip,mu],[0,0]],Kh=[1,Y,ga,0,[()=>Lp,0]],qh=[1,Y,Pa,0,()=>Hp],Jh=[1,Y,Ra,0,()=>Ag],Yh=[1,Y,lo,0,()=>Wp],Xh=[1,Y,Ja,0,()=>Mg],Zh=[1,Y,Ya,0,()=>Jp],Qh=[1,Y,wa,0,[()=>Ng,0]],$h=[1,Y,po,0,()=>zg],eg=[1,Y,wo,0,[()=>_m,0]],tg=[1,Y,Do,0,[()=>Em,0]],ng=[1,Y,ko,0,[()=>Vg,0]],rg=[1,Y,No,0,[()=>ym,0]],ig=[1,Y,Ro,0,()=>wm],ag=[1,Y,Vo,0,[()=>Dm,0]],og=[1,Y,Jo,0,[()=>Q,0]],sg=[1,Y,Xo,0,[()=>Am,0]],cg=[1,Y,es,0,[()=>Hg,0]],lg=[1,Y,rs,0,()=>Nm],ug=[1,Y,as,0,()=>Fm],dg=[1,Y,fs,0,()=>Bm],fg=[1,Y,ys,0,()=>Wm],pg=[1,Y,xs,0,()=>Gm],mg=[1,Y,Cs,0,()=>Km],hg=[1,Y,Ts,0,()=>qm],gg=[1,Y,Ms,0,()=>Qm],_g=[1,Y,fc,0,[()=>_h,0]],vg=[1,Y,Lc,0,()=>Oh],yg=[1,Y,jc,0,[()=>e_,0]],bg=[1,Y,Jc,0,()=>Fh],xg=[1,Y,Xc,0,()=>i_],Sg=[1,Y,$c,0,[()=>a_,0]],Cg=[1,Y,ol,0,()=>t_],wg=[2,Y,To,0,[0,0],[()=>eg,0]],Tg=[2,Y,Eo,0,[0,0],[()=>_m,0]],Eg=[2,Y,bc,8,0,()=>Xg],Dg=[2,Y,wc,8,0,0],Og=[4,Y,pa,0,[tf],[()=>Ip]],kg=[4,Y,_a,8,[E,$d],[21,()=>Eh]],Ag=[4,Y,La,0,[K],[0]],jg=[4,Y,za,0,[lp,cu,du,lu,of],[()=>Gh,()=>dm,()=>pm,()=>fm,()=>kh]],Mg=[4,Y,Ka,0,[K],[0]],Ng=[4,Y,Aa,0,[K,z,hu,cp,jl,Hf,zf,Du,Kl,zd,Rl,sf],[0,[()=>rh,0],()=>um,()=>Wh,[()=>Rp,0],()=>Vh,[()=>Rh,0],[()=>Ug,0],()=>Up,[()=>Zg,0],()=>Kp,()=>Dh]],Pg=[4,Y,Ta,0,[K,Hf,zf,zd,nu,z],[0,()=>Hh,()=>xg,[()=>Qg,0],()=>qp,[()=>ih,0]]],Fg=[4,Y,Da,0,[Hf,zf,z],[()=>Uh,()=>zh,()=>ah]],Ig=[4,Y,Va,0,[B],[[()=>_h,0]]],Lg=[4,Y,Qa,{[wf]:1},[sd,Il,Pl,Ll,ld,gd,Vu,cd,op,Pf,hf],[()=>vh,()=>Xp,[()=>Yp,0],()=>Zp,()=>yh,[()=>tm,0],[()=>Z,0],[()=>vp,0],[()=>wp,0],[()=>Cp,0],[()=>Sp,0]]],Rg=[4,Y,ro,0,[zu,ou],[[()=>lh,0],[()=>om,0]]],zg=[4,Y,mo,0,[K],[0]],Bg=[4,Y,vo,0,[E,$d,K,k],[21,()=>Eh,0,()=>$h]],Vg=[4,Y,Oo,0,[sp,Ku,gf,Gu,kf,Nf,yd],[[()=>jm,0],[()=>bm,0],[()=>Tm,0],[()=>vm,0],[()=>km,0],()=>Om,()=>Sm]],Hg=[4,Y,$o,0,[K,z],[()=>Xm,[()=>Vm,0]]],Ug=[4,Y,ts,0,[K,z],[()=>Rm,[()=>Lm,0]]],Wg=[4,Y,cs,8,[E],[21]],Gg=[4,Y,_s,8,[E],[21]],Kg=[4,Y,Qs,8,[E,$d],[21,()=>Eh]],qg=[4,Y,Gs,{[wf]:1},[eu],[[()=>Bp,0]]],Jg=[4,Y,Ks,{[wf]:1},[eu,Vu,cd,op,Pf,dd,hf],[[()=>Vp,0],[()=>Z,0],[()=>vp,0],[()=>wp,0],[()=>Cp,0],[()=>yp,0],[()=>Sp,0]]],Yg=[4,Y,hc,8,[Ju],[()=>mh]],Xg=[4,Y,xc,0,[K],[0]],Zg=[4,Y,Sc,8,[Ud,Bd],[[()=>Th,0],21]],Qg=[4,Y,Cc,8,[K,Bd,bf],[0,21,0]],$g=[4,Y,Ec,{[wf]:1},[eu,Vu,cd,op,Pf,dd,hf],[[()=>Sh,0],[()=>Z,0],[()=>vp,0],[()=>wp,0],[()=>Cp,0],[()=>yp,0],[()=>Sp,0]]],e_=[4,Y,Mc,0,[K,Du,Kl],[0,[()=>Ug,0],()=>Up]],t_=[4,Y,sl,0,[Bf,pf,Kl],[()=>Bh,()=>Ph,()=>Up]],n_=[4,Y,Gc,0,[Ml,kl,Xf],[()=>zp,()=>Mp,()=>jh]],r_=[4,Y,qc,0,[qu],[15]],i_=[4,Y,Zc,0,[K,qu],[0,15]],a_=[4,Y,el,0,[qu,K,z,hu,cp,sf],[15,0,[()=>rh,0],()=>um,()=>Wh,()=>Dh]],o_=[4,Y,ul,0,[E,$d],[21,()=>Eh]],s_=[9,Y,ca,{[F]:[`POST`,`/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply`,200]},()=>Pp,()=>Fp],c_=[9,Y,uo,{[F]:[`POST`,`/model/{modelId}/converse`,200]},()=>$p,()=>em],l_=[9,Y,Ga,{[F]:[`POST`,`/model/{modelId}/converse-stream`,200]},()=>rm,()=>im],u_=[9,Y,co,{[F]:[`POST`,`/model/{modelId}/count-tokens`,200]},()=>cm,()=>lm],d_=[9,Y,xo,{[F]:[`GET`,`/async-invoke/{invocationArn}`,200]},()=>hm,()=>gm],f_=[9,Y,Bs,{[F]:[`POST`,`/model/{modelId}/invoke`,200]},()=>sh,()=>ch],p_=[9,Y,Ws,{[F]:[`POST`,`/model/{modelId}/invoke-with-bidirectional-stream`,200]},()=>uh,()=>dh],m_=[9,Y,Ys,{[F]:[`POST`,`/model/{modelId}/invoke-with-response-stream`,200]},()=>fh,()=>ph],h_=[9,Y,tc,{[F]:[`GET`,`/async-invoke`,200]},()=>hh,()=>gh],g_=[9,Y,Oc,{[F]:[`POST`,`/async-invoke`,200]},()=>Mh,()=>Nh]})),__,v_=e((()=>{He(),ue(),Le(),h(),ct(),Qe(),Ye(),qr(),Wi(),$(),__=e=>({apiVersion:`2023-09-30`,base64Decoder:e?.base64Decoder??ot,base64Encoder:e?.base64Encoder??nt,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ui,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Gr,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Ie},{schemeId:`smithy.api#httpBearerAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#httpBearerAuth`),signer:new Ne}],logger:e?.logger??new kt,protocol:e?.protocol??we,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.bedrockruntime`,errorTypeRegistries:Tp,version:`2023-09-30`,serviceTarget:`AmazonBedrockFrontendService`},serviceId:e?.serviceId??`Bedrock Runtime`,urlParser:e?.urlParser??st,utf8Decoder:e?.utf8Decoder??qe,utf8Encoder:e?.utf8Encoder??Je})})),y_,b_=e((()=>{pi(),Ct(),He(),Pt(),xi(),Lt(),xe(),vt(),Le(),Oi(),Se(),le(),wt(),$e(),h(),Ee(),fe(),xt(),v_(),y_=e=>{At(process.version);let t=be(e),n=()=>t().then(jt),r=__(e);bt(process.version);let i={profile:e?.profile,logger:r.logger,signingName:`bedrock`};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??p(Fe,i),bodyLengthChecker:e?.bodyLengthChecker??pe,credentialDefaultProvider:e?.credentialDefaultProvider??Nt,defaultUserAgentProvider:e?.defaultUserAgentProvider??he({serviceId:r.serviceId,clientVersion:fi.version}),eventStreamPayloadHandlerProvider:e?.eventStreamPayloadHandlerProvider??yi,eventStreamSerdeProvider:e?.eventStreamSerdeProvider??Ei,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Ie},{schemeId:`smithy.api#httpBearerAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#httpBearerAuth`)||(async e=>{try{return await It({signingName:`bedrock`})()}catch{return await Ft(e)(e)}}),signer:new Ne}],maxAttempts:e?.maxAttempts??p(ke,e),region:e?.region??p(pt,{..._t,...i}),requestHandler:Ze.create(e?.requestHandler??(async()=>({...await n(),disableConcurrentStreams:!0}))),retryMode:e?.retryMode??p({...de,default:async()=>(await n()).retryMode||St},e),sha256:e?.sha256??me.bind(null,`sha256`),streamCollector:e?.streamCollector??tt,useDualstackEndpoint:e?.useDualstackEndpoint??p(gt,i),useFipsEndpoint:e?.useFipsEndpoint??p(lt,i),userAgentAppId:e?.userAgentAppId??p(ge,i)}}})),x_,S_,C_=e((()=>{x_=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials,i=e.token;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r},setToken(e){i=e},token(){return i}}},S_=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials(),token:e.token()})})),w_,T_=e((()=>{Te(),o(),h(),C_(),w_=(e,t)=>{let n=Object.assign(Ce(e),Ot(e),i(e),x_(e));return t.forEach(e=>e.configure(n)),Object.assign(e,_e(n),Tt(n),r(n),S_(n))}})),E_,D_=e((()=>{en(),ce(),te(),ae(),oe(),Rr(),vt(),Le(),rt(),Vr(),l(),u(),le(),h(),qr(),y(),b_(),T_(),t(),E_=class extends Dt{constructor(...[e]){let t=y_(e||{});super(t),n(this,`config`,void 0),this.initConfig=t,this.config=w_(Pr(Wt(Kr(zr(c(Ae(ht(Oe(ie(Jr(t)))))))))),e?.extensions||[]),this.middlewareStack.use(it(this.config)),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(De(this.config)),this.middlewareStack.use(ee(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(ne(this.config)),this.middlewareStack.use(se(this.config)),this.middlewareStack.use(je(this.config,{httpAuthSchemeParametersProvider:Wr,identityProviderConfigProvider:async e=>new Ue({"aws.auth#sigv4":e.credentials,"smithy.api#httpBearerAuth":e.token})})),this.middlewareStack.use(Me(this.config))}destroy(){super.destroy()}}})),O_,k_=e((()=>{u(),h(),y(),$(),O_=class extends m.classBuilder().ep(v).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonBedrockFrontendService`,`ApplyGuardrail`,{}).n(`BedrockRuntimeClient`,`ApplyGuardrailCommand`).sc(s_).build(){}})),A_,j_=e((()=>{u(),h(),y(),$(),A_=class extends m.classBuilder().ep(v).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonBedrockFrontendService`,`Converse`,{}).n(`BedrockRuntimeClient`,`ConverseCommand`).sc(c_).build(){}})),M_,N_=e((()=>{u(),h(),y(),$(),M_=class extends m.classBuilder().ep(v).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonBedrockFrontendService`,`ConverseStream`,{eventStream:{output:!0}}).n(`BedrockRuntimeClient`,`ConverseStreamCommand`).sc(l_).build(){}})),P_,F_=e((()=>{u(),h(),y(),$(),P_=class extends m.classBuilder().ep(v).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonBedrockFrontendService`,`CountTokens`,{}).n(`BedrockRuntimeClient`,`CountTokensCommand`).sc(u_).build(){}})),I_,L_=e((()=>{u(),h(),y(),$(),I_=class extends m.classBuilder().ep(v).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonBedrockFrontendService`,`GetAsyncInvoke`,{}).n(`BedrockRuntimeClient`,`GetAsyncInvokeCommand`).sc(d_).build(){}})),R_,z_=e((()=>{u(),h(),y(),$(),R_=class extends m.classBuilder().ep(v).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonBedrockFrontendService`,`InvokeModel`,{}).n(`BedrockRuntimeClient`,`InvokeModelCommand`).sc(f_).build(){}})),B_,V_=e((()=>{en(),Rr(),u(),h(),y(),$(),B_=class extends m.classBuilder().ep(v).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions()),Qt(n),Ar(n,{headerPrefix:`x-amz-bedrock-`})]}).s(`AmazonBedrockFrontendService`,`InvokeModelWithBidirectionalStream`,{eventStream:{input:!0,output:!0}}).n(`BedrockRuntimeClient`,`InvokeModelWithBidirectionalStreamCommand`).sc(p_).build(){}})),H_,U_=e((()=>{u(),h(),y(),$(),H_=class extends m.classBuilder().ep(v).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonBedrockFrontendService`,`InvokeModelWithResponseStream`,{eventStream:{output:!0}}).n(`BedrockRuntimeClient`,`InvokeModelWithResponseStreamCommand`).sc(m_).build(){}})),W_,G_=e((()=>{u(),h(),y(),$(),W_=class extends m.classBuilder().ep(v).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonBedrockFrontendService`,`ListAsyncInvokes`,{}).n(`BedrockRuntimeClient`,`ListAsyncInvokesCommand`).sc(h_).build(){}})),K_,q_=e((()=>{u(),h(),y(),$(),K_=class extends m.classBuilder().ep(v).m(function(e,t,n,r){return[d(n,e.getEndpointParameterInstructions())]}).s(`AmazonBedrockFrontendService`,`StartAsyncInvoke`,{}).n(`BedrockRuntimeClient`,`StartAsyncInvokeCommand`).sc(g_).build(){}})),J_,Y_=e((()=>{Le(),D_(),G_(),J_=Pe(E_,W_,`nextToken`,`nextToken`,`maxResults`)})),X_,Z_,Q_,$_=e((()=>{h(),D_(),k_(),j_(),N_(),F_(),L_(),z_(),V_(),U_(),G_(),q_(),Y_(),X_={ApplyGuardrailCommand:O_,ConverseCommand:A_,ConverseStreamCommand:M_,CountTokensCommand:P_,GetAsyncInvokeCommand:I_,InvokeModelCommand:R_,InvokeModelWithBidirectionalStreamCommand:B_,InvokeModelWithResponseStreamCommand:H_,ListAsyncInvokesCommand:W_,StartAsyncInvokeCommand:K_},Z_={paginateListAsyncInvokes:J_},Q_=class extends E_{},Mt(X_,Q_,{paginators:Z_})})),ev=e((()=>{k_(),j_(),N_(),F_(),L_(),z_(),V_(),U_(),G_(),q_()})),tv=e((()=>{})),nv=e((()=>{tv(),Y_()})),rv=e((()=>{})),iv=e((()=>{})),av=e((()=>{D_(),$_(),ev(),$(),nv(),rv(),ia(),iv(),Gi()}));export{tm as $,$g as $n,Um as $t,Hp as A,ph as An,o_ as Ar,Tm as At,hp as B,vp as Bn,Zi as Br,Nm as Bt,Lp as C,p_ as Cn,a_ as Cr,vm as Ct,pp as D,dh as Dn,Uh as Dr,Sm as Dt,zp as E,uh as En,Hh as Er,xm as Et,Mg as F,_h as Fn,qi as Fr,km as Ft,Xp as G,Sh as Gn,w as Gr,Lm as Gt,Pg as H,bh as Hn,$i as Hr,Fm as Ht,Jp as I,vh as In,ea as Ir,Am as It,Qp as J,Xg as Jn,dn as Jr,zm as Jt,Zp as K,Ch as Kn,gn as Kr,Wg as Kt,Gp as L,yh as Ln,ta as Lr,jm as Lt,Wp as M,h_ as Mn,Tp as Mr,Dm as Mt,Ag as N,hh as Nn,Ki as Nr,Om as Nt,Bp as O,m_ as On,wp as Or,Cm as Ot,jg as P,gh as Pn,Xi as Pr,Q as Pt,l_ as Q,bp as Qn,Gg as Qt,Kp as R,gp as Rn,ra as Rr,Mm as Rt,Ip as S,lh as Sn,zh as Sr,Vg as St,kg as T,Jg as Tn,Vh as Tr,bm as Tt,Yp as U,xh as Un,Ji as Ur,Im as Ut,Ng as V,yp as Vn,Qi as Vr,Pm as Vt,Fg as W,Yg as Wn,Yi as Wr,Ug as Wt,$p as X,Qg as Xn,ln as Xr,Vm as Xt,Ig as Y,Zg as Yn,cn as Yr,Bm as Yt,em as Z,Th as Zn,un as Zr,Hm as Zt,Np as _,oh as _n,n_ as _r,mm as _t,W_ as a,Ym as an,Ah as ar,om as at,Fp as b,sh as bn,Rh as br,gm as bt,R_ as c,Qm as cn,g_ as cr,Rg as ct,M_ as d,th as dn,e_ as dr,um as dt,Wm as en,Eh as er,nm as et,A_ as f,nh as fn,Ph as fr,dm as ft,Mp as g,Kg as gn,t_ as gr,Bg as gt,mp as h,ah as hn,Ih as hr,pm as ht,K_ as i,Jm as in,xp as ir,am as it,Up as j,mh as jn,Gh as jr,Em as jt,Vp as k,fh as kn,Wh as kr,wm as kt,I_ as l,$m as ln,Mh as lr,cm as lt,E_ as m,ih as mn,Cp as mr,zg as mt,Q_ as n,Km as nn,Oh as nr,rm as nt,H_ as o,Xm as on,Sp as or,sm as ot,O_ as p,rh as pn,Fh as pr,fm as pt,c_ as q,wh as qn,mn as qr,Rm as qt,J_ as r,qm as rn,kh as rr,im as rt,B_ as s,Zm as sn,jh as sr,u_ as st,av as t,Gm as tn,Dh as tr,Lg as tt,P_ as u,eh as un,Nh as ur,lm as ut,s_ as v,Z as vn,Lh as vr,d_ as vt,Rp as w,qg as wn,Bh as wr,ym as wt,Og as x,ch as xn,i_ as xr,_m as xt,Pp as y,f_ as yn,r_ as yr,hm as yt,qp as z,_p as zn,na as zr,Hg as zt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./dist-es-D-kJbj4A2.js";t();export{e as fromTokenFile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";function t(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&(r=decodeURIComponent(r)),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var n=e((()=>{})),r,i=e((()=>{n(),r=e=>{if(typeof e==`string`)return r(new URL(e));let{hostname:n,pathname:i,port:a,protocol:o,search:s}=e,c;return s&&(c=t(s)),{hostname:n,port:a?parseInt(a):void 0,protocol:o,path:i,query:c}}}));export{r as n,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-80gRi2ZW.js";var r,i=e((()=>{t(),r=class e extends Error{constructor(t,r=!0){let i,a=!0;typeof r==`boolean`?(i=void 0,a=r):typeof r==`object`&&r&&(i=r.logger,a=r.tryNextLink??!0),super(t),n(this,`name`,`ProviderError`),n(this,`tryNextLink`,void 0),this.tryNextLink=a,Object.setPrototypeOf(this,e.prototype),i?.debug?.(`@smithy/property-provider ${a?`->`:`(!)`} ${t}`)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}})),a,o=e((()=>{i(),t(),a=class e extends r{constructor(t,r=!0){super(t,r),n(this,`name`,`CredentialsProviderError`),Object.setPrototypeOf(this,e.prototype)}}})),s,c=e((()=>{i(),t(),s=class e extends r{constructor(t,r=!0){super(t,r),n(this,`name`,`TokenProviderError`),Object.setPrototypeOf(this,e.prototype)}}})),l,u=e((()=>{i(),l=(...e)=>async()=>{if(e.length===0)throw new r(`No providers in chain`);let t;for(let n of e)try{return await n()}catch(e){if(t=e,e?.tryNextLink)continue;throw e}throw t}})),d,f=e((()=>{d=e=>()=>Promise.resolve(e)})),p,m=e((()=>{p=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||(i=e());try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))}})),h=e((()=>{o(),i(),c(),u(),f(),m()}));export{s as a,l as i,p as n,a as o,d as r,r as s,h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";var t=e((()=>{})),n=e((()=>{})),r=e((()=>{})),i=e((()=>{})),a=e((()=>{n(),r(),i()})),o=e((()=>{})),s=e((()=>{})),c=e((()=>{o(),s()})),l=e((()=>{})),u=e((()=>{})),d=e((()=>{})),f=e((()=>{})),p=e((()=>{})),m=e((()=>{})),h,g=e((()=>{h=class{async sign(e,t,n){return e}}})),_=e((()=>{p(),m(),g()})),v,y,b,x=e((()=>{v=e=>function(t){return b(t)&&t.expiration.getTime()-Date.now()<e},y=3e5,v(y),b=e=>e.expiration!==void 0})),S=e((()=>{f(),_(),x()}));e((()=>{t(),a(),c(),l(),u(),d(),S()}))();export{h as NoAuthSigner};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-80gRi2ZW.js";import{n as r,r as i,t as a}from"./dist-es-C41b_0B5.js";import{f as o,x as s,y as c}from"./httpAuthSchemes-Wq4XWeLL.js";import{n as l,r as u,t as d}from"./dist-es-Bu_Fshi1.js";import{a as f,n as p,o as m,r as h,s as ee,t as g}from"./dist-es-BVGppqE4.js";import{C as te,L as ne,R as re,S as ie,_ as ae,a as oe,b as _,c as v,d as se,f as ce,g as le,i as ue,l as y,m as de,n as fe,o as pe,p as me,r as he,s as ge,t as b,u as _e,v as x,w as ve,y as ye,z as be}from"./protocols-CAyQOlkr.js";import{n as xe,t as Se}from"./dist-es-CSfI8B8l.js";import{c as Ce,f as we,i as Te,l as Ee,m as De,p as Oe,r as ke,s as Ae,t as je,u as Me}from"./dist-es-OVleIB54.js";import{a as Ne,c as Pe,d as Fe,f as Ie,i as Le,l as Re,m as ze,o as Be,p as Ve,r as S,s as He,t as Ue,u as We}from"./client-CPn1wQyc.js";import{n as Ge,t as Ke}from"./dist-es-CUZBYppo.js";import{n as C,t as qe}from"./dist-es-zjcbuB72.js";import{t as Je}from"./dist-es-fjXft-jH.js";import{l as Ye,n as Xe,r as Ze,t as w}from"./dist-es-UAs0rdXg.js";import{env as Qe,versions as $e}from"node:process";import{Readable as et}from"stream";import{join as tt,normalize as nt,sep as rt}from"node:path";import{ReadStream as it,fstatSync as at,lstatSync as ot}from"node:fs";import{platform as st,release as ct}from"node:os";import{Buffer as lt}from"buffer";import{createHash as ut,createHmac as dt}from"crypto";import{readFile as ft}from"node:fs/promises";function pt(e){return e}var mt,ht,gt,_t=e((()=>{a(),mt=e=>t=>async n=>{if(!i.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:a=``}=e.requestHandler.metadata||{};if(a.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 e=r.hostname;r.port!=null&&(e+=`:${r.port}`),r.headers.host=e}return t(n)},ht={name:`hostHeaderMiddleware`,step:`build`,priority:`low`,tags:[`HOST`],override:!0},gt=e=>({applyToStack:t=>{t.add(mt(e),ht)}})})),vt,yt,bt,xt=e((()=>{vt=()=>(e,t)=>async n=>{try{let r=await e(n),{clientName:i,commandName:a,logger:o,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=s,u=c??t.inputFilterSensitiveLog,d=l??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return o?.info?.({clientName:i,commandName:a,input:u(n.input),output:d(p),metadata:f}),r}catch(e){let{clientName:r,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:s}=o,c=s??t.inputFilterSensitiveLog;throw a?.error?.({clientName:r,commandName:i,input:c(n.input),error:e,metadata:e.$metadata}),e}},yt={name:`loggerMiddleware`,tags:[`LOGGER`],step:`initialize`,override:!0},bt=e=>({applyToStack:e=>{e.add(vt(),yt)}})})),St=e((()=>{xt()})),Ct,wt=e((()=>{Ct={step:`build`,tags:[`RECURSION_DETECTION`],name:`recursionDetectionMiddleware`,override:!0,priority:`low`}})),T,E,D,Tt,Et,Dt,Ot=e((()=>{t(),T={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`)},E=[`true`,`1`].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??``),E||(globalThis.awslambda=globalThis.awslambda||{}),D=class{isProtectedKey(e){return Object.values(T).includes(e)}getRequestId(){return this.get(T.REQUEST_ID)??`-`}getXRayTraceId(){return this.get(T.X_RAY_TRACE_ID)}getTenantId(){return this.get(T.TENANT_ID)}},n(D,`PROTECTED_KEYS`,T),Tt=class extends D{constructor(...e){super(...e),n(this,`currentContext`,void 0)}getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=t}run(e,t){return this.currentContext=e,t()}},Et=class e extends D{constructor(...e){super(...e),n(this,`als`,void 0)}static async create(){let t=new e;return t.als=new(await(import(`node:async_hooks`))).AsyncLocalStorage,t}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e))throw Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw Error(`No context available`);n[e]=t}run(e,t){return this.als.run(e,t)}},(function(e){let t=null;async function n(e){return t||(t=(async()=>{let t=e===!0||`AWS_LAMBDA_MAX_CONCURRENCY`in process.env?await Et.create():new Tt;return!E&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!E&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=t),t)})()),t}e.getInstanceAsync=n,e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE===`1`?{reset:()=>{t=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}}}:void 0})(Dt||(Dt={}))})),O,kt,At,jt,Mt=e((()=>{Ot(),a(),O=`X-Amzn-Trace-Id`,kt=`AWS_LAMBDA_FUNCTION_NAME`,At=`_X_AMZN_TRACE_ID`,jt=()=>e=>async t=>{let{request:n}=t;if(!i.isInstance(n))return e(t);let r=Object.keys(n.headers??{}).find(e=>e.toLowerCase()===O.toLowerCase())??O;if(n.headers.hasOwnProperty(r))return e(t);let a=process.env[kt],o=process.env[At],s=(await Dt.getInstanceAsync())?.getXRayTraceId()??o,c=e=>typeof e==`string`&&e.length>0;return c(a)&&c(s)&&(n.headers[O]=s),e({...t,request:n})}})),Nt,Pt=e((()=>{wt(),Mt(),Nt=e=>({applyToStack:e=>{e.add(jt(),Ct)}})})),Ft=e((()=>{Pt(),Mt()}));function It(e){return e===void 0?!0:typeof e==`string`&&e.length<=50}function Lt(e){let t=s(e.userAgentAppId??void 0),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==`string`?[[n]]:n,userAgentAppId:async()=>{let n=await t();if(!It(n)){let t=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?console:e.logger;typeof n==`string`?n.length>50&&t?.warn(`The provided userAgentAppId exceeds the maximum length of 50 characters.`):t?.warn(`userAgentAppId must be a string or undefined.`)}return n}})}var Rt=e((()=>{o()})),zt=e((()=>{Me()})),Bt,Vt=e((()=>{Me(),zt(),Bt=(e,t=!1)=>{if(t){for(let t of e.split(`.`))if(!Bt(t))return!1;return!0}return!(!Oe(e)||e.length<3||e.length>63||e!==e.toLowerCase()||we(e))}})),Ht,Ut,Wt,Gt=e((()=>{Ht=`:`,Ut=`/`,Wt=e=>{let t=e.split(Ht);if(t.length<6)return null;let[n,r,i,a,o,...s]=t;return n!==`arn`||r===``||i===``||s.join(Ht)===``?null:{partition:r,service:i,region:a,accountId:o,resourceId:s.map(e=>e.split(Ut)).flat()}}})),Kt,qt,Jt=e((()=>{Kt=[{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)`}}}],qt={partitions:Kt,version:`1.1`}})),Yt,Xt,Zt,Qt,$t=e((()=>{Jt(),Yt=qt,Xt=``,Zt=e=>{let{partitions:t}=Yt;for(let n of t){let{regions:t,outputs:r}=n;for(let[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(let n of t){let{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}let n=t.find(e=>e.id===`aws`);if(!n)throw Error(`Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.`);return{...n.outputs}},Qt=()=>Xt})),en,tn=e((()=>{Me(),Vt(),Gt(),$t(),en={isVirtualHostableS3Bucket:Bt,parseArn:Wt,partition:Zt},De.aws=en})),nn=e((()=>{})),rn=e((()=>{})),an=e((()=>{})),on=e((()=>{})),sn=e((()=>{})),cn=e((()=>{})),ln=e((()=>{})),un=e((()=>{})),dn=e((()=>{an(),on(),sn(),cn(),ln(),un()})),fn=e((()=>{tn(),$t(),zt(),nn(),rn(),dn()}));async function pn(e,t,n){if(n.request?.headers?.[`smithy-protocol`]===`rpc-v2-cbor`&&S(e,`PROTOCOL_RPC_V2_CBOR`,`M`),typeof t.retryStrategy==`function`){let n=await t.retryStrategy();if(typeof n.mode==`string`)switch(n.mode){case ze.ADAPTIVE:S(e,`RETRY_MODE_ADAPTIVE`,`F`);break;case ze.STANDARD:S(e,`RETRY_MODE_STANDARD`,`E`);break}}if(typeof t.accountIdEndpointMode==`function`){let n=e.endpointV2;switch(String(n?.url?.hostname).match(mn)&&S(e,`ACCOUNT_ID_ENDPOINT`,`O`),await t.accountIdEndpointMode?.()){case`disabled`:S(e,`ACCOUNT_ID_MODE_DISABLED`,`Q`);break;case`preferred`:S(e,`ACCOUNT_ID_MODE_PREFERRED`,`P`);break;case`required`:S(e,`ACCOUNT_ID_MODE_REQUIRED`,`R`);break}}let r=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(r?.$source){let t=r;t.accountId&&S(e,`RESOLVED_ACCOUNT_ID`,`T`);for(let[n,r]of Object.entries(t.$source??{}))S(e,n,r)}}var mn,hn=e((()=>{Ue(),Le(),mn=/\d{12}\.ddb/})),gn,_n,vn,yn,bn=e((()=>{gn=`user-agent`,_n=`x-amz-user-agent`,vn=/[^!$%&'*+\-.^_`|~\w]/g,yn=/[^!$%&'*+\-.^_`|~\w#]/g}));function xn(e){let t=``;for(let n in e){let r=e[n];if(t.length+r.length+1<=Sn){t.length?t+=`,`+r:t+=r;continue}break}return t}var Sn,Cn=e((()=>{Sn=1024})),wn,k,Tn,En,Dn=e((()=>{fn(),a(),hn(),bn(),Cn(),wn=e=>(t,n)=>async r=>{let{request:a}=r;if(!i.isInstance(a))return t(r);let{headers:o}=a,s=n?.userAgent?.map(k)||[],c=(await e.defaultUserAgentProvider()).map(k);await pn(n,e,r);let l=n;c.push(`m/${xn(Object.assign({},n.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let u=e?.customUserAgent?.map(k)||[],d=await e.userAgentAppId();d&&c.push(k([`app`,`${d}`]));let f=Qt(),p=(f?[f]:[]).concat([...c,...s,...u]).join(` `),m=[...c.filter(e=>e.startsWith(`aws-sdk-`)),...u].join(` `);return e.runtime===`browser`?o[_n]=p:(m&&(o[_n]=o[`x-amz-user-agent`]?`${o[gn]} ${m}`:m),o[gn]=p),t({...r,request:a})},k=e=>{let t=e[0].split(`/`).map(e=>e.replace(vn,`-`)).join(`/`),n=e[1]?.replace(yn,`-`),r=t.indexOf(`/`),i=t.substring(0,r),a=t.substring(r+1);return i===`api`&&(a=a.toLowerCase()),[i,a,n].filter(e=>e&&e.length>0).reduce((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},``)},Tn={name:`getUserAgentMiddleware`,step:`build`,priority:`low`,tags:[`SET_USER_AGENT`,`USER_AGENT`],override:!0},En=e=>({applyToStack:t=>{t.add(wn(e),Tn)}})})),On=e((()=>{Rt(),Dn()}));function kn(e){return t=>async n=>{let r=n.request;if(i.isInstance(r)){let{body:t,headers:n}=r;if(t&&Object.keys(n).map(e=>e.toLowerCase()).indexOf(An)===-1)try{let n=e(t);r.headers={...r.headers,[An]:String(n)}}catch{}}return t({...n,request:r})}}var An,jn,Mn,Nn=e((()=>{a(),An=`content-length`,jn={step:`build`,tags:[`SET_CONTENT_LENGTH`,`CONTENT_LENGTH`],name:`contentLengthMiddleware`,override:!0},Mn=e=>({applyToStack:t=>{t.add(kn(e.bodyLengthChecker),jn)}})})),Pn,Fn,In,Ln,Rn,zn,Bn=e((()=>{Pn=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),zn(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!Rn(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},Fn=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,In=/(\d+\.){3}\d+/,Ln=/\.\./,Rn=e=>Fn.test(e)&&!In.test(e)&&!Ln.test(e),zn=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o}})),Vn=e((()=>{Bn()})),Hn,Un=e((()=>{Hn=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i}})),Wn,Gn,Kn,qn=e((()=>{Je(),Wn=`AWS_ENDPOINT_URL`,Gn=`endpoint_url`,Kn=e=>({environmentVariableSelector:t=>{let n=t[[Wn,...e.split(` `).map(e=>e.toUpperCase())].join(`_`)];if(n)return n;let r=t[Wn];if(r)return r},configFileSelector:(t,n)=>{if(n&&t.services){let r=n[[`services`,t.services].join(`.`)];if(r){let t=r[[e.split(` `).map(e=>e.toLowerCase()).join(`_`),Gn].join(`.`)];if(t)return t}}let r=t[Gn];if(r)return r},default:void 0})})),Jn,Yn=e((()=>{qe(),qn(),Jn=async e=>C(Kn(e??``))()})),Xn,Zn=e((()=>{Se(),Xn=e=>{if(typeof e==`object`){if(`url`in e){let t=xe(e.url);if(e.headers){t.headers={};for(let[n,r]of Object.entries(e.headers))t.headers[n.toLowerCase()]=r.join(`, `)}return t}return e}return xe(e)}})),Qn,A,$n=e((()=>{Vn(),Un(),Yn(),Zn(),Qn=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let e;e=n.serviceConfiguredEndpoint?await n.serviceConfiguredEndpoint():await Jn(n.serviceId),e&&(n.endpoint=()=>Promise.resolve(Xn(e)),n.isCustomEndpoint=!0)}let i=await A(e,t,n);if(typeof n.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let a=n.endpointProvider(i,r);if(n.isCustomEndpoint&&n.endpoint){let e=await n.endpoint();if(e?.headers){a.headers??(a.headers={});for(let[t,n]of Object.entries(e.headers))a.headers[t]=Array.isArray(n)?n:[n]}}return a},A=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await Hn(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await Pn(r),r}})),er=e((()=>{$n(),Zn()})),tr,nr=e((()=>{o(),d(),$n(),tr=({config:e,instructions:t})=>(n,r)=>async i=>{e.isCustomEndpoint&&c(r,`ENDPOINT_OVERRIDE`,`N`);let a=await Qn(i.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=a,r.authSchemes=a.properties?.authSchemes;let o=r.authSchemes?.[0];if(o){r.signing_region=o.signingRegion,r.signing_service=o.signingName;let e=u(r)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return n({...i})}})),rr=e((()=>{})),ir=e((()=>{})),ar,or=e((()=>{ar={name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}})),sr=e((()=>{rr(),or(),ir()})),cr,lr,ur=e((()=>{sr(),nr(),cr={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:ar.name},lr=(e,t)=>({applyToStack:n=>{n.addRelativeTo(tr({config:e,instructions:t}),cr)}})})),dr,fr=e((()=>{d(),Yn(),Zn(),dr=e=>{let t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:i}=e,a=Object.assign(e,{endpoint:n==null?void 0:async()=>Xn(await l(n)()),tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:l(r??!1),useFipsEndpoint:l(i??!1)}),o;return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!o&&(o=Jn(e.serviceId)),o),a}})),pr=e((()=>{})),mr=e((()=>{})),hr=e((()=>{er(),nr(),ur(),fr(),pr(),mr()})),gr,_r=e((()=>{gr=e=>e instanceof Error?e:e instanceof Object?Object.assign(Error(),e):Error(typeof e==`string`?e:`AWS SDK error wrapper for ${e}`)})),vr=e((()=>{})),yr=e((()=>{})),br=e((()=>{})),xr=e((()=>{})),j,M,Sr,Cr,wr,Tr,Er,Dr=e((()=>{d(),Le(),j=`AWS_MAX_ATTEMPTS`,M=`max_attempts`,Sr={environmentVariableSelector:e=>{let t=e[j];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw Error(`Environment variable ${j} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[M];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw Error(`Shared config file entry ${M} mast be a number, got "${t}"`);return n},default:3},Cr=e=>{let{retryStrategy:t,retryMode:n}=e,r=l(e.maxAttempts??3),i=t?Promise.resolve(t):void 0,a=async()=>await l(n)()===ze.ADAPTIVE?new Ne(r):new Be(r);return Object.assign(e,{maxAttempts:r,retryStrategy:()=>i??(i=a())})},wr=`AWS_RETRY_MODE`,Tr=`retry_mode`,Er={environmentVariableSelector:e=>e[wr],configFileSelector:e=>e[Tr],default:Ve}})),Or=e((()=>{})),kr,Ar=e((()=>{kr=e=>e?.body instanceof et||typeof ReadableStream<`u`&&e?.body instanceof ReadableStream}));function jr(e,t){if(r.isInstance(e))for(let n of Object.keys(e.headers)){let r=n.toLowerCase();if(r===`retry-after`){let r=e.headers[n],i=NaN;if(r.endsWith(`GMT`))try{i=(ae(r).getTime()-Date.now())/1e3}catch(e){t?.trace?.(`Failed to parse retry-after header`),t?.trace?.(e)}else r.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(r.match(/ GMT, ([\d.]+)$/)?.[1]):r.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(r):Date.parse(r)>=Date.now()&&(i=(Date.parse(r)-Date.now())/1e3);return isNaN(i)?void 0:new Date(Date.now()+i*1e3)}else if(r===`x-amz-retry-after`){let r=e.headers[n],i=Number(r);if(isNaN(i)){t?.trace?.(`Failed to parse x-amz-retry-after=${r}`);return}return new Date(Date.now()+i)}}}var Mr=e((()=>{v(),a()})),Nr,Pr,Fr,Ir,Lr,Rr,zr,Br=e((()=>{a(),Re(),w(),Le(),se(),Ar(),Mr(),_r(),Nr=e=>(t,n)=>async r=>{let a=await e.retryStrategy(),o=await e.maxAttempts();if(Fr(a)){a=a;let s=await a.acquireInitialRetryToken((n.partition_id??``)+(n.__retryLongPoll?`:longpoll`:``)),c=Error(),l=0,u=0,{request:d}=r,f=i.isInstance(d);for(f&&(d.headers[He]=ce());;)try{f&&(d.headers[Pe]=`attempt=${l+1}; max=${o}`);let{response:e,output:n}=await t(r);return a.recordSuccess(s),n.$metadata.attempts=l+1,n.$metadata.totalRetryDelay=u,{response:e,output:n}}catch(t){let r=Ir(t,e.logger);if(c=gr(t),f&&kr(d))throw(n.logger instanceof Xe?console:n.logger)?.warn(`An error was encountered in a non-retryable streaming request.`),c;try{s=await a.refreshRetryTokenForRetry(s,r)}catch(e){throw typeof e.$backoff==`number`&&await Pr(e.$backoff),c.$metadata||(c.$metadata={}),c.$metadata.attempts=l+1,c.$metadata.totalRetryDelay=u,c}l=s.getRetryCount();let i=s.getRetryDelay();u+=i,await Pr(i)}}else return a=a,a?.mode&&(n.userAgent=[...n.userAgent||[],[`cfg/retry-mode`,a.mode]]),a.retry(t,r)},Pr=e=>new Promise(t=>setTimeout(t,e)),Fr=e=>e.acquireInitialRetryToken!==void 0&&e.refreshRetryTokenForRetry!==void 0&&e.recordSuccess!==void 0,Ir=(e,t)=>{let n={error:e,errorType:Lr(e)},r=jr(e.$response,t);return r&&(n.retryAfterHint=r),n},Lr=e=>Fe(e)?`THROTTLING`:Ie(e)?`TRANSIENT`:We(e)?`SERVER_ERROR`:`CLIENT_ERROR`,Rr={name:`retryMiddleware`,tags:[`RETRY`],step:`finalizeRequest`,priority:`high`,override:!0},zr=e=>({applyToStack:t=>{t.add(Nr(e),Rr)}})})),Vr=e((()=>{xr(),br(),vr(),yr(),Dr(),Or(),Br(),Mr()})),Hr,Ur=e((()=>{Hr=()=>{for(let e of[`deno`,`bun`,`llrt`])if($e[e])return[`md/${e}`,$e[e]];return[`md/nodejs`,$e.node]}})),Wr,Gr=e((()=>{Wr=e=>{let t=process.cwd();if(!e)return[t];let n=nt(e),r=n.split(rt),i=r.indexOf(`node_modules`),a=i===-1?n:r.slice(0,i).join(rt);return t===a?[t]:[a,t]}})),Kr,qr,Jr=e((()=>{Kr=/^(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-]+)*)?$/,qr=(e=``)=>{let t=e.match(Kr);if(!t)return;let[n,r,i,a]=[t[1],t[2],t[3],t[4]];return a?`${n}.${r}.${i}-${a}`:`${n}.${r}.${i}`}})),Yr,Xr,Zr,Qr=e((()=>{Jr(),Yr=[`^`,`~`,`>=`,`<=`,`>`,`<`],Xr=[`latest`,`beta`,`dev`,`rc`,`insiders`,`next`],Zr=(e=``)=>{if(Xr.includes(e))return e;let t=Yr.find(t=>e.startsWith(t))??``,n=qr(e.slice(t.length));if(n)return`${t}${n}`}})),N,$r,ei,ti=e((()=>{Ae(),Gr(),Qr(),Jr(),$r=tt(`node_modules`,`typescript`,`package.json`),ei=async()=>{if(N===null)return;if(typeof N==`string`)return[`md/tsc`,N];let e=!1;try{e=Ee(process.env,`AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED`,Ce.ENV)||!1}catch{}if(e){N=null;return}let t=Wr(typeof __dirname<`u`?__dirname:void 0),n;for(let e of t)try{let t=await ft(tt(e,`package.json`),`utf-8`),{dependencies:r,devDependencies:i}=JSON.parse(t),a=i?.typescript??r?.typescript;if(typeof a!=`string`)continue;n=a;break}catch{}if(!n){N=null;return}let r;for(let e of t)try{let t=await ft(tt(e,$r),`utf-8`),{version:n}=JSON.parse(t),i=qr(n);if(typeof i!=`string`)continue;r=i;break}catch{}if(r)return N=r,[`md/tsc`,N];let i=Zr(n);if(typeof i!=`string`){N=null;return}return N=`dev_${i}`,[`md/tsc`,N]}})),ni,ri=e((()=>{ni={isCrtAvailable:!1}})),ii,ai=e((()=>{ri(),ii=()=>ni.isCrtAvailable?[`md/crt-avail`]:null})),oi,si=e((()=>{Ur(),ti(),ai(),ri(),oi=({serviceId:e,clientVersion:t})=>{let n=Hr();return async r=>{let i=[[`aws-sdk-js`,t],[`ua`,`2.1`],[`os/${st()}`,ct()],[`lang/js`],n],a=await ei();a&&i.push(a);let o=ii();o&&i.push(o),e&&i.push([`api/${e}`,t]),Qe.AWS_EXECUTION_ENV&&i.push([`exec-env/${Qe.AWS_EXECUTION_ENV}`]);let s=await r?.userAgentAppId?.();return s?[...i,[`app/${s}`]]:[...i]}}})),ci,li,ui,di=e((()=>{On(),ci=`AWS_SDK_UA_APP_ID`,li=`sdk-ua-app-id`,ui={environmentVariableSelector:e=>e[ci],configFileSelector:e=>e.sdk_ua_app_id??e[li],default:void 0}})),fi=e((()=>{si(),di()}));function pi(e,t){return lt.isBuffer(e)?e:typeof e==`string`?m(e,t):ArrayBuffer.isView(e)?f(e.buffer,e.byteOffset,e.byteLength):f(e)}var mi,hi=e((()=>{ee(),g(),t(),mi=class{constructor(e,t){n(this,`algorithmIdentifier`,void 0),n(this,`secret`,void 0),n(this,`hash`,void 0),this.algorithmIdentifier=e,this.secret=t,this.reset()}update(e,t){this.hash.update(h(pi(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?dt(this.algorithmIdentifier,pi(this.secret)):ut(this.algorithmIdentifier)}}})),gi,_i=e((()=>{gi=e=>{if(!e)return 0;if(typeof e==`string`)return Buffer.byteLength(e);if(typeof e.byteLength==`number`)return e.byteLength;if(typeof e.size==`number`)return e.size;if(typeof e.start==`number`&&typeof e.end==`number`)return e.end+1-e.start;if(e instanceof it){if(e.path!=null)return ot(e.path).size;if(typeof e.fd==`number`)return at(e.fd).size}throw Error(`Body Length computation failed for ${e}`)}})),vi=e((()=>{_i()})),yi,bi,xi=e((()=>{yi=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],bi=`/latest/meta-data/placement/region`})),Si,Ci,wi,Ti=e((()=>{Si=`AWS_DEFAULTS_MODE`,Ci=`defaults_mode`,wi={environmentVariableSelector:e=>e[Si],configFileSelector:e=>e[Ci],default:`legacy`}})),Ei,Di,Oi,ki=e((()=>{je(),qe(),Ke(),xi(),Ti(),Ei=({region:e=C(Te),defaultsMode:t=C(wi)}={})=>Ge(async()=>{let n=typeof t==`function`?await t():t;switch(n?.toLowerCase()){case`auto`:return Di(e);case`in-region`:case`cross-region`:case`mobile`:case`standard`:case`legacy`:return Promise.resolve(n?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${yi.join(`, `)}, got ${n}`)}}),Di=async e=>{if(e){let t=typeof e==`function`?await e():e,n=await Oi();return n?t===n?`in-region`:`cross-region`:`standard`}return`standard`},Oi=async()=>{if(process.env.AWS_EXECUTION_ENV&&(process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION))return process.env.AWS_REGION??process.env.AWS_DEFAULT_REGION;if(!process.env.AWS_EC2_METADATA_DISABLED)try{let{getInstanceMetadataEndpoint:e,httpRequest:t}=await import(`./dist-es-DK5fTeKM2.js`);return(await t({...await e(),path:bi})).toString()}catch{}}})),Ai=e((()=>{ki()})),ji,Mi=e((()=>{x(),w(),t(),ji=class{constructor(e=!1){n(this,`queryCompat`,void 0),n(this,`errorRegistry`,void 0),this.queryCompat=e}resolveRestContentType(e,t){let n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r)return r.getMergedTraits().mediaType||(r.isStringSchema()?`text/plain`:r.isBlobSchema()?`application/octet-stream`:e);if(!t.isUnitSchema()&&Object.values(n).find(e=>{let{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();return!t&&!n&&!r&&!i&&a===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,t,n,r,i,a){let o=e;e.includes(`#`)&&([,o]=e.split(`#`));let s={$metadata:i,$fault:n.statusCode<500?`client`:`server`};if(!this.errorRegistry)throw Error(`@aws-sdk/core/protocols - error handler not initialized.`);try{return{errorSchema:a?.(this.errorRegistry,o)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch{r.message=r.message??r.Message??`UnknownError`;let e=this.errorRegistry,t=e.getBaseException();if(t){let n=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new n({name:o}),s),r)}let n=r,i=n?.message??n?.Message??n?.Error?.Message??n?.Error?.message;throw this.decorateServiceException(Object.assign(Error(i),{name:o},s),r)}}compose(e,t,n){let r=n;t.includes(`#`)&&([r]=t.split(`#`));let i=ye.for(r),a=ye.for(`smithy.ts.sdk.synthetic.`+n);e.copyFrom(i),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){let n=e.Message??t.Message,r=Ye(e,t);n&&(r.message=n);let i=r.Error??{};i.Type=r.Error?.Type,i.Code=r.Error?.Code,i.Message=r.Error?.message??r.Error?.Message??n,r.Error=i;let a=r.$metadata.requestId;return a&&(r.RequestId=a),r}return Ye(e,t)}setQueryCompatError(e,t){let n=t.headers?.[`x-amzn-query-error`];if(e!==void 0&&n!=null){let[t,r]=n.split(`;`),i=Object.keys(e),a={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;t<i.length;t++){let n=i[t];a[n===`message`?`Message`:n]=e[n]}delete a.__type,e.Error=a}}queryCompatOutput(e,t){e.Error&&(t.Error=e.Error),e.Type&&(t.Type=e.Type),e.Code&&(t.Code=e.Code)}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch{return e.find(e=>_.of(e).getMergedTraits().awsQueryError?.[0]===t)}}}})),Ni=e((()=>{})),Pi=e((()=>{})),P,F=e((()=>{t(),P=class{constructor(){n(this,`serdeContext`,void 0)}setSerdeContext(e){this.serdeContext=e}}})),Fi,Ii=e((()=>{t(),Fi=class{constructor(e,t){n(this,`from`,void 0),n(this,`to`,void 0),n(this,`keys`,void 0),this.from=e,this.to=t;let r=Object.keys(this.from),i=new Set(r);i.delete(`__type`),this.keys=i}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}}));function Li(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new y(e,`bigDecimal`):BigInt(e)}return t}var Ri=e((()=>{v()})),zi,Bi=e((()=>{w(),g(),zi=(e,t)=>ve(e,t).then(e=>(t?.utf8Encoder??p)(e))})),Vi,Hi,I,Ui,Wi=e((()=>{Bi(),Vi=(e,t)=>zi(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,`$responseBodyText`,{value:e}),t}return{}}),Hi=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),I=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},Ui=(e,t)=>{let n=Hi(e.headers,`x-amzn-errortype`);if(n!==void 0)return I(e.headers[n]);if(t&&typeof t==`object`){let e=Hi(t,`code`);if(e&&t[e]!==void 0)return I(t[e]);if(t.__type!==void 0)return I(t.__type)}}})),Gi,Ki=e((()=>{b(),x(),v(),ne(),F(),Ii(),Ri(),Wi(),t(),Gi=class extends P{constructor(e){super(),n(this,`settings`,void 0),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,Li):await Vi(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){let n=typeof t==`object`&&!!t,r=_.of(e);if(n){if(r.isStructSchema()){let e=t,n=r.isUnionSchema(),i={},a,{jsonName:o}=this.settings;o&&(a={});let s;n&&(s=new Fi(e,i));for(let[t,c]of r.structIterator()){let r=t;o&&(r=c.getMergedTraits().jsonName??r,a[r]=t),n&&s.mark(r),e[r]!=null&&(i[t]=this._read(c,e[r]))}if(n)s.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let n=e[t],r=o?a[t]??t:t;r in i||(i[r]=n)}return i}if(Array.isArray(t)&&r.isListSchema()){let e=r.getValueSchema(),n=[];for(let r of t)n.push(this._read(e,r));return n}if(r.isMapSchema()){let e=r.getValueSchema(),n={};for(let r in t)n[r]=this._read(e,t[r]);return n}}if(r.isBlobSchema()&&typeof t==`string`)return be(t);let i=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof t==`string`&&i)return i===`application/json`||i.endsWith(`+json`)?_e.from(t):t;if(r.isTimestampSchema()&&t!=null)switch(oe(r,this.settings)){case 5:return le(t);case 6:return ae(t);case 7:return de(t);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,t),new Date(t)}if(r.isBigIntegerSchema()&&(typeof t==`number`||typeof t==`string`))return BigInt(t);if(r.isBigDecimalSchema()&&t!=null){if(t instanceof y)return t;let e=t;return e.type===`bigDecimal`&&`string`in e?new y(e.string,e.type):new y(String(t),`bigDecimal`)}if(r.isNumericSchema()&&typeof t==`string`){switch(t){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return t}if(r.isDocumentSchema())if(n){let e=Array.isArray(t)?[]:{};for(let n in t){let i=t[n];i instanceof y?e[n]=i:e[n]=this._read(r,i)}return e}else return structuredClone(t);return t}}})),qi,Ji,Yi=e((()=>{v(),t(),qi=`Ν`,Ji=class{constructor(){n(this,`values`,new Map),n(this,`counter`,0),n(this,`stage`,0)}createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof y){let e=`${qi+`nv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${qi+`b`+ this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}}})),Xi,Zi=e((()=>{b(),x(),v(),ne(),F(),Yi(),t(),Xi=class extends P{constructor(e){super(),n(this,`settings`,void 0),n(this,`buffer`,void 0),n(this,`useReplacer`,!1),n(this,`rootSchema`,void 0),this.settings=e}write(e,t){this.rootSchema=_.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new Ji;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=_.of(e).getName(!0))}_write(e,t,n){let r=typeof t==`object`&&!!t,i=_.of(e);if(r){if(i.isStructSchema()){let e=t,n={},{jsonName:r}=this.settings,a;r&&(a={});let o=0;for(let[t,s]of i.structIterator()){let c=this._write(s,e[t],i);if(c!==void 0){let e=t;r&&(e=s.getMergedTraits().jsonName??t,a[t]=e),n[e]=c,o++}}if(i.isUnionSchema()&&o===0){let{$unknown:t}=e;if(Array.isArray(t)){let[e,r]=t;n[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let t in e){let i=e[t],o=r?a[t]??t:t;o in n||(n[o]=this._write(15,i))}return n}if(Array.isArray(t)&&i.isListSchema()){let e=i.getValueSchema(),n=[],r=!!i.getMergedTraits().sparse;for(let i of t)(r||i!=null)&&n.push(this._write(e,i));return n}if(i.isMapSchema()){let e=i.getValueSchema(),n={},r=!!i.getMergedTraits().sparse;for(let i in t){let a=t[i];(r||a!=null)&&(n[i]=this._write(e,a))}return n}if(t instanceof Uint8Array&&(i.isBlobSchema()||i.isDocumentSchema()))return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??re)(t);if(t instanceof Date&&(i.isTimestampSchema()||i.isDocumentSchema()))switch(oe(i,this.settings)){case 5:return t.toISOString().replace(`.000Z`,`Z`);case 6:return me(t);case 7:return t.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,t),t.getTime()/1e3}t instanceof y&&(this.useReplacer=!0)}if(!(t===null&&n?.isStructSchema())){if(i.isStringSchema()){if(t===void 0&&i.isIdempotencyToken())return ce();let e=i.getMergedTraits().mediaType;return t!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?_e.from(t):t}if(typeof t==`number`&&i.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if(typeof t==`string`&&i.isBlobSchema())return i===this.rootSchema?t:(this.serdeContext?.base64Encoder??re)(t);if(typeof t==`bigint`&&(this.useReplacer=!0),i.isDocumentSchema())if(r){let e=Array.isArray(t)?[]:{};for(let n in t){let r=t[n];r instanceof y?(this.useReplacer=!0,e[n]=r):e[n]=this._write(i,r)}return e}else return structuredClone(t);return t}}}})),Qi,$i=e((()=>{F(),Ki(),Zi(),t(),Qi=class extends P{constructor(e){super(),n(this,`settings`,void 0),this.settings=e}createSerializer(){let e=new Xi(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Gi(this.settings);return e.setSerdeContext(this.serdeContext),e}}})),ea=e((()=>{})),ta=e((()=>{})),na=e((()=>{})),ra,ia=e((()=>{b(),x(),Mi(),$i(),Wi(),t(),ra=class extends ge{constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t}),n(this,`serializer`,void 0),n(this,`deserializer`,void 0),n(this,`codec`,void 0),n(this,`mixin`,new ji);let r={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new Qi(r),this.serializer=new fe(this.codec.createSerializer(),r),this.deserializer=new he(this.codec.createDeserializer(),r)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n),i=_.of(e.input);if(!r.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(r.headers[`content-type`]=e)}return r.body==null&&r.headers[`content-type`]===this.getDefaultContentType()&&(r.body=`{}`),r}async deserializeResponse(e,t,n){let r=await super.deserializeResponse(e,t,n),i=_.of(e.output);for(let[e,t]of i.structIterator())t.getMemberTraits().httpPayload&&!(e in r)&&(r[e]=null);return r}async handleError(e,t,n,r,i){let a=Ui(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:s}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,r,i),c=_.of(o),l=r.message??r.Message??`UnknownError`,u=new((this.compositeErrorRegistry.getErrorCtor(o))??Error)(l);await this.deserializeHttpMessage(o,t,n,r);let d={},f=this.codec.createDeserializer();for(let[e,t]of c.structIterator()){let n=t.getMergedTraits().jsonName??e;d[e]=f.readObject(t,r[n])}throw this.mixin.decorateServiceException(Object.assign(u,s,{$fault:c.getMergedTraits().error,message:l},d),r)}getDefaultContentType(){return`application/json`}}})),aa=e((()=>{})),oa=e((()=>{})),sa=e((()=>{}));function ca(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e<a;e++)i.push(r[e]);n.push(i),r=t.exec(e)}return n}function la(e){return e!==void 0}var ua,da,fa,L,R,pa,z=e((()=>{ua=`: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`,ua+``,da=`[`+ua+`][: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\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*`,fa=RegExp(`^`+da+`$`),L=function(e){return fa.exec(e)!=null},R=[`hasOwnProperty`,`toString`,`valueOf`,`__defineGetter__`,`__defineSetter__`,`__lookupGetter__`,`__lookupSetter__`],pa=[`__proto__`,`constructor`,`prototype`]}));function ma(e,t){t=Object.assign({},wa,t);let n=[],r=!1,i=!1;e[0]===``&&(e=e.substr(1));for(let a=0;a<e.length;a++)if(e[a]===`<`&&e[a+1]===`?`){if(a+=2,a=ga(e,a),a.err)return a}else if(e[a]===`<`){let o=a;if(a++,e[a]===`!`){a=_a(e,a);continue}else{let s=!1;e[a]===`/`&&(s=!0,a++);let c=``;for(;a<e.length&&e[a]!==`>`&&e[a]!==` `&&e[a]!==` `&&e[a]!==`
|
|
2
|
+
`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!Ca(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,B(`InvalidTag`,t,V(e,a))}let l=va(e,a);if(l===!1)return B(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,V(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=ya(u,t);if(i===!0)r=!0;else return B(i.err.code,i.err.msg,V(e,n+i.err.line))}else if(s){if(!l.tagClosed)return B(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,V(e,a));if(u.trim().length>0)return B(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,V(e,o));if(n.length===0)return B(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,V(e,o));{let t=n.pop();if(c!==t.tagName){let n=V(e,t.tagStartPos);return B(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,V(e,o))}n.length==0&&(i=!0)}}else{let s=ya(u,t);if(s!==!0)return B(s.err.code,s.err.msg,V(e,a-u.length+s.err.line));if(i===!0)return B(`InvalidXml`,`Multiple possible root nodes found.`,V(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a<e.length;a++)if(e[a]===`<`)if(e[a+1]===`!`){a++,a=_a(e,a);continue}else if(e[a+1]===`?`){if(a=ga(e,++a),a.err)return a}else break;else if(e[a]===`&`){let t=xa(e,a);if(t==-1)return B(`InvalidChar`,`char '&' is not expected.`,V(e,a));a=t}else if(i===!0&&!ha(e[a]))return B(`InvalidXml`,`Extra text at the end`,V(e,a));e[a]===`<`&&a--}}else{if(ha(e[a]))continue;return B(`InvalidChar`,`char '`+e[a]+`' is not expected.`,V(e,a))}return r?n.length==1?B(`InvalidTag`,`Unclosed tag '`+n[0].tagName+`'.`,V(e,n[0].tagStartPos)):n.length>0?B(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:B(`InvalidXml`,`Start tag expected.`,1)}function ha(e){return e===` `||e===` `||e===`
|
|
3
|
+
`||e===`\r`}function ga(e,t){let n=t;for(;t<e.length;t++)if(e[t]==`?`||e[t]==` `){let r=e.substr(n,t-n);if(t>5&&r===`xml`)return B(`InvalidXml`,`XML declaration allowed only at the start of the document.`,V(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function _a(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t<e.length;t++)if(e[t]===`-`&&e[t+1]===`-`&&e[t+2]===`>`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t<e.length;t++)if(e[t]===`<`)n++;else if(e[t]===`>`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t<e.length;t++)if(e[t]===`]`&&e[t+1]===`]`&&e[t+2]===`>`){t+=2;break}}return t}function va(e,t){let n=``,r=``,i=!1;for(;t<e.length;t++){if(e[t]===Ta||e[t]===Ea)r===``?r=e[t]:r!==e[t]||(r=``);else if(e[t]===`>`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}function ya(e,t){let n=ca(e,Da),r={};for(let e=0;e<n.length;e++){if(n[e][1].length===0)return B(`InvalidAttr`,`Attribute '`+n[e][2]+`' has no space in starting.`,H(n[e]));if(n[e][3]!==void 0&&n[e][4]===void 0)return B(`InvalidAttr`,`Attribute '`+n[e][2]+`' is without value.`,H(n[e]));if(n[e][3]===void 0&&!t.allowBooleanAttributes)return B(`InvalidAttr`,`boolean attribute '`+n[e][2]+`' is not allowed.`,H(n[e]));let i=n[e][2];if(!Sa(i))return B(`InvalidAttr`,`Attribute '`+i+`' is an invalid name.`,H(n[e]));if(!Object.prototype.hasOwnProperty.call(r,i))r[i]=1;else return B(`InvalidAttr`,`Attribute '`+i+`' is repeated.`,H(n[e]))}return!0}function ba(e,t){let n=/\d/;for(e[t]===`x`&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(e[t]===`;`)return t;if(!e[t].match(n))break}return-1}function xa(e,t){if(t++,e[t]===`;`)return-1;if(e[t]===`#`)return t++,ba(e,t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(e[t]===`;`)break;return-1}return t}function B(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function Sa(e){return L(e)}function Ca(e){return L(e)}function V(e,t){let n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function H(e){return e.startIndex+e[1].length}var wa,Ta,Ea,Da,Oa=e((()=>{z(),wa={allowBooleanAttributes:!1,unpairedTags:[]},Ta=`"`,Ea=`'`,Da=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`)})),ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa=e((()=>{ka={amp:`&`,AMP:`&`,lt:`<`,LT:`<`,gt:`>`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,amp:`&`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},Aa={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,THORN:`Þ`,thorn:`þ`,szlig:`ß`,yuml:`ÿ`,Yuml:`Ÿ`},ja={Amacr:`Ā`,amacr:`ā`,Abreve:`Ă`,abreve:`ă`,Aogon:`Ą`,aogon:`ą`,Cacute:`Ć`,cacute:`ć`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cdot:`Ċ`,cdot:`ċ`,Ccaron:`Č`,ccaron:`č`,Dcaron:`Ď`,dcaron:`ď`,Dstrok:`Đ`,dstrok:`đ`,Emacr:`Ē`,emacr:`ē`,Ecaron:`Ě`,ecaron:`ě`,Edot:`Ė`,edot:`ė`,Eogon:`Ę`,eogon:`ę`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gbreve:`Ğ`,gbreve:`ğ`,Gdot:`Ġ`,gdot:`ġ`,Gcedil:`Ģ`,Hcirc:`Ĥ`,hcirc:`ĥ`,Hstrok:`Ħ`,hstrok:`ħ`,Itilde:`Ĩ`,itilde:`ĩ`,Imacr:`Ī`,imacr:`ī`,Iogon:`Į`,iogon:`į`,Idot:`İ`,IJlig:`IJ`,ijlig:`ij`,Jcirc:`Ĵ`,jcirc:`ĵ`,Kcedil:`Ķ`,kcedil:`ķ`,kgreen:`ĸ`,Lacute:`Ĺ`,lacute:`ĺ`,Lcedil:`Ļ`,lcedil:`ļ`,Lcaron:`Ľ`,lcaron:`ľ`,Lmidot:`Ŀ`,lmidot:`ŀ`,Lstrok:`Ł`,lstrok:`ł`,Nacute:`Ń`,nacute:`ń`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ENG:`Ŋ`,eng:`ŋ`,Omacr:`Ō`,omacr:`ō`,Odblac:`Ő`,odblac:`ő`,OElig:`Œ`,oelig:`œ`,Racute:`Ŕ`,racute:`ŕ`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,Sacute:`Ś`,sacute:`ś`,Scirc:`Ŝ`,scirc:`ŝ`,Scedil:`Ş`,scedil:`ş`,Scaron:`Š`,scaron:`š`,Tcedil:`Ţ`,tcedil:`ţ`,Tcaron:`Ť`,tcaron:`ť`,Tstrok:`Ŧ`,tstrok:`ŧ`,Utilde:`Ũ`,utilde:`ũ`,Umacr:`Ū`,umacr:`ū`,Ubreve:`Ŭ`,ubreve:`ŭ`,Uring:`Ů`,uring:`ů`,Udblac:`Ű`,udblac:`ű`,Uogon:`Ų`,uogon:`ų`,Wcirc:`Ŵ`,wcirc:`ŵ`,Ycirc:`Ŷ`,ycirc:`ŷ`,Zacute:`Ź`,zacute:`ź`,Zdot:`Ż`,zdot:`ż`,Zcaron:`Ž`,zcaron:`ž`},Ma={Alpha:`Α`,alpha:`α`,Beta:`Β`,beta:`β`,Gamma:`Γ`,gamma:`γ`,Delta:`Δ`,delta:`δ`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,varepsilon:`ϵ`,Zeta:`Ζ`,zeta:`ζ`,Eta:`Η`,eta:`η`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,vartheta:`ϑ`,Iota:`Ι`,iota:`ι`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,Lambda:`Λ`,lambda:`λ`,Mu:`Μ`,mu:`μ`,Nu:`Ν`,nu:`ν`,Xi:`Ξ`,xi:`ξ`,Omicron:`Ο`,omicron:`ο`,Pi:`Π`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,Tau:`Τ`,tau:`τ`,Upsilon:`Υ`,upsilon:`υ`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,varphi:`ϕ`,Chi:`Χ`,chi:`χ`,Psi:`Ψ`,psi:`ψ`,Omega:`Ω`,omega:`ω`,ohm:`Ω`,Gammad:`Ϝ`,gammad:`ϝ`,digamma:`ϝ`},Na={Afr:`𝔄`,afr:`𝔞`,Acy:`А`,acy:`а`,Bcy:`Б`,bcy:`б`,Vcy:`В`,vcy:`в`,Gcy:`Г`,gcy:`г`,Dcy:`Д`,dcy:`д`,IEcy:`Е`,iecy:`е`,IOcy:`Ё`,iocy:`ё`,ZHcy:`Ж`,zhcy:`ж`,Zcy:`З`,zcy:`з`,Icy:`И`,icy:`и`,Jcy:`Й`,jcy:`й`,Kcy:`К`,kcy:`к`,Lcy:`Л`,lcy:`л`,Mcy:`М`,mcy:`м`,Ncy:`Н`,ncy:`н`,Ocy:`О`,ocy:`о`,Pcy:`П`,pcy:`п`,Rcy:`Р`,rcy:`р`,Scy:`С`,scy:`с`,Tcy:`Т`,tcy:`т`,Ucy:`У`,ucy:`у`,Fcy:`Ф`,fcy:`ф`,KHcy:`Х`,khcy:`х`,TScy:`Ц`,tscy:`ц`,CHcy:`Ч`,chcy:`ч`,SHcy:`Ш`,shcy:`ш`,SHCHcy:`Щ`,shchcy:`щ`,HARDcy:`Ъ`,hardcy:`ъ`,Ycy:`Ы`,ycy:`ы`,SOFTcy:`Ь`,softcy:`ь`,Ecy:`Э`,ecy:`э`,YUcy:`Ю`,yucy:`ю`,YAcy:`Я`,yacy:`я`,DJcy:`Ђ`,djcy:`ђ`,GJcy:`Ѓ`,gjcy:`ѓ`,Jukcy:`Є`,jukcy:`є`,DScy:`Ѕ`,dscy:`ѕ`,Iukcy:`І`,iukcy:`і`,YIcy:`Ї`,yicy:`ї`,Jsercy:`Ј`,jsercy:`ј`,LJcy:`Љ`,ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},Pa={plus:`+`,minus:`−`,mnplus:`∓`,mp:`∓`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,dotminus:`∸`,minusd:`∸`,plusdo:`∔`,dotplus:`∔`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},Fa={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},Ia={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nwarrow:`↖`,nearrow:`↗`,searrow:`↘`,swarrow:`↙`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,rlhar:`⇌`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrarr:`↛`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},La={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Ra={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`",acute:`´`},za={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,euro:`€`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},Ba={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},Va={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vdash:`⊩`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`},{...ka,...Aa,...ja,...Ma,...Na,...Pa,...Fa,...Ia,...La,...Ra,...za,...Ba,...Va},Ha={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},Ua={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`}}));function Ga(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(Ya.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Ka(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}function qa(e){return!e||e===U?new Set([U]):e===G?new Set([G]):e===W?new Set([W]):Array.isArray(e)?new Set(e):new Set([U])}function Ja(e){if(!e)return{xmlVersion:1,onLevel:K.allow,nullLevel:K.remove};let t=e.xmlVersion===1.1?1.1:1,n=K[e.onNCR]??K.allow,r=K[e.nullNCR]??K.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,K.remove)}}var Ya,U,W,G,K,Xa,Za,Qa=e((()=>{Wa(),Ya=new Set(`!?\\\\/[]$%{}^&*()<>|+`),U=`external`,W=`base`,G=`all`,K=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Xa=new Set([9,10,13]),Za=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=qa(this._limit.applyLimitsTo??U),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Ka(Ha,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=Ja(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))Ga(t);this._externalMap=Ka(e)}addExternalEntity(e,t){Ga(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Ka(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a<r;){if(e.charCodeAt(a)!==38){a++;continue}let t=a+1;for(;t<r&&e.charCodeAt(t)!==59&&t-a<=32;)t++;if(t>=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=U);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=W}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i<r&&n.push(e.slice(i));let l=n.length===0?e:n.join(``);return this._postCheck(l,t)}_tierCounts(e){return this._limitTiers.has(G)?!0:this._limitTiers.has(e)}_resolveName(e){if(e in this._inputMap)return{value:this._inputMap[e],tier:U};if(e in this._externalMap)return{value:this._externalMap[e],tier:U};if(e in this._baseMap)return{value:this._baseMap[e],tier:W}}_classifyNCR(e){return e===0?this._ncrNullLevel:e>=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!Xa.has(e)?K.remove:-1}_applyNCRAction(e,t,n){switch(e){case K.allow:return String.fromCodePoint(n);case K.remove:return``;case K.leave:return;case K.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r<K.remove)return;let i=r===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,r);return this._applyNCRAction(i,e,n)}}})),$a=e((()=>{Qa(),Wa()}));function eo(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(R.some(e=>n===e.toLowerCase())||pa.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function to(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:to(!0)}var no,ro,io,ao=e((()=>{z(),no=e=>R.includes(e)?`__`+e:e,ro={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(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:no},io=function(e){let t=Object.assign({},ro,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&eo(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=no),t.processEntities=to(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t}})),oo,q,J=e((()=>{oo=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`,q=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][oo]={startIndex:t})}static getMetaDataSymbol(){return oo}}}));function Y(e,t,n){for(let r=0;r<t.length;r++)if(t[r]!==e[n+r+1])return!1;return!0}function X(e){if(L(e))return e;throw Error(`Invalid entity name ${e}`)}var so,Z,co=e((()=>{z(),so=class{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t<e.length;t++)if(e[t]===`<`&&!o){if(a&&Y(e,`!ENTITY`,t)){t+=7;let i,a;if([i,a,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),a.indexOf(`&`)===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&r>=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&Y(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&Y(e,`!ATTLIST`,t))t+=8;else if(a&&Y(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(Y(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=Z(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t])&&e[t]!==`"`&&e[t]!==`'`;)t++;let r=e.substring(n,t);if(X(r),t=Z(e,t),!this.suppressValidationErr){if(e.substring(t,t+6).toUpperCase()===`SYSTEM`)throw Error(`External entities are not supported`);if(e[t]===`%`)throw Error(`Parameter entities are not supported`)}let i=``;if([t,i]=this.readIdentifierVal(e,t,`entity`),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&i.length>this.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=Z(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let r=e.substring(n,t);!this.suppressValidationErr&&X(r),t=Z(e,t);let i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&i!==`SYSTEM`&&i!==`PUBLIC`)throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=Z(e,t);let a=null,o=null;if(i===`PUBLIC`)[t,a]=this.readIdentifierVal(e,t,`publicIdentifier`),t=Z(e,t),(e[t]===`"`||e[t]===`'`)&&([t,o]=this.readIdentifierVal(e,t,`systemIdentifier`));else if(i===`SYSTEM`&&([t,o]=this.readIdentifierVal(e,t,`systemIdentifier`),!this.suppressValidationErr&&!o))throw Error(`Missing mandatory system identifier for SYSTEM notation`);return{notationName:r,publicIdentifier:a,systemIdentifier:o,index:--t}}readIdentifierVal(e,t,n){let r=``,i=e[t];if(i!==`"`&&i!==`'`)throw Error(`Expected quoted string, found "${i}"`);t++;let a=t;for(;t<e.length&&e[t]!==i;)t++;if(r=e.substring(a,t),e[t]!==i)throw Error(`Unterminated ${n} value`);return t++,[t,r]}readElementExp(e,t){t=Z(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let r=e.substring(n,t);if(!this.suppressValidationErr&&!L(r))throw Error(`Invalid element name: "${r}"`);t=Z(e,t);let i=``;if(e[t]===`E`&&Y(e,`MPTY`,t))t+=4;else if(e[t]===`A`&&Y(e,`NY`,t))t+=2;else if(e[t]===`(`){t++;let n=t;for(;t<e.length&&e[t]!==`)`;)t++;if(i=e.substring(n,t),e[t]!==`)`)throw Error(`Unterminated content model`)}else if(!this.suppressValidationErr)throw Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:r,contentModel:i.trim(),index:t}}readAttlistExp(e,t){t=Z(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let r=e.substring(n,t);for(X(r),t=Z(e,t),n=t;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);if(!X(i))throw Error(`Invalid attribute name: "${i}"`);t=Z(e,t);let a=``;if(e.substring(t,t+8).toUpperCase()===`NOTATION`){if(a=`NOTATION`,t+=8,t=Z(e,t),e[t]!==`(`)throw Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&e[t]!==`)`;){let r=t;for(;t<e.length&&e[t]!==`|`&&e[t]!==`)`;)t++;let i=e.substring(r,t);if(i=i.trim(),!X(i))throw Error(`Invalid notation name: "${i}"`);n.push(i),e[t]===`|`&&(t++,t=Z(e,t))}if(e[t]!==`)`)throw Error(`Unterminated list of notations`);t++,a+=` (`+n.join(`|`)+`)`}else{let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;if(a+=e.substring(n,t),!this.suppressValidationErr&&![`CDATA`,`ID`,`IDREF`,`IDREFS`,`ENTITY`,`ENTITIES`,`NMTOKEN`,`NMTOKENS`].includes(a.toUpperCase()))throw Error(`Invalid attribute type: "${a}"`)}t=Z(e,t);let o=``;return e.substring(t,t+8).toUpperCase()===`#REQUIRED`?(o=`#REQUIRED`,t+=8):e.substring(t,t+7).toUpperCase()===`#IMPLIED`?(o=`#IMPLIED`,t+=7):[t,o]=this.readIdentifierVal(e,t,`ATTLIST`),{elementName:r,attributeName:i,attributeType:a,defaultValue:o,index:t}}},Z=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t}}));function lo(e,t={}){if(t=Object.assign({},_o,t),!e||typeof e!=`string`)return e;let n=e.trim();if(n.length===0||t.skipLike!==void 0&&t.skipLike.test(n))return e;if(n===`0`)return 0;if(t.hex&&ho.test(n))return po(n,16);if(!isFinite(n))return mo(e,Number(n),t);if(n.includes(`e`)||n.includes(`E`))return uo(e,n,t);{let r=go.exec(n);if(r){let i=r[1]||``,a=r[2],o=fo(r[3]),s=i?e[a.length+1]===`.`:e[a.length]===`.`;if(!t.leadingZeros&&(a.length>1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}function uo(e,t,n){if(!n.eNotation)return e;let r=t.match(vo);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function fo(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function po(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function mo(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}var ho,go,_o,vo,yo=e((()=>{ho=/^[-+]?0x[a-fA-F0-9]+$/,go=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,_o={hex:!0,leadingZeros:!0,decimalPoint:`.`,eNotation:!0,infinity:`original`},vo=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/}));function bo(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var xo=e((()=>{})),So,Co=e((()=>{So=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(r.trim()&&(t.push(this._parseSegment(r.trim())),r=``),t.push({type:`deep-wildcard`}),n+=2):(r.trim()&&t.push(this._parseSegment(r.trim())),r=``,n++):(r+=e[n],n++);return r.trim()&&t.push(this._parseSegment(r.trim())),t}_parseSegment(e){let t={type:`tag`},n=null,r=e,i=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(i&&(r=i[1]+i[3],i[2])){let e=i[2].slice(1,-1);e&&(n=e)}let a,o=r;if(r.includes(`::`)){let t=r.indexOf(`::`);if(a=r.substring(0,t).trim(),o=r.substring(t+2).trim(),!a)throw Error(`Invalid namespace in pattern: ${e}`)}let s,c=null;if(o.includes(`:`)){let e=o.lastIndexOf(`:`),t=o.substring(0,e).trim(),n=o.substring(e+1).trim();[`first`,`last`,`odd`,`even`].includes(n)||/^nth\(\d+\)$/.test(n)?(s=t,c=n):s=o}else s=o;if(!s)throw Error(`Invalid segment pattern: ${e}`);if(t.tag=s,a&&(t.namespace=a),n)if(n.includes(`=`)){let e=n.indexOf(`=`);t.attrName=n.substring(0,e).trim(),t.attrValue=n.substring(e+1).trim()}else t.attrName=n.trim();if(c){let e=c.match(/^nth\((\d+)\)$/);e?(t.position=`nth`,t.positionValue=parseInt(e[1],10)):t.position=c}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}})),wo,To=e((()=>{wo=class{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw TypeError(`ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.`);if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard())return this._deepWildcards.push(e),this;let t=e.length,n=e.segments[e.segments.length-1]?.tag;if(!n||n===`*`)this._wildcardByDepth.has(t)||this._wildcardByDepth.set(t,[]),this._wildcardByDepth.get(t).push(e);else{let r=`${t}:${n}`;this._byDepthAndTag.has(r)||this._byDepthAndTag.set(r,[]),this._byDepthAndTag.get(r).push(e)}return this}addAll(e){for(let t of e)this.add(t);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return this.findMatch(e)!==null}findMatch(e){let t=e.getDepth(),n=`${t}:${e.getCurrentTag()}`,r=this._byDepthAndTag.get(n);if(r){for(let t=0;t<r.length;t++)if(e.matches(r[t]))return r[t]}let i=this._wildcardByDepth.get(t);if(i){for(let t=0;t<i.length;t++)if(e.matches(i[t]))return i[t]}for(let t=0;t<this._deepWildcards.length;t++)if(e.matches(this._deepWildcards[t]))return this._deepWildcards[t];return null}}})),Eo,Do,Oo=e((()=>{Eo=class{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){let e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},Do=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Eo(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}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(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.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(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(!this._matchSegment(e[t],this.path[t],t===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}}})),ko=e((()=>{Co(),Oo(),To()}));function Ao(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function jo(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}function Mo(e,t,n,r,i,a,o){let s=this.options;if(e!==void 0&&(s.trimValues&&!r&&(e=e.trim()),e.length>0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?Uo(e,s.parseTagValue,s.numberParseOptions):e}}function No(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}function Po(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=ca(e,qo),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e<a;e++){let t=this.resolveNameSpace(r[e][1]),a=r[e][4];if(t.length&&a!==void 0){let r=a;i.trimValues&&(r=r.trim()),r=this.replaceEntitiesValue(r,n,this.readonlyMatcher),s[e]=r,l[t]=r,c=!0}}c&&typeof t==`object`&&t.updateCurrent&&t.updateCurrent(l);let u=i.jPath?t.toString():this.readonlyMatcher,d=!1;for(let e=0;e<a;e++){let t=this.resolveNameSpace(r[e][1]);if(this.ignoreAttributesFn(t,u))continue;let n=i.attributeNamePrefix+t;if(t.length)if(i.transformAttributeName&&(n=i.transformAttributeName(n)),n=Go(n,i),r[e][4]!==void 0){let r=s[e],a=i.attributeValueProcessor(t,r,u);a==null?o[n]=r:typeof a!=typeof r||a!==r?o[n]=a:o[n]=Uo(r,i.parseAttributeValue,i.numberParseOptions),d=!0}else i.allowBooleanAttributes&&(o[n]=!0,d=!0)}if(!d)return;if(i.attributesGroupName){let e={};return e[i.attributesGroupName]=o,e}return o}}function Fo(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function Io(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function Lo(e,t,n,r){return e&&(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),e=``),e}function Ro(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function zo(e,t,n=`>`){let r=0,i=[],a=e.length,o=n.charCodeAt(0),s=n.length>1?n.charCodeAt(1):-1;for(let n=t;n<a;n++){let t=e.charCodeAt(n);if(r)t===r&&(r=0);else if(t===34||t===39)r=t;else if(t===o)if(s!==-1){if(e.charCodeAt(n+1)===s)return{data:String.fromCharCode(...i),index:n}}else return{data:String.fromCharCode(...i),index:n};else if(t===9){i.push(32);continue}i.push(t)}}function Q(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw Error(r);return i+t.length-1}function Bo(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw Error(r);return i}function Vo(e,t,n,r=`>`){let i=zo(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function Ho(e,t,n){let r=n,i=1,a=e.length;for(;n<a;n++)if(e[n]===`<`){let a=e.charCodeAt(n+1);if(a===47){let a=Bo(e,`>`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=Q(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Q(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=Q(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=Vo(e,n,`>`);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function Uo(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:lo(e,n)}else if(la(e))return e;else return``}function Wo(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=Go(t,r),{tagName:t,tagExp:n}}function Go(e,t){if(pa.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return R.includes(e)?t.onDangerousProperty(e):e}var Ko,qo,Jo,Yo=e((()=>{z(),J(),co(),yo(),xo(),ko(),$a(),Ko=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Jo,this.parseTextData=Mo,this.resolveNameSpace=No,this.buildAttributesMap=Po,this.isItStopNode=Ro,this.replaceEntitiesValue=Io,this.readStopNodeData=Ho,this.saveTextToParentTag=Lo,this.addChild=Fo,this.ignoreAttributesFn=bo(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let t={...Ha};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?t=this.options.htmlEntities:this.options.htmlEntities===!0&&(t={...Ua,...za}),this.entityDecoder=new Za({namedEntities:t,numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Do,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new wo;let n=this.options.stopNodes;if(n&&n.length>0){for(let e=0;e<n.length;e++){let t=n[e];typeof t==`string`?this.stopNodeExpressionsSet.add(new So(t)):t instanceof So&&this.stopNodeExpressionsSet.add(t)}this.stopNodeExpressionsSet.seal()}}},qo=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`),Jo=function(e){e=e.replace(/\r\n?/g,`
|
|
4
|
+
`);let t=new q(`!xml`),n=t,r=``;this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,a=new so(i.processEntities),o=e.length;for(let s=0;s<o;s++)if(e[s]===`<`){let c=e.charCodeAt(s+1);if(c===47){let t=Q(e,`>`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=Wo(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=Vo(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let a=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(a){let e=a[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new q(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=a),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=Q(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=Q(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??(o=``),i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=Vo(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=Wo(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,ee;ee=jo(l),c!==t.tagname&&this.matcher.push(c,{},ee),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&Ao(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let g=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new q(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,g)}else{if(m){({tagName:c,tagExp:u}=Wo(i.transformTagName,c,u,i));let e=new q(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,g),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new q(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,g),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new q(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,g),n=e}r=``,s=f}}}else r+=e[s];return t.child}}));function Xo(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function Zo(e,t,n,r){return Qo(e,t,n,r)}function Qo(e,t,n,r){let i,a={};for(let o=0;o<e.length;o++){let s=e[o],c=$o(s);if(c!==void 0&&c!==t.textNodeName){let e=Xo(s[`:@`]||{},t.attributeNamePrefix);n.push(c,e)}if(c===t.textNodeName)i===void 0?i=s[c]:i+=``+s[c];else if(c===void 0)continue;else if(s[c]){let e=Qo(s[c],t,n,r),i=ts(e,t);if(s[`:@`]?es(e,s[`:@`],r,t):Object.keys(e).length===1&&e[t.textNodeName]!==void 0&&!t.alwaysCreateTextNode?e=e[t.textNodeName]:Object.keys(e).length===0&&(t.alwaysCreateTextNode?e[t.textNodeName]=``:e=``),s[$]!==void 0&&typeof e==`object`&&e&&(e[$]=s[$]),a[c]!==void 0&&Object.prototype.hasOwnProperty.call(a,c))Array.isArray(a[c])||(a[c]=[a[c]]),a[c].push(e);else{let n=t.jPath?r.toString():r;t.isArray(c,n,i)?a[c]=[e]:a[c]=e}c!==void 0&&c!==t.textNodeName&&n.pop()}}return typeof i==`string`?i.length>0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function $o(e){let t=Object.keys(e);for(let e=0;e<t.length;e++){let n=t[e];if(n!==`:@`)return n}}function es(e,t,n,r){if(t){let i=Object.keys(t),a=i.length;for(let o=0;o<a;o++){let a=i[o],s=a.startsWith(r.attributeNamePrefix)?a.substring(r.attributeNamePrefix.length):a,c=r.jPath?n.toString()+`.`+s:n;r.isArray(a,c,!0,!0)?e[a]=[t[a]]:e[a]=t[a]}}}function ts(e,t){let{textNodeName:n}=t,r=Object.keys(e).length;return!!(r===0||r===1&&(e[n]||typeof e[n]==`boolean`||e[n]===0))}var $,ns=e((()=>{J(),$=q.getMetaDataSymbol()})),rs,is=e((()=>{ao(),Yo(),ns(),Oa(),J(),rs=class{constructor(e){this.externalEntities={},this.options=io(e)}parse(e,t){if(typeof e!=`string`&&e.toString)e=e.toString();else if(typeof e!=`string`)throw Error(`XML data is accepted in String or Bytes[] form.`);if(t){t===!0&&(t={});let n=ma(e,t);if(n!==!0)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}let n=new Ko(this.options);n.entityDecoder.setExternalEntities(this.externalEntities);let r=n.parseXml(e);return this.options.preserveOrder||r===void 0?r:Zo(r,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(t.indexOf(`&`)!==-1)throw Error(`Entity value can't have '&'`);if(e.indexOf(`&`)!==-1||e.indexOf(`;`)!==-1)throw Error(`An entity must be set without '&' and ';'. Eg. use '#xD' for '
'`);if(t===`&`)throw Error(`An entity with value '&' is not permitted`);this.externalEntities[e]=t}static getMetaDataSymbol(){return q.getMetaDataSymbol()}}})),as=e((()=>{is()}));function os(e){return ss.parse(e,!0)}var ss,cs=e((()=>{as(),ss=new rs({attributeNamePrefix:``,processEntities:{enabled:!0,maxTotalExpansions:1/0},htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(e,t)=>t.trim()===``&&t.includes(`
|
|
5
|
+
`)?``:void 0,maxNestedTags:1/0})})),ls=e((()=>{sa(),oa(),cs()})),us,ds=e((()=>{ls(),b(),x(),w(),g(),F(),Ii(),t(),us=class extends P{constructor(e){super(),n(this,`settings`,void 0),n(this,`stringDeserializer`,void 0),this.settings=e,this.stringDeserializer=new ue(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,n){let r=_.of(e),i=r.getMemberSchemas();if(r.isStructSchema()&&r.isMemberSchema()&&Object.values(i).find(e=>!!e.getMemberTraits().eventPayload)){let e={},n=Object.keys(i)[0];return i[n].isBlobSchema()?e[n]=t:e[n]=this.read(i[n],t),e}let a=(this.serdeContext?.utf8Encoder??p)(t),o=this.parseXml(a);return this.readSchema(e,n?o[n]:o)}readSchema(e,t){let n=_.of(e);if(n.isUnitSchema())return;let r=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t))return this.readSchema(n,[t]);if(t==null)return t;if(typeof t==`object`){let e=!!r.xmlFlattened;if(n.isListSchema()){let r=n.getValueSchema(),i=[],a=r.getMergedTraits().xmlName??`member`,o=e?t:(t[0]??t)[a];if(o==null)return i;let s=Array.isArray(o)?o:[o];for(let e of s)i.push(this.readSchema(r,e));return i}let i={};if(n.isMapSchema()){let r=n.getKeySchema(),a=n.getValueSchema(),o;o=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];let s=r.getMergedTraits().xmlName??`key`,c=a.getMergedTraits().xmlName??`value`;for(let e of o){let t=e[s],n=e[c];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){let e=n.isUnionSchema(),r;e&&(r=new Fi(t,i));for(let[a,o]of n.structIterator()){let n=o.getMergedTraits(),s=n.httpPayload?n.xmlName??o.getName():o.getMemberTraits().xmlName??a;e&&r.mark(s),t[s]!=null&&(i[a]=this.readSchema(o,t[s]))}return e&&r.writeUnknown(),i}if(n.isDocumentSchema())return t;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=os(e)}catch(t){throw t&&typeof t==`object`&&Object.defineProperty(t,`$responseBodyText`,{value:e}),t}let n=`#text`,r=Object.keys(t)[0],i=t[r];return i[n]&&(i[r]=i[n],delete i[n]),Ze(i)}return{}}}})),fs,ps=e((()=>{b(),x(),v(),w(),ne(),F(),t(),fs=class extends P{constructor(e){super(),n(this,`settings`,void 0),n(this,`buffer`,void 0),this.settings=e}write(e,t,n=``){this.buffer===void 0&&(this.buffer=``);let r=_.of(e);if(n&&!n.endsWith(`.`)&&(n+=`.`),r.isBlobSchema())(typeof t==`string`||t instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??re)(t)));else if(r.isBooleanSchema()||r.isNumericSchema()||r.isStringSchema())t==null?r.isIdempotencyToken()&&(this.writeKey(n),this.writeValue(ce())):(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigIntegerSchema())t!=null&&(this.writeKey(n),this.writeValue(String(t)));else if(r.isBigDecimalSchema())t!=null&&(this.writeKey(n),this.writeValue(t instanceof y?t.string:String(t)));else if(r.isTimestampSchema()){if(t instanceof Date)switch(this.writeKey(n),oe(r,this.settings)){case 5:this.writeValue(t.toISOString().replace(`.000Z`,`Z`));break;case 6:this.writeValue(me(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}else if(r.isDocumentSchema())Array.isArray(t)?this.write(79,t,n):t instanceof Date?this.write(4,t,n):t instanceof Uint8Array?this.write(21,t,n):t&&typeof t==`object`?this.write(143,t,n):(this.writeKey(n),this.writeValue(String(t)));else if(r.isListSchema()){if(Array.isArray(t))if(t.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(``));else{let e=r.getValueSchema(),i=this.settings.flattenLists||r.getMergedTraits().xmlFlattened,a=1;for(let r of t){if(r==null)continue;let t=e.getMergedTraits(),o=this.getKey(`member`,t.xmlName,t.ec2QueryName),s=i?`${n}${a}`:`${n}${o}.${a}`;this.write(e,r,s),++a}}}else if(r.isMapSchema()){if(t&&typeof t==`object`){let e=r.getKeySchema(),i=r.getValueSchema(),a=r.getMergedTraits().xmlFlattened,o=1;for(let r in t){let s=t[r];if(s==null)continue;let c=e.getMergedTraits(),l=this.getKey(`key`,c.xmlName,c.ec2QueryName),u=a?`${n}${o}.${l}`:`${n}entry.${o}.${l}`,d=i.getMergedTraits(),f=this.getKey(`value`,d.xmlName,d.ec2QueryName),p=a?`${n}${o}.${f}`:`${n}entry.${o}.${f}`;this.write(e,r,u),this.write(i,s,p),++o}}}else if(r.isStructSchema()){if(t&&typeof t==`object`){let e=!1;for(let[i,a]of r.structIterator()){if(t[i]==null&&!a.isIdempotencyToken())continue;let r=a.getMergedTraits(),o=this.getKey(i,r.xmlName,r.ec2QueryName,`struct`),s=`${n}${o}`;this.write(a,t[i],s),e=!0}if(!e&&r.isUnionSchema()){let{$unknown:e}=t;if(Array.isArray(e)){let[t,r]=e,i=`${n}${t}`;this.write(15,r,i)}}}}else if(!r.isUnitSchema())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 e=this.buffer;return delete this.buffer,e}getKey(e,t,n,r){let{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n)return n;let o=t??e;return a&&r===`struct`?o[0].toUpperCase()+o.slice(1):o}writeKey(e){e.endsWith(`.`)&&(e=e.slice(0,e.length-1)),this.buffer+=`&${te(e)}=`}writeValue(e){this.buffer+=te(e)}}})),ms,hs=e((()=>{b(),x(),Mi(),ds(),ps(),t(),ms=class extends pe{constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),n(this,`options`,void 0),n(this,`serializer`,void 0),n(this,`deserializer`,void 0),n(this,`mixin`,new ji),this.options=e;let t={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new fs(t),this.deserializer=new us(t)}getShapeId(){return`aws.protocols#awsQuery`}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw Error(`AWSQuery protocol has no payload codec.`)}async serializeRequest(e,t,n){let r=await super.serializeRequest(e,t,n);return r.path.endsWith(`/`)||(r.path+=`/`),r.headers[`content-type`]=`application/x-www-form-urlencoded`,(ie(e.input)===`unit`||!r.body)&&(r.body=``),r.body=`Action=${e.name.split(`#`)[1]??e.name}&Version=${this.options.version}`+r.body,r.body.endsWith(`&`)&&(r.body=r.body.slice(-1)),r}async deserializeResponse(e,t,n){let r=this.deserializer,i=_.of(e.output),a={};if(n.statusCode>=300){let i=await ve(n.body,t);i.byteLength>0&&Object.assign(a,await r.read(15,i)),await this.handleError(e,t,n,a,this.deserializeMetadata(n))}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let o=e.name.split(`#`)[1]??e.name,s=i.isStructSchema()&&this.useNestedResult()?o+`Result`:void 0,c=await ve(n.body,t);return c.byteLength>0&&Object.assign(a,await r.read(i,c,s)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,t,n,r,i){let a=this.loadQueryErrorCode(n,r)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let o=this.loadQueryError(r)??{},s=this.loadQueryErrorMessage(r);o.message=s,o.Error={Type:o.Type,Code:o.Code,Message:s};let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,o,i,this.mixin.findQueryCompatibleError),u=_.of(c),d=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)(s),f={Type:o.Error.Type,Code:o.Error.Code,Error:o.Error};for(let[e,t]of u.structIterator()){let n=t.getMergedTraits().xmlName??e,i=o[n]??r[n];f[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(d,l,{$fault:u.getMergedTraits().error,message:s},f),r)}loadQueryErrorCode(e,t){let n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return`NotFound`}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??`Unknown`}getDefaultContentType(){return`application/x-www-form-urlencoded`}}})),gs=e((()=>{})),_s=e((()=>{})),vs=e((()=>{})),ys=e((()=>{})),bs=e((()=>{})),xs=e((()=>{})),Ss=e((()=>{Ni(),Pi(),ta(),na(),ea(),ia(),$i(),Ki(),Zi(),aa(),Wi(),gs(),hs(),_s(),ps(),xs(),bs(),ds(),ys(),vs()})),Cs,ws,Ts=e((()=>{Cs=e=>({setRegion(t){e.region=t},region(){return e.region}}),ws=e=>({region:e.region()})})),Es=e((()=>{}));function Ds(e={}){return C({...Te,async default(){return Os.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.`),`us-east-1`}},{...ke,...e})}var Os,ks=e((()=>{je(),qe(),Os={silence:!1}})),As=e((()=>{Ts(),Es(),ks()}));export{fn as A,dr as C,Nn as D,Mn as E,St as F,bt as I,gt as L,Lt as M,Ft as N,On as O,Nt as P,_t as R,hr as S,A as T,Vr as _,Ss as a,Er as b,Ai as c,gi as d,mi as f,oi as g,ui as h,ws as i,en as j,En as k,Ei as l,fi as m,Ds as n,ms as o,hi as p,Cs as r,ra as s,As as t,vi as u,zr as v,lr as w,Cr as x,Sr as y,pt as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";var t,n,r=e((()=>{t=e=>encodeURIComponent(e).replace(/[!'()*]/g,n),n=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`})),i=e((()=>{})),a=e((()=>{r(),i()}));function o(e){let n=[];for(let r of Object.keys(e).sort()){let i=e[r];if(r=t(r),Array.isArray(i))for(let e=0,a=i.length;e<a;e++)n.push(`${r}=${t(i[e])}`);else{let e=r;(i||typeof i==`string`)&&(e+=`=${t(i)}`),n.push(e)}}return n.join(`&`)}var s=e((()=>{a()}));export{t as i,s as n,a as r,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,t}from"./dist-es-HVQrM0oE.js";t();export{e as fromEnv};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{h as t,t as n}from"./client-CPn1wQyc.js";import{o as r,t as i}from"./dist-es-CUZBYppo.js";import{n as a,t as o}from"./dist-es-fjXft-jH.js";import{readFileSync as s}from"node:fs";var c,l=e((()=>{c=e=>async t=>{e.logger?.debug(`@aws-sdk/credential-provider-web-identity - fromWebToken`);let{roleArn:n,roleSessionName:r,webIdentityToken:i,providerId:a,policyArns:o,policy:s,durationSeconds:c}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:n}=await import(`./sts-BDFJ-6QE.js`);l=n({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:n,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:i,ProviderId:a,PolicyArns:o,Policy:s,DurationSeconds:c})}})),u,d,f,p,m=e((()=>{n(),i(),o(),l(),u=`AWS_WEB_IDENTITY_TOKEN_FILE`,d=`AWS_ROLE_ARN`,f=`AWS_ROLE_SESSION_NAME`,p=(e={})=>async n=>{e.logger?.debug(`@aws-sdk/credential-provider-web-identity - fromTokenFile`);let i=e?.webIdentityTokenFile??process.env[u],o=e?.roleArn??process.env[d],l=e?.roleSessionName??process.env[f];if(!i||!o)throw new r(`Web identity configuration not specified`,{logger:e.logger});let p=await c({...e,webIdentityToken:a?.getTokenRecord?.()[i]??s(i,{encoding:`ascii`}),roleArn:o,roleSessionName:l})(n);return i===process.env[u]&&t(p,`CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN`,`h`),p}})),h=e((()=>{m(),l()}));export{p as n,c as r,h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-80gRi2ZW.js";import{a as r,i,t as a}from"./dist-es-C41b_0B5.js";import{A as ee,C as te,D as o,E as s,F as ne,I as c,L as re,M as ie,N as ae,O as oe,P as se,R as ce,S as l,T as le,_ as ue,a as de,b as fe,c as pe,d as me,f as he,g as ge,h as _e,i as ve,j as ye,k as be,l as xe,m as Se,o as Ce,p as we,r as Te,t as Ee,u as De,v as Oe,w as u,x as ke,y as Ae,z as je}from"./dist-es-Cbf0_D8d.js";import{C as Me,S as Ne,c as Pe,d as Fe,f as Ie,g as Le,n as Re,o as ze,s as Be,t as Ve,u as He,v as Ue}from"./httpAuthSchemes-Wq4XWeLL.js";import{n as We,r as Ge,t as Ke}from"./dist-es-Bu_Fshi1.js";import{i as qe,n as Je,t as Ye}from"./dist-es-BVGppqE4.js";import{I as Xe,L as Ze,N as Qe,P as $e,R as et,v as tt,x as nt,y as rt,z as it}from"./protocols-CAyQOlkr.js";import{n as at,t as ot}from"./dist-es-CSfI8B8l.js";import{a as st,d as ct,g as lt,h as ut,i as dt,m as ft,n as pt,o as mt,r as ht,t as gt,u as _t}from"./dist-es-OVleIB54.js";import{g as vt,i as yt,p as bt,t as xt}from"./client-CPn1wQyc.js";import{n as d,t as St}from"./dist-es-zjcbuB72.js";import{a as Ct,c as wt,d as f,f as Tt,i as Et,n as Dt,o as Ot,s as kt,t as p,u as At}from"./dist-es-UAs0rdXg.js";import{i as jt,t as Mt}from"./dist-es-BoIJpncb.js";import{n as Nt,t as Pt}from"./dist-es-DqZAh3nG.js";var m,h,g,Ft,_,v,y,b,It,Lt,Rt,zt,Bt,x,S,C,Vt,Ht,Ut,w,Wt,Gt,Kt=e((()=>{_t(),m=`ref`,h=-1,g=!0,Ft=`isSet`,_=`PartitionResult`,v=`booleanEquals`,y=`stringEquals`,b=`getAttr`,It=`us-east-1`,Lt=`sigv4`,Rt=`sts`,zt=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,Bt={[m]:`Endpoint`},x={[m]:`Region`},S={[m]:_},C={},Vt=[x],Ht={conditions:[[Ft,[Bt]],[Ft,Vt],[`aws.partition`,Vt,_],[v,[{[m]:`UseFIPS`},g]],[v,[{[m]:`UseDualStack`},g]],[y,[x,`aws-global`]],[v,[{[m]:`UseGlobalEndpoint`},g]],[y,[x,`eu-central-1`]],[v,[{fn:b,argv:[S,`supportsDualStack`]},g]],[v,[{fn:b,argv:[S,`supportsFIPS`]},g]],[y,[x,`ap-south-1`]],[y,[x,`eu-north-1`]],[y,[x,`eu-west-1`]],[y,[x,`eu-west-2`]],[y,[x,`eu-west-3`]],[y,[x,`sa-east-1`]],[y,[x,It]],[y,[x,`us-east-2`]],[y,[x,`us-west-2`]],[y,[x,`us-west-1`]],[y,[x,`ca-central-1`]],[y,[x,`ap-southeast-1`]],[y,[x,`ap-northeast-1`]],[y,[x,`ap-southeast-2`]],[y,[{fn:b,argv:[S,`name`]},`aws-us-gov`]]],results:[[h],[`https://sts.amazonaws.com`,{authSchemes:[{name:Lt,signingName:Rt,signingRegion:It}]}],[zt,{authSchemes:[{name:Lt,signingName:Rt,signingRegion:`{Region}`}]}],[h,`Invalid Configuration: FIPS and custom endpoint are not supported`],[h,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[Bt,C],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,C],[h,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,C],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,C],[h,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,C],[h,`DualStack is enabled but this partition does not support DualStack`],[zt,C],[h,`Invalid Configuration: Missing Region`]]},Ut=2,w=1e8,Wt=new Int32Array([-1,1,-1,0,30,3,1,4,w+14,2,5,w+14,3,25,6,4,24,7,5,w+1,8,6,9,w+13,7,w+1,10,10,w+1,11,11,w+1,12,12,w+1,13,13,w+1,14,14,w+1,15,15,w+1,16,16,w+1,17,17,w+1,18,18,w+1,19,19,w+1,20,20,w+1,21,21,w+1,22,22,w+1,23,23,w+1,w+2,8,w+11,w+12,4,28,26,9,27,w+10,24,w+8,w+9,8,29,w+7,9,w+6,w+7,3,w+3,31,4,w+4,w+5]),Gt=lt.from(Wt,Ut,Ht.conditions,Ht.results)})),qt,Jt,Yt=e((()=>{ee(),_t(),Kt(),qt=new ut({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),Jt=(e,t={})=>qt.get(e,()=>ct(Gt,{endpointParams:e,logger:t.logger})),ft.aws=ye}));function Xt(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function T(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Zt(e){return{schemeId:`smithy.api#noAuth`}}var Qt,$t,en,tn,nn,rn,an,on,sn=e((()=>{Ve(),Pt(),l(),Ke(),Yt(),Va(),Qt=e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=Ge(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let ee=await le(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,ee)},$t=async(e,t,n)=>({operation:Ge(t).operation,region:await We(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),en=Qt($t),tn=(e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:ee={},...te}=e,o=t.toLowerCase();t!==o&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${o}'`);let s;if(o===`sigv4a`){s=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(Nt.sigv4aDependency()===`none`&&e)continue}else if(o.startsWith(`sigv4`))s=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${o}'`);let ne=n[s];if(!ne)throw Error(`Could not find HttpAuthOption create function for '${s}'`);let c=ne(r);c.schemeId=s,c.signingProperties={...c.signingProperties||{},...te,...ee},a.push(c)}return a},nn=e=>{let t=[];switch(e.operation){case`AssumeRoleWithSAML`:t.push(Zt(e)),t.push(T(e));break;case`AssumeRoleWithWebIdentity`:t.push(Zt(e)),t.push(T(e));break;default:t.push(Xt(e)),t.push(T(e))}return t},rn=tn(Jt,nn,{"aws.auth#sigv4":Xt,"aws.auth#sigv4a":T,"smithy.api#noAuth":Zt}),an=e=>Object.assign(e,{stsClientCtor:$}),on=e=>{let t=Be(Re(an(e)));return Object.assign(t,{authSchemePreference:We(e.authSchemePreference??[])})}})),cn,E,D=e((()=>{cn=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),E={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn=e((()=>{ln=`@aws-sdk/client-sts`,un=`AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native`,dn=`3.1037.0`,fn={build:`concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline client-sts`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`premove ./dist-types tsconfig.types.tsbuildinfo && 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`,"extract:docs":`api-extractor run --local`,"generate:client":`node ../../scripts/generate-clients/single-service --solo sts`,test:`yarn g:vitest run`,"test:e2e":`yarn g:vitest run -c vitest.config.e2e.mts --mode development`,"test:e2e:watch":`yarn g:vitest watch -c vitest.config.e2e.mts`,"test:index":`tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs`,"test:integration":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:integration:watch":`yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts`,"test:watch":`yarn g:vitest watch`},pn=`./dist-cjs/index.js`,mn=`./dist-types/index.d.ts`,hn=`./dist-es/index.js`,gn={"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.974.5`,"@aws-sdk/credential-provider-node":`^3.972.36`,"@aws-sdk/middleware-host-header":`^3.972.10`,"@aws-sdk/middleware-logger":`^3.972.10`,"@aws-sdk/middleware-recursion-detection":`^3.972.11`,"@aws-sdk/middleware-user-agent":`^3.972.35`,"@aws-sdk/region-config-resolver":`^3.972.13`,"@aws-sdk/signature-v4-multi-region":`^3.996.22`,"@aws-sdk/types":`^3.973.8`,"@aws-sdk/util-endpoints":`^3.996.8`,"@aws-sdk/util-user-agent-browser":`^3.972.10`,"@aws-sdk/util-user-agent-node":`^3.973.21`,"@smithy/config-resolver":`^4.4.17`,"@smithy/core":`^3.23.17`,"@smithy/fetch-http-handler":`^5.3.17`,"@smithy/hash-node":`^4.2.14`,"@smithy/invalid-dependency":`^4.2.14`,"@smithy/middleware-content-length":`^4.2.14`,"@smithy/middleware-endpoint":`^4.4.32`,"@smithy/middleware-retry":`^4.5.5`,"@smithy/middleware-serde":`^4.2.20`,"@smithy/middleware-stack":`^4.2.14`,"@smithy/node-config-provider":`^4.3.14`,"@smithy/node-http-handler":`^4.6.1`,"@smithy/protocol-http":`^5.3.14`,"@smithy/smithy-client":`^4.12.13`,"@smithy/types":`^4.14.1`,"@smithy/url-parser":`^4.2.14`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.49`,"@smithy/util-defaults-mode-node":`^4.2.54`,"@smithy/util-endpoints":`^3.4.2`,"@smithy/util-middleware":`^4.2.14`,"@smithy/util-retry":`^4.3.4`,"@smithy/util-utf8":`^4.2.2`,tslib:`^2.6.2`},_n={"@smithy/snapshot-testing":`^2.0.8`,"@tsconfig/node20":`20.1.8`,"@types/node":`^20.14.8`,concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`,vitest:`^4.0.17`},vn={node:`>=20.0.0`},yn={"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},bn=[`dist-*/**`],xn={name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},Sn=`Apache-2.0`,Cn={"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.browser`},wn=`https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts`,Tn={type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`clients/client-sts`},En={name:ln,description:un,version:dn,scripts:fn,main:pn,types:mn,module:hn,sideEffects:!1,dependencies:gn,devDependencies:_n,engines:vn,typesVersions:yn,files:bn,author:xn,license:Sn,browser:Cn,"react-native":{"./dist-es/runtimeConfig":`./dist-es/runtimeConfig.native`},homepage:wn,repository:Tn}})),O,On=e((()=>{p(),O=class e extends wt{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn=e((()=>{On(),t(),kn=class e extends O{constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),n(this,`name`,`ExpiredTokenException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},An=class e extends O{constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),n(this,`name`,`MalformedPolicyDocumentException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},jn=class e extends O{constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),n(this,`name`,`PackedPolicyTooLargeException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Mn=class e extends O{constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),n(this,`name`,`RegionDisabledException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Nn=class e extends O{constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),n(this,`name`,`IDPRejectedClaimException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Pn=class e extends O{constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),n(this,`name`,`InvalidIdentityTokenException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Fn=class e extends O{constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),n(this,`name`,`IDPCommunicationErrorException`),n(this,`$fault`,`client`),n(this,`$retryable`,{}),Object.setPrototypeOf(this,e.prototype)}},In=class e extends O{constructor(t){super({name:`InvalidAuthorizationMessageException`,$fault:`client`,...t}),n(this,`name`,`InvalidAuthorizationMessageException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Ln=class e extends O{constructor(t){super({name:`ExpiredTradeInTokenException`,$fault:`client`,...t}),n(this,`name`,`ExpiredTradeInTokenException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Rn=class e extends O{constructor(t){super({name:`JWTPayloadSizeExceededException`,$fault:`client`,...t}),n(this,`name`,`JWTPayloadSizeExceededException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},zn=class e extends O{constructor(t){super({name:`OutboundWebIdentityFederationDisabledException`,$fault:`client`,...t}),n(this,`name`,`OutboundWebIdentityFederationDisabledException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},Bn=class e extends O{constructor(t){super({name:`SessionDurationEscalationException`,$fault:`client`,...t}),n(this,`name`,`SessionDurationEscalationException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}}})),k,A,Hn,Un,Wn,Gn,Kn,qn,Jn,j,Yn,Xn,Zn,Qn,$n,er,tr,nr,M,N,rr,ir,ar,or,sr,P,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,F,I,Wr,Gr,Kr,qr,Jr,Yr,Xr,L,Zr,Qr,R,$r,ei,ti,ni,ri,ii,ai,oi,si,z,ci,li,ui,B,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,V,H,Si,U,W,G,Ci,wi,Ti,Ei,Di,K,Oi,ki,q,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,J,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,Y,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,X,ba,Z,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Q=e((()=>{tt(),Vn(),On(),k=`Arn`,A=`AccessKeyId`,Hn=`AssumedPrincipal`,Un=`AssumeRole`,Wn=`AssumedRoleId`,Gn=`AssumeRoleRequest`,Kn=`AssumeRoleResponse`,qn=`AssumeRootRequest`,Jn=`AssumeRootResponse`,j=`AssumedRoleUser`,Yn=`AssumeRoleWithSAML`,Xn=`AssumeRoleWithSAMLRequest`,Zn=`AssumeRoleWithSAMLResponse`,Qn=`AssumeRoleWithWebIdentity`,$n=`AssumeRoleWithWebIdentityRequest`,er=`AssumeRoleWithWebIdentityResponse`,tr=`AssumeRoot`,nr=`Account`,M=`Audience`,N=`Credentials`,rr=`ContextAssertion`,ir=`DecodeAuthorizationMessage`,ar=`DecodeAuthorizationMessageRequest`,or=`DecodeAuthorizationMessageResponse`,sr=`DecodedMessage`,P=`DurationSeconds`,cr=`Expiration`,lr=`ExternalId`,ur=`EncodedMessage`,dr=`ExpiredTokenException`,fr=`ExpiredTradeInTokenException`,pr=`FederatedUser`,mr=`FederatedUserId`,hr=`GetAccessKeyInfo`,gr=`GetAccessKeyInfoRequest`,_r=`GetAccessKeyInfoResponse`,vr=`GetCallerIdentity`,yr=`GetCallerIdentityRequest`,br=`GetCallerIdentityResponse`,xr=`GetDelegatedAccessToken`,Sr=`GetDelegatedAccessTokenRequest`,Cr=`GetDelegatedAccessTokenResponse`,wr=`GetFederationToken`,Tr=`GetFederationTokenRequest`,Er=`GetFederationTokenResponse`,Dr=`GetSessionToken`,Or=`GetSessionTokenRequest`,kr=`GetSessionTokenResponse`,Ar=`GetWebIdentityToken`,jr=`GetWebIdentityTokenRequest`,Mr=`GetWebIdentityTokenResponse`,Nr=`Issuer`,Pr=`InvalidAuthorizationMessageException`,Fr=`IDPCommunicationErrorException`,Ir=`IDPRejectedClaimException`,Lr=`InvalidIdentityTokenException`,Rr=`JWTPayloadSizeExceededException`,zr=`Key`,Br=`MalformedPolicyDocumentException`,Vr=`Name`,Hr=`NameQualifier`,Ur=`OutboundWebIdentityFederationDisabledException`,F=`Policy`,I=`PolicyArns`,Wr=`PrincipalArn`,Gr=`ProviderArn`,Kr=`ProvidedContexts`,qr=`ProvidedContextsListType`,Jr=`ProvidedContext`,Yr=`PolicyDescriptorType`,Xr=`ProviderId`,L=`PackedPolicySize`,Zr=`PackedPolicyTooLargeException`,Qr=`Provider`,R=`RoleArn`,$r=`RegionDisabledException`,ei=`RoleSessionName`,ti=`Subject`,ni=`SigningAlgorithm`,ri=`SecretAccessKey`,ii=`SAMLAssertion`,ai=`SAMLAssertionType`,oi=`SessionDurationEscalationException`,si=`SubjectFromWebIdentityToken`,z=`SourceIdentity`,ci=`SerialNumber`,li=`SubjectType`,ui=`SessionToken`,B=`Tags`,di=`TokenCode`,fi=`TradeInToken`,pi=`TargetPrincipal`,mi=`TaskPolicyArn`,hi=`TransitiveTagKeys`,gi=`Tag`,_i=`UserId`,vi=`Value`,yi=`WebIdentityToken`,bi=`arn`,xi=`accessKeySecretType`,V=`awsQueryError`,H=`client`,Si=`clientTokenType`,U=`error`,W=`httpError`,G=`message`,Ci=`policyDescriptorListType`,wi=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,Ti=`tradeInTokenType`,Ei=`tagListType`,Di=`webIdentityTokenType`,K=`com.amazonaws.sts`,Oi=rt.for(wi),ki=[-3,wi,`STSServiceException`,0,[],[]],Oi.registerError(ki,O),q=rt.for(K),Ai=[-3,K,dr,{[V]:[`ExpiredTokenException`,400],[U]:H,[W]:400},[G],[0]],q.registerError(Ai,kn),ji=[-3,K,fr,{[V]:[`ExpiredTradeInTokenException`,400],[U]:H,[W]:400},[G],[0]],q.registerError(ji,Ln),Mi=[-3,K,Fr,{[V]:[`IDPCommunicationError`,400],[U]:H,[W]:400},[G],[0]],q.registerError(Mi,Fn),Ni=[-3,K,Ir,{[V]:[`IDPRejectedClaim`,403],[U]:H,[W]:403},[G],[0]],q.registerError(Ni,Nn),Pi=[-3,K,Pr,{[V]:[`InvalidAuthorizationMessageException`,400],[U]:H,[W]:400},[G],[0]],q.registerError(Pi,In),Fi=[-3,K,Lr,{[V]:[`InvalidIdentityToken`,400],[U]:H,[W]:400},[G],[0]],q.registerError(Fi,Pn),Ii=[-3,K,Rr,{[V]:[`JWTPayloadSizeExceededException`,400],[U]:H,[W]:400},[G],[0]],q.registerError(Ii,Rn),Li=[-3,K,Br,{[V]:[`MalformedPolicyDocument`,400],[U]:H,[W]:400},[G],[0]],q.registerError(Li,An),Ri=[-3,K,Ur,{[V]:[`OutboundWebIdentityFederationDisabledException`,403],[U]:H,[W]:403},[G],[0]],q.registerError(Ri,zn),zi=[-3,K,Zr,{[V]:[`PackedPolicyTooLarge`,400],[U]:H,[W]:400},[G],[0]],q.registerError(zi,jn),Bi=[-3,K,$r,{[V]:[`RegionDisabledException`,403],[U]:H,[W]:403},[G],[0]],q.registerError(Bi,Mn),Vi=[-3,K,oi,{[V]:[`SessionDurationEscalationException`,403],[U]:H,[W]:403},[G],[0]],q.registerError(Vi,Bn),Hi=[Oi,q],Ui=[0,K,xi,8,0],Wi=[0,K,Si,8,0],Gi=[0,K,ai,8,0],Ki=[0,K,Ti,8,0],qi=[0,K,Di,8,0],J=[3,K,j,0,[Wn,k],[0,0],2],Ji=[3,K,Gn,0,[R,ei,I,F,P,B,hi,lr,ci,di,z,Kr],[0,0,()=>X,0,1,()=>Z,64,0,0,0,0,()=>ba],2],Yi=[3,K,Kn,0,[N,j,L,z],[[()=>Y,0],()=>J,1,0]],Xi=[3,K,Xn,0,[R,Wr,ii,I,F,P],[0,0,[()=>Gi,0],()=>X,0,1],3],Zi=[3,K,Zn,0,[N,j,L,ti,li,Nr,M,Hr,z],[[()=>Y,0],()=>J,1,0,0,0,0,0,0]],Qi=[3,K,$n,0,[R,ei,yi,Xr,I,F,P],[0,0,[()=>Wi,0],0,()=>X,0,1],3],$i=[3,K,er,0,[N,si,j,L,Qr,M,z],[[()=>Y,0],0,()=>J,1,0,0,0]],ea=[3,K,qn,0,[pi,mi,P],[0,()=>_a,1],2],ta=[3,K,Jn,0,[N,z],[[()=>Y,0],0]],Y=[3,K,N,0,[A,ri,ui,cr],[0,[()=>Ui,0],0,4],4],na=[3,K,ar,0,[ur],[0],1],ra=[3,K,or,0,[sr],[0]],ia=[3,K,pr,0,[mr,k],[0,0],2],aa=[3,K,gr,0,[A],[0],1],oa=[3,K,_r,0,[nr],[0]],sa=[3,K,yr,0,[],[]],ca=[3,K,br,0,[_i,nr,k],[0,0,0]],la=[3,K,Sr,0,[fi],[[()=>Ki,0]],1],ua=[3,K,Cr,0,[N,L,Hn],[[()=>Y,0],1,0]],da=[3,K,Tr,0,[Vr,F,I,P,B],[0,0,()=>X,1,()=>Z],1],fa=[3,K,Er,0,[N,pr,L],[[()=>Y,0],()=>ia,1]],pa=[3,K,Or,0,[P,ci,di],[1,0,0]],ma=[3,K,kr,0,[N],[[()=>Y,0]]],ha=[3,K,jr,0,[M,ni,P,B],[64,0,1,()=>Z],2],ga=[3,K,Mr,0,[yi,cr],[[()=>qi,0],4]],_a=[3,K,Yr,0,[bi],[0]],va=[3,K,Jr,0,[Gr,rr],[0,0]],ya=[3,K,gi,0,[zr,vi],[0,0],2],X=[1,K,Ci,0,()=>_a],ba=[1,K,qr,0,()=>va],Z=[1,K,Ei,0,()=>ya],xa=[9,K,Un,0,()=>Ji,()=>Yi],Sa=[9,K,Yn,0,()=>Xi,()=>Zi],Ca=[9,K,Qn,0,()=>Qi,()=>$i],wa=[9,K,tr,0,()=>ea,()=>ta],Ta=[9,K,ir,0,()=>na,()=>ra],Ea=[9,K,hr,0,()=>aa,()=>oa],Da=[9,K,vr,0,()=>sa,()=>ca],Oa=[9,K,xr,0,()=>la,()=>ua],ka=[9,K,wr,0,()=>da,()=>fa],Aa=[9,K,Dr,0,()=>pa,()=>ma],ja=[9,K,Ar,0,()=>ha,()=>ga]})),Ma,Na=e((()=>{Ve(),de(),Pt(),Ie(),p(),ot(),Ze(),Ye(),sn(),Yt(),Q(),Ma=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??it,base64Encoder:e?.base64Encoder??et,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Jt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??rn,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Fe},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new He},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new Le}],logger:e?.logger??new Dt,protocol:e?.protocol??Ce,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:Hi,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,signerConstructor:e?.signerConstructor??Nt,urlParser:e?.urlParser??at,utf8Decoder:e?.utf8Decoder??qe,utf8Encoder:e?.utf8Encoder??Je})})),Pa,Fa=e((()=>{Dn(),xt(),Ve(),Mt(),Se(),gt(),Ie(),we(),ue(),St(),Qe(),p(),De(),pe(),yt(),Na(),Pa=e=>{Ot(process.version);let t=xe(e),n=()=>t().then(kt),r=Ma(e);vt(process.version);let i={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??d(Pe,i),bodyLengthChecker:e?.bodyLengthChecker??me,credentialDefaultProvider:e?.credentialDefaultProvider??jt,defaultUserAgentProvider:e?.defaultUserAgentProvider??ge({serviceId:r.serviceId,clientVersion:En.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`)||(async e=>await jt(e?.__config||{})()),signer:new Fe},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new He},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new Le}],maxAttempts:e?.maxAttempts??d(Ae,e),region:e?.region??d(dt,{...ht,...i}),requestHandler:Xe.create(e?.requestHandler??n),retryMode:e?.retryMode??d({...fe,default:async()=>(await n()).retryMode||bt},e),sha256:e?.sha256??he.bind(null,`sha256`),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??d(ze,i),streamCollector:e?.streamCollector??$e,useDualstackEndpoint:e?.useDualstackEndpoint??d(mt,i),useFipsEndpoint:e?.useFipsEndpoint??d(st,i),userAgentAppId:e?.userAgentAppId??d(_e,i)}}})),Ia,La,Ra=e((()=>{Ia=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},La=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),za,Ba=e((()=>{Ee(),a(),p(),Ra(),za=(e,t)=>{let n=Object.assign(Te(e),Et(e),i(e),Ia(e));return t.forEach(e=>e.configure(n)),Object.assign(e,ve(n),Ct(n),r(n),La(n))}})),$,Va=e((()=>{ce(),ne(),ae(),oe(),gt(),Ie(),tt(),o(),l(),ue(),p(),sn(),D(),Fa(),Ba(),t(),$=class extends Tt{constructor(...[e]){let t=Pa(e||{});super(t),n(this,`config`,void 0),this.initConfig=t,this.config=za(on(te(je(pt(ke(ie(cn(t))))))),e?.extensions||[]),this.middlewareStack.use(nt(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(Oe(this.config)),this.middlewareStack.use(s(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(c(this.config)),this.middlewareStack.use(se(this.config)),this.middlewareStack.use(Me(this.config,{httpAuthSchemeParametersProvider:en,identityProviderConfigProvider:async e=>new Ue({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(Ne(this.config))}destroy(){super.destroy()}}})),Ha,Ua=e((()=>{l(),p(),D(),Q(),Ha=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`AssumeRole`,{}).n(`STSClient`,`AssumeRoleCommand`).sc(xa).build(){}})),Wa,Ga=e((()=>{l(),p(),D(),Q(),Wa=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`AssumeRoleWithSAML`,{}).n(`STSClient`,`AssumeRoleWithSAMLCommand`).sc(Sa).build(){}})),Ka,qa=e((()=>{l(),p(),D(),Q(),Ka=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`AssumeRoleWithWebIdentity`,{}).n(`STSClient`,`AssumeRoleWithWebIdentityCommand`).sc(Ca).build(){}})),Ja,Ya=e((()=>{l(),p(),D(),Q(),Ja=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`AssumeRoot`,{}).n(`STSClient`,`AssumeRootCommand`).sc(wa).build(){}})),Xa,Za=e((()=>{l(),p(),D(),Q(),Xa=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`DecodeAuthorizationMessage`,{}).n(`STSClient`,`DecodeAuthorizationMessageCommand`).sc(Ta).build(){}})),Qa,$a=e((()=>{l(),p(),D(),Q(),Qa=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetAccessKeyInfo`,{}).n(`STSClient`,`GetAccessKeyInfoCommand`).sc(Ea).build(){}})),eo,to=e((()=>{l(),p(),D(),Q(),eo=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetCallerIdentity`,{}).n(`STSClient`,`GetCallerIdentityCommand`).sc(Da).build(){}})),no,ro=e((()=>{l(),p(),D(),Q(),no=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetDelegatedAccessToken`,{}).n(`STSClient`,`GetDelegatedAccessTokenCommand`).sc(Oa).build(){}})),io,ao=e((()=>{l(),p(),D(),Q(),io=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetFederationToken`,{}).n(`STSClient`,`GetFederationTokenCommand`).sc(ka).build(){}})),oo,so=e((()=>{l(),p(),D(),Q(),oo=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetSessionToken`,{}).n(`STSClient`,`GetSessionTokenCommand`).sc(Aa).build(){}})),co,lo=e((()=>{l(),p(),D(),Q(),co=class extends f.classBuilder().ep(E).m(function(e,t,n,r){return[u(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`GetWebIdentityToken`,{}).n(`STSClient`,`GetWebIdentityTokenCommand`).sc(ja).build(){}})),uo,fo,po=e((()=>{p(),Ua(),Ga(),qa(),Ya(),Za(),$a(),to(),ro(),ao(),so(),lo(),Va(),uo={AssumeRoleCommand:Ha,AssumeRoleWithSAMLCommand:Wa,AssumeRoleWithWebIdentityCommand:Ka,AssumeRootCommand:Ja,DecodeAuthorizationMessageCommand:Xa,GetAccessKeyInfoCommand:Qa,GetCallerIdentityCommand:eo,GetDelegatedAccessTokenCommand:no,GetFederationTokenCommand:io,GetSessionTokenCommand:oo,GetWebIdentityTokenCommand:co},fo=class extends ${},At(uo,fo)})),mo=e((()=>{Ua(),Ga(),qa(),Ya(),Za(),$a(),to(),ro(),ao(),so(),lo()})),ho=e((()=>{})),go=e((()=>{}));e((()=>{Va(),po(),mo(),Q(),Vn(),ho(),go(),On()}))();export{eo as GetCallerIdentityCommand,$ as STSClient};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./dist-es-B2jg52tM2.js";t();export{e as fromSSO};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{i as t,t as n}from"./dist-es-BoIJpncb.js";import"./dist-es-DuAZyxJ02.js";import{n as r,t as i}from"./dist-es-C-1vn4OP2.js";var a=e((()=>{})),o=e((()=>{})),s=e((()=>{})),c=e((()=>{})),l=e((()=>{})),u,d=e((()=>{i(),u=(e={})=>r({...e})})),f=e((()=>{})),p=e((()=>{})),m,h=e((()=>{n(),m=(e={})=>t({...e})})),g=e((()=>{})),_=e((()=>{})),v=e((()=>{})),y=e((()=>{})),b=e((()=>{}));e((()=>{a(),o(),s(),c(),l(),d(),f(),p(),h(),g(),_(),v(),y(),b()}))();export{u as fromIni,m as fromNodeProviderChain};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,d as t,n,o as r,r as i,s as a,t as o}from"./dist-es-Bcw5GZko.js";o();export{r as ENV_CMDS_FULL_URI,a as ENV_CMDS_RELATIVE_URI,e as fromContainerMetadata,n as fromInstanceMetadata,i as getInstanceMetadataEndpoint,t as httpRequest};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as e,t,u as n}from"./dist-es-CLK1mey-.js";import"./dist-es-UAs0rdXg.js";t();export{e as BedrockRuntimeClient,n as CountTokensCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";var t=e((()=>{})),n,r=e((()=>{(function(e){e.HEADER=`header`,e.QUERY=`query`})(n||(n={}))})),i,a=e((()=>{(function(e){e.HEADER=`header`,e.QUERY=`query`})(i||(i={}))})),o=e((()=>{})),s=e((()=>{})),c=e((()=>{})),ee=e((()=>{})),te=e((()=>{r(),a(),o(),s(),c(),ee()})),l=e((()=>{})),u=e((()=>{})),d=e((()=>{})),f=e((()=>{})),p=e((()=>{})),m=e((()=>{})),h=e((()=>{})),g=e((()=>{p(),m(),h()})),_=e((()=>{})),v=e((()=>{})),y,b=e((()=>{(function(e){e.HTTP=`http`,e.HTTPS=`https`})(y||(y={}))})),x=e((()=>{})),S=e((()=>{})),C=e((()=>{})),w=e((()=>{})),T=e((()=>{})),E=e((()=>{x(),S(),C(),w(),T()})),D=e((()=>{})),O,k=e((()=>{(function(e){e.MD5=`md5`,e.CRC32=`crc32`,e.CRC32C=`crc32c`,e.SHA1=`sha1`,e.SHA256=`sha256`})(O||(O={}))})),A=e((()=>{})),j=e((()=>{})),M=e((()=>{A(),j(),k()})),N=e((()=>{})),P,F=e((()=>{(function(e){e[e.HEADER=0]=`HEADER`,e[e.TRAILER=1]=`TRAILER`})(P||(P={}))})),I=e((()=>{})),L=e((()=>{})),R=e((()=>{})),z=e((()=>{})),B=e((()=>{})),V=e((()=>{L(),R(),z(),B()})),H=e((()=>{})),U,ne=e((()=>{U=`__smithy_context`})),W=e((()=>{})),G,K=e((()=>{(function(e){e.PROFILE=`profile`,e.SSO_SESSION=`sso-session`,e.SERVICES=`services`})(G||(G={}))})),q=e((()=>{})),J=e((()=>{})),Y=e((()=>{})),X=e((()=>{})),Z=e((()=>{})),re=e((()=>{})),ie=e((()=>{})),ae=e((()=>{})),oe=e((()=>{})),se=e((()=>{})),ce=e((()=>{})),le=e((()=>{})),ue=e((()=>{})),de=e((()=>{})),Q,fe=e((()=>{(function(e){e.HTTP_0_9=`http/0.9`,e.HTTP_1_0=`http/1.0`,e.TDS_8_0=`tds/8.0`})(Q||(Q={}))})),pe=e((()=>{})),$=e((()=>{})),me=e((()=>{})),he=e((()=>{})),ge=e((()=>{})),_e=e((()=>{})),ve=e((()=>{})),ye=e((()=>{t(),te(),l(),u(),d(),f(),g(),_(),v(),b(),E(),D(),M(),N(),F(),I(),V(),H(),ne(),W(),K(),q(),J(),Y(),X(),Z(),re(),ie(),ae(),oe(),se(),ce(),le(),ue(),de(),fe(),pe(),$(),me(),he(),ge(),_e(),ve()}));export{y as a,O as i,G as n,U as r,ye as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-80gRi2ZW.js";import{a as r,i,r as a}from"./httpAuthSchemes-Wq4XWeLL.js";var o=e((()=>{})),s=e((()=>{})),c=e((()=>{})),l=e((()=>{})),u,d,f=e((()=>{u=`X-Amz-S3session-Token`,d=u.toLowerCase()}));function p(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function m(e,t){let n=setTimeout(()=>{throw Error(`SignatureV4S3Express credential override was created but not called.`)},10),r=e.credentialProvider;e.credentialProvider=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t))}var h,g=e((()=>{a(),f(),h=class extends r{async signWithCredentials(e,t,n){let r=p(t);e.headers[d]=t.sessionToken;let i=this;return m(i,r),i.signRequest(e,n??{})}async presignWithCredentials(e,t,n){let r=p(t);return delete e.headers[d],e.headers[u]=t.sessionToken,e.query=e.query??{},e.query[u]=t.sessionToken,m(this,r),this.presign(e,n)}}})),_=e((()=>{g(),f()})),v=e((()=>{})),y=e((()=>{})),b=e((()=>{})),x=e((()=>{o(),s(),c(),l(),_(),v(),y(),b()})),S,C=e((()=>{S={CrtSignerV4:null}})),w,T=e((()=>{x(),a(),C(),t(),w=class{static sigv4aDependency(){return typeof S.CrtSignerV4==`function`?`crt`:typeof i.SignatureV4a==`function`?`js`:`none`}constructor(e){n(this,`sigv4aSigner`,void 0),n(this,`sigv4Signer`,void 0),n(this,`signerOptions`,void 0),this.sigv4Signer=new h(e),this.signerOptions=e}async sign(e,t={}){return t.signingRegion===`*`?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,n={}){if(n.signingRegion===`*`){let r=this.getSigv4aSigner(),i=S.CrtSignerV4;if(i&&r instanceof i)return r.signWithCredentials(e,t,n);throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,n)}async presign(e,t={}){if(t.signingRegion===`*`){let n=this.getSigv4aSigner(),r=S.CrtSignerV4;if(r&&n instanceof r)return n.presign(e,t);throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,n={}){if(n.signingRegion===`*`)throw Error(`Method presignWithCredentials is not supported for [signingRegion=*].`);return this.sigv4Signer.presignWithCredentials(e,t,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=S.CrtSignerV4,t=i.SignatureV4a;if(this.signerOptions.runtime===`node`){if(!e&&!t)throw Error(`Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);if(e&&typeof e==`function`)this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==`function`)this.sigv4aSigner=new t({...this.signerOptions});else throw Error(`Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}else{if(!t||typeof t!=`function`)throw Error(`JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a`);this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}})),E=e((()=>{T(),C()}));export{w as n,E as t};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{r as t,t as n}from"./dist-es-C41b_0B5.js";import{E as r,I as i,N as a,T as o,h as s}from"./protocols-CAyQOlkr.js";import{h as c,t as l}from"./client-CPn1wQyc.js";import{o as u,t as d}from"./dist-es-CUZBYppo.js";import{t as f}from"./dist-es-UAs0rdXg.js";import p from"node:fs/promises";var m,h,g,_,v=e((()=>{d(),m=`169.254.170.2`,h=`169.254.170.23`,g=`[fd00:ec2::23]`,_=(e,t)=>{if(e.protocol!==`https:`&&!(e.hostname===m||e.hostname===h||e.hostname===g)){if(e.hostname.includes(`[`)){if(e.hostname===`[::1]`||e.hostname===`[0000:0000:0000:0000:0000:0000:0000:0001]`)return}else{if(e.hostname===`localhost`)return;let t=e.hostname.split(`.`),n=e=>{let t=parseInt(e,10);return 0<=t&&t<=255};if(t[0]===`127`&&n(t[1])&&n(t[2])&&n(t[3])&&t.length===4)return}throw new u(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
2
|
+
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
3
|
+
- ECS container host 169.254.170.2
|
|
4
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:t})}}}));function y(e){return new t({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((e,[t,n])=>(e[t]=n,e),{}),fragment:e.hash})}async function b(e,t){let n=await r(e.body).transformToString();if(e.statusCode===200){let e=JSON.parse(n);if(typeof e.AccessKeyId!=`string`||typeof e.SecretAccessKey!=`string`||typeof e.Token!=`string`||typeof e.Expiration!=`string`)throw new u(`HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }`,{logger:t});return{accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:s(e.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let r={};try{r=JSON.parse(n)}catch{}throw Object.assign(new u(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:r.Code,Message:r.Message})}throw new u(`Server responded with status: ${e.statusCode}`,{logger:t})}var x=e((()=>{d(),n(),f(),o()})),S,C=e((()=>{S=(e,t,n)=>async()=>{for(let r=0;r<t;++r)try{return await e()}catch{await new Promise(e=>setTimeout(e,n))}return await e()}})),w,T,E,D,O,k,A=e((()=>{l(),a(),d(),v(),x(),C(),w=`AWS_CONTAINER_CREDENTIALS_RELATIVE_URI`,T=`http://169.254.170.2`,E=`AWS_CONTAINER_CREDENTIALS_FULL_URI`,D=`AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE`,O=`AWS_CONTAINER_AUTHORIZATION_TOKEN`,k=(e={})=>{e.logger?.debug(`@aws-sdk/credential-provider-http - fromHttp`);let t,n=e.awsContainerCredentialsRelativeUri??process.env[w],r=e.awsContainerCredentialsFullUri??process.env[E],a=e.awsContainerAuthorizationToken??process.env[O],o=e.awsContainerAuthorizationTokenFile??process.env[D],s=e.logger?.constructor?.name===`NoOpLogger`||!e.logger?.warn?console.warn:e.logger.warn.bind(e.logger);if(n&&r&&(s(`@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.`),s(`awsContainerCredentialsFullUri will take precedence.`)),a&&o&&(s(`@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.`),s(`awsContainerAuthorizationToken will take precedence.`)),r)t=r;else if(n)t=`${T}${n}`;else throw new u(`No HTTP credential provider host provided.
|
|
5
|
+
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let l=new URL(t);_(l,e.logger);let d=i.create({requestTimeout:e.timeout??1e3,connectionTimeout:e.timeout??1e3});return S(async()=>{let t=y(l);a?t.headers.Authorization=a:o&&(t.headers.Authorization=(await p.readFile(o)).toString());try{return b((await d.handle(t)).response).then(e=>c(e,`CREDENTIALS_HTTP`,`z`))}catch(t){throw new u(String(t),{logger:e.logger})}},e.maxRetries??3,e.timeout??1e3)}})),j=e((()=>{A()}));export{k as n,j as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{h as t,t as n}from"./client-CPn1wQyc.js";import{o as r,t as i}from"./dist-es-CUZBYppo.js";var a,o,s,c,l,u,d,f=e((()=>{n(),i(),a=`AWS_ACCESS_KEY_ID`,o=`AWS_SECRET_ACCESS_KEY`,s=`AWS_SESSION_TOKEN`,c=`AWS_CREDENTIAL_EXPIRATION`,l=`AWS_CREDENTIAL_SCOPE`,u=`AWS_ACCOUNT_ID`,d=e=>async()=>{e?.logger?.debug(`@aws-sdk/credential-provider-env - fromEnv`);let n=process.env[a],i=process.env[o],d=process.env[s],f=process.env[c],p=process.env[l],m=process.env[u];if(n&&i){let e={accessKeyId:n,secretAccessKey:i,...d&&{sessionToken:d},...f&&{expiration:new Date(f)},...p&&{credentialScope:p},...m&&{accountId:m}};return t(e,`CREDENTIALS_ENV_VARS`,`g`),e}throw new r(`Unable to find environment variable credentials.`,{logger:e?.logger})}})),p=e((()=>{f()}));export{a,d as c,c as i,u as n,o,l as r,s,p as t};
|