!function(e,t){for(var r in t)e[r]=t[r]}(this,function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=118)}([,function(e,t,r){e.exports=r(34)},,,function(e,t,r){"use strict";r.d(t,"o",(function(){return c})),r.d(t,"g",(function(){return d})),r.d(t,"j",(function(){return f})),r.d(t,"k",(function(){return v})),r.d(t,"l",(function(){return m})),r.d(t,"b",(function(){return b})),r.d(t,"i",(function(){return g})),r.d(t,"d",(function(){return _})),r.d(t,"c",(function(){return w})),r.d(t,"h",(function(){return E})),r.d(t,"e",(function(){return A})),r.d(t,"f",(function(){return x})),r.d(t,"a",(function(){return S})),r.d(t,"n",(function(){return O})),r.d(t,"m",(function(){return P}));var n=r(7),i=r.n(n),o=r(9),a=r.n(o),s=r(1),u=r.n(s),c=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},l=function(e){return e.replace(/[^\0-~]/g,(function(e){return"\\u"+("000"+e.charCodeAt().toString(16)).slice(-4)}))},d=function(){return(navigator.language||navigator.browserLanguage||(navigator.languages||["en_US"])[0]).toLowerCase().replace("-","_")},f=function(e,t){return t},p=function(){var e=a()(u.a.mark((function e(t,r){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",r(t));case 5:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),h=function(e){return Array.isArray(e)?e.map((function(e){return l(e.toString())})):l(e.toString())},y=function(e){return parseFloat(Number(Array.isArray(e)?e[0]:e))},v=function(){var e=a()(u.a.mark((function e(t){var r,n,i,o,a=arguments;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.length>1&&void 0!==a[1]&&a[1],n={},e.t0=u.a.keys(t);case 3:if((e.t1=e.t0()).done){e.next=17;break}if(i=e.t1.value,o=Array.isArray(t[i])?t[i]:[t[i]],!r){e.next=12;break}return e.next=9,p(o,h);case 9:n[i]=e.sent,e.next=15;break;case 12:return e.next=14,p(o[0],h);case 14:n[i]=e.sent;case 15:e.next=3;break;case 17:return e.abrupt("return",n);case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=a()(u.a.mark((function e(t){var r,n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r={},e.t0=u.a.keys(t);case 2:if((e.t1=e.t0()).done){e.next=9;break}return n=e.t1.value,e.next=6,p(t[n],y);case 6:r[n]=e.sent,e.next=2;break;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(isNaN(e))return"0"+t;if(!isFinite(e))return"";var r="",n=e,i=e<0?-1*e:e;return i>=1e3&&(r="k",n=e/1e3),i>=1e6&&(r="M",n=e/1e6),n=n<10&&n>-10?Number.isInteger(n)?n:parseFloat(n.toFixed(1)):Math.round(n),"".concat(n).concat(r).concat(t)},g=function(e,t){return(e-t)/e*100},_=function(e){return(new Intl.NumberFormat).format(e)},w=function(e){return new RegExp([/bot/,/spider/,/crawl/,/APIs-Google/,/AdsBot/,/Googlebot/,/mediapartners/,/Google Favicon/,/FeedFetcher/,/Google-Read-Aloud/,/DuplexWeb-Google/,/googleweblight/,/bing/,/yandex/,/baidu/,/duckduck/,/yahoo/,/ecosia/,/ia_archiver/,/facebook/,/instagram/,/pinterest/,/reddit/,/slack/,/twitter/,/whatsapp/,/youtube/,/semrush/].map((function(e){return e.source})).join("|"),"i").test(e)},E=function(e){return"abcdefghijklmnopqrstuvwxyz".toUpperCase()[Math.max(0,Math.min(e,26))]},A=function(e){return moment(e).format("MMMM D, YYYY — HH:mm")},x=function(e){var t=Math.floor(e/864e5),r=Math.floor((e-864e5*t)/36e5),n=Math.floor((e-864e5*t-36e5*r)/6e4);return"".concat(t,"d ").concat(r,"h ").concat(n,"m")},S=function(e,t){return e.length===t.length&&e.every((function(e,r){return e===t[r]}))},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=i()(e);return n[r]=t,n},P=function(e,t){var r=i()(e);return r.splice(t,1),r}},,function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(22),i=r(23),o=r(14),a=r(24);e.exports=function(e){return n(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t){function r(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},,,function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",(function(){return i})),r.d(t,"__assign",(function(){return o})),r.d(t,"__rest",(function(){return a})),r.d(t,"__decorate",(function(){return s})),r.d(t,"__param",(function(){return u})),r.d(t,"__metadata",(function(){return c})),r.d(t,"__awaiter",(function(){return l})),r.d(t,"__generator",(function(){return d})),r.d(t,"__exportStar",(function(){return f})),r.d(t,"__values",(function(){return p})),r.d(t,"__read",(function(){return h})),r.d(t,"__spread",(function(){return y})),r.d(t,"__spreadArrays",(function(){return v})),r.d(t,"__await",(function(){return m})),r.d(t,"__asyncGenerator",(function(){return b})),r.d(t,"__asyncDelegator",(function(){return g})),r.d(t,"__asyncValues",(function(){return _})),r.d(t,"__makeTemplateObject",(function(){return w})),r.d(t,"__importStar",(function(){return E})),r.d(t,"__importDefault",(function(){return A})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r((function(t){t(e.value)})).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function d(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function y(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof m?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function g(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm",t.CREDENTIAL_QUERY_PARAM="X-Amz-Credential",t.AMZ_DATE_QUERY_PARAM="X-Amz-Date",t.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders",t.EXPIRES_QUERY_PARAM="X-Amz-Expires",t.SIGNATURE_QUERY_PARAM="X-Amz-Signature",t.TOKEN_QUERY_PARAM="X-Amz-Security-Token",t.AUTH_HEADER="authorization",t.AMZ_DATE_HEADER=t.AMZ_DATE_QUERY_PARAM.toLowerCase(),t.DATE_HEADER="date",t.GENERATED_HEADERS=[t.AUTH_HEADER,t.AMZ_DATE_HEADER,t.DATE_HEADER],t.SIGNATURE_HEADER=t.SIGNATURE_QUERY_PARAM.toLowerCase(),t.SHA256_HEADER="x-amz-content-sha256",t.TOKEN_HEADER=t.TOKEN_QUERY_PARAM.toLowerCase(),t.HOST_HEADER="host",t.ALWAYS_UNSIGNABLE_HEADERS={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},t.PROXY_HEADER_PATTERN=/^proxy-/,t.SEC_HEADER_PATTERN=/^sec-/,t.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i],t.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256",t.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD",t.MAX_CACHE_SIZE=50,t.KEY_TYPE_IDENTIFIER="aws4_request",t.MAX_PRESIGNED_TTL=604800},,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.entries=[],this.sorted=!0}return e.prototype.add=function(e,t){void 0===t&&(t={});var r=t.step,n=void 0===r?"initialize":r,i=t.priority,o=void 0===i?0:i,a=t.tags;this.sorted=!1,this.entries.push({middleware:e,priority:o,step:n,tags:a})},e.prototype.clone=function(){var t,r=new e;return(t=r.entries).push.apply(t,this.entries),r.sorted=this.sorted,r},e.prototype.concat=function(t){var r,n=new e;return(r=n.entries).push.apply(r,this.entries.concat(t.entries)),n.sorted=!1,n},e.prototype.remove=function(e){var t=this.entries.length;return"string"==typeof e?this.removeByTag(e):this.removeByIdentity(e),this.entries.length=0;t--)this.entries[t].middleware===e&&this.entries.splice(t,1)},e.prototype.removeByTag=function(e){for(var t=this.entries.length-1;t>=0;t--){var r=this.entries[t].tags;r&&e in r&&this.entries.splice(t,1)}},e.prototype.sort=function(){this.entries.sort((function(e,t){return i[e.step]-i[t.step]||e.priority-t.priority})),this.sorted=!0},e}();t.MiddlewareStack=n;var i={initialize:4,serialize:3,build:2,finalize:1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(124),i=r(125);t.fromUtf8=function(e){return"function"==typeof TextEncoder?i.fromUtf8(e):n.fromUtf8(e)},t.toUtf8=function(e){return"function"==typeof TextDecoder?i.toUtf8(e):n.toUtf8(e)}},,,function(e,t,r){"use strict";var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function a(e,t,r){return e.concat(t).map((function(e){return o(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function u(e,t){try{return t in e}catch(e){return!1}}function c(e,t,r){var n={};return r.isMergeableObject(e)&&s(e).forEach((function(t){n[t]=o(e[t],r)})),s(t).forEach((function(i){(function(e,t){return u(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(u(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(i,r)(e[i],t[i],r):n[i]=o(t[i],r))})),n}function l(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):c(e,t,r):o(t,r)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var d=l;e.exports=d},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayBuffer=function(e){return"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_RETRY_DELAY_BASE=100,t.MAXIMUM_RETRY_DELAY=2e4,t.RETRYABLE_STATUS_CODES=new Set,[429,500,502,503,504,509].forEach((function(e){return t.RETRYABLE_STATUS_CODES.add(e)})),t.THROTTLING_RETRY_DELAY_BASE=500},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r={};t.locateWindow=function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}},function(e,t,r){"use strict";function n(e){return"number"==typeof e?new Date(1e3*e):"string"==typeof e?new Date(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.iso8601=function(e){return n(e).toISOString().replace(/\.\d{3}Z$/,"Z")},t.rfc822=function(e){return n(e).toUTCString()},t.epoch=function(e){return Math.floor(n(e).valueOf()/1e3)},t.toDate=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceMetadata={apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",uid:"cognito-identity-2014-06-30"},t.clientVersion="0.1.0-preview.2"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);t.parseQueryString=function(e){var t,r,i={};if(e=e.replace(/^\?/,""))try{for(var o=n.__values(e.split("&")),a=o.next();!a.done;a=o.next()){var s=a.value,u=n.__read(s.split("="),2),c=u[0],l=u[1],d=void 0===l?null:l;c=decodeURIComponent(c),d&&(d=decodeURIComponent(d)),c in i?Array.isArray(i[c])?i[c].push(d):i[c]=[i[c],d]:i[c]=d}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return i}},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);t.resolveConfiguration=function(e,t,r){var i,o,a={},s=[];try{for(var u=n.__values(Object.getOwnPropertyNames(t)),c=u.next();!c.done;c=u.next()){var l=c.value,d=t[l],f=d.required,p=d.defaultValue,h=d.defaultProvider,y=d.normalize,v=d.apply,m=e[l];if(void 0===m){if(void 0!==p)m=p;else if(h)m=h(a);else if(f)throw new Error("No input provided for required configuration parameter: "+l)}else y&&(m=y(m,a));a[l]=m,v&&s.push(v)}}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return s.forEach((function(e){return e(a,r)})),a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);t.contentLengthMiddleware=function(e){var t=this;return function(r){return function(i){return n.__awaiter(t,void 0,void 0,(function(){var t,o,a,s;return n.__generator(this,(function(u){return t=n.__assign({},i.request),o=t.body,a=t.headers,o&&-1===Object.keys(a).map((function(e){return e.toLowerCase()})).indexOf("content-length")&&void 0!==(s=e(o))&&(t.headers=n.__assign({},t.headers,{"Content-Length":String(s)})),[2,r(n.__assign({},i,{request:t}))]}))}))}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);t.headerDefault=function(e){return function(t){return function(r){var i,o,a=n.__assign({},r.request.headers);try{for(var s=n.__values(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value;c in a||(a[c]=e[c])}}catch(e){i={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return t(n.__assign({},r,{request:n.__assign({},r.request,{headers:a})}))}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);t.serializerMiddleware=function(e){var t=this;return function(r,i){var o=i.model;return function(i){return n.__awaiter(t,void 0,void 0,(function(){var t,a;return n.__generator(this,(function(s){switch(s.label){case 0:return[4,e()];case 1:return t=s.sent(),(a=t.serialize(o,i.input)).body&&["GET","HEAD"].indexOf(a.method)>=0&&delete a.body,[2,r(n.__assign({},i,{request:a}))]}}))}))}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);n.__exportStar(r(71),t),n.__exportStar(r(72),t),n.__exportStar(r(121),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(58);t.defaultDelayDecider=function(e,t){return Math.floor(Math.min(n.MAXIMUM_RETRY_DELAY,Math.random()*Math.pow(2,t)*e))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(58),i=r(73);t.defaultRetryDecider=function(e){return void 0===e&&(e=!1),function(t){return!!t&&(!!t.connectionError||(!!(function(e){return e&&e.$metadata}(t)&&t.$metadata.httpStatusCode&&n.RETRYABLE_STATUS_CODES.has(t.$metadata.httpStatusCode))||(i.isStillProcessingError(t)||i.isThrottlingError(t)||e&&i.isClockSkewError(t))))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(120);t.isClockSkewError=function(e){return e.name in n.CLOCK_SKEW_ERROR_CODES},t.isStillProcessingError=function(e){return e.name in n.STILL_PROCESSING_ERROR_CODES},t.isThrottlingError=function(e){return e.name in n.THROTTLING_ERROR_CODES}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);t.signingMiddleware=function(e){var t=this;return function(r){return function(i){return n.__awaiter(t,void 0,void 0,(function(){var t,o,a;return n.__generator(this,(function(s){switch(s.label){case 0:return t=r,o=[{},i],a={},[4,e.sign(i.request)];case 1:return[2,t.apply(void 0,[n.__assign.apply(void 0,o.concat([(a.request=s.sent(),a)]))])]}}))}))}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultUserAgent=function(e,t){return"aws-sdk-js-v3-"+e+"/"+t+" "+("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")},t.appendToUserAgent=function(e,t){e.headers["X-Amz-User-Agent"]+=" "+t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(12).__exportStar(r(123),t);var n=r(77);t.Ie11Sha256=n.Sha256;var i=r(80);t.WebCryptoSha256=i.Sha256},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(78),i=r(79),o=r(49),a=r(59),s=function(){function e(e){e?(this.operation=function(e){return new Promise((function(t,r){var n=a.locateWindow().msCrypto.subtle.importKey("raw",u(e),i.SHA_256_HMAC_ALGO,!1,["sign"]);n.oncomplete=function(){n.result&&t(n.result),r("ImportKey completed without importing key.")},n.onerror=function(){r("ImportKey failed to import key.")}}))}(e).then((function(e){return a.locateWindow().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve(a.locateWindow().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var t=this;n.isEmptyData(e)||(this.operation=this.operation.then((function(r){return r.onerror=function(){t.operation=Promise.reject(new Error("Error encountered updating hash"))},r.process(u(e)),r})),this.operation.catch((function(){})))},e.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(t,r){e.onerror=function(){r("Error encountered finalizing hash")},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),r("Error encountered finalizing hash")},e.finish()}))}))},e}();function u(e){return"string"==typeof e?o.fromUtf8(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(49),i=r(78),o=r(79),a=r(59),s=function(){function e(e){this.toHash=new Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,r){a.locateWindow().crypto.subtle.importKey("raw",u(e),o.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,r)})),this.key.catch((function(){})))}return e.prototype.update=function(e){if(!i.isEmptyData(e)){var t=u(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return a.locateWindow().crypto.subtle.sign(o.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):i.isEmptyData(this.toHash)?Promise.resolve(o.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return a.locateWindow().crypto.subtle.digest(o.SHA_256_HASH,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e}();function u(e){return"string"==typeof e?n.fromUtf8(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreHandler=function(e,t){return function(r){var n=r.model;return function(r){var i=r.request,o=r.input.$abortSignal;return e.handle(i,{abortSignal:o}).then((function(e){return t.parse(n,e)}))}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(12).__exportStar(r(133),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);n.__exportStar(r(85),t),n.__exportStar(r(136),t)},function(e,t,r){"use strict";function n(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUri=function(e){var t=encodeURIComponent(e);return t=t.replace(/[!'()*]/g,n)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),i=r(57),o=r(60),a=r(87),s=function(){function e(e,t){this.base64Encoder=e,this.utf8Decoder=t}return e.prototype.build=function(e){var t=e.operation,r=e.member,n=void 0===r?t.input:r,i=e.input,o=n.shape;return JSON.stringify(this.format(o,i))},e.prototype.format=function(e,t){var r,s,u,c,l,d,f,p,h=typeof t;if("structure"===e.type){if("object"!==h||null===t)throw new Error("Unable to serialize value of type "+typeof t+" as a structure");var y={};try{for(var v=n.__values(Object.keys(t)),m=v.next();!m.done;m=v.next()){if(void 0!==t[R=m.value]&&null!==t[R]&&R in e.members){var b=e.members[R],g=b.location,_=b.locationName,w=void 0===_?R:_,E=b.shape;g||(y[w]=this.format(E,t[R]))}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(r)throw r.error}}return y}if("list"===e.type){if(Array.isArray(t)||a.isIterable(t)){y=[];try{for(var A=n.__values(t),x=A.next();!x.done;x=A.next()){var S=x.value;y.push(this.format(e.member.shape,S))}}catch(e){u={error:e}}finally{try{x&&!x.done&&(c=A.return)&&c.call(A)}finally{if(u)throw u.error}}return y}throw new Error("Unable to serialize value that is neither an array nor an iterable as a list")}if("map"===e.type){y={};if(a.isIterable(t)){try{for(var O=n.__values(t),P=O.next();!P.done;P=O.next()){var M=n.__read(P.value,2),R=M[0],j=M[1];y[R]=this.format(e.value.shape,j)}}catch(e){l={error:e}}finally{try{P&&!P.done&&(d=O.return)&&d.call(O)}finally{if(l)throw l.error}}return y}if("object"!==h||null===t)throw new Error("Unable to serialize value that is neither a [key, value] iterable nor an object as a map");try{for(var I=n.__values(Object.keys(t)),T=I.next();!T.done;T=I.next()){y[R=T.value]=this.format(e.value.shape,t[R])}}catch(e){f={error:e}}finally{try{T&&!T.done&&(p=I.return)&&p.call(I)}finally{if(f)throw f.error}}return y}if("blob"===e.type){if("string"==typeof t)t=this.utf8Decoder(t);else if(ArrayBuffer.isView(t))t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);else{if(!i.isArrayBuffer(t))throw new Error("Unable to serialize value that is neither a string nor an ArrayBuffer nor an ArrayBufferView as a blob");t=new Uint8Array(t)}return this.base64Encoder(t)}if("timestamp"===e.type){if(["number","string"].indexOf(typeof t)>-1||"[object Date]"===Object.prototype.toString.call(t))return o.epoch(t);throw new Error("Unable to serialize value that is neither a string nor a number nor a Date object as a timestamp")}return t},e}();t.JsonBuilder=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=function(e){return Boolean(e)&&"undefined"!=typeof Symbol&&"function"==typeof e[Symbol.iterator]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),i=r(89),o=r(137);function a(e,t){var r,i;if(e){var o=JSON.parse(e);try{for(var a=n.__values(t),s=a.next();!s.done;s=a.next()){var u=s.value;if(o[u])return o[u].split("#").pop()}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}}t.jsonErrorUnmarshaller=function(e,t,r){var s,u,c,l,d=t.body,f=e.errors,p=e.name,h=(c=t.headers,("string"==typeof(l=c["x-amzn-errortype"])?l.split(":")[0]:void 0)||a(d,["__type","code"])||void 0);if(!h)return o.initServiceException(new Error,{$metadata:i.extractMetadata(t),operationName:p});var y=function(e,t){return a(e,t)}(d,["message","Message","errorMessage"])||"";try{for(var v=n.__values(f),m=v.next();!m.done;m=v.next()){var b=m.value,g=b.shape;if(g.exceptionCode===h||!g.exceptionCode&&g.exceptionType===h){var _=g.members?r.parse(b,d):{};return o.initServiceException(new Error,{$metadata:i.extractMetadata(t),message:y,name:h,rawException:_,operationName:p})}}}catch(e){s={error:e}}finally{try{m&&!m.done&&(u=v.return)&&u.call(v)}finally{if(s)throw s.error}}var w={$metadata:i.extractMetadata(t),name:h,message:y};return o.initServiceException(new Error,w)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.extractMetadata=function(e){var t=Object.keys(e.headers).reduce((function(t,r){return t[r.toLowerCase()]=e.headers[r],t}),{});return{httpHeaders:t,httpStatusCode:e.statusCode,requestId:t["x-amz-request-id"]||t["x-amzn-requestid"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(60),i=function(){function e(e){this.base64Decoder=e}return e.prototype.parse=function(e,t){return this.unmarshall(e.shape,JSON.parse(t))},e.prototype.unmarshall=function(e,t){var r=this;if("structure"===e.type){if("object"!=typeof t||null===t)return;return Object.keys(e.members).reduce((function(n,i){var o=e.members[i],a=o.locationName,s=void 0===a?i:a,u=o.shape,c=t[s];return void 0!==c&&(n[i]=r.unmarshall(u,c)),n}),{})}if("list"===e.type){if(!Array.isArray(t))return;var i=e.member.shape;return t.map((function(e){return r.unmarshall(i,e)}))}if("map"===e.type){if("object"!=typeof t||null===t)return;var o=e.value.shape;return Object.keys(t).reduce((function(e,n){return e[n]=r.unmarshall(o,t[n]),e}),{})}if("timestamp"===e.type){if("number"!=typeof t)return;return n.toDate(t)}if("blob"===e.type){if("string"!=typeof t)return;return this.base64Decoder(t)}return t},e}();t.JsonParser=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12);n.__exportStar(r(92),t),n.__exportStar(r(141),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(42),i={},o=[];t.createScope=function(e,t,r){return e+"/"+t+"/"+r+"/"+n.KEY_TYPE_IDENTIFIER},t.getSigningKey=function(e,t,r,a,s){var u=r+":"+a+":"+s+":"+t.accessKeyId+":"+t.sessionToken;if(u in i)return i[u];for(o.push(u);o.length>n.MAX_CACHE_SIZE;)delete i[o.shift()];return i[u]=new Promise((function(o,c){for(var l=Promise.resolve("AWS4"+t.secretAccessKey),d=function(t){(l=l.then((function(r){return n=t,(i=new e(r)).update(n),i.digest();var n,i}))).catch((function(){}))},f=0,p=[r,a,s,n.KEY_TYPE_IDENTIFIER];f>=6;var l=o/4*3;a>>=s%8;for(var d=Math.floor(s/8),f=0;f>p)}}return new Uint8Array(r)},t.toBase64=function(e){for(var t="",r=0;r>l]}t+="==".slice(0,4-u)}return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateBodyLength=function(e){return"string"==typeof e?e.length:"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._LoginsMap={type:"map",key:{shape:{type:"string",min:1}},value:{shape:{type:"string",min:1}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidParameterException={type:"structure",required:[],members:{message:{shape:{type:"string"}}},exceptionType:"InvalidParameterException"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceNotFoundException={type:"structure",required:[],members:{message:{shape:{type:"string"}}},exceptionType:"ResourceNotFoundException"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotAuthorizedException={type:"structure",required:[],members:{message:{shape:{type:"string"}}},exceptionType:"NotAuthorizedException"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceConflictException={type:"structure",required:[],members:{message:{shape:{type:"string"}}},exceptionType:"ResourceConflictException"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TooManyRequestsException={type:"structure",required:[],members:{message:{shape:{type:"string"}}},exceptionType:"TooManyRequestsException"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InternalErrorException={type:"structure",required:[],members:{message:{shape:{type:"string"}}},exceptionType:"InternalErrorException"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalServiceException={type:"structure",required:[],members:{message:{shape:{type:"string"}}},exceptionType:"ExternalServiceException"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(163);t._MapOfListOf__string={type:"map",key:{shape:{type:"string"}},value:{shape:n._ListOf__string}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._MapOf__double={type:"map",key:{shape:{type:"string"}},value:{shape:{type:"float"}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceMetadata={apiVersion:"2016-12-01",endpointPrefix:"pinpoint",jsonVersion:"1.1",protocol:"rest-json",serviceFullName:"Amazon Pinpoint",serviceId:"Pinpoint",signatureVersion:"v4",signingName:"mobiletargeting",uid:"pinpoint-2016-12-01"},t.clientVersion="0.1.0-preview.1"},function(e,t,r){"use strict";function n(e){return a(e).toISOString().replace(/\.\d{3}Z$/,"Z")}function i(e){return a(e).toUTCString()}function o(e){return Math.floor(a(e).valueOf()/1e3)}function a(e){return"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.iso8601=n,t.rfc822=i,t.epoch=o,t.toDate=a,t.formatTimestamp=function(e,t){switch(t){case"iso8601":return n(e);case"rfc822":return i(e);case"unixTimestamp":return o(e);default:throw new Error("Invalid TimestampFormat: "+t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(66),i=r(67),o=r(68),a=r(69),s=r(48),u=r(70),c=r(74),l=r(75),d=r(122),f=r(61),p=function(){function e(e){this.middlewareStack=new s.MiddlewareStack,this.config=n.resolveConfiguration(e,d.configurationProperties,this.middlewareStack),this.middlewareStack.add(a.serializerMiddleware(this.config.serializer),{step:"serialize",priority:90,tags:{SERIALIZER:!0}}),this.middlewareStack.add(i.contentLengthMiddleware(this.config.bodyLengthChecker),{step:"build",priority:-80,tags:{SET_CONTENT_LENGTH:!0}}),this.config.maxRetries>0&&this.middlewareStack.add(u.retryMiddleware(this.config.maxRetries,this.config.retryDecider,this.config.delayDecider),{step:"finalize",priority:1/0,tags:{RETRY:!0}}),this.middlewareStack.add(c.signingMiddleware(this.config.signer),{step:"finalize",priority:0,tags:{SIGNATURE:!0}}),this.middlewareStack.add(o.headerDefault({"X-Amz-User-Agent":l.defaultUserAgent(f.ServiceMetadata.serviceId||f.ServiceMetadata.endpointPrefix,f.clientVersion)}),{step:"build",priority:0,tags:{SET_USER_AGENT:!0}})}return e.prototype.destroy=function(){this.config._user_injected_http_handler||this.config.httpHandler.destroy()},e.prototype.send=function(e,t){var r=e.resolveMiddleware(this.middlewareStack,this.config);if(!t)return r(e);r(e).then((function(e){return t(null,e)}),(function(e){return t(e)})).catch((function(){}))},e}();t.CognitoIdentityClient=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(48),i=r(148),o=function(){function e(e){this.input=e,this.middlewareStack=new n.MiddlewareStack}return e.prototype.resolveMiddleware=function(e,t){var r=t.handler,n=e.concat(this.middlewareStack),o={logger:{},model:i.GetCredentialsForIdentity};return n.resolve(r(o),o)},e}();t.GetCredentialsForIdentityCommand=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(48),i=r(153),o=function(){function e(e){this.input=e,this.middlewareStack=new n.MiddlewareStack}return e.prototype.resolveMiddleware=function(e,t){var r=t.handler,n=e.concat(this.middlewareStack),o={logger:{},model:i.GetId};return n.resolve(r(o),o)},e}();t.GetIdCommand=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(48),i=r(157),o=function(){function e(e){this.input=e,this.middlewareStack=new n.MiddlewareStack}return e.prototype.resolveMiddleware=function(e,t){var r=t.handler,n=e.concat(this.middlewareStack),o={logger:{},model:i.PutEvents};return n.resolve(r(o),o)},e}();t.PutEventsCommand=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(66),i=r(67),o=r(68),a=r(69),s=r(48),u=r(70),c=r(74),l=r(75),d=r(184),f=r(109),p=function(){function e(e){this.middlewareStack=new s.MiddlewareStack,this.config=n.resolveConfiguration(e,d.configurationProperties,this.middlewareStack),this.middlewareStack.add(a.serializerMiddleware(this.config.serializer),{step:"serialize",priority:90,tags:{SERIALIZER:!0}}),this.middlewareStack.add(i.contentLengthMiddleware(this.config.bodyLengthChecker),{step:"build",priority:-80,tags:{SET_CONTENT_LENGTH:!0}}),this.config.maxRetries>0&&this.middlewareStack.add(u.retryMiddleware(this.config.maxRetries,this.config.retryDecider,this.config.delayDecider),{step:"finalize",priority:1/0,tags:{RETRY:!0}}),this.middlewareStack.add(c.signingMiddleware(this.config.signer),{step:"finalize",priority:0,tags:{SIGNATURE:!0}}),this.middlewareStack.add(o.headerDefault({"X-Amz-User-Agent":l.defaultUserAgent(f.ServiceMetadata.serviceId||f.ServiceMetadata.endpointPrefix,f.clientVersion)}),{step:"build",priority:0,tags:{SET_USER_AGENT:!0}})}return e.prototype.destroy=function(){this.config._user_injected_http_handler||this.config.httpHandler.destroy()},e.prototype.send=function(e,t){var r=e.resolveMiddleware(this.middlewareStack,this.config);if(!t)return r(e);r(e).then((function(e){return t(null,e)}),(function(e){return t(e)})).catch((function(){}))},e}();t.PinpointClient=p},function(e,t,r){var n; /*! * UAParser.js v0.7.24 * Lightweight JavaScript-based User-Agent string parser * https://github.com/faisalman/ua-parser-js * * Copyright © 2012-2021 Faisal Salman * Licensed under MIT License */!function(i,o){"use strict";var a="model",s="name",u="type",c="vendor",l="version",d="mobile",f="tablet",p="smarttv",h={extend:function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},y={rgx:function(e,t){for(var r,n,i,o,a,s,u=0;u0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4==o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;u+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&t[r].length>0){for(var n=0;n=0,j=j||x.Allowed.indexOf("statistics")>=0;var I={},T={},C=Object(g.o)(),k=Object(g.o)(),D=Date.now(),L=Date.now(),N=0,U=0,H=0;window.addEventListener("scroll",(function(){var e=window.scrollY/document.body.clientHeight*100;U=e>U?e:U,H=e}));var q=Object(h.parseQueryString)(window.location.search),B={};for(var z in q)B["qv_".concat(z)]=q[z]||"";var G,V,F,Y,K,Q,Z,W=function(){if(void 0===window.sessionStorage)return null;var e=window.sessionStorage.getItem("_hm_uuid");if(e)return e;var t=Object(g.o)();return window.sessionStorage.setItem("_hm_uuid",t),t},X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w(w(w(w({date:(new Date).toISOString(),session:W(),pageSession:C,url:window.location.origin+window.location.pathname,host:window.location.hostname,queryString:window.location.search,hash:window.location.hash,referer:document.referrer},B),S.Attributes||{}),e),I||{})},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return w(w({elapsed:N+(Date.now()-L),scrollDepthMax:U,scrollDepthNow:H,hour:(new Date).getHours(),day:(new Date).getDay()+1,month:(new Date).getMonth()+1,year:(new Date).getFullYear()},e),T||{})},J={keys:{UserId:"aws.cognito.identity-id.".concat(A.CognitoId),UserCredentials:"aws.cognito.identity-credentials.".concat(A.CognitoId)},getUserId:function(){return localStorage.getItem(J.keys.UserId)},getUserCredentials:function(){try{var e=JSON.parse(localStorage.getItem(J.keys.UserCredentials));return new Date(e.Credentials.Expiration).getTime()>Date.now()&&e}catch(e){return!1}},setUserId:function(e){return localStorage.setItem(J.keys.UserId,e)},setUserCredentials:function(e){return localStorage.setItem(J.keys.UserCredentials,JSON.stringify(e))},authenticate:(Z=i()(u.a.mark((function e(){var t,r,n,i,o,a,s,f;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=J.getUserId(),!(r=J.getUserCredentials())||!r.Credentials){e.next=4;break}return e.abrupt("return",r.Credentials);case 4:if(n={region:A.CognitoRegion,credentials:{}},A.CognitoEndpoint&&(n.endpoint=A.CognitoEndpoint),i=new c.CognitoIdentityClient(n),t){e.next=20;break}return e.prev=8,o=new d.GetIdCommand({IdentityPoolId:A.CognitoId}),e.next=12,i.send(o);case 12:a=e.sent,t=a.IdentityId,J.setUserId(t),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(8),console.error(e.t0);case 20:return e.prev=20,s=new l.GetCredentialsForIdentityCommand({IdentityId:t}),e.next=24,i.send(s);case 24:return f=e.sent,r=f,J.setUserCredentials(r),e.abrupt("return",r.Credentials);case 30:e.prev=30,e.t1=e.catch(20),console.error(e.t1);case 33:return e.abrupt("return",!1);case 34:case"end":return e.stop()}}),e,null,[[8,17],[20,30]])}))),function(){return Z.apply(this,arguments)}),getClient:(Q=i()(u.a.mark((function e(){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!M||!A.ExcludeBots){e.next=2;break}return e.abrupt("return",null);case 2:if(!J.client){e.next=6;break}return e.next=5,J.client;case 5:return e.abrupt("return",e.sent);case 6:return J.client=i()(u.a.mark((function e(){var t,r,n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J.authenticate();case 2:if(t=e.sent){e.next=6;break}return console.error("Credentials not found."),e.abrupt("return");case 6:return r={region:A.PinpointRegion,credentials:{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,expiration:t.Expiration,sessionToken:t.SessionToken}},A.PinpointEndpoint&&(r.endpoint=A.PinpointEndpoint),n=new p.PinpointClient(r),J.client=n,e.abrupt("return",n);case 11:case"end":return e.stop()}}),e)})))(),e.next=9,J.client;case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(){return Q.apply(this,arguments)}),audiences:[],updateAudiences:(K=i()(u.a.mark((function e(){var t,r,n,i,o,a,s,c,l,d,f,p,h,y,v,m,b,_,w,E,A,x,S,O,M;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=J.audiences.slice().sort(),e.next=3,Object(g.k)(X());case 3:return r=e.sent,e.next=6,Object(g.l)($());case 6:n=e.sent,i=J.getEndpoint(),o={attributes:r,metrics:n,endpoint:i},a={},s=[],e.t0=u.a.keys(P);case 12:if((e.t1=e.t0()).done){e.next=71;break}c=e.t1.value,l=P[c],d=l.id,f=l.config,p="all"===f.include,e.t2=u.a.keys(f.groups);case 17:if((e.t3=e.t2()).done){e.next=68;break}h=e.t3.value,y=f.groups[h],v="all"===y.include,e.t4=u.a.keys(y.rules);case 22:if((e.t5=e.t4()).done){e.next=60;break}if(m=e.t5.value,b=y.rules[m],_=b.field,w=b.operator,E=b.value,""!==_){e.next=27;break}return e.abrupt("continue",22);case 27:A=!1,x=a[_]||_.split(".").reduce((function(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:null}),o),Array.isArray(x)||(x=[x]),a[_]=x,e.t6=u.a.keys(x);case 32:if((e.t7=e.t6()).done){e.next=52;break}if(S=e.t7.value,O=x[S],"="===w&&(A=O===E),"!="===w&&(A=O!==E),null!==O){e.next=39;break}return e.abrupt("break",52);case 39:if("*="===w&&(A=O.indexOf(E)>-1),"!*"===w&&(A=-1===O.indexOf(E)),"^="===w&&(A=0===O.indexOf(E)),null!==E){e.next=44;break}return e.abrupt("break",52);case 44:if("gte"===w&&(A=Number(O)>=Number(E)),"lte"===w&&(A=Number(O)<=Number(E)),"gt"===w&&(A=Number(O)>Number(E)),"lt"===w&&(A=Number(O)0&&void 0!==r[0]?r[0]:{},e.next=3,J.flushEvents(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(){return Y.apply(this,arguments)}),getEndpoint:function(){try{return JSON.parse(localStorage.getItem("aws.pinpoint.endpoint"))||{}}catch(e){return{}}},setEndpoint:function(e){localStorage.setItem("aws.pinpoint.endpoint",JSON.stringify(e))},on:function(e,t){return window.addEventListener("altis.analytics.".concat(e),(function(e){return t(e.detail)}))},off:function(e){window.removeEventListener(e)},mergeEndpointData:(F=i()(u.a.mark((function e(){var t,r,n,i,o,a,s,c=arguments;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},r=J.getEndpoint(),n=b()(navigator.userAgent),i={RequestId:Object(g.o)(),Attributes:{},Demographic:{AppVersion:S.AppVersion||"",Locale:Object(g.g)()},Location:{},Metrics:{}},n.device&&n.device.vendor&&(i.Attributes.DeviceMake=[n.device.vendor]),n.device&&n.device.model&&(i.Attributes.DeviceModel=[n.device.model]),n.device&&n.device.type&&(i.Attributes.DeviceType=[n.device.type]),n.engine&&n.engine.name&&(i.Demographic.Make=n.engine.name),n.browser&&n.browser.name&&(i.Demographic.Model=n.browser.name),n.browser&&n.browser.version&&(i.Demographic.ModelVersion=n.browser.version),n.os&&n.os.name&&(i.Demographic.Platform=n.os.name),n.os&&n.os.version&&(i.Demographic.PlatformVersion=n.os.version),!(t=v.a.all([i,r,t],{arrayMerge:g.j})).User||!t.User.UserAttributes){e.next=17;break}return e.next=16,Object(g.k)(t.User.UserAttributes,!0);case 16:t.User.UserAttributes=e.sent;case 17:return e.next=19,Object(g.k)(t.Attributes,!0);case 19:return t.Attributes=e.sent,e.next=22,Object(g.l)(t.Metrics);case 22:t.Metrics=e.sent,t.Attributes.lastSession?(t.Attributes.lastSession[0]!==W()&&(t.Attributes.lastSession=[W()],t.Metrics.sessions+=1),t.Attributes.lastPageSession[0]!==C&&(t.Attributes.lastPageSession=[C],t.Metrics.pageViews+=1)):(t.Attributes.lastSession=[W()],t.Attributes.lastPageSession=[C],t.Metrics.sessions=1,t.Metrics.pageViews=1),document.referer&&-1===document.referrer.indexOf(window.location.hostname)&&(t.Attributes.initialReferer||(t.Attributes.initialReferer=[document.referer]),t.Attributes.referer?-1===t.Attributes.referer.indexOf(document.referer)&&t.Attributes.referer.push(document.referer):t.Attributes.referer=[document.referer]),e.t0=u.a.keys(q);case 26:if((e.t1=e.t0()).done){e.next=35;break}if(o=e.t1.value,(a=o.toLowerCase()).match(/^utm_/)){e.next=31;break}return e.abrupt("continue",26);case 31:t.Attributes["initial_".concat(a)]||(t.Attributes["initial_".concat(a)]=[q[a]]),t.Attributes[a]?-1===t.Attributes[a].indexOf(q[a])&&t.Attributes[a].push(q[a]):t.Attributes[a]=[q[a]],e.next=26;break;case 35:return j||delete t.User,J.setEndpoint(t),s=new CustomEvent("altis.analytics.updateEndpoint",{detail:t}),window.dispatchEvent(s),e.next=41,J.updateAudiences();case 41:return e.abrupt("return",t);case 42:case"end":return e.stop()}}),e)}))),function(){return F.apply(this,arguments)}),events:[],record:(V=i()(u.a.mark((function e(t){var r,n,i,o,s,c,l,d,f,p=arguments;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p.length>1&&void 0!==p[1]?p[1]:{},n=p.length>2&&void 0!==p[2]?p[2]:{},i=!(p.length>3&&void 0!==p[3])||p[3],"boolean"==typeof r&&(i=r,r={}),"boolean"==typeof n&&(i=n,n={}),!Object.entries(n).length){e.next=8;break}return e.next=8,J.mergeEndpointData(n);case 8:return o=X(r.attributes||{}),s=$(r.metrics||{}),e.next=12,Object(g.k)(o);case 12:return e.t0=e.sent,e.next=15,Object(g.l)(s);case 15:if(e.t1=e.sent,c={attributes:e.t0,metrics:e.t1},M&&(c.attributes.isBot="true"),l=Object(g.o)(),(d=a()({},l,{EventType:t,Timestamp:(new Date).toISOString(),AppPackageName:S.AppPackageName||"",AppTitle:S.SiteName||"",AppVersionCode:S.AppVersion||"",Attributes:c.attributes,Metrics:c.metrics,Session:{Id:k,StartTimestamp:new Date(D).toISOString()}}))[l].Attributes["x-amz-request-id"]=l,"_session.stop"===t&&(d[l].Session.Duration=Date.now()-D,d[l].Session.StopTimestamp=(new Date).toISOString()),J.events.push(d),f=new CustomEvent("altis.analytics.record",{detail:d[l]}),window.dispatchEvent(f),i){e.next=28;break}return J.flushEvents(),e.abrupt("return");case 28:J.timer&&clearTimeout(J.timer),J.timer=setTimeout(J.flushEvents,5e3);case 30:case"end":return e.stop()}}),e)}))),function(e){return V.apply(this,arguments)}),flushEvents:(G=i()(u.a.mark((function e(){var t,r,n,i,o,s,c,l,d,p=arguments;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=p.length>0&&void 0!==p[0]?p[0]:{},J.timer&&clearTimeout(J.timer),Altis.Analytics.Ready){e.next=5;break}return J.timer=setTimeout(J.flushEvents,5e3),e.abrupt("return");case 5:return r=J.events,J.events=[],e.next=9,J.getClient();case 9:if(n=e.sent){e.next=13;break}return M||console.error("Could not create Analytics Client."),e.abrupt("return");case 13:if(i=J.getUserId()){e.next=17;break}return console.error("No User ID found. Make sure to call Analytics.authenticate() first."),e.abrupt("return");case 17:if(!Object.entries(t).length){e.next=20;break}return e.next=20,J.mergeEndpointData(t);case 20:if(o=J.getEndpoint(),s=r.reduce((function(e,t){return w(w({},t),e)}),{}),c=i.replace("".concat(A.CognitoRegion,":"),""),l={BatchItem:a()({},c,{Endpoint:o,Events:s})},e.prev=24,d=new f.PutEventsCommand({ApplicationId:A.PinpointId,EventsRequest:l}),O){e.next=29;break}return e.next=29,n.send(d);case 29:e.next=34;break;case 31:e.prev=31,e.t0=e.catch(24),console.error(e.t0);case 34:case"end":return e.stop()}}),e,null,[[24,31]])}))),function(){return G.apply(this,arguments)})};Altis.Analytics.updateEndpoint=J.updateEndpoint,Altis.Analytics.getEndpoint=J.getEndpoint,Altis.Analytics.getAudiences=J.getAudiences,Altis.Analytics.overrideAudiences=J.overrideAudiences,Altis.Analytics.on=J.on,Altis.Analytics.off=J.off,Altis.Analytics.record=J.record,Altis.Analytics.registerAttribute=function(e,t){I[e]=t,J.updateAudiences()},Altis.Analytics.registerMetric=function(e,t){T[e]=t,J.updateAudiences()},Altis.Analytics.Loaded=!0;var ee=new CustomEvent("altis.analytics.loaded");function te(){if(!Altis.Analytics.Ready){J.mergeEndpointData(S.Endpoint||{}),Altis.Analytics.Ready=!0;var e=new CustomEvent("altis.analytics.ready");window.dispatchEvent(e),document.addEventListener("visibilitychange",(function(){document.hidden?(N+=Date.now()-L,J.record("_session.stop")):(L=Date.now(),k=Object(g.o)(),D=Date.now(),J.record("_session.start"))}));var t=function(){J.record("_session.start"),J.record("pageView",!1)};"interactive"===document.readyState||"complete"===document.readyState||"loaded"===document.readyState?t():window.addEventListener("DOMContentLoaded",t),window.addEventListener("beforeunload",(function(){J.record("_session.stop",!1)}))}}if(window.dispatchEvent(ee),x.Enabled)if(R||j)te();else var re=document.addEventListener("wp_listen_for_consent_change",(function(e){e.detail["statistics-anonymous"]&&"allow"===e.detail["statistics-anonymous"]&&(R=!0),e.detail.statistics&&"allow"===e.detail.statistics&&(j=!0),(R||j)&&(document.removeEventListener("wp_listen_for_consent_change",re),te())}));else te()},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CLOCK_SKEW_ERROR_CODES={AuthFailure:!0,InvalidSignatureException:!0,RequestExpired:!0,RequestInTheFuture:!0,RequestTimeTooSkewed:!0,SignatureDoesNotMatch:!0},t.STILL_PROCESSING_ERROR_CODES={PriorRequestNotComplete:!0},t.THROTTLING_ERROR_CODES={BandwidthLimitExceeded:!0,ProvisionedThroughputExceededException:!0,RequestLimitExceeded:!0,RequestThrottled:!0,RequestThrottledException:!0,SlowDown:!0,ThrottledException:!0,Throttling:!0,ThrottlingException:!0,TooManyRequestsException:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),i=r(58),o=r(71),a=r(72),s=r(73);t.retryMiddleware=function(e,t,r){return void 0===t&&(t=a.defaultRetryDecider()),void 0===r&&(r=o.defaultDelayDecider),function(o){return function(a){return n.__awaiter(this,void 0,void 0,(function(){var u,c,l,d;return n.__generator(this,(function(f){switch(f.label){case 0:u=0,c=0,l=function(){var l,d,f;return n.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,5]),[4,o(a)];case 1:return(l=n.sent()).$metadata.retries=u,l.$metadata.totalRetryDelay=c,[2,{value:l}];case 2:return d=n.sent(),u>6|192,63&i|128);else if(r+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)},t.toUtf8=function(e){for(var t="",r=0,n=e.length;ri.BLOCK_SIZE){var r=new o.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(i.BLOCK_SIZE);return n.set(t),n}(e),r=new Uint8Array(i.BLOCK_SIZE);r.set(t);for(var n=0;nn.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var i=this.bufferLength;i>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],d=0;d>>17|f<<15)^(f>>>19|f<<13)^f>>>10,h=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var y=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&u^~s&c)|0)+(l+(n.KEY[d]+this.temp[d]|0)|0)|0,v=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&o^i&o)|0;l=c,c=u,u=s,s=a+y|0,a=o,o=i,i=r,r=y+v|0}t[0]+=r,t[1]+=i,t[2]+=o,t[3]+=a,t[4]+=s,t[5]+=u,t[6]+=c,t[7]+=l},e}();t.RawSha256=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(12).__exportStar(r(130),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function o(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function a(e){return e&&i.every((function(t){return"function"==typeof e[t]}))}t.supportsWebCrypto=function(e){return!(!o(e)||"object"!=typeof e.crypto.subtle)&&a(e.crypto.subtle)},t.supportsSecureRandom=o,t.supportsSubtleCrypto=a,t.supportsZeroByteGCM=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t;return n.__generator(this,(function(r){switch(r.label){case 0:if(!a(e))return[2,!1];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=r.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===r.sent().byteLength];case 4:return r.sent(),[2,!1];case 5:return[2]}}))}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(12).__exportStar(r(132),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var t=e.msCrypto,r=t.getRandomValues,i=t.subtle;return n.map((function(e){return i[e]})).concat(r).every((function(e){return"function"==typeof e}))}return!1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),i=r(134),o=r(135),a=function(){function e(e){void 0===e&&(e={}),this.httpOptions=e}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var r=t&&t.abortSignal,a=this.httpOptions.requestTimeout;if(r&&r.aborted){var s=new Error("Request aborted");return s.name="AbortError",Promise.reject(s)}var u=e.path;if(e.query){var c=o.buildQueryString(e.query);c&&(u+="?"+c)}var l=e.port,d=e.protocol+"//"+e.hostname+(l?":"+l:"")+u,f={body:e.body,headers:new Headers(e.headers),method:e.method,mode:"cors"};"undefined"!=typeof AbortController&&(f.signal=r);var p=new Request(d,f),h=[fetch(p).then((function(e){var t,r,i=e.headers,o={};try{for(var a=n.__values(i.entries()),s=a.next();!s.done;s=a.next()){var u=s.value;o[u[0]]=u[1]}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return e.blob().then((function(t){return{headers:o,statusCode:e.status,body:t}}))})),i.requestTimeout(a)];return r&&h.push(new Promise((function(e,t){r.onabort=function(){var e=new Error("Request aborted");e.name="AbortError",t(e)}}))),Promise.race(h)},e}();t.FetchHttpHandler=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestTimeout=function(e){return void 0===e&&(e=0),new Promise((function(t,r){e&&setTimeout((function(){var t=new Error("Request did not complete within "+e+" ms");t.name="TimeoutError",r(t)}),e)}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),i=r(84);t.buildQueryString=function(e){var t,r,o=[];try{for(var a=n.__values(Object.keys(e).sort()),s=a.next();!s.done;s=a.next()){var u=s.value,c=e[u];if(u=i.escapeUri(u),Array.isArray(c))for(var l=0,d=c.length;l299)throw this.parseServiceException(e,n.__assign({},t,{body:r}),this.bodyParser);return(o=this.bodyParser.parse(e.output,r)).$metadata=i.extractMetadata(t),[2,o]}}))}))},e.prototype.resolveBodyString=function(e){var t=this,r=e.body,n=void 0===r?"":r;return"string"==typeof n?Promise.resolve(n):(ArrayBuffer.isView(n)?Promise.resolve(new Uint8Array(n.buffer,n.byteLength,n.byteOffset)):o.isArrayBuffer(n)?Promise.resolve(new Uint8Array(n,0,n.byteLength)):this.bodyCollector(n)).then((function(e){return t.utf8Encoder(e)}))},e}();t.JsonRpcParser=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),i=function(){function e(e,t){this.endpoint=e,this.bodySerializer=t}return e.prototype.serialize=function(e,t){var r=e.http,i=e.metadata,o=i.jsonVersion,a=i.targetPrefix,s=e.name;return n.__assign({},this.endpoint,{headers:{"X-Amz-Target":a+"."+s,"Content-Type":"application/x-amz-json-"+o},body:this.bodySerializer.build({operation:e,input:t}),path:r.requestUri,method:r.method})},e}();t.JsonRpcSerializer=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),i=r(92),o=r(142),a=r(143),s=r(144),u=r(145),c=r(146),l=r(42),d=r(60),f=r(93),p=r(147),h=function(){function e(e){var t=e.applyChecksum,r=e.credentials,n=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;if(this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,"string"==typeof n){var u=Promise.resolve(n);this.regionProvider=function(){return u}}else this.regionProvider=n;if("object"==typeof r){var c=Promise.resolve(r);this.credentialProvider=function(){return c}}else this.credentialProvider=r}return e.prototype.presignRequest=function(e,t,r){return void 0===r&&(r={}),n.__awaiter(this,void 0,void 0,(function(){var a,f,p,h,m,b,g,_,w,E,A,x,S,O,P,M,R,j,I;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,Promise.all([this.regionProvider(),this.credentialProvider()])];case 1:return a=n.sent(),f=a[0],p=a[1],h=r.signingDate,m=void 0===h?new Date:h,b=r.unsignableHeaders,g=y(m),_=g.longDate,w=g.shortDate,(E=function(e,t){return Math.floor((d.toDate(t).valueOf()-d.toDate(e).valueOf())/1e3)}(m,t))>l.MAX_PRESIGNED_TTL?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(A=i.createScope(w,f,this.service),x=c.moveHeadersToQuery(u.prepareRequest(e)),p.sessionToken&&(x.query[l.TOKEN_QUERY_PARAM]=p.sessionToken),x.query[l.ALGORITHM_QUERY_PARAM]=l.ALGORITHM_IDENTIFIER,x.query[l.CREDENTIAL_QUERY_PARAM]=p.accessKeyId+"/"+A,x.query[l.AMZ_DATE_QUERY_PARAM]=_,x.query[l.EXPIRES_QUERY_PARAM]=E.toString(10),S=o.getCanonicalHeaders(x,b),x.query[l.SIGNED_HEADERS_QUERY_PARAM]=v(S),O=x.query,P=l.SIGNATURE_QUERY_PARAM,M=this.getSignature,R=[_,A,this.getSigningKey(p,f,w)],j=this.createCanonicalRequest,I=[x,S],[4,s.getPayloadHash(e,this.sha256)]);case 2:return[4,M.apply(this,R.concat([j.apply(this,I.concat([n.sent()]))]))];case 3:return O[P]=n.sent(),[2,x]}}))}))},e.prototype.sign=function(e,t){void 0===t&&(t={});var r=t.signingDate,i=void 0===r?new Date:r,o=n.__rest(t,["signingDate"]);return n.__awaiter(this,void 0,void 0,(function(){var t,r,a,s;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,Promise.all([this.regionProvider(),this.credentialProvider()])];case 1:return t=n.sent(),r=t[0],a=t[1],"string"==typeof e?[2,this.signString(e,i,r,a)]:(s=o.unsignableHeaders,[2,this.signRequest(e,i,r,a,s)])}}))}))},e.prototype.signString=function(e,t,r,i){return n.__awaiter(this,void 0,void 0,(function(){var o,a,s,u,c;return n.__generator(this,(function(n){switch(n.label){case 0:return o=y(t).shortDate,u=(s=this.sha256).bind,[4,this.getSigningKey(i,r,o)];case 1:return(a=new(u.apply(s,[void 0,n.sent()]))).update(e),c=f.toHex,[4,a.digest()];case 2:return[2,c.apply(void 0,[n.sent()])]}}))}))},e.prototype.signRequest=function(e,t,r,a,c){return n.__awaiter(this,void 0,void 0,(function(){var d,f,h,m,b,g,_,w;return n.__generator(this,(function(n){switch(n.label){case 0:return d=u.prepareRequest(e),f=y(t),h=f.longDate,m=f.shortDate,b=i.createScope(m,r,this.service),d.headers[l.AMZ_DATE_HEADER]=h,a.sessionToken&&(d.headers[l.TOKEN_HEADER]=a.sessionToken),[4,s.getPayloadHash(d,this.sha256)];case 1:return g=n.sent(),!p.hasHeader(l.SHA256_HEADER,d.headers)&&this.applyChecksum&&(d.headers[l.SHA256_HEADER]=g),_=o.getCanonicalHeaders(d,c),[4,this.getSignature(h,b,this.getSigningKey(a,r,m),this.createCanonicalRequest(d,_,g))];case 2:return w=n.sent(),d.headers[l.AUTH_HEADER]=l.ALGORITHM_IDENTIFIER+" Credential="+a.accessKeyId+"/"+b+", SignedHeaders="+v(_)+", Signature="+w,[2,d]}}))}))},e.prototype.createCanonicalRequest=function(e,t,r){var n=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+a.getCanonicalQuery(e)+"\n"+n.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+n.join(";")+"\n"+r},e.prototype.createStringToSign=function(e,t,r){return n.__awaiter(this,void 0,void 0,(function(){var i,o;return n.__generator(this,(function(n){switch(n.label){case 0:return(i=new this.sha256).update(r),[4,i.digest()];case 1:return o=n.sent(),[2,l.ALGORITHM_IDENTIFIER+"\n"+e+"\n"+t+"\n"+f.toHex(o)]}}))}))},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,r,i){return n.__awaiter(this,void 0,void 0,(function(){var o,a,s,u,c;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.createStringToSign(e,t,i)];case 1:return o=n.sent(),u=(s=this.sha256).bind,[4,r];case 2:return(a=new(u.apply(s,[void 0,n.sent()]))).update(o),c=f.toHex,[4,a.digest()];case 3:return[2,c.apply(void 0,[n.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,r){return i.getSigningKey(this.sha256,e,r,t,this.service)},e}();function y(e){var t=d.iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}}function v(e){return Object.keys(e).sort().join(";")}t.SignatureV4=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(42);t.getCanonicalHeaders=function(e,t){for(var r=e.headers,i={},o=0,a=Object.keys(r).sort();o-1&&delete e.headers[o]}return i.HOST_HEADER in e.headers||(e.headers[i.HOST_HEADER]=e.hostname),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),i=r(94);t.moveHeadersToQuery=function(e){for(var t=i.cloneRequest(e),r=t.headers,o=t.query,a=void 0===o?{}:o,s=0,u=Object.keys(r);s0){var s=i.bodyParser.parse(t,r);try{for(var u=n.__values(Object.keys(s)),c=u.next();!c.done;c=u.next()){var l=c.value;e[l]=s[l]}}catch(e){o={error:e}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}}return Promise.resolve(e)}))},e.prototype.parseHeaders=function(e,t,r){var i,o,a,s,u,c;if("structure"===r.shape.type){var l={};try{for(var d=n.__values(Object.keys(t)),f=d.next();!f.done;f=d.next()){l[(O=f.value).toLowerCase()]=t[O]}}catch(e){i={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}var p=r.shape.members;try{for(var h=n.__values(Object.keys(p)),y=h.next();!y.done;y=h.next()){var v=y.value,m=p[v],b=m.location,g=m.locationName,_=void 0===g?v:g,w=m.shape;Boolean(m.locationName);if("header"===b||"headers"===b){var E=l[_.toLowerCase()];if("map"===w.type){e[v]={};var A=new RegExp("^"+_+"(.+)","i");try{for(var x=n.__values(Object.keys(t)),S=x.next();!S.done;S=x.next()){var O,P=(O=S.value).match(A);P&&(e[v][P[1]]=t[O])}}catch(e){u={error:e}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(u)throw u.error}}}else void 0!==E&&(e[v]=this.parseScalarHeader(w,E))}}}catch(e){a={error:e}}finally{try{y&&!y.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}}},e.prototype.parseScalarBody=function(e,t){switch(e.type){case"timestamp":return o.toDate(t);case"string":return"string"==typeof t?t:this.utf8Encoder(t);case"boolean":return"boolean"==typeof t?t:"true"===t;case"integer":return parseInt(t,10);case"float":return parseFloat(t)}},e.prototype.parseScalarHeader=function(e,t){switch(e.type){case"timestamp":return o.toDate(t);case"string":return e.jsonValue?JSON.parse(this.utf8Encoder(this.base64Decoder(t))):t;case"boolean":return"true"===t;case"integer":return parseInt(t,10);case"float":return parseFloat(t);case"blob":return this.base64Decoder(t)}},e.prototype.parseStatusCode=function(e,t,r){var i,o;if(t){var a=r.shape.members;try{for(var s=n.__values(Object.keys(a)),u=s.next();!u.done;u=s.next()){var c=u.value,l=a[c];if("statusCode"===l.location)return void(e[l.locationName||c]=t)}}catch(e){i={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}},e.prototype.resolveBody=function(e){return void 0===e&&(e=""),"string"==typeof e?Promise.resolve(e):ArrayBuffer.isView(e)?Promise.resolve(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)):i.isArrayBuffer(e)?Promise.resolve(new Uint8Array(e,0,e.byteLength)):this.bodyCollector(e)},e.prototype.resolveBodyString=function(e){var t=this;return void 0===e&&(e=""),this.resolveBody(e).then((function(e){return"string"==typeof e?e:t.utf8Encoder(e)}))},e.prototype.responseIsSuccessful=function(e){return e<300},e}();t.RestParser=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.extractMetadata=function(e){var t=Object.keys(e.headers).reduce((function(t,r){return t[r.toLowerCase()]=e.headers[r],t}),{});return{httpHeaders:t,httpStatusCode:e.statusCode,requestId:t["x-amz-request-id"]||t["x-amzn-requestid"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}}},function(e,t){!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r}}(),window.console=window.console||{log:function(){},warn:function(){},error:function(){}}}]));