create-sailor 1.9.4 → 1.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -8
- package/dist/index.js +138 -137
- package/package.json +17 -15
- package/templates/backends/gateway/package.json +1 -1
- package/templates/docs/docusaurus/package.json +1 -1
- package/templates/docs/fumadocs/package.json +1 -1
- package/templates/docs/mintlify/package.json +1 -1
- package/templates/docs/nextra/package.json +1 -1
- package/templates/docs/vitepress/package.json +1 -1
- package/templates/orm/drizzle/package.json +1 -1
- package/dist/aws-kms-FFRN23DK.js +0 -1
- package/dist/bowser-2VXD6AQS.js +0 -11
- package/dist/chunk-5ECPN42W.js +0 -1
- package/dist/chunk-6MSNEPUX.js +0 -0
- package/dist/chunk-A3H5SUSR.js +0 -8
- package/dist/chunk-AN6QWW3N.js +0 -1
- package/dist/chunk-CVCZBECH.js +0 -1
- package/dist/chunk-GA44DNS2.js +0 -1
- package/dist/chunk-IYWUY3VA.js +0 -1
- package/dist/chunk-LDZWCNWB.js +0 -0
- package/dist/chunk-M3NEWJ7L.js +0 -1
- package/dist/chunk-MGGNSWUA.js +0 -3
- package/dist/chunk-MYIHTCRS.js +0 -4
- package/dist/chunk-PA4CKDRJ.js +0 -1
- package/dist/chunk-QSLKOXQ6.js +0 -1
- package/dist/chunk-S4HCBMFP.js +0 -1
- package/dist/chunk-SYWJHPRX.js +0 -0
- package/dist/chunk-TW5BOTVX.js +0 -0
- package/dist/chunk-UWHWNXNX.js +0 -19
- package/dist/chunk-WJLTO7JW.js +0 -0
- package/dist/chunk-X6LE6K3W.js +0 -0
- package/dist/chunk-XE3I3HCZ.js +0 -40
- package/dist/chunk-Z4YWESTY.js +0 -2
- package/dist/chunk-ZIBRKYXP.js +0 -23
- package/dist/chunk-ZJ3BTCD6.js +0 -17
- package/dist/credits-UUPQKRQZ.js +0 -2802
- package/dist/dist-23KDUT4O.js +0 -1
- package/dist/dist-ZZCU5PKC.js +0 -5
- package/dist/dist-es-7HF5URFJ.js +0 -1
- package/dist/dist-es-BORZTE76.js +0 -1
- package/dist/dist-es-CN2GMFBK.js +0 -1
- package/dist/dist-es-FQ6CEUEU.js +0 -1
- package/dist/dist-es-FSE4MSDA.js +0 -5
- package/dist/dist-es-H47VUS6Q.js +0 -2
- package/dist/dist-es-JCIK4C4M.js +0 -2
- package/dist/dist-es-MFZXYPBY.js +0 -1
- package/dist/dist-es-PREZ4TU2.js +0 -1
- package/dist/dist-es-TCZQ4KMP.js +0 -2
- package/dist/dist-es-Y7VP7FI6.js +0 -2
- package/dist/dist-es-YN4LRIZR.js +0 -5
- package/dist/event-streams-TNY7XPBF.js +0 -1
- package/dist/loadSso-2XZQIDZP.js +0 -1
- package/dist/loadSso-FBBI5PDJ.js +0 -1
- package/dist/local-6WWVOMA7.js +0 -1
- package/dist/query_compiler_fast_bg.postgresql-JA2BFVW5.js +0 -2
- package/dist/query_compiler_fast_bg.postgresql.wasm-base64-URHQ2Y3Y.js +0 -1
- package/dist/signin-CJMG23UU.js +0 -1
- package/dist/sso-oidc-26OCCRMC.js +0 -1
- package/dist/sts-4U2U3ZK4.js +0 -1
- package/dist/sts-CP4OREEC.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sailor",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.6",
|
|
4
4
|
"description": "Governed AI-native SaaS scaffolder for Nebutra Sailor. Bootstrap a production-ready Next.js + Hono + Prisma monorepo with multi-tenant foundations, region-aware defaults, and AI integrations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
"README.md",
|
|
14
14
|
"LICENSE"
|
|
15
15
|
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "tsup --watch",
|
|
18
|
+
"build": "tsup",
|
|
19
|
+
"prepublishOnly": "pnpm run build",
|
|
20
|
+
"start": "node dist/index.js",
|
|
21
|
+
"test": "vitest run",
|
|
22
|
+
"test:watch": "vitest"
|
|
23
|
+
},
|
|
16
24
|
"dependencies": {
|
|
17
25
|
"@clack/prompts": "^1.5.0",
|
|
18
26
|
"@mrleebo/prisma-ast": "^0.16.0",
|
|
@@ -24,15 +32,16 @@
|
|
|
24
32
|
"update-notifier": "^7.3.1"
|
|
25
33
|
},
|
|
26
34
|
"devDependencies": {
|
|
27
|
-
"@
|
|
35
|
+
"@nebutra/brand": "workspace:*",
|
|
36
|
+
"@nebutra/preset": "workspace:*",
|
|
37
|
+
"@types/node": "catalog:",
|
|
28
38
|
"@types/update-notifier": "^6.0.8",
|
|
29
|
-
"tsup": "
|
|
30
|
-
"typescript": "
|
|
31
|
-
"vitest": "
|
|
32
|
-
"@nebutra/brand": "0.1.2"
|
|
39
|
+
"tsup": "catalog:",
|
|
40
|
+
"typescript": "catalog:",
|
|
41
|
+
"vitest": "catalog:"
|
|
33
42
|
},
|
|
34
43
|
"engines": {
|
|
35
|
-
"node": ">=
|
|
44
|
+
"node": ">=22.0.0"
|
|
36
45
|
},
|
|
37
46
|
"keywords": [
|
|
38
47
|
"sailor",
|
|
@@ -73,12 +82,5 @@
|
|
|
73
82
|
"publishConfig": {
|
|
74
83
|
"access": "public",
|
|
75
84
|
"registry": "https://registry.npmjs.org/"
|
|
76
|
-
},
|
|
77
|
-
"scripts": {
|
|
78
|
-
"dev": "tsup --watch",
|
|
79
|
-
"build": "tsup",
|
|
80
|
-
"start": "node dist/index.js",
|
|
81
|
-
"test": "vitest run",
|
|
82
|
-
"test:watch": "vitest"
|
|
83
85
|
}
|
|
84
|
-
}
|
|
86
|
+
}
|
package/dist/aws-kms-FFRN23DK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-ZJ3BTCD6.js";import"./chunk-QSLKOXQ6.js";import"./chunk-ZIBRKYXP.js";import"./chunk-X6LE6K3W.js";import"./chunk-UWHWNXNX.js";import"./chunk-6MSNEPUX.js";import"./chunk-WJLTO7JW.js";import"./chunk-TW5BOTVX.js";import"./chunk-A3H5SUSR.js";import"./chunk-Z4YWESTY.js";import"./chunk-MYIHTCRS.js";import"./chunk-IYWUY3VA.js";export{a as AWSKMSProvider};
|
package/dist/bowser-2VXD6AQS.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import"./chunk-IYWUY3VA.js";var y={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},f={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},o={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},b={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},m={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"};var s=class r{static getFirstMatch(e,t){let i=t.match(e);return i&&i.length>0&&i[1]||""}static getSecondMatch(e,t){let i=t.match(e);return i&&i.length>1&&i[2]||""}static matchAndReturnConst(e,t,i){if(e.test(t))return i}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){let t=e.split(".").splice(0,2).map(c=>parseInt(c,10)||0);t.push(0);let i=t[0],a=t[1];if(i===10)switch(a){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(i){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}}static getAndroidVersionName(e){let t=e.split(".").splice(0,2).map(i=>parseInt(i,10)||0);if(t.push(0),!(t[0]===1&&t[1]<5)){if(t[0]===1&&t[1]<6)return"Cupcake";if(t[0]===1&&t[1]>=6)return"Donut";if(t[0]===2&&t[1]<2)return"Eclair";if(t[0]===2&&t[1]===2)return"Froyo";if(t[0]===2&&t[1]>2)return"Gingerbread";if(t[0]===3)return"Honeycomb";if(t[0]===4&&t[1]<1)return"Ice Cream Sandwich";if(t[0]===4&&t[1]<4)return"Jelly Bean";if(t[0]===4&&t[1]>=4)return"KitKat";if(t[0]===5)return"Lollipop";if(t[0]===6)return"Marshmallow";if(t[0]===7)return"Nougat";if(t[0]===8)return"Oreo";if(t[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,t,i=!1){let a=r.getVersionPrecision(e),c=r.getVersionPrecision(t),u=Math.max(a,c),l=0,d=r.map([e,t],g=>{let h=u-r.getVersionPrecision(g),k=g+new Array(h+1).join(".0");return r.map(k.split("."),M=>new Array(20-M.length).join("0")+M).reverse()});for(i&&(l=u-Math.min(a,c)),u-=1;u>=l;){if(d[0][u]>d[1][u])return 1;if(d[0][u]===d[1][u]){if(u===l)return 0;u-=1}else if(d[0][u]<d[1][u])return-1}}static map(e,t){let i=[],a;if(Array.prototype.map)return Array.prototype.map.call(e,t);for(a=0;a<e.length;a+=1)i.push(t(e[a]));return i}static find(e,t){let i,a;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(i=0,a=e.length;i<a;i+=1){let c=e[i];if(t(c,i))return c}}static assign(e,...t){let i=e,a,c;if(Object.assign)return Object.assign(e,...t);for(a=0,c=t.length;a<c;a+=1){let u=t[a];typeof u=="object"&&u!==null&&Object.keys(u).forEach(d=>{i[d]=u[d]})}return e}static getBrowserAlias(e){return y[e]}static getBrowserTypeByAlias(e){return f[e]||""}};var n=/version\/(\d+(\.?_?\d+)+)/i,A=[{test:[/gptbot/i],describe(r){let e={name:"GPTBot"},t=s.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/chatgpt-user/i],describe(r){let e={name:"ChatGPT-User"},t=s.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/oai-searchbot/i],describe(r){let e={name:"OAI-SearchBot"},t=s.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe(r){let e={name:"ClaudeBot"},t=s.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/omgilibot/i,/webzio-extended/i],describe(r){let e={name:"Omgilibot"},t=s.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/diffbot/i],describe(r){let e={name:"Diffbot"},t=s.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/perplexitybot/i],describe(r){let e={name:"PerplexityBot"},t=s.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/perplexity-user/i],describe(r){let e={name:"Perplexity-User"},t=s.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/youbot/i],describe(r){let e={name:"YouBot"},t=s.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/meta-webindexer/i],describe(r){let e={name:"Meta-WebIndexer"},t=s.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/meta-externalads/i],describe(r){let e={name:"Meta-ExternalAds"},t=s.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/meta-externalagent/i],describe(r){let e={name:"Meta-ExternalAgent"},t=s.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/meta-externalfetcher/i],describe(r){let e={name:"Meta-ExternalFetcher"},t=s.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/googlebot/i],describe(r){let e={name:"Googlebot"},t=s.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/linespider/i],describe(r){let e={name:"Linespider"},t=s.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/amazonbot/i],describe(r){let e={name:"AmazonBot"},t=s.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/bingbot/i],describe(r){let e={name:"BingCrawler"},t=s.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/baiduspider/i],describe(r){let e={name:"BaiduSpider"},t=s.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/duckduckbot/i],describe(r){let e={name:"DuckDuckBot"},t=s.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/ia_archiver/i],describe(r){let e={name:"InternetArchiveCrawler"},t=s.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe(r){let e={name:"SlackBot"},t=s.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/yahoo!?[\s/]*slurp/i],describe(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe(){return{name:"PingdomBot"}}},{test:[/opera/i],describe(r){let e={name:"Opera"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/opr\/|opios/i],describe(r){let e={name:"Opera"},t=s.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/SamsungBrowser/i],describe(r){let e={name:"Samsung Internet for Android"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/Whale/i],describe(r){let e={name:"NAVER Whale Browser"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/PaleMoon/i],describe(r){let e={name:"Pale Moon"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/MZBrowser/i],describe(r){let e={name:"MZ Browser"},t=s.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/focus/i],describe(r){let e={name:"Focus"},t=s.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/swing/i],describe(r){let e={name:"Swing"},t=s.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/coast/i],describe(r){let e={name:"Opera Coast"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(r){let e={name:"Opera Touch"},t=s.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/yabrowser/i],describe(r){let e={name:"Yandex Browser"},t=s.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/ucbrowser/i],describe(r){let e={name:"UC Browser"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/Maxthon|mxios/i],describe(r){let e={name:"Maxthon"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/epiphany/i],describe(r){let e={name:"Epiphany"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/puffin/i],describe(r){let e={name:"Puffin"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/sleipnir/i],describe(r){let e={name:"Sleipnir"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/k-meleon/i],describe(r){let e={name:"K-Meleon"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/micromessenger/i],describe(r){let e={name:"WeChat"},t=s.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/qqbrowser/i],describe(r){let e={name:/qqbrowserlite/i.test(r)?"QQ Browser Lite":"QQ Browser"},t=s.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/msie|trident/i],describe(r){let e={name:"Internet Explorer"},t=s.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/\sedg\//i],describe(r){let e={name:"Microsoft Edge"},t=s.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/edg([ea]|ios)/i],describe(r){let e={name:"Microsoft Edge"},t=s.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/vivaldi/i],describe(r){let e={name:"Vivaldi"},t=s.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/seamonkey/i],describe(r){let e={name:"SeaMonkey"},t=s.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/sailfish/i],describe(r){let e={name:"Sailfish"},t=s.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,r);return t&&(e.version=t),e}},{test:[/silk/i],describe(r){let e={name:"Amazon Silk"},t=s.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/phantom/i],describe(r){let e={name:"PhantomJS"},t=s.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/slimerjs/i],describe(r){let e={name:"SlimerJS"},t=s.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(r){let e={name:"BlackBerry"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/(web|hpw)[o0]s/i],describe(r){let e={name:"WebOS Browser"},t=s.getFirstMatch(n,r)||s.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/bada/i],describe(r){let e={name:"Bada"},t=s.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/tizen/i],describe(r){let e={name:"Tizen"},t=s.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/qupzilla/i],describe(r){let e={name:"QupZilla"},t=s.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/librewolf/i],describe(r){let e={name:"LibreWolf"},t=s.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/firefox|iceweasel|fxios/i],describe(r){let e={name:"Firefox"},t=s.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/electron/i],describe(r){let e={name:"Electron"},t=s.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe(r){let e={name:"Sogou Browser"},t=s.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,r),i=s.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,r),a=s.getFirstMatch(/se ([\d.]+)x/i,r),c=t||i||a;return c&&(e.version=c),e}},{test:[/MiuiBrowser/i],describe(r){let e={name:"Miui"},t=s.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test(r){return r.hasBrand("DuckDuckGo")?!0:r.test(/\sDdg\/[\d.]+$/i)},describe(r,e){let t={name:"DuckDuckGo"};if(e){let a=e.getBrandVersion("DuckDuckGo");if(a)return t.version=a,t}let i=s.getFirstMatch(/\sDdg\/([\d.]+)$/i,r);return i&&(t.version=i),t}},{test(r){return r.hasBrand("Brave")},describe(r,e){let t={name:"Brave"};if(e){let i=e.getBrandVersion("Brave");if(i)return t.version=i,t}return t}},{test:[/chromium/i],describe(r){let e={name:"Chromium"},t=s.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,r)||s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/chrome|crios|crmo/i],describe(r){let e={name:"Chrome"},t=s.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/GSA/i],describe(r){let e={name:"Google Search"},t=s.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test(r){let e=!r.test(/like android/i),t=r.test(/android/i);return e&&t},describe(r){let e={name:"Android Browser"},t=s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/playstation 4/i],describe(r){let e={name:"PlayStation 4"},t=s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/safari|applewebkit/i],describe(r){let e={name:"Safari"},t=s.getFirstMatch(n,r);return t&&(e.version=t),e}},{test:[/.*/i],describe(r){let e=/^(.*)\/(.*) /,t=/^(.*)\/(.*)[ \t]\((.*)/,a=r.search("\\(")!==-1?t:e;return{name:s.getFirstMatch(a,r),version:s.getSecondMatch(a,r)}}}],F=A;var S=[{test:[/Roku\/DVP/],describe(r){let e=s.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,r);return{name:b.Roku,version:e}}},{test:[/windows phone/i],describe(r){let e=s.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,r);return{name:b.WindowsPhone,version:e}}},{test:[/windows /i],describe(r){let e=s.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,r),t=s.getWindowsVersionName(e);return{name:b.Windows,version:e,versionName:t}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(r){let e={name:b.iOS},t=s.getSecondMatch(/(Version\/)(\d[\d.]+)/,r);return t&&(e.version=t),e}},{test:[/macintosh/i],describe(r){let e=s.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,r).replace(/[_\s]/g,"."),t=s.getMacOSVersionName(e),i={name:b.MacOS,version:e};return t&&(i.versionName=t),i}},{test:[/(ipod|iphone|ipad)/i],describe(r){let e=s.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,r).replace(/[_\s]/g,".");return{name:b.iOS,version:e}}},{test:[/OpenHarmony/i],describe(r){let e=s.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,r);return{name:b.HarmonyOS,version:e}}},{test(r){let e=!r.test(/like android/i),t=r.test(/android/i);return e&&t},describe(r){let e=s.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,r),t=s.getAndroidVersionName(e),i={name:b.Android,version:e};return t&&(i.versionName=t),i}},{test:[/(web|hpw)[o0]s/i],describe(r){let e=s.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,r),t={name:b.WebOS};return e&&e.length&&(t.version=e),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(r){let e=s.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,r)||s.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,r)||s.getFirstMatch(/\bbb(\d+)/i,r);return{name:b.BlackBerry,version:e}}},{test:[/bada/i],describe(r){let e=s.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,r);return{name:b.Bada,version:e}}},{test:[/tizen/i],describe(r){let e=s.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,r);return{name:b.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:b.Linux}}},{test:[/CrOS/],describe(){return{name:b.ChromeOS}}},{test:[/PlayStation 4/],describe(r){let e=s.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,r);return{name:b.PlayStation4,version:e}}}];var B=[{test:[/googlebot/i],describe(){return{type:o.bot,vendor:"Google"}}},{test:[/linespider/i],describe(){return{type:o.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe(){return{type:o.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe(){return{type:o.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe(){return{type:o.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe(){return{type:o.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe(){return{type:o.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe(){return{type:o.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe(){return{type:o.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe(){return{type:o.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe(){return{type:o.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe(){return{type:o.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe(){return{type:o.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe(){return{type:o.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe(){return{type:o.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe(){return{type:o.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe(){return{type:o.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe(){return{type:o.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe(){return{type:o.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe(){return{type:o.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe(){return{type:o.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe(){return{type:o.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe(){return{type:o.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe(){return{type:o.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe(){return{type:o.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe(r){let e=s.getFirstMatch(/(can-l01)/i,r)&&"Nova",t={type:o.mobile,vendor:"Huawei"};return e&&(t.model=e),t}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:o.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:o.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:o.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:o.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:o.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:o.tablet}}},{test(r){let e=r.test(/ipod|iphone/i),t=r.test(/like (ipod|iphone)/i);return e&&!t},describe(r){let e=s.getFirstMatch(/(ipod|iphone)/i,r);return{type:o.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:o.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe(r){let e=s.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,r),t={type:o.mobile,vendor:"Nokia"};return e&&(t.model=e),t}},{test:[/[^-]mobi/i],describe(){return{type:o.mobile}}},{test(r){return r.getBrowserName(!0)==="blackberry"},describe(){return{type:o.mobile,vendor:"BlackBerry"}}},{test(r){return r.getBrowserName(!0)==="bada"},describe(){return{type:o.mobile}}},{test(r){return r.getBrowserName()==="windows phone"},describe(){return{type:o.mobile,vendor:"Microsoft"}}},{test(r){let e=Number(String(r.getOSVersion()).split(".")[0]);return r.getOSName(!0)==="android"&&e>=3},describe(){return{type:o.tablet}}},{test(r){return r.getOSName(!0)==="android"},describe(){return{type:o.mobile}}},{test:[/smart-?tv|smarttv/i],describe(){return{type:o.tv}}},{test:[/netcast/i],describe(){return{type:o.tv}}},{test(r){return r.getOSName(!0)==="macos"},describe(){return{type:o.desktop,vendor:"Apple"}}},{test(r){return r.getOSName(!0)==="windows"},describe(){return{type:o.desktop}}},{test(r){return r.getOSName(!0)==="linux"},describe(){return{type:o.desktop}}},{test(r){return r.getOSName(!0)==="playstation 4"},describe(){return{type:o.tv}}},{test(r){return r.getOSName(!0)==="roku"},describe(){return{type:o.tv}}}];var x=[{test(r){return r.getBrowserName(!0)==="microsoft edge"},describe(r){if(/\sedg\//i.test(r))return{name:m.Blink};let t=s.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,r);return{name:m.EdgeHTML,version:t}}},{test:[/trident/i],describe(r){let e={name:m.Trident},t=s.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test(r){return r.test(/presto/i)},describe(r){let e={name:m.Presto},t=s.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test(r){let e=r.test(/gecko/i),t=r.test(/like gecko/i);return e&&!t},describe(r){let e={name:m.Gecko},t=s.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:m.Blink}}},{test:[/(apple)?webkit/i],describe(r){let e={name:m.WebKit},t=s.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,r);return t&&(e.version=t),e}}];var p=class{constructor(e,t=!1,i=null){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e;let a=!1;typeof t=="boolean"?(a=t,this._hints=i):t!=null&&typeof t=="object"?this._hints=t:this._hints=null,this.parsedResult={},a!==!0&&this.parse()}getHints(){return this._hints}hasBrand(e){if(!this._hints||!Array.isArray(this._hints.brands))return!1;let t=e.toLowerCase();return this._hints.brands.some(i=>i.brand&&i.brand.toLowerCase()===t)}getBrandVersion(e){if(!this._hints||!Array.isArray(this._hints.brands))return;let t=e.toLowerCase(),i=this._hints.brands.find(a=>a.brand&&a.brand.toLowerCase()===t);return i?i.version:void 0}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};let e=s.find(F,t=>{if(typeof t.test=="function")return t.test(this);if(Array.isArray(t.test))return t.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA(),this)),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};let e=s.find(S,t=>{if(typeof t.test=="function")return t.test(this);if(Array.isArray(t.test))return t.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){let{name:t}=this.getOS();return e?String(t).toLowerCase()||"":t||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){let{type:t}=this.getPlatform();return e?String(t).toLowerCase()||"":t||""}parsePlatform(){this.parsedResult.platform={};let e=s.find(B,t=>{if(typeof t.test=="function")return t.test(this);if(Array.isArray(t.test))return t.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};let e=s.find(x,t=>{if(typeof t.test=="function")return t.test(this);if(Array.isArray(t.test))return t.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return s.assign({},this.parsedResult)}satisfies(e){let t={},i=0,a={},c=0;if(Object.keys(e).forEach(l=>{let d=e[l];typeof d=="string"?(a[l]=d,c+=1):typeof d=="object"&&(t[l]=d,i+=1)}),i>0){let l=Object.keys(t),d=s.find(l,h=>this.isOS(h));if(d){let h=this.satisfies(t[d]);if(h!==void 0)return h}let g=s.find(l,h=>this.isPlatform(h));if(g){let h=this.satisfies(t[g]);if(h!==void 0)return h}}if(c>0){let l=Object.keys(a),d=s.find(l,g=>this.isBrowser(g,!0));if(d!==void 0)return this.compareVersion(a[d])}}isBrowser(e,t=!1){let i=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),c=s.getBrowserTypeByAlias(a);return t&&c&&(a=c.toLowerCase()),a===i}compareVersion(e){let t=[0],i=e,a=!1,c=this.getBrowserVersion();if(typeof c=="string")return e[0]===">"||e[0]==="<"?(i=e.substr(1),e[1]==="="?(a=!0,i=e.substr(2)):t=[],e[0]===">"?t.push(1):t.push(-1)):e[0]==="="?i=e.substr(1):e[0]==="~"&&(a=!0,i=e.substr(1)),t.indexOf(s.compareVersions(c,i,a))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,t=!1){return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(t=>this.is(t))}},w=p;var v=class{static getParser(e,t=!1,i=null){if(typeof e!="string")throw new Error("UserAgent should be a string");return new w(e,t,i)}static parse(e,t=null){return new w(e,t).getResult()}static get BROWSER_MAP(){return f}static get ENGINE_MAP(){return m}static get OS_MAP(){return b}static get PLATFORMS_MAP(){return o}},Z=v;export{Z as default};
|
|
2
|
-
/*! Bundled license information:
|
|
3
|
-
|
|
4
|
-
bowser/src/bowser.js:
|
|
5
|
-
(*!
|
|
6
|
-
* Bowser - a browser detector
|
|
7
|
-
* https://github.com/bowser-js/bowser
|
|
8
|
-
* MIT License | (c) Dustin Diaz 2012-2015
|
|
9
|
-
* MIT License | (c) Denis Demchenko 2015-2019
|
|
10
|
-
*)
|
|
11
|
-
*/
|
package/dist/chunk-5ECPN42W.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c,b as h,c as f,d as y,f as n,g as i}from"./chunk-QSLKOXQ6.js";import{a as r}from"./chunk-ZIBRKYXP.js";import{randomUUID as E}from"crypto";var k=32,v=class{name="local";masterKey;salt;keyVersion;constructor(e){let t=e.masterKey??g();if(!t)throw new Error("Master key required. Set VAULT_LOCAL_MASTER_KEY or VAULT_MASTER_KEY env var, or pass masterKey in config.");if(this.masterKey=Buffer.from(t,"utf-8"),this.masterKey.length<k)throw new Error(`Vault master key too short: ${this.masterKey.length} bytes, need at least ${k}. Set VAULT_LOCAL_MASTER_KEY / VAULT_MASTER_KEY to a value with at least 32 bytes of entropy.`);this.salt=e.salt??Buffer.from("nebutra-vault","utf-8"),this.keyVersion=e.keyVersion??1,r.debug("[vault:local] Initialized",{keyVersion:this.keyVersion})}buildAad(e,t){return Buffer.from(`v2|tenant=${e??""}|kek=${t}`,"utf-8")}async deriveKek(){let e=Buffer.from(`nebutra-vault-kek-v${this.keyVersion}`,"utf-8");return f(this.masterKey,this.salt,e)}async encrypt(e,t){try{let a=await this.deriveKek(),u=y(32),o=this.buildAad(t?.tenantId,this.keyVersion),s=c(u,a,o),l=c(e,u,o),m={id:t?.id??E(),ciphertext:n(l.ciphertext),encryptedDek:n(s.ciphertext),iv:n(l.iv),authTag:n(l.authTag),dekIv:n(s.iv),dekAuthTag:n(s.authTag),keyVersion:this.keyVersion,envelopeVersion:2,algorithm:"aes-256-gcm",...t?.tenantId!==void 0?{tenantId:t.tenantId}:{},...t?.metadata!==void 0?{metadata:t.metadata}:{},createdAt:new Date().toISOString()};return r.debug("[vault:local] Secret encrypted",{id:m.id,tenantId:t?.tenantId}),m}catch(a){throw r.error("[vault:local] Encryption failed",{error:a}),new Error(`Local vault encryption failed: ${a instanceof Error?a.message:String(a)}`)}}async decrypt(e,t){try{if(t?.tenantId&&e.tenantId&&e.tenantId!==t.tenantId)throw new Error("Tenant ID mismatch");e.keyVersion!==this.keyVersion&&r.warn("[vault:local] Key version mismatch",{secretVersion:e.keyVersion,currentVersion:this.keyVersion});let a=Buffer.from(`nebutra-vault-kek-v${e.keyVersion}`,"utf-8"),u=await f(this.masterKey,this.salt,a),o=e.envelopeVersion===2?this.buildAad(e.tenantId,e.keyVersion):void 0,s;if(e.dekIv&&e.dekAuthTag)s=h(i(e.encryptedDek),u,{iv:i(e.dekIv),authTag:i(e.dekAuthTag)},o);else throw new Error("Encrypted DEK missing IV/authTag \u2014 cannot decrypt. Re-encrypt with current version.");let l=h(i(e.ciphertext),s,{iv:i(e.iv),authTag:i(e.authTag)},o);return r.debug("[vault:local] Secret decrypted",{id:e.id,tenantId:t?.tenantId}),l.toString("utf-8")}catch(a){throw r.error("[vault:local] Decryption failed",{error:a}),new Error(`Local vault decryption failed: ${a instanceof Error?a.message:String(a)}`)}}async rotateKey(e){try{let t=await this.decrypt(e),a=await this.encrypt(t,{id:e.id,...e.tenantId!==void 0?{tenantId:e.tenantId}:{},...e.metadata!==void 0?{metadata:{name:e.metadata.name,type:e.metadata.type,...e.metadata.expiresAt!==void 0?{expiresAt:e.metadata.expiresAt}:{}}}:{}});return a.rotatedAt=new Date().toISOString(),r.debug("[vault:local] Key rotated",{id:e.id}),a}catch(t){throw r.error("[vault:local] Key rotation failed",{error:t}),new Error(`Key rotation failed: ${t instanceof Error?t.message:String(t)}`)}}async rotateKek(){this.keyVersion+=1,r.info("[vault:local] KEK rotated",{newVersion:this.keyVersion})}async generateDek(){return y(32)}async close(){r.debug("[vault:local] Closed")}};function g(){let d=process.env.VAULT_MASTER_KEY,e=process.env.VAULT_LOCAL_MASTER_KEY;if(d&&e&&d!==e)throw new Error("Vault local key mismatch: VAULT_MASTER_KEY and VAULT_LOCAL_MASTER_KEY are both set but differ.");return e??d}export{v as a};
|
package/dist/chunk-6MSNEPUX.js
DELETED
|
File without changes
|
package/dist/chunk-A3H5SUSR.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{D as qe,a as z,b as q,c as Ge,e as ue,f as We,g as ze,h as P,i as v,k as F,p as de,q as pe,y as fe}from"./chunk-Z4YWESTY.js";import{i as Be,z as Ye}from"./chunk-MYIHTCRS.js";var b=(e,t)=>{let r=[];if(e&&r.push(e),t)for(let o of t)r.push(o);return r},O=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,D=()=>{let e=[],t=[],r=!1,o=new Set,i=l=>l.sort((u,p)=>je[p.step]-je[u.step]||Xe[p.priority||"normal"]-Xe[u.priority||"normal"]),n=l=>{let u=!1,p=h=>{let R=b(h.name,h.aliases);if(R.includes(l)){u=!0;for(let f of R)o.delete(f);return!1}return!0};return e=e.filter(p),t=t.filter(p),u},s=l=>{let u=!1,p=h=>{if(h.middleware===l){u=!0;for(let R of b(h.name,h.aliases))o.delete(R);return!1}return!0};return e=e.filter(p),t=t.filter(p),u},a=l=>(e.forEach(u=>{l.add(u.middleware,{...u})}),t.forEach(u=>{l.addRelativeTo(u.middleware,{...u})}),l.identifyOnResolve?.(m.identifyOnResolve()),l),c=l=>{let u=[];return l.before.forEach(p=>{p.before.length===0&&p.after.length===0?u.push(p):u.push(...c(p))}),u.push(l),l.after.reverse().forEach(p=>{p.before.length===0&&p.after.length===0?u.push(p):u.push(...c(p))}),u},d=(l=!1)=>{let u=[],p=[],h={};return e.forEach(f=>{let g={...f,before:[],after:[]};for(let x of b(g.name,g.aliases))h[x]=g;u.push(g)}),t.forEach(f=>{let g={...f,before:[],after:[]};for(let x of b(g.name,g.aliases))h[x]=g;p.push(g)}),p.forEach(f=>{if(f.toMiddleware){let g=h[f.toMiddleware];if(g===void 0){if(l)return;throw new Error(`${f.toMiddleware} is not found when adding ${O(f.name,f.aliases)} middleware ${f.relation} ${f.toMiddleware}`)}f.relation==="after"&&g.after.push(f),f.relation==="before"&&g.before.push(f)}}),i(u).map(c).reduce((f,g)=>(f.push(...g),f),[])},m={add:(l,u={})=>{let{name:p,override:h,aliases:R}=u,f={step:"initialize",priority:"normal",middleware:l,...u},g=b(p,R);if(g.length>0){if(g.some(x=>o.has(x))){if(!h)throw new Error(`Duplicate middleware name '${O(p,R)}'`);for(let x of g){let w=e.findIndex($=>$.name===x||$.aliases?.some(le=>le===x));if(w===-1)continue;let y=e[w];if(y.step!==f.step||f.priority!==y.priority)throw new Error(`"${O(y.name,y.aliases)}" middleware with ${y.priority} priority in ${y.step} step cannot be overridden by "${O(p,R)}" middleware with ${f.priority} priority in ${f.step} step.`);e.splice(w,1)}}for(let x of g)o.add(x)}e.push(f)},addRelativeTo:(l,u)=>{let{name:p,override:h,aliases:R}=u,f={middleware:l,...u},g=b(p,R);if(g.length>0){if(g.some(x=>o.has(x))){if(!h)throw new Error(`Duplicate middleware name '${O(p,R)}'`);for(let x of g){let w=t.findIndex($=>$.name===x||$.aliases?.some(le=>le===x));if(w===-1)continue;let y=t[w];if(y.toMiddleware!==f.toMiddleware||y.relation!==f.relation)throw new Error(`"${O(y.name,y.aliases)}" middleware ${y.relation} "${y.toMiddleware}" middleware cannot be overridden by "${O(p,R)}" middleware ${f.relation} "${f.toMiddleware}" middleware.`);t.splice(w,1)}}for(let x of g)o.add(x)}t.push(f)},clone:()=>a(D()),use:l=>{l.applyToStack(m)},remove:l=>typeof l=="string"?n(l):s(l),removeByTag:l=>{let u=!1,p=h=>{let{tags:R,name:f,aliases:g}=h;if(R&&R.includes(l)){let x=b(f,g);for(let w of x)o.delete(w);return u=!0,!1}return!0};return e=e.filter(p),t=t.filter(p),u},concat:l=>{let u=a(D());return u.use(l),u.identifyOnResolve(r||u.identifyOnResolve()||(l.identifyOnResolve?.()??!1)),u},applyToStack:a,identify:()=>d(!0).map(l=>{let u=l.step??l.relation+" "+l.toMiddleware;return O(l.name,l.aliases)+" - "+u}),identifyOnResolve(l){return typeof l=="boolean"&&(r=l),r},resolve:(l,u)=>{for(let p of d().map(h=>h.middleware).reverse())l=p(l,u);return r&&console.log(m.identify()),l}};return m},je={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Xe={high:3,normal:2,low:1};var me=class{config;middlewareStack=D();initConfig;handlers;constructor(t){this.config=t;let{protocol:r,protocolSettings:o}=t;o&&typeof r=="function"&&(t.protocol=new r(o))}send(t,r,o){let i=typeof r!="function"?r:void 0,n=typeof r=="function"?r:o,s=i===void 0&&this.config.cacheMiddleware===!0,a;if(s){this.handlers||(this.handlers=new WeakMap);let c=this.handlers;c.has(t.constructor)?a=c.get(t.constructor):(a=t.resolveMiddleware(this.middlewareStack,this.config,i),c.set(t.constructor,a))}else delete this.handlers,a=t.resolveMiddleware(this.middlewareStack,this.config,i);if(n)a(t).then(c=>n(null,c.output),c=>n(c)).catch(()=>{});else return a(t).then(c=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}};var ge="***SensitiveInformation***";function Y(e,t){if(t==null)return t;let r=qe.of(e);if(r.getMergedTraits().sensitive)return ge;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return ge}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return ge}else if(r.isStructSchema()&&typeof t=="object"){let o=t,i={};for(let[n,s]of r.structIterator())o[n]!=null&&(i[n]=Y(s,o[n]));return i}return t}var j=class{middlewareStack=D();schema;static classBuilder(){return new he}resolveMiddlewareWithContext(t,r,o,{middlewareFn:i,clientName:n,commandName:s,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,smithyContext:d,additionalContext:m,CommandCtor:l}){for(let g of i.bind(this)(l,t,r,o))this.middlewareStack.use(g);let u=t.concat(this.middlewareStack),{logger:p}=r,h={logger:p,clientName:n,commandName:s,inputFilterSensitiveLog:a,outputFilterSensitiveLog:c,[Ge]:{commandInstance:this,...d},...m},{requestHandler:R}=r,f=o??{};return d.eventStream&&(f={isEventStream:!0,...f}),u.resolve(g=>R.handle(g.request,f),h)}},he=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,r,o={}){return this._smithyContext={service:t,operation:r,...o},this}c(t={}){return this._additionalContext=t,this}n(t,r){return this._clientName=t,this._commandName=r,this}f(t=o=>o,r=o=>o){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=r,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){let t=this,r;return r=class extends j{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[o]){super(),this.input=o??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(o,i,n){let s=t._operationSchema,a=s?.[4]??s?.input,c=s?.[5]??s?.output;return this.resolveMiddlewareWithContext(o,i,n,{CommandCtor:r,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(s?Y.bind(null,a):d=>d),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(s?Y.bind(null,c):d=>d),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}};var Lt=(e,t,r)=>{for(let[n,s]of Object.entries(e)){let a=async function(d,m,l){let u=new s(d);if(typeof m=="function")this.send(u,m);else if(typeof l=="function"){if(typeof m!="object")throw new Error(`Expected http options but got ${typeof m}`);this.send(u,m||{},l)}else return this.send(u,m)},c=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[c]=a}let{paginators:o={},waiters:i={}}=r??{};for(let[n,s]of Object.entries(o))t.prototype[n]===void 0&&(t.prototype[n]=function(a={},c,...d){return s({...c,client:this},a,...d)});for(let[n,s]of Object.entries(i))t.prototype[n]===void 0&&(t.prototype[n]=async function(a={},c,...d){let m=c;return typeof c=="number"&&(m={maxWaitTime:c}),s({...m,client:this},a,...d)})};var Ee=class e extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;let r=t;return e.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;let r=t;return this===e?e.isInstance(t):e.isInstance(t)?r.name&&this.name?this.prototype.isPrototypeOf(t)||r.name===this.name:this.prototype.isPrototypeOf(t):!1}},Vt=(e,t={})=>{Object.entries(t).filter(([,o])=>o!==void 0).forEach(([o,i])=>{(e[o]==null||e[o]==="")&&(e[o]=i)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e};var Ht=e=>{switch(e){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:3e4};default:return{}}};var Je=!1,Bt=e=>{e&&!Je&&parseInt(e.substring(1,e.indexOf(".")))<16&&(Je=!0)};var Ke=Object.values(q),Qe=e=>{let t=[];for(let r in q){let o=q[r];e[o]!==void 0&&t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]})}for(let[r,o]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>r,checksumConstructor:()=>o});return{addChecksumAlgorithm(r){e.checksumAlgorithms=e.checksumAlgorithms??{};let o=r.algorithmId(),i=r.checksumConstructor();Ke.includes(o)?e.checksumAlgorithms[o.toUpperCase()]=i:e.checksumAlgorithms[o]=i,t.push(r)},checksumAlgorithms(){return t}}},Ze=e=>{let t={};return e.checksumAlgorithms().forEach(r=>{let o=r.algorithmId();Ke.includes(o)&&(t[o]=r.checksumConstructor())}),t};var et=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),tt=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t};var Gt=e=>Object.assign(Qe(e),et(e));var Wt=e=>Object.assign(Ze(e),tt(e));var rt=e=>{let t="#text";for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&e[r][t]!==void 0?e[r]=e[r][t]:typeof e[r]=="object"&&e[r]!==null&&(e[r]=rt(e[r]));return e};var U=class{trace(){}debug(){}info(){}warn(){}error(){}};var ot="AWS_ENDPOINT_URL",nt="endpoint_url",it=e=>({environmentVariableSelector:t=>{let r=e.split(" ").map(n=>n.toUpperCase()),o=t[[ot,...r].join("_")];if(o)return o;let i=t[ot];if(i)return i},configFileSelector:(t,r)=>{if(t.services){let i=["services",t.services].join(".");if(!r||!r[i])throw new Error(`The services section "${t.services}" specified in the profile is not present in the shared configuration file.`);let n=r[i],s=e.split(" ").map(c=>c.toLowerCase()),a=n[[s.join("_"),nt].join(".")];if(a)return a}let o=t[nt];if(o)return o},default:void 0});var qt="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",Yt="ignore_configured_endpoint_urls",st={environmentVariableSelector:e=>de(e,qt,pe.ENV),configFileSelector:e=>de(e,Yt,pe.CONFIG),default:!1};var L=async e=>{if(!await fe(st)())return fe(it(e??""))()};var Re=async e=>{let t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),ct(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!at(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},jt=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,Xt=/(\d+\.){3}\d+/,Jt=/\.\./;var at=e=>jt.test(e)&&!Xt.test(e)&&!Jt.test(e),ct=e=>{let[t,r,o,,,i]=e.split(":"),n=t==="arn"&&e.split(":").length>=6,s=!!(n&&r&&o&&i);if(n&&!s)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return s};var lt=(e,t,r,o=!1)=>{let i=async()=>{let n;return o?n=r.clientContextParams?.[e]??r[e]??r[t]:n=r[e]??r[t],typeof n=="function"?n():n};return e==="credentialScope"||t==="CredentialScope"?async()=>{let n=typeof r.credentials=="function"?await r.credentials():r.credentials;return n?.credentialScope??n?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{let n=typeof r.credentials=="function"?await r.credentials():r.credentials;return n?.accountId??n?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let n=await i();if(n&&typeof n=="object"){if("url"in n)return n.url.href;if("hostname"in n){let{protocol:s,hostname:a,port:c,path:d}=n;return`${s}//${a}${c?":"+c:""}${d}`}}return n}:i};function X(e){return async(t,r,o,i)=>{if(!o.isCustomEndpoint&&!o.ignoreConfiguredEndpointUrls){let a;o.serviceConfiguredEndpoint?a=await o.serviceConfiguredEndpoint():a=await e(o.serviceId),a&&(o.endpoint=()=>Promise.resolve(F(a)),o.isCustomEndpoint=!0,i?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${a}`))}let n=await ut(t,r,o);if(typeof o.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let s=o.endpointProvider(n,i);if(o.isCustomEndpoint&&o.endpoint){let a=await o.endpoint();if(a?.headers){s.headers??={};for(let[c,d]of Object.entries(a.headers))s.headers[c]=Array.isArray(d)?d:[d]}}return s}}var ut=async(e,t,r)=>{let o={},i=t?.getEndpointParameterInstructions?.()||{};for(let[n,s]of Object.entries(i))switch(s.type){case"staticContextParams":o[n]=s.value;break;case"contextParams":o[n]=e[s.name];break;case"clientContextParams":case"builtInParams":o[n]=await lt(s.name,n,r,s.type!=="builtInParams")();break;case"operationContextParams":o[n]=s.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(s))}return Object.keys(i).length===0&&Object.assign(o,r),String(r.serviceId).toLowerCase()==="s3"&&await Re(o),o};function Kt(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}function J(e){let t=X(e);return({config:r,instructions:o})=>(i,n)=>async s=>{r.isCustomEndpoint&&Kt(n,"ENDPOINT_OVERRIDE","N");let a=await t(s.input,{getEndpointParameterInstructions(){return o}},{...r},n);n.endpointV2=a,n.authSchemes=a.properties?.authSchemes;let c=n.authSchemes?.[0];if(c){n.signing_region=c.signingRegion,n.signing_service=c.signingName;let m=ue(n)?.selectedHttpAuthScheme?.httpAuthOption;m&&(m.signingProperties=Object.assign(m.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return i({...s})}}var Qt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},Zt={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Qt.name};function dt(e){let t=J(e);return(r,o)=>({applyToStack:i=>{i.addRelativeTo(t({config:r,instructions:o}),Zt)}})}function pt(e){return t=>{let r=t.tls??!0,{endpoint:o,useDualstackEndpoint:i,useFipsEndpoint:n}=t,s=o!=null?async()=>F(await v(o)()):void 0,c=Object.assign(t,{endpoint:s,tls:r,isCustomEndpoint:!!o,useDualstackEndpoint:v(i??!1),useFipsEndpoint:v(n??!1),ignoreConfiguredEndpointUrls:!!t.ignoreConfiguredEndpointUrls}),d;return c.serviceConfiguredEndpoint=async()=>(t.serviceId&&!d&&(d=e(t.serviceId)),d),c}}var xe=class e{nodes;root;conditions;results;constructor(t,r,o,i){this.nodes=t,this.root=r,this.conditions=o,this.results=i}static from(t,r,o,i){return new e(t,r,o,i)}};var Te=class{capacity;data=new Map;parameters=[];constructor({size:t,params:r}){this.capacity=t??50,r&&(this.parameters=r)}get(t,r){let o=this.hash(t);if(o===!1)return r();if(!this.data.has(o)){if(this.data.size>this.capacity+10){let i=this.data.keys(),n=0;for(;;){let{value:s,done:a}=i.next();if(this.data.delete(s),a||++n>10)break}}this.data.set(o,r())}return this.data.get(o)}size(){return this.data.size}hash(t){let r="",{parameters:o}=this;if(o.length===0)return!1;for(let i of o){let n=String(t[i]??"");if(n.includes("|;"))return!1;r+=n+"|;"}return r}};var E=class extends Error{constructor(t){super(t),this.name="EndpointError"}};var _="endpoints";function S(e){return typeof e!="object"||e==null?e:"ref"in e?`$${S(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(S).join(", ")})`:JSON.stringify(e,null,2)}var V={};var ye=(e,t)=>e===t;function Se(...e){for(let t of e)if(t!=null)return t}var ft=e=>{let t=e.split("."),r=[];for(let o of t){let i=o.indexOf("[");if(i!==-1){if(o.indexOf("]")!==o.length-1)throw new E(`Path: '${e}' does not end with ']'`);let n=o.slice(i+1,-1);if(Number.isNaN(parseInt(n)))throw new E(`Invalid array index: '${n}' in path: '${e}'`);i!==0&&r.push(o.slice(0,i)),r.push(n)}else r.push(o)}return r};var H=(e,t)=>ft(t).reduce((r,o)=>{if(typeof r!="object")throw new E(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(r)){let i=parseInt(o);return r[i<0?r.length+i:i]}return r[o]},e);var we=e=>e!=null;function _e(e,t,r){return e?t:r}var Ae=e=>!e;var er=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}$"),M=e=>er.test(e)||e.startsWith("[")&&e.endsWith("]");var Ie={[z.HTTP]:80,[z.HTTPS]:443},ve=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:u,port:p,protocol:h="",path:R="",query:f={}}=e,g=new URL(`${h}//${u}${p?`:${p}`:""}${R}`);return g.search=Object.entries(f).map(([x,w])=>`${x}=${w}`).join("&"),g}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=t.href,{host:o,hostname:i,pathname:n,protocol:s,search:a}=t;if(a)return null;let c=s.slice(0,-1);if(!Object.values(z).includes(c))return null;let d=M(i),m=r.includes(`${o}:${Ie[c]}`)||typeof e=="string"&&e.includes(`${o}:${Ie[c]}`),l=`${o}${m?`:${Ie[c]}`:""}`;return{scheme:c,authority:l,path:n,normalizedPath:n.endsWith("/")?n:`${n}/`,isIp:d}};function Oe(e,t,r){if(r===1)return[e];if(e==="")return[""];let o=e.split(t);return r===0?o:o.slice(0,r-1).concat(o.slice(1).join(t))}var Ne=(e,t)=>e===t;var Ce=(e,t,r,o)=>e==null||t>=r||e.length<r||/[^\u0000-\u007f]/.test(e)?null:o?e.substring(e.length-r,e.length-t):e.substring(t,r);var be=e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`);var mt={booleanEquals:ye,coalesce:Se,getAttr:H,isSet:we,isValidHostLabel:P,ite:_e,not:Ae,parseURL:ve,split:Oe,stringEquals:Ne,substring:Ce,uriEncode:be};var K=(e,t)=>{let r=[],{referenceRecord:o,endpointParams:i}=t,n=0;for(;n<e.length;){let s=e.indexOf("{",n);if(s===-1){r.push(e.slice(n));break}r.push(e.slice(n,s));let a=e.indexOf("}",s);if(a===-1){r.push(e.slice(s));break}e[s+1]==="{"&&e[a+1]==="}"&&(r.push(e.slice(s+1,a)),n=a+2);let c=e.substring(s+1,a);if(c.includes("#")){let[d,m]=c.split("#");r.push(H(o[d]??i[d],m))}else r.push(o[c]??i[c]);n=a+1}return r.join("")};var gt=({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e];var I=(e,t,r)=>{if(typeof e=="string")return K(e,r);if(e.fn)return ht.callFunction(e,r);if(e.ref)return gt(e,r);throw new E(`'${t}': ${String(e)} is not a string, function or reference.`)},Q=({fn:e,argv:t},r)=>{let o=Array(t.length);for(let s=0;s<o.length;++s){let a=t[s];typeof a=="boolean"||typeof a=="number"?o[s]=a:o[s]=ht.evaluateExpression(a,"arg",r)}let i=e.indexOf(".");if(i!==-1){let a=V[e.slice(0,i)]?.[e.slice(i+1)];if(typeof a=="function")return a(...o)}let n=mt[e];if(typeof n=="function")return n(...o);throw new Error(`function ${e} not loaded in endpointFunctions.`)},ht={evaluateExpression:I,callFunction:Q};var Z=(e,t)=>{let{assign:r}=e;if(r&&r in t.referenceRecord)throw new E(`'${r}' is already defined in Reference Record.`);let o=Q(e,t);t.logger?.debug?.(`${_} evaluateCondition: ${S(e)} = ${S(o)}`);let i=o===""?!0:!!o;return r!=null?{result:i,toAssign:{name:r,value:o}}:{result:i}};var ee=(e,t)=>Object.entries(e??{}).reduce((r,[o,i])=>(r[o]=i.map(n=>{let s=I(n,"Header value entry",t);if(typeof s!="string")throw new E(`Header '${o}' value '${s}' is not a string`);return s}),r),{});var B=(e,t)=>Object.entries(e).reduce((r,[o,i])=>(r[o]=Rt.getEndpointProperty(i,t),r),{}),Et=(e,t)=>{if(Array.isArray(e))return e.map(r=>Et(r,t));switch(typeof e){case"string":return K(e,t);case"object":if(e===null)throw new E(`Unexpected endpoint property: ${e}`);return Rt.getEndpointProperties(e,t);case"boolean":return e;default:throw new E(`Unexpected endpoint property type: ${typeof e}`)}},Rt={getEndpointProperty:Et,getEndpointProperties:B};var te=(e,t)=>{let r=I(e,"Endpoint URL",t);if(typeof r=="string")try{return new URL(r)}catch(o){throw console.error(`Failed to construct URL with ${r}`,o),o}throw new E(`Endpoint URL must be a string, got ${typeof r}`)};var De=1e8,tr=(e,t)=>{let{nodes:r,root:o,results:i,conditions:n}=e,s=o,a={},c={referenceRecord:a,endpointParams:t.endpointParams,logger:t.logger};for(;s!==1&&s!==-1&&s<De;){let d=3*(Math.abs(s)-1),[m,l,u]=[r[d],r[d+1],r[d+2]],[p,h,R]=n[m],f=Z({fn:p,assign:R,argv:h},c);if(f.toAssign){let{name:g,value:x}=f.toAssign;a[g]=x}s=s>=0===f.result?l:u}if(s>=De){let d=i[s-De];if(d[0]===-1){let[,p]=d;throw new E(I(p,"Error",c))}let[m,l,u]=d;return{url:te(m,c),properties:B(l,c),headers:ee(u??{},c)}}throw new E("No matching endpoint.")};var k=(e=[],t)=>{let r={},o={...t,referenceRecord:{...t.referenceRecord}},i=!1;for(let n of e){let{result:s,toAssign:a}=Z(n,o);if(!s)return{result:s};a&&(i=!0,r[a.name]=a.value,o.referenceRecord[a.name]=a.value,t.logger?.debug?.(`${_} assign: ${a.name} := ${S(a.value)}`))}return i?{result:!0,referenceRecord:r}:{result:!0}};var xt=(e,t)=>{let{conditions:r,endpoint:o}=e,{result:i,referenceRecord:n}=k(r,t);if(!i)return;let s=n?{...t,referenceRecord:{...t.referenceRecord,...n}}:t,{url:a,properties:c,headers:d}=o;t.logger?.debug?.(`${_} Resolving endpoint from template: ${S(o)}`);let m={url:te(a,s)};return d!=null&&(m.headers=ee(d,s)),c!=null&&(m.properties=B(c,s)),m};var Tt=(e,t)=>{let{conditions:r,error:o}=e,{result:i,referenceRecord:n}=k(r,t);if(!i)return;let s=n?{...t,referenceRecord:{...t.referenceRecord,...n}}:t;throw new E(I(o,"Error",s))};var re=(e,t)=>{for(let r of e)if(r.type==="endpoint"){let o=xt(r,t);if(o)return o}else if(r.type==="error")Tt(r,t);else if(r.type==="tree"){let o=Pe.evaluateTreeRule(r,t);if(o)return o}else throw new E(`Unknown endpoint rule: ${r}`);throw new E("Rules evaluation failed")},yt=(e,t)=>{let{conditions:r,rules:o}=e,{result:i,referenceRecord:n}=k(r,t);if(!i)return;let s=n?{...t,referenceRecord:{...t.referenceRecord,...n}}:t;return Pe.evaluateRules(o,s)},Pe={evaluateRules:re,evaluateTreeRule:yt};var rr=(e,t)=>{let{endpointParams:r,logger:o}=t,{parameters:i,rules:n}=e;t.logger?.debug?.(`${_} Initial EndpointParams: ${S(r)}`);for(let a in i){let c=i[a],d=r[a];if(d==null&&c.default!=null){r[a]=c.default;continue}if(c.required&&d==null)throw new E(`Missing required parameter: '${a}'`)}let s=re(n,{endpointParams:r,logger:o,referenceRecord:{}});return t.logger?.debug?.(`${_} Resolved endpoint: ${S(s)}`),s};var Oi=X(L),Ni=pt(L),Ci=J(L),bi=dt(L);function or(e,t,r){return e.$source||(e.$source={}),e.$source[t]=r,e}var St=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],wt=["TimeoutError","RequestTimeout","RequestTimeoutException"],_t=[500,502,503,504],At=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],It=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"];var nr=e=>e?.$retryable!==void 0;var ir=e=>e.$metadata?.clockSkewCorrected,sr=e=>{let t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},oe=e=>e.$metadata?.httpStatusCode===429||St.includes(e.name)||e.$retryable?.throttling==!0,ne=(e,t=0)=>nr(e)||ir(e)||e.name==="InvalidSignatureException"&&e.message?.includes("Signature expired")||wt.includes(e.name)||At.includes(e?.code||"")||It.includes(e?.code||"")||_t.includes(e.$metadata?.httpStatusCode||0)||sr(e)||ar(e)||e.cause!==void 0&&t<=10&&ne(e.cause,t+1),vt=e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!ne(e)}return!1};function ar(e){return e.code==="ERR_HTTP2_STREAM_ERROR"&&e.message.includes("NGHTTP2_REFUSED_STREAM")}var ie=class e{static setTimeoutFn=(t,r)=>setTimeout(t,r);beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(t){let r;this.updateMeasuredRate();let o=t;if(o?.errorType==="THROTTLING"||oe(o?.error??t)){let s=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let r=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(o=>e.setTimeoutFn(o,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let r=(t-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=t}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),r=Math.floor(t*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let o=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(o*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(t){return parseFloat(t.toFixed(8))}};var Me="amz-sdk-invocation-id",ke="amz-sdk-request";var T=class e{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?"THROTTLING":"TRANSIENT"}};var se=class{x=T.delay();computeNextBackoffDelay(t){let i=Math.random()*Math.min(this.x*2**t,2e4);return Math.floor(i)}setDelayBase(t){this.x=t}};var G=class{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(t,r,o,i){this.delay=t,this.count=r,this.cost=o,this.longPoll=i}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}};var A;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(A||(A={}));var N=3,$e=A.STANDARD;var ae={incompatible:1,attempts:2,capacity:3},C=class{mode=A.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(t){typeof t=="number"?this.maxAttemptsProvider=async()=>t:typeof t=="function"?this.maxAttemptsProvider=t:t&&typeof t=="object"&&(this.maxAttemptsProvider=async()=>t.maxAttempts,this.baseDelay=t.baseDelay,this.retryBackoffStrategy=t.backoff),this.maxAttemptsProvider??=async()=>N,this.baseDelay??=T.delay(),this.retryBackoffStrategy??=new se}async acquireInitialRetryToken(t){return new G(T.delay(),0,void 0,T.v2026&&t.includes(":longpoll"))}async refreshRetryTokenForRetry(t,r){let o=await this.getMaxAttempts(),i=this.retryCode(t,r,o),n=i===0,s=t.isLongPoll?.();if(n||s){let a=r.errorType;this.retryBackoffStrategy.setDelayBase(a==="THROTTLING"?T.throttlingDelay():this.baseDelay);let c=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),d=c;if(r.retryAfterHint instanceof Date&&(d=Math.max(c,Math.min(r.retryAfterHint.getTime()-Date.now(),c+5e3))),n){let m=this.getCapacityCost(a);this.capacity-=m;let l=new G(0,t.getRetryCount()+1,m,t.isLongPoll?.()??!1);return await new Promise(u=>setTimeout(u,d)),l.$retryLog.acquisitionDelay=d,l}else{let m=T.v2026&&i===ae.capacity&&s?d:0;m>0&&await new Promise(l=>setTimeout(l,m))}}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.min(500,this.capacity+(t.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${N}`),N}}retryCode(t,r,o){let i=t.getRetryCount()+1,n=this.isRetryableError(r.errorType)?0:ae.incompatible,s=i<o?0:ae.attempts,a=this.capacity>=this.getCapacityCost(r.errorType)?0:ae.capacity;return n||s||a}getCapacityCost(t){return t===T.modifiedCostType()?T.throttlingCost():T.cost()}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}};var W=class{mode=A.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(t,r){let{rateLimiter:o}=r??{};this.rateLimiter=o??new ie,this.standardRetryStrategy=r?new C({maxAttempts:typeof t=="number"?t:3,...r}):new C(t)}async acquireInitialRetryToken(t){let r=await this.standardRetryStrategy.acquireInitialRetryToken(t);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(t,r){this.rateLimiter.updateClientSendingRate(r);let o=await this.standardRetryStrategy.refreshRetryTokenForRetry(t,r);return await this.rateLimiter.getSendToken(),o}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};var Fe="AWS_MAX_ATTEMPTS",Ue="max_attempts",lr={environmentVariableSelector:e=>{let t=e[Fe];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${Fe} mast be a number, got "${t}"`);return r},configFileSelector:e=>{let t=e[Ue];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${Ue} mast be a number, got "${t}"`);return r},default:N},ur=(e,t)=>{let{retryStrategy:r,retryMode:o}=e,{defaultMaxAttempts:i=N,defaultBaseDelay:n=T.delay()}=t??{},s=v(e.maxAttempts??i),a=r?Promise.resolve(r):void 0,c=async()=>{let d=await s();return await v(o)()===A.ADAPTIVE?new W(s,{maxAttempts:d,baseDelay:n}):new C({maxAttempts:d,baseDelay:n})};return Object.assign(e,{maxAttempts:s,retryStrategy:()=>a??=c()})},Ct="AWS_RETRY_MODE",bt="retry_mode",dr={environmentVariableSelector:e=>e[Ct],configFileSelector:e=>e[bt],default:$e};import{Readable as pr}from"stream";var Le=e=>e?.body instanceof pr||typeof ReadableStream<"u"&&e?.body instanceof ReadableStream;function Dt(e,t){if(ze.isInstance(e))for(let r of Object.keys(e.headers)){let o=r.toLowerCase();if(o==="retry-after"){let i=e.headers[r],n=NaN;if(i.endsWith("GMT"))try{n=(Be(i).getTime()-Date.now())/1e3}catch(s){t?.trace?.("Failed to parse retry-after header"),t?.trace?.(s)}else i.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?n=Number(i.match(/ GMT, ([\d.]+)$/)?.[1]):i.match(/^((\d+)|(\d+\.\d+))$/)?n=Number(i):Date.parse(i)>=Date.now()&&(n=(Date.parse(i)-Date.now())/1e3);return isNaN(n)?void 0:new Date(Date.now()+n*1e3)}else if(o==="x-amz-retry-after"){let i=e.headers[r],n=Number(i);if(isNaN(n)){t?.trace?.(`Failed to parse x-amz-retry-after=${i}`);return}return new Date(Date.now()+n)}}}var Pt=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);function Ve(e){return t=>(r,o)=>async i=>{let n=await t.retryStrategy(),s=await t.maxAttempts();if(mr(n)){n=n;let a=await n.acquireInitialRetryToken((o.partition_id??"")+(o.__retryLongPoll?":longpoll":"")),c=new Error,d=0,m=0,{request:l}=i,u=We.isInstance(l);for(u&&(l.headers[Me]=Ye());;)try{u&&(l.headers[ke]=`attempt=${d+1}; max=${s}`);let{response:p,output:h}=await r(i);return n.recordSuccess(a),h.$metadata.attempts=d+1,h.$metadata.totalRetryDelay=m,{response:p,output:h}}catch(p){let h=gr(p,t.logger);if(c=Pt(p),u&&e(l))throw(o.logger instanceof U?console:o.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{a=await n.refreshRetryTokenForRetry(a,h)}catch{throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=d+1,c.$metadata.totalRetryDelay=m,c}d=a.getRetryCount();let R=a.getRetryDelay();m+=(a?.$retryLog?.acquisitionDelay??0)+R,R>0&&await fr(R)}}else return n=n,n?.mode&&(o.userAgent=[...o.userAgent||[],["cfg/retry-mode",n.mode]]),n.retry(r,i)}}var fr=e=>new Promise(t=>setTimeout(t,e)),mr=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",gr=(e,t)=>{let r={error:e,errorType:hr(e)},o=Dt(e.$response,t);return o&&(r.retryAfterHint=o),r},hr=e=>oe(e)?"THROTTLING":ne(e)?"TRANSIENT":vt(e)?"SERVER_ERROR":"CLIENT_ERROR",Er={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function Mt(e){let t=Ve(e);return r=>({applyToStack:o=>{o.add(t(r),Er)}})}var ks=Ve(Le),$s=Mt(Le);var ce={warningEmitted:!1},Rr=e=>{if(e&&!ce.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){ce.warningEmitted=!0;return}let t=parseInt(e.substring(1,e.indexOf("."))),r=22;t<r&&(ce.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
2
|
-
versions published after the first week of January 2027
|
|
3
|
-
will require node >=${r}. You are running node ${e}.
|
|
4
|
-
|
|
5
|
-
To continue receiving updates to AWS services, bug fixes,
|
|
6
|
-
and security updates please upgrade to node >=${r}.
|
|
7
|
-
|
|
8
|
-
More information can be found at: https://a.co/c895JFp`))}};T.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function xr(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}var kt={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|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"};var Tr=kt;var $t=e=>{let{partitions:t}=Tr;for(let o of t){let{regions:i,outputs:n}=o;for(let[s,a]of Object.entries(i))if(s===e)return{...n,...a}}for(let o of t){let{regionRegex:i,outputs:n}=o;if(new RegExp(i).test(e))return{...n}}let r=t.find(o=>o.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}};var He=(e,t=!1)=>{if(t){for(let r of e.split("."))if(!He(r))return!1;return!0}return!(!P(e)||e.length<3||e.length>63||e!==e.toLowerCase()||M(e))};var Ft=e=>{let t=e.split(":");if(t.length<6)return null;let[r,o,i,n,s,...a]=t;if(r!=="arn"||o===""||i===""||a.join(":")==="")return null;let c=a.map(d=>d.split("/")).flat();return{partition:o,service:i,region:n,accountId:s,resourceId:c}};var Ut={isVirtualHostableS3Bucket:He,parseArn:Ft,partition:$t};V.aws=Ut;export{D as a,me as b,j as c,Lt as d,Ee as e,Vt as f,Ht as g,Bt as h,Gt as i,Wt as j,rt as k,U as l,ut as m,xe as n,Te as o,V as p,M as q,tr as r,rr as s,Ni as t,bi as u,Rr as v,or as w,Me as x,ke as y,A as z,N as A,$e as B,C,W as D,lr as E,ur as F,dr as G,$s as H,xr as I};
|
package/dist/chunk-AN6QWW3N.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as s,G as n,y as e}from"./chunk-Z4YWESTY.js";function i(o={}){return e({...s,async default(){return r.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...n,...o})}var r={silence:!1};export{i as a};
|
package/dist/chunk-CVCZBECH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i={name:"@aws-sdk/nested-clients",version:"3.996.16",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=20.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.25","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.9","@aws-sdk/middleware-user-agent":"^3.972.26","@aws-sdk/region-config-resolver":"^3.972.10","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.12","@smithy/config-resolver":"^4.4.13","@smithy/core":"^3.23.12","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.27","@smithy/middleware-retry":"^4.4.44","@smithy/middleware-serde":"^4.2.15","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.0","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.7","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.43","@smithy/util-defaults-mode-node":"^4.2.47","@smithy/util-endpoints":"^3.3.3","@smithy/util-middleware":"^4.2.12","@smithy/util-retry":"^4.2.12","@smithy/util-utf8":"^4.2.2",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}}};export{i as a};
|
package/dist/chunk-GA44DNS2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as N,k as P,w as M,x as w,y as C}from"./chunk-UWHWNXNX.js";import{I as u,z as D}from"./chunk-A3H5SUSR.js";import{f as _}from"./chunk-Z4YWESTY.js";var Z=e=>t=>async o=>{if(!_.isInstance(o.request))return t(o);let{request:r}=o,{handlerProtocol:n=""}=e.requestHandler.metadata||{};if(n.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let i=r.hostname;r.port!=null&&(i+=`:${r.port}`),r.headers.host=i}return t(o)},J={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Se=e=>({applyToStack:t=>{t.add(Z(e),J)}});var K=()=>(e,t)=>async o=>{try{let r=await e(o),{clientName:n,commandName:i,logger:a,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:p}=s,d=c??t.inputFilterSensitiveLog,f=p??t.outputFilterSensitiveLog,{$metadata:m,...A}=r.output;return a?.info?.({clientName:n,commandName:i,input:d(o.input),output:f(A),metadata:m}),r}catch(r){let{clientName:n,commandName:i,logger:a,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:c}=s,p=c??t.inputFilterSensitiveLog;throw a?.error?.({clientName:n,commandName:i,input:p(o.input),error:r,metadata:r.$metadata}),r}},Q={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},De=e=>({applyToStack:t=>{t.add(K(),Q)}});var v={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};var T="X-Amzn-Trace-Id",ee="AWS_LAMBDA_FUNCTION_NAME",te="_X_AMZN_TRACE_ID",U=()=>e=>async t=>{let{request:o}=t;if(!_.isInstance(o))return e(t);let r=Object.keys(o.headers??{}).find(d=>d.toLowerCase()===T.toLowerCase())??T;if(o.headers.hasOwnProperty(r))return e(t);let n=process.env[ee],i=process.env[te],c=(await N.getInstanceAsync())?.getXRayTraceId()??i,p=d=>typeof d=="string"&&d.length>0;return p(n)&&p(c)&&(o.headers[T]=c),e({...t,request:o})};var Me=e=>({applyToStack:t=>{t.add(U(),v)}});var re=/\d{12}\.ddb/;async function b(e,t,o){if(o.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&u(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){let i=await t.retryStrategy();if(typeof i.mode=="string")switch(i.mode){case D.ADAPTIVE:u(e,"RETRY_MODE_ADAPTIVE","F");break;case D.STANDARD:u(e,"RETRY_MODE_STANDARD","E");break}}if(typeof t.accountIdEndpointMode=="function"){let i=e.endpointV2;switch(String(i?.url?.hostname).match(re)&&u(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":u(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":u(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":u(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let n=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(n?.$source){let i=n;i.accountId&&u(e,"RESOLVED_ACCOUNT_ID","T");for(let[a,s]of Object.entries(i.$source??{}))u(e,a,s)}}var R="user-agent",E="x-amz-user-agent";var x=/[^!$%&'*+\-.^_`|~\w]/g,k=/[^!$%&'*+\-.^_`|~\w#]/g;function F(e){let t="";for(let o in e){let r=e[o];if(t.length+r.length+1<=1024){t.length?t+=","+r:t+=r;continue}break}return t}var oe=e=>(t,o)=>async r=>{let{request:n}=r;if(!_.isInstance(n))return t(r);let{headers:i}=n,a=o?.userAgent?.map(g)||[],s=(await e.defaultUserAgentProvider()).map(g);await b(o,e,r);let c=o;s.push(`m/${F(Object.assign({},o.__smithy_context?.features,c.__aws_sdk_context?.features))}`);let p=e?.customUserAgent?.map(g)||[],d=await e.userAgentAppId();d&&s.push(g(["app",`${d}`]));let f=P(),m=(f?[f]:[]).concat([...s,...a,...p]).join(" "),A=[...s.filter(Y=>Y.startsWith("aws-sdk-")),...p].join(" ");return e.runtime!=="browser"?(A&&(i[E]=i[E]?`${i[R]} ${A}`:A),i[R]=m):i[E]=m,t({...r,request:n})},g=e=>{let t=e[0].split("/").map(a=>a.replace(x,"-")).join("/"),o=e[1]?.replace(k,"-"),r=t.indexOf("/"),n=t.substring(0,r),i=t.substring(r+1);return n==="api"&&(i=i.toLowerCase()),[n,i,o].filter(a=>a&&a.length>0).reduce((a,s,c)=>{switch(c){case 0:return s;case 1:return`${a}/${s}`;default:return`${a}#${s}`}},"")},ne={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},He=e=>({applyToStack:t=>{t.add(oe(e),ne)}});import{Writable as ie}from"stream";var S=class extends ie{bufferedBytes=[];_write(t,o,r){this.bufferedBytes.push(t),r()}};var Nt=e=>se(e)?ae(e):new Promise((t,o)=>{let r=new S;e.pipe(r),e.on("error",n=>{r.end(),o(n)}),r.on("error",o),r.on("finish",function(){let n=new Uint8Array(Buffer.concat(this.bufferedBytes));t(n)})}),se=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream;async function ae(e){let t=[],o=e.getReader(),r=!1,n=0;for(;!r;){let{done:s,value:c}=await o.read();c&&(t.push(c),n+=c.length),r=s}let i=new Uint8Array(n),a=0;for(let s of t)i.set(s,a),a+=s.length;return i}import{platform as fe,release as _e}from"os";import{env as W}from"process";import{versions as I}from"process";var V=()=>{let e=["deno","bun","llrt"];for(let t of e)if(I[t])return[`md/${t}`,I[t]];return["md/nodejs",I.node]};import{readFile as X}from"fs/promises";import{join as O}from"path";import{normalize as ce,sep as H}from"path";var G=e=>{let t=process.cwd();if(!e)return[t];let o=ce(e),r=o.split(H),n=r.indexOf("node_modules"),i=n!==-1?r.slice(0,n).join(H):o;return t===i?[t]:[i,t]};var de=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/,y=(e="")=>{let t=e.match(de);if(!t)return;let[o,r,n,i]=[t[1],t[2],t[3],t[4]];return i?`${o}.${r}.${n}-${i}`:`${o}.${r}.${n}`};var pe=["^","~",">=","<=",">","<"],ue=["latest","beta","dev","rc","insiders","next"],z=(e="")=>{if(ue.includes(e))return e;let t=pe.find(r=>e.startsWith(r))??"",o=y(e.slice(t.length));if(o)return`${t}${o}`};var l,le=O("node_modules","typescript","package.json"),j=async()=>{if(l===null)return;if(typeof l=="string")return["md/tsc",l];let e=!1;try{e=M(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",w.ENV)||!1}catch{}if(e){l=null;return}let o=G(typeof __dirname<"u"?__dirname:void 0),r;for(let a of o)try{let s=O(a,"package.json"),c=await X(s,"utf-8"),{dependencies:p,devDependencies:d}=JSON.parse(c),f=d?.typescript??p?.typescript;if(typeof f!="string")continue;r=f;break}catch{}if(!r){l=null;return}let n;for(let a of o)try{let s=O(a,le),c=await X(s,"utf-8"),{version:p}=JSON.parse(c),d=y(p);if(typeof d!="string")continue;n=d;break}catch{}if(n)return l=n,["md/tsc",l];let i=z(r);if(typeof i!="string"){l=null;return}return l=`dev_${i}`,["md/tsc",l]};var q={isCrtAvailable:!1};var B=()=>q.isCrtAvailable?["md/crt-avail"]:null;var Jt=({serviceId:e,clientVersion:t})=>{let o=V();return async r=>{let n=[["aws-sdk-js",t],["ua","2.1"],[`os/${fe()}`,_e()],["lang/js"],o],i=await j();i&&n.push(i);let a=B();a&&n.push(a),e&&n.push([`api/${e}`,t]),W.AWS_EXECUTION_ENV&&n.push([`exec-env/${W.AWS_EXECUTION_ENV}`]);let s=await r?.userAgentAppId?.();return s?[...n,[`app/${s}`]]:[...n]}};var Ae="AWS_SDK_UA_APP_ID",me="sdk_ua_app_id",Ee="sdk-ua-app-id",er={environmentVariableSelector:e=>e[Ae],configFileSelector:e=>e[me]??e[Ee],default:C};var cr=e=>({setRegion(t){e.region=t},region(){return e.region}}),dr=e=>({region:e.region()});export{Nt as a,Se as b,De as c,Me as d,He as e,Jt as f,er as g,cr as h,dr as i};
|
package/dist/chunk-IYWUY3VA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}},o=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},l=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=h(b,d))||f.enumerable});return a};var p=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c,p as d};
|
package/dist/chunk-LDZWCNWB.js
DELETED
|
File without changes
|
package/dist/chunk-M3NEWJ7L.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i={name:"@aws-sdk/nested-clients",version:"3.997.6",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=20.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.8","@aws-sdk/middleware-host-header":"^3.972.10","@aws-sdk/middleware-logger":"^3.972.10","@aws-sdk/middleware-recursion-detection":"^3.972.11","@aws-sdk/middleware-user-agent":"^3.972.38","@aws-sdk/region-config-resolver":"^3.972.13","@aws-sdk/signature-v4-multi-region":"^3.996.25","@aws-sdk/types":"^3.973.8","@aws-sdk/util-endpoints":"^3.996.8","@aws-sdk/util-user-agent-browser":"^3.972.10","@aws-sdk/util-user-agent-node":"^3.973.24","@smithy/config-resolver":"^4.4.17","@smithy/core":"^3.23.17","@smithy/fetch-http-handler":"^5.3.17","@smithy/hash-node":"^4.2.14","@smithy/invalid-dependency":"^4.2.14","@smithy/middleware-content-length":"^4.2.14","@smithy/middleware-endpoint":"^4.4.32","@smithy/middleware-retry":"^4.5.7","@smithy/middleware-serde":"^4.2.20","@smithy/middleware-stack":"^4.2.14","@smithy/node-config-provider":"^4.3.14","@smithy/node-http-handler":"^4.6.1","@smithy/protocol-http":"^5.3.14","@smithy/smithy-client":"^4.12.13","@smithy/types":"^4.14.1","@smithy/url-parser":"^4.2.14","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.49","@smithy/util-defaults-mode-node":"^4.2.54","@smithy/util-endpoints":"^3.4.2","@smithy/util-middleware":"^4.2.14","@smithy/util-retry":"^4.3.6","@smithy/util-utf8":"^4.2.2",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}}};export{i as a};
|
package/dist/chunk-MGGNSWUA.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{V as C,g as D}from"./chunk-Z4YWESTY.js";import{Agent as O,request as X}from"https";function R(o){let e=o&&typeof o=="object"&&"reason"in o?o.reason:void 0;if(e){if(e instanceof Error){let n=new Error("Request aborted");return n.name="AbortError",n.cause=e,n}let r=new Error(String(e));return r.name="AbortError",r}let t=new Error("Request aborted");return t.name="AbortError",t}var N=["ECONNRESET","EPIPE","ETIMEDOUT"];var L=o=>{let e={};for(let t in o){let r=o[t];e[t]=Array.isArray(r)?r.join(","):r}return e};var c={setTimeout:(o,e)=>setTimeout(o,e),clearTimeout:o=>clearTimeout(o)};var B=1e3,U=(o,e,t=0)=>{if(!t)return-1;let r=n=>{let s=c.setTimeout(()=>{o.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${t} ms.`),{name:"TimeoutError"}))},t-n),i=a=>{a?.connecting?a.on("connect",()=>{c.clearTimeout(s)}):c.clearTimeout(s)};o.socket?i(o.socket):o.on("socket",i)};return t<2e3?(r(0),0):c.setTimeout(r.bind(null,B),B)};var $=(o,e,t=0,r,n)=>t?c.setTimeout(()=>{let s=`@smithy/node-http-handler - [${r?"ERROR":"WARN"}] a request has exceeded the configured ${t} ms requestTimeout.`;if(r){let i=Object.assign(new Error(s),{name:"TimeoutError",code:"ETIMEDOUT"});o.destroy(i),e(i)}else s+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",n?.warn?.(s)},t):-1;var Q=3e3,j=(o,{keepAlive:e,keepAliveMsecs:t},r=Q)=>{if(e!==!0)return-1;let n=()=>{o.socket?o.socket.setKeepAlive(e,t||0):o.on("socket",s=>{s.setKeepAlive(e,t||0)})};return r===0?(n(),0):c.setTimeout(n,r)};var H=3e3,W=(o,e,t=0)=>{let r=n=>{let s=t-n,i=()=>{o.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${t} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};o.socket?(o.socket.setTimeout(s,i),o.on("close",()=>o.socket?.removeListener("timeout",i))):o.setTimeout(s,i)};return 0<t&&t<6e3?(r(0),0):c.setTimeout(r.bind(null,t===0?0:H),H)};import{Readable as z}from"stream";var F=6e3;async function K(o,e,t=F,r=!1){let n=e.headers,s=n?n.Expect||n.expect:void 0,i=-1,a=!0;!r&&s==="100-continue"&&(a=await Promise.race([new Promise(f=>{i=Number(c.setTimeout(()=>f(!0),Math.max(F,t)))}),new Promise(f=>{o.on("continue",()=>{c.clearTimeout(i),f(!0)}),o.on("response",()=>{c.clearTimeout(i),f(!1)}),o.on("error",()=>{c.clearTimeout(i),f(!1)})})])),a&&G(o,e.body)}function G(o,e){if(e instanceof z){e.pipe(o);return}if(e){let t=Buffer.isBuffer(e);if(t||typeof e=="string"){t&&e.byteLength===0?o.end():o.end(e);return}let n=e;if(typeof n=="object"&&n.buffer&&typeof n.byteOffset=="number"&&typeof n.byteLength=="number"){o.end(Buffer.from(n.buffer,n.byteOffset,n.byteLength));return}o.end(Buffer.from(e));return}o.end()}var k,V,M=class o{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new o(e)}static checkSocketUsage(e,t,r=console){let{sockets:n,requests:s,maxSockets:i}=e;if(typeof i!="number"||i===1/0||Date.now()-15e3<t)return t;if(n&&s)for(let f in n){let h=n[f]?.length??0,m=s[f]?.length??0;if(h>=i&&m>=2*i)return r?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${h} and ${m} additional requests are enqueued.
|
|
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 t}constructor(e){this.configProvider=new Promise((t,r)=>{typeof e=="function"?e().then(n=>{t(this.resolveDefaultConfig(n))}).catch(r):t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);let n=this.config,s=e.protocol==="https:";return!s&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((i,a)=>{let f,h=-1,m=-1,p=-1,E=-1,y=-1,w=()=>{c.clearTimeout(h),c.clearTimeout(m),c.clearTimeout(p),c.clearTimeout(E),c.clearTimeout(y)},q=async u=>{await f,w(),i(u)},g=async u=>{await f,w(),a(u)};if(t?.aborted){let u=R(t);g(u);return}let v=e.headers,J=v?(v.Expect??v.expect)==="100-continue":!1,b=s?n.httpsAgent:n.httpAgent;J&&!this.externalAgent&&(b=new(s?O:k)({keepAlive:!1,maxSockets:1/0})),h=c.setTimeout(()=>{this.socketWarningTimestamp=o.checkSocketUsage(b,this.socketWarningTimestamp,n.logger)},n.socketAcquisitionWarningTimeout??(n.requestTimeout??2e3)+(n.connectionTimeout??1e3));let S=e.query?C(e.query):"",_;if(e.username!=null||e.password!=null){let u=e.username??"",l=e.password??"";_=`${u}:${l}`}let x=e.path;S&&(x+=`?${S}`),e.fragment&&(x+=`#${e.fragment}`);let T=e.hostname??"";T[0]==="["&&T.endsWith("]")?T=e.hostname.slice(1,-1):T=e.hostname;let I={headers:e.headers,host:T,method:e.method,path:x,port:e.port,agent:b,auth:_},d=(s?X:V)(I,u=>{let l=new D({statusCode:u.statusCode||-1,reason:u.statusMessage,headers:L(u.headers),body:u});q({response:l})});if(d.on("error",u=>{N.includes(u.code)?g(Object.assign(u,{name:"TimeoutError"})):g(u)}),t){let u=()=>{d.destroy();let l=R(t);g(l)};if(typeof t.addEventListener=="function"){let l=t;l.addEventListener("abort",u,{once:!0}),d.once("close",()=>l.removeEventListener("abort",u))}else t.onabort=u}let P=r??n.requestTimeout;m=U(d,g,n.connectionTimeout),p=$(d,g,P,n.throwOnRequestTimeout,n.logger??console),E=W(d,g,n.socketTimeout);let A=I.agent;typeof A=="object"&&"keepAlive"in A&&(y=j(d,{keepAlive:A.keepAlive,keepAliveMsecs:A.keepAliveMsecs})),f=K(d,e,P,this.externalAgent).catch(u=>(w(),a(u)))})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>({...r,[e]:t}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:r,socketTimeout:n,socketAcquisitionWarningTimeout:s,httpAgent:i,httpsAgent:a,throwOnRequestTimeout:f,logger:h}=e||{},m=!0,p=50;return{connectionTimeout:r,requestTimeout:t,socketTimeout:n,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:f,httpAgentProvider:async()=>{let{Agent:E,request:y}=await import("http");return V=y,k=E,i instanceof k||typeof i?.destroy=="function"?(this.externalAgent=!0,i):new k({keepAlive:m,maxSockets:p,...i})},httpsAgent:a instanceof O||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new O({keepAlive:m,maxSockets:p,...a}),logger:h}}};export{M as a};
|
package/dist/chunk-MYIHTCRS.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var I=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";var u=(e,t=0,r=e.byteLength-t)=>{if(!I(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Buffer.from(e,t,r)},b=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Buffer.from(e,t):Buffer.from(e)};var g=e=>{let t=b(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var Z=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return u(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};var F=e=>{if(e!=null){if(typeof e=="string"){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Re.warn(Ne(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},Ae=Math.ceil(34028234663852886e22),X=e=>{let t=F(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Ae)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},$e=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}};var q=e=>Q(e,16),K=e=>Q(e,8),Q=(e,t)=>{let r=$e(e);if(r!==void 0&&Be(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},Be=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}};var v=e=>F(typeof e=="string"?$(e):e);var ee=e=>X(typeof e=="string"?$(e):e),Me=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,$=e=>{let t=e.match(Me);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)};var x=e=>q(typeof e=="string"?$(e):e),te=e=>K(typeof e=="string"?$(e):e),Ne=e=>String(new TypeError(e).stack||e).split(`
|
|
2
|
-
`).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(`
|
|
3
|
-
`),Re={warn:console.warn};var Ue=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ie(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),i=e.getUTCMinutes(),f=e.getUTCSeconds(),c=o<10?`0${o}`:`${o}`,a=s<10?`0${s}`:`${s}`,p=i<10?`0${i}`:`${i}`,l=f<10?`0${f}`:`${f}`;return`${Ue[n]}, ${c} ${D[r]} ${t} ${a}:${p}:${l} GMT`}var Fe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Oe=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Fe.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,f,c,a]=t,p=x(w(n)),l=m(o,"month",1,12),T=m(s,"day",1,31);return E(p,l,T,{hours:i,minutes:f,seconds:c,fractionalMilliseconds:a})},De=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),_e=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=De.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,f,c,a,p]=t,l=x(w(n)),T=m(o,"month",1,12),U=m(s,"day",1,31),S=E(l,T,U,{hours:i,minutes:f,seconds:c,fractionalMilliseconds:a});return p.toUpperCase()!="Z"&&S.setTime(S.getTime()-Ze(p)),S},Ce=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$/),Le=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$/),Pe=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})$/),He=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Ce.exec(e);if(t){let[r,n,o,s,i,f,c,a]=t;return E(x(w(s)),O(o),m(n,"day",1,31),{hours:i,minutes:f,seconds:c,fractionalMilliseconds:a})}if(t=Le.exec(e),t){let[r,n,o,s,i,f,c,a]=t;return We(E(ze(s),O(o),m(n,"day",1,31),{hours:i,minutes:f,seconds:c,fractionalMilliseconds:a}))}if(t=Pe.exec(e),t){let[r,n,o,s,i,f,c,a]=t;return E(x(w(a)),O(n),m(o.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:f,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},Je=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=v(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},E=(e,t,r,n)=>{let o=t-1;return Ye(e,o,r),new Date(Date.UTC(e,o,r,m(n.hours,"hour",0,23),m(n.minutes,"minute",0,59),m(n.seconds,"seconds",0,60),Ge(n.fractionalMilliseconds)))},ze=e=>{let t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+x(w(e));return r<t?r+100:r},ke=50*365*24*60*60*1e3,We=e=>e.getTime()-new Date().getTime()>ke?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,O=e=>{let t=D.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},je=[31,28,31,30,31,30,31,31,30,31,30,31],Ye=(e,t,r)=>{let n=je[t];if(t===1&&Ve(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${D[t]} in ${e}: ${r}`)},Ve=e=>e%4===0&&(e%100!==0||e%400===0),m=(e,t,r,n)=>{let o=te(w(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},Ge=e=>e==null?0:ee("0."+e)*1e3,Ze=e=>{let t=e[0],r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);let n=Number(e.substring(1,3)),o=Number(e.substring(4,6));return r*(n*60+o)*60*1e3},w=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)};var h=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};h.from=e=>e&&typeof e=="object"&&(e instanceof h||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?h(String(e)):h(JSON.stringify(e));h.fromObject=h.from;function Xe(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}var _="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",C="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",L="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",re="(\\d?\\d)",ne="(\\d{4})",qe=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Ke=new RegExp(`^${_}, ${re} ${C} ${ne} ${L} GMT$`),Qe=new RegExp(`^${_}, ${re}-${C}-(\\d\\d) ${L} GMT$`),ve=new RegExp(`^${_} ${C} ( [1-9]|\\d\\d) ${L} ${ne}$`),et=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tt=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},rt=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");let t=qe.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,r,n,o,s,i,f,,c,a]=t;y(n,1,12),y(o,1,31),y(s,0,23),y(i,0,59),y(f,0,60);let p=new Date(Date.UTC(Number(r),Number(n)-1,Number(o),Number(s),Number(i),Number(f),Number(c)?Math.round(parseFloat(`0.${c}`)*1e3):0));if(p.setUTCFullYear(Number(r)),a.toUpperCase()!="Z"){let[,l,T,U]=/([+-])(\d\d):(\d\d)/.exec(a)||[void 0,"+",0,0],S=l==="-"?1:-1;p.setTime(p.getTime()+S*(Number(T)*60*60*1e3+Number(U)*60*1e3))}return p},nt=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,r,n,o,s,i,f,c;if((c=Ke.exec(e))?[,t,r,n,o,s,i,f]=c:(c=Qe.exec(e))?([,t,r,n,o,s,i,f]=c,n=(Number(n)+1900).toString()):(c=ve.exec(e))&&([,r,t,o,s,i,f,n]=c),n&&i){let a=Date.UTC(Number(n),et.indexOf(r),Number(t),Number(o),Number(s),Number(i),f?Math.round(parseFloat(`0.${f}`)*1e3):0);y(t,1,31),y(o,0,23),y(s,0,59),y(i,0,60);let p=new Date(a);return p.setUTCFullYear(Number(n)),p}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function y(e,t,r){let n=Number(e);if(n<t||n>r)throw new Error(`Value ${n} out of range [${t}, ${r}]`)}function ot(e,t,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=e.split(t);if(r===1)return n;let o=[],s="";for(let i=0;i<n.length;i++)s===""?s=n[i]:s+=t+n[i],(i+1)%r===0&&(o.push(s),s="");return s!==""&&o.push(s),o}var st=e=>{let t=e.length,r=[],n=!1,o,s=0;for(let i=0;i<t;++i){let f=e[i];switch(f){case'"':o!=="\\"&&(n=!n);break;case",":n||(r.push(e.slice(s,i)),s=i+1);break;default:}o=f}return r.push(e.slice(s)),r.map(i=>{i=i.trim();let f=i.length;return f<2?i:(i[0]==='"'&&i[f-1]==='"'&&(i=i.slice(1,f-1)),i.replace(/\\"/g,'"'))})};var oe=/^-?\d*(\.\d+)?$/,P=class e{string;type;constructor(t,r){if(this.string=t,this.type=r,!oe.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;let r=t;return e.prototype.isPrototypeOf(t)||r.type==="bigDecimal"&&oe.test(r.string)}};var se={},H={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),se[e]=t,H[t]=e}function it(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let n=e.slice(r,r+2).toLowerCase();if(n in H)t[r/2]=H[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}function J(e){let t="";for(let r=0;r<e.byteLength;r++)t+=se[e[r]];return t}import{getRandomValues as ut}from"crypto";var ft=/^[A-Za-z0-9+/]*={0,2}$/,ie=e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!ft.exec(e))throw new TypeError("Invalid base64 string.");let t=b(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};var fe=e=>{let t;if(typeof e=="string"?t=g(e):t=e,typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return u(t.buffer,t.byteOffset,t.byteLength).toString("base64")};function ce(e,t,r,n){return class B extends Uint8Array{static fromString(s,i="utf-8"){if(typeof s=="string")return i==="base64"?B.mutate(n(s)):B.mutate(t(s));throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}static mutate(s){return Object.setPrototypeOf(s,B.prototype),s}transformToString(s="utf-8"){return s==="base64"?r(this):e(this)}}}var d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ae(e){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let t=new Uint8Array(16);return e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,d[t[0]]+d[t[1]]+d[t[2]]+d[t[3]]+"-"+d[t[4]]+d[t[5]]+"-"+d[t[6]]+d[t[7]]+"-"+d[t[8]]+d[t[9]]+"-"+d[t[10]]+d[t[11]]+d[t[12]]+d[t[13]]+d[t[14]]+d[t[15]]}}var z=e=>e instanceof Uint8Array?e:typeof e=="string"?g(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e);function M(e,t){if(t===void 0){t=0;for(let o of e)t+=o.byteLength}let r=new Uint8Array(t),n=0;for(let o of e)r.set(o,n),n+=o.byteLength;return r}var ct={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};import{createHash as at,createHmac as pt}from"crypto";var k=class{algorithmIdentifier;secret;hash;constructor(t,r){this.algorithmIdentifier=t,this.secret=r,this.reset()}update(t,r){this.hash.update(z(pe(t,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?pt(this.algorithmIdentifier,pe(this.secret)):at(this.algorithmIdentifier)}};function pe(e,t){return Buffer.isBuffer(e)?e:typeof e=="string"?b(e,t):ArrayBuffer.isView(e)?u(e.buffer,e.byteOffset,e.byteLength):u(e)}var A=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),N=e=>typeof Blob=="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob);var de=e=>new TextEncoder().encode(e);var me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qt=Object.entries(me).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),ue=me.split(""),R=6,W=8,ye=63;function le(e){let t;typeof e=="string"?t=de(e):t=e;let r=typeof t=="object"&&typeof t.length=="number",n=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let s=0;s<t.length;s+=3){let i=0,f=0;for(let a=s,p=Math.min(s+3,t.length);a<p;a++)i|=t[a]<<(p-a-1)*W,f+=W;let c=Math.ceil(f/R);i<<=c*R-f;for(let a=1;a<=c;a++){let p=(c-a)*R;o+=ue[(i&ye<<p)>>p]}o+="==".slice(0,4-c)}return o}import{Readable as G}from"stream";var he=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};var be=async e=>N(e)?j(e):Y(e);async function j(e){return e.arrayBuffer().then(t=>new Uint8Array(t))}async function Y(e){let t=[],r=e.getReader(),n=0;for(;;){let{done:o,value:s}=await r.read();if(s&&(t.push(s),n+=s.length),o)break}return M(t,n)}var ge="The stream has already been transformed.",we=e=>{if(!xe(e)&&!A(e)){let o=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let t=!1,r=async()=>{if(t)throw new Error(ge);return t=!0,await be(e)},n=o=>{if(typeof o.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
4
|
-
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return o.stream()};return Object.assign(e,{transformToByteArray:r,transformToString:async o=>{let s=await r();if(o==="base64")return le(s);if(o==="hex")return J(s);if(o===void 0||o==="utf8"||o==="utf-8")return he(s);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(ge);if(t=!0,xe(e))return n(e);if(A(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},xe=e=>typeof Blob=="function"&&e instanceof Blob;import{Writable as dt}from"stream";var Te=e=>N(e)?j(e):A(e)?Y(e):new Promise((t,r)=>{let n=new V,o=e;o.pipe(n),o.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=M(this.bufferedBytes);t(s)})}),V=class extends dt{bufferedBytes=[];_write(t,r,n){this.bufferedBytes.push(t),n()}};var Se="The stream has already been transformed.",mt=e=>{if(!(e instanceof G))try{return we(e)}catch{let o=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let t=!1,r=async()=>{if(t)throw new Error(Se);return t=!0,await Te(e)};return Object.assign(e,{transformToByteArray:r,transformToString:async n=>{let o=await r();return n===void 0||Buffer.isEncoding(n)?u(o.buffer,o.byteOffset,o.byteLength).toString(n):new TextDecoder(n).decode(o)},transformToWebStream:()=>{if(t)throw new Error(Se);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof G.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return t=!0,G.toWeb(e)}})};var Ee=class extends ce(Z,g,fe,ie){},yt=ut,lt=ae(yt),Ir=lt;export{I as a,ie as b,g as c,fe as d,Z as e,Ie as f,Oe as g,_e as h,He as i,Je as j,h as k,Xe as l,tt as m,rt as n,nt as o,ot as p,st as q,P as r,it as s,J as t,z as u,ct as v,k as w,mt as x,Ee as y,lt as z,Ir as A};
|
package/dist/chunk-PA4CKDRJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a={name:"Nebutra",nameCn:"\u4E91\u6BD3\u667A\u80FD",nameFull:"\u65E0\u9521\u4E91\u6BD3\u667A\u80FD\u79D1\u6280\u6709\u9650\u516C\u53F8",nameFullEn:"Wuxi Nebutra Intelligence Technology Co., Ltd.",tagline:"Ship AI products, not boilerplate.",taglineCn:"AI\u539F\u751F\xB7\u5FEB\u901F\u51FA\u6D77\xB7\u5373\u523B\u4EA4\u4ED8",description:"Production-ready Next.js monorepo template for AI SaaS products. Auth, billing, multi-tenancy, AI services, design system, and enterprise infrastructure \u2014 pre-configured.",descriptionCn:"\u9762\u5411AI\u521B\u4E1A\u8005\u7684\u4E00\u4F53\u5316SaaS\u57FA\u7840\u8BBE\u65BD\u6A21\u677F\uFF0C\u8986\u76D6\u8BA4\u8BC1\u3001\u8BA1\u8D39\u3001\u591A\u79DF\u6237\u3001AI\u670D\u52A1\u4E0E\u8BBE\u8BA1\u7CFB\u7EDF\uFF0C\u5F00\u7BB1\u5373\u4EA7\u54C1",story:{concept:"Logo\u4EE5\u9996\u5B57\u6BCDN\u7684\u57FA\u7840\u9020\u578B\u6982\u5FF5\u4E3A\u4E3B\u8981\u8BBE\u8BA1\u6846\u67B6\uFF0C\u901A\u8FC7\u51E0\u4F55\u6B63\u8D1F\u7A7A\u95F4\u6784\u5EFA\u9690\u5F62'N'\uFF0C\u5F62\u6210\u8FD1\u4F3C\u516D\u8FB9\u5F62\u7684\u7A33\u5B9A\u7ED3\u6784",colorMeaning:"\u84DD\u7EFF\u6E10\u53D8\u4F53\u73B0\u672A\u6765\u611F\u4E0E\u79D1\u6280\u950B\u8292\uFF0C'\u4E91'\u4EE3\u8868\u4E91\u7AEF\u5E73\u53F0\uFF0C'\u6BD3'\u5BD3\u610F\u5B55\u80B2\u4E0E\u8F6C\u5316",values:["AI Native","Ship Fast","Open by Default","Global-Ready","Enterprise-Grade"],missionStatement:"Help AI founders and SaaS teams go from idea to production 10x faster by providing the infrastructure layer they shouldn't have to build."},domains:{landing:"nebutra.com",app:"app.nebutra.com",api:"api.nebutra.com",auth:"auth.nebutra.com",sso:"sso.nebutra.com",docs:"docs.nebutra.com",studio:"studio.nebutra.com",cdn:"cdn.nebutra.com",router:"router.nebutra.com",forge:"forge.nebutra.com",design:"design.nebutra.com",status:"status.nebutra.com",admin:"admin.nebutra.com",analytics:"analytics.nebutra.com",pebble:"pebble.nebutra.com",carina:"carina.nebutra.com"},social:{twitter:"https://twitter.com/nebutra",github:"https://github.com/nebutra",discord:"https://discord.gg/nebutra",linkedin:"https://linkedin.com/company/nebutra"}};function n(e){let t=a.domains[e];if(!t?.trim())throw new Error(`brand.domains.${String(e)} is empty \u2014 run brand:apply`);return`https://${t.replace(/^https?:\/\//,"").replace(/\/+$/,"")}`}export{n as a};
|
package/dist/chunk-QSLKOXQ6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createCipheriv as h,createDecipheriv as p,hkdf as l,randomBytes as s}from"crypto";var a="aes-256-gcm",c=32,g=12,B=16;function T(e,r,n){if(r.length!==c)throw new Error(`Key must be ${c} bytes, got ${r.length}`);let o=s(g),t=h(a,r,o,{authTagLength:B});n!==void 0&&t.setAAD(n);let f=typeof e=="string"?Buffer.from(e,"utf-8"):e,u=t.update(f);u=Buffer.concat([u,t.final()]);let i=t.getAuthTag();return{ciphertext:u,iv:o,authTag:i}}function A(e,r,n,o){if(r.length!==c)throw new Error(`Key must be ${c} bytes, got ${r.length}`);let t=p(a,r,n.iv);t.setAuthTag(n.authTag),o!==void 0&&t.setAAD(o);let f=t.update(e);return f=Buffer.concat([f,t.final()]),f}function d(e,r,n){let o=typeof e=="string"?Buffer.from(e,"utf-8"):e;return new Promise((t,f)=>{l("sha256",o,r??Buffer.alloc(0),n??Buffer.alloc(0),c,(u,i)=>{u?f(u):t(Buffer.from(i))})})}function x(e=c){return s(e)}function E(){return s(g)}function b(e){return e.toString("base64")}function v(e){return Buffer.from(e,"base64")}export{T as a,A as b,d as c,x as d,E as e,b as f,v as g};
|
package/dist/chunk-S4HCBMFP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var f=class{value;next;constructor(t){this.value=t}},a=class{#e;#t;#i;constructor(){this.clear()}enqueue(t){let i=new f(t);this.#e?(this.#t.next=i,this.#t=i):(this.#e=i,this.#t=i),this.#i++}dequeue(){let t=this.#e;if(t)return this.#e=this.#e.next,this.#i--,this.#e||(this.#t=void 0),t.value}peek(){if(this.#e)return this.#e.value}clear(){this.#e=void 0,this.#t=void 0,this.#i=0}get size(){return this.#i}*[Symbol.iterator](){let t=this.#e;for(;t;)yield t.value,t=t.next}*drain(){for(;this.#e;)yield this.dequeue()}};function x(e){let t=!1;if(typeof e=="object"&&({concurrency:e,rejectOnClear:t=!1}=e),c(e),typeof t!="boolean")throw new TypeError("Expected `rejectOnClear` to be a boolean");let i=new a,o=0,h=()=>{o<e&&i.size>0&&(o++,i.dequeue().run())},m=()=>{o--,h()},p=async(s,r,u)=>{let n=(async()=>s(...u))();r(n);try{await n}catch{}m()},b=(s,r,u,n)=>{let l={reject:u};new Promise(w=>{l.run=w,i.enqueue(l)}).then(p.bind(void 0,s,r,n)),o<e&&h()},d=(s,...r)=>new Promise((u,n)=>{b(s,u,n,r)});return Object.defineProperties(d,{activeCount:{get:()=>o},pendingCount:{get:()=>i.size},clearQueue:{value(){if(!t){i.clear();return}let s=AbortSignal.abort().reason;for(;i.size>0;)i.dequeue().reject(s)}},concurrency:{get:()=>e,set(s){c(s),e=s,queueMicrotask(()=>{for(;o<e&&i.size>0;)h()})}},map:{async value(s,r){let u=Array.from(s,(n,l)=>this(r,n,l));return Promise.all(u)}}}),d}function c(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}export{x as a};
|
package/dist/chunk-SYWJHPRX.js
DELETED
|
File without changes
|
package/dist/chunk-TW5BOTVX.js
DELETED
|
File without changes
|