(this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[39],{nSxQ:function(e,n,t){"use strict";var r=t("HEbw"),o=t("s4NR"),i=t("33yf");function s(e){var n=i.resolve(e);return"/"==e[e.length-1]&&"/"!=n[n.length-1]&&(n+="/"),n}function a(e){return"UNSIGNED-PAYLOAD"==e?e:u(e||"","hex")}function c(e){return new Date(e).toISOString().replace(/[:\-]|\.\d{3}/g,"")}function S(e){return c(e).substring(0,8)}function _(e,n,t){return r.createHmac("sha256",e).update(n,"utf8").digest(t)}function u(e,n){return r.createHash("sha256").update(e,"utf8").digest(n)}n.createCanonicalRequest=function(e,t,r,o,i,c){return[e.toUpperCase(),s(c?t.split(/\//g).map((function(e){return encodeURIComponent(e)})).join("/"):t),n.createCanonicalQueryString(r),n.createCanonicalHeaders(o),n.createSignedHeaders(o),a(i)].join("\n")},n.createCanonicalQueryString=function(e){return e?("string"==typeof e&&(e=o.parse(e)),Object.keys(e).sort().map((function(n){return(Array.isArray(e[n])?e[n]:[e[n]]).sort().map((function(e){return encodeURIComponent(n)+"="+encodeURIComponent(e)})).join("&")})).join("&")):""},n.createCanonicalHeaders=function(e){return Object.keys(e).sort().map((function(n){var t=Array.isArray(e[n])?e[n]:[e[n]];return n.toLowerCase().trim()+":"+t.map((function(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")})).join(",")+"\n"})).join("")},n.createSignedHeaders=function(e){return Object.keys(e).sort().map((function(e){return e.toLowerCase().trim()})).join(";")},n.createCredentialScope=function(e,n,t){return[S(e),n,t,"aws4_request"].join("/")},n.createStringToSign=function(e,t,r,o){return["AWS4-HMAC-SHA256",c(e),n.createCredentialScope(e,t,r),u(o,"hex")].join("\n")},n.createAuthorizationHeader=function(e,n,t,r){return["AWS4-HMAC-SHA256 Credential="+e+"/"+n,"SignedHeaders="+t,"Signature="+r].join(", ")},n.createSignature=function(e,n,t,r,o){var i=_("AWS4"+e,S(n)),s=_(i,t),a=_(s,r),c=_(a,"aws4_request");return _(c,o,"hex")},n.createPresignedS3URL=function(e,t){return(t=t||{}).method=t.method||"GET",t.bucket=t.bucket||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_BUILD_DATE_TIME:"18.09.2020 14:44",REACT_APP_STAGE:"local"}).AWS_S3_BUCKET,t.signSessionToken=!0,t.doubleEscape=!1,n.createPresignedURL(t.method,t.bucket+".s3.amazonaws.com","/"+e,"s3","UNSIGNED-PAYLOAD",t)},n.createPresignedURL=function(e,t,r,i,s,a){(a=a||{}).key=a.key||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_BUILD_DATE_TIME:"18.09.2020 14:44",REACT_APP_STAGE:"local"}).AWS_ACCESS_KEY_ID,a.secret=a.secret||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_BUILD_DATE_TIME:"18.09.2020 14:44",REACT_APP_STAGE:"local"}).AWS_SECRET_ACCESS_KEY,a.sessionToken=a.sessionToken||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_BUILD_DATE_TIME:"18.09.2020 14:44",REACT_APP_STAGE:"local"}).AWS_SESSION_TOKEN,a.protocol=a.protocol||"https",a.timestamp=a.timestamp||Date.now(),a.region=a.region||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_BUILD_DATE_TIME:"18.09.2020 14:44",REACT_APP_STAGE:"local"}).AWS_REGION||"us-east-1",a.expires=a.expires||86400,a.headers=a.headers||{},a.signSessionToken=a.signSessionToken||!1,a.doubleEscape=void 0===a.doubleEscape||a.doubleEscape,a.headers.Host=t;var S=a.query?o.parse(a.query):{};S["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",S["X-Amz-Credential"]=a.key+"/"+n.createCredentialScope(a.timestamp,a.region,i),S["X-Amz-Date"]=c(a.timestamp),S["X-Amz-Expires"]=a.expires,S["X-Amz-SignedHeaders"]=n.createSignedHeaders(a.headers),a.sessionToken&&a.signSessionToken&&(S["X-Amz-Security-Token"]=a.sessionToken);var _=n.createCanonicalRequest(e,r,S,a.headers,s,a.doubleEscape),u=n.createStringToSign(a.timestamp,a.region,i,_),T=n.createSignature(a.secret,a.timestamp,a.region,i,u);return S["X-Amz-Signature"]=T,a.sessionToken&&!a.signSessionToken?S["X-Amz-Security-Token"]=a.sessionToken:delete S["X-Amz-Security-Token"],a.protocol+"://"+t+r+"?"+o.stringify(S)}}}]); //# sourceMappingURL=main~6a5cdcfd.46635283.chunk.js.map