@stacksjs/buddy 0.70.4 → 0.70.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/dist/{chunk-wz2wxp9f.js → chunk-1vaz8fbz.js} +1 -1
- package/dist/{chunk-tv4f0d0g.js → chunk-1zz448cs.js} +1 -1
- package/dist/chunk-afqas5yf.js +5 -0
- package/dist/{chunk-y4k8k1by.js → chunk-j3bhtk0d.js} +1 -1
- package/dist/{chunk-fds99vbx.js → chunk-pnr51281.js} +1 -1
- package/dist/{chunk-zm0j2nyb.js → chunk-r0recaya.js} +1 -1
- package/dist/{chunk-7kc7thq5.js → chunk-w06e63eh.js} +3 -3
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-jky37dv1.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ca as KX}from"./chunk-ks9kq37e.js";import{$a as WM,Ab as zM,Bb as CM,Cb as gM,Db as mM,Wa as lM,Xa as cM,Ya as uM,Za as aM,_a as iM,ab as JM,bb as YM,cb as UM,db as rM,eb as FM,fb as MM,gb as fF,hb as BF,ib as AM,jb as IM,kb as sM,lb as pM,mb as QA,nb as nM,ob as qM,pb as LM,qb as oM,rb as DM,sb as eM,tb as BM,ub as NM,vb as VM,wb as $M,xb as PM,yb as EM,zb as KM}from"./chunk-zm0j2nyb.js";import{Eb as l2,Fb as ZM}from"./chunk-e1kefb68.js";import{Gb as kM,Hb as bM,Kb as tM,Lb as FA,Nb as YA,Ob as UA,Pb as c,Qb as XA,Sb as ZA,Tb as JA,Ub as d,Vb as HA,Wb as jM,Xb as SM,Yb as hM,Zb as yM,_b as VA,ac as HM,bc as a,ec as TM,fc as fM}from"./chunk-jky37dv1.js";import{hc as ac,ic as dM,mc as wG}from"./chunk-5vhayxpk.js";import{yc as yF}from"./chunk-8acb2bq0.js";import{Hc as gF,Ic as mF,Jc as xF}from"./chunk-2xrqj8ap.js";import{Lc as s9,Nc as OG,Pc as hF}from"./chunk-z80nypa9.js";import{Rc as Y1,Sc as KN,Tc as D,Uc as ZN,Vc as HN,Wc as K0}from"./chunk-2pj0cr49.js";var U3=D((Gq)=>{var r1=Gq,eI=/`/g,Hd=/\./g,DV=/[\0\b\t\n\r\x1a\"\'\\]/g,Vd={"\x00":"\\0","\b":"\\b","\t":"\\t","\n":"\\n","\r":"\\r","\x1A":"\\Z",'"':"\\\"","'":"\\'","\\":"\\\\"};r1.escapeId=function G(W,J){if(Array.isArray(W)){var Y="";for(var U=0;U<W.length;U++)Y+=(U===0?"":", ")+r1.escapeId(W[U],J);return Y}else if(J)return"`"+String(W).replace(eI,"``")+"`";else return"`"+String(W).replace(eI,"``").replace(Hd,"`.`")+"`"};r1.escape=function G(W,J,Y){if(W===void 0||W===null)return"NULL";switch(typeof W){case"boolean":return W?"true":"false";case"number":return W+"";case"object":if(Object.prototype.toString.call(W)==="[object Date]")return r1.dateToString(W,Y||"local");else if(Array.isArray(W))return r1.arrayToList(W,Y);else if(Buffer.isBuffer(W))return r1.bufferToString(W);else if(typeof W.toSqlString==="function")return String(W.toSqlString());else if(J)return GU(W.toString());else return r1.objectToValues(W,Y);default:return GU(W)}};r1.arrayToList=function G(W,J){var Y="";for(var U=0;U<W.length;U++){var X=W[U];if(Array.isArray(X))Y+=(U===0?"":", ")+"("+r1.arrayToList(X,J)+")";else Y+=(U===0?"":", ")+r1.escape(X,!0,J)}return Y};r1.format=function G(W,J,Y,U){if(J==null)return W;if(!Array.isArray(J))J=[J];var X=0,Z=/\?+/g,V="",$=0,K;while($<J.length&&(K=Z.exec(W))){var z=K[0].length;if(z>2)continue;var R=z===2?r1.escapeId(J[$]):r1.escape(J[$],Y,U);V+=W.slice(X,K.index)+R,X=Z.lastIndex,$++}if(X===0)return W;if(X<W.length)return V+W.slice(X);return V};r1.dateToString=function G(W,J){var Y=new Date(W);if(isNaN(Y.getTime()))return"NULL";var U,X,Z,V,$,K,z;if(J==="local")U=Y.getFullYear(),X=Y.getMonth()+1,Z=Y.getDate(),V=Y.getHours(),$=Y.getMinutes(),K=Y.getSeconds(),z=Y.getMilliseconds();else{var R=$d(J);if(R!==!1&&R!==0)Y.setTime(Y.getTime()+R*60000);U=Y.getUTCFullYear(),X=Y.getUTCMonth()+1,Z=Y.getUTCDate(),V=Y.getUTCHours(),$=Y.getUTCMinutes(),K=Y.getUTCSeconds(),z=Y.getUTCMilliseconds()}var F=K9(U,4)+"-"+K9(X,2)+"-"+K9(Z,2)+" "+K9(V,2)+":"+K9($,2)+":"+K9(K,2)+"."+K9(z,3);return GU(F)};r1.bufferToString=function G(W){return"X"+GU(W.toString("hex"))};r1.objectToValues=function G(W,J){var Y="";for(var U in W){var X=W[U];if(typeof X==="function")continue;Y+=(Y.length===0?"":", ")+r1.escapeId(U)+" = "+r1.escape(X,!0,J)}return Y};r1.raw=function G(W){if(typeof W!=="string")throw new TypeError("argument sql must be a string");return{toSqlString:function J(){return W}}};function GU(G){var W=DV.lastIndex=0,J="",Y;while(Y=DV.exec(G))J+=G.slice(W,Y.index)+Vd[Y[0]],W=DV.lastIndex;if(W===0)return"'"+G+"'";if(W<G.length)return"'"+J+G.slice(W)+"'";return"'"+J+"'"}function K9(G,W){G=G.toString();while(G.length<W)G="0"+G;return G}function $d(G){if(G==="Z")return 0;var W=G.match(/([\+\-\s])(\d\d):?(\d\d)?/);if(W)return(W[1]==="-"?-1:1)*(parseInt(W[2],10)+(W[3]?parseInt(W[3],10):0)/60)*60;return!1}});var P6=D((Kd)=>{Kd.LONG_PASSWORD=1;Kd.FOUND_ROWS=2;Kd.LONG_FLAG=4;Kd.CONNECT_WITH_DB=8;Kd.NO_SCHEMA=16;Kd.COMPRESS=32;Kd.ODBC=64;Kd.LOCAL_FILES=128;Kd.IGNORE_SPACE=256;Kd.PROTOCOL_41=512;Kd.INTERACTIVE=1024;Kd.SSL=2048;Kd.IGNORE_SIGPIPE=4096;Kd.TRANSACTIONS=8192;Kd.RESERVED=16384;Kd.SECURE_CONNECTION=32768;Kd.MULTI_STATEMENTS=65536;Kd.MULTI_RESULTS=131072;Kd.PS_MULTI_RESULTS=262144;Kd.PLUGIN_AUTH=524288;Kd.CONNECT_ATTRS=1048576;Kd.PLUGIN_AUTH_LENENC_CLIENT_DATA=2097152;Kd.CAN_HANDLE_EXPIRED_PASSWORDS=4194304;Kd.SESSION_TRACK=8388608;Kd.DEPRECATE_EOF=16777216;Kd.SSL_VERIFY_SERVER_CERT=1073741824;Kd.REMEMBER_OPTIONS=2147483648;Kd.MULTI_FACTOR_AUTHENTICATION=268435456});var R2=D((md)=>{md.BIG5_CHINESE_CI=1;md.LATIN2_CZECH_CS=2;md.DEC8_SWEDISH_CI=3;md.CP850_GENERAL_CI=4;md.LATIN1_GERMAN1_CI=5;md.HP8_ENGLISH_CI=6;md.KOI8R_GENERAL_CI=7;md.LATIN1_SWEDISH_CI=8;md.LATIN2_GENERAL_CI=9;md.SWE7_SWEDISH_CI=10;md.ASCII_GENERAL_CI=11;md.UJIS_JAPANESE_CI=12;md.SJIS_JAPANESE_CI=13;md.CP1251_BULGARIAN_CI=14;md.LATIN1_DANISH_CI=15;md.HEBREW_GENERAL_CI=16;md.TIS620_THAI_CI=18;md.EUCKR_KOREAN_CI=19;md.LATIN7_ESTONIAN_CS=20;md.LATIN2_HUNGARIAN_CI=21;md.KOI8U_GENERAL_CI=22;md.CP1251_UKRAINIAN_CI=23;md.GB2312_CHINESE_CI=24;md.GREEK_GENERAL_CI=25;md.CP1250_GENERAL_CI=26;md.LATIN2_CROATIAN_CI=27;md.GBK_CHINESE_CI=28;md.CP1257_LITHUANIAN_CI=29;md.LATIN5_TURKISH_CI=30;md.LATIN1_GERMAN2_CI=31;md.ARMSCII8_GENERAL_CI=32;md.UTF8_GENERAL_CI=33;md.CP1250_CZECH_CS=34;md.UCS2_GENERAL_CI=35;md.CP866_GENERAL_CI=36;md.KEYBCS2_GENERAL_CI=37;md.MACCE_GENERAL_CI=38;md.MACROMAN_GENERAL_CI=39;md.CP852_GENERAL_CI=40;md.LATIN7_GENERAL_CI=41;md.LATIN7_GENERAL_CS=42;md.MACCE_BIN=43;md.CP1250_CROATIAN_CI=44;md.UTF8MB4_GENERAL_CI=45;md.UTF8MB4_BIN=46;md.LATIN1_BIN=47;md.LATIN1_GENERAL_CI=48;md.LATIN1_GENERAL_CS=49;md.CP1251_BIN=50;md.CP1251_GENERAL_CI=51;md.CP1251_GENERAL_CS=52;md.MACROMAN_BIN=53;md.UTF16_GENERAL_CI=54;md.UTF16_BIN=55;md.UTF16LE_GENERAL_CI=56;md.CP1256_GENERAL_CI=57;md.CP1257_BIN=58;md.CP1257_GENERAL_CI=59;md.UTF32_GENERAL_CI=60;md.UTF32_BIN=61;md.UTF16LE_BIN=62;md.BINARY=63;md.ARMSCII8_BIN=64;md.ASCII_BIN=65;md.CP1250_BIN=66;md.CP1256_BIN=67;md.CP866_BIN=68;md.DEC8_BIN=69;md.GREEK_BIN=70;md.HEBREW_BIN=71;md.HP8_BIN=72;md.KEYBCS2_BIN=73;md.KOI8R_BIN=74;md.KOI8U_BIN=75;md.UTF8_TOLOWER_CI=76;md.LATIN2_BIN=77;md.LATIN5_BIN=78;md.LATIN7_BIN=79;md.CP850_BIN=80;md.CP852_BIN=81;md.SWE7_BIN=82;md.UTF8_BIN=83;md.BIG5_BIN=84;md.EUCKR_BIN=85;md.GB2312_BIN=86;md.GBK_BIN=87;md.SJIS_BIN=88;md.TIS620_BIN=89;md.UCS2_BIN=90;md.UJIS_BIN=91;md.GEOSTD8_GENERAL_CI=92;md.GEOSTD8_BIN=93;md.LATIN1_SPANISH_CI=94;md.CP932_JAPANESE_CI=95;md.CP932_BIN=96;md.EUCJPMS_JAPANESE_CI=97;md.EUCJPMS_BIN=98;md.CP1250_POLISH_CI=99;md.UTF16_UNICODE_CI=101;md.UTF16_ICELANDIC_CI=102;md.UTF16_LATVIAN_CI=103;md.UTF16_ROMANIAN_CI=104;md.UTF16_SLOVENIAN_CI=105;md.UTF16_POLISH_CI=106;md.UTF16_ESTONIAN_CI=107;md.UTF16_SPANISH_CI=108;md.UTF16_SWEDISH_CI=109;md.UTF16_TURKISH_CI=110;md.UTF16_CZECH_CI=111;md.UTF16_DANISH_CI=112;md.UTF16_LITHUANIAN_CI=113;md.UTF16_SLOVAK_CI=114;md.UTF16_SPANISH2_CI=115;md.UTF16_ROMAN_CI=116;md.UTF16_PERSIAN_CI=117;md.UTF16_ESPERANTO_CI=118;md.UTF16_HUNGARIAN_CI=119;md.UTF16_SINHALA_CI=120;md.UTF16_GERMAN2_CI=121;md.UTF16_CROATIAN_CI=122;md.UTF16_UNICODE_520_CI=123;md.UTF16_VIETNAMESE_CI=124;md.UCS2_UNICODE_CI=128;md.UCS2_ICELANDIC_CI=129;md.UCS2_LATVIAN_CI=130;md.UCS2_ROMANIAN_CI=131;md.UCS2_SLOVENIAN_CI=132;md.UCS2_POLISH_CI=133;md.UCS2_ESTONIAN_CI=134;md.UCS2_SPANISH_CI=135;md.UCS2_SWEDISH_CI=136;md.UCS2_TURKISH_CI=137;md.UCS2_CZECH_CI=138;md.UCS2_DANISH_CI=139;md.UCS2_LITHUANIAN_CI=140;md.UCS2_SLOVAK_CI=141;md.UCS2_SPANISH2_CI=142;md.UCS2_ROMAN_CI=143;md.UCS2_PERSIAN_CI=144;md.UCS2_ESPERANTO_CI=145;md.UCS2_HUNGARIAN_CI=146;md.UCS2_SINHALA_CI=147;md.UCS2_GERMAN2_CI=148;md.UCS2_CROATIAN_CI=149;md.UCS2_UNICODE_520_CI=150;md.UCS2_VIETNAMESE_CI=151;md.UCS2_GENERAL_MYSQL500_CI=159;md.UTF32_UNICODE_CI=160;md.UTF32_ICELANDIC_CI=161;md.UTF32_LATVIAN_CI=162;md.UTF32_ROMANIAN_CI=163;md.UTF32_SLOVENIAN_CI=164;md.UTF32_POLISH_CI=165;md.UTF32_ESTONIAN_CI=166;md.UTF32_SPANISH_CI=167;md.UTF32_SWEDISH_CI=168;md.UTF32_TURKISH_CI=169;md.UTF32_CZECH_CI=170;md.UTF32_DANISH_CI=171;md.UTF32_LITHUANIAN_CI=172;md.UTF32_SLOVAK_CI=173;md.UTF32_SPANISH2_CI=174;md.UTF32_ROMAN_CI=175;md.UTF32_PERSIAN_CI=176;md.UTF32_ESPERANTO_CI=177;md.UTF32_HUNGARIAN_CI=178;md.UTF32_SINHALA_CI=179;md.UTF32_GERMAN2_CI=180;md.UTF32_CROATIAN_CI=181;md.UTF32_UNICODE_520_CI=182;md.UTF32_VIETNAMESE_CI=183;md.UTF8_UNICODE_CI=192;md.UTF8_ICELANDIC_CI=193;md.UTF8_LATVIAN_CI=194;md.UTF8_ROMANIAN_CI=195;md.UTF8_SLOVENIAN_CI=196;md.UTF8_POLISH_CI=197;md.UTF8_ESTONIAN_CI=198;md.UTF8_SPANISH_CI=199;md.UTF8_SWEDISH_CI=200;md.UTF8_TURKISH_CI=201;md.UTF8_CZECH_CI=202;md.UTF8_DANISH_CI=203;md.UTF8_LITHUANIAN_CI=204;md.UTF8_SLOVAK_CI=205;md.UTF8_SPANISH2_CI=206;md.UTF8_ROMAN_CI=207;md.UTF8_PERSIAN_CI=208;md.UTF8_ESPERANTO_CI=209;md.UTF8_HUNGARIAN_CI=210;md.UTF8_SINHALA_CI=211;md.UTF8_GERMAN2_CI=212;md.UTF8_CROATIAN_CI=213;md.UTF8_UNICODE_520_CI=214;md.UTF8_VIETNAMESE_CI=215;md.UTF8_GENERAL_MYSQL500_CI=223;md.UTF8MB4_UNICODE_CI=224;md.UTF8MB4_ICELANDIC_CI=225;md.UTF8MB4_LATVIAN_CI=226;md.UTF8MB4_ROMANIAN_CI=227;md.UTF8MB4_SLOVENIAN_CI=228;md.UTF8MB4_POLISH_CI=229;md.UTF8MB4_ESTONIAN_CI=230;md.UTF8MB4_SPANISH_CI=231;md.UTF8MB4_SWEDISH_CI=232;md.UTF8MB4_TURKISH_CI=233;md.UTF8MB4_CZECH_CI=234;md.UTF8MB4_DANISH_CI=235;md.UTF8MB4_LITHUANIAN_CI=236;md.UTF8MB4_SLOVAK_CI=237;md.UTF8MB4_SPANISH2_CI=238;md.UTF8MB4_ROMAN_CI=239;md.UTF8MB4_PERSIAN_CI=240;md.UTF8MB4_ESPERANTO_CI=241;md.UTF8MB4_HUNGARIAN_CI=242;md.UTF8MB4_SINHALA_CI=243;md.UTF8MB4_GERMAN2_CI=244;md.UTF8MB4_CROATIAN_CI=245;md.UTF8MB4_UNICODE_520_CI=246;md.UTF8MB4_VIETNAMESE_CI=247;md.GB18030_CHINESE_CI=248;md.GB18030_BIN=249;md.GB18030_UNICODE_520_CI=250;md.UTF8_GENERAL50_CI=253;md.UTF8MB4_0900_AI_CI=255;md.UTF8MB4_DE_PB_0900_AI_CI=256;md.UTF8MB4_IS_0900_AI_CI=257;md.UTF8MB4_LV_0900_AI_CI=258;md.UTF8MB4_RO_0900_AI_CI=259;md.UTF8MB4_SL_0900_AI_CI=260;md.UTF8MB4_PL_0900_AI_CI=261;md.UTF8MB4_ET_0900_AI_CI=262;md.UTF8MB4_ES_0900_AI_CI=263;md.UTF8MB4_SV_0900_AI_CI=264;md.UTF8MB4_TR_0900_AI_CI=265;md.UTF8MB4_CS_0900_AI_CI=266;md.UTF8MB4_DA_0900_AI_CI=267;md.UTF8MB4_LT_0900_AI_CI=268;md.UTF8MB4_SK_0900_AI_CI=269;md.UTF8MB4_ES_TRAD_0900_AI_CI=270;md.UTF8MB4_LA_0900_AI_CI=271;md.UTF8MB4_EO_0900_AI_CI=273;md.UTF8MB4_HU_0900_AI_CI=274;md.UTF8MB4_HR_0900_AI_CI=275;md.UTF8MB4_VI_0900_AI_CI=277;md.UTF8MB4_0900_AS_CS=278;md.UTF8MB4_DE_PB_0900_AS_CS=279;md.UTF8MB4_IS_0900_AS_CS=280;md.UTF8MB4_LV_0900_AS_CS=281;md.UTF8MB4_RO_0900_AS_CS=282;md.UTF8MB4_SL_0900_AS_CS=283;md.UTF8MB4_PL_0900_AS_CS=284;md.UTF8MB4_ET_0900_AS_CS=285;md.UTF8MB4_ES_0900_AS_CS=286;md.UTF8MB4_SV_0900_AS_CS=287;md.UTF8MB4_TR_0900_AS_CS=288;md.UTF8MB4_CS_0900_AS_CS=289;md.UTF8MB4_DA_0900_AS_CS=290;md.UTF8MB4_LT_0900_AS_CS=291;md.UTF8MB4_SK_0900_AS_CS=292;md.UTF8MB4_ES_TRAD_0900_AS_CS=293;md.UTF8MB4_LA_0900_AS_CS=294;md.UTF8MB4_EO_0900_AS_CS=296;md.UTF8MB4_HU_0900_AS_CS=297;md.UTF8MB4_HR_0900_AS_CS=298;md.UTF8MB4_VI_0900_AS_CS=300;md.UTF8MB4_JA_0900_AS_CS=303;md.UTF8MB4_JA_0900_AS_CS_KS=304;md.UTF8MB4_0900_AS_CI=305;md.UTF8MB4_RU_0900_AI_CI=306;md.UTF8MB4_RU_0900_AS_CS=307;md.UTF8MB4_ZH_0900_AS_CS=308;md.UTF8MB4_0900_BIN=309;md.BIG5=md.BIG5_CHINESE_CI;md.DEC8=md.DEC8_SWEDISH_CI;md.CP850=md.CP850_GENERAL_CI;md.HP8=md.HP8_ENGLISH_CI;md.KOI8R=md.KOI8R_GENERAL_CI;md.LATIN1=md.LATIN1_SWEDISH_CI;md.LATIN2=md.LATIN2_GENERAL_CI;md.SWE7=md.SWE7_SWEDISH_CI;md.ASCII=md.ASCII_GENERAL_CI;md.UJIS=md.UJIS_JAPANESE_CI;md.SJIS=md.SJIS_JAPANESE_CI;md.HEBREW=md.HEBREW_GENERAL_CI;md.TIS620=md.TIS620_THAI_CI;md.EUCKR=md.EUCKR_KOREAN_CI;md.KOI8U=md.KOI8U_GENERAL_CI;md.GB2312=md.GB2312_CHINESE_CI;md.GREEK=md.GREEK_GENERAL_CI;md.CP1250=md.CP1250_GENERAL_CI;md.GBK=md.GBK_CHINESE_CI;md.LATIN5=md.LATIN5_TURKISH_CI;md.ARMSCII8=md.ARMSCII8_GENERAL_CI;md.UTF8=md.UTF8_GENERAL_CI;md.UCS2=md.UCS2_GENERAL_CI;md.CP866=md.CP866_GENERAL_CI;md.KEYBCS2=md.KEYBCS2_GENERAL_CI;md.MACCE=md.MACCE_GENERAL_CI;md.MACROMAN=md.MACROMAN_GENERAL_CI;md.CP852=md.CP852_GENERAL_CI;md.LATIN7=md.LATIN7_GENERAL_CI;md.UTF8MB4=md.UTF8MB4_GENERAL_CI;md.CP1251=md.CP1251_GENERAL_CI;md.UTF16=md.UTF16_GENERAL_CI;md.UTF16LE=md.UTF16LE_GENERAL_CI;md.CP1256=md.CP1256_GENERAL_CI;md.CP1257=md.CP1257_GENERAL_CI;md.UTF32=md.UTF32_GENERAL_CI;md.CP932=md.CP932_JAPANESE_CI;md.EUCJPMS=md.EUCJPMS_JAPANESE_CI;md.GB18030=md.GB18030_CHINESE_CI;md.GEOSTD8=md.GEOSTD8_GENERAL_CI});var lq=D((w78,un)=>{un.exports={name:"mysql2",version:"3.14.0",description:"fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",main:"index.js",typings:"typings/mysql/index",type:"commonjs",scripts:{lint:"eslint . && prettier --check .","lint:fix":"eslint . --fix && prettier --write .",test:"poku -d -r=verbose --sequential test/esm test/unit test/integration","test:bun":"bun poku -d --sequential test/esm test/unit test/integration","test:deno":'deno run --allow-read --allow-env --allow-run npm:poku -d --sequential --denoAllow="read,env,net,sys" test/esm test/unit test/integration',"test:tsc-build":'cd "test/tsc-build" && npx tsc -p "tsconfig.json"',"coverage-test":"c8 npm run test",benchmark:"node ./benchmarks/benchmark.js","wait-port":"wait-on"},repository:{type:"git",url:"git+https://github.com/sidorares/node-mysql2.git"},homepage:"https://sidorares.github.io/node-mysql2/docs",keywords:["mysql","client","server"],files:["lib","typings/mysql","index.js","index.d.ts","promise.js","promise.d.ts"],exports:{".":"./index.js","./package.json":"./package.json","./promise":"./promise.js","./promise.js":"./promise.js"},engines:{node:">= 8.0"},author:"Andrey Sidorov <andrey.sidorov@gmail.com>",license:"MIT",dependencies:{"aws-ssl-profiles":"^1.1.1",denque:"^2.1.0","generate-function":"^2.3.1","iconv-lite":"^0.6.3",long:"^5.2.1","lru.min":"^1.0.0","named-placeholders":"^1.1.3","seq-queue":"^0.0.5",sqlstring:"^2.3.2"},devDependencies:{"@eslint/eslintrc":"^3.3.0","@eslint/js":"^9.21.0","@eslint/markdown":"^6.2.2","@types/node":"^22.0.0","@typescript-eslint/eslint-plugin":"^8.26.0","@typescript-eslint/parser":"^8.26.0","assert-diff":"^3.0.2",benchmark:"^2.1.4",c8:"^10.1.1","error-stack-parser":"^2.0.3","eslint-config-prettier":"^10.0.2","eslint-plugin-async-await":"^0.0.0","eslint-plugin-markdown":"^5.1.0","eslint-plugin-prettier":"^5.2.3",globals:"^16.0.0",poku:"^3.0.0",portfinder:"^1.0.28",prettier:"^3.0.0",typescript:"^5.0.2"}}});var aq=D((cq)=>{Object.defineProperty(cq,"__esModule",{value:!0});cq.defaults=void 0;cq.defaults=[`-----BEGIN CERTIFICATE-----
|
|
1
|
+
import{Ca as KX}from"./chunk-ks9kq37e.js";import{$a as WM,Ab as zM,Bb as CM,Cb as gM,Db as mM,Wa as lM,Xa as cM,Ya as uM,Za as aM,_a as iM,ab as JM,bb as YM,cb as UM,db as rM,eb as FM,fb as MM,gb as fF,hb as BF,ib as AM,jb as IM,kb as sM,lb as pM,mb as QA,nb as nM,ob as qM,pb as LM,qb as oM,rb as DM,sb as eM,tb as BM,ub as NM,vb as VM,wb as $M,xb as PM,yb as EM,zb as KM}from"./chunk-r0recaya.js";import{Eb as l2,Fb as ZM}from"./chunk-e1kefb68.js";import{Gb as kM,Hb as bM,Kb as tM,Lb as FA,Nb as YA,Ob as UA,Pb as c,Qb as XA,Sb as ZA,Tb as JA,Ub as d,Vb as HA,Wb as jM,Xb as SM,Yb as hM,Zb as yM,_b as VA,ac as HM,bc as a,ec as TM,fc as fM}from"./chunk-afqas5yf.js";import{hc as ac,ic as dM,mc as wG}from"./chunk-5vhayxpk.js";import{yc as yF}from"./chunk-8acb2bq0.js";import{Hc as gF,Ic as mF,Jc as xF}from"./chunk-2xrqj8ap.js";import{Lc as s9,Nc as OG,Pc as hF}from"./chunk-z80nypa9.js";import{Rc as Y1,Sc as KN,Tc as D,Uc as ZN,Vc as HN,Wc as K0}from"./chunk-2pj0cr49.js";var U3=D((Gq)=>{var r1=Gq,eI=/`/g,Hd=/\./g,DV=/[\0\b\t\n\r\x1a\"\'\\]/g,Vd={"\x00":"\\0","\b":"\\b","\t":"\\t","\n":"\\n","\r":"\\r","\x1A":"\\Z",'"':"\\\"","'":"\\'","\\":"\\\\"};r1.escapeId=function G(W,J){if(Array.isArray(W)){var Y="";for(var U=0;U<W.length;U++)Y+=(U===0?"":", ")+r1.escapeId(W[U],J);return Y}else if(J)return"`"+String(W).replace(eI,"``")+"`";else return"`"+String(W).replace(eI,"``").replace(Hd,"`.`")+"`"};r1.escape=function G(W,J,Y){if(W===void 0||W===null)return"NULL";switch(typeof W){case"boolean":return W?"true":"false";case"number":return W+"";case"object":if(Object.prototype.toString.call(W)==="[object Date]")return r1.dateToString(W,Y||"local");else if(Array.isArray(W))return r1.arrayToList(W,Y);else if(Buffer.isBuffer(W))return r1.bufferToString(W);else if(typeof W.toSqlString==="function")return String(W.toSqlString());else if(J)return GU(W.toString());else return r1.objectToValues(W,Y);default:return GU(W)}};r1.arrayToList=function G(W,J){var Y="";for(var U=0;U<W.length;U++){var X=W[U];if(Array.isArray(X))Y+=(U===0?"":", ")+"("+r1.arrayToList(X,J)+")";else Y+=(U===0?"":", ")+r1.escape(X,!0,J)}return Y};r1.format=function G(W,J,Y,U){if(J==null)return W;if(!Array.isArray(J))J=[J];var X=0,Z=/\?+/g,V="",$=0,K;while($<J.length&&(K=Z.exec(W))){var z=K[0].length;if(z>2)continue;var R=z===2?r1.escapeId(J[$]):r1.escape(J[$],Y,U);V+=W.slice(X,K.index)+R,X=Z.lastIndex,$++}if(X===0)return W;if(X<W.length)return V+W.slice(X);return V};r1.dateToString=function G(W,J){var Y=new Date(W);if(isNaN(Y.getTime()))return"NULL";var U,X,Z,V,$,K,z;if(J==="local")U=Y.getFullYear(),X=Y.getMonth()+1,Z=Y.getDate(),V=Y.getHours(),$=Y.getMinutes(),K=Y.getSeconds(),z=Y.getMilliseconds();else{var R=$d(J);if(R!==!1&&R!==0)Y.setTime(Y.getTime()+R*60000);U=Y.getUTCFullYear(),X=Y.getUTCMonth()+1,Z=Y.getUTCDate(),V=Y.getUTCHours(),$=Y.getUTCMinutes(),K=Y.getUTCSeconds(),z=Y.getUTCMilliseconds()}var F=K9(U,4)+"-"+K9(X,2)+"-"+K9(Z,2)+" "+K9(V,2)+":"+K9($,2)+":"+K9(K,2)+"."+K9(z,3);return GU(F)};r1.bufferToString=function G(W){return"X"+GU(W.toString("hex"))};r1.objectToValues=function G(W,J){var Y="";for(var U in W){var X=W[U];if(typeof X==="function")continue;Y+=(Y.length===0?"":", ")+r1.escapeId(U)+" = "+r1.escape(X,!0,J)}return Y};r1.raw=function G(W){if(typeof W!=="string")throw new TypeError("argument sql must be a string");return{toSqlString:function J(){return W}}};function GU(G){var W=DV.lastIndex=0,J="",Y;while(Y=DV.exec(G))J+=G.slice(W,Y.index)+Vd[Y[0]],W=DV.lastIndex;if(W===0)return"'"+G+"'";if(W<G.length)return"'"+J+G.slice(W)+"'";return"'"+J+"'"}function K9(G,W){G=G.toString();while(G.length<W)G="0"+G;return G}function $d(G){if(G==="Z")return 0;var W=G.match(/([\+\-\s])(\d\d):?(\d\d)?/);if(W)return(W[1]==="-"?-1:1)*(parseInt(W[2],10)+(W[3]?parseInt(W[3],10):0)/60)*60;return!1}});var P6=D((Kd)=>{Kd.LONG_PASSWORD=1;Kd.FOUND_ROWS=2;Kd.LONG_FLAG=4;Kd.CONNECT_WITH_DB=8;Kd.NO_SCHEMA=16;Kd.COMPRESS=32;Kd.ODBC=64;Kd.LOCAL_FILES=128;Kd.IGNORE_SPACE=256;Kd.PROTOCOL_41=512;Kd.INTERACTIVE=1024;Kd.SSL=2048;Kd.IGNORE_SIGPIPE=4096;Kd.TRANSACTIONS=8192;Kd.RESERVED=16384;Kd.SECURE_CONNECTION=32768;Kd.MULTI_STATEMENTS=65536;Kd.MULTI_RESULTS=131072;Kd.PS_MULTI_RESULTS=262144;Kd.PLUGIN_AUTH=524288;Kd.CONNECT_ATTRS=1048576;Kd.PLUGIN_AUTH_LENENC_CLIENT_DATA=2097152;Kd.CAN_HANDLE_EXPIRED_PASSWORDS=4194304;Kd.SESSION_TRACK=8388608;Kd.DEPRECATE_EOF=16777216;Kd.SSL_VERIFY_SERVER_CERT=1073741824;Kd.REMEMBER_OPTIONS=2147483648;Kd.MULTI_FACTOR_AUTHENTICATION=268435456});var R2=D((md)=>{md.BIG5_CHINESE_CI=1;md.LATIN2_CZECH_CS=2;md.DEC8_SWEDISH_CI=3;md.CP850_GENERAL_CI=4;md.LATIN1_GERMAN1_CI=5;md.HP8_ENGLISH_CI=6;md.KOI8R_GENERAL_CI=7;md.LATIN1_SWEDISH_CI=8;md.LATIN2_GENERAL_CI=9;md.SWE7_SWEDISH_CI=10;md.ASCII_GENERAL_CI=11;md.UJIS_JAPANESE_CI=12;md.SJIS_JAPANESE_CI=13;md.CP1251_BULGARIAN_CI=14;md.LATIN1_DANISH_CI=15;md.HEBREW_GENERAL_CI=16;md.TIS620_THAI_CI=18;md.EUCKR_KOREAN_CI=19;md.LATIN7_ESTONIAN_CS=20;md.LATIN2_HUNGARIAN_CI=21;md.KOI8U_GENERAL_CI=22;md.CP1251_UKRAINIAN_CI=23;md.GB2312_CHINESE_CI=24;md.GREEK_GENERAL_CI=25;md.CP1250_GENERAL_CI=26;md.LATIN2_CROATIAN_CI=27;md.GBK_CHINESE_CI=28;md.CP1257_LITHUANIAN_CI=29;md.LATIN5_TURKISH_CI=30;md.LATIN1_GERMAN2_CI=31;md.ARMSCII8_GENERAL_CI=32;md.UTF8_GENERAL_CI=33;md.CP1250_CZECH_CS=34;md.UCS2_GENERAL_CI=35;md.CP866_GENERAL_CI=36;md.KEYBCS2_GENERAL_CI=37;md.MACCE_GENERAL_CI=38;md.MACROMAN_GENERAL_CI=39;md.CP852_GENERAL_CI=40;md.LATIN7_GENERAL_CI=41;md.LATIN7_GENERAL_CS=42;md.MACCE_BIN=43;md.CP1250_CROATIAN_CI=44;md.UTF8MB4_GENERAL_CI=45;md.UTF8MB4_BIN=46;md.LATIN1_BIN=47;md.LATIN1_GENERAL_CI=48;md.LATIN1_GENERAL_CS=49;md.CP1251_BIN=50;md.CP1251_GENERAL_CI=51;md.CP1251_GENERAL_CS=52;md.MACROMAN_BIN=53;md.UTF16_GENERAL_CI=54;md.UTF16_BIN=55;md.UTF16LE_GENERAL_CI=56;md.CP1256_GENERAL_CI=57;md.CP1257_BIN=58;md.CP1257_GENERAL_CI=59;md.UTF32_GENERAL_CI=60;md.UTF32_BIN=61;md.UTF16LE_BIN=62;md.BINARY=63;md.ARMSCII8_BIN=64;md.ASCII_BIN=65;md.CP1250_BIN=66;md.CP1256_BIN=67;md.CP866_BIN=68;md.DEC8_BIN=69;md.GREEK_BIN=70;md.HEBREW_BIN=71;md.HP8_BIN=72;md.KEYBCS2_BIN=73;md.KOI8R_BIN=74;md.KOI8U_BIN=75;md.UTF8_TOLOWER_CI=76;md.LATIN2_BIN=77;md.LATIN5_BIN=78;md.LATIN7_BIN=79;md.CP850_BIN=80;md.CP852_BIN=81;md.SWE7_BIN=82;md.UTF8_BIN=83;md.BIG5_BIN=84;md.EUCKR_BIN=85;md.GB2312_BIN=86;md.GBK_BIN=87;md.SJIS_BIN=88;md.TIS620_BIN=89;md.UCS2_BIN=90;md.UJIS_BIN=91;md.GEOSTD8_GENERAL_CI=92;md.GEOSTD8_BIN=93;md.LATIN1_SPANISH_CI=94;md.CP932_JAPANESE_CI=95;md.CP932_BIN=96;md.EUCJPMS_JAPANESE_CI=97;md.EUCJPMS_BIN=98;md.CP1250_POLISH_CI=99;md.UTF16_UNICODE_CI=101;md.UTF16_ICELANDIC_CI=102;md.UTF16_LATVIAN_CI=103;md.UTF16_ROMANIAN_CI=104;md.UTF16_SLOVENIAN_CI=105;md.UTF16_POLISH_CI=106;md.UTF16_ESTONIAN_CI=107;md.UTF16_SPANISH_CI=108;md.UTF16_SWEDISH_CI=109;md.UTF16_TURKISH_CI=110;md.UTF16_CZECH_CI=111;md.UTF16_DANISH_CI=112;md.UTF16_LITHUANIAN_CI=113;md.UTF16_SLOVAK_CI=114;md.UTF16_SPANISH2_CI=115;md.UTF16_ROMAN_CI=116;md.UTF16_PERSIAN_CI=117;md.UTF16_ESPERANTO_CI=118;md.UTF16_HUNGARIAN_CI=119;md.UTF16_SINHALA_CI=120;md.UTF16_GERMAN2_CI=121;md.UTF16_CROATIAN_CI=122;md.UTF16_UNICODE_520_CI=123;md.UTF16_VIETNAMESE_CI=124;md.UCS2_UNICODE_CI=128;md.UCS2_ICELANDIC_CI=129;md.UCS2_LATVIAN_CI=130;md.UCS2_ROMANIAN_CI=131;md.UCS2_SLOVENIAN_CI=132;md.UCS2_POLISH_CI=133;md.UCS2_ESTONIAN_CI=134;md.UCS2_SPANISH_CI=135;md.UCS2_SWEDISH_CI=136;md.UCS2_TURKISH_CI=137;md.UCS2_CZECH_CI=138;md.UCS2_DANISH_CI=139;md.UCS2_LITHUANIAN_CI=140;md.UCS2_SLOVAK_CI=141;md.UCS2_SPANISH2_CI=142;md.UCS2_ROMAN_CI=143;md.UCS2_PERSIAN_CI=144;md.UCS2_ESPERANTO_CI=145;md.UCS2_HUNGARIAN_CI=146;md.UCS2_SINHALA_CI=147;md.UCS2_GERMAN2_CI=148;md.UCS2_CROATIAN_CI=149;md.UCS2_UNICODE_520_CI=150;md.UCS2_VIETNAMESE_CI=151;md.UCS2_GENERAL_MYSQL500_CI=159;md.UTF32_UNICODE_CI=160;md.UTF32_ICELANDIC_CI=161;md.UTF32_LATVIAN_CI=162;md.UTF32_ROMANIAN_CI=163;md.UTF32_SLOVENIAN_CI=164;md.UTF32_POLISH_CI=165;md.UTF32_ESTONIAN_CI=166;md.UTF32_SPANISH_CI=167;md.UTF32_SWEDISH_CI=168;md.UTF32_TURKISH_CI=169;md.UTF32_CZECH_CI=170;md.UTF32_DANISH_CI=171;md.UTF32_LITHUANIAN_CI=172;md.UTF32_SLOVAK_CI=173;md.UTF32_SPANISH2_CI=174;md.UTF32_ROMAN_CI=175;md.UTF32_PERSIAN_CI=176;md.UTF32_ESPERANTO_CI=177;md.UTF32_HUNGARIAN_CI=178;md.UTF32_SINHALA_CI=179;md.UTF32_GERMAN2_CI=180;md.UTF32_CROATIAN_CI=181;md.UTF32_UNICODE_520_CI=182;md.UTF32_VIETNAMESE_CI=183;md.UTF8_UNICODE_CI=192;md.UTF8_ICELANDIC_CI=193;md.UTF8_LATVIAN_CI=194;md.UTF8_ROMANIAN_CI=195;md.UTF8_SLOVENIAN_CI=196;md.UTF8_POLISH_CI=197;md.UTF8_ESTONIAN_CI=198;md.UTF8_SPANISH_CI=199;md.UTF8_SWEDISH_CI=200;md.UTF8_TURKISH_CI=201;md.UTF8_CZECH_CI=202;md.UTF8_DANISH_CI=203;md.UTF8_LITHUANIAN_CI=204;md.UTF8_SLOVAK_CI=205;md.UTF8_SPANISH2_CI=206;md.UTF8_ROMAN_CI=207;md.UTF8_PERSIAN_CI=208;md.UTF8_ESPERANTO_CI=209;md.UTF8_HUNGARIAN_CI=210;md.UTF8_SINHALA_CI=211;md.UTF8_GERMAN2_CI=212;md.UTF8_CROATIAN_CI=213;md.UTF8_UNICODE_520_CI=214;md.UTF8_VIETNAMESE_CI=215;md.UTF8_GENERAL_MYSQL500_CI=223;md.UTF8MB4_UNICODE_CI=224;md.UTF8MB4_ICELANDIC_CI=225;md.UTF8MB4_LATVIAN_CI=226;md.UTF8MB4_ROMANIAN_CI=227;md.UTF8MB4_SLOVENIAN_CI=228;md.UTF8MB4_POLISH_CI=229;md.UTF8MB4_ESTONIAN_CI=230;md.UTF8MB4_SPANISH_CI=231;md.UTF8MB4_SWEDISH_CI=232;md.UTF8MB4_TURKISH_CI=233;md.UTF8MB4_CZECH_CI=234;md.UTF8MB4_DANISH_CI=235;md.UTF8MB4_LITHUANIAN_CI=236;md.UTF8MB4_SLOVAK_CI=237;md.UTF8MB4_SPANISH2_CI=238;md.UTF8MB4_ROMAN_CI=239;md.UTF8MB4_PERSIAN_CI=240;md.UTF8MB4_ESPERANTO_CI=241;md.UTF8MB4_HUNGARIAN_CI=242;md.UTF8MB4_SINHALA_CI=243;md.UTF8MB4_GERMAN2_CI=244;md.UTF8MB4_CROATIAN_CI=245;md.UTF8MB4_UNICODE_520_CI=246;md.UTF8MB4_VIETNAMESE_CI=247;md.GB18030_CHINESE_CI=248;md.GB18030_BIN=249;md.GB18030_UNICODE_520_CI=250;md.UTF8_GENERAL50_CI=253;md.UTF8MB4_0900_AI_CI=255;md.UTF8MB4_DE_PB_0900_AI_CI=256;md.UTF8MB4_IS_0900_AI_CI=257;md.UTF8MB4_LV_0900_AI_CI=258;md.UTF8MB4_RO_0900_AI_CI=259;md.UTF8MB4_SL_0900_AI_CI=260;md.UTF8MB4_PL_0900_AI_CI=261;md.UTF8MB4_ET_0900_AI_CI=262;md.UTF8MB4_ES_0900_AI_CI=263;md.UTF8MB4_SV_0900_AI_CI=264;md.UTF8MB4_TR_0900_AI_CI=265;md.UTF8MB4_CS_0900_AI_CI=266;md.UTF8MB4_DA_0900_AI_CI=267;md.UTF8MB4_LT_0900_AI_CI=268;md.UTF8MB4_SK_0900_AI_CI=269;md.UTF8MB4_ES_TRAD_0900_AI_CI=270;md.UTF8MB4_LA_0900_AI_CI=271;md.UTF8MB4_EO_0900_AI_CI=273;md.UTF8MB4_HU_0900_AI_CI=274;md.UTF8MB4_HR_0900_AI_CI=275;md.UTF8MB4_VI_0900_AI_CI=277;md.UTF8MB4_0900_AS_CS=278;md.UTF8MB4_DE_PB_0900_AS_CS=279;md.UTF8MB4_IS_0900_AS_CS=280;md.UTF8MB4_LV_0900_AS_CS=281;md.UTF8MB4_RO_0900_AS_CS=282;md.UTF8MB4_SL_0900_AS_CS=283;md.UTF8MB4_PL_0900_AS_CS=284;md.UTF8MB4_ET_0900_AS_CS=285;md.UTF8MB4_ES_0900_AS_CS=286;md.UTF8MB4_SV_0900_AS_CS=287;md.UTF8MB4_TR_0900_AS_CS=288;md.UTF8MB4_CS_0900_AS_CS=289;md.UTF8MB4_DA_0900_AS_CS=290;md.UTF8MB4_LT_0900_AS_CS=291;md.UTF8MB4_SK_0900_AS_CS=292;md.UTF8MB4_ES_TRAD_0900_AS_CS=293;md.UTF8MB4_LA_0900_AS_CS=294;md.UTF8MB4_EO_0900_AS_CS=296;md.UTF8MB4_HU_0900_AS_CS=297;md.UTF8MB4_HR_0900_AS_CS=298;md.UTF8MB4_VI_0900_AS_CS=300;md.UTF8MB4_JA_0900_AS_CS=303;md.UTF8MB4_JA_0900_AS_CS_KS=304;md.UTF8MB4_0900_AS_CI=305;md.UTF8MB4_RU_0900_AI_CI=306;md.UTF8MB4_RU_0900_AS_CS=307;md.UTF8MB4_ZH_0900_AS_CS=308;md.UTF8MB4_0900_BIN=309;md.BIG5=md.BIG5_CHINESE_CI;md.DEC8=md.DEC8_SWEDISH_CI;md.CP850=md.CP850_GENERAL_CI;md.HP8=md.HP8_ENGLISH_CI;md.KOI8R=md.KOI8R_GENERAL_CI;md.LATIN1=md.LATIN1_SWEDISH_CI;md.LATIN2=md.LATIN2_GENERAL_CI;md.SWE7=md.SWE7_SWEDISH_CI;md.ASCII=md.ASCII_GENERAL_CI;md.UJIS=md.UJIS_JAPANESE_CI;md.SJIS=md.SJIS_JAPANESE_CI;md.HEBREW=md.HEBREW_GENERAL_CI;md.TIS620=md.TIS620_THAI_CI;md.EUCKR=md.EUCKR_KOREAN_CI;md.KOI8U=md.KOI8U_GENERAL_CI;md.GB2312=md.GB2312_CHINESE_CI;md.GREEK=md.GREEK_GENERAL_CI;md.CP1250=md.CP1250_GENERAL_CI;md.GBK=md.GBK_CHINESE_CI;md.LATIN5=md.LATIN5_TURKISH_CI;md.ARMSCII8=md.ARMSCII8_GENERAL_CI;md.UTF8=md.UTF8_GENERAL_CI;md.UCS2=md.UCS2_GENERAL_CI;md.CP866=md.CP866_GENERAL_CI;md.KEYBCS2=md.KEYBCS2_GENERAL_CI;md.MACCE=md.MACCE_GENERAL_CI;md.MACROMAN=md.MACROMAN_GENERAL_CI;md.CP852=md.CP852_GENERAL_CI;md.LATIN7=md.LATIN7_GENERAL_CI;md.UTF8MB4=md.UTF8MB4_GENERAL_CI;md.CP1251=md.CP1251_GENERAL_CI;md.UTF16=md.UTF16_GENERAL_CI;md.UTF16LE=md.UTF16LE_GENERAL_CI;md.CP1256=md.CP1256_GENERAL_CI;md.CP1257=md.CP1257_GENERAL_CI;md.UTF32=md.UTF32_GENERAL_CI;md.CP932=md.CP932_JAPANESE_CI;md.EUCJPMS=md.EUCJPMS_JAPANESE_CI;md.GB18030=md.GB18030_CHINESE_CI;md.GEOSTD8=md.GEOSTD8_GENERAL_CI});var lq=D((w78,un)=>{un.exports={name:"mysql2",version:"3.14.0",description:"fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",main:"index.js",typings:"typings/mysql/index",type:"commonjs",scripts:{lint:"eslint . && prettier --check .","lint:fix":"eslint . --fix && prettier --write .",test:"poku -d -r=verbose --sequential test/esm test/unit test/integration","test:bun":"bun poku -d --sequential test/esm test/unit test/integration","test:deno":'deno run --allow-read --allow-env --allow-run npm:poku -d --sequential --denoAllow="read,env,net,sys" test/esm test/unit test/integration',"test:tsc-build":'cd "test/tsc-build" && npx tsc -p "tsconfig.json"',"coverage-test":"c8 npm run test",benchmark:"node ./benchmarks/benchmark.js","wait-port":"wait-on"},repository:{type:"git",url:"git+https://github.com/sidorares/node-mysql2.git"},homepage:"https://sidorares.github.io/node-mysql2/docs",keywords:["mysql","client","server"],files:["lib","typings/mysql","index.js","index.d.ts","promise.js","promise.d.ts"],exports:{".":"./index.js","./package.json":"./package.json","./promise":"./promise.js","./promise.js":"./promise.js"},engines:{node:">= 8.0"},author:"Andrey Sidorov <andrey.sidorov@gmail.com>",license:"MIT",dependencies:{"aws-ssl-profiles":"^1.1.1",denque:"^2.1.0","generate-function":"^2.3.1","iconv-lite":"^0.6.3",long:"^5.2.1","lru.min":"^1.0.0","named-placeholders":"^1.1.3","seq-queue":"^0.0.5",sqlstring:"^2.3.2"},devDependencies:{"@eslint/eslintrc":"^3.3.0","@eslint/js":"^9.21.0","@eslint/markdown":"^6.2.2","@types/node":"^22.0.0","@typescript-eslint/eslint-plugin":"^8.26.0","@typescript-eslint/parser":"^8.26.0","assert-diff":"^3.0.2",benchmark:"^2.1.4",c8:"^10.1.1","error-stack-parser":"^2.0.3","eslint-config-prettier":"^10.0.2","eslint-plugin-async-await":"^0.0.0","eslint-plugin-markdown":"^5.1.0","eslint-plugin-prettier":"^5.2.3",globals:"^16.0.0",poku:"^3.0.0",portfinder:"^1.0.28",prettier:"^3.0.0",typescript:"^5.0.2"}}});var aq=D((cq)=>{Object.defineProperty(cq,"__esModule",{value:!0});cq.defaults=void 0;cq.defaults=[`-----BEGIN CERTIFICATE-----
|
|
2
2
|
MIIEEjCCAvqgAwIBAgIJAM2ZN/+nPi27MA0GCSqGSIb3DQEBCwUAMIGVMQswCQYD
|
|
3
3
|
VQQGEwJVUzEQMA4GA1UEBwwHU2VhdHRsZTETMBEGA1UECAwKV2FzaGluZ3RvbjEi
|
|
4
4
|
MCAGA1UECgwZQW1hem9uIFdlYiBTZXJ2aWNlcywgSW5jLjETMBEGA1UECwwKQW1h
|
|
@@ -3042,7 +3042,7 @@ ${W}`,Y}}}});var jy=D((Ly)=>{Object.defineProperty(Ly,"__esModule",{value:!0});L
|
|
|
3042
3042
|
})(${Ny(this.node)})
|
|
3043
3043
|
`;return this.replaceWith(K)[0].get("arguments.0")}function Tk1(G){let W=G.params.findIndex((J)=>Gk1(J)||Wk1(J));return W===-1?G.params.length:W}});var yy=D((hy)=>{Object.defineProperty(hy,"__esModule",{value:!0});hy._guessExecutionStatusRelativeTo=nk1;hy._resolve=by;hy.canHaveVariableDeclarationOrExpression=ck1;hy.canSwapBetweenExpressionAndStatement=uk1;hy.getSource=rk1;hy.isCompletionRecord=ak1;hy.isConstantExpression=Gb1;hy.isInStrictMode=Wb1;hy.isNodeType=lk1;hy.isStatementOrBlock=dk1;hy.isStatic=xk1;hy.matchesPattern=mk1;hy.referencesImport=ik1;hy.resolve=ek1;hy.willIMaybeExecuteBefore=sk1;var wk1=w0(),{STATEMENT_OR_BLOCK_KEYS:Ok1,VISITOR_KEYS:_k1,isBlockStatement:ky,isExpression:vk1,isIdentifier:kk1,isLiteral:bk1,isStringLiteral:hk1,isType:yk1,matchesPattern:gk1}=wk1;function mk1(G,W){return gk1(this.node,G,W)}hy.has=function G(W){var J;let Y=(J=this.node)==null?void 0:J[W];if(Y&&Array.isArray(Y))return!!Y.length;else return!!Y};function xk1(){return this.scope.isStatic(this.node)}hy.is=hy.has,hy.isnt=function G(W){return!this.has(W)},hy.equals=function G(W,J){return this.node[W]===J};function lk1(G){return yk1(this.type,G)}function ck1(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function uk1(G){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return ky(G);else if(this.isBlockStatement())return vk1(G);return!1}function ak1(G){let W=this,J=!0;do{let{type:Y,container:U}=W;if(!J&&(W.isFunction()||Y==="StaticBlock"))return!!G;if(J=!1,Array.isArray(U)&&W.key!==U.length-1)return!1}while((W=W.parentPath)&&!W.isProgram()&&!W.isDoExpression());return!0}function dk1(){if(this.parentPath.isLabeledStatement()||ky(this.container))return!1;else return Ok1.includes(this.key)}function ik1(G,W){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===W||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?hk1(this.node.property,{value:W}):this.node.property.name===W)){let X=this.get("object");return X.isReferencedIdentifier()&&X.referencesImport(G,"*")}return!1}let J=this.scope.getBinding(this.node.name);if(!J||J.kind!=="module")return!1;let Y=J.path,U=Y.parentPath;if(!U.isImportDeclaration())return!1;if(U.node.source.value===G){if(!W)return!0}else return!1;if(Y.isImportDefaultSpecifier()&&W==="default")return!0;if(Y.isImportNamespaceSpecifier()&&W==="*")return!0;if(Y.isImportSpecifier()&&kk1(Y.node.imported,{name:W}))return!0;return!1}function rk1(){let G=this.node;if(G.end){let W=this.hub.getCode();if(W)return W.slice(G.start,G.end)}return""}function sk1(G){return this._guessExecutionStatusRelativeTo(G)!=="after"}function Oy(G){return G.isProgram()?G:(G.parentPath.scope.getFunctionParent()||G.parentPath.scope.getProgramParent()).path}function pk1(G,W){switch(G){case"LogicalExpression":return W==="right";case"ConditionalExpression":case"IfStatement":return W==="consequent"||W==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return W==="body";case"ForStatement":return W==="body"||W==="update";case"SwitchStatement":return W==="cases";case"TryStatement":return W==="handler";case"AssignmentPattern":return W==="right";case"OptionalMemberExpression":return W==="property";case"OptionalCallExpression":return W==="arguments";default:return!1}}function _y(G,W){for(let J=0;J<W;J++){let Y=G[J];if(pk1(Y.parent.type,Y.parentKey))return!0}return!1}var vy=Symbol();function nk1(G){return gQ(this,G,new Map)}function gQ(G,W,J){let Y={this:Oy(G),target:Oy(W)};if(Y.target.node!==Y.this.node)return tk1(G,Y.target,J);let U={target:W.getAncestry(),this:G.getAncestry()};if(U.target.includes(G))return"after";if(U.this.includes(W))return"before";let X,Z={target:0,this:0};while(!X&&Z.this<U.this.length){let z=U.this[Z.this];if(Z.target=U.target.indexOf(z),Z.target>=0)X=z;else Z.this++}if(!X)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(_y(U.this,Z.this-1)||_y(U.target,Z.target-1))return"unknown";let V={this:U.this[Z.this-1],target:U.target[Z.target-1]};if(V.target.listKey&&V.this.listKey&&V.target.container===V.this.container)return V.target.key>V.this.key?"before":"after";let $=_k1[X.type],K={this:$.indexOf(V.this.parentKey),target:$.indexOf(V.target.parentKey)};return K.target>K.this?"before":"after"}function ok1(G,W,J){if(!W.isFunctionDeclaration()){if(gQ(G,W,J)==="before")return"before";return"unknown"}else if(W.parentPath.isExportDeclaration())return"unknown";let Y=W.scope.getBinding(W.node.id.name);if(!Y.references)return"before";let U=Y.referencePaths,X;for(let Z of U){if(!!Z.find((K)=>K.node===W.node))continue;if(Z.key!=="callee"||!Z.parentPath.isCallExpression())return"unknown";let $=gQ(G,Z,J);if(X&&X!==$)return"unknown";else X=$}return X}function tk1(G,W,J){let Y=J.get(G.node),U;if(!Y)J.set(G.node,Y=new Map);else if(U=Y.get(W.node)){if(U===vy)return"unknown";return U}Y.set(W.node,vy);let X=ok1(G,W,J);return Y.set(W.node,X),X}function ek1(G,W){return by.call(this,G,W)||this}function by(G,W){var J;if((J=W)!=null&&J.includes(this))return;if(W=W||[],W.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(G,W)}else if(this.isReferencedIdentifier()){let Y=this.scope.getBinding(this.node.name);if(!Y)return;if(!Y.constant)return;if(Y.kind==="module")return;if(Y.path!==this){let U=Y.path.resolve(G,W);if(this.find((X)=>X.node===U.node))return;return U}}else if(this.isTypeCastExpression())return this.get("expression").resolve(G,W);else if(G&&this.isMemberExpression()){let Y=this.toComputedKey();if(!bk1(Y))return;let U=Y.value,X=this.get("object").resolve(G,W);if(X.isObjectExpression()){let Z=X.get("properties");for(let V of Z){if(!V.isProperty())continue;let $=V.get("key"),K=V.isnt("computed")&&$.isIdentifier({name:U});if(K=K||$.isLiteral({value:U}),K)return V.get("value").resolve(G,W)}}else if(X.isArrayExpression()&&!isNaN(+U)){let V=X.get("elements")[U];if(V)return V.resolve(G,W)}}}function Gb1(){if(this.isIdentifier()){let G=this.scope.getBinding(this.node.name);if(!G)return!1;return G.constant}if(this.isLiteral()){if(this.isRegExpLiteral())return!1;if(this.isTemplateLiteral())return this.get("expressions").every((G)=>G.isConstantExpression());return!0}if(this.isUnaryExpression()){if(this.node.operator!=="void")return!1;return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){let{operator:G}=this.node;return G!=="in"&&G!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression())return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0});if(this.isCallExpression())return this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral();return!1}function Wb1(){return!!(this.isProgram()?this:this.parentPath).find((J)=>{if(J.isProgram({sourceType:"module"}))return!0;if(J.isClass())return!0;if(J.isArrowFunctionExpression()&&!J.get("body").isBlockStatement())return!1;let Y;if(J.isFunction())Y=J.node.body;else if(J.isProgram())Y=J.node;else return!1;for(let U of Y.directives)if(U.value.value==="use strict")return!0})}});var uy=D((cy)=>{Object.defineProperty(cy,"__esModule",{value:!0});cy._getKey=xy;cy._getPattern=ly;cy.get=kb1;cy.getAllNextSiblings=_b1;cy.getAllPrevSiblings=vb1;cy.getAssignmentIdentifiers=bb1;cy.getBindingIdentifierPaths=gb1;cy.getBindingIdentifiers=hb1;cy.getCompletionRecords=Eb1;cy.getNextSibling=Ob1;cy.getOpposite=Bb1;cy.getOuterBindingIdentifierPaths=mb1;cy.getOuterBindingIdentifiers=yb1;cy.getPrevSibling=wb1;cy.getSibling=Cb1;var xQ=_2(),qb1=w0(),{getAssignmentIdentifiers:Lb1,getBindingIdentifiers:my,getOuterBindingIdentifiers:Db1,numericLiteral:jb1,unaryExpression:Sb1}=qb1,lQ=0,LG=1;function Tb1(G){return{type:lQ,path:G}}function fb1(G){return{type:LG,path:G}}function Bb1(){if(this.key==="left")return this.getSibling("right");else if(this.key==="right")return this.getSibling("left");return null}function j7(G,W,J){if(G)W.push(...S7(G,J));return W}function Nb1(G,W,J){let Y=[];for(let U=0;U<G.length;U++){let X=G[U],Z=S7(X,J),V=[],$=[];for(let K of Z){if(K.type===lQ)V.push(K);if(K.type===LG)$.push(K)}if(V.length)Y=V;W.push(...$)}return W.push(...Y),W}function Pb1(G){G.forEach((W)=>{W.type=LG})}function mQ(G,W){G.forEach((J)=>{if(J.path.isBreakStatement({label:null}))if(W)J.path.replaceWith(Sb1("void",jb1(0)));else J.path.remove()})}function gy(G,W){let J=[];if(W.canHaveBreak){let Y=[];for(let U=0;U<G.length;U++){let X=G[U],Z=Object.assign({},W,{inCaseClause:!1});if(X.isBlockStatement()&&(W.inCaseClause||W.shouldPopulateBreak))Z.shouldPopulateBreak=!0;else Z.shouldPopulateBreak=!1;let V=S7(X,Z);if(V.length>0&&V.every(($)=>$.type===LG)){if(Y.length>0&&V.every(($)=>$.path.isBreakStatement({label:null}))){if(Pb1(Y),J.push(...Y),Y.some(($)=>$.path.isDeclaration()))J.push(...V),mQ(V,!0);mQ(V,!1)}else if(J.push(...V),!W.shouldPopulateBreak)mQ(V,!0);break}if(U===G.length-1)J.push(...V);else{Y=[];for(let $=0;$<V.length;$++){let K=V[$];if(K.type===LG)J.push(K);if(K.type===lQ)Y.push(K)}}}}else if(G.length)for(let Y=G.length-1;Y>=0;Y--){let U=S7(G[Y],W);if(U.length>1||U.length===1&&!U[0].path.isVariableDeclaration()){J.push(...U);break}}return J}function S7(G,W){let J=[];if(G.isIfStatement())J=j7(G.get("consequent"),J,W),J=j7(G.get("alternate"),J,W);else if(G.isDoExpression()||G.isFor()||G.isWhile()||G.isLabeledStatement())return j7(G.get("body"),J,W);else if(G.isProgram()||G.isBlockStatement())return gy(G.get("body"),W);else if(G.isFunction())return S7(G.get("body"),W);else if(G.isTryStatement())J=j7(G.get("block"),J,W),J=j7(G.get("handler"),J,W);else if(G.isCatchClause())return j7(G.get("body"),J,W);else if(G.isSwitchStatement())return Nb1(G.get("cases"),J,W);else if(G.isSwitchCase())return gy(G.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});else if(G.isBreakStatement())J.push(fb1(G));else J.push(Tb1(G));return J}function Eb1(){return S7(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map((W)=>W.path)}function Cb1(G){return xQ.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:G}).setContext(this.context)}function wb1(){return this.getSibling(this.key-1)}function Ob1(){return this.getSibling(this.key+1)}function _b1(){let G=this.key,W=this.getSibling(++G),J=[];while(W.node)J.push(W),W=this.getSibling(++G);return J}function vb1(){let G=this.key,W=this.getSibling(--G),J=[];while(W.node)J.push(W),W=this.getSibling(--G);return J}function kb1(G,W=!0){if(W===!0)W=this.context;let J=G.split(".");if(J.length===1)return xy.call(this,G,W);else return ly.call(this,J,W)}function xy(G,W){let J=this.node,Y=J[G];if(Array.isArray(Y))return Y.map((U,X)=>{return xQ.default.get({listKey:G,parentPath:this,parent:J,container:Y,key:X}).setContext(W)});else return xQ.default.get({parentPath:this,parent:J,container:J,key:G}).setContext(W)}function ly(G,W){let J=this;for(let Y of G)if(Y===".")J=J.parentPath;else if(Array.isArray(J))J=J[Y];else J=J.get(Y,W);return J}function bb1(){return Lb1(this.node)}function hb1(G){return my(this.node,G)}function yb1(G){return Db1(this.node,G)}function gb1(G=!1,W=!1){let Y=[this],U=Object.create(null);while(Y.length){let X=Y.shift();if(!X)continue;if(!X.node)continue;let Z=my.keys[X.node.type];if(X.isIdentifier()){if(G)(U[X.node.name]=U[X.node.name]||[]).push(X);else U[X.node.name]=X;continue}if(X.isExportDeclaration()){let V=X.get("declaration");if(V.isDeclaration())Y.push(V);continue}if(W){if(X.isFunctionDeclaration()){Y.push(X.get("id"));continue}if(X.isFunctionExpression())continue}if(Z)for(let V=0;V<Z.length;V++){let $=Z[V],K=X.get($);if(Array.isArray(K))Y.push(...K);else if(K.node)Y.push(K)}}return U}function mb1(G=!1){return this.getBindingIdentifierPaths(G,!0)}});var iy=D((dy)=>{Object.defineProperty(dy,"__esModule",{value:!0});dy.addComment=Xh1;dy.addComments=Zh1;dy.shareCommentsWithSiblings=Uh1;var Wh1=w0(),{addComment:Jh1,addComments:Yh1}=Wh1;function Uh1(){if(typeof this.key==="string")return;let G=this.node;if(!G)return;let{trailingComments:W,leadingComments:J}=G;if(!W&&!J)return;let Y=this.getSibling(this.key-1),U=this.getSibling(this.key+1),X=Boolean(Y.node),Z=Boolean(U.node);if(X){if(J)Y.addComments("trailing",ay(J,Y.node.trailingComments));if(W&&!Z)Y.addComments("trailing",W)}if(Z){if(W)U.addComments("leading",ay(W,U.node.leadingComments));if(J&&!X)U.addComments("leading",J)}}function ay(G,W){if(!(W!=null&&W.length))return G;let J=new Set(W);return G.filter((Y)=>{return!J.has(Y)})}function Xh1(G,W,J){Jh1(this.node,G,W,J)}function Zh1(G,W){Yh1(this.node,G,W)}});var _2=D((oy)=>{Object.defineProperty(oy,"__esModule",{value:!0});oy.default=oy.SHOULD_STOP=oy.SHOULD_SKIP=oy.REMOVED=void 0;var Kh1=sR(),zh1=mk(),Rh1=QG(),Qh1=ZQ(),py=w0(),fZ=py,Fh1=k9(),Mh1=BR(),z6=vb(),T7=Jh(),f7=IQ(),ry=th(),l9=wy(),y1=yy(),ny=V6(),b1=ny,B7=IZ(),R6=qZ(),N8=uy(),cQ=iy(),Ah1=GQ(),{validate:Ih1}=py,sy=zh1("babel"),qK8=oy.REMOVED=1,LK8=oy.SHOULD_STOP=2,DK8=oy.SHOULD_SKIP=4,r6=oy.default=class G{constructor(W,J){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=J,this.hub=W,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(W){if(W)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(W){if(W)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(W){if(W)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:W,parentPath:J,parent:Y,container:U,listKey:X,key:Z}){if(!W&&J)W=J.hub;if(!Y)throw new Error("To get a node path the parent needs to exist");let V=U[Z],$=Fh1.getOrCreateCachedPaths(W,Y),K=$.get(V);if(!K){if(K=new G(W,Y),V)$.set(V,K)}return ny.setup.call(K,J,U,X,Z),K}getScope(W){return this.isScope()?new Qh1.default(this):W}setData(W,J){if(this.data==null)this.data=Object.create(null);return this.data[W]=J}getData(W,J){if(this.data==null)this.data=Object.create(null);let Y=this.data[W];if(Y===void 0&&J!==void 0)Y=this.data[W]=J;return Y}hasNode(){return this.node!=null}buildCodeFrameError(W,J=SyntaxError){return this.hub.buildError(this.node,W,J)}traverse(W,J){Rh1.default(this.node,W,this.scope,J,this)}set(W,J){Ih1(this.node,W,J),this.node[W]=J}getPathLocation(){let W=[],J=this;do{let Y=J.key;if(J.inList)Y=`${J.listKey}[${Y}]`;W.unshift(Y)}while(J=J.parentPath);return W.join(".")}debug(W){if(!sy.enabled)return;sy(`${this.getPathLocation()} ${this.type}: ${W}`)}toString(){return Mh1.default(this.node).code}get inList(){return!!this.listKey}set inList(W){if(!W)this.listKey=null}get parentKey(){return this.listKey||this.key}},qh1={findParent:z6.findParent,find:z6.find,getFunctionParent:z6.getFunctionParent,getStatementParent:z6.getStatementParent,getEarliestCommonAncestorFrom:z6.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:z6.getDeepestCommonAncestorFrom,getAncestry:z6.getAncestry,isAncestor:z6.isAncestor,isDescendant:z6.isDescendant,inType:z6.inType,getTypeAnnotation:T7.getTypeAnnotation,isBaseType:T7.isBaseType,couldBeBaseType:T7.couldBeBaseType,baseTypeStrictlyMatches:T7.baseTypeStrictlyMatches,isGenericType:T7.isGenericType,replaceWithMultiple:f7.replaceWithMultiple,replaceWithSourceString:f7.replaceWithSourceString,replaceWith:f7.replaceWith,replaceExpressionWithStatements:f7.replaceExpressionWithStatements,replaceInline:f7.replaceInline,evaluateTruthy:ry.evaluateTruthy,evaluate:ry.evaluate,toComputedKey:l9.toComputedKey,ensureBlock:l9.ensureBlock,unwrapFunctionEnvironment:l9.unwrapFunctionEnvironment,arrowFunctionToExpression:l9.arrowFunctionToExpression,splitExportDeclaration:l9.splitExportDeclaration,ensureFunctionName:l9.ensureFunctionName,matchesPattern:y1.matchesPattern,isStatic:y1.isStatic,isNodeType:y1.isNodeType,canHaveVariableDeclarationOrExpression:y1.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:y1.canSwapBetweenExpressionAndStatement,isCompletionRecord:y1.isCompletionRecord,isStatementOrBlock:y1.isStatementOrBlock,referencesImport:y1.referencesImport,getSource:y1.getSource,willIMaybeExecuteBefore:y1.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:y1._guessExecutionStatusRelativeTo,resolve:y1.resolve,isConstantExpression:y1.isConstantExpression,isInStrictMode:y1.isInStrictMode,isDenylisted:b1.isDenylisted,visit:b1.visit,skip:b1.skip,skipKey:b1.skipKey,stop:b1.stop,setContext:b1.setContext,requeue:b1.requeue,requeueComputedKeyAndDecorators:b1.requeueComputedKeyAndDecorators,remove:B7.remove,insertBefore:R6.insertBefore,insertAfter:R6.insertAfter,unshiftContainer:R6.unshiftContainer,pushContainer:R6.pushContainer,getOpposite:N8.getOpposite,getCompletionRecords:N8.getCompletionRecords,getSibling:N8.getSibling,getPrevSibling:N8.getPrevSibling,getNextSibling:N8.getNextSibling,getAllNextSiblings:N8.getAllNextSiblings,getAllPrevSiblings:N8.getAllPrevSiblings,get:N8.get,getAssignmentIdentifiers:N8.getAssignmentIdentifiers,getBindingIdentifiers:N8.getBindingIdentifiers,getOuterBindingIdentifiers:N8.getOuterBindingIdentifiers,getBindingIdentifierPaths:N8.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:N8.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:cQ.shareCommentsWithSiblings,addComment:cQ.addComment,addComments:cQ.addComments};Object.assign(r6.prototype,qh1);r6.prototype.arrowFunctionToShadowed=l9[String("arrowFunctionToShadowed")],Object.assign(r6.prototype,{has:y1[String("has")],is:y1[String("is")],isnt:y1[String("isnt")],equals:y1[String("equals")],hoist:R6[String("hoist")],updateSiblingKeys:R6.updateSiblingKeys,call:b1.call,isBlacklisted:b1[String("isBlacklisted")],setScope:b1.setScope,resync:b1.resync,popContext:b1.popContext,pushContext:b1.pushContext,setup:b1.setup,setKey:b1.setKey});r6.prototype._guessExecutionStatusRelativeToDifferentFunctions=y1._guessExecutionStatusRelativeTo,r6.prototype._guessExecutionStatusRelativeToDifferentFunctions=y1._guessExecutionStatusRelativeTo,Object.assign(r6.prototype,{_getTypeAnnotation:T7._getTypeAnnotation,_replaceWith:f7._replaceWith,_resolve:y1._resolve,_call:b1._call,_resyncParent:b1._resyncParent,_resyncKey:b1._resyncKey,_resyncList:b1._resyncList,_resyncRemoved:b1._resyncRemoved,_getQueueContexts:b1._getQueueContexts,_removeFromScope:B7._removeFromScope,_callRemovalHooks:B7._callRemovalHooks,_remove:B7._remove,_markRemoved:B7._markRemoved,_assertUnremoved:B7._assertUnremoved,_containerInsert:R6._containerInsert,_containerInsertBefore:R6._containerInsertBefore,_containerInsertAfter:R6._containerInsertAfter,_verifyNodeList:R6._verifyNodeList,_getKey:N8._getKey,_getPattern:N8._getPattern});for(let G of fZ.TYPES){let W=`is${G}`,J=fZ[W];r6.prototype[W]=function(Y){return J(this.node,Y)},r6.prototype[`assert${G}`]=function(Y){if(!J(this.node,Y))throw new TypeError(`Expected node path of type ${G}`)}}Object.assign(r6.prototype,Ah1);for(let G of Object.keys(Kh1)){if(G[0]==="_")continue;if(!fZ.TYPES.includes(G))fZ.TYPES.push(G)}});var Jg=D((Gg)=>{Object.defineProperty(Gg,"__esModule",{value:!0});Gg.default=void 0;var Sh1=_2(),Th1=w0(),uQ=V6(),{VISITOR_KEYS:fh1}=Th1;class ey{constructor(G,W,J,Y){this.queue=null,this.priorityQueue=null,this.parentPath=Y,this.scope=G,this.state=J,this.opts=W}shouldVisit(G){let W=this.opts;if(W.enter||W.exit)return!0;if(W[G.type])return!0;let J=fh1[G.type];if(!(J!=null&&J.length))return!1;for(let Y of J)if(G[Y])return!0;return!1}create(G,W,J,Y){return Sh1.default.get({parentPath:this.parentPath,parent:G,container:W,key:J,listKey:Y})}maybeQueue(G,W){if(this.queue)if(W)this.queue.push(G);else this.priorityQueue.push(G)}visitMultiple(G,W,J){if(G.length===0)return!1;let Y=[];for(let U=0;U<G.length;U++){let X=G[U];if(X&&this.shouldVisit(X))Y.push(this.create(W,G,U,J))}return this.visitQueue(Y)}visitSingle(G,W){if(this.shouldVisit(G[W]))return this.visitQueue([this.create(G,G,W)]);else return!1}visitQueue(G){this.queue=G,this.priorityQueue=[];let W=new WeakSet,J=!1,Y=0;for(;Y<G.length;){let U=G[Y];if(Y++,uQ.resync.call(U),U.contexts.length===0||U.contexts[U.contexts.length-1]!==this)uQ.pushContext.call(U,this);if(U.key===null)continue;let{node:X}=U;if(W.has(X))continue;if(X)W.add(X);if(U.visit()){J=!0;break}if(this.priorityQueue.length){if(J=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=G,J)break}}for(let U=0;U<Y;U++)uQ.popContext.call(G[U]);return this.queue=null,J}visit(G,W){let J=G[W];if(!J)return!1;if(Array.isArray(J))return this.visitMultiple(J,G,W);else return this.visitSingle(G,W)}}Gg.default=ey});var $Z=D((Yg)=>{Object.defineProperty(Yg,"__esModule",{value:!0});Yg.traverseNode=Eh1;var Bh1=Jg(),Nh1=w0(),{VISITOR_KEYS:Ph1}=Nh1;function Eh1(G,W,J,Y,U,X,Z){let V=Ph1[G.type];if(!V)return!1;let $=new Bh1.default(J,W,Y,U);if(Z){if(X!=null&&X[U.parentKey])return!1;return $.visitQueue([U])}for(let K of V){if(X!=null&&X[K])continue;if($.visit(G,K))return!0}return!1}});var V6=D((zg)=>{Object.defineProperty(zg,"__esModule",{value:!0});zg._call=dQ;zg._getQueueContexts=dh1;zg._resyncKey=$g;zg._resyncList=Kg;zg._resyncParent=Vg;zg._resyncRemoved=mh1;zg.call=aQ;zg.isDenylisted=Zg;zg.popContext=xh1;zg.pushContext=lh1;zg.requeue=uh1;zg.requeueComputedKeyAndDecorators=ah1;zg.resync=gh1;zg.setContext=yh1;zg.setKey=BZ;zg.setScope=Hg;zg.setup=ch1;zg.skip=kh1;zg.skipKey=bh1;zg.stop=hh1;zg.visit=vh1;var wh1=$Z(),Ug=_2(),Oh1=IZ(),_h1=w0();function aQ(G){let W=this.opts;if(this.debug(G),this.node){if(dQ.call(this,W[G]))return!0}if(this.node){var J;return dQ.call(this,(J=W[this.node.type])==null?void 0:J[G])}return!1}function dQ(G){if(!G)return!1;for(let W of G){if(!W)continue;let J=this.node;if(!J)return!0;let Y=W.call(this.state,this,this.state);if(Y&&typeof Y==="object"&&typeof Y.then==="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(Y)throw new Error(`Unexpected return value from visitor method ${W}`);if(this.node!==J)return!0;if(this._traverseFlags>0)return!0}return!1}function Zg(){var G;let W=(G=this.opts.denylist)!=null?G:this.opts.blacklist;return W==null?void 0:W.includes(this.node.type)}zg.isBlacklisted=Zg;function Xg(G,W){if(G.context!==W)G.context=W,G.state=W.state,G.opts=W.opts}function vh1(){var G,W;if(!this.node)return!1;if(this.isDenylisted())return!1;if((G=(W=this.opts).shouldSkip)!=null&&G.call(W,this))return!1;let J=this.context;if(this.shouldSkip||aQ.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return Xg(this,J),this.debug("Recursing into..."),this.shouldStop=wh1.traverseNode(this.node,this.opts,this.scope,this.state,this,this.skipKeys),Xg(this,J),aQ.call(this,"exit"),this.shouldStop}function kh1(){this.shouldSkip=!0}function bh1(G){if(this.skipKeys==null)this.skipKeys={};this.skipKeys[G]=!0}function hh1(){this._traverseFlags|=Ug.SHOULD_SKIP|Ug.SHOULD_STOP}function Hg(){var G,W;if((G=this.opts)!=null&&G.noScope)return;let J=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&J.isMethod()||this.key==="discriminant"&&J.isSwitchStatement())J=J.parentPath;let Y;while(J&&!Y){var U;if((U=J.opts)!=null&&U.noScope)return;Y=J.scope,J=J.parentPath}this.scope=this.getScope(Y),(W=this.scope)==null||W.init()}function yh1(G){if(this.skipKeys!=null)this.skipKeys={};if(this._traverseFlags=0,G)this.context=G,this.state=G.state,this.opts=G.opts;return Hg.call(this),this}function gh1(){if(this.removed)return;Vg.call(this),Kg.call(this),$g.call(this)}function Vg(){if(this.parentPath)this.parent=this.parentPath.node}function $g(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let G=0;G<this.container.length;G++)if(this.container[G]===this.node){BZ.call(this,G);return}}else for(let G of Object.keys(this.container))if(this.container[G]===this.node){BZ.call(this,G);return}this.key=null}function Kg(){if(!this.parent||!this.inList)return;let G=this.parent[this.listKey];if(this.container===G)return;this.container=G||null}function mh1(){if(this.key==null||!this.container||this.container[this.key]!==this.node)Oh1._markRemoved.call(this)}function xh1(){if(this.contexts.pop(),this.contexts.length>0)this.setContext(this.contexts[this.contexts.length-1]);else this.setContext(void 0)}function lh1(G){this.contexts.push(G),this.setContext(G)}function ch1(G,W,J,Y){this.listKey=J,this.container=W,this.parentPath=G||this.parentPath,BZ.call(this,Y)}function BZ(G){var W;this.key=G,this.node=this.container[this.key],this.type=(W=this.node)==null?void 0:W.type}function uh1(G=this){if(G.removed)return;let W=this.contexts;for(let J of W)J.maybeQueue(G)}function ah1(){let{context:G,node:W}=this;if(!_h1.isPrivate(W)&&W.computed)G.maybeQueue(this.get("key"));if(W.decorators)for(let J of this.get("decorators"))G.maybeQueue(J)}function dh1(){let G=this,W=this.contexts;while(!W.length){if(G=G.parentPath,!G)break;W=G.contexts}return W}});var Mg=D((Qg)=>{Object.defineProperty(Qg,"__esModule",{value:!0});Qg.default=void 0;class Rg{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(G,W,J=TypeError){return new J(W)}}Qg.default=Rg});var QG=D((jG)=>{Object.defineProperty(jG,"__esModule",{value:!0});Object.defineProperty(jG,"Hub",{enumerable:!0,get:function(){return Iy1.default}});Object.defineProperty(jG,"NodePath",{enumerable:!0,get:function(){return My1.default}});Object.defineProperty(jG,"Scope",{enumerable:!0,get:function(){return Ay1.default}});jG.visitors=jG.default=void 0;V6();var DG=RG();jG.visitors=DG;var Qy1=w0(),Fy1=k9(),Ag=$Z(),My1=_2(),Ay1=ZQ(),Iy1=Mg(),{VISITOR_KEYS:qy1,removeProperties:Ly1,traverseFast:Ig}=Qy1;function S4(G,W={},J,Y,U,X){if(!G)return;if(!W.noScope&&!J){if(G.type!=="Program"&&G.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${G.type} node without passing scope and parentPath.`)}if(!U&&X)throw new Error("visitSelf can only be used when providing a NodePath.");if(!qy1[G.type])return;DG.explode(W),Ag.traverseNode(G,W,J,Y,U,null,X)}var PK8=jG.default=S4;S4.visitors=DG;S4.verify=DG.verify;S4.explode=DG.explode;S4.cheap=function(G,W){Ig(G,W);return};S4.node=function(G,W,J,Y,U,X){Ag.traverseNode(G,W,J,Y,U,X)};S4.clearNode=function(G,W){Ly1(G,W)};S4.removeProperties=function(G,W){return Ig(G,S4.clearNode,W),G};function Dy1(G,W){if(G.node.type===W.type)W.has=!0,G.stop()}S4.hasType=function(G,W,J){if(J!=null&&J.includes(G.type))return!1;if(G.type===W)return!0;let Y={has:!1,type:W};return S4(G,{noScope:!0,denylist:J,enter:Dy1},null,Y),Y.has};S4.cache=Fy1});import x2 from"process";import{runAction as u1}from"@stacksjs/actions";import{intro as xZ,log as x8,outro as CG,prompts as Bm}from"@stacksjs/cli";import{Action as a1}from"@stacksjs/enums";import{ExitCode as lZ}from"@stacksjs/types";function dm1(G){let W={build:"Build any of your libraries (packages) for production use",components:"Build your component library",vueComponents:"Build your Vue component library",webComponents:"Build your framework agnostic web component library",elements:"An alias to the -w flag",buddy:"Build the Buddy binary",functions:"Build your function library",desktop:"Build the Desktop Application",pages:"Build your frontend",docs:"Build your documentation",framework:"Build Stacks framework",cli:"Automagically build the CLI",server:"Build the Stacks cloud server (Docker image)",select:"What are you trying to build?",project:"Target a specific project",verbose:"Enable verbose output"};G.command("build [type]",W.build).option("-c, --components",W.components).option("-v, --vue-components",W.vueComponents).option("-w, --web-components",W.webComponents).option("-e, --elements",W.elements).option("-f, --functions",W.functions).option("-p, --views",W.pages).option("--pages",W.pages).option("-d, --docs",W.docs).option("-b, --buddy",W.buddy,{default:!1}).option("-s, --stacks",W.framework,{default:!1}).option("--project [project]",W.project,{default:!1}).option("--server",W.server,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J,Y)=>{switch(x8.debug("Running `buddy build` ...",Y),J){case"components":Y.components=!0;break;case"vue":Y.vueComponents=!0;break;case"web-components":Y.webComponents=!0;break;case"functions":Y.functions=!0;break;case"views":Y.views=!0;break;case"docs":Y.docs=!0;break;case"buddy":Y.buddy=!0;break;case"cli":Y.buddy=!0;break;case"stacks":Y.stacks=!0;break;case"server":Y.server=!0;break;default:break}if(console.log("server",J,Y),Nm(Y)){console.log("has no");let U=await Bm({type:"multiselect",name:"build",message:W.select,choices:[{title:"Components",value:"components"},{title:"Web Components",value:"web-components"},{title:"Functions",value:"functions"},{title:"Views",value:"views"},{title:"Documentation",value:"docs"}]});if(console.log("answers",U),U!==null)x2.exit(lZ.InvalidArgument)}else console.log("has op");if(Y.docs)await u1(a1.BuildDocs);if(Y.components)await u1(a1.BuildComponentLibs);if(Y.vueComponents)await u1(a1.BuildVueComponentLib);if(Y.webComponents)await u1(a1.BuildWebComponentLib);if(Y.functions)await u1(a1.BuildFunctionLib);if(Y.views)await u1(a1.BuildViews);if(Y.stacks)await u1(a1.BuildStacks);if(Y.buddy)await u1(a1.BuildCli);if(Y.server)await u1(a1.BuildServer);x2.exit(lZ.Success)}),G.command("build:components","Automagically build component libraries for production use & npm/CDN distribution").alias("prod:components").option("-c, --components",W.components,{default:!0}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{x8.debug("Running `buddy build:components` ...",J),await u1(a1.BuildComponentLibs,J)}),G.command("build:cli",W.cli).alias("prod:cli").option("-b, --buddy",W.buddy,{default:!0}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{x8.debug("Running `buddy build:cli` ...",J),await u1(a1.BuildCli,J)}),G.command("build:server",W.server).alias("prod:server").alias("build:docker").option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{x8.debug("Running `buddy build:server` ...",J),await u1(a1.BuildServer,J)}),G.command("build:functions","Automagically build function library for npm/CDN distribution").option("-f, --functions",W.functions,{default:!0}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{x8.debug("Running `buddy `build:functions` ...",J),await u1(a1.BuildFunctionLib,J)}),G.command("build:vue-components","Automagically build Vue component library for npm/CDN distribution").alias("build:vue").alias("prod:vue-components").alias("prod:vue").option("-v, --vue-components",W.vueComponents,{default:!0}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).alias("build:vue").action(async(J)=>{x8.debug("Running `buddy build:vue-components` ...",J),await u1(a1.BuildVueComponentLib,J)}),G.command("build:web-components","Automagically build Web Component library for npm/CDN distribution").alias("build:wc").alias("prod:web-components").alias("prod:wc").option("-w, --web-components",W.webComponents,{default:!0}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{x8.debug("Running `buddy build:web-components` ...",J),await u1(a1.BuildWebComponentLib,J)}),G.command("build:docs","Automagically build your documentation site.").alias("prod:docs").alias("build:documentation").alias("prod:documentation").option("-d, --docs",W.docs,{default:!0}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{x8.debug("Running `buddy build:docs` ...",J),await u1(a1.BuildDocs,J)}),G.command("build:core","Automagically build the Stacks core.").option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{x8.debug("Running `buddy build:core` ...",J);let Y=await xZ("buddy build:core"),U=await u1(a1.BuildCore,J);if(U.isErr())x8.error("Failed to build the Stacks core.",U.error),x2.exit();await CG("Core packages built successfully",{startTime:Y,useSeconds:!0})}),G.command("build:desktop",W.desktop).alias("prod:desktop").option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{x8.debug("Running `buddy build:desktop` ...",J);let Y=await xZ("buddy build:desktop"),U=await u1(a1.BuildDesktop,J);if(U.isErr())await CG("While running the build:desktop command, there was an issue",{startTime:Y,useSeconds:!0},U.error),x2.exit();console.log(""),await CG("Exited",{startTime:Y,useSeconds:!0}),x2.exit(lZ.Success)}),G.command("build:stacks","Build the Stacks framework.").option("-s, --stacks",W.framework,{default:!0}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{x8.debug("Running `buddy build:stacks` ...",J);let Y=await xZ("buddy build:stacks"),U=await u1(a1.BuildStacks,J);if(U.isErr())x8.error("Failed to build Stacks.",U.error),x2.exit();await CG("Stacks built successfully",{startTime:Y,useSeconds:!0})}),G.on("build:*",()=>{console.error(`Invalid command: %s
|
|
3044
3044
|
See --help for a list of available commands.`,G.args.join(" ")),x2.exit(1)})}function Nm(G){return!G.components&&!G.vueComponents&&!G.webComponents&&!G.elements&&!G.functions&&!G.views&&!G.docs&&!G.stacks&&!G.buddy}import DF from"process";import{runAction as Pm}from"@stacksjs/actions";import{intro as Em,log as Cm,outro as jF}from"@stacksjs/cli";import{Action as wm}from"@stacksjs/enums";function om1(G){let W={changelog:"Create a CHANGELOG.md file",quiet:"Minimal output",dryRun:"Do not write the file, just output the changes",project:"Target a specific project",verbose:"Enable verbose output"};G.command("changelog",W.changelog).option("-q, --quiet",W.quiet,{default:!1}).option("-d, --dry-run",W.dryRun,{default:!1}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{Cm.debug("Running `buddy changelog` ...",J);let Y=await Em("buddy changelog"),U=await Pm(wm.Changelog,J);if(U.isErr())await jF("While running the changelog command, there was an issue",{...J,startTime:Y,useSeconds:!0},U.error),DF.exit();await jF("Generated CHANGELOG.md",{...J,startTime:Y,useSeconds:!0,type:"success"})}),G.on("changelog:*",()=>{console.log("Invalid command: %s",G.args.join(" ")),console.log("See --help for a list of available commands."),DF.exit(1)})}import cZ from"process";import{runAction as Om}from"@stacksjs/actions";import{intro as _m,log as vm,outro as SF}from"@stacksjs/cli";import{Action as km}from"@stacksjs/enums";import{ExitCode as TF}from"@stacksjs/types";function Ux1(G){let W={clean:"Removes all node_modules & lock files",project:"Target a specific project",verbose:"Enable verbose output"};G.command("clean",W.clean).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{vm.debug("Running `buddy clean` ...",J);let Y=await _m("buddy clean"),U=await Om(km.Clean,J);if(U.isErr())await SF("While running the clean command, there was an issue",{startTime:Y,useSeconds:!0},U.error),cZ.exit(TF.FatalError);await SF("Cleaned up",{startTime:Y,useSeconds:!0,message:"Cleaned up"}),cZ.exit(TF.Success)}),G.on("clean:*",()=>{console.error(`Invalid command: %s
|
|
3045
|
-
See --help for a list of available commands.`,G.args.join(" ")),cZ.exit(1)})}import b0 from"process";var p9=Y1(dM(),1);var NF=Y1(wG(),1);var PF=async(G,W,J)=>{return{operation:fF(W).operation,region:await BF(G.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function bm(G){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cloudfront",region:G.region},propertiesExtractor:(W,J)=>({signingProperties:{config:W,context:J}})}}var EF=(G)=>{let W=[];switch(G.operation){default:W.push(bm(G))}return W},CF=(G)=>{return{...NF.resolveAwsSdkSigV4Config(G)}};var wF=(G)=>{return{...G,useDualstackEndpoint:G.useDualstackEndpoint??!1,useFipsEndpoint:G.useFipsEndpoint??!1,defaultSigningName:"cloudfront"}},OF={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var _F={name:"@aws-sdk/client-cloudfront",description:"AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",version:"3.772.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cloudfront","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cloudfront"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.758.0","@aws-sdk/credential-provider-node":"3.772.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.772.0","@aws-sdk/middleware-user-agent":"3.758.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.758.0","@aws-sdk/xml-builder":"3.734.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.5","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.6","@smithy/middleware-retry":"^4.0.7","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.3","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.6","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.7","@smithy/util-defaults-mode-node":"^4.0.7","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-stream":"^4.1.2","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudfront",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cloudfront"}};var wM=Y1(wG(),1);var vF="AWS_EC2_METADATA_DISABLED",kF=async(G)=>{let{ENV_CMDS_FULL_URI:W,ENV_CMDS_RELATIVE_URI:J,fromContainerMetadata:Y,fromInstanceMetadata:U}=await import("./chunk-vrd8j1ky.js");if(process.env[J]||process.env[W]){G.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:X}=await import("./chunk-
|
|
3045
|
+
See --help for a list of available commands.`,G.args.join(" ")),cZ.exit(1)})}import b0 from"process";var p9=Y1(dM(),1);var NF=Y1(wG(),1);var PF=async(G,W,J)=>{return{operation:fF(W).operation,region:await BF(G.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function bm(G){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cloudfront",region:G.region},propertiesExtractor:(W,J)=>({signingProperties:{config:W,context:J}})}}var EF=(G)=>{let W=[];switch(G.operation){default:W.push(bm(G))}return W},CF=(G)=>{return{...NF.resolveAwsSdkSigV4Config(G)}};var wF=(G)=>{return{...G,useDualstackEndpoint:G.useDualstackEndpoint??!1,useFipsEndpoint:G.useFipsEndpoint??!1,defaultSigningName:"cloudfront"}},OF={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var _F={name:"@aws-sdk/client-cloudfront",description:"AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",version:"3.772.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cloudfront","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cloudfront"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.758.0","@aws-sdk/credential-provider-node":"3.772.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.772.0","@aws-sdk/middleware-user-agent":"3.758.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.758.0","@aws-sdk/xml-builder":"3.734.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.5","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.6","@smithy/middleware-retry":"^4.0.7","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.3","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.6","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.7","@smithy/util-defaults-mode-node":"^4.0.7","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-stream":"^4.1.2","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.2.2"},engines:{node:">=18.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudfront",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cloudfront"}};var wM=Y1(wG(),1);var vF="AWS_EC2_METADATA_DISABLED",kF=async(G)=>{let{ENV_CMDS_FULL_URI:W,ENV_CMDS_RELATIVE_URI:J,fromContainerMetadata:Y,fromInstanceMetadata:U}=await import("./chunk-vrd8j1ky.js");if(process.env[J]||process.env[W]){G.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:X}=await import("./chunk-1vaz8fbz.js");return OG(X(G),Y(G))}if(process.env[vF]&&process.env[vF]!=="false")return async()=>{throw new s9("EC2 Instance Metadata Service access disabled",{logger:G.logger})};return G.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),U(G)};var bF=!1,lF=(G={})=>hF(OG(async()=>{if(G.profile??process.env[yF]){if(process.env[gF]&&process.env[mF]){if(!bF)(G.logger?.warn&&G.logger?.constructor?.name!=="NoOpLogger"?G.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
3046
3046
|
Multiple credential sources detected:
|
|
3047
3047
|
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
3048
3048
|
This SDK will proceed with the AWS_PROFILE value.
|
|
@@ -3050,7 +3050,7 @@ See --help for a list of available commands.`,G.args.join(" ")),cZ.exit(1)})}imp
|
|
|
3050
3050
|
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
3051
3051
|
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
3052
3052
|
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
3053
|
-
`),bF=!0}throw new s9("AWS_PROFILE is set, skipping fromEnv provider.",{logger:G.logger,tryNextLink:!0})}return G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),xF(G)()},async()=>{G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:W,ssoAccountId:J,ssoRegion:Y,ssoRoleName:U,ssoSession:X}=G;if(!W&&!J&&!Y&&!U&&!X)throw new s9("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:G.logger});let{fromSSO:Z}=await import("./chunk-y4k8k1by.js");return Z(G)()},async()=>{G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:W}=await import("./chunk-tv4f0d0g.js");return W(G)()},async()=>{G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:W}=await import("./chunk-mzgfvbmm.js");return W(G)()},async()=>{G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:W}=await import("./chunk-yatzvt36.js");return W(G)()},async()=>{return G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await kF(G))()},async()=>{throw new s9("Could not load credentials from any providers",{tryNextLink:!1,logger:G.logger})}),gm,ym),ym=(G)=>G?.expiration!==void 0,gm=(G)=>G?.expiration!==void 0&&G.expiration.getTime()-Date.now()<300000;var RM=Y1(wG(),1);var cF={["required"]:!1,type:"String"},uF={["required"]:!0,default:!1,type:"Boolean"},aF={["ref"]:"Endpoint"},aZ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},eF={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},l8={},dF={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},mm={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},iF={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},uZ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},rF={authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"us-east-1"}]},sF={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},pF={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},nF=[aZ],oF=[eF],tF=[{["ref"]:"Region"}],xm={version:"1.0",parameters:{Region:cF,UseDualStack:uF,UseFIPS:uF,Endpoint:cF},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[aF]}],rules:[{conditions:nF,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:oF,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:aF,properties:l8,headers:l8},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:tF}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:tF,assign:"PartitionResult"}],rules:[{conditions:[dF,iF,uZ],endpoint:{url:"https://cloudfront.amazonaws.com",properties:rF,headers:l8},type:"endpoint"},{conditions:[dF,aZ,uZ],endpoint:{url:"https://cloudfront-fips.amazonaws.com",properties:rF,headers:l8},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[mm,"aws-cn"]},iF,uZ],endpoint:{url:"https://cloudfront.cn-northwest-1.amazonaws.com.cn",properties:{authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"cn-northwest-1"}]},headers:l8},type:"endpoint"},{conditions:[aZ,eF],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,sF]},pF],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l8,headers:l8},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:nF,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[sF,!0]}],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l8,headers:l8},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:oF,rules:[{conditions:[pF],rules:[{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l8,headers:l8},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dnsSuffix}",properties:l8,headers:l8},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},GM=xm;var lm=new WM({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),XM=(G,W={})=>{return lm.get(G,()=>YM(GM,{endpointParams:G,logger:W.logger}))};JM.aws=UM;var QM=(G)=>{return{apiVersion:"2020-05-31",base64Decoder:G?.base64Decoder??KM,base64Encoder:G?.base64Encoder??zM,disableHostPrefix:G?.disableHostPrefix??!1,endpointProvider:G?.endpointProvider??XM,extensions:G?.extensions??[],httpAuthSchemeProvider:G?.httpAuthSchemeProvider??EF,httpAuthSchemes:G?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(W)=>W.getIdentityProvider("aws.auth#sigv4"),signer:new RM.AwsSdkSigV4Signer}],logger:G?.logger??new HM,serviceId:G?.serviceId??"CloudFront",urlParser:G?.urlParser??ZM,utf8Decoder:G?.utf8Decoder??VM,utf8Encoder:G?.utf8Encoder??$M}};var OM=(G)=>{SM(process.version);let W=CM(G),J=()=>W().then(jM),Y=QM(G);wM.emitWarningIfUnsupportedVersion(process.version);let U={profile:G?.profile};return{...Y,...G,runtime:"node",defaultsMode:W,bodyLengthChecker:G?.bodyLengthChecker??EM,credentialDefaultProvider:G?.credentialDefaultProvider??lF,defaultUserAgentProvider:G?.defaultUserAgentProvider??BM({serviceId:Y.serviceId,clientVersion:_F.version}),maxAttempts:G?.maxAttempts??l2(LM,G),region:G?.region??l2(AM,{...IM,...U}),requestHandler:TM.create(G?.requestHandler??J),retryMode:G?.retryMode??l2({...DM,default:async()=>(await J()).retryMode||qM},G),sha256:G?.sha256??PM.bind(null,"sha256"),streamCollector:G?.streamCollector??fM,useDualstackEndpoint:G?.useDualstackEndpoint??l2(FM,U),useFipsEndpoint:G?.useFipsEndpoint??l2(MM,U),userAgentAppId:G?.userAgentAppId??l2(NM,U)}};var _M=(G)=>{let{httpAuthSchemes:W,httpAuthSchemeProvider:J,credentials:Y}=G;return{setHttpAuthScheme(U){let X=W.findIndex((Z)=>Z.schemeId===U.schemeId);if(X===-1)W.push(U);else W.splice(X,1,U)},httpAuthSchemes(){return W},setHttpAuthSchemeProvider(U){J=U},httpAuthSchemeProvider(){return J},setCredentials(U){Y=U},credentials(){return Y}}},vM=(G)=>{return{httpAuthSchemes:G.httpAuthSchemes(),httpAuthSchemeProvider:G.httpAuthSchemeProvider(),credentials:G.credentials()}};var _G=(G)=>G,xM=(G,W)=>{let J={..._G(gM(G)),..._G(hM(G)),..._G(kM(G)),..._G(_M(G))};return W.forEach((Y)=>Y.configure(J)),{...G,...mM(J),...yM(J),...bM(J),...vM(J)}};class dZ extends tM{config;constructor(...[G]){let W=OM(G||{}),J=wF(W),Y=iM(J),U=oM(Y),X=sM(U),Z=lM(X),V=nM(Z),$=CF(V),K=xM($,G?.extensions||[]);super(K);this.config=K,this.middlewareStack.use(rM(this.config)),this.middlewareStack.use(eM(this.config)),this.middlewareStack.use(pM(this.config)),this.middlewareStack.use(cM(this.config)),this.middlewareStack.use(uM(this.config)),this.middlewareStack.use(aM(this.config)),this.middlewareStack.use(p9.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:PF,identityProviderConfigProvider:async(z)=>new p9.DefaultIdentityProviderConfig({"aws.auth#sigv4":z.credentials})})),this.middlewareStack.use(p9.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var e9=Y1(wG(),1);function GA(G){return G.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function WA(G){return G.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class iZ{value;constructor(G){this.value=G}toString(){return WA(""+this.value)}}class c4{name;children;attributes={};static of(G,W,J){let Y=new c4(G);if(W!==void 0)Y.addChildNode(new iZ(W));if(J!==void 0)Y.withName(J);return Y}constructor(G,W=[]){this.name=G,this.children=W}withName(G){return this.name=G,this}addAttribute(G,W){return this.attributes[G]=W,this}addChildNode(G){return this.children.push(G),this}removeAttribute(G){return delete this.attributes[G],this}n(G){return this.name=G,this}c(G){return this.children.push(G),this}a(G,W){if(W!=null)this.attributes[G]=W;return this}cc(G,W,J=W){if(G[W]!=null){let Y=c4.of(W,G[W]).withName(J);this.c(Y)}}l(G,W,J,Y){if(G[W]!=null)Y().map((X)=>{X.withName(J),this.c(X)})}lc(G,W,J,Y){if(G[W]!=null){let U=Y(),X=new c4(J);U.map((Z)=>{X.c(Z)}),this.c(X)}}toString(){let G=Boolean(this.children.length),W=`<${this.name}`,J=this.attributes;for(let Y of Object.keys(J)){let U=J[Y];if(U!=null)W+=` ${Y}="${GA(""+U)}"`}return W+=!G?"/>":`>${this.children.map((Y)=>Y.toString()).join("")}</${this.name}>`}}var $A=Y1(dM(),1);class l extends JA{constructor(G){super(G);Object.setPrototypeOf(this,l.prototype)}}class vG extends l{name="AccessDenied";$fault="client";Message;constructor(G){super({name:"AccessDenied",$fault:"client",...G});Object.setPrototypeOf(this,vG.prototype),this.Message=G.Message}}class kG extends l{name="IllegalUpdate";$fault="client";Message;constructor(G){super({name:"IllegalUpdate",$fault:"client",...G});Object.setPrototypeOf(this,kG.prototype),this.Message=G.Message}}class bG extends l{name="InvalidArgument";$fault="client";Message;constructor(G){super({name:"InvalidArgument",$fault:"client",...G});Object.setPrototypeOf(this,bG.prototype),this.Message=G.Message}}class hG extends l{name="NoSuchDistribution";$fault="client";Message;constructor(G){super({name:"NoSuchDistribution",$fault:"client",...G});Object.setPrototypeOf(this,hG.prototype),this.Message=G.Message}}class yG extends l{name="TooManyDistributionCNAMEs";$fault="client";Message;constructor(G){super({name:"TooManyDistributionCNAMEs",$fault:"client",...G});Object.setPrototypeOf(this,yG.prototype),this.Message=G.Message}}class gG extends l{name="BatchTooLarge";$fault="client";Message;constructor(G){super({name:"BatchTooLarge",$fault:"client",...G});Object.setPrototypeOf(this,gG.prototype),this.Message=G.Message}}class mG extends l{name="CachePolicyAlreadyExists";$fault="client";Message;constructor(G){super({name:"CachePolicyAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,mG.prototype),this.Message=G.Message}}class xG extends l{name="CachePolicyInUse";$fault="client";Message;constructor(G){super({name:"CachePolicyInUse",$fault:"client",...G});Object.setPrototypeOf(this,xG.prototype),this.Message=G.Message}}class lG extends l{name="CannotChangeImmutablePublicKeyFields";$fault="client";Message;constructor(G){super({name:"CannotChangeImmutablePublicKeyFields",$fault:"client",...G});Object.setPrototypeOf(this,lG.prototype),this.Message=G.Message}}class cG extends l{name="CannotDeleteEntityWhileInUse";$fault="client";Message;constructor(G){super({name:"CannotDeleteEntityWhileInUse",$fault:"client",...G});Object.setPrototypeOf(this,cG.prototype),this.Message=G.Message}}class uG extends l{name="CannotUpdateEntityWhileInUse";$fault="client";Message;constructor(G){super({name:"CannotUpdateEntityWhileInUse",$fault:"client",...G});Object.setPrototypeOf(this,uG.prototype),this.Message=G.Message}}class aG extends l{name="CNAMEAlreadyExists";$fault="client";Message;constructor(G){super({name:"CNAMEAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,aG.prototype),this.Message=G.Message}}class dG extends l{name="DistributionAlreadyExists";$fault="client";Message;constructor(G){super({name:"DistributionAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,dG.prototype),this.Message=G.Message}}class iG extends l{name="IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior";$fault="client";Message;constructor(G){super({name:"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior",$fault:"client",...G});Object.setPrototypeOf(this,iG.prototype),this.Message=G.Message}}class rG extends l{name="InconsistentQuantities";$fault="client";Message;constructor(G){super({name:"InconsistentQuantities",$fault:"client",...G});Object.setPrototypeOf(this,rG.prototype),this.Message=G.Message}}class sG extends l{name="InvalidDefaultRootObject";$fault="client";Message;constructor(G){super({name:"InvalidDefaultRootObject",$fault:"client",...G});Object.setPrototypeOf(this,sG.prototype),this.Message=G.Message}}class pG extends l{name="InvalidErrorCode";$fault="client";Message;constructor(G){super({name:"InvalidErrorCode",$fault:"client",...G});Object.setPrototypeOf(this,pG.prototype),this.Message=G.Message}}class nG extends l{name="InvalidForwardCookies";$fault="client";Message;constructor(G){super({name:"InvalidForwardCookies",$fault:"client",...G});Object.setPrototypeOf(this,nG.prototype),this.Message=G.Message}}class oG extends l{name="InvalidFunctionAssociation";$fault="client";Message;constructor(G){super({name:"InvalidFunctionAssociation",$fault:"client",...G});Object.setPrototypeOf(this,oG.prototype),this.Message=G.Message}}class tG extends l{name="InvalidGeoRestrictionParameter";$fault="client";Message;constructor(G){super({name:"InvalidGeoRestrictionParameter",$fault:"client",...G});Object.setPrototypeOf(this,tG.prototype),this.Message=G.Message}}class eG extends l{name="InvalidHeadersForS3Origin";$fault="client";Message;constructor(G){super({name:"InvalidHeadersForS3Origin",$fault:"client",...G});Object.setPrototypeOf(this,eG.prototype),this.Message=G.Message}}class GW extends l{name="InvalidIfMatchVersion";$fault="client";Message;constructor(G){super({name:"InvalidIfMatchVersion",$fault:"client",...G});Object.setPrototypeOf(this,GW.prototype),this.Message=G.Message}}class WW extends l{name="InvalidLambdaFunctionAssociation";$fault="client";Message;constructor(G){super({name:"InvalidLambdaFunctionAssociation",$fault:"client",...G});Object.setPrototypeOf(this,WW.prototype),this.Message=G.Message}}class JW extends l{name="InvalidLocationCode";$fault="client";Message;constructor(G){super({name:"InvalidLocationCode",$fault:"client",...G});Object.setPrototypeOf(this,JW.prototype),this.Message=G.Message}}class YW extends l{name="InvalidMinimumProtocolVersion";$fault="client";Message;constructor(G){super({name:"InvalidMinimumProtocolVersion",$fault:"client",...G});Object.setPrototypeOf(this,YW.prototype),this.Message=G.Message}}class UW extends l{name="InvalidOrigin";$fault="client";Message;constructor(G){super({name:"InvalidOrigin",$fault:"client",...G});Object.setPrototypeOf(this,UW.prototype),this.Message=G.Message}}class XW extends l{name="InvalidOriginAccessControl";$fault="client";Message;constructor(G){super({name:"InvalidOriginAccessControl",$fault:"client",...G});Object.setPrototypeOf(this,XW.prototype),this.Message=G.Message}}class ZW extends l{name="InvalidOriginAccessIdentity";$fault="client";Message;constructor(G){super({name:"InvalidOriginAccessIdentity",$fault:"client",...G});Object.setPrototypeOf(this,ZW.prototype),this.Message=G.Message}}class HW extends l{name="InvalidOriginKeepaliveTimeout";$fault="client";Message;constructor(G){super({name:"InvalidOriginKeepaliveTimeout",$fault:"client",...G});Object.setPrototypeOf(this,HW.prototype),this.Message=G.Message}}class VW extends l{name="InvalidOriginReadTimeout";$fault="client";Message;constructor(G){super({name:"InvalidOriginReadTimeout",$fault:"client",...G});Object.setPrototypeOf(this,VW.prototype),this.Message=G.Message}}class $W extends l{name="InvalidProtocolSettings";$fault="client";Message;constructor(G){super({name:"InvalidProtocolSettings",$fault:"client",...G});Object.setPrototypeOf(this,$W.prototype),this.Message=G.Message}}class KW extends l{name="InvalidQueryStringParameters";$fault="client";Message;constructor(G){super({name:"InvalidQueryStringParameters",$fault:"client",...G});Object.setPrototypeOf(this,KW.prototype),this.Message=G.Message}}class zW extends l{name="InvalidRelativePath";$fault="client";Message;constructor(G){super({name:"InvalidRelativePath",$fault:"client",...G});Object.setPrototypeOf(this,zW.prototype),this.Message=G.Message}}class RW extends l{name="InvalidRequiredProtocol";$fault="client";Message;constructor(G){super({name:"InvalidRequiredProtocol",$fault:"client",...G});Object.setPrototypeOf(this,RW.prototype),this.Message=G.Message}}class QW extends l{name="InvalidResponseCode";$fault="client";Message;constructor(G){super({name:"InvalidResponseCode",$fault:"client",...G});Object.setPrototypeOf(this,QW.prototype),this.Message=G.Message}}class FW extends l{name="InvalidTTLOrder";$fault="client";Message;constructor(G){super({name:"InvalidTTLOrder",$fault:"client",...G});Object.setPrototypeOf(this,FW.prototype),this.Message=G.Message}}class MW extends l{name="InvalidViewerCertificate";$fault="client";Message;constructor(G){super({name:"InvalidViewerCertificate",$fault:"client",...G});Object.setPrototypeOf(this,MW.prototype),this.Message=G.Message}}class AW extends l{name="InvalidWebACLId";$fault="client";Message;constructor(G){super({name:"InvalidWebACLId",$fault:"client",...G});Object.setPrototypeOf(this,AW.prototype),this.Message=G.Message}}class IW extends l{name="MissingBody";$fault="client";Message;constructor(G){super({name:"MissingBody",$fault:"client",...G});Object.setPrototypeOf(this,IW.prototype),this.Message=G.Message}}class qW extends l{name="NoSuchCachePolicy";$fault="client";Message;constructor(G){super({name:"NoSuchCachePolicy",$fault:"client",...G});Object.setPrototypeOf(this,qW.prototype),this.Message=G.Message}}class LW extends l{name="NoSuchFieldLevelEncryptionConfig";$fault="client";Message;constructor(G){super({name:"NoSuchFieldLevelEncryptionConfig",$fault:"client",...G});Object.setPrototypeOf(this,LW.prototype),this.Message=G.Message}}class DW extends l{name="NoSuchOrigin";$fault="client";Message;constructor(G){super({name:"NoSuchOrigin",$fault:"client",...G});Object.setPrototypeOf(this,DW.prototype),this.Message=G.Message}}class jW extends l{name="NoSuchOriginRequestPolicy";$fault="client";Message;constructor(G){super({name:"NoSuchOriginRequestPolicy",$fault:"client",...G});Object.setPrototypeOf(this,jW.prototype),this.Message=G.Message}}class SW extends l{name="NoSuchRealtimeLogConfig";$fault="client";Message;constructor(G){super({name:"NoSuchRealtimeLogConfig",$fault:"client",...G});Object.setPrototypeOf(this,SW.prototype),this.Message=G.Message}}class TW extends l{name="NoSuchResponseHeadersPolicy";$fault="client";Message;constructor(G){super({name:"NoSuchResponseHeadersPolicy",$fault:"client",...G});Object.setPrototypeOf(this,TW.prototype),this.Message=G.Message}}class fW extends l{name="PreconditionFailed";$fault="client";Message;constructor(G){super({name:"PreconditionFailed",$fault:"client",...G});Object.setPrototypeOf(this,fW.prototype),this.Message=G.Message}}class BW extends l{name="RealtimeLogConfigOwnerMismatch";$fault="client";Message;constructor(G){super({name:"RealtimeLogConfigOwnerMismatch",$fault:"client",...G});Object.setPrototypeOf(this,BW.prototype),this.Message=G.Message}}class NW extends l{name="TooManyCacheBehaviors";$fault="client";Message;constructor(G){super({name:"TooManyCacheBehaviors",$fault:"client",...G});Object.setPrototypeOf(this,NW.prototype),this.Message=G.Message}}class PW extends l{name="TooManyCertificates";$fault="client";Message;constructor(G){super({name:"TooManyCertificates",$fault:"client",...G});Object.setPrototypeOf(this,PW.prototype),this.Message=G.Message}}class EW extends l{name="TooManyCookieNamesInWhiteList";$fault="client";Message;constructor(G){super({name:"TooManyCookieNamesInWhiteList",$fault:"client",...G});Object.setPrototypeOf(this,EW.prototype),this.Message=G.Message}}class CW extends l{name="TooManyDistributions";$fault="client";Message;constructor(G){super({name:"TooManyDistributions",$fault:"client",...G});Object.setPrototypeOf(this,CW.prototype),this.Message=G.Message}}class wW extends l{name="TooManyDistributionsAssociatedToCachePolicy";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToCachePolicy",$fault:"client",...G});Object.setPrototypeOf(this,wW.prototype),this.Message=G.Message}}class OW extends l{name="TooManyDistributionsAssociatedToFieldLevelEncryptionConfig";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig",$fault:"client",...G});Object.setPrototypeOf(this,OW.prototype),this.Message=G.Message}}class _W extends l{name="TooManyDistributionsAssociatedToKeyGroup";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToKeyGroup",$fault:"client",...G});Object.setPrototypeOf(this,_W.prototype),this.Message=G.Message}}class vW extends l{name="TooManyDistributionsAssociatedToOriginAccessControl";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToOriginAccessControl",$fault:"client",...G});Object.setPrototypeOf(this,vW.prototype),this.Message=G.Message}}class kW extends l{name="TooManyDistributionsAssociatedToOriginRequestPolicy";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToOriginRequestPolicy",$fault:"client",...G});Object.setPrototypeOf(this,kW.prototype),this.Message=G.Message}}class bW extends l{name="TooManyDistributionsAssociatedToResponseHeadersPolicy";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToResponseHeadersPolicy",$fault:"client",...G});Object.setPrototypeOf(this,bW.prototype),this.Message=G.Message}}class hW extends l{name="TooManyDistributionsWithFunctionAssociations";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsWithFunctionAssociations",$fault:"client",...G});Object.setPrototypeOf(this,hW.prototype),this.Message=G.Message}}class yW extends l{name="TooManyDistributionsWithLambdaAssociations";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsWithLambdaAssociations",$fault:"client",...G});Object.setPrototypeOf(this,yW.prototype),this.Message=G.Message}}class gW extends l{name="TooManyDistributionsWithSingleFunctionARN";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsWithSingleFunctionARN",$fault:"client",...G});Object.setPrototypeOf(this,gW.prototype),this.Message=G.Message}}class mW extends l{name="TooManyFunctionAssociations";$fault="client";Message;constructor(G){super({name:"TooManyFunctionAssociations",$fault:"client",...G});Object.setPrototypeOf(this,mW.prototype),this.Message=G.Message}}class xW extends l{name="TooManyHeadersInForwardedValues";$fault="client";Message;constructor(G){super({name:"TooManyHeadersInForwardedValues",$fault:"client",...G});Object.setPrototypeOf(this,xW.prototype),this.Message=G.Message}}class lW extends l{name="TooManyKeyGroupsAssociatedToDistribution";$fault="client";Message;constructor(G){super({name:"TooManyKeyGroupsAssociatedToDistribution",$fault:"client",...G});Object.setPrototypeOf(this,lW.prototype),this.Message=G.Message}}class cW extends l{name="TooManyLambdaFunctionAssociations";$fault="client";Message;constructor(G){super({name:"TooManyLambdaFunctionAssociations",$fault:"client",...G});Object.setPrototypeOf(this,cW.prototype),this.Message=G.Message}}class uW extends l{name="TooManyOriginCustomHeaders";$fault="client";Message;constructor(G){super({name:"TooManyOriginCustomHeaders",$fault:"client",...G});Object.setPrototypeOf(this,uW.prototype),this.Message=G.Message}}class aW extends l{name="TooManyOriginGroupsPerDistribution";$fault="client";Message;constructor(G){super({name:"TooManyOriginGroupsPerDistribution",$fault:"client",...G});Object.setPrototypeOf(this,aW.prototype),this.Message=G.Message}}class dW extends l{name="TooManyOrigins";$fault="client";Message;constructor(G){super({name:"TooManyOrigins",$fault:"client",...G});Object.setPrototypeOf(this,dW.prototype),this.Message=G.Message}}class iW extends l{name="TooManyQueryStringParameters";$fault="client";Message;constructor(G){super({name:"TooManyQueryStringParameters",$fault:"client",...G});Object.setPrototypeOf(this,iW.prototype),this.Message=G.Message}}class rW extends l{name="TooManyTrustedSigners";$fault="client";Message;constructor(G){super({name:"TooManyTrustedSigners",$fault:"client",...G});Object.setPrototypeOf(this,rW.prototype),this.Message=G.Message}}class sW extends l{name="TrustedKeyGroupDoesNotExist";$fault="client";Message;constructor(G){super({name:"TrustedKeyGroupDoesNotExist",$fault:"client",...G});Object.setPrototypeOf(this,sW.prototype),this.Message=G.Message}}class pW extends l{name="TrustedSignerDoesNotExist";$fault="client";Message;constructor(G){super({name:"TrustedSignerDoesNotExist",$fault:"client",...G});Object.setPrototypeOf(this,pW.prototype),this.Message=G.Message}}class nW extends l{name="EntityAlreadyExists";$fault="client";Message;constructor(G){super({name:"EntityAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,nW.prototype),this.Message=G.Message}}class oW extends l{name="EntityLimitExceeded";$fault="client";Message;constructor(G){super({name:"EntityLimitExceeded",$fault:"client",...G});Object.setPrototypeOf(this,oW.prototype),this.Message=G.Message}}class tW extends l{name="InvalidTagging";$fault="client";Message;constructor(G){super({name:"InvalidTagging",$fault:"client",...G});Object.setPrototypeOf(this,tW.prototype),this.Message=G.Message}}class eW extends l{name="UnsupportedOperation";$fault="client";Message;constructor(G){super({name:"UnsupportedOperation",$fault:"client",...G});Object.setPrototypeOf(this,eW.prototype),this.Message=G.Message}}class GJ extends l{name="TooManyCachePolicies";$fault="client";Message;constructor(G){super({name:"TooManyCachePolicies",$fault:"client",...G});Object.setPrototypeOf(this,GJ.prototype),this.Message=G.Message}}class WJ extends l{name="TooManyCookiesInCachePolicy";$fault="client";Message;constructor(G){super({name:"TooManyCookiesInCachePolicy",$fault:"client",...G});Object.setPrototypeOf(this,WJ.prototype),this.Message=G.Message}}class JJ extends l{name="TooManyHeadersInCachePolicy";$fault="client";Message;constructor(G){super({name:"TooManyHeadersInCachePolicy",$fault:"client",...G});Object.setPrototypeOf(this,JJ.prototype),this.Message=G.Message}}class YJ extends l{name="TooManyQueryStringsInCachePolicy";$fault="client";Message;constructor(G){super({name:"TooManyQueryStringsInCachePolicy",$fault:"client",...G});Object.setPrototypeOf(this,YJ.prototype),this.Message=G.Message}}class UJ extends l{name="CloudFrontOriginAccessIdentityAlreadyExists";$fault="client";Message;constructor(G){super({name:"CloudFrontOriginAccessIdentityAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,UJ.prototype),this.Message=G.Message}}class XJ extends l{name="TooManyCloudFrontOriginAccessIdentities";$fault="client";Message;constructor(G){super({name:"TooManyCloudFrontOriginAccessIdentities",$fault:"client",...G});Object.setPrototypeOf(this,XJ.prototype),this.Message=G.Message}}class ZJ extends l{name="ContinuousDeploymentPolicyAlreadyExists";$fault="client";Message;constructor(G){super({name:"ContinuousDeploymentPolicyAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,ZJ.prototype),this.Message=G.Message}}class HJ extends l{name="StagingDistributionInUse";$fault="client";Message;constructor(G){super({name:"StagingDistributionInUse",$fault:"client",...G});Object.setPrototypeOf(this,HJ.prototype),this.Message=G.Message}}class VJ extends l{name="TooManyContinuousDeploymentPolicies";$fault="client";Message;constructor(G){super({name:"TooManyContinuousDeploymentPolicies",$fault:"client",...G});Object.setPrototypeOf(this,VJ.prototype),this.Message=G.Message}}class $J extends l{name="ContinuousDeploymentPolicyInUse";$fault="client";Message;constructor(G){super({name:"ContinuousDeploymentPolicyInUse",$fault:"client",...G});Object.setPrototypeOf(this,$J.prototype),this.Message=G.Message}}class KJ extends l{name="EntityNotFound";$fault="client";Message;constructor(G){super({name:"EntityNotFound",$fault:"client",...G});Object.setPrototypeOf(this,KJ.prototype),this.Message=G.Message}}class zJ extends l{name="IllegalOriginAccessConfiguration";$fault="client";Message;constructor(G){super({name:"IllegalOriginAccessConfiguration",$fault:"client",...G});Object.setPrototypeOf(this,zJ.prototype),this.Message=G.Message}}class RJ extends l{name="InvalidDomainNameForOriginAccessControl";$fault="client";Message;constructor(G){super({name:"InvalidDomainNameForOriginAccessControl",$fault:"client",...G});Object.setPrototypeOf(this,RJ.prototype),this.Message=G.Message}}class QJ extends l{name="NoSuchContinuousDeploymentPolicy";$fault="client";Message;constructor(G){super({name:"NoSuchContinuousDeploymentPolicy",$fault:"client",...G});Object.setPrototypeOf(this,QJ.prototype),this.Message=G.Message}}class FJ extends l{name="FieldLevelEncryptionConfigAlreadyExists";$fault="client";Message;constructor(G){super({name:"FieldLevelEncryptionConfigAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,FJ.prototype),this.Message=G.Message}}class MJ extends l{name="NoSuchFieldLevelEncryptionProfile";$fault="client";Message;constructor(G){super({name:"NoSuchFieldLevelEncryptionProfile",$fault:"client",...G});Object.setPrototypeOf(this,MJ.prototype),this.Message=G.Message}}class AJ extends l{name="QueryArgProfileEmpty";$fault="client";Message;constructor(G){super({name:"QueryArgProfileEmpty",$fault:"client",...G});Object.setPrototypeOf(this,AJ.prototype),this.Message=G.Message}}class IJ extends l{name="TooManyFieldLevelEncryptionConfigs";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionConfigs",$fault:"client",...G});Object.setPrototypeOf(this,IJ.prototype),this.Message=G.Message}}class qJ extends l{name="TooManyFieldLevelEncryptionContentTypeProfiles";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionContentTypeProfiles",$fault:"client",...G});Object.setPrototypeOf(this,qJ.prototype),this.Message=G.Message}}class LJ extends l{name="TooManyFieldLevelEncryptionQueryArgProfiles";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionQueryArgProfiles",$fault:"client",...G});Object.setPrototypeOf(this,LJ.prototype),this.Message=G.Message}}class DJ extends l{name="FieldLevelEncryptionProfileAlreadyExists";$fault="client";Message;constructor(G){super({name:"FieldLevelEncryptionProfileAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,DJ.prototype),this.Message=G.Message}}class jJ extends l{name="FieldLevelEncryptionProfileSizeExceeded";$fault="client";Message;constructor(G){super({name:"FieldLevelEncryptionProfileSizeExceeded",$fault:"client",...G});Object.setPrototypeOf(this,jJ.prototype),this.Message=G.Message}}class SJ extends l{name="NoSuchPublicKey";$fault="client";Message;constructor(G){super({name:"NoSuchPublicKey",$fault:"client",...G});Object.setPrototypeOf(this,SJ.prototype),this.Message=G.Message}}class TJ extends l{name="TooManyFieldLevelEncryptionEncryptionEntities";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionEncryptionEntities",$fault:"client",...G});Object.setPrototypeOf(this,TJ.prototype),this.Message=G.Message}}class fJ extends l{name="TooManyFieldLevelEncryptionFieldPatterns";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionFieldPatterns",$fault:"client",...G});Object.setPrototypeOf(this,fJ.prototype),this.Message=G.Message}}class BJ extends l{name="TooManyFieldLevelEncryptionProfiles";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionProfiles",$fault:"client",...G});Object.setPrototypeOf(this,BJ.prototype),this.Message=G.Message}}class NJ extends l{name="FunctionAlreadyExists";$fault="client";Message;constructor(G){super({name:"FunctionAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,NJ.prototype),this.Message=G.Message}}class PJ extends l{name="FunctionSizeLimitExceeded";$fault="client";Message;constructor(G){super({name:"FunctionSizeLimitExceeded",$fault:"client",...G});Object.setPrototypeOf(this,PJ.prototype),this.Message=G.Message}}class EJ extends l{name="TooManyFunctions";$fault="client";Message;constructor(G){super({name:"TooManyFunctions",$fault:"client",...G});Object.setPrototypeOf(this,EJ.prototype),this.Message=G.Message}}class CJ extends l{name="TooManyInvalidationsInProgress";$fault="client";Message;constructor(G){super({name:"TooManyInvalidationsInProgress",$fault:"client",...G});Object.setPrototypeOf(this,CJ.prototype),this.Message=G.Message}}class wJ extends l{name="KeyGroupAlreadyExists";$fault="client";Message;constructor(G){super({name:"KeyGroupAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,wJ.prototype),this.Message=G.Message}}class OJ extends l{name="TooManyKeyGroups";$fault="client";Message;constructor(G){super({name:"TooManyKeyGroups",$fault:"client",...G});Object.setPrototypeOf(this,OJ.prototype),this.Message=G.Message}}class _J extends l{name="TooManyPublicKeysInKeyGroup";$fault="client";Message;constructor(G){super({name:"TooManyPublicKeysInKeyGroup",$fault:"client",...G});Object.setPrototypeOf(this,_J.prototype),this.Message=G.Message}}class vJ extends l{name="EntitySizeLimitExceeded";$fault="client";Message;constructor(G){super({name:"EntitySizeLimitExceeded",$fault:"client",...G});Object.setPrototypeOf(this,vJ.prototype),this.Message=G.Message}}class kJ extends l{name="MonitoringSubscriptionAlreadyExists";$fault="client";Message;constructor(G){super({name:"MonitoringSubscriptionAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,kJ.prototype),this.Message=G.Message}}class bJ extends l{name="OriginAccessControlAlreadyExists";$fault="client";Message;constructor(G){super({name:"OriginAccessControlAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,bJ.prototype),this.Message=G.Message}}class hJ extends l{name="TooManyOriginAccessControls";$fault="client";Message;constructor(G){super({name:"TooManyOriginAccessControls",$fault:"client",...G});Object.setPrototypeOf(this,hJ.prototype),this.Message=G.Message}}class yJ extends l{name="OriginRequestPolicyAlreadyExists";$fault="client";Message;constructor(G){super({name:"OriginRequestPolicyAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,yJ.prototype),this.Message=G.Message}}class gJ extends l{name="TooManyCookiesInOriginRequestPolicy";$fault="client";Message;constructor(G){super({name:"TooManyCookiesInOriginRequestPolicy",$fault:"client",...G});Object.setPrototypeOf(this,gJ.prototype),this.Message=G.Message}}class mJ extends l{name="TooManyHeadersInOriginRequestPolicy";$fault="client";Message;constructor(G){super({name:"TooManyHeadersInOriginRequestPolicy",$fault:"client",...G});Object.setPrototypeOf(this,mJ.prototype),this.Message=G.Message}}class xJ extends l{name="TooManyOriginRequestPolicies";$fault="client";Message;constructor(G){super({name:"TooManyOriginRequestPolicies",$fault:"client",...G});Object.setPrototypeOf(this,xJ.prototype),this.Message=G.Message}}class lJ extends l{name="TooManyQueryStringsInOriginRequestPolicy";$fault="client";Message;constructor(G){super({name:"TooManyQueryStringsInOriginRequestPolicy",$fault:"client",...G});Object.setPrototypeOf(this,lJ.prototype),this.Message=G.Message}}class cJ extends l{name="PublicKeyAlreadyExists";$fault="client";Message;constructor(G){super({name:"PublicKeyAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,cJ.prototype),this.Message=G.Message}}class uJ extends l{name="TooManyPublicKeys";$fault="client";Message;constructor(G){super({name:"TooManyPublicKeys",$fault:"client",...G});Object.setPrototypeOf(this,uJ.prototype),this.Message=G.Message}}class aJ extends l{name="RealtimeLogConfigAlreadyExists";$fault="client";Message;constructor(G){super({name:"RealtimeLogConfigAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,aJ.prototype),this.Message=G.Message}}class dJ extends l{name="TooManyRealtimeLogConfigs";$fault="client";Message;constructor(G){super({name:"TooManyRealtimeLogConfigs",$fault:"client",...G});Object.setPrototypeOf(this,dJ.prototype),this.Message=G.Message}}class iJ extends l{name="ResponseHeadersPolicyAlreadyExists";$fault="client";Message;constructor(G){super({name:"ResponseHeadersPolicyAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,iJ.prototype),this.Message=G.Message}}class rJ extends l{name="TooLongCSPInResponseHeadersPolicy";$fault="client";Message;constructor(G){super({name:"TooLongCSPInResponseHeadersPolicy",$fault:"client",...G});Object.setPrototypeOf(this,rJ.prototype),this.Message=G.Message}}class sJ extends l{name="TooManyCustomHeadersInResponseHeadersPolicy";$fault="client";Message;constructor(G){super({name:"TooManyCustomHeadersInResponseHeadersPolicy",$fault:"client",...G});Object.setPrototypeOf(this,sJ.prototype),this.Message=G.Message}}class pJ extends l{name="TooManyRemoveHeadersInResponseHeadersPolicy";$fault="client";Message;constructor(G){super({name:"TooManyRemoveHeadersInResponseHeadersPolicy",$fault:"client",...G});Object.setPrototypeOf(this,pJ.prototype),this.Message=G.Message}}class nJ extends l{name="TooManyResponseHeadersPolicies";$fault="client";Message;constructor(G){super({name:"TooManyResponseHeadersPolicies",$fault:"client",...G});Object.setPrototypeOf(this,nJ.prototype),this.Message=G.Message}}class oJ extends l{name="StreamingDistributionAlreadyExists";$fault="client";Message;constructor(G){super({name:"StreamingDistributionAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,oJ.prototype),this.Message=G.Message}}class tJ extends l{name="TooManyStreamingDistributionCNAMEs";$fault="client";Message;constructor(G){super({name:"TooManyStreamingDistributionCNAMEs",$fault:"client",...G});Object.setPrototypeOf(this,tJ.prototype),this.Message=G.Message}}class eJ extends l{name="TooManyStreamingDistributions";$fault="client";Message;constructor(G){super({name:"TooManyStreamingDistributions",$fault:"client",...G});Object.setPrototypeOf(this,eJ.prototype),this.Message=G.Message}}class GY extends l{name="IllegalDelete";$fault="client";Message;constructor(G){super({name:"IllegalDelete",$fault:"client",...G});Object.setPrototypeOf(this,GY.prototype),this.Message=G.Message}}class WY extends l{name="CloudFrontOriginAccessIdentityInUse";$fault="client";Message;constructor(G){super({name:"CloudFrontOriginAccessIdentityInUse",$fault:"client",...G});Object.setPrototypeOf(this,WY.prototype),this.Message=G.Message}}class JY extends l{name="NoSuchCloudFrontOriginAccessIdentity";$fault="client";Message;constructor(G){super({name:"NoSuchCloudFrontOriginAccessIdentity",$fault:"client",...G});Object.setPrototypeOf(this,JY.prototype),this.Message=G.Message}}class YY extends l{name="DistributionNotDisabled";$fault="client";Message;constructor(G){super({name:"DistributionNotDisabled",$fault:"client",...G});Object.setPrototypeOf(this,YY.prototype),this.Message=G.Message}}class UY extends l{name="FieldLevelEncryptionConfigInUse";$fault="client";Message;constructor(G){super({name:"FieldLevelEncryptionConfigInUse",$fault:"client",...G});Object.setPrototypeOf(this,UY.prototype),this.Message=G.Message}}class XY extends l{name="FieldLevelEncryptionProfileInUse";$fault="client";Message;constructor(G){super({name:"FieldLevelEncryptionProfileInUse",$fault:"client",...G});Object.setPrototypeOf(this,XY.prototype),this.Message=G.Message}}class ZY extends l{name="FunctionInUse";$fault="client";Message;constructor(G){super({name:"FunctionInUse",$fault:"client",...G});Object.setPrototypeOf(this,ZY.prototype),this.Message=G.Message}}class HY extends l{name="NoSuchFunctionExists";$fault="client";Message;constructor(G){super({name:"NoSuchFunctionExists",$fault:"client",...G});Object.setPrototypeOf(this,HY.prototype),this.Message=G.Message}}class VY extends l{name="NoSuchResource";$fault="client";Message;constructor(G){super({name:"NoSuchResource",$fault:"client",...G});Object.setPrototypeOf(this,VY.prototype),this.Message=G.Message}}class $Y extends l{name="ResourceInUse";$fault="client";Message;constructor(G){super({name:"ResourceInUse",$fault:"client",...G});Object.setPrototypeOf(this,$Y.prototype),this.Message=G.Message}}class KY extends l{name="NoSuchMonitoringSubscription";$fault="client";Message;constructor(G){super({name:"NoSuchMonitoringSubscription",$fault:"client",...G});Object.setPrototypeOf(this,KY.prototype),this.Message=G.Message}}class zY extends l{name="NoSuchOriginAccessControl";$fault="client";Message;constructor(G){super({name:"NoSuchOriginAccessControl",$fault:"client",...G});Object.setPrototypeOf(this,zY.prototype),this.Message=G.Message}}class RY extends l{name="OriginAccessControlInUse";$fault="client";Message;constructor(G){super({name:"OriginAccessControlInUse",$fault:"client",...G});Object.setPrototypeOf(this,RY.prototype),this.Message=G.Message}}class QY extends l{name="OriginRequestPolicyInUse";$fault="client";Message;constructor(G){super({name:"OriginRequestPolicyInUse",$fault:"client",...G});Object.setPrototypeOf(this,QY.prototype),this.Message=G.Message}}class FY extends l{name="PublicKeyInUse";$fault="client";Message;constructor(G){super({name:"PublicKeyInUse",$fault:"client",...G});Object.setPrototypeOf(this,FY.prototype),this.Message=G.Message}}class MY extends l{name="RealtimeLogConfigInUse";$fault="client";Message;constructor(G){super({name:"RealtimeLogConfigInUse",$fault:"client",...G});Object.setPrototypeOf(this,MY.prototype),this.Message=G.Message}}class AY extends l{name="ResponseHeadersPolicyInUse";$fault="client";Message;constructor(G){super({name:"ResponseHeadersPolicyInUse",$fault:"client",...G});Object.setPrototypeOf(this,AY.prototype),this.Message=G.Message}}class IY extends l{name="NoSuchStreamingDistribution";$fault="client";Message;constructor(G){super({name:"NoSuchStreamingDistribution",$fault:"client",...G});Object.setPrototypeOf(this,IY.prototype),this.Message=G.Message}}class qY extends l{name="StreamingDistributionNotDisabled";$fault="client";Message;constructor(G){super({name:"StreamingDistributionNotDisabled",$fault:"client",...G});Object.setPrototypeOf(this,qY.prototype),this.Message=G.Message}}class LY extends l{name="NoSuchInvalidation";$fault="client";Message;constructor(G){super({name:"NoSuchInvalidation",$fault:"client",...G});Object.setPrototypeOf(this,LY.prototype),this.Message=G.Message}}class DY extends l{name="TestFunctionFailed";$fault="server";Message;constructor(G){super({name:"TestFunctionFailed",$fault:"server",...G});Object.setPrototypeOf(this,DY.prototype),this.Message=G.Message}}var KA=async(G,W)=>{let J=$A.requestBuilder(G,W),Y={"content-type":"application/xml"};J.bp("/2020-05-31/distribution/{DistributionId}/invalidation"),J.p("DistributionId",()=>G.DistributionId,"{DistributionId}",!1);let U,X;if(G.InvalidationBatch!==void 0)X=vc(G.InvalidationBatch,W),U=uc,X.a("xmlns","http://cloudfront.amazonaws.com/doc/2020-05-31/"),U+=X.toString();return J.m("POST").h(Y).b(U),J.build()};var zA=async(G,W)=>{if(G.statusCode!==201&&G.statusCode>=300)return um(G,W);let J=a({$metadata:i(G),[xc]:[,G.headers[cc]]}),Y=UA(await e9.parseXmlBody(G.body,W));return J.Invalidation=hc(Y,W),J};var um=async(G,W)=>{let J={...G,body:await e9.parseXmlErrorBody(G.body,W)},Y=e9.loadRestXmlErrorCode(G,J.body);switch(Y){case"AccessDenied":case"com.amazonaws.cloudfront#AccessDenied":throw await dm(J,W);case"IllegalUpdate":case"com.amazonaws.cloudfront#IllegalUpdate":throw await Dx(J,W);case"InvalidArgument":case"com.amazonaws.cloudfront#InvalidArgument":throw await Sx(J,W);case"NoSuchDistribution":case"com.amazonaws.cloudfront#NoSuchDistribution":throw await Gl(J,W);case"TooManyDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyDistributionCNAMEs":throw await cl(J,W);case"CNAMEAlreadyExists":case"com.amazonaws.cloudfront#CNAMEAlreadyExists":throw await Gx(J,W);case"DistributionAlreadyExists":case"com.amazonaws.cloudfront#DistributionAlreadyExists":throw await Yx(J,W);case"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":case"com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":throw await qx(J,W);case"InconsistentQuantities":case"com.amazonaws.cloudfront#InconsistentQuantities":throw await jx(J,W);case"InvalidDefaultRootObject":case"com.amazonaws.cloudfront#InvalidDefaultRootObject":throw await Tx(J,W);case"InvalidErrorCode":case"com.amazonaws.cloudfront#InvalidErrorCode":throw await Bx(J,W);case"InvalidForwardCookies":case"com.amazonaws.cloudfront#InvalidForwardCookies":throw await Nx(J,W);case"InvalidFunctionAssociation":case"com.amazonaws.cloudfront#InvalidFunctionAssociation":throw await Px(J,W);case"InvalidGeoRestrictionParameter":case"com.amazonaws.cloudfront#InvalidGeoRestrictionParameter":throw await Ex(J,W);case"InvalidHeadersForS3Origin":case"com.amazonaws.cloudfront#InvalidHeadersForS3Origin":throw await Cx(J,W);case"InvalidIfMatchVersion":case"com.amazonaws.cloudfront#InvalidIfMatchVersion":throw await wx(J,W);case"InvalidLambdaFunctionAssociation":case"com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation":throw await Ox(J,W);case"InvalidLocationCode":case"com.amazonaws.cloudfront#InvalidLocationCode":throw await _x(J,W);case"InvalidMinimumProtocolVersion":case"com.amazonaws.cloudfront#InvalidMinimumProtocolVersion":throw await vx(J,W);case"InvalidOrigin":case"com.amazonaws.cloudfront#InvalidOrigin":throw await kx(J,W);case"InvalidOriginAccessControl":case"com.amazonaws.cloudfront#InvalidOriginAccessControl":throw await bx(J,W);case"InvalidOriginAccessIdentity":case"com.amazonaws.cloudfront#InvalidOriginAccessIdentity":throw await hx(J,W);case"InvalidOriginKeepaliveTimeout":case"com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout":throw await yx(J,W);case"InvalidOriginReadTimeout":case"com.amazonaws.cloudfront#InvalidOriginReadTimeout":throw await gx(J,W);case"InvalidProtocolSettings":case"com.amazonaws.cloudfront#InvalidProtocolSettings":throw await mx(J,W);case"InvalidQueryStringParameters":case"com.amazonaws.cloudfront#InvalidQueryStringParameters":throw await xx(J,W);case"InvalidRelativePath":case"com.amazonaws.cloudfront#InvalidRelativePath":throw await lx(J,W);case"InvalidRequiredProtocol":case"com.amazonaws.cloudfront#InvalidRequiredProtocol":throw await cx(J,W);case"InvalidResponseCode":case"com.amazonaws.cloudfront#InvalidResponseCode":throw await ux(J,W);case"InvalidTTLOrder":case"com.amazonaws.cloudfront#InvalidTTLOrder":throw await dx(J,W);case"InvalidViewerCertificate":case"com.amazonaws.cloudfront#InvalidViewerCertificate":throw await ix(J,W);case"InvalidWebACLId":case"com.amazonaws.cloudfront#InvalidWebACLId":throw await rx(J,W);case"MissingBody":case"com.amazonaws.cloudfront#MissingBody":throw await px(J,W);case"NoSuchCachePolicy":case"com.amazonaws.cloudfront#NoSuchCachePolicy":throw await ox(J,W);case"NoSuchFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":throw await Wl(J,W);case"NoSuchOrigin":case"com.amazonaws.cloudfront#NoSuchOrigin":throw await Zl(J,W);case"NoSuchOriginRequestPolicy":case"com.amazonaws.cloudfront#NoSuchOriginRequestPolicy":throw await Vl(J,W);case"NoSuchRealtimeLogConfig":case"com.amazonaws.cloudfront#NoSuchRealtimeLogConfig":throw await Kl(J,W);case"NoSuchResponseHeadersPolicy":case"com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":throw await Rl(J,W);case"PreconditionFailed":case"com.amazonaws.cloudfront#PreconditionFailed":throw await ql(J,W);case"RealtimeLogConfigOwnerMismatch":case"com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":throw await fl(J,W);case"TooManyCacheBehaviors":case"com.amazonaws.cloudfront#TooManyCacheBehaviors":throw await vl(J,W);case"TooManyCertificates":case"com.amazonaws.cloudfront#TooManyCertificates":throw await bl(J,W);case"TooManyCookieNamesInWhiteList":case"com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList":throw await gl(J,W);case"TooManyDistributions":case"com.amazonaws.cloudfront#TooManyDistributions":throw await ul(J,W);case"TooManyDistributionsAssociatedToCachePolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy":throw await al(J,W);case"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":throw await dl(J,W);case"TooManyDistributionsAssociatedToKeyGroup":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":throw await il(J,W);case"TooManyDistributionsAssociatedToOriginAccessControl":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":throw await rl(J,W);case"TooManyDistributionsAssociatedToOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":throw await sl(J,W);case"TooManyDistributionsAssociatedToResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":throw await pl(J,W);case"TooManyDistributionsWithFunctionAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":throw await nl(J,W);case"TooManyDistributionsWithLambdaAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations":throw await ol(J,W);case"TooManyDistributionsWithSingleFunctionARN":case"com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN":throw await tl(J,W);case"TooManyFunctionAssociations":case"com.amazonaws.cloudfront#TooManyFunctionAssociations":throw await Xc(J,W);case"TooManyHeadersInForwardedValues":case"com.amazonaws.cloudfront#TooManyHeadersInForwardedValues":throw await Vc(J,W);case"TooManyKeyGroupsAssociatedToDistribution":case"com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution":throw await Rc(J,W);case"TooManyLambdaFunctionAssociations":case"com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations":throw await Qc(J,W);case"TooManyOriginCustomHeaders":case"com.amazonaws.cloudfront#TooManyOriginCustomHeaders":throw await Mc(J,W);case"TooManyOriginGroupsPerDistribution":case"com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution":throw await Ac(J,W);case"TooManyOrigins":case"com.amazonaws.cloudfront#TooManyOrigins":throw await qc(J,W);case"TooManyQueryStringParameters":case"com.amazonaws.cloudfront#TooManyQueryStringParameters":throw await jc(J,W);case"TooManyTrustedSigners":case"com.amazonaws.cloudfront#TooManyTrustedSigners":throw await Cc(J,W);case"TrustedKeyGroupDoesNotExist":case"com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist":throw await wc(J,W);case"TrustedSignerDoesNotExist":case"com.amazonaws.cloudfront#TrustedSignerDoesNotExist":throw await Oc(J,W);case"EntityAlreadyExists":case"com.amazonaws.cloudfront#EntityAlreadyExists":throw await Xx(J,W);case"EntityLimitExceeded":case"com.amazonaws.cloudfront#EntityLimitExceeded":throw await Zx(J,W);case"InvalidTagging":case"com.amazonaws.cloudfront#InvalidTagging":throw await ax(J,W);case"UnsupportedOperation":case"com.amazonaws.cloudfront#UnsupportedOperation":throw await _c(J,W);case"CachePolicyAlreadyExists":case"com.amazonaws.cloudfront#CachePolicyAlreadyExists":throw await rm(J,W);case"TooManyCachePolicies":case"com.amazonaws.cloudfront#TooManyCachePolicies":throw await kl(J,W);case"TooManyCookiesInCachePolicy":case"com.amazonaws.cloudfront#TooManyCookiesInCachePolicy":throw await ml(J,W);case"TooManyHeadersInCachePolicy":case"com.amazonaws.cloudfront#TooManyHeadersInCachePolicy":throw await Hc(J,W);case"TooManyQueryStringsInCachePolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInCachePolicy":throw await Sc(J,W);case"CloudFrontOriginAccessIdentityAlreadyExists":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityAlreadyExists":throw await tm(J,W);case"TooManyCloudFrontOriginAccessIdentities":case"com.amazonaws.cloudfront#TooManyCloudFrontOriginAccessIdentities":throw await hl(J,W);case"ContinuousDeploymentPolicyAlreadyExists":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyAlreadyExists":throw await Wx(J,W);case"StagingDistributionInUse":case"com.amazonaws.cloudfront#StagingDistributionInUse":throw await El(J,W);case"TooManyContinuousDeploymentPolicies":case"com.amazonaws.cloudfront#TooManyContinuousDeploymentPolicies":throw await yl(J,W);case"ContinuousDeploymentPolicyInUse":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":throw await Jx(J,W);case"EntityNotFound":case"com.amazonaws.cloudfront#EntityNotFound":throw await Hx(J,W);case"IllegalOriginAccessConfiguration":case"com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":throw await Lx(J,W);case"InvalidDomainNameForOriginAccessControl":case"com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl":throw await fx(J,W);case"NoSuchContinuousDeploymentPolicy":case"com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":throw await ex(J,W);case"FieldLevelEncryptionConfigAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigAlreadyExists":throw await $x(J,W);case"NoSuchFieldLevelEncryptionProfile":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionProfile":throw await Jl(J,W);case"QueryArgProfileEmpty":case"com.amazonaws.cloudfront#QueryArgProfileEmpty":throw await jl(J,W);case"TooManyFieldLevelEncryptionConfigs":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionConfigs":throw await el(J,W);case"TooManyFieldLevelEncryptionContentTypeProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionContentTypeProfiles":throw await Gc(J,W);case"TooManyFieldLevelEncryptionQueryArgProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionQueryArgProfiles":throw await Uc(J,W);case"FieldLevelEncryptionProfileAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileAlreadyExists":throw await zx(J,W);case"FieldLevelEncryptionProfileSizeExceeded":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileSizeExceeded":throw await Qx(J,W);case"NoSuchPublicKey":case"com.amazonaws.cloudfront#NoSuchPublicKey":throw await $l(J,W);case"TooManyFieldLevelEncryptionEncryptionEntities":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionEncryptionEntities":throw await Wc(J,W);case"TooManyFieldLevelEncryptionFieldPatterns":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionFieldPatterns":throw await Jc(J,W);case"TooManyFieldLevelEncryptionProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionProfiles":throw await Yc(J,W);case"FunctionAlreadyExists":case"com.amazonaws.cloudfront#FunctionAlreadyExists":throw await Fx(J,W);case"FunctionSizeLimitExceeded":case"com.amazonaws.cloudfront#FunctionSizeLimitExceeded":throw await Ax(J,W);case"TooManyFunctions":case"com.amazonaws.cloudfront#TooManyFunctions":throw await Zc(J,W);case"BatchTooLarge":case"com.amazonaws.cloudfront#BatchTooLarge":throw await im(J,W);case"TooManyInvalidationsInProgress":case"com.amazonaws.cloudfront#TooManyInvalidationsInProgress":throw await Kc(J,W);case"KeyGroupAlreadyExists":case"com.amazonaws.cloudfront#KeyGroupAlreadyExists":throw await sx(J,W);case"TooManyKeyGroups":case"com.amazonaws.cloudfront#TooManyKeyGroups":throw await zc(J,W);case"TooManyPublicKeysInKeyGroup":case"com.amazonaws.cloudfront#TooManyPublicKeysInKeyGroup":throw await Dc(J,W);case"EntitySizeLimitExceeded":case"com.amazonaws.cloudfront#EntitySizeLimitExceeded":throw await Vx(J,W);case"MonitoringSubscriptionAlreadyExists":case"com.amazonaws.cloudfront#MonitoringSubscriptionAlreadyExists":throw await nx(J,W);case"OriginAccessControlAlreadyExists":case"com.amazonaws.cloudfront#OriginAccessControlAlreadyExists":throw await Fl(J,W);case"TooManyOriginAccessControls":case"com.amazonaws.cloudfront#TooManyOriginAccessControls":throw await Fc(J,W);case"OriginRequestPolicyAlreadyExists":case"com.amazonaws.cloudfront#OriginRequestPolicyAlreadyExists":throw await Al(J,W);case"TooManyCookiesInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyCookiesInOriginRequestPolicy":throw await xl(J,W);case"TooManyHeadersInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyHeadersInOriginRequestPolicy":throw await $c(J,W);case"TooManyOriginRequestPolicies":case"com.amazonaws.cloudfront#TooManyOriginRequestPolicies":throw await Ic(J,W);case"TooManyQueryStringsInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInOriginRequestPolicy":throw await Tc(J,W);case"PublicKeyAlreadyExists":case"com.amazonaws.cloudfront#PublicKeyAlreadyExists":throw await Ll(J,W);case"TooManyPublicKeys":case"com.amazonaws.cloudfront#TooManyPublicKeys":throw await Lc(J,W);case"RealtimeLogConfigAlreadyExists":case"com.amazonaws.cloudfront#RealtimeLogConfigAlreadyExists":throw await Sl(J,W);case"TooManyRealtimeLogConfigs":case"com.amazonaws.cloudfront#TooManyRealtimeLogConfigs":throw await fc(J,W);case"ResponseHeadersPolicyAlreadyExists":case"com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists":throw await Nl(J,W);case"TooLongCSPInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy":throw await _l(J,W);case"TooManyCustomHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy":throw await ll(J,W);case"TooManyRemoveHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyRemoveHeadersInResponseHeadersPolicy":throw await Bc(J,W);case"TooManyResponseHeadersPolicies":case"com.amazonaws.cloudfront#TooManyResponseHeadersPolicies":throw await Nc(J,W);case"StreamingDistributionAlreadyExists":case"com.amazonaws.cloudfront#StreamingDistributionAlreadyExists":throw await Cl(J,W);case"TooManyStreamingDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs":throw await Pc(J,W);case"TooManyStreamingDistributions":case"com.amazonaws.cloudfront#TooManyStreamingDistributions":throw await Ec(J,W);case"CannotDeleteEntityWhileInUse":case"com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse":throw await nm(J,W);case"IllegalDelete":case"com.amazonaws.cloudfront#IllegalDelete":throw await Ix(J,W);case"CachePolicyInUse":case"com.amazonaws.cloudfront#CachePolicyInUse":throw await sm(J,W);case"CloudFrontOriginAccessIdentityInUse":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityInUse":throw await em(J,W);case"NoSuchCloudFrontOriginAccessIdentity":case"com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":throw await tx(J,W);case"DistributionNotDisabled":case"com.amazonaws.cloudfront#DistributionNotDisabled":throw await Ux(J,W);case"FieldLevelEncryptionConfigInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigInUse":throw await Kx(J,W);case"FieldLevelEncryptionProfileInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileInUse":throw await Rx(J,W);case"FunctionInUse":case"com.amazonaws.cloudfront#FunctionInUse":throw await Mx(J,W);case"NoSuchFunctionExists":case"com.amazonaws.cloudfront#NoSuchFunctionExists":throw await Yl(J,W);case"NoSuchResource":case"com.amazonaws.cloudfront#NoSuchResource":throw await zl(J,W);case"ResourceInUse":case"com.amazonaws.cloudfront#ResourceInUse":throw await Bl(J,W);case"NoSuchMonitoringSubscription":case"com.amazonaws.cloudfront#NoSuchMonitoringSubscription":throw await Xl(J,W);case"NoSuchOriginAccessControl":case"com.amazonaws.cloudfront#NoSuchOriginAccessControl":throw await Hl(J,W);case"OriginAccessControlInUse":case"com.amazonaws.cloudfront#OriginAccessControlInUse":throw await Ml(J,W);case"OriginRequestPolicyInUse":case"com.amazonaws.cloudfront#OriginRequestPolicyInUse":throw await Il(J,W);case"PublicKeyInUse":case"com.amazonaws.cloudfront#PublicKeyInUse":throw await Dl(J,W);case"RealtimeLogConfigInUse":case"com.amazonaws.cloudfront#RealtimeLogConfigInUse":throw await Tl(J,W);case"ResponseHeadersPolicyInUse":case"com.amazonaws.cloudfront#ResponseHeadersPolicyInUse":throw await Pl(J,W);case"NoSuchStreamingDistribution":case"com.amazonaws.cloudfront#NoSuchStreamingDistribution":throw await Ql(J,W);case"StreamingDistributionNotDisabled":case"com.amazonaws.cloudfront#StreamingDistributionNotDisabled":throw await wl(J,W);case"NoSuchInvalidation":case"com.amazonaws.cloudfront#NoSuchInvalidation":throw await Ul(J,W);case"TestFunctionFailed":case"com.amazonaws.cloudfront#TestFunctionFailed":throw await Ol(J,W);case"CannotChangeImmutablePublicKeyFields":case"com.amazonaws.cloudfront#CannotChangeImmutablePublicKeyFields":throw await pm(J,W);case"CannotUpdateEntityWhileInUse":case"com.amazonaws.cloudfront#CannotUpdateEntityWhileInUse":throw await om(J,W);default:let U=J.body;return am({output:G,parsedBody:U.Error,errorCode:Y})}},am=HA(l),dm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new vG({$metadata:i(G),...J});return d(U,G.body.Error)},im=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new gG({$metadata:i(G),...J});return d(U,G.body.Error)},rm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new mG({$metadata:i(G),...J});return d(U,G.body.Error)},sm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new xG({$metadata:i(G),...J});return d(U,G.body.Error)},pm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new lG({$metadata:i(G),...J});return d(U,G.body.Error)},nm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new cG({$metadata:i(G),...J});return d(U,G.body.Error)},om=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new uG({$metadata:i(G),...J});return d(U,G.body.Error)},tm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new UJ({$metadata:i(G),...J});return d(U,G.body.Error)},em=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new WY({$metadata:i(G),...J});return d(U,G.body.Error)},Gx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new aG({$metadata:i(G),...J});return d(U,G.body.Error)},Wx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new ZJ({$metadata:i(G),...J});return d(U,G.body.Error)},Jx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new $J({$metadata:i(G),...J});return d(U,G.body.Error)},Yx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new dG({$metadata:i(G),...J});return d(U,G.body.Error)},Ux=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new YY({$metadata:i(G),...J});return d(U,G.body.Error)},Xx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new nW({$metadata:i(G),...J});return d(U,G.body.Error)},Zx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new oW({$metadata:i(G),...J});return d(U,G.body.Error)},Hx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new KJ({$metadata:i(G),...J});return d(U,G.body.Error)},Vx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new vJ({$metadata:i(G),...J});return d(U,G.body.Error)},$x=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new FJ({$metadata:i(G),...J});return d(U,G.body.Error)},Kx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new UY({$metadata:i(G),...J});return d(U,G.body.Error)},zx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new DJ({$metadata:i(G),...J});return d(U,G.body.Error)},Rx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new XY({$metadata:i(G),...J});return d(U,G.body.Error)},Qx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new jJ({$metadata:i(G),...J});return d(U,G.body.Error)},Fx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new NJ({$metadata:i(G),...J});return d(U,G.body.Error)},Mx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new ZY({$metadata:i(G),...J});return d(U,G.body.Error)},Ax=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new PJ({$metadata:i(G),...J});return d(U,G.body.Error)},Ix=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new GY({$metadata:i(G),...J});return d(U,G.body.Error)},qx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new iG({$metadata:i(G),...J});return d(U,G.body.Error)},Lx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new zJ({$metadata:i(G),...J});return d(U,G.body.Error)},Dx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new kG({$metadata:i(G),...J});return d(U,G.body.Error)},jx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new rG({$metadata:i(G),...J});return d(U,G.body.Error)},Sx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new bG({$metadata:i(G),...J});return d(U,G.body.Error)},Tx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new sG({$metadata:i(G),...J});return d(U,G.body.Error)},fx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new RJ({$metadata:i(G),...J});return d(U,G.body.Error)},Bx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new pG({$metadata:i(G),...J});return d(U,G.body.Error)},Nx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new nG({$metadata:i(G),...J});return d(U,G.body.Error)},Px=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new oG({$metadata:i(G),...J});return d(U,G.body.Error)},Ex=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new tG({$metadata:i(G),...J});return d(U,G.body.Error)},Cx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new eG({$metadata:i(G),...J});return d(U,G.body.Error)},wx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new GW({$metadata:i(G),...J});return d(U,G.body.Error)},Ox=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new WW({$metadata:i(G),...J});return d(U,G.body.Error)},_x=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new JW({$metadata:i(G),...J});return d(U,G.body.Error)},vx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new YW({$metadata:i(G),...J});return d(U,G.body.Error)},kx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new UW({$metadata:i(G),...J});return d(U,G.body.Error)},bx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new XW({$metadata:i(G),...J});return d(U,G.body.Error)},hx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new ZW({$metadata:i(G),...J});return d(U,G.body.Error)},yx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new HW({$metadata:i(G),...J});return d(U,G.body.Error)},gx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new VW({$metadata:i(G),...J});return d(U,G.body.Error)},mx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new $W({$metadata:i(G),...J});return d(U,G.body.Error)},xx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new KW({$metadata:i(G),...J});return d(U,G.body.Error)},lx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new zW({$metadata:i(G),...J});return d(U,G.body.Error)},cx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new RW({$metadata:i(G),...J});return d(U,G.body.Error)},ux=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new QW({$metadata:i(G),...J});return d(U,G.body.Error)},ax=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new tW({$metadata:i(G),...J});return d(U,G.body.Error)},dx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new FW({$metadata:i(G),...J});return d(U,G.body.Error)},ix=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new MW({$metadata:i(G),...J});return d(U,G.body.Error)},rx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new AW({$metadata:i(G),...J});return d(U,G.body.Error)},sx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new wJ({$metadata:i(G),...J});return d(U,G.body.Error)},px=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new IW({$metadata:i(G),...J});return d(U,G.body.Error)},nx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new kJ({$metadata:i(G),...J});return d(U,G.body.Error)},ox=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new qW({$metadata:i(G),...J});return d(U,G.body.Error)},tx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new JY({$metadata:i(G),...J});return d(U,G.body.Error)},ex=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new QJ({$metadata:i(G),...J});return d(U,G.body.Error)},Gl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new hG({$metadata:i(G),...J});return d(U,G.body.Error)},Wl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new LW({$metadata:i(G),...J});return d(U,G.body.Error)},Jl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new MJ({$metadata:i(G),...J});return d(U,G.body.Error)},Yl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new HY({$metadata:i(G),...J});return d(U,G.body.Error)},Ul=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new LY({$metadata:i(G),...J});return d(U,G.body.Error)},Xl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new KY({$metadata:i(G),...J});return d(U,G.body.Error)},Zl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new DW({$metadata:i(G),...J});return d(U,G.body.Error)},Hl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new zY({$metadata:i(G),...J});return d(U,G.body.Error)},Vl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new jW({$metadata:i(G),...J});return d(U,G.body.Error)},$l=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new SJ({$metadata:i(G),...J});return d(U,G.body.Error)},Kl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new SW({$metadata:i(G),...J});return d(U,G.body.Error)},zl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new VY({$metadata:i(G),...J});return d(U,G.body.Error)},Rl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new TW({$metadata:i(G),...J});return d(U,G.body.Error)},Ql=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new IY({$metadata:i(G),...J});return d(U,G.body.Error)},Fl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new bJ({$metadata:i(G),...J});return d(U,G.body.Error)},Ml=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new RY({$metadata:i(G),...J});return d(U,G.body.Error)},Al=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new yJ({$metadata:i(G),...J});return d(U,G.body.Error)},Il=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new QY({$metadata:i(G),...J});return d(U,G.body.Error)},ql=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new fW({$metadata:i(G),...J});return d(U,G.body.Error)},Ll=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new cJ({$metadata:i(G),...J});return d(U,G.body.Error)},Dl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new FY({$metadata:i(G),...J});return d(U,G.body.Error)},jl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new AJ({$metadata:i(G),...J});return d(U,G.body.Error)},Sl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new aJ({$metadata:i(G),...J});return d(U,G.body.Error)},Tl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new MY({$metadata:i(G),...J});return d(U,G.body.Error)},fl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new BW({$metadata:i(G),...J});return d(U,G.body.Error)},Bl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new $Y({$metadata:i(G),...J});return d(U,G.body.Error)},Nl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new iJ({$metadata:i(G),...J});return d(U,G.body.Error)},Pl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new AY({$metadata:i(G),...J});return d(U,G.body.Error)},El=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new HJ({$metadata:i(G),...J});return d(U,G.body.Error)},Cl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new oJ({$metadata:i(G),...J});return d(U,G.body.Error)},wl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new qY({$metadata:i(G),...J});return d(U,G.body.Error)},Ol=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new DY({$metadata:i(G),...J});return d(U,G.body.Error)},_l=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new rJ({$metadata:i(G),...J});return d(U,G.body.Error)},vl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new NW({$metadata:i(G),...J});return d(U,G.body.Error)},kl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new GJ({$metadata:i(G),...J});return d(U,G.body.Error)},bl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new PW({$metadata:i(G),...J});return d(U,G.body.Error)},hl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new XJ({$metadata:i(G),...J});return d(U,G.body.Error)},yl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new VJ({$metadata:i(G),...J});return d(U,G.body.Error)},gl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new EW({$metadata:i(G),...J});return d(U,G.body.Error)},ml=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new WJ({$metadata:i(G),...J});return d(U,G.body.Error)},xl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new gJ({$metadata:i(G),...J});return d(U,G.body.Error)},ll=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new sJ({$metadata:i(G),...J});return d(U,G.body.Error)},cl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new yG({$metadata:i(G),...J});return d(U,G.body.Error)},ul=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new CW({$metadata:i(G),...J});return d(U,G.body.Error)},al=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new wW({$metadata:i(G),...J});return d(U,G.body.Error)},dl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new OW({$metadata:i(G),...J});return d(U,G.body.Error)},il=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new _W({$metadata:i(G),...J});return d(U,G.body.Error)},rl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new vW({$metadata:i(G),...J});return d(U,G.body.Error)},sl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new kW({$metadata:i(G),...J});return d(U,G.body.Error)},pl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new bW({$metadata:i(G),...J});return d(U,G.body.Error)},nl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new hW({$metadata:i(G),...J});return d(U,G.body.Error)},ol=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new yW({$metadata:i(G),...J});return d(U,G.body.Error)},tl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new gW({$metadata:i(G),...J});return d(U,G.body.Error)},el=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new IJ({$metadata:i(G),...J});return d(U,G.body.Error)},Gc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new qJ({$metadata:i(G),...J});return d(U,G.body.Error)},Wc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new TJ({$metadata:i(G),...J});return d(U,G.body.Error)},Jc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new fJ({$metadata:i(G),...J});return d(U,G.body.Error)},Yc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new BJ({$metadata:i(G),...J});return d(U,G.body.Error)},Uc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new LJ({$metadata:i(G),...J});return d(U,G.body.Error)},Xc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new mW({$metadata:i(G),...J});return d(U,G.body.Error)},Zc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new EJ({$metadata:i(G),...J});return d(U,G.body.Error)},Hc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new JJ({$metadata:i(G),...J});return d(U,G.body.Error)},Vc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new xW({$metadata:i(G),...J});return d(U,G.body.Error)},$c=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new mJ({$metadata:i(G),...J});return d(U,G.body.Error)},Kc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new CJ({$metadata:i(G),...J});return d(U,G.body.Error)},zc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new OJ({$metadata:i(G),...J});return d(U,G.body.Error)},Rc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new lW({$metadata:i(G),...J});return d(U,G.body.Error)},Qc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new cW({$metadata:i(G),...J});return d(U,G.body.Error)},Fc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new hJ({$metadata:i(G),...J});return d(U,G.body.Error)},Mc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new uW({$metadata:i(G),...J});return d(U,G.body.Error)},Ac=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new aW({$metadata:i(G),...J});return d(U,G.body.Error)},Ic=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new xJ({$metadata:i(G),...J});return d(U,G.body.Error)},qc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new dW({$metadata:i(G),...J});return d(U,G.body.Error)},Lc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new uJ({$metadata:i(G),...J});return d(U,G.body.Error)},Dc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new _J({$metadata:i(G),...J});return d(U,G.body.Error)},jc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new iW({$metadata:i(G),...J});return d(U,G.body.Error)},Sc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new YJ({$metadata:i(G),...J});return d(U,G.body.Error)},Tc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new lJ({$metadata:i(G),...J});return d(U,G.body.Error)},fc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new dJ({$metadata:i(G),...J});return d(U,G.body.Error)},Bc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new pJ({$metadata:i(G),...J});return d(U,G.body.Error)},Nc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new nJ({$metadata:i(G),...J});return d(U,G.body.Error)},Pc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new tJ({$metadata:i(G),...J});return d(U,G.body.Error)},Ec=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new eJ({$metadata:i(G),...J});return d(U,G.body.Error)},Cc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new rW({$metadata:i(G),...J});return d(U,G.body.Error)},wc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new sW({$metadata:i(G),...J});return d(U,G.body.Error)},Oc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new pW({$metadata:i(G),...J});return d(U,G.body.Error)},_c=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new eW({$metadata:i(G),...J});return d(U,G.body.Error)};var vc=(G,W)=>{let J=new c4(jY);if(G[c2]!=null)J.c(bc(G[c2],W).n(c2));if(G[o9]!=null)J.c(c4.of(RA,G[o9]).n(o9));return J};var kc=(G,W)=>{return G.filter((J)=>J!=null).map((J)=>{return c4.of(RA,J).n(nZ)})},bc=(G,W)=>{let J=new c4(c2);if(G[t9]!=null)J.c(c4.of(lc,String(G[t9])).n(t9));return J.lc(G,"Items","Items",()=>kc(G[n9],W)),J};var hc=(G,W)=>{let J={};if(G[sZ]!=null)J[sZ]=c(G[sZ]);if(G[pZ]!=null)J[pZ]=c(G[pZ]);if(G[rZ]!=null)J[rZ]=YA(ZA(G[rZ]));if(G[jY]!=null)J[jY]=yc(G[jY],W);return J},yc=(G,W)=>{let J={};if(G[c2]!=null)J[c2]=mc(G[c2],W);if(G[o9]!=null)J[o9]=c(G[o9]);return J};var gc=(G,W)=>{return(G||[]).filter((J)=>J!=null).map((J)=>{return c(J)})},mc=(G,W)=>{let J={};if(G[t9]!=null)J[t9]=XA(G[t9]);if(G.Items==="")J[n9]=[];else if(G[n9]!=null&&G[n9][nZ]!=null)J[n9]=gc(VA(G[n9][nZ]),W);return J};var i=(G)=>({httpStatusCode:G.statusCode,requestId:G.headers["x-amzn-requestid"]??G.headers["x-amzn-request-id"]??G.headers["x-amz-request-id"],extendedRequestId:G.headers["x-amz-id-2"],cfId:G.headers["x-amz-cf-id"]});var o9="CallerReference";var rZ="CreateTime";var n9="Items";var jY="InvalidationBatch";var sZ="Id";var xc="Location";var M="Message";var c2="Paths";var nZ="Path";var t9="Quantity";var pZ="Status";var lc="integer";var cc="location";var RA="string",uc='<?xml version="1.0" encoding="UTF-8"?>';var MA=Y1(ac(),1);class oZ extends FA.classBuilder().ep(OF).m(function(G,W,J,Y){return[MA.getSerdePlugin(J,this.serialize,this.deserialize),QA(J,G.getEndpointParameterInstructions())]}).s("Cloudfront2020_05_31","CreateInvalidation",{}).n("CloudFrontClient","CreateInvalidationCommand").f(void 0,void 0).ser(KA).de(zA).build(){}import{intro as G5,italic as _7,log as U1,outro as d0,prompts as v7,runCommand as u2,underline as AA}from"@stacksjs/cli";import{addJumpBox as dc,deleteCdkRemnants as ic,deleteIamUsers as rc,deleteJumpBox as tZ,deleteLogGroups as sc,deleteParameterStore as pc,deleteStacksBuckets as nc,deleteStacksFunctions as oc,deleteSubnets as tc,deleteVpcs as ec,getCloudFrontDistributionId as Gu,getJumpBoxInstanceId as Wu}from"@stacksjs/cloud";import{path as a2}from"@stacksjs/path";import{ExitCode as h0}from"@stacksjs/types";import{loop as Ju}from"@stacksjs/utils";function el1(G){let W={cloud:"Interact with the Stacks Cloud",ssh:"SSH into the Stacks Cloud",add:"Add a resource to the Stacks Cloud",remove:"Remove the Stacks Cloud. In case it fails, try again",optimizeCost:"Remove certain resources that may be re-applied at a later time",cleanUp:"Remove all resources that were retained during the cloud deletion",invalidateCache:"Invalidate the CloudFront cache",diff:"Show the diff of the current, undeployed cloud changes ",paths:"The paths to invalidate",project:"Target a specific project",verbose:"Enable verbose output"};G.command("cloud",W.cloud).option("--ssh",W.ssh,{default:!1}).option("--connect",W.ssh,{default:!1}).option("--invalidate-cache",W.invalidateCache,{default:!1}).option("--paths [paths]",W.paths).option("--diff",W.diff,{default:!1}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud` ...",J);let Y=performance.now();if(J.ssh||J.connect){let U=await Wu(),X=await u2(`aws ssm start-session --target ${U}`,{...J,cwd:a2.projectPath(),stdin:"pipe"});if(X.isErr())await d0("While running the cloud command, there was an issue",{startTime:Y,useSeconds:!0},X.error),b0.exit(h0.FatalError);await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}if(J.invalidateCache){let{confirm:U}=await v7({name:"confirm",type:"confirm",message:"Would you like to invalidate the CDN (CloudFront) cache?"});if(!U)await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success);U1.info("Invalidating the CloudFront cache...");let X=new dZ,V={DistributionId:await Gu(),InvalidationBatch:{CallerReference:`${Date.now()}`,Paths:{Quantity:1,Items:["/*"]}}},$=new oZ(V);X.send($).then((K)=>console.log(K),(K)=>console.log(K,K.stack)),await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}if(J.diff){let U=await u2("bunx --bun cdk diff",{cwd:a2.frameworkCloudPath(),stdin:"pipe"});if(U.isErr())await d0("While running the cloud diff command, there was an issue",{startTime:Y,useSeconds:!0},U.error),b0.exit(h0.FatalError);await d0("Showing diff of the current, undeployed cloud changes",{startTime:Y,useSeconds:!0}),console.log(U.value),b0.exit(h0.Success)}U1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),b0.exit(h0.Success)}),G.command("cloud:add",W.add).option("--jump-box","Remove the jump-box",{default:!1}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:add` ...",J);let Y=await G5("buddy cloud:add");if(J.jumpBox){let{confirm:U}=await v7({name:"confirm",type:"confirm",message:"Would you like to add a jump-box to your cloud?"});if(!U)await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success);U1.info("The jump-box is getting added to your cloud resources..."),U1.info("This takes a few moments, please be patient."),await new Promise((Z)=>setTimeout(Z,2000));let X=await dc();if(X.isErr())await d0("While running the cloud:add command, there was an issue",{startTime:Y,useSeconds:!0},X.error),b0.exit(h0.FatalError);U1.info(_7("View the jump-box in the AWS console:")),U1.info(AA("https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#Instances:instanceState=running")),U1.info(_7("Once it finished initializing, you may SSH into it:")),U1.info(AA("buddy cloud --ssh")),await d0("Your jump-box was added.",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}U1.info("This functionality is not yet implemented."),b0.exit(h0.Success)}),G.command("cloud:remove",W.remove).alias("cloud:destroy").alias("cloud:rm").alias("undeploy").option("--jump-box","Remove the jump-box",{default:!1}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:remove` ...",J);let Y=await G5("buddy cloud:remove");if(J.jumpBox){let{confirm:X}=await v7({name:"confirm",type:"confirm",message:"Would you like to remove your jump-box for now?"});if(!X)await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success);let Z=await tZ();if(Z.isErr())await d0("While removing your jump-box, there was an issue",{startTime:Y,useSeconds:!0},Z.error),b0.exit(h0.FatalError);await d0("Your jump-box was removed.",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}console.log(` ${_7("\u2139\uFE0F Removing your cloud resources takes a while to complete.")}`),console.log(` ${_7("Please note, your backups will not yet be deleted. Though,")}`),console.log(` ${_7("Backups are scheduled to delete themselves in 30 days.")}`),await new Promise((X)=>setTimeout(X,2000));let U=await u2("bunx --bun cdk destroy",{...J,cwd:a2.frameworkCloudPath(),stdin:"inherit"});if(U.isErr())await d0('While running the cloud:remove ("undeploy") command, there was an issue',{startTime:Y,useSeconds:!0},U.error),b0.exit(h0.FatalError);await u2("buddy cloud:cleanup",{...J,cwd:a2.projectPath(),stdin:"inherit"});try{U1.info("Finalizing the removal of your cloud resources."),U1.info("This will take a few moments..."),await Ju(7,async()=>{await u2("buddy cloud:cleanup",{...J,cwd:a2.projectPath(),stdout:"ignore"})}),await d0("Your cloud has been removed",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}catch(X){await d0("While cleaning up the cloud, there was an issue",{startTime:Y,useSeconds:!0},X),b0.exit(h0.FatalError)}}),G.command("cloud:optimize-cost",W.optimizeCost).option("--jump-box","Remove the jump-box",{default:!0}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:optimize-cost` ...",J);let Y=await G5("buddy cloud:optimize-cost");if(J.jumpBox){let{confirm:U}=await v7({name:"confirm",type:"confirm",message:"Would you like to remove your jump-box to optimize your costs?"});if(!U)await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success);await tZ(),await d0("Your jump-box was removed & cost optimizations are applied.",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}await d0("No cost optimization was applied",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}),G.command("cloud:cleanup",W.cleanUp).alias("cloud:clean-up").option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:cleanup` ...",J);let Y=await G5("buddy cloud:cleanup");U1.info("Cleaning up your cloud resources will take a while to complete. Please be patient."),await new Promise((I)=>setTimeout(I,2000)),U1.info("Removing any jump-boxes...");let U=await tZ();if(U.isErr()){if(U.error!=="Jump-box not found")await d0("While removing your jump-box, there was an issue",{startTime:Y,useSeconds:!0},U.error),b0.exit(h0.FatalError)}U1.info("Removing any retained S3 buckets...");let X=await nc();if(X.isErr())await d0("While deleting the retained S3 buckets, there was an issue",{startTime:Y,useSeconds:!0},X.error),b0.exit(h0.FatalError);U1.info("Removing any retained Lambda functions...");let Z=await oc();if(Z.isErr()){if(Z.error!=="No stacks functions found")await d0("While deleting the Origin Request Lambda function, there was an issue",{startTime:Y,useSeconds:!0},Z.error);b0.exit(h0.FatalError)}U1.info(Z.value),U1.info("Removing any remaining Stacks logs...");let V=await sc();if(V.isErr())await d0("While deleting the Stacks log groups, there was an issue",{startTime:Y,useSeconds:!0},V.error),b0.exit(h0.FatalError);U1.info("Removing any stored parameters...");let $=await pc();if($.isErr())await d0("While deleting the Stacks log groups, there was an issue",{startTime:Y,useSeconds:!0},$.error),b0.exit(h0.FatalError);let K=await ec();if(K.isErr())await d0("While deleting the VPCs, there was an issue",{startTime:Y,useSeconds:!0},K.error),b0.exit(h0.FatalError);let z=await tc();if(z.isErr())await d0("While deleting the Subnets, there was an issue",{startTime:Y,useSeconds:!0},z.error),b0.exit(h0.FatalError);U1.info("Removing any CDK remnants...");let R=await ic();if(R.isErr())await d0("While deleting the Stacks log groups, there was an issue",{startTime:Y,useSeconds:!0},R.error),b0.exit(h0.FatalError);U1.info("Removing any IAM users...");let F=await rc();if(F.isErr())await d0("While deleting the Stacks log groups, there was an issue",{startTime:Y,useSeconds:!0},F.error),b0.exit(h0.FatalError);await d0("AWS resources have been removed",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}),G.command("cloud:invalidate-cache",W.invalidateCache).option("--paths [paths]",W.paths,{default:!1}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:invalidate-cache` ...",J);let Y=await G5("buddy cloud:invalidate-cache"),{confirm:U}=await v7({name:"confirm",type:"confirm",message:"Would you like to invalidate the CloudFront cache?"});if(!U)await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success);if(U1.info("Invalidating the CloudFront cache..."),J.paths){let X=await u2(`aws cloudfront create-invalidation --distribution-id E1U4Z2E9NJW9J --paths ${J.paths}`,{...J,cwd:a2.projectPath(),stdin:"pipe"});if(X.isErr())await d0("While running the cloud command, there was an issue",{startTime:Y,useSeconds:!0},X.error),b0.exit(h0.FatalError);await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}U1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),b0.exit(h0.Success)}),G.command("cloud:diff",W.diff).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:diff` ...",J);let Y=await G5("buddy cloud:diff"),U=await u2("bunx --bun cdk diff",{cwd:a2.frameworkCloudPath(),stdin:"pipe"});if(U.isErr())await d0("While running the cloud diff command, there was an issue",{startTime:Y,useSeconds:!0},U.error),b0.exit(h0.FatalError);await d0("Showing diff of the current, undeployed cloud changes",{startTime:Y,useSeconds:!0}),console.log(U.value),b0.exit(h0.Success)}),G.on("cloud:*",()=>{console.error(`Invalid command: %s
|
|
3053
|
+
`),bF=!0}throw new s9("AWS_PROFILE is set, skipping fromEnv provider.",{logger:G.logger,tryNextLink:!0})}return G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),xF(G)()},async()=>{G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:W,ssoAccountId:J,ssoRegion:Y,ssoRoleName:U,ssoSession:X}=G;if(!W&&!J&&!Y&&!U&&!X)throw new s9("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:G.logger});let{fromSSO:Z}=await import("./chunk-j3bhtk0d.js");return Z(G)()},async()=>{G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:W}=await import("./chunk-1zz448cs.js");return W(G)()},async()=>{G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:W}=await import("./chunk-mzgfvbmm.js");return W(G)()},async()=>{G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:W}=await import("./chunk-yatzvt36.js");return W(G)()},async()=>{return G.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await kF(G))()},async()=>{throw new s9("Could not load credentials from any providers",{tryNextLink:!1,logger:G.logger})}),gm,ym),ym=(G)=>G?.expiration!==void 0,gm=(G)=>G?.expiration!==void 0&&G.expiration.getTime()-Date.now()<300000;var RM=Y1(wG(),1);var cF={["required"]:!1,type:"String"},uF={["required"]:!0,default:!1,type:"Boolean"},aF={["ref"]:"Endpoint"},aZ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},eF={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},l8={},dF={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},mm={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},iF={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},uZ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},rF={authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"us-east-1"}]},sF={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},pF={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},nF=[aZ],oF=[eF],tF=[{["ref"]:"Region"}],xm={version:"1.0",parameters:{Region:cF,UseDualStack:uF,UseFIPS:uF,Endpoint:cF},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[aF]}],rules:[{conditions:nF,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:oF,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:aF,properties:l8,headers:l8},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:tF}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:tF,assign:"PartitionResult"}],rules:[{conditions:[dF,iF,uZ],endpoint:{url:"https://cloudfront.amazonaws.com",properties:rF,headers:l8},type:"endpoint"},{conditions:[dF,aZ,uZ],endpoint:{url:"https://cloudfront-fips.amazonaws.com",properties:rF,headers:l8},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[mm,"aws-cn"]},iF,uZ],endpoint:{url:"https://cloudfront.cn-northwest-1.amazonaws.com.cn",properties:{authSchemes:[{name:"sigv4",signingName:"cloudfront",signingRegion:"cn-northwest-1"}]},headers:l8},type:"endpoint"},{conditions:[aZ,eF],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,sF]},pF],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l8,headers:l8},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:nF,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[sF,!0]}],rules:[{endpoint:{url:"https://cloudfront-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l8,headers:l8},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:oF,rules:[{conditions:[pF],rules:[{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l8,headers:l8},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://cloudfront.{Region}.{PartitionResult#dnsSuffix}",properties:l8,headers:l8},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},GM=xm;var lm=new WM({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),XM=(G,W={})=>{return lm.get(G,()=>YM(GM,{endpointParams:G,logger:W.logger}))};JM.aws=UM;var QM=(G)=>{return{apiVersion:"2020-05-31",base64Decoder:G?.base64Decoder??KM,base64Encoder:G?.base64Encoder??zM,disableHostPrefix:G?.disableHostPrefix??!1,endpointProvider:G?.endpointProvider??XM,extensions:G?.extensions??[],httpAuthSchemeProvider:G?.httpAuthSchemeProvider??EF,httpAuthSchemes:G?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(W)=>W.getIdentityProvider("aws.auth#sigv4"),signer:new RM.AwsSdkSigV4Signer}],logger:G?.logger??new HM,serviceId:G?.serviceId??"CloudFront",urlParser:G?.urlParser??ZM,utf8Decoder:G?.utf8Decoder??VM,utf8Encoder:G?.utf8Encoder??$M}};var OM=(G)=>{SM(process.version);let W=CM(G),J=()=>W().then(jM),Y=QM(G);wM.emitWarningIfUnsupportedVersion(process.version);let U={profile:G?.profile};return{...Y,...G,runtime:"node",defaultsMode:W,bodyLengthChecker:G?.bodyLengthChecker??EM,credentialDefaultProvider:G?.credentialDefaultProvider??lF,defaultUserAgentProvider:G?.defaultUserAgentProvider??BM({serviceId:Y.serviceId,clientVersion:_F.version}),maxAttempts:G?.maxAttempts??l2(LM,G),region:G?.region??l2(AM,{...IM,...U}),requestHandler:TM.create(G?.requestHandler??J),retryMode:G?.retryMode??l2({...DM,default:async()=>(await J()).retryMode||qM},G),sha256:G?.sha256??PM.bind(null,"sha256"),streamCollector:G?.streamCollector??fM,useDualstackEndpoint:G?.useDualstackEndpoint??l2(FM,U),useFipsEndpoint:G?.useFipsEndpoint??l2(MM,U),userAgentAppId:G?.userAgentAppId??l2(NM,U)}};var _M=(G)=>{let{httpAuthSchemes:W,httpAuthSchemeProvider:J,credentials:Y}=G;return{setHttpAuthScheme(U){let X=W.findIndex((Z)=>Z.schemeId===U.schemeId);if(X===-1)W.push(U);else W.splice(X,1,U)},httpAuthSchemes(){return W},setHttpAuthSchemeProvider(U){J=U},httpAuthSchemeProvider(){return J},setCredentials(U){Y=U},credentials(){return Y}}},vM=(G)=>{return{httpAuthSchemes:G.httpAuthSchemes(),httpAuthSchemeProvider:G.httpAuthSchemeProvider(),credentials:G.credentials()}};var _G=(G)=>G,xM=(G,W)=>{let J={..._G(gM(G)),..._G(hM(G)),..._G(kM(G)),..._G(_M(G))};return W.forEach((Y)=>Y.configure(J)),{...G,...mM(J),...yM(J),...bM(J),...vM(J)}};class dZ extends tM{config;constructor(...[G]){let W=OM(G||{}),J=wF(W),Y=iM(J),U=oM(Y),X=sM(U),Z=lM(X),V=nM(Z),$=CF(V),K=xM($,G?.extensions||[]);super(K);this.config=K,this.middlewareStack.use(rM(this.config)),this.middlewareStack.use(eM(this.config)),this.middlewareStack.use(pM(this.config)),this.middlewareStack.use(cM(this.config)),this.middlewareStack.use(uM(this.config)),this.middlewareStack.use(aM(this.config)),this.middlewareStack.use(p9.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:PF,identityProviderConfigProvider:async(z)=>new p9.DefaultIdentityProviderConfig({"aws.auth#sigv4":z.credentials})})),this.middlewareStack.use(p9.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var e9=Y1(wG(),1);function GA(G){return G.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function WA(G){return G.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class iZ{value;constructor(G){this.value=G}toString(){return WA(""+this.value)}}class c4{name;children;attributes={};static of(G,W,J){let Y=new c4(G);if(W!==void 0)Y.addChildNode(new iZ(W));if(J!==void 0)Y.withName(J);return Y}constructor(G,W=[]){this.name=G,this.children=W}withName(G){return this.name=G,this}addAttribute(G,W){return this.attributes[G]=W,this}addChildNode(G){return this.children.push(G),this}removeAttribute(G){return delete this.attributes[G],this}n(G){return this.name=G,this}c(G){return this.children.push(G),this}a(G,W){if(W!=null)this.attributes[G]=W;return this}cc(G,W,J=W){if(G[W]!=null){let Y=c4.of(W,G[W]).withName(J);this.c(Y)}}l(G,W,J,Y){if(G[W]!=null)Y().map((X)=>{X.withName(J),this.c(X)})}lc(G,W,J,Y){if(G[W]!=null){let U=Y(),X=new c4(J);U.map((Z)=>{X.c(Z)}),this.c(X)}}toString(){let G=Boolean(this.children.length),W=`<${this.name}`,J=this.attributes;for(let Y of Object.keys(J)){let U=J[Y];if(U!=null)W+=` ${Y}="${GA(""+U)}"`}return W+=!G?"/>":`>${this.children.map((Y)=>Y.toString()).join("")}</${this.name}>`}}var $A=Y1(dM(),1);class l extends JA{constructor(G){super(G);Object.setPrototypeOf(this,l.prototype)}}class vG extends l{name="AccessDenied";$fault="client";Message;constructor(G){super({name:"AccessDenied",$fault:"client",...G});Object.setPrototypeOf(this,vG.prototype),this.Message=G.Message}}class kG extends l{name="IllegalUpdate";$fault="client";Message;constructor(G){super({name:"IllegalUpdate",$fault:"client",...G});Object.setPrototypeOf(this,kG.prototype),this.Message=G.Message}}class bG extends l{name="InvalidArgument";$fault="client";Message;constructor(G){super({name:"InvalidArgument",$fault:"client",...G});Object.setPrototypeOf(this,bG.prototype),this.Message=G.Message}}class hG extends l{name="NoSuchDistribution";$fault="client";Message;constructor(G){super({name:"NoSuchDistribution",$fault:"client",...G});Object.setPrototypeOf(this,hG.prototype),this.Message=G.Message}}class yG extends l{name="TooManyDistributionCNAMEs";$fault="client";Message;constructor(G){super({name:"TooManyDistributionCNAMEs",$fault:"client",...G});Object.setPrototypeOf(this,yG.prototype),this.Message=G.Message}}class gG extends l{name="BatchTooLarge";$fault="client";Message;constructor(G){super({name:"BatchTooLarge",$fault:"client",...G});Object.setPrototypeOf(this,gG.prototype),this.Message=G.Message}}class mG extends l{name="CachePolicyAlreadyExists";$fault="client";Message;constructor(G){super({name:"CachePolicyAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,mG.prototype),this.Message=G.Message}}class xG extends l{name="CachePolicyInUse";$fault="client";Message;constructor(G){super({name:"CachePolicyInUse",$fault:"client",...G});Object.setPrototypeOf(this,xG.prototype),this.Message=G.Message}}class lG extends l{name="CannotChangeImmutablePublicKeyFields";$fault="client";Message;constructor(G){super({name:"CannotChangeImmutablePublicKeyFields",$fault:"client",...G});Object.setPrototypeOf(this,lG.prototype),this.Message=G.Message}}class cG extends l{name="CannotDeleteEntityWhileInUse";$fault="client";Message;constructor(G){super({name:"CannotDeleteEntityWhileInUse",$fault:"client",...G});Object.setPrototypeOf(this,cG.prototype),this.Message=G.Message}}class uG extends l{name="CannotUpdateEntityWhileInUse";$fault="client";Message;constructor(G){super({name:"CannotUpdateEntityWhileInUse",$fault:"client",...G});Object.setPrototypeOf(this,uG.prototype),this.Message=G.Message}}class aG extends l{name="CNAMEAlreadyExists";$fault="client";Message;constructor(G){super({name:"CNAMEAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,aG.prototype),this.Message=G.Message}}class dG extends l{name="DistributionAlreadyExists";$fault="client";Message;constructor(G){super({name:"DistributionAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,dG.prototype),this.Message=G.Message}}class iG extends l{name="IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior";$fault="client";Message;constructor(G){super({name:"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior",$fault:"client",...G});Object.setPrototypeOf(this,iG.prototype),this.Message=G.Message}}class rG extends l{name="InconsistentQuantities";$fault="client";Message;constructor(G){super({name:"InconsistentQuantities",$fault:"client",...G});Object.setPrototypeOf(this,rG.prototype),this.Message=G.Message}}class sG extends l{name="InvalidDefaultRootObject";$fault="client";Message;constructor(G){super({name:"InvalidDefaultRootObject",$fault:"client",...G});Object.setPrototypeOf(this,sG.prototype),this.Message=G.Message}}class pG extends l{name="InvalidErrorCode";$fault="client";Message;constructor(G){super({name:"InvalidErrorCode",$fault:"client",...G});Object.setPrototypeOf(this,pG.prototype),this.Message=G.Message}}class nG extends l{name="InvalidForwardCookies";$fault="client";Message;constructor(G){super({name:"InvalidForwardCookies",$fault:"client",...G});Object.setPrototypeOf(this,nG.prototype),this.Message=G.Message}}class oG extends l{name="InvalidFunctionAssociation";$fault="client";Message;constructor(G){super({name:"InvalidFunctionAssociation",$fault:"client",...G});Object.setPrototypeOf(this,oG.prototype),this.Message=G.Message}}class tG extends l{name="InvalidGeoRestrictionParameter";$fault="client";Message;constructor(G){super({name:"InvalidGeoRestrictionParameter",$fault:"client",...G});Object.setPrototypeOf(this,tG.prototype),this.Message=G.Message}}class eG extends l{name="InvalidHeadersForS3Origin";$fault="client";Message;constructor(G){super({name:"InvalidHeadersForS3Origin",$fault:"client",...G});Object.setPrototypeOf(this,eG.prototype),this.Message=G.Message}}class GW extends l{name="InvalidIfMatchVersion";$fault="client";Message;constructor(G){super({name:"InvalidIfMatchVersion",$fault:"client",...G});Object.setPrototypeOf(this,GW.prototype),this.Message=G.Message}}class WW extends l{name="InvalidLambdaFunctionAssociation";$fault="client";Message;constructor(G){super({name:"InvalidLambdaFunctionAssociation",$fault:"client",...G});Object.setPrototypeOf(this,WW.prototype),this.Message=G.Message}}class JW extends l{name="InvalidLocationCode";$fault="client";Message;constructor(G){super({name:"InvalidLocationCode",$fault:"client",...G});Object.setPrototypeOf(this,JW.prototype),this.Message=G.Message}}class YW extends l{name="InvalidMinimumProtocolVersion";$fault="client";Message;constructor(G){super({name:"InvalidMinimumProtocolVersion",$fault:"client",...G});Object.setPrototypeOf(this,YW.prototype),this.Message=G.Message}}class UW extends l{name="InvalidOrigin";$fault="client";Message;constructor(G){super({name:"InvalidOrigin",$fault:"client",...G});Object.setPrototypeOf(this,UW.prototype),this.Message=G.Message}}class XW extends l{name="InvalidOriginAccessControl";$fault="client";Message;constructor(G){super({name:"InvalidOriginAccessControl",$fault:"client",...G});Object.setPrototypeOf(this,XW.prototype),this.Message=G.Message}}class ZW extends l{name="InvalidOriginAccessIdentity";$fault="client";Message;constructor(G){super({name:"InvalidOriginAccessIdentity",$fault:"client",...G});Object.setPrototypeOf(this,ZW.prototype),this.Message=G.Message}}class HW extends l{name="InvalidOriginKeepaliveTimeout";$fault="client";Message;constructor(G){super({name:"InvalidOriginKeepaliveTimeout",$fault:"client",...G});Object.setPrototypeOf(this,HW.prototype),this.Message=G.Message}}class VW extends l{name="InvalidOriginReadTimeout";$fault="client";Message;constructor(G){super({name:"InvalidOriginReadTimeout",$fault:"client",...G});Object.setPrototypeOf(this,VW.prototype),this.Message=G.Message}}class $W extends l{name="InvalidProtocolSettings";$fault="client";Message;constructor(G){super({name:"InvalidProtocolSettings",$fault:"client",...G});Object.setPrototypeOf(this,$W.prototype),this.Message=G.Message}}class KW extends l{name="InvalidQueryStringParameters";$fault="client";Message;constructor(G){super({name:"InvalidQueryStringParameters",$fault:"client",...G});Object.setPrototypeOf(this,KW.prototype),this.Message=G.Message}}class zW extends l{name="InvalidRelativePath";$fault="client";Message;constructor(G){super({name:"InvalidRelativePath",$fault:"client",...G});Object.setPrototypeOf(this,zW.prototype),this.Message=G.Message}}class RW extends l{name="InvalidRequiredProtocol";$fault="client";Message;constructor(G){super({name:"InvalidRequiredProtocol",$fault:"client",...G});Object.setPrototypeOf(this,RW.prototype),this.Message=G.Message}}class QW extends l{name="InvalidResponseCode";$fault="client";Message;constructor(G){super({name:"InvalidResponseCode",$fault:"client",...G});Object.setPrototypeOf(this,QW.prototype),this.Message=G.Message}}class FW extends l{name="InvalidTTLOrder";$fault="client";Message;constructor(G){super({name:"InvalidTTLOrder",$fault:"client",...G});Object.setPrototypeOf(this,FW.prototype),this.Message=G.Message}}class MW extends l{name="InvalidViewerCertificate";$fault="client";Message;constructor(G){super({name:"InvalidViewerCertificate",$fault:"client",...G});Object.setPrototypeOf(this,MW.prototype),this.Message=G.Message}}class AW extends l{name="InvalidWebACLId";$fault="client";Message;constructor(G){super({name:"InvalidWebACLId",$fault:"client",...G});Object.setPrototypeOf(this,AW.prototype),this.Message=G.Message}}class IW extends l{name="MissingBody";$fault="client";Message;constructor(G){super({name:"MissingBody",$fault:"client",...G});Object.setPrototypeOf(this,IW.prototype),this.Message=G.Message}}class qW extends l{name="NoSuchCachePolicy";$fault="client";Message;constructor(G){super({name:"NoSuchCachePolicy",$fault:"client",...G});Object.setPrototypeOf(this,qW.prototype),this.Message=G.Message}}class LW extends l{name="NoSuchFieldLevelEncryptionConfig";$fault="client";Message;constructor(G){super({name:"NoSuchFieldLevelEncryptionConfig",$fault:"client",...G});Object.setPrototypeOf(this,LW.prototype),this.Message=G.Message}}class DW extends l{name="NoSuchOrigin";$fault="client";Message;constructor(G){super({name:"NoSuchOrigin",$fault:"client",...G});Object.setPrototypeOf(this,DW.prototype),this.Message=G.Message}}class jW extends l{name="NoSuchOriginRequestPolicy";$fault="client";Message;constructor(G){super({name:"NoSuchOriginRequestPolicy",$fault:"client",...G});Object.setPrototypeOf(this,jW.prototype),this.Message=G.Message}}class SW extends l{name="NoSuchRealtimeLogConfig";$fault="client";Message;constructor(G){super({name:"NoSuchRealtimeLogConfig",$fault:"client",...G});Object.setPrototypeOf(this,SW.prototype),this.Message=G.Message}}class TW extends l{name="NoSuchResponseHeadersPolicy";$fault="client";Message;constructor(G){super({name:"NoSuchResponseHeadersPolicy",$fault:"client",...G});Object.setPrototypeOf(this,TW.prototype),this.Message=G.Message}}class fW extends l{name="PreconditionFailed";$fault="client";Message;constructor(G){super({name:"PreconditionFailed",$fault:"client",...G});Object.setPrototypeOf(this,fW.prototype),this.Message=G.Message}}class BW extends l{name="RealtimeLogConfigOwnerMismatch";$fault="client";Message;constructor(G){super({name:"RealtimeLogConfigOwnerMismatch",$fault:"client",...G});Object.setPrototypeOf(this,BW.prototype),this.Message=G.Message}}class NW extends l{name="TooManyCacheBehaviors";$fault="client";Message;constructor(G){super({name:"TooManyCacheBehaviors",$fault:"client",...G});Object.setPrototypeOf(this,NW.prototype),this.Message=G.Message}}class PW extends l{name="TooManyCertificates";$fault="client";Message;constructor(G){super({name:"TooManyCertificates",$fault:"client",...G});Object.setPrototypeOf(this,PW.prototype),this.Message=G.Message}}class EW extends l{name="TooManyCookieNamesInWhiteList";$fault="client";Message;constructor(G){super({name:"TooManyCookieNamesInWhiteList",$fault:"client",...G});Object.setPrototypeOf(this,EW.prototype),this.Message=G.Message}}class CW extends l{name="TooManyDistributions";$fault="client";Message;constructor(G){super({name:"TooManyDistributions",$fault:"client",...G});Object.setPrototypeOf(this,CW.prototype),this.Message=G.Message}}class wW extends l{name="TooManyDistributionsAssociatedToCachePolicy";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToCachePolicy",$fault:"client",...G});Object.setPrototypeOf(this,wW.prototype),this.Message=G.Message}}class OW extends l{name="TooManyDistributionsAssociatedToFieldLevelEncryptionConfig";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig",$fault:"client",...G});Object.setPrototypeOf(this,OW.prototype),this.Message=G.Message}}class _W extends l{name="TooManyDistributionsAssociatedToKeyGroup";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToKeyGroup",$fault:"client",...G});Object.setPrototypeOf(this,_W.prototype),this.Message=G.Message}}class vW extends l{name="TooManyDistributionsAssociatedToOriginAccessControl";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToOriginAccessControl",$fault:"client",...G});Object.setPrototypeOf(this,vW.prototype),this.Message=G.Message}}class kW extends l{name="TooManyDistributionsAssociatedToOriginRequestPolicy";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToOriginRequestPolicy",$fault:"client",...G});Object.setPrototypeOf(this,kW.prototype),this.Message=G.Message}}class bW extends l{name="TooManyDistributionsAssociatedToResponseHeadersPolicy";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsAssociatedToResponseHeadersPolicy",$fault:"client",...G});Object.setPrototypeOf(this,bW.prototype),this.Message=G.Message}}class hW extends l{name="TooManyDistributionsWithFunctionAssociations";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsWithFunctionAssociations",$fault:"client",...G});Object.setPrototypeOf(this,hW.prototype),this.Message=G.Message}}class yW extends l{name="TooManyDistributionsWithLambdaAssociations";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsWithLambdaAssociations",$fault:"client",...G});Object.setPrototypeOf(this,yW.prototype),this.Message=G.Message}}class gW extends l{name="TooManyDistributionsWithSingleFunctionARN";$fault="client";Message;constructor(G){super({name:"TooManyDistributionsWithSingleFunctionARN",$fault:"client",...G});Object.setPrototypeOf(this,gW.prototype),this.Message=G.Message}}class mW extends l{name="TooManyFunctionAssociations";$fault="client";Message;constructor(G){super({name:"TooManyFunctionAssociations",$fault:"client",...G});Object.setPrototypeOf(this,mW.prototype),this.Message=G.Message}}class xW extends l{name="TooManyHeadersInForwardedValues";$fault="client";Message;constructor(G){super({name:"TooManyHeadersInForwardedValues",$fault:"client",...G});Object.setPrototypeOf(this,xW.prototype),this.Message=G.Message}}class lW extends l{name="TooManyKeyGroupsAssociatedToDistribution";$fault="client";Message;constructor(G){super({name:"TooManyKeyGroupsAssociatedToDistribution",$fault:"client",...G});Object.setPrototypeOf(this,lW.prototype),this.Message=G.Message}}class cW extends l{name="TooManyLambdaFunctionAssociations";$fault="client";Message;constructor(G){super({name:"TooManyLambdaFunctionAssociations",$fault:"client",...G});Object.setPrototypeOf(this,cW.prototype),this.Message=G.Message}}class uW extends l{name="TooManyOriginCustomHeaders";$fault="client";Message;constructor(G){super({name:"TooManyOriginCustomHeaders",$fault:"client",...G});Object.setPrototypeOf(this,uW.prototype),this.Message=G.Message}}class aW extends l{name="TooManyOriginGroupsPerDistribution";$fault="client";Message;constructor(G){super({name:"TooManyOriginGroupsPerDistribution",$fault:"client",...G});Object.setPrototypeOf(this,aW.prototype),this.Message=G.Message}}class dW extends l{name="TooManyOrigins";$fault="client";Message;constructor(G){super({name:"TooManyOrigins",$fault:"client",...G});Object.setPrototypeOf(this,dW.prototype),this.Message=G.Message}}class iW extends l{name="TooManyQueryStringParameters";$fault="client";Message;constructor(G){super({name:"TooManyQueryStringParameters",$fault:"client",...G});Object.setPrototypeOf(this,iW.prototype),this.Message=G.Message}}class rW extends l{name="TooManyTrustedSigners";$fault="client";Message;constructor(G){super({name:"TooManyTrustedSigners",$fault:"client",...G});Object.setPrototypeOf(this,rW.prototype),this.Message=G.Message}}class sW extends l{name="TrustedKeyGroupDoesNotExist";$fault="client";Message;constructor(G){super({name:"TrustedKeyGroupDoesNotExist",$fault:"client",...G});Object.setPrototypeOf(this,sW.prototype),this.Message=G.Message}}class pW extends l{name="TrustedSignerDoesNotExist";$fault="client";Message;constructor(G){super({name:"TrustedSignerDoesNotExist",$fault:"client",...G});Object.setPrototypeOf(this,pW.prototype),this.Message=G.Message}}class nW extends l{name="EntityAlreadyExists";$fault="client";Message;constructor(G){super({name:"EntityAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,nW.prototype),this.Message=G.Message}}class oW extends l{name="EntityLimitExceeded";$fault="client";Message;constructor(G){super({name:"EntityLimitExceeded",$fault:"client",...G});Object.setPrototypeOf(this,oW.prototype),this.Message=G.Message}}class tW extends l{name="InvalidTagging";$fault="client";Message;constructor(G){super({name:"InvalidTagging",$fault:"client",...G});Object.setPrototypeOf(this,tW.prototype),this.Message=G.Message}}class eW extends l{name="UnsupportedOperation";$fault="client";Message;constructor(G){super({name:"UnsupportedOperation",$fault:"client",...G});Object.setPrototypeOf(this,eW.prototype),this.Message=G.Message}}class GJ extends l{name="TooManyCachePolicies";$fault="client";Message;constructor(G){super({name:"TooManyCachePolicies",$fault:"client",...G});Object.setPrototypeOf(this,GJ.prototype),this.Message=G.Message}}class WJ extends l{name="TooManyCookiesInCachePolicy";$fault="client";Message;constructor(G){super({name:"TooManyCookiesInCachePolicy",$fault:"client",...G});Object.setPrototypeOf(this,WJ.prototype),this.Message=G.Message}}class JJ extends l{name="TooManyHeadersInCachePolicy";$fault="client";Message;constructor(G){super({name:"TooManyHeadersInCachePolicy",$fault:"client",...G});Object.setPrototypeOf(this,JJ.prototype),this.Message=G.Message}}class YJ extends l{name="TooManyQueryStringsInCachePolicy";$fault="client";Message;constructor(G){super({name:"TooManyQueryStringsInCachePolicy",$fault:"client",...G});Object.setPrototypeOf(this,YJ.prototype),this.Message=G.Message}}class UJ extends l{name="CloudFrontOriginAccessIdentityAlreadyExists";$fault="client";Message;constructor(G){super({name:"CloudFrontOriginAccessIdentityAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,UJ.prototype),this.Message=G.Message}}class XJ extends l{name="TooManyCloudFrontOriginAccessIdentities";$fault="client";Message;constructor(G){super({name:"TooManyCloudFrontOriginAccessIdentities",$fault:"client",...G});Object.setPrototypeOf(this,XJ.prototype),this.Message=G.Message}}class ZJ extends l{name="ContinuousDeploymentPolicyAlreadyExists";$fault="client";Message;constructor(G){super({name:"ContinuousDeploymentPolicyAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,ZJ.prototype),this.Message=G.Message}}class HJ extends l{name="StagingDistributionInUse";$fault="client";Message;constructor(G){super({name:"StagingDistributionInUse",$fault:"client",...G});Object.setPrototypeOf(this,HJ.prototype),this.Message=G.Message}}class VJ extends l{name="TooManyContinuousDeploymentPolicies";$fault="client";Message;constructor(G){super({name:"TooManyContinuousDeploymentPolicies",$fault:"client",...G});Object.setPrototypeOf(this,VJ.prototype),this.Message=G.Message}}class $J extends l{name="ContinuousDeploymentPolicyInUse";$fault="client";Message;constructor(G){super({name:"ContinuousDeploymentPolicyInUse",$fault:"client",...G});Object.setPrototypeOf(this,$J.prototype),this.Message=G.Message}}class KJ extends l{name="EntityNotFound";$fault="client";Message;constructor(G){super({name:"EntityNotFound",$fault:"client",...G});Object.setPrototypeOf(this,KJ.prototype),this.Message=G.Message}}class zJ extends l{name="IllegalOriginAccessConfiguration";$fault="client";Message;constructor(G){super({name:"IllegalOriginAccessConfiguration",$fault:"client",...G});Object.setPrototypeOf(this,zJ.prototype),this.Message=G.Message}}class RJ extends l{name="InvalidDomainNameForOriginAccessControl";$fault="client";Message;constructor(G){super({name:"InvalidDomainNameForOriginAccessControl",$fault:"client",...G});Object.setPrototypeOf(this,RJ.prototype),this.Message=G.Message}}class QJ extends l{name="NoSuchContinuousDeploymentPolicy";$fault="client";Message;constructor(G){super({name:"NoSuchContinuousDeploymentPolicy",$fault:"client",...G});Object.setPrototypeOf(this,QJ.prototype),this.Message=G.Message}}class FJ extends l{name="FieldLevelEncryptionConfigAlreadyExists";$fault="client";Message;constructor(G){super({name:"FieldLevelEncryptionConfigAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,FJ.prototype),this.Message=G.Message}}class MJ extends l{name="NoSuchFieldLevelEncryptionProfile";$fault="client";Message;constructor(G){super({name:"NoSuchFieldLevelEncryptionProfile",$fault:"client",...G});Object.setPrototypeOf(this,MJ.prototype),this.Message=G.Message}}class AJ extends l{name="QueryArgProfileEmpty";$fault="client";Message;constructor(G){super({name:"QueryArgProfileEmpty",$fault:"client",...G});Object.setPrototypeOf(this,AJ.prototype),this.Message=G.Message}}class IJ extends l{name="TooManyFieldLevelEncryptionConfigs";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionConfigs",$fault:"client",...G});Object.setPrototypeOf(this,IJ.prototype),this.Message=G.Message}}class qJ extends l{name="TooManyFieldLevelEncryptionContentTypeProfiles";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionContentTypeProfiles",$fault:"client",...G});Object.setPrototypeOf(this,qJ.prototype),this.Message=G.Message}}class LJ extends l{name="TooManyFieldLevelEncryptionQueryArgProfiles";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionQueryArgProfiles",$fault:"client",...G});Object.setPrototypeOf(this,LJ.prototype),this.Message=G.Message}}class DJ extends l{name="FieldLevelEncryptionProfileAlreadyExists";$fault="client";Message;constructor(G){super({name:"FieldLevelEncryptionProfileAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,DJ.prototype),this.Message=G.Message}}class jJ extends l{name="FieldLevelEncryptionProfileSizeExceeded";$fault="client";Message;constructor(G){super({name:"FieldLevelEncryptionProfileSizeExceeded",$fault:"client",...G});Object.setPrototypeOf(this,jJ.prototype),this.Message=G.Message}}class SJ extends l{name="NoSuchPublicKey";$fault="client";Message;constructor(G){super({name:"NoSuchPublicKey",$fault:"client",...G});Object.setPrototypeOf(this,SJ.prototype),this.Message=G.Message}}class TJ extends l{name="TooManyFieldLevelEncryptionEncryptionEntities";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionEncryptionEntities",$fault:"client",...G});Object.setPrototypeOf(this,TJ.prototype),this.Message=G.Message}}class fJ extends l{name="TooManyFieldLevelEncryptionFieldPatterns";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionFieldPatterns",$fault:"client",...G});Object.setPrototypeOf(this,fJ.prototype),this.Message=G.Message}}class BJ extends l{name="TooManyFieldLevelEncryptionProfiles";$fault="client";Message;constructor(G){super({name:"TooManyFieldLevelEncryptionProfiles",$fault:"client",...G});Object.setPrototypeOf(this,BJ.prototype),this.Message=G.Message}}class NJ extends l{name="FunctionAlreadyExists";$fault="client";Message;constructor(G){super({name:"FunctionAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,NJ.prototype),this.Message=G.Message}}class PJ extends l{name="FunctionSizeLimitExceeded";$fault="client";Message;constructor(G){super({name:"FunctionSizeLimitExceeded",$fault:"client",...G});Object.setPrototypeOf(this,PJ.prototype),this.Message=G.Message}}class EJ extends l{name="TooManyFunctions";$fault="client";Message;constructor(G){super({name:"TooManyFunctions",$fault:"client",...G});Object.setPrototypeOf(this,EJ.prototype),this.Message=G.Message}}class CJ extends l{name="TooManyInvalidationsInProgress";$fault="client";Message;constructor(G){super({name:"TooManyInvalidationsInProgress",$fault:"client",...G});Object.setPrototypeOf(this,CJ.prototype),this.Message=G.Message}}class wJ extends l{name="KeyGroupAlreadyExists";$fault="client";Message;constructor(G){super({name:"KeyGroupAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,wJ.prototype),this.Message=G.Message}}class OJ extends l{name="TooManyKeyGroups";$fault="client";Message;constructor(G){super({name:"TooManyKeyGroups",$fault:"client",...G});Object.setPrototypeOf(this,OJ.prototype),this.Message=G.Message}}class _J extends l{name="TooManyPublicKeysInKeyGroup";$fault="client";Message;constructor(G){super({name:"TooManyPublicKeysInKeyGroup",$fault:"client",...G});Object.setPrototypeOf(this,_J.prototype),this.Message=G.Message}}class vJ extends l{name="EntitySizeLimitExceeded";$fault="client";Message;constructor(G){super({name:"EntitySizeLimitExceeded",$fault:"client",...G});Object.setPrototypeOf(this,vJ.prototype),this.Message=G.Message}}class kJ extends l{name="MonitoringSubscriptionAlreadyExists";$fault="client";Message;constructor(G){super({name:"MonitoringSubscriptionAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,kJ.prototype),this.Message=G.Message}}class bJ extends l{name="OriginAccessControlAlreadyExists";$fault="client";Message;constructor(G){super({name:"OriginAccessControlAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,bJ.prototype),this.Message=G.Message}}class hJ extends l{name="TooManyOriginAccessControls";$fault="client";Message;constructor(G){super({name:"TooManyOriginAccessControls",$fault:"client",...G});Object.setPrototypeOf(this,hJ.prototype),this.Message=G.Message}}class yJ extends l{name="OriginRequestPolicyAlreadyExists";$fault="client";Message;constructor(G){super({name:"OriginRequestPolicyAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,yJ.prototype),this.Message=G.Message}}class gJ extends l{name="TooManyCookiesInOriginRequestPolicy";$fault="client";Message;constructor(G){super({name:"TooManyCookiesInOriginRequestPolicy",$fault:"client",...G});Object.setPrototypeOf(this,gJ.prototype),this.Message=G.Message}}class mJ extends l{name="TooManyHeadersInOriginRequestPolicy";$fault="client";Message;constructor(G){super({name:"TooManyHeadersInOriginRequestPolicy",$fault:"client",...G});Object.setPrototypeOf(this,mJ.prototype),this.Message=G.Message}}class xJ extends l{name="TooManyOriginRequestPolicies";$fault="client";Message;constructor(G){super({name:"TooManyOriginRequestPolicies",$fault:"client",...G});Object.setPrototypeOf(this,xJ.prototype),this.Message=G.Message}}class lJ extends l{name="TooManyQueryStringsInOriginRequestPolicy";$fault="client";Message;constructor(G){super({name:"TooManyQueryStringsInOriginRequestPolicy",$fault:"client",...G});Object.setPrototypeOf(this,lJ.prototype),this.Message=G.Message}}class cJ extends l{name="PublicKeyAlreadyExists";$fault="client";Message;constructor(G){super({name:"PublicKeyAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,cJ.prototype),this.Message=G.Message}}class uJ extends l{name="TooManyPublicKeys";$fault="client";Message;constructor(G){super({name:"TooManyPublicKeys",$fault:"client",...G});Object.setPrototypeOf(this,uJ.prototype),this.Message=G.Message}}class aJ extends l{name="RealtimeLogConfigAlreadyExists";$fault="client";Message;constructor(G){super({name:"RealtimeLogConfigAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,aJ.prototype),this.Message=G.Message}}class dJ extends l{name="TooManyRealtimeLogConfigs";$fault="client";Message;constructor(G){super({name:"TooManyRealtimeLogConfigs",$fault:"client",...G});Object.setPrototypeOf(this,dJ.prototype),this.Message=G.Message}}class iJ extends l{name="ResponseHeadersPolicyAlreadyExists";$fault="client";Message;constructor(G){super({name:"ResponseHeadersPolicyAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,iJ.prototype),this.Message=G.Message}}class rJ extends l{name="TooLongCSPInResponseHeadersPolicy";$fault="client";Message;constructor(G){super({name:"TooLongCSPInResponseHeadersPolicy",$fault:"client",...G});Object.setPrototypeOf(this,rJ.prototype),this.Message=G.Message}}class sJ extends l{name="TooManyCustomHeadersInResponseHeadersPolicy";$fault="client";Message;constructor(G){super({name:"TooManyCustomHeadersInResponseHeadersPolicy",$fault:"client",...G});Object.setPrototypeOf(this,sJ.prototype),this.Message=G.Message}}class pJ extends l{name="TooManyRemoveHeadersInResponseHeadersPolicy";$fault="client";Message;constructor(G){super({name:"TooManyRemoveHeadersInResponseHeadersPolicy",$fault:"client",...G});Object.setPrototypeOf(this,pJ.prototype),this.Message=G.Message}}class nJ extends l{name="TooManyResponseHeadersPolicies";$fault="client";Message;constructor(G){super({name:"TooManyResponseHeadersPolicies",$fault:"client",...G});Object.setPrototypeOf(this,nJ.prototype),this.Message=G.Message}}class oJ extends l{name="StreamingDistributionAlreadyExists";$fault="client";Message;constructor(G){super({name:"StreamingDistributionAlreadyExists",$fault:"client",...G});Object.setPrototypeOf(this,oJ.prototype),this.Message=G.Message}}class tJ extends l{name="TooManyStreamingDistributionCNAMEs";$fault="client";Message;constructor(G){super({name:"TooManyStreamingDistributionCNAMEs",$fault:"client",...G});Object.setPrototypeOf(this,tJ.prototype),this.Message=G.Message}}class eJ extends l{name="TooManyStreamingDistributions";$fault="client";Message;constructor(G){super({name:"TooManyStreamingDistributions",$fault:"client",...G});Object.setPrototypeOf(this,eJ.prototype),this.Message=G.Message}}class GY extends l{name="IllegalDelete";$fault="client";Message;constructor(G){super({name:"IllegalDelete",$fault:"client",...G});Object.setPrototypeOf(this,GY.prototype),this.Message=G.Message}}class WY extends l{name="CloudFrontOriginAccessIdentityInUse";$fault="client";Message;constructor(G){super({name:"CloudFrontOriginAccessIdentityInUse",$fault:"client",...G});Object.setPrototypeOf(this,WY.prototype),this.Message=G.Message}}class JY extends l{name="NoSuchCloudFrontOriginAccessIdentity";$fault="client";Message;constructor(G){super({name:"NoSuchCloudFrontOriginAccessIdentity",$fault:"client",...G});Object.setPrototypeOf(this,JY.prototype),this.Message=G.Message}}class YY extends l{name="DistributionNotDisabled";$fault="client";Message;constructor(G){super({name:"DistributionNotDisabled",$fault:"client",...G});Object.setPrototypeOf(this,YY.prototype),this.Message=G.Message}}class UY extends l{name="FieldLevelEncryptionConfigInUse";$fault="client";Message;constructor(G){super({name:"FieldLevelEncryptionConfigInUse",$fault:"client",...G});Object.setPrototypeOf(this,UY.prototype),this.Message=G.Message}}class XY extends l{name="FieldLevelEncryptionProfileInUse";$fault="client";Message;constructor(G){super({name:"FieldLevelEncryptionProfileInUse",$fault:"client",...G});Object.setPrototypeOf(this,XY.prototype),this.Message=G.Message}}class ZY extends l{name="FunctionInUse";$fault="client";Message;constructor(G){super({name:"FunctionInUse",$fault:"client",...G});Object.setPrototypeOf(this,ZY.prototype),this.Message=G.Message}}class HY extends l{name="NoSuchFunctionExists";$fault="client";Message;constructor(G){super({name:"NoSuchFunctionExists",$fault:"client",...G});Object.setPrototypeOf(this,HY.prototype),this.Message=G.Message}}class VY extends l{name="NoSuchResource";$fault="client";Message;constructor(G){super({name:"NoSuchResource",$fault:"client",...G});Object.setPrototypeOf(this,VY.prototype),this.Message=G.Message}}class $Y extends l{name="ResourceInUse";$fault="client";Message;constructor(G){super({name:"ResourceInUse",$fault:"client",...G});Object.setPrototypeOf(this,$Y.prototype),this.Message=G.Message}}class KY extends l{name="NoSuchMonitoringSubscription";$fault="client";Message;constructor(G){super({name:"NoSuchMonitoringSubscription",$fault:"client",...G});Object.setPrototypeOf(this,KY.prototype),this.Message=G.Message}}class zY extends l{name="NoSuchOriginAccessControl";$fault="client";Message;constructor(G){super({name:"NoSuchOriginAccessControl",$fault:"client",...G});Object.setPrototypeOf(this,zY.prototype),this.Message=G.Message}}class RY extends l{name="OriginAccessControlInUse";$fault="client";Message;constructor(G){super({name:"OriginAccessControlInUse",$fault:"client",...G});Object.setPrototypeOf(this,RY.prototype),this.Message=G.Message}}class QY extends l{name="OriginRequestPolicyInUse";$fault="client";Message;constructor(G){super({name:"OriginRequestPolicyInUse",$fault:"client",...G});Object.setPrototypeOf(this,QY.prototype),this.Message=G.Message}}class FY extends l{name="PublicKeyInUse";$fault="client";Message;constructor(G){super({name:"PublicKeyInUse",$fault:"client",...G});Object.setPrototypeOf(this,FY.prototype),this.Message=G.Message}}class MY extends l{name="RealtimeLogConfigInUse";$fault="client";Message;constructor(G){super({name:"RealtimeLogConfigInUse",$fault:"client",...G});Object.setPrototypeOf(this,MY.prototype),this.Message=G.Message}}class AY extends l{name="ResponseHeadersPolicyInUse";$fault="client";Message;constructor(G){super({name:"ResponseHeadersPolicyInUse",$fault:"client",...G});Object.setPrototypeOf(this,AY.prototype),this.Message=G.Message}}class IY extends l{name="NoSuchStreamingDistribution";$fault="client";Message;constructor(G){super({name:"NoSuchStreamingDistribution",$fault:"client",...G});Object.setPrototypeOf(this,IY.prototype),this.Message=G.Message}}class qY extends l{name="StreamingDistributionNotDisabled";$fault="client";Message;constructor(G){super({name:"StreamingDistributionNotDisabled",$fault:"client",...G});Object.setPrototypeOf(this,qY.prototype),this.Message=G.Message}}class LY extends l{name="NoSuchInvalidation";$fault="client";Message;constructor(G){super({name:"NoSuchInvalidation",$fault:"client",...G});Object.setPrototypeOf(this,LY.prototype),this.Message=G.Message}}class DY extends l{name="TestFunctionFailed";$fault="server";Message;constructor(G){super({name:"TestFunctionFailed",$fault:"server",...G});Object.setPrototypeOf(this,DY.prototype),this.Message=G.Message}}var KA=async(G,W)=>{let J=$A.requestBuilder(G,W),Y={"content-type":"application/xml"};J.bp("/2020-05-31/distribution/{DistributionId}/invalidation"),J.p("DistributionId",()=>G.DistributionId,"{DistributionId}",!1);let U,X;if(G.InvalidationBatch!==void 0)X=vc(G.InvalidationBatch,W),U=uc,X.a("xmlns","http://cloudfront.amazonaws.com/doc/2020-05-31/"),U+=X.toString();return J.m("POST").h(Y).b(U),J.build()};var zA=async(G,W)=>{if(G.statusCode!==201&&G.statusCode>=300)return um(G,W);let J=a({$metadata:i(G),[xc]:[,G.headers[cc]]}),Y=UA(await e9.parseXmlBody(G.body,W));return J.Invalidation=hc(Y,W),J};var um=async(G,W)=>{let J={...G,body:await e9.parseXmlErrorBody(G.body,W)},Y=e9.loadRestXmlErrorCode(G,J.body);switch(Y){case"AccessDenied":case"com.amazonaws.cloudfront#AccessDenied":throw await dm(J,W);case"IllegalUpdate":case"com.amazonaws.cloudfront#IllegalUpdate":throw await Dx(J,W);case"InvalidArgument":case"com.amazonaws.cloudfront#InvalidArgument":throw await Sx(J,W);case"NoSuchDistribution":case"com.amazonaws.cloudfront#NoSuchDistribution":throw await Gl(J,W);case"TooManyDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyDistributionCNAMEs":throw await cl(J,W);case"CNAMEAlreadyExists":case"com.amazonaws.cloudfront#CNAMEAlreadyExists":throw await Gx(J,W);case"DistributionAlreadyExists":case"com.amazonaws.cloudfront#DistributionAlreadyExists":throw await Yx(J,W);case"IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":case"com.amazonaws.cloudfront#IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior":throw await qx(J,W);case"InconsistentQuantities":case"com.amazonaws.cloudfront#InconsistentQuantities":throw await jx(J,W);case"InvalidDefaultRootObject":case"com.amazonaws.cloudfront#InvalidDefaultRootObject":throw await Tx(J,W);case"InvalidErrorCode":case"com.amazonaws.cloudfront#InvalidErrorCode":throw await Bx(J,W);case"InvalidForwardCookies":case"com.amazonaws.cloudfront#InvalidForwardCookies":throw await Nx(J,W);case"InvalidFunctionAssociation":case"com.amazonaws.cloudfront#InvalidFunctionAssociation":throw await Px(J,W);case"InvalidGeoRestrictionParameter":case"com.amazonaws.cloudfront#InvalidGeoRestrictionParameter":throw await Ex(J,W);case"InvalidHeadersForS3Origin":case"com.amazonaws.cloudfront#InvalidHeadersForS3Origin":throw await Cx(J,W);case"InvalidIfMatchVersion":case"com.amazonaws.cloudfront#InvalidIfMatchVersion":throw await wx(J,W);case"InvalidLambdaFunctionAssociation":case"com.amazonaws.cloudfront#InvalidLambdaFunctionAssociation":throw await Ox(J,W);case"InvalidLocationCode":case"com.amazonaws.cloudfront#InvalidLocationCode":throw await _x(J,W);case"InvalidMinimumProtocolVersion":case"com.amazonaws.cloudfront#InvalidMinimumProtocolVersion":throw await vx(J,W);case"InvalidOrigin":case"com.amazonaws.cloudfront#InvalidOrigin":throw await kx(J,W);case"InvalidOriginAccessControl":case"com.amazonaws.cloudfront#InvalidOriginAccessControl":throw await bx(J,W);case"InvalidOriginAccessIdentity":case"com.amazonaws.cloudfront#InvalidOriginAccessIdentity":throw await hx(J,W);case"InvalidOriginKeepaliveTimeout":case"com.amazonaws.cloudfront#InvalidOriginKeepaliveTimeout":throw await yx(J,W);case"InvalidOriginReadTimeout":case"com.amazonaws.cloudfront#InvalidOriginReadTimeout":throw await gx(J,W);case"InvalidProtocolSettings":case"com.amazonaws.cloudfront#InvalidProtocolSettings":throw await mx(J,W);case"InvalidQueryStringParameters":case"com.amazonaws.cloudfront#InvalidQueryStringParameters":throw await xx(J,W);case"InvalidRelativePath":case"com.amazonaws.cloudfront#InvalidRelativePath":throw await lx(J,W);case"InvalidRequiredProtocol":case"com.amazonaws.cloudfront#InvalidRequiredProtocol":throw await cx(J,W);case"InvalidResponseCode":case"com.amazonaws.cloudfront#InvalidResponseCode":throw await ux(J,W);case"InvalidTTLOrder":case"com.amazonaws.cloudfront#InvalidTTLOrder":throw await dx(J,W);case"InvalidViewerCertificate":case"com.amazonaws.cloudfront#InvalidViewerCertificate":throw await ix(J,W);case"InvalidWebACLId":case"com.amazonaws.cloudfront#InvalidWebACLId":throw await rx(J,W);case"MissingBody":case"com.amazonaws.cloudfront#MissingBody":throw await px(J,W);case"NoSuchCachePolicy":case"com.amazonaws.cloudfront#NoSuchCachePolicy":throw await ox(J,W);case"NoSuchFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionConfig":throw await Wl(J,W);case"NoSuchOrigin":case"com.amazonaws.cloudfront#NoSuchOrigin":throw await Zl(J,W);case"NoSuchOriginRequestPolicy":case"com.amazonaws.cloudfront#NoSuchOriginRequestPolicy":throw await Vl(J,W);case"NoSuchRealtimeLogConfig":case"com.amazonaws.cloudfront#NoSuchRealtimeLogConfig":throw await Kl(J,W);case"NoSuchResponseHeadersPolicy":case"com.amazonaws.cloudfront#NoSuchResponseHeadersPolicy":throw await Rl(J,W);case"PreconditionFailed":case"com.amazonaws.cloudfront#PreconditionFailed":throw await ql(J,W);case"RealtimeLogConfigOwnerMismatch":case"com.amazonaws.cloudfront#RealtimeLogConfigOwnerMismatch":throw await fl(J,W);case"TooManyCacheBehaviors":case"com.amazonaws.cloudfront#TooManyCacheBehaviors":throw await vl(J,W);case"TooManyCertificates":case"com.amazonaws.cloudfront#TooManyCertificates":throw await bl(J,W);case"TooManyCookieNamesInWhiteList":case"com.amazonaws.cloudfront#TooManyCookieNamesInWhiteList":throw await gl(J,W);case"TooManyDistributions":case"com.amazonaws.cloudfront#TooManyDistributions":throw await ul(J,W);case"TooManyDistributionsAssociatedToCachePolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToCachePolicy":throw await al(J,W);case"TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToFieldLevelEncryptionConfig":throw await dl(J,W);case"TooManyDistributionsAssociatedToKeyGroup":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToKeyGroup":throw await il(J,W);case"TooManyDistributionsAssociatedToOriginAccessControl":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginAccessControl":throw await rl(J,W);case"TooManyDistributionsAssociatedToOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToOriginRequestPolicy":throw await sl(J,W);case"TooManyDistributionsAssociatedToResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyDistributionsAssociatedToResponseHeadersPolicy":throw await pl(J,W);case"TooManyDistributionsWithFunctionAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithFunctionAssociations":throw await nl(J,W);case"TooManyDistributionsWithLambdaAssociations":case"com.amazonaws.cloudfront#TooManyDistributionsWithLambdaAssociations":throw await ol(J,W);case"TooManyDistributionsWithSingleFunctionARN":case"com.amazonaws.cloudfront#TooManyDistributionsWithSingleFunctionARN":throw await tl(J,W);case"TooManyFunctionAssociations":case"com.amazonaws.cloudfront#TooManyFunctionAssociations":throw await Xc(J,W);case"TooManyHeadersInForwardedValues":case"com.amazonaws.cloudfront#TooManyHeadersInForwardedValues":throw await Vc(J,W);case"TooManyKeyGroupsAssociatedToDistribution":case"com.amazonaws.cloudfront#TooManyKeyGroupsAssociatedToDistribution":throw await Rc(J,W);case"TooManyLambdaFunctionAssociations":case"com.amazonaws.cloudfront#TooManyLambdaFunctionAssociations":throw await Qc(J,W);case"TooManyOriginCustomHeaders":case"com.amazonaws.cloudfront#TooManyOriginCustomHeaders":throw await Mc(J,W);case"TooManyOriginGroupsPerDistribution":case"com.amazonaws.cloudfront#TooManyOriginGroupsPerDistribution":throw await Ac(J,W);case"TooManyOrigins":case"com.amazonaws.cloudfront#TooManyOrigins":throw await qc(J,W);case"TooManyQueryStringParameters":case"com.amazonaws.cloudfront#TooManyQueryStringParameters":throw await jc(J,W);case"TooManyTrustedSigners":case"com.amazonaws.cloudfront#TooManyTrustedSigners":throw await Cc(J,W);case"TrustedKeyGroupDoesNotExist":case"com.amazonaws.cloudfront#TrustedKeyGroupDoesNotExist":throw await wc(J,W);case"TrustedSignerDoesNotExist":case"com.amazonaws.cloudfront#TrustedSignerDoesNotExist":throw await Oc(J,W);case"EntityAlreadyExists":case"com.amazonaws.cloudfront#EntityAlreadyExists":throw await Xx(J,W);case"EntityLimitExceeded":case"com.amazonaws.cloudfront#EntityLimitExceeded":throw await Zx(J,W);case"InvalidTagging":case"com.amazonaws.cloudfront#InvalidTagging":throw await ax(J,W);case"UnsupportedOperation":case"com.amazonaws.cloudfront#UnsupportedOperation":throw await _c(J,W);case"CachePolicyAlreadyExists":case"com.amazonaws.cloudfront#CachePolicyAlreadyExists":throw await rm(J,W);case"TooManyCachePolicies":case"com.amazonaws.cloudfront#TooManyCachePolicies":throw await kl(J,W);case"TooManyCookiesInCachePolicy":case"com.amazonaws.cloudfront#TooManyCookiesInCachePolicy":throw await ml(J,W);case"TooManyHeadersInCachePolicy":case"com.amazonaws.cloudfront#TooManyHeadersInCachePolicy":throw await Hc(J,W);case"TooManyQueryStringsInCachePolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInCachePolicy":throw await Sc(J,W);case"CloudFrontOriginAccessIdentityAlreadyExists":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityAlreadyExists":throw await tm(J,W);case"TooManyCloudFrontOriginAccessIdentities":case"com.amazonaws.cloudfront#TooManyCloudFrontOriginAccessIdentities":throw await hl(J,W);case"ContinuousDeploymentPolicyAlreadyExists":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyAlreadyExists":throw await Wx(J,W);case"StagingDistributionInUse":case"com.amazonaws.cloudfront#StagingDistributionInUse":throw await El(J,W);case"TooManyContinuousDeploymentPolicies":case"com.amazonaws.cloudfront#TooManyContinuousDeploymentPolicies":throw await yl(J,W);case"ContinuousDeploymentPolicyInUse":case"com.amazonaws.cloudfront#ContinuousDeploymentPolicyInUse":throw await Jx(J,W);case"EntityNotFound":case"com.amazonaws.cloudfront#EntityNotFound":throw await Hx(J,W);case"IllegalOriginAccessConfiguration":case"com.amazonaws.cloudfront#IllegalOriginAccessConfiguration":throw await Lx(J,W);case"InvalidDomainNameForOriginAccessControl":case"com.amazonaws.cloudfront#InvalidDomainNameForOriginAccessControl":throw await fx(J,W);case"NoSuchContinuousDeploymentPolicy":case"com.amazonaws.cloudfront#NoSuchContinuousDeploymentPolicy":throw await ex(J,W);case"FieldLevelEncryptionConfigAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigAlreadyExists":throw await $x(J,W);case"NoSuchFieldLevelEncryptionProfile":case"com.amazonaws.cloudfront#NoSuchFieldLevelEncryptionProfile":throw await Jl(J,W);case"QueryArgProfileEmpty":case"com.amazonaws.cloudfront#QueryArgProfileEmpty":throw await jl(J,W);case"TooManyFieldLevelEncryptionConfigs":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionConfigs":throw await el(J,W);case"TooManyFieldLevelEncryptionContentTypeProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionContentTypeProfiles":throw await Gc(J,W);case"TooManyFieldLevelEncryptionQueryArgProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionQueryArgProfiles":throw await Uc(J,W);case"FieldLevelEncryptionProfileAlreadyExists":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileAlreadyExists":throw await zx(J,W);case"FieldLevelEncryptionProfileSizeExceeded":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileSizeExceeded":throw await Qx(J,W);case"NoSuchPublicKey":case"com.amazonaws.cloudfront#NoSuchPublicKey":throw await $l(J,W);case"TooManyFieldLevelEncryptionEncryptionEntities":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionEncryptionEntities":throw await Wc(J,W);case"TooManyFieldLevelEncryptionFieldPatterns":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionFieldPatterns":throw await Jc(J,W);case"TooManyFieldLevelEncryptionProfiles":case"com.amazonaws.cloudfront#TooManyFieldLevelEncryptionProfiles":throw await Yc(J,W);case"FunctionAlreadyExists":case"com.amazonaws.cloudfront#FunctionAlreadyExists":throw await Fx(J,W);case"FunctionSizeLimitExceeded":case"com.amazonaws.cloudfront#FunctionSizeLimitExceeded":throw await Ax(J,W);case"TooManyFunctions":case"com.amazonaws.cloudfront#TooManyFunctions":throw await Zc(J,W);case"BatchTooLarge":case"com.amazonaws.cloudfront#BatchTooLarge":throw await im(J,W);case"TooManyInvalidationsInProgress":case"com.amazonaws.cloudfront#TooManyInvalidationsInProgress":throw await Kc(J,W);case"KeyGroupAlreadyExists":case"com.amazonaws.cloudfront#KeyGroupAlreadyExists":throw await sx(J,W);case"TooManyKeyGroups":case"com.amazonaws.cloudfront#TooManyKeyGroups":throw await zc(J,W);case"TooManyPublicKeysInKeyGroup":case"com.amazonaws.cloudfront#TooManyPublicKeysInKeyGroup":throw await Dc(J,W);case"EntitySizeLimitExceeded":case"com.amazonaws.cloudfront#EntitySizeLimitExceeded":throw await Vx(J,W);case"MonitoringSubscriptionAlreadyExists":case"com.amazonaws.cloudfront#MonitoringSubscriptionAlreadyExists":throw await nx(J,W);case"OriginAccessControlAlreadyExists":case"com.amazonaws.cloudfront#OriginAccessControlAlreadyExists":throw await Fl(J,W);case"TooManyOriginAccessControls":case"com.amazonaws.cloudfront#TooManyOriginAccessControls":throw await Fc(J,W);case"OriginRequestPolicyAlreadyExists":case"com.amazonaws.cloudfront#OriginRequestPolicyAlreadyExists":throw await Al(J,W);case"TooManyCookiesInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyCookiesInOriginRequestPolicy":throw await xl(J,W);case"TooManyHeadersInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyHeadersInOriginRequestPolicy":throw await $c(J,W);case"TooManyOriginRequestPolicies":case"com.amazonaws.cloudfront#TooManyOriginRequestPolicies":throw await Ic(J,W);case"TooManyQueryStringsInOriginRequestPolicy":case"com.amazonaws.cloudfront#TooManyQueryStringsInOriginRequestPolicy":throw await Tc(J,W);case"PublicKeyAlreadyExists":case"com.amazonaws.cloudfront#PublicKeyAlreadyExists":throw await Ll(J,W);case"TooManyPublicKeys":case"com.amazonaws.cloudfront#TooManyPublicKeys":throw await Lc(J,W);case"RealtimeLogConfigAlreadyExists":case"com.amazonaws.cloudfront#RealtimeLogConfigAlreadyExists":throw await Sl(J,W);case"TooManyRealtimeLogConfigs":case"com.amazonaws.cloudfront#TooManyRealtimeLogConfigs":throw await fc(J,W);case"ResponseHeadersPolicyAlreadyExists":case"com.amazonaws.cloudfront#ResponseHeadersPolicyAlreadyExists":throw await Nl(J,W);case"TooLongCSPInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooLongCSPInResponseHeadersPolicy":throw await _l(J,W);case"TooManyCustomHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyCustomHeadersInResponseHeadersPolicy":throw await ll(J,W);case"TooManyRemoveHeadersInResponseHeadersPolicy":case"com.amazonaws.cloudfront#TooManyRemoveHeadersInResponseHeadersPolicy":throw await Bc(J,W);case"TooManyResponseHeadersPolicies":case"com.amazonaws.cloudfront#TooManyResponseHeadersPolicies":throw await Nc(J,W);case"StreamingDistributionAlreadyExists":case"com.amazonaws.cloudfront#StreamingDistributionAlreadyExists":throw await Cl(J,W);case"TooManyStreamingDistributionCNAMEs":case"com.amazonaws.cloudfront#TooManyStreamingDistributionCNAMEs":throw await Pc(J,W);case"TooManyStreamingDistributions":case"com.amazonaws.cloudfront#TooManyStreamingDistributions":throw await Ec(J,W);case"CannotDeleteEntityWhileInUse":case"com.amazonaws.cloudfront#CannotDeleteEntityWhileInUse":throw await nm(J,W);case"IllegalDelete":case"com.amazonaws.cloudfront#IllegalDelete":throw await Ix(J,W);case"CachePolicyInUse":case"com.amazonaws.cloudfront#CachePolicyInUse":throw await sm(J,W);case"CloudFrontOriginAccessIdentityInUse":case"com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityInUse":throw await em(J,W);case"NoSuchCloudFrontOriginAccessIdentity":case"com.amazonaws.cloudfront#NoSuchCloudFrontOriginAccessIdentity":throw await tx(J,W);case"DistributionNotDisabled":case"com.amazonaws.cloudfront#DistributionNotDisabled":throw await Ux(J,W);case"FieldLevelEncryptionConfigInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionConfigInUse":throw await Kx(J,W);case"FieldLevelEncryptionProfileInUse":case"com.amazonaws.cloudfront#FieldLevelEncryptionProfileInUse":throw await Rx(J,W);case"FunctionInUse":case"com.amazonaws.cloudfront#FunctionInUse":throw await Mx(J,W);case"NoSuchFunctionExists":case"com.amazonaws.cloudfront#NoSuchFunctionExists":throw await Yl(J,W);case"NoSuchResource":case"com.amazonaws.cloudfront#NoSuchResource":throw await zl(J,W);case"ResourceInUse":case"com.amazonaws.cloudfront#ResourceInUse":throw await Bl(J,W);case"NoSuchMonitoringSubscription":case"com.amazonaws.cloudfront#NoSuchMonitoringSubscription":throw await Xl(J,W);case"NoSuchOriginAccessControl":case"com.amazonaws.cloudfront#NoSuchOriginAccessControl":throw await Hl(J,W);case"OriginAccessControlInUse":case"com.amazonaws.cloudfront#OriginAccessControlInUse":throw await Ml(J,W);case"OriginRequestPolicyInUse":case"com.amazonaws.cloudfront#OriginRequestPolicyInUse":throw await Il(J,W);case"PublicKeyInUse":case"com.amazonaws.cloudfront#PublicKeyInUse":throw await Dl(J,W);case"RealtimeLogConfigInUse":case"com.amazonaws.cloudfront#RealtimeLogConfigInUse":throw await Tl(J,W);case"ResponseHeadersPolicyInUse":case"com.amazonaws.cloudfront#ResponseHeadersPolicyInUse":throw await Pl(J,W);case"NoSuchStreamingDistribution":case"com.amazonaws.cloudfront#NoSuchStreamingDistribution":throw await Ql(J,W);case"StreamingDistributionNotDisabled":case"com.amazonaws.cloudfront#StreamingDistributionNotDisabled":throw await wl(J,W);case"NoSuchInvalidation":case"com.amazonaws.cloudfront#NoSuchInvalidation":throw await Ul(J,W);case"TestFunctionFailed":case"com.amazonaws.cloudfront#TestFunctionFailed":throw await Ol(J,W);case"CannotChangeImmutablePublicKeyFields":case"com.amazonaws.cloudfront#CannotChangeImmutablePublicKeyFields":throw await pm(J,W);case"CannotUpdateEntityWhileInUse":case"com.amazonaws.cloudfront#CannotUpdateEntityWhileInUse":throw await om(J,W);default:let U=J.body;return am({output:G,parsedBody:U.Error,errorCode:Y})}},am=HA(l),dm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new vG({$metadata:i(G),...J});return d(U,G.body.Error)},im=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new gG({$metadata:i(G),...J});return d(U,G.body.Error)},rm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new mG({$metadata:i(G),...J});return d(U,G.body.Error)},sm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new xG({$metadata:i(G),...J});return d(U,G.body.Error)},pm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new lG({$metadata:i(G),...J});return d(U,G.body.Error)},nm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new cG({$metadata:i(G),...J});return d(U,G.body.Error)},om=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new uG({$metadata:i(G),...J});return d(U,G.body.Error)},tm=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new UJ({$metadata:i(G),...J});return d(U,G.body.Error)},em=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new WY({$metadata:i(G),...J});return d(U,G.body.Error)},Gx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new aG({$metadata:i(G),...J});return d(U,G.body.Error)},Wx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new ZJ({$metadata:i(G),...J});return d(U,G.body.Error)},Jx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new $J({$metadata:i(G),...J});return d(U,G.body.Error)},Yx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new dG({$metadata:i(G),...J});return d(U,G.body.Error)},Ux=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new YY({$metadata:i(G),...J});return d(U,G.body.Error)},Xx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new nW({$metadata:i(G),...J});return d(U,G.body.Error)},Zx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new oW({$metadata:i(G),...J});return d(U,G.body.Error)},Hx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new KJ({$metadata:i(G),...J});return d(U,G.body.Error)},Vx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new vJ({$metadata:i(G),...J});return d(U,G.body.Error)},$x=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new FJ({$metadata:i(G),...J});return d(U,G.body.Error)},Kx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new UY({$metadata:i(G),...J});return d(U,G.body.Error)},zx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new DJ({$metadata:i(G),...J});return d(U,G.body.Error)},Rx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new XY({$metadata:i(G),...J});return d(U,G.body.Error)},Qx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new jJ({$metadata:i(G),...J});return d(U,G.body.Error)},Fx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new NJ({$metadata:i(G),...J});return d(U,G.body.Error)},Mx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new ZY({$metadata:i(G),...J});return d(U,G.body.Error)},Ax=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new PJ({$metadata:i(G),...J});return d(U,G.body.Error)},Ix=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new GY({$metadata:i(G),...J});return d(U,G.body.Error)},qx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new iG({$metadata:i(G),...J});return d(U,G.body.Error)},Lx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new zJ({$metadata:i(G),...J});return d(U,G.body.Error)},Dx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new kG({$metadata:i(G),...J});return d(U,G.body.Error)},jx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new rG({$metadata:i(G),...J});return d(U,G.body.Error)},Sx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new bG({$metadata:i(G),...J});return d(U,G.body.Error)},Tx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new sG({$metadata:i(G),...J});return d(U,G.body.Error)},fx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new RJ({$metadata:i(G),...J});return d(U,G.body.Error)},Bx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new pG({$metadata:i(G),...J});return d(U,G.body.Error)},Nx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new nG({$metadata:i(G),...J});return d(U,G.body.Error)},Px=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new oG({$metadata:i(G),...J});return d(U,G.body.Error)},Ex=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new tG({$metadata:i(G),...J});return d(U,G.body.Error)},Cx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new eG({$metadata:i(G),...J});return d(U,G.body.Error)},wx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new GW({$metadata:i(G),...J});return d(U,G.body.Error)},Ox=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new WW({$metadata:i(G),...J});return d(U,G.body.Error)},_x=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new JW({$metadata:i(G),...J});return d(U,G.body.Error)},vx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new YW({$metadata:i(G),...J});return d(U,G.body.Error)},kx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new UW({$metadata:i(G),...J});return d(U,G.body.Error)},bx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new XW({$metadata:i(G),...J});return d(U,G.body.Error)},hx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new ZW({$metadata:i(G),...J});return d(U,G.body.Error)},yx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new HW({$metadata:i(G),...J});return d(U,G.body.Error)},gx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new VW({$metadata:i(G),...J});return d(U,G.body.Error)},mx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new $W({$metadata:i(G),...J});return d(U,G.body.Error)},xx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new KW({$metadata:i(G),...J});return d(U,G.body.Error)},lx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new zW({$metadata:i(G),...J});return d(U,G.body.Error)},cx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new RW({$metadata:i(G),...J});return d(U,G.body.Error)},ux=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new QW({$metadata:i(G),...J});return d(U,G.body.Error)},ax=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new tW({$metadata:i(G),...J});return d(U,G.body.Error)},dx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new FW({$metadata:i(G),...J});return d(U,G.body.Error)},ix=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new MW({$metadata:i(G),...J});return d(U,G.body.Error)},rx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new AW({$metadata:i(G),...J});return d(U,G.body.Error)},sx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new wJ({$metadata:i(G),...J});return d(U,G.body.Error)},px=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new IW({$metadata:i(G),...J});return d(U,G.body.Error)},nx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new kJ({$metadata:i(G),...J});return d(U,G.body.Error)},ox=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new qW({$metadata:i(G),...J});return d(U,G.body.Error)},tx=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new JY({$metadata:i(G),...J});return d(U,G.body.Error)},ex=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new QJ({$metadata:i(G),...J});return d(U,G.body.Error)},Gl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new hG({$metadata:i(G),...J});return d(U,G.body.Error)},Wl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new LW({$metadata:i(G),...J});return d(U,G.body.Error)},Jl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new MJ({$metadata:i(G),...J});return d(U,G.body.Error)},Yl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new HY({$metadata:i(G),...J});return d(U,G.body.Error)},Ul=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new LY({$metadata:i(G),...J});return d(U,G.body.Error)},Xl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new KY({$metadata:i(G),...J});return d(U,G.body.Error)},Zl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new DW({$metadata:i(G),...J});return d(U,G.body.Error)},Hl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new zY({$metadata:i(G),...J});return d(U,G.body.Error)},Vl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new jW({$metadata:i(G),...J});return d(U,G.body.Error)},$l=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new SJ({$metadata:i(G),...J});return d(U,G.body.Error)},Kl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new SW({$metadata:i(G),...J});return d(U,G.body.Error)},zl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new VY({$metadata:i(G),...J});return d(U,G.body.Error)},Rl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new TW({$metadata:i(G),...J});return d(U,G.body.Error)},Ql=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new IY({$metadata:i(G),...J});return d(U,G.body.Error)},Fl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new bJ({$metadata:i(G),...J});return d(U,G.body.Error)},Ml=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new RY({$metadata:i(G),...J});return d(U,G.body.Error)},Al=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new yJ({$metadata:i(G),...J});return d(U,G.body.Error)},Il=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new QY({$metadata:i(G),...J});return d(U,G.body.Error)},ql=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new fW({$metadata:i(G),...J});return d(U,G.body.Error)},Ll=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new cJ({$metadata:i(G),...J});return d(U,G.body.Error)},Dl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new FY({$metadata:i(G),...J});return d(U,G.body.Error)},jl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new AJ({$metadata:i(G),...J});return d(U,G.body.Error)},Sl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new aJ({$metadata:i(G),...J});return d(U,G.body.Error)},Tl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new MY({$metadata:i(G),...J});return d(U,G.body.Error)},fl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new BW({$metadata:i(G),...J});return d(U,G.body.Error)},Bl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new $Y({$metadata:i(G),...J});return d(U,G.body.Error)},Nl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new iJ({$metadata:i(G),...J});return d(U,G.body.Error)},Pl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new AY({$metadata:i(G),...J});return d(U,G.body.Error)},El=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new HJ({$metadata:i(G),...J});return d(U,G.body.Error)},Cl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new oJ({$metadata:i(G),...J});return d(U,G.body.Error)},wl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new qY({$metadata:i(G),...J});return d(U,G.body.Error)},Ol=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new DY({$metadata:i(G),...J});return d(U,G.body.Error)},_l=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new rJ({$metadata:i(G),...J});return d(U,G.body.Error)},vl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new NW({$metadata:i(G),...J});return d(U,G.body.Error)},kl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new GJ({$metadata:i(G),...J});return d(U,G.body.Error)},bl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new PW({$metadata:i(G),...J});return d(U,G.body.Error)},hl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new XJ({$metadata:i(G),...J});return d(U,G.body.Error)},yl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new VJ({$metadata:i(G),...J});return d(U,G.body.Error)},gl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new EW({$metadata:i(G),...J});return d(U,G.body.Error)},ml=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new WJ({$metadata:i(G),...J});return d(U,G.body.Error)},xl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new gJ({$metadata:i(G),...J});return d(U,G.body.Error)},ll=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new sJ({$metadata:i(G),...J});return d(U,G.body.Error)},cl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new yG({$metadata:i(G),...J});return d(U,G.body.Error)},ul=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new CW({$metadata:i(G),...J});return d(U,G.body.Error)},al=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new wW({$metadata:i(G),...J});return d(U,G.body.Error)},dl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new OW({$metadata:i(G),...J});return d(U,G.body.Error)},il=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new _W({$metadata:i(G),...J});return d(U,G.body.Error)},rl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new vW({$metadata:i(G),...J});return d(U,G.body.Error)},sl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new kW({$metadata:i(G),...J});return d(U,G.body.Error)},pl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new bW({$metadata:i(G),...J});return d(U,G.body.Error)},nl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new hW({$metadata:i(G),...J});return d(U,G.body.Error)},ol=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new yW({$metadata:i(G),...J});return d(U,G.body.Error)},tl=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new gW({$metadata:i(G),...J});return d(U,G.body.Error)},el=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new IJ({$metadata:i(G),...J});return d(U,G.body.Error)},Gc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new qJ({$metadata:i(G),...J});return d(U,G.body.Error)},Wc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new TJ({$metadata:i(G),...J});return d(U,G.body.Error)},Jc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new fJ({$metadata:i(G),...J});return d(U,G.body.Error)},Yc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new BJ({$metadata:i(G),...J});return d(U,G.body.Error)},Uc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new LJ({$metadata:i(G),...J});return d(U,G.body.Error)},Xc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new mW({$metadata:i(G),...J});return d(U,G.body.Error)},Zc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new EJ({$metadata:i(G),...J});return d(U,G.body.Error)},Hc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new JJ({$metadata:i(G),...J});return d(U,G.body.Error)},Vc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new xW({$metadata:i(G),...J});return d(U,G.body.Error)},$c=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new mJ({$metadata:i(G),...J});return d(U,G.body.Error)},Kc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new CJ({$metadata:i(G),...J});return d(U,G.body.Error)},zc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new OJ({$metadata:i(G),...J});return d(U,G.body.Error)},Rc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new lW({$metadata:i(G),...J});return d(U,G.body.Error)},Qc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new cW({$metadata:i(G),...J});return d(U,G.body.Error)},Fc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new hJ({$metadata:i(G),...J});return d(U,G.body.Error)},Mc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new uW({$metadata:i(G),...J});return d(U,G.body.Error)},Ac=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new aW({$metadata:i(G),...J});return d(U,G.body.Error)},Ic=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new xJ({$metadata:i(G),...J});return d(U,G.body.Error)},qc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new dW({$metadata:i(G),...J});return d(U,G.body.Error)},Lc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new uJ({$metadata:i(G),...J});return d(U,G.body.Error)},Dc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new _J({$metadata:i(G),...J});return d(U,G.body.Error)},jc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new iW({$metadata:i(G),...J});return d(U,G.body.Error)},Sc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new YJ({$metadata:i(G),...J});return d(U,G.body.Error)},Tc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new lJ({$metadata:i(G),...J});return d(U,G.body.Error)},fc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new dJ({$metadata:i(G),...J});return d(U,G.body.Error)},Bc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new pJ({$metadata:i(G),...J});return d(U,G.body.Error)},Nc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new nJ({$metadata:i(G),...J});return d(U,G.body.Error)},Pc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new tJ({$metadata:i(G),...J});return d(U,G.body.Error)},Ec=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new eJ({$metadata:i(G),...J});return d(U,G.body.Error)},Cc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new rW({$metadata:i(G),...J});return d(U,G.body.Error)},wc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new sW({$metadata:i(G),...J});return d(U,G.body.Error)},Oc=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new pW({$metadata:i(G),...J});return d(U,G.body.Error)},_c=async(G,W)=>{let J=a({}),Y=G.body.Error;if(Y[M]!=null)J[M]=c(Y[M]);let U=new eW({$metadata:i(G),...J});return d(U,G.body.Error)};var vc=(G,W)=>{let J=new c4(jY);if(G[c2]!=null)J.c(bc(G[c2],W).n(c2));if(G[o9]!=null)J.c(c4.of(RA,G[o9]).n(o9));return J};var kc=(G,W)=>{return G.filter((J)=>J!=null).map((J)=>{return c4.of(RA,J).n(nZ)})},bc=(G,W)=>{let J=new c4(c2);if(G[t9]!=null)J.c(c4.of(lc,String(G[t9])).n(t9));return J.lc(G,"Items","Items",()=>kc(G[n9],W)),J};var hc=(G,W)=>{let J={};if(G[sZ]!=null)J[sZ]=c(G[sZ]);if(G[pZ]!=null)J[pZ]=c(G[pZ]);if(G[rZ]!=null)J[rZ]=YA(ZA(G[rZ]));if(G[jY]!=null)J[jY]=yc(G[jY],W);return J},yc=(G,W)=>{let J={};if(G[c2]!=null)J[c2]=mc(G[c2],W);if(G[o9]!=null)J[o9]=c(G[o9]);return J};var gc=(G,W)=>{return(G||[]).filter((J)=>J!=null).map((J)=>{return c(J)})},mc=(G,W)=>{let J={};if(G[t9]!=null)J[t9]=XA(G[t9]);if(G.Items==="")J[n9]=[];else if(G[n9]!=null&&G[n9][nZ]!=null)J[n9]=gc(VA(G[n9][nZ]),W);return J};var i=(G)=>({httpStatusCode:G.statusCode,requestId:G.headers["x-amzn-requestid"]??G.headers["x-amzn-request-id"]??G.headers["x-amz-request-id"],extendedRequestId:G.headers["x-amz-id-2"],cfId:G.headers["x-amz-cf-id"]});var o9="CallerReference";var rZ="CreateTime";var n9="Items";var jY="InvalidationBatch";var sZ="Id";var xc="Location";var M="Message";var c2="Paths";var nZ="Path";var t9="Quantity";var pZ="Status";var lc="integer";var cc="location";var RA="string",uc='<?xml version="1.0" encoding="UTF-8"?>';var MA=Y1(ac(),1);class oZ extends FA.classBuilder().ep(OF).m(function(G,W,J,Y){return[MA.getSerdePlugin(J,this.serialize,this.deserialize),QA(J,G.getEndpointParameterInstructions())]}).s("Cloudfront2020_05_31","CreateInvalidation",{}).n("CloudFrontClient","CreateInvalidationCommand").f(void 0,void 0).ser(KA).de(zA).build(){}import{intro as G5,italic as _7,log as U1,outro as d0,prompts as v7,runCommand as u2,underline as AA}from"@stacksjs/cli";import{addJumpBox as dc,deleteCdkRemnants as ic,deleteIamUsers as rc,deleteJumpBox as tZ,deleteLogGroups as sc,deleteParameterStore as pc,deleteStacksBuckets as nc,deleteStacksFunctions as oc,deleteSubnets as tc,deleteVpcs as ec,getCloudFrontDistributionId as Gu,getJumpBoxInstanceId as Wu}from"@stacksjs/cloud";import{path as a2}from"@stacksjs/path";import{ExitCode as h0}from"@stacksjs/types";import{loop as Ju}from"@stacksjs/utils";function el1(G){let W={cloud:"Interact with the Stacks Cloud",ssh:"SSH into the Stacks Cloud",add:"Add a resource to the Stacks Cloud",remove:"Remove the Stacks Cloud. In case it fails, try again",optimizeCost:"Remove certain resources that may be re-applied at a later time",cleanUp:"Remove all resources that were retained during the cloud deletion",invalidateCache:"Invalidate the CloudFront cache",diff:"Show the diff of the current, undeployed cloud changes ",paths:"The paths to invalidate",project:"Target a specific project",verbose:"Enable verbose output"};G.command("cloud",W.cloud).option("--ssh",W.ssh,{default:!1}).option("--connect",W.ssh,{default:!1}).option("--invalidate-cache",W.invalidateCache,{default:!1}).option("--paths [paths]",W.paths).option("--diff",W.diff,{default:!1}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud` ...",J);let Y=performance.now();if(J.ssh||J.connect){let U=await Wu(),X=await u2(`aws ssm start-session --target ${U}`,{...J,cwd:a2.projectPath(),stdin:"pipe"});if(X.isErr())await d0("While running the cloud command, there was an issue",{startTime:Y,useSeconds:!0},X.error),b0.exit(h0.FatalError);await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}if(J.invalidateCache){let{confirm:U}=await v7({name:"confirm",type:"confirm",message:"Would you like to invalidate the CDN (CloudFront) cache?"});if(!U)await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success);U1.info("Invalidating the CloudFront cache...");let X=new dZ,V={DistributionId:await Gu(),InvalidationBatch:{CallerReference:`${Date.now()}`,Paths:{Quantity:1,Items:["/*"]}}},$=new oZ(V);X.send($).then((K)=>console.log(K),(K)=>console.log(K,K.stack)),await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}if(J.diff){let U=await u2("bunx --bun cdk diff",{cwd:a2.frameworkCloudPath(),stdin:"pipe"});if(U.isErr())await d0("While running the cloud diff command, there was an issue",{startTime:Y,useSeconds:!0},U.error),b0.exit(h0.FatalError);await d0("Showing diff of the current, undeployed cloud changes",{startTime:Y,useSeconds:!0}),console.log(U.value),b0.exit(h0.Success)}U1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),b0.exit(h0.Success)}),G.command("cloud:add",W.add).option("--jump-box","Remove the jump-box",{default:!1}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:add` ...",J);let Y=await G5("buddy cloud:add");if(J.jumpBox){let{confirm:U}=await v7({name:"confirm",type:"confirm",message:"Would you like to add a jump-box to your cloud?"});if(!U)await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success);U1.info("The jump-box is getting added to your cloud resources..."),U1.info("This takes a few moments, please be patient."),await new Promise((Z)=>setTimeout(Z,2000));let X=await dc();if(X.isErr())await d0("While running the cloud:add command, there was an issue",{startTime:Y,useSeconds:!0},X.error),b0.exit(h0.FatalError);U1.info(_7("View the jump-box in the AWS console:")),U1.info(AA("https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#Instances:instanceState=running")),U1.info(_7("Once it finished initializing, you may SSH into it:")),U1.info(AA("buddy cloud --ssh")),await d0("Your jump-box was added.",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}U1.info("This functionality is not yet implemented."),b0.exit(h0.Success)}),G.command("cloud:remove",W.remove).alias("cloud:destroy").alias("cloud:rm").alias("undeploy").option("--jump-box","Remove the jump-box",{default:!1}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:remove` ...",J);let Y=await G5("buddy cloud:remove");if(J.jumpBox){let{confirm:X}=await v7({name:"confirm",type:"confirm",message:"Would you like to remove your jump-box for now?"});if(!X)await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success);let Z=await tZ();if(Z.isErr())await d0("While removing your jump-box, there was an issue",{startTime:Y,useSeconds:!0},Z.error),b0.exit(h0.FatalError);await d0("Your jump-box was removed.",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}console.log(` ${_7("\u2139\uFE0F Removing your cloud resources takes a while to complete.")}`),console.log(` ${_7("Please note, your backups will not yet be deleted. Though,")}`),console.log(` ${_7("Backups are scheduled to delete themselves in 30 days.")}`),await new Promise((X)=>setTimeout(X,2000));let U=await u2("bunx --bun cdk destroy",{...J,cwd:a2.frameworkCloudPath(),stdin:"inherit"});if(U.isErr())await d0('While running the cloud:remove ("undeploy") command, there was an issue',{startTime:Y,useSeconds:!0},U.error),b0.exit(h0.FatalError);await u2("buddy cloud:cleanup",{...J,cwd:a2.projectPath(),stdin:"inherit"});try{U1.info("Finalizing the removal of your cloud resources."),U1.info("This will take a few moments..."),await Ju(7,async()=>{await u2("buddy cloud:cleanup",{...J,cwd:a2.projectPath(),stdout:"ignore"})}),await d0("Your cloud has been removed",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}catch(X){await d0("While cleaning up the cloud, there was an issue",{startTime:Y,useSeconds:!0},X),b0.exit(h0.FatalError)}}),G.command("cloud:optimize-cost",W.optimizeCost).option("--jump-box","Remove the jump-box",{default:!0}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:optimize-cost` ...",J);let Y=await G5("buddy cloud:optimize-cost");if(J.jumpBox){let{confirm:U}=await v7({name:"confirm",type:"confirm",message:"Would you like to remove your jump-box to optimize your costs?"});if(!U)await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success);await tZ(),await d0("Your jump-box was removed & cost optimizations are applied.",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}await d0("No cost optimization was applied",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}),G.command("cloud:cleanup",W.cleanUp).alias("cloud:clean-up").option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:cleanup` ...",J);let Y=await G5("buddy cloud:cleanup");U1.info("Cleaning up your cloud resources will take a while to complete. Please be patient."),await new Promise((I)=>setTimeout(I,2000)),U1.info("Removing any jump-boxes...");let U=await tZ();if(U.isErr()){if(U.error!=="Jump-box not found")await d0("While removing your jump-box, there was an issue",{startTime:Y,useSeconds:!0},U.error),b0.exit(h0.FatalError)}U1.info("Removing any retained S3 buckets...");let X=await nc();if(X.isErr())await d0("While deleting the retained S3 buckets, there was an issue",{startTime:Y,useSeconds:!0},X.error),b0.exit(h0.FatalError);U1.info("Removing any retained Lambda functions...");let Z=await oc();if(Z.isErr()){if(Z.error!=="No stacks functions found")await d0("While deleting the Origin Request Lambda function, there was an issue",{startTime:Y,useSeconds:!0},Z.error);b0.exit(h0.FatalError)}U1.info(Z.value),U1.info("Removing any remaining Stacks logs...");let V=await sc();if(V.isErr())await d0("While deleting the Stacks log groups, there was an issue",{startTime:Y,useSeconds:!0},V.error),b0.exit(h0.FatalError);U1.info("Removing any stored parameters...");let $=await pc();if($.isErr())await d0("While deleting the Stacks log groups, there was an issue",{startTime:Y,useSeconds:!0},$.error),b0.exit(h0.FatalError);let K=await ec();if(K.isErr())await d0("While deleting the VPCs, there was an issue",{startTime:Y,useSeconds:!0},K.error),b0.exit(h0.FatalError);let z=await tc();if(z.isErr())await d0("While deleting the Subnets, there was an issue",{startTime:Y,useSeconds:!0},z.error),b0.exit(h0.FatalError);U1.info("Removing any CDK remnants...");let R=await ic();if(R.isErr())await d0("While deleting the Stacks log groups, there was an issue",{startTime:Y,useSeconds:!0},R.error),b0.exit(h0.FatalError);U1.info("Removing any IAM users...");let F=await rc();if(F.isErr())await d0("While deleting the Stacks log groups, there was an issue",{startTime:Y,useSeconds:!0},F.error),b0.exit(h0.FatalError);await d0("AWS resources have been removed",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}),G.command("cloud:invalidate-cache",W.invalidateCache).option("--paths [paths]",W.paths,{default:!1}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:invalidate-cache` ...",J);let Y=await G5("buddy cloud:invalidate-cache"),{confirm:U}=await v7({name:"confirm",type:"confirm",message:"Would you like to invalidate the CloudFront cache?"});if(!U)await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success);if(U1.info("Invalidating the CloudFront cache..."),J.paths){let X=await u2(`aws cloudfront create-invalidation --distribution-id E1U4Z2E9NJW9J --paths ${J.paths}`,{...J,cwd:a2.projectPath(),stdin:"pipe"});if(X.isErr())await d0("While running the cloud command, there was an issue",{startTime:Y,useSeconds:!0},X.error),b0.exit(h0.FatalError);await d0("Exited",{startTime:Y,useSeconds:!0}),b0.exit(h0.Success)}U1.info("Not implemented yet. Read more about `buddy cloud` here: https://stacksjs.org/docs/cloud"),b0.exit(h0.Success)}),G.command("cloud:diff",W.diff).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{U1.debug("Running `buddy cloud:diff` ...",J);let Y=await G5("buddy cloud:diff"),U=await u2("bunx --bun cdk diff",{cwd:a2.frameworkCloudPath(),stdin:"pipe"});if(U.isErr())await d0("While running the cloud diff command, there was an issue",{startTime:Y,useSeconds:!0},U.error),b0.exit(h0.FatalError);await d0("Showing diff of the current, undeployed cloud changes",{startTime:Y,useSeconds:!0}),console.log(U.value),b0.exit(h0.Success)}),G.on("cloud:*",()=>{console.error(`Invalid command: %s
|
|
3054
3054
|
See --help for a list of available commands.`,G.args.join(" ")),b0.exit(1)})}import Yu from"process";import{runCommit as Uu}from"@stacksjs/actions";import{log as Xu}from"@stacksjs/logging";function Uc1(G){let W={commit:"Commit your stashed changes",project:"Target a specific project",verbose:"Enable verbose output"};G.command("commit",W.commit).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{Xu.debug("Running `buddy commit` ...",J),await Uu(J)}),G.on("commit:*",()=>{console.error(`Invalid command: %s
|
|
3055
3055
|
See --help for a list of available commands.`,G.args.join(" ")),Yu.exit(1)})}import A6 from"process";import{log as eZ,outro as IA,runCommand as Zu}from"@stacksjs/cli";import{path as Hu}from"@stacksjs/path";import{ExitCode as k7}from"@stacksjs/types";function Kc1(G){let W={configure:"Configure options",aws:"Configure the AWS connection",project:"Target a specific project",profile:"The AWS profile to use",verbose:"Enable verbose output"};G.command("configure",W.configure).option("--aws",W.aws,{default:!1}).option("-p, --project [project]",W.project,{default:!1}).option("--verbose",W.verbose,{default:!1}).action(async(J)=>{if(eZ.debug("Running `buddy configure` ...",J),J?.aws)await qA(J),A6.exit(k7.Success);eZ.info("Not implemented yet. Please use the --aws flag to configure AWS."),A6.exit(k7.Success)}),G.command("configure:aws",W.aws).option("-p, --project [project]",W.project,{default:!1}).option("--profile",W.profile,{default:A6.env.AWS_PROFILE}).option("--verbose",W.verbose,{default:!1}).option("--access-key-id","The AWS access key").option("--secret-access-key","The AWS secret access key").option("--region","The AWS region").option("--output","The AWS output format").option("--quiet","Suppress output").action(async(J)=>{eZ.debug("Running `buddy configure:aws` ...",J),await qA(J),A6.exit(k7.Success)}),G.on("configure:*",()=>{console.error(`Invalid command: %s
|
|
3056
3056
|
See --help for a list of available commands.`,G.args.join(" ")),A6.exit(k7.FatalError)})}async function qA(G){let W=performance.now(),J=G?.accessKeyId??A6.env.AWS_ACCESS_KEY_ID,Y=G?.secretAccessKey??A6.env.AWS_SECRET_ACCESS_KEY,U="us-east-1",X=G?.output??"json",Z=A6.env.AWS_PROFILE??G?.profile,V=Z?`aws configure --profile ${Z}`:"aws configure",$=`${J}
|