nebutra 0.4.2 → 0.5.0
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 +20 -21
- package/bin/nebutra.js +28 -0
- package/dist/delegate-GIJ3G5CK.js +1 -0
- package/dist/index.js +74 -467
- package/dist/logger-QMYN56HK.js +1 -0
- package/package.json +13 -6
- package/dist/aws-kms-GSHDWA4I.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-ICFXBVJ4.js +0 -17
- 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/credits-33DQE7XK.js +0 -2802
- package/dist/delegate-7HQKV277.js +0 -1
- package/dist/dist-GMNPO44T.js +0 -1
- package/dist/dist-WSEDRKMF.js +0 -5
- package/dist/dist-es-5AMXVNUC.js +0 -1
- package/dist/dist-es-5XQLJX7S.js +0 -2
- package/dist/dist-es-H47VUS6Q.js +0 -2
- package/dist/dist-es-HTJP4AFM.js +0 -1
- package/dist/dist-es-PAB65TG2.js +0 -5
- package/dist/dist-es-QD75XXED.js +0 -1
- package/dist/dist-es-QREIURMO.js +0 -2
- package/dist/dist-es-TCZQ4KMP.js +0 -2
- package/dist/dist-es-TDPJBG34.js +0 -1
- package/dist/dist-es-VD25UO4M.js +0 -1
- package/dist/dist-es-VZPXKLZQ.js +0 -1
- package/dist/dist-es-WOF2PBAL.js +0 -5
- package/dist/event-streams-TNY7XPBF.js +0 -1
- package/dist/loadSso-7ASJ2L6X.js +0 -1
- package/dist/loadSso-CDEOXPSD.js +0 -1
- package/dist/local-6WWVOMA7.js +0 -1
- package/dist/logger-WOLJCPZK.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-VC4RXV33.js +0 -1
- package/dist/sso-oidc-T7YTOO4A.js +0 -1
- package/dist/sts-GE4BCXER.js +0 -1
- package/dist/sts-HDZNXPJY.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-JDX5NXDX.js";export{a as createLogger,b as logger};
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nebutra",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"nebutra": {
|
|
5
|
+
"status": "foundation",
|
|
6
|
+
"graph": "core",
|
|
7
|
+
"productionReady": false
|
|
8
|
+
},
|
|
9
|
+
"description": "Nebutra — the CLI for Sailor projects: status, dev, db, and codegen.",
|
|
5
10
|
"type": "module",
|
|
6
11
|
"main": "dist/index.js",
|
|
7
12
|
"bin": {
|
|
8
|
-
"nebutra": "./
|
|
13
|
+
"nebutra": "./bin/nebutra.js"
|
|
9
14
|
},
|
|
10
15
|
"files": [
|
|
16
|
+
"bin",
|
|
11
17
|
"dist"
|
|
12
18
|
],
|
|
13
19
|
"author": "Nebutra <contact@nebutra.com> (https://nebutra.com)",
|
|
@@ -38,9 +44,10 @@
|
|
|
38
44
|
"tsup": "^8.5.1",
|
|
39
45
|
"typescript": "^5.9.3",
|
|
40
46
|
"vitest": "^4.1.4",
|
|
41
|
-
"@nebutra/
|
|
42
|
-
"@nebutra/
|
|
43
|
-
"@nebutra/
|
|
47
|
+
"@nebutra/theme": "2.0.0",
|
|
48
|
+
"@nebutra/preset": "0.1.3",
|
|
49
|
+
"@nebutra/ui": "2.0.0",
|
|
50
|
+
"@nebutra/brand": "2.0.0"
|
|
44
51
|
},
|
|
45
52
|
"scripts": {
|
|
46
53
|
"dev": "tsup --watch",
|
package/dist/aws-kms-GSHDWA4I.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-ICFXBVJ4.js";import"./chunk-QSLKOXQ6.js";import"./chunk-ZIBRKYXP.js";import"./chunk-UWHWNXNX.js";import"./chunk-WJLTO7JW.js";import"./chunk-TW5BOTVX.js";import"./chunk-A3H5SUSR.js";import"./chunk-X6LE6K3W.js";import"./chunk-6MSNEPUX.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};
|