gemi 0.4.69 → 0.4.70
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/{chunk-f5a531a49e7591bd.js → chunk-2895a97b65e7107b.js} +1 -1
- package/dist/{chunk-8884e59809021f5f.js → chunk-2dd61d279d9f0b13.js} +1 -1
- package/dist/{chunk-100b76ab0ca3e14d.js → chunk-448c9eceacddef90.js} +1 -1
- package/dist/{chunk-a4b231bf6d911e01.js → chunk-466213c5585251ad.js} +1 -1
- package/dist/{chunk-edfc3362e0d21dab.js → chunk-4b8da0fabb3539db.js} +5 -5
- package/dist/{chunk-1bd88dc9c4475e1d.js → chunk-4bc3b71775040cb9.js} +1 -1
- package/dist/{chunk-00935722c776a294.js → chunk-af7d1951242b1c6e.js} +1 -1
- package/dist/{chunk-1d2c062034e3ed2d.js → chunk-b6a64bf9af2e91be.js} +2 -2
- package/dist/{chunk-a35eb04f0c7c9944.js → chunk-b8176bf532f59485.js} +1 -1
- package/dist/{chunk-545989119755857f.js → chunk-cca33e85bf87b3b3.js} +1 -1
- package/dist/{chunk-a1efc60864e65ef2.js → chunk-de75d134f236f4bb.js} +1 -1
- package/dist/{chunk-107dbe753ed86605.js → chunk-e344c95f8ae7a124.js} +2 -2
- package/dist/{chunk-f5200f44395bf49d.js → chunk-e565da7343a33b65.js} +2 -2
- package/dist/{chunk-3330ff12936f5a2e.js → chunk-e912bf7c7a0e988a.js} +1 -1
- package/dist/{chunk-210fc3731e7d2299.js → chunk-f22ac1ec6c3f782b.js} +1 -1
- package/dist/{chunk-1b3b7c2c9ae041ca.js → chunk-fe65548818651cb5.js} +1 -1
- package/dist/client/ClientRouterContext.d.ts.map +1 -1
- package/dist/client/index.js +20 -5
- package/dist/server/index.js +1 -1
- package/dist/storage/index.js +1 -1
- package/package.json +1 -1
- package/dist/app/App.test.d.ts +0 -20
- package/dist/app/App.test.d.ts.map +0 -1
- package/dist/app/createComponentTree.test.d.ts +0 -2
- package/dist/app/createComponentTree.test.d.ts.map +0 -1
- package/dist/app/createFlatApiRoutes.test.d.ts +0 -2
- package/dist/app/createFlatApiRoutes.test.d.ts.map +0 -1
- package/dist/app/createFlatViewRoutes.test.d.ts +0 -2
- package/dist/app/createFlatViewRoutes.test.d.ts.map +0 -1
- package/dist/app/createRouteManifest.test.d.ts +0 -2
- package/dist/app/createRouteManifest.test.d.ts.map +0 -1
- package/dist/chunk-00234eac874c2722.js +0 -2
- package/dist/chunk-00cb9f80352454dd.js +0 -1
- package/dist/chunk-00e9dad0734d9761.js +0 -2
- package/dist/chunk-00ecc27f03e2e84a.js +0 -2
- package/dist/chunk-00f16704831dd8b0.js +0 -2
- package/dist/chunk-01052ff9d1c07ef8.js +0 -2
- package/dist/chunk-0113570164c56f57.js +0 -2
- package/dist/chunk-0130e95410edb036.js +0 -18
- package/dist/chunk-01e07763e3e32710.js +0 -2
- package/dist/chunk-01e1579811beb424.js +0 -2
- package/dist/chunk-01ffccc19e8ef862.js +0 -3
- package/dist/chunk-02118fc60206588d.js +0 -2
- package/dist/chunk-0306d8fccec5104e.js +0 -2
- package/dist/chunk-030b4fb955329860.js +0 -16
- package/dist/chunk-03227f4a68e038f4.js +0 -2
- package/dist/chunk-03a72299591d45a7.js +0 -18
- package/dist/chunk-03c8e645c994d40a.js +0 -2
- package/dist/chunk-04aa62521338e3ab.js +0 -18
- package/dist/chunk-04d6b88ed6d3f076.js +0 -6
- package/dist/chunk-0557700bf68e85d4.js +0 -18
- package/dist/chunk-05fa767ab29abb0f.js +0 -2
- package/dist/chunk-061d95b15c00e38b.js +0 -9
- package/dist/chunk-069fcad61c8841dc.js +0 -1
- package/dist/chunk-06b83143607ebdc8.js +0 -6
- package/dist/chunk-06eebef7eb056baa.js +0 -2
- package/dist/chunk-073f5b81e98d91fe.js +0 -3
- package/dist/chunk-08539d08fa7362f7.js +0 -2
- package/dist/chunk-088b47e135832170.js +0 -1
- package/dist/chunk-088ed28ebed2b009.js +0 -5
- package/dist/chunk-08e9ab1091d7383e.js +0 -3
- package/dist/chunk-0909c7f6b64b8806.js +0 -2
- package/dist/chunk-095848ccb81718bf.js +0 -2
- package/dist/chunk-09dd89e1046786a5.js +0 -2
- package/dist/chunk-0a6614fbd65524af.js +0 -2
- package/dist/chunk-0a9ae42aae6f406e.js +0 -2
- package/dist/chunk-0b1b4e4e251ffe01.js +0 -2
- package/dist/chunk-0b46ec66d2c3d5f3.js +0 -2
- package/dist/chunk-0b5fb4e0c7de8316.js +0 -2
- package/dist/chunk-0b7a7410fce0b12e.js +0 -9
- package/dist/chunk-0b8dc3d1ff94a0fa.js +0 -6
- package/dist/chunk-0b99ba34351bde91.js +0 -3
- package/dist/chunk-0d0f764773c0f6b8.js +0 -2
- package/dist/chunk-0d8ab901365b9696.js +0 -2
- package/dist/chunk-0db33ac43bd1d504.js +0 -2
- package/dist/chunk-0de36a7e51fbd11b.js +0 -9
- package/dist/chunk-0e125593337a68aa.js +0 -18
- package/dist/chunk-0e3473f7e43f4876.js +0 -2
- package/dist/chunk-0e99fe5c976c8ea2.js +0 -6
- package/dist/chunk-0f8e80862546cbc5.js +0 -18
- package/dist/chunk-0ffc38ed09847e35.js +0 -2
- package/dist/chunk-1062b3156a49fabc.js +0 -2
- package/dist/chunk-1084614a350762fb.js +0 -2
- package/dist/chunk-10a623a23a65bb20.js +0 -18
- package/dist/chunk-1109657ed53fbdc9.js +0 -2
- package/dist/chunk-11323d7a5d9219ce.js +0 -2
- package/dist/chunk-1171d9afbbfe827b.js +0 -2
- package/dist/chunk-119ffcaf1c463b8d.js +0 -6
- package/dist/chunk-11a75566ff74db17.js +0 -6
- package/dist/chunk-11d1336f6de61f45.js +0 -16
- package/dist/chunk-11fb7f7f30378785.js +0 -2
- package/dist/chunk-12b4f44a2beae19b.js +0 -2
- package/dist/chunk-12ca7224eb6ccf72.js +0 -9
- package/dist/chunk-132c71db605759c9.js +0 -2
- package/dist/chunk-1334ee957ff9058c.js +0 -2
- package/dist/chunk-136896e8038083a1.js +0 -2
- package/dist/chunk-13801a8f811f0461.js +0 -2
- package/dist/chunk-13e45ce3460f6375.js +0 -2
- package/dist/chunk-14d5491e97673c7d.js +0 -2
- package/dist/chunk-14e60554a2e78f4a.js +0 -2
- package/dist/chunk-159f5b922269aef1.js +0 -2
- package/dist/chunk-15e9771e524c5726.js +0 -2
- package/dist/chunk-16a63b2fee0ce9e2.js +0 -2
- package/dist/chunk-16dbe3a15379140b.js +0 -2
- package/dist/chunk-176e5ded5ed33d4d.js +0 -2
- package/dist/chunk-1838696dc4e7a115.js +0 -2
- package/dist/chunk-1874b66d572fb0db.js +0 -6
- package/dist/chunk-1875b98b6a064557.js +0 -2
- package/dist/chunk-187a09f46e2b36e5.js +0 -2
- package/dist/chunk-18c32b54097c580e.js +0 -2
- package/dist/chunk-18d87123ae525263.js +0 -2
- package/dist/chunk-1900e90c372bb1d6.js +0 -2
- package/dist/chunk-1976eef63d2e56d5.js +0 -18
- package/dist/chunk-197fca66ec324ed9.js +0 -2
- package/dist/chunk-1ad1795e55abfdb5.js +0 -2
- package/dist/chunk-1b0afbf1baeeaa37.js +0 -2
- package/dist/chunk-1b71d04a15bfa432.js +0 -2
- package/dist/chunk-1b8acf308a3dc9ec.js +0 -1
- package/dist/chunk-1c439804a4c5f8e7.js +0 -18
- package/dist/chunk-1cc0d1072ee4a92b.js +0 -2
- package/dist/chunk-1d6e287ca9c14fef.js +0 -9
- package/dist/chunk-1efe790f8b4ad86d.js +0 -2
- package/dist/chunk-1fab30ab853c48cc.js +0 -2
- package/dist/chunk-2081b862587086df.js +0 -2
- package/dist/chunk-216cc6dcf17534ba.js +0 -2
- package/dist/chunk-21b1f7ac5f75cd26.js +0 -2
- package/dist/chunk-21e105fb2b3d36d7.js +0 -799
- package/dist/chunk-21fe96d1a3bb5a27.js +0 -2
- package/dist/chunk-223b0aac9e62386a.js +0 -2
- package/dist/chunk-226243dd851d2050.js +0 -2
- package/dist/chunk-22773aec8cc230c6.js +0 -6
- package/dist/chunk-2279c382943fca51.js +0 -2
- package/dist/chunk-22ec1973752a5488.js +0 -2
- package/dist/chunk-2335866508ec8b1b.js +0 -2
- package/dist/chunk-23c287376e277e1d.js +0 -6
- package/dist/chunk-241584e48397dda8.js +0 -2
- package/dist/chunk-24e01cba9fc81ed1.js +0 -2
- package/dist/chunk-25dd80c6d9144f89.js +0 -2
- package/dist/chunk-2665dffd37ead1d9.js +0 -2
- package/dist/chunk-2672477bf396bad8.js +0 -2
- package/dist/chunk-269dd2cd89aa1c32.js +0 -2
- package/dist/chunk-26a5c9db5d17f5e7.js +0 -3
- package/dist/chunk-26d58ddc3a89234f.js +0 -2
- package/dist/chunk-27484e5ca3244aea.js +0 -6
- package/dist/chunk-281226b6c79ebf8b.js +0 -2
- package/dist/chunk-285299d784985340.js +0 -3
- package/dist/chunk-28bb1e70f39736ee.js +0 -2
- package/dist/chunk-28e02c9b9c46a167.js +0 -2
- package/dist/chunk-293d8be91a9ad4f9.js +0 -2
- package/dist/chunk-29a0dbe3c8eb87d4.js +0 -6
- package/dist/chunk-29bc27c5e126c304.js +0 -18
- package/dist/chunk-29c46abebbc0f09b.js +0 -2
- package/dist/chunk-2a0d1475ac05027d.js +0 -2
- package/dist/chunk-2a0e8565f874d787.js +0 -18
- package/dist/chunk-2a101fb25d52469b.js +0 -2
- package/dist/chunk-2a328e3beda74e4f.js +0 -2
- package/dist/chunk-2a48e0098ccd4249.js +0 -2
- package/dist/chunk-2a5b4dfab2e26e21.js +0 -1
- package/dist/chunk-2b2764983015552e.js +0 -2
- package/dist/chunk-2b3eabd01b2ae3f8.js +0 -2
- package/dist/chunk-2bfbc777c6995d9a.js +0 -18
- package/dist/chunk-2cf271e24c26b0ee.js +0 -2
- package/dist/chunk-2db6c9bb69bb27aa.js +0 -1
- package/dist/chunk-2e34b856e195c353.js +0 -2
- package/dist/chunk-2e447b50094b2862.js +0 -2
- package/dist/chunk-2ec287222364c6b6.js +0 -2
- package/dist/chunk-2ecc077efab285b4.js +0 -2
- package/dist/chunk-2f6867d08b95f2d2.js +0 -2
- package/dist/chunk-2f7091b9e4f728c7.js +0 -2
- package/dist/chunk-2f7aac67f16768a5.js +0 -1
- package/dist/chunk-3042abeb18cf180e.js +0 -2
- package/dist/chunk-30622b4547786346.js +0 -2
- package/dist/chunk-30f854fb2ba73268.js +0 -2
- package/dist/chunk-322e991c2b56a79d.js +0 -2
- package/dist/chunk-3258ba57992f25bb.js +0 -6
- package/dist/chunk-328c98321c6ba3d6.js +0 -2
- package/dist/chunk-32af3a3a1c95157f.js +0 -2
- package/dist/chunk-32f06f9ad00aaabd.js +0 -2
- package/dist/chunk-32f3d5e11b4bc87d.js +0 -2
- package/dist/chunk-339dd63e93f196b7.js +0 -16
- package/dist/chunk-345f66382cf35683.js +0 -2
- package/dist/chunk-34786cd9bc9be20b.js +0 -18
- package/dist/chunk-3567e8e424a60c99.js +0 -18
- package/dist/chunk-35ab4be8ca6c67ee.js +0 -2
- package/dist/chunk-361f806684fe532e.js +0 -6
- package/dist/chunk-36ab979dae2a2094.js +0 -2
- package/dist/chunk-36b8e37ca93fcc67.js +0 -2
- package/dist/chunk-370389a68668658a.js +0 -2
- package/dist/chunk-3728fa21e6931333.js +0 -2
- package/dist/chunk-378a050132886d17.js +0 -2
- package/dist/chunk-38237d1b01b0db25.js +0 -3
- package/dist/chunk-382a513747a9aa52.js +0 -6
- package/dist/chunk-38fc9d258dbe62fd.js +0 -18
- package/dist/chunk-3a3092db69408490.js +0 -2
- package/dist/chunk-3a9fcddbd219223b.js +0 -3
- package/dist/chunk-3ab807ceccde81f3.js +0 -3
- package/dist/chunk-3abb49bba3da7231.js +0 -1
- package/dist/chunk-3aecba8553e036bf.js +0 -6
- package/dist/chunk-3afa6cad1106f55a.js +0 -2
- package/dist/chunk-3b235fc8816ff5e6.js +0 -2
- package/dist/chunk-3b6df70b3d01d442.js +0 -3
- package/dist/chunk-3bd48fb5397a155b.js +0 -5
- package/dist/chunk-3bedef94ef8dba4a.js +0 -2
- package/dist/chunk-3bf6f8c8e8589e3d.js +0 -2
- package/dist/chunk-3c83d6762f7e56b3.js +0 -2
- package/dist/chunk-3cbc1c9cdc091b43.js +0 -2
- package/dist/chunk-3d7556bb2f665f61.js +0 -2
- package/dist/chunk-3dbf073642b377eb.js +0 -1
- package/dist/chunk-3e3078cae755e834.js +0 -2
- package/dist/chunk-3f1eaa4b49aa9a15.js +0 -3
- package/dist/chunk-40111275eef9f7b3.js +0 -6
- package/dist/chunk-408fb31b8b0f97ee.js +0 -2
- package/dist/chunk-40942fb138dcd780.js +0 -9
- package/dist/chunk-40c21fe243675250.js +0 -2
- package/dist/chunk-40f4bfe67d75f2ec.js +0 -6
- package/dist/chunk-412ad792487747bc.js +0 -2
- package/dist/chunk-415d564ff61a8fe6.js +0 -2
- package/dist/chunk-42097f79deccd5b7.js +0 -2
- package/dist/chunk-4272071146eb5eb2.js +0 -1
- package/dist/chunk-42aa6e3d42149620.js +0 -2
- package/dist/chunk-432bbd1d38ff3b52.js +0 -2
- package/dist/chunk-437335670ad9059d.js +0 -2
- package/dist/chunk-442a5b1ec74c72f8.js +0 -2
- package/dist/chunk-4432f8d8567e682b.js +0 -9
- package/dist/chunk-4548da0edd8c39ed.js +0 -2
- package/dist/chunk-45badde289996d82.js +0 -9
- package/dist/chunk-464cce477d8a56e0.js +0 -2
- package/dist/chunk-46528bdbb2218772.js +0 -2
- package/dist/chunk-477a4d3115b9703e.js +0 -2
- package/dist/chunk-47c4cec992af0689.js +0 -2
- package/dist/chunk-487b7c0cb388d533.js +0 -6
- package/dist/chunk-488b4db0c522d44a.js +0 -1
- package/dist/chunk-489125d86cd75e69.js +0 -9
- package/dist/chunk-4960e27e19bbe42a.js +0 -2
- package/dist/chunk-4b201cccdf6d290f.js +0 -2
- package/dist/chunk-4b4ea80149bba4e6.js +0 -2
- package/dist/chunk-4bbeb47cc6137c49.js +0 -2
- package/dist/chunk-4cb19a9e82653084.js +0 -2
- package/dist/chunk-4cb5f3feff1a81c5.js +0 -2
- package/dist/chunk-4cc2463d985f6882.js +0 -9
- package/dist/chunk-4d19e16340534ed0.js +0 -2
- package/dist/chunk-4d46e390f99b97e0.js +0 -2
- package/dist/chunk-4d80485e7efb826f.js +0 -2
- package/dist/chunk-4e023976eb557258.js +0 -2
- package/dist/chunk-4e5485d3cfe9dc4e.js +0 -2
- package/dist/chunk-4e9167391dd0d15f.js +0 -2
- package/dist/chunk-4e9d5acfa5541d1b.js +0 -2
- package/dist/chunk-4eeee2f82b1fa8bb.js +0 -2
- package/dist/chunk-4f01c5a98726e704.js +0 -2
- package/dist/chunk-4f1b43f5232b3e65.js +0 -6
- package/dist/chunk-4f5b07a6a6fd5cc6.js +0 -2
- package/dist/chunk-4ffecff075e73d43.js +0 -2
- package/dist/chunk-50b440397d41ab5a.js +0 -2
- package/dist/chunk-50ea27a13eb62b5e.js +0 -2
- package/dist/chunk-5128de1a65ba6ce1.js +0 -2
- package/dist/chunk-514f8554fb446139.js +0 -9
- package/dist/chunk-515c26d532207095.js +0 -2
- package/dist/chunk-516c6b67d6e3d041.js +0 -18
- package/dist/chunk-5190b38f06507ee1.js +0 -18
- package/dist/chunk-51bad63147c3be4e.js +0 -6
- package/dist/chunk-51c21d2a3c45fbe1.js +0 -2
- package/dist/chunk-51e930ef29de215b.js +0 -1
- package/dist/chunk-51ee928673a12486.js +0 -2
- package/dist/chunk-521750cca5e03c65.js +0 -2
- package/dist/chunk-5290ecaf429d5a61.js +0 -2
- package/dist/chunk-52e76204b898931e.js +0 -18
- package/dist/chunk-53b7d6267c9172bc.js +0 -2
- package/dist/chunk-53c39aca36ece018.js +0 -2
- package/dist/chunk-543013123141745c.js +0 -2
- package/dist/chunk-54c03438ff1f41e5.js +0 -2
- package/dist/chunk-552bdaee8c03e091.js +0 -9
- package/dist/chunk-55f76d4f6116f296.js +0 -9
- package/dist/chunk-5656abf3151c8fa2.js +0 -2
- package/dist/chunk-56f6f8c2162dcf1c.js +0 -2
- package/dist/chunk-57a61e580c4adf80.js +0 -2
- package/dist/chunk-581e0d46235dbf7c.js +0 -2
- package/dist/chunk-584e33c96b1a78e4.js +0 -2
- package/dist/chunk-5852c4da08af607f.js +0 -2
- package/dist/chunk-589f4b330dd6d32e.js +0 -2
- package/dist/chunk-590bd43a75f48606.js +0 -18
- package/dist/chunk-590cd512f9e72880.js +0 -18
- package/dist/chunk-596024c880387c2f.js +0 -2
- package/dist/chunk-597d5c6772b14a85.js +0 -9
- package/dist/chunk-59980167a4c574b3.js +0 -2
- package/dist/chunk-59da8b8ab8add738.js +0 -16
- package/dist/chunk-59e951812cb019e6.js +0 -2
- package/dist/chunk-59fe590e19085858.js +0 -18
- package/dist/chunk-5a2d89fce13094a9.js +0 -2
- package/dist/chunk-5a66922d5981afc8.js +0 -18
- package/dist/chunk-5a75eae6c32c2ba3.js +0 -2
- package/dist/chunk-5a9fa677066f72ac.js +0 -2
- package/dist/chunk-5b54843712abde58.js +0 -2
- package/dist/chunk-5b836c769c5dad2a.js +0 -2
- package/dist/chunk-5c2a5156f6bef0f5.js +0 -2
- package/dist/chunk-5c3681fb029d7588.js +0 -1
- package/dist/chunk-5cd0a98345a5d57a.js +0 -2
- package/dist/chunk-5d3431e9686096af.js +0 -18
- package/dist/chunk-5d51afe60efaf99e.js +0 -2
- package/dist/chunk-5d86d49d66db1c22.js +0 -2
- package/dist/chunk-5defd55c3c97bdb2.js +0 -2
- package/dist/chunk-5e13846c554dc272.js +0 -2
- package/dist/chunk-5fb9d31b7b4629e9.js +0 -1
- package/dist/chunk-5fbde192153a2a50.js +0 -2
- package/dist/chunk-5fd67245740e3908.js +0 -9
- package/dist/chunk-6003411eae26f246.js +0 -3
- package/dist/chunk-60d70dcbf4e79276.js +0 -2
- package/dist/chunk-60f3b8242209ac3e.js +0 -18
- package/dist/chunk-61973614facb50a8.js +0 -2
- package/dist/chunk-61abf77c3eee8698.js +0 -2
- package/dist/chunk-61fc22887a7be6f9.js +0 -3
- package/dist/chunk-62144f9c5008bd47.js +0 -1
- package/dist/chunk-625025af819f55f5.js +0 -2
- package/dist/chunk-6259cd13f53334df.js +0 -2
- package/dist/chunk-62b2777c629d5157.js +0 -2
- package/dist/chunk-62c0f9a87ad8a46b.js +0 -2
- package/dist/chunk-634c80cac76d9080.js +0 -18
- package/dist/chunk-63ad0436d3d896b5.js +0 -3
- package/dist/chunk-63c5605bcce508ea.js +0 -1
- package/dist/chunk-640e4bdae1671873.js +0 -1
- package/dist/chunk-648dff766091372e.js +0 -2
- package/dist/chunk-64a5b833cef67725.js +0 -2
- package/dist/chunk-64c89cee4d4bd9a9.js +0 -2
- package/dist/chunk-65626c3d72d4e071.js +0 -2
- package/dist/chunk-65c413665a7cf876.js +0 -2
- package/dist/chunk-6605e290c4de1f0e.js +0 -6
- package/dist/chunk-66ab377654806d08.js +0 -2
- package/dist/chunk-670d2c924e80cb33.js +0 -3
- package/dist/chunk-67351e678a7ccc10.js +0 -2
- package/dist/chunk-6766e66417809e1a.js +0 -2
- package/dist/chunk-6821bb0ff6ed2452.js +0 -18
- package/dist/chunk-682b01231754a121.js +0 -2
- package/dist/chunk-68af0a6f6be163ce.js +0 -2
- package/dist/chunk-6921ba2fa2e1adea.js +0 -2
- package/dist/chunk-6943b50bd0a3ac84.js +0 -1
- package/dist/chunk-699957e6eb705a81.js +0 -2
- package/dist/chunk-69ff5047661fe699.js +0 -2
- package/dist/chunk-6a28d299b5726bba.js +0 -2
- package/dist/chunk-6ac91c66919b5ddd.js +0 -2
- package/dist/chunk-6afe097e13ebdf55.js +0 -2
- package/dist/chunk-6c345dba15e1c3f2.js +0 -2
- package/dist/chunk-6c461d293fa213f1.js +0 -2
- package/dist/chunk-6caabea5fcbc9cf7.js +0 -2
- package/dist/chunk-6d04c1ccb3ca8c74.js +0 -1
- package/dist/chunk-6e06660ab4e9d4da.js +0 -6
- package/dist/chunk-6e415d0e12fc9539.js +0 -1
- package/dist/chunk-6f78f2a54491595d.js +0 -2
- package/dist/chunk-700835a3a709b370.js +0 -2
- package/dist/chunk-70bb003c03f21dad.js +0 -2
- package/dist/chunk-711f86b9d50d45fe.js +0 -18
- package/dist/chunk-71820a3186a38543.js +0 -6
- package/dist/chunk-7195a8718fcd8215.js +0 -1
- package/dist/chunk-722f2aeae58daaa3.js +0 -18
- package/dist/chunk-72821f055108528e.js +0 -2
- package/dist/chunk-72add10919c9d7ae.js +0 -2
- package/dist/chunk-731f30522682483a.js +0 -2
- package/dist/chunk-733513f9c9e8b50f.js +0 -2
- package/dist/chunk-733688c7851fffd1.js +0 -2
- package/dist/chunk-7336bd3f3b799e3e.js +0 -1
- package/dist/chunk-7399f06d840a1449.js +0 -2
- package/dist/chunk-73c97da8ac4f1d30.js +0 -1
- package/dist/chunk-73c9d39f58a30fe2.js +0 -6
- package/dist/chunk-73eed146ee78f681.js +0 -1
- package/dist/chunk-73fb3bb4d001bb2e.js +0 -1
- package/dist/chunk-7431d60af8814bc8.js +0 -2
- package/dist/chunk-74802f454b9972eb.js +0 -2
- package/dist/chunk-74ab9c225bfe0eaa.js +0 -2
- package/dist/chunk-74db07ba7b97d1c1.js +0 -2
- package/dist/chunk-76a525af0575486d.js +0 -5
- package/dist/chunk-76db0552d2492ee7.js +0 -3
- package/dist/chunk-774337ca540a856d.js +0 -2
- package/dist/chunk-77c89e3c8a03f91e.js +0 -2
- package/dist/chunk-77d1b26236f5feec.js +0 -2
- package/dist/chunk-77d5bbc7a9117c21.js +0 -2
- package/dist/chunk-782dde0748025b5a.js +0 -2
- package/dist/chunk-78534576cf359780.js +0 -2
- package/dist/chunk-7898dd7609f163e8.js +0 -2
- package/dist/chunk-78ab7bcbe6104c5f.js +0 -2
- package/dist/chunk-78d6df0054754d5d.js +0 -2
- package/dist/chunk-795a1bd1d89efce1.js +0 -2
- package/dist/chunk-797430f55303e6b5.js +0 -2
- package/dist/chunk-7975e27df461cbfb.js +0 -6
- package/dist/chunk-798f550643937b6d.js +0 -2
- package/dist/chunk-79b438007611560a.js +0 -2
- package/dist/chunk-79f7d7d90c4fb51a.js +0 -2
- package/dist/chunk-7a318e738fec6c2b.js +0 -3
- package/dist/chunk-7aa7f7e219919c4d.js +0 -2
- package/dist/chunk-7abc696047809312.js +0 -6
- package/dist/chunk-7afdc0ba5afe109a.js +0 -21
- package/dist/chunk-7b3bbc8a88aee78c.js +0 -1
- package/dist/chunk-7b8e777f7353b492.js +0 -2
- package/dist/chunk-7c0fd956d14fc327.js +0 -2
- package/dist/chunk-7c62e9d6edc4b418.js +0 -2
- package/dist/chunk-7c670baec90faacb.js +0 -2
- package/dist/chunk-7d7b2c1f2a8dd018.js +0 -6
- package/dist/chunk-7de7f34d46c76019.js +0 -18
- package/dist/chunk-7dfb17814922ade0.js +0 -2
- package/dist/chunk-7e9d5eea3aa359ad.js +0 -2
- package/dist/chunk-7ea1baca4032004f.js +0 -2
- package/dist/chunk-7eb54149dff25532.js +0 -2
- package/dist/chunk-7ec30fbbbdf89272.js +0 -2
- package/dist/chunk-7fadaab2fa180ca9.js +0 -6
- package/dist/chunk-7fef11f59982b1f6.js +0 -2
- package/dist/chunk-7ffe2ce59a054e35.js +0 -2
- package/dist/chunk-80b17f9853d76e98.js +0 -2
- package/dist/chunk-8133ed564834cff3.js +0 -2
- package/dist/chunk-8163d4f4c2c91caf.js +0 -2
- package/dist/chunk-817aad76d1e8eecc.js +0 -6
- package/dist/chunk-81938d68b172446d.js +0 -2
- package/dist/chunk-81a00ae1b3ea4824.js +0 -2
- package/dist/chunk-81ce9b491b290639.js +0 -1
- package/dist/chunk-81f5123a24c19089.js +0 -2
- package/dist/chunk-827d2c67c03d1a52.js +0 -2
- package/dist/chunk-8295e42bcfc910ff.js +0 -16
- package/dist/chunk-82f72dfc6e27be04.js +0 -1
- package/dist/chunk-8401f0f53dc26633.js +0 -1
- package/dist/chunk-8450a38607a86896.js +0 -2
- package/dist/chunk-847629c9a7550cc3.js +0 -2
- package/dist/chunk-84b129a5185ac24d.js +0 -2
- package/dist/chunk-84c7f86a97d17f53.js +0 -2
- package/dist/chunk-84f1b068dc7fc8b7.js +0 -2
- package/dist/chunk-8581aa9e876d46fb.js +0 -2
- package/dist/chunk-85a1f8fb96fd9473.js +0 -2
- package/dist/chunk-85d5e5d7ff832255.js +0 -2
- package/dist/chunk-860f5fcef7074193.js +0 -9
- package/dist/chunk-869d80d2e475b938.js +0 -3
- package/dist/chunk-880273a32da461fd.js +0 -9
- package/dist/chunk-88103b9d011960db.js +0 -5
- package/dist/chunk-89187bbdf6945131.js +0 -2
- package/dist/chunk-89291b5eb2bbd0b4.js +0 -2
- package/dist/chunk-895d9b1ef7a65211.js +0 -2
- package/dist/chunk-897773d66a89947a.js +0 -2
- package/dist/chunk-89c6080d4a693ddf.js +0 -2
- package/dist/chunk-8a993922ea970923.js +0 -2
- package/dist/chunk-8aa3e0e20e411d11.js +0 -2
- package/dist/chunk-8af626a703659719.js +0 -18
- package/dist/chunk-8b3d411f441a43ce.js +0 -2
- package/dist/chunk-8b40d6a498f8bf81.js +0 -2
- package/dist/chunk-8b944ecefa1b832c.js +0 -18
- package/dist/chunk-8bb91c504b9ca45e.js +0 -2
- package/dist/chunk-8bf925705fdcef0c.js +0 -2
- package/dist/chunk-8c2b349a7198788f.js +0 -6
- package/dist/chunk-8c3e0f5d4a0d6e53.js +0 -2
- package/dist/chunk-8c8c8fd3646b76a1.js +0 -2
- package/dist/chunk-8caa0abe673f5d41.js +0 -2
- package/dist/chunk-8d8666b73758171e.js +0 -2
- package/dist/chunk-8e72aa06d4e47eca.js +0 -2
- package/dist/chunk-8ef8222b34d8f63f.js +0 -2
- package/dist/chunk-8f24cd33e07d02f3.js +0 -2
- package/dist/chunk-8f547b919361fdf4.js +0 -2
- package/dist/chunk-8f986f307ff91bd3.js +0 -2
- package/dist/chunk-901e700a2c2d43f3.js +0 -18
- package/dist/chunk-90c5196ff1f827a8.js +0 -2
- package/dist/chunk-9113f22a5215c639.js +0 -3
- package/dist/chunk-915c050c94553981.js +0 -2
- package/dist/chunk-9238196d4889d660.js +0 -1
- package/dist/chunk-92a55add20b5d7ac.js +0 -9
- package/dist/chunk-92f6095a3be7f459.js +0 -1
- package/dist/chunk-9326224d1e4c1a64.js +0 -2
- package/dist/chunk-933845e73519b4c5.js +0 -2
- package/dist/chunk-934ebff128f86ef1.js +0 -1
- package/dist/chunk-9350baa090b5a424.js +0 -2
- package/dist/chunk-938fed005335132e.js +0 -9
- package/dist/chunk-93b6f53456c1251b.js +0 -2
- package/dist/chunk-94578320d28e33ad.js +0 -2
- package/dist/chunk-9501e589e3e86a96.js +0 -2
- package/dist/chunk-955e2bfcdb7a7e71.js +0 -2
- package/dist/chunk-96b635a3bdba7415.js +0 -2
- package/dist/chunk-970e033f764e29fc.js +0 -19
- package/dist/chunk-98126e4b5bd19831.js +0 -2
- package/dist/chunk-9938e9a4fe25dda5.js +0 -2
- package/dist/chunk-99ba9dfd7c11383b.js +0 -18
- package/dist/chunk-9a622a10e7764b23.js +0 -2
- package/dist/chunk-9b5649697d59dfb4.js +0 -2
- package/dist/chunk-9bd00e182ac2f8a6.js +0 -6
- package/dist/chunk-9bd90ecd4ddde546.js +0 -18
- package/dist/chunk-9c3b4dd1591053c5.js +0 -18
- package/dist/chunk-9c4a4b4bd266869d.js +0 -2
- package/dist/chunk-9d069ba29a122630.js +0 -1
- package/dist/chunk-9d1337fc9976354d.js +0 -2
- package/dist/chunk-9d2777df26b445e4.js +0 -2
- package/dist/chunk-9d2af1a704b857ee.js +0 -2
- package/dist/chunk-9d6cc631cdabbe35.js +0 -9
- package/dist/chunk-9d714f87e4e3e250.js +0 -18
- package/dist/chunk-9ee2118bd4eb34ae.js +0 -9
- package/dist/chunk-9f6199bc705fc395.js +0 -18
- package/dist/chunk-a0003b7feea6fae6.js +0 -2
- package/dist/chunk-a004fce37a0f5a65.js +0 -2
- package/dist/chunk-a02b2d564bdb603d.js +0 -6
- package/dist/chunk-a095821ffc039b99.js +0 -18
- package/dist/chunk-a10ae1a06a28aaab.js +0 -2
- package/dist/chunk-a13ab30c392c3563.js +0 -9
- package/dist/chunk-a14516ac5e6f78aa.js +0 -1
- package/dist/chunk-a14b8af8b2a8d0b0.js +0 -2
- package/dist/chunk-a210ec2b987fa5f7.js +0 -2
- package/dist/chunk-a2fcc46e344ae7ae.js +0 -2
- package/dist/chunk-a3526e321ac9d173.js +0 -1
- package/dist/chunk-a3f85d0d3261ae44.js +0 -9
- package/dist/chunk-a4862acc0c3fed7d.js +0 -6
- package/dist/chunk-a50b9cd348c3e882.js +0 -9
- package/dist/chunk-a57ecc74c0fb9045.js +0 -2
- package/dist/chunk-a5c18c07abe8fd9c.js +0 -2
- package/dist/chunk-a63e13c410e92923.js +0 -2
- package/dist/chunk-a693f8ec2e8af8ca.js +0 -2
- package/dist/chunk-a719a1f305964521.js +0 -2
- package/dist/chunk-a7a144f5e4772c35.js +0 -2
- package/dist/chunk-a7f3e9d5b7cf7c42.js +0 -2
- package/dist/chunk-a816613f5321b9db.js +0 -1
- package/dist/chunk-a8310ad9bad32329.js +0 -2
- package/dist/chunk-a885dc5561caa8e0.js +0 -3
- package/dist/chunk-a88c3919c74b7877.js +0 -18
- package/dist/chunk-a9625dd807cb668e.js +0 -2
- package/dist/chunk-a991fdce275f1256.js +0 -2
- package/dist/chunk-aa1b1fb08828cb24.js +0 -2
- package/dist/chunk-aad7af5112f0f4f2.js +0 -2
- package/dist/chunk-aaf5855c5199efe9.js +0 -2
- package/dist/chunk-aaf70ff16705d558.js +0 -2
- package/dist/chunk-aafdd9bfb5bde8bf.js +0 -2
- package/dist/chunk-ab0c3f72f95cb4f4.js +0 -3
- package/dist/chunk-ab79a2f0d89fbeae.js +0 -1
- package/dist/chunk-ab7b6ceb26aca9b1.js +0 -3
- package/dist/chunk-abb2f588bd34adff.js +0 -2
- package/dist/chunk-abd0b68c299eebfc.js +0 -2
- package/dist/chunk-ac32b3d9dda47756.js +0 -9
- package/dist/chunk-acd4530b2ff92aff.js +0 -18
- package/dist/chunk-ad656a60ce7912bb.js +0 -2
- package/dist/chunk-ad8e7de66d8bf8c5.js +0 -2
- package/dist/chunk-adb4e1e222eb1d20.js +0 -2
- package/dist/chunk-ae373c8ae2d526ae.js +0 -18
- package/dist/chunk-ae50ef54d7de9179.js +0 -2
- package/dist/chunk-ae7b1bdf00266d88.js +0 -2
- package/dist/chunk-aef3f1c1429e6058.js +0 -2
- package/dist/chunk-af6b79a6ce7388ee.js +0 -18
- package/dist/chunk-afbf69daa7589a52.js +0 -2
- package/dist/chunk-b009482e01114059.js +0 -3
- package/dist/chunk-b031077f0a783b82.js +0 -2
- package/dist/chunk-b05cb7ef4546980d.js +0 -2
- package/dist/chunk-b05e4833f4bb2f8f.js +0 -9
- package/dist/chunk-b06168e5d3080486.js +0 -1
- package/dist/chunk-b07249c949a284d2.js +0 -16
- package/dist/chunk-b0cc82fa84d5362d.js +0 -2
- package/dist/chunk-b0f453845cad4e6e.js +0 -2
- package/dist/chunk-b13cfa16a8a18324.js +0 -3
- package/dist/chunk-b1918e88103a8501.js +0 -2
- package/dist/chunk-b2bc43f60314d1a9.js +0 -2
- package/dist/chunk-b2d07c19a78dc397.js +0 -2
- package/dist/chunk-b3bfe533d66f6a17.js +0 -2
- package/dist/chunk-b3e27ec4b56a20ac.js +0 -2
- package/dist/chunk-b558c43783464f1b.js +0 -2
- package/dist/chunk-b5d6eb761760b2a7.js +0 -6
- package/dist/chunk-b66a9e50afbac035.js +0 -9
- package/dist/chunk-b7b365f7e6038104.js +0 -2
- package/dist/chunk-b7c4dc1136fcaeb7.js +0 -2
- package/dist/chunk-b7da6c96acf0478f.js +0 -18
- package/dist/chunk-b7f9e29074a9f36a.js +0 -2
- package/dist/chunk-b80a86610158cbfd.js +0 -1
- package/dist/chunk-b855e71b162ce5a2.js +0 -2
- package/dist/chunk-b8d3d76e1dd9affe.js +0 -2
- package/dist/chunk-b97189ea9588db36.js +0 -9
- package/dist/chunk-b9cba2a8bd5bcd3e.js +0 -2
- package/dist/chunk-b9e4546aaa58319c.js +0 -2
- package/dist/chunk-b9f4c1fce7152fc8.js +0 -9
- package/dist/chunk-ba051a98cd651063.js +0 -1
- package/dist/chunk-bb72c8820407f3a6.js +0 -2
- package/dist/chunk-bbd36ce62b950ee5.js +0 -2
- package/dist/chunk-bbdd098f2a2cd820.js +0 -18
- package/dist/chunk-bcd70a6fc2fd359c.js +0 -1
- package/dist/chunk-bd2888a454e50cfd.js +0 -1
- package/dist/chunk-bd52b3f25b928eb1.js +0 -2
- package/dist/chunk-bdc34785363e3f34.js +0 -2
- package/dist/chunk-bdf4f2b1862899bb.js +0 -2
- package/dist/chunk-be095501304df604.js +0 -9
- package/dist/chunk-beca91bf7cc216cd.js +0 -2
- package/dist/chunk-bee6075c5738d87a.js +0 -2
- package/dist/chunk-bf14cc3e71fcd2d8.js +0 -2
- package/dist/chunk-bf4fa1d9864332a8.js +0 -2
- package/dist/chunk-bf92f3127474b56a.js +0 -3
- package/dist/chunk-bfccfb070c1630e9.js +0 -2
- package/dist/chunk-bffb8d677e1424a9.js +0 -6
- package/dist/chunk-c041f058dc3d571b.js +0 -1
- package/dist/chunk-c0bd8e19395d722b.js +0 -2
- package/dist/chunk-c124bf801cec12d9.js +0 -2
- package/dist/chunk-c153b192112b0d44.js +0 -2
- package/dist/chunk-c1813278ccdc04b8.js +0 -2
- package/dist/chunk-c210f6ae6276ebe8.js +0 -1
- package/dist/chunk-c29701ffef4ca07a.js +0 -2
- package/dist/chunk-c2d1f66cf8468e71.js +0 -1
- package/dist/chunk-c2fe378a1764eb92.js +0 -2
- package/dist/chunk-c3e4a396dc7a5fe7.js +0 -2
- package/dist/chunk-c3eaa877d3aab9db.js +0 -18
- package/dist/chunk-c45e1427f48008f0.js +0 -2
- package/dist/chunk-c4f342e09d9b2f23.js +0 -2
- package/dist/chunk-c50ff3cf3c78af79.js +0 -2
- package/dist/chunk-c609d06153ed09ce.js +0 -2
- package/dist/chunk-c62b5c4cec67029c.js +0 -1
- package/dist/chunk-c675395110f371b1.js +0 -6
- package/dist/chunk-c675f193d459818e.js +0 -2
- package/dist/chunk-c6846df9c8456b20.js +0 -3
- package/dist/chunk-c6d988f5928a4df1.js +0 -2
- package/dist/chunk-c72bfaa252a03f6f.js +0 -2
- package/dist/chunk-c7b024c7bd4cffc9.js +0 -3
- package/dist/chunk-c7e2acfd5087fb30.js +0 -2
- package/dist/chunk-c83b39b7178003da.js +0 -2
- package/dist/chunk-c85fc7168a708cb6.js +0 -3
- package/dist/chunk-c8631aa6bbb62e13.js +0 -2
- package/dist/chunk-c864ab57913d658f.js +0 -1
- package/dist/chunk-c882d0c175c22c17.js +0 -2
- package/dist/chunk-c8b00b645df96ed5.js +0 -2
- package/dist/chunk-c8f1115d77efc1c0.js +0 -2
- package/dist/chunk-c9707ae8f1d346ff.js +0 -3
- package/dist/chunk-c99b8c3d6bda27b0.js +0 -2
- package/dist/chunk-cb65fe402653c65e.js +0 -2
- package/dist/chunk-cb69e9621a60d310.js +0 -1
- package/dist/chunk-cca1f3ae7ec0dee1.js +0 -2
- package/dist/chunk-ccb551ce4fd177fe.js +0 -2
- package/dist/chunk-cce7de7e81895807.js +0 -2
- package/dist/chunk-ccfd101ce72e80bf.js +0 -1
- package/dist/chunk-cd1636884486d7b3.js +0 -1
- package/dist/chunk-cdfa2adeddc1a8e1.js +0 -2
- package/dist/chunk-ceb94e70091088e5.js +0 -2
- package/dist/chunk-cf3d1744ea801f48.js +0 -6
- package/dist/chunk-cf7dde2ab1be3a3c.js +0 -1
- package/dist/chunk-cf8b1c7a4e9fc32d.js +0 -18
- package/dist/chunk-cfa9a65fae5ddaf4.js +0 -2
- package/dist/chunk-d0757747d9cc2e47.js +0 -2
- package/dist/chunk-d0806df6defd9dce.js +0 -2
- package/dist/chunk-d12b578765686adb.js +0 -6
- package/dist/chunk-d16ef78d852a6856.js +0 -1
- package/dist/chunk-d22136d39cf8465f.js +0 -2
- package/dist/chunk-d26ffb7722e6df54.js +0 -1
- package/dist/chunk-d27588325ae2c0f3.js +0 -2
- package/dist/chunk-d2e057b6f3f9d500.js +0 -2
- package/dist/chunk-d3033805e98482dc.js +0 -6
- package/dist/chunk-d33a0e61ccf1bab5.js +0 -2
- package/dist/chunk-d3765f96a689a0c1.js +0 -2
- package/dist/chunk-d37757ffee07b05f.js +0 -6
- package/dist/chunk-d3b4a3c778c23705.js +0 -2
- package/dist/chunk-d3e039d010842a3f.js +0 -2
- package/dist/chunk-d43b3f444e738dd1.js +0 -1
- package/dist/chunk-d445af84de70bf7e.js +0 -2
- package/dist/chunk-d535b1e3078465f8.js +0 -2
- package/dist/chunk-d54843c1d8516c75.js +0 -2
- package/dist/chunk-d5709251a0493152.js +0 -6
- package/dist/chunk-d5ddfacbfc84a47d.js +0 -6
- package/dist/chunk-d665d3ee2a62d48b.js +0 -2
- package/dist/chunk-d7457cb6aae3b29b.js +0 -2
- package/dist/chunk-d850d83873a89e2b.js +0 -18
- package/dist/chunk-d93a6531661d56b5.js +0 -9
- package/dist/chunk-d93cbffc712a052f.js +0 -2
- package/dist/chunk-d950bbcb684a11ef.js +0 -2
- package/dist/chunk-d9577d79d4b718a6.js +0 -2
- package/dist/chunk-d9762bab5df03532.js +0 -2
- package/dist/chunk-d9968563c6c84405.js +0 -3
- package/dist/chunk-d9a84b9122601b72.js +0 -2
- package/dist/chunk-da1c673d9685624e.js +0 -2
- package/dist/chunk-dab2dde8cc9da99b.js +0 -9
- package/dist/chunk-dac0e2ef13060d02.js +0 -1
- package/dist/chunk-dac9276e506d125d.js +0 -2
- package/dist/chunk-dad55fcc32d05b69.js +0 -2
- package/dist/chunk-db2270bbca7854fe.js +0 -2
- package/dist/chunk-db65c75cda396f98.js +0 -2
- package/dist/chunk-dba84b47adec2108.js +0 -2
- package/dist/chunk-dc23bfb4fd92e2f0.js +0 -2
- package/dist/chunk-dc7b0cf226ba3afa.js +0 -2
- package/dist/chunk-dcc432bd72fb7e46.js +0 -3
- package/dist/chunk-dd211856e049a67f.js +0 -9
- package/dist/chunk-dd21f367f8029793.js +0 -2
- package/dist/chunk-dd8b042837b4d5f1.js +0 -2
- package/dist/chunk-ddef8961cbf08a05.js +0 -6
- package/dist/chunk-de0784c3310db458.js +0 -5
- package/dist/chunk-de39fc86bbd37240.js +0 -1
- package/dist/chunk-de3ec02f9d17c2c9.js +0 -2
- package/dist/chunk-def30dbcb4c6aceb.js +0 -2
- package/dist/chunk-df55f07f8adf212f.js +0 -2
- package/dist/chunk-df926b342440f55f.js +0 -5
- package/dist/chunk-dfadfa4e09b4db22.js +0 -2
- package/dist/chunk-dfc390f0bbdf5a81.js +0 -1
- package/dist/chunk-e05db2eae976681b.js +0 -3
- package/dist/chunk-e06fbc8e70a88f07.js +0 -2
- package/dist/chunk-e0a028ef931a3eb1.js +0 -18
- package/dist/chunk-e0e0f2ee626a6fb3.js +0 -18
- package/dist/chunk-e0ffb920c65ebf44.js +0 -2
- package/dist/chunk-e11c7f3abcf2269f.js +0 -2
- package/dist/chunk-e16b252158474b8c.js +0 -1
- package/dist/chunk-e19064e9f1d5faed.js +0 -2
- package/dist/chunk-e1a08bb52ee7ea09.js +0 -2
- package/dist/chunk-e1e84c38542d78ec.js +0 -2
- package/dist/chunk-e33c33445a92adf1.js +0 -1
- package/dist/chunk-e3acd3561fe1342c.js +0 -18
- package/dist/chunk-e3e996b3821027e1.js +0 -2
- package/dist/chunk-e3ef81776c8f2d28.js +0 -2
- package/dist/chunk-e4869466459233fa.js +0 -16
- package/dist/chunk-e4f28182cf5f6e1d.js +0 -2
- package/dist/chunk-e53fdd0a1888c5e8.js +0 -2
- package/dist/chunk-e5a95230e0858544.js +0 -3
- package/dist/chunk-e64d5a7b7e0fa2c5.js +0 -6
- package/dist/chunk-e755f2c1c7ad3912.js +0 -2
- package/dist/chunk-e8159722d49ad044.js +0 -2
- package/dist/chunk-e86269d01f94404c.js +0 -2
- package/dist/chunk-e9275fb341d2cdd9.js +0 -2
- package/dist/chunk-e9c96f9b825f8de7.js +0 -2
- package/dist/chunk-ea9b86cf2edd807b.js +0 -18
- package/dist/chunk-ec24a0767aa58f1f.js +0 -18
- package/dist/chunk-ed21fb7d8c4b675e.js +0 -3
- package/dist/chunk-ed589d4e4c575de7.js +0 -2
- package/dist/chunk-edba144b170cd87e.js +0 -6
- package/dist/chunk-edeefd833c30a5ed.js +0 -2
- package/dist/chunk-ee35048642cfe9d8.js +0 -2
- package/dist/chunk-ee4ff285d7f4ccdf.js +0 -2
- package/dist/chunk-ee604d0215ea07e6.js +0 -1
- package/dist/chunk-ee92e80230ce02ec.js +0 -2
- package/dist/chunk-eea1d6f60a6875d5.js +0 -2
- package/dist/chunk-eeb3b193701aec43.js +0 -1
- package/dist/chunk-ef1ebd10affe5726.js +0 -2
- package/dist/chunk-ef30aafcfd40dc07.js +0 -2
- package/dist/chunk-f077321ef55ea627.js +0 -1
- package/dist/chunk-f08ca4bd263b132b.js +0 -2
- package/dist/chunk-f0d3ed16a520ecf1.js +0 -18
- package/dist/chunk-f117757df00aa18d.js +0 -2
- package/dist/chunk-f13fd46441a58606.js +0 -2
- package/dist/chunk-f1ac22ad55dbab7a.js +0 -9
- package/dist/chunk-f1dfc76a05462dde.js +0 -2
- package/dist/chunk-f1e28c4c1a227c27.js +0 -2
- package/dist/chunk-f2428c56f532e719.js +0 -3
- package/dist/chunk-f256432c3e5819d0.js +0 -2
- package/dist/chunk-f2dca6305fcba70b.js +0 -2
- package/dist/chunk-f316793e4ec0f386.js +0 -2
- package/dist/chunk-f32726d374c6bee5.js +0 -1
- package/dist/chunk-f34a78d9e3a62c43.js +0 -3
- package/dist/chunk-f404a785b581d029.js +0 -2
- package/dist/chunk-f5910f2c8a3f6974.js +0 -2
- package/dist/chunk-f5a4295176f9b1c1.js +0 -2
- package/dist/chunk-f5b888aa9ac4e20f.js +0 -2
- package/dist/chunk-f5e313cc7d724fbe.js +0 -2
- package/dist/chunk-f67aa3e46d73674e.js +0 -2
- package/dist/chunk-f69bcbd7998553cb.js +0 -2
- package/dist/chunk-f74928c3f9ae5359.js +0 -2
- package/dist/chunk-f7796c3724a35057.js +0 -2
- package/dist/chunk-f84049d82d29bd9e.js +0 -2
- package/dist/chunk-f868cdf653dbe87e.js +0 -2
- package/dist/chunk-f8823a1ede83155e.js +0 -2
- package/dist/chunk-f8ad65b3a07ce3c4.js +0 -6
- package/dist/chunk-f900b5868b14827e.js +0 -2
- package/dist/chunk-f9084650419a23c4.js +0 -2
- package/dist/chunk-f95f5e3439539ca5.js +0 -2
- package/dist/chunk-f99bdfc336b2ac57.js +0 -9
- package/dist/chunk-f9a17b871b527bff.js +0 -2
- package/dist/chunk-f9e6a0a946ebb032.js +0 -2
- package/dist/chunk-fa40971555060604.js +0 -81
- package/dist/chunk-fa6bdfb32d2f97fb.js +0 -2
- package/dist/chunk-faa8c62bfa11f9d5.js +0 -2
- package/dist/chunk-fb25896f1638ca8e.js +0 -3
- package/dist/chunk-fc165cee61f6efe8.js +0 -6
- package/dist/chunk-fd5ffee329d6f29b.js +0 -2
- package/dist/chunk-feaaa37d30cd1e9b.js +0 -2
- package/dist/chunk-fec9f0b0b0319f3b.js +0 -2
- package/dist/chunk-ff086fe014985526.js +0 -1
- package/dist/chunk-ff1bbce70d726bc6.js +0 -9
- package/dist/chunk-ff9a2d6d503e6db6.js +0 -18
- package/dist/chunk-ffe161a589b4c44b.js +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import{y as RU,z as E} from"./chunk-7ce930fe69575c87.js";import{E as JR} from"./chunk-d7c78cd1ab7dc7ed.js";import{H as c,I as bU,J as XZ,M as rU,N as NL,Q as jL,X as P6} from"./chunk-61fc22887a7be6f9.js";import{lb as F0} from"./chunk-c7e2acfd5087fb30.js";import{mb as L5,nb as K0,ob as fU} from"./chunk-b558c43783464f1b.js";import{ub as CU} from"./chunk-069fcad61c8841dc.js";import{Db as hL} from"./chunk-3abb49bba3da7231.js";var b0=E((_R,GG)=>{var{defineProperty:X1,getOwnPropertyDescriptor:lL,getOwnPropertyNames:sL}=Object,mL=Object.prototype.hasOwnProperty,$G=($,U)=>X1($,"name",{value:U,configurable:!0}),nL=($,U)=>{for(var G in U)X1($,G,{get:U[G],enumerable:!0})},iL=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of sL(U))if(!mL.call($,X)&&X!==G)X1($,X,{get:()=>U[X],enumerable:!(W=lL(U,X))||W.enumerable})}return $},rL=($)=>iL(X1({},"__esModule",{value:!0}),$),UG={};nL(UG,{getSmithyContext:()=>oL,normalizeProvider:()=>aL});GG.exports=rL(UG);var eU=F0(),oL=$G(($)=>$[eU.SMITHY_CONTEXT_KEY]||($[eU.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),aL=$G(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider")});var F$=E((dR,YG)=>{var{defineProperty:Z1,getOwnPropertyDescriptor:tL,getOwnPropertyNames:eL}=Object,$Y=Object.prototype.hasOwnProperty,Q0=($,U)=>Z1($,"name",{value:U,configurable:!0}),UY=($,U)=>{for(var G in U)Z1($,G,{get:U[G],enumerable:!0})},GY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of eL(U))if(!$Y.call($,X)&&X!==G)Z1($,X,{get:()=>U[X],enumerable:!(W=tL(U,X))||W.enumerable})}return $},WY=($)=>GY(Z1({},"__esModule",{value:!0}),$),WG={};UY(WG,{CredentialsProviderError:()=>XY,ProviderError:()=>L1,TokenProviderError:()=>ZY,chain:()=>LY,fromStatic:()=>YY,memoize:()=>wY});YG.exports=WY(WG);var XG=class $ extends Error{constructor(U,G=!0){var W;let X,Z=!0;if(typeof G==="boolean")X=void 0,Z=G;else if(G!=null&&typeof G==="object")X=G.logger,Z=G.tryNextLink??!0;super(U);this.name="ProviderError",this.tryNextLink=Z,Object.setPrototypeOf(this,$.prototype),(W=X==null?void 0:X.debug)==null||W.call(X,`@smithy/property-provider ${Z?"->":"(!)"} ${U}`)}static from(U,G=!0){return Object.assign(new this(U.message,G),U)}};Q0(XG,"ProviderError");var L1=XG,ZG=class $ extends L1{constructor(U,G=!0){super(U,G);this.name="CredentialsProviderError",Object.setPrototypeOf(this,$.prototype)}};Q0(ZG,"CredentialsProviderError");var XY=ZG,LG=class $ extends L1{constructor(U,G=!0){super(U,G);this.name="TokenProviderError",Object.setPrototypeOf(this,$.prototype)}};Q0(LG,"TokenProviderError");var ZY=LG,LY=Q0((...$)=>async()=>{if($.length===0)throw new L1("No providers in chain");let U;for(let G of $)try{return await G()}catch(W){if(U=W,W==null?void 0:W.tryNextLink)continue;throw W}throw U},"chain"),YY=Q0(($)=>()=>Promise.resolve($),"fromStatic"),wY=Q0(($,U,G)=>{let W,X,Z,L=!1;const Y=Q0(async()=>{if(!X)X=$();try{W=await X,Z=!0,L=!1}finally{X=void 0}return W},"coalesceProvider");if(U===void 0)return async(w)=>{if(!Z||(w==null?void 0:w.forceRefresh))W=await Y();return W};return async(w)=>{if(!Z||(w==null?void 0:w.forceRefresh))W=await Y();if(L)return W;if(G&&!G(W))return L=!0,W;if(U(W))return await Y(),W;return W}},"memoize")});var T0=E((wG)=>{Object.defineProperty(wG,"__esModule",{value:!0});wG.getHomeDir=void 0;var FY=import.meta.require("os"),QY=import.meta.require("path"),Q$={},zY=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},IY=()=>{const{HOME:$,USERPROFILE:U,HOMEPATH:G,HOMEDRIVE:W=`C:${QY.sep}`}=process.env;if($)return $;if(U)return U;if(G)return`${W}${G}`;const X=zY();if(!Q$[X])Q$[X]=FY.homedir();return Q$[X]};wG.getHomeDir=IY});var z$=E((QG)=>{Object.defineProperty(QG,"__esModule",{value:!0});QG.getSSOTokenFilepath=void 0;var JY=import.meta.require("crypto"),RY=import.meta.require("path"),KY=T0(),EY=($)=>{const G=JY.createHash("sha1").update($).digest("hex");return RY.join(KY.getHomeDir(),".aws","sso","cache",`${G}.json`)};QG.getSSOTokenFilepath=EY});var RG=E((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.getSSOTokenFromFile=void 0;var MY=import.meta.require("fs"),BY=z$(),{readFile:VY}=MY.promises,TY=async($)=>{const U=BY.getSSOTokenFilepath($),G=await VY(U,"utf8");return JSON.parse(G)};IG.getSSOTokenFromFile=TY});var J$=E((KG)=>{Object.defineProperty(KG,"__esModule",{value:!0});KG.slurpFile=void 0;var HY=import.meta.require("fs"),{readFile:AY}=HY.promises,I$={},OY=($,U)=>{if(!I$[$]||(U===null||U===void 0?void 0:U.ignoreCache))I$[$]=AY($,"utf8");return I$[$]};KG.slurpFile=OY});var M$=E((mR,x0)=>{var{defineProperty:F1,getOwnPropertyDescriptor:CY,getOwnPropertyNames:fY}=Object,qY=Object.prototype.hasOwnProperty,y=($,U)=>F1($,"name",{value:U,configurable:!0}),NY=($,U)=>{for(var G in U)F1($,G,{get:U[G],enumerable:!0})},R$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of fY(U))if(!qY.call($,X)&&X!==G)F1($,X,{get:()=>U[X],enumerable:!(W=CY(U,X))||W.enumerable})}return $},E$=($,U,G)=>(R$($,U,"default"),G&&R$(G,U,"default")),jY=($)=>R$(F1({},"__esModule",{value:!0}),$),h0={};NY(h0,{CONFIG_PREFIX_SEPARATOR:()=>z0,DEFAULT_PROFILE:()=>TG,ENV_PROFILE:()=>VG,getProfileName:()=>PY,loadSharedConfigFiles:()=>AG,loadSsoSessionData:()=>gY,parseKnownFiles:()=>lY});x0.exports=jY(h0);E$(h0,T0(),x0.exports);var VG="AWS_PROFILE",TG="default",PY=y(($)=>$.profile||process.env[VG]||TG,"getProfileName");E$(h0,z$(),x0.exports);E$(h0,RG(),x0.exports);var Y1=F0(),SY=y(($)=>Object.entries($).filter(([U])=>{const G=U.indexOf(z0);if(G===-1)return!1;return Object.values(Y1.IniSectionType).includes(U.substring(0,G))}).reduce((U,[G,W])=>{const X=G.indexOf(z0),Z=G.substring(0,X)===Y1.IniSectionType.PROFILE?G.substring(X+1):G;return U[Z]=W,U},{...$.default&&{default:$.default}}),"getConfigData"),w1=import.meta.require("path"),DY=T0(),kY="AWS_CONFIG_FILE",HG=y(()=>process.env[kY]||w1.join(DY.getHomeDir(),".aws","config"),"getConfigFilepath"),bY=T0(),hY="AWS_SHARED_CREDENTIALS_FILE",xY=y(()=>process.env[hY]||w1.join(bY.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),vY=T0(),cY=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,yY=["__proto__","profile __proto__"],K$=y(($)=>{const U={};let G,W;for(let X of $.split(/\r?\n/)){const Z=X.split(/(^|\s)[;#]/)[0].trim();if(Z[0]==="["&&Z[Z.length-1]==="]"){G=void 0,W=void 0;const Y=Z.substring(1,Z.length-1),w=cY.exec(Y);if(w){const[,F,,Q]=w;if(Object.values(Y1.IniSectionType).includes(F))G=[F,Q].join(z0)}else G=Y;if(yY.includes(Y))throw new Error(`Found invalid profile name "${Y}"`)}else if(G){const Y=Z.indexOf("=");if(![0,-1].includes(Y)){const[w,F]=[Z.substring(0,Y).trim(),Z.substring(Y+1).trim()];if(F==="")W=w;else{if(W&&X.trimStart()===X)W=void 0;U[G]=U[G]||{};const Q=W?[W,w].join(z0):w;U[G][Q]=F}}}}return U},"parseIni"),MG=J$(),BG=y(()=>({}),"swallowError"),z0=".",AG=y(async($={})=>{const{filepath:U=xY(),configFilepath:G=HG()}=$,W=vY.getHomeDir();let Z=U;if(U.startsWith("~/"))Z=w1.join(W,U.slice(2));let L=G;if(G.startsWith("~/"))L=w1.join(W,G.slice(2));const Y=await Promise.all([MG.slurpFile(L,{ignoreCache:$.ignoreCache}).then(K$).then(SY).catch(BG),MG.slurpFile(Z,{ignoreCache:$.ignoreCache}).then(K$).catch(BG)]);return{configFile:Y[0],credentialsFile:Y[1]}},"loadSharedConfigFiles"),uY=y(($)=>Object.entries($).filter(([U])=>U.startsWith(Y1.IniSectionType.SSO_SESSION+z0)).reduce((U,[G,W])=>({...U,[G.substring(G.indexOf(z0)+1)]:W}),{}),"getSsoSessionData"),_Y=J$(),dY=y(()=>({}),"swallowError"),gY=y(async($={})=>_Y.slurpFile($.configFilepath??HG()).then(K$).then(uY).catch(dY),"loadSsoSessionData"),pY=y((...$)=>{const U={};for(let G of $)for(let[W,X]of Object.entries(G))if(U[W]!==void 0)Object.assign(U[W],X);else U[W]=X;return U},"mergeConfigFiles"),lY=y(async($)=>{const U=await AG($);return pY(U.configFile,U.credentialsFile)},"parseKnownFiles")});var qG=E((nR,fG)=>{var B$=function($){try{const U=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return U.delete("CONFIG"),U.delete("CONFIG_PREFIX_SEPARATOR"),U.delete("ENV"),[...U].join(", ")}catch(U){return $}},Q1=Object.defineProperty,sY=Object.getOwnPropertyDescriptor,mY=Object.getOwnPropertyNames,nY=Object.prototype.hasOwnProperty,H0=($,U)=>Q1($,"name",{value:U,configurable:!0}),iY=($,U)=>{for(var G in U)Q1($,G,{get:U[G],enumerable:!0})},rY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of mY(U))if(!nY.call($,X)&&X!==G)Q1($,X,{get:()=>U[X],enumerable:!(W=sY(U,X))||W.enumerable})}return $},oY=($)=>rY(Q1({},"__esModule",{value:!0}),$),CG={};iY(CG,{loadConfig:()=>U5});fG.exports=oY(CG);var v0=F$();H0(B$,"getSelectorName");var aY=H0(($,U)=>async()=>{try{const G=$(process.env);if(G===void 0)throw new Error;return G}catch(G){throw new v0.CredentialsProviderError(G.message||`Not found in ENV: ${B$($.toString())}`,{logger:U})}},"fromEnv"),OG=M$(),tY=H0(($,{preferredFile:U="config",...G}={})=>async()=>{const W=OG.getProfileName(G),{configFile:X,credentialsFile:Z}=await OG.loadSharedConfigFiles(G),L=Z[W]||{},Y=X[W]||{},w=U==="config"?{...L,...Y}:{...Y,...L};try{const Q=$(w,U==="config"?X:Z);if(Q===void 0)throw new Error;return Q}catch(F){throw new v0.CredentialsProviderError(F.message||`Not found in config files w/ profile [${W}]: ${B$($.toString())}`,{logger:G.logger})}},"fromSharedConfigFiles"),eY=H0(($)=>typeof $==="function","isFunction"),$5=H0(($)=>eY($)?async()=>await $():v0.fromStatic($),"fromStatic"),U5=H0(({environmentVariableSelector:$,configFileSelector:U,default:G},W={})=>v0.memoize(v0.chain(aY($),tY(U,W),$5(G))),"loadConfig")});var kG=E((SG)=>{Object.defineProperty(SG,"__esModule",{value:!0});SG.getEndpointUrlConfig=void 0;var NG=M$(),jG="AWS_ENDPOINT_URL",PG="endpoint_url",G5=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((Z)=>Z.toUpperCase()),W=U[[jG,...G].join("_")];if(W)return W;const X=U[jG];if(X)return X;return},configFileSelector:(U,G)=>{if(G&&U.services){const X=G[["services",U.services].join(NG.CONFIG_PREFIX_SEPARATOR)];if(X){const Z=$.split(" ").map((Y)=>Y.toLowerCase()),L=X[[Z.join("_"),PG].join(NG.CONFIG_PREFIX_SEPARATOR)];if(L)return L}}const W=U[PG];if(W)return W;return},default:void 0});SG.getEndpointUrlConfig=G5});var xG=E((bG)=>{Object.defineProperty(bG,"__esModule",{value:!0});bG.getEndpointFromConfig=void 0;var W5=qG(),X5=kG(),Z5=async($)=>W5.loadConfig(X5.getEndpointUrlConfig($))();bG.getEndpointFromConfig=Z5});var uG=E((oR,yG)=>{var{defineProperty:z1,getOwnPropertyDescriptor:Y5,getOwnPropertyNames:w5}=Object,F5=Object.prototype.hasOwnProperty,Q5=($,U)=>z1($,"name",{value:U,configurable:!0}),z5=($,U)=>{for(var G in U)z1($,G,{get:U[G],enumerable:!0})},I5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of w5(U))if(!F5.call($,X)&&X!==G)z1($,X,{get:()=>U[X],enumerable:!(W=Y5(U,X))||W.enumerable})}return $},J5=($)=>I5(z1({},"__esModule",{value:!0}),$),vG={};z5(vG,{parseUrl:()=>cG});yG.exports=J5(vG);var R5=L5(),cG=Q5(($)=>{if(typeof $==="string")return cG(new URL($));const{hostname:U,pathname:G,port:W,protocol:X,search:Z}=$;let L;if(Z)L=R5.parseQueryString(Z);return{hostname:U,port:W?parseInt(W):void 0,protocol:X,path:G,query:L}},"parseUrl")});var T$=E((aR,mG)=>{var sG=function($,U,G){return{applyToStack:(W)=>{W.add(dG($,G),pG),W.add(gG($,U),lG)}}},I1=Object.defineProperty,K5=Object.getOwnPropertyDescriptor,E5=Object.getOwnPropertyNames,M5=Object.prototype.hasOwnProperty,V$=($,U)=>I1($,"name",{value:U,configurable:!0}),B5=($,U)=>{for(var G in U)I1($,G,{get:U[G],enumerable:!0})},V5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of E5(U))if(!M5.call($,X)&&X!==G)I1($,X,{get:()=>U[X],enumerable:!(W=K5(U,X))||W.enumerable})}return $},T5=($)=>V5(I1({},"__esModule",{value:!0}),$),_G={};B5(_G,{deserializerMiddleware:()=>dG,deserializerMiddlewareOption:()=>pG,getSerdePlugin:()=>sG,serializerMiddleware:()=>gG,serializerMiddlewareOption:()=>lG});mG.exports=T5(_G);var dG=V$(($,U)=>(G)=>async(W)=>{const{response:X}=await G(W);try{const Z=await U(X,$);return{response:X,output:Z}}catch(Z){if(Object.defineProperty(Z,"$response",{value:X}),!("$metadata"in Z)){if(Z.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof Z.$responseBodyText!=="undefined"){if(Z.$response)Z.$response.body=Z.$responseBodyText}}throw Z}},"deserializerMiddleware"),gG=V$(($,U)=>(G,W)=>async(X)=>{var Z;const L=((Z=W.endpointV2)==null?void 0:Z.url)&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!L)throw new Error("No valid endpoint provider available.");const Y=await U(X.input,{...$,endpoint:L});return G({...X,request:Y})},"serializerMiddleware"),pG={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},lG={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};V$(sG,"getSerdePlugin")});var $8=E((tR,eG)=>{var{defineProperty:R1,getOwnPropertyDescriptor:H5,getOwnPropertyNames:A5}=Object,O5=Object.prototype.hasOwnProperty,g=($,U)=>R1($,"name",{value:U,configurable:!0}),C5=($,U)=>{for(var G in U)R1($,G,{get:U[G],enumerable:!0})},f5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of A5(U))if(!O5.call($,X)&&X!==G)R1($,X,{get:()=>U[X],enumerable:!(W=H5(U,X))||W.enumerable})}return $},q5=($)=>f5(R1({},"__esModule",{value:!0}),$),iG={};C5(iG,{endpointMiddleware:()=>aG,endpointMiddlewareOptions:()=>tG,getEndpointFromInstructions:()=>rG,getEndpointPlugin:()=>v5,resolveEndpointConfig:()=>c5,resolveParams:()=>oG,toEndpointV1:()=>H$});eG.exports=q5(iG);var N5=g(async($)=>{const U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(k5(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!D5(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),j5=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,P5=/(\d+\.){3}\d+/,S5=/\.\./,D5=g(($)=>j5.test($)&&!P5.test($)&&!S5.test($),"isDnsCompatibleBucketName"),k5=g(($)=>{const[U,G,W,,,X]=$.split(":"),Z=U==="arn"&&$.split(":").length>=6,L=Boolean(Z&&G&&W&&X);if(Z&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L},"isArnBucketName"),b5=g(($,U,G)=>{const W=g(async()=>{const X=G[$]??G[U];if(typeof X==="function")return X();return X},"configProvider");if($==="credentialScope"||U==="CredentialScope")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return(X==null?void 0:X.credentialScope)??(X==null?void 0:X.CredentialScope)};if($==="accountId"||U==="AccountId")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return(X==null?void 0:X.accountId)??(X==null?void 0:X.AccountId)};if($==="endpoint"||U==="endpoint")return async()=>{const X=await W();if(X&&typeof X==="object"){if("url"in X)return X.url.href;if("hostname"in X){const{protocol:Z,hostname:L,port:Y,path:w}=X;return`${Z}//${L}${Y?":"+Y:""}${w}`}}return X};return W},"createConfigValueProvider"),h5=xG(),nG=uG(),H$=g(($)=>{if(typeof $==="object"){if("url"in $)return nG.parseUrl($.url);return $}return nG.parseUrl($)},"toEndpointV1"),rG=g(async($,U,G,W)=>{if(!G.endpoint){const L=await h5.getEndpointFromConfig(G.serviceId||"");if(L)G.endpoint=()=>Promise.resolve(H$(L))}const X=await oG($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(X,W)},"getEndpointFromInstructions"),oG=g(async($,U,G)=>{var W;const X={},Z=((W=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:W.call(U))||{};for(let[L,Y]of Object.entries(Z))switch(Y.type){case"staticContextParams":X[L]=Y.value;break;case"contextParams":X[L]=$[Y.name];break;case"clientContextParams":case"builtInParams":X[L]=await b5(Y.name,L,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(Y))}if(Object.keys(Z).length===0)Object.assign(X,G);if(String(G.serviceId).toLowerCase()==="s3")await N5(X);return X},"resolveParams"),J1=b0(),aG=g(({config:$,instructions:U})=>{return(G,W)=>async(X)=>{var Z,L,Y;const w=await rG(X.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=w,W.authSchemes=(Z=w.properties)==null?void 0:Z.authSchemes;const F=(L=W.authSchemes)==null?void 0:L[0];if(F){W.signing_region=F.signingRegion,W.signing_service=F.signingName;const Q=J1.getSmithyContext(W),z=(Y=Q==null?void 0:Q.selectedHttpAuthScheme)==null?void 0:Y.httpAuthOption;if(z)z.signingProperties=Object.assign(z.signingProperties||{},{signing_region:F.signingRegion,signingRegion:F.signingRegion,signing_service:F.signingName,signingName:F.signingName,signingRegionSet:F.signingRegionSet},F.properties)}return G({...X})}},"endpointMiddleware"),x5=T$(),tG={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:x5.serializerMiddlewareOption.name},v5=g(($,U)=>({applyToStack:(G)=>{G.addRelativeTo(aG({config:$,instructions:U}),tG)}}),"getEndpointPlugin"),c5=g(($)=>{const U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>H$(await J1.normalizeProvider(G)()):void 0;return{...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:J1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:J1.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var i=E((eR,F8)=>{var L8=function($){return Object.keys($).reduce((U,G)=>{const W=$[G];return{...U,[G]:Array.isArray(W)?[...W]:W}},{})},w8=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},K1=Object.defineProperty,y5=Object.getOwnPropertyDescriptor,u5=Object.getOwnPropertyNames,_5=Object.prototype.hasOwnProperty,$0=($,U)=>K1($,"name",{value:U,configurable:!0}),d5=($,U)=>{for(var G in U)K1($,G,{get:U[G],enumerable:!0})},g5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of u5(U))if(!_5.call($,X)&&X!==G)K1($,X,{get:()=>U[X],enumerable:!(W=y5(U,X))||W.enumerable})}return $},p5=($)=>g5(K1({},"__esModule",{value:!0}),$),U8={};d5(U8,{Field:()=>m5,Fields:()=>n5,HttpRequest:()=>i5,HttpResponse:()=>r5,IHttpRequest:()=>G8.HttpRequest,getHttpHandlerExtensionConfiguration:()=>l5,isValidHostname:()=>w8,resolveHttpHandlerRuntimeConfig:()=>s5});F8.exports=p5(U8);var l5=$0(($)=>{let U=$.httpHandler;return{setHttpHandler(G){U=G},httpHandler(){return U},updateHttpClientConfig(G,W){U.updateHttpClientConfig(G,W)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),s5=$0(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),G8=F0(),W8=class ${constructor({name:U,kind:G=G8.FieldPosition.HEADER,values:W=[]}){this.name=U,this.kind=G,this.values=W}add(U){this.values.push(U)}set(U){this.values=U}remove(U){this.values=this.values.filter((G)=>G!==U)}toString(){return this.values.map((U)=>U.includes(",")||U.includes(" ")?`"${U}"`:U).join(", ")}get(){return this.values}};$0(W8,"Field");var m5=W8,X8=class ${constructor({fields:U=[],encoding:G="utf-8"}){this.entries={},U.forEach(this.setField.bind(this)),this.encoding=G}setField(U){this.entries[U.name.toLowerCase()]=U}getField(U){return this.entries[U.toLowerCase()]}removeField(U){delete this.entries[U.toLowerCase()]}getByType(U){return Object.values(this.entries).filter((G)=>G.kind===U)}};$0(X8,"Fields");var n5=X8,Z8=class ${constructor(U){this.method=U.method||"GET",this.hostname=U.hostname||"localhost",this.port=U.port,this.query=U.query||{},this.headers=U.headers||{},this.body=U.body,this.protocol=U.protocol?U.protocol.slice(-1)!==":"?`${U.protocol}:`:U.protocol:"https:",this.path=U.path?U.path.charAt(0)!=="/"?`/${U.path}`:U.path:"/",this.username=U.username,this.password=U.password,this.fragment=U.fragment}static clone(U){const G=new $({...U,headers:{...U.headers}});if(G.query)G.query=L8(G.query);return G}static isInstance(U){if(!U)return!1;const G=U;return"method"in G&&"protocol"in G&&"hostname"in G&&"path"in G&&typeof G.query==="object"&&typeof G.headers==="object"}clone(){return $.clone(this)}};$0(Z8,"HttpRequest");var i5=Z8;$0(L8,"cloneQuery");var Y8=class ${constructor(U){this.statusCode=U.statusCode,this.reason=U.reason,this.headers=U.headers||{},this.body=U.body}static isInstance(U){if(!U)return!1;const G=U;return typeof G.statusCode==="number"&&typeof G.headers==="object"}};$0(Y8,"HttpResponse");var r5=Y8;$0(w8,"isValidHostname")});var A$=E((Q8)=>{var a5=function($){return $&&$.__esModule?$:{default:$}},t5=function(){if(E1>M1.length-16)o5.default.randomFillSync(M1),E1=0;return M1.slice(E1,E1+=16)};Object.defineProperty(Q8,"__esModule",{value:!0});Q8.default=t5;var o5=a5(import.meta.require("crypto")),M1=new Uint8Array(256),E1=M1.length});var J8=E((z8)=>{Object.defineProperty(z8,"__esModule",{value:!0});z8.default=void 0;var $2=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;z8.default=$2});var c0=E((R8)=>{var G2=function($){return $&&$.__esModule?$:{default:$}},W2=function($){return typeof $==="string"&&U2.default.test($)};Object.defineProperty(R8,"__esModule",{value:!0});R8.default=void 0;var U2=G2(J8()),X2=W2;R8.default=X2});var y0=E((M8)=>{var L2=function($){return $&&$.__esModule?$:{default:$}},E8=function($,U=0){return k[$[U+0]]+k[$[U+1]]+k[$[U+2]]+k[$[U+3]]+"-"+k[$[U+4]]+k[$[U+5]]+"-"+k[$[U+6]]+k[$[U+7]]+"-"+k[$[U+8]]+k[$[U+9]]+"-"+k[$[U+10]]+k[$[U+11]]+k[$[U+12]]+k[$[U+13]]+k[$[U+14]]+k[$[U+15]]},Y2=function($,U=0){const G=E8($,U);if(!Z2.default(G))throw TypeError("Stringified UUID is invalid");return G};Object.defineProperty(M8,"__esModule",{value:!0});M8.default=void 0;M8.unsafeStringify=E8;var Z2=L2(c0()),k=[];for(let $=0;$<256;++$)k.push(($+256).toString(16).slice(1));var w2=Y2;M8.default=w2});var A8=E((T8)=>{var I2=function($){return $&&$.__esModule?$:{default:$}},J2=function($,U,G){let W=U&&G||0;const X=U||new Array(16);$=$||{};let Z=$.node||V8,L=$.clockseq!==void 0?$.clockseq:O$;if(Z==null||L==null){const I=$.random||($.rng||Q2.default)();if(Z==null)Z=V8=[I[0]|1,I[1],I[2],I[3],I[4],I[5]];if(L==null)L=O$=(I[6]<<8|I[7])&16383}let Y=$.msecs!==void 0?$.msecs:Date.now(),w=$.nsecs!==void 0?$.nsecs:f$+1;const F=Y-C$+(w-f$)/1e4;if(F<0&&$.clockseq===void 0)L=L+1&16383;if((F<0||Y>C$)&&$.nsecs===void 0)w=0;if(w>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");C$=Y,f$=w,O$=L,Y+=12219292800000;const Q=((Y&268435455)*1e4+w)%4294967296;X[W++]=Q>>>24&255,X[W++]=Q>>>16&255,X[W++]=Q>>>8&255,X[W++]=Q&255;const z=Y/4294967296*1e4&268435455;X[W++]=z>>>8&255,X[W++]=z&255,X[W++]=z>>>24&15|16,X[W++]=z>>>16&255,X[W++]=L>>>8|128,X[W++]=L&255;for(let I=0;I<6;++I)X[W+I]=Z[I];return U||z2.unsafeStringify(X)};Object.defineProperty(T8,"__esModule",{value:!0});T8.default=void 0;var Q2=I2(A$()),z2=y0(),V8,O$,C$=0,f$=0,R2=J2;T8.default=R2});var q$=E((O8)=>{var E2=function($){return $&&$.__esModule?$:{default:$}},M2=function($){if(!K2.default($))throw TypeError("Invalid UUID");let U;const G=new Uint8Array(16);return G[0]=(U=parseInt($.slice(0,8),16))>>>24,G[1]=U>>>16&255,G[2]=U>>>8&255,G[3]=U&255,G[4]=(U=parseInt($.slice(9,13),16))>>>8,G[5]=U&255,G[6]=(U=parseInt($.slice(14,18),16))>>>8,G[7]=U&255,G[8]=(U=parseInt($.slice(19,23),16))>>>8,G[9]=U&255,G[10]=(U=parseInt($.slice(24,36),16))/1099511627776&255,G[11]=U/4294967296&255,G[12]=U>>>24&255,G[13]=U>>>16&255,G[14]=U>>>8&255,G[15]=U&255,G};Object.defineProperty(O8,"__esModule",{value:!0});O8.default=void 0;var K2=E2(c0()),B2=M2;O8.default=B2});var N$=E((N8)=>{var H2=function($){return $&&$.__esModule?$:{default:$}},A2=function($){$=unescape(encodeURIComponent($));const U=[];for(let G=0;G<$.length;++G)U.push($.charCodeAt(G));return U},O2=function($,U,G){function W(X,Z,L,Y){var w;if(typeof X==="string")X=A2(X);if(typeof Z==="string")Z=T2.default(Z);if(((w=Z)===null||w===void 0?void 0:w.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let F=new Uint8Array(16+X.length);if(F.set(Z),F.set(X,Z.length),F=G(F),F[6]=F[6]&15|U,F[8]=F[8]&63|128,L){Y=Y||0;for(let Q=0;Q<16;++Q)L[Y+Q]=F[Q];return L}return V2.unsafeStringify(F)}try{W.name=$}catch(X){}return W.DNS=f8,W.URL=q8,W};Object.defineProperty(N8,"__esModule",{value:!0});N8.URL=N8.DNS=void 0;N8.default=O2;var V2=y0(),T2=H2(q$()),f8="6ba7b810-9dad-11d1-80b4-00c04fd430c8";N8.DNS=f8;var q8="6ba7b811-9dad-11d1-80b4-00c04fd430c8";N8.URL=q8});var D8=E((P8)=>{var N2=function($){return $&&$.__esModule?$:{default:$}},j2=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return q2.default.createHash("md5").update($).digest()};Object.defineProperty(P8,"__esModule",{value:!0});P8.default=void 0;var q2=N2(import.meta.require("crypto")),P2=j2;P8.default=P2});var x8=E((b8)=>{var k8=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(b8,"__esModule",{value:!0});b8.default=void 0;var S2=k8(N$()),D2=k8(D8()),k2=S2.default("v3",48,D2.default),b2=k2;b8.default=b2});var y8=E((v8)=>{var x2=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(v8,"__esModule",{value:!0});v8.default=void 0;var h2=x2(import.meta.require("crypto")),v2={randomUUID:h2.default.randomUUID};v8.default=v2});var p8=E((d8)=>{var _8=function($){return $&&$.__esModule?$:{default:$}},u2=function($,U,G){if(u8.default.randomUUID&&!U&&!$)return u8.default.randomUUID();$=$||{};const W=$.random||($.rng||c2.default)();if(W[6]=W[6]&15|64,W[8]=W[8]&63|128,U){G=G||0;for(let X=0;X<16;++X)U[G+X]=W[X];return U}return y2.unsafeStringify(W)};Object.defineProperty(d8,"__esModule",{value:!0});d8.default=void 0;var u8=_8(y8()),c2=_8(A$()),y2=y0(),_2=u2;d8.default=_2});var m8=E((l8)=>{var g2=function($){return $&&$.__esModule?$:{default:$}},p2=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return d2.default.createHash("sha1").update($).digest()};Object.defineProperty(l8,"__esModule",{value:!0});l8.default=void 0;var d2=g2(import.meta.require("crypto")),l2=p2;l8.default=l2});var o8=E((i8)=>{var n8=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(i8,"__esModule",{value:!0});i8.default=void 0;var s2=n8(N$()),m2=n8(m8()),n2=s2.default("v5",80,m2.default),i2=n2;i8.default=i2});var e8=E((a8)=>{Object.defineProperty(a8,"__esModule",{value:!0});a8.default=void 0;var r2="00000000-0000-0000-0000-000000000000";a8.default=r2});var G4=E(($4)=>{var a2=function($){return $&&$.__esModule?$:{default:$}},t2=function($){if(!o2.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)};Object.defineProperty($4,"__esModule",{value:!0});$4.default=void 0;var o2=a2(c0()),e2=t2;$4.default=e2});var j$=E((p)=>{var r=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(p,"__esModule",{value:!0});Object.defineProperty(p,"NIL",{enumerable:!0,get:function(){return X9.default}});Object.defineProperty(p,"parse",{enumerable:!0,get:function(){return w9.default}});Object.defineProperty(p,"stringify",{enumerable:!0,get:function(){return Y9.default}});Object.defineProperty(p,"v1",{enumerable:!0,get:function(){return $9.default}});Object.defineProperty(p,"v3",{enumerable:!0,get:function(){return U9.default}});Object.defineProperty(p,"v4",{enumerable:!0,get:function(){return G9.default}});Object.defineProperty(p,"v5",{enumerable:!0,get:function(){return W9.default}});Object.defineProperty(p,"validate",{enumerable:!0,get:function(){return L9.default}});Object.defineProperty(p,"version",{enumerable:!0,get:function(){return Z9.default}});var $9=r(A8()),U9=r(x8()),G9=r(p8()),W9=r(o8()),X9=r(e8()),Z9=r(G4()),L9=r(c0()),Y9=r(y0()),w9=r(q$())});var P$=E((EK,L4)=>{var{defineProperty:B1,getOwnPropertyDescriptor:F9,getOwnPropertyNames:Q9}=Object,z9=Object.prototype.hasOwnProperty,A0=($,U)=>B1($,"name",{value:U,configurable:!0}),I9=($,U)=>{for(var G in U)B1($,G,{get:U[G],enumerable:!0})},J9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Q9(U))if(!z9.call($,X)&&X!==G)B1($,X,{get:()=>U[X],enumerable:!(W=F9(U,X))||W.enumerable})}return $},R9=($)=>J9(B1({},"__esModule",{value:!0}),$),W4={};I9(W4,{isClockSkewCorrectedError:()=>X4,isClockSkewError:()=>H9,isRetryableByTrait:()=>T9,isServerError:()=>O9,isThrottlingError:()=>A9,isTransientError:()=>Z4});L4.exports=R9(W4);var K9=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],E9=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],M9=["TimeoutError","RequestTimeout","RequestTimeoutException"],B9=[500,502,503,504],V9=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],T9=A0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),H9=A0(($)=>K9.includes($.name),"isClockSkewError"),X4=A0(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),A9=A0(($)=>{var U,G;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||E9.includes($.name)||((G=$.$retryable)==null?void 0:G.throttling)==!0},"isThrottlingError"),Z4=A0(($)=>{var U;return X4($)||M9.includes($.name)||V9.includes(($==null?void 0:$.code)||"")||B9.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),O9=A0(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){const G=$.$metadata.httpStatusCode;if(500<=G&&G<=599&&!Z4($))return!0;return!1}return!1},"isServerError")});var T4=E((MK,V4)=>{var{defineProperty:V1,getOwnPropertyDescriptor:C9,getOwnPropertyNames:f9}=Object,q9=Object.prototype.hasOwnProperty,l=($,U)=>V1($,"name",{value:U,configurable:!0}),N9=($,U)=>{for(var G in U)V1($,G,{get:U[G],enumerable:!0})},j9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of f9(U))if(!q9.call($,X)&&X!==G)V1($,X,{get:()=>U[X],enumerable:!(W=C9(U,X))||W.enumerable})}return $},P9=($)=>j9(V1({},"__esModule",{value:!0}),$),w4={};N9(w4,{AdaptiveRetryStrategy:()=>x9,ConfiguredRetryStrategy:()=>v9,DEFAULT_MAX_ATTEMPTS:()=>S$,DEFAULT_RETRY_DELAY_BASE:()=>u0,DEFAULT_RETRY_MODE:()=>S9,DefaultRateLimiter:()=>z4,INITIAL_RETRY_TOKENS:()=>D$,INVOCATION_ID_HEADER:()=>k9,MAXIMUM_RETRY_DELAY:()=>k$,NO_RETRY_INCREMENT:()=>K4,REQUEST_HEADER:()=>b9,RETRY_COST:()=>J4,RETRY_MODES:()=>F4,StandardRetryStrategy:()=>b$,THROTTLING_RETRY_DELAY_BASE:()=>I4,TIMEOUT_RETRY_COST:()=>R4});V4.exports=P9(w4);var F4=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(F4||{}),S$=3,S9="standard",D9=P$(),Q4=class ${constructor(U){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(U==null?void 0:U.beta)??0.7,this.minCapacity=(U==null?void 0:U.minCapacity)??1,this.minFillRate=(U==null?void 0:U.minFillRate)??0.5,this.scaleConstant=(U==null?void 0:U.scaleConstant)??0.4,this.smooth=(U==null?void 0:U.smooth)??0.8;const G=this.getCurrentTimeInSeconds();this.lastThrottleTime=G,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(U){if(!this.enabled)return;if(this.refillTokenBucket(),U>this.currentCapacity){const G=(U-this.currentCapacity)/this.fillRate*1000;await new Promise((W)=>setTimeout(W,G))}this.currentCapacity=this.currentCapacity-U}refillTokenBucket(){const U=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=U;return}const G=(U-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+G),this.lastTimestamp=U}updateClientSendingRate(U){let G;if(this.updateMeasuredRate(),D9.isThrottlingError(U)){const X=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=X,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),G=this.cubicThrottle(X),this.enableTokenBucket()}else this.calculateTimeWindow(),G=this.cubicSuccess(this.getCurrentTimeInSeconds());const W=Math.min(G,2*this.measuredTxRate);this.updateTokenBucketRate(W)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(U){return this.getPrecise(U*this.beta)}cubicSuccess(U){return this.getPrecise(this.scaleConstant*Math.pow(U-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(U){this.refillTokenBucket(),this.fillRate=Math.max(U,this.minFillRate),this.maxCapacity=Math.max(U,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const U=this.getCurrentTimeInSeconds(),G=Math.floor(U*2)/2;if(this.requestCount++,G>this.lastTxRateBucket){const W=this.requestCount/(G-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(W*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=G}}getPrecise(U){return parseFloat(U.toFixed(8))}};l(Q4,"DefaultRateLimiter");var z4=Q4,u0=100,k$=20000,I4=500,D$=500,J4=5,R4=10,K4=1,k9="amz-sdk-invocation-id",b9="amz-sdk-request",h9=l(()=>{let $=u0;return{computeNextBackoffDelay:l((W)=>{return Math.floor(Math.min(k$,Math.random()*2**W*$))},"computeNextBackoffDelay"),setDelayBase:l((W)=>{$=W},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),Y4=l(({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:l(()=>U,"getRetryCount"),getRetryDelay:l(()=>Math.min(k$,$),"getRetryDelay"),getRetryCost:l(()=>G,"getRetryCost")}},"createDefaultRetryToken"),E4=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=D$,this.retryBackoffStrategy=h9(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return Y4({retryDelay:u0,retryCount:0})}async refreshRetryTokenForRetry(U,G){const W=await this.getMaxAttempts();if(this.shouldRetry(U,G,W)){const X=G.errorType;this.retryBackoffStrategy.setDelayBase(X==="THROTTLING"?I4:u0);const Z=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),L=G.retryAfterHint?Math.max(G.retryAfterHint.getTime()-Date.now()||0,Z):Z,Y=this.getCapacityCost(X);return this.capacity-=Y,Y4({retryDelay:L,retryCount:U.getRetryCount()+1,retryCost:Y})}throw new Error("No retry token available")}recordSuccess(U){this.capacity=Math.max(D$,this.capacity+(U.getRetryCost()??K4))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(U){return console.warn(`Max attempts provider could not resolve. Using default of ${S$}`),S$}}shouldRetry(U,G,W){return U.getRetryCount()+1<W&&this.capacity>=this.getCapacityCost(G.errorType)&&this.isRetryableError(G.errorType)}getCapacityCost(U){return U==="TRANSIENT"?R4:J4}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};l(E4,"StandardRetryStrategy");var b$=E4,M4=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode="adaptive";const{rateLimiter:W}=G??{};this.rateLimiter=W??new z4,this.standardRetryStrategy=new b$(U)}async acquireInitialRetryToken(U){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(U)}async refreshRetryTokenForRetry(U,G){return this.rateLimiter.updateClientSendingRate(G),this.standardRetryStrategy.refreshRetryTokenForRetry(U,G)}recordSuccess(U){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(U)}};l(M4,"AdaptiveRetryStrategy");var x9=M4,B4=class $ extends b${constructor(U,G=u0){super(typeof U==="function"?U:async()=>U);if(typeof G==="number")this.computeNextBackoffDelay=()=>G;else this.computeNextBackoffDelay=G}async refreshRetryTokenForRetry(U,G){const W=await super.refreshRetryTokenForRetry(U,G);return W.getRetryDelay=()=>this.computeNextBackoffDelay(W.getRetryCount()),W}};l(B4,"ConfiguredRetryStrategy");var v9=B4});var f4=E((BK,C4)=>{var{defineProperty:T1,getOwnPropertyDescriptor:c9,getOwnPropertyNames:y9}=Object,u9=Object.prototype.hasOwnProperty,u=($,U)=>T1($,"name",{value:U,configurable:!0}),_9=($,U)=>{for(var G in U)T1($,G,{get:U[G],enumerable:!0})},d9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of y9(U))if(!u9.call($,X)&&X!==G)T1($,X,{get:()=>U[X],enumerable:!(W=c9(U,X))||W.enumerable})}return $},g9=($)=>d9(T1({},"__esModule",{value:!0}),$),O4={};_9(O4,{constructStack:()=>h$});C4.exports=g9(O4);var I0=u(($,U)=>{const G=[];if($)G.push($);if(U)for(let W of U)G.push(W);return G},"getAllAliases"),U0=u(($,U)=>{return`${$||"anonymous"}${U&&U.length>0?` (a.k.a. ${U.join(",")})`:""}`},"getMiddlewareNameWithAliases"),h$=u(()=>{let $=[],U=[],G=!1;const W=new Set,X=u((z)=>z.sort((I,J)=>H4[J.step]-H4[I.step]||A4[J.priority||"normal"]-A4[I.priority||"normal"]),"sort"),Z=u((z)=>{let I=!1;const J=u((K)=>{const T=I0(K.name,K.aliases);if(T.includes(z)){I=!0;for(let M of T)W.delete(M);return!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},"removeByName"),L=u((z)=>{let I=!1;const J=u((K)=>{if(K.middleware===z){I=!0;for(let T of I0(K.name,K.aliases))W.delete(T);return!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},"removeByReference"),Y=u((z)=>{var I;return $.forEach((J)=>{z.add(J.middleware,{...J})}),U.forEach((J)=>{z.addRelativeTo(J.middleware,{...J})}),(I=z.identifyOnResolve)==null||I.call(z,Q.identifyOnResolve()),z},"cloneTo"),w=u((z)=>{const I=[];return z.before.forEach((J)=>{if(J.before.length===0&&J.after.length===0)I.push(J);else I.push(...w(J))}),I.push(z),z.after.reverse().forEach((J)=>{if(J.before.length===0&&J.after.length===0)I.push(J);else I.push(...w(J))}),I},"expandRelativeMiddlewareList"),F=u((z=!1)=>{const I=[],J=[],K={};return $.forEach((M)=>{const V={...M,before:[],after:[]};for(let B of I0(V.name,V.aliases))K[B]=V;I.push(V)}),U.forEach((M)=>{const V={...M,before:[],after:[]};for(let B of I0(V.name,V.aliases))K[B]=V;J.push(V)}),J.forEach((M)=>{if(M.toMiddleware){const V=K[M.toMiddleware];if(V===void 0){if(z)return;throw new Error(`${M.toMiddleware} is not found when adding ${U0(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")V.after.push(M);if(M.relation==="before")V.before.push(M)}}),X(I).map(w).reduce((M,V)=>{return M.push(...V),M},[])},"getMiddlewareList"),Q={add:(z,I={})=>{const{name:J,override:K,aliases:T}=I,M={step:"initialize",priority:"normal",middleware:z,...I},V=I0(J,T);if(V.length>0){if(V.some((B)=>W.has(B))){if(!K)throw new Error(`Duplicate middleware name '${U0(J,T)}'`);for(let B of V){const H=$.findIndex((D)=>{var e;return D.name===B||((e=D.aliases)==null?void 0:e.some((w0)=>w0===B))});if(H===-1)continue;const A=$[H];if(A.step!==M.step||M.priority!==A.priority)throw new Error(`"${U0(A.name,A.aliases)}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by "${U0(J,T)}" middleware with ${M.priority} priority in ${M.step} step.`);$.splice(H,1)}}for(let B of V)W.add(B)}$.push(M)},addRelativeTo:(z,I)=>{const{name:J,override:K,aliases:T}=I,M={middleware:z,...I},V=I0(J,T);if(V.length>0){if(V.some((B)=>W.has(B))){if(!K)throw new Error(`Duplicate middleware name '${U0(J,T)}'`);for(let B of V){const H=U.findIndex((D)=>{var e;return D.name===B||((e=D.aliases)==null?void 0:e.some((w0)=>w0===B))});if(H===-1)continue;const A=U[H];if(A.toMiddleware!==M.toMiddleware||A.relation!==M.relation)throw new Error(`"${U0(A.name,A.aliases)}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by "${U0(J,T)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);U.splice(H,1)}}for(let B of V)W.add(B)}U.push(M)},clone:()=>Y(h$()),use:(z)=>{z.applyToStack(Q)},remove:(z)=>{if(typeof z==="string")return Z(z);else return L(z)},removeByTag:(z)=>{let I=!1;const J=u((K)=>{const{tags:T,name:M,aliases:V}=K;if(T&&T.includes(z)){const B=I0(M,V);for(let H of B)W.delete(H);return I=!0,!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},concat:(z)=>{var I;const J=Y(h$());return J.use(z),J.identifyOnResolve(G||J.identifyOnResolve()||(((I=z.identifyOnResolve)==null?void 0:I.call(z))??!1)),J},applyToStack:Y,identify:()=>{return F(!0).map((z)=>{const I=z.step??z.relation+" "+z.toMiddleware;return U0(z.name,z.aliases)+" - "+I})},identifyOnResolve(z){if(typeof z==="boolean")G=z;return G},resolve:(z,I)=>{for(let J of F().map((K)=>K.middleware).reverse())z=J(z,I);if(G)console.log(Q.identify());return z}};return Q},"constructStack"),H4={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},A4={high:3,normal:2,low:1}});var x$=E((VK,N4)=>{var{defineProperty:H1,getOwnPropertyDescriptor:p9,getOwnPropertyNames:l9}=Object,s9=Object.prototype.hasOwnProperty,m9=($,U)=>H1($,"name",{value:U,configurable:!0}),n9=($,U)=>{for(var G in U)H1($,G,{get:U[G],enumerable:!0})},i9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of l9(U))if(!s9.call($,X)&&X!==G)H1($,X,{get:()=>U[X],enumerable:!(W=p9(U,X))||W.enumerable})}return $},r9=($)=>i9(H1({},"__esModule",{value:!0}),$),q4={};n9(q4,{isArrayBuffer:()=>o9});N4.exports=r9(q4);var o9=m9(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var _0=E((TK,S4)=>{var{defineProperty:A1,getOwnPropertyDescriptor:a9,getOwnPropertyNames:t9}=Object,e9=Object.prototype.hasOwnProperty,j4=($,U)=>A1($,"name",{value:U,configurable:!0}),$w=($,U)=>{for(var G in U)A1($,G,{get:U[G],enumerable:!0})},Uw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of t9(U))if(!e9.call($,X)&&X!==G)A1($,X,{get:()=>U[X],enumerable:!(W=a9(U,X))||W.enumerable})}return $},Gw=($)=>Uw(A1({},"__esModule",{value:!0}),$),P4={};$w(P4,{fromArrayBuffer:()=>Xw,fromString:()=>Zw});S4.exports=Gw(P4);var Ww=x$(),v$=import.meta.require("buffer"),Xw=j4(($,U=0,G=$.byteLength-U)=>{if(!Ww.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return v$.Buffer.from($,U,G)},"fromArrayBuffer"),Zw=j4(($,U)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return U?v$.Buffer.from($,U):v$.Buffer.from($)},"fromString")});var b4=E((D4)=>{Object.defineProperty(D4,"__esModule",{value:!0});D4.fromBase64=void 0;var Lw=_0(),Yw=/^[A-Za-z0-9+/]*={0,2}$/,ww=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Yw.exec($))throw new TypeError("Invalid base64 string.");const U=Lw.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};D4.fromBase64=ww});var G0=E((AK,c4)=>{var{defineProperty:O1,getOwnPropertyDescriptor:Fw,getOwnPropertyNames:Qw}=Object,zw=Object.prototype.hasOwnProperty,c$=($,U)=>O1($,"name",{value:U,configurable:!0}),Iw=($,U)=>{for(var G in U)O1($,G,{get:U[G],enumerable:!0})},Jw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Qw(U))if(!zw.call($,X)&&X!==G)O1($,X,{get:()=>U[X],enumerable:!(W=Fw(U,X))||W.enumerable})}return $},Rw=($)=>Jw(O1({},"__esModule",{value:!0}),$),h4={};Iw(h4,{fromUtf8:()=>v4,toUint8Array:()=>Kw,toUtf8:()=>Ew});c4.exports=Rw(h4);var x4=_0(),v4=c$(($)=>{const U=x4.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Kw=c$(($)=>{if(typeof $==="string")return v4($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),Ew=c$(($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return x4.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var _4=E((y4)=>{Object.defineProperty(y4,"__esModule",{value:!0});y4.toBase64=void 0;var Mw=_0(),Bw=G0(),Vw=($)=>{let U;if(typeof $==="string")U=Bw.fromUtf8($);else U=$;if(typeof U!=="object"||typeof U.byteOffset!=="number"||typeof U.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Mw.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};y4.toBase64=Vw});var f1=E((CK,C1)=>{var{defineProperty:d4,getOwnPropertyDescriptor:Tw,getOwnPropertyNames:Hw}=Object,Aw=Object.prototype.hasOwnProperty,y$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Hw(U))if(!Aw.call($,X)&&X!==G)d4($,X,{get:()=>U[X],enumerable:!(W=Tw(U,X))||W.enumerable})}return $},g4=($,U,G)=>(y$($,U,"default"),G&&y$(G,U,"default")),Ow=($)=>y$(d4({},"__esModule",{value:!0}),$),u$={};C1.exports=Ow(u$);g4(u$,b4(),C1.exports);g4(u$,_4(),C1.exports)});var s4=E((p4)=>{Object.defineProperty(p4,"__esModule",{value:!0});p4.getAwsChunkedEncodingStream=void 0;var Cw=import.meta.require("stream"),fw=($,U)=>{const{base64Encoder:G,bodyLengthChecker:W,checksumAlgorithmFn:X,checksumLocationName:Z,streamHasher:L}=U,Y=G!==void 0&&X!==void 0&&Z!==void 0&&L!==void 0,w=Y?L(X,$):void 0,F=new Cw.Readable({read:()=>{}});return $.on("data",(Q)=>{const z=W(Q)||0;F.push(`${z.toString(16)}\r\n`),F.push(Q),F.push("\r\n")}),$.on("end",async()=>{if(F.push("0\r\n"),Y){const Q=G(await w);F.push(`${Z}:${Q}\r\n`),F.push("\r\n")}F.push(null)}),F};p4.getAwsChunkedEncodingStream=fw});var d$=E((qK,i4)=>{var{defineProperty:q1,getOwnPropertyDescriptor:qw,getOwnPropertyNames:Nw}=Object,jw=Object.prototype.hasOwnProperty,_$=($,U)=>q1($,"name",{value:U,configurable:!0}),Pw=($,U)=>{for(var G in U)q1($,G,{get:U[G],enumerable:!0})},Sw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Nw(U))if(!jw.call($,X)&&X!==G)q1($,X,{get:()=>U[X],enumerable:!(W=qw(U,X))||W.enumerable})}return $},Dw=($)=>Sw(q1({},"__esModule",{value:!0}),$),m4={};Pw(m4,{escapeUri:()=>n4,escapeUriPath:()=>bw});i4.exports=Dw(m4);var n4=_$(($)=>encodeURIComponent($).replace(/[!'()*]/g,kw),"escapeUri"),kw=_$(($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),bw=_$(($)=>$.split("/").map(n4).join("/"),"escapeUriPath")});var p$=E((NK,a4)=>{var o4=function($){const U=[];for(let G of Object.keys($).sort()){const W=$[G];if(G=g$.escapeUri(G),Array.isArray(W))for(let X=0,Z=W.length;X<Z;X++)U.push(`${G}=${g$.escapeUri(W[X])}`);else{let X=G;if(W||typeof W==="string")X+=`=${g$.escapeUri(W)}`;U.push(X)}}return U.join("&")},N1=Object.defineProperty,hw=Object.getOwnPropertyDescriptor,xw=Object.getOwnPropertyNames,vw=Object.prototype.hasOwnProperty,cw=($,U)=>N1($,"name",{value:U,configurable:!0}),yw=($,U)=>{for(var G in U)N1($,G,{get:U[G],enumerable:!0})},uw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of xw(U))if(!vw.call($,X)&&X!==G)N1($,X,{get:()=>U[X],enumerable:!(W=hw(U,X))||W.enumerable})}return $},_w=($)=>uw(N1({},"__esModule",{value:!0}),$),r4={};yw(r4,{buildQueryString:()=>o4});a4.exports=_w(r4);var g$=d$();cw(o4,"buildQueryString")});var R6=E((jK,J6)=>{async function m$($,U,G=t4){const W=U.headers??{},X=W.Expect||W.expect;let Z=-1,L=!1;if(X==="100-continue")await Promise.race([new Promise((Y)=>{Z=Number(setTimeout(Y,Math.max(t4,G)))}),new Promise((Y)=>{$.on("continue",()=>{clearTimeout(Z),Y()}),$.on("error",()=>{L=!0,clearTimeout(Z),Y()})})]);if(!L)L6($,U.body)}var L6=function($,U){if(U instanceof Z6.Readable){U.pipe($);return}if(U){if(Buffer.isBuffer(U)||typeof U==="string"){$.end(U);return}const G=U;if(typeof G==="object"&&G.buffer&&typeof G.byteOffset==="number"&&typeof G.byteLength==="number"){$.end(Buffer.from(G.buffer,G.byteOffset,G.byteLength));return}$.end(Buffer.from(U));return}$.end()};async function I6($){const U=[],G=$.getReader();let W=!1,X=0;while(!W){const{done:Y,value:w}=await G.read();if(w)U.push(w),X+=w.length;W=Y}const Z=new Uint8Array(X);let L=0;for(let Y of U)Z.set(Y,L),L+=Y.length;return Z}var{create:dw,defineProperty:d0,getOwnPropertyDescriptor:gw,getOwnPropertyNames:pw,getPrototypeOf:lw}=Object,sw=Object.prototype.hasOwnProperty,N=($,U)=>d0($,"name",{value:U,configurable:!0}),mw=($,U)=>{for(var G in U)d0($,G,{get:U[G],enumerable:!0})},$6=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of pw(U))if(!sw.call($,X)&&X!==G)d0($,X,{get:()=>U[X],enumerable:!(W=gw(U,X))||W.enumerable})}return $},nw=($,U,G)=>(G=$!=null?dw(lw($)):{},$6(U||!$||!$.__esModule?d0(G,"default",{value:$,enumerable:!0}):G,$)),iw=($)=>$6(d0({},"__esModule",{value:!0}),$),U6={};mw(U6,{DEFAULT_REQUEST_TIMEOUT:()=>ew,NodeHttp2Handler:()=>XF,NodeHttpHandler:()=>$F,streamCollector:()=>LF});J6.exports=iw(U6);var G6=i(),W6=p$(),l$=import.meta.require("http"),s$=import.meta.require("https"),rw=["ECONNRESET","EPIPE","ETIMEDOUT"],X6=N(($)=>{const U={};for(let G of Object.keys($)){const W=$[G];U[G]=Array.isArray(W)?W.join(","):W}return U},"getTransformedHeaders"),ow=N(($,U,G=0)=>{if(!G)return;const W=setTimeout(()=>{$.destroy(),U(Object.assign(new Error(`Socket timed out without establishing a connection within ${G} ms`),{name:"TimeoutError"}))},G);$.on("socket",(X)=>{if(X.connecting)X.on("connect",()=>{clearTimeout(W)});else clearTimeout(W)})},"setConnectionTimeout"),aw=N(($,{keepAlive:U,keepAliveMsecs:G})=>{if(U!==!0)return;$.on("socket",(W)=>{W.setKeepAlive(U,G||0)})},"setSocketKeepAlive"),tw=N(($,U,G=0)=>{$.setTimeout(G,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${G} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),Z6=import.meta.require("stream"),t4=1000;N(m$,"writeRequestBody");N(L6,"writeBody");var ew=0,Y6=class ${constructor(U){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((X)=>{G(this.resolveDefaultConfig(X))}).catch(W);else G(this.resolveDefaultConfig(U))})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}static checkSocketUsage(U,G,W=console){var X,Z,L;const{sockets:Y,requests:w,maxSockets:F}=U;if(typeof F!=="number"||F===Infinity)return G;const Q=15000;if(Date.now()-Q<G)return G;if(Y&&w)for(let z in Y){const I=((X=Y[z])==null?void 0:X.length)??0,J=((Z=w[z])==null?void 0:Z.length)??0;if(I>=F&&J>=2*F)return(L=W==null?void 0:W.warn)==null||L.call(W,`@smithy/node-http-handler:WARN - socket usage at capacity=${I} and ${J} additional requests are enqueued.
|
|
1
|
+
import{y as IU,z as E} from"./chunk-7ce930fe69575c87.js";import{E as zR} from"./chunk-d7c78cd1ab7dc7ed.js";import{H as c,I as DU,J as XZ,M as nU,N as NL,Q as jL,U as i4,X as P6} from"./chunk-e565da7343a33b65.js";import{mb as F0} from"./chunk-65cd4d128b79bd93.js";import{nb as K0,ob as OU} from"./chunk-e344c95f8ae7a124.js";import{ub as hL} from"./chunk-448c9eceacddef90.js";import{Ab as AU} from"./chunk-de75d134f236f4bb.js";var k0=E((yR,$G)=>{var{defineProperty:X1,getOwnPropertyDescriptor:lL,getOwnPropertyNames:sL}=Object,mL=Object.prototype.hasOwnProperty,tU=($,U)=>X1($,"name",{value:U,configurable:!0}),nL=($,U)=>{for(var G in U)X1($,G,{get:U[G],enumerable:!0})},iL=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of sL(U))if(!mL.call($,X)&&X!==G)X1($,X,{get:()=>U[X],enumerable:!(W=lL(U,X))||W.enumerable})}return $},rL=($)=>iL(X1({},"__esModule",{value:!0}),$),eU={};nL(eU,{getSmithyContext:()=>oL,normalizeProvider:()=>aL});$G.exports=rL(eU);var aU=F0(),oL=tU(($)=>$[aU.SMITHY_CONTEXT_KEY]||($[aU.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),aL=tU(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider")});var F$=E((uR,ZG)=>{var{defineProperty:Z1,getOwnPropertyDescriptor:tL,getOwnPropertyNames:eL}=Object,$Y=Object.prototype.hasOwnProperty,Q0=($,U)=>Z1($,"name",{value:U,configurable:!0}),UY=($,U)=>{for(var G in U)Z1($,G,{get:U[G],enumerable:!0})},GY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of eL(U))if(!$Y.call($,X)&&X!==G)Z1($,X,{get:()=>U[X],enumerable:!(W=tL(U,X))||W.enumerable})}return $},WY=($)=>GY(Z1({},"__esModule",{value:!0}),$),UG={};UY(UG,{CredentialsProviderError:()=>XY,ProviderError:()=>L1,TokenProviderError:()=>ZY,chain:()=>LY,fromStatic:()=>YY,memoize:()=>wY});ZG.exports=WY(UG);var GG=class $ extends Error{constructor(U,G=!0){var W;let X,Z=!0;if(typeof G==="boolean")X=void 0,Z=G;else if(G!=null&&typeof G==="object")X=G.logger,Z=G.tryNextLink??!0;super(U);this.name="ProviderError",this.tryNextLink=Z,Object.setPrototypeOf(this,$.prototype),(W=X==null?void 0:X.debug)==null||W.call(X,`@smithy/property-provider ${Z?"->":"(!)"} ${U}`)}static from(U,G=!0){return Object.assign(new this(U.message,G),U)}};Q0(GG,"ProviderError");var L1=GG,WG=class $ extends L1{constructor(U,G=!0){super(U,G);this.name="CredentialsProviderError",Object.setPrototypeOf(this,$.prototype)}};Q0(WG,"CredentialsProviderError");var XY=WG,XG=class $ extends L1{constructor(U,G=!0){super(U,G);this.name="TokenProviderError",Object.setPrototypeOf(this,$.prototype)}};Q0(XG,"TokenProviderError");var ZY=XG,LY=Q0((...$)=>async()=>{if($.length===0)throw new L1("No providers in chain");let U;for(let G of $)try{return await G()}catch(W){if(U=W,W==null?void 0:W.tryNextLink)continue;throw W}throw U},"chain"),YY=Q0(($)=>()=>Promise.resolve($),"fromStatic"),wY=Q0(($,U,G)=>{let W,X,Z,L=!1;const Y=Q0(async()=>{if(!X)X=$();try{W=await X,Z=!0,L=!1}finally{X=void 0}return W},"coalesceProvider");if(U===void 0)return async(w)=>{if(!Z||(w==null?void 0:w.forceRefresh))W=await Y();return W};return async(w)=>{if(!Z||(w==null?void 0:w.forceRefresh))W=await Y();if(L)return W;if(G&&!G(W))return L=!0,W;if(U(W))return await Y(),W;return W}},"memoize")});var T0=E((LG)=>{Object.defineProperty(LG,"__esModule",{value:!0});LG.getHomeDir=void 0;var FY=import.meta.require("os"),QY=import.meta.require("path"),Q$={},zY=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},IY=()=>{const{HOME:$,USERPROFILE:U,HOMEPATH:G,HOMEDRIVE:W=`C:${QY.sep}`}=process.env;if($)return $;if(U)return U;if(G)return`${W}${G}`;const X=zY();if(!Q$[X])Q$[X]=FY.homedir();return Q$[X]};LG.getHomeDir=IY});var z$=E((wG)=>{Object.defineProperty(wG,"__esModule",{value:!0});wG.getSSOTokenFilepath=void 0;var JY=import.meta.require("crypto"),RY=import.meta.require("path"),KY=T0(),EY=($)=>{const G=JY.createHash("sha1").update($).digest("hex");return RY.join(KY.getHomeDir(),".aws","sso","cache",`${G}.json`)};wG.getSSOTokenFilepath=EY});var IG=E((QG)=>{Object.defineProperty(QG,"__esModule",{value:!0});QG.getSSOTokenFromFile=void 0;var MY=import.meta.require("fs"),BY=z$(),{readFile:VY}=MY.promises,TY=async($)=>{const U=BY.getSSOTokenFilepath($),G=await VY(U,"utf8");return JSON.parse(G)};QG.getSSOTokenFromFile=TY});var J$=E((JG)=>{Object.defineProperty(JG,"__esModule",{value:!0});JG.slurpFile=void 0;var HY=import.meta.require("fs"),{readFile:AY}=HY.promises,I$={},OY=($,U)=>{if(!I$[$]||(U===null||U===void 0?void 0:U.ignoreCache))I$[$]=AY($,"utf8");return I$[$]};JG.slurpFile=OY});var M$=E((lR,x0)=>{var{defineProperty:F1,getOwnPropertyDescriptor:CY,getOwnPropertyNames:fY}=Object,qY=Object.prototype.hasOwnProperty,y=($,U)=>F1($,"name",{value:U,configurable:!0}),NY=($,U)=>{for(var G in U)F1($,G,{get:U[G],enumerable:!0})},R$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of fY(U))if(!qY.call($,X)&&X!==G)F1($,X,{get:()=>U[X],enumerable:!(W=CY(U,X))||W.enumerable})}return $},E$=($,U,G)=>(R$($,U,"default"),G&&R$(G,U,"default")),jY=($)=>R$(F1({},"__esModule",{value:!0}),$),h0={};NY(h0,{CONFIG_PREFIX_SEPARATOR:()=>z0,DEFAULT_PROFILE:()=>BG,ENV_PROFILE:()=>MG,getProfileName:()=>PY,loadSharedConfigFiles:()=>TG,loadSsoSessionData:()=>gY,parseKnownFiles:()=>lY});x0.exports=jY(h0);E$(h0,T0(),x0.exports);var MG="AWS_PROFILE",BG="default",PY=y(($)=>$.profile||process.env[MG]||BG,"getProfileName");E$(h0,z$(),x0.exports);E$(h0,IG(),x0.exports);var Y1=F0(),SY=y(($)=>Object.entries($).filter(([U])=>{const G=U.indexOf(z0);if(G===-1)return!1;return Object.values(Y1.IniSectionType).includes(U.substring(0,G))}).reduce((U,[G,W])=>{const X=G.indexOf(z0),Z=G.substring(0,X)===Y1.IniSectionType.PROFILE?G.substring(X+1):G;return U[Z]=W,U},{...$.default&&{default:$.default}}),"getConfigData"),w1=import.meta.require("path"),DY=T0(),bY="AWS_CONFIG_FILE",VG=y(()=>process.env[bY]||w1.join(DY.getHomeDir(),".aws","config"),"getConfigFilepath"),kY=T0(),hY="AWS_SHARED_CREDENTIALS_FILE",xY=y(()=>process.env[hY]||w1.join(kY.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),vY=T0(),cY=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,yY=["__proto__","profile __proto__"],K$=y(($)=>{const U={};let G,W;for(let X of $.split(/\r?\n/)){const Z=X.split(/(^|\s)[;#]/)[0].trim();if(Z[0]==="["&&Z[Z.length-1]==="]"){G=void 0,W=void 0;const Y=Z.substring(1,Z.length-1),w=cY.exec(Y);if(w){const[,F,,Q]=w;if(Object.values(Y1.IniSectionType).includes(F))G=[F,Q].join(z0)}else G=Y;if(yY.includes(Y))throw new Error(`Found invalid profile name "${Y}"`)}else if(G){const Y=Z.indexOf("=");if(![0,-1].includes(Y)){const[w,F]=[Z.substring(0,Y).trim(),Z.substring(Y+1).trim()];if(F==="")W=w;else{if(W&&X.trimStart()===X)W=void 0;U[G]=U[G]||{};const Q=W?[W,w].join(z0):w;U[G][Q]=F}}}}return U},"parseIni"),KG=J$(),EG=y(()=>({}),"swallowError"),z0=".",TG=y(async($={})=>{const{filepath:U=xY(),configFilepath:G=VG()}=$,W=vY.getHomeDir();let Z=U;if(U.startsWith("~/"))Z=w1.join(W,U.slice(2));let L=G;if(G.startsWith("~/"))L=w1.join(W,G.slice(2));const Y=await Promise.all([KG.slurpFile(L,{ignoreCache:$.ignoreCache}).then(K$).then(SY).catch(EG),KG.slurpFile(Z,{ignoreCache:$.ignoreCache}).then(K$).catch(EG)]);return{configFile:Y[0],credentialsFile:Y[1]}},"loadSharedConfigFiles"),uY=y(($)=>Object.entries($).filter(([U])=>U.startsWith(Y1.IniSectionType.SSO_SESSION+z0)).reduce((U,[G,W])=>({...U,[G.substring(G.indexOf(z0)+1)]:W}),{}),"getSsoSessionData"),_Y=J$(),dY=y(()=>({}),"swallowError"),gY=y(async($={})=>_Y.slurpFile($.configFilepath??VG()).then(K$).then(uY).catch(dY),"loadSsoSessionData"),pY=y((...$)=>{const U={};for(let G of $)for(let[W,X]of Object.entries(G))if(U[W]!==void 0)Object.assign(U[W],X);else U[W]=X;return U},"mergeConfigFiles"),lY=y(async($)=>{const U=await TG($);return pY(U.configFile,U.credentialsFile)},"parseKnownFiles")});var CG=E((sR,OG)=>{var B$=function($){try{const U=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return U.delete("CONFIG"),U.delete("CONFIG_PREFIX_SEPARATOR"),U.delete("ENV"),[...U].join(", ")}catch(U){return $}},Q1=Object.defineProperty,sY=Object.getOwnPropertyDescriptor,mY=Object.getOwnPropertyNames,nY=Object.prototype.hasOwnProperty,H0=($,U)=>Q1($,"name",{value:U,configurable:!0}),iY=($,U)=>{for(var G in U)Q1($,G,{get:U[G],enumerable:!0})},rY=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of mY(U))if(!nY.call($,X)&&X!==G)Q1($,X,{get:()=>U[X],enumerable:!(W=sY(U,X))||W.enumerable})}return $},oY=($)=>rY(Q1({},"__esModule",{value:!0}),$),AG={};iY(AG,{loadConfig:()=>U5});OG.exports=oY(AG);var v0=F$();H0(B$,"getSelectorName");var aY=H0(($,U)=>async()=>{try{const G=$(process.env);if(G===void 0)throw new Error;return G}catch(G){throw new v0.CredentialsProviderError(G.message||`Not found in ENV: ${B$($.toString())}`,{logger:U})}},"fromEnv"),HG=M$(),tY=H0(($,{preferredFile:U="config",...G}={})=>async()=>{const W=HG.getProfileName(G),{configFile:X,credentialsFile:Z}=await HG.loadSharedConfigFiles(G),L=Z[W]||{},Y=X[W]||{},w=U==="config"?{...L,...Y}:{...Y,...L};try{const Q=$(w,U==="config"?X:Z);if(Q===void 0)throw new Error;return Q}catch(F){throw new v0.CredentialsProviderError(F.message||`Not found in config files w/ profile [${W}]: ${B$($.toString())}`,{logger:G.logger})}},"fromSharedConfigFiles"),eY=H0(($)=>typeof $==="function","isFunction"),$5=H0(($)=>eY($)?async()=>await $():v0.fromStatic($),"fromStatic"),U5=H0(({environmentVariableSelector:$,configFileSelector:U,default:G},W={})=>v0.memoize(v0.chain(aY($),tY(U,W),$5(G))),"loadConfig")});var SG=E((jG)=>{Object.defineProperty(jG,"__esModule",{value:!0});jG.getEndpointUrlConfig=void 0;var fG=M$(),qG="AWS_ENDPOINT_URL",NG="endpoint_url",G5=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((Z)=>Z.toUpperCase()),W=U[[qG,...G].join("_")];if(W)return W;const X=U[qG];if(X)return X;return},configFileSelector:(U,G)=>{if(G&&U.services){const X=G[["services",U.services].join(fG.CONFIG_PREFIX_SEPARATOR)];if(X){const Z=$.split(" ").map((Y)=>Y.toLowerCase()),L=X[[Z.join("_"),NG].join(fG.CONFIG_PREFIX_SEPARATOR)];if(L)return L}}const W=U[NG];if(W)return W;return},default:void 0});jG.getEndpointUrlConfig=G5});var kG=E((DG)=>{Object.defineProperty(DG,"__esModule",{value:!0});DG.getEndpointFromConfig=void 0;var W5=CG(),X5=SG(),Z5=async($)=>W5.loadConfig(X5.getEndpointUrlConfig($))();DG.getEndpointFromConfig=Z5});var cG=E((iR,vG)=>{var xG=function($){const U={};if($=$.replace(/^\?/,""),$)for(let G of $.split("&")){let[W,X=null]=G.split("=");if(W=decodeURIComponent(W),X)X=decodeURIComponent(X);if(!(W in U))U[W]=X;else if(Array.isArray(U[W]))U[W].push(X);else U[W]=[U[W],X]}return U},z1=Object.defineProperty,L5=Object.getOwnPropertyDescriptor,Y5=Object.getOwnPropertyNames,w5=Object.prototype.hasOwnProperty,F5=($,U)=>z1($,"name",{value:U,configurable:!0}),Q5=($,U)=>{for(var G in U)z1($,G,{get:U[G],enumerable:!0})},z5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Y5(U))if(!w5.call($,X)&&X!==G)z1($,X,{get:()=>U[X],enumerable:!(W=L5(U,X))||W.enumerable})}return $},I5=($)=>z5(z1({},"__esModule",{value:!0}),$),hG={};Q5(hG,{parseQueryString:()=>xG});vG.exports=I5(hG);F5(xG,"parseQueryString")});var dG=E((rR,_G)=>{var{defineProperty:I1,getOwnPropertyDescriptor:J5,getOwnPropertyNames:R5}=Object,K5=Object.prototype.hasOwnProperty,E5=($,U)=>I1($,"name",{value:U,configurable:!0}),M5=($,U)=>{for(var G in U)I1($,G,{get:U[G],enumerable:!0})},B5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of R5(U))if(!K5.call($,X)&&X!==G)I1($,X,{get:()=>U[X],enumerable:!(W=J5(U,X))||W.enumerable})}return $},V5=($)=>B5(I1({},"__esModule",{value:!0}),$),yG={};M5(yG,{parseUrl:()=>uG});_G.exports=V5(yG);var T5=cG(),uG=E5(($)=>{if(typeof $==="string")return uG(new URL($));const{hostname:U,pathname:G,port:W,protocol:X,search:Z}=$;let L;if(Z)L=T5.parseQueryString(Z);return{hostname:U,port:W?parseInt(W):void 0,protocol:X,path:G,query:L}},"parseUrl")});var T$=E((oR,iG)=>{var nG=function($,U,G){return{applyToStack:(W)=>{W.add(pG($,G),sG),W.add(lG($,U),mG)}}},J1=Object.defineProperty,H5=Object.getOwnPropertyDescriptor,A5=Object.getOwnPropertyNames,O5=Object.prototype.hasOwnProperty,V$=($,U)=>J1($,"name",{value:U,configurable:!0}),C5=($,U)=>{for(var G in U)J1($,G,{get:U[G],enumerable:!0})},f5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of A5(U))if(!O5.call($,X)&&X!==G)J1($,X,{get:()=>U[X],enumerable:!(W=H5(U,X))||W.enumerable})}return $},q5=($)=>f5(J1({},"__esModule",{value:!0}),$),gG={};C5(gG,{deserializerMiddleware:()=>pG,deserializerMiddlewareOption:()=>sG,getSerdePlugin:()=>nG,serializerMiddleware:()=>lG,serializerMiddlewareOption:()=>mG});iG.exports=q5(gG);var pG=V$(($,U)=>(G)=>async(W)=>{const{response:X}=await G(W);try{const Z=await U(X,$);return{response:X,output:Z}}catch(Z){if(Object.defineProperty(Z,"$response",{value:X}),!("$metadata"in Z)){if(Z.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof Z.$responseBodyText!=="undefined"){if(Z.$response)Z.$response.body=Z.$responseBodyText}}throw Z}},"deserializerMiddleware"),lG=V$(($,U)=>(G,W)=>async(X)=>{var Z;const L=((Z=W.endpointV2)==null?void 0:Z.url)&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!L)throw new Error("No valid endpoint provider available.");const Y=await U(X.input,{...$,endpoint:L});return G({...X,request:Y})},"serializerMiddleware"),sG={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},mG={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};V$(nG,"getSerdePlugin")});var G8=E((aR,U8)=>{var{defineProperty:K1,getOwnPropertyDescriptor:N5,getOwnPropertyNames:j5}=Object,P5=Object.prototype.hasOwnProperty,g=($,U)=>K1($,"name",{value:U,configurable:!0}),S5=($,U)=>{for(var G in U)K1($,G,{get:U[G],enumerable:!0})},D5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of j5(U))if(!P5.call($,X)&&X!==G)K1($,X,{get:()=>U[X],enumerable:!(W=N5(U,X))||W.enumerable})}return $},b5=($)=>D5(K1({},"__esModule",{value:!0}),$),oG={};S5(oG,{endpointMiddleware:()=>eG,endpointMiddlewareOptions:()=>$8,getEndpointFromInstructions:()=>aG,getEndpointPlugin:()=>g5,resolveEndpointConfig:()=>p5,resolveParams:()=>tG,toEndpointV1:()=>H$});U8.exports=b5(oG);var k5=g(async($)=>{const U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(y5(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!c5(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),h5=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,x5=/(\d+\.){3}\d+/,v5=/\.\./,c5=g(($)=>h5.test($)&&!x5.test($)&&!v5.test($),"isDnsCompatibleBucketName"),y5=g(($)=>{const[U,G,W,,,X]=$.split(":"),Z=U==="arn"&&$.split(":").length>=6,L=Boolean(Z&&G&&W&&X);if(Z&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L},"isArnBucketName"),u5=g(($,U,G)=>{const W=g(async()=>{const X=G[$]??G[U];if(typeof X==="function")return X();return X},"configProvider");if($==="credentialScope"||U==="CredentialScope")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return(X==null?void 0:X.credentialScope)??(X==null?void 0:X.CredentialScope)};if($==="accountId"||U==="AccountId")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return(X==null?void 0:X.accountId)??(X==null?void 0:X.AccountId)};if($==="endpoint"||U==="endpoint")return async()=>{const X=await W();if(X&&typeof X==="object"){if("url"in X)return X.url.href;if("hostname"in X){const{protocol:Z,hostname:L,port:Y,path:w}=X;return`${Z}//${L}${Y?":"+Y:""}${w}`}}return X};return W},"createConfigValueProvider"),_5=kG(),rG=dG(),H$=g(($)=>{if(typeof $==="object"){if("url"in $)return rG.parseUrl($.url);return $}return rG.parseUrl($)},"toEndpointV1"),aG=g(async($,U,G,W)=>{if(!G.endpoint){const L=await _5.getEndpointFromConfig(G.serviceId||"");if(L)G.endpoint=()=>Promise.resolve(H$(L))}const X=await tG($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(X,W)},"getEndpointFromInstructions"),tG=g(async($,U,G)=>{var W;const X={},Z=((W=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:W.call(U))||{};for(let[L,Y]of Object.entries(Z))switch(Y.type){case"staticContextParams":X[L]=Y.value;break;case"contextParams":X[L]=$[Y.name];break;case"clientContextParams":case"builtInParams":X[L]=await u5(Y.name,L,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(Y))}if(Object.keys(Z).length===0)Object.assign(X,G);if(String(G.serviceId).toLowerCase()==="s3")await k5(X);return X},"resolveParams"),R1=k0(),eG=g(({config:$,instructions:U})=>{return(G,W)=>async(X)=>{var Z,L,Y;const w=await aG(X.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=w,W.authSchemes=(Z=w.properties)==null?void 0:Z.authSchemes;const F=(L=W.authSchemes)==null?void 0:L[0];if(F){W.signing_region=F.signingRegion,W.signing_service=F.signingName;const Q=R1.getSmithyContext(W),z=(Y=Q==null?void 0:Q.selectedHttpAuthScheme)==null?void 0:Y.httpAuthOption;if(z)z.signingProperties=Object.assign(z.signingProperties||{},{signing_region:F.signingRegion,signingRegion:F.signingRegion,signing_service:F.signingName,signingName:F.signingName,signingRegionSet:F.signingRegionSet},F.properties)}return G({...X})}},"endpointMiddleware"),d5=T$(),$8={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:d5.serializerMiddlewareOption.name},g5=g(($,U)=>({applyToStack:(G)=>{G.addRelativeTo(eG({config:$,instructions:U}),$8)}}),"getEndpointPlugin"),p5=g(($)=>{const U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>H$(await R1.normalizeProvider(G)()):void 0;return{...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:R1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:R1.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var i=E((tR,z8)=>{var w8=function($){return Object.keys($).reduce((U,G)=>{const W=$[G];return{...U,[G]:Array.isArray(W)?[...W]:W}},{})},Q8=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},E1=Object.defineProperty,l5=Object.getOwnPropertyDescriptor,s5=Object.getOwnPropertyNames,m5=Object.prototype.hasOwnProperty,$0=($,U)=>E1($,"name",{value:U,configurable:!0}),n5=($,U)=>{for(var G in U)E1($,G,{get:U[G],enumerable:!0})},i5=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of s5(U))if(!m5.call($,X)&&X!==G)E1($,X,{get:()=>U[X],enumerable:!(W=l5(U,X))||W.enumerable})}return $},r5=($)=>i5(E1({},"__esModule",{value:!0}),$),W8={};n5(W8,{Field:()=>t5,Fields:()=>e5,HttpRequest:()=>$2,HttpResponse:()=>U2,IHttpRequest:()=>X8.HttpRequest,getHttpHandlerExtensionConfiguration:()=>o5,isValidHostname:()=>Q8,resolveHttpHandlerRuntimeConfig:()=>a5});z8.exports=r5(W8);var o5=$0(($)=>{let U=$.httpHandler;return{setHttpHandler(G){U=G},httpHandler(){return U},updateHttpClientConfig(G,W){U.updateHttpClientConfig(G,W)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),a5=$0(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),X8=F0(),Z8=class ${constructor({name:U,kind:G=X8.FieldPosition.HEADER,values:W=[]}){this.name=U,this.kind=G,this.values=W}add(U){this.values.push(U)}set(U){this.values=U}remove(U){this.values=this.values.filter((G)=>G!==U)}toString(){return this.values.map((U)=>U.includes(",")||U.includes(" ")?`"${U}"`:U).join(", ")}get(){return this.values}};$0(Z8,"Field");var t5=Z8,L8=class ${constructor({fields:U=[],encoding:G="utf-8"}){this.entries={},U.forEach(this.setField.bind(this)),this.encoding=G}setField(U){this.entries[U.name.toLowerCase()]=U}getField(U){return this.entries[U.toLowerCase()]}removeField(U){delete this.entries[U.toLowerCase()]}getByType(U){return Object.values(this.entries).filter((G)=>G.kind===U)}};$0(L8,"Fields");var e5=L8,Y8=class ${constructor(U){this.method=U.method||"GET",this.hostname=U.hostname||"localhost",this.port=U.port,this.query=U.query||{},this.headers=U.headers||{},this.body=U.body,this.protocol=U.protocol?U.protocol.slice(-1)!==":"?`${U.protocol}:`:U.protocol:"https:",this.path=U.path?U.path.charAt(0)!=="/"?`/${U.path}`:U.path:"/",this.username=U.username,this.password=U.password,this.fragment=U.fragment}static clone(U){const G=new $({...U,headers:{...U.headers}});if(G.query)G.query=w8(G.query);return G}static isInstance(U){if(!U)return!1;const G=U;return"method"in G&&"protocol"in G&&"hostname"in G&&"path"in G&&typeof G.query==="object"&&typeof G.headers==="object"}clone(){return $.clone(this)}};$0(Y8,"HttpRequest");var $2=Y8;$0(w8,"cloneQuery");var F8=class ${constructor(U){this.statusCode=U.statusCode,this.reason=U.reason,this.headers=U.headers||{},this.body=U.body}static isInstance(U){if(!U)return!1;const G=U;return typeof G.statusCode==="number"&&typeof G.headers==="object"}};$0(F8,"HttpResponse");var U2=F8;$0(Q8,"isValidHostname")});var A$=E((I8)=>{var W2=function($){return $&&$.__esModule?$:{default:$}},X2=function(){if(M1>B1.length-16)G2.default.randomFillSync(B1),M1=0;return B1.slice(M1,M1+=16)};Object.defineProperty(I8,"__esModule",{value:!0});I8.default=X2;var G2=W2(import.meta.require("crypto")),B1=new Uint8Array(256),M1=B1.length});var K8=E((J8)=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.default=void 0;var L2=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;J8.default=L2});var c0=E((E8)=>{var w2=function($){return $&&$.__esModule?$:{default:$}},F2=function($){return typeof $==="string"&&Y2.default.test($)};Object.defineProperty(E8,"__esModule",{value:!0});E8.default=void 0;var Y2=w2(K8()),Q2=F2;E8.default=Q2});var y0=E((V8)=>{var I2=function($){return $&&$.__esModule?$:{default:$}},B8=function($,U=0){return b[$[U+0]]+b[$[U+1]]+b[$[U+2]]+b[$[U+3]]+"-"+b[$[U+4]]+b[$[U+5]]+"-"+b[$[U+6]]+b[$[U+7]]+"-"+b[$[U+8]]+b[$[U+9]]+"-"+b[$[U+10]]+b[$[U+11]]+b[$[U+12]]+b[$[U+13]]+b[$[U+14]]+b[$[U+15]]},J2=function($,U=0){const G=B8($,U);if(!z2.default(G))throw TypeError("Stringified UUID is invalid");return G};Object.defineProperty(V8,"__esModule",{value:!0});V8.default=void 0;V8.unsafeStringify=B8;var z2=I2(c0()),b=[];for(let $=0;$<256;++$)b.push(($+256).toString(16).slice(1));var R2=J2;V8.default=R2});var C8=E((A8)=>{var B2=function($){return $&&$.__esModule?$:{default:$}},V2=function($,U,G){let W=U&&G||0;const X=U||new Array(16);$=$||{};let Z=$.node||H8,L=$.clockseq!==void 0?$.clockseq:O$;if(Z==null||L==null){const I=$.random||($.rng||E2.default)();if(Z==null)Z=H8=[I[0]|1,I[1],I[2],I[3],I[4],I[5]];if(L==null)L=O$=(I[6]<<8|I[7])&16383}let Y=$.msecs!==void 0?$.msecs:Date.now(),w=$.nsecs!==void 0?$.nsecs:f$+1;const F=Y-C$+(w-f$)/1e4;if(F<0&&$.clockseq===void 0)L=L+1&16383;if((F<0||Y>C$)&&$.nsecs===void 0)w=0;if(w>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");C$=Y,f$=w,O$=L,Y+=12219292800000;const Q=((Y&268435455)*1e4+w)%4294967296;X[W++]=Q>>>24&255,X[W++]=Q>>>16&255,X[W++]=Q>>>8&255,X[W++]=Q&255;const z=Y/4294967296*1e4&268435455;X[W++]=z>>>8&255,X[W++]=z&255,X[W++]=z>>>24&15|16,X[W++]=z>>>16&255,X[W++]=L>>>8|128,X[W++]=L&255;for(let I=0;I<6;++I)X[W+I]=Z[I];return U||M2.unsafeStringify(X)};Object.defineProperty(A8,"__esModule",{value:!0});A8.default=void 0;var E2=B2(A$()),M2=y0(),H8,O$,C$=0,f$=0,T2=V2;A8.default=T2});var q$=E((f8)=>{var A2=function($){return $&&$.__esModule?$:{default:$}},O2=function($){if(!H2.default($))throw TypeError("Invalid UUID");let U;const G=new Uint8Array(16);return G[0]=(U=parseInt($.slice(0,8),16))>>>24,G[1]=U>>>16&255,G[2]=U>>>8&255,G[3]=U&255,G[4]=(U=parseInt($.slice(9,13),16))>>>8,G[5]=U&255,G[6]=(U=parseInt($.slice(14,18),16))>>>8,G[7]=U&255,G[8]=(U=parseInt($.slice(19,23),16))>>>8,G[9]=U&255,G[10]=(U=parseInt($.slice(24,36),16))/1099511627776&255,G[11]=U/4294967296&255,G[12]=U>>>24&255,G[13]=U>>>16&255,G[14]=U>>>8&255,G[15]=U&255,G};Object.defineProperty(f8,"__esModule",{value:!0});f8.default=void 0;var H2=A2(c0()),C2=O2;f8.default=C2});var N$=E((P8)=>{var N2=function($){return $&&$.__esModule?$:{default:$}},j2=function($){$=unescape(encodeURIComponent($));const U=[];for(let G=0;G<$.length;++G)U.push($.charCodeAt(G));return U},P2=function($,U,G){function W(X,Z,L,Y){var w;if(typeof X==="string")X=j2(X);if(typeof Z==="string")Z=q2.default(Z);if(((w=Z)===null||w===void 0?void 0:w.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let F=new Uint8Array(16+X.length);if(F.set(Z),F.set(X,Z.length),F=G(F),F[6]=F[6]&15|U,F[8]=F[8]&63|128,L){Y=Y||0;for(let Q=0;Q<16;++Q)L[Y+Q]=F[Q];return L}return f2.unsafeStringify(F)}try{W.name=$}catch(X){}return W.DNS=N8,W.URL=j8,W};Object.defineProperty(P8,"__esModule",{value:!0});P8.URL=P8.DNS=void 0;P8.default=P2;var f2=y0(),q2=N2(q$()),N8="6ba7b810-9dad-11d1-80b4-00c04fd430c8";P8.DNS=N8;var j8="6ba7b811-9dad-11d1-80b4-00c04fd430c8";P8.URL=j8});var k8=E((D8)=>{var k2=function($){return $&&$.__esModule?$:{default:$}},h2=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return b2.default.createHash("md5").update($).digest()};Object.defineProperty(D8,"__esModule",{value:!0});D8.default=void 0;var b2=k2(import.meta.require("crypto")),x2=h2;D8.default=x2});var c8=E((x8)=>{var h8=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(x8,"__esModule",{value:!0});x8.default=void 0;var v2=h8(N$()),c2=h8(k8()),y2=v2.default("v3",48,c2.default),u2=y2;x8.default=u2});var _8=E((y8)=>{var d2=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(y8,"__esModule",{value:!0});y8.default=void 0;var _2=d2(import.meta.require("crypto")),g2={randomUUID:_2.default.randomUUID};y8.default=g2});var s8=E((p8)=>{var g8=function($){return $&&$.__esModule?$:{default:$}},s2=function($,U,G){if(d8.default.randomUUID&&!U&&!$)return d8.default.randomUUID();$=$||{};const W=$.random||($.rng||p2.default)();if(W[6]=W[6]&15|64,W[8]=W[8]&63|128,U){G=G||0;for(let X=0;X<16;++X)U[G+X]=W[X];return U}return l2.unsafeStringify(W)};Object.defineProperty(p8,"__esModule",{value:!0});p8.default=void 0;var d8=g8(_8()),p2=g8(A$()),l2=y0(),m2=s2;p8.default=m2});var i8=E((m8)=>{var i2=function($){return $&&$.__esModule?$:{default:$}},r2=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return n2.default.createHash("sha1").update($).digest()};Object.defineProperty(m8,"__esModule",{value:!0});m8.default=void 0;var n2=i2(import.meta.require("crypto")),o2=r2;m8.default=o2});var t8=E((o8)=>{var r8=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(o8,"__esModule",{value:!0});o8.default=void 0;var a2=r8(N$()),t2=r8(i8()),e2=a2.default("v5",80,t2.default),$9=e2;o8.default=$9});var U4=E((e8)=>{Object.defineProperty(e8,"__esModule",{value:!0});e8.default=void 0;var U9="00000000-0000-0000-0000-000000000000";e8.default=U9});var X4=E((G4)=>{var W9=function($){return $&&$.__esModule?$:{default:$}},X9=function($){if(!G9.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)};Object.defineProperty(G4,"__esModule",{value:!0});G4.default=void 0;var G9=W9(c0()),Z9=X9;G4.default=Z9});var j$=E((p)=>{var r=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(p,"__esModule",{value:!0});Object.defineProperty(p,"NIL",{enumerable:!0,get:function(){return Q9.default}});Object.defineProperty(p,"parse",{enumerable:!0,get:function(){return R9.default}});Object.defineProperty(p,"stringify",{enumerable:!0,get:function(){return J9.default}});Object.defineProperty(p,"v1",{enumerable:!0,get:function(){return L9.default}});Object.defineProperty(p,"v3",{enumerable:!0,get:function(){return Y9.default}});Object.defineProperty(p,"v4",{enumerable:!0,get:function(){return w9.default}});Object.defineProperty(p,"v5",{enumerable:!0,get:function(){return F9.default}});Object.defineProperty(p,"validate",{enumerable:!0,get:function(){return I9.default}});Object.defineProperty(p,"version",{enumerable:!0,get:function(){return z9.default}});var L9=r(C8()),Y9=r(c8()),w9=r(s8()),F9=r(t8()),Q9=r(U4()),z9=r(X4()),I9=r(c0()),J9=r(y0()),R9=r(q$())});var P$=E((KK,w4)=>{var{defineProperty:V1,getOwnPropertyDescriptor:K9,getOwnPropertyNames:E9}=Object,M9=Object.prototype.hasOwnProperty,A0=($,U)=>V1($,"name",{value:U,configurable:!0}),B9=($,U)=>{for(var G in U)V1($,G,{get:U[G],enumerable:!0})},V9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of E9(U))if(!M9.call($,X)&&X!==G)V1($,X,{get:()=>U[X],enumerable:!(W=K9(U,X))||W.enumerable})}return $},T9=($)=>V9(V1({},"__esModule",{value:!0}),$),Z4={};B9(Z4,{isClockSkewCorrectedError:()=>L4,isClockSkewError:()=>N9,isRetryableByTrait:()=>q9,isServerError:()=>P9,isThrottlingError:()=>j9,isTransientError:()=>Y4});w4.exports=T9(Z4);var H9=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],A9=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],O9=["TimeoutError","RequestTimeout","RequestTimeoutException"],C9=[500,502,503,504],f9=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],q9=A0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),N9=A0(($)=>H9.includes($.name),"isClockSkewError"),L4=A0(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),j9=A0(($)=>{var U,G;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||A9.includes($.name)||((G=$.$retryable)==null?void 0:G.throttling)==!0},"isThrottlingError"),Y4=A0(($)=>{var U;return L4($)||O9.includes($.name)||f9.includes(($==null?void 0:$.code)||"")||C9.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),P9=A0(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){const G=$.$metadata.httpStatusCode;if(500<=G&&G<=599&&!Y4($))return!0;return!1}return!1},"isServerError")});var A4=E((EK,H4)=>{var{defineProperty:T1,getOwnPropertyDescriptor:S9,getOwnPropertyNames:D9}=Object,b9=Object.prototype.hasOwnProperty,l=($,U)=>T1($,"name",{value:U,configurable:!0}),k9=($,U)=>{for(var G in U)T1($,G,{get:U[G],enumerable:!0})},h9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of D9(U))if(!b9.call($,X)&&X!==G)T1($,X,{get:()=>U[X],enumerable:!(W=S9(U,X))||W.enumerable})}return $},x9=($)=>h9(T1({},"__esModule",{value:!0}),$),Q4={};k9(Q4,{AdaptiveRetryStrategy:()=>d9,ConfiguredRetryStrategy:()=>g9,DEFAULT_MAX_ATTEMPTS:()=>S$,DEFAULT_RETRY_DELAY_BASE:()=>u0,DEFAULT_RETRY_MODE:()=>v9,DefaultRateLimiter:()=>J4,INITIAL_RETRY_TOKENS:()=>D$,INVOCATION_ID_HEADER:()=>y9,MAXIMUM_RETRY_DELAY:()=>b$,NO_RETRY_INCREMENT:()=>M4,REQUEST_HEADER:()=>u9,RETRY_COST:()=>K4,RETRY_MODES:()=>z4,StandardRetryStrategy:()=>k$,THROTTLING_RETRY_DELAY_BASE:()=>R4,TIMEOUT_RETRY_COST:()=>E4});H4.exports=x9(Q4);var z4=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(z4||{}),S$=3,v9="standard",c9=P$(),I4=class ${constructor(U){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(U==null?void 0:U.beta)??0.7,this.minCapacity=(U==null?void 0:U.minCapacity)??1,this.minFillRate=(U==null?void 0:U.minFillRate)??0.5,this.scaleConstant=(U==null?void 0:U.scaleConstant)??0.4,this.smooth=(U==null?void 0:U.smooth)??0.8;const G=this.getCurrentTimeInSeconds();this.lastThrottleTime=G,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(U){if(!this.enabled)return;if(this.refillTokenBucket(),U>this.currentCapacity){const G=(U-this.currentCapacity)/this.fillRate*1000;await new Promise((W)=>setTimeout(W,G))}this.currentCapacity=this.currentCapacity-U}refillTokenBucket(){const U=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=U;return}const G=(U-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+G),this.lastTimestamp=U}updateClientSendingRate(U){let G;if(this.updateMeasuredRate(),c9.isThrottlingError(U)){const X=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=X,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),G=this.cubicThrottle(X),this.enableTokenBucket()}else this.calculateTimeWindow(),G=this.cubicSuccess(this.getCurrentTimeInSeconds());const W=Math.min(G,2*this.measuredTxRate);this.updateTokenBucketRate(W)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(U){return this.getPrecise(U*this.beta)}cubicSuccess(U){return this.getPrecise(this.scaleConstant*Math.pow(U-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(U){this.refillTokenBucket(),this.fillRate=Math.max(U,this.minFillRate),this.maxCapacity=Math.max(U,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const U=this.getCurrentTimeInSeconds(),G=Math.floor(U*2)/2;if(this.requestCount++,G>this.lastTxRateBucket){const W=this.requestCount/(G-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(W*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=G}}getPrecise(U){return parseFloat(U.toFixed(8))}};l(I4,"DefaultRateLimiter");var J4=I4,u0=100,b$=20000,R4=500,D$=500,K4=5,E4=10,M4=1,y9="amz-sdk-invocation-id",u9="amz-sdk-request",_9=l(()=>{let $=u0;return{computeNextBackoffDelay:l((W)=>{return Math.floor(Math.min(b$,Math.random()*2**W*$))},"computeNextBackoffDelay"),setDelayBase:l((W)=>{$=W},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),F4=l(({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:l(()=>U,"getRetryCount"),getRetryDelay:l(()=>Math.min(b$,$),"getRetryDelay"),getRetryCost:l(()=>G,"getRetryCost")}},"createDefaultRetryToken"),B4=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=D$,this.retryBackoffStrategy=_9(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return F4({retryDelay:u0,retryCount:0})}async refreshRetryTokenForRetry(U,G){const W=await this.getMaxAttempts();if(this.shouldRetry(U,G,W)){const X=G.errorType;this.retryBackoffStrategy.setDelayBase(X==="THROTTLING"?R4:u0);const Z=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),L=G.retryAfterHint?Math.max(G.retryAfterHint.getTime()-Date.now()||0,Z):Z,Y=this.getCapacityCost(X);return this.capacity-=Y,F4({retryDelay:L,retryCount:U.getRetryCount()+1,retryCost:Y})}throw new Error("No retry token available")}recordSuccess(U){this.capacity=Math.max(D$,this.capacity+(U.getRetryCost()??M4))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(U){return console.warn(`Max attempts provider could not resolve. Using default of ${S$}`),S$}}shouldRetry(U,G,W){return U.getRetryCount()+1<W&&this.capacity>=this.getCapacityCost(G.errorType)&&this.isRetryableError(G.errorType)}getCapacityCost(U){return U==="TRANSIENT"?E4:K4}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};l(B4,"StandardRetryStrategy");var k$=B4,V4=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode="adaptive";const{rateLimiter:W}=G??{};this.rateLimiter=W??new J4,this.standardRetryStrategy=new k$(U)}async acquireInitialRetryToken(U){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(U)}async refreshRetryTokenForRetry(U,G){return this.rateLimiter.updateClientSendingRate(G),this.standardRetryStrategy.refreshRetryTokenForRetry(U,G)}recordSuccess(U){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(U)}};l(V4,"AdaptiveRetryStrategy");var d9=V4,T4=class $ extends k${constructor(U,G=u0){super(typeof U==="function"?U:async()=>U);if(typeof G==="number")this.computeNextBackoffDelay=()=>G;else this.computeNextBackoffDelay=G}async refreshRetryTokenForRetry(U,G){const W=await super.refreshRetryTokenForRetry(U,G);return W.getRetryDelay=()=>this.computeNextBackoffDelay(W.getRetryCount()),W}};l(T4,"ConfiguredRetryStrategy");var g9=T4});var N4=E((MK,q4)=>{var{defineProperty:H1,getOwnPropertyDescriptor:p9,getOwnPropertyNames:l9}=Object,s9=Object.prototype.hasOwnProperty,u=($,U)=>H1($,"name",{value:U,configurable:!0}),m9=($,U)=>{for(var G in U)H1($,G,{get:U[G],enumerable:!0})},n9=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of l9(U))if(!s9.call($,X)&&X!==G)H1($,X,{get:()=>U[X],enumerable:!(W=p9(U,X))||W.enumerable})}return $},i9=($)=>n9(H1({},"__esModule",{value:!0}),$),f4={};m9(f4,{constructStack:()=>h$});q4.exports=i9(f4);var I0=u(($,U)=>{const G=[];if($)G.push($);if(U)for(let W of U)G.push(W);return G},"getAllAliases"),U0=u(($,U)=>{return`${$||"anonymous"}${U&&U.length>0?` (a.k.a. ${U.join(",")})`:""}`},"getMiddlewareNameWithAliases"),h$=u(()=>{let $=[],U=[],G=!1;const W=new Set,X=u((z)=>z.sort((I,J)=>O4[J.step]-O4[I.step]||C4[J.priority||"normal"]-C4[I.priority||"normal"]),"sort"),Z=u((z)=>{let I=!1;const J=u((K)=>{const T=I0(K.name,K.aliases);if(T.includes(z)){I=!0;for(let M of T)W.delete(M);return!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},"removeByName"),L=u((z)=>{let I=!1;const J=u((K)=>{if(K.middleware===z){I=!0;for(let T of I0(K.name,K.aliases))W.delete(T);return!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},"removeByReference"),Y=u((z)=>{var I;return $.forEach((J)=>{z.add(J.middleware,{...J})}),U.forEach((J)=>{z.addRelativeTo(J.middleware,{...J})}),(I=z.identifyOnResolve)==null||I.call(z,Q.identifyOnResolve()),z},"cloneTo"),w=u((z)=>{const I=[];return z.before.forEach((J)=>{if(J.before.length===0&&J.after.length===0)I.push(J);else I.push(...w(J))}),I.push(z),z.after.reverse().forEach((J)=>{if(J.before.length===0&&J.after.length===0)I.push(J);else I.push(...w(J))}),I},"expandRelativeMiddlewareList"),F=u((z=!1)=>{const I=[],J=[],K={};return $.forEach((M)=>{const V={...M,before:[],after:[]};for(let B of I0(V.name,V.aliases))K[B]=V;I.push(V)}),U.forEach((M)=>{const V={...M,before:[],after:[]};for(let B of I0(V.name,V.aliases))K[B]=V;J.push(V)}),J.forEach((M)=>{if(M.toMiddleware){const V=K[M.toMiddleware];if(V===void 0){if(z)return;throw new Error(`${M.toMiddleware} is not found when adding ${U0(M.name,M.aliases)} middleware ${M.relation} ${M.toMiddleware}`)}if(M.relation==="after")V.after.push(M);if(M.relation==="before")V.before.push(M)}}),X(I).map(w).reduce((M,V)=>{return M.push(...V),M},[])},"getMiddlewareList"),Q={add:(z,I={})=>{const{name:J,override:K,aliases:T}=I,M={step:"initialize",priority:"normal",middleware:z,...I},V=I0(J,T);if(V.length>0){if(V.some((B)=>W.has(B))){if(!K)throw new Error(`Duplicate middleware name '${U0(J,T)}'`);for(let B of V){const H=$.findIndex((D)=>{var e;return D.name===B||((e=D.aliases)==null?void 0:e.some((w0)=>w0===B))});if(H===-1)continue;const A=$[H];if(A.step!==M.step||M.priority!==A.priority)throw new Error(`"${U0(A.name,A.aliases)}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by "${U0(J,T)}" middleware with ${M.priority} priority in ${M.step} step.`);$.splice(H,1)}}for(let B of V)W.add(B)}$.push(M)},addRelativeTo:(z,I)=>{const{name:J,override:K,aliases:T}=I,M={middleware:z,...I},V=I0(J,T);if(V.length>0){if(V.some((B)=>W.has(B))){if(!K)throw new Error(`Duplicate middleware name '${U0(J,T)}'`);for(let B of V){const H=U.findIndex((D)=>{var e;return D.name===B||((e=D.aliases)==null?void 0:e.some((w0)=>w0===B))});if(H===-1)continue;const A=U[H];if(A.toMiddleware!==M.toMiddleware||A.relation!==M.relation)throw new Error(`"${U0(A.name,A.aliases)}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by "${U0(J,T)}" middleware ${M.relation} "${M.toMiddleware}" middleware.`);U.splice(H,1)}}for(let B of V)W.add(B)}U.push(M)},clone:()=>Y(h$()),use:(z)=>{z.applyToStack(Q)},remove:(z)=>{if(typeof z==="string")return Z(z);else return L(z)},removeByTag:(z)=>{let I=!1;const J=u((K)=>{const{tags:T,name:M,aliases:V}=K;if(T&&T.includes(z)){const B=I0(M,V);for(let H of B)W.delete(H);return I=!0,!1}return!0},"filterCb");return $=$.filter(J),U=U.filter(J),I},concat:(z)=>{var I;const J=Y(h$());return J.use(z),J.identifyOnResolve(G||J.identifyOnResolve()||(((I=z.identifyOnResolve)==null?void 0:I.call(z))??!1)),J},applyToStack:Y,identify:()=>{return F(!0).map((z)=>{const I=z.step??z.relation+" "+z.toMiddleware;return U0(z.name,z.aliases)+" - "+I})},identifyOnResolve(z){if(typeof z==="boolean")G=z;return G},resolve:(z,I)=>{for(let J of F().map((K)=>K.middleware).reverse())z=J(z,I);if(G)console.log(Q.identify());return z}};return Q},"constructStack"),O4={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},C4={high:3,normal:2,low:1}});var x$=E((BK,P4)=>{var{defineProperty:A1,getOwnPropertyDescriptor:r9,getOwnPropertyNames:o9}=Object,a9=Object.prototype.hasOwnProperty,t9=($,U)=>A1($,"name",{value:U,configurable:!0}),e9=($,U)=>{for(var G in U)A1($,G,{get:U[G],enumerable:!0})},$w=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of o9(U))if(!a9.call($,X)&&X!==G)A1($,X,{get:()=>U[X],enumerable:!(W=r9(U,X))||W.enumerable})}return $},Uw=($)=>$w(A1({},"__esModule",{value:!0}),$),j4={};e9(j4,{isArrayBuffer:()=>Gw});P4.exports=Uw(j4);var Gw=t9(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var _0=E((VK,b4)=>{var{defineProperty:O1,getOwnPropertyDescriptor:Ww,getOwnPropertyNames:Xw}=Object,Zw=Object.prototype.hasOwnProperty,S4=($,U)=>O1($,"name",{value:U,configurable:!0}),Lw=($,U)=>{for(var G in U)O1($,G,{get:U[G],enumerable:!0})},Yw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Xw(U))if(!Zw.call($,X)&&X!==G)O1($,X,{get:()=>U[X],enumerable:!(W=Ww(U,X))||W.enumerable})}return $},ww=($)=>Yw(O1({},"__esModule",{value:!0}),$),D4={};Lw(D4,{fromArrayBuffer:()=>Qw,fromString:()=>zw});b4.exports=ww(D4);var Fw=x$(),v$=import.meta.require("buffer"),Qw=S4(($,U=0,G=$.byteLength-U)=>{if(!Fw.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return v$.Buffer.from($,U,G)},"fromArrayBuffer"),zw=S4(($,U)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return U?v$.Buffer.from($,U):v$.Buffer.from($)},"fromString")});var x4=E((k4)=>{Object.defineProperty(k4,"__esModule",{value:!0});k4.fromBase64=void 0;var Iw=_0(),Jw=/^[A-Za-z0-9+/]*={0,2}$/,Rw=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Jw.exec($))throw new TypeError("Invalid base64 string.");const U=Iw.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};k4.fromBase64=Rw});var G0=E((HK,u4)=>{var{defineProperty:C1,getOwnPropertyDescriptor:Kw,getOwnPropertyNames:Ew}=Object,Mw=Object.prototype.hasOwnProperty,c$=($,U)=>C1($,"name",{value:U,configurable:!0}),Bw=($,U)=>{for(var G in U)C1($,G,{get:U[G],enumerable:!0})},Vw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Ew(U))if(!Mw.call($,X)&&X!==G)C1($,X,{get:()=>U[X],enumerable:!(W=Kw(U,X))||W.enumerable})}return $},Tw=($)=>Vw(C1({},"__esModule",{value:!0}),$),v4={};Bw(v4,{fromUtf8:()=>y4,toUint8Array:()=>Hw,toUtf8:()=>Aw});u4.exports=Tw(v4);var c4=_0(),y4=c$(($)=>{const U=c4.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Hw=c$(($)=>{if(typeof $==="string")return y4($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),Aw=c$(($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return c4.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var g4=E((_4)=>{Object.defineProperty(_4,"__esModule",{value:!0});_4.toBase64=void 0;var Ow=_0(),Cw=G0(),fw=($)=>{let U;if(typeof $==="string")U=Cw.fromUtf8($);else U=$;if(typeof U!=="object"||typeof U.byteOffset!=="number"||typeof U.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Ow.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};_4.toBase64=fw});var q1=E((OK,f1)=>{var{defineProperty:p4,getOwnPropertyDescriptor:qw,getOwnPropertyNames:Nw}=Object,jw=Object.prototype.hasOwnProperty,y$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Nw(U))if(!jw.call($,X)&&X!==G)p4($,X,{get:()=>U[X],enumerable:!(W=qw(U,X))||W.enumerable})}return $},l4=($,U,G)=>(y$($,U,"default"),G&&y$(G,U,"default")),Pw=($)=>y$(p4({},"__esModule",{value:!0}),$),u$={};f1.exports=Pw(u$);l4(u$,x4(),f1.exports);l4(u$,g4(),f1.exports)});var n4=E((s4)=>{Object.defineProperty(s4,"__esModule",{value:!0});s4.getAwsChunkedEncodingStream=void 0;var Sw=import.meta.require("stream"),Dw=($,U)=>{const{base64Encoder:G,bodyLengthChecker:W,checksumAlgorithmFn:X,checksumLocationName:Z,streamHasher:L}=U,Y=G!==void 0&&X!==void 0&&Z!==void 0&&L!==void 0,w=Y?L(X,$):void 0,F=new Sw.Readable({read:()=>{}});return $.on("data",(Q)=>{const z=W(Q)||0;F.push(`${z.toString(16)}\r\n`),F.push(Q),F.push("\r\n")}),$.on("end",async()=>{if(F.push("0\r\n"),Y){const Q=G(await w);F.push(`${Z}:${Q}\r\n`),F.push("\r\n")}F.push(null)}),F};s4.getAwsChunkedEncodingStream=Dw});var d$=E((fK,a4)=>{var o4=function($){const U=[];for(let G of Object.keys($).sort()){const W=$[G];if(G=_$.escapeUri(G),Array.isArray(W))for(let X=0,Z=W.length;X<Z;X++)U.push(`${G}=${_$.escapeUri(W[X])}`);else{let X=G;if(W||typeof W==="string")X+=`=${_$.escapeUri(W)}`;U.push(X)}}return U.join("&")},N1=Object.defineProperty,bw=Object.getOwnPropertyDescriptor,kw=Object.getOwnPropertyNames,hw=Object.prototype.hasOwnProperty,xw=($,U)=>N1($,"name",{value:U,configurable:!0}),vw=($,U)=>{for(var G in U)N1($,G,{get:U[G],enumerable:!0})},cw=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of kw(U))if(!hw.call($,X)&&X!==G)N1($,X,{get:()=>U[X],enumerable:!(W=bw(U,X))||W.enumerable})}return $},yw=($)=>cw(N1({},"__esModule",{value:!0}),$),r4={};vw(r4,{buildQueryString:()=>o4});a4.exports=yw(r4);var _$=i4();xw(o4,"buildQueryString")});var R6=E((qK,J6)=>{async function l$($,U,G=t4){const W=U.headers??{},X=W.Expect||W.expect;let Z=-1,L=!1;if(X==="100-continue")await Promise.race([new Promise((Y)=>{Z=Number(setTimeout(Y,Math.max(t4,G)))}),new Promise((Y)=>{$.on("continue",()=>{clearTimeout(Z),Y()}),$.on("error",()=>{L=!0,clearTimeout(Z),Y()})})]);if(!L)L6($,U.body)}var L6=function($,U){if(U instanceof Z6.Readable){U.pipe($);return}if(U){if(Buffer.isBuffer(U)||typeof U==="string"){$.end(U);return}const G=U;if(typeof G==="object"&&G.buffer&&typeof G.byteOffset==="number"&&typeof G.byteLength==="number"){$.end(Buffer.from(G.buffer,G.byteOffset,G.byteLength));return}$.end(Buffer.from(U));return}$.end()};async function I6($){const U=[],G=$.getReader();let W=!1,X=0;while(!W){const{done:Y,value:w}=await G.read();if(w)U.push(w),X+=w.length;W=Y}const Z=new Uint8Array(X);let L=0;for(let Y of U)Z.set(Y,L),L+=Y.length;return Z}var{create:uw,defineProperty:d0,getOwnPropertyDescriptor:_w,getOwnPropertyNames:dw,getPrototypeOf:gw}=Object,pw=Object.prototype.hasOwnProperty,N=($,U)=>d0($,"name",{value:U,configurable:!0}),lw=($,U)=>{for(var G in U)d0($,G,{get:U[G],enumerable:!0})},$6=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of dw(U))if(!pw.call($,X)&&X!==G)d0($,X,{get:()=>U[X],enumerable:!(W=_w(U,X))||W.enumerable})}return $},sw=($,U,G)=>(G=$!=null?uw(gw($)):{},$6(U||!$||!$.__esModule?d0(G,"default",{value:$,enumerable:!0}):G,$)),mw=($)=>$6(d0({},"__esModule",{value:!0}),$),U6={};lw(U6,{DEFAULT_REQUEST_TIMEOUT:()=>aw,NodeHttp2Handler:()=>GF,NodeHttpHandler:()=>tw,streamCollector:()=>XF});J6.exports=mw(U6);var G6=i(),W6=d$(),g$=import.meta.require("http"),p$=import.meta.require("https"),nw=["ECONNRESET","EPIPE","ETIMEDOUT"],X6=N(($)=>{const U={};for(let G of Object.keys($)){const W=$[G];U[G]=Array.isArray(W)?W.join(","):W}return U},"getTransformedHeaders"),iw=N(($,U,G=0)=>{if(!G)return;const W=setTimeout(()=>{$.destroy(),U(Object.assign(new Error(`Socket timed out without establishing a connection within ${G} ms`),{name:"TimeoutError"}))},G);$.on("socket",(X)=>{if(X.connecting)X.on("connect",()=>{clearTimeout(W)});else clearTimeout(W)})},"setConnectionTimeout"),rw=N(($,{keepAlive:U,keepAliveMsecs:G})=>{if(U!==!0)return;$.on("socket",(W)=>{W.setKeepAlive(U,G||0)})},"setSocketKeepAlive"),ow=N(($,U,G=0)=>{$.setTimeout(G,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${G} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),Z6=import.meta.require("stream"),t4=1000;N(l$,"writeRequestBody");N(L6,"writeBody");var aw=0,Y6=class ${constructor(U){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((X)=>{G(this.resolveDefaultConfig(X))}).catch(W);else G(this.resolveDefaultConfig(U))})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}static checkSocketUsage(U,G,W=console){var X,Z,L;const{sockets:Y,requests:w,maxSockets:F}=U;if(typeof F!=="number"||F===Infinity)return G;const Q=15000;if(Date.now()-Q<G)return G;if(Y&&w)for(let z in Y){const I=((X=Y[z])==null?void 0:X.length)??0,J=((Z=w[z])==null?void 0:Z.length)??0;if(I>=F&&J>=2*F)return(L=W==null?void 0:W.warn)==null||L.call(W,`@smithy/node-http-handler:WARN - socket usage at capacity=${I} and ${J} additional requests are enqueued.
|
|
2
2
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return G}resolveDefaultConfig(U){const{requestTimeout:G,connectionTimeout:W,socketTimeout:X,httpAgent:Z,httpsAgent:L}=U||{};return{connectionTimeout:W,requestTimeout:G??X,httpAgent:(()=>{if(Z instanceof l$.Agent||typeof(Z==null?void 0:Z.destroy)==="function")return Z;return new l$.Agent({keepAlive:!0,maxSockets:50,...Z})})(),httpsAgent:(()=>{if(L instanceof s$.Agent||typeof(L==null?void 0:L.destroy)==="function")return L;return new s$.Agent({keepAlive:!0,maxSockets:50,...L})})(),logger:console}}destroy(){var U,G,W,X;(G=(U=this.config)==null?void 0:U.httpAgent)==null||G.destroy(),(X=(W=this.config)==null?void 0:W.httpsAgent)==null||X.destroy()}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;let W;return new Promise((X,Z)=>{let L=void 0;const Y=N(async(B)=>{await L,clearTimeout(W),X(B)},"resolve"),w=N(async(B)=>{await L,clearTimeout(W),Z(B)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(G==null?void 0:G.aborted){const B=new Error("Request aborted");B.name="AbortError",w(B);return}const F=U.protocol==="https:",Q=F?this.config.httpsAgent:this.config.httpAgent;W=setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(Q,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const z=W6.buildQueryString(U.query||{});let I=void 0;if(U.username!=null||U.password!=null){const B=U.username??"",H=U.password??"";I=`${B}:${H}`}let J=U.path;if(z)J+=`?${z}`;if(U.fragment)J+=`#${U.fragment}`;const K={headers:U.headers,host:U.hostname,method:U.method,path:J,port:U.port,agent:Q,auth:I},M=(F?s$.request:l$.request)(K,(B)=>{const H=new G6.HttpResponse({statusCode:B.statusCode||-1,reason:B.statusMessage,headers:X6(B.headers),body:B});Y({response:H})});if(M.on("error",(B)=>{if(rw.includes(B.code))w(Object.assign(B,{name:"TimeoutError"}));else w(B)}),ow(M,w,this.config.connectionTimeout),tw(M,w,this.config.requestTimeout),G){const B=N(()=>{M.destroy();const H=new Error("Request aborted");H.name="AbortError",w(H)},"onAbort");if(typeof G.addEventListener==="function"){const H=G;H.addEventListener("abort",B,{once:!0}),M.once("close",()=>H.removeEventListener("abort",B))}else G.onabort=B}const V=K.agent;if(typeof V==="object"&&"keepAlive"in V)aw(M,{keepAlive:V.keepAlive,keepAliveMsecs:V.keepAliveMsecs});L=m$(M,U,this.config.requestTimeout).catch((B)=>{return clearTimeout(W),Z(B)})})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:G}})}httpHandlerConfigs(){return this.config??{}}};N(Y6,"NodeHttpHandler");var $F=Y6,e4=import.meta.require("http2"),UF=nw(import.meta.require("http2")),w6=class ${constructor(U){this.sessions=[],this.sessions=U??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(U){this.sessions.push(U)}contains(U){return this.sessions.includes(U)}remove(U){this.sessions=this.sessions.filter((G)=>G!==U)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(U){for(let G of this.sessions)if(G===U){if(!G.destroyed)G.destroy()}}};N(w6,"NodeHttp2ConnectionPool");var GF=w6,F6=class ${constructor(U){if(this.sessionCache=new Map,this.config=U,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(U,G){const W=this.getUrlString(U),X=this.sessionCache.get(W);if(X){const w=X.poll();if(w&&!this.config.disableConcurrency)return w}const Z=UF.default.connect(W);if(this.config.maxConcurrency)Z.settings({maxConcurrentStreams:this.config.maxConcurrency},(w)=>{if(w)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+U.destination.toString())});Z.unref();const L=N(()=>{Z.destroy(),this.deleteSession(W,Z)},"destroySessionCb");if(Z.on("goaway",L),Z.on("error",L),Z.on("frameError",L),Z.on("close",()=>this.deleteSession(W,Z)),G.requestTimeout)Z.setTimeout(G.requestTimeout,L);const Y=this.sessionCache.get(W)||new GF;return Y.offerLast(Z),this.sessionCache.set(W,Y),Z}deleteSession(U,G){const W=this.sessionCache.get(U);if(!W)return;if(!W.contains(G))return;W.remove(G),this.sessionCache.set(U,W)}release(U,G){var W;const X=this.getUrlString(U);(W=this.sessionCache.get(X))==null||W.offerLast(G)}destroy(){for(let[U,G]of this.sessionCache){for(let W of G){if(!W.destroyed)W.destroy();G.remove(W)}this.sessionCache.delete(U)}}setMaxConcurrentStreams(U){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=U}setDisableConcurrentStreams(U){this.config.disableConcurrency=U}getUrlString(U){return U.destination.toString()}};N(F6,"NodeHttp2ConnectionManager");var WF=F6,Q6=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new WF({}),this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((X)=>{G(X||{})}).catch(W);else G(U||{})})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}destroy(){this.connectionManager.destroy()}async handle(U,{abortSignal:G}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:W,disableConcurrentStreams:X}=this.config;return new Promise((Z,L)=>{var Y;let w=!1,F=void 0;const Q=N(async(q)=>{await F,Z(q)},"resolve"),z=N(async(q)=>{await F,L(q)},"reject");if(G==null?void 0:G.aborted){w=!0;const q=new Error("Request aborted");q.name="AbortError",z(q);return}const{hostname:I,method:J,port:K,protocol:T,query:M}=U;let V="";if(U.username!=null||U.password!=null){const q=U.username??"",d=U.password??"";V=`${q}:${d}@`}const B=`${T}//${V}${I}${K?`:${K}`:""}`,H={destination:new URL(B)},A=this.connectionManager.lease(H,{requestTimeout:(Y=this.config)==null?void 0:Y.sessionTimeout,disableConcurrentStreams:X||!1}),D=N((q)=>{if(X)this.destroySession(A);w=!0,z(q)},"rejectWithDestroy"),e=W6.buildQueryString(M||{});let w0=U.path;if(e)w0+=`?${e}`;if(U.fragment)w0+=`#${U.fragment}`;const v=A.request({...U.headers,[e4.constants.HTTP2_HEADER_PATH]:w0,[e4.constants.HTTP2_HEADER_METHOD]:J});if(A.ref(),v.on("response",(q)=>{const d=new G6.HttpResponse({statusCode:q[":status"]||-1,headers:X6(q),body:v});if(w=!0,Q({response:d}),X)A.close(),this.connectionManager.deleteSession(B,A)}),W)v.setTimeout(W,()=>{v.close();const q=new Error(`Stream timed out because of no activity for ${W} ms`);q.name="TimeoutError",D(q)});if(G){const q=N(()=>{v.close();const d=new Error("Request aborted");d.name="AbortError",D(d)},"onAbort");if(typeof G.addEventListener==="function"){const d=G;d.addEventListener("abort",q,{once:!0}),v.once("close",()=>d.removeEventListener("abort",q))}else G.onabort=q}v.on("frameError",(q,d,xL)=>{D(new Error(`Frame type id ${q} in stream id ${xL} has failed with code ${d}.`))}),v.on("error",D),v.on("aborted",()=>{D(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${v.rstCode}.`))}),v.on("close",()=>{if(A.unref(),X)A.destroy();if(!w)D(new Error("Unexpected error: http2 request did not get a response"))}),F=m$(v,U,W)})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:G}})}httpHandlerConfigs(){return this.config??{}}destroySession(U){if(!U.destroyed)U.destroy()}};N(Q6,"NodeHttp2Handler");var XF=Q6,z6=class $ extends Z6.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,G,W){this.bufferedBytes.push(U),W()}};N(z6,"Collector");var ZF=z6,LF=N(($)=>{if(YF($))return I6($);return new Promise((U,G)=>{const W=new ZF;$.pipe(W),$.on("error",(X)=>{W.end(),G(X)}),W.on("error",G),W.on("finish",function(){const X=new Uint8Array(Buffer.concat(this.bufferedBytes));U(X)})})},"streamCollector"),YF=N(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");N(I6,"collectReadableStream")});var O6=E((PK,A6)=>{var M6=function($=0){return new Promise((U,G)=>{if($)setTimeout(()=>{const W=new Error(`Request did not complete within ${$} ms`);W.name="TimeoutError",G(W)},$)})};async function V6($){const U=await H6($),G=EF.fromBase64(U);return new Uint8Array(G)}async function T6($){const U=[],G=$.getReader();let W=!1,X=0;while(!W){const{done:Y,value:w}=await G.read();if(w)U.push(w),X+=w.length;W=Y}const Z=new Uint8Array(X);let L=0;for(let Y of U)Z.set(Y,L),L+=Y.length;return Z}var H6=function($){return new Promise((U,G)=>{const W=new FileReader;W.onloadend=()=>{if(W.readyState!==2)return G(new Error("Reader aborted too early"));const X=W.result??"",Z=X.indexOf(","),L=Z>-1?Z+1:X.length;U(X.substring(L))},W.onabort=()=>G(new Error("Read aborted")),W.onerror=()=>G(W.error),W.readAsDataURL($)})},P1=Object.defineProperty,wF=Object.getOwnPropertyDescriptor,FF=Object.getOwnPropertyNames,QF=Object.prototype.hasOwnProperty,o=($,U)=>P1($,"name",{value:U,configurable:!0}),zF=($,U)=>{for(var G in U)P1($,G,{get:U[G],enumerable:!0})},IF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of FF(U))if(!QF.call($,X)&&X!==G)P1($,X,{get:()=>U[X],enumerable:!(W=wF(U,X))||W.enumerable})}return $},JF=($)=>IF(P1({},"__esModule",{value:!0}),$),E6={};zF(E6,{FetchHttpHandler:()=>KF,keepAliveSupport:()=>j1,streamCollector:()=>MF});A6.exports=JF(E6);var K6=i(),RF=p$();o(M6,"requestTimeout");var j1={supported:void 0},B6=class ${static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}constructor(U){if(typeof U==="function")this.configProvider=U().then((G)=>G||{});else this.config=U??{},this.configProvider=Promise.resolve(this.config);if(j1.supported===void 0)j1.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;const W=this.config.requestTimeout,X=this.config.keepAlive===!0,Z=this.config.credentials;if(G==null?void 0:G.aborted){const V=new Error("Request aborted");return V.name="AbortError",Promise.reject(V)}let L=U.path;const Y=RF.buildQueryString(U.query||{});if(Y)L+=`?${Y}`;if(U.fragment)L+=`#${U.fragment}`;let w="";if(U.username!=null||U.password!=null){const V=U.username??"",B=U.password??"";w=`${V}:${B}@`}const{port:F,method:Q}=U,z=`${U.protocol}//${w}${U.hostname}${F?`:${F}`:""}${L}`,I=Q==="GET"||Q==="HEAD"?void 0:U.body,J={body:I,headers:new Headers(U.headers),method:Q,credentials:Z};if(I)J.duplex="half";if(typeof AbortController!=="undefined")J.signal=G;if(j1.supported)J.keepalive=X;let K=o(()=>{},"removeSignalEventListener");const T=new Request(z,J),M=[fetch(T).then((V)=>{const B=V.headers,H={};for(let D of B.entries())H[D[0]]=D[1];if(V.body==null)return V.blob().then((D)=>({response:new K6.HttpResponse({headers:H,reason:V.statusText,statusCode:V.status,body:D})}));return{response:new K6.HttpResponse({headers:H,reason:V.statusText,statusCode:V.status,body:V.body})}}),M6(W)];if(G)M.push(new Promise((V,B)=>{const H=o(()=>{const A=new Error("Request aborted");A.name="AbortError",B(A)},"onAbort");if(typeof G.addEventListener==="function"){const A=G;A.addEventListener("abort",H,{once:!0}),K=o(()=>A.removeEventListener("abort",H),"removeSignalEventListener")}else G.onabort=H}));return Promise.race(M).finally(K)}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return W[U]=G,W})}httpHandlerConfigs(){return this.config??{}}};o(B6,"FetchHttpHandler");var KF=B6,EF=f1(),MF=o(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return V6($);return T6($)},"streamCollector");o(V6,"collectBlob");o(T6,"collectStream");o(H6,"readToBase64")});var g0=E((C6)=>{Object.defineProperty(C6,"__esModule",{value:!0});C6.isReadableStream=void 0;var BF=($)=>{var U;return typeof ReadableStream==="function"&&(((U=$===null||$===void 0?void 0:$.constructor)===null||U===void 0?void 0:U.name)===ReadableStream.name||$ instanceof ReadableStream)};C6.isReadableStream=BF});var k6=E((S6)=>{Object.defineProperty(S6,"__esModule",{value:!0});S6.sdkStreamMixin=void 0;var VF=O6(),TF=f1(),HF=P6(),AF=G0(),q6=g0(),N6="The stream has already been transformed.",OF=($)=>{var U,G;if(!j6($)&&!q6.isReadableStream($)){const L=((G=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||G===void 0?void 0:G.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${L}`)}let W=!1;const X=async()=>{if(W)throw new Error(N6);return W=!0,await VF.streamCollector($)},Z=(L)=>{if(typeof L.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return L.stream()};return Object.assign($,{transformToByteArray:X,transformToString:async(L)=>{const Y=await X();if(L==="base64")return TF.toBase64(Y);else if(L==="hex")return HF.toHex(Y);else if(L===void 0||L==="utf8"||L==="utf-8")return AF.toUtf8(Y);else if(typeof TextDecoder==="function")return new TextDecoder(L).decode(Y);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(W)throw new Error(N6);if(W=!0,j6($))return Z($);else if(q6.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};S6.sdkStreamMixin=OF;var j6=($)=>typeof Blob==="function"&&$ instanceof Blob});var v6=E((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.sdkStreamMixin=void 0;var CF=R6(),fF=_0(),n$=import.meta.require("stream"),qF=import.meta.require("util"),NF=k6(),b6="The stream has already been transformed.",jF=($)=>{var U,G;if(!($ instanceof n$.Readable))try{return NF.sdkStreamMixin($)}catch(Z){const L=((G=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||G===void 0?void 0:G.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${L}`)}let W=!1;const X=async()=>{if(W)throw new Error(b6);return W=!0,await CF.streamCollector($)};return Object.assign($,{transformToByteArray:X,transformToString:async(Z)=>{const L=await X();if(Z===void 0||Buffer.isEncoding(Z))return fF.fromArrayBuffer(L.buffer,L.byteOffset,L.byteLength).toString(Z);else return new qF.TextDecoder(Z).decode(L)},transformToWebStream:()=>{if(W)throw new Error(b6);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof n$.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return W=!0,n$.Readable.toWeb($)}})};h6.sdkStreamMixin=jF});var u6=E((c6)=>{async function PF($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(c6,"__esModule",{value:!0});c6.splitStream=void 0;c6.splitStream=PF});var p6=E((d6)=>{async function kF($){if(DF.isReadableStream($))return SF.splitStream($);const U=new _6.PassThrough,G=new _6.PassThrough;return $.pipe(U),$.pipe(G),[U,G]}Object.defineProperty(d6,"__esModule",{value:!0});d6.splitStream=void 0;var _6=import.meta.require("stream"),SF=u6(),DF=g0();d6.splitStream=kF});var m6=E((l6)=>{async function bF($,U){var G;let W=0;const X=[],Z=$.getReader();let L=!1;while(!L){const{done:F,value:Q}=await Z.read();if(Q)X.push(Q),W+=(G=Q===null||Q===void 0?void 0:Q.byteLength)!==null&&G!==void 0?G:0;if(W>=U)break;L=F}Z.releaseLock();const Y=new Uint8Array(Math.min(U,W));let w=0;for(let F of X){if(F.byteLength>Y.byteLength-w){Y.set(F.subarray(0,Y.byteLength-w),w);break}else Y.set(F,w);w+=F.length}return Y}Object.defineProperty(l6,"__esModule",{value:!0});l6.headStream=void 0;l6.headStream=bF});var o6=E((i6)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.headStream=void 0;var hF=import.meta.require("stream"),xF=m6(),vF=g0(),cF=($,U)=>{if(vF.isReadableStream($))return xF.headStream($,U);return new Promise((G,W)=>{const X=new n6;X.limit=U,$.pipe(X),$.on("error",(Z)=>{X.end(),W(Z)}),X.on("error",W),X.on("finish",function(){const Z=new Uint8Array(Buffer.concat(this.buffers));G(Z)})})};i6.headStream=cF;class n6 extends hF.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write($,U,G){var W;if(this.buffers.push($),this.bytesBuffered+=(W=$.byteLength)!==null&&W!==void 0?W:0,this.bytesBuffered>=this.limit){const X=this.bytesBuffered-this.limit,Z=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=Z.subarray(0,Z.byteLength-X),this.emit("finish")}G()}}});var GW=E((cK,R0)=>{var e6=function($,U="utf-8"){if(U==="base64")return a6.toBase64($);return t6.toUtf8($)},$W=function($,U){if(U==="base64")return r$.mutate(a6.fromBase64($));return r$.mutate(t6.fromUtf8($))},S1=Object.defineProperty,yF=Object.getOwnPropertyDescriptor,uF=Object.getOwnPropertyNames,_F=Object.prototype.hasOwnProperty,o$=($,U)=>S1($,"name",{value:U,configurable:!0}),dF=($,U)=>{for(var G in U)S1($,G,{get:U[G],enumerable:!0})},i$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of uF(U))if(!_F.call($,X)&&X!==G)S1($,X,{get:()=>U[X],enumerable:!(W=yF(U,X))||W.enumerable})}return $},p0=($,U,G)=>(i$($,U,"default"),G&&i$(G,U,"default")),gF=($)=>i$(S1({},"__esModule",{value:!0}),$),J0={};dF(J0,{Uint8ArrayBlobAdapter:()=>r$});R0.exports=gF(J0);var a6=f1(),t6=G0();o$(e6,"transformToString");o$($W,"transformFromString");var UW=class $ extends Uint8Array{static fromString(U,G="utf-8"){switch(typeof U){case"string":return $W(U,G);default:throw new Error(`Unsupported conversion from ${typeof U} to Uint8ArrayBlobAdapter.`)}}static mutate(U){return Object.setPrototypeOf(U,$.prototype),U}transformToString(U="utf-8"){return e6(this,U)}};o$(UW,"Uint8ArrayBlobAdapter");var r$=UW;p0(J0,s4(),R0.exports);p0(J0,v6(),R0.exports);p0(J0,p6(),R0.exports);p0(J0,o6(),R0.exports);p0(J0,g0(),R0.exports)});var q0=E((yK,fW)=>{var EW=function($){const U=$.getUTCFullYear(),G=$.getUTCMonth(),W=$.getUTCDay(),X=$.getUTCDate(),Z=$.getUTCHours(),L=$.getUTCMinutes(),Y=$.getUTCSeconds(),w=X<10?`0${X}`:`${X}`,F=Z<10?`0${Z}`:`${Z}`,Q=L<10?`0${L}`:`${L}`,z=Y<10?`0${Y}`:`${Y}`;return`${EQ[W]}, ${w} ${YU[G]} ${U} ${F}:${Q}:${z} GMT`},b1=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})},wU=function($,U,G){let W,X,Z;if(typeof U==="undefined"&&typeof G==="undefined")W={},Z=$;else if(W=$,typeof U==="function")return X=U,Z=G,rQ(W,X,Z);else Z=U;for(let L of Object.keys(Z)){if(!Array.isArray(Z[L])){W[L]=Z[L];continue}OW(W,null,Z,L)}return W},CW=function($,U,G){if(G<=0||!Number.isInteger(G))throw new Error("Invalid number of delimiters ("+G+") for splitEvery.");const W=$.split(U);if(G===1)return W;const X=[];let Z="";for(let L=0;L<W.length;L++){if(Z==="")Z=W[L];else Z+=U+W[L];if((L+1)%G===0)X.push(Z),Z=""}if(Z!=="")X.push(Z);return X},h1=Object.defineProperty,pF=Object.getOwnPropertyDescriptor,lF=Object.getOwnPropertyNames,sF=Object.prototype.hasOwnProperty,R=($,U)=>h1($,"name",{value:U,configurable:!0}),mF=($,U)=>{for(var G in U)h1($,G,{get:U[G],enumerable:!0})},nF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of lF(U))if(!sF.call($,X)&&X!==G)h1($,X,{get:()=>U[X],enumerable:!(W=pF(U,X))||W.enumerable})}return $},iF=($)=>nF(h1({},"__esModule",{value:!0}),$),XW={};mF(XW,{Client:()=>oF,Command:()=>FW,LazyJsonString:()=>mQ,NoOpLogger:()=>rF,SENSITIVE_STRING:()=>eF,ServiceException:()=>hQ,StringWrapper:()=>i0,_json:()=>WU,collectBody:()=>aF,convertMap:()=>nQ,createAggregatedClient:()=>$Q,dateToUtcString:()=>EW,decorateServiceException:()=>BW,emitWarningIfUnsupportedVersion:()=>yQ,expectBoolean:()=>GQ,expectByte:()=>GU,expectFloat32:()=>D1,expectInt:()=>XQ,expectInt32:()=>$U,expectLong:()=>m0,expectNonNull:()=>LQ,expectNumber:()=>s0,expectObject:()=>zW,expectShort:()=>UU,expectString:()=>YQ,expectUnion:()=>wQ,extendedEncodeURIComponent:()=>b1,getArrayIfSingleItem:()=>sQ,getDefaultClientConfiguration:()=>pQ,getDefaultExtensionConfiguration:()=>TW,getValueFromTextNode:()=>HW,handleFloat:()=>zQ,limitedParseDouble:()=>LU,limitedParseFloat:()=>IQ,limitedParseFloat32:()=>JQ,loadConfigsForDefaultMode:()=>cQ,logger:()=>n0,map:()=>wU,parseBoolean:()=>UQ,parseEpochTimestamp:()=>fQ,parseRfc3339DateTime:()=>BQ,parseRfc3339DateTimeWithOffset:()=>TQ,parseRfc7231DateTime:()=>CQ,resolveDefaultRuntimeConfig:()=>lQ,resolvedPath:()=>tQ,serializeDateTime:()=>$7,serializeFloat:()=>eQ,splitEvery:()=>CW,strictParseByte:()=>KW,strictParseDouble:()=>ZU,strictParseFloat:()=>FQ,strictParseFloat32:()=>IW,strictParseInt:()=>RQ,strictParseInt32:()=>KQ,strictParseLong:()=>RW,strictParseShort:()=>O0,take:()=>iQ,throwDefaultError:()=>VW,withBaseException:()=>xQ});fW.exports=iF(XW);var ZW=class ${trace(){}debug(){}info(){}warn(){}error(){}};R(ZW,"NoOpLogger");var rF=ZW,LW=f4(),YW=class ${constructor(U){this.middlewareStack=LW.constructStack(),this.config=U}send(U,G,W){const X=typeof G!=="function"?G:void 0,Z=typeof G==="function"?G:W,L=U.resolveMiddleware(this.middlewareStack,this.config,X);if(Z)L(U).then((Y)=>Z(null,Y.output),(Y)=>Z(Y)).catch(()=>{});else return L(U).then((Y)=>Y.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};R(YW,"Client");var oF=YW,a$=GW(),aF=R(async($=new Uint8Array,U)=>{if($ instanceof Uint8Array)return a$.Uint8ArrayBlobAdapter.mutate($);if(!$)return a$.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const G=U.streamCollector($);return a$.Uint8ArrayBlobAdapter.mutate(await G)},"collectBody"),e$=F0(),wW=class ${constructor(){this.middlewareStack=LW.constructStack()}static classBuilder(){return new tF}resolveMiddlewareWithContext(U,G,W,{middlewareFn:X,clientName:Z,commandName:L,inputFilterSensitiveLog:Y,outputFilterSensitiveLog:w,smithyContext:F,additionalContext:Q,CommandCtor:z}){for(let M of X.bind(this)(z,U,G,W))this.middlewareStack.use(M);const I=U.concat(this.middlewareStack),{logger:J}=G,K={logger:J,clientName:Z,commandName:L,inputFilterSensitiveLog:Y,outputFilterSensitiveLog:w,[e$.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...Q},{requestHandler:T}=G;return I.resolve((M)=>T.handle(M.request,W||{}),K)}};R(wW,"Command");var FW=wW,QW=class ${constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(U)=>U,this._outputFilterSensitiveLog=(U)=>U,this._serializer=null,this._deserializer=null}init(U){this._init=U}ep(U){return this._ep=U,this}m(U){return this._middlewareFn=U,this}s(U,G,W={}){return this._smithyContext={service:U,operation:G,...W},this}c(U={}){return this._additionalContext=U,this}n(U,G){return this._clientName=U,this._commandName=G,this}f(U=(W)=>W,G=(W)=>W){return this._inputFilterSensitiveLog=U,this._outputFilterSensitiveLog=G,this}ser(U){return this._serializer=U,this}de(U){return this._deserializer=U,this}build(){var U;const G=this;let W;return W=(U=class extends FW{constructor(...[X]){super();this.serialize=G._serializer,this.deserialize=G._deserializer,this.input=X??{},G._init(this)}static getEndpointParameterInstructions(){return G._ep}resolveMiddleware(X,Z,L){return this.resolveMiddlewareWithContext(X,Z,L,{CommandCtor:W,middlewareFn:G._middlewareFn,clientName:G._clientName,commandName:G._commandName,inputFilterSensitiveLog:G._inputFilterSensitiveLog,outputFilterSensitiveLog:G._outputFilterSensitiveLog,smithyContext:G._smithyContext,additionalContext:G._additionalContext})}},R(U,"CommandRef"),U)}};R(QW,"ClassBuilder");var tF=QW,eF="***SensitiveInformation***",$Q=R(($,U)=>{for(let G of Object.keys($)){const W=$[G],X=R(async function(L,Y,w){const F=new W(L);if(typeof Y==="function")this.send(F,Y);else if(typeof w==="function"){if(typeof Y!=="object")throw new Error(`Expected http options but got ${typeof Y}`);this.send(F,Y||{},w)}else return this.send(F,Y)},"methodImpl"),Z=(G[0].toLowerCase()+G.slice(1)).replace(/Command$/,"");U.prototype[Z]=X}},"createAggregatedClient"),UQ=R(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),GQ=R(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)n0.warn(k1(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const U=$.toLowerCase();if(U==="false"||U==="true")n0.warn(k1(`Expected boolean, got ${typeof $}: ${$}`));if(U==="false")return!1;if(U==="true")return!0}if(typeof $==="boolean")return $;throw new TypeError(`Expected boolean, got ${typeof $}: ${$}`)},"expectBoolean"),s0=R(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))n0.warn(k1(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),WQ=Math.ceil(340282346638528860000000000000000000000),D1=R(($)=>{const U=s0($);if(U!==void 0&&!Number.isNaN(U)&&U!==Infinity&&U!==(-Infinity)){if(Math.abs(U)>WQ)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),m0=R(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),XQ=m0,$U=R(($)=>XU($,32),"expectInt32"),UU=R(($)=>XU($,16),"expectShort"),GU=R(($)=>XU($,8),"expectByte"),XU=R(($,U)=>{const G=m0($);if(G!==void 0&&ZQ(G,U)!==G)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return G},"expectSizedInt"),ZQ=R(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),LQ=R(($,U)=>{if($===null||$===void 0){if(U)throw new TypeError(`Expected a non-null value for ${U}`);throw new TypeError("Expected a non-null value")}return $},"expectNonNull"),zW=R(($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;const U=Array.isArray($)?"array":typeof $;throw new TypeError(`Expected object, got ${U}: ${$}`)},"expectObject"),YQ=R(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return n0.warn(k1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),wQ=R(($)=>{if($===null||$===void 0)return;const U=zW($),G=Object.entries(U).filter(([,W])=>W!=null).map(([W])=>W);if(G.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(G.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${G} were not null.`);return U},"expectUnion"),ZU=R(($)=>{if(typeof $=="string")return s0(f0($));return s0($)},"strictParseDouble"),FQ=ZU,IW=R(($)=>{if(typeof $=="string")return D1(f0($));return D1($)},"strictParseFloat32"),QQ=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,f0=R(($)=>{const U=$.match(QQ);if(U===null||U[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),LU=R(($)=>{if(typeof $=="string")return JW($);return s0($)},"limitedParseDouble"),zQ=LU,IQ=LU,JQ=R(($)=>{if(typeof $=="string")return JW($);return D1($)},"limitedParseFloat32"),JW=R(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),RW=R(($)=>{if(typeof $==="string")return m0(f0($));return m0($)},"strictParseLong"),RQ=RW,KQ=R(($)=>{if(typeof $==="string")return $U(f0($));return $U($)},"strictParseInt32"),O0=R(($)=>{if(typeof $==="string")return UU(f0($));return UU($)},"strictParseShort"),KW=R(($)=>{if(typeof $==="string")return GU(f0($));return GU($)},"strictParseByte"),k1=R(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),n0={warn:console.warn},EQ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],YU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];R(EW,"dateToUtcString");var MQ=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),BQ=R(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=MQ.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,W,X,Z,L,Y,w,F]=U,Q=O0(C0(W)),z=m(X,"month",1,12),I=m(Z,"day",1,31);return l0(Q,z,I,{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F})},"parseRfc3339DateTime"),VQ=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),TQ=R(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=VQ.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,W,X,Z,L,Y,w,F,Q]=U,z=O0(C0(W)),I=m(X,"month",1,12),J=m(Z,"day",1,31),K=l0(z,I,J,{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F});if(Q.toUpperCase()!="Z")K.setTime(K.getTime()-bQ(Q));return K},"parseRfc3339DateTimeWithOffset"),HQ=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),AQ=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),OQ=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),CQ=R(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=HQ.exec($);if(U){const[G,W,X,Z,L,Y,w,F]=U;return l0(O0(C0(Z)),t$(X),m(W,"day",1,31),{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F})}if(U=AQ.exec($),U){const[G,W,X,Z,L,Y,w,F]=U;return jQ(l0(qQ(Z),t$(X),m(W,"day",1,31),{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F}))}if(U=OQ.exec($),U){const[G,W,X,Z,L,Y,w,F]=U;return l0(O0(C0(F)),t$(W),m(X.trimLeft(),"day",1,31),{hours:Z,minutes:L,seconds:Y,fractionalMilliseconds:w})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),fQ=R(($)=>{if($===null||$===void 0)return;let U;if(typeof $==="number")U=$;else if(typeof $==="string")U=ZU($);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(U)||U===Infinity||U===(-Infinity))throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(U*1000))},"parseEpochTimestamp"),l0=R(($,U,G,W)=>{const X=U-1;return SQ($,X,G),new Date(Date.UTC($,X,G,m(W.hours,"hour",0,23),m(W.minutes,"minute",0,59),m(W.seconds,"seconds",0,60),kQ(W.fractionalMilliseconds)))},"buildDate"),qQ=R(($)=>{const U=(new Date()).getUTCFullYear(),G=Math.floor(U/100)*100+O0(C0($));if(G<U)return G+100;return G},"parseTwoDigitYear"),NQ=1576800000000,jQ=R(($)=>{if($.getTime()-(new Date()).getTime()>NQ)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),t$=R(($)=>{const U=YU.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),PQ=[31,28,31,30,31,30,31,31,30,31,30,31],SQ=R(($,U,G)=>{let W=PQ[U];if(U===1&&DQ($))W=29;if(G>W)throw new TypeError(`Invalid day for ${YU[U]} in ${$}: ${G}`)},"validateDayOfMonth"),DQ=R(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),m=R(($,U,G,W)=>{const X=KW(C0($));if(X<G||X>W)throw new TypeError(`${U} must be between ${G} and ${W}, inclusive`);return X},"parseDateValue"),kQ=R(($)=>{if($===null||$===void 0)return 0;return IW("0."+$)*1000},"parseMilliseconds"),bQ=R(($)=>{const U=$[0];let G=1;if(U=="+")G=1;else if(U=="-")G=-1;else throw new TypeError(`Offset direction, ${U}, must be "+" or "-"`);const W=Number($.substring(1,3)),X=Number($.substring(4,6));return G*(W*60+X)*60*1000},"parseOffsetToMilliseconds"),C0=R(($)=>{let U=0;while(U<$.length-1&&$.charAt(U)==="0")U++;if(U===0)return $;return $.slice(U)},"stripLeadingZeroes"),MW=class $ extends Error{constructor(U){super(U.message);Object.setPrototypeOf(this,$.prototype),this.name=U.name,this.$fault=U.$fault,this.$metadata=U.$metadata}};R(MW,"ServiceException");var hQ=MW,BW=R(($,U={})=>{Object.entries(U).filter(([,W])=>W!==void 0).forEach(([W,X])=>{if($[W]==null||$[W]==="")$[W]=X});const G=$.message||$.Message||"UnknownError";return $.message=G,delete $.Message,$},"decorateServiceException"),VW=R(({output:$,parsedBody:U,exceptionCtor:G,errorCode:W})=>{const X=vQ($),Z=X.httpStatusCode?X.httpStatusCode+"":void 0,L=new G({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||W||Z||"UnknownError",$fault:"client",$metadata:X});throw BW(L,U)},"throwDefaultError"),xQ=R(($)=>{return({output:U,parsedBody:G,errorCode:W})=>{VW({output:U,parsedBody:G,exceptionCtor:$,errorCode:W})}},"withBaseException"),vQ=R(($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),"deserializeMetadata"),cQ=R(($)=>{switch($){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},"loadConfigsForDefaultMode"),WW=!1,yQ=R(($)=>{if($&&!WW&&parseInt($.substring(1,$.indexOf(".")))<16)WW=!0},"emitWarningIfUnsupportedVersion"),uQ=R(($)=>{const U=[];for(let G in e$.AlgorithmId){const W=e$.AlgorithmId[G];if($[W]===void 0)continue;U.push({algorithmId:()=>W,checksumConstructor:()=>$[W]})}return{_checksumAlgorithms:U,addChecksumAlgorithm(G){this._checksumAlgorithms.push(G)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),_Q=R(($)=>{const U={};return $.checksumAlgorithms().forEach((G)=>{U[G.algorithmId()]=G.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),dQ=R(($)=>{let U=$.retryStrategy;return{setRetryStrategy(G){U=G},retryStrategy(){return U}}},"getRetryConfiguration"),gQ=R(($)=>{const U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),TW=R(($)=>{return{...uQ($),...dQ($)}},"getDefaultExtensionConfiguration"),pQ=TW,lQ=R(($)=>{return{..._Q($),...gQ($)}},"resolveDefaultRuntimeConfig");R(b1,"extendedEncodeURIComponent");var sQ=R(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),HW=R(($)=>{for(let G in $)if($.hasOwnProperty(G)&&$[G]["#text"]!==void 0)$[G]=$[G]["#text"];else if(typeof $[G]==="object"&&$[G]!==null)$[G]=HW($[G]);return $},"getValueFromTextNode"),i0=R(function(){const $=Object.getPrototypeOf(this).constructor,G=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(G,$.prototype),G},"StringWrapper");i0.prototype=Object.create(String.prototype,{constructor:{value:i0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(i0,String);var AW=class $ extends i0{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(U){if(U instanceof $)return U;else if(U instanceof String||typeof U==="string")return new $(U);return new $(JSON.stringify(U))}};R(AW,"LazyJsonString");var mQ=AW;R(wU,"map");var nQ=R(($)=>{const U={};for(let[G,W]of Object.entries($||{}))U[G]=[,W];return U},"convertMap"),iQ=R(($,U)=>{const G={};for(let W in U)OW(G,$,U,W);return G},"take"),rQ=R(($,U,G)=>{return wU($,Object.entries(G).reduce((W,[X,Z])=>{if(Array.isArray(Z))W[X]=Z;else if(typeof Z==="function")W[X]=[U,Z()];else W[X]=[U,Z];return W},{}))},"mapWithFilter"),OW=R(($,U,G,W)=>{if(U!==null){let L=G[W];if(typeof L==="function")L=[,L];const[Y=oQ,w=aQ,F=W]=L;if(typeof Y==="function"&&Y(U[F])||typeof Y!=="function"&&!!Y)$[W]=w(U[F]);return}let[X,Z]=G[W];if(typeof Z==="function"){let L;const Y=X===void 0&&(L=Z())!=null,w=typeof X==="function"&&!!X(void 0)||typeof X!=="function"&&!!X;if(Y)$[W]=L;else if(w)$[W]=Z()}else{const L=X===void 0&&Z!=null,Y=typeof X==="function"&&!!X(Z)||typeof X!=="function"&&!!X;if(L||Y)$[W]=Z}},"applyInstruction"),oQ=R(($)=>$!=null,"nonNullish"),aQ=R(($)=>$,"pass"),tQ=R(($,U,G,W,X,Z)=>{if(U!=null&&U[G]!==void 0){const L=W();if(L.length<=0)throw new Error("Empty value provided for input HTTP label: "+G+".");$=$.replace(X,Z?L.split("/").map((Y)=>b1(Y)).join("/"):b1(L))}else throw new Error("No value provided for input HTTP label: "+G+".");return $},"resolvedPath"),eQ=R(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),$7=R(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),WU=R(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((U)=>U!=null).map(WU);if(typeof $==="object"){const U={};for(let G of Object.keys($)){if($[G]==null)continue;U[G]=WU($[G])}return U}return $},"_json");R(CW,"splitEvery")});var jW=E((qW)=>{Object.defineProperty(qW,"__esModule",{value:!0});qW.isStreamingPayload=void 0;var U7=import.meta.require("stream"),G7=($)=>($===null||$===void 0?void 0:$.body)instanceof U7.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;qW.isStreamingPayload=G7});var mW=E((dK,sW)=>{var{defineProperty:x1,getOwnPropertyDescriptor:W7,getOwnPropertyNames:X7}=Object,Z7=Object.prototype.hasOwnProperty,P=($,U)=>x1($,"name",{value:U,configurable:!0}),L7=($,U)=>{for(var G in U)x1($,G,{get:U[G],enumerable:!0})},Y7=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of X7(U))if(!Z7.call($,X)&&X!==G)x1($,X,{get:()=>U[X],enumerable:!(W=W7(U,X))||W.enumerable})}return $},w7=($)=>Y7(x1({},"__esModule",{value:!0}),$),SW={};L7(SW,{AdaptiveRetryStrategy:()=>z7,CONFIG_MAX_ATTEMPTS:()=>QU,CONFIG_RETRY_MODE:()=>uW,ENV_MAX_ATTEMPTS:()=>FU,ENV_RETRY_MODE:()=>yW,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>I7,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>R7,StandardRetryStrategy:()=>vW,defaultDelayDecider:()=>kW,defaultRetryDecider:()=>bW,getOmitRetryHeadersPlugin:()=>K7,getRetryAfterHint:()=>lW,getRetryPlugin:()=>H7,omitRetryHeadersMiddleware:()=>_W,omitRetryHeadersMiddlewareOptions:()=>dW,resolveRetryConfig:()=>J7,retryMiddleware:()=>gW,retryMiddlewareOptions:()=>pW});sW.exports=w7(SW);var N0=i(),DW=j$(),f=T4(),F7=P(($,U)=>{const G=$,W=(U==null?void 0:U.noRetryIncrement)??f.NO_RETRY_INCREMENT,X=(U==null?void 0:U.retryCost)??f.RETRY_COST,Z=(U==null?void 0:U.timeoutRetryCost)??f.TIMEOUT_RETRY_COST;let L=$;const Y=P((z)=>z.name==="TimeoutError"?Z:X,"getCapacityAmount"),w=P((z)=>Y(z)<=L,"hasRetryTokens");return Object.freeze({hasRetryTokens:w,retrieveRetryTokens:P((z)=>{if(!w(z))throw new Error("No retry token available");const I=Y(z);return L-=I,I},"retrieveRetryTokens"),releaseRetryTokens:P((z)=>{L+=z??W,L=Math.min(L,G)},"releaseRetryTokens")})},"getDefaultRetryQuota"),kW=P(($,U)=>Math.floor(Math.min(f.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),W0=P$(),bW=P(($)=>{if(!$)return!1;return W0.isRetryableByTrait($)||W0.isClockSkewError($)||W0.isThrottlingError($)||W0.isTransientError($)},"defaultRetryDecider"),hW=P(($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)},"asSdkError"),xW=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode=f.RETRY_MODES.STANDARD,this.retryDecider=(G==null?void 0:G.retryDecider)??bW,this.delayDecider=(G==null?void 0:G.delayDecider)??kW,this.retryQuota=(G==null?void 0:G.retryQuota)??F7(f.INITIAL_RETRY_TOKENS)}shouldRetry(U,G,W){return G<W&&this.retryDecider(U)&&this.retryQuota.hasRetryTokens(U)}async getMaxAttempts(){let U;try{U=await this.maxAttemptsProvider()}catch(G){U=f.DEFAULT_MAX_ATTEMPTS}return U}async retry(U,G,W){let X,Z=0,L=0;const Y=await this.getMaxAttempts(),{request:w}=G;if(N0.HttpRequest.isInstance(w))w.headers[f.INVOCATION_ID_HEADER]=DW.v4();while(!0)try{if(N0.HttpRequest.isInstance(w))w.headers[f.REQUEST_HEADER]=`attempt=${Z+1}; max=${Y}`;if(W==null?void 0:W.beforeRequest)await W.beforeRequest();const{response:F,output:Q}=await U(G);if(W==null?void 0:W.afterRequest)W.afterRequest(F);return this.retryQuota.releaseRetryTokens(X),Q.$metadata.attempts=Z+1,Q.$metadata.totalRetryDelay=L,{response:F,output:Q}}catch(F){const Q=hW(F);if(Z++,this.shouldRetry(Q,Z,Y)){X=this.retryQuota.retrieveRetryTokens(Q);const z=this.delayDecider(W0.isThrottlingError(Q)?f.THROTTLING_RETRY_DELAY_BASE:f.DEFAULT_RETRY_DELAY_BASE,Z),I=Q7(Q.$response),J=Math.max(I||0,z);L+=J,await new Promise((K)=>setTimeout(K,J));continue}if(!Q.$metadata)Q.$metadata={};throw Q.$metadata.attempts=Z,Q.$metadata.totalRetryDelay=L,Q}}};P(xW,"StandardRetryStrategy");var vW=xW,Q7=P(($)=>{if(!N0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return W*1000;return new Date(G).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),cW=class $ extends vW{constructor(U,G){const{rateLimiter:W,...X}=G??{};super(U,X);this.rateLimiter=W??new f.DefaultRateLimiter,this.mode=f.RETRY_MODES.ADAPTIVE}async retry(U,G){return super.retry(U,G,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(W)=>{this.rateLimiter.updateClientSendingRate(W)}})}};P(cW,"AdaptiveRetryStrategy");var z7=cW,PW=b0(),FU="AWS_MAX_ATTEMPTS",QU="max_attempts",I7={environmentVariableSelector:($)=>{const U=$[FU];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${FU} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[QU];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${QU} mast be a number, got "${U}"`);return G},default:f.DEFAULT_MAX_ATTEMPTS},J7=P(($)=>{const{retryStrategy:U}=$,G=PW.normalizeProvider($.maxAttempts??f.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await PW.normalizeProvider($.retryMode)()===f.RETRY_MODES.ADAPTIVE)return new f.AdaptiveRetryStrategy(G);return new f.StandardRetryStrategy(G)}}},"resolveRetryConfig"),yW="AWS_RETRY_MODE",uW="retry_mode",R7={environmentVariableSelector:($)=>$[yW],configFileSelector:($)=>$[uW],default:f.DEFAULT_RETRY_MODE},_W=P(()=>($)=>async(U)=>{const{request:G}=U;if(N0.HttpRequest.isInstance(G))delete G.headers[f.INVOCATION_ID_HEADER],delete G.headers[f.REQUEST_HEADER];return $(U)},"omitRetryHeadersMiddleware"),dW={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},K7=P(($)=>({applyToStack:(U)=>{U.addRelativeTo(_W(),dW)}}),"getOmitRetryHeadersPlugin"),E7=q0(),M7=jW(),gW=P(($)=>(U,G)=>async(W)=>{var X;let Z=await $.retryStrategy();const L=await $.maxAttempts();if(B7(Z)){Z=Z;let Y=await Z.acquireInitialRetryToken(G.partition_id),w=new Error,F=0,Q=0;const{request:z}=W,I=N0.HttpRequest.isInstance(z);if(I)z.headers[f.INVOCATION_ID_HEADER]=DW.v4();while(!0)try{if(I)z.headers[f.REQUEST_HEADER]=`attempt=${F+1}; max=${L}`;const{response:J,output:K}=await U(W);return Z.recordSuccess(Y),K.$metadata.attempts=F+1,K.$metadata.totalRetryDelay=Q,{response:J,output:K}}catch(J){const K=V7(J);if(w=hW(J),I&&M7.isStreamingPayload(z))throw(X=G.logger instanceof E7.NoOpLogger?console:G.logger)==null||X.warn("An error was encountered in a non-retryable streaming request."),w;try{Y=await Z.refreshRetryTokenForRetry(Y,K)}catch(M){if(!w.$metadata)w.$metadata={};throw w.$metadata.attempts=F+1,w.$metadata.totalRetryDelay=Q,w}F=Y.getRetryCount();const T=Y.getRetryDelay();Q+=T,await new Promise((M)=>setTimeout(M,T))}}else{if(Z=Z,Z==null?void 0:Z.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",Z.mode]];return Z.retry(U,W)}},"retryMiddleware"),B7=P(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),V7=P(($)=>{const U={error:$,errorType:T7($)},G=lW($.$response);if(G)U.retryAfterHint=G;return U},"getRetryErrorInfo"),T7=P(($)=>{if(W0.isThrottlingError($))return"THROTTLING";if(W0.isTransientError($))return"TRANSIENT";if(W0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),pW={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},H7=P(($)=>({applyToStack:(U)=>{U.add(gW($),pW)}}),"getRetryPlugin"),lW=P(($)=>{if(!N0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return new Date(W*1000);return new Date(G)},"getRetryAfterHint")});var IU=E((gK,zX)=>{var rW=function($){const U=new Map;for(let G of $)U.set(G.schemeId,G);return U},YX=function($,U){return new FX($,U)},QX=function($,U,G,W,X){return C(async function*Z(L,Y,...w){let F=L.startingToken||void 0,Q=!0,z;while(Q){if(Y[G]=F,X)Y[X]=Y[X]??L.pageSize;if(L.client instanceof $)z=await s7(U,L.client,Y,...w);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield z;const I=F;F=m7(z,W),Q=!!(F&&(!L.stopOnSameToken||F!==I))}return},"paginateOperation")},c1=Object.defineProperty,A7=Object.getOwnPropertyDescriptor,O7=Object.getOwnPropertyNames,C7=Object.prototype.hasOwnProperty,C=($,U)=>c1($,"name",{value:U,configurable:!0}),f7=($,U)=>{for(var G in U)c1($,G,{get:U[G],enumerable:!0})},q7=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of O7(U))if(!C7.call($,X)&&X!==G)c1($,X,{get:()=>U[X],enumerable:!(W=A7(U,X))||W.enumerable})}return $},N7=($)=>q7(c1({},"__esModule",{value:!0}),$),nW={};f7(nW,{DefaultIdentityProviderConfig:()=>v7,EXPIRATION_MS:()=>ZX,HttpApiKeyAuthSigner:()=>c7,HttpBearerAuthSigner:()=>y7,NoAuthSigner:()=>u7,RequestBuilder:()=>FX,createIsIdentityExpiredFunction:()=>XX,createPaginator:()=>QX,doesIdentityRequireRefresh:()=>LX,getHttpAuthSchemeEndpointRuleSetPlugin:()=>P7,getHttpAuthSchemePlugin:()=>D7,getHttpSigningPlugin:()=>x7,getSmithyContext:()=>g7,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>oW,httpAuthSchemeMiddleware:()=>zU,httpAuthSchemeMiddlewareOptions:()=>aW,httpSigningMiddleware:()=>tW,httpSigningMiddlewareOptions:()=>eW,isIdentityExpired:()=>_7,memoizeIdentityProvider:()=>d7,normalizeProvider:()=>p7,requestBuilder:()=>YX});zX.exports=N7(nW);var iW=b0();C(rW,"convertHttpAuthSchemesToMap");var zU=C(($,U)=>(G,W)=>async(X)=>{var Z;const L=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,W,X.input)),Y=rW($.httpAuthSchemes),w=iW.getSmithyContext(W),F=[];for(let Q of L){const z=Y.get(Q.schemeId);if(!z){F.push(`HttpAuthScheme \`${Q.schemeId}\` was not enabled for this service.`);continue}const I=z.identityProvider(await U.identityProviderConfigProvider($));if(!I){F.push(`HttpAuthScheme \`${Q.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:J={},signingProperties:K={}}=((Z=Q.propertiesExtractor)==null?void 0:Z.call(Q,$,W))||{};Q.identityProperties=Object.assign(Q.identityProperties||{},J),Q.signingProperties=Object.assign(Q.signingProperties||{},K),w.selectedHttpAuthScheme={httpAuthOption:Q,identity:await I(Q.identityProperties),signer:z.signer};break}if(!w.selectedHttpAuthScheme)throw new Error(F.join("\n"));return G(X)},"httpAuthSchemeMiddleware"),j7=$8(),oW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:j7.endpointMiddlewareOptions.name},P7=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(zU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),oW)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),S7=T$(),aW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:S7.serializerMiddlewareOption.name},D7=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(zU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),aW)}}),"getHttpAuthSchemePlugin"),y1=i(),k7=C(($)=>(U)=>{throw U},"defaultErrorHandler"),b7=C(($,U)=>{},"defaultSuccessHandler"),tW=C(($)=>(U,G)=>async(W)=>{if(!y1.HttpRequest.isInstance(W.request))return U(W);const Z=iW.getSmithyContext(G).selectedHttpAuthScheme;if(!Z)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:L={}},identity:Y,signer:w}=Z,F=await U({...W,request:await w.sign(W.request,Y,L)}).catch((w.errorHandler||k7)(L));return(w.successHandler||b7)(F.response,L),F},"httpSigningMiddleware"),h7=mW(),eW={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:h7.retryMiddlewareOptions.name},x7=C(($)=>({applyToStack:(U)=>{U.addRelativeTo(tW($),eW)}}),"getHttpSigningPlugin"),$X=class ${constructor(U){this.authSchemes=new Map;for(let[G,W]of Object.entries(U))if(W!==void 0)this.authSchemes.set(G,W)}getIdentityProvider(U){return this.authSchemes.get(U)}};C($X,"DefaultIdentityProviderConfig");var v7=$X,v1=F0(),UX=class ${async sign(U,G,W){if(!W)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!W.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!W.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!G.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const X=y1.HttpRequest.clone(U);if(W.in===v1.HttpApiKeyAuthLocation.QUERY)X.query[W.name]=G.apiKey;else if(W.in===v1.HttpApiKeyAuthLocation.HEADER)X.headers[W.name]=W.scheme?`${W.scheme} ${G.apiKey}`:G.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+W.in+"`");return X}};C(UX,"HttpApiKeyAuthSigner");var c7=UX,GX=class ${async sign(U,G,W){const X=y1.HttpRequest.clone(U);if(!G.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return X.headers.Authorization=`Bearer ${G.token}`,X}};C(GX,"HttpBearerAuthSigner");var y7=GX,WX=class ${async sign(U,G,W){return U}};C(WX,"NoAuthSigner");var u7=WX,XX=C(($)=>(U)=>LX(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),ZX=300000,_7=XX(ZX),LX=C(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),d7=C(($,U,G)=>{if($===void 0)return;const W=typeof $!=="function"?async()=>Promise.resolve($):$;let X,Z,L,Y=!1;const w=C(async(F)=>{if(!Z)Z=W(F);try{X=await Z,L=!0,Y=!1}finally{Z=void 0}return X},"coalesceProvider");if(U===void 0)return async(F)=>{if(!L||(F==null?void 0:F.forceRefresh))X=await w(F);return X};return async(F)=>{if(!L||(F==null?void 0:F.forceRefresh))X=await w(F);if(Y)return X;if(!G(X))return Y=!0,X;if(U(X))return await w(F),X;return X}},"memoizeIdentityProvider"),g7=C(($)=>$[v1.SMITHY_CONTEXT_KEY]||($[v1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),p7=C(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider"),l7=q0();C(YX,"requestBuilder");var wX=class ${constructor(U,G){this.input=U,this.context=G,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:U,protocol:G="https",port:W,path:X}=await this.context.endpoint();this.path=X;for(let Z of this.resolvePathStack)Z(this.path);return new y1.HttpRequest({protocol:G,hostname:this.hostname||U,port:W,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(U){return this.hostname=U,this}bp(U){return this.resolvePathStack.push((G)=>{this.path=`${(G==null?void 0:G.endsWith("/"))?G.slice(0,-1):G||""}`+U}),this}p(U,G,W,X){return this.resolvePathStack.push((Z)=>{this.path=l7.resolvedPath(Z,this.input,U,G,W,X)}),this}h(U){return this.headers=U,this}q(U){return this.query=U,this}b(U){return this.body=U,this}m(U){return this.method=U,this}};C(wX,"RequestBuilder");var FX=wX,s7=C(async($,U,G,...W)=>{return await U.send(new $(G),...W)},"makePagedClientRequest");C(QX,"createPaginator");var m7=C(($,U)=>{let G=$;const W=U.split(".");for(let X of W){if(!G||typeof G!=="object")return;G=G[X]}return G},"get")});var wZ=E((EH,YZ)=>{var{defineProperty:$$,getOwnPropertyDescriptor:qz,getOwnPropertyNames:Nz}=Object,jz=Object.prototype.hasOwnProperty,Pz=($,U)=>$$($,"name",{value:U,configurable:!0}),Sz=($,U)=>{for(var G in U)$$($,G,{get:U[G],enumerable:!0})},Dz=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of Nz(U))if(!jz.call($,X)&&X!==G)$$($,X,{get:()=>U[X],enumerable:!(W=qz(U,X))||W.enumerable})}return $},kz=($)=>Dz($$({},"__esModule",{value:!0}),$),LZ={};Sz(LZ,{emitWarningIfUnsupportedVersion:()=>bz});YZ.exports=kz(LZ);var ZZ=!1,bz=Pz(($)=>{if($&&!ZZ&&parseInt($.substring(1,$.indexOf(".")))<18)ZZ=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
3
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return G}resolveDefaultConfig(U){const{requestTimeout:G,connectionTimeout:W,socketTimeout:X,httpAgent:Z,httpsAgent:L}=U||{};return{connectionTimeout:W,requestTimeout:G??X,httpAgent:(()=>{if(Z instanceof g$.Agent||typeof(Z==null?void 0:Z.destroy)==="function")return Z;return new g$.Agent({keepAlive:!0,maxSockets:50,...Z})})(),httpsAgent:(()=>{if(L instanceof p$.Agent||typeof(L==null?void 0:L.destroy)==="function")return L;return new p$.Agent({keepAlive:!0,maxSockets:50,...L})})(),logger:console}}destroy(){var U,G,W,X;(G=(U=this.config)==null?void 0:U.httpAgent)==null||G.destroy(),(X=(W=this.config)==null?void 0:W.httpsAgent)==null||X.destroy()}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;let W;return new Promise((X,Z)=>{let L=void 0;const Y=N(async(B)=>{await L,clearTimeout(W),X(B)},"resolve"),w=N(async(B)=>{await L,clearTimeout(W),Z(B)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(G==null?void 0:G.aborted){const B=new Error("Request aborted");B.name="AbortError",w(B);return}const F=U.protocol==="https:",Q=F?this.config.httpsAgent:this.config.httpAgent;W=setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(Q,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const z=W6.buildQueryString(U.query||{});let I=void 0;if(U.username!=null||U.password!=null){const B=U.username??"",H=U.password??"";I=`${B}:${H}`}let J=U.path;if(z)J+=`?${z}`;if(U.fragment)J+=`#${U.fragment}`;const K={headers:U.headers,host:U.hostname,method:U.method,path:J,port:U.port,agent:Q,auth:I},M=(F?p$.request:g$.request)(K,(B)=>{const H=new G6.HttpResponse({statusCode:B.statusCode||-1,reason:B.statusMessage,headers:X6(B.headers),body:B});Y({response:H})});if(M.on("error",(B)=>{if(nw.includes(B.code))w(Object.assign(B,{name:"TimeoutError"}));else w(B)}),iw(M,w,this.config.connectionTimeout),ow(M,w,this.config.requestTimeout),G){const B=N(()=>{M.destroy();const H=new Error("Request aborted");H.name="AbortError",w(H)},"onAbort");if(typeof G.addEventListener==="function"){const H=G;H.addEventListener("abort",B,{once:!0}),M.once("close",()=>H.removeEventListener("abort",B))}else G.onabort=B}const V=K.agent;if(typeof V==="object"&&"keepAlive"in V)rw(M,{keepAlive:V.keepAlive,keepAliveMsecs:V.keepAliveMsecs});L=l$(M,U,this.config.requestTimeout).catch((B)=>{return clearTimeout(W),Z(B)})})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:G}})}httpHandlerConfigs(){return this.config??{}}};N(Y6,"NodeHttpHandler");var tw=Y6,e4=import.meta.require("http2"),ew=sw(import.meta.require("http2")),w6=class ${constructor(U){this.sessions=[],this.sessions=U??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(U){this.sessions.push(U)}contains(U){return this.sessions.includes(U)}remove(U){this.sessions=this.sessions.filter((G)=>G!==U)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(U){for(let G of this.sessions)if(G===U){if(!G.destroyed)G.destroy()}}};N(w6,"NodeHttp2ConnectionPool");var $F=w6,F6=class ${constructor(U){if(this.sessionCache=new Map,this.config=U,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(U,G){const W=this.getUrlString(U),X=this.sessionCache.get(W);if(X){const w=X.poll();if(w&&!this.config.disableConcurrency)return w}const Z=ew.default.connect(W);if(this.config.maxConcurrency)Z.settings({maxConcurrentStreams:this.config.maxConcurrency},(w)=>{if(w)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+U.destination.toString())});Z.unref();const L=N(()=>{Z.destroy(),this.deleteSession(W,Z)},"destroySessionCb");if(Z.on("goaway",L),Z.on("error",L),Z.on("frameError",L),Z.on("close",()=>this.deleteSession(W,Z)),G.requestTimeout)Z.setTimeout(G.requestTimeout,L);const Y=this.sessionCache.get(W)||new $F;return Y.offerLast(Z),this.sessionCache.set(W,Y),Z}deleteSession(U,G){const W=this.sessionCache.get(U);if(!W)return;if(!W.contains(G))return;W.remove(G),this.sessionCache.set(U,W)}release(U,G){var W;const X=this.getUrlString(U);(W=this.sessionCache.get(X))==null||W.offerLast(G)}destroy(){for(let[U,G]of this.sessionCache){for(let W of G){if(!W.destroyed)W.destroy();G.remove(W)}this.sessionCache.delete(U)}}setMaxConcurrentStreams(U){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=U}setDisableConcurrentStreams(U){this.config.disableConcurrency=U}getUrlString(U){return U.destination.toString()}};N(F6,"NodeHttp2ConnectionManager");var UF=F6,Q6=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new UF({}),this.configProvider=new Promise((G,W)=>{if(typeof U==="function")U().then((X)=>{G(X||{})}).catch(W);else G(U||{})})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}destroy(){this.connectionManager.destroy()}async handle(U,{abortSignal:G}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:W,disableConcurrentStreams:X}=this.config;return new Promise((Z,L)=>{var Y;let w=!1,F=void 0;const Q=N(async(q)=>{await F,Z(q)},"resolve"),z=N(async(q)=>{await F,L(q)},"reject");if(G==null?void 0:G.aborted){w=!0;const q=new Error("Request aborted");q.name="AbortError",z(q);return}const{hostname:I,method:J,port:K,protocol:T,query:M}=U;let V="";if(U.username!=null||U.password!=null){const q=U.username??"",d=U.password??"";V=`${q}:${d}@`}const B=`${T}//${V}${I}${K?`:${K}`:""}`,H={destination:new URL(B)},A=this.connectionManager.lease(H,{requestTimeout:(Y=this.config)==null?void 0:Y.sessionTimeout,disableConcurrentStreams:X||!1}),D=N((q)=>{if(X)this.destroySession(A);w=!0,z(q)},"rejectWithDestroy"),e=W6.buildQueryString(M||{});let w0=U.path;if(e)w0+=`?${e}`;if(U.fragment)w0+=`#${U.fragment}`;const v=A.request({...U.headers,[e4.constants.HTTP2_HEADER_PATH]:w0,[e4.constants.HTTP2_HEADER_METHOD]:J});if(A.ref(),v.on("response",(q)=>{const d=new G6.HttpResponse({statusCode:q[":status"]||-1,headers:X6(q),body:v});if(w=!0,Q({response:d}),X)A.close(),this.connectionManager.deleteSession(B,A)}),W)v.setTimeout(W,()=>{v.close();const q=new Error(`Stream timed out because of no activity for ${W} ms`);q.name="TimeoutError",D(q)});if(G){const q=N(()=>{v.close();const d=new Error("Request aborted");d.name="AbortError",D(d)},"onAbort");if(typeof G.addEventListener==="function"){const d=G;d.addEventListener("abort",q,{once:!0}),v.once("close",()=>d.removeEventListener("abort",q))}else G.onabort=q}v.on("frameError",(q,d,xL)=>{D(new Error(`Frame type id ${q} in stream id ${xL} has failed with code ${d}.`))}),v.on("error",D),v.on("aborted",()=>{D(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${v.rstCode}.`))}),v.on("close",()=>{if(A.unref(),X)A.destroy();if(!w)D(new Error("Unexpected error: http2 request did not get a response"))}),F=l$(v,U,W)})}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return{...W,[U]:G}})}httpHandlerConfigs(){return this.config??{}}destroySession(U){if(!U.destroyed)U.destroy()}};N(Q6,"NodeHttp2Handler");var GF=Q6,z6=class $ extends Z6.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,G,W){this.bufferedBytes.push(U),W()}};N(z6,"Collector");var WF=z6,XF=N(($)=>{if(ZF($))return I6($);return new Promise((U,G)=>{const W=new WF;$.pipe(W),$.on("error",(X)=>{W.end(),G(X)}),W.on("error",G),W.on("finish",function(){const X=new Uint8Array(Buffer.concat(this.bufferedBytes));U(X)})})},"streamCollector"),ZF=N(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");N(I6,"collectReadableStream")});var O6=E((NK,A6)=>{var M6=function($=0){return new Promise((U,G)=>{if($)setTimeout(()=>{const W=new Error(`Request did not complete within ${$} ms`);W.name="TimeoutError",G(W)},$)})};async function V6($){const U=await H6($),G=RF.fromBase64(U);return new Uint8Array(G)}async function T6($){const U=[],G=$.getReader();let W=!1,X=0;while(!W){const{done:Y,value:w}=await G.read();if(w)U.push(w),X+=w.length;W=Y}const Z=new Uint8Array(X);let L=0;for(let Y of U)Z.set(Y,L),L+=Y.length;return Z}var H6=function($){return new Promise((U,G)=>{const W=new FileReader;W.onloadend=()=>{if(W.readyState!==2)return G(new Error("Reader aborted too early"));const X=W.result??"",Z=X.indexOf(","),L=Z>-1?Z+1:X.length;U(X.substring(L))},W.onabort=()=>G(new Error("Read aborted")),W.onerror=()=>G(W.error),W.readAsDataURL($)})},P1=Object.defineProperty,LF=Object.getOwnPropertyDescriptor,YF=Object.getOwnPropertyNames,wF=Object.prototype.hasOwnProperty,o=($,U)=>P1($,"name",{value:U,configurable:!0}),FF=($,U)=>{for(var G in U)P1($,G,{get:U[G],enumerable:!0})},QF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of YF(U))if(!wF.call($,X)&&X!==G)P1($,X,{get:()=>U[X],enumerable:!(W=LF(U,X))||W.enumerable})}return $},zF=($)=>QF(P1({},"__esModule",{value:!0}),$),E6={};FF(E6,{FetchHttpHandler:()=>JF,keepAliveSupport:()=>j1,streamCollector:()=>KF});A6.exports=zF(E6);var K6=i(),IF=d$();o(M6,"requestTimeout");var j1={supported:void 0},B6=class ${static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}constructor(U){if(typeof U==="function")this.configProvider=U().then((G)=>G||{});else this.config=U??{},this.configProvider=Promise.resolve(this.config);if(j1.supported===void 0)j1.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(U,{abortSignal:G}={}){if(!this.config)this.config=await this.configProvider;const W=this.config.requestTimeout,X=this.config.keepAlive===!0,Z=this.config.credentials;if(G==null?void 0:G.aborted){const V=new Error("Request aborted");return V.name="AbortError",Promise.reject(V)}let L=U.path;const Y=IF.buildQueryString(U.query||{});if(Y)L+=`?${Y}`;if(U.fragment)L+=`#${U.fragment}`;let w="";if(U.username!=null||U.password!=null){const V=U.username??"",B=U.password??"";w=`${V}:${B}@`}const{port:F,method:Q}=U,z=`${U.protocol}//${w}${U.hostname}${F?`:${F}`:""}${L}`,I=Q==="GET"||Q==="HEAD"?void 0:U.body,J={body:I,headers:new Headers(U.headers),method:Q,credentials:Z};if(I)J.duplex="half";if(typeof AbortController!=="undefined")J.signal=G;if(j1.supported)J.keepalive=X;let K=o(()=>{},"removeSignalEventListener");const T=new Request(z,J),M=[fetch(T).then((V)=>{const B=V.headers,H={};for(let D of B.entries())H[D[0]]=D[1];if(V.body==null)return V.blob().then((D)=>({response:new K6.HttpResponse({headers:H,reason:V.statusText,statusCode:V.status,body:D})}));return{response:new K6.HttpResponse({headers:H,reason:V.statusText,statusCode:V.status,body:V.body})}}),M6(W)];if(G)M.push(new Promise((V,B)=>{const H=o(()=>{const A=new Error("Request aborted");A.name="AbortError",B(A)},"onAbort");if(typeof G.addEventListener==="function"){const A=G;A.addEventListener("abort",H,{once:!0}),K=o(()=>A.removeEventListener("abort",H),"removeSignalEventListener")}else G.onabort=H}));return Promise.race(M).finally(K)}updateHttpClientConfig(U,G){this.config=void 0,this.configProvider=this.configProvider.then((W)=>{return W[U]=G,W})}httpHandlerConfigs(){return this.config??{}}};o(B6,"FetchHttpHandler");var JF=B6,RF=q1(),KF=o(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return V6($);return T6($)},"streamCollector");o(V6,"collectBlob");o(T6,"collectStream");o(H6,"readToBase64")});var g0=E((C6)=>{Object.defineProperty(C6,"__esModule",{value:!0});C6.isReadableStream=void 0;var EF=($)=>{var U;return typeof ReadableStream==="function"&&(((U=$===null||$===void 0?void 0:$.constructor)===null||U===void 0?void 0:U.name)===ReadableStream.name||$ instanceof ReadableStream)};C6.isReadableStream=EF});var b6=E((S6)=>{Object.defineProperty(S6,"__esModule",{value:!0});S6.sdkStreamMixin=void 0;var MF=O6(),BF=q1(),VF=P6(),TF=G0(),q6=g0(),N6="The stream has already been transformed.",HF=($)=>{var U,G;if(!j6($)&&!q6.isReadableStream($)){const L=((G=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||G===void 0?void 0:G.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${L}`)}let W=!1;const X=async()=>{if(W)throw new Error(N6);return W=!0,await MF.streamCollector($)},Z=(L)=>{if(typeof L.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return L.stream()};return Object.assign($,{transformToByteArray:X,transformToString:async(L)=>{const Y=await X();if(L==="base64")return BF.toBase64(Y);else if(L==="hex")return VF.toHex(Y);else if(L===void 0||L==="utf8"||L==="utf-8")return TF.toUtf8(Y);else if(typeof TextDecoder==="function")return new TextDecoder(L).decode(Y);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(W)throw new Error(N6);if(W=!0,j6($))return Z($);else if(q6.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};S6.sdkStreamMixin=HF;var j6=($)=>typeof Blob==="function"&&$ instanceof Blob});var v6=E((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.sdkStreamMixin=void 0;var AF=R6(),OF=_0(),s$=import.meta.require("stream"),CF=import.meta.require("util"),fF=b6(),k6="The stream has already been transformed.",qF=($)=>{var U,G;if(!($ instanceof s$.Readable))try{return fF.sdkStreamMixin($)}catch(Z){const L=((G=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||G===void 0?void 0:G.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${L}`)}let W=!1;const X=async()=>{if(W)throw new Error(k6);return W=!0,await AF.streamCollector($)};return Object.assign($,{transformToByteArray:X,transformToString:async(Z)=>{const L=await X();if(Z===void 0||Buffer.isEncoding(Z))return OF.fromArrayBuffer(L.buffer,L.byteOffset,L.byteLength).toString(Z);else return new CF.TextDecoder(Z).decode(L)},transformToWebStream:()=>{if(W)throw new Error(k6);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof s$.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return W=!0,s$.Readable.toWeb($)}})};h6.sdkStreamMixin=qF});var u6=E((c6)=>{async function NF($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(c6,"__esModule",{value:!0});c6.splitStream=void 0;c6.splitStream=NF});var p6=E((d6)=>{async function SF($){if(PF.isReadableStream($))return jF.splitStream($);const U=new _6.PassThrough,G=new _6.PassThrough;return $.pipe(U),$.pipe(G),[U,G]}Object.defineProperty(d6,"__esModule",{value:!0});d6.splitStream=void 0;var _6=import.meta.require("stream"),jF=u6(),PF=g0();d6.splitStream=SF});var m6=E((l6)=>{async function DF($,U){var G;let W=0;const X=[],Z=$.getReader();let L=!1;while(!L){const{done:F,value:Q}=await Z.read();if(Q)X.push(Q),W+=(G=Q===null||Q===void 0?void 0:Q.byteLength)!==null&&G!==void 0?G:0;if(W>=U)break;L=F}Z.releaseLock();const Y=new Uint8Array(Math.min(U,W));let w=0;for(let F of X){if(F.byteLength>Y.byteLength-w){Y.set(F.subarray(0,Y.byteLength-w),w);break}else Y.set(F,w);w+=F.length}return Y}Object.defineProperty(l6,"__esModule",{value:!0});l6.headStream=void 0;l6.headStream=DF});var o6=E((i6)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.headStream=void 0;var bF=import.meta.require("stream"),kF=m6(),hF=g0(),xF=($,U)=>{if(hF.isReadableStream($))return kF.headStream($,U);return new Promise((G,W)=>{const X=new n6;X.limit=U,$.pipe(X),$.on("error",(Z)=>{X.end(),W(Z)}),X.on("error",W),X.on("finish",function(){const Z=new Uint8Array(Buffer.concat(this.buffers));G(Z)})})};i6.headStream=xF;class n6 extends bF.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write($,U,G){var W;if(this.buffers.push($),this.bytesBuffered+=(W=$.byteLength)!==null&&W!==void 0?W:0,this.bytesBuffered>=this.limit){const X=this.bytesBuffered-this.limit,Z=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=Z.subarray(0,Z.byteLength-X),this.emit("finish")}G()}}});var GW=E((xK,R0)=>{var e6=function($,U="utf-8"){if(U==="base64")return a6.toBase64($);return t6.toUtf8($)},$W=function($,U){if(U==="base64")return n$.mutate(a6.fromBase64($));return n$.mutate(t6.fromUtf8($))},S1=Object.defineProperty,vF=Object.getOwnPropertyDescriptor,cF=Object.getOwnPropertyNames,yF=Object.prototype.hasOwnProperty,i$=($,U)=>S1($,"name",{value:U,configurable:!0}),uF=($,U)=>{for(var G in U)S1($,G,{get:U[G],enumerable:!0})},m$=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of cF(U))if(!yF.call($,X)&&X!==G)S1($,X,{get:()=>U[X],enumerable:!(W=vF(U,X))||W.enumerable})}return $},p0=($,U,G)=>(m$($,U,"default"),G&&m$(G,U,"default")),_F=($)=>m$(S1({},"__esModule",{value:!0}),$),J0={};uF(J0,{Uint8ArrayBlobAdapter:()=>n$});R0.exports=_F(J0);var a6=q1(),t6=G0();i$(e6,"transformToString");i$($W,"transformFromString");var UW=class $ extends Uint8Array{static fromString(U,G="utf-8"){switch(typeof U){case"string":return $W(U,G);default:throw new Error(`Unsupported conversion from ${typeof U} to Uint8ArrayBlobAdapter.`)}}static mutate(U){return Object.setPrototypeOf(U,$.prototype),U}transformToString(U="utf-8"){return e6(this,U)}};i$(UW,"Uint8ArrayBlobAdapter");var n$=UW;p0(J0,n4(),R0.exports);p0(J0,v6(),R0.exports);p0(J0,p6(),R0.exports);p0(J0,o6(),R0.exports);p0(J0,g0(),R0.exports)});var q0=E((vK,fW)=>{var EW=function($){const U=$.getUTCFullYear(),G=$.getUTCMonth(),W=$.getUTCDay(),X=$.getUTCDate(),Z=$.getUTCHours(),L=$.getUTCMinutes(),Y=$.getUTCSeconds(),w=X<10?`0${X}`:`${X}`,F=Z<10?`0${Z}`:`${Z}`,Q=L<10?`0${L}`:`${L}`,z=Y<10?`0${Y}`:`${Y}`;return`${RQ[W]}, ${w} ${ZU[G]} ${U} ${F}:${Q}:${z} GMT`},k1=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})},LU=function($,U,G){let W,X,Z;if(typeof U==="undefined"&&typeof G==="undefined")W={},Z=$;else if(W=$,typeof U==="function")return X=U,Z=G,nQ(W,X,Z);else Z=U;for(let L of Object.keys(Z)){if(!Array.isArray(Z[L])){W[L]=Z[L];continue}OW(W,null,Z,L)}return W},CW=function($,U,G){if(G<=0||!Number.isInteger(G))throw new Error("Invalid number of delimiters ("+G+") for splitEvery.");const W=$.split(U);if(G===1)return W;const X=[];let Z="";for(let L=0;L<W.length;L++){if(Z==="")Z=W[L];else Z+=U+W[L];if((L+1)%G===0)X.push(Z),Z=""}if(Z!=="")X.push(Z);return X},h1=Object.defineProperty,dF=Object.getOwnPropertyDescriptor,gF=Object.getOwnPropertyNames,pF=Object.prototype.hasOwnProperty,R=($,U)=>h1($,"name",{value:U,configurable:!0}),lF=($,U)=>{for(var G in U)h1($,G,{get:U[G],enumerable:!0})},sF=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of gF(U))if(!pF.call($,X)&&X!==G)h1($,X,{get:()=>U[X],enumerable:!(W=dF(U,X))||W.enumerable})}return $},mF=($)=>sF(h1({},"__esModule",{value:!0}),$),XW={};lF(XW,{Client:()=>iF,Command:()=>FW,LazyJsonString:()=>lQ,NoOpLogger:()=>nF,SENSITIVE_STRING:()=>aF,ServiceException:()=>bQ,StringWrapper:()=>i0,_json:()=>UU,collectBody:()=>rF,convertMap:()=>sQ,createAggregatedClient:()=>tF,dateToUtcString:()=>EW,decorateServiceException:()=>BW,emitWarningIfUnsupportedVersion:()=>vQ,expectBoolean:()=>$Q,expectByte:()=>$U,expectFloat32:()=>D1,expectInt:()=>GQ,expectInt32:()=>t$,expectLong:()=>m0,expectNonNull:()=>XQ,expectNumber:()=>s0,expectObject:()=>zW,expectShort:()=>e$,expectString:()=>ZQ,expectUnion:()=>LQ,extendedEncodeURIComponent:()=>k1,getArrayIfSingleItem:()=>pQ,getDefaultClientConfiguration:()=>dQ,getDefaultExtensionConfiguration:()=>TW,getValueFromTextNode:()=>HW,handleFloat:()=>FQ,limitedParseDouble:()=>XU,limitedParseFloat:()=>QQ,limitedParseFloat32:()=>zQ,loadConfigsForDefaultMode:()=>xQ,logger:()=>n0,map:()=>LU,parseBoolean:()=>eF,parseEpochTimestamp:()=>OQ,parseRfc3339DateTime:()=>EQ,parseRfc3339DateTimeWithOffset:()=>BQ,parseRfc7231DateTime:()=>AQ,resolveDefaultRuntimeConfig:()=>gQ,resolvedPath:()=>oQ,serializeDateTime:()=>tQ,serializeFloat:()=>aQ,splitEvery:()=>CW,strictParseByte:()=>KW,strictParseDouble:()=>WU,strictParseFloat:()=>YQ,strictParseFloat32:()=>IW,strictParseInt:()=>IQ,strictParseInt32:()=>JQ,strictParseLong:()=>RW,strictParseShort:()=>O0,take:()=>mQ,throwDefaultError:()=>VW,withBaseException:()=>kQ});fW.exports=mF(XW);var ZW=class ${trace(){}debug(){}info(){}warn(){}error(){}};R(ZW,"NoOpLogger");var nF=ZW,LW=N4(),YW=class ${constructor(U){this.middlewareStack=LW.constructStack(),this.config=U}send(U,G,W){const X=typeof G!=="function"?G:void 0,Z=typeof G==="function"?G:W,L=U.resolveMiddleware(this.middlewareStack,this.config,X);if(Z)L(U).then((Y)=>Z(null,Y.output),(Y)=>Z(Y)).catch(()=>{});else return L(U).then((Y)=>Y.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};R(YW,"Client");var iF=YW,r$=GW(),rF=R(async($=new Uint8Array,U)=>{if($ instanceof Uint8Array)return r$.Uint8ArrayBlobAdapter.mutate($);if(!$)return r$.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const G=U.streamCollector($);return r$.Uint8ArrayBlobAdapter.mutate(await G)},"collectBody"),a$=F0(),wW=class ${constructor(){this.middlewareStack=LW.constructStack()}static classBuilder(){return new oF}resolveMiddlewareWithContext(U,G,W,{middlewareFn:X,clientName:Z,commandName:L,inputFilterSensitiveLog:Y,outputFilterSensitiveLog:w,smithyContext:F,additionalContext:Q,CommandCtor:z}){for(let M of X.bind(this)(z,U,G,W))this.middlewareStack.use(M);const I=U.concat(this.middlewareStack),{logger:J}=G,K={logger:J,clientName:Z,commandName:L,inputFilterSensitiveLog:Y,outputFilterSensitiveLog:w,[a$.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...Q},{requestHandler:T}=G;return I.resolve((M)=>T.handle(M.request,W||{}),K)}};R(wW,"Command");var FW=wW,QW=class ${constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(U)=>U,this._outputFilterSensitiveLog=(U)=>U,this._serializer=null,this._deserializer=null}init(U){this._init=U}ep(U){return this._ep=U,this}m(U){return this._middlewareFn=U,this}s(U,G,W={}){return this._smithyContext={service:U,operation:G,...W},this}c(U={}){return this._additionalContext=U,this}n(U,G){return this._clientName=U,this._commandName=G,this}f(U=(W)=>W,G=(W)=>W){return this._inputFilterSensitiveLog=U,this._outputFilterSensitiveLog=G,this}ser(U){return this._serializer=U,this}de(U){return this._deserializer=U,this}build(){var U;const G=this;let W;return W=(U=class extends FW{constructor(...[X]){super();this.serialize=G._serializer,this.deserialize=G._deserializer,this.input=X??{},G._init(this)}static getEndpointParameterInstructions(){return G._ep}resolveMiddleware(X,Z,L){return this.resolveMiddlewareWithContext(X,Z,L,{CommandCtor:W,middlewareFn:G._middlewareFn,clientName:G._clientName,commandName:G._commandName,inputFilterSensitiveLog:G._inputFilterSensitiveLog,outputFilterSensitiveLog:G._outputFilterSensitiveLog,smithyContext:G._smithyContext,additionalContext:G._additionalContext})}},R(U,"CommandRef"),U)}};R(QW,"ClassBuilder");var oF=QW,aF="***SensitiveInformation***",tF=R(($,U)=>{for(let G of Object.keys($)){const W=$[G],X=R(async function(L,Y,w){const F=new W(L);if(typeof Y==="function")this.send(F,Y);else if(typeof w==="function"){if(typeof Y!=="object")throw new Error(`Expected http options but got ${typeof Y}`);this.send(F,Y||{},w)}else return this.send(F,Y)},"methodImpl"),Z=(G[0].toLowerCase()+G.slice(1)).replace(/Command$/,"");U.prototype[Z]=X}},"createAggregatedClient"),eF=R(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),$Q=R(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)n0.warn(b1(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const U=$.toLowerCase();if(U==="false"||U==="true")n0.warn(b1(`Expected boolean, got ${typeof $}: ${$}`));if(U==="false")return!1;if(U==="true")return!0}if(typeof $==="boolean")return $;throw new TypeError(`Expected boolean, got ${typeof $}: ${$}`)},"expectBoolean"),s0=R(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))n0.warn(b1(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),UQ=Math.ceil(340282346638528860000000000000000000000),D1=R(($)=>{const U=s0($);if(U!==void 0&&!Number.isNaN(U)&&U!==Infinity&&U!==(-Infinity)){if(Math.abs(U)>UQ)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),m0=R(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),GQ=m0,t$=R(($)=>GU($,32),"expectInt32"),e$=R(($)=>GU($,16),"expectShort"),$U=R(($)=>GU($,8),"expectByte"),GU=R(($,U)=>{const G=m0($);if(G!==void 0&&WQ(G,U)!==G)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return G},"expectSizedInt"),WQ=R(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),XQ=R(($,U)=>{if($===null||$===void 0){if(U)throw new TypeError(`Expected a non-null value for ${U}`);throw new TypeError("Expected a non-null value")}return $},"expectNonNull"),zW=R(($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;const U=Array.isArray($)?"array":typeof $;throw new TypeError(`Expected object, got ${U}: ${$}`)},"expectObject"),ZQ=R(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return n0.warn(b1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),LQ=R(($)=>{if($===null||$===void 0)return;const U=zW($),G=Object.entries(U).filter(([,W])=>W!=null).map(([W])=>W);if(G.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(G.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${G} were not null.`);return U},"expectUnion"),WU=R(($)=>{if(typeof $=="string")return s0(f0($));return s0($)},"strictParseDouble"),YQ=WU,IW=R(($)=>{if(typeof $=="string")return D1(f0($));return D1($)},"strictParseFloat32"),wQ=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,f0=R(($)=>{const U=$.match(wQ);if(U===null||U[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),XU=R(($)=>{if(typeof $=="string")return JW($);return s0($)},"limitedParseDouble"),FQ=XU,QQ=XU,zQ=R(($)=>{if(typeof $=="string")return JW($);return D1($)},"limitedParseFloat32"),JW=R(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),RW=R(($)=>{if(typeof $==="string")return m0(f0($));return m0($)},"strictParseLong"),IQ=RW,JQ=R(($)=>{if(typeof $==="string")return t$(f0($));return t$($)},"strictParseInt32"),O0=R(($)=>{if(typeof $==="string")return e$(f0($));return e$($)},"strictParseShort"),KW=R(($)=>{if(typeof $==="string")return $U(f0($));return $U($)},"strictParseByte"),b1=R(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),n0={warn:console.warn},RQ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ZU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];R(EW,"dateToUtcString");var KQ=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),EQ=R(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=KQ.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,W,X,Z,L,Y,w,F]=U,Q=O0(C0(W)),z=m(X,"month",1,12),I=m(Z,"day",1,31);return l0(Q,z,I,{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F})},"parseRfc3339DateTime"),MQ=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),BQ=R(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=MQ.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[G,W,X,Z,L,Y,w,F,Q]=U,z=O0(C0(W)),I=m(X,"month",1,12),J=m(Z,"day",1,31),K=l0(z,I,J,{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F});if(Q.toUpperCase()!="Z")K.setTime(K.getTime()-DQ(Q));return K},"parseRfc3339DateTimeWithOffset"),VQ=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),TQ=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),HQ=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),AQ=R(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=VQ.exec($);if(U){const[G,W,X,Z,L,Y,w,F]=U;return l0(O0(C0(Z)),o$(X),m(W,"day",1,31),{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F})}if(U=TQ.exec($),U){const[G,W,X,Z,L,Y,w,F]=U;return qQ(l0(CQ(Z),o$(X),m(W,"day",1,31),{hours:L,minutes:Y,seconds:w,fractionalMilliseconds:F}))}if(U=HQ.exec($),U){const[G,W,X,Z,L,Y,w,F]=U;return l0(O0(C0(F)),o$(W),m(X.trimLeft(),"day",1,31),{hours:Z,minutes:L,seconds:Y,fractionalMilliseconds:w})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),OQ=R(($)=>{if($===null||$===void 0)return;let U;if(typeof $==="number")U=$;else if(typeof $==="string")U=WU($);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(U)||U===Infinity||U===(-Infinity))throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(U*1000))},"parseEpochTimestamp"),l0=R(($,U,G,W)=>{const X=U-1;return jQ($,X,G),new Date(Date.UTC($,X,G,m(W.hours,"hour",0,23),m(W.minutes,"minute",0,59),m(W.seconds,"seconds",0,60),SQ(W.fractionalMilliseconds)))},"buildDate"),CQ=R(($)=>{const U=(new Date()).getUTCFullYear(),G=Math.floor(U/100)*100+O0(C0($));if(G<U)return G+100;return G},"parseTwoDigitYear"),fQ=1576800000000,qQ=R(($)=>{if($.getTime()-(new Date()).getTime()>fQ)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),o$=R(($)=>{const U=ZU.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),NQ=[31,28,31,30,31,30,31,31,30,31,30,31],jQ=R(($,U,G)=>{let W=NQ[U];if(U===1&&PQ($))W=29;if(G>W)throw new TypeError(`Invalid day for ${ZU[U]} in ${$}: ${G}`)},"validateDayOfMonth"),PQ=R(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),m=R(($,U,G,W)=>{const X=KW(C0($));if(X<G||X>W)throw new TypeError(`${U} must be between ${G} and ${W}, inclusive`);return X},"parseDateValue"),SQ=R(($)=>{if($===null||$===void 0)return 0;return IW("0."+$)*1000},"parseMilliseconds"),DQ=R(($)=>{const U=$[0];let G=1;if(U=="+")G=1;else if(U=="-")G=-1;else throw new TypeError(`Offset direction, ${U}, must be "+" or "-"`);const W=Number($.substring(1,3)),X=Number($.substring(4,6));return G*(W*60+X)*60*1000},"parseOffsetToMilliseconds"),C0=R(($)=>{let U=0;while(U<$.length-1&&$.charAt(U)==="0")U++;if(U===0)return $;return $.slice(U)},"stripLeadingZeroes"),MW=class $ extends Error{constructor(U){super(U.message);Object.setPrototypeOf(this,$.prototype),this.name=U.name,this.$fault=U.$fault,this.$metadata=U.$metadata}};R(MW,"ServiceException");var bQ=MW,BW=R(($,U={})=>{Object.entries(U).filter(([,W])=>W!==void 0).forEach(([W,X])=>{if($[W]==null||$[W]==="")$[W]=X});const G=$.message||$.Message||"UnknownError";return $.message=G,delete $.Message,$},"decorateServiceException"),VW=R(({output:$,parsedBody:U,exceptionCtor:G,errorCode:W})=>{const X=hQ($),Z=X.httpStatusCode?X.httpStatusCode+"":void 0,L=new G({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||W||Z||"UnknownError",$fault:"client",$metadata:X});throw BW(L,U)},"throwDefaultError"),kQ=R(($)=>{return({output:U,parsedBody:G,errorCode:W})=>{VW({output:U,parsedBody:G,exceptionCtor:$,errorCode:W})}},"withBaseException"),hQ=R(($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),"deserializeMetadata"),xQ=R(($)=>{switch($){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},"loadConfigsForDefaultMode"),WW=!1,vQ=R(($)=>{if($&&!WW&&parseInt($.substring(1,$.indexOf(".")))<16)WW=!0},"emitWarningIfUnsupportedVersion"),cQ=R(($)=>{const U=[];for(let G in a$.AlgorithmId){const W=a$.AlgorithmId[G];if($[W]===void 0)continue;U.push({algorithmId:()=>W,checksumConstructor:()=>$[W]})}return{_checksumAlgorithms:U,addChecksumAlgorithm(G){this._checksumAlgorithms.push(G)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),yQ=R(($)=>{const U={};return $.checksumAlgorithms().forEach((G)=>{U[G.algorithmId()]=G.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),uQ=R(($)=>{let U=$.retryStrategy;return{setRetryStrategy(G){U=G},retryStrategy(){return U}}},"getRetryConfiguration"),_Q=R(($)=>{const U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),TW=R(($)=>{return{...cQ($),...uQ($)}},"getDefaultExtensionConfiguration"),dQ=TW,gQ=R(($)=>{return{...yQ($),..._Q($)}},"resolveDefaultRuntimeConfig");R(k1,"extendedEncodeURIComponent");var pQ=R(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),HW=R(($)=>{for(let G in $)if($.hasOwnProperty(G)&&$[G]["#text"]!==void 0)$[G]=$[G]["#text"];else if(typeof $[G]==="object"&&$[G]!==null)$[G]=HW($[G]);return $},"getValueFromTextNode"),i0=R(function(){const $=Object.getPrototypeOf(this).constructor,G=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(G,$.prototype),G},"StringWrapper");i0.prototype=Object.create(String.prototype,{constructor:{value:i0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(i0,String);var AW=class $ extends i0{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(U){if(U instanceof $)return U;else if(U instanceof String||typeof U==="string")return new $(U);return new $(JSON.stringify(U))}};R(AW,"LazyJsonString");var lQ=AW;R(LU,"map");var sQ=R(($)=>{const U={};for(let[G,W]of Object.entries($||{}))U[G]=[,W];return U},"convertMap"),mQ=R(($,U)=>{const G={};for(let W in U)OW(G,$,U,W);return G},"take"),nQ=R(($,U,G)=>{return LU($,Object.entries(G).reduce((W,[X,Z])=>{if(Array.isArray(Z))W[X]=Z;else if(typeof Z==="function")W[X]=[U,Z()];else W[X]=[U,Z];return W},{}))},"mapWithFilter"),OW=R(($,U,G,W)=>{if(U!==null){let L=G[W];if(typeof L==="function")L=[,L];const[Y=iQ,w=rQ,F=W]=L;if(typeof Y==="function"&&Y(U[F])||typeof Y!=="function"&&!!Y)$[W]=w(U[F]);return}let[X,Z]=G[W];if(typeof Z==="function"){let L;const Y=X===void 0&&(L=Z())!=null,w=typeof X==="function"&&!!X(void 0)||typeof X!=="function"&&!!X;if(Y)$[W]=L;else if(w)$[W]=Z()}else{const L=X===void 0&&Z!=null,Y=typeof X==="function"&&!!X(Z)||typeof X!=="function"&&!!X;if(L||Y)$[W]=Z}},"applyInstruction"),iQ=R(($)=>$!=null,"nonNullish"),rQ=R(($)=>$,"pass"),oQ=R(($,U,G,W,X,Z)=>{if(U!=null&&U[G]!==void 0){const L=W();if(L.length<=0)throw new Error("Empty value provided for input HTTP label: "+G+".");$=$.replace(X,Z?L.split("/").map((Y)=>k1(Y)).join("/"):k1(L))}else throw new Error("No value provided for input HTTP label: "+G+".");return $},"resolvedPath"),aQ=R(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),tQ=R(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),UU=R(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((U)=>U!=null).map(UU);if(typeof $==="object"){const U={};for(let G of Object.keys($)){if($[G]==null)continue;U[G]=UU($[G])}return U}return $},"_json");R(CW,"splitEvery")});var jW=E((qW)=>{Object.defineProperty(qW,"__esModule",{value:!0});qW.isStreamingPayload=void 0;var eQ=import.meta.require("stream"),$7=($)=>($===null||$===void 0?void 0:$.body)instanceof eQ.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;qW.isStreamingPayload=$7});var mW=E((uK,sW)=>{var{defineProperty:x1,getOwnPropertyDescriptor:U7,getOwnPropertyNames:G7}=Object,W7=Object.prototype.hasOwnProperty,P=($,U)=>x1($,"name",{value:U,configurable:!0}),X7=($,U)=>{for(var G in U)x1($,G,{get:U[G],enumerable:!0})},Z7=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of G7(U))if(!W7.call($,X)&&X!==G)x1($,X,{get:()=>U[X],enumerable:!(W=U7(U,X))||W.enumerable})}return $},L7=($)=>Z7(x1({},"__esModule",{value:!0}),$),SW={};X7(SW,{AdaptiveRetryStrategy:()=>F7,CONFIG_MAX_ATTEMPTS:()=>wU,CONFIG_RETRY_MODE:()=>uW,ENV_MAX_ATTEMPTS:()=>YU,ENV_RETRY_MODE:()=>yW,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>Q7,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>I7,StandardRetryStrategy:()=>vW,defaultDelayDecider:()=>bW,defaultRetryDecider:()=>kW,getOmitRetryHeadersPlugin:()=>J7,getRetryAfterHint:()=>lW,getRetryPlugin:()=>V7,omitRetryHeadersMiddleware:()=>_W,omitRetryHeadersMiddlewareOptions:()=>dW,resolveRetryConfig:()=>z7,retryMiddleware:()=>gW,retryMiddlewareOptions:()=>pW});sW.exports=L7(SW);var N0=i(),DW=j$(),f=A4(),Y7=P(($,U)=>{const G=$,W=(U==null?void 0:U.noRetryIncrement)??f.NO_RETRY_INCREMENT,X=(U==null?void 0:U.retryCost)??f.RETRY_COST,Z=(U==null?void 0:U.timeoutRetryCost)??f.TIMEOUT_RETRY_COST;let L=$;const Y=P((z)=>z.name==="TimeoutError"?Z:X,"getCapacityAmount"),w=P((z)=>Y(z)<=L,"hasRetryTokens");return Object.freeze({hasRetryTokens:w,retrieveRetryTokens:P((z)=>{if(!w(z))throw new Error("No retry token available");const I=Y(z);return L-=I,I},"retrieveRetryTokens"),releaseRetryTokens:P((z)=>{L+=z??W,L=Math.min(L,G)},"releaseRetryTokens")})},"getDefaultRetryQuota"),bW=P(($,U)=>Math.floor(Math.min(f.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),W0=P$(),kW=P(($)=>{if(!$)return!1;return W0.isRetryableByTrait($)||W0.isClockSkewError($)||W0.isThrottlingError($)||W0.isTransientError($)},"defaultRetryDecider"),hW=P(($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)},"asSdkError"),xW=class ${constructor(U,G){this.maxAttemptsProvider=U,this.mode=f.RETRY_MODES.STANDARD,this.retryDecider=(G==null?void 0:G.retryDecider)??kW,this.delayDecider=(G==null?void 0:G.delayDecider)??bW,this.retryQuota=(G==null?void 0:G.retryQuota)??Y7(f.INITIAL_RETRY_TOKENS)}shouldRetry(U,G,W){return G<W&&this.retryDecider(U)&&this.retryQuota.hasRetryTokens(U)}async getMaxAttempts(){let U;try{U=await this.maxAttemptsProvider()}catch(G){U=f.DEFAULT_MAX_ATTEMPTS}return U}async retry(U,G,W){let X,Z=0,L=0;const Y=await this.getMaxAttempts(),{request:w}=G;if(N0.HttpRequest.isInstance(w))w.headers[f.INVOCATION_ID_HEADER]=DW.v4();while(!0)try{if(N0.HttpRequest.isInstance(w))w.headers[f.REQUEST_HEADER]=`attempt=${Z+1}; max=${Y}`;if(W==null?void 0:W.beforeRequest)await W.beforeRequest();const{response:F,output:Q}=await U(G);if(W==null?void 0:W.afterRequest)W.afterRequest(F);return this.retryQuota.releaseRetryTokens(X),Q.$metadata.attempts=Z+1,Q.$metadata.totalRetryDelay=L,{response:F,output:Q}}catch(F){const Q=hW(F);if(Z++,this.shouldRetry(Q,Z,Y)){X=this.retryQuota.retrieveRetryTokens(Q);const z=this.delayDecider(W0.isThrottlingError(Q)?f.THROTTLING_RETRY_DELAY_BASE:f.DEFAULT_RETRY_DELAY_BASE,Z),I=w7(Q.$response),J=Math.max(I||0,z);L+=J,await new Promise((K)=>setTimeout(K,J));continue}if(!Q.$metadata)Q.$metadata={};throw Q.$metadata.attempts=Z,Q.$metadata.totalRetryDelay=L,Q}}};P(xW,"StandardRetryStrategy");var vW=xW,w7=P(($)=>{if(!N0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return W*1000;return new Date(G).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),cW=class $ extends vW{constructor(U,G){const{rateLimiter:W,...X}=G??{};super(U,X);this.rateLimiter=W??new f.DefaultRateLimiter,this.mode=f.RETRY_MODES.ADAPTIVE}async retry(U,G){return super.retry(U,G,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(W)=>{this.rateLimiter.updateClientSendingRate(W)}})}};P(cW,"AdaptiveRetryStrategy");var F7=cW,PW=k0(),YU="AWS_MAX_ATTEMPTS",wU="max_attempts",Q7={environmentVariableSelector:($)=>{const U=$[YU];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${YU} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[wU];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${wU} mast be a number, got "${U}"`);return G},default:f.DEFAULT_MAX_ATTEMPTS},z7=P(($)=>{const{retryStrategy:U}=$,G=PW.normalizeProvider($.maxAttempts??f.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await PW.normalizeProvider($.retryMode)()===f.RETRY_MODES.ADAPTIVE)return new f.AdaptiveRetryStrategy(G);return new f.StandardRetryStrategy(G)}}},"resolveRetryConfig"),yW="AWS_RETRY_MODE",uW="retry_mode",I7={environmentVariableSelector:($)=>$[yW],configFileSelector:($)=>$[uW],default:f.DEFAULT_RETRY_MODE},_W=P(()=>($)=>async(U)=>{const{request:G}=U;if(N0.HttpRequest.isInstance(G))delete G.headers[f.INVOCATION_ID_HEADER],delete G.headers[f.REQUEST_HEADER];return $(U)},"omitRetryHeadersMiddleware"),dW={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},J7=P(($)=>({applyToStack:(U)=>{U.addRelativeTo(_W(),dW)}}),"getOmitRetryHeadersPlugin"),R7=q0(),K7=jW(),gW=P(($)=>(U,G)=>async(W)=>{var X;let Z=await $.retryStrategy();const L=await $.maxAttempts();if(E7(Z)){Z=Z;let Y=await Z.acquireInitialRetryToken(G.partition_id),w=new Error,F=0,Q=0;const{request:z}=W,I=N0.HttpRequest.isInstance(z);if(I)z.headers[f.INVOCATION_ID_HEADER]=DW.v4();while(!0)try{if(I)z.headers[f.REQUEST_HEADER]=`attempt=${F+1}; max=${L}`;const{response:J,output:K}=await U(W);return Z.recordSuccess(Y),K.$metadata.attempts=F+1,K.$metadata.totalRetryDelay=Q,{response:J,output:K}}catch(J){const K=M7(J);if(w=hW(J),I&&K7.isStreamingPayload(z))throw(X=G.logger instanceof R7.NoOpLogger?console:G.logger)==null||X.warn("An error was encountered in a non-retryable streaming request."),w;try{Y=await Z.refreshRetryTokenForRetry(Y,K)}catch(M){if(!w.$metadata)w.$metadata={};throw w.$metadata.attempts=F+1,w.$metadata.totalRetryDelay=Q,w}F=Y.getRetryCount();const T=Y.getRetryDelay();Q+=T,await new Promise((M)=>setTimeout(M,T))}}else{if(Z=Z,Z==null?void 0:Z.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",Z.mode]];return Z.retry(U,W)}},"retryMiddleware"),E7=P(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),M7=P(($)=>{const U={error:$,errorType:B7($)},G=lW($.$response);if(G)U.retryAfterHint=G;return U},"getRetryErrorInfo"),B7=P(($)=>{if(W0.isThrottlingError($))return"THROTTLING";if(W0.isTransientError($))return"TRANSIENT";if(W0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),pW={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},V7=P(($)=>({applyToStack:(U)=>{U.add(gW($),pW)}}),"getRetryPlugin"),lW=P(($)=>{if(!N0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return new Date(W*1000);return new Date(G)},"getRetryAfterHint")});var QU=E((_K,zX)=>{var rW=function($){const U=new Map;for(let G of $)U.set(G.schemeId,G);return U},YX=function($,U){return new FX($,U)},QX=function($,U,G,W,X){return C(async function*Z(L,Y,...w){let F=L.startingToken||void 0,Q=!0,z;while(Q){if(Y[G]=F,X)Y[X]=Y[X]??L.pageSize;if(L.client instanceof $)z=await p7(U,L.client,Y,...w);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield z;const I=F;F=l7(z,W),Q=!!(F&&(!L.stopOnSameToken||F!==I))}return},"paginateOperation")},c1=Object.defineProperty,T7=Object.getOwnPropertyDescriptor,H7=Object.getOwnPropertyNames,A7=Object.prototype.hasOwnProperty,C=($,U)=>c1($,"name",{value:U,configurable:!0}),O7=($,U)=>{for(var G in U)c1($,G,{get:U[G],enumerable:!0})},C7=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of H7(U))if(!A7.call($,X)&&X!==G)c1($,X,{get:()=>U[X],enumerable:!(W=T7(U,X))||W.enumerable})}return $},f7=($)=>C7(c1({},"__esModule",{value:!0}),$),nW={};O7(nW,{DefaultIdentityProviderConfig:()=>h7,EXPIRATION_MS:()=>ZX,HttpApiKeyAuthSigner:()=>x7,HttpBearerAuthSigner:()=>v7,NoAuthSigner:()=>c7,RequestBuilder:()=>FX,createIsIdentityExpiredFunction:()=>XX,createPaginator:()=>QX,doesIdentityRequireRefresh:()=>LX,getHttpAuthSchemeEndpointRuleSetPlugin:()=>N7,getHttpAuthSchemePlugin:()=>P7,getHttpSigningPlugin:()=>k7,getSmithyContext:()=>_7,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>oW,httpAuthSchemeMiddleware:()=>FU,httpAuthSchemeMiddlewareOptions:()=>aW,httpSigningMiddleware:()=>tW,httpSigningMiddlewareOptions:()=>eW,isIdentityExpired:()=>y7,memoizeIdentityProvider:()=>u7,normalizeProvider:()=>d7,requestBuilder:()=>YX});zX.exports=f7(nW);var iW=k0();C(rW,"convertHttpAuthSchemesToMap");var FU=C(($,U)=>(G,W)=>async(X)=>{var Z;const L=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,W,X.input)),Y=rW($.httpAuthSchemes),w=iW.getSmithyContext(W),F=[];for(let Q of L){const z=Y.get(Q.schemeId);if(!z){F.push(`HttpAuthScheme \`${Q.schemeId}\` was not enabled for this service.`);continue}const I=z.identityProvider(await U.identityProviderConfigProvider($));if(!I){F.push(`HttpAuthScheme \`${Q.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:J={},signingProperties:K={}}=((Z=Q.propertiesExtractor)==null?void 0:Z.call(Q,$,W))||{};Q.identityProperties=Object.assign(Q.identityProperties||{},J),Q.signingProperties=Object.assign(Q.signingProperties||{},K),w.selectedHttpAuthScheme={httpAuthOption:Q,identity:await I(Q.identityProperties),signer:z.signer};break}if(!w.selectedHttpAuthScheme)throw new Error(F.join("\n"));return G(X)},"httpAuthSchemeMiddleware"),q7=G8(),oW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:q7.endpointMiddlewareOptions.name},N7=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(FU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),oW)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),j7=T$(),aW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:j7.serializerMiddlewareOption.name},P7=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G})=>({applyToStack:(W)=>{W.addRelativeTo(FU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:G}),aW)}}),"getHttpAuthSchemePlugin"),y1=i(),S7=C(($)=>(U)=>{throw U},"defaultErrorHandler"),D7=C(($,U)=>{},"defaultSuccessHandler"),tW=C(($)=>(U,G)=>async(W)=>{if(!y1.HttpRequest.isInstance(W.request))return U(W);const Z=iW.getSmithyContext(G).selectedHttpAuthScheme;if(!Z)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:L={}},identity:Y,signer:w}=Z,F=await U({...W,request:await w.sign(W.request,Y,L)}).catch((w.errorHandler||S7)(L));return(w.successHandler||D7)(F.response,L),F},"httpSigningMiddleware"),b7=mW(),eW={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:b7.retryMiddlewareOptions.name},k7=C(($)=>({applyToStack:(U)=>{U.addRelativeTo(tW($),eW)}}),"getHttpSigningPlugin"),$X=class ${constructor(U){this.authSchemes=new Map;for(let[G,W]of Object.entries(U))if(W!==void 0)this.authSchemes.set(G,W)}getIdentityProvider(U){return this.authSchemes.get(U)}};C($X,"DefaultIdentityProviderConfig");var h7=$X,v1=F0(),UX=class ${async sign(U,G,W){if(!W)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!W.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!W.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!G.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const X=y1.HttpRequest.clone(U);if(W.in===v1.HttpApiKeyAuthLocation.QUERY)X.query[W.name]=G.apiKey;else if(W.in===v1.HttpApiKeyAuthLocation.HEADER)X.headers[W.name]=W.scheme?`${W.scheme} ${G.apiKey}`:G.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+W.in+"`");return X}};C(UX,"HttpApiKeyAuthSigner");var x7=UX,GX=class ${async sign(U,G,W){const X=y1.HttpRequest.clone(U);if(!G.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return X.headers.Authorization=`Bearer ${G.token}`,X}};C(GX,"HttpBearerAuthSigner");var v7=GX,WX=class ${async sign(U,G,W){return U}};C(WX,"NoAuthSigner");var c7=WX,XX=C(($)=>(U)=>LX(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),ZX=300000,y7=XX(ZX),LX=C(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),u7=C(($,U,G)=>{if($===void 0)return;const W=typeof $!=="function"?async()=>Promise.resolve($):$;let X,Z,L,Y=!1;const w=C(async(F)=>{if(!Z)Z=W(F);try{X=await Z,L=!0,Y=!1}finally{Z=void 0}return X},"coalesceProvider");if(U===void 0)return async(F)=>{if(!L||(F==null?void 0:F.forceRefresh))X=await w(F);return X};return async(F)=>{if(!L||(F==null?void 0:F.forceRefresh))X=await w(F);if(Y)return X;if(!G(X))return Y=!0,X;if(U(X))return await w(F),X;return X}},"memoizeIdentityProvider"),_7=C(($)=>$[v1.SMITHY_CONTEXT_KEY]||($[v1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),d7=C(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider"),g7=q0();C(YX,"requestBuilder");var wX=class ${constructor(U,G){this.input=U,this.context=G,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:U,protocol:G="https",port:W,path:X}=await this.context.endpoint();this.path=X;for(let Z of this.resolvePathStack)Z(this.path);return new y1.HttpRequest({protocol:G,hostname:this.hostname||U,port:W,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(U){return this.hostname=U,this}bp(U){return this.resolvePathStack.push((G)=>{this.path=`${(G==null?void 0:G.endsWith("/"))?G.slice(0,-1):G||""}`+U}),this}p(U,G,W,X){return this.resolvePathStack.push((Z)=>{this.path=g7.resolvedPath(Z,this.input,U,G,W,X)}),this}h(U){return this.headers=U,this}q(U){return this.query=U,this}b(U){return this.body=U,this}m(U){return this.method=U,this}};C(wX,"RequestBuilder");var FX=wX,p7=C(async($,U,G,...W)=>{return await U.send(new $(G),...W)},"makePagedClientRequest");C(QX,"createPaginator");var l7=C(($,U)=>{let G=$;const W=U.split(".");for(let X of W){if(!G||typeof G!=="object")return;G=G[X]}return G},"get")});var wZ=E((RH,YZ)=>{var{defineProperty:$$,getOwnPropertyDescriptor:Cz,getOwnPropertyNames:fz}=Object,qz=Object.prototype.hasOwnProperty,Nz=($,U)=>$$($,"name",{value:U,configurable:!0}),jz=($,U)=>{for(var G in U)$$($,G,{get:U[G],enumerable:!0})},Pz=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of fz(U))if(!qz.call($,X)&&X!==G)$$($,X,{get:()=>U[X],enumerable:!(W=Cz(U,X))||W.enumerable})}return $},Sz=($)=>Pz($$({},"__esModule",{value:!0}),$),LZ={};jz(LZ,{emitWarningIfUnsupportedVersion:()=>Dz});YZ.exports=Sz(LZ);var ZZ=!1,Dz=Nz(($)=>{if($&&!ZZ&&parseInt($.substring(1,$.indexOf(".")))<18)ZZ=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
4
4
|
no longer support Node.js 16.x on January 6, 2025.
|
|
5
5
|
|
|
6
6
|
To continue receiving updates to AWS services, bug fixes, and security
|
|
7
7
|
updates please upgrade to a supported Node.js LTS version.
|
|
8
8
|
|
|
9
|
-
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var jZ=E((
|
|
9
|
+
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var jZ=E((KH,NZ)=>{var vU=function($){for(let U=0;U<8;U++)$[U]^=255;for(let U=7;U>-1;U--)if($[U]++,$[U]!==0)break},Z$=Object.defineProperty,bz=Object.getOwnPropertyDescriptor,kz=Object.getOwnPropertyNames,hz=Object.prototype.hasOwnProperty,S=($,U)=>Z$($,"name",{value:U,configurable:!0}),xz=($,U)=>{for(var G in U)Z$($,G,{get:U[G],enumerable:!0})},vz=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of kz(U))if(!hz.call($,X)&&X!==G)Z$($,X,{get:()=>U[X],enumerable:!(W=bz(U,X))||W.enumerable})}return $},cz=($)=>vz(Z$({},"__esModule",{value:!0}),$),JZ={};xz(JZ,{SignatureV4:()=>FI,clearCredentialCache:()=>$I,createScope:()=>W$,getCanonicalHeaders:()=>xU,getCanonicalQuery:()=>HZ,getPayloadHash:()=>X$,getSigningKey:()=>TZ,moveHeadersToQuery:()=>fZ,prepareRequest:()=>cU});NZ.exports=cz(JZ);var FZ=k0(),bU=G0(),yz="X-Amz-Algorithm",uz="X-Amz-Credential",RZ="X-Amz-Date",_z="X-Amz-SignedHeaders",dz="X-Amz-Expires",KZ="X-Amz-Signature",EZ="X-Amz-Security-Token",MZ="authorization",BZ=RZ.toLowerCase(),gz="date",pz=[MZ,BZ,gz],lz=KZ.toLowerCase(),hU="x-amz-content-sha256",sz=EZ.toLowerCase(),mz={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},nz=/^proxy-/,iz=/^sec-/,kU="AWS4-HMAC-SHA256",rz="AWS4-HMAC-SHA256-PAYLOAD",oz="UNSIGNED-PAYLOAD",az=50,VZ="aws4_request",tz=604800,L0=P6(),ez=G0(),b0={},G$=[],W$=S(($,U,G)=>`${$}/${U}/${G}/${VZ}`,"createScope"),TZ=S(async($,U,G,W,X)=>{const Z=await QZ($,U.secretAccessKey,U.accessKeyId),L=`${G}:${W}:${X}:${L0.toHex(Z)}:${U.sessionToken}`;if(L in b0)return b0[L];G$.push(L);while(G$.length>az)delete b0[G$.shift()];let Y=`AWS4${U.secretAccessKey}`;for(let w of[G,W,X,VZ])Y=await QZ($,Y,w);return b0[L]=Y},"getSigningKey"),$I=S(()=>{G$.length=0,Object.keys(b0).forEach(($)=>{delete b0[$]})},"clearCredentialCache"),QZ=S(($,U,G)=>{const W=new $(U);return W.update(ez.toUint8Array(G)),W.digest()},"hmac"),xU=S(({headers:$},U,G)=>{const W={};for(let X of Object.keys($).sort()){if($[X]==null)continue;const Z=X.toLowerCase();if(Z in mz||(U==null?void 0:U.has(Z))||nz.test(Z)||iz.test(Z)){if(!G||G&&!G.has(Z))continue}W[Z]=$[X].trim().replace(/\s+/g," ")}return W},"getCanonicalHeaders"),e0=i4(),HZ=S(({query:$={}})=>{const U=[],G={};for(let W of Object.keys($).sort()){if(W.toLowerCase()===lz)continue;U.push(W);const X=$[W];if(typeof X==="string")G[W]=`${e0.escapeUri(W)}=${e0.escapeUri(X)}`;else if(Array.isArray(X))G[W]=X.slice(0).reduce((Z,L)=>Z.concat([`${e0.escapeUri(W)}=${e0.escapeUri(L)}`]),[]).sort().join("&")}return U.map((W)=>G[W]).filter((W)=>W).join("&")},"getCanonicalQuery"),UI=x$(),GI=G0(),X$=S(async({headers:$,body:U},G)=>{for(let W of Object.keys($))if(W.toLowerCase()===hU)return $[W];if(U==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof U==="string"||ArrayBuffer.isView(U)||UI.isArrayBuffer(U)){const W=new G;return W.update(GI.toUint8Array(U)),L0.toHex(await W.digest())}return oz},"getPayloadHash"),zZ=G0(),AZ=class ${format(U){const G=[];for(let Z of Object.keys(U)){const L=zZ.fromUtf8(Z);G.push(Uint8Array.from([L.byteLength]),L,this.formatHeaderValue(U[Z]))}const W=new Uint8Array(G.reduce((Z,L)=>Z+L.byteLength,0));let X=0;for(let Z of G)W.set(Z,X),X+=Z.byteLength;return W}formatHeaderValue(U){switch(U.type){case"boolean":return Uint8Array.from([U.value?0:1]);case"byte":return Uint8Array.from([2,U.value]);case"short":const G=new DataView(new ArrayBuffer(3));return G.setUint8(0,3),G.setInt16(1,U.value,!1),new Uint8Array(G.buffer);case"integer":const W=new DataView(new ArrayBuffer(5));return W.setUint8(0,4),W.setInt32(1,U.value,!1),new Uint8Array(W.buffer);case"long":const X=new Uint8Array(9);return X[0]=5,X.set(U.value.bytes,1),X;case"binary":const Z=new DataView(new ArrayBuffer(3+U.value.byteLength));Z.setUint8(0,6),Z.setUint16(1,U.value.byteLength,!1);const L=new Uint8Array(Z.buffer);return L.set(U.value,3),L;case"string":const Y=zZ.fromUtf8(U.value),w=new DataView(new ArrayBuffer(3+Y.byteLength));w.setUint8(0,7),w.setUint16(1,Y.byteLength,!1);const F=new Uint8Array(w.buffer);return F.set(Y,3),F;case"timestamp":const Q=new Uint8Array(9);return Q[0]=8,Q.set(ZI.fromNumber(U.value.valueOf()).bytes,1),Q;case"uuid":if(!XI.test(U.value))throw new Error(`Invalid UUID received: ${U.value}`);const z=new Uint8Array(17);return z[0]=9,z.set(L0.fromHex(U.value.replace(/\-/g,"")),1),z}}};S(AZ,"HeaderFormatter");var WI=AZ,XI=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,OZ=class ${constructor(U){if(this.bytes=U,U.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(U){if(U>9223372036854776000||U<-9223372036854776000)throw new Error(`${U} is too large (or, if negative, too small) to represent as an Int64`);const G=new Uint8Array(8);for(let W=7,X=Math.abs(Math.round(U));W>-1&&X>0;W--,X/=256)G[W]=X;if(U<0)vU(G);return new $(G)}valueOf(){const U=this.bytes.slice(0),G=U[0]&128;if(G)vU(U);return parseInt(L0.toHex(U),16)*(G?-1:1)}toString(){return String(this.valueOf())}};S(OZ,"Int64");var ZI=OZ;S(vU,"negate");var LI=S(($,U)=>{$=$.toLowerCase();for(let G of Object.keys(U))if($===G.toLowerCase())return!0;return!1},"hasHeader"),CZ=i(),fZ=S(($,U={})=>{var G;const{headers:W,query:X={}}=CZ.HttpRequest.clone($);for(let Z of Object.keys(W)){const L=Z.toLowerCase();if(L.slice(0,6)==="x-amz-"&&!((G=U.unhoistableHeaders)==null?void 0:G.has(L)))X[Z]=W[Z],delete W[Z]}return{...$,headers:W,query:X}},"moveHeadersToQuery"),cU=S(($)=>{$=CZ.HttpRequest.clone($);for(let U of Object.keys($.headers))if(pz.indexOf(U.toLowerCase())>-1)delete $.headers[U];return $},"prepareRequest"),YI=S(($)=>wI($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),wI=S(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),qZ=class ${constructor({applyChecksum:U,credentials:G,region:W,service:X,sha256:Z,uriEscapePath:L=!0}){this.headerFormatter=new WI,this.service=X,this.sha256=Z,this.uriEscapePath=L,this.applyChecksum=typeof U==="boolean"?U:!0,this.regionProvider=FZ.normalizeProvider(W),this.credentialProvider=FZ.normalizeProvider(G)}async presign(U,G={}){const{signingDate:W=new Date,expiresIn:X=3600,unsignableHeaders:Z,unhoistableHeaders:L,signableHeaders:Y,signingRegion:w,signingService:F}=G,Q=await this.credentialProvider();this.validateResolvedCredentials(Q);const z=w??await this.regionProvider(),{longDate:I,shortDate:J}=U$(W);if(X>tz)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const K=W$(J,z,F??this.service),T=fZ(cU(U),{unhoistableHeaders:L});if(Q.sessionToken)T.query[EZ]=Q.sessionToken;T.query[yz]=kU,T.query[uz]=`${Q.accessKeyId}/${K}`,T.query[RZ]=I,T.query[dz]=X.toString(10);const M=xU(T,Z,Y);return T.query[_z]=IZ(M),T.query[KZ]=await this.getSignature(I,K,this.getSigningKey(Q,z,J,F),this.createCanonicalRequest(T,M,await X$(U,this.sha256))),T}async sign(U,G){if(typeof U==="string")return this.signString(U,G);else if(U.headers&&U.payload)return this.signEvent(U,G);else if(U.message)return this.signMessage(U,G);else return this.signRequest(U,G)}async signEvent({headers:U,payload:G},{signingDate:W=new Date,priorSignature:X,signingRegion:Z,signingService:L}){const Y=Z??await this.regionProvider(),{shortDate:w,longDate:F}=U$(W),Q=W$(w,Y,L??this.service),z=await X$({headers:{},body:G},this.sha256),I=new this.sha256;I.update(U);const J=L0.toHex(await I.digest()),K=[rz,F,Q,X,J,z].join("\n");return this.signString(K,{signingDate:W,signingRegion:Y,signingService:L})}async signMessage(U,{signingDate:G=new Date,signingRegion:W,signingService:X}){return this.signEvent({headers:this.headerFormatter.format(U.message.headers),payload:U.message.body},{signingDate:G,signingRegion:W,signingService:X,priorSignature:U.priorSignature}).then((L)=>{return{message:U.message,signature:L}})}async signString(U,{signingDate:G=new Date,signingRegion:W,signingService:X}={}){const Z=await this.credentialProvider();this.validateResolvedCredentials(Z);const L=W??await this.regionProvider(),{shortDate:Y}=U$(G),w=new this.sha256(await this.getSigningKey(Z,L,Y,X));return w.update(bU.toUint8Array(U)),L0.toHex(await w.digest())}async signRequest(U,{signingDate:G=new Date,signableHeaders:W,unsignableHeaders:X,signingRegion:Z,signingService:L}={}){const Y=await this.credentialProvider();this.validateResolvedCredentials(Y);const w=Z??await this.regionProvider(),F=cU(U),{longDate:Q,shortDate:z}=U$(G),I=W$(z,w,L??this.service);if(F.headers[BZ]=Q,Y.sessionToken)F.headers[sz]=Y.sessionToken;const J=await X$(F,this.sha256);if(!LI(hU,F.headers)&&this.applyChecksum)F.headers[hU]=J;const K=xU(F,X,W),T=await this.getSignature(Q,I,this.getSigningKey(Y,w,z,L),this.createCanonicalRequest(F,K,J));return F.headers[MZ]=`${kU} Credential=${Y.accessKeyId}/${I}, SignedHeaders=${IZ(K)}, Signature=${T}`,F}createCanonicalRequest(U,G,W){const X=Object.keys(G).sort();return`${U.method}
|
|
10
10
|
${this.getCanonicalPath(U)}
|
|
11
11
|
${HZ(U)}
|
|
12
12
|
${X.map((Z)=>`${Z}:${G[Z]}`).join("\n")}
|
|
13
13
|
|
|
14
14
|
${X.join(";")}
|
|
15
|
-
${W}`}async createStringToSign(U,G,W){const X=new this.sha256;X.update(
|
|
15
|
+
${W}`}async createStringToSign(U,G,W){const X=new this.sha256;X.update(bU.toUint8Array(W));const Z=await X.digest();return`${kU}
|
|
16
16
|
${U}
|
|
17
17
|
${G}
|
|
18
|
-
${L0.toHex(Z)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){const G=[];for(let Z of U.split("/")){if((Z==null?void 0:Z.length)===0)continue;if(Z===".")continue;if(Z==="..")G.pop();else G.push(Z)}const W=`${(U==null?void 0:U.startsWith("/"))?"/":""}${G.join("/")}${G.length>0&&(U==null?void 0:U.endsWith("/"))?"/":""}`;return e0.escapeUri(W).replace(/%2F/g,"/")}return U}async getSignature(U,G,W,X){const Z=await this.createStringToSign(U,G,X),L=new this.sha256(await W);return L.update(hU.toUint8Array(Z)),L0.toHex(await L.digest())}getSigningKey(U,G,W,X){return TZ(this.sha256,U,W,G,X||this.service)}validateResolvedCredentials(U){if(typeof U!=="object"||typeof U.accessKeyId!=="string"||typeof U.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};S(qZ,"SignatureV4");var zI=qZ,U$=S(($)=>{const U=FI($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),IZ=S(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var yZ=E((BH,cZ)=>{var{defineProperty:L$,getOwnPropertyDescriptor:II,getOwnPropertyNames:JI}=Object,RI=Object.prototype.hasOwnProperty,h=($,U)=>L$($,"name",{value:U,configurable:!0}),KI=($,U)=>{for(var G in U)L$($,G,{get:U[G],enumerable:!0})},EI=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of JI(U))if(!RI.call($,X)&&X!==G)L$($,X,{get:()=>U[X],enumerable:!(W=II(U,X))||W.enumerable})}return $},MI=($)=>EI(L$({},"__esModule",{value:!0}),$),bZ={};KI(bZ,{AWSSDKSigV4Signer:()=>HI,AwsSdkSigV4ASigner:()=>OI,AwsSdkSigV4Signer:()=>gU,NODE_SIGV4A_CONFIG_OPTIONS:()=>qI,resolveAWSSDKSigV4Config:()=>NI,resolveAwsSdkSigV4AConfig:()=>fI,resolveAwsSdkSigV4Config:()=>vZ,validateSigningProperties:()=>dU});cZ.exports=MI(bZ);var BI=i(),VI=i(),PZ=h(($)=>{var U,G;return VI.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((G=$.headers)==null?void 0:G.Date):void 0},"getDateHeader"),_U=h(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),TI=h(($,U)=>Math.abs(_U(U).getTime()-$)>=300000,"isClockSkewed"),SZ=h(($,U)=>{const G=Date.parse($);if(TI(G,U))return G-Date.now();return U},"getUpdatedSystemClockOffset"),$1=h(($,U)=>{if(!U)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return U},"throwSigningPropertyError"),dU=h(async($)=>{var U,G,W;const X=$1("context",$.context),Z=$1("config",$.config),L=(W=(G=(U=X.endpointV2)==null?void 0:U.properties)==null?void 0:G.authSchemes)==null?void 0:W[0],w=await $1("signer",Z.signer)(L),F=$==null?void 0:$.signingRegion,Q=$==null?void 0:$.signingRegionSet,z=$==null?void 0:$.signingName;return{config:Z,signer:w,signingRegion:F,signingRegionSet:Q,signingName:z}},"validateSigningProperties"),hZ=class ${async sign(U,G,W){var X;if(!BI.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const Z=await dU(W),{config:L,signer:Y}=Z;let{signingRegion:w,signingName:F}=Z;const Q=W.context;if(((X=Q==null?void 0:Q.authSchemes)==null?void 0:X.length)??0>1){const[I,J]=Q.authSchemes;if((I==null?void 0:I.name)==="sigv4a"&&(J==null?void 0:J.name)==="sigv4")w=(J==null?void 0:J.signingRegion)??w,F=(J==null?void 0:J.signingName)??F}return await Y.sign(U,{signingDate:_U(L.systemClockOffset),signingRegion:w,signingService:F})}errorHandler(U){return(G)=>{const W=G.ServerTime??PZ(G.$response);if(W){const X=$1("config",U.config),Z=X.systemClockOffset;if(X.systemClockOffset=SZ(W,X.systemClockOffset),X.systemClockOffset!==Z&&G.$metadata)G.$metadata.clockSkewCorrected=!0}throw G}}successHandler(U,G){const W=PZ(U);if(W){const X=$1("config",G.config);X.systemClockOffset=SZ(W,X.systemClockOffset)}}};h(hZ,"AwsSdkSigV4Signer");var gU=hZ,HI=gU,AI=i(),xZ=class $ extends gU{async sign(U,G,W){var X;if(!AI.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:Z,signer:L,signingRegion:Y,signingRegionSet:w,signingName:F}=await dU(W),z=(await((X=Z.sigv4aSigningRegionSet)==null?void 0:X.call(Z))??w??[Y]).join(",");return await L.sign(U,{signingDate:_U(Z.systemClockOffset),signingRegion:z,signingService:F})}};h(xZ,"AwsSdkSigV4ASigner");var OI=xZ,CI=IU(),DZ=F$(),fI=h(($)=>{return $.sigv4aSigningRegionSet=CI.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),qI={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new DZ.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector($){if($.sigv4a_signing_region_set)return($.sigv4a_signing_region_set??"").split(",").map((U)=>U.trim());throw new DZ.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},B0=IU(),kZ=jZ(),vZ=h(($)=>{let U;if($.credentials)U=B0.memoizeIdentityProvider($.credentials,B0.isIdentityExpired,B0.doesIdentityRequireRefresh);if(!U)if($.credentialDefaultProvider)U=B0.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else U=h(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:G=!0,systemClockOffset:W=$.systemClockOffset||0,sha256:X}=$;let Z;if($.signer)Z=B0.normalizeProvider($.signer);else if($.regionInfoProvider)Z=h(()=>B0.normalizeProvider($.region)().then(async(L)=>[await $.regionInfoProvider(L,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},L]).then(([L,Y])=>{const{signingRegion:w,signingService:F}=L;$.signingRegion=$.signingRegion||w||Y,$.signingName=$.signingName||F||$.serviceId;const Q={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:X,uriEscapePath:G};return new($.signerConstructor||kZ.SignatureV4)(Q)}),"signer");else Z=h(async(L)=>{L=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await B0.normalizeProvider($.region)(),properties:{}},L);const{signingRegion:Y,signingName:w}=L;$.signingRegion=$.signingRegion||Y,$.signingName=$.signingName||w||$.serviceId;const F={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:X,uriEscapePath:G};return new($.signerConstructor||kZ.SignatureV4)(F)},"signer");return{...$,systemClockOffset:W,signingEscapePath:G,credentials:U,signer:Z}},"resolveAwsSdkSigV4Config"),NI=vZ});var Y$=E((kI)=>{var jI=":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",uZ="[: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]["+jI+"]*",PI=new RegExp("^"+uZ+"$"),SI=function($,U){const G=[];let W=U.exec($);while(W){const X=[];X.startIndex=U.lastIndex-W[0].length;const Z=W.length;for(let L=0;L<Z;L++)X.push(W[L]);G.push(X),W=U.exec($)}return G},DI=function($){const U=PI.exec($);return!(U===null||typeof U==="undefined")};kI.isExist=function($){return typeof $!=="undefined"};kI.isEmptyObject=function($){return Object.keys($).length===0};kI.merge=function($,U,G){if(U){const W=Object.keys(U),X=W.length;for(let Z=0;Z<X;Z++)if(G==="strict")$[W[Z]]=[U[W[Z]]];else $[W[Z]]=U[W[Z]]}};kI.getValue=function($){if(kI.isExist($))return $;else return""};kI.isName=DI;kI.getAllMatches=SI;kI.nameRegexp=uZ});var lU=E((iI)=>{var dZ=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},gZ=function($,U){const G=U;for(;U<$.length;U++)if($[U]=="?"||$[U]==" "){const W=$.substr(G,U-G);if(U>5&&W==="xml")return j("InvalidXml","XML declaration allowed only at the start of the document.",b($,U));else if($[U]=="?"&&$[U+1]==">"){U++;break}else continue}return U},pZ=function($,U){if($.length>U+5&&$[U+1]==="-"&&$[U+2]==="-"){for(U+=3;U<$.length;U++)if($[U]==="-"&&$[U+1]==="-"&&$[U+2]===">"){U+=2;break}}else if($.length>U+8&&$[U+1]==="D"&&$[U+2]==="O"&&$[U+3]==="C"&&$[U+4]==="T"&&$[U+5]==="Y"&&$[U+6]==="P"&&$[U+7]==="E"){let G=1;for(U+=8;U<$.length;U++)if($[U]==="<")G++;else if($[U]===">"){if(G--,G===0)break}}else if($.length>U+9&&$[U+1]==="["&&$[U+2]==="C"&&$[U+3]==="D"&&$[U+4]==="A"&&$[U+5]==="T"&&$[U+6]==="A"&&$[U+7]==="["){for(U+=8;U<$.length;U++)if($[U]==="]"&&$[U+1]==="]"&&$[U+2]===">"){U+=2;break}}return U},gI=function($,U){let G="",W="",X=!1;for(;U<$.length;U++){if($[U]===_I||$[U]===dI)if(W==="")W=$[U];else if(W!==$[U]);else W="";else if($[U]===">"){if(W===""){X=!0;break}}G+=$[U]}if(W!=="")return!1;return{value:G,index:U,tagClosed:X}},lZ=function($,U){const G=pU.getAllMatches($,pI),W={};for(let X=0;X<G.length;X++){if(G[X][1].length===0)return j("InvalidAttr","Attribute '"+G[X][2]+"' has no space in starting.",U1(G[X]));else if(G[X][3]!==void 0&&G[X][4]===void 0)return j("InvalidAttr","Attribute '"+G[X][2]+"' is without value.",U1(G[X]));else if(G[X][3]===void 0&&!U.allowBooleanAttributes)return j("InvalidAttr","boolean attribute '"+G[X][2]+"' is not allowed.",U1(G[X]));const Z=G[X][2];if(!mI(Z))return j("InvalidAttr","Attribute '"+Z+"' is an invalid name.",U1(G[X]));if(!W.hasOwnProperty(Z))W[Z]=1;else return j("InvalidAttr","Attribute '"+Z+"' is repeated.",U1(G[X]))}return!0},lI=function($,U){let G=/\d/;if($[U]==="x")U++,G=/[\da-fA-F]/;for(;U<$.length;U++){if($[U]===";")return U;if(!$[U].match(G))break}return-1},sI=function($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,lI($,U);let G=0;for(;U<$.length;U++,G++){if($[U].match(/\w/)&&G<20)continue;if($[U]===";")break;return-1}return U},j=function($,U,G){return{err:{code:$,msg:U,line:G.line||G,col:G.col}}},mI=function($){return pU.isName($)},nI=function($){return pU.isName($)},b=function($,U){const G=$.substring(0,U).split(/\r?\n/);return{line:G.length,col:G[G.length-1].length+1}},U1=function($){return $.startIndex+$[1].length},pU=Y$(),uI={allowBooleanAttributes:!1,unpairedTags:[]};iI.validate=function($,U){U=Object.assign({},uI,U);const G=[];let W=!1,X=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let Z=0;Z<$.length;Z++)if($[Z]==="<"&&$[Z+1]==="?"){if(Z+=2,Z=gZ($,Z),Z.err)return Z}else if($[Z]==="<"){let L=Z;if(Z++,$[Z]==="!"){Z=pZ($,Z);continue}else{let Y=!1;if($[Z]==="/")Y=!0,Z++;let w="";for(;Z<$.length&&$[Z]!==">"&&$[Z]!==" "&&$[Z]!=="\t"&&$[Z]!=="\n"&&$[Z]!=="\r";Z++)w+=$[Z];if(w=w.trim(),w[w.length-1]==="/")w=w.substring(0,w.length-1),Z--;if(!nI(w)){let z;if(w.trim().length===0)z="Invalid space after '<'.";else z="Tag '"+w+"' is an invalid name.";return j("InvalidTag",z,b($,Z))}const F=gI($,Z);if(F===!1)return j("InvalidAttr","Attributes for '"+w+"' have open quote.",b($,Z));let Q=F.value;if(Z=F.index,Q[Q.length-1]==="/"){const z=Z-Q.length;Q=Q.substring(0,Q.length-1);const I=lZ(Q,U);if(I===!0)W=!0;else return j(I.err.code,I.err.msg,b($,z+I.err.line))}else if(Y)if(!F.tagClosed)return j("InvalidTag","Closing tag '"+w+"' doesn't have proper closing.",b($,Z));else if(Q.trim().length>0)return j("InvalidTag","Closing tag '"+w+"' can't have attributes or invalid starting.",b($,L));else if(G.length===0)return j("InvalidTag","Closing tag '"+w+"' has not been opened.",b($,L));else{const z=G.pop();if(w!==z.tagName){let I=b($,z.tagStartPos);return j("InvalidTag","Expected closing tag '"+z.tagName+"' (opened in line "+I.line+", col "+I.col+") instead of closing tag '"+w+"'.",b($,L))}if(G.length==0)X=!0}else{const z=lZ(Q,U);if(z!==!0)return j(z.err.code,z.err.msg,b($,Z-Q.length+z.err.line));if(X===!0)return j("InvalidXml","Multiple possible root nodes found.",b($,Z));else if(U.unpairedTags.indexOf(w)!==-1);else G.push({tagName:w,tagStartPos:L});W=!0}for(Z++;Z<$.length;Z++)if($[Z]==="<")if($[Z+1]==="!"){Z++,Z=pZ($,Z);continue}else if($[Z+1]==="?"){if(Z=gZ($,++Z),Z.err)return Z}else break;else if($[Z]==="&"){const z=sI($,Z);if(z==-1)return j("InvalidChar","char '&' is not expected.",b($,Z));Z=z}else if(X===!0&&!dZ($[Z]))return j("InvalidXml","Extra text at the end",b($,Z));if($[Z]==="<")Z--}}else{if(dZ($[Z]))continue;return j("InvalidChar","char '"+$[Z]+"' is not expected.",b($,Z))}if(!W)return j("InvalidXml","Start tag expected.",1);else if(G.length==1)return j("InvalidTag","Unclosed tag '"+G[0].tagName+"'.",b($,G[0].tagStartPos));else if(G.length>0)return j("InvalidXml","Invalid '"+JSON.stringify(G.map((Z)=>Z.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var _I='"',dI="'",pI=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var mZ=E((aI)=>{var sZ={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($,U){return U},attributeValueProcessor:function($,U){return U},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function($,U,G){return $}},oI=function($){return Object.assign({},sZ,$)};aI.buildOptions=oI;aI.defaultOptions=sZ});var rZ=E((AH,iZ)=>{class nZ{constructor($){this.tagname=$,this.child=[],this[":@"]={}}add($,U){if($==="__proto__")$="#__proto__";this.child.push({[$]:U})}addChild($){if($.tagname==="__proto__")$.tagname="#__proto__";if($[":@"]&&Object.keys($[":@"]).length>0)this.child.push({[$.tagname]:$.child,[":@"]:$[":@"]});else this.child.push({[$.tagname]:$.child})}}iZ.exports=nZ});var aZ=E((OH,oZ)=>{var UJ=function($,U){const G={};if($[U+3]==="O"&&$[U+4]==="C"&&$[U+5]==="T"&&$[U+6]==="Y"&&$[U+7]==="P"&&$[U+8]==="E"){U=U+9;let W=1,X=!1,Z=!1,L="";for(;U<$.length;U++)if($[U]==="<"&&!Z){if(X&&XJ($,U)){if(U+=7,[entityName,val,U]=GJ($,U+1),val.indexOf("&")===-1)G[wJ(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(X&&ZJ($,U))U+=8;else if(X&&LJ($,U))U+=8;else if(X&&YJ($,U))U+=9;else if(WJ)Z=!0;else throw new Error("Invalid DOCTYPE");W++,L=""}else if($[U]===">"){if(Z){if($[U-1]==="-"&&$[U-2]==="-")Z=!1,W--}else W--;if(W===0)break}else if($[U]==="[")X=!0;else L+=$[U];if(W!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:G,i:U}},GJ=function($,U){let G="";for(;U<$.length&&($[U]!=="'"&&$[U]!=='"');U++)G+=$[U];if(G=G.trim(),G.indexOf(" ")!==-1)throw new Error("External entites are not supported");const W=$[U++];let X="";for(;U<$.length&&$[U]!==W;U++)X+=$[U];return[G,X,U]},WJ=function($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1},XJ=function($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="N"&&$[U+4]==="T"&&$[U+5]==="I"&&$[U+6]==="T"&&$[U+7]==="Y")return!0;return!1},ZJ=function($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="L"&&$[U+4]==="E"&&$[U+5]==="M"&&$[U+6]==="E"&&$[U+7]==="N"&&$[U+8]==="T")return!0;return!1},LJ=function($,U){if($[U+1]==="!"&&$[U+2]==="A"&&$[U+3]==="T"&&$[U+4]==="T"&&$[U+5]==="L"&&$[U+6]==="I"&&$[U+7]==="S"&&$[U+8]==="T")return!0;return!1},YJ=function($,U){if($[U+1]==="!"&&$[U+2]==="N"&&$[U+3]==="O"&&$[U+4]==="T"&&$[U+5]==="A"&&$[U+6]==="T"&&$[U+7]==="I"&&$[U+8]==="O"&&$[U+9]==="N")return!0;return!1},wJ=function($){if($J.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},$J=Y$();oZ.exports=UJ});var eZ=E((CH,tZ)=>{var IJ=function($,U={}){if(U=Object.assign({},zJ,U),!$||typeof $!=="string")return $;let G=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(G))return $;else if(U.hex&&FJ.test(G))return Number.parseInt(G,16);else{const W=QJ.exec(G);if(W){const X=W[1],Z=W[2];let L=JJ(W[3]);const Y=W[4]||W[6];if(!U.leadingZeros&&Z.length>0&&X&&G[2]!==".")return $;else if(!U.leadingZeros&&Z.length>0&&!X&&G[1]!==".")return $;else{const w=Number(G),F=""+w;if(F.search(/[eE]/)!==-1)if(U.eNotation)return w;else return $;else if(Y)if(U.eNotation)return w;else return $;else if(G.indexOf(".")!==-1)if(F==="0"&&L==="")return w;else if(F===L)return w;else if(X&&F==="-"+L)return w;else return $;if(Z)if(L===F)return w;else if(X+L===F)return w;else return $;if(G===F)return w;else if(G===X+F)return w;return $}}else return $}},JJ=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},FJ=/^[-+]?0x[a-fA-F0-9]+$/,QJ=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var zJ={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};tZ.exports=IJ});var WL=E((fH,GL)=>{var EJ=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];this.lastEntities[W]={regex:new RegExp("&"+W+";","g"),val:$[W]}}},MJ=function($,U,G,W,X,Z,L){if($!==void 0){if(this.options.trimValues&&!W)$=$.trim();if($.length>0){if(!L)$=this.replaceEntitiesValue($);const Y=this.options.tagValueProcessor(U,$,G,X,Z);if(Y===null||Y===void 0)return $;else if(typeof Y!==typeof $||Y!==$)return Y;else if(this.options.trimValues)return mU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return mU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},BJ=function($){if(this.options.removeNSPrefix){const U=$.split(":"),G=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=G+U[1]}return $},TJ=function($,U,G){if(!this.options.ignoreAttributes&&typeof $==="string"){const W=$L.getAllMatches($,VJ),X=W.length,Z={};for(let L=0;L<X;L++){const Y=this.resolveNameSpace(W[L][1]);let w=W[L][4],F=this.options.attributeNamePrefix+Y;if(Y.length){if(this.options.transformAttributeName)F=this.options.transformAttributeName(F);if(F==="__proto__")F="#__proto__";if(w!==void 0){if(this.options.trimValues)w=w.trim();w=this.replaceEntitiesValue(w);const Q=this.options.attributeValueProcessor(Y,w,U);if(Q===null||Q===void 0)Z[F]=w;else if(typeof Q!==typeof w||Q!==w)Z[F]=Q;else Z[F]=mU(w,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)Z[F]=!0}}if(!Object.keys(Z).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=Z,L}return Z}},AJ=function($,U,G){const W=this.options.updateTag(U.tagname,G,U[":@"]);if(W===!1);else if(typeof W==="string")U.tagname=W,$.addChild(U);else $.addChild(U)},CJ=function($,U,G,W){if($){if(W===void 0)W=Object.keys(U.child).length===0;if($=this.parseTextData($,U.tagname,G,!1,U[":@"]?Object.keys(U[":@"]).length!==0:!1,W),$!==void 0&&$!=="")U.add(this.options.textNodeName,$);$=""}return $},fJ=function($,U,G){const W="*."+G;for(let X in $){const Z=$[X];if(W===Z||U===Z)return!0}return!1},qJ=function($,U,G=">"){let W,X="";for(let Z=U;Z<$.length;Z++){let L=$[Z];if(W){if(L===W)W=""}else if(L==='"'||L==="'")W=L;else if(L===G[0])if(G[1]){if($[Z+1]===G[1])return{data:X,index:Z}}else return{data:X,index:Z};else if(L==="\t")L=" ";X+=L}},V0=function($,U,G,W){const X=$.indexOf(U,G);if(X===-1)throw new Error(W);else return X+U.length-1},sU=function($,U,G,W=">"){const X=qJ($,U+1,W);if(!X)return;let Z=X.data;const L=X.index,Y=Z.search(/\s/);let w=Z,F=!0;if(Y!==-1)w=Z.substring(0,Y),Z=Z.substring(Y+1).trimStart();const Q=w;if(G){const z=w.indexOf(":");if(z!==-1)w=w.substr(z+1),F=w!==X.data.substr(z+1)}return{tagName:w,tagExp:Z,closeIndex:L,attrExpPresent:F,rawTagName:Q}},NJ=function($,U,G){const W=G;let X=1;for(;G<$.length;G++)if($[G]==="<")if($[G+1]==="/"){const Z=V0($,">",G,`${U} is not closed`);if($.substring(G+2,Z).trim()===U){if(X--,X===0)return{tagContent:$.substring(W,G),i:Z}}G=Z}else if($[G+1]==="?")G=V0($,"?>",G+1,"StopNode is not closed.");else if($.substr(G+1,3)==="!--")G=V0($,"-->",G+3,"StopNode is not closed.");else if($.substr(G+1,2)==="![")G=V0($,"]]>",G,"StopNode is not closed.")-2;else{const Z=sU($,G,">");if(Z){if((Z&&Z.tagName)===U&&Z.tagExp[Z.tagExp.length-1]!=="/")X++;G=Z.closeIndex}}},mU=function($,U,G){if(U&&typeof $==="string"){const W=$.trim();if(W==="true")return!0;else if(W==="false")return!1;else return KJ($,G)}else if($L.isExist($))return $;else return""},$L=Y$(),G1=rZ(),RJ=aZ(),KJ=eZ();class UL{constructor($){this.options=$,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(U,G)=>String.fromCharCode(Number.parseInt(G,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(U,G)=>String.fromCharCode(Number.parseInt(G,16))}},this.addExternalEntities=EJ,this.parseXml=HJ,this.parseTextData=MJ,this.resolveNameSpace=BJ,this.buildAttributesMap=TJ,this.isItStopNode=fJ,this.replaceEntitiesValue=OJ,this.readStopNodeData=NJ,this.saveTextToParentTag=CJ,this.addChild=AJ}}var VJ=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),HJ=function($){$=$.replace(/\r\n?/g,"\n");const U=new G1("!xml");let G=U,W="",X="";for(let Z=0;Z<$.length;Z++)if($[Z]==="<")if($[Z+1]==="/"){const Y=V0($,">",Z,"Closing Tag is not closed.");let w=$.substring(Z+2,Y).trim();if(this.options.removeNSPrefix){const z=w.indexOf(":");if(z!==-1)w=w.substr(z+1)}if(this.options.transformTagName)w=this.options.transformTagName(w);if(G)W=this.saveTextToParentTag(W,G,X);const F=X.substring(X.lastIndexOf(".")+1);if(w&&this.options.unpairedTags.indexOf(w)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${w}>`);let Q=0;if(F&&this.options.unpairedTags.indexOf(F)!==-1)Q=X.lastIndexOf(".",X.lastIndexOf(".")-1),this.tagsNodeStack.pop();else Q=X.lastIndexOf(".");X=X.substring(0,Q),G=this.tagsNodeStack.pop(),W="",Z=Y}else if($[Z+1]==="?"){let Y=sU($,Z,!1,"?>");if(!Y)throw new Error("Pi Tag is not closed.");if(W=this.saveTextToParentTag(W,G,X),this.options.ignoreDeclaration&&Y.tagName==="?xml"||this.options.ignorePiTags);else{const w=new G1(Y.tagName);if(w.add(this.options.textNodeName,""),Y.tagName!==Y.tagExp&&Y.attrExpPresent)w[":@"]=this.buildAttributesMap(Y.tagExp,X,Y.tagName);this.addChild(G,w,X)}Z=Y.closeIndex+1}else if($.substr(Z+1,3)==="!--"){const Y=V0($,"-->",Z+4,"Comment is not closed.");if(this.options.commentPropName){const w=$.substring(Z+4,Y-2);W=this.saveTextToParentTag(W,G,X),G.add(this.options.commentPropName,[{[this.options.textNodeName]:w}])}Z=Y}else if($.substr(Z+1,2)==="!D"){const Y=RJ($,Z);this.docTypeEntities=Y.entities,Z=Y.i}else if($.substr(Z+1,2)==="!["){const Y=V0($,"]]>",Z,"CDATA is not closed.")-2,w=$.substring(Z+9,Y);W=this.saveTextToParentTag(W,G,X);let F=this.parseTextData(w,G.tagname,X,!0,!1,!0,!0);if(F==null)F="";if(this.options.cdataPropName)G.add(this.options.cdataPropName,[{[this.options.textNodeName]:w}]);else G.add(this.options.textNodeName,F);Z=Y+2}else{let Y=sU($,Z,this.options.removeNSPrefix),w=Y.tagName;const F=Y.rawTagName;let{tagExp:Q,attrExpPresent:z,closeIndex:I}=Y;if(this.options.transformTagName)w=this.options.transformTagName(w);if(G&&W){if(G.tagname!=="!xml")W=this.saveTextToParentTag(W,G,X,!1)}const J=G;if(J&&this.options.unpairedTags.indexOf(J.tagname)!==-1)G=this.tagsNodeStack.pop(),X=X.substring(0,X.lastIndexOf("."));if(w!==U.tagname)X+=X?"."+w:w;if(this.isItStopNode(this.options.stopNodes,X,w)){let K="";if(Q.length>0&&Q.lastIndexOf("/")===Q.length-1){if(w[w.length-1]==="/")w=w.substr(0,w.length-1),X=X.substr(0,X.length-1),Q=w;else Q=Q.substr(0,Q.length-1);Z=Y.closeIndex}else if(this.options.unpairedTags.indexOf(w)!==-1)Z=Y.closeIndex;else{const M=this.readStopNodeData($,F,I+1);if(!M)throw new Error(`Unexpected end of ${F}`);Z=M.i,K=M.tagContent}const T=new G1(w);if(w!==Q&&z)T[":@"]=this.buildAttributesMap(Q,X,w);if(K)K=this.parseTextData(K,w,X,!0,z,!0,!0);X=X.substr(0,X.lastIndexOf(".")),T.add(this.options.textNodeName,K),this.addChild(G,T,X)}else{if(Q.length>0&&Q.lastIndexOf("/")===Q.length-1){if(w[w.length-1]==="/")w=w.substr(0,w.length-1),X=X.substr(0,X.length-1),Q=w;else Q=Q.substr(0,Q.length-1);if(this.options.transformTagName)w=this.options.transformTagName(w);const K=new G1(w);if(w!==Q&&z)K[":@"]=this.buildAttributesMap(Q,X,w);this.addChild(G,K,X),X=X.substr(0,X.lastIndexOf("."))}else{const K=new G1(w);if(this.tagsNodeStack.push(G),w!==Q&&z)K[":@"]=this.buildAttributesMap(Q,X,w);this.addChild(G,K,X),G=K}W="",Z=I}}else W+=$[Z];return U.child},OJ=function($){if(this.options.processEntities){for(let U in this.docTypeEntities){const G=this.docTypeEntities[U];$=$.replace(G.regx,G.val)}for(let U in this.lastEntities){const G=this.lastEntities[U];$=$.replace(G.regex,G.val)}if(this.options.htmlEntities)for(let U in this.htmlEntities){const G=this.htmlEntities[U];$=$.replace(G.regex,G.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};GL.exports=UL});var ZL=E((kJ)=>{var jJ=function($,U){return XL($,U)},XL=function($,U,G){let W;const X={};for(let Z=0;Z<$.length;Z++){const L=$[Z],Y=PJ(L);let w="";if(G===void 0)w=Y;else w=G+"."+Y;if(Y===U.textNodeName)if(W===void 0)W=L[Y];else W+=""+L[Y];else if(Y===void 0)continue;else if(L[Y]){let F=XL(L[Y],U,w);const Q=DJ(F,U);if(L[":@"])SJ(F,L[":@"],w,U);else if(Object.keys(F).length===1&&F[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)F=F[U.textNodeName];else if(Object.keys(F).length===0)if(U.alwaysCreateTextNode)F[U.textNodeName]="";else F="";if(X[Y]!==void 0&&X.hasOwnProperty(Y)){if(!Array.isArray(X[Y]))X[Y]=[X[Y]];X[Y].push(F)}else if(U.isArray(Y,w,Q))X[Y]=[F];else X[Y]=F}}if(typeof W==="string"){if(W.length>0)X[U.textNodeName]=W}else if(W!==void 0)X[U.textNodeName]=W;return X},PJ=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];if(W!==":@")return W}},SJ=function($,U,G,W){if(U){const X=Object.keys(U),Z=X.length;for(let L=0;L<Z;L++){const Y=X[L];if(W.isArray(Y,G+"."+Y,!0,!0))$[Y]=[U[Y]];else $[Y]=U[Y]}}},DJ=function($,U){const{textNodeName:G}=U,W=Object.keys($).length;if(W===0)return!0;if(W===1&&($[G]||typeof $[G]==="boolean"||$[G]===0))return!0;return!1};kJ.prettify=jJ});var wL=E((NH,YL)=>{var{buildOptions:hJ}=mZ(),xJ=WL(),{prettify:vJ}=ZL(),cJ=lU();class LL{constructor($){this.externalEntities={},this.options=hJ($)}parse($,U){if(typeof $==="string");else if($.toString)$=$.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(U){if(U===!0)U={};const X=cJ.validate($,U);if(X!==!0)throw Error(`${X.err.msg}:${X.err.line}:${X.err.col}`)}const G=new xJ(this.options);G.addExternalEntities(this.externalEntities);const W=G.parseXml($);if(this.options.preserveOrder||W===void 0)return W;else return vJ(W,this.options)}addEntity($,U){if(U.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if($.indexOf("&")!==-1||$.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");else if(U==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[$]=U}}YL.exports=LL});var JL=E((jH,IL)=>{var yJ=function($,U){let G="";if(U.format&&U.indentBy.length>0)G="\n";return QL($,U,"",G)},QL=function($,U,G,W){let X="",Z=!1;for(let L=0;L<$.length;L++){const Y=$[L],w=uJ(Y);if(w===void 0)continue;let F="";if(G.length===0)F=w;else F=`${G}.${w}`;if(w===U.textNodeName){let K=Y[w];if(!_J(F,U))K=U.tagValueProcessor(w,K),K=zL(K,U);if(Z)X+=W;X+=K,Z=!1;continue}else if(w===U.cdataPropName){if(Z)X+=W;X+=`<![CDATA[${Y[w][0][U.textNodeName]}]]>`,Z=!1;continue}else if(w===U.commentPropName){X+=W+`<!--${Y[w][0][U.textNodeName]}-->`,Z=!0;continue}else if(w[0]==="?"){const K=FL(Y[":@"],U),T=w==="?xml"?"":W;let M=Y[w][0][U.textNodeName];M=M.length!==0?" "+M:"",X+=T+`<${w}${M}${K}?>`,Z=!0;continue}let Q=W;if(Q!=="")Q+=U.indentBy;const z=FL(Y[":@"],U),I=W+`<${w}${z}`,J=QL(Y[w],U,F,Q);if(U.unpairedTags.indexOf(w)!==-1)if(U.suppressUnpairedNode)X+=I+">";else X+=I+"/>";else if((!J||J.length===0)&&U.suppressEmptyNode)X+=I+"/>";else if(J&&J.endsWith(">"))X+=I+`>${J}${W}</${w}>`;else{if(X+=I+">",J&&W!==""&&(J.includes("/>")||J.includes("</")))X+=W+U.indentBy+J+W;else X+=J;X+=`</${w}>`}Z=!0}return X},uJ=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];if(!$.hasOwnProperty(W))continue;if(W!==":@")return W}},FL=function($,U){let G="";if($&&!U.ignoreAttributes)for(let W in $){if(!$.hasOwnProperty(W))continue;let X=U.attributeValueProcessor(W,$[W]);if(X=zL(X,U),X===!0&&U.suppressBooleanAttributes)G+=` ${W.substr(U.attributeNamePrefix.length)}`;else G+=` ${W.substr(U.attributeNamePrefix.length)}="${X}"`}return G},_J=function($,U){$=$.substr(0,$.length-U.textNodeName.length-1);let G=$.substr($.lastIndexOf(".")+1);for(let W in U.stopNodes)if(U.stopNodes[W]===$||U.stopNodes[W]==="*."+G)return!0;return!1},zL=function($,U){if($&&$.length>0&&U.processEntities)for(let G=0;G<U.entities.length;G++){const W=U.entities[G];$=$.replace(W.regex,W.val)}return $};IL.exports=yJ});var KL=E((PH,RL)=>{var Y0=function($){if(this.options=Object.assign({},gJ,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=sJ;if(this.processTextOrObjNode=pJ,this.options.format)this.indentate=lJ,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},pJ=function($,U,G){const W=this.j2x($,G+1);if($[this.options.textNodeName]!==void 0&&Object.keys($).length===1)return this.buildTextValNode($[this.options.textNodeName],U,W.attrStr,G);else return this.buildObjectNode(W.val,U,W.attrStr,G)},lJ=function($){return this.options.indentBy.repeat($)},sJ=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},dJ=JL(),gJ={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function($,U){return U},attributeValueProcessor:function($,U){return U},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("\'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};Y0.prototype.build=function($){if(this.options.preserveOrder)return dJ($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};Y0.prototype.j2x=function($,U){let G="",W="";for(let X in $){if(!Object.prototype.hasOwnProperty.call($,X))continue;if(typeof $[X]==="undefined"){if(this.isAttribute(X))W+=""}else if($[X]===null)if(this.isAttribute(X))W+="";else if(X[0]==="?")W+=this.indentate(U)+"<"+X+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+X+"/"+this.tagEndChar;else if($[X]instanceof Date)W+=this.buildTextValNode($[X],X,"",U);else if(typeof $[X]!=="object"){const Z=this.isAttribute(X);if(Z)G+=this.buildAttrPairStr(Z,""+$[X]);else if(X===this.options.textNodeName){let L=this.options.tagValueProcessor(X,""+$[X]);W+=this.replaceEntitiesValue(L)}else W+=this.buildTextValNode($[X],X,"",U)}else if(Array.isArray($[X])){const Z=$[X].length;let L="",Y="";for(let w=0;w<Z;w++){const F=$[X][w];if(typeof F==="undefined");else if(F===null)if(X[0]==="?")W+=this.indentate(U)+"<"+X+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+X+"/"+this.tagEndChar;else if(typeof F==="object")if(this.options.oneListGroup){const Q=this.j2x(F,U+1);if(L+=Q.val,this.options.attributesGroupName&&F.hasOwnProperty(this.options.attributesGroupName))Y+=Q.attrStr}else L+=this.processTextOrObjNode(F,X,U);else if(this.options.oneListGroup){let Q=this.options.tagValueProcessor(X,F);Q=this.replaceEntitiesValue(Q),L+=Q}else L+=this.buildTextValNode(F,X,"",U)}if(this.options.oneListGroup)L=this.buildObjectNode(L,X,Y,U);W+=L}else if(this.options.attributesGroupName&&X===this.options.attributesGroupName){const Z=Object.keys($[X]),L=Z.length;for(let Y=0;Y<L;Y++)G+=this.buildAttrPairStr(Z[Y],""+$[X][Z[Y]])}else W+=this.processTextOrObjNode($[X],X,U)}return{attrStr:G,val:W}};Y0.prototype.buildAttrPairStr=function($,U){if(U=this.options.attributeValueProcessor($,""+U),U=this.replaceEntitiesValue(U),this.options.suppressBooleanAttributes&&U==="true")return" "+$;else return" "+$+'="'+U+'"'};Y0.prototype.buildObjectNode=function($,U,G,W){if($==="")if(U[0]==="?")return this.indentate(W)+"<"+U+G+"?"+this.tagEndChar;else return this.indentate(W)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else{let X="</"+U+this.tagEndChar,Z="";if(U[0]==="?")Z="?",X="";if((G||G==="")&&$.indexOf("<")===-1)return this.indentate(W)+"<"+U+G+Z+">"+$+X;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&Z.length===0)return this.indentate(W)+`<!--${$}-->`+this.newLine;else return this.indentate(W)+"<"+U+G+Z+this.tagEndChar+$+this.indentate(W)+X}};Y0.prototype.closeTag=function($){let U="";if(this.options.unpairedTags.indexOf($)!==-1){if(!this.options.suppressUnpairedNode)U="/"}else if(this.options.suppressEmptyNode)U="/";else U=`></${$}`;return U};Y0.prototype.buildTextValNode=function($,U,G,W){if(this.options.cdataPropName!==!1&&U===this.options.cdataPropName)return this.indentate(W)+`<![CDATA[${$}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName)return this.indentate(W)+`<!--${$}-->`+this.newLine;else if(U[0]==="?")return this.indentate(W)+"<"+U+G+"?"+this.tagEndChar;else{let X=this.options.tagValueProcessor(U,$);if(X=this.replaceEntitiesValue(X),X==="")return this.indentate(W)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else return this.indentate(W)+"<"+U+G+">"+X+"</"+U+this.tagEndChar}};Y0.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let U=0;U<this.options.entities.length;U++){const G=this.options.entities[U];$=$.replace(G.regex,G.val)}return $};RL.exports=Y0});var ML=E((SH,EL)=>{var mJ=lU(),nJ=wL(),iJ=KL();EL.exports={XMLParser:nJ,XMLValidator:mJ,XMLBuilder:iJ}});var OL=E((DH,AL)=>{var{defineProperty:w$,getOwnPropertyDescriptor:rJ,getOwnPropertyNames:oJ}=Object,aJ=Object.prototype.hasOwnProperty,x=($,U)=>w$($,"name",{value:U,configurable:!0}),tJ=($,U)=>{for(var G in U)w$($,G,{get:U[G],enumerable:!0})},eJ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of oJ(U))if(!aJ.call($,X)&&X!==G)w$($,X,{get:()=>U[X],enumerable:!(W=rJ(U,X))||W.enumerable})}return $},$R=($)=>eJ(w$({},"__esModule",{value:!0}),$),BL={};tJ(BL,{_toBool:()=>GR,_toNum:()=>WR,_toStr:()=>UR,awsExpectUnion:()=>ZR,loadRestJsonErrorCode:()=>wR,loadRestXmlErrorCode:()=>IR,parseJsonBody:()=>TL,parseJsonErrorBody:()=>YR,parseXmlBody:()=>HL,parseXmlErrorBody:()=>zR});AL.exports=$R(BL);var UR=x(($)=>{if($==null)return $;if(typeof $==="number"||typeof $==="bigint"){const U=new Error(`Received number ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}if(typeof $==="boolean"){const U=new Error(`Received boolean ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}return $},"_toStr"),GR=x(($)=>{if($==null)return $;if(typeof $==="string"){const U=$.toLowerCase();if($!==""&&U!=="false"&&U!=="true"){const G=new Error(`Received string "${$}" where a boolean was expected.`);G.name="Warning",console.warn(G)}return $!==""&&U!=="false"}return $},"_toBool"),WR=x(($)=>{if($==null)return $;if(typeof $==="string"){const U=Number($);if(U.toString()!==$){const G=new Error(`Received string "${$}" where a number was expected.`);return G.name="Warning",console.warn(G),$}return U}return $},"_toNum"),XR=q0(),ZR=x(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return XR.expectUnion($)},"awsExpectUnion"),LR=q0(),VL=x(($,U)=>LR.collectBody($,U).then((G)=>U.utf8Encoder(G)),"collectBodyString"),TL=x(($,U)=>VL($,U).then((G)=>{if(G.length)try{return JSON.parse(G)}catch(W){if((W==null?void 0:W.name)==="SyntaxError")Object.defineProperty(W,"$responseBodyText",{value:G});throw W}return{}}),"parseJsonBody"),YR=x(async($,U)=>{const G=await TL($,U);return G.message=G.message??G.Message,G},"parseJsonErrorBody"),wR=x(($,U)=>{const G=x((Z,L)=>Object.keys(Z).find((Y)=>Y.toLowerCase()===L.toLowerCase()),"findKey"),W=x((Z)=>{let L=Z;if(typeof L==="number")L=L.toString();if(L.indexOf(",")>=0)L=L.split(",")[0];if(L.indexOf(":")>=0)L=L.split(":")[0];if(L.indexOf("#")>=0)L=L.split("#")[1];return L},"sanitizeErrorCode"),X=G($.headers,"x-amzn-errortype");if(X!==void 0)return W($.headers[X]);if(U.code!==void 0)return W(U.code);if(U.__type!==void 0)return W(U.__type)},"loadRestJsonErrorCode"),FR=q0(),QR=ML(),HL=x(($,U)=>VL($,U).then((G)=>{if(G.length){const W=new QR.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(w,F)=>F.trim()===""&&F.includes("\n")?"":void 0});W.addEntity("#xD","\r"),W.addEntity("#10","\n");let X;try{X=W.parse(G,!0)}catch(w){if(w&&typeof w==="object")Object.defineProperty(w,"$responseBodyText",{value:G});throw w}const Z="#text",L=Object.keys(X)[0],Y=X[L];if(Y[Z])Y[L]=Y[Z],delete Y[Z];return FR.getValueFromTextNode(Y)}return{}}),"parseXmlBody"),zR=x(async($,U)=>{const G=await HL($,U);if(G.Error)G.Error.message=G.Error.message??G.Error.Message;return G},"parseXmlErrorBody"),IR=x(($,U)=>{var G;if(((G=U==null?void 0:U.Error)==null?void 0:G.Code)!==void 0)return U.Error.Code;if((U==null?void 0:U.Code)!==void 0)return U.Code;if($.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var RR=E((W1)=>{Object.defineProperty(W1,"__esModule",{value:!0});var nU=JR();nU.__exportStar(wZ(),W1);nU.__exportStar(yZ(),W1);nU.__exportStar(OL(),W1)});function SR($){return $}var vL=($)=>(U)=>async(G)=>{if(!c.isInstance(G.request))return U(G);const{request:W}=G,{handlerProtocol:X=""}=$.requestHandler.metadata||{};if(X.indexOf("h2")>=0&&!W.headers[":authority"])delete W.headers.host,W.headers[":authority"]=W.hostname+(W.port?":"+W.port:"");else if(!W.headers.host){let Z=W.hostname;if(W.port!=null)Z+=`:${W.port}`;W.headers.host=Z}return U(G)},cL={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},DR=($)=>({applyToStack:(U)=>{U.add(vL($),cL)}});var yL=()=>($,U)=>async(G)=>{try{const W=await $(G),{clientName:X,commandName:Z,logger:L,dynamoDbDocumentClientOptions:Y={}}=U,{overrideInputFilterSensitiveLog:w,overrideOutputFilterSensitiveLog:F}=Y,Q=w??U.inputFilterSensitiveLog,z=F??U.outputFilterSensitiveLog,{$metadata:I,...J}=W.output;return L?.info?.({clientName:X,commandName:Z,input:Q(G.input),output:z(J),metadata:I}),W}catch(W){const{clientName:X,commandName:Z,logger:L,dynamoDbDocumentClientOptions:Y={}}=U,{overrideInputFilterSensitiveLog:w}=Y,F=w??U.inputFilterSensitiveLog;throw L?.error?.({clientName:X,commandName:Z,input:F(G.input),error:W,metadata:W.$metadata}),W}},uL={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},bR=($)=>({applyToStack:(U)=>{U.add(yL(),uL)}});var tU="X-Amzn-Trace-Id",_L="AWS_LAMBDA_FUNCTION_NAME",dL="_X_AMZN_TRACE_ID",gL=($)=>(U)=>async(G)=>{const{request:W}=G;if(!c.isInstance(W)||$.runtime!=="node"||W.headers.hasOwnProperty(tU))return U(G);const X=process.env[_L],Z=process.env[dL],L=(Y)=>typeof Y==="string"&&Y.length>0;if(L(X)&&L(Z))W.headers[tU]=Z;return U({...G,request:W})},pL={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},yR=($)=>({applyToStack:(U)=>{U.add(gL($),pL)}});function pK($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var n7=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),r0=($)=>n7.test($)||$.startsWith("[")&&$.endsWith("]");var i7=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),o0=($,U=!1)=>{if(!U)return i7.test($);const G=$.split(".");for(let W of G)if(!o0(W))return!1;return!0};var a0={};var a="endpoints";function _($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${_($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(_).join(", ")})`;return JSON.stringify($,null,2)}class O extends Error{constructor($){super($);this.name="EndpointError"}}var IX=($,U)=>$===U;var JX=($)=>{const U=$.split("."),G=[];for(let W of U){const X=W.indexOf("[");if(X!==-1){if(W.indexOf("]")!==W.length-1)throw new O(`Path: '${$}' does not end with ']'`);const Z=W.slice(X+1,-1);if(Number.isNaN(parseInt(Z)))throw new O(`Invalid array index: '${Z}' in path: '${$}'`);if(X!==0)G.push(W.slice(0,X));G.push(Z)}else G.push(W)}return G};var u1=($,U)=>JX(U).reduce((G,W)=>{if(typeof G!=="object")throw new O(`Index '${W}' in '${U}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(G))return G[parseInt(W)];return G[W]},$);var RX=($)=>$!=null;var KX=($)=>!$;var _1=RU(F0(),1);var JU={[_1.EndpointURLScheme.HTTP]:80,[_1.EndpointURLScheme.HTTPS]:443},EX=($)=>{const U=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:I,port:J,protocol:K="",path:T="",query:M={}}=$,V=new URL(`${K}//${I}${J?`:${J}`:""}${T}`);return V.search=Object.entries(M).map(([B,H])=>`${B}=${H}`).join("&"),V}return new URL($)}catch(I){return null}})();if(!U)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;const G=U.href,{host:W,hostname:X,pathname:Z,protocol:L,search:Y}=U;if(Y)return null;const w=L.slice(0,-1);if(!Object.values(_1.EndpointURLScheme).includes(w))return null;const F=r0(X),Q=G.includes(`${W}:${JU[w]}`)||typeof $==="string"&&$.includes(`${W}:${JU[w]}`),z=`${W}${Q?`:${JU[w]}`:""}`;return{scheme:w,authority:z,path:Z,normalizedPath:Z.endsWith("/")?Z:`${Z}/`,isIp:F}};var MX=($,U)=>$===U;var BX=($,U,G,W)=>{if(U>=G||$.length<G)return null;if(!W)return $.substring(U,G);return $.substring($.length-G,$.length-U)};var VX=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var TX={booleanEquals:IX,getAttr:u1,isSet:RX,isValidHostLabel:o0,not:KX,parseURL:EX,stringEquals:MX,substring:BX,uriEncode:VX};var d1=($,U)=>{const G=[],W={...U.endpointParams,...U.referenceRecord};let X=0;while(X<$.length){const Z=$.indexOf("{",X);if(Z===-1){G.push($.slice(X));break}G.push($.slice(X,Z));const L=$.indexOf("}",Z);if(L===-1){G.push($.slice(Z));break}if($[Z+1]==="{"&&$[L+1]==="}")G.push($.slice(Z+1,L)),X=L+2;const Y=$.substring(Z+1,L);if(Y.includes("#")){const[w,F]=Y.split("#");G.push(u1(W[w],F))}else G.push(W[Y]);X=L+1}return G.join("")};var HX=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var X0=($,U,G)=>{if(typeof $==="string")return d1($,G);else if($.fn)return g1($,G);else if($.ref)return HX($,G);throw new O(`'${U}': ${String($)} is not a string, function or reference.`)};var g1=({fn:$,argv:U},G)=>{const W=U.map((Z)=>["boolean","number"].includes(typeof Z)?Z:X0(Z,"arg",G)),X=$.split(".");if(X[0]in a0&&X[1]!=null)return a0[X[0]][X[1]](...W);return TX[$](...W)};var AX=({assign:$,...U},G)=>{if($&&$ in G.referenceRecord)throw new O(`'${$}' is already defined in Reference Record.`);const W=g1(U,G);return G.logger?.debug?.(`${a} evaluateCondition: ${_(U)} = ${_(W)}`),{result:W===""?!0:!!W,...$!=null&&{toAssign:{name:$,value:W}}}};var j0=($=[],U)=>{const G={};for(let W of $){const{result:X,toAssign:Z}=AX(W,{...U,referenceRecord:{...U.referenceRecord,...G}});if(!X)return{result:X};if(Z)G[Z.name]=Z.value,U.logger?.debug?.(`${a} assign: ${Z.name} := ${_(Z.value)}`)}return{result:!0,referenceRecord:G}};var OX=($,U)=>Object.entries($).reduce((G,[W,X])=>({...G,[W]:X.map((Z)=>{const L=X0(Z,"Header value entry",U);if(typeof L!=="string")throw new O(`Header '${W}' value '${L}' is not a string`);return L})}),{});var KU=($,U)=>{if(Array.isArray($))return $.map((G)=>KU(G,U));switch(typeof $){case"string":return d1($,U);case"object":if($===null)throw new O(`Unexpected endpoint property: ${$}`);return p1($,U);case"boolean":return $;default:throw new O(`Unexpected endpoint property type: ${typeof $}`)}};var p1=($,U)=>Object.entries($).reduce((G,[W,X])=>({...G,[W]:KU(X,U)}),{});var CX=($,U)=>{const G=X0($,"Endpoint URL",U);if(typeof G==="string")try{return new URL(G)}catch(W){throw console.error(`Failed to construct URL with ${G}`,W),W}throw new O(`Endpoint URL must be a string, got ${typeof G}`)};var fX=($,U)=>{const{conditions:G,endpoint:W}=$,{result:X,referenceRecord:Z}=j0(G,U);if(!X)return;const L={...U,referenceRecord:{...U.referenceRecord,...Z}},{url:Y,properties:w,headers:F}=W;return U.logger?.debug?.(`${a} Resolving endpoint from template: ${_(W)}`),{...F!=null&&{headers:OX(F,L)},...w!=null&&{properties:p1(w,L)},url:CX(Y,L)}};var qX=($,U)=>{const{conditions:G,error:W}=$,{result:X,referenceRecord:Z}=j0(G,U);if(!X)return;throw new O(X0(W,"Error",{...U,referenceRecord:{...U.referenceRecord,...Z}}))};var NX=($,U)=>{const{conditions:G,rules:W}=$,{result:X,referenceRecord:Z}=j0(G,U);if(!X)return;return l1(W,{...U,referenceRecord:{...U.referenceRecord,...Z}})};var l1=($,U)=>{for(let G of $)if(G.type==="endpoint"){const W=fX(G,U);if(W)return W}else if(G.type==="error")qX(G,U);else if(G.type==="tree"){const W=NX(G,U);if(W)return W}else throw new O(`Unknown endpoint rule: ${G}`);throw new O("Rules evaluation failed")};var r7=($,U)=>{const{endpointParams:G,logger:W}=U,{parameters:X,rules:Z}=$;U.logger?.debug?.(`${a} Initial EndpointParams: ${_(G)}`);const L=Object.entries(X).filter(([,F])=>F.default!=null).map(([F,Q])=>[F,Q.default]);if(L.length>0)for(let[F,Q]of L)G[F]=G[F]??Q;const Y=Object.entries(X).filter(([,F])=>F.required).map(([F])=>F);for(let F of Y)if(G[F]==null)throw new O(`Missing required parameter: '${F}'`);const w=l1(Z,{endpointParams:G,logger:W,referenceRecord:{}});if(U.endpointParams?.Endpoint)try{const F=new URL(U.endpointParams.Endpoint),{protocol:Q,port:z}=F;w.url.protocol=Q,w.url.port=z}catch(F){}return U.logger?.debug?.(`${a} Resolved endpoint: ${_(w)}`),w};var EU=($,U=!1)=>{if(U){for(let G of $.split("."))if(!EU(G))return!1;return!0}if(!o0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(r0($))return!1;return!0};var jX=($)=>{const U=$.split(":");if(U.length<6)return null;const[G,W,X,Z,L,...Y]=U;if(G!=="arn"||W===""||X===""||Y[0]==="")return null;return{partition:W,service:X,region:Z,accountId:L,resourceId:Y[0].includes("/")?Y[0].split("/"):Y}};var PX={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"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)"},"aws-global":{description:"AWS Standard 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)"},"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 China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{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 GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) 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:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"};var a7=PX,t7="",SX=($)=>{const{partitions:U}=a7;for(let W of U){const{regions:X,outputs:Z}=W;for(let[L,Y]of Object.entries(X))if(L===$)return{...Z,...Y}}for(let W of U){const{regionRegex:X,outputs:Z}=W;if(new RegExp(X).test($))return{...Z}}const G=U.find((W)=>W.id==="aws");if(!G)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...G.outputs}};var DX=()=>t7;var e7={isVirtualHostableS3Bucket:EU,parseArn:jX,partition:SX};a0.aws=e7;var MU="user-agent",s1="x-amz-user-agent",BU=" ",m1="/",kX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,bX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,VU="-";var $z=($)=>(U,G)=>async(W)=>{const{request:X}=W;if(!c.isInstance(X))return U(W);const{headers:Z}=X,L=G?.userAgent?.map(TU)||[],Y=(await $.defaultUserAgentProvider()).map(TU),w=$?.customUserAgent?.map(TU)||[],F=DX(),Q=(F?[F]:[]).concat([...Y,...L,...w]).join(BU),z=[...Y.filter((I)=>I.startsWith("aws-sdk-")),...w].join(BU);if($.runtime!=="browser"){if(z)Z[s1]=Z[s1]?`${Z[MU]} ${z}`:z;Z[MU]=Q}else Z[s1]=Q;return U({...W,request:X})},TU=($)=>{const U=$[0].split(m1).map((L)=>L.replace(kX,VU)).join(m1),G=$[1]?.replace(bX,VU),W=U.indexOf(m1),X=U.substring(0,W);let Z=U.substring(W+1);if(X==="api")Z=Z.toLowerCase();return[X,Z,G].filter((L)=>L&&L.length>0).reduce((L,Y,w)=>{switch(w){case 0:return Y;case 1:return`${L}/${Y}`;default:return`${L}#${Y}`}},"")},Uz={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},AM=($)=>({applyToStack:(U)=>{U.add($z($),Uz)}});var n1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var HU=($)=>n1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var kM=($)=>{const{region:U,useFipsEndpoint:G}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return HU(U);const W=await U();return HU(W)},useFipsEndpoint:async()=>{const W=typeof U==="string"?U:await U();if(n1(W))return!0;return typeof G!=="function"?Promise.resolve(!!G):G()}}};var P0=($,U,G)=>{if(!(U in $))return;if($[U]==="true")return!0;if($[U]==="false")return!1;throw new Error(`Cannot load ${G} "${U}". Expected "true" or "false", got ${$[U]}.`)};var Z0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(Z0||(Z0={}));var Gz="AWS_USE_DUALSTACK_ENDPOINT",Wz="use_dualstack_endpoint";var gM={environmentVariableSelector:($)=>P0($,Gz,Z0.ENV),configFileSelector:($)=>P0($,Wz,Z0.CONFIG),default:!1};var Xz="AWS_USE_FIPS_ENDPOINT",Zz="use_fips_endpoint";var sM={environmentVariableSelector:($)=>P0($,Xz,Z0.ENV),configFileSelector:($)=>P0($,Zz,Z0.CONFIG),default:!1};var AU=RU(F0(),1),hX=($)=>$[AU.SMITHY_CONTEXT_KEY]||($[AU.SMITHY_CONTEXT_KEY]={});var t=($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U};var xX={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},QB={preferredFile:"credentials"};function Lz($){return(U)=>async(G)=>{const W=G.request;if(c.isInstance(W)){const{body:X,headers:Z}=W;if(X&&Object.keys(Z).map((L)=>L.toLowerCase()).indexOf(vX)===-1)try{const L=$(X);W.headers={...W.headers,[vX]:String(L)}}catch(L){}}return U({...G,request:W})}}var vX="content-length",Yz={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},cB=($)=>({applyToStack:(U)=>{U.add(Lz($.bodyLengthChecker),Yz)}});var cX=($,U)=>(G)=>async(W)=>{const{response:X}=await G(W);try{const Z=await U(X,$);return{response:X,output:Z}}catch(Z){if(Object.defineProperty(Z,"$response",{value:X}),!("$metadata"in Z)){if(Z.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof Z.$responseBodyText!=="undefined"){if(Z.$response)Z.$response.body=Z.$responseBodyText}}throw Z}};var yX=($,U)=>(G,W)=>async(X)=>{const Z=W.endpointV2?.url&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!Z)throw new Error("No valid endpoint provider available.");const L=await U(X.input,{...$,endpoint:Z});return G({...X,request:L})};function pB($,U,G){return{applyToStack:(W)=>{W.add(cX($,G),wz),W.add(yX($,U),OU)}}}var wz={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},OU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var uX=async($)=>{const U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Jz(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Iz(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},Fz=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Qz=/(\d+\.){3}\d+/,zz=/\.\./;var Iz=($)=>Fz.test($)&&!Qz.test($)&&!zz.test($),Jz=($)=>{const[U,G,W,,,X]=$.split(":"),Z=U==="arn"&&$.split(":").length>=6,L=Boolean(Z&&G&&W&&X);if(Z&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L};var _X=($,U,G)=>{const W=async()=>{const X=G[$]??G[U];if(typeof X==="function")return X();return X};if($==="credentialScope"||U==="CredentialScope")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return X?.credentialScope??X?.CredentialScope};if($==="accountId"||U==="AccountId")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return X?.accountId??X?.AccountId};if($==="endpoint"||U==="endpoint")return async()=>{const X=await W();if(X&&typeof X==="object"){if("url"in X)return X.url.href;if("hostname"in X){const{protocol:Z,hostname:L,port:Y,path:w}=X;return`${Z}//${L}${Y?":"+Y:""}${w}`}}return X};return W};var dX="AWS_ENDPOINT_URL",gX="endpoint_url",pX=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((Z)=>Z.toUpperCase()),W=U[[dX,...G].join("_")];if(W)return W;const X=U[dX];if(X)return X;return},configFileSelector:(U,G)=>{if(G&&U.services){const X=G[["services",U.services].join(CU)];if(X){const Z=$.split(" ").map((Y)=>Y.toLowerCase()),L=X[[Z.join("_"),gX].join(CU)];if(L)return L}}const W=U[gX];if(W)return W;return},default:void 0});var lX=async($)=>K0(pX($))();var i1=($)=>{if(typeof $==="object"){if("url"in $)return fU($.url);return $}return fU($)};var sX=async($,U,G,W)=>{if(!G.endpoint){const L=await lX(G.serviceId||"");if(L)G.endpoint=()=>Promise.resolve(i1(L))}const X=await Rz($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(X,W)},Rz=async($,U,G)=>{const W={},X=U?.getEndpointParameterInstructions?.()||{};for(let[Z,L]of Object.entries(X))switch(L.type){case"staticContextParams":W[Z]=L.value;break;case"contextParams":W[Z]=$[L.name];break;case"clientContextParams":case"builtInParams":W[Z]=await _X(L.name,Z,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(X).length===0)Object.assign(W,G);if(String(G.serviceId).toLowerCase()==="s3")await uX(W);return W};var mX=({config:$,instructions:U})=>{return(G,W)=>async(X)=>{const Z=await sX(X.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=Z,W.authSchemes=Z.properties?.authSchemes;const L=W.authSchemes?.[0];if(L){W.signing_region=L.signingRegion,W.signing_service=L.signingName;const w=hX(W)?.selectedHttpAuthScheme?.httpAuthOption;if(w)w.signingProperties=Object.assign(w.signingProperties||{},{signing_region:L.signingRegion,signingRegion:L.signingRegion,signing_service:L.signingName,signingName:L.signingName,signingRegionSet:L.signingRegionSet},L.properties)}return G({...X})}};var Kz={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:OU.name},EV=($,U)=>({applyToStack:(G)=>{G.addRelativeTo(mX({config:$,instructions:U}),Kz)}});var TV=($)=>{const U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>i1(await t(G)()):void 0;return{...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:t($.useDualstackEndpoint??!1),useFipsEndpoint:t($.useFipsEndpoint??!1)}};var n=RU(j$(),1),DV=n.default.v1,kV=n.default.v3,nX=n.default.v4,bV=n.default.v5,hV=n.default.NIL,xV=n.default.version,vV=n.default.validate,cV=n.default.stringify,yV=n.default.parse;var s;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(s||(s={}));var E0=3,iX=s.STANDARD;var rX=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],oX=["TimeoutError","RequestTimeout","RequestTimeoutException"],aX=[500,502,503,504],tX=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var Ez=($)=>$.$metadata?.clockSkewCorrected,S0=($)=>$.$metadata?.httpStatusCode===429||rX.includes($.name)||$.$retryable?.throttling==!0,r1=($)=>Ez($)||oX.includes($.name)||tX.includes($?.code||"")||aX.includes($.$metadata?.httpStatusCode||0),eX=($)=>{if($.$metadata?.httpStatusCode!==void 0){const U=$.$metadata.httpStatusCode;if(500<=U&&U<=599&&!r1($))return!0;return!1}return!1};class o1{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.smooth??0.8;const U=this.getCurrentTimeInSeconds();this.lastThrottleTime=U,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){const U=($-this.currentCapacity)/this.fillRate*1000;await new Promise((G)=>setTimeout(G,U))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){const $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}const U=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+U),this.lastTimestamp=$}updateClientSendingRate($){let U;if(this.updateMeasuredRate(),S0($)){const W=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=W,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle(W),this.enableTokenBucket()}else this.calculateTimeWindow(),U=this.cubicSuccess(this.getCurrentTimeInSeconds());const G=Math.min(U,2*this.measuredTxRate);this.updateTokenBucketRate(G)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const $=this.getCurrentTimeInSeconds(),U=Math.floor($*2)/2;if(this.requestCount++,U>this.lastTxRateBucket){const G=this.requestCount/(U-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(G*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=U}}getPrecise($){return parseFloat($.toFixed(8))}}var M0=100,t0=20000,qU=500,a1=500,NU=5,jU=10,PU=1,t1="amz-sdk-invocation-id",e1="amz-sdk-request";var $Z=()=>{let $=M0;return{computeNextBackoffDelay:(W)=>{return Math.floor(Math.min(t0,Math.random()*2**W*$))},setDelayBase:(W)=>{$=W}}};var SU=({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min(t0,$),getRetryCost:()=>G}};class D0{constructor($){this.maxAttempts=$,this.mode=s.STANDARD,this.capacity=a1,this.retryBackoffStrategy=$Z(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return SU({retryDelay:M0,retryCount:0})}async refreshRetryTokenForRetry($,U){const G=await this.getMaxAttempts();if(this.shouldRetry($,U,G)){const W=U.errorType;this.retryBackoffStrategy.setDelayBase(W==="THROTTLING"?qU:M0);const X=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),Z=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,X):X,L=this.getCapacityCost(W);return this.capacity-=L,SU({retryDelay:Z,retryCount:$.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(a1,this.capacity+($.getRetryCost()??PU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${E0}`),E0}}shouldRetry($,U,G){return $.getRetryCount()+1<G&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?jU:NU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class DU{constructor($,U){this.maxAttemptsProvider=$,this.mode=s.ADAPTIVE;const{rateLimiter:G}=U??{};this.rateLimiter=G??new o1,this.standardRetryStrategy=new D0($)}async acquireInitialRetryToken($){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken($)}async refreshRetryTokenForRetry($,U){return this.rateLimiter.updateClientSendingRate(U),this.standardRetryStrategy.refreshRetryTokenForRetry($,U)}recordSuccess($){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess($)}}var UZ="AWS_MAX_ATTEMPTS",GZ="max_attempts",TT={environmentVariableSelector:($)=>{const U=$[UZ];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${UZ} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[GZ];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${GZ} mast be a number, got "${U}"`);return G},default:E0},HT=($)=>{const{retryStrategy:U}=$,G=t($.maxAttempts??E0);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await t($.retryMode)()===s.ADAPTIVE)return new DU(G);return new D0(G)}}},Mz="AWS_RETRY_MODE",Bz="retry_mode",AT={environmentVariableSelector:($)=>$[Mz],configFileSelector:($)=>$[Bz],default:iX};import{Readable as Vz} from"stream";var WZ=($)=>$?.body instanceof Vz||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var kU=($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)};var Tz=($)=>(U,G)=>async(W)=>{let X=await $.retryStrategy();const Z=await $.maxAttempts();if(Hz(X)){X=X;let L=await X.acquireInitialRetryToken(G.partition_id),Y=new Error,w=0,F=0;const{request:Q}=W,z=c.isInstance(Q);if(z)Q.headers[t1]=nX();while(!0)try{if(z)Q.headers[e1]=`attempt=${w+1}; max=${Z}`;const{response:I,output:J}=await U(W);return X.recordSuccess(L),J.$metadata.attempts=w+1,J.$metadata.totalRetryDelay=F,{response:I,output:J}}catch(I){const J=Az(I);if(Y=kU(I),z&&WZ(Q))throw(G.logger instanceof XZ?console:G.logger)?.warn("An error was encountered in a non-retryable streaming request."),Y;try{L=await X.refreshRetryTokenForRetry(L,J)}catch(T){if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=w+1,Y.$metadata.totalRetryDelay=F,Y}w=L.getRetryCount();const K=L.getRetryDelay();F+=K,await new Promise((T)=>setTimeout(T,K))}}else{if(X=X,X?.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",X.mode]];return X.retry(U,W)}},Hz=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",Az=($)=>{const U={error:$,errorType:Oz($)},G=fz($.$response);if(G)U.retryAfterHint=G;return U},Oz=($)=>{if(S0($))return"THROTTLING";if(r1($))return"TRANSIENT";if(eX($))return"SERVER_ERROR";return"CLIENT_ERROR"},Cz={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},hT=($)=>({applyToStack:(U)=>{U.add(Tz($),Cz)}}),fz=($)=>{if(!bU.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return new Date(W*1000);return new Date(G)};import{platform as KR,release as ER} from"os";import{env as fL,versions as MR} from"process";var iU={isCrtAvailable:!1};var CL=()=>{if(iU.isCrtAvailable)return["md/crt-avail"];return null};var BR="AWS_SDK_UA_APP_ID",VR="sdk-ua-app-id",_H=({serviceId:$,clientVersion:U})=>{const G=[["aws-sdk-js",U],["ua","2.0"],[`os/${KR()}`,ER()],["lang/js"],["md/nodejs",`${MR.node}`]],W=CL();if(W)G.push(W);if($)G.push([`api/${$}`,U]);if(fL.AWS_EXECUTION_ENV)G.push([`exec-env/${fL.AWS_EXECUTION_ENV}`]);const X=K0({environmentVariableSelector:(L)=>L[BR],configFileSelector:(L)=>L[VR],default:void 0})();let Z=void 0;return async()=>{if(!Z){const L=await X;Z=L?[...G,[`app/${L}`]]:[...G]}return Z}};import{Buffer as TR} from"buffer";import{createHash as HR,createHmac as AR} from"crypto";var qL=function($,U){if(TR.isBuffer($))return $;if(typeof $==="string")return NL($,U);if(ArrayBuffer.isView($))return rU($.buffer,$.byteOffset,$.byteLength);return rU($)};class OR{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(jL(qL($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?AR(this.algorithmIdentifier,qL(this.secret)):HR(this.algorithmIdentifier)}}import{fstatSync as CR,lstatSync as fR} from"fs";var rH=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if(typeof $.path==="string"||Buffer.isBuffer($.path))return fR($.path).size;else if(typeof $.fd==="number")return CR($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var PL="AWS_EXECUTION_ENV",oU="AWS_REGION",aU="AWS_DEFAULT_REGION",SL="AWS_EC2_METADATA_DISABLED",DL=["in-region","cross-region","mobile","standard","legacy"],kL="/latest/meta-data/placement/region";var bL={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var LA=({region:$=K0(xX),defaultsMode:U=K0(bL)}={})=>hL(async()=>{const G=typeof U==="function"?await U():U;switch(G?.toLowerCase()){case"auto":return qR($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(G?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${DL.join(", ")}, got ${G}`)}}),qR=async($)=>{if($){const U=typeof $==="function"?await $():$,G=await NR();if(!G)return"standard";if(U===G)return"in-region";else return"cross-region"}return"standard"},NR=async()=>{if(process.env[PL]&&(process.env[oU]||process.env[aU]))return process.env[oU]??process.env[aU];if(!process.env[SL])try{const{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-d445af84de70bf7e.js"),G=await $();return(await U({...G,path:kL})).toString()}catch($){}};var QA=($)=>{let U=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");const G=$.region;if(typeof G==="string")return G;return G()};return{setRegion(G){U=G},region(){return U}}},zA=($)=>{return{region:$.region()}};export{SR as Ca,DR as Da,bR as Ea,yR as Fa,hX as Ga,t as Ha,P0 as Ia,Z0 as Ja,IU as Ka,pK as La,a0 as Ma,r7 as Na,e7 as Oa,AM as Pa,gM as Qa,sM as Ra,xX as Sa,QB as Ta,kM as Ua,cB as Va,Rz as Wa,pB as Xa,EV as Ya,TV as Za,iX as _a,nX as $a,TT as ab,HT as bb,AT as cb,hT as db,RR as eb,_H as fb,OR as gb,rH as hb,LA as ib,QA as jb,zA as kb};
|
|
18
|
+
${L0.toHex(Z)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){const G=[];for(let Z of U.split("/")){if((Z==null?void 0:Z.length)===0)continue;if(Z===".")continue;if(Z==="..")G.pop();else G.push(Z)}const W=`${(U==null?void 0:U.startsWith("/"))?"/":""}${G.join("/")}${G.length>0&&(U==null?void 0:U.endsWith("/"))?"/":""}`;return e0.escapeUri(W).replace(/%2F/g,"/")}return U}async getSignature(U,G,W,X){const Z=await this.createStringToSign(U,G,X),L=new this.sha256(await W);return L.update(bU.toUint8Array(Z)),L0.toHex(await L.digest())}getSigningKey(U,G,W,X){return TZ(this.sha256,U,W,G,X||this.service)}validateResolvedCredentials(U){if(typeof U!=="object"||typeof U.accessKeyId!=="string"||typeof U.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};S(qZ,"SignatureV4");var FI=qZ,U$=S(($)=>{const U=YI($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),IZ=S(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var yZ=E((EH,cZ)=>{var{defineProperty:L$,getOwnPropertyDescriptor:QI,getOwnPropertyNames:zI}=Object,II=Object.prototype.hasOwnProperty,h=($,U)=>L$($,"name",{value:U,configurable:!0}),JI=($,U)=>{for(var G in U)L$($,G,{get:U[G],enumerable:!0})},RI=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of zI(U))if(!II.call($,X)&&X!==G)L$($,X,{get:()=>U[X],enumerable:!(W=QI(U,X))||W.enumerable})}return $},KI=($)=>RI(L$({},"__esModule",{value:!0}),$),kZ={};JI(kZ,{AWSSDKSigV4Signer:()=>VI,AwsSdkSigV4ASigner:()=>HI,AwsSdkSigV4Signer:()=>_U,NODE_SIGV4A_CONFIG_OPTIONS:()=>CI,resolveAWSSDKSigV4Config:()=>fI,resolveAwsSdkSigV4AConfig:()=>OI,resolveAwsSdkSigV4Config:()=>vZ,validateSigningProperties:()=>uU});cZ.exports=KI(kZ);var EI=i(),MI=i(),PZ=h(($)=>{var U,G;return MI.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((G=$.headers)==null?void 0:G.Date):void 0},"getDateHeader"),yU=h(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),BI=h(($,U)=>Math.abs(yU(U).getTime()-$)>=300000,"isClockSkewed"),SZ=h(($,U)=>{const G=Date.parse($);if(BI(G,U))return G-Date.now();return U},"getUpdatedSystemClockOffset"),$1=h(($,U)=>{if(!U)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return U},"throwSigningPropertyError"),uU=h(async($)=>{var U,G,W;const X=$1("context",$.context),Z=$1("config",$.config),L=(W=(G=(U=X.endpointV2)==null?void 0:U.properties)==null?void 0:G.authSchemes)==null?void 0:W[0],w=await $1("signer",Z.signer)(L),F=$==null?void 0:$.signingRegion,Q=$==null?void 0:$.signingRegionSet,z=$==null?void 0:$.signingName;return{config:Z,signer:w,signingRegion:F,signingRegionSet:Q,signingName:z}},"validateSigningProperties"),hZ=class ${async sign(U,G,W){var X;if(!EI.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const Z=await uU(W),{config:L,signer:Y}=Z;let{signingRegion:w,signingName:F}=Z;const Q=W.context;if(((X=Q==null?void 0:Q.authSchemes)==null?void 0:X.length)??0>1){const[I,J]=Q.authSchemes;if((I==null?void 0:I.name)==="sigv4a"&&(J==null?void 0:J.name)==="sigv4")w=(J==null?void 0:J.signingRegion)??w,F=(J==null?void 0:J.signingName)??F}return await Y.sign(U,{signingDate:yU(L.systemClockOffset),signingRegion:w,signingService:F})}errorHandler(U){return(G)=>{const W=G.ServerTime??PZ(G.$response);if(W){const X=$1("config",U.config),Z=X.systemClockOffset;if(X.systemClockOffset=SZ(W,X.systemClockOffset),X.systemClockOffset!==Z&&G.$metadata)G.$metadata.clockSkewCorrected=!0}throw G}}successHandler(U,G){const W=PZ(U);if(W){const X=$1("config",G.config);X.systemClockOffset=SZ(W,X.systemClockOffset)}}};h(hZ,"AwsSdkSigV4Signer");var _U=hZ,VI=_U,TI=i(),xZ=class $ extends _U{async sign(U,G,W){var X;if(!TI.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:Z,signer:L,signingRegion:Y,signingRegionSet:w,signingName:F}=await uU(W),z=(await((X=Z.sigv4aSigningRegionSet)==null?void 0:X.call(Z))??w??[Y]).join(",");return await L.sign(U,{signingDate:yU(Z.systemClockOffset),signingRegion:z,signingService:F})}};h(xZ,"AwsSdkSigV4ASigner");var HI=xZ,AI=QU(),DZ=F$(),OI=h(($)=>{return $.sigv4aSigningRegionSet=AI.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),CI={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new DZ.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector($){if($.sigv4a_signing_region_set)return($.sigv4a_signing_region_set??"").split(",").map((U)=>U.trim());throw new DZ.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},B0=QU(),bZ=jZ(),vZ=h(($)=>{let U;if($.credentials)U=B0.memoizeIdentityProvider($.credentials,B0.isIdentityExpired,B0.doesIdentityRequireRefresh);if(!U)if($.credentialDefaultProvider)U=B0.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else U=h(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:G=!0,systemClockOffset:W=$.systemClockOffset||0,sha256:X}=$;let Z;if($.signer)Z=B0.normalizeProvider($.signer);else if($.regionInfoProvider)Z=h(()=>B0.normalizeProvider($.region)().then(async(L)=>[await $.regionInfoProvider(L,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},L]).then(([L,Y])=>{const{signingRegion:w,signingService:F}=L;$.signingRegion=$.signingRegion||w||Y,$.signingName=$.signingName||F||$.serviceId;const Q={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:X,uriEscapePath:G};return new($.signerConstructor||bZ.SignatureV4)(Q)}),"signer");else Z=h(async(L)=>{L=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await B0.normalizeProvider($.region)(),properties:{}},L);const{signingRegion:Y,signingName:w}=L;$.signingRegion=$.signingRegion||Y,$.signingName=$.signingName||w||$.serviceId;const F={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:X,uriEscapePath:G};return new($.signerConstructor||bZ.SignatureV4)(F)},"signer");return{...$,systemClockOffset:W,signingEscapePath:G,credentials:U,signer:Z}},"resolveAwsSdkSigV4Config"),fI=vZ});var Y$=E((SI)=>{var qI=":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",uZ="[: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]["+qI+"]*",NI=new RegExp("^"+uZ+"$"),jI=function($,U){const G=[];let W=U.exec($);while(W){const X=[];X.startIndex=U.lastIndex-W[0].length;const Z=W.length;for(let L=0;L<Z;L++)X.push(W[L]);G.push(X),W=U.exec($)}return G},PI=function($){const U=NI.exec($);return!(U===null||typeof U==="undefined")};SI.isExist=function($){return typeof $!=="undefined"};SI.isEmptyObject=function($){return Object.keys($).length===0};SI.merge=function($,U,G){if(U){const W=Object.keys(U),X=W.length;for(let Z=0;Z<X;Z++)if(G==="strict")$[W[Z]]=[U[W[Z]]];else $[W[Z]]=U[W[Z]]}};SI.getValue=function($){if(SI.isExist($))return $;else return""};SI.isName=PI;SI.getAllMatches=jI;SI.nameRegexp=uZ});var gU=E((mI)=>{var dZ=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},gZ=function($,U){const G=U;for(;U<$.length;U++)if($[U]=="?"||$[U]==" "){const W=$.substr(G,U-G);if(U>5&&W==="xml")return j("InvalidXml","XML declaration allowed only at the start of the document.",k($,U));else if($[U]=="?"&&$[U+1]==">"){U++;break}else continue}return U},pZ=function($,U){if($.length>U+5&&$[U+1]==="-"&&$[U+2]==="-"){for(U+=3;U<$.length;U++)if($[U]==="-"&&$[U+1]==="-"&&$[U+2]===">"){U+=2;break}}else if($.length>U+8&&$[U+1]==="D"&&$[U+2]==="O"&&$[U+3]==="C"&&$[U+4]==="T"&&$[U+5]==="Y"&&$[U+6]==="P"&&$[U+7]==="E"){let G=1;for(U+=8;U<$.length;U++)if($[U]==="<")G++;else if($[U]===">"){if(G--,G===0)break}}else if($.length>U+9&&$[U+1]==="["&&$[U+2]==="C"&&$[U+3]==="D"&&$[U+4]==="A"&&$[U+5]==="T"&&$[U+6]==="A"&&$[U+7]==="["){for(U+=8;U<$.length;U++)if($[U]==="]"&&$[U+1]==="]"&&$[U+2]===">"){U+=2;break}}return U},_I=function($,U){let G="",W="",X=!1;for(;U<$.length;U++){if($[U]===yI||$[U]===uI)if(W==="")W=$[U];else if(W!==$[U]);else W="";else if($[U]===">"){if(W===""){X=!0;break}}G+=$[U]}if(W!=="")return!1;return{value:G,index:U,tagClosed:X}},lZ=function($,U){const G=dU.getAllMatches($,dI),W={};for(let X=0;X<G.length;X++){if(G[X][1].length===0)return j("InvalidAttr","Attribute '"+G[X][2]+"' has no space in starting.",U1(G[X]));else if(G[X][3]!==void 0&&G[X][4]===void 0)return j("InvalidAttr","Attribute '"+G[X][2]+"' is without value.",U1(G[X]));else if(G[X][3]===void 0&&!U.allowBooleanAttributes)return j("InvalidAttr","boolean attribute '"+G[X][2]+"' is not allowed.",U1(G[X]));const Z=G[X][2];if(!lI(Z))return j("InvalidAttr","Attribute '"+Z+"' is an invalid name.",U1(G[X]));if(!W.hasOwnProperty(Z))W[Z]=1;else return j("InvalidAttr","Attribute '"+Z+"' is repeated.",U1(G[X]))}return!0},gI=function($,U){let G=/\d/;if($[U]==="x")U++,G=/[\da-fA-F]/;for(;U<$.length;U++){if($[U]===";")return U;if(!$[U].match(G))break}return-1},pI=function($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,gI($,U);let G=0;for(;U<$.length;U++,G++){if($[U].match(/\w/)&&G<20)continue;if($[U]===";")break;return-1}return U},j=function($,U,G){return{err:{code:$,msg:U,line:G.line||G,col:G.col}}},lI=function($){return dU.isName($)},sI=function($){return dU.isName($)},k=function($,U){const G=$.substring(0,U).split(/\r?\n/);return{line:G.length,col:G[G.length-1].length+1}},U1=function($){return $.startIndex+$[1].length},dU=Y$(),cI={allowBooleanAttributes:!1,unpairedTags:[]};mI.validate=function($,U){U=Object.assign({},cI,U);const G=[];let W=!1,X=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let Z=0;Z<$.length;Z++)if($[Z]==="<"&&$[Z+1]==="?"){if(Z+=2,Z=gZ($,Z),Z.err)return Z}else if($[Z]==="<"){let L=Z;if(Z++,$[Z]==="!"){Z=pZ($,Z);continue}else{let Y=!1;if($[Z]==="/")Y=!0,Z++;let w="";for(;Z<$.length&&$[Z]!==">"&&$[Z]!==" "&&$[Z]!=="\t"&&$[Z]!=="\n"&&$[Z]!=="\r";Z++)w+=$[Z];if(w=w.trim(),w[w.length-1]==="/")w=w.substring(0,w.length-1),Z--;if(!sI(w)){let z;if(w.trim().length===0)z="Invalid space after '<'.";else z="Tag '"+w+"' is an invalid name.";return j("InvalidTag",z,k($,Z))}const F=_I($,Z);if(F===!1)return j("InvalidAttr","Attributes for '"+w+"' have open quote.",k($,Z));let Q=F.value;if(Z=F.index,Q[Q.length-1]==="/"){const z=Z-Q.length;Q=Q.substring(0,Q.length-1);const I=lZ(Q,U);if(I===!0)W=!0;else return j(I.err.code,I.err.msg,k($,z+I.err.line))}else if(Y)if(!F.tagClosed)return j("InvalidTag","Closing tag '"+w+"' doesn't have proper closing.",k($,Z));else if(Q.trim().length>0)return j("InvalidTag","Closing tag '"+w+"' can't have attributes or invalid starting.",k($,L));else if(G.length===0)return j("InvalidTag","Closing tag '"+w+"' has not been opened.",k($,L));else{const z=G.pop();if(w!==z.tagName){let I=k($,z.tagStartPos);return j("InvalidTag","Expected closing tag '"+z.tagName+"' (opened in line "+I.line+", col "+I.col+") instead of closing tag '"+w+"'.",k($,L))}if(G.length==0)X=!0}else{const z=lZ(Q,U);if(z!==!0)return j(z.err.code,z.err.msg,k($,Z-Q.length+z.err.line));if(X===!0)return j("InvalidXml","Multiple possible root nodes found.",k($,Z));else if(U.unpairedTags.indexOf(w)!==-1);else G.push({tagName:w,tagStartPos:L});W=!0}for(Z++;Z<$.length;Z++)if($[Z]==="<")if($[Z+1]==="!"){Z++,Z=pZ($,Z);continue}else if($[Z+1]==="?"){if(Z=gZ($,++Z),Z.err)return Z}else break;else if($[Z]==="&"){const z=pI($,Z);if(z==-1)return j("InvalidChar","char '&' is not expected.",k($,Z));Z=z}else if(X===!0&&!dZ($[Z]))return j("InvalidXml","Extra text at the end",k($,Z));if($[Z]==="<")Z--}}else{if(dZ($[Z]))continue;return j("InvalidChar","char '"+$[Z]+"' is not expected.",k($,Z))}if(!W)return j("InvalidXml","Start tag expected.",1);else if(G.length==1)return j("InvalidTag","Unclosed tag '"+G[0].tagName+"'.",k($,G[0].tagStartPos));else if(G.length>0)return j("InvalidXml","Invalid '"+JSON.stringify(G.map((Z)=>Z.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var yI='"',uI="'",dI=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var mZ=E((rI)=>{var sZ={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($,U){return U},attributeValueProcessor:function($,U){return U},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function($,U,G){return $}},iI=function($){return Object.assign({},sZ,$)};rI.buildOptions=iI;rI.defaultOptions=sZ});var rZ=E((TH,iZ)=>{class nZ{constructor($){this.tagname=$,this.child=[],this[":@"]={}}add($,U){if($==="__proto__")$="#__proto__";this.child.push({[$]:U})}addChild($){if($.tagname==="__proto__")$.tagname="#__proto__";if($[":@"]&&Object.keys($[":@"]).length>0)this.child.push({[$.tagname]:$.child,[":@"]:$[":@"]});else this.child.push({[$.tagname]:$.child})}}iZ.exports=nZ});var aZ=E((HH,oZ)=>{var eI=function($,U){const G={};if($[U+3]==="O"&&$[U+4]==="C"&&$[U+5]==="T"&&$[U+6]==="Y"&&$[U+7]==="P"&&$[U+8]==="E"){U=U+9;let W=1,X=!1,Z=!1,L="";for(;U<$.length;U++)if($[U]==="<"&&!Z){if(X&&GJ($,U)){if(U+=7,[entityName,val,U]=$J($,U+1),val.indexOf("&")===-1)G[LJ(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(X&&WJ($,U))U+=8;else if(X&&XJ($,U))U+=8;else if(X&&ZJ($,U))U+=9;else if(UJ)Z=!0;else throw new Error("Invalid DOCTYPE");W++,L=""}else if($[U]===">"){if(Z){if($[U-1]==="-"&&$[U-2]==="-")Z=!1,W--}else W--;if(W===0)break}else if($[U]==="[")X=!0;else L+=$[U];if(W!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:G,i:U}},$J=function($,U){let G="";for(;U<$.length&&($[U]!=="'"&&$[U]!=='"');U++)G+=$[U];if(G=G.trim(),G.indexOf(" ")!==-1)throw new Error("External entites are not supported");const W=$[U++];let X="";for(;U<$.length&&$[U]!==W;U++)X+=$[U];return[G,X,U]},UJ=function($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1},GJ=function($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="N"&&$[U+4]==="T"&&$[U+5]==="I"&&$[U+6]==="T"&&$[U+7]==="Y")return!0;return!1},WJ=function($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="L"&&$[U+4]==="E"&&$[U+5]==="M"&&$[U+6]==="E"&&$[U+7]==="N"&&$[U+8]==="T")return!0;return!1},XJ=function($,U){if($[U+1]==="!"&&$[U+2]==="A"&&$[U+3]==="T"&&$[U+4]==="T"&&$[U+5]==="L"&&$[U+6]==="I"&&$[U+7]==="S"&&$[U+8]==="T")return!0;return!1},ZJ=function($,U){if($[U+1]==="!"&&$[U+2]==="N"&&$[U+3]==="O"&&$[U+4]==="T"&&$[U+5]==="A"&&$[U+6]==="T"&&$[U+7]==="I"&&$[U+8]==="O"&&$[U+9]==="N")return!0;return!1},LJ=function($){if(tI.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},tI=Y$();oZ.exports=eI});var eZ=E((AH,tZ)=>{var QJ=function($,U={}){if(U=Object.assign({},FJ,U),!$||typeof $!=="string")return $;let G=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(G))return $;else if(U.hex&&YJ.test(G))return Number.parseInt(G,16);else{const W=wJ.exec(G);if(W){const X=W[1],Z=W[2];let L=zJ(W[3]);const Y=W[4]||W[6];if(!U.leadingZeros&&Z.length>0&&X&&G[2]!==".")return $;else if(!U.leadingZeros&&Z.length>0&&!X&&G[1]!==".")return $;else{const w=Number(G),F=""+w;if(F.search(/[eE]/)!==-1)if(U.eNotation)return w;else return $;else if(Y)if(U.eNotation)return w;else return $;else if(G.indexOf(".")!==-1)if(F==="0"&&L==="")return w;else if(F===L)return w;else if(X&&F==="-"+L)return w;else return $;if(Z)if(L===F)return w;else if(X+L===F)return w;else return $;if(G===F)return w;else if(G===X+F)return w;return $}}else return $}},zJ=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},YJ=/^[-+]?0x[a-fA-F0-9]+$/,wJ=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var FJ={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};tZ.exports=QJ});var WL=E((OH,GL)=>{var RJ=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];this.lastEntities[W]={regex:new RegExp("&"+W+";","g"),val:$[W]}}},KJ=function($,U,G,W,X,Z,L){if($!==void 0){if(this.options.trimValues&&!W)$=$.trim();if($.length>0){if(!L)$=this.replaceEntitiesValue($);const Y=this.options.tagValueProcessor(U,$,G,X,Z);if(Y===null||Y===void 0)return $;else if(typeof Y!==typeof $||Y!==$)return Y;else if(this.options.trimValues)return lU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return lU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},EJ=function($){if(this.options.removeNSPrefix){const U=$.split(":"),G=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=G+U[1]}return $},BJ=function($,U,G){if(!this.options.ignoreAttributes&&typeof $==="string"){const W=$L.getAllMatches($,MJ),X=W.length,Z={};for(let L=0;L<X;L++){const Y=this.resolveNameSpace(W[L][1]);let w=W[L][4],F=this.options.attributeNamePrefix+Y;if(Y.length){if(this.options.transformAttributeName)F=this.options.transformAttributeName(F);if(F==="__proto__")F="#__proto__";if(w!==void 0){if(this.options.trimValues)w=w.trim();w=this.replaceEntitiesValue(w);const Q=this.options.attributeValueProcessor(Y,w,U);if(Q===null||Q===void 0)Z[F]=w;else if(typeof Q!==typeof w||Q!==w)Z[F]=Q;else Z[F]=lU(w,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)Z[F]=!0}}if(!Object.keys(Z).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=Z,L}return Z}},TJ=function($,U,G){const W=this.options.updateTag(U.tagname,G,U[":@"]);if(W===!1);else if(typeof W==="string")U.tagname=W,$.addChild(U);else $.addChild(U)},AJ=function($,U,G,W){if($){if(W===void 0)W=Object.keys(U.child).length===0;if($=this.parseTextData($,U.tagname,G,!1,U[":@"]?Object.keys(U[":@"]).length!==0:!1,W),$!==void 0&&$!=="")U.add(this.options.textNodeName,$);$=""}return $},OJ=function($,U,G){const W="*."+G;for(let X in $){const Z=$[X];if(W===Z||U===Z)return!0}return!1},CJ=function($,U,G=">"){let W,X="";for(let Z=U;Z<$.length;Z++){let L=$[Z];if(W){if(L===W)W=""}else if(L==='"'||L==="'")W=L;else if(L===G[0])if(G[1]){if($[Z+1]===G[1])return{data:X,index:Z}}else return{data:X,index:Z};else if(L==="\t")L=" ";X+=L}},V0=function($,U,G,W){const X=$.indexOf(U,G);if(X===-1)throw new Error(W);else return X+U.length-1},pU=function($,U,G,W=">"){const X=CJ($,U+1,W);if(!X)return;let Z=X.data;const L=X.index,Y=Z.search(/\s/);let w=Z,F=!0;if(Y!==-1)w=Z.substring(0,Y),Z=Z.substring(Y+1).trimStart();const Q=w;if(G){const z=w.indexOf(":");if(z!==-1)w=w.substr(z+1),F=w!==X.data.substr(z+1)}return{tagName:w,tagExp:Z,closeIndex:L,attrExpPresent:F,rawTagName:Q}},fJ=function($,U,G){const W=G;let X=1;for(;G<$.length;G++)if($[G]==="<")if($[G+1]==="/"){const Z=V0($,">",G,`${U} is not closed`);if($.substring(G+2,Z).trim()===U){if(X--,X===0)return{tagContent:$.substring(W,G),i:Z}}G=Z}else if($[G+1]==="?")G=V0($,"?>",G+1,"StopNode is not closed.");else if($.substr(G+1,3)==="!--")G=V0($,"-->",G+3,"StopNode is not closed.");else if($.substr(G+1,2)==="![")G=V0($,"]]>",G,"StopNode is not closed.")-2;else{const Z=pU($,G,">");if(Z){if((Z&&Z.tagName)===U&&Z.tagExp[Z.tagExp.length-1]!=="/")X++;G=Z.closeIndex}}},lU=function($,U,G){if(U&&typeof $==="string"){const W=$.trim();if(W==="true")return!0;else if(W==="false")return!1;else return JJ($,G)}else if($L.isExist($))return $;else return""},$L=Y$(),G1=rZ(),IJ=aZ(),JJ=eZ();class UL{constructor($){this.options=$,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(U,G)=>String.fromCharCode(Number.parseInt(G,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(U,G)=>String.fromCharCode(Number.parseInt(G,16))}},this.addExternalEntities=RJ,this.parseXml=VJ,this.parseTextData=KJ,this.resolveNameSpace=EJ,this.buildAttributesMap=BJ,this.isItStopNode=OJ,this.replaceEntitiesValue=HJ,this.readStopNodeData=fJ,this.saveTextToParentTag=AJ,this.addChild=TJ}}var MJ=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),VJ=function($){$=$.replace(/\r\n?/g,"\n");const U=new G1("!xml");let G=U,W="",X="";for(let Z=0;Z<$.length;Z++)if($[Z]==="<")if($[Z+1]==="/"){const Y=V0($,">",Z,"Closing Tag is not closed.");let w=$.substring(Z+2,Y).trim();if(this.options.removeNSPrefix){const z=w.indexOf(":");if(z!==-1)w=w.substr(z+1)}if(this.options.transformTagName)w=this.options.transformTagName(w);if(G)W=this.saveTextToParentTag(W,G,X);const F=X.substring(X.lastIndexOf(".")+1);if(w&&this.options.unpairedTags.indexOf(w)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${w}>`);let Q=0;if(F&&this.options.unpairedTags.indexOf(F)!==-1)Q=X.lastIndexOf(".",X.lastIndexOf(".")-1),this.tagsNodeStack.pop();else Q=X.lastIndexOf(".");X=X.substring(0,Q),G=this.tagsNodeStack.pop(),W="",Z=Y}else if($[Z+1]==="?"){let Y=pU($,Z,!1,"?>");if(!Y)throw new Error("Pi Tag is not closed.");if(W=this.saveTextToParentTag(W,G,X),this.options.ignoreDeclaration&&Y.tagName==="?xml"||this.options.ignorePiTags);else{const w=new G1(Y.tagName);if(w.add(this.options.textNodeName,""),Y.tagName!==Y.tagExp&&Y.attrExpPresent)w[":@"]=this.buildAttributesMap(Y.tagExp,X,Y.tagName);this.addChild(G,w,X)}Z=Y.closeIndex+1}else if($.substr(Z+1,3)==="!--"){const Y=V0($,"-->",Z+4,"Comment is not closed.");if(this.options.commentPropName){const w=$.substring(Z+4,Y-2);W=this.saveTextToParentTag(W,G,X),G.add(this.options.commentPropName,[{[this.options.textNodeName]:w}])}Z=Y}else if($.substr(Z+1,2)==="!D"){const Y=IJ($,Z);this.docTypeEntities=Y.entities,Z=Y.i}else if($.substr(Z+1,2)==="!["){const Y=V0($,"]]>",Z,"CDATA is not closed.")-2,w=$.substring(Z+9,Y);W=this.saveTextToParentTag(W,G,X);let F=this.parseTextData(w,G.tagname,X,!0,!1,!0,!0);if(F==null)F="";if(this.options.cdataPropName)G.add(this.options.cdataPropName,[{[this.options.textNodeName]:w}]);else G.add(this.options.textNodeName,F);Z=Y+2}else{let Y=pU($,Z,this.options.removeNSPrefix),w=Y.tagName;const F=Y.rawTagName;let{tagExp:Q,attrExpPresent:z,closeIndex:I}=Y;if(this.options.transformTagName)w=this.options.transformTagName(w);if(G&&W){if(G.tagname!=="!xml")W=this.saveTextToParentTag(W,G,X,!1)}const J=G;if(J&&this.options.unpairedTags.indexOf(J.tagname)!==-1)G=this.tagsNodeStack.pop(),X=X.substring(0,X.lastIndexOf("."));if(w!==U.tagname)X+=X?"."+w:w;if(this.isItStopNode(this.options.stopNodes,X,w)){let K="";if(Q.length>0&&Q.lastIndexOf("/")===Q.length-1){if(w[w.length-1]==="/")w=w.substr(0,w.length-1),X=X.substr(0,X.length-1),Q=w;else Q=Q.substr(0,Q.length-1);Z=Y.closeIndex}else if(this.options.unpairedTags.indexOf(w)!==-1)Z=Y.closeIndex;else{const M=this.readStopNodeData($,F,I+1);if(!M)throw new Error(`Unexpected end of ${F}`);Z=M.i,K=M.tagContent}const T=new G1(w);if(w!==Q&&z)T[":@"]=this.buildAttributesMap(Q,X,w);if(K)K=this.parseTextData(K,w,X,!0,z,!0,!0);X=X.substr(0,X.lastIndexOf(".")),T.add(this.options.textNodeName,K),this.addChild(G,T,X)}else{if(Q.length>0&&Q.lastIndexOf("/")===Q.length-1){if(w[w.length-1]==="/")w=w.substr(0,w.length-1),X=X.substr(0,X.length-1),Q=w;else Q=Q.substr(0,Q.length-1);if(this.options.transformTagName)w=this.options.transformTagName(w);const K=new G1(w);if(w!==Q&&z)K[":@"]=this.buildAttributesMap(Q,X,w);this.addChild(G,K,X),X=X.substr(0,X.lastIndexOf("."))}else{const K=new G1(w);if(this.tagsNodeStack.push(G),w!==Q&&z)K[":@"]=this.buildAttributesMap(Q,X,w);this.addChild(G,K,X),G=K}W="",Z=I}}else W+=$[Z];return U.child},HJ=function($){if(this.options.processEntities){for(let U in this.docTypeEntities){const G=this.docTypeEntities[U];$=$.replace(G.regx,G.val)}for(let U in this.lastEntities){const G=this.lastEntities[U];$=$.replace(G.regex,G.val)}if(this.options.htmlEntities)for(let U in this.htmlEntities){const G=this.htmlEntities[U];$=$.replace(G.regex,G.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};GL.exports=UL});var ZL=E((SJ)=>{var qJ=function($,U){return XL($,U)},XL=function($,U,G){let W;const X={};for(let Z=0;Z<$.length;Z++){const L=$[Z],Y=NJ(L);let w="";if(G===void 0)w=Y;else w=G+"."+Y;if(Y===U.textNodeName)if(W===void 0)W=L[Y];else W+=""+L[Y];else if(Y===void 0)continue;else if(L[Y]){let F=XL(L[Y],U,w);const Q=PJ(F,U);if(L[":@"])jJ(F,L[":@"],w,U);else if(Object.keys(F).length===1&&F[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)F=F[U.textNodeName];else if(Object.keys(F).length===0)if(U.alwaysCreateTextNode)F[U.textNodeName]="";else F="";if(X[Y]!==void 0&&X.hasOwnProperty(Y)){if(!Array.isArray(X[Y]))X[Y]=[X[Y]];X[Y].push(F)}else if(U.isArray(Y,w,Q))X[Y]=[F];else X[Y]=F}}if(typeof W==="string"){if(W.length>0)X[U.textNodeName]=W}else if(W!==void 0)X[U.textNodeName]=W;return X},NJ=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];if(W!==":@")return W}},jJ=function($,U,G,W){if(U){const X=Object.keys(U),Z=X.length;for(let L=0;L<Z;L++){const Y=X[L];if(W.isArray(Y,G+"."+Y,!0,!0))$[Y]=[U[Y]];else $[Y]=U[Y]}}},PJ=function($,U){const{textNodeName:G}=U,W=Object.keys($).length;if(W===0)return!0;if(W===1&&($[G]||typeof $[G]==="boolean"||$[G]===0))return!0;return!1};SJ.prettify=qJ});var wL=E((fH,YL)=>{var{buildOptions:bJ}=mZ(),kJ=WL(),{prettify:hJ}=ZL(),xJ=gU();class LL{constructor($){this.externalEntities={},this.options=bJ($)}parse($,U){if(typeof $==="string");else if($.toString)$=$.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(U){if(U===!0)U={};const X=xJ.validate($,U);if(X!==!0)throw Error(`${X.err.msg}:${X.err.line}:${X.err.col}`)}const G=new kJ(this.options);G.addExternalEntities(this.externalEntities);const W=G.parseXml($);if(this.options.preserveOrder||W===void 0)return W;else return hJ(W,this.options)}addEntity($,U){if(U.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if($.indexOf("&")!==-1||$.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");else if(U==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[$]=U}}YL.exports=LL});var JL=E((qH,IL)=>{var vJ=function($,U){let G="";if(U.format&&U.indentBy.length>0)G="\n";return QL($,U,"",G)},QL=function($,U,G,W){let X="",Z=!1;for(let L=0;L<$.length;L++){const Y=$[L],w=cJ(Y);if(w===void 0)continue;let F="";if(G.length===0)F=w;else F=`${G}.${w}`;if(w===U.textNodeName){let K=Y[w];if(!yJ(F,U))K=U.tagValueProcessor(w,K),K=zL(K,U);if(Z)X+=W;X+=K,Z=!1;continue}else if(w===U.cdataPropName){if(Z)X+=W;X+=`<![CDATA[${Y[w][0][U.textNodeName]}]]>`,Z=!1;continue}else if(w===U.commentPropName){X+=W+`<!--${Y[w][0][U.textNodeName]}-->`,Z=!0;continue}else if(w[0]==="?"){const K=FL(Y[":@"],U),T=w==="?xml"?"":W;let M=Y[w][0][U.textNodeName];M=M.length!==0?" "+M:"",X+=T+`<${w}${M}${K}?>`,Z=!0;continue}let Q=W;if(Q!=="")Q+=U.indentBy;const z=FL(Y[":@"],U),I=W+`<${w}${z}`,J=QL(Y[w],U,F,Q);if(U.unpairedTags.indexOf(w)!==-1)if(U.suppressUnpairedNode)X+=I+">";else X+=I+"/>";else if((!J||J.length===0)&&U.suppressEmptyNode)X+=I+"/>";else if(J&&J.endsWith(">"))X+=I+`>${J}${W}</${w}>`;else{if(X+=I+">",J&&W!==""&&(J.includes("/>")||J.includes("</")))X+=W+U.indentBy+J+W;else X+=J;X+=`</${w}>`}Z=!0}return X},cJ=function($){const U=Object.keys($);for(let G=0;G<U.length;G++){const W=U[G];if(!$.hasOwnProperty(W))continue;if(W!==":@")return W}},FL=function($,U){let G="";if($&&!U.ignoreAttributes)for(let W in $){if(!$.hasOwnProperty(W))continue;let X=U.attributeValueProcessor(W,$[W]);if(X=zL(X,U),X===!0&&U.suppressBooleanAttributes)G+=` ${W.substr(U.attributeNamePrefix.length)}`;else G+=` ${W.substr(U.attributeNamePrefix.length)}="${X}"`}return G},yJ=function($,U){$=$.substr(0,$.length-U.textNodeName.length-1);let G=$.substr($.lastIndexOf(".")+1);for(let W in U.stopNodes)if(U.stopNodes[W]===$||U.stopNodes[W]==="*."+G)return!0;return!1},zL=function($,U){if($&&$.length>0&&U.processEntities)for(let G=0;G<U.entities.length;G++){const W=U.entities[G];$=$.replace(W.regex,W.val)}return $};IL.exports=vJ});var KL=E((NH,RL)=>{var Y0=function($){if(this.options=Object.assign({},_J,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=pJ;if(this.processTextOrObjNode=dJ,this.options.format)this.indentate=gJ,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},dJ=function($,U,G){const W=this.j2x($,G+1);if($[this.options.textNodeName]!==void 0&&Object.keys($).length===1)return this.buildTextValNode($[this.options.textNodeName],U,W.attrStr,G);else return this.buildObjectNode(W.val,U,W.attrStr,G)},gJ=function($){return this.options.indentBy.repeat($)},pJ=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},uJ=JL(),_J={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function($,U){return U},attributeValueProcessor:function($,U){return U},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("\'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};Y0.prototype.build=function($){if(this.options.preserveOrder)return uJ($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};Y0.prototype.j2x=function($,U){let G="",W="";for(let X in $){if(!Object.prototype.hasOwnProperty.call($,X))continue;if(typeof $[X]==="undefined"){if(this.isAttribute(X))W+=""}else if($[X]===null)if(this.isAttribute(X))W+="";else if(X[0]==="?")W+=this.indentate(U)+"<"+X+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+X+"/"+this.tagEndChar;else if($[X]instanceof Date)W+=this.buildTextValNode($[X],X,"",U);else if(typeof $[X]!=="object"){const Z=this.isAttribute(X);if(Z)G+=this.buildAttrPairStr(Z,""+$[X]);else if(X===this.options.textNodeName){let L=this.options.tagValueProcessor(X,""+$[X]);W+=this.replaceEntitiesValue(L)}else W+=this.buildTextValNode($[X],X,"",U)}else if(Array.isArray($[X])){const Z=$[X].length;let L="",Y="";for(let w=0;w<Z;w++){const F=$[X][w];if(typeof F==="undefined");else if(F===null)if(X[0]==="?")W+=this.indentate(U)+"<"+X+"?"+this.tagEndChar;else W+=this.indentate(U)+"<"+X+"/"+this.tagEndChar;else if(typeof F==="object")if(this.options.oneListGroup){const Q=this.j2x(F,U+1);if(L+=Q.val,this.options.attributesGroupName&&F.hasOwnProperty(this.options.attributesGroupName))Y+=Q.attrStr}else L+=this.processTextOrObjNode(F,X,U);else if(this.options.oneListGroup){let Q=this.options.tagValueProcessor(X,F);Q=this.replaceEntitiesValue(Q),L+=Q}else L+=this.buildTextValNode(F,X,"",U)}if(this.options.oneListGroup)L=this.buildObjectNode(L,X,Y,U);W+=L}else if(this.options.attributesGroupName&&X===this.options.attributesGroupName){const Z=Object.keys($[X]),L=Z.length;for(let Y=0;Y<L;Y++)G+=this.buildAttrPairStr(Z[Y],""+$[X][Z[Y]])}else W+=this.processTextOrObjNode($[X],X,U)}return{attrStr:G,val:W}};Y0.prototype.buildAttrPairStr=function($,U){if(U=this.options.attributeValueProcessor($,""+U),U=this.replaceEntitiesValue(U),this.options.suppressBooleanAttributes&&U==="true")return" "+$;else return" "+$+'="'+U+'"'};Y0.prototype.buildObjectNode=function($,U,G,W){if($==="")if(U[0]==="?")return this.indentate(W)+"<"+U+G+"?"+this.tagEndChar;else return this.indentate(W)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else{let X="</"+U+this.tagEndChar,Z="";if(U[0]==="?")Z="?",X="";if((G||G==="")&&$.indexOf("<")===-1)return this.indentate(W)+"<"+U+G+Z+">"+$+X;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&Z.length===0)return this.indentate(W)+`<!--${$}-->`+this.newLine;else return this.indentate(W)+"<"+U+G+Z+this.tagEndChar+$+this.indentate(W)+X}};Y0.prototype.closeTag=function($){let U="";if(this.options.unpairedTags.indexOf($)!==-1){if(!this.options.suppressUnpairedNode)U="/"}else if(this.options.suppressEmptyNode)U="/";else U=`></${$}`;return U};Y0.prototype.buildTextValNode=function($,U,G,W){if(this.options.cdataPropName!==!1&&U===this.options.cdataPropName)return this.indentate(W)+`<![CDATA[${$}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName)return this.indentate(W)+`<!--${$}-->`+this.newLine;else if(U[0]==="?")return this.indentate(W)+"<"+U+G+"?"+this.tagEndChar;else{let X=this.options.tagValueProcessor(U,$);if(X=this.replaceEntitiesValue(X),X==="")return this.indentate(W)+"<"+U+G+this.closeTag(U)+this.tagEndChar;else return this.indentate(W)+"<"+U+G+">"+X+"</"+U+this.tagEndChar}};Y0.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let U=0;U<this.options.entities.length;U++){const G=this.options.entities[U];$=$.replace(G.regex,G.val)}return $};RL.exports=Y0});var ML=E((jH,EL)=>{var lJ=gU(),sJ=wL(),mJ=KL();EL.exports={XMLParser:sJ,XMLValidator:lJ,XMLBuilder:mJ}});var OL=E((PH,AL)=>{var{defineProperty:w$,getOwnPropertyDescriptor:nJ,getOwnPropertyNames:iJ}=Object,rJ=Object.prototype.hasOwnProperty,x=($,U)=>w$($,"name",{value:U,configurable:!0}),oJ=($,U)=>{for(var G in U)w$($,G,{get:U[G],enumerable:!0})},aJ=($,U,G,W)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let X of iJ(U))if(!rJ.call($,X)&&X!==G)w$($,X,{get:()=>U[X],enumerable:!(W=nJ(U,X))||W.enumerable})}return $},tJ=($)=>aJ(w$({},"__esModule",{value:!0}),$),BL={};oJ(BL,{_toBool:()=>$R,_toNum:()=>UR,_toStr:()=>eJ,awsExpectUnion:()=>WR,loadRestJsonErrorCode:()=>LR,loadRestXmlErrorCode:()=>QR,parseJsonBody:()=>TL,parseJsonErrorBody:()=>ZR,parseXmlBody:()=>HL,parseXmlErrorBody:()=>FR});AL.exports=tJ(BL);var eJ=x(($)=>{if($==null)return $;if(typeof $==="number"||typeof $==="bigint"){const U=new Error(`Received number ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}if(typeof $==="boolean"){const U=new Error(`Received boolean ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}return $},"_toStr"),$R=x(($)=>{if($==null)return $;if(typeof $==="string"){const U=$.toLowerCase();if($!==""&&U!=="false"&&U!=="true"){const G=new Error(`Received string "${$}" where a boolean was expected.`);G.name="Warning",console.warn(G)}return $!==""&&U!=="false"}return $},"_toBool"),UR=x(($)=>{if($==null)return $;if(typeof $==="string"){const U=Number($);if(U.toString()!==$){const G=new Error(`Received string "${$}" where a number was expected.`);return G.name="Warning",console.warn(G),$}return U}return $},"_toNum"),GR=q0(),WR=x(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return GR.expectUnion($)},"awsExpectUnion"),XR=q0(),VL=x(($,U)=>XR.collectBody($,U).then((G)=>U.utf8Encoder(G)),"collectBodyString"),TL=x(($,U)=>VL($,U).then((G)=>{if(G.length)try{return JSON.parse(G)}catch(W){if((W==null?void 0:W.name)==="SyntaxError")Object.defineProperty(W,"$responseBodyText",{value:G});throw W}return{}}),"parseJsonBody"),ZR=x(async($,U)=>{const G=await TL($,U);return G.message=G.message??G.Message,G},"parseJsonErrorBody"),LR=x(($,U)=>{const G=x((Z,L)=>Object.keys(Z).find((Y)=>Y.toLowerCase()===L.toLowerCase()),"findKey"),W=x((Z)=>{let L=Z;if(typeof L==="number")L=L.toString();if(L.indexOf(",")>=0)L=L.split(",")[0];if(L.indexOf(":")>=0)L=L.split(":")[0];if(L.indexOf("#")>=0)L=L.split("#")[1];return L},"sanitizeErrorCode"),X=G($.headers,"x-amzn-errortype");if(X!==void 0)return W($.headers[X]);if(U.code!==void 0)return W(U.code);if(U.__type!==void 0)return W(U.__type)},"loadRestJsonErrorCode"),YR=q0(),wR=ML(),HL=x(($,U)=>VL($,U).then((G)=>{if(G.length){const W=new wR.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(w,F)=>F.trim()===""&&F.includes("\n")?"":void 0});W.addEntity("#xD","\r"),W.addEntity("#10","\n");let X;try{X=W.parse(G,!0)}catch(w){if(w&&typeof w==="object")Object.defineProperty(w,"$responseBodyText",{value:G});throw w}const Z="#text",L=Object.keys(X)[0],Y=X[L];if(Y[Z])Y[L]=Y[Z],delete Y[Z];return YR.getValueFromTextNode(Y)}return{}}),"parseXmlBody"),FR=x(async($,U)=>{const G=await HL($,U);if(G.Error)G.Error.message=G.Error.message??G.Error.Message;return G},"parseXmlErrorBody"),QR=x(($,U)=>{var G;if(((G=U==null?void 0:U.Error)==null?void 0:G.Code)!==void 0)return U.Error.Code;if((U==null?void 0:U.Code)!==void 0)return U.Code;if($.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var IR=E((W1)=>{Object.defineProperty(W1,"__esModule",{value:!0});var sU=zR();sU.__exportStar(wZ(),W1);sU.__exportStar(yZ(),W1);sU.__exportStar(OL(),W1)});function jR($){return $}var vL=($)=>(U)=>async(G)=>{if(!c.isInstance(G.request))return U(G);const{request:W}=G,{handlerProtocol:X=""}=$.requestHandler.metadata||{};if(X.indexOf("h2")>=0&&!W.headers[":authority"])delete W.headers.host,W.headers[":authority"]=W.hostname+(W.port?":"+W.port:"");else if(!W.headers.host){let Z=W.hostname;if(W.port!=null)Z+=`:${W.port}`;W.headers.host=Z}return U(G)},cL={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},PR=($)=>({applyToStack:(U)=>{U.add(vL($),cL)}});var yL=()=>($,U)=>async(G)=>{try{const W=await $(G),{clientName:X,commandName:Z,logger:L,dynamoDbDocumentClientOptions:Y={}}=U,{overrideInputFilterSensitiveLog:w,overrideOutputFilterSensitiveLog:F}=Y,Q=w??U.inputFilterSensitiveLog,z=F??U.outputFilterSensitiveLog,{$metadata:I,...J}=W.output;return L?.info?.({clientName:X,commandName:Z,input:Q(G.input),output:z(J),metadata:I}),W}catch(W){const{clientName:X,commandName:Z,logger:L,dynamoDbDocumentClientOptions:Y={}}=U,{overrideInputFilterSensitiveLog:w}=Y,F=w??U.inputFilterSensitiveLog;throw L?.error?.({clientName:X,commandName:Z,input:F(G.input),error:W,metadata:W.$metadata}),W}},uL={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},DR=($)=>({applyToStack:(U)=>{U.add(yL(),uL)}});var oU="X-Amzn-Trace-Id",_L="AWS_LAMBDA_FUNCTION_NAME",dL="_X_AMZN_TRACE_ID",gL=($)=>(U)=>async(G)=>{const{request:W}=G;if(!c.isInstance(W)||$.runtime!=="node"||W.headers.hasOwnProperty(oU))return U(G);const X=process.env[_L],Z=process.env[dL],L=(Y)=>typeof Y==="string"&&Y.length>0;if(L(X)&&L(Z))W.headers[oU]=Z;return U({...G,request:W})},pL={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},vR=($)=>({applyToStack:(U)=>{U.add(gL($),pL)}});function dK($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var s7=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),r0=($)=>s7.test($)||$.startsWith("[")&&$.endsWith("]");var m7=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),o0=($,U=!1)=>{if(!U)return m7.test($);const G=$.split(".");for(let W of G)if(!o0(W))return!1;return!0};var a0={};var a="endpoints";function _($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${_($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(_).join(", ")})`;return JSON.stringify($,null,2)}class O extends Error{constructor($){super($);this.name="EndpointError"}}var IX=($,U)=>$===U;var JX=($)=>{const U=$.split("."),G=[];for(let W of U){const X=W.indexOf("[");if(X!==-1){if(W.indexOf("]")!==W.length-1)throw new O(`Path: '${$}' does not end with ']'`);const Z=W.slice(X+1,-1);if(Number.isNaN(parseInt(Z)))throw new O(`Invalid array index: '${Z}' in path: '${$}'`);if(X!==0)G.push(W.slice(0,X));G.push(Z)}else G.push(W)}return G};var u1=($,U)=>JX(U).reduce((G,W)=>{if(typeof G!=="object")throw new O(`Index '${W}' in '${U}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(G))return G[parseInt(W)];return G[W]},$);var RX=($)=>$!=null;var KX=($)=>!$;var _1=IU(F0(),1);var zU={[_1.EndpointURLScheme.HTTP]:80,[_1.EndpointURLScheme.HTTPS]:443},EX=($)=>{const U=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:I,port:J,protocol:K="",path:T="",query:M={}}=$,V=new URL(`${K}//${I}${J?`:${J}`:""}${T}`);return V.search=Object.entries(M).map(([B,H])=>`${B}=${H}`).join("&"),V}return new URL($)}catch(I){return null}})();if(!U)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;const G=U.href,{host:W,hostname:X,pathname:Z,protocol:L,search:Y}=U;if(Y)return null;const w=L.slice(0,-1);if(!Object.values(_1.EndpointURLScheme).includes(w))return null;const F=r0(X),Q=G.includes(`${W}:${zU[w]}`)||typeof $==="string"&&$.includes(`${W}:${zU[w]}`),z=`${W}${Q?`:${zU[w]}`:""}`;return{scheme:w,authority:z,path:Z,normalizedPath:Z.endsWith("/")?Z:`${Z}/`,isIp:F}};var MX=($,U)=>$===U;var BX=($,U,G,W)=>{if(U>=G||$.length<G)return null;if(!W)return $.substring(U,G);return $.substring($.length-G,$.length-U)};var VX=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var TX={booleanEquals:IX,getAttr:u1,isSet:RX,isValidHostLabel:o0,not:KX,parseURL:EX,stringEquals:MX,substring:BX,uriEncode:VX};var d1=($,U)=>{const G=[],W={...U.endpointParams,...U.referenceRecord};let X=0;while(X<$.length){const Z=$.indexOf("{",X);if(Z===-1){G.push($.slice(X));break}G.push($.slice(X,Z));const L=$.indexOf("}",Z);if(L===-1){G.push($.slice(Z));break}if($[Z+1]==="{"&&$[L+1]==="}")G.push($.slice(Z+1,L)),X=L+2;const Y=$.substring(Z+1,L);if(Y.includes("#")){const[w,F]=Y.split("#");G.push(u1(W[w],F))}else G.push(W[Y]);X=L+1}return G.join("")};var HX=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var X0=($,U,G)=>{if(typeof $==="string")return d1($,G);else if($.fn)return g1($,G);else if($.ref)return HX($,G);throw new O(`'${U}': ${String($)} is not a string, function or reference.`)};var g1=({fn:$,argv:U},G)=>{const W=U.map((Z)=>["boolean","number"].includes(typeof Z)?Z:X0(Z,"arg",G)),X=$.split(".");if(X[0]in a0&&X[1]!=null)return a0[X[0]][X[1]](...W);return TX[$](...W)};var AX=({assign:$,...U},G)=>{if($&&$ in G.referenceRecord)throw new O(`'${$}' is already defined in Reference Record.`);const W=g1(U,G);return G.logger?.debug?.(`${a} evaluateCondition: ${_(U)} = ${_(W)}`),{result:W===""?!0:!!W,...$!=null&&{toAssign:{name:$,value:W}}}};var j0=($=[],U)=>{const G={};for(let W of $){const{result:X,toAssign:Z}=AX(W,{...U,referenceRecord:{...U.referenceRecord,...G}});if(!X)return{result:X};if(Z)G[Z.name]=Z.value,U.logger?.debug?.(`${a} assign: ${Z.name} := ${_(Z.value)}`)}return{result:!0,referenceRecord:G}};var OX=($,U)=>Object.entries($).reduce((G,[W,X])=>({...G,[W]:X.map((Z)=>{const L=X0(Z,"Header value entry",U);if(typeof L!=="string")throw new O(`Header '${W}' value '${L}' is not a string`);return L})}),{});var JU=($,U)=>{if(Array.isArray($))return $.map((G)=>JU(G,U));switch(typeof $){case"string":return d1($,U);case"object":if($===null)throw new O(`Unexpected endpoint property: ${$}`);return p1($,U);case"boolean":return $;default:throw new O(`Unexpected endpoint property type: ${typeof $}`)}};var p1=($,U)=>Object.entries($).reduce((G,[W,X])=>({...G,[W]:JU(X,U)}),{});var CX=($,U)=>{const G=X0($,"Endpoint URL",U);if(typeof G==="string")try{return new URL(G)}catch(W){throw console.error(`Failed to construct URL with ${G}`,W),W}throw new O(`Endpoint URL must be a string, got ${typeof G}`)};var fX=($,U)=>{const{conditions:G,endpoint:W}=$,{result:X,referenceRecord:Z}=j0(G,U);if(!X)return;const L={...U,referenceRecord:{...U.referenceRecord,...Z}},{url:Y,properties:w,headers:F}=W;return U.logger?.debug?.(`${a} Resolving endpoint from template: ${_(W)}`),{...F!=null&&{headers:OX(F,L)},...w!=null&&{properties:p1(w,L)},url:CX(Y,L)}};var qX=($,U)=>{const{conditions:G,error:W}=$,{result:X,referenceRecord:Z}=j0(G,U);if(!X)return;throw new O(X0(W,"Error",{...U,referenceRecord:{...U.referenceRecord,...Z}}))};var NX=($,U)=>{const{conditions:G,rules:W}=$,{result:X,referenceRecord:Z}=j0(G,U);if(!X)return;return l1(W,{...U,referenceRecord:{...U.referenceRecord,...Z}})};var l1=($,U)=>{for(let G of $)if(G.type==="endpoint"){const W=fX(G,U);if(W)return W}else if(G.type==="error")qX(G,U);else if(G.type==="tree"){const W=NX(G,U);if(W)return W}else throw new O(`Unknown endpoint rule: ${G}`);throw new O("Rules evaluation failed")};var n7=($,U)=>{const{endpointParams:G,logger:W}=U,{parameters:X,rules:Z}=$;U.logger?.debug?.(`${a} Initial EndpointParams: ${_(G)}`);const L=Object.entries(X).filter(([,F])=>F.default!=null).map(([F,Q])=>[F,Q.default]);if(L.length>0)for(let[F,Q]of L)G[F]=G[F]??Q;const Y=Object.entries(X).filter(([,F])=>F.required).map(([F])=>F);for(let F of Y)if(G[F]==null)throw new O(`Missing required parameter: '${F}'`);const w=l1(Z,{endpointParams:G,logger:W,referenceRecord:{}});if(U.endpointParams?.Endpoint)try{const F=new URL(U.endpointParams.Endpoint),{protocol:Q,port:z}=F;w.url.protocol=Q,w.url.port=z}catch(F){}return U.logger?.debug?.(`${a} Resolved endpoint: ${_(w)}`),w};var RU=($,U=!1)=>{if(U){for(let G of $.split("."))if(!RU(G))return!1;return!0}if(!o0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(r0($))return!1;return!0};var jX=($)=>{const U=$.split(":");if(U.length<6)return null;const[G,W,X,Z,L,...Y]=U;if(G!=="arn"||W===""||X===""||Y[0]==="")return null;return{partition:W,service:X,region:Z,accountId:L,resourceId:Y[0].includes("/")?Y[0].split("/"):Y}};var PX={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"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)"},"aws-global":{description:"AWS Standard 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)"},"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 China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{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 GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) 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:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"};var r7=PX,o7="",SX=($)=>{const{partitions:U}=r7;for(let W of U){const{regions:X,outputs:Z}=W;for(let[L,Y]of Object.entries(X))if(L===$)return{...Z,...Y}}for(let W of U){const{regionRegex:X,outputs:Z}=W;if(new RegExp(X).test($))return{...Z}}const G=U.find((W)=>W.id==="aws");if(!G)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...G.outputs}};var DX=()=>o7;var a7={isVirtualHostableS3Bucket:RU,parseArn:jX,partition:SX};a0.aws=a7;var KU="user-agent",s1="x-amz-user-agent",EU=" ",m1="/",bX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,kX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,MU="-";var t7=($)=>(U,G)=>async(W)=>{const{request:X}=W;if(!c.isInstance(X))return U(W);const{headers:Z}=X,L=G?.userAgent?.map(BU)||[],Y=(await $.defaultUserAgentProvider()).map(BU),w=$?.customUserAgent?.map(BU)||[],F=DX(),Q=(F?[F]:[]).concat([...Y,...L,...w]).join(EU),z=[...Y.filter((I)=>I.startsWith("aws-sdk-")),...w].join(EU);if($.runtime!=="browser"){if(z)Z[s1]=Z[s1]?`${Z[KU]} ${z}`:z;Z[KU]=Q}else Z[s1]=Q;return U({...W,request:X})},BU=($)=>{const U=$[0].split(m1).map((L)=>L.replace(bX,MU)).join(m1),G=$[1]?.replace(kX,MU),W=U.indexOf(m1),X=U.substring(0,W);let Z=U.substring(W+1);if(X==="api")Z=Z.toLowerCase();return[X,Z,G].filter((L)=>L&&L.length>0).reduce((L,Y,w)=>{switch(w){case 0:return Y;case 1:return`${L}/${Y}`;default:return`${L}#${Y}`}},"")},e7={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},TM=($)=>({applyToStack:(U)=>{U.add(t7($),e7)}});var n1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var VU=($)=>n1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var SM=($)=>{const{region:U,useFipsEndpoint:G}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return VU(U);const W=await U();return VU(W)},useFipsEndpoint:async()=>{const W=typeof U==="string"?U:await U();if(n1(W))return!0;return typeof G!=="function"?Promise.resolve(!!G):G()}}};var P0=($,U,G)=>{if(!(U in $))return;if($[U]==="true")return!0;if($[U]==="false")return!1;throw new Error(`Cannot load ${G} "${U}". Expected "true" or "false", got ${$[U]}.`)};var Z0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(Z0||(Z0={}));var $z="AWS_USE_DUALSTACK_ENDPOINT",Uz="use_dualstack_endpoint";var _M={environmentVariableSelector:($)=>P0($,$z,Z0.ENV),configFileSelector:($)=>P0($,Uz,Z0.CONFIG),default:!1};var Gz="AWS_USE_FIPS_ENDPOINT",Wz="use_fips_endpoint";var pM={environmentVariableSelector:($)=>P0($,Gz,Z0.ENV),configFileSelector:($)=>P0($,Wz,Z0.CONFIG),default:!1};var TU=IU(F0(),1),hX=($)=>$[TU.SMITHY_CONTEXT_KEY]||($[TU.SMITHY_CONTEXT_KEY]={});var t=($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U};var xX={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},wB={preferredFile:"credentials"};function Xz($){return(U)=>async(G)=>{const W=G.request;if(c.isInstance(W)){const{body:X,headers:Z}=W;if(X&&Object.keys(Z).map((L)=>L.toLowerCase()).indexOf(vX)===-1)try{const L=$(X);W.headers={...W.headers,[vX]:String(L)}}catch(L){}}return U({...G,request:W})}}var vX="content-length",Zz={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},xB=($)=>({applyToStack:(U)=>{U.add(Xz($.bodyLengthChecker),Zz)}});var cX=($,U)=>(G)=>async(W)=>{const{response:X}=await G(W);try{const Z=await U(X,$);return{response:X,output:Z}}catch(Z){if(Object.defineProperty(Z,"$response",{value:X}),!("$metadata"in Z)){if(Z.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof Z.$responseBodyText!=="undefined"){if(Z.$response)Z.$response.body=Z.$responseBodyText}}throw Z}};var yX=($,U)=>(G,W)=>async(X)=>{const Z=W.endpointV2?.url&&$.urlParser?async()=>$.urlParser(W.endpointV2.url):$.endpoint;if(!Z)throw new Error("No valid endpoint provider available.");const L=await U(X.input,{...$,endpoint:Z});return G({...X,request:L})};function dB($,U,G){return{applyToStack:(W)=>{W.add(cX($,G),Lz),W.add(yX($,U),HU)}}}var Lz={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},HU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var uX=async($)=>{const U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(zz(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Qz(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},Yz=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,wz=/(\d+\.){3}\d+/,Fz=/\.\./;var Qz=($)=>Yz.test($)&&!wz.test($)&&!Fz.test($),zz=($)=>{const[U,G,W,,,X]=$.split(":"),Z=U==="arn"&&$.split(":").length>=6,L=Boolean(Z&&G&&W&&X);if(Z&&!L)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return L};var _X=($,U,G)=>{const W=async()=>{const X=G[$]??G[U];if(typeof X==="function")return X();return X};if($==="credentialScope"||U==="CredentialScope")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return X?.credentialScope??X?.CredentialScope};if($==="accountId"||U==="AccountId")return async()=>{const X=typeof G.credentials==="function"?await G.credentials():G.credentials;return X?.accountId??X?.AccountId};if($==="endpoint"||U==="endpoint")return async()=>{const X=await W();if(X&&typeof X==="object"){if("url"in X)return X.url.href;if("hostname"in X){const{protocol:Z,hostname:L,port:Y,path:w}=X;return`${Z}//${L}${Y?":"+Y:""}${w}`}}return X};return W};var dX="AWS_ENDPOINT_URL",gX="endpoint_url",pX=($)=>({environmentVariableSelector:(U)=>{const G=$.split(" ").map((Z)=>Z.toUpperCase()),W=U[[dX,...G].join("_")];if(W)return W;const X=U[dX];if(X)return X;return},configFileSelector:(U,G)=>{if(G&&U.services){const X=G[["services",U.services].join(AU)];if(X){const Z=$.split(" ").map((Y)=>Y.toLowerCase()),L=X[[Z.join("_"),gX].join(AU)];if(L)return L}}const W=U[gX];if(W)return W;return},default:void 0});var lX=async($)=>K0(pX($))();var i1=($)=>{if(typeof $==="object"){if("url"in $)return OU($.url);return $}return OU($)};var sX=async($,U,G,W)=>{if(!G.endpoint){const L=await lX(G.serviceId||"");if(L)G.endpoint=()=>Promise.resolve(i1(L))}const X=await Iz($,U,G);if(typeof G.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return G.endpointProvider(X,W)},Iz=async($,U,G)=>{const W={},X=U?.getEndpointParameterInstructions?.()||{};for(let[Z,L]of Object.entries(X))switch(L.type){case"staticContextParams":W[Z]=L.value;break;case"contextParams":W[Z]=$[L.name];break;case"clientContextParams":case"builtInParams":W[Z]=await _X(L.name,Z,G)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(X).length===0)Object.assign(W,G);if(String(G.serviceId).toLowerCase()==="s3")await uX(W);return W};var mX=({config:$,instructions:U})=>{return(G,W)=>async(X)=>{const Z=await sX(X.input,{getEndpointParameterInstructions(){return U}},{...$},W);W.endpointV2=Z,W.authSchemes=Z.properties?.authSchemes;const L=W.authSchemes?.[0];if(L){W.signing_region=L.signingRegion,W.signing_service=L.signingName;const w=hX(W)?.selectedHttpAuthScheme?.httpAuthOption;if(w)w.signingProperties=Object.assign(w.signingProperties||{},{signing_region:L.signingRegion,signingRegion:L.signingRegion,signing_service:L.signingName,signingName:L.signingName,signingRegionSet:L.signingRegionSet},L.properties)}return G({...X})}};var Jz={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:HU.name},RV=($,U)=>({applyToStack:(G)=>{G.addRelativeTo(mX({config:$,instructions:U}),Jz)}});var BV=($)=>{const U=$.tls??!0,{endpoint:G}=$,W=G!=null?async()=>i1(await t(G)()):void 0;return{...$,endpoint:W,tls:U,isCustomEndpoint:!!G,useDualstackEndpoint:t($.useDualstackEndpoint??!1),useFipsEndpoint:t($.useFipsEndpoint??!1)}};var n=IU(j$(),1),PV=n.default.v1,SV=n.default.v3,nX=n.default.v4,DV=n.default.v5,bV=n.default.NIL,kV=n.default.version,hV=n.default.validate,xV=n.default.stringify,vV=n.default.parse;var s;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(s||(s={}));var E0=3,iX=s.STANDARD;var rX=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],oX=["TimeoutError","RequestTimeout","RequestTimeoutException"],aX=[500,502,503,504],tX=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var Rz=($)=>$.$metadata?.clockSkewCorrected,S0=($)=>$.$metadata?.httpStatusCode===429||rX.includes($.name)||$.$retryable?.throttling==!0,r1=($)=>Rz($)||oX.includes($.name)||tX.includes($?.code||"")||aX.includes($.$metadata?.httpStatusCode||0),eX=($)=>{if($.$metadata?.httpStatusCode!==void 0){const U=$.$metadata.httpStatusCode;if(500<=U&&U<=599&&!r1($))return!0;return!1}return!1};class o1{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.smooth??0.8;const U=this.getCurrentTimeInSeconds();this.lastThrottleTime=U,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){const U=($-this.currentCapacity)/this.fillRate*1000;await new Promise((G)=>setTimeout(G,U))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){const $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}const U=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+U),this.lastTimestamp=$}updateClientSendingRate($){let U;if(this.updateMeasuredRate(),S0($)){const W=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=W,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle(W),this.enableTokenBucket()}else this.calculateTimeWindow(),U=this.cubicSuccess(this.getCurrentTimeInSeconds());const G=Math.min(U,2*this.measuredTxRate);this.updateTokenBucketRate(G)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const $=this.getCurrentTimeInSeconds(),U=Math.floor($*2)/2;if(this.requestCount++,U>this.lastTxRateBucket){const G=this.requestCount/(U-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(G*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=U}}getPrecise($){return parseFloat($.toFixed(8))}}var M0=100,t0=20000,CU=500,a1=500,fU=5,qU=10,NU=1,t1="amz-sdk-invocation-id",e1="amz-sdk-request";var $Z=()=>{let $=M0;return{computeNextBackoffDelay:(W)=>{return Math.floor(Math.min(t0,Math.random()*2**W*$))},setDelayBase:(W)=>{$=W}}};var jU=({retryDelay:$,retryCount:U,retryCost:G})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min(t0,$),getRetryCost:()=>G}};class D0{constructor($){this.maxAttempts=$,this.mode=s.STANDARD,this.capacity=a1,this.retryBackoffStrategy=$Z(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return jU({retryDelay:M0,retryCount:0})}async refreshRetryTokenForRetry($,U){const G=await this.getMaxAttempts();if(this.shouldRetry($,U,G)){const W=U.errorType;this.retryBackoffStrategy.setDelayBase(W==="THROTTLING"?CU:M0);const X=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),Z=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,X):X,L=this.getCapacityCost(W);return this.capacity-=L,jU({retryDelay:Z,retryCount:$.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(a1,this.capacity+($.getRetryCost()??NU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${E0}`),E0}}shouldRetry($,U,G){return $.getRetryCount()+1<G&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?qU:fU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class PU{constructor($,U){this.maxAttemptsProvider=$,this.mode=s.ADAPTIVE;const{rateLimiter:G}=U??{};this.rateLimiter=G??new o1,this.standardRetryStrategy=new D0($)}async acquireInitialRetryToken($){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken($)}async refreshRetryTokenForRetry($,U){return this.rateLimiter.updateClientSendingRate(U),this.standardRetryStrategy.refreshRetryTokenForRetry($,U)}recordSuccess($){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess($)}}var UZ="AWS_MAX_ATTEMPTS",GZ="max_attempts",BT={environmentVariableSelector:($)=>{const U=$[UZ];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Environment variable ${UZ} mast be a number, got "${U}"`);return G},configFileSelector:($)=>{const U=$[GZ];if(!U)return;const G=parseInt(U);if(Number.isNaN(G))throw new Error(`Shared config file entry ${GZ} mast be a number, got "${U}"`);return G},default:E0},VT=($)=>{const{retryStrategy:U}=$,G=t($.maxAttempts??E0);return{...$,maxAttempts:G,retryStrategy:async()=>{if(U)return U;if(await t($.retryMode)()===s.ADAPTIVE)return new PU(G);return new D0(G)}}},Kz="AWS_RETRY_MODE",Ez="retry_mode",TT={environmentVariableSelector:($)=>$[Kz],configFileSelector:($)=>$[Ez],default:iX};import{Readable as Mz} from"stream";var WZ=($)=>$?.body instanceof Mz||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var SU=($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)};var Bz=($)=>(U,G)=>async(W)=>{let X=await $.retryStrategy();const Z=await $.maxAttempts();if(Vz(X)){X=X;let L=await X.acquireInitialRetryToken(G.partition_id),Y=new Error,w=0,F=0;const{request:Q}=W,z=c.isInstance(Q);if(z)Q.headers[t1]=nX();while(!0)try{if(z)Q.headers[e1]=`attempt=${w+1}; max=${Z}`;const{response:I,output:J}=await U(W);return X.recordSuccess(L),J.$metadata.attempts=w+1,J.$metadata.totalRetryDelay=F,{response:I,output:J}}catch(I){const J=Tz(I);if(Y=SU(I),z&&WZ(Q))throw(G.logger instanceof XZ?console:G.logger)?.warn("An error was encountered in a non-retryable streaming request."),Y;try{L=await X.refreshRetryTokenForRetry(L,J)}catch(T){if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=w+1,Y.$metadata.totalRetryDelay=F,Y}w=L.getRetryCount();const K=L.getRetryDelay();F+=K,await new Promise((T)=>setTimeout(T,K))}}else{if(X=X,X?.mode)G.userAgent=[...G.userAgent||[],["cfg/retry-mode",X.mode]];return X.retry(U,W)}},Vz=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",Tz=($)=>{const U={error:$,errorType:Hz($)},G=Oz($.$response);if(G)U.retryAfterHint=G;return U},Hz=($)=>{if(S0($))return"THROTTLING";if(r1($))return"TRANSIENT";if(eX($))return"SERVER_ERROR";return"CLIENT_ERROR"},Az={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},bT=($)=>({applyToStack:(U)=>{U.add(Bz($),Az)}}),Oz=($)=>{if(!DU.isInstance($))return;const U=Object.keys($.headers).find((Z)=>Z.toLowerCase()==="retry-after");if(!U)return;const G=$.headers[U],W=Number(G);if(!Number.isNaN(W))return new Date(W*1000);return new Date(G)};import{platform as JR,release as RR} from"os";import{env as fL,versions as KR} from"process";var mU={isCrtAvailable:!1};var CL=()=>{if(mU.isCrtAvailable)return["md/crt-avail"];return null};var ER="AWS_SDK_UA_APP_ID",MR="sdk-ua-app-id",yH=({serviceId:$,clientVersion:U})=>{const G=[["aws-sdk-js",U],["ua","2.0"],[`os/${JR()}`,RR()],["lang/js"],["md/nodejs",`${KR.node}`]],W=CL();if(W)G.push(W);if($)G.push([`api/${$}`,U]);if(fL.AWS_EXECUTION_ENV)G.push([`exec-env/${fL.AWS_EXECUTION_ENV}`]);const X=K0({environmentVariableSelector:(L)=>L[ER],configFileSelector:(L)=>L[MR],default:void 0})();let Z=void 0;return async()=>{if(!Z){const L=await X;Z=L?[...G,[`app/${L}`]]:[...G]}return Z}};import{Buffer as BR} from"buffer";import{createHash as VR,createHmac as TR} from"crypto";var qL=function($,U){if(BR.isBuffer($))return $;if(typeof $==="string")return NL($,U);if(ArrayBuffer.isView($))return nU($.buffer,$.byteOffset,$.byteLength);return nU($)};class HR{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(jL(qL($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?TR(this.algorithmIdentifier,qL(this.secret)):VR(this.algorithmIdentifier)}}import{fstatSync as AR,lstatSync as OR} from"fs";var nH=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if(typeof $.path==="string"||Buffer.isBuffer($.path))return OR($.path).size;else if(typeof $.fd==="number")return AR($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var PL="AWS_EXECUTION_ENV",iU="AWS_REGION",rU="AWS_DEFAULT_REGION",SL="AWS_EC2_METADATA_DISABLED",DL=["in-region","cross-region","mobile","standard","legacy"],bL="/latest/meta-data/placement/region";var kL={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var XA=({region:$=K0(xX),defaultsMode:U=K0(kL)}={})=>hL(async()=>{const G=typeof U==="function"?await U():U;switch(G?.toLowerCase()){case"auto":return CR($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(G?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${DL.join(", ")}, got ${G}`)}}),CR=async($)=>{if($){const U=typeof $==="function"?await $():$,G=await fR();if(!G)return"standard";if(U===G)return"in-region";else return"cross-region"}return"standard"},fR=async()=>{if(process.env[PL]&&(process.env[iU]||process.env[rU]))return process.env[iU]??process.env[rU];if(!process.env[SL])try{const{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-2895a97b65e7107b.js"),G=await $();return(await U({...G,path:bL})).toString()}catch($){}};var wA=($)=>{let U=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");const G=$.region;if(typeof G==="string")return G;return G()};return{setRegion(G){U=G},region(){return U}}},FA=($)=>{return{region:$.region()}};export{jR as Ca,PR as Da,DR as Ea,vR as Fa,jZ as Ga,P0 as Ha,Z0 as Ia,QU as Ja,hX as Ka,t as La,dK as Ma,a0 as Na,n7 as Oa,a7 as Pa,TM as Qa,_M as Ra,pM as Sa,xX as Ta,wB as Ua,SM as Va,xB as Wa,Iz as Xa,dB as Ya,RV as Za,BV as _a,iX as $a,nX as ab,BT as bb,VT as cb,TT as db,bT as eb,IR as fb,yH as gb,HR as hb,nH as ib,XA as jb,wA as kb,FA as lb};
|