@beesolve/analytics-dashboard 0.5.0 → 0.5.1
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/build/client/_app/version.json +1 -1
- package/dist/build/client/_app/version.json.br +0 -0
- package/dist/build/client/_app/version.json.gz +0 -0
- package/dist/build/server/{0-FMOA5I7O.js → 0-Q7DCXRSI.js} +2 -2
- package/dist/build/server/{11-IWVF3GUO.js → 11-3SEPRSWC.js} +2 -2
- package/dist/build/server/{3-XWBGH2MM.js → 3-5QY3MGDC.js} +2 -2
- package/dist/build/server/{4-PTN7C56J.js → 4-FSL4V32M.js} +2 -2
- package/dist/build/server/{5-ZDDR3LLX.js → 5-K3RTM22N.js} +2 -2
- package/dist/build/server/{6-JJDN5APO.js → 6-LFKXJTMF.js} +2 -2
- package/dist/build/server/{7-EMLLQ5LV.js → 7-EKT2FRH6.js} +2 -2
- package/dist/build/server/{8-K2MCTGE7.js → 8-TNB4JEDL.js} +2 -2
- package/dist/build/server/{_page.svelte-XFGQKSFQ.js → _page.svelte-HVZESER3.js} +2 -2
- package/dist/build/server/{_page.svelte-MHWRA6Y2.js → _page.svelte-MKOCJGKT.js} +2 -2
- package/dist/build/server/{_page.svelte-HR4JAE4Y.js → _page.svelte-QP63ZEUO.js} +2 -2
- package/dist/build/server/{_page.svelte-F7FYLZZQ.js → _page.svelte-SQQE336I.js} +2 -2
- package/dist/build/server/{_page.svelte-6QOSNAPZ.js → _page.svelte-VBM3SU6F.js} +2 -2
- package/dist/build/server/{_page.svelte-OSVW7L4G.js → _page.svelte-VZZUO3TW.js} +2 -2
- package/dist/build/server/{_page.svelte-O6XITZ52.js → _page.svelte-WNBRH5YQ.js} +2 -2
- package/dist/build/server/{chunk-KTGJB7M3.js → chunk-5BDT3L74.js} +2 -2
- package/dist/build/server/{chunk-RJLO3ZOK.js → chunk-6QT5IYNQ.js} +2 -2
- package/dist/build/server/{chunk-I4S422PQ.js → chunk-C6OPW4RY.js} +2 -2
- package/dist/build/server/{chunk-KA3MJBXM.js → chunk-CQ2Q2BYP.js} +2 -2
- package/dist/build/server/{chunk-6NKFNTT3.js → chunk-D5PTUDIB.js} +2 -2
- package/dist/build/server/{chunk-YT7GXW3T.js → chunk-EEF7FCHF.js} +2 -2
- package/dist/build/server/{chunk-UWZTBH4Y.js → chunk-FCDX3N6X.js} +2 -2
- package/dist/build/server/{chunk-CAZXUYI4.js → chunk-I6GW6KFL.js} +3 -3
- package/dist/build/server/{chunk-CE4O3S26.js → chunk-M25RR5DV.js} +2 -2
- package/dist/build/server/{chunk-Y7D223T7.js → chunk-MZXZKKQB.js} +2 -2
- package/dist/build/server/{chunk-YB2BRPFF.js → chunk-PCOKA3HG.js} +2 -2
- package/dist/build/server/{chunk-7ORZDQKB.js → chunk-SFNOCOYY.js} +2 -2
- package/dist/build/server/{chunk-KHGYICM3.js → chunk-TMTCAXZ6.js} +2 -2
- package/dist/build/server/chunk-TYV52DOR.js +3 -0
- package/dist/build/server/chunk-TYV52DOR.js.map +6 -0
- package/dist/build/server/{chunk-R6JNHPUE.js → chunk-U3EJ3HUI.js} +2 -2
- package/dist/build/server/{chunk-GMU24ZMO.js → chunk-XLLT67CE.js} +2 -2
- package/dist/build/server/{dist-es-UYSTLTTZ.js → dist-es-3WIGXZO3.js} +2 -2
- package/dist/build/server/{dist-es3-77ZYOMBT.js → dist-es3-XCRZO7CN.js} +2 -2
- package/dist/build/server/{dist-es4-KDFV3JNC.js → dist-es4-ZAOCNMUR.js} +2 -2
- package/dist/build/server/{dist-es6-3LIOBPYN.js → dist-es6-T6JSZPLK.js} +2 -2
- package/dist/build/server/{dist-es7-XTZQI2TF.js → dist-es7-SZKCEBTB.js} +2 -2
- package/dist/build/server/{event-streams-ICBTGIY7.js → event-streams-SA4CIKBE.js} +2 -2
- package/dist/build/server/handler.js +1 -1
- package/dist/build/server/{hooks.server-LWQUJPMV.js → hooks.server-OCFYY5OU.js} +2 -2
- package/dist/build/server/{instance-HA73Z6NN.js → instance-EUDO3XVH.js} +4 -4
- package/dist/build/server/{loadSso-E275HJXR.js → loadSso-3EJE5NU3.js} +2 -2
- package/dist/build/server/{remote-14csdey-FOQJXJXA.js → remote-14csdey-EQ3J7BWD.js} +2 -2
- package/dist/build/server/{remote-1tatjnv-RV2BQYRX.js → remote-1tatjnv-UPKNGMTE.js} +2 -2
- package/dist/build/server/{remote-1uc3g51-WO3FFMWQ.js → remote-1uc3g51-AHDKSEXE.js} +2 -2
- package/dist/build/server/{remote-aix5gf-OWE36SMJ.js → remote-aix5gf-TYIXVOGS.js} +2 -2
- package/dist/build/server/{remote-nc6tv3-LEI5HSU6.js → remote-nc6tv3-RDJQ5I4T.js} +2 -2
- package/dist/build/server/{remote-qvubti-BD4OQ24Z.js → remote-qvubti-FG6KK3TF.js} +2 -2
- package/dist/build/server/{signin-PTWHOMY5.js → signin-GC2BWMHY.js} +2 -2
- package/dist/build/server/{sso-oidc-I3MEU76B.js → sso-oidc-B7S6TFCK.js} +2 -2
- package/dist/build/server/stream.js +1 -1
- package/dist/build/server/{sts-URI6AMGK.js → sts-4KZUB5V5.js} +2 -2
- package/package.json +2 -2
- package/dist/build/server/chunk-7TDI4YTA.js +0 -3
- package/dist/build/server/chunk-7TDI4YTA.js.map +0 -6
- /package/dist/build/server/{0-FMOA5I7O.js.map → 0-Q7DCXRSI.js.map} +0 -0
- /package/dist/build/server/{11-IWVF3GUO.js.map → 11-3SEPRSWC.js.map} +0 -0
- /package/dist/build/server/{3-XWBGH2MM.js.map → 3-5QY3MGDC.js.map} +0 -0
- /package/dist/build/server/{4-PTN7C56J.js.map → 4-FSL4V32M.js.map} +0 -0
- /package/dist/build/server/{5-ZDDR3LLX.js.map → 5-K3RTM22N.js.map} +0 -0
- /package/dist/build/server/{6-JJDN5APO.js.map → 6-LFKXJTMF.js.map} +0 -0
- /package/dist/build/server/{7-EMLLQ5LV.js.map → 7-EKT2FRH6.js.map} +0 -0
- /package/dist/build/server/{8-K2MCTGE7.js.map → 8-TNB4JEDL.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-XFGQKSFQ.js.map → _page.svelte-HVZESER3.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-MHWRA6Y2.js.map → _page.svelte-MKOCJGKT.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-HR4JAE4Y.js.map → _page.svelte-QP63ZEUO.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-F7FYLZZQ.js.map → _page.svelte-SQQE336I.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-6QOSNAPZ.js.map → _page.svelte-VBM3SU6F.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-OSVW7L4G.js.map → _page.svelte-VZZUO3TW.js.map} +0 -0
- /package/dist/build/server/{_page.svelte-O6XITZ52.js.map → _page.svelte-WNBRH5YQ.js.map} +0 -0
- /package/dist/build/server/{chunk-KTGJB7M3.js.map → chunk-5BDT3L74.js.map} +0 -0
- /package/dist/build/server/{chunk-RJLO3ZOK.js.map → chunk-6QT5IYNQ.js.map} +0 -0
- /package/dist/build/server/{chunk-I4S422PQ.js.map → chunk-C6OPW4RY.js.map} +0 -0
- /package/dist/build/server/{chunk-KA3MJBXM.js.map → chunk-CQ2Q2BYP.js.map} +0 -0
- /package/dist/build/server/{chunk-6NKFNTT3.js.map → chunk-D5PTUDIB.js.map} +0 -0
- /package/dist/build/server/{chunk-YT7GXW3T.js.map → chunk-EEF7FCHF.js.map} +0 -0
- /package/dist/build/server/{chunk-UWZTBH4Y.js.map → chunk-FCDX3N6X.js.map} +0 -0
- /package/dist/build/server/{chunk-CAZXUYI4.js.map → chunk-I6GW6KFL.js.map} +0 -0
- /package/dist/build/server/{chunk-CE4O3S26.js.map → chunk-M25RR5DV.js.map} +0 -0
- /package/dist/build/server/{chunk-Y7D223T7.js.map → chunk-MZXZKKQB.js.map} +0 -0
- /package/dist/build/server/{chunk-YB2BRPFF.js.map → chunk-PCOKA3HG.js.map} +0 -0
- /package/dist/build/server/{chunk-7ORZDQKB.js.map → chunk-SFNOCOYY.js.map} +0 -0
- /package/dist/build/server/{chunk-KHGYICM3.js.map → chunk-TMTCAXZ6.js.map} +0 -0
- /package/dist/build/server/{chunk-R6JNHPUE.js.map → chunk-U3EJ3HUI.js.map} +0 -0
- /package/dist/build/server/{chunk-GMU24ZMO.js.map → chunk-XLLT67CE.js.map} +0 -0
- /package/dist/build/server/{dist-es-UYSTLTTZ.js.map → dist-es-3WIGXZO3.js.map} +0 -0
- /package/dist/build/server/{dist-es3-77ZYOMBT.js.map → dist-es3-XCRZO7CN.js.map} +0 -0
- /package/dist/build/server/{dist-es4-KDFV3JNC.js.map → dist-es4-ZAOCNMUR.js.map} +0 -0
- /package/dist/build/server/{dist-es6-3LIOBPYN.js.map → dist-es6-T6JSZPLK.js.map} +0 -0
- /package/dist/build/server/{dist-es7-XTZQI2TF.js.map → dist-es7-SZKCEBTB.js.map} +0 -0
- /package/dist/build/server/{event-streams-ICBTGIY7.js.map → event-streams-SA4CIKBE.js.map} +0 -0
- /package/dist/build/server/{hooks.server-LWQUJPMV.js.map → hooks.server-OCFYY5OU.js.map} +0 -0
- /package/dist/build/server/{instance-HA73Z6NN.js.map → instance-EUDO3XVH.js.map} +0 -0
- /package/dist/build/server/{loadSso-E275HJXR.js.map → loadSso-3EJE5NU3.js.map} +0 -0
- /package/dist/build/server/{remote-14csdey-FOQJXJXA.js.map → remote-14csdey-EQ3J7BWD.js.map} +0 -0
- /package/dist/build/server/{remote-1tatjnv-RV2BQYRX.js.map → remote-1tatjnv-UPKNGMTE.js.map} +0 -0
- /package/dist/build/server/{remote-1uc3g51-WO3FFMWQ.js.map → remote-1uc3g51-AHDKSEXE.js.map} +0 -0
- /package/dist/build/server/{remote-aix5gf-OWE36SMJ.js.map → remote-aix5gf-TYIXVOGS.js.map} +0 -0
- /package/dist/build/server/{remote-nc6tv3-LEI5HSU6.js.map → remote-nc6tv3-RDJQ5I4T.js.map} +0 -0
- /package/dist/build/server/{remote-qvubti-BD4OQ24Z.js.map → remote-qvubti-FG6KK3TF.js.map} +0 -0
- /package/dist/build/server/{signin-PTWHOMY5.js.map → signin-GC2BWMHY.js.map} +0 -0
- /package/dist/build/server/{sso-oidc-I3MEU76B.js.map → sso-oidc-B7S6TFCK.js.map} +0 -0
- /package/dist/build/server/{sts-URI6AMGK.js.map → sts-4KZUB5V5.js.map} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
|
|
2
|
-
import{b as oe}from"./chunk-5CIVNFOJ.js";import{Aa as P,O as _,P as j,Q as H,R as V,S as ie,T as N,U as se,b as Y,c as I,j as v,k as w,s as ee,t as x,u as C,v as te,w as B,xa as re,ya as M,za as ne}from"./chunk-I4S422PQ.js";import{a as A,h as U,j as Z,k as G,l as X}from"./chunk-OS5FKECH.js";import{a as q}from"./chunk-QDCEVKAE.js";import{a as l}from"./chunk-WFJCOJII.js";function ye(r){return(r.includes(",")||r.includes('"'))&&(r=`"${r.replace(/"/g,'\\"')}"`),r}l(ye,"quoteHeader");function we(r,e,t){if(t<=0||!Number.isInteger(t))throw new Error("Invalid number of delimiters ("+t+") for splitEvery.");let i=r.split(e);if(t===1)return i;let n=[],s="";for(let o=0;o<i.length;o++)s===""?s=i[o]:s+=e+i[o],(o+1)%t===0&&(n.push(s),s="");return s!==""&&n.push(s),n}l(we,"splitEvery");var be=class extends ie{static{l(this,"HttpBindingProtocol")}async serializeRequest(r,e,t){let i=e&&typeof e=="object"?e:{},n=this.serializer,s={},o={},a=await t.endpoint(),c=w.of(r?.input),f=[],h=[],p=!1,g,u=new q({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:s,headers:o,body:void 0});if(a){this.updateServiceEndpoint(u,a),this.setHostPrefix(u,r,i);let d=v(r.traits);if(d.http){u.method=d.http[0];let[m,S]=d.http[1].split("?");u.path=="/"?u.path=m:u.path+=m;let y=new URLSearchParams(S??"");for(let[b,R]of y)s[b]=R}}for(let[d,m]of c.structIterator()){let S=m.getMergedTraits()??{},y=i[d];if(y==null&&!m.isIdempotencyToken()){if(S.httpLabel&&(u.path.includes(`{${d}+}`)||u.path.includes(`{${d}}`)))throw new Error(`No value provided for input HTTP label: ${d}.`);continue}if(S.httpPayload)m.isStreaming()?m.isStructSchema()?i[d]&&(g=await this.serializeEventStream({eventStream:i[d],requestSchema:c})):g=y:(n.write(m,y),g=n.flush());else if(S.httpLabel){n.write(m,y);let b=n.flush();u.path.includes(`{${d}+}`)?u.path=u.path.replace(`{${d}+}`,b.split("/").map(H).join("/")):u.path.includes(`{${d}}`)&&(u.path=u.path.replace(`{${d}}`,H(b)))}else if(S.httpHeader)n.write(m,y),o[S.httpHeader.toLowerCase()]=String(n.flush());else if(typeof S.httpPrefixHeaders=="string")for(let b in y){if(!A(y,b))continue;let R=y[b],K=S.httpPrefixHeaders+b;n.write([m.getValueSchema(),{httpHeader:K}],R),o[K.toLowerCase()]=n.flush()}else S.httpQuery||S.httpQueryParams?this.serializeQuery(m,y,s):(p=!0,f.push(d),h.push(m))}if(p&&i){let[d,m]=(c.getName(!0)??"#Unknown").split("#"),S=c.getSchema()[6],y=[3,d,m,c.getMergedTraits(),f,h,void 0];S?y[6]=S:y.pop(),n.write(y,i),g=n.flush()}return u.headers=o,u.query=s,u.body=g,u}serializeQuery(r,e,t){let i=this.serializer,n=r.getMergedTraits();if(n.httpQueryParams){for(let s in e)if(A(e,s)&&!(s in t)){let o=e[s],a=r.getValueSchema();Object.assign(a.getMergedTraits(),{...n,httpQuery:s,httpQueryParams:void 0}),this.serializeQuery(a,o,t)}return}if(r.isListSchema()){let s=!!r.getMergedTraits().sparse,o=[];for(let a of e){i.write([r.getValueSchema(),n],a);let c=i.flush();(s||c!==void 0)&&o.push(c)}t[n.httpQuery]=o}else i.write([r,n],e),t[n.httpQuery]=i.flush()}async deserializeResponse(r,e,t){let i=this.deserializer,n=w.of(r.output),s={};if(t.statusCode>=300){let a=await j(t.body,e);throw a.byteLength>0&&Object.assign(s,await i.read(15,a)),await this.handleError(r,e,t,s,this.deserializeMetadata(t)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let a in t.headers){if(!A(t.headers,a))continue;let c=t.headers[a];delete t.headers[a],t.headers[a.toLowerCase()]=c}let o=await this.deserializeHttpMessage(n,e,t,s);if(o.length){let a=await j(t.body,e);if(a.byteLength>0){let c=await i.read(n,a);for(let f of o)c[f]!=null&&(s[f]=c[f])}}else o.discardResponseBody&&await j(t.body,e);return s.$metadata=this.deserializeMetadata(t),s}async deserializeHttpMessage(r,e,t,i,n){let s;i instanceof Set?s=n:s=i;let o=!0,a=this.deserializer,c=w.of(r),f=[];for(let[h,p]of c.structIterator()){let g=p.getMemberTraits();if(g.httpPayload){if(o=!1,p.isStreaming())p.isStructSchema()?s[h]=await this.deserializeEventStream({response:t,responseSchema:c}):s[h]=oe(t.body);else if(t.body){let u=await j(t.body,e);u.byteLength>0&&(s[h]=await a.read(p,u))}}else if(g.httpHeader){let u=String(g.httpHeader).toLowerCase(),d=t.headers[u];if(d!=null)if(p.isListSchema()){let m=p.getValueSchema();m.getMergedTraits().httpHeader=u;let S;m.isTimestampSchema()&&m.getSchema()===4?S=we(d,",",2):S=te(d);let y=[];for(let b of S)y.push(await a.read(m,b.trim()));s[h]=y}else s[h]=await a.read(p,d)}else if(g.httpPrefixHeaders!==void 0){s[h]={};for(let u in t.headers)if(A(t.headers,u)&&u.startsWith(g.httpPrefixHeaders)){let d=t.headers[u],m=p.getValueSchema();m.getMergedTraits().httpHeader=u,s[h][u.slice(g.httpPrefixHeaders.length)]=await a.read(m,d)}}else g.httpResponseCode?s[h]=t.statusCode:f.push(h)}return f.discardResponseBody=o,f}},Te=class extends V{static{l(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(r,e){super(),this.codecDeserializer=r,this.stringDeserializer=new se(e)}setSerdeContext(r){this.stringDeserializer.setSerdeContext(r),this.codecDeserializer.setSerdeContext(r),this.serdeContext=r}read(r,e){let t=w.of(r),i=t.getMergedTraits(),n=this.serdeContext?.utf8Encoder??I;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(t,n(e));if(i.httpPayload){if(t.isBlobSchema()){let s=this.serdeContext?.utf8Decoder??Y;return typeof e=="string"?s(e):e}else if(t.isStringSchema())return"byteLength"in e?n(e):e}return this.codecDeserializer.read(t,e)}},Be=class extends V{static{l(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(r){super(),this.settings=r}write(r,e){let t=w.of(r);switch(typeof e){case"object":if(e===null){this.stringBuffer="null";return}if(t.isTimestampSchema()){if(!(e instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${e} when schema expected Date in ${t.getName(!0)}`);switch(N(t,this.settings)){case 5:this.stringBuffer=e.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=U(e);break;case 7:this.stringBuffer=String(e.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",e),this.stringBuffer=String(e.getTime()/1e3)}return}if(t.isBlobSchema()&&"byteLength"in e){this.stringBuffer=(this.serdeContext?.base64Encoder??x)(e);return}if(t.isListSchema()&&Array.isArray(e)){let s="";for(let o of e){this.write([t.getValueSchema(),t.getMergedTraits()],o);let a=this.flush(),c=t.getValueSchema().isTimestampSchema()?a:ye(a);s!==""&&(s+=", "),s+=c}this.stringBuffer=s;return}this.stringBuffer=JSON.stringify(e,null,2);break;case"string":let i=t.getMergedTraits().mediaType,n=e;if(i&&((i==="application/json"||i.endsWith("+json"))&&(n=C.from(n)),t.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??x)(n.toString());return}this.stringBuffer=e;break;default:t.isIdempotencyToken()?this.stringBuffer=_():this.stringBuffer=String(e)}}flush(){let r=this.stringBuffer;return this.stringBuffer="",r}},je=class{static{l(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(r,e,t=new Be(e)){this.codecSerializer=r,this.stringSerializer=t}setSerdeContext(r){this.codecSerializer.setSerdeContext(r),this.stringSerializer.setSerdeContext(r)}write(r,e){let t=w.of(r),i=t.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(t,e),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(t,e)}flush(){if(this.buffer!==void 0){let r=this.buffer;return this.buffer=void 0,r}return this.codecSerializer.flush()}},E;function de(){if(E===void 0)try{if(typeof Buffer!="function")E=!1;else{let r=JSON.parse(Buffer.from([123,125]));E=r!==null&&typeof r=="object"}}catch{E=!1}return E}l(de,"detectBufferParsing");function me(r,e,t){if(t?.source){let i=t.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?Ae(i,e)?e:new B(i,"bigDecimal"):ze(i)?new B(i,"bigDecimal"):/[eE]/.test(i)?Ee(i):BigInt(i)}return e}l(me,"jsonReviver");function ze(r){let e=r.indexOf(".");if(e===-1)return!1;let t=r.search(/[eE]/);if(t===-1)return!0;let i=t-e-1;return parseInt(r.slice(t+1),10)<i}l(ze,"isFractionalBigNumeric");function Ae(r,e){if(r===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(r))return J(r)===J(String(e));let t=r.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),i=String(e);return t===i?!0:/[eE]/.test(i)?t===J(i):!1}l(Ae,"isRepresentable");function J(r){let e=r.startsWith("-"),t=e?r.slice(1):r,i=t.search(/[eE]/),n;if(i===-1)n=t;else{let s=parseInt(t.slice(i+1),10),o=t.slice(0,i),a=o.indexOf("."),c,f;a===-1?(c=o,f=o.length):(c=o.slice(0,a)+o.slice(a+1),f=a),c=c.replace(/0+$/,"")||"0";let h=f+s;c==="0"?n="0":h<=0?n="0."+"0".repeat(-h)+c:h>=c.length?n=c+"0".repeat(h-c.length):n=c.slice(0,h)+"."+c.slice(h)}return n.includes(".")&&(n=n.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+n}l(J,"expandToDecimal");function Ee(r){let e=r.search(/[eE]/),t=parseInt(r.slice(e+1),10),i=r.startsWith("-"),n=r.slice(i?1:0,e),s=n.indexOf("."),o,a;s===-1?(o=n,a=t):(o=n.slice(0,s)+n.slice(s+1),a=t-(n.length-s-1)),o=o.replace(/0+$/,"")||"0";let c=BigInt(o)*10n**BigInt(a+(n.replace(".","").length-o.length));return i?-c:c}l(Ee,"expandExponentToBigInt");var $=Symbol.for("@aws-sdk/reviver");function pe(r){let e=w.of(r),t=e.getSchema();if(Array.isArray(t)&&e.isStructSchema()){if($ in t)return t[$];let i=k(e,new Set);return t[$]=i,i}return k(e,new Set)}l(pe,"needsReviver");function k(r,e){let t=r.getSchema();if(e.has(t))return!1;if(e.add(t),r.isBigIntegerSchema()||r.isBigDecimalSchema())return!0;if(r.isStructSchema()){for(let[,i]of r.structIterator())if(k(i,e))return!0}else if(r.isListSchema()||r.isMapSchema()){if(k(r.getValueSchema(),e))return!0}else if(r.isDocumentSchema())return!0;return!1}l(k,"_check");var Ie=l((r,e)=>j(r,e).then(t=>(e?.utf8Encoder??I)(t)),"collectBodyString");async function xe(r,e,t){let i;if(de()&&typeof r?.[Symbol.asyncIterator]=="function"){let s=await j(r,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?i=s:i=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(i||(i=await Ie(r,e)),i.length===0)return{};let n=t&&pe(t)?me:void 0;try{return JSON.parse(i,n)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof i=="string"?i:i.toString("utf8")}),s}}l(xe,"parseJsonBody");var ae=l((r,e)=>Object.keys(r).find(t=>t.toLowerCase()===e.toLowerCase()),"findKey"),Q=l(r=>{let e=r;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},"sanitizeErrorCode"),Ce=l((r,e)=>ge(r,e,["header","code","type"]),"loadRestJsonErrorCode"),We=l((r,e,t=!1)=>ge(r,e,t?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),ge=l(({headers:r},e,t)=>{for(;t.length>0;)switch(t.shift()){case"header":let i=ae(r??{},"x-amzn-errortype");if(i!==void 0)return Q(r[i]);break;case"code":let n=ae(e??{},"code");if(n&&e[n]!==void 0)return Q(e[n]);break;case"type":if(e?.__type!==void 0)return Q(e.__type)}},"loadErrorCode"),Ne=class extends M{static{l(this,"JsonShapeDeserializer2")}settings;constructor(r){super(),this.settings=r}async read(r,e){let t=pe(r)?me:void 0,i;if(typeof e=="string"){if(e.length===0)return{};i=JSON.parse(e,t)}else if(e instanceof Uint8Array&&de()){if(e.byteLength===0)return{};let n=Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength);i=JSON.parse(n,t)}else i=await xe(e,this.serdeContext,r);return this._read(r,i)}readObject(r,e){return this._read(r,e)}_read(r,e){let t=e!==null&&typeof e=="object",i=w.of(r);if(t){if(i.isStructSchema())return this._readStruct(i,e);if(Array.isArray(e)&&i.isListSchema()){let s=i.getValueSchema();if(this.needsTransform(s))for(let o=0;o<e.length;++o)e[o]=this._read(s,e[o]);return e}if(i.isMapSchema()){let s=i.getValueSchema(),o=e;if(this.needsTransform(s))for(let a in o)a==="__proto__"&&P(o),o[a]=this._read(s,o[a]);return o}}if(i.isBlobSchema()&&typeof e=="string")return ee(e);let n=i.getMergedTraits().mediaType;if(i.isStringSchema()&&typeof e=="string"&&n)return n==="application/json"||n.endsWith("+json")?C.from(e):e;if(i.isTimestampSchema()&&e!=null)switch(N(i,this.settings)){case 5:return Z(e);case 6:return G(e);case 7:return X(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(i.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(i.isBigDecimalSchema()&&e!=null){if(e instanceof B)return e;let s=e;return s.type==="bigDecimal"&&"string"in s?new B(s.string,s.type):new B(String(e),"bigDecimal")}if(i.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(i.isDocumentSchema()&&t)if(Array.isArray(e))for(let s=0;s<e.length;++s){let o=e[s];o instanceof B||(e[s]=this._read(i,o))}else{let s=e;for(let o in s){o==="__proto__"&&P(s);let a=s[o];a instanceof B||(s[o]=this._read(i,a))}}return e}_readStruct(r,e){let t=r.isUnionSchema(),i={},n,s=typeof e.__type=="string",{jsonName:o}=this.settings;o&&s&&(n={});let a;t&&(a=new ne(e,i));for(let[c,f]of r.structIterator()){let h=c;o&&(h=f.getMergedTraits().jsonName??h,s&&(n[h]=c)),t&&a.mark(h),e[h]!=null&&(i[c]=this._read(f,e[h]))}if(t)a.writeUnknown();else if(s)for(let c in e){let f=e[c],h=o?n[c]??c:c;h in i||(i[h]=f)}return i}needsTransform(r){return!!(r.isBlobSchema()||r.isTimestampSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema()||r.isDocumentSchema()||r.isStructSchema()||r.isListSchema()||r.isMapSchema()||r.isStringSchema()&&r.getMergedTraits().mediaType)}},Me=class F extends Uint8Array{static{l(this,"JsonBytesStringAdapter")}string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let t=Buffer.allocUnsafe(e);return new F(t.buffer,t.byteOffset,t.byteLength)}return new F(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,t){return typeof e=="string"?this.s().includes(e,t):Uint8Array.prototype.includes.call(this,e,t)}indexOf(e,t){return typeof e=="string"?this.s().indexOf(e,t):Uint8Array.prototype.indexOf.call(this,e,t)}lastIndexOf(e,t){if(typeof e=="string")return this.s().lastIndexOf(e,t);let i=Uint8Array.prototype.lastIndexOf;return t!==void 0?i.call(this,e,t):i.call(this,e)}startsWith(e,t){return this.s().startsWith(e,t)}endsWith(e,t){return this.s().endsWith(e,t)}match(e){return this.s().match(e)}replace(e,t){return this.s().replace(e,t)}search(e){return this.s().search(e)}split(e,t){return this.s().split(e,t)}substring(e,t){return this.s().substring(e,t)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,t){return this.s().padStart(e,t)}padEnd(e,t){return this.s().padEnd(e,t)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>ce+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),ce=e),this.string=I(this)}return this.string}},ce=0,L=new TextEncoder,he=123,fe=125,Le=91,Oe=93,z=34,O=58,D=44,ue=92,De=new Uint8Array([116,114,117,101]),ke=new Uint8Array([102,97,108,115,101]),Re=new Uint8Array([110,117,108,108]),T=new Array(128).fill(null);T[8]="b";T[9]="t";T[10]="n";T[12]="f";T[13]="r";T[34]='"';T[92]="\\";for(let r=0;r<32;r++)T[r]===null&&(T[r]="u00"+r.toString(16).padStart(2,"0"));var le=2048;function W(r){return Me.allocUnsafe(r)}l(W,"alloc");var Ue=class Se extends M{static{l(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=W(le)}write(e,t){this.i=0,this.rawValue=t,this.rootSchema=w.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,t,void 0)}writeDiscriminatedDocument(e,t){this.i=0,this.rootSchema=w.of(e);let i=this.rootSchema;if(i.isStructSchema()&&t!=null&&typeof t=="object"){this.writeValue(i,t,void 0);let n=`"__type":"${i.getName(!0)??"Unknown"}",`,s=n.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),L.encodeInto(n,this.json.subarray(1)),this.i+=s}else this.writeValue(i,t,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let t=this.rawValue;if(this.rawValue=void 0,e===0)return t;let i=this.json.subarray(0,e);return this.json=W(le),i}ensure(e){let{i:t,json:i}=this;if(t+e>i.length){let n=i.length*2;for(;n<t+e;)n*=2;let s=W(n);s.set(this.json),this.json=s}}writeAscii(e){let t=e.length;this.ensure(t);let{i,json:n}=this;for(let s=0;s<t;++s)n[i]=e.charCodeAt(s),i+=1;this.i=i}writeAsciiQuoted(e){let t=e.length;this.ensure(t+4);let{json:i,i:n}=this;i[n++]=z;for(let s=0;s<t;++s)i[n++]=e.charCodeAt(s);i[n++]=z,this.i=n}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=z;let t=e.length;for(let i=0;i<t;++i){let n=e.charCodeAt(i);if(n>34&&n<92)this.json[this.i++]=n;else if(n<128){let s=T[n];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=ue;for(let o=0;o<s.length;o++)this.json[this.i++]=s.charCodeAt(o)}else this.json[this.i++]=n}else if(n>=55296&&n<=56319){let s=i+1<t?e.charCodeAt(i+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:o}=L.encodeInto(e.substring(i,i+2),this.json.subarray(this.i));this.i+=o,++i}else this.ensure(6),this.writeUnicodeEscape(n)}else if(n>=56320&&n<=57343)this.ensure(6),this.writeUnicodeEscape(n);else{let{i:s,json:o}=this;n<2048?(o[s++]=192|n>>6,o[s++]=128|n&63):(o[s++]=224|n>>12,o[s++]=128|n>>6&63,o[s++]=128|n&63),this.i=s}}this.json[this.i++]=z}writeUnicodeEscape(e){let{json:t,i}=this;t[i++]=ue,t[i++]=117;let n=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)t[i++]=n.charCodeAt(s);this.i=i}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(64);for(let i=0;i<64;++i)t[i]=e.charCodeAt(i);return t})();writeBase64(e){let t=Math.ceil(e.length/3)*4;this.ensure(t+2);let i=this.json,n=Se.B64,s=this.i;i[s++]=z;let o=e.length,a=o%3,c=o-a;for(let f=0;f<c;f+=3){let h=e[f],p=e[f+1],g=e[f+2];i[s++]=n[h>>2],i[s++]=n[(h&3)<<4|p>>4],i[s++]=n[(p&15)<<2|g>>6],i[s++]=n[g&63]}if(a===2){let f=e[c],h=e[c+1];i[s++]=n[f>>2],i[s++]=n[(f&3)<<4|h>>4],i[s++]=n[(h&15)<<2],i[s++]=61}else if(a===1){let f=e[c];i[s++]=n[f>>2],i[s++]=n[(f&3)<<4],i[s++]=61,i[s++]=61}i[s++]=z,this.i=s}writeValue(e,t,i){if(t==null){if(i?.isStructSchema()){if(t===void 0&&w.of(e).isIdempotencyToken()){this.writeAsciiQuoted(_());return}return}this.ensure(4),this.json.set(Re,this.i),this.i+=4;return}let n=w.of(e),s=typeof t=="object";if(n.isStringSchema()){let o=n.getMergedTraits().mediaType;if(o&&(o==="application/json"||o.endsWith("+json"))){this.writeJsonString(C.from(t).toString());return}}if(s){if(n.isStructSchema()){this.writeStruct(n,t);return}if(Array.isArray(t)&&(n.isListSchema()||n.isDocumentSchema())){this.writeList(n,t,n.isDocumentSchema());return}if(n.isMapSchema()){this.writeMap(n,t,!1);return}if(t instanceof Uint8Array&&(n.isBlobSchema()||n.isDocumentSchema())){this.writeBase64(t);return}if(t instanceof Date&&(n.isTimestampSchema()||n.isDocumentSchema())){this.writeTimestamp(n,t);return}if(t instanceof B){this.writeAscii(t.string);return}if(n.isDocumentSchema()){Array.isArray(t)?this.writeList(n,t,!0):this.writeMap(n,t,!0);return}let o=JSON.stringify(t);this.writeAscii(o);return}if(typeof t=="string"){if(n.isBlobSchema()){let o=(this.serdeContext?.base64Encoder??x)(t);this.writeAsciiQuoted(o);return}this.writeJsonString(t);return}if(typeof t=="number"){if(Math.abs(t)===1/0||Number.isNaN(t)){this.writeAsciiQuoted(String(t));return}let o=String(t);this.writeAscii(o);return}if(typeof t=="boolean"){this.ensure(5);let{i:o,json:a}=this;t?(a.set(De,o),o+=4):(a.set(ke,o),o+=5),this.i=o;return}if(typeof t=="bigint"){this.writeAscii(t.toString());return}this.writeAscii(String(t))}writeStruct(e,t){this.ensure(2),this.json[this.i++]=he;let i=!1,n=typeof t.__type=="string",s;n&&(s=new Set);for(let[o,a]of e.structIterator()){let c=t[o];if(c==null&&!a.isIdempotencyToken())continue;i&&(this.ensure(1),this.json[this.i++]=D),i=!0;let f=this.settings.jsonName?a.getMergedTraits().jsonName??o:o;s&&(s.add(o),s.add(f)),this.writeAsciiQuoted(f),this.json[this.i++]=O,this.writeValue(a,c,e)}if(!i&&e.isUnionSchema()){let{$unknown:o}=t;if(Array.isArray(o)){let[a,c]=o;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=O,this.writeValue(15,c,e)}}else if(n)for(let o in t){if(s.has(o))continue;s.add(o);let a=t[o];i&&(this.ensure(1),this.json[this.i++]=D),i=!0,this.writeAsciiQuoted(o),this.ensure(1),this.json[this.i++]=O,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=fe}writeList(e,t,i){let n=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!i&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let f=0;f<t.length;++f){let h=t[f];if(Number.isNaN(h)||h===1/0||h===-1/0||h==null&&!n){a=!0;break}}let c;if(!a)c=JSON.stringify(t);else{let f=[];for(let h=0;h<t.length;++h){let p=t[h];p==null&&!n||(Number.isNaN(p)||p===1/0||p===-1/0?f.push(String(p)):f.push(p))}c=JSON.stringify(f)}this.ensure(c.length*3),this.i+=L.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Le;let o=!1;for(let a=0;a<t.length;++a){let c=t[a];(i?c===void 0:c==null&&!n)||(o&&(this.ensure(1),this.json[this.i++]=D),this.writeValue(s,c,void 0),o=!0)}this.ensure(1),this.json[this.i++]=Oe}writeMap(e,t,i){let n=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!i&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let f in t){let h=t[f];Number.isNaN(h)||h===1/0||h===-1/0?((a??={})[f]=h,t[f]=String(h)):h===null&&!n&&((a??={})[f]=null,t[f]=void 0)}let c=JSON.stringify(t);a&&Object.assign(t,a),this.ensure(c.length*3),this.i+=L.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=he;let o=!0;for(let a in t){let c=t[a];(i?c===void 0:c==null&&!n)||(o||(this.ensure(1),this.json[this.i++]=D),o=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=O,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=fe}writeTimestamp(e,t){switch(N(e,this.settings)){case 5:{let i=t.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(i);return}case 6:this.writeAsciiQuoted(U(t));return;case 7:{let i=String(t.getTime()/1e3);this.writeAscii(i);return}default:{let i=String(t.getTime()/1e3);this.writeAscii(i);return}}}},_e=class extends M{static{l(this,"JsonCodec2")}settings;constructor(r){super(),this.settings=r}createSerializer(){let r=new Ue(this.settings);return r.setSerdeContext(this.serdeContext),r}createDeserializer(){let r=new Ne(this.settings);return r.setSerdeContext(this.serdeContext),r}},Fe=class extends be{static{l(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new re;constructor({defaultNamespace:r,errorTypeRegistries:e,jsonCodec:t}){super({defaultNamespace:r,errorTypeRegistries:e});let i={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=t??new _e(i),this.serializer=new je(this.codec.createSerializer(),i),this.deserializer=new Te(this.codec.createDeserializer(),i)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(r){this.codec.setSerdeContext(r),super.setSerdeContext(r)}async serializeRequest(r,e,t){let i=await super.serializeRequest(r,e,t),n=w.of(r.input);if(!i.headers["content-type"]){let s=this.mixin.resolveRestContentType(this.getDefaultContentType(),n);s&&(i.headers["content-type"]=s)}return i.body==null&&i.headers["content-type"]===this.getDefaultContentType()&&(i.body="{}"),i}async deserializeResponse(r,e,t){let i=await super.deserializeResponse(r,e,t),n=w.of(r.output);for(let[s,o]of n.structIterator())o.getMemberTraits().httpPayload&&!(s in i)&&(i[s]=null);return i}async handleError(r,e,t,i,n){let s=Ce(t,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,s,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(s,this.options.defaultNamespace,t,i,n),c=w.of(o),f=i.message??i.Message??"UnknownError",h=new(this.compositeErrorRegistry.getErrorCtor(o)??Error)({});await this.deserializeHttpMessage(o,e,t,i);let p={},g=this.codec.createDeserializer();for(let[u,d]of c.structIterator()){let m=d.getMergedTraits().jsonName??u;p[u]=g.readObject(d,i[m])}throw this.mixin.decorateServiceException(Object.assign(h,a,{$fault:c.getMergedTraits().error,message:f},p),i)}getDefaultContentType(){return"application/json"}};export{be as a,Te as b,je as c,We as d,_e as e,Fe as f};
|
|
3
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
import{b as oe}from"./chunk-5CIVNFOJ.js";import{Aa as P,O as _,P as j,Q as H,R as V,S as ie,T as N,U as se,b as Y,c as I,j as v,k as w,s as ee,t as x,u as C,v as te,w as B,xa as re,ya as M,za as ne}from"./chunk-C6OPW4RY.js";import{a as A,h as U,j as Z,k as G,l as X}from"./chunk-OS5FKECH.js";import{a as q}from"./chunk-QDCEVKAE.js";import{a as l}from"./chunk-WFJCOJII.js";function ye(r){return(r.includes(",")||r.includes('"'))&&(r=`"${r.replace(/"/g,'\\"')}"`),r}l(ye,"quoteHeader");function we(r,e,t){if(t<=0||!Number.isInteger(t))throw new Error("Invalid number of delimiters ("+t+") for splitEvery.");let i=r.split(e);if(t===1)return i;let n=[],s="";for(let o=0;o<i.length;o++)s===""?s=i[o]:s+=e+i[o],(o+1)%t===0&&(n.push(s),s="");return s!==""&&n.push(s),n}l(we,"splitEvery");var be=class extends ie{static{l(this,"HttpBindingProtocol")}async serializeRequest(r,e,t){let i=e&&typeof e=="object"?e:{},n=this.serializer,s={},o={},a=await t.endpoint(),c=w.of(r?.input),f=[],h=[],p=!1,g,u=new q({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:s,headers:o,body:void 0});if(a){this.updateServiceEndpoint(u,a),this.setHostPrefix(u,r,i);let d=v(r.traits);if(d.http){u.method=d.http[0];let[m,S]=d.http[1].split("?");u.path=="/"?u.path=m:u.path+=m;let y=new URLSearchParams(S??"");for(let[b,R]of y)s[b]=R}}for(let[d,m]of c.structIterator()){let S=m.getMergedTraits()??{},y=i[d];if(y==null&&!m.isIdempotencyToken()){if(S.httpLabel&&(u.path.includes(`{${d}+}`)||u.path.includes(`{${d}}`)))throw new Error(`No value provided for input HTTP label: ${d}.`);continue}if(S.httpPayload)m.isStreaming()?m.isStructSchema()?i[d]&&(g=await this.serializeEventStream({eventStream:i[d],requestSchema:c})):g=y:(n.write(m,y),g=n.flush());else if(S.httpLabel){n.write(m,y);let b=n.flush();u.path.includes(`{${d}+}`)?u.path=u.path.replace(`{${d}+}`,b.split("/").map(H).join("/")):u.path.includes(`{${d}}`)&&(u.path=u.path.replace(`{${d}}`,H(b)))}else if(S.httpHeader)n.write(m,y),o[S.httpHeader.toLowerCase()]=String(n.flush());else if(typeof S.httpPrefixHeaders=="string")for(let b in y){if(!A(y,b))continue;let R=y[b],K=S.httpPrefixHeaders+b;n.write([m.getValueSchema(),{httpHeader:K}],R),o[K.toLowerCase()]=n.flush()}else S.httpQuery||S.httpQueryParams?this.serializeQuery(m,y,s):(p=!0,f.push(d),h.push(m))}if(p&&i){let[d,m]=(c.getName(!0)??"#Unknown").split("#"),S=c.getSchema()[6],y=[3,d,m,c.getMergedTraits(),f,h,void 0];S?y[6]=S:y.pop(),n.write(y,i),g=n.flush()}return u.headers=o,u.query=s,u.body=g,u}serializeQuery(r,e,t){let i=this.serializer,n=r.getMergedTraits();if(n.httpQueryParams){for(let s in e)if(A(e,s)&&!(s in t)){let o=e[s],a=r.getValueSchema();Object.assign(a.getMergedTraits(),{...n,httpQuery:s,httpQueryParams:void 0}),this.serializeQuery(a,o,t)}return}if(r.isListSchema()){let s=!!r.getMergedTraits().sparse,o=[];for(let a of e){i.write([r.getValueSchema(),n],a);let c=i.flush();(s||c!==void 0)&&o.push(c)}t[n.httpQuery]=o}else i.write([r,n],e),t[n.httpQuery]=i.flush()}async deserializeResponse(r,e,t){let i=this.deserializer,n=w.of(r.output),s={};if(t.statusCode>=300){let a=await j(t.body,e);throw a.byteLength>0&&Object.assign(s,await i.read(15,a)),await this.handleError(r,e,t,s,this.deserializeMetadata(t)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let a in t.headers){if(!A(t.headers,a))continue;let c=t.headers[a];delete t.headers[a],t.headers[a.toLowerCase()]=c}let o=await this.deserializeHttpMessage(n,e,t,s);if(o.length){let a=await j(t.body,e);if(a.byteLength>0){let c=await i.read(n,a);for(let f of o)c[f]!=null&&(s[f]=c[f])}}else o.discardResponseBody&&await j(t.body,e);return s.$metadata=this.deserializeMetadata(t),s}async deserializeHttpMessage(r,e,t,i,n){let s;i instanceof Set?s=n:s=i;let o=!0,a=this.deserializer,c=w.of(r),f=[];for(let[h,p]of c.structIterator()){let g=p.getMemberTraits();if(g.httpPayload){if(o=!1,p.isStreaming())p.isStructSchema()?s[h]=await this.deserializeEventStream({response:t,responseSchema:c}):s[h]=oe(t.body);else if(t.body){let u=await j(t.body,e);u.byteLength>0&&(s[h]=await a.read(p,u))}}else if(g.httpHeader){let u=String(g.httpHeader).toLowerCase(),d=t.headers[u];if(d!=null)if(p.isListSchema()){let m=p.getValueSchema();m.getMergedTraits().httpHeader=u;let S;m.isTimestampSchema()&&m.getSchema()===4?S=we(d,",",2):S=te(d);let y=[];for(let b of S)y.push(await a.read(m,b.trim()));s[h]=y}else s[h]=await a.read(p,d)}else if(g.httpPrefixHeaders!==void 0){s[h]={};for(let u in t.headers)if(A(t.headers,u)&&u.startsWith(g.httpPrefixHeaders)){let d=t.headers[u],m=p.getValueSchema();m.getMergedTraits().httpHeader=u,s[h][u.slice(g.httpPrefixHeaders.length)]=await a.read(m,d)}}else g.httpResponseCode?s[h]=t.statusCode:f.push(h)}return f.discardResponseBody=o,f}},Te=class extends V{static{l(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(r,e){super(),this.codecDeserializer=r,this.stringDeserializer=new se(e)}setSerdeContext(r){this.stringDeserializer.setSerdeContext(r),this.codecDeserializer.setSerdeContext(r),this.serdeContext=r}read(r,e){let t=w.of(r),i=t.getMergedTraits(),n=this.serdeContext?.utf8Encoder??I;if(i.httpHeader||i.httpResponseCode)return this.stringDeserializer.read(t,n(e));if(i.httpPayload){if(t.isBlobSchema()){let s=this.serdeContext?.utf8Decoder??Y;return typeof e=="string"?s(e):e}else if(t.isStringSchema())return"byteLength"in e?n(e):e}return this.codecDeserializer.read(t,e)}},Be=class extends V{static{l(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(r){super(),this.settings=r}write(r,e){let t=w.of(r);switch(typeof e){case"object":if(e===null){this.stringBuffer="null";return}if(t.isTimestampSchema()){if(!(e instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${e} when schema expected Date in ${t.getName(!0)}`);switch(N(t,this.settings)){case 5:this.stringBuffer=e.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=U(e);break;case 7:this.stringBuffer=String(e.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",e),this.stringBuffer=String(e.getTime()/1e3)}return}if(t.isBlobSchema()&&"byteLength"in e){this.stringBuffer=(this.serdeContext?.base64Encoder??x)(e);return}if(t.isListSchema()&&Array.isArray(e)){let s="";for(let o of e){this.write([t.getValueSchema(),t.getMergedTraits()],o);let a=this.flush(),c=t.getValueSchema().isTimestampSchema()?a:ye(a);s!==""&&(s+=", "),s+=c}this.stringBuffer=s;return}this.stringBuffer=JSON.stringify(e,null,2);break;case"string":let i=t.getMergedTraits().mediaType,n=e;if(i&&((i==="application/json"||i.endsWith("+json"))&&(n=C.from(n)),t.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??x)(n.toString());return}this.stringBuffer=e;break;default:t.isIdempotencyToken()?this.stringBuffer=_():this.stringBuffer=String(e)}}flush(){let r=this.stringBuffer;return this.stringBuffer="",r}},je=class{static{l(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(r,e,t=new Be(e)){this.codecSerializer=r,this.stringSerializer=t}setSerdeContext(r){this.codecSerializer.setSerdeContext(r),this.stringSerializer.setSerdeContext(r)}write(r,e){let t=w.of(r),i=t.getMergedTraits();if(i.httpHeader||i.httpLabel||i.httpQuery){this.stringSerializer.write(t,e),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(t,e)}flush(){if(this.buffer!==void 0){let r=this.buffer;return this.buffer=void 0,r}return this.codecSerializer.flush()}},E;function de(){if(E===void 0)try{if(typeof Buffer!="function")E=!1;else{let r=JSON.parse(Buffer.from([123,125]));E=r!==null&&typeof r=="object"}}catch{E=!1}return E}l(de,"detectBufferParsing");function me(r,e,t){if(t?.source){let i=t.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?Ae(i,e)?e:new B(i,"bigDecimal"):ze(i)?new B(i,"bigDecimal"):/[eE]/.test(i)?Ee(i):BigInt(i)}return e}l(me,"jsonReviver");function ze(r){let e=r.indexOf(".");if(e===-1)return!1;let t=r.search(/[eE]/);if(t===-1)return!0;let i=t-e-1;return parseInt(r.slice(t+1),10)<i}l(ze,"isFractionalBigNumeric");function Ae(r,e){if(r===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(r))return J(r)===J(String(e));let t=r.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),i=String(e);return t===i?!0:/[eE]/.test(i)?t===J(i):!1}l(Ae,"isRepresentable");function J(r){let e=r.startsWith("-"),t=e?r.slice(1):r,i=t.search(/[eE]/),n;if(i===-1)n=t;else{let s=parseInt(t.slice(i+1),10),o=t.slice(0,i),a=o.indexOf("."),c,f;a===-1?(c=o,f=o.length):(c=o.slice(0,a)+o.slice(a+1),f=a),c=c.replace(/0+$/,"")||"0";let h=f+s;c==="0"?n="0":h<=0?n="0."+"0".repeat(-h)+c:h>=c.length?n=c+"0".repeat(h-c.length):n=c.slice(0,h)+"."+c.slice(h)}return n.includes(".")&&(n=n.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+n}l(J,"expandToDecimal");function Ee(r){let e=r.search(/[eE]/),t=parseInt(r.slice(e+1),10),i=r.startsWith("-"),n=r.slice(i?1:0,e),s=n.indexOf("."),o,a;s===-1?(o=n,a=t):(o=n.slice(0,s)+n.slice(s+1),a=t-(n.length-s-1)),o=o.replace(/0+$/,"")||"0";let c=BigInt(o)*10n**BigInt(a+(n.replace(".","").length-o.length));return i?-c:c}l(Ee,"expandExponentToBigInt");var $=Symbol.for("@aws-sdk/reviver");function pe(r){let e=w.of(r),t=e.getSchema();if(Array.isArray(t)&&e.isStructSchema()){if($ in t)return t[$];let i=k(e,new Set);return t[$]=i,i}return k(e,new Set)}l(pe,"needsReviver");function k(r,e){let t=r.getSchema();if(e.has(t))return!1;if(e.add(t),r.isBigIntegerSchema()||r.isBigDecimalSchema())return!0;if(r.isStructSchema()){for(let[,i]of r.structIterator())if(k(i,e))return!0}else if(r.isListSchema()||r.isMapSchema()){if(k(r.getValueSchema(),e))return!0}else if(r.isDocumentSchema())return!0;return!1}l(k,"_check");var Ie=l((r,e)=>j(r,e).then(t=>(e?.utf8Encoder??I)(t)),"collectBodyString");async function xe(r,e,t){let i;if(de()&&typeof r?.[Symbol.asyncIterator]=="function"){let s=await j(r,e);typeof Buffer=="function"&&(Buffer.isBuffer(s)?i=s:i=Buffer.from(s.buffer,s.byteOffset,s.byteLength))}if(i||(i=await Ie(r,e)),i.length===0)return{};let n=t&&pe(t)?me:void 0;try{return JSON.parse(i,n)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:typeof i=="string"?i:i.toString("utf8")}),s}}l(xe,"parseJsonBody");var ae=l((r,e)=>Object.keys(r).find(t=>t.toLowerCase()===e.toLowerCase()),"findKey"),Q=l(r=>{let e=r;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},"sanitizeErrorCode"),Ce=l((r,e)=>ge(r,e,["header","code","type"]),"loadRestJsonErrorCode"),We=l((r,e,t=!1)=>ge(r,e,t?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),ge=l(({headers:r},e,t)=>{for(;t.length>0;)switch(t.shift()){case"header":let i=ae(r??{},"x-amzn-errortype");if(i!==void 0)return Q(r[i]);break;case"code":let n=ae(e??{},"code");if(n&&e[n]!==void 0)return Q(e[n]);break;case"type":if(e?.__type!==void 0)return Q(e.__type)}},"loadErrorCode"),Ne=class extends M{static{l(this,"JsonShapeDeserializer2")}settings;constructor(r){super(),this.settings=r}async read(r,e){let t=pe(r)?me:void 0,i;if(typeof e=="string"){if(e.length===0)return{};i=JSON.parse(e,t)}else if(e instanceof Uint8Array&&de()){if(e.byteLength===0)return{};let n=Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength);i=JSON.parse(n,t)}else i=await xe(e,this.serdeContext,r);return this._read(r,i)}readObject(r,e){return this._read(r,e)}_read(r,e){let t=e!==null&&typeof e=="object",i=w.of(r);if(t){if(i.isStructSchema())return this._readStruct(i,e);if(Array.isArray(e)&&i.isListSchema()){let s=i.getValueSchema();if(this.needsTransform(s))for(let o=0;o<e.length;++o)e[o]=this._read(s,e[o]);return e}if(i.isMapSchema()){let s=i.getValueSchema(),o=e;if(this.needsTransform(s))for(let a in o)a==="__proto__"&&P(o),o[a]=this._read(s,o[a]);return o}}if(i.isBlobSchema()&&typeof e=="string")return ee(e);let n=i.getMergedTraits().mediaType;if(i.isStringSchema()&&typeof e=="string"&&n)return n==="application/json"||n.endsWith("+json")?C.from(e):e;if(i.isTimestampSchema()&&e!=null)switch(N(i,this.settings)){case 5:return Z(e);case 6:return G(e);case 7:return X(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(i.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(i.isBigDecimalSchema()&&e!=null){if(e instanceof B)return e;let s=e;return s.type==="bigDecimal"&&"string"in s?new B(s.string,s.type):new B(String(e),"bigDecimal")}if(i.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(i.isDocumentSchema()&&t)if(Array.isArray(e))for(let s=0;s<e.length;++s){let o=e[s];o instanceof B||(e[s]=this._read(i,o))}else{let s=e;for(let o in s){o==="__proto__"&&P(s);let a=s[o];a instanceof B||(s[o]=this._read(i,a))}}return e}_readStruct(r,e){let t=r.isUnionSchema(),i={},n,s=typeof e.__type=="string",{jsonName:o}=this.settings;o&&s&&(n={});let a;t&&(a=new ne(e,i));for(let[c,f]of r.structIterator()){let h=c;o&&(h=f.getMergedTraits().jsonName??h,s&&(n[h]=c)),t&&a.mark(h),e[h]!=null&&(i[c]=this._read(f,e[h]))}if(t)a.writeUnknown();else if(s)for(let c in e){let f=e[c],h=o?n[c]??c:c;h in i||(i[h]=f)}return i}needsTransform(r){return!!(r.isBlobSchema()||r.isTimestampSchema()||r.isBigIntegerSchema()||r.isBigDecimalSchema()||r.isDocumentSchema()||r.isStructSchema()||r.isListSchema()||r.isMapSchema()||r.isStringSchema()&&r.getMergedTraits().mediaType)}},Me=class F extends Uint8Array{static{l(this,"JsonBytesStringAdapter")}string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let t=Buffer.allocUnsafe(e);return new F(t.buffer,t.byteOffset,t.byteLength)}return new F(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,t){return typeof e=="string"?this.s().includes(e,t):Uint8Array.prototype.includes.call(this,e,t)}indexOf(e,t){return typeof e=="string"?this.s().indexOf(e,t):Uint8Array.prototype.indexOf.call(this,e,t)}lastIndexOf(e,t){if(typeof e=="string")return this.s().lastIndexOf(e,t);let i=Uint8Array.prototype.lastIndexOf;return t!==void 0?i.call(this,e,t):i.call(this,e)}startsWith(e,t){return this.s().startsWith(e,t)}endsWith(e,t){return this.s().endsWith(e,t)}match(e){return this.s().match(e)}replace(e,t){return this.s().replace(e,t)}search(e){return this.s().search(e)}split(e,t){return this.s().split(e,t)}substring(e,t){return this.s().substring(e,t)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,t){return this.s().padStart(e,t)}padEnd(e,t){return this.s().padEnd(e,t)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>ce+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),ce=e),this.string=I(this)}return this.string}},ce=0,L=new TextEncoder,he=123,fe=125,Le=91,Oe=93,z=34,O=58,D=44,ue=92,De=new Uint8Array([116,114,117,101]),ke=new Uint8Array([102,97,108,115,101]),Re=new Uint8Array([110,117,108,108]),T=new Array(128).fill(null);T[8]="b";T[9]="t";T[10]="n";T[12]="f";T[13]="r";T[34]='"';T[92]="\\";for(let r=0;r<32;r++)T[r]===null&&(T[r]="u00"+r.toString(16).padStart(2,"0"));var le=2048;function W(r){return Me.allocUnsafe(r)}l(W,"alloc");var Ue=class Se extends M{static{l(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=W(le)}write(e,t){this.i=0,this.rawValue=t,this.rootSchema=w.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,t,void 0)}writeDiscriminatedDocument(e,t){this.i=0,this.rootSchema=w.of(e);let i=this.rootSchema;if(i.isStructSchema()&&t!=null&&typeof t=="object"){this.writeValue(i,t,void 0);let n=`"__type":"${i.getName(!0)??"Unknown"}",`,s=n.length;this.ensure(s),this.json.copyWithin(1+s,1,this.i),L.encodeInto(n,this.json.subarray(1)),this.i+=s}else this.writeValue(i,t,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let t=this.rawValue;if(this.rawValue=void 0,e===0)return t;let i=this.json.subarray(0,e);return this.json=W(le),i}ensure(e){let{i:t,json:i}=this;if(t+e>i.length){let n=i.length*2;for(;n<t+e;)n*=2;let s=W(n);s.set(this.json),this.json=s}}writeAscii(e){let t=e.length;this.ensure(t);let{i,json:n}=this;for(let s=0;s<t;++s)n[i]=e.charCodeAt(s),i+=1;this.i=i}writeAsciiQuoted(e){let t=e.length;this.ensure(t+4);let{json:i,i:n}=this;i[n++]=z;for(let s=0;s<t;++s)i[n++]=e.charCodeAt(s);i[n++]=z,this.i=n}writeJsonString(e){this.ensure(e.length*3+2),this.json[this.i++]=z;let t=e.length;for(let i=0;i<t;++i){let n=e.charCodeAt(i);if(n>34&&n<92)this.json[this.i++]=n;else if(n<128){let s=T[n];if(s!==null){this.ensure(s.length+1),this.json[this.i++]=ue;for(let o=0;o<s.length;o++)this.json[this.i++]=s.charCodeAt(o)}else this.json[this.i++]=n}else if(n>=55296&&n<=56319){let s=i+1<t?e.charCodeAt(i+1):0;if(s>=56320&&s<=57343){this.ensure(4);let{written:o}=L.encodeInto(e.substring(i,i+2),this.json.subarray(this.i));this.i+=o,++i}else this.ensure(6),this.writeUnicodeEscape(n)}else if(n>=56320&&n<=57343)this.ensure(6),this.writeUnicodeEscape(n);else{let{i:s,json:o}=this;n<2048?(o[s++]=192|n>>6,o[s++]=128|n&63):(o[s++]=224|n>>12,o[s++]=128|n>>6&63,o[s++]=128|n&63),this.i=s}}this.json[this.i++]=z}writeUnicodeEscape(e){let{json:t,i}=this;t[i++]=ue,t[i++]=117;let n=e.toString(16).padStart(4,"0");for(let s=0;s<4;++s)t[i++]=n.charCodeAt(s);this.i=i}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=new Uint8Array(64);for(let i=0;i<64;++i)t[i]=e.charCodeAt(i);return t})();writeBase64(e){let t=Math.ceil(e.length/3)*4;this.ensure(t+2);let i=this.json,n=Se.B64,s=this.i;i[s++]=z;let o=e.length,a=o%3,c=o-a;for(let f=0;f<c;f+=3){let h=e[f],p=e[f+1],g=e[f+2];i[s++]=n[h>>2],i[s++]=n[(h&3)<<4|p>>4],i[s++]=n[(p&15)<<2|g>>6],i[s++]=n[g&63]}if(a===2){let f=e[c],h=e[c+1];i[s++]=n[f>>2],i[s++]=n[(f&3)<<4|h>>4],i[s++]=n[(h&15)<<2],i[s++]=61}else if(a===1){let f=e[c];i[s++]=n[f>>2],i[s++]=n[(f&3)<<4],i[s++]=61,i[s++]=61}i[s++]=z,this.i=s}writeValue(e,t,i){if(t==null){if(i?.isStructSchema()){if(t===void 0&&w.of(e).isIdempotencyToken()){this.writeAsciiQuoted(_());return}return}this.ensure(4),this.json.set(Re,this.i),this.i+=4;return}let n=w.of(e),s=typeof t=="object";if(n.isStringSchema()){let o=n.getMergedTraits().mediaType;if(o&&(o==="application/json"||o.endsWith("+json"))){this.writeJsonString(C.from(t).toString());return}}if(s){if(n.isStructSchema()){this.writeStruct(n,t);return}if(Array.isArray(t)&&(n.isListSchema()||n.isDocumentSchema())){this.writeList(n,t,n.isDocumentSchema());return}if(n.isMapSchema()){this.writeMap(n,t,!1);return}if(t instanceof Uint8Array&&(n.isBlobSchema()||n.isDocumentSchema())){this.writeBase64(t);return}if(t instanceof Date&&(n.isTimestampSchema()||n.isDocumentSchema())){this.writeTimestamp(n,t);return}if(t instanceof B){this.writeAscii(t.string);return}if(n.isDocumentSchema()){Array.isArray(t)?this.writeList(n,t,!0):this.writeMap(n,t,!0);return}let o=JSON.stringify(t);this.writeAscii(o);return}if(typeof t=="string"){if(n.isBlobSchema()){let o=(this.serdeContext?.base64Encoder??x)(t);this.writeAsciiQuoted(o);return}this.writeJsonString(t);return}if(typeof t=="number"){if(Math.abs(t)===1/0||Number.isNaN(t)){this.writeAsciiQuoted(String(t));return}let o=String(t);this.writeAscii(o);return}if(typeof t=="boolean"){this.ensure(5);let{i:o,json:a}=this;t?(a.set(De,o),o+=4):(a.set(ke,o),o+=5),this.i=o;return}if(typeof t=="bigint"){this.writeAscii(t.toString());return}this.writeAscii(String(t))}writeStruct(e,t){this.ensure(2),this.json[this.i++]=he;let i=!1,n=typeof t.__type=="string",s;n&&(s=new Set);for(let[o,a]of e.structIterator()){let c=t[o];if(c==null&&!a.isIdempotencyToken())continue;i&&(this.ensure(1),this.json[this.i++]=D),i=!0;let f=this.settings.jsonName?a.getMergedTraits().jsonName??o:o;s&&(s.add(o),s.add(f)),this.writeAsciiQuoted(f),this.json[this.i++]=O,this.writeValue(a,c,e)}if(!i&&e.isUnionSchema()){let{$unknown:o}=t;if(Array.isArray(o)){let[a,c]=o;this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=O,this.writeValue(15,c,e)}}else if(n)for(let o in t){if(s.has(o))continue;s.add(o);let a=t[o];i&&(this.ensure(1),this.json[this.i++]=D),i=!0,this.writeAsciiQuoted(o),this.ensure(1),this.json[this.i++]=O,this.writeValue(15,a,void 0)}this.ensure(1),this.json[this.i++]=fe}writeList(e,t,i){let n=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!i&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a=!1;for(let f=0;f<t.length;++f){let h=t[f];if(Number.isNaN(h)||h===1/0||h===-1/0||h==null&&!n){a=!0;break}}let c;if(!a)c=JSON.stringify(t);else{let f=[];for(let h=0;h<t.length;++h){let p=t[h];p==null&&!n||(Number.isNaN(p)||p===1/0||p===-1/0?f.push(String(p)):f.push(p))}c=JSON.stringify(f)}this.ensure(c.length*3),this.i+=L.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Le;let o=!1;for(let a=0;a<t.length;++a){let c=t[a];(i?c===void 0:c==null&&!n)||(o&&(this.ensure(1),this.json[this.i++]=D),this.writeValue(s,c,void 0),o=!0)}this.ensure(1),this.json[this.i++]=Oe}writeMap(e,t,i){let n=!!e.getMergedTraits().sparse,s=e.getValueSchema();if(!i&&(s.isStringSchema()||s.isNumericSchema()||s.isBooleanSchema())){let a;for(let f in t){let h=t[f];Number.isNaN(h)||h===1/0||h===-1/0?((a??={})[f]=h,t[f]=String(h)):h===null&&!n&&((a??={})[f]=null,t[f]=void 0)}let c=JSON.stringify(t);a&&Object.assign(t,a),this.ensure(c.length*3),this.i+=L.encodeInto(c,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=he;let o=!0;for(let a in t){let c=t[a];(i?c===void 0:c==null&&!n)||(o||(this.ensure(1),this.json[this.i++]=D),o=!1,this.writeJsonString(a),this.ensure(1),this.json[this.i++]=O,this.writeValue(s,c,void 0))}this.ensure(1),this.json[this.i++]=fe}writeTimestamp(e,t){switch(N(e,this.settings)){case 5:{let i=t.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(i);return}case 6:this.writeAsciiQuoted(U(t));return;case 7:{let i=String(t.getTime()/1e3);this.writeAscii(i);return}default:{let i=String(t.getTime()/1e3);this.writeAscii(i);return}}}},_e=class extends M{static{l(this,"JsonCodec2")}settings;constructor(r){super(),this.settings=r}createSerializer(){let r=new Ue(this.settings);return r.setSerdeContext(this.serdeContext),r}createDeserializer(){let r=new Ne(this.settings);return r.setSerdeContext(this.serdeContext),r}},Fe=class extends be{static{l(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new re;constructor({defaultNamespace:r,errorTypeRegistries:e,jsonCodec:t}){super({defaultNamespace:r,errorTypeRegistries:e});let i={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=t??new _e(i),this.serializer=new je(this.codec.createSerializer(),i),this.deserializer=new Te(this.codec.createDeserializer(),i)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(r){this.codec.setSerdeContext(r),super.setSerdeContext(r)}async serializeRequest(r,e,t){let i=await super.serializeRequest(r,e,t),n=w.of(r.input);if(!i.headers["content-type"]){let s=this.mixin.resolveRestContentType(this.getDefaultContentType(),n);s&&(i.headers["content-type"]=s)}return i.body==null&&i.headers["content-type"]===this.getDefaultContentType()&&(i.body="{}"),i}async deserializeResponse(r,e,t){let i=await super.deserializeResponse(r,e,t),n=w.of(r.output);for(let[s,o]of n.structIterator())o.getMemberTraits().httpPayload&&!(s in i)&&(i[s]=null);return i}async handleError(r,e,t,i,n){let s=Ce(t,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,s,this.options.defaultNamespace);let{errorSchema:o,errorMetadata:a}=await this.mixin.getErrorSchemaOrThrowBaseException(s,this.options.defaultNamespace,t,i,n),c=w.of(o),f=i.message??i.Message??"UnknownError",h=new(this.compositeErrorRegistry.getErrorCtor(o)??Error)({});await this.deserializeHttpMessage(o,e,t,i);let p={},g=this.codec.createDeserializer();for(let[u,d]of c.structIterator()){let m=d.getMergedTraits().jsonName??u;p[u]=g.readObject(d,i[m])}throw this.mixin.decorateServiceException(Object.assign(h,a,{$fault:c.getMergedTraits().error,message:f},p),i)}getDefaultContentType(){return"application/json"}};export{be as a,Te as b,je as c,We as d,_e as e,Fe as f};
|
|
3
|
+
//# sourceMappingURL=chunk-EEF7FCHF.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* CommonJS polyfills */import { fileURLToPath } from 'node:url';import { createRequire } from 'node:module';const __filename = fileURLToPath(import.meta.url);const __dirname = fileURLToPath(new URL('.', import.meta.url));const require = createRequire(import.meta.url);/* end of CommonJS polyfills */
|
|
2
|
-
import{a as w,b}from"./chunk-ZB4GC6MX.js";import{
|
|
3
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
import{a as w,b}from"./chunk-ZB4GC6MX.js";import{b as l,c as d,g as k}from"./chunk-TYV52DOR.js";import{m as c,o,p as v}from"./chunk-CIVNMUP4.js";import{b as p,c as u}from"./chunk-TMTCAXZ6.js";import{h as n,k as m}from"./chunk-NFXTMZA7.js";import{a as i}from"./chunk-WFJCOJII.js";var f=u({getBreakdown:i(()=>g,"getBreakdown")}),h=c({dimension:o(d),grain:o(l),periodKey:v()}),g=p(h,async({dimension:r,grain:t,periodKey:a})=>{let{locals:s}=n();try{return b(s.user),{dimension:r,grain:t,periodKey:a,items:(await k({models:{totals:s.services.totals,breakdowns:s.services.breakdowns,markers:s.services.markers},dimension:r,grain:t,periodKey:a,now:new Date})).map(e=>({value:e.value,hits:e.hits,bytes:e.bytes})).sort((e,_)=>_.hits-e.hits)}}catch(e){w(e,{redirectOnUnauthorized:!0})}});m(f,"src/lib/remote/breakdowns.remote.ts","qvubti");for(let[r,t]of Object.entries(f))t.__.id="qvubti/"+r,t.__.name=r;export{f as a};
|
|
3
|
+
//# sourceMappingURL=chunk-FCDX3N6X.js.map
|