/*! For license information please see 5.259b13d7.chunk.js.LICENSE.txt */ (this.webpackJsonpfrontend=this.webpackJsonpfrontend||[]).push([[5],[function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"i",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"k",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"j",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return p}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&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}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function f(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof d?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function p(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=u(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}Object.create},function(e,t,n){"use strict";e.exports=n(640)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return P})),n.d(t,"m",(function(){return N})),n.d(t,"n",(function(){return D})),n.d(t,"i",(function(){return Y})),n.d(t,"j",(function(){return X})),n.d(t,"k",(function(){return Q})),n.d(t,"l",(function(){return l})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return x})),n.d(t,"g",(function(){return O})),n.d(t,"h",(function(){return S})),n.d(t,"p",(function(){return k})),n.d(t,"o",(function(){return C}));var r=n(0),i=function e(){var t=[],n=[],i=new Set,s=function(e){return t.forEach((function(t){e.add(t.middleware,Object(r.a)({},t))})),n.forEach((function(t){e.addRelativeTo(t.middleware,Object(r.a)({},t))})),e},c=function e(t){var n=[];return t.before.forEach((function(t){0===t.before.length&&0===t.after.length?n.push(t):n.push.apply(n,Object(r.j)([],Object(r.h)(e(t))))})),n.push(t),t.after.reverse().forEach((function(t){0===t.before.length&&0===t.after.length?n.push(t):n.push.apply(n,Object(r.j)([],Object(r.h)(e(t))))})),n},u=function(){var e,i=[],s=[],u={};return t.forEach((function(e){var t=Object(r.a)(Object(r.a)({},e),{before:[],after:[]});t.name&&(u[t.name]=t),i.push(t)})),n.forEach((function(e){var t=Object(r.a)(Object(r.a)({},e),{before:[],after:[]});t.name&&(u[t.name]=t),s.push(t)})),s.forEach((function(e){if(e.toMiddleware){var t=u[e.toMiddleware];if(void 0===t)throw new Error(e.toMiddleware+" is not found when adding "+(e.name||"anonymous")+" middleware "+e.relation+" "+e.toMiddleware);"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}})),(e=i,e.sort((function(e,t){return o[t.step]-o[e.step]||a[t.priority||"normal"]-a[e.priority||"normal"]}))).map(c).reduce((function(e,t){return e.push.apply(e,Object(r.j)([],Object(r.h)(t))),e}),[]).map((function(e){return e.middleware}))},l={add:function(e,n){void 0===n&&(n={});var o=n.name,a=n.override,s=Object(r.a)({step:"initialize",priority:"normal",middleware:e},n);if(o){if(i.has(o)){if(!a)throw new Error("Duplicate middleware name '"+o+"'");var c=t.findIndex((function(e){return e.name===o})),u=t[c];if(u.step!==s.step||u.priority!==s.priority)throw new Error('"'+o+'" middleware with '+u.priority+" priority in "+u.step+" step cannot be overridden by same-name middleware with "+s.priority+" priority in "+s.step+" step.");t.splice(c,1)}i.add(o)}t.push(s)},addRelativeTo:function(e,t){var o=t.name,a=t.override,s=Object(r.a)({middleware:e},t);if(o){if(i.has(o)){if(!a)throw new Error("Duplicate middleware name '"+o+"'");var c=n.findIndex((function(e){return e.name===o})),u=n[c];if(u.toMiddleware!==s.toMiddleware||u.relation!==s.relation)throw new Error('"'+o+'" middleware '+u.relation+' "'+u.toMiddleware+'" middleware cannot be overridden by same-name middleware '+s.relation+' "'+s.toMiddleware+'" middleware.');n.splice(c,1)}i.add(o)}n.push(s)},clone:function(){return s(e())},use:function(e){e.applyToStack(l)},remove:function(e){return"string"===typeof e?function(e){var r=!1,o=function(t){return!t.name||t.name!==e||(r=!0,i.delete(e),!1)};return t=t.filter(o),n=n.filter(o),r}(e):function(e){var r=!1,o=function(t){return t.middleware!==e||(r=!0,t.name&&i.delete(t.name),!1)};return t=t.filter(o),n=n.filter(o),r}(e)},removeByTag:function(e){var r=!1,o=function(t){var n=t.tags,o=t.name;return!n||!n.includes(e)||(o&&i.delete(o),r=!0,!1)};return t=t.filter(o),n=n.filter(o),r},concat:function(t){var n=s(e());return n.use(t),n},applyToStack:s,resolve:function(e,t){var n,i;try{for(var o=Object(r.k)(u().reverse()),a=o.next();!a.done;a=o.next()){e=(0,a.value)(e,t)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e}};return l},o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},a={high:3,normal:2,low:1},s=function(){function e(e){this.middlewareStack=i(),this.config=e}return e.prototype.send=function(e,t,n){var r="function"!==typeof t?t:void 0,i="function"===typeof t?t:n,o=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!i)return o(e).then((function(e){return e.output}));o(e).then((function(e){return i(null,e.output)}),(function(e){return i(e)})).catch((function(){}))},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),c=function(){this.middlewareStack=i()},u="***SensitiveInformation***",l=function(e){switch(e){case"true":return!0;case"false":return!1;default:throw new Error('Unable to parse boolean value "'+e+'"')}},f=function(e){if(null!==e&&void 0!==e){if("number"===typeof e)return e;throw new TypeError("Expected number, got "+typeof e)}},d=Math.ceil(Math.pow(2,127)*(2-Math.pow(2,-23))),h=function(e){var t=f(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>d)throw new TypeError("Expected 32-bit float, got "+e);return t},p=function(e){if(null!==e&&void 0!==e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError("Expected integer, got "+typeof e)}},v=function(e){return y(e,32)},g=function(e){return y(e,16)},m=function(e){return y(e,8)},y=function(e,t){var n=p(e);if(void 0!==n&&b(n,t)!==n)throw new TypeError("Expected "+t+"-bit integer, got "+e);return n},b=function(e,t){switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},w=function(e,t){if(null===e||void 0===e){if(t)throw new TypeError("Expected a non-null value for "+t);throw new TypeError("Expected a non-null value")}return e},x=function(e){if(null!==e&&void 0!==e){if("object"===typeof e&&!Array.isArray(e))return e;throw new TypeError("Expected object, got "+typeof e)}},O=function(e){if(null!==e&&void 0!==e){if("string"===typeof e)return e;throw new TypeError("Expected string, got "+typeof e)}},S=function(e){if(null!==e&&void 0!==e){var t=x(e),n=Object.entries(t).filter((function(e){var t=Object(r.h)(e,2),n=(t[0],t[1]);return null!==n&&void 0!==n})).map((function(e){var t=Object(r.h)(e,2),n=t[0];t[1];return n}));if(0===n.length)throw new TypeError("Unions must have exactly one non-null member");if(n.length>1)throw new TypeError("Unions must have exactly one non-null member. Keys "+n+" were not null.");return t}},_=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,E=function(e){var t=e.match(_);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},k=function(e){return p("string"===typeof e?E(e):e)},C=function(e){return v("string"===typeof e?E(e):e)},A=function(e){return g("string"===typeof e?E(e):e)},j=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(e){var t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),o=e.getUTCHours(),a=e.getUTCMinutes(),s=e.getUTCSeconds(),c=o<10?"0"+o:""+o,u=a<10?"0"+a:""+a,l=s<10?"0"+s:""+s;return j[r]+", "+(i<10?"0"+i:""+i)+" "+T[n]+" "+t+" "+c+":"+u+":"+l+" GMT"}var M=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),N=function(e){if(null!==e&&void 0!==e){if("string"!==typeof e)throw new TypeError("RFC-3339 date-times must be expressed as strings");var t=M.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");var n=Object(r.h)(t,8),i=(n[0],n[1]),o=n[2],a=n[3],s=n[4],c=n[5],u=n[6],l=n[7],f=A(K(i)),d=G(o,"month",1,12),h=G(a,"day",1,31);return z(f,d,h,{hours:s,minutes:c,seconds:u,fractionalMilliseconds:l})}},I=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),L=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),R=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),D=function(e){if(null!==e&&void 0!==e){if("string"!==typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");var t=I.exec(e);if(t){var n=Object(r.h)(t,8),i=(n[0],n[1]),o=n[2],a=n[3],s=n[4],c=n[5],u=n[6],l=n[7];return z(A(K(a)),V(o),G(i,"day",1,31),{hours:s,minutes:c,seconds:u,fractionalMilliseconds:l})}if(t=L.exec(e)){var f=Object(r.h)(t,8);f[0],i=f[1],o=f[2],a=f[3],s=f[4],c=f[5],u=f[6],l=f[7];return B(z(F(a),V(o),G(i,"day",1,31),{hours:s,minutes:c,seconds:u,fractionalMilliseconds:l}))}if(t=R.exec(e)){var d=Object(r.h)(t,8);d[0],o=d[1],i=d[2],s=d[3],c=d[4],u=d[5],l=d[6],a=d[7];return z(A(K(a)),V(o),G(i.trimLeft(),"day",1,31),{hours:s,minutes:c,seconds:u,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")}},z=function(e,t,n,r){var i=t-1;return H(e,i,n),new Date(Date.UTC(e,i,n,G(r.hours,"hour",0,23),G(r.minutes,"minute",0,59),G(r.seconds,"seconds",0,60),W(r.fractionalMilliseconds)))},F=function(e){var t=(new Date).getUTCFullYear(),n=100*Math.floor(t/100)+A(K(e));return n15768e8?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e},V=function(e){var t=T.indexOf(e);if(t<0)throw new TypeError("Invalid month: "+e);return t+1},U=[31,28,31,30,31,30,31,31,30,31,30,31],H=function(e,t,n){var r=U[t];if(1===t&&q(e)&&(r=29),n>r)throw new TypeError("Invalid day for "+T[t]+" in "+e+": "+n)},q=function(e){return e%4===0&&(e%100!==0||e%400===0)},G=function(e,t,n,r){var i=function(e){return m("string"===typeof e?E(e):e)}(K(e));if(ir)throw new TypeError(t+" must be between "+n+" and "+r+", inclusive");return i},W=function(e){return null===e||void 0===e?0:1e3*function(e){return h("string"==typeof e?E(e):e)}("0."+e)},K=function(e){for(var t=0;t/g,">").replace(/"/g,""")}var s=function(){function e(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}return e.prototype.withName=function(e){return this.name=e,this},e.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},e.prototype.addChildNode=function(e){return this.children.push(e),this},e.prototype.removeAttribute=function(e){return delete this.attributes[e],this},e.prototype.toString=function(){var e,t,n=Boolean(this.children.length),i="<"+this.name,o=this.attributes;try{for(var s=Object(r.k)(Object.keys(o)),c=s.next();!c.done;c=s.next()){var u=c.value,l=o[u];"undefined"!==typeof l&&null!==l&&(i+=" "+u+'="'+a(""+l)+'"')}}catch(f){e={error:f}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return i+(n?">"+this.children.map((function(e){return e.toString()})).join("")+"":"/>")},e}();var c=function(){function e(e){this.value=e}return e.prototype.toString=function(){return function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}(""+this.value)},e}(),u=n(602),l=n(601),f=n(7),d=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({"x-id":"AbortMultipartUpload"},void 0!==e.UploadId&&{uploadId:e.UploadId}),[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},h=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({"x-id":"CompleteMultipartUpload"},void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.MultipartUpload&&(v=Vi(e.MultipartUpload,t)),void 0!==e.MultipartUpload&&(g=(g=Vi(e.MultipartUpload,t)).withName("CompleteMultipartUpload"),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"POST",headers:f,path:d,query:p,body:v})]}}))}))},p=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},Zs(e.ACL)&&{"x-amz-acl":e.ACL}),Zs(e.CacheControl)&&{"cache-control":e.CacheControl}),Zs(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),Zs(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),Zs(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),Zs(e.ContentType)&&{"content-type":e.ContentType}),Zs(e.CopySource)&&{"x-amz-copy-source":e.CopySource}),Zs(e.CopySourceIfMatch)&&{"x-amz-copy-source-if-match":e.CopySourceIfMatch}),Zs(e.CopySourceIfModifiedSince)&&{"x-amz-copy-source-if-modified-since":Object(o.d)(e.CopySourceIfModifiedSince).toString()}),Zs(e.CopySourceIfNoneMatch)&&{"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch}),Zs(e.CopySourceIfUnmodifiedSince)&&{"x-amz-copy-source-if-unmodified-since":Object(o.d)(e.CopySourceIfUnmodifiedSince).toString()}),Zs(e.Expires)&&{expires:Object(o.d)(e.Expires).toString()}),Zs(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Zs(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Zs(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Zs(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Zs(e.MetadataDirective)&&{"x-amz-metadata-directive":e.MetadataDirective}),Zs(e.TaggingDirective)&&{"x-amz-tagging-directive":e.TaggingDirective}),Zs(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),Zs(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),Zs(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),Zs(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Zs(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Zs(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Zs(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),Zs(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),Zs(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),Zs(e.CopySourceSSECustomerAlgorithm)&&{"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm}),Zs(e.CopySourceSSECustomerKey)&&{"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey}),Zs(e.CopySourceSSECustomerKeyMD5)&&{"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.Tagging)&&{"x-amz-tagging":e.Tagging}),Zs(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),Zs(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),Zs(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),Zs(e.ExpectedSourceBucketOwner)&&{"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var i;return Object(r.a)(Object(r.a)({},t),((i={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],i))}),{})),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p={"x-id":"CopyObject"},[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:void 0})]}}))}))},v=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v;return Object(r.g)(this,(function(g){switch(g.label){case 0:return[4,t.endpoint()];case 1:if(n=g.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ACL)&&{"x-amz-acl":e.ACL}),Zs(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Zs(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Zs(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Zs(e.GrantWrite)&&{"x-amz-grant-write":e.GrantWrite}),Zs(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Zs(e.ObjectLockEnabledForBucket)&&{"x-amz-bucket-object-lock-enabled":e.ObjectLockEnabledForBucket.toString()}),Zs(e.ObjectOwnership)&&{"x-amz-object-ownership":e.ObjectOwnership}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),void 0!==e.CreateBucketConfiguration&&(p=Wi(e.CreateBucketConfiguration,t)),void 0!==e.CreateBucketConfiguration&&(v=Wi(e.CreateBucketConfiguration,t),p='',v.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),p+=v.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,body:p})]}}))}))},g=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},Zs(e.ACL)&&{"x-amz-acl":e.ACL}),Zs(e.CacheControl)&&{"cache-control":e.CacheControl}),Zs(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),Zs(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),Zs(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),Zs(e.ContentType)&&{"content-type":e.ContentType}),Zs(e.Expires)&&{expires:Object(o.d)(e.Expires).toString()}),Zs(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Zs(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Zs(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Zs(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Zs(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),Zs(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),Zs(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),Zs(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Zs(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Zs(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Zs(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),Zs(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),Zs(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.Tagging)&&{"x-amz-tagging":e.Tagging}),Zs(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),Zs(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),Zs(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var i;return Object(r.a)(Object(r.a)({},t),((i={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],i))}),{})),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p={uploads:"","x-id":"CreateMultipartUpload"},[2,new i.a({protocol:c,hostname:a,port:u,method:"POST",headers:f,path:d,query:p,body:void 0})]}}))}))},m=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h;return Object(r.g)(this,(function(p){switch(p.label){case 0:return[4,t.endpoint()];case 1:if(n=p.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,body:void 0})]}}))}))},y=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({analytics:""},void 0!==e.Id&&{id:e.Id}),[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},b=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={cors:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},w=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={encryption:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},x=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f={},d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({"intelligent-tiering":""},void 0!==e.Id&&{id:e.Id}),[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},O=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({inventory:""},void 0!==e.Id&&{id:e.Id}),[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},S=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={lifecycle:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},_=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({metrics:""},void 0!==e.Id&&{id:e.Id}),[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},E=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={ownershipControls:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},k=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={policy:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},C=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={replication:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},A=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={tagging:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},j=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={website:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},T=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},Zs(e.MFA)&&{"x-amz-mfa":e.MFA}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":e.BypassGovernanceRetention.toString()}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({"x-id":"DeleteObject"},void 0!==e.VersionId&&{versionId:e.VersionId}),[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},P=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.MFA)&&{"x-amz-mfa":e.MFA}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":e.BypassGovernanceRetention.toString()}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={delete:"","x-id":"DeleteObjects"},void 0!==e.Delete&&(v=Ki(e.Delete,t)),void 0!==e.Delete&&(g=Ki(e.Delete,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"POST",headers:f,path:d,query:p,body:v})]}}))}))},M=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({tagging:""},void 0!==e.VersionId&&{versionId:e.VersionId}),[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},N=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={publicAccessBlock:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"DELETE",headers:f,path:d,query:p,body:void 0})]}}))}))},I=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={accelerate:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},L=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={acl:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},R=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({analytics:"","x-id":"GetBucketAnalyticsConfiguration"},void 0!==e.Id&&{id:e.Id}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},D=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={cors:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},z=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={encryption:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},F=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f={},d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({"intelligent-tiering":"","x-id":"GetBucketIntelligentTieringConfiguration"},void 0!==e.Id&&{id:e.Id}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},B=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({inventory:"","x-id":"GetBucketInventoryConfiguration"},void 0!==e.Id&&{id:e.Id}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},V=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={lifecycle:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},U=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={location:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},H=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={logging:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},q=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({metrics:"","x-id":"GetBucketMetricsConfiguration"},void 0!==e.Id&&{id:e.Id}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},G=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={notification:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},W=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={ownershipControls:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},K=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={policy:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},Y=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={policyStatus:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},X=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={replication:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},Q=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={requestPayment:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},$=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={tagging:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},J=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={versioning:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},Z=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={website:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},ee=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},Zs(e.IfMatch)&&{"if-match":e.IfMatch}),Zs(e.IfModifiedSince)&&{"if-modified-since":Object(o.d)(e.IfModifiedSince).toString()}),Zs(e.IfNoneMatch)&&{"if-none-match":e.IfNoneMatch}),Zs(e.IfUnmodifiedSince)&&{"if-unmodified-since":Object(o.d)(e.IfUnmodifiedSince).toString()}),Zs(e.Range)&&{range:e.Range}),Zs(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Zs(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Zs(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"x-id":"GetObject"},void 0!==e.ResponseCacheControl&&{"response-cache-control":e.ResponseCacheControl}),void 0!==e.ResponseContentDisposition&&{"response-content-disposition":e.ResponseContentDisposition}),void 0!==e.ResponseContentEncoding&&{"response-content-encoding":e.ResponseContentEncoding}),void 0!==e.ResponseContentLanguage&&{"response-content-language":e.ResponseContentLanguage}),void 0!==e.ResponseContentType&&{"response-content-type":e.ResponseContentType}),void 0!==e.ResponseExpires&&{"response-expires":Object(o.d)(e.ResponseExpires).toString()}),void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},te=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({acl:""},void 0!==e.VersionId&&{versionId:e.VersionId}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},ne=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({"legal-hold":""},void 0!==e.VersionId&&{versionId:e.VersionId}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},re=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={"object-lock":""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},ie=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({retention:""},void 0!==e.VersionId&&{versionId:e.VersionId}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},oe=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({tagging:""},void 0!==e.VersionId&&{versionId:e.VersionId}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},ae=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p={torrent:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},se=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={publicAccessBlock:""},[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},ce=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h;return Object(r.g)(this,(function(p){switch(p.label){case 0:return[4,t.endpoint()];case 1:if(n=p.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),[2,new i.a({protocol:c,hostname:a,port:u,method:"HEAD",headers:f,path:d,body:void 0})]}}))}))},ue=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},Zs(e.IfMatch)&&{"if-match":e.IfMatch}),Zs(e.IfModifiedSince)&&{"if-modified-since":Object(o.d)(e.IfModifiedSince).toString()}),Zs(e.IfNoneMatch)&&{"if-none-match":e.IfNoneMatch}),Zs(e.IfUnmodifiedSince)&&{"if-unmodified-since":Object(o.d)(e.IfUnmodifiedSince).toString()}),Zs(e.Range)&&{range:e.Range}),Zs(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Zs(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Zs(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)(Object(r.a)({},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),[2,new i.a({protocol:c,hostname:a,port:u,method:"HEAD",headers:f,path:d,query:p,body:void 0})]}}))}))},le=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({analytics:"","x-id":"ListBucketAnalyticsConfigurations"},void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},fe=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f={},d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({"intelligent-tiering":"","x-id":"ListBucketIntelligentTieringConfigurations"},void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},de=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({inventory:"","x-id":"ListBucketInventoryConfigurations"},void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},he=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({metrics:"","x-id":"ListBucketMetricsConfigurations"},void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},pe=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var e,n,o,a,s,c,u,l;return Object(r.g)(this,(function(r){switch(r.label){case 0:return[4,t.endpoint()];case 1:return e=r.sent(),n=e.hostname,o=e.protocol,a=void 0===o?"https":o,s=e.port,c=e.path,u={"content-type":"application/xml"},l=((null===c||void 0===c?void 0:c.endsWith("/"))?c.slice(0,-1):c||"")+"/","",[2,new i.a({protocol:a,hostname:n,port:s,method:"GET",headers:u,path:l,body:""})]}}))}))},ve=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({uploads:""},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.KeyMarker&&{"key-marker":e.KeyMarker}),void 0!==e.MaxUploads&&{"max-uploads":e.MaxUploads.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),void 0!==e.UploadIdMarker&&{"upload-id-marker":e.UploadIdMarker}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},ge=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.Marker&&{marker:e.Marker}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},me=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"list-type":"2"},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),void 0!==e.ContinuationToken&&{"continuation-token":e.ContinuationToken}),void 0!==e.FetchOwner&&{"fetch-owner":e.FetchOwner.toString()}),void 0!==e.StartAfter&&{"start-after":e.StartAfter}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},ye=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({versions:""},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.KeyMarker&&{"key-marker":e.KeyMarker}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),void 0!==e.VersionIdMarker&&{"version-id-marker":e.VersionIdMarker}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},be=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)(Object(r.a)(Object(r.a)({"x-id":"ListParts"},void 0!==e.MaxParts&&{"max-parts":e.MaxParts.toString()}),void 0!==e.PartNumberMarker&&{"part-number-marker":e.PartNumberMarker}),void 0!==e.UploadId&&{uploadId:e.UploadId}),[2,new i.a({protocol:c,hostname:a,port:u,method:"GET",headers:f,path:d,query:p,body:void 0})]}}))}))},we=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({"content-type":"application/xml"},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={accelerate:""},void 0!==e.AccelerateConfiguration&&(v=Ii(e.AccelerateConfiguration,t)),void 0!==e.AccelerateConfiguration&&(g=Ii(e.AccelerateConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},xe=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ACL)&&{"x-amz-acl":e.ACL}),Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Zs(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Zs(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Zs(e.GrantWrite)&&{"x-amz-grant-write":e.GrantWrite}),Zs(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={acl:""},void 0!==e.AccessControlPolicy&&(v=Li(e.AccessControlPolicy,t)),void 0!==e.AccessControlPolicy&&(g=Li(e.AccessControlPolicy,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Oe=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({"content-type":"application/xml"},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({analytics:""},void 0!==e.Id&&{id:e.Id}),void 0!==e.AnalyticsConfiguration&&(v=Ri(e.AnalyticsConfiguration,t)),void 0!==e.AnalyticsConfiguration&&(g=Ri(e.AnalyticsConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Se=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={cors:""},void 0!==e.CORSConfiguration&&(v=Hi(e.CORSConfiguration,t)),void 0!==e.CORSConfiguration&&(g=Hi(e.CORSConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},_e=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={encryption:""},void 0!==e.ServerSideEncryptionConfiguration&&(v=Qo(e.ServerSideEncryptionConfiguration,t)),void 0!==e.ServerSideEncryptionConfiguration&&(g=Qo(e.ServerSideEncryptionConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Ee=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f={"content-type":"application/xml"},d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({"intelligent-tiering":""},void 0!==e.Id&&{id:e.Id}),void 0!==e.IntelligentTieringConfiguration&&(v=no(e.IntelligentTieringConfiguration,t)),void 0!==e.IntelligentTieringConfiguration&&(g=no(e.IntelligentTieringConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},ke=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({"content-type":"application/xml"},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({inventory:""},void 0!==e.Id&&{id:e.Id}),void 0!==e.InventoryConfiguration&&(v=io(e.InventoryConfiguration,t)),void 0!==e.InventoryConfiguration&&(g=io(e.InventoryConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Ce=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({"content-type":"application/xml"},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={lifecycle:""},void 0!==e.LifecycleConfiguration&&(v=Fi(e.LifecycleConfiguration,t)),void 0!==e.LifecycleConfiguration&&(g=(g=Fi(e.LifecycleConfiguration,t)).withName("LifecycleConfiguration"),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Ae=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={logging:""},void 0!==e.BucketLoggingStatus&&(v=Bi(e.BucketLoggingStatus,t)),void 0!==e.BucketLoggingStatus&&(g=Bi(e.BucketLoggingStatus,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},je=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)({"content-type":"application/xml"},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p=Object(r.a)({metrics:""},void 0!==e.Id&&{id:e.Id}),void 0!==e.MetricsConfiguration&&(v=yo(e.MetricsConfiguration,t)),void 0!==e.MetricsConfiguration&&(g=yo(e.MetricsConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Te=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),Zs(e.SkipDestinationValidation)&&{"x-amz-skip-destination-validation":e.SkipDestinationValidation.toString()}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={notification:""},void 0!==e.NotificationConfiguration&&(v=Oo(e.NotificationConfiguration,t)),void 0!==e.NotificationConfiguration&&(g=Oo(e.NotificationConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Pe=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={ownershipControls:""},void 0!==e.OwnershipControls&&(v=Po(e.OwnershipControls,t)),void 0!==e.OwnershipControls&&(g=Po(e.OwnershipControls,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Me=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"text/plain"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ConfirmRemoveSelfBucketAccess)&&{"x-amz-confirm-remove-self-bucket-access":e.ConfirmRemoveSelfBucketAccess.toString()}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={policy:""},void 0!==e.Policy&&(v=e.Policy),void 0!==e.Policy&&(g=e.Policy,v=g),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Ne=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.Token)&&{"x-amz-bucket-object-lock-token":e.Token}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={replication:""},void 0!==e.ReplicationConfiguration&&(v=Ro(e.ReplicationConfiguration,t)),void 0!==e.ReplicationConfiguration&&(g=Ro(e.ReplicationConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Ie=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={requestPayment:""},void 0!==e.RequestPaymentConfiguration&&(v=Uo(e.RequestPaymentConfiguration,t)),void 0!==e.RequestPaymentConfiguration&&(g=Uo(e.RequestPaymentConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Le=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={tagging:""},void 0!==e.Tagging&&(v=aa(e.Tagging,t)),void 0!==e.Tagging&&(g=aa(e.Tagging,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Re=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.MFA)&&{"x-amz-mfa":e.MFA}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={versioning:""},void 0!==e.VersioningConfiguration&&(v=ha(e.VersioningConfiguration,t)),void 0!==e.VersioningConfiguration&&(g=ha(e.VersioningConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},De=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={website:""},void 0!==e.WebsiteConfiguration&&(v=pa(e.WebsiteConfiguration,t)),void 0!==e.WebsiteConfiguration&&(g=pa(e.WebsiteConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},ze=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/octet-stream"},Zs(e.ACL)&&{"x-amz-acl":e.ACL}),Zs(e.CacheControl)&&{"cache-control":e.CacheControl}),Zs(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),Zs(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),Zs(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),Zs(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ContentType)&&{"content-type":e.ContentType}),Zs(e.Expires)&&{expires:Object(o.d)(e.Expires).toString()}),Zs(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Zs(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Zs(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Zs(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Zs(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),Zs(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),Zs(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),Zs(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Zs(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Zs(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Zs(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),Zs(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),Zs(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.Tagging)&&{"x-amz-tagging":e.Tagging}),Zs(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),Zs(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),Zs(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var i;return Object(r.a)(Object(r.a)({},t),((i={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],i))}),{})),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p={"x-id":"PutObject"},void 0!==e.Body&&(v=e.Body),void 0!==e.Body&&(g=e.Body,v=g),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Fe=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ACL)&&{"x-amz-acl":e.ACL}),Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Zs(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Zs(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Zs(e.GrantWrite)&&{"x-amz-grant-write":e.GrantWrite}),Zs(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({acl:""},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.AccessControlPolicy&&(v=Li(e.AccessControlPolicy,t)),void 0!==e.AccessControlPolicy&&(g=Li(e.AccessControlPolicy,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Be=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({"legal-hold":""},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.LegalHold&&(v=ko(e.LegalHold,t)),void 0!==e.LegalHold&&(g=(g=ko(e.LegalHold,t)).withName("LegalHold"),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Ve=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.Token)&&{"x-amz-bucket-object-lock-token":e.Token}),Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={"object-lock":""},void 0!==e.ObjectLockConfiguration&&(v=Eo(e.ObjectLockConfiguration,t)),void 0!==e.ObjectLockConfiguration&&(g=Eo(e.ObjectLockConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Ue=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":e.BypassGovernanceRetention.toString()}),Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({retention:""},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.Retention&&(v=Co(e.Retention,t)),void 0!==e.Retention&&(g=(g=Co(e.Retention,t)).withName("Retention"),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},He=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({tagging:""},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.Tagging&&(v=aa(e.Tagging,t)),void 0!==e.Tagging&&(g=aa(e.Tagging,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},qe=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return d=d.replace("{Bucket}",Object(o.i)(h)),p={publicAccessBlock:""},void 0!==e.PublicAccessBlockConfiguration&&(v=Io(e.PublicAccessBlockConfiguration,t)),void 0!==e.PublicAccessBlockConfiguration&&(g=Io(e.PublicAccessBlockConfiguration,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Ge=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)({restore:"","x-id":"RestoreObject"},void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.RestoreRequest&&(v=qo(e.RestoreRequest,t)),void 0!==e.RestoreRequest&&(g=qo(e.RestoreRequest,t),v='',g.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),v+=g.toString()),[2,new i.a({protocol:c,hostname:a,port:u,method:"POST",headers:f,path:d,query:p,body:v})]}}))}))},We=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,u,l,f,d,h,p,v,g,m,y,b;return Object(r.g)(this,(function(w){switch(w.label){case 0:return[4,t.endpoint()];case 1:if(n=w.sent(),a=n.hostname,u=n.protocol,l=void 0===u?"https":u,f=n.port,d=n.path,h=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/xml"},Zs(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Zs(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Zs(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),p=((null===d||void 0===d?void 0:d.endsWith("/"))?d.slice(0,-1):d||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((v=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(p=p.replace("{Bucket}",Object(o.i)(v)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((v=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return p=p.replace("{Key+}",v.split("/").map((function(e){return Object(o.i)(e)})).join("/")),g={select:"","select-type":"2","x-id":"SelectObjectContent"},m='',(y=new s("SelectObjectContentRequest")).addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),void 0!==e.Expression&&(b=new s("Expression").addChildNode(new c(e.Expression)).withName("Expression"),y.addChildNode(b)),void 0!==e.ExpressionType&&(b=new s("ExpressionType").addChildNode(new c(e.ExpressionType)).withName("ExpressionType"),y.addChildNode(b)),void 0!==e.InputSerialization&&(b=to(e.InputSerialization,t).withName("InputSerialization"),y.addChildNode(b)),void 0!==e.OutputSerialization&&(b=jo(e.OutputSerialization,t).withName("OutputSerialization"),y.addChildNode(b)),void 0!==e.RequestProgress&&(b=Ho(e.RequestProgress,t).withName("RequestProgress"),y.addChildNode(b)),void 0!==e.ScanRange&&(b=Yo(e.ScanRange,t).withName("ScanRange"),y.addChildNode(b)),m+=y.toString(),[2,new i.a({protocol:l,hostname:a,port:f,method:"POST",headers:h,path:p,query:g,body:m})]}}))}))},Ke=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v,g;return Object(r.g)(this,(function(m){switch(m.label){case 0:return[4,t.endpoint()];case 1:if(n=m.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/octet-stream"},Zs(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),Zs(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Zs(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Zs(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Zs(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)(Object(r.a)({"x-id":"UploadPart"},void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.Body&&(v=e.Body),void 0!==e.Body&&(g=e.Body,v=g),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:v})]}}))}))},Ye=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p;return Object(r.g)(this,(function(v){switch(v.label){case 0:return[4,t.endpoint()];case 1:if(n=v.sent(),a=n.hostname,s=n.protocol,c=void 0===s?"https":s,u=n.port,l=n.path,f=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},Zs(e.CopySource)&&{"x-amz-copy-source":e.CopySource}),Zs(e.CopySourceIfMatch)&&{"x-amz-copy-source-if-match":e.CopySourceIfMatch}),Zs(e.CopySourceIfModifiedSince)&&{"x-amz-copy-source-if-modified-since":Object(o.d)(e.CopySourceIfModifiedSince).toString()}),Zs(e.CopySourceIfNoneMatch)&&{"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch}),Zs(e.CopySourceIfUnmodifiedSince)&&{"x-amz-copy-source-if-unmodified-since":Object(o.d)(e.CopySourceIfUnmodifiedSince).toString()}),Zs(e.CopySourceRange)&&{"x-amz-copy-source-range":e.CopySourceRange}),Zs(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Zs(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Zs(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Zs(e.CopySourceSSECustomerAlgorithm)&&{"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm}),Zs(e.CopySourceSSECustomerKey)&&{"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey}),Zs(e.CopySourceSSECustomerKeyMD5)&&{"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5}),Zs(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Zs(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),Zs(e.ExpectedSourceBucketOwner)&&{"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),d=((null===l||void 0===l?void 0:l.endsWith("/"))?l.slice(0,-1):l||"")+"/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((h=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(d=d.replace("{Bucket}",Object(o.i)(h)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((h=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return d=d.replace("{Key+}",h.split("/").map((function(e){return Object(o.i)(e)})).join("/")),p=Object(r.a)(Object(r.a)({"x-id":"UploadPartCopy"},void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),void 0!==e.UploadId&&{uploadId:e.UploadId}),[2,new i.a({protocol:c,hostname:a,port:u,method:"PUT",headers:f,path:d,query:p,body:void 0})]}}))}))},Xe=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,a,s,c,u,l,f,d,h,p,v;return Object(r.g)(this,(function(g){switch(g.label){case 0:return[4,t.endpoint()];case 1:return n=g.sent(),n.hostname,a=n.protocol,s=void 0===a?"https":a,c=n.port,u=n.path,l=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({"content-type":"application/octet-stream","x-amz-content-sha256":"UNSIGNED-PAYLOAD"},Zs(e.RequestRoute)&&{"x-amz-request-route":e.RequestRoute}),Zs(e.RequestToken)&&{"x-amz-request-token":e.RequestToken}),Zs(e.StatusCode)&&{"x-amz-fwd-status":e.StatusCode.toString()}),Zs(e.ErrorCode)&&{"x-amz-fwd-error-code":e.ErrorCode}),Zs(e.ErrorMessage)&&{"x-amz-fwd-error-message":e.ErrorMessage}),Zs(e.AcceptRanges)&&{"x-amz-fwd-header-accept-ranges":e.AcceptRanges}),Zs(e.CacheControl)&&{"x-amz-fwd-header-cache-control":e.CacheControl}),Zs(e.ContentDisposition)&&{"x-amz-fwd-header-content-disposition":e.ContentDisposition}),Zs(e.ContentEncoding)&&{"x-amz-fwd-header-content-encoding":e.ContentEncoding}),Zs(e.ContentLanguage)&&{"x-amz-fwd-header-content-language":e.ContentLanguage}),Zs(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),Zs(e.ContentRange)&&{"x-amz-fwd-header-content-range":e.ContentRange}),Zs(e.ContentType)&&{"x-amz-fwd-header-content-type":e.ContentType}),Zs(e.DeleteMarker)&&{"x-amz-fwd-header-x-amz-delete-marker":e.DeleteMarker.toString()}),Zs(e.ETag)&&{"x-amz-fwd-header-etag":e.ETag}),Zs(e.Expires)&&{"x-amz-fwd-header-expires":Object(o.d)(e.Expires).toString()}),Zs(e.Expiration)&&{"x-amz-fwd-header-x-amz-expiration":e.Expiration}),Zs(e.LastModified)&&{"x-amz-fwd-header-last-modified":Object(o.d)(e.LastModified).toString()}),Zs(e.MissingMeta)&&{"x-amz-fwd-header-x-amz-missing-meta":e.MissingMeta.toString()}),Zs(e.ObjectLockMode)&&{"x-amz-fwd-header-x-amz-object-lock-mode":e.ObjectLockMode}),Zs(e.ObjectLockLegalHoldStatus)&&{"x-amz-fwd-header-x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),Zs(e.ObjectLockRetainUntilDate)&&{"x-amz-fwd-header-x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),Zs(e.PartsCount)&&{"x-amz-fwd-header-x-amz-mp-parts-count":e.PartsCount.toString()}),Zs(e.ReplicationStatus)&&{"x-amz-fwd-header-x-amz-replication-status":e.ReplicationStatus}),Zs(e.RequestCharged)&&{"x-amz-fwd-header-x-amz-request-charged":e.RequestCharged}),Zs(e.Restore)&&{"x-amz-fwd-header-x-amz-restore":e.Restore}),Zs(e.ServerSideEncryption)&&{"x-amz-fwd-header-x-amz-server-side-encryption":e.ServerSideEncryption}),Zs(e.SSECustomerAlgorithm)&&{"x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Zs(e.SSEKMSKeyId)&&{"x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),Zs(e.SSECustomerKeyMD5)&&{"x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Zs(e.StorageClass)&&{"x-amz-fwd-header-x-amz-storage-class":e.StorageClass}),Zs(e.TagCount)&&{"x-amz-fwd-header-x-amz-tagging-count":e.TagCount.toString()}),Zs(e.VersionId)&&{"x-amz-fwd-header-x-amz-version-id":e.VersionId}),Zs(e.BucketKeyEnabled)&&{"x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var i;return Object(r.a)(Object(r.a)({},t),((i={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],i))}),{})),f=((null===u||void 0===u?void 0:u.endsWith("/"))?u.slice(0,-1):u||"")+"/WriteGetObjectResponse",d={"x-id":"WriteGetObjectResponse"},void 0!==e.Body&&(h=e.Body),void 0!==e.Body&&(p=e.Body,h=p),[4,t.endpoint()];case 2:if(v=g.sent().hostname,!0!==t.disableHostPrefix){if(v="{RequestRoute}."+v,void 0===e.RequestRoute)throw new Error("Empty value provided for input host prefix: RequestRoute.");if(v=v.replace("{RequestRoute}",e.RequestRoute),!Object(i.c)(v))throw new Error("ValidationError: prefixed hostname must be hostname compatible.")}return[2,new i.a({protocol:s,hostname:v,port:c,method:"POST",headers:l,path:f,query:d,body:h})]}}))}))},Qe=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,$e(e,t)]:(n={$metadata:Qs(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},$e=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l;return Object(r.g)(this,(function(f){switch(f.label){case 0:return i=[Object(r.a)({},e)],l={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(l.body=f.sent(),l)])),a="UnknownError",a=tc(e,n.body),a){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":return[3,2]}return[3,4];case 2:return s=[{}],[4,Ti(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([f.sent()])),{name:a,$metadata:Qs(e)}]),[3,5];case 4:c=n.body,a=c.code||c.Code||a,o=Object(r.a)(Object(r.a)({},c),{name:""+a,message:c.message||c.Message||a,$fault:"client",$metadata:Qs(e)}),f.label=5;case 5:return u=o.message||o.Message||a,o.message=u,delete o.Message,[2,Promise.reject(Object.assign(new Error(u),o))]}}))}))},Je=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ze(e,t)]:(n={$metadata:Qs(e),Bucket:void 0,BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,Key:void 0,Location:void 0,RequestCharged:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled=Object(o.l)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).Bucket&&(n.Bucket=Object(o.g)(i.Bucket)),void 0!==i.ETag&&(n.ETag=Object(o.g)(i.ETag)),void 0!==i.Key&&(n.Key=Object(o.g)(i.Key)),void 0!==i.Location&&(n.Location=Object(o.g)(i.Location)),[2,Promise.resolve(n)]}}))}))},Ze=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},et=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,tt(e,t)]:(n={$metadata:Qs(e),BucketKeyEnabled:void 0,CopyObjectResult:void 0,CopySourceVersionId:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-copy-source-version-id"]&&(n.CopySourceVersionId=e.headers["x-amz-copy-source-version-id"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled=Object(o.l)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.CopyObjectResult=Oa(i,t),[2,Promise.resolve(n)]}}))}))},tt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l;return Object(r.g)(this,(function(f){switch(f.label){case 0:return i=[Object(r.a)({},e)],l={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(l.body=f.sent(),l)])),a="UnknownError",a=tc(e,n.body),a){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":return[3,2]}return[3,4];case 2:return s=[{}],[4,Ni(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([f.sent()])),{name:a,$metadata:Qs(e)}]),[3,5];case 4:c=n.body,a=c.code||c.Code||a,o=Object(r.a)(Object(r.a)({},c),{name:""+a,message:c.message||c.Message||a,$fault:"client",$metadata:Qs(e)}),f.label=5;case 5:return u=o.message||o.Message||a,o.message=u,delete o.Message,[2,Promise.reject(Object.assign(new Error(u),o))]}}))}))},nt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,rt(e,t)]:(n={$metadata:Qs(e),Location:void 0},void 0!==e.headers.location&&(n.Location=e.headers.location),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},rt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l,f;return Object(r.g)(this,(function(d){switch(d.label){case 0:return i=[Object(r.a)({},e)],f={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(f.body=d.sent(),f)])),a="UnknownError",a=tc(e,n.body),a){case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":return[3,2];case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":return[3,4]}return[3,6];case 2:return s=[{}],[4,Ei(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([d.sent()])),{name:a,$metadata:Qs(e)}]),[3,7];case 4:return c=[{}],[4,ki(n,t)];case 5:return o=r.a.apply(void 0,[r.a.apply(void 0,c.concat([d.sent()])),{name:a,$metadata:Qs(e)}]),[3,7];case 6:u=n.body,a=u.code||u.Code||a,o=Object(r.a)(Object(r.a)({},u),{name:""+a,message:u.message||u.Message||a,$fault:"client",$metadata:Qs(e)}),d.label=7;case 7:return l=o.message||o.Message||a,o.message=l,delete o.Message,[2,Promise.reject(Object.assign(new Error(l),o))]}}))}))},it=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ot(e,t)]:(n={$metadata:Qs(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,BucketKeyEnabled:void 0,Key:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(n.AbortDate=Object(o.e)(Object(o.n)(e.headers["x-amz-abort-date"]))),void 0!==e.headers["x-amz-abort-rule-id"]&&(n.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled=Object(o.l)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).Bucket&&(n.Bucket=Object(o.g)(i.Bucket)),void 0!==i.Key&&(n.Key=Object(o.g)(i.Key)),void 0!==i.UploadId&&(n.UploadId=Object(o.g)(i.UploadId)),[2,Promise.resolve(n)]}}))}))},ot=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},at=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,st(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},st=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},ct=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,ut(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},ut=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},lt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,ft(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},ft=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},dt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,ht(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},ht=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},pt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,vt(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},vt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},gt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,mt(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},mt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},yt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,bt(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},bt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},wt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,xt(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},xt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Ot=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,St(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},St=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},_t=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Et(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Et=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},kt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Ct(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Ct=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},At=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,jt(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},jt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Tt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Pt(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Pt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Mt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Nt(e,t)]:(n={$metadata:Qs(e),DeleteMarker:void 0,RequestCharged:void 0,VersionId:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker=Object(o.l)(e.headers["x-amz-delete-marker"])),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Nt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},It=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Lt(e,t)]:(n={$metadata:Qs(e),Deleted:void 0,Errors:void 0,RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).Deleted&&(n.Deleted=[]),void 0!==i.Deleted&&(n.Deleted=ka(Object(o.j)(i.Deleted),t)),""===i.Error&&(n.Errors=[]),void 0!==i.Error&&(n.Errors=Pa(Object(o.j)(i.Error),t)),[2,Promise.resolve(n)]}}))}))},Lt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Rt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Dt(e,t)]:(n={$metadata:Qs(e),VersionId:void 0},void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Dt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},zt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Ft(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Ft=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Bt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Vt(e,t)]:(n={$metadata:Qs(e),Status:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).Status&&(n.Status=Object(o.g)(i.Status)),[2,Promise.resolve(n)]}}))}))},Vt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Ut=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ht(e,t)]:(n={$metadata:Qs(e),Grants:void 0,Owner:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).AccessControlList&&(n.Grants=[]),void 0!==i.AccessControlList&&void 0!==i.AccessControlList.Grant&&(n.Grants=Da(Object(o.j)(i.AccessControlList.Grant),t)),void 0!==i.Owner&&(n.Owner=ms(i.Owner,t)),[2,Promise.resolve(n)]}}))}))},Ht=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},qt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Gt(e,t)]:(n={$metadata:Qs(e),AnalyticsConfiguration:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.AnalyticsConfiguration=ga(i,t),[2,Promise.resolve(n)]}}))}))},Gt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Wt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Kt(e,t)]:(n={$metadata:Qs(e),CORSRules:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).CORSRule&&(n.CORSRules=[]),void 0!==i.CORSRule&&(n.CORSRules=Ea(Object(o.j)(i.CORSRule),t)),[2,Promise.resolve(n)]}}))}))},Kt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Yt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Xt(e,t)]:(n={$metadata:Qs(e),ServerSideEncryptionConfiguration:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.ServerSideEncryptionConfiguration=Ls(i,t),[2,Promise.resolve(n)]}}))}))},Xt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Qt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,$t(e,t)]:(n={$metadata:Qs(e),IntelligentTieringConfiguration:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.IntelligentTieringConfiguration=Ba(i,t),[2,Promise.resolve(n)]}}))}))},$t=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Jt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Zt(e,t)]:(n={$metadata:Qs(e),InventoryConfiguration:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.InventoryConfiguration=Ha(i,t),[2,Promise.resolve(n)]}}))}))},Zt=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},en=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,tn(e,t)]:(n={$metadata:Qs(e),Rules:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).Rule&&(n.Rules=[]),void 0!==i.Rule&&(n.Rules=es(Object(o.j)(i.Rule),t)),[2,Promise.resolve(n)]}}))}))},tn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},nn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,rn(e,t)]:(n={$metadata:Qs(e),LocationConstraint:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).LocationConstraint&&(n.LocationConstraint=Object(o.g)(i.LocationConstraint)),[2,Promise.resolve(n)]}}))}))},rn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},on=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,an(e,t)]:(n={$metadata:Qs(e),LoggingEnabled:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).LoggingEnabled&&(n.LoggingEnabled=ts(i.LoggingEnabled,t)),[2,Promise.resolve(n)]}}))}))},an=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},sn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,cn(e,t)]:(n={$metadata:Qs(e),MetricsConfiguration:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.MetricsConfiguration=is(i,t),[2,Promise.resolve(n)]}}))}))},cn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},un=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ln(e,t)]:(n={$metadata:Qs(e),EventBridgeConfiguration:void 0,LambdaFunctionConfigurations:void 0,QueueConfigurations:void 0,TopicConfigurations:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).EventBridgeConfiguration&&(n.EventBridgeConfiguration=Ma(i.EventBridgeConfiguration,t)),""===i.CloudFunctionConfiguration&&(n.LambdaFunctionConfigurations=[]),void 0!==i.CloudFunctionConfiguration&&(n.LambdaFunctionConfigurations=Qa(Object(o.j)(i.CloudFunctionConfiguration),t)),""===i.QueueConfiguration&&(n.QueueConfigurations=[]),void 0!==i.QueueConfiguration&&(n.QueueConfigurations=Ss(Object(o.j)(i.QueueConfiguration),t)),""===i.TopicConfiguration&&(n.TopicConfigurations=[]),void 0!==i.TopicConfiguration&&(n.TopicConfigurations=Ys(Object(o.j)(i.TopicConfiguration),t)),[2,Promise.resolve(n)]}}))}))},ln=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},fn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,dn(e,t)]:(n={$metadata:Qs(e),OwnershipControls:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.OwnershipControls=ys(i,t),[2,Promise.resolve(n)]}}))}))},dn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},hn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,pn(e,t)]:(n={$metadata:Qs(e),Policy:void 0},[4,Js(e.body,t)]);case 1:return i=r.sent(),n.Policy=Object(o.g)(i),[2,Promise.resolve(n)]}}))}))},pn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},vn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,gn(e,t)]:(n={$metadata:Qs(e),PolicyStatus:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.PolicyStatus=xs(i,t),[2,Promise.resolve(n)]}}))}))},gn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},mn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,yn(e,t)]:(n={$metadata:Qs(e),ReplicationConfiguration:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.ReplicationConfiguration=Es(i,t),[2,Promise.resolve(n)]}}))}))},yn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},bn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,wn(e,t)]:(n={$metadata:Qs(e),Payer:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).Payer&&(n.Payer=Object(o.g)(i.Payer)),[2,Promise.resolve(n)]}}))}))},wn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},xn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,On(e,t)]:(n={$metadata:Qs(e),TagSet:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).TagSet&&(n.TagSet=[]),void 0!==i.TagSet&&void 0!==i.TagSet.Tag&&(n.TagSet=Gs(Object(o.j)(i.TagSet.Tag),t)),[2,Promise.resolve(n)]}}))}))},On=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Sn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,_n(e,t)]:(n={$metadata:Qs(e),MFADelete:void 0,Status:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).MfaDelete&&(n.MFADelete=Object(o.g)(i.MfaDelete)),void 0!==i.Status&&(n.Status=Object(o.g)(i.Status)),[2,Promise.resolve(n)]}}))}))},_n=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},En=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,kn(e,t)]:(n={$metadata:Qs(e),ErrorDocument:void 0,IndexDocument:void 0,RedirectAllRequestsTo:void 0,RoutingRules:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).ErrorDocument&&(n.ErrorDocument=Ta(i.ErrorDocument,t)),void 0!==i.IndexDocument&&(n.IndexDocument=za(i.IndexDocument,t)),void 0!==i.RedirectAllRequestsTo&&(n.RedirectAllRequestsTo=_s(i.RedirectAllRequestsTo,t)),""===i.RoutingRules&&(n.RoutingRules=[]),void 0!==i.RoutingRules&&void 0!==i.RoutingRules.RoutingRule&&(n.RoutingRules=Ns(Object(o.j)(i.RoutingRules.RoutingRule),t)),[2,Promise.resolve(n)]}}))}))},kn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Cn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i;return Object(r.g)(this,(function(r){return 200!==e.statusCode&&e.statusCode>=300?[2,An(e,t)]:(n={$metadata:Qs(e),AcceptRanges:void 0,Body:void 0,BucketKeyEnabled:void 0,CacheControl:void 0,ContentDisposition:void 0,ContentEncoding:void 0,ContentLanguage:void 0,ContentLength:void 0,ContentRange:void 0,ContentType:void 0,DeleteMarker:void 0,ETag:void 0,Expiration:void 0,Expires:void 0,LastModified:void 0,Metadata:void 0,MissingMeta:void 0,ObjectLockLegalHoldStatus:void 0,ObjectLockMode:void 0,ObjectLockRetainUntilDate:void 0,PartsCount:void 0,ReplicationStatus:void 0,RequestCharged:void 0,Restore:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,StorageClass:void 0,TagCount:void 0,VersionId:void 0,WebsiteRedirectLocation:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker=Object(o.l)(e.headers["x-amz-delete-marker"])),void 0!==e.headers["accept-ranges"]&&(n.AcceptRanges=e.headers["accept-ranges"]),void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-restore"]&&(n.Restore=e.headers["x-amz-restore"]),void 0!==e.headers["last-modified"]&&(n.LastModified=Object(o.e)(Object(o.n)(e.headers["last-modified"]))),void 0!==e.headers["content-length"]&&(n.ContentLength=Object(o.p)(e.headers["content-length"])),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-missing-meta"]&&(n.MissingMeta=Object(o.o)(e.headers["x-amz-missing-meta"])),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["cache-control"]&&(n.CacheControl=e.headers["cache-control"]),void 0!==e.headers["content-disposition"]&&(n.ContentDisposition=e.headers["content-disposition"]),void 0!==e.headers["content-encoding"]&&(n.ContentEncoding=e.headers["content-encoding"]),void 0!==e.headers["content-language"]&&(n.ContentLanguage=e.headers["content-language"]),void 0!==e.headers["content-range"]&&(n.ContentRange=e.headers["content-range"]),void 0!==e.headers["content-type"]&&(n.ContentType=e.headers["content-type"]),void 0!==e.headers.expires&&(n.Expires=Object(o.e)(Object(o.n)(e.headers.expires))),void 0!==e.headers["x-amz-website-redirect-location"]&&(n.WebsiteRedirectLocation=e.headers["x-amz-website-redirect-location"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled=Object(o.l)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])),void 0!==e.headers["x-amz-storage-class"]&&(n.StorageClass=e.headers["x-amz-storage-class"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),void 0!==e.headers["x-amz-replication-status"]&&(n.ReplicationStatus=e.headers["x-amz-replication-status"]),void 0!==e.headers["x-amz-mp-parts-count"]&&(n.PartsCount=Object(o.o)(e.headers["x-amz-mp-parts-count"])),void 0!==e.headers["x-amz-tagging-count"]&&(n.TagCount=Object(o.o)(e.headers["x-amz-tagging-count"])),void 0!==e.headers["x-amz-object-lock-mode"]&&(n.ObjectLockMode=e.headers["x-amz-object-lock-mode"]),void 0!==e.headers["x-amz-object-lock-retain-until-date"]&&(n.ObjectLockRetainUntilDate=Object(o.e)(Object(o.m)(e.headers["x-amz-object-lock-retain-until-date"]))),void 0!==e.headers["x-amz-object-lock-legal-hold"]&&(n.ObjectLockLegalHoldStatus=e.headers["x-amz-object-lock-legal-hold"]),Object.keys(e.headers).forEach((function(t){void 0===n.Metadata&&(n.Metadata={}),t.startsWith("x-amz-meta-")&&(n.Metadata[t.substring(11)]=e.headers[t])})),i=e.body,n.Body=i,[2,Promise.resolve(n)])}))}))},An=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l,f;return Object(r.g)(this,(function(d){switch(d.label){case 0:return i=[Object(r.a)({},e)],f={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(f.body=d.sent(),f)])),a="UnknownError",a=tc(e,n.body),a){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":return[3,2];case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":return[3,4]}return[3,6];case 2:return s=[{}],[4,Ci(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([d.sent()])),{name:a,$metadata:Qs(e)}]),[3,7];case 4:return c=[{}],[4,ji(n,t)];case 5:return o=r.a.apply(void 0,[r.a.apply(void 0,c.concat([d.sent()])),{name:a,$metadata:Qs(e)}]),[3,7];case 6:u=n.body,a=u.code||u.Code||a,o=Object(r.a)(Object(r.a)({},u),{name:""+a,message:u.message||u.Message||a,$fault:"client",$metadata:Qs(e)}),d.label=7;case 7:return l=o.message||o.Message||a,o.message=l,delete o.Message,[2,Promise.reject(Object.assign(new Error(l),o))]}}))}))},jn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Tn(e,t)]:(n={$metadata:Qs(e),Grants:void 0,Owner:void 0,RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).AccessControlList&&(n.Grants=[]),void 0!==i.AccessControlList&&void 0!==i.AccessControlList.Grant&&(n.Grants=Da(Object(o.j)(i.AccessControlList.Grant),t)),void 0!==i.Owner&&(n.Owner=ms(i.Owner,t)),[2,Promise.resolve(n)]}}))}))},Tn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l;return Object(r.g)(this,(function(f){switch(f.label){case 0:return i=[Object(r.a)({},e)],l={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(l.body=f.sent(),l)])),a="UnknownError",a=tc(e,n.body),a){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":return[3,2]}return[3,4];case 2:return s=[{}],[4,ji(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([f.sent()])),{name:a,$metadata:Qs(e)}]),[3,5];case 4:c=n.body,a=c.code||c.Code||a,o=Object(r.a)(Object(r.a)({},c),{name:""+a,message:c.message||c.Message||a,$fault:"client",$metadata:Qs(e)}),f.label=5;case 5:return u=o.message||o.Message||a,o.message=u,delete o.Message,[2,Promise.reject(Object.assign(new Error(u),o))]}}))}))},Pn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Mn(e,t)]:(n={$metadata:Qs(e),LegalHold:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.LegalHold=hs(i,t),[2,Promise.resolve(n)]}}))}))},Mn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Nn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,In(e,t)]:(n={$metadata:Qs(e),ObjectLockConfiguration:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.ObjectLockConfiguration=ds(i,t),[2,Promise.resolve(n)]}}))}))},In=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Ln=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Rn(e,t)]:(n={$metadata:Qs(e),Retention:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.Retention=ps(i,t),[2,Promise.resolve(n)]}}))}))},Rn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Dn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,zn(e,t)]:(n={$metadata:Qs(e),TagSet:void 0,VersionId:void 0},void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).TagSet&&(n.TagSet=[]),void 0!==i.TagSet&&void 0!==i.TagSet.Tag&&(n.TagSet=Gs(Object(o.j)(i.TagSet.Tag),t)),[2,Promise.resolve(n)]}}))}))},zn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Fn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i;return Object(r.g)(this,(function(r){return 200!==e.statusCode&&e.statusCode>=300?[2,Bn(e,t)]:(n={$metadata:Qs(e),Body:void 0,RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),i=e.body,n.Body=i,[2,Promise.resolve(n)])}))}))},Bn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Vn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Un(e,t)]:(n={$metadata:Qs(e),PublicAccessBlockConfiguration:void 0},a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.PublicAccessBlockConfiguration=Os(i,t),[2,Promise.resolve(n)]}}))}))},Un=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Hn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,qn(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},qn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l;return Object(r.g)(this,(function(f){switch(f.label){case 0:return i=[Object(r.a)({},e)],l={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(l.body=f.sent(),l)])),a="UnknownError",a=tc(e,n.body),a){case"NotFound":case"com.amazonaws.s3#NotFound":return[3,2]}return[3,4];case 2:return s=[{}],[4,Pi(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([f.sent()])),{name:a,$metadata:Qs(e)}]),[3,5];case 4:c=n.body,a=c.code||c.Code||a,o=Object(r.a)(Object(r.a)({},c),{name:""+a,message:c.message||c.Message||a,$fault:"client",$metadata:Qs(e)}),f.label=5;case 5:return u=o.message||o.Message||a,o.message=u,delete o.Message,[2,Promise.reject(Object.assign(new Error(u),o))]}}))}))},Gn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Wn(e,t)]:(n={$metadata:Qs(e),AcceptRanges:void 0,ArchiveStatus:void 0,BucketKeyEnabled:void 0,CacheControl:void 0,ContentDisposition:void 0,ContentEncoding:void 0,ContentLanguage:void 0,ContentLength:void 0,ContentType:void 0,DeleteMarker:void 0,ETag:void 0,Expiration:void 0,Expires:void 0,LastModified:void 0,Metadata:void 0,MissingMeta:void 0,ObjectLockLegalHoldStatus:void 0,ObjectLockMode:void 0,ObjectLockRetainUntilDate:void 0,PartsCount:void 0,ReplicationStatus:void 0,RequestCharged:void 0,Restore:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,StorageClass:void 0,VersionId:void 0,WebsiteRedirectLocation:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker=Object(o.l)(e.headers["x-amz-delete-marker"])),void 0!==e.headers["accept-ranges"]&&(n.AcceptRanges=e.headers["accept-ranges"]),void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-restore"]&&(n.Restore=e.headers["x-amz-restore"]),void 0!==e.headers["x-amz-archive-status"]&&(n.ArchiveStatus=e.headers["x-amz-archive-status"]),void 0!==e.headers["last-modified"]&&(n.LastModified=Object(o.e)(Object(o.n)(e.headers["last-modified"]))),void 0!==e.headers["content-length"]&&(n.ContentLength=Object(o.p)(e.headers["content-length"])),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-missing-meta"]&&(n.MissingMeta=Object(o.o)(e.headers["x-amz-missing-meta"])),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["cache-control"]&&(n.CacheControl=e.headers["cache-control"]),void 0!==e.headers["content-disposition"]&&(n.ContentDisposition=e.headers["content-disposition"]),void 0!==e.headers["content-encoding"]&&(n.ContentEncoding=e.headers["content-encoding"]),void 0!==e.headers["content-language"]&&(n.ContentLanguage=e.headers["content-language"]),void 0!==e.headers["content-type"]&&(n.ContentType=e.headers["content-type"]),void 0!==e.headers.expires&&(n.Expires=Object(o.e)(Object(o.n)(e.headers.expires))),void 0!==e.headers["x-amz-website-redirect-location"]&&(n.WebsiteRedirectLocation=e.headers["x-amz-website-redirect-location"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled=Object(o.l)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])),void 0!==e.headers["x-amz-storage-class"]&&(n.StorageClass=e.headers["x-amz-storage-class"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),void 0!==e.headers["x-amz-replication-status"]&&(n.ReplicationStatus=e.headers["x-amz-replication-status"]),void 0!==e.headers["x-amz-mp-parts-count"]&&(n.PartsCount=Object(o.o)(e.headers["x-amz-mp-parts-count"])),void 0!==e.headers["x-amz-object-lock-mode"]&&(n.ObjectLockMode=e.headers["x-amz-object-lock-mode"]),void 0!==e.headers["x-amz-object-lock-retain-until-date"]&&(n.ObjectLockRetainUntilDate=Object(o.e)(Object(o.m)(e.headers["x-amz-object-lock-retain-until-date"]))),void 0!==e.headers["x-amz-object-lock-legal-hold"]&&(n.ObjectLockLegalHoldStatus=e.headers["x-amz-object-lock-legal-hold"]),Object.keys(e.headers).forEach((function(t){void 0===n.Metadata&&(n.Metadata={}),t.startsWith("x-amz-meta-")&&(n.Metadata[t.substring(11)]=e.headers[t])})),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Wn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l;return Object(r.g)(this,(function(f){switch(f.label){case 0:return i=[Object(r.a)({},e)],l={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(l.body=f.sent(),l)])),a="UnknownError",a=tc(e,n.body),a){case"NotFound":case"com.amazonaws.s3#NotFound":return[3,2]}return[3,4];case 2:return s=[{}],[4,Pi(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([f.sent()])),{name:a,$metadata:Qs(e)}]),[3,5];case 4:c=n.body,a=c.code||c.Code||a,o=Object(r.a)(Object(r.a)({},c),{name:""+a,message:c.message||c.Message||a,$fault:"client",$metadata:Qs(e)}),f.label=5;case 5:return u=o.message||o.Message||a,o.message=u,delete o.Message,[2,Promise.reject(Object.assign(new Error(u),o))]}}))}))},Kn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Yn(e,t)]:(n={$metadata:Qs(e),AnalyticsConfigurationList:void 0,ContinuationToken:void 0,IsTruncated:void 0,NextContinuationToken:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).AnalyticsConfiguration&&(n.AnalyticsConfigurationList=[]),void 0!==i.AnalyticsConfiguration&&(n.AnalyticsConfigurationList=ma(Object(o.j)(i.AnalyticsConfiguration),t)),void 0!==i.ContinuationToken&&(n.ContinuationToken=Object(o.g)(i.ContinuationToken)),void 0!==i.IsTruncated&&(n.IsTruncated=Object(o.l)(i.IsTruncated)),void 0!==i.NextContinuationToken&&(n.NextContinuationToken=Object(o.g)(i.NextContinuationToken)),[2,Promise.resolve(n)]}}))}))},Yn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Xn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Qn(e,t)]:(n={$metadata:Qs(e),ContinuationToken:void 0,IntelligentTieringConfigurationList:void 0,IsTruncated:void 0,NextContinuationToken:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).ContinuationToken&&(n.ContinuationToken=Object(o.g)(i.ContinuationToken)),""===i.IntelligentTieringConfiguration&&(n.IntelligentTieringConfigurationList=[]),void 0!==i.IntelligentTieringConfiguration&&(n.IntelligentTieringConfigurationList=Va(Object(o.j)(i.IntelligentTieringConfiguration),t)),void 0!==i.IsTruncated&&(n.IsTruncated=Object(o.l)(i.IsTruncated)),void 0!==i.NextContinuationToken&&(n.NextContinuationToken=Object(o.g)(i.NextContinuationToken)),[2,Promise.resolve(n)]}}))}))},Qn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},$n=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Jn(e,t)]:(n={$metadata:Qs(e),ContinuationToken:void 0,InventoryConfigurationList:void 0,IsTruncated:void 0,NextContinuationToken:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).ContinuationToken&&(n.ContinuationToken=Object(o.g)(i.ContinuationToken)),""===i.InventoryConfiguration&&(n.InventoryConfigurationList=[]),void 0!==i.InventoryConfiguration&&(n.InventoryConfigurationList=qa(Object(o.j)(i.InventoryConfiguration),t)),void 0!==i.IsTruncated&&(n.IsTruncated=Object(o.l)(i.IsTruncated)),void 0!==i.NextContinuationToken&&(n.NextContinuationToken=Object(o.g)(i.NextContinuationToken)),[2,Promise.resolve(n)]}}))}))},Jn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Zn=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,er(e,t)]:(n={$metadata:Qs(e),ContinuationToken:void 0,IsTruncated:void 0,MetricsConfigurationList:void 0,NextContinuationToken:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).ContinuationToken&&(n.ContinuationToken=Object(o.g)(i.ContinuationToken)),void 0!==i.IsTruncated&&(n.IsTruncated=Object(o.l)(i.IsTruncated)),""===i.MetricsConfiguration&&(n.MetricsConfigurationList=[]),void 0!==i.MetricsConfiguration&&(n.MetricsConfigurationList=os(Object(o.j)(i.MetricsConfiguration),t)),void 0!==i.NextContinuationToken&&(n.NextContinuationToken=Object(o.g)(i.NextContinuationToken)),[2,Promise.resolve(n)]}}))}))},er=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},tr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,nr(e,t)]:(n={$metadata:Qs(e),Buckets:void 0,Owner:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).Buckets&&(n.Buckets=[]),void 0!==i.Buckets&&void 0!==i.Buckets.Bucket&&(n.Buckets=wa(Object(o.j)(i.Buckets.Bucket),t)),void 0!==i.Owner&&(n.Owner=ms(i.Owner,t)),[2,Promise.resolve(n)]}}))}))},nr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},rr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ir(e,t)]:(n={$metadata:Qs(e),Bucket:void 0,CommonPrefixes:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,KeyMarker:void 0,MaxUploads:void 0,NextKeyMarker:void 0,NextUploadIdMarker:void 0,Prefix:void 0,UploadIdMarker:void 0,Uploads:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).Bucket&&(n.Bucket=Object(o.g)(i.Bucket)),""===i.CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==i.CommonPrefixes&&(n.CommonPrefixes=xa(Object(o.j)(i.CommonPrefixes),t)),void 0!==i.Delimiter&&(n.Delimiter=Object(o.g)(i.Delimiter)),void 0!==i.EncodingType&&(n.EncodingType=Object(o.g)(i.EncodingType)),void 0!==i.IsTruncated&&(n.IsTruncated=Object(o.l)(i.IsTruncated)),void 0!==i.KeyMarker&&(n.KeyMarker=Object(o.g)(i.KeyMarker)),void 0!==i.MaxUploads&&(n.MaxUploads=Object(o.o)(i.MaxUploads)),void 0!==i.NextKeyMarker&&(n.NextKeyMarker=Object(o.g)(i.NextKeyMarker)),void 0!==i.NextUploadIdMarker&&(n.NextUploadIdMarker=Object(o.g)(i.NextUploadIdMarker)),void 0!==i.Prefix&&(n.Prefix=Object(o.g)(i.Prefix)),void 0!==i.UploadIdMarker&&(n.UploadIdMarker=Object(o.g)(i.UploadIdMarker)),""===i.Upload&&(n.Uploads=[]),void 0!==i.Upload&&(n.Uploads=ss(Object(o.j)(i.Upload),t)),[2,Promise.resolve(n)]}}))}))},ir=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},or=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ar(e,t)]:(n={$metadata:Qs(e),CommonPrefixes:void 0,Contents:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,Marker:void 0,MaxKeys:void 0,Name:void 0,NextMarker:void 0,Prefix:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==i.CommonPrefixes&&(n.CommonPrefixes=xa(Object(o.j)(i.CommonPrefixes),t)),""===i.Contents&&(n.Contents=[]),void 0!==i.Contents&&(n.Contents=fs(Object(o.j)(i.Contents),t)),void 0!==i.Delimiter&&(n.Delimiter=Object(o.g)(i.Delimiter)),void 0!==i.EncodingType&&(n.EncodingType=Object(o.g)(i.EncodingType)),void 0!==i.IsTruncated&&(n.IsTruncated=Object(o.l)(i.IsTruncated)),void 0!==i.Marker&&(n.Marker=Object(o.g)(i.Marker)),void 0!==i.MaxKeys&&(n.MaxKeys=Object(o.o)(i.MaxKeys)),void 0!==i.Name&&(n.Name=Object(o.g)(i.Name)),void 0!==i.NextMarker&&(n.NextMarker=Object(o.g)(i.NextMarker)),void 0!==i.Prefix&&(n.Prefix=Object(o.g)(i.Prefix)),[2,Promise.resolve(n)]}}))}))},ar=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l;return Object(r.g)(this,(function(f){switch(f.label){case 0:return i=[Object(r.a)({},e)],l={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(l.body=f.sent(),l)])),a="UnknownError",a=tc(e,n.body),a){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:return s=[{}],[4,Ai(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([f.sent()])),{name:a,$metadata:Qs(e)}]),[3,5];case 4:c=n.body,a=c.code||c.Code||a,o=Object(r.a)(Object(r.a)({},c),{name:""+a,message:c.message||c.Message||a,$fault:"client",$metadata:Qs(e)}),f.label=5;case 5:return u=o.message||o.Message||a,o.message=u,delete o.Message,[2,Promise.reject(Object.assign(new Error(u),o))]}}))}))},sr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,cr(e,t)]:(n={$metadata:Qs(e),CommonPrefixes:void 0,Contents:void 0,ContinuationToken:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,KeyCount:void 0,MaxKeys:void 0,Name:void 0,NextContinuationToken:void 0,Prefix:void 0,StartAfter:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==i.CommonPrefixes&&(n.CommonPrefixes=xa(Object(o.j)(i.CommonPrefixes),t)),""===i.Contents&&(n.Contents=[]),void 0!==i.Contents&&(n.Contents=fs(Object(o.j)(i.Contents),t)),void 0!==i.ContinuationToken&&(n.ContinuationToken=Object(o.g)(i.ContinuationToken)),void 0!==i.Delimiter&&(n.Delimiter=Object(o.g)(i.Delimiter)),void 0!==i.EncodingType&&(n.EncodingType=Object(o.g)(i.EncodingType)),void 0!==i.IsTruncated&&(n.IsTruncated=Object(o.l)(i.IsTruncated)),void 0!==i.KeyCount&&(n.KeyCount=Object(o.o)(i.KeyCount)),void 0!==i.MaxKeys&&(n.MaxKeys=Object(o.o)(i.MaxKeys)),void 0!==i.Name&&(n.Name=Object(o.g)(i.Name)),void 0!==i.NextContinuationToken&&(n.NextContinuationToken=Object(o.g)(i.NextContinuationToken)),void 0!==i.Prefix&&(n.Prefix=Object(o.g)(i.Prefix)),void 0!==i.StartAfter&&(n.StartAfter=Object(o.g)(i.StartAfter)),[2,Promise.resolve(n)]}}))}))},cr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l;return Object(r.g)(this,(function(f){switch(f.label){case 0:return i=[Object(r.a)({},e)],l={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(l.body=f.sent(),l)])),a="UnknownError",a=tc(e,n.body),a){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:return s=[{}],[4,Ai(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([f.sent()])),{name:a,$metadata:Qs(e)}]),[3,5];case 4:c=n.body,a=c.code||c.Code||a,o=Object(r.a)(Object(r.a)({},c),{name:""+a,message:c.message||c.Message||a,$fault:"client",$metadata:Qs(e)}),f.label=5;case 5:return u=o.message||o.Message||a,o.message=u,delete o.Message,[2,Promise.reject(Object.assign(new Error(u),o))]}}))}))},ur=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,lr(e,t)]:(n={$metadata:Qs(e),CommonPrefixes:void 0,DeleteMarkers:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,KeyMarker:void 0,MaxKeys:void 0,Name:void 0,NextKeyMarker:void 0,NextVersionIdMarker:void 0,Prefix:void 0,VersionIdMarker:void 0,Versions:void 0},a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return""===(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==i.CommonPrefixes&&(n.CommonPrefixes=xa(Object(o.j)(i.CommonPrefixes),t)),""===i.DeleteMarker&&(n.DeleteMarkers=[]),void 0!==i.DeleteMarker&&(n.DeleteMarkers=Ca(Object(o.j)(i.DeleteMarker),t)),void 0!==i.Delimiter&&(n.Delimiter=Object(o.g)(i.Delimiter)),void 0!==i.EncodingType&&(n.EncodingType=Object(o.g)(i.EncodingType)),void 0!==i.IsTruncated&&(n.IsTruncated=Object(o.l)(i.IsTruncated)),void 0!==i.KeyMarker&&(n.KeyMarker=Object(o.g)(i.KeyMarker)),void 0!==i.MaxKeys&&(n.MaxKeys=Object(o.o)(i.MaxKeys)),void 0!==i.Name&&(n.Name=Object(o.g)(i.Name)),void 0!==i.NextKeyMarker&&(n.NextKeyMarker=Object(o.g)(i.NextKeyMarker)),void 0!==i.NextVersionIdMarker&&(n.NextVersionIdMarker=Object(o.g)(i.NextVersionIdMarker)),void 0!==i.Prefix&&(n.Prefix=Object(o.g)(i.Prefix)),void 0!==i.VersionIdMarker&&(n.VersionIdMarker=Object(o.g)(i.VersionIdMarker)),""===i.Version&&(n.Versions=[]),void 0!==i.Version&&(n.Versions=gs(Object(o.j)(i.Version),t)),[2,Promise.resolve(n)]}}))}))},lr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},fr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,dr(e,t)]:(n={$metadata:Qs(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,Initiator:void 0,IsTruncated:void 0,Key:void 0,MaxParts:void 0,NextPartNumberMarker:void 0,Owner:void 0,PartNumberMarker:void 0,Parts:void 0,RequestCharged:void 0,StorageClass:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(n.AbortDate=Object(o.e)(Object(o.n)(e.headers["x-amz-abort-date"]))),void 0!==e.headers["x-amz-abort-rule-id"]&&(n.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),a=o.e,s=o.f,[4,ec(e.body,t)]);case 1:return void 0!==(i=a.apply(void 0,[s.apply(void 0,[r.sent()]),"body"])).Bucket&&(n.Bucket=Object(o.g)(i.Bucket)),void 0!==i.Initiator&&(n.Initiator=Fa(i.Initiator,t)),void 0!==i.IsTruncated&&(n.IsTruncated=Object(o.l)(i.IsTruncated)),void 0!==i.Key&&(n.Key=Object(o.g)(i.Key)),void 0!==i.MaxParts&&(n.MaxParts=Object(o.o)(i.MaxParts)),void 0!==i.NextPartNumberMarker&&(n.NextPartNumberMarker=Object(o.g)(i.NextPartNumberMarker)),void 0!==i.Owner&&(n.Owner=ms(i.Owner,t)),void 0!==i.PartNumberMarker&&(n.PartNumberMarker=Object(o.g)(i.PartNumberMarker)),""===i.Part&&(n.Parts=[]),void 0!==i.Part&&(n.Parts=ws(Object(o.j)(i.Part),t)),void 0!==i.StorageClass&&(n.StorageClass=Object(o.g)(i.StorageClass)),void 0!==i.UploadId&&(n.UploadId=Object(o.g)(i.UploadId)),[2,Promise.resolve(n)]}}))}))},dr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},hr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,pr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},pr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},vr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,gr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},gr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},mr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,yr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},yr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},br=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,wr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},wr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},xr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Or(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Or=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Sr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,_r(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},_r=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Er=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,kr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},kr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Cr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ar(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Ar=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},jr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Tr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Tr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Pr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Mr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Mr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Nr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ir(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Ir=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Lr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Rr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Rr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Dr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,zr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},zr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Fr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Br(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Br=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Vr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Ur(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Ur=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Hr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,qr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},qr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Gr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Wr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Wr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Kr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Yr(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Yr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},Xr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Qr(e,t)]:(n={$metadata:Qs(e),BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled=Object(o.l)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Qr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},$r=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Jr(e,t)]:(n={$metadata:Qs(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Jr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l;return Object(r.g)(this,(function(f){switch(f.label){case 0:return i=[Object(r.a)({},e)],l={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(l.body=f.sent(),l)])),a="UnknownError",a=tc(e,n.body),a){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":return[3,2]}return[3,4];case 2:return s=[{}],[4,ji(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([f.sent()])),{name:a,$metadata:Qs(e)}]),[3,5];case 4:c=n.body,a=c.code||c.Code||a,o=Object(r.a)(Object(r.a)({},c),{name:""+a,message:c.message||c.Message||a,$fault:"client",$metadata:Qs(e)}),f.label=5;case 5:return u=o.message||o.Message||a,o.message=u,delete o.Message,[2,Promise.reject(Object.assign(new Error(u),o))]}}))}))},Zr=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ei(e,t)]:(n={$metadata:Qs(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},ei=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},ti=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ni(e,t)]:(n={$metadata:Qs(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},ni=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},ri=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ii(e,t)]:(n={$metadata:Qs(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},ii=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},oi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ai(e,t)]:(n={$metadata:Qs(e),VersionId:void 0},void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},ai=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},si=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ci(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},ci=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},ui=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,li(e,t)]:(n={$metadata:Qs(e),RequestCharged:void 0,RestoreOutputPath:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),void 0!==e.headers["x-amz-restore-output-path"]&&(n.RestoreOutputPath=e.headers["x-amz-restore-output-path"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},li=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u,l;return Object(r.g)(this,(function(f){switch(f.label){case 0:return i=[Object(r.a)({},e)],l={},[4,ec(e.body,t)];case 1:switch(n=r.a.apply(void 0,i.concat([(l.body=f.sent(),l)])),a="UnknownError",a=tc(e,n.body),a){case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":return[3,2]}return[3,4];case 2:return s=[{}],[4,Mi(n,t)];case 3:return o=r.a.apply(void 0,[r.a.apply(void 0,s.concat([f.sent()])),{name:a,$metadata:Qs(e)}]),[3,5];case 4:c=n.body,a=c.code||c.Code||a,o=Object(r.a)(Object(r.a)({},c),{name:""+a,message:c.message||c.Message||a,$fault:"client",$metadata:Qs(e)}),f.label=5;case 5:return u=o.message||o.Message||a,o.message=u,delete o.Message,[2,Promise.reject(Object.assign(new Error(u),o))]}}))}))},fi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i;return Object(r.g)(this,(function(o){return 200!==e.statusCode&&e.statusCode>=300?[2,di(e,t)]:(n={$metadata:Qs(e),Payload:void 0},i=t.eventStreamMarshaller.deserialize(e.body,(function(e){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return n=Object.keys(e)[0],i=Object.entries(e[n].headers).reduce((function(e,t){return e[t[0]]=t[1].value,e}),{}),o={headers:i,body:e[n].body},(a={})[n]=o,[4,bi(a,t)];case 1:return[2,r.sent()]}}))}))})),n.Payload=i,[2,Promise.resolve(n)])}))}))},di=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},hi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,pi(e,t)]:(n={$metadata:Qs(e),BucketKeyEnabled:void 0,ETag:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0},void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled=Object(o.l)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},pi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},vi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,gi(e,t)]:(n={$metadata:Qs(e),BucketKeyEnabled:void 0,CopyPartResult:void 0,CopySourceVersionId:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0},void 0!==e.headers["x-amz-copy-source-version-id"]&&(n.CopySourceVersionId=e.headers["x-amz-copy-source-version-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled=Object(o.l)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),a=o.f,[4,ec(e.body,t)]);case 1:return i=a.apply(void 0,[r.sent()]),n.CopyPartResult=Sa(i,t),[2,Promise.resolve(n)]}}))}))},gi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},mi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n;return Object(r.g)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,yi(e,t)]:(n={$metadata:Qs(e)},[4,$s(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},yi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s,c,u;return Object(r.g)(this,(function(l){switch(l.label){case 0:return i=[Object(r.a)({},e)],u={},[4,ec(e.body,t)];case 1:return n=r.a.apply(void 0,i.concat([(u.body=l.sent(),u)])),a="UnknownError",a=tc(e,n.body),s=n.body,a=s.code||s.Code||a,o=Object(r.a)(Object(r.a)({},s),{name:""+a,message:s.message||s.Message||a,$fault:"client",$metadata:Qs(e)}),c=o.message||o.Message||a,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},bi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i,o,a,s;return Object(r.g)(this,(function(r){switch(r.label){case 0:return void 0===e.Records?[3,2]:(n={},[4,Si(e.Records,t)]);case 1:return[2,(n.Records=r.sent(),n)];case 2:return void 0===e.Stats?[3,4]:(i={},[4,_i(e.Stats,t)]);case 3:return[2,(i.Stats=r.sent(),i)];case 4:return void 0===e.Progress?[3,6]:(o={},[4,Oi(e.Progress,t)]);case 5:return[2,(o.Progress=r.sent(),o)];case 6:return void 0===e.Cont?[3,8]:(a={},[4,wi(e.Cont,t)]);case 7:return[2,(a.Cont=r.sent(),a)];case 8:return void 0===e.End?[3,10]:(s={},[4,xi(e.End,t)]);case 9:return[2,(s.End=r.sent(),s)];case 10:return[2,{$unknown:e}]}}))}))},wi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){return Object(r.g)(this,(function(e){return[2,{}]}))}))},xi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){return Object(r.g)(this,(function(e){return[2,{}]}))}))},Oi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i;return Object(r.g)(this,(function(r){switch(r.label){case 0:return i=n={},[4,ec(e.body,t)];case 1:return i.Details=r.sent(),[2,n]}}))}))},Si=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.g)(this,(function(n){return(t={}).Payload=e.body,[2,t]}))}))},_i=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var n,i;return Object(r.g)(this,(function(r){switch(r.label){case 0:return i=n={},[4,ec(e.body,t)];case 1:return i.Details=r.sent(),[2,n]}}))}))},Ei=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.g)(this,(function(n){return t={name:"BucketAlreadyExists",$fault:"client",$metadata:Qs(e)},e.body,[2,t]}))}))},ki=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.g)(this,(function(n){return t={name:"BucketAlreadyOwnedByYou",$fault:"client",$metadata:Qs(e)},e.body,[2,t]}))}))},Ci=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var t,n;return Object(r.g)(this,(function(r){return t={name:"InvalidObjectState",$fault:"client",$metadata:Qs(e),AccessTier:void 0,StorageClass:void 0},void 0!==(n=e.body).AccessTier&&(t.AccessTier=Object(o.g)(n.AccessTier)),void 0!==n.StorageClass&&(t.StorageClass=Object(o.g)(n.StorageClass)),[2,t]}))}))},Ai=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.g)(this,(function(n){return t={name:"NoSuchBucket",$fault:"client",$metadata:Qs(e)},e.body,[2,t]}))}))},ji=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.g)(this,(function(n){return t={name:"NoSuchKey",$fault:"client",$metadata:Qs(e)},e.body,[2,t]}))}))},Ti=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.g)(this,(function(n){return t={name:"NoSuchUpload",$fault:"client",$metadata:Qs(e)},e.body,[2,t]}))}))},Pi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.g)(this,(function(n){return t={name:"NotFound",$fault:"client",$metadata:Qs(e)},e.body,[2,t]}))}))},Mi=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.g)(this,(function(n){return t={name:"ObjectAlreadyInActiveTierError",$fault:"client",$metadata:Qs(e)},e.body,[2,t]}))}))},Ni=function(e,t){return Object(r.e)(void 0,void 0,void 0,(function(){var t;return Object(r.g)(this,(function(n){return t={name:"ObjectNotInActiveTierError",$fault:"client",$metadata:Qs(e)},e.body,[2,t]}))}))},Ii=function(e,t){var n=new s("AccelerateConfiguration");if(void 0!==e.Status&&null!==e.Status){var r=new s("BucketAccelerateStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}return n},Li=function(e,t){var n=new s("AccessControlPolicy");if(void 0!==e.Grants&&null!==e.Grants){var r=eo(e.Grants,t),i=new s("AccessControlList");r.map((function(e){i.addChildNode(e)})),n.addChildNode(i)}if(void 0!==e.Owner&&null!==e.Owner){var o=To(e.Owner,t).withName("Owner");n.addChildNode(o)}return n},Ri=function(e,t){var n=new s("AnalyticsConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new s("AnalyticsId").addChildNode(new c(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=Di(e.Filter,t).withName("Filter");n.addChildNode(r)}if(void 0!==e.StorageClassAnalysis&&null!==e.StorageClassAnalysis){r=ra(e.StorageClassAnalysis,t).withName("StorageClassAnalysis");n.addChildNode(r)}return n},Di=function(e,t){var n=new s("AnalyticsFilter");return f.j.visit(e,{Prefix:function(e){var t=new s("Prefix").addChildNode(new c(e)).withName("Prefix");n.addChildNode(t)},Tag:function(e){var r=oa(e,t).withName("Tag");n.addChildNode(r)},And:function(e){var r=function(e,t){var n=new s("AnalyticsAndOperator");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}void 0!==e.Tags&&null!==e.Tags&&sa(e.Tags,t).map((function(e){e=e.withName("Tag"),n.addChildNode(e)}));return n}(e,t).withName("And");n.addChildNode(r)},_:function(e,t){if(!(t instanceof s||t instanceof c))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new s(e).addChildNode(t))}}),n},zi=function(e,t){var n=new s("AnalyticsS3BucketDestination");if(void 0!==e.Format&&null!==e.Format){var r=new s("AnalyticsS3ExportFileFormat").addChildNode(new c(e.Format)).withName("Format");n.addChildNode(r)}if(void 0!==e.BucketAccountId&&null!==e.BucketAccountId){r=new s("AccountId").addChildNode(new c(e.BucketAccountId)).withName("BucketAccountId");n.addChildNode(r)}if(void 0!==e.Bucket&&null!==e.Bucket){r=new s("BucketName").addChildNode(new c(e.Bucket)).withName("Bucket");n.addChildNode(r)}if(void 0!==e.Prefix&&null!==e.Prefix){r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}return n},Fi=function(e,t){var n=new s("BucketLifecycleConfiguration");void 0!==e.Rules&&null!==e.Rules&&vo(e.Rules,t).map((function(e){e=e.withName("Rule"),n.addChildNode(e)}));return n},Bi=function(e,t){var n=new s("BucketLoggingStatus");if(void 0!==e.LoggingEnabled&&null!==e.LoggingEnabled){var r=go(e.LoggingEnabled,t).withName("LoggingEnabled");n.addChildNode(r)}return n},Vi=function(e,t){var n=new s("CompletedMultipartUpload");void 0!==e.Parts&&null!==e.Parts&&Ui(e.Parts,t).map((function(e){e=e.withName("Part"),n.addChildNode(e)}));return n},Ui=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("CompletedPart");if(void 0!==e.ETag&&null!==e.ETag){var r=new s("ETag").addChildNode(new c(e.ETag)).withName("ETag");n.addChildNode(r)}if(void 0!==e.PartNumber&&null!==e.PartNumber){r=new s("PartNumber").addChildNode(new c(String(e.PartNumber))).withName("PartNumber");n.addChildNode(r)}return n}(e).withName("member")}))},Hi=function(e,t){var n=new s("CORSConfiguration");void 0!==e.CORSRules&&null!==e.CORSRules&&Gi(e.CORSRules,t).map((function(e){e=e.withName("CORSRule"),n.addChildNode(e)}));return n},qi=function(e,t){var n=new s("CORSRule");if(void 0!==e.ID&&null!==e.ID){var r=new s("ID").addChildNode(new c(e.ID)).withName("ID");n.addChildNode(r)}void 0!==e.AllowedHeaders&&null!==e.AllowedHeaders&&function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:new s("AllowedHeader").addChildNode(new c(e)).withName("member")}))}(e.AllowedHeaders).map((function(e){e=e.withName("AllowedHeader"),n.addChildNode(e)}));void 0!==e.AllowedMethods&&null!==e.AllowedMethods&&function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:new s("AllowedMethod").addChildNode(new c(e)).withName("member")}))}(e.AllowedMethods).map((function(e){e=e.withName("AllowedMethod"),n.addChildNode(e)}));void 0!==e.AllowedOrigins&&null!==e.AllowedOrigins&&function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:new s("AllowedOrigin").addChildNode(new c(e)).withName("member")}))}(e.AllowedOrigins).map((function(e){e=e.withName("AllowedOrigin"),n.addChildNode(e)}));void 0!==e.ExposeHeaders&&null!==e.ExposeHeaders&&$i(e.ExposeHeaders,t).map((function(e){e=e.withName("ExposeHeader"),n.addChildNode(e)}));if(void 0!==e.MaxAgeSeconds&&null!==e.MaxAgeSeconds){r=new s("MaxAgeSeconds").addChildNode(new c(String(e.MaxAgeSeconds))).withName("MaxAgeSeconds");n.addChildNode(r)}return n},Gi=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:qi(e,t).withName("member")}))},Wi=function(e,t){var n=new s("CreateBucketConfiguration");if(void 0!==e.LocationConstraint&&null!==e.LocationConstraint){var r=new s("BucketLocationConstraint").addChildNode(new c(e.LocationConstraint)).withName("LocationConstraint");n.addChildNode(r)}return n},Ki=function(e,t){var n=new s("Delete");void 0!==e.Objects&&null!==e.Objects&&_o(e.Objects,t).map((function(e){e=e.withName("Object"),n.addChildNode(e)}));if(void 0!==e.Quiet&&null!==e.Quiet){var r=new s("Quiet").addChildNode(new c(String(e.Quiet))).withName("Quiet");n.addChildNode(r)}return n},Yi=function(e,t){var n=new s("Destination");if(void 0!==e.Bucket&&null!==e.Bucket){var r=new s("BucketName").addChildNode(new c(e.Bucket)).withName("Bucket");n.addChildNode(r)}if(void 0!==e.Account&&null!==e.Account){r=new s("AccountId").addChildNode(new c(e.Account)).withName("Account");n.addChildNode(r)}if(void 0!==e.StorageClass&&null!==e.StorageClass){r=new s("StorageClass").addChildNode(new c(e.StorageClass)).withName("StorageClass");n.addChildNode(r)}if(void 0!==e.AccessControlTranslation&&null!==e.AccessControlTranslation){r=function(e,t){var n=new s("AccessControlTranslation");if(void 0!==e.Owner&&null!==e.Owner){var r=new s("OwnerOverride").addChildNode(new c(e.Owner)).withName("Owner");n.addChildNode(r)}return n}(e.AccessControlTranslation).withName("AccessControlTranslation");n.addChildNode(r)}if(void 0!==e.EncryptionConfiguration&&null!==e.EncryptionConfiguration){r=Xi(e.EncryptionConfiguration,t).withName("EncryptionConfiguration");n.addChildNode(r)}if(void 0!==e.ReplicationTime&&null!==e.ReplicationTime){r=Bo(e.ReplicationTime,t).withName("ReplicationTime");n.addChildNode(r)}if(void 0!==e.Metrics&&null!==e.Metrics){r=mo(e.Metrics,t).withName("Metrics");n.addChildNode(r)}return n},Xi=function(e,t){var n=new s("EncryptionConfiguration");if(void 0!==e.ReplicaKmsKeyID&&null!==e.ReplicaKmsKeyID){var r=new s("ReplicaKmsKeyID").addChildNode(new c(e.ReplicaKmsKeyID)).withName("ReplicaKmsKeyID");n.addChildNode(r)}return n},Qi=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:new s("Event").addChildNode(new c(e)).withName("member")}))},$i=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:new s("ExposeHeader").addChildNode(new c(e)).withName("member")}))},Ji=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("FilterRule");if(void 0!==e.Name&&null!==e.Name){var r=new s("FilterRuleName").addChildNode(new c(e.Name)).withName("Name");n.addChildNode(r)}if(void 0!==e.Value&&null!==e.Value){r=new s("FilterRuleValue").addChildNode(new c(e.Value)).withName("Value");n.addChildNode(r)}return n}(e).withName("member")}))},Zi=function(e,t){var n=new s("Grantee");if(void 0!==e.DisplayName&&null!==e.DisplayName){var r=new s("DisplayName").addChildNode(new c(e.DisplayName)).withName("DisplayName");n.addChildNode(r)}if(void 0!==e.EmailAddress&&null!==e.EmailAddress){r=new s("EmailAddress").addChildNode(new c(e.EmailAddress)).withName("EmailAddress");n.addChildNode(r)}if(void 0!==e.ID&&null!==e.ID){r=new s("ID").addChildNode(new c(e.ID)).withName("ID");n.addChildNode(r)}if(void 0!==e.URI&&null!==e.URI){r=new s("URI").addChildNode(new c(e.URI)).withName("URI");n.addChildNode(r)}return void 0!==e.Type&&null!==e.Type&&n.addAttribute("xsi:type",e.Type),n},eo=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("Grant");void 0!==e.Grantee&&null!==e.Grantee&&((r=Zi(e.Grantee,t).withName("Grantee")).addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),n.addChildNode(r));if(void 0!==e.Permission&&null!==e.Permission){var r=new s("Permission").addChildNode(new c(e.Permission)).withName("Permission");n.addChildNode(r)}return n}(e,t).withName("Grant")}))},to=function(e,t){var n=new s("InputSerialization");if(void 0!==e.CSV&&null!==e.CSV){var r=function(e,t){var n=new s("CSVInput");if(void 0!==e.FileHeaderInfo&&null!==e.FileHeaderInfo){var r=new s("FileHeaderInfo").addChildNode(new c(e.FileHeaderInfo)).withName("FileHeaderInfo");n.addChildNode(r)}if(void 0!==e.Comments&&null!==e.Comments){r=new s("Comments").addChildNode(new c(e.Comments)).withName("Comments");n.addChildNode(r)}if(void 0!==e.QuoteEscapeCharacter&&null!==e.QuoteEscapeCharacter){r=new s("QuoteEscapeCharacter").addChildNode(new c(e.QuoteEscapeCharacter)).withName("QuoteEscapeCharacter");n.addChildNode(r)}if(void 0!==e.RecordDelimiter&&null!==e.RecordDelimiter){r=new s("RecordDelimiter").addChildNode(new c(e.RecordDelimiter)).withName("RecordDelimiter");n.addChildNode(r)}if(void 0!==e.FieldDelimiter&&null!==e.FieldDelimiter){r=new s("FieldDelimiter").addChildNode(new c(e.FieldDelimiter)).withName("FieldDelimiter");n.addChildNode(r)}if(void 0!==e.QuoteCharacter&&null!==e.QuoteCharacter){r=new s("QuoteCharacter").addChildNode(new c(e.QuoteCharacter)).withName("QuoteCharacter");n.addChildNode(r)}if(void 0!==e.AllowQuotedRecordDelimiter&&null!==e.AllowQuotedRecordDelimiter){r=new s("AllowQuotedRecordDelimiter").addChildNode(new c(String(e.AllowQuotedRecordDelimiter))).withName("AllowQuotedRecordDelimiter");n.addChildNode(r)}return n}(e.CSV).withName("CSV");n.addChildNode(r)}if(void 0!==e.CompressionType&&null!==e.CompressionType){r=new s("CompressionType").addChildNode(new c(e.CompressionType)).withName("CompressionType");n.addChildNode(r)}if(void 0!==e.JSON&&null!==e.JSON){r=lo(e.JSON,t).withName("JSON");n.addChildNode(r)}if(void 0!==e.Parquet&&null!==e.Parquet){r=No(e.Parquet,t).withName("Parquet");n.addChildNode(r)}return n},no=function(e,t){var n=new s("IntelligentTieringConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new s("IntelligentTieringId").addChildNode(new c(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=ro(e.Filter,t).withName("Filter");n.addChildNode(r)}if(void 0!==e.Status&&null!==e.Status){r=new s("IntelligentTieringStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}void 0!==e.Tierings&&null!==e.Tierings&&ua(e.Tierings,t).map((function(e){e=e.withName("Tiering"),n.addChildNode(e)}));return n},ro=function(e,t){var n=new s("IntelligentTieringFilter");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}if(void 0!==e.Tag&&null!==e.Tag){r=oa(e.Tag,t).withName("Tag");n.addChildNode(r)}if(void 0!==e.And&&null!==e.And){r=function(e,t){var n=new s("IntelligentTieringAndOperator");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}void 0!==e.Tags&&null!==e.Tags&&sa(e.Tags,t).map((function(e){e=e.withName("Tag"),n.addChildNode(e)}));return n}(e.And,t).withName("And");n.addChildNode(r)}return n},io=function(e,t){var n=new s("InventoryConfiguration");if(void 0!==e.Destination&&null!==e.Destination){var r=oo(e.Destination,t).withName("Destination");n.addChildNode(r)}if(void 0!==e.IsEnabled&&null!==e.IsEnabled){r=new s("IsEnabled").addChildNode(new c(String(e.IsEnabled))).withName("IsEnabled");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=ao(e.Filter,t).withName("Filter");n.addChildNode(r)}if(void 0!==e.Id&&null!==e.Id){r=new s("InventoryId").addChildNode(new c(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.IncludedObjectVersions&&null!==e.IncludedObjectVersions){r=new s("InventoryIncludedObjectVersions").addChildNode(new c(e.IncludedObjectVersions)).withName("IncludedObjectVersions");n.addChildNode(r)}if(void 0!==e.OptionalFields&&null!==e.OptionalFields){var i=so(e.OptionalFields,t),o=new s("OptionalFields");i.map((function(e){o.addChildNode(e)})),n.addChildNode(o)}if(void 0!==e.Schedule&&null!==e.Schedule){r=uo(e.Schedule,t).withName("Schedule");n.addChildNode(r)}return n},oo=function(e,t){var n=new s("InventoryDestination");if(void 0!==e.S3BucketDestination&&null!==e.S3BucketDestination){var r=co(e.S3BucketDestination,t).withName("S3BucketDestination");n.addChildNode(r)}return n},ao=function(e,t){var n=new s("InventoryFilter");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}return n},so=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:new s("InventoryOptionalField").addChildNode(new c(e)).withName("Field")}))},co=function(e,t){var n=new s("InventoryS3BucketDestination");if(void 0!==e.AccountId&&null!==e.AccountId){var r=new s("AccountId").addChildNode(new c(e.AccountId)).withName("AccountId");n.addChildNode(r)}if(void 0!==e.Bucket&&null!==e.Bucket){r=new s("BucketName").addChildNode(new c(e.Bucket)).withName("Bucket");n.addChildNode(r)}if(void 0!==e.Format&&null!==e.Format){r=new s("InventoryFormat").addChildNode(new c(e.Format)).withName("Format");n.addChildNode(r)}if(void 0!==e.Prefix&&null!==e.Prefix){r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}if(void 0!==e.Encryption&&null!==e.Encryption){r=function(e,t){var n=new s("InventoryEncryption");if(void 0!==e.SSES3&&null!==e.SSES3){var r=na(e.SSES3,t).withName("SSE-S3");n.addChildNode(r)}if(void 0!==e.SSEKMS&&null!==e.SSEKMS){r=ea(e.SSEKMS,t).withName("SSE-KMS");n.addChildNode(r)}return n}(e.Encryption,t).withName("Encryption");n.addChildNode(r)}return n},uo=function(e,t){var n=new s("InventorySchedule");if(void 0!==e.Frequency&&null!==e.Frequency){var r=new s("InventoryFrequency").addChildNode(new c(e.Frequency)).withName("Frequency");n.addChildNode(r)}return n},lo=function(e,t){var n=new s("JSONInput");if(void 0!==e.Type&&null!==e.Type){var r=new s("JSONType").addChildNode(new c(e.Type)).withName("Type");n.addChildNode(r)}return n},fo=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("LambdaFunctionConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new s("NotificationId").addChildNode(new c(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.LambdaFunctionArn&&null!==e.LambdaFunctionArn){r=new s("LambdaFunctionArn").addChildNode(new c(e.LambdaFunctionArn)).withName("CloudFunction");n.addChildNode(r)}void 0!==e.Events&&null!==e.Events&&Qi(e.Events).map((function(e){e=e.withName("Event"),n.addChildNode(e)}));if(void 0!==e.Filter&&null!==e.Filter){r=So(e.Filter,t).withName("Filter");n.addChildNode(r)}return n}(e,t).withName("member")}))},ho=function(e,t){var n=new s("LifecycleRule");if(void 0!==e.Expiration&&null!==e.Expiration){var r=function(e,t){var n=new s("LifecycleExpiration");if(void 0!==e.Date&&null!==e.Date){var r=new s("Date").addChildNode(new c(e.Date.toISOString().split(".")[0]+"Z")).withName("Date");n.addChildNode(r)}if(void 0!==e.Days&&null!==e.Days){r=new s("Days").addChildNode(new c(String(e.Days))).withName("Days");n.addChildNode(r)}if(void 0!==e.ExpiredObjectDeleteMarker&&null!==e.ExpiredObjectDeleteMarker){r=new s("ExpiredObjectDeleteMarker").addChildNode(new c(String(e.ExpiredObjectDeleteMarker))).withName("ExpiredObjectDeleteMarker");n.addChildNode(r)}return n}(e.Expiration).withName("Expiration");n.addChildNode(r)}if(void 0!==e.ID&&null!==e.ID){r=new s("ID").addChildNode(new c(e.ID)).withName("ID");n.addChildNode(r)}if(void 0!==e.Prefix&&null!==e.Prefix){r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=po(e.Filter,t).withName("Filter");n.addChildNode(r)}if(void 0!==e.Status&&null!==e.Status){r=new s("ExpirationStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}void 0!==e.Transitions&&null!==e.Transitions&&fa(e.Transitions,t).map((function(e){e=e.withName("Transition"),n.addChildNode(e)}));void 0!==e.NoncurrentVersionTransitions&&null!==e.NoncurrentVersionTransitions&&xo(e.NoncurrentVersionTransitions,t).map((function(e){e=e.withName("NoncurrentVersionTransition"),n.addChildNode(e)}));if(void 0!==e.NoncurrentVersionExpiration&&null!==e.NoncurrentVersionExpiration){r=wo(e.NoncurrentVersionExpiration,t).withName("NoncurrentVersionExpiration");n.addChildNode(r)}if(void 0!==e.AbortIncompleteMultipartUpload&&null!==e.AbortIncompleteMultipartUpload){r=function(e,t){var n=new s("AbortIncompleteMultipartUpload");if(void 0!==e.DaysAfterInitiation&&null!==e.DaysAfterInitiation){var r=new s("DaysAfterInitiation").addChildNode(new c(String(e.DaysAfterInitiation))).withName("DaysAfterInitiation");n.addChildNode(r)}return n}(e.AbortIncompleteMultipartUpload).withName("AbortIncompleteMultipartUpload");n.addChildNode(r)}return n},po=function(e,t){var n=new s("LifecycleRuleFilter");return f.Jc.visit(e,{Prefix:function(e){var t=new s("Prefix").addChildNode(new c(e)).withName("Prefix");n.addChildNode(t)},Tag:function(e){var r=oa(e,t).withName("Tag");n.addChildNode(r)},ObjectSizeGreaterThan:function(e){var t=new s("ObjectSizeGreaterThanBytes").addChildNode(new c(String(e))).withName("ObjectSizeGreaterThan");n.addChildNode(t)},ObjectSizeLessThan:function(e){var t=new s("ObjectSizeLessThanBytes").addChildNode(new c(String(e))).withName("ObjectSizeLessThan");n.addChildNode(t)},And:function(e){var r=function(e,t){var n=new s("LifecycleRuleAndOperator");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}void 0!==e.Tags&&null!==e.Tags&&sa(e.Tags,t).map((function(e){e=e.withName("Tag"),n.addChildNode(e)}));if(void 0!==e.ObjectSizeGreaterThan&&null!==e.ObjectSizeGreaterThan){r=new s("ObjectSizeGreaterThanBytes").addChildNode(new c(String(e.ObjectSizeGreaterThan))).withName("ObjectSizeGreaterThan");n.addChildNode(r)}if(void 0!==e.ObjectSizeLessThan&&null!==e.ObjectSizeLessThan){r=new s("ObjectSizeLessThanBytes").addChildNode(new c(String(e.ObjectSizeLessThan))).withName("ObjectSizeLessThan");n.addChildNode(r)}return n}(e,t).withName("And");n.addChildNode(r)},_:function(e,t){if(!(t instanceof s||t instanceof c))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new s(e).addChildNode(t))}}),n},vo=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:ho(e,t).withName("member")}))},go=function(e,t){var n=new s("LoggingEnabled");if(void 0!==e.TargetBucket&&null!==e.TargetBucket){var r=new s("TargetBucket").addChildNode(new c(e.TargetBucket)).withName("TargetBucket");n.addChildNode(r)}if(void 0!==e.TargetGrants&&null!==e.TargetGrants){var i=ca(e.TargetGrants,t),o=new s("TargetGrants");i.map((function(e){o.addChildNode(e)})),n.addChildNode(o)}if(void 0!==e.TargetPrefix&&null!==e.TargetPrefix){r=new s("TargetPrefix").addChildNode(new c(e.TargetPrefix)).withName("TargetPrefix");n.addChildNode(r)}return n},mo=function(e,t){var n=new s("Metrics");if(void 0!==e.Status&&null!==e.Status){var r=new s("MetricsStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}if(void 0!==e.EventThreshold&&null!==e.EventThreshold){r=Vo(e.EventThreshold,t).withName("EventThreshold");n.addChildNode(r)}return n},yo=function(e,t){var n=new s("MetricsConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new s("MetricsId").addChildNode(new c(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=bo(e.Filter,t).withName("Filter");n.addChildNode(r)}return n},bo=function(e,t){var n=new s("MetricsFilter");return f.hd.visit(e,{Prefix:function(e){var t=new s("Prefix").addChildNode(new c(e)).withName("Prefix");n.addChildNode(t)},Tag:function(e){var r=oa(e,t).withName("Tag");n.addChildNode(r)},AccessPointArn:function(e){var t=new s("AccessPointArn").addChildNode(new c(e)).withName("AccessPointArn");n.addChildNode(t)},And:function(e){var r=function(e,t){var n=new s("MetricsAndOperator");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}void 0!==e.Tags&&null!==e.Tags&&sa(e.Tags,t).map((function(e){e=e.withName("Tag"),n.addChildNode(e)}));if(void 0!==e.AccessPointArn&&null!==e.AccessPointArn){r=new s("AccessPointArn").addChildNode(new c(e.AccessPointArn)).withName("AccessPointArn");n.addChildNode(r)}return n}(e,t).withName("And");n.addChildNode(r)},_:function(e,t){if(!(t instanceof s||t instanceof c))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new s(e).addChildNode(t))}}),n},wo=function(e,t){var n=new s("NoncurrentVersionExpiration");if(void 0!==e.NoncurrentDays&&null!==e.NoncurrentDays){var r=new s("Days").addChildNode(new c(String(e.NoncurrentDays))).withName("NoncurrentDays");n.addChildNode(r)}if(void 0!==e.NewerNoncurrentVersions&&null!==e.NewerNoncurrentVersions){r=new s("VersionCount").addChildNode(new c(String(e.NewerNoncurrentVersions))).withName("NewerNoncurrentVersions");n.addChildNode(r)}return n},xo=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("NoncurrentVersionTransition");if(void 0!==e.NoncurrentDays&&null!==e.NoncurrentDays){var r=new s("Days").addChildNode(new c(String(e.NoncurrentDays))).withName("NoncurrentDays");n.addChildNode(r)}if(void 0!==e.StorageClass&&null!==e.StorageClass){r=new s("TransitionStorageClass").addChildNode(new c(e.StorageClass)).withName("StorageClass");n.addChildNode(r)}if(void 0!==e.NewerNoncurrentVersions&&null!==e.NewerNoncurrentVersions){r=new s("VersionCount").addChildNode(new c(String(e.NewerNoncurrentVersions))).withName("NewerNoncurrentVersions");n.addChildNode(r)}return n}(e).withName("member")}))},Oo=function(e,t){var n=new s("NotificationConfiguration");void 0!==e.TopicConfigurations&&null!==e.TopicConfigurations&&la(e.TopicConfigurations,t).map((function(e){e=e.withName("TopicConfiguration"),n.addChildNode(e)}));void 0!==e.QueueConfigurations&&null!==e.QueueConfigurations&&Lo(e.QueueConfigurations,t).map((function(e){e=e.withName("QueueConfiguration"),n.addChildNode(e)}));void 0!==e.LambdaFunctionConfigurations&&null!==e.LambdaFunctionConfigurations&&fo(e.LambdaFunctionConfigurations,t).map((function(e){e=e.withName("CloudFunctionConfiguration"),n.addChildNode(e)}));if(void 0!==e.EventBridgeConfiguration&&null!==e.EventBridgeConfiguration){var r=(e.EventBridgeConfiguration,new s("EventBridgeConfiguration")).withName("EventBridgeConfiguration");n.addChildNode(r)}return n},So=function(e,t){var n=new s("NotificationConfigurationFilter");if(void 0!==e.Key&&null!==e.Key){var r=Wo(e.Key,t).withName("S3Key");n.addChildNode(r)}return n},_o=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("ObjectIdentifier");if(void 0!==e.Key&&null!==e.Key){var r=new s("ObjectKey").addChildNode(new c(e.Key)).withName("Key");n.addChildNode(r)}if(void 0!==e.VersionId&&null!==e.VersionId){r=new s("ObjectVersionId").addChildNode(new c(e.VersionId)).withName("VersionId");n.addChildNode(r)}return n}(e).withName("member")}))},Eo=function(e,t){var n=new s("ObjectLockConfiguration");if(void 0!==e.ObjectLockEnabled&&null!==e.ObjectLockEnabled){var r=new s("ObjectLockEnabled").addChildNode(new c(e.ObjectLockEnabled)).withName("ObjectLockEnabled");n.addChildNode(r)}if(void 0!==e.Rule&&null!==e.Rule){r=Ao(e.Rule,t).withName("Rule");n.addChildNode(r)}return n},ko=function(e,t){var n=new s("ObjectLockLegalHold");if(void 0!==e.Status&&null!==e.Status){var r=new s("ObjectLockLegalHoldStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}return n},Co=function(e,t){var n=new s("ObjectLockRetention");if(void 0!==e.Mode&&null!==e.Mode){var r=new s("ObjectLockRetentionMode").addChildNode(new c(e.Mode)).withName("Mode");n.addChildNode(r)}if(void 0!==e.RetainUntilDate&&null!==e.RetainUntilDate){r=new s("Date").addChildNode(new c(e.RetainUntilDate.toISOString().split(".")[0]+"Z")).withName("RetainUntilDate");n.addChildNode(r)}return n},Ao=function(e,t){var n=new s("ObjectLockRule");if(void 0!==e.DefaultRetention&&null!==e.DefaultRetention){var r=function(e,t){var n=new s("DefaultRetention");if(void 0!==e.Mode&&null!==e.Mode){var r=new s("ObjectLockRetentionMode").addChildNode(new c(e.Mode)).withName("Mode");n.addChildNode(r)}if(void 0!==e.Days&&null!==e.Days){r=new s("Days").addChildNode(new c(String(e.Days))).withName("Days");n.addChildNode(r)}if(void 0!==e.Years&&null!==e.Years){r=new s("Years").addChildNode(new c(String(e.Years))).withName("Years");n.addChildNode(r)}return n}(e.DefaultRetention).withName("DefaultRetention");n.addChildNode(r)}return n},jo=function(e,t){var n=new s("OutputSerialization");if(void 0!==e.CSV&&null!==e.CSV){var r=function(e,t){var n=new s("CSVOutput");if(void 0!==e.QuoteFields&&null!==e.QuoteFields){var r=new s("QuoteFields").addChildNode(new c(e.QuoteFields)).withName("QuoteFields");n.addChildNode(r)}if(void 0!==e.QuoteEscapeCharacter&&null!==e.QuoteEscapeCharacter){r=new s("QuoteEscapeCharacter").addChildNode(new c(e.QuoteEscapeCharacter)).withName("QuoteEscapeCharacter");n.addChildNode(r)}if(void 0!==e.RecordDelimiter&&null!==e.RecordDelimiter){r=new s("RecordDelimiter").addChildNode(new c(e.RecordDelimiter)).withName("RecordDelimiter");n.addChildNode(r)}if(void 0!==e.FieldDelimiter&&null!==e.FieldDelimiter){r=new s("FieldDelimiter").addChildNode(new c(e.FieldDelimiter)).withName("FieldDelimiter");n.addChildNode(r)}if(void 0!==e.QuoteCharacter&&null!==e.QuoteCharacter){r=new s("QuoteCharacter").addChildNode(new c(e.QuoteCharacter)).withName("QuoteCharacter");n.addChildNode(r)}return n}(e.CSV).withName("CSV");n.addChildNode(r)}if(void 0!==e.JSON&&null!==e.JSON){r=function(e,t){var n=new s("JSONOutput");if(void 0!==e.RecordDelimiter&&null!==e.RecordDelimiter){var r=new s("RecordDelimiter").addChildNode(new c(e.RecordDelimiter)).withName("RecordDelimiter");n.addChildNode(r)}return n}(e.JSON).withName("JSON");n.addChildNode(r)}return n},To=function(e,t){var n=new s("Owner");if(void 0!==e.DisplayName&&null!==e.DisplayName){var r=new s("DisplayName").addChildNode(new c(e.DisplayName)).withName("DisplayName");n.addChildNode(r)}if(void 0!==e.ID&&null!==e.ID){r=new s("ID").addChildNode(new c(e.ID)).withName("ID");n.addChildNode(r)}return n},Po=function(e,t){var n=new s("OwnershipControls");void 0!==e.Rules&&null!==e.Rules&&Mo(e.Rules,t).map((function(e){e=e.withName("Rule"),n.addChildNode(e)}));return n},Mo=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("OwnershipControlsRule");if(void 0!==e.ObjectOwnership&&null!==e.ObjectOwnership){var r=new s("ObjectOwnership").addChildNode(new c(e.ObjectOwnership)).withName("ObjectOwnership");n.addChildNode(r)}return n}(e).withName("member")}))},No=function(e,t){return new s("ParquetInput")},Io=function(e,t){var n=new s("PublicAccessBlockConfiguration");if(void 0!==e.BlockPublicAcls&&null!==e.BlockPublicAcls){var r=new s("Setting").addChildNode(new c(String(e.BlockPublicAcls))).withName("BlockPublicAcls");n.addChildNode(r)}if(void 0!==e.IgnorePublicAcls&&null!==e.IgnorePublicAcls){r=new s("Setting").addChildNode(new c(String(e.IgnorePublicAcls))).withName("IgnorePublicAcls");n.addChildNode(r)}if(void 0!==e.BlockPublicPolicy&&null!==e.BlockPublicPolicy){r=new s("Setting").addChildNode(new c(String(e.BlockPublicPolicy))).withName("BlockPublicPolicy");n.addChildNode(r)}if(void 0!==e.RestrictPublicBuckets&&null!==e.RestrictPublicBuckets){r=new s("Setting").addChildNode(new c(String(e.RestrictPublicBuckets))).withName("RestrictPublicBuckets");n.addChildNode(r)}return n},Lo=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("QueueConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new s("NotificationId").addChildNode(new c(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.QueueArn&&null!==e.QueueArn){r=new s("QueueArn").addChildNode(new c(e.QueueArn)).withName("Queue");n.addChildNode(r)}void 0!==e.Events&&null!==e.Events&&Qi(e.Events).map((function(e){e=e.withName("Event"),n.addChildNode(e)}));if(void 0!==e.Filter&&null!==e.Filter){r=So(e.Filter,t).withName("Filter");n.addChildNode(r)}return n}(e,t).withName("member")}))},Ro=function(e,t){var n=new s("ReplicationConfiguration");if(void 0!==e.Role&&null!==e.Role){var r=new s("Role").addChildNode(new c(e.Role)).withName("Role");n.addChildNode(r)}void 0!==e.Rules&&null!==e.Rules&&Fo(e.Rules,t).map((function(e){e=e.withName("Rule"),n.addChildNode(e)}));return n},Do=function(e,t){var n=new s("ReplicationRule");if(void 0!==e.ID&&null!==e.ID){var r=new s("ID").addChildNode(new c(e.ID)).withName("ID");n.addChildNode(r)}if(void 0!==e.Priority&&null!==e.Priority){r=new s("Priority").addChildNode(new c(String(e.Priority))).withName("Priority");n.addChildNode(r)}if(void 0!==e.Prefix&&null!==e.Prefix){r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}if(void 0!==e.Filter&&null!==e.Filter){r=zo(e.Filter,t).withName("Filter");n.addChildNode(r)}if(void 0!==e.Status&&null!==e.Status){r=new s("ReplicationRuleStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}if(void 0!==e.SourceSelectionCriteria&&null!==e.SourceSelectionCriteria){r=Zo(e.SourceSelectionCriteria,t).withName("SourceSelectionCriteria");n.addChildNode(r)}if(void 0!==e.ExistingObjectReplication&&null!==e.ExistingObjectReplication){r=function(e,t){var n=new s("ExistingObjectReplication");if(void 0!==e.Status&&null!==e.Status){var r=new s("ExistingObjectReplicationStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}return n}(e.ExistingObjectReplication).withName("ExistingObjectReplication");n.addChildNode(r)}if(void 0!==e.Destination&&null!==e.Destination){r=Yi(e.Destination,t).withName("Destination");n.addChildNode(r)}if(void 0!==e.DeleteMarkerReplication&&null!==e.DeleteMarkerReplication){r=function(e,t){var n=new s("DeleteMarkerReplication");if(void 0!==e.Status&&null!==e.Status){var r=new s("DeleteMarkerReplicationStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}return n}(e.DeleteMarkerReplication).withName("DeleteMarkerReplication");n.addChildNode(r)}return n},zo=function(e,t){var n=new s("ReplicationRuleFilter");return f.re.visit(e,{Prefix:function(e){var t=new s("Prefix").addChildNode(new c(e)).withName("Prefix");n.addChildNode(t)},Tag:function(e){var r=oa(e,t).withName("Tag");n.addChildNode(r)},And:function(e){var r=function(e,t){var n=new s("ReplicationRuleAndOperator");if(void 0!==e.Prefix&&null!==e.Prefix){var r=new s("Prefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}void 0!==e.Tags&&null!==e.Tags&&sa(e.Tags,t).map((function(e){e=e.withName("Tag"),n.addChildNode(e)}));return n}(e,t).withName("And");n.addChildNode(r)},_:function(e,t){if(!(t instanceof s||t instanceof c))throw new Error("Unable to serialize unknown union members in XML.");n.addChildNode(new s(e).addChildNode(t))}}),n},Fo=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:Do(e,t).withName("member")}))},Bo=function(e,t){var n=new s("ReplicationTime");if(void 0!==e.Status&&null!==e.Status){var r=new s("ReplicationTimeStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}if(void 0!==e.Time&&null!==e.Time){r=Vo(e.Time,t).withName("Time");n.addChildNode(r)}return n},Vo=function(e,t){var n=new s("ReplicationTimeValue");if(void 0!==e.Minutes&&null!==e.Minutes){var r=new s("Minutes").addChildNode(new c(String(e.Minutes))).withName("Minutes");n.addChildNode(r)}return n},Uo=function(e,t){var n=new s("RequestPaymentConfiguration");if(void 0!==e.Payer&&null!==e.Payer){var r=new s("Payer").addChildNode(new c(e.Payer)).withName("Payer");n.addChildNode(r)}return n},Ho=function(e,t){var n=new s("RequestProgress");if(void 0!==e.Enabled&&null!==e.Enabled){var r=new s("EnableRequestProgress").addChildNode(new c(String(e.Enabled))).withName("Enabled");n.addChildNode(r)}return n},qo=function(e,t){var n=new s("RestoreRequest");if(void 0!==e.Days&&null!==e.Days){var r=new s("Days").addChildNode(new c(String(e.Days))).withName("Days");n.addChildNode(r)}if(void 0!==e.GlacierJobParameters&&null!==e.GlacierJobParameters){r=function(e,t){var n=new s("GlacierJobParameters");if(void 0!==e.Tier&&null!==e.Tier){var r=new s("Tier").addChildNode(new c(e.Tier)).withName("Tier");n.addChildNode(r)}return n}(e.GlacierJobParameters).withName("GlacierJobParameters");n.addChildNode(r)}if(void 0!==e.Type&&null!==e.Type){r=new s("RestoreRequestType").addChildNode(new c(e.Type)).withName("Type");n.addChildNode(r)}if(void 0!==e.Tier&&null!==e.Tier){r=new s("Tier").addChildNode(new c(e.Tier)).withName("Tier");n.addChildNode(r)}if(void 0!==e.Description&&null!==e.Description){r=new s("Description").addChildNode(new c(e.Description)).withName("Description");n.addChildNode(r)}if(void 0!==e.SelectParameters&&null!==e.SelectParameters){r=Xo(e.SelectParameters,t).withName("SelectParameters");n.addChildNode(r)}if(void 0!==e.OutputLocation&&null!==e.OutputLocation){r=function(e,t){var n=new s("OutputLocation");if(void 0!==e.S3&&null!==e.S3){var r=Ko(e.S3,t).withName("S3");n.addChildNode(r)}return n}(e.OutputLocation,t).withName("OutputLocation");n.addChildNode(r)}return n},Go=function(e,t){var n=new s("RoutingRule");if(void 0!==e.Condition&&null!==e.Condition){var r=function(e,t){var n=new s("Condition");if(void 0!==e.HttpErrorCodeReturnedEquals&&null!==e.HttpErrorCodeReturnedEquals){var r=new s("HttpErrorCodeReturnedEquals").addChildNode(new c(e.HttpErrorCodeReturnedEquals)).withName("HttpErrorCodeReturnedEquals");n.addChildNode(r)}if(void 0!==e.KeyPrefixEquals&&null!==e.KeyPrefixEquals){r=new s("KeyPrefixEquals").addChildNode(new c(e.KeyPrefixEquals)).withName("KeyPrefixEquals");n.addChildNode(r)}return n}(e.Condition).withName("Condition");n.addChildNode(r)}if(void 0!==e.Redirect&&null!==e.Redirect){r=function(e,t){var n=new s("Redirect");if(void 0!==e.HostName&&null!==e.HostName){var r=new s("HostName").addChildNode(new c(e.HostName)).withName("HostName");n.addChildNode(r)}if(void 0!==e.HttpRedirectCode&&null!==e.HttpRedirectCode){r=new s("HttpRedirectCode").addChildNode(new c(e.HttpRedirectCode)).withName("HttpRedirectCode");n.addChildNode(r)}if(void 0!==e.Protocol&&null!==e.Protocol){r=new s("Protocol").addChildNode(new c(e.Protocol)).withName("Protocol");n.addChildNode(r)}if(void 0!==e.ReplaceKeyPrefixWith&&null!==e.ReplaceKeyPrefixWith){r=new s("ReplaceKeyPrefixWith").addChildNode(new c(e.ReplaceKeyPrefixWith)).withName("ReplaceKeyPrefixWith");n.addChildNode(r)}if(void 0!==e.ReplaceKeyWith&&null!==e.ReplaceKeyWith){r=new s("ReplaceKeyWith").addChildNode(new c(e.ReplaceKeyWith)).withName("ReplaceKeyWith");n.addChildNode(r)}return n}(e.Redirect).withName("Redirect");n.addChildNode(r)}return n},Wo=function(e,t){var n=new s("S3KeyFilter");void 0!==e.FilterRules&&null!==e.FilterRules&&Ji(e.FilterRules).map((function(e){e=e.withName("FilterRule"),n.addChildNode(e)}));return n},Ko=function(e,t){var n=new s("S3Location");if(void 0!==e.BucketName&&null!==e.BucketName){var r=new s("BucketName").addChildNode(new c(e.BucketName)).withName("BucketName");n.addChildNode(r)}if(void 0!==e.Prefix&&null!==e.Prefix){r=new s("LocationPrefix").addChildNode(new c(e.Prefix)).withName("Prefix");n.addChildNode(r)}if(void 0!==e.Encryption&&null!==e.Encryption){r=function(e,t){var n=new s("Encryption");if(void 0!==e.EncryptionType&&null!==e.EncryptionType){var r=new s("ServerSideEncryption").addChildNode(new c(e.EncryptionType)).withName("EncryptionType");n.addChildNode(r)}if(void 0!==e.KMSKeyId&&null!==e.KMSKeyId){r=new s("SSEKMSKeyId").addChildNode(new c(e.KMSKeyId)).withName("KMSKeyId");n.addChildNode(r)}if(void 0!==e.KMSContext&&null!==e.KMSContext){r=new s("KMSContext").addChildNode(new c(e.KMSContext)).withName("KMSContext");n.addChildNode(r)}return n}(e.Encryption).withName("Encryption");n.addChildNode(r)}if(void 0!==e.CannedACL&&null!==e.CannedACL){r=new s("ObjectCannedACL").addChildNode(new c(e.CannedACL)).withName("CannedACL");n.addChildNode(r)}if(void 0!==e.AccessControlList&&null!==e.AccessControlList){var i=eo(e.AccessControlList,t),o=new s("AccessControlList");i.map((function(e){o.addChildNode(e)})),n.addChildNode(o)}if(void 0!==e.Tagging&&null!==e.Tagging){r=aa(e.Tagging,t).withName("Tagging");n.addChildNode(r)}if(void 0!==e.UserMetadata&&null!==e.UserMetadata){i=da(e.UserMetadata,t);var a=new s("UserMetadata");i.map((function(e){a.addChildNode(e)})),n.addChildNode(a)}if(void 0!==e.StorageClass&&null!==e.StorageClass){r=new s("StorageClass").addChildNode(new c(e.StorageClass)).withName("StorageClass");n.addChildNode(r)}return n},Yo=function(e,t){var n=new s("ScanRange");if(void 0!==e.Start&&null!==e.Start){var r=new s("Start").addChildNode(new c(String(e.Start))).withName("Start");n.addChildNode(r)}if(void 0!==e.End&&null!==e.End){r=new s("End").addChildNode(new c(String(e.End))).withName("End");n.addChildNode(r)}return n},Xo=function(e,t){var n=new s("SelectParameters");if(void 0!==e.InputSerialization&&null!==e.InputSerialization){var r=to(e.InputSerialization,t).withName("InputSerialization");n.addChildNode(r)}if(void 0!==e.ExpressionType&&null!==e.ExpressionType){r=new s("ExpressionType").addChildNode(new c(e.ExpressionType)).withName("ExpressionType");n.addChildNode(r)}if(void 0!==e.Expression&&null!==e.Expression){r=new s("Expression").addChildNode(new c(e.Expression)).withName("Expression");n.addChildNode(r)}if(void 0!==e.OutputSerialization&&null!==e.OutputSerialization){r=jo(e.OutputSerialization,t).withName("OutputSerialization");n.addChildNode(r)}return n},Qo=function(e,t){var n=new s("ServerSideEncryptionConfiguration");void 0!==e.Rules&&null!==e.Rules&&Jo(e.Rules,t).map((function(e){e=e.withName("Rule"),n.addChildNode(e)}));return n},$o=function(e,t){var n=new s("ServerSideEncryptionRule");if(void 0!==e.ApplyServerSideEncryptionByDefault&&null!==e.ApplyServerSideEncryptionByDefault){var r=function(e,t){var n=new s("ServerSideEncryptionByDefault");if(void 0!==e.SSEAlgorithm&&null!==e.SSEAlgorithm){var r=new s("ServerSideEncryption").addChildNode(new c(e.SSEAlgorithm)).withName("SSEAlgorithm");n.addChildNode(r)}if(void 0!==e.KMSMasterKeyID&&null!==e.KMSMasterKeyID){r=new s("SSEKMSKeyId").addChildNode(new c(e.KMSMasterKeyID)).withName("KMSMasterKeyID");n.addChildNode(r)}return n}(e.ApplyServerSideEncryptionByDefault).withName("ApplyServerSideEncryptionByDefault");n.addChildNode(r)}if(void 0!==e.BucketKeyEnabled&&null!==e.BucketKeyEnabled){r=new s("BucketKeyEnabled").addChildNode(new c(String(e.BucketKeyEnabled))).withName("BucketKeyEnabled");n.addChildNode(r)}return n},Jo=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:$o(e).withName("member")}))},Zo=function(e,t){var n=new s("SourceSelectionCriteria");if(void 0!==e.SseKmsEncryptedObjects&&null!==e.SseKmsEncryptedObjects){var r=ta(e.SseKmsEncryptedObjects,t).withName("SseKmsEncryptedObjects");n.addChildNode(r)}if(void 0!==e.ReplicaModifications&&null!==e.ReplicaModifications){r=function(e,t){var n=new s("ReplicaModifications");if(void 0!==e.Status&&null!==e.Status){var r=new s("ReplicaModificationsStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}return n}(e.ReplicaModifications).withName("ReplicaModifications");n.addChildNode(r)}return n},ea=function(e,t){var n=new s("SSE-KMS");if(void 0!==e.KeyId&&null!==e.KeyId){var r=new s("SSEKMSKeyId").addChildNode(new c(e.KeyId)).withName("KeyId");n.addChildNode(r)}return n},ta=function(e,t){var n=new s("SseKmsEncryptedObjects");if(void 0!==e.Status&&null!==e.Status){var r=new s("SseKmsEncryptedObjectsStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}return n},na=function(e,t){return new s("SSE-S3")},ra=function(e,t){var n=new s("StorageClassAnalysis");if(void 0!==e.DataExport&&null!==e.DataExport){var r=ia(e.DataExport,t).withName("DataExport");n.addChildNode(r)}return n},ia=function(e,t){var n=new s("StorageClassAnalysisDataExport");if(void 0!==e.OutputSchemaVersion&&null!==e.OutputSchemaVersion){var r=new s("StorageClassAnalysisSchemaVersion").addChildNode(new c(e.OutputSchemaVersion)).withName("OutputSchemaVersion");n.addChildNode(r)}if(void 0!==e.Destination&&null!==e.Destination){r=function(e,t){var n=new s("AnalyticsExportDestination");if(void 0!==e.S3BucketDestination&&null!==e.S3BucketDestination){var r=zi(e.S3BucketDestination,t).withName("S3BucketDestination");n.addChildNode(r)}return n}(e.Destination,t).withName("Destination");n.addChildNode(r)}return n},oa=function(e,t){var n=new s("Tag");if(void 0!==e.Key&&null!==e.Key){var r=new s("ObjectKey").addChildNode(new c(e.Key)).withName("Key");n.addChildNode(r)}if(void 0!==e.Value&&null!==e.Value){r=new s("Value").addChildNode(new c(e.Value)).withName("Value");n.addChildNode(r)}return n},aa=function(e,t){var n=new s("Tagging");if(void 0!==e.TagSet&&null!==e.TagSet){var r=sa(e.TagSet,t),i=new s("TagSet");r.map((function(e){i.addChildNode(e)})),n.addChildNode(i)}return n},sa=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:oa(e,t).withName("Tag")}))},ca=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("TargetGrant");void 0!==e.Grantee&&null!==e.Grantee&&((r=Zi(e.Grantee,t).withName("Grantee")).addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),n.addChildNode(r));if(void 0!==e.Permission&&null!==e.Permission){var r=new s("BucketLogsPermission").addChildNode(new c(e.Permission)).withName("Permission");n.addChildNode(r)}return n}(e,t).withName("Grant")}))},ua=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("Tiering");if(void 0!==e.Days&&null!==e.Days){var r=new s("IntelligentTieringDays").addChildNode(new c(String(e.Days))).withName("Days");n.addChildNode(r)}if(void 0!==e.AccessTier&&null!==e.AccessTier){r=new s("IntelligentTieringAccessTier").addChildNode(new c(e.AccessTier)).withName("AccessTier");n.addChildNode(r)}return n}(e).withName("member")}))},la=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("TopicConfiguration");if(void 0!==e.Id&&null!==e.Id){var r=new s("NotificationId").addChildNode(new c(e.Id)).withName("Id");n.addChildNode(r)}if(void 0!==e.TopicArn&&null!==e.TopicArn){r=new s("TopicArn").addChildNode(new c(e.TopicArn)).withName("Topic");n.addChildNode(r)}void 0!==e.Events&&null!==e.Events&&Qi(e.Events).map((function(e){e=e.withName("Event"),n.addChildNode(e)}));if(void 0!==e.Filter&&null!==e.Filter){r=So(e.Filter,t).withName("Filter");n.addChildNode(r)}return n}(e,t).withName("member")}))},fa=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("Transition");if(void 0!==e.Date&&null!==e.Date){var r=new s("Date").addChildNode(new c(e.Date.toISOString().split(".")[0]+"Z")).withName("Date");n.addChildNode(r)}if(void 0!==e.Days&&null!==e.Days){r=new s("Days").addChildNode(new c(String(e.Days))).withName("Days");n.addChildNode(r)}if(void 0!==e.StorageClass&&null!==e.StorageClass){r=new s("TransitionStorageClass").addChildNode(new c(e.StorageClass)).withName("StorageClass");n.addChildNode(r)}return n}(e).withName("member")}))},da=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new s("MetadataEntry");if(void 0!==e.Name&&null!==e.Name){var r=new s("MetadataKey").addChildNode(new c(e.Name)).withName("Name");n.addChildNode(r)}if(void 0!==e.Value&&null!==e.Value){r=new s("MetadataValue").addChildNode(new c(e.Value)).withName("Value");n.addChildNode(r)}return n}(e).withName("MetadataEntry")}))},ha=function(e,t){var n=new s("VersioningConfiguration");if(void 0!==e.MFADelete&&null!==e.MFADelete){var r=new s("MFADelete").addChildNode(new c(e.MFADelete)).withName("MfaDelete");n.addChildNode(r)}if(void 0!==e.Status&&null!==e.Status){r=new s("BucketVersioningStatus").addChildNode(new c(e.Status)).withName("Status");n.addChildNode(r)}return n},pa=function(e,t){var n=new s("WebsiteConfiguration");if(void 0!==e.ErrorDocument&&null!==e.ErrorDocument){var r=function(e,t){var n=new s("ErrorDocument");if(void 0!==e.Key&&null!==e.Key){var r=new s("ObjectKey").addChildNode(new c(e.Key)).withName("Key");n.addChildNode(r)}return n}(e.ErrorDocument).withName("ErrorDocument");n.addChildNode(r)}if(void 0!==e.IndexDocument&&null!==e.IndexDocument){r=function(e,t){var n=new s("IndexDocument");if(void 0!==e.Suffix&&null!==e.Suffix){var r=new s("Suffix").addChildNode(new c(e.Suffix)).withName("Suffix");n.addChildNode(r)}return n}(e.IndexDocument).withName("IndexDocument");n.addChildNode(r)}if(void 0!==e.RedirectAllRequestsTo&&null!==e.RedirectAllRequestsTo){r=function(e,t){var n=new s("RedirectAllRequestsTo");if(void 0!==e.HostName&&null!==e.HostName){var r=new s("HostName").addChildNode(new c(e.HostName)).withName("HostName");n.addChildNode(r)}if(void 0!==e.Protocol&&null!==e.Protocol){r=new s("Protocol").addChildNode(new c(e.Protocol)).withName("Protocol");n.addChildNode(r)}return n}(e.RedirectAllRequestsTo).withName("RedirectAllRequestsTo");n.addChildNode(r)}if(void 0!==e.RoutingRules&&null!==e.RoutingRules){var i=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:Go(e).withName("RoutingRule")}))}(e.RoutingRules),o=new s("RoutingRules");i.map((function(e){o.addChildNode(e)})),n.addChildNode(o)}return n},va=function(e,t){var n={Prefix:void 0,Tags:void 0};return void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),""===e.Tag&&(n.Tags=[]),void 0!==e.Tag&&(n.Tags=Gs(Object(o.j)(e.Tag),t)),n},ga=function(e,t){var n={Id:void 0,Filter:void 0,StorageClassAnalysis:void 0};return void 0!==e.Id&&(n.Id=Object(o.g)(e.Id)),void 0!==e.Filter&&(n.Filter=ya(Object(o.h)(e.Filter),t)),void 0!==e.StorageClassAnalysis&&(n.StorageClassAnalysis=Us(e.StorageClassAnalysis,t)),n},ma=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:ga(e,t)}))},ya=function(e,t){return void 0!==e.Prefix?{Prefix:Object(o.g)(e.Prefix)}:void 0!==e.Tag?{Tag:qs(e.Tag,t)}:void 0!==e.And?{And:va(e.And,t)}:{$unknown:Object.entries(e)[0]}},ba=function(e,t){var n={Format:void 0,BucketAccountId:void 0,Bucket:void 0,Prefix:void 0};return void 0!==e.Format&&(n.Format=Object(o.g)(e.Format)),void 0!==e.BucketAccountId&&(n.BucketAccountId=Object(o.g)(e.BucketAccountId)),void 0!==e.Bucket&&(n.Bucket=Object(o.g)(e.Bucket)),void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),n},wa=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Name:void 0,CreationDate:void 0};return void 0!==e.Name&&(n.Name=Object(o.g)(e.Name)),void 0!==e.CreationDate&&(n.CreationDate=Object(o.e)(Object(o.m)(e.CreationDate))),n}(e)}))},xa=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Prefix:void 0};return void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),n}(e)}))},Oa=function(e,t){var n={ETag:void 0,LastModified:void 0};return void 0!==e.ETag&&(n.ETag=Object(o.g)(e.ETag)),void 0!==e.LastModified&&(n.LastModified=Object(o.e)(Object(o.m)(e.LastModified))),n},Sa=function(e,t){var n={ETag:void 0,LastModified:void 0};return void 0!==e.ETag&&(n.ETag=Object(o.g)(e.ETag)),void 0!==e.LastModified&&(n.LastModified=Object(o.e)(Object(o.m)(e.LastModified))),n},_a=function(e,t){var n={ID:void 0,AllowedHeaders:void 0,AllowedMethods:void 0,AllowedOrigins:void 0,ExposeHeaders:void 0,MaxAgeSeconds:void 0};return void 0!==e.ID&&(n.ID=Object(o.g)(e.ID)),""===e.AllowedHeader&&(n.AllowedHeaders=[]),void 0!==e.AllowedHeader&&(n.AllowedHeaders=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Object(o.g)(e)}))}(Object(o.j)(e.AllowedHeader))),""===e.AllowedMethod&&(n.AllowedMethods=[]),void 0!==e.AllowedMethod&&(n.AllowedMethods=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Object(o.g)(e)}))}(Object(o.j)(e.AllowedMethod))),""===e.AllowedOrigin&&(n.AllowedOrigins=[]),void 0!==e.AllowedOrigin&&(n.AllowedOrigins=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Object(o.g)(e)}))}(Object(o.j)(e.AllowedOrigin))),""===e.ExposeHeader&&(n.ExposeHeaders=[]),void 0!==e.ExposeHeader&&(n.ExposeHeaders=Ia(Object(o.j)(e.ExposeHeader),t)),void 0!==e.MaxAgeSeconds&&(n.MaxAgeSeconds=Object(o.o)(e.MaxAgeSeconds)),n},Ea=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:_a(e,t)}))},ka=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Key:void 0,VersionId:void 0,DeleteMarker:void 0,DeleteMarkerVersionId:void 0};return void 0!==e.Key&&(n.Key=Object(o.g)(e.Key)),void 0!==e.VersionId&&(n.VersionId=Object(o.g)(e.VersionId)),void 0!==e.DeleteMarker&&(n.DeleteMarker=Object(o.l)(e.DeleteMarker)),void 0!==e.DeleteMarkerVersionId&&(n.DeleteMarkerVersionId=Object(o.g)(e.DeleteMarkerVersionId)),n}(e)}))},Ca=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Owner:void 0,Key:void 0,VersionId:void 0,IsLatest:void 0,LastModified:void 0};return void 0!==e.Owner&&(n.Owner=ms(e.Owner,t)),void 0!==e.Key&&(n.Key=Object(o.g)(e.Key)),void 0!==e.VersionId&&(n.VersionId=Object(o.g)(e.VersionId)),void 0!==e.IsLatest&&(n.IsLatest=Object(o.l)(e.IsLatest)),void 0!==e.LastModified&&(n.LastModified=Object(o.e)(Object(o.m)(e.LastModified))),n}(e,t)}))},Aa=function(e,t){var n={Bucket:void 0,Account:void 0,StorageClass:void 0,AccessControlTranslation:void 0,EncryptionConfiguration:void 0,ReplicationTime:void 0,Metrics:void 0};return void 0!==e.Bucket&&(n.Bucket=Object(o.g)(e.Bucket)),void 0!==e.Account&&(n.Account=Object(o.g)(e.Account)),void 0!==e.StorageClass&&(n.StorageClass=Object(o.g)(e.StorageClass)),void 0!==e.AccessControlTranslation&&(n.AccessControlTranslation=function(e,t){var n={Owner:void 0};return void 0!==e.Owner&&(n.Owner=Object(o.g)(e.Owner)),n}(e.AccessControlTranslation)),void 0!==e.EncryptionConfiguration&&(n.EncryptionConfiguration=ja(e.EncryptionConfiguration,t)),void 0!==e.ReplicationTime&&(n.ReplicationTime=Ts(e.ReplicationTime,t)),void 0!==e.Metrics&&(n.Metrics=ns(e.Metrics,t)),n},ja=function(e,t){var n={ReplicaKmsKeyID:void 0};return void 0!==e.ReplicaKmsKeyID&&(n.ReplicaKmsKeyID=Object(o.g)(e.ReplicaKmsKeyID)),n},Ta=function(e,t){var n={Key:void 0};return void 0!==e.Key&&(n.Key=Object(o.g)(e.Key)),n},Pa=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Key:void 0,VersionId:void 0,Code:void 0,Message:void 0};return void 0!==e.Key&&(n.Key=Object(o.g)(e.Key)),void 0!==e.VersionId&&(n.VersionId=Object(o.g)(e.VersionId)),void 0!==e.Code&&(n.Code=Object(o.g)(e.Code)),void 0!==e.Message&&(n.Message=Object(o.g)(e.Message)),n}(e)}))},Ma=function(e,t){return{}},Na=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Object(o.g)(e)}))},Ia=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Object(o.g)(e)}))},La=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Name:void 0,Value:void 0};return void 0!==e.Name&&(n.Name=Object(o.g)(e.Name)),void 0!==e.Value&&(n.Value=Object(o.g)(e.Value)),n}(e)}))},Ra=function(e,t){var n={DisplayName:void 0,EmailAddress:void 0,ID:void 0,URI:void 0,Type:void 0};return void 0!==e.DisplayName&&(n.DisplayName=Object(o.g)(e.DisplayName)),void 0!==e.EmailAddress&&(n.EmailAddress=Object(o.g)(e.EmailAddress)),void 0!==e.ID&&(n.ID=Object(o.g)(e.ID)),void 0!==e.URI&&(n.URI=Object(o.g)(e.URI)),void 0!==e["xsi:type"]&&(n.Type=Object(o.g)(e["xsi:type"])),n},Da=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Grantee:void 0,Permission:void 0};return void 0!==e.Grantee&&(n.Grantee=Ra(e.Grantee,t)),void 0!==e.Permission&&(n.Permission=Object(o.g)(e.Permission)),n}(e,t)}))},za=function(e,t){var n={Suffix:void 0};return void 0!==e.Suffix&&(n.Suffix=Object(o.g)(e.Suffix)),n},Fa=function(e,t){var n={ID:void 0,DisplayName:void 0};return void 0!==e.ID&&(n.ID=Object(o.g)(e.ID)),void 0!==e.DisplayName&&(n.DisplayName=Object(o.g)(e.DisplayName)),n},Ba=function(e,t){var n={Id:void 0,Filter:void 0,Status:void 0,Tierings:void 0};return void 0!==e.Id&&(n.Id=Object(o.g)(e.Id)),void 0!==e.Filter&&(n.Filter=Ua(e.Filter,t)),void 0!==e.Status&&(n.Status=Object(o.g)(e.Status)),""===e.Tiering&&(n.Tierings=[]),void 0!==e.Tiering&&(n.Tierings=Ks(Object(o.j)(e.Tiering),t)),n},Va=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Ba(e,t)}))},Ua=function(e,t){var n={Prefix:void 0,Tag:void 0,And:void 0};return void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),void 0!==e.Tag&&(n.Tag=qs(e.Tag,t)),void 0!==e.And&&(n.And=function(e,t){var n={Prefix:void 0,Tags:void 0};return void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),""===e.Tag&&(n.Tags=[]),void 0!==e.Tag&&(n.Tags=Gs(Object(o.j)(e.Tag),t)),n}(e.And,t)),n},Ha=function(e,t){var n={Destination:void 0,IsEnabled:void 0,Filter:void 0,Id:void 0,IncludedObjectVersions:void 0,OptionalFields:void 0,Schedule:void 0};return void 0!==e.Destination&&(n.Destination=Ga(e.Destination,t)),void 0!==e.IsEnabled&&(n.IsEnabled=Object(o.l)(e.IsEnabled)),void 0!==e.Filter&&(n.Filter=Wa(e.Filter,t)),void 0!==e.Id&&(n.Id=Object(o.g)(e.Id)),void 0!==e.IncludedObjectVersions&&(n.IncludedObjectVersions=Object(o.g)(e.IncludedObjectVersions)),""===e.OptionalFields&&(n.OptionalFields=[]),void 0!==e.OptionalFields&&void 0!==e.OptionalFields.Field&&(n.OptionalFields=Ka(Object(o.j)(e.OptionalFields.Field),t)),void 0!==e.Schedule&&(n.Schedule=Xa(e.Schedule,t)),n},qa=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Ha(e,t)}))},Ga=function(e,t){var n={S3BucketDestination:void 0};return void 0!==e.S3BucketDestination&&(n.S3BucketDestination=Ya(e.S3BucketDestination,t)),n},Wa=function(e,t){var n={Prefix:void 0};return void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),n},Ka=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Object(o.g)(e)}))},Ya=function(e,t){var n={AccountId:void 0,Bucket:void 0,Format:void 0,Prefix:void 0,Encryption:void 0};return void 0!==e.AccountId&&(n.AccountId=Object(o.g)(e.AccountId)),void 0!==e.Bucket&&(n.Bucket=Object(o.g)(e.Bucket)),void 0!==e.Format&&(n.Format=Object(o.g)(e.Format)),void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),void 0!==e.Encryption&&(n.Encryption=function(e,t){var n={SSES3:void 0,SSEKMS:void 0};return void 0!==e["SSE-S3"]&&(n.SSES3=Vs(e["SSE-S3"],t)),void 0!==e["SSE-KMS"]&&(n.SSEKMS=Fs(e["SSE-KMS"],t)),n}(e.Encryption,t)),n},Xa=function(e,t){var n={Frequency:void 0};return void 0!==e.Frequency&&(n.Frequency=Object(o.g)(e.Frequency)),n},Qa=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Id:void 0,LambdaFunctionArn:void 0,Events:void 0,Filter:void 0};return void 0!==e.Id&&(n.Id=Object(o.g)(e.Id)),void 0!==e.CloudFunction&&(n.LambdaFunctionArn=Object(o.g)(e.CloudFunction)),""===e.Event&&(n.Events=[]),void 0!==e.Event&&(n.Events=Na(Object(o.j)(e.Event))),void 0!==e.Filter&&(n.Filter=ls(e.Filter,t)),n}(e,t)}))},$a=function(e,t){var n={Expiration:void 0,ID:void 0,Prefix:void 0,Filter:void 0,Status:void 0,Transitions:void 0,NoncurrentVersionTransitions:void 0,NoncurrentVersionExpiration:void 0,AbortIncompleteMultipartUpload:void 0};return void 0!==e.Expiration&&(n.Expiration=function(e,t){var n={Date:void 0,Days:void 0,ExpiredObjectDeleteMarker:void 0};return void 0!==e.Date&&(n.Date=Object(o.e)(Object(o.m)(e.Date))),void 0!==e.Days&&(n.Days=Object(o.o)(e.Days)),void 0!==e.ExpiredObjectDeleteMarker&&(n.ExpiredObjectDeleteMarker=Object(o.l)(e.ExpiredObjectDeleteMarker)),n}(e.Expiration)),void 0!==e.ID&&(n.ID=Object(o.g)(e.ID)),void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),void 0!==e.Filter&&(n.Filter=Za(Object(o.h)(e.Filter),t)),void 0!==e.Status&&(n.Status=Object(o.g)(e.Status)),""===e.Transition&&(n.Transitions=[]),void 0!==e.Transition&&(n.Transitions=Xs(Object(o.j)(e.Transition),t)),""===e.NoncurrentVersionTransition&&(n.NoncurrentVersionTransitions=[]),void 0!==e.NoncurrentVersionTransition&&(n.NoncurrentVersionTransitions=us(Object(o.j)(e.NoncurrentVersionTransition),t)),void 0!==e.NoncurrentVersionExpiration&&(n.NoncurrentVersionExpiration=cs(e.NoncurrentVersionExpiration,t)),void 0!==e.AbortIncompleteMultipartUpload&&(n.AbortIncompleteMultipartUpload=function(e,t){var n={DaysAfterInitiation:void 0};return void 0!==e.DaysAfterInitiation&&(n.DaysAfterInitiation=Object(o.o)(e.DaysAfterInitiation)),n}(e.AbortIncompleteMultipartUpload)),n},Ja=function(e,t){var n={Prefix:void 0,Tags:void 0,ObjectSizeGreaterThan:void 0,ObjectSizeLessThan:void 0};return void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),""===e.Tag&&(n.Tags=[]),void 0!==e.Tag&&(n.Tags=Gs(Object(o.j)(e.Tag),t)),void 0!==e.ObjectSizeGreaterThan&&(n.ObjectSizeGreaterThan=Object(o.p)(e.ObjectSizeGreaterThan)),void 0!==e.ObjectSizeLessThan&&(n.ObjectSizeLessThan=Object(o.p)(e.ObjectSizeLessThan)),n},Za=function(e,t){return void 0!==e.Prefix?{Prefix:Object(o.g)(e.Prefix)}:void 0!==e.Tag?{Tag:qs(e.Tag,t)}:void 0!==e.ObjectSizeGreaterThan?{ObjectSizeGreaterThan:Object(o.p)(e.ObjectSizeGreaterThan)}:void 0!==e.ObjectSizeLessThan?{ObjectSizeLessThan:Object(o.p)(e.ObjectSizeLessThan)}:void 0!==e.And?{And:Ja(e.And,t)}:{$unknown:Object.entries(e)[0]}},es=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:$a(e,t)}))},ts=function(e,t){var n={TargetBucket:void 0,TargetGrants:void 0,TargetPrefix:void 0};return void 0!==e.TargetBucket&&(n.TargetBucket=Object(o.g)(e.TargetBucket)),""===e.TargetGrants&&(n.TargetGrants=[]),void 0!==e.TargetGrants&&void 0!==e.TargetGrants.Grant&&(n.TargetGrants=Ws(Object(o.j)(e.TargetGrants.Grant),t)),void 0!==e.TargetPrefix&&(n.TargetPrefix=Object(o.g)(e.TargetPrefix)),n},ns=function(e,t){var n={Status:void 0,EventThreshold:void 0};return void 0!==e.Status&&(n.Status=Object(o.g)(e.Status)),void 0!==e.EventThreshold&&(n.EventThreshold=Ps(e.EventThreshold,t)),n},rs=function(e,t){var n={Prefix:void 0,Tags:void 0,AccessPointArn:void 0};return void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),""===e.Tag&&(n.Tags=[]),void 0!==e.Tag&&(n.Tags=Gs(Object(o.j)(e.Tag),t)),void 0!==e.AccessPointArn&&(n.AccessPointArn=Object(o.g)(e.AccessPointArn)),n},is=function(e,t){var n={Id:void 0,Filter:void 0};return void 0!==e.Id&&(n.Id=Object(o.g)(e.Id)),void 0!==e.Filter&&(n.Filter=as(Object(o.h)(e.Filter),t)),n},os=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:is(e,t)}))},as=function(e,t){return void 0!==e.Prefix?{Prefix:Object(o.g)(e.Prefix)}:void 0!==e.Tag?{Tag:qs(e.Tag,t)}:void 0!==e.AccessPointArn?{AccessPointArn:Object(o.g)(e.AccessPointArn)}:void 0!==e.And?{And:rs(e.And,t)}:{$unknown:Object.entries(e)[0]}},ss=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={UploadId:void 0,Key:void 0,Initiated:void 0,StorageClass:void 0,Owner:void 0,Initiator:void 0};return void 0!==e.UploadId&&(n.UploadId=Object(o.g)(e.UploadId)),void 0!==e.Key&&(n.Key=Object(o.g)(e.Key)),void 0!==e.Initiated&&(n.Initiated=Object(o.e)(Object(o.m)(e.Initiated))),void 0!==e.StorageClass&&(n.StorageClass=Object(o.g)(e.StorageClass)),void 0!==e.Owner&&(n.Owner=ms(e.Owner,t)),void 0!==e.Initiator&&(n.Initiator=Fa(e.Initiator,t)),n}(e,t)}))},cs=function(e,t){var n={NoncurrentDays:void 0,NewerNoncurrentVersions:void 0};return void 0!==e.NoncurrentDays&&(n.NoncurrentDays=Object(o.o)(e.NoncurrentDays)),void 0!==e.NewerNoncurrentVersions&&(n.NewerNoncurrentVersions=Object(o.o)(e.NewerNoncurrentVersions)),n},us=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={NoncurrentDays:void 0,StorageClass:void 0,NewerNoncurrentVersions:void 0};return void 0!==e.NoncurrentDays&&(n.NoncurrentDays=Object(o.o)(e.NoncurrentDays)),void 0!==e.StorageClass&&(n.StorageClass=Object(o.g)(e.StorageClass)),void 0!==e.NewerNoncurrentVersions&&(n.NewerNoncurrentVersions=Object(o.o)(e.NewerNoncurrentVersions)),n}(e)}))},ls=function(e,t){var n={Key:void 0};return void 0!==e.S3Key&&(n.Key=Is(e.S3Key,t)),n},fs=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Key:void 0,LastModified:void 0,ETag:void 0,Size:void 0,StorageClass:void 0,Owner:void 0};return void 0!==e.Key&&(n.Key=Object(o.g)(e.Key)),void 0!==e.LastModified&&(n.LastModified=Object(o.e)(Object(o.m)(e.LastModified))),void 0!==e.ETag&&(n.ETag=Object(o.g)(e.ETag)),void 0!==e.Size&&(n.Size=Object(o.p)(e.Size)),void 0!==e.StorageClass&&(n.StorageClass=Object(o.g)(e.StorageClass)),void 0!==e.Owner&&(n.Owner=ms(e.Owner,t)),n}(e,t)}))},ds=function(e,t){var n={ObjectLockEnabled:void 0,Rule:void 0};return void 0!==e.ObjectLockEnabled&&(n.ObjectLockEnabled=Object(o.g)(e.ObjectLockEnabled)),void 0!==e.Rule&&(n.Rule=vs(e.Rule,t)),n},hs=function(e,t){var n={Status:void 0};return void 0!==e.Status&&(n.Status=Object(o.g)(e.Status)),n},ps=function(e,t){var n={Mode:void 0,RetainUntilDate:void 0};return void 0!==e.Mode&&(n.Mode=Object(o.g)(e.Mode)),void 0!==e.RetainUntilDate&&(n.RetainUntilDate=Object(o.e)(Object(o.m)(e.RetainUntilDate))),n},vs=function(e,t){var n={DefaultRetention:void 0};return void 0!==e.DefaultRetention&&(n.DefaultRetention=function(e,t){var n={Mode:void 0,Days:void 0,Years:void 0};return void 0!==e.Mode&&(n.Mode=Object(o.g)(e.Mode)),void 0!==e.Days&&(n.Days=Object(o.o)(e.Days)),void 0!==e.Years&&(n.Years=Object(o.o)(e.Years)),n}(e.DefaultRetention)),n},gs=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={ETag:void 0,Size:void 0,StorageClass:void 0,Key:void 0,VersionId:void 0,IsLatest:void 0,LastModified:void 0,Owner:void 0};return void 0!==e.ETag&&(n.ETag=Object(o.g)(e.ETag)),void 0!==e.Size&&(n.Size=Object(o.p)(e.Size)),void 0!==e.StorageClass&&(n.StorageClass=Object(o.g)(e.StorageClass)),void 0!==e.Key&&(n.Key=Object(o.g)(e.Key)),void 0!==e.VersionId&&(n.VersionId=Object(o.g)(e.VersionId)),void 0!==e.IsLatest&&(n.IsLatest=Object(o.l)(e.IsLatest)),void 0!==e.LastModified&&(n.LastModified=Object(o.e)(Object(o.m)(e.LastModified))),void 0!==e.Owner&&(n.Owner=ms(e.Owner,t)),n}(e,t)}))},ms=function(e,t){var n={DisplayName:void 0,ID:void 0};return void 0!==e.DisplayName&&(n.DisplayName=Object(o.g)(e.DisplayName)),void 0!==e.ID&&(n.ID=Object(o.g)(e.ID)),n},ys=function(e,t){var n={Rules:void 0};return""===e.Rule&&(n.Rules=[]),void 0!==e.Rule&&(n.Rules=bs(Object(o.j)(e.Rule),t)),n},bs=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={ObjectOwnership:void 0};return void 0!==e.ObjectOwnership&&(n.ObjectOwnership=Object(o.g)(e.ObjectOwnership)),n}(e)}))},ws=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={PartNumber:void 0,LastModified:void 0,ETag:void 0,Size:void 0};return void 0!==e.PartNumber&&(n.PartNumber=Object(o.o)(e.PartNumber)),void 0!==e.LastModified&&(n.LastModified=Object(o.e)(Object(o.m)(e.LastModified))),void 0!==e.ETag&&(n.ETag=Object(o.g)(e.ETag)),void 0!==e.Size&&(n.Size=Object(o.p)(e.Size)),n}(e)}))},xs=function(e,t){var n={IsPublic:void 0};return void 0!==e.IsPublic&&(n.IsPublic=Object(o.l)(e.IsPublic)),n},Os=function(e,t){var n={BlockPublicAcls:void 0,IgnorePublicAcls:void 0,BlockPublicPolicy:void 0,RestrictPublicBuckets:void 0};return void 0!==e.BlockPublicAcls&&(n.BlockPublicAcls=Object(o.l)(e.BlockPublicAcls)),void 0!==e.IgnorePublicAcls&&(n.IgnorePublicAcls=Object(o.l)(e.IgnorePublicAcls)),void 0!==e.BlockPublicPolicy&&(n.BlockPublicPolicy=Object(o.l)(e.BlockPublicPolicy)),void 0!==e.RestrictPublicBuckets&&(n.RestrictPublicBuckets=Object(o.l)(e.RestrictPublicBuckets)),n},Ss=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Id:void 0,QueueArn:void 0,Events:void 0,Filter:void 0};return void 0!==e.Id&&(n.Id=Object(o.g)(e.Id)),void 0!==e.Queue&&(n.QueueArn=Object(o.g)(e.Queue)),""===e.Event&&(n.Events=[]),void 0!==e.Event&&(n.Events=Na(Object(o.j)(e.Event))),void 0!==e.Filter&&(n.Filter=ls(e.Filter,t)),n}(e,t)}))},_s=function(e,t){var n={HostName:void 0,Protocol:void 0};return void 0!==e.HostName&&(n.HostName=Object(o.g)(e.HostName)),void 0!==e.Protocol&&(n.Protocol=Object(o.g)(e.Protocol)),n},Es=function(e,t){var n={Role:void 0,Rules:void 0};return void 0!==e.Role&&(n.Role=Object(o.g)(e.Role)),""===e.Rule&&(n.Rules=[]),void 0!==e.Rule&&(n.Rules=js(Object(o.j)(e.Rule),t)),n},ks=function(e,t){var n={ID:void 0,Priority:void 0,Prefix:void 0,Filter:void 0,Status:void 0,SourceSelectionCriteria:void 0,ExistingObjectReplication:void 0,Destination:void 0,DeleteMarkerReplication:void 0};return void 0!==e.ID&&(n.ID=Object(o.g)(e.ID)),void 0!==e.Priority&&(n.Priority=Object(o.o)(e.Priority)),void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),void 0!==e.Filter&&(n.Filter=As(Object(o.h)(e.Filter),t)),void 0!==e.Status&&(n.Status=Object(o.g)(e.Status)),void 0!==e.SourceSelectionCriteria&&(n.SourceSelectionCriteria=zs(e.SourceSelectionCriteria,t)),void 0!==e.ExistingObjectReplication&&(n.ExistingObjectReplication=function(e,t){var n={Status:void 0};return void 0!==e.Status&&(n.Status=Object(o.g)(e.Status)),n}(e.ExistingObjectReplication)),void 0!==e.Destination&&(n.Destination=Aa(e.Destination,t)),void 0!==e.DeleteMarkerReplication&&(n.DeleteMarkerReplication=function(e,t){var n={Status:void 0};return void 0!==e.Status&&(n.Status=Object(o.g)(e.Status)),n}(e.DeleteMarkerReplication)),n},Cs=function(e,t){var n={Prefix:void 0,Tags:void 0};return void 0!==e.Prefix&&(n.Prefix=Object(o.g)(e.Prefix)),""===e.Tag&&(n.Tags=[]),void 0!==e.Tag&&(n.Tags=Gs(Object(o.j)(e.Tag),t)),n},As=function(e,t){return void 0!==e.Prefix?{Prefix:Object(o.g)(e.Prefix)}:void 0!==e.Tag?{Tag:qs(e.Tag,t)}:void 0!==e.And?{And:Cs(e.And,t)}:{$unknown:Object.entries(e)[0]}},js=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:ks(e,t)}))},Ts=function(e,t){var n={Status:void 0,Time:void 0};return void 0!==e.Status&&(n.Status=Object(o.g)(e.Status)),void 0!==e.Time&&(n.Time=Ps(e.Time,t)),n},Ps=function(e,t){var n={Minutes:void 0};return void 0!==e.Minutes&&(n.Minutes=Object(o.o)(e.Minutes)),n},Ms=function(e,t){var n={Condition:void 0,Redirect:void 0};return void 0!==e.Condition&&(n.Condition=function(e,t){var n={HttpErrorCodeReturnedEquals:void 0,KeyPrefixEquals:void 0};return void 0!==e.HttpErrorCodeReturnedEquals&&(n.HttpErrorCodeReturnedEquals=Object(o.g)(e.HttpErrorCodeReturnedEquals)),void 0!==e.KeyPrefixEquals&&(n.KeyPrefixEquals=Object(o.g)(e.KeyPrefixEquals)),n}(e.Condition)),void 0!==e.Redirect&&(n.Redirect=function(e,t){var n={HostName:void 0,HttpRedirectCode:void 0,Protocol:void 0,ReplaceKeyPrefixWith:void 0,ReplaceKeyWith:void 0};return void 0!==e.HostName&&(n.HostName=Object(o.g)(e.HostName)),void 0!==e.HttpRedirectCode&&(n.HttpRedirectCode=Object(o.g)(e.HttpRedirectCode)),void 0!==e.Protocol&&(n.Protocol=Object(o.g)(e.Protocol)),void 0!==e.ReplaceKeyPrefixWith&&(n.ReplaceKeyPrefixWith=Object(o.g)(e.ReplaceKeyPrefixWith)),void 0!==e.ReplaceKeyWith&&(n.ReplaceKeyWith=Object(o.g)(e.ReplaceKeyWith)),n}(e.Redirect)),n},Ns=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Ms(e)}))},Is=function(e,t){var n={FilterRules:void 0};return""===e.FilterRule&&(n.FilterRules=[]),void 0!==e.FilterRule&&(n.FilterRules=La(Object(o.j)(e.FilterRule))),n},Ls=function(e,t){var n={Rules:void 0};return""===e.Rule&&(n.Rules=[]),void 0!==e.Rule&&(n.Rules=Ds(Object(o.j)(e.Rule),t)),n},Rs=function(e,t){var n={ApplyServerSideEncryptionByDefault:void 0,BucketKeyEnabled:void 0};return void 0!==e.ApplyServerSideEncryptionByDefault&&(n.ApplyServerSideEncryptionByDefault=function(e,t){var n={SSEAlgorithm:void 0,KMSMasterKeyID:void 0};return void 0!==e.SSEAlgorithm&&(n.SSEAlgorithm=Object(o.g)(e.SSEAlgorithm)),void 0!==e.KMSMasterKeyID&&(n.KMSMasterKeyID=Object(o.g)(e.KMSMasterKeyID)),n}(e.ApplyServerSideEncryptionByDefault)),void 0!==e.BucketKeyEnabled&&(n.BucketKeyEnabled=Object(o.l)(e.BucketKeyEnabled)),n},Ds=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Rs(e)}))},zs=function(e,t){var n={SseKmsEncryptedObjects:void 0,ReplicaModifications:void 0};return void 0!==e.SseKmsEncryptedObjects&&(n.SseKmsEncryptedObjects=Bs(e.SseKmsEncryptedObjects,t)),void 0!==e.ReplicaModifications&&(n.ReplicaModifications=function(e,t){var n={Status:void 0};return void 0!==e.Status&&(n.Status=Object(o.g)(e.Status)),n}(e.ReplicaModifications)),n},Fs=function(e,t){var n={KeyId:void 0};return void 0!==e.KeyId&&(n.KeyId=Object(o.g)(e.KeyId)),n},Bs=function(e,t){var n={Status:void 0};return void 0!==e.Status&&(n.Status=Object(o.g)(e.Status)),n},Vs=function(e,t){return{}},Us=function(e,t){var n={DataExport:void 0};return void 0!==e.DataExport&&(n.DataExport=Hs(e.DataExport,t)),n},Hs=function(e,t){var n={OutputSchemaVersion:void 0,Destination:void 0};return void 0!==e.OutputSchemaVersion&&(n.OutputSchemaVersion=Object(o.g)(e.OutputSchemaVersion)),void 0!==e.Destination&&(n.Destination=function(e,t){var n={S3BucketDestination:void 0};return void 0!==e.S3BucketDestination&&(n.S3BucketDestination=ba(e.S3BucketDestination,t)),n}(e.Destination,t)),n},qs=function(e,t){var n={Key:void 0,Value:void 0};return void 0!==e.Key&&(n.Key=Object(o.g)(e.Key)),void 0!==e.Value&&(n.Value=Object(o.g)(e.Value)),n},Gs=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:qs(e,t)}))},Ws=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Grantee:void 0,Permission:void 0};return void 0!==e.Grantee&&(n.Grantee=Ra(e.Grantee,t)),void 0!==e.Permission&&(n.Permission=Object(o.g)(e.Permission)),n}(e,t)}))},Ks=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Days:void 0,AccessTier:void 0};return void 0!==e.Days&&(n.Days=Object(o.o)(e.Days)),void 0!==e.AccessTier&&(n.AccessTier=Object(o.g)(e.AccessTier)),n}(e)}))},Ys=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Id:void 0,TopicArn:void 0,Events:void 0,Filter:void 0};return void 0!==e.Id&&(n.Id=Object(o.g)(e.Id)),void 0!==e.Topic&&(n.TopicArn=Object(o.g)(e.Topic)),""===e.Event&&(n.Events=[]),void 0!==e.Event&&(n.Events=Na(Object(o.j)(e.Event))),void 0!==e.Filter&&(n.Filter=ls(e.Filter,t)),n}(e,t)}))},Xs=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Date:void 0,Days:void 0,StorageClass:void 0};return void 0!==e.Date&&(n.Date=Object(o.e)(Object(o.m)(e.Date))),void 0!==e.Days&&(n.Days=Object(o.o)(e.Days)),void 0!==e.StorageClass&&(n.StorageClass=Object(o.g)(e.StorageClass)),n}(e)}))},Qs=function(e){var t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},$s=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},Js=function(e,t){return $s(e,t).then((function(e){return t.utf8Encoder(e)}))},Zs=function(e){return void 0!==e&&null!==e&&""!==e&&(!Object.getOwnPropertyNames(e).includes("length")||0!=e.length)&&(!Object.getOwnPropertyNames(e).includes("size")||0!=e.size)},ec=function(e,t){return Js(e,t).then((function(e){if(e.length){var t=Object(l.parse)(e,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:function(e){return""===e.trim()&&e.includes("\n")?"":Object(u.decodeHTML)(e)}}),n=Object.keys(t)[0],r=t[n];return r["#text"]&&(r[n]=r["#text"],delete r["#text"]),Object(o.k)(r)}return{}}))},tc=function(e,t){return void 0!==t.Code?t.Code:404==e.statusCode?"NotFound":""}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"d",(function(){return x})),n.d(t,"c",(function(){return O}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||(null===t||void 0===t?void 0:t.tlsCompatible)&&u.test(e))throw new Error("Invalid DNS label "+e)},m=function(e){if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")},y=function(e){return function(e){if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}}(e),function(e){return"string"===typeof e.bucketName}(e)?b(e):w(e)},b=function(e){var t,n=e.accelerateEndpoint,i=void 0!==n&&n,o=e.clientRegion,l=e.baseHostname,h=e.bucketName,p=e.dualstackEndpoint,v=void 0!==p&&p,g=(e.fipsEndpoint,e.pathStyleEndpoint),m=void 0!==g&&g,y=e.tlsCompatible,b=void 0===y||y,w=e.isCustomEndpoint,x=void 0!==w&&w,O=Object(r.h)(x?[o,l]:(t=l,f.test(t)?["us-east-1","amazonaws.com"]:d(t)),2),S=O[0],_=O[1];return m||!function(e){return a.test(e)&&!s.test(e)&&!c.test(e)}(h)||b&&u.test(h)?{bucketEndpoint:!1,hostname:v?"s3.dualstack."+S+"."+_:l}:(i?l="s3-accelerate"+(v?".dualstack":"")+"."+_:v&&(l="s3.dualstack."+S+"."+_),{bucketEndpoint:!0,hostname:h+"."+l})},w=function(e){var t,n=e.isCustomEndpoint,i=e.baseHostname,o=e.clientRegion,a=n?i:(t=i,f.test(t)?[t.replace(".amazonaws.com",""),"amazonaws.com"]:d(t))[1],s=e.pathStyleEndpoint,c=e.accelerateEndpoint,u=void 0!==c&&c,l=(e.fipsEndpoint,e.tlsCompatible),h=void 0===l||l,p=e.bucketName,v=e.clientPartition,g=void 0===v?"aws":v;!function(e){if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")}({pathStyleEndpoint:s,accelerateEndpoint:u,tlsCompatible:h});var m=p.service,y=p.partition,b=p.accountId,w=p.region,E=p.resource;!function(e){if("s3"!==e&&"s3-outposts"!==e&&"s3-object-lambda"!==e)throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")}(m),function(e,t){if(e!==t.clientPartition)throw new Error('Partition in ARN is incompatible, got "'+e+'" but expected "'+t.clientPartition+'"')}(y,{clientPartition:g}),function(e){if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")}(b);var k=function(e){var t=e.includes(":")?":":"/",n=Object(r.h)(e.split(t)),i=n[0],o=n.slice(1);if("accesspoint"===i){if(1!==o.length||""===o[0])throw new Error("Access Point ARN should have one resource accesspoint"+t+"{accesspointname}");return{accesspointName:o[0]}}if("outpost"===i){if(!o[0]||"accesspoint"!==o[1]||!o[2]||3!==o.length)throw new Error("Outpost ARN should have resource outpost"+t+"{outpostId}"+t+"accesspoint"+t+"{accesspointName}");var a=Object(r.h)(o,3),s=a[0];a[1];return{outpostId:s,accesspointName:a[2]}}throw new Error("ARN resource should begin with 'accesspoint"+t+"' or 'outpost"+t+"'")}(E),C=k.accesspointName,A=k.outpostId;return"s3-object-lambda"===m?x(Object(r.a)(Object(r.a)({},e),{tlsCompatible:h,bucketName:p,accesspointName:C,hostnameSuffix:a})):""===w?O(Object(r.a)(Object(r.a)({},e),{clientRegion:o,mrapAlias:C,hostnameSuffix:a})):A?S(Object(r.a)(Object(r.a)({},e),{clientRegion:o,outpostId:A,accesspointName:C,hostnameSuffix:a})):_(Object(r.a)(Object(r.a)({},e),{clientRegion:o,accesspointName:C,hostnameSuffix:a}))},x=function(e){var t=e.dualstackEndpoint,n=void 0!==t&&t,r=e.fipsEndpoint,i=void 0!==r&&r,o=e.tlsCompatible,a=void 0===o||o,s=e.useArnRegion,c=e.clientRegion,u=e.clientSigningRegion,l=void 0===u?c:u,f=e.accesspointName,d=e.bucketName,v=e.hostnameSuffix,y=d.accountId,b=d.region,w=d.service;p(c),h(b,{useArnRegion:s,clientRegion:c,clientSigningRegion:l,allowFipsRegion:!0,useFipsEndpoint:i}),m(n);var x=f+"-"+y;return g(x,{tlsCompatible:a}),{bucketEndpoint:!0,hostname:x+"."+w+(i?"-fips":"")+"."+(s?b:c)+"."+v,signingRegion:s?b:l,signingService:w}},O=function(e){var t=e.disableMultiregionAccessPoints,n=e.dualstackEndpoint,r=void 0!==n&&n,i=e.isCustomEndpoint,o=e.mrapAlias,a=e.hostnameSuffix;if(!0===t)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return function(e){try{e.split(".").forEach((function(e){g(e)}))}catch(t){throw new Error('"'+e+'" is not a DNS compatible name.')}}(o),m(r),{bucketEndpoint:!0,hostname:o+(i?"":".accesspoint.s3-global")+"."+a,signingRegion:"*"}},S=function(e){var t=e.useArnRegion,n=e.clientRegion,r=e.clientSigningRegion,i=void 0===r?n:r,o=e.bucketName,a=e.outpostId,s=e.dualstackEndpoint,c=void 0!==s&&s,u=e.fipsEndpoint,l=void 0!==u&&u,f=e.tlsCompatible,d=void 0===f||f,v=e.accesspointName,y=e.isCustomEndpoint,b=e.hostnameSuffix;p(n),h(o.region,{useArnRegion:t,clientRegion:n,clientSigningRegion:i,useFipsEndpoint:l});var w=v+"-"+o.accountId;g(w,{tlsCompatible:d});var x=t?o.region:n,O=t?o.region:i;return function(e){if("s3-outposts"!==e)throw new Error("Expect 's3-posts' in Outpost ARN service component")}(o.service),g(a,{tlsCompatible:d}),m(c),function(e){if(e)throw new Error("FIPS region is not supported with Outpost.")}(l),{bucketEndpoint:!0,hostname:w+"."+a+(y?"":".s3-outposts."+x)+"."+b,signingRegion:O,signingService:"s3-outposts"}},_=function(e){var t=e.useArnRegion,n=e.clientRegion,r=e.clientSigningRegion,i=void 0===r?n:r,o=e.bucketName,a=e.dualstackEndpoint,s=void 0!==a&&a,c=e.fipsEndpoint,u=void 0!==c&&c,l=e.tlsCompatible,f=void 0===l||l,d=e.accesspointName,v=e.isCustomEndpoint,m=e.hostnameSuffix;p(n),h(o.region,{useArnRegion:t,clientRegion:n,clientSigningRegion:i,allowFipsRegion:!0,useFipsEndpoint:u});var y=d+"-"+o.accountId;g(y,{tlsCompatible:f});var b=t?o.region:n,w=t?o.region:i;return function(e){if("s3"!==e)throw new Error("Expect 's3' in Accesspoint ARN service component")}(o.service),{bucketEndpoint:!0,hostname:y+(v?"":".s3-accesspoint"+(u?"-fips":"")+(s?".dualstack":"")+"."+b)+"."+m,signingRegion:w}},E={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},k=function(e){return{applyToStack:function(t){t.addRelativeTo(function(e){return function(t,n){return function(a){return Object(r.e)(void 0,void 0,void 0,(function(){var s,c,u,l,f,d,h,p,v,g,m,b,w,x,O,S,_,E,k,C,A,j;return Object(r.g)(this,(function(T){switch(T.label){case 0:return s=a.input.Bucket,c=e.bucketEndpoint,u=a.request,i.isInstance(u)?e.bucketEndpoint?(u.hostname=s,[3,12]):[3,1]:[3,13];case 1:return Object(o.b)(s)?(l=Object(o.a)(s),[4,e.region()]):[3,8];case 2:return S=T.sent(),[4,e.useDualstackEndpoint()];case 3:return f=T.sent(),[4,e.useFipsEndpoint()];case 4:return d=T.sent(),[4,e.regionInfoProvider(S,{useDualstackEndpoint:f,useFipsEndpoint:d})];case 5:return h=T.sent()||{},p=h.partition,v=h.signingRegion,g=void 0===v?S:v,[4,e.useArnRegion()];case 6:return m=T.sent(),O=y,j={bucketName:l,baseHostname:u.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:f,fipsEndpoint:d,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===u.protocol,useArnRegion:m,clientPartition:p,clientSigningRegion:g,clientRegion:S,isCustomEndpoint:e.isCustomEndpoint},[4,e.disableMultiregionAccessPoints()];case 7:return b=O.apply(void 0,[(j.disableMultiregionAccessPoints=T.sent(),j)]),C=b.hostname,A=b.bucketEndpoint,w=b.signingRegion,x=b.signingService,w&&w!==g&&(n.signing_region=w),x&&"s3"!==x&&(n.signing_service=x),u.hostname=C,c=A,[3,12];case 8:return[4,e.region()];case 9:return S=T.sent(),[4,e.useDualstackEndpoint()];case 10:return _=T.sent(),[4,e.useFipsEndpoint()];case 11:E=T.sent(),k=y({bucketName:s,clientRegion:S,baseHostname:u.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:_,fipsEndpoint:E,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===u.protocol,isCustomEndpoint:e.isCustomEndpoint}),C=k.hostname,A=k.bucketEndpoint,u.hostname=C,c=A,T.label=12;case 12:c&&(u.path=u.path.replace(/^(\/)?[^\/]+/,""),""===u.path&&(u.path="/")),T.label=13;case 13:return[2,t(Object(r.a)(Object(r.a)({},a),{request:u}))]}}))}))}}}(e),E)}}};function C(e){var t=e.bucketEndpoint,n=void 0!==t&&t,i=e.forcePathStyle,o=void 0!==i&&i,a=e.useAccelerateEndpoint,s=void 0!==a&&a,c=e.useArnRegion,u=void 0!==c&&c,l=e.disableMultiregionAccessPoints,f=void 0!==l&&l;return Object(r.a)(Object(r.a)({},e),{bucketEndpoint:n,forcePathStyle:o,useAccelerateEndpoint:s,useArnRegion:"function"===typeof u?u:function(){return Promise.resolve(u)},disableMultiregionAccessPoints:"function"===typeof f?f:function(){return Promise.resolve(f)}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(28);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var a=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"===typeof t.query&&"object"===typeof t.headers},e.prototype.clone=function(){var t,n=new e(i(i({},this),{headers:i({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce((function(e,n){var r,a=t[n];return i(i({},e),((r={})[n]=Array.isArray(a)?function(){for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function u(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}var l=String.prototype.charCodeAt,f=String.prototype.slice;function d(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function h(e){return isNaN(e)?c.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function p(e,t){var n=e.source,o=n.body,a=o.length,s=function(e,t,n){var r=e.length,i=t;for(;i=a)return new d(c.EOF,a,a,u,p,t);var m=l.call(o,s);switch(m){case 33:return new d(c.BANG,s,s+1,u,p,t);case 35:return function(e,t,n,r,i){var o,a=e.body,s=t;do{o=l.call(a,++s)}while(null!==o&&(o>31||9===o));return new d(c.COMMENT,t,s,n,r,i,f.call(a,t+1,s))}(n,s,u,p,t);case 36:return new d(c.DOLLAR,s,s+1,u,p,t);case 38:return new d(c.AMP,s,s+1,u,p,t);case 40:return new d(c.PAREN_L,s,s+1,u,p,t);case 41:return new d(c.PAREN_R,s,s+1,u,p,t);case 46:if(46===l.call(o,s+1)&&46===l.call(o,s+2))return new d(c.SPREAD,s,s+3,u,p,t);break;case 58:return new d(c.COLON,s,s+1,u,p,t);case 61:return new d(c.EQUALS,s,s+1,u,p,t);case 64:return new d(c.AT,s,s+1,u,p,t);case 91:return new d(c.BRACKET_L,s,s+1,u,p,t);case 93:return new d(c.BRACKET_R,s,s+1,u,p,t);case 123:return new d(c.BRACE_L,s,s+1,u,p,t);case 124:return new d(c.PIPE,s,s+1,u,p,t);case 125:return new d(c.BRACE_R,s,s+1,u,p,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){var o=e.body,a=o.length,s=t+1,u=0;for(;s!==a&&null!==(u=l.call(o,s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new d(c.NAME,t,s,n,r,i,f.call(o,t,s))}(n,s,u,p,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,i,o,a){var s=e.body,u=n,p=t,g=!1;45===u&&(u=l.call(s,++p));if(48===u){if((u=l.call(s,++p))>=48&&u<=57)throw Object(r.a)(e,p,"Invalid number, unexpected digit after 0: ".concat(h(u),"."))}else p=v(e,p,u),u=l.call(s,p);46===u&&(g=!0,u=l.call(s,++p),p=v(e,p,u),u=l.call(s,p));69!==u&&101!==u||(g=!0,43!==(u=l.call(s,++p))&&45!==u||(u=l.call(s,++p)),p=v(e,p,u));return new d(g?c.FLOAT:c.INT,t,p,i,o,a,f.call(s,t,p))}(n,s,m,u,p,t);case 34:return 34===l.call(o,s+1)&&34===l.call(o,s+2)?function(e,t,n,o,a){var s=e.body,u=t+3,p=u,v=0,g="";for(;u=48&&a<=57){do{a=l.call(i,++o)}while(a>=48&&a<=57);return o}throw Object(r.a)(e,o,"Invalid number, expected digit but got: ".concat(h(a),"."))}function g(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}d.prototype.toJSON=d.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=u(n(1009)),i=u(n(1053)),o=u(n(1079)),a=u(n(1080)),s=u(n(1081)),c=u(n(1082));function u(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=c.default;var l=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]2&&void 0!==arguments[2]?arguments[2]:r,o=void 0,s=Array.isArray(e),c=[e],l=-1,f=[],d=void 0,h=void 0,p=void 0,v=[],g=[],m=e;do{var y=++l===c.length,b=y&&0!==f.length;if(y){if(h=0===g.length?void 0:v[v.length-1],d=p,p=g.pop(),b){if(s)d=d.slice();else{var w={};for(var x in d)d.hasOwnProperty(x)&&(w[x]=d[x]);d=w}for(var O=0,S=0;S=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128===(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,o){return o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(69))},,,function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(247);var i=n(210);function o(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return T})),n.d(t,"f",(function(){return P})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return C})),n.d(t,"i",(function(){return O})),n.d(t,"j",(function(){return j})),n.d(t,"k",(function(){return E})),n.d(t,"l",(function(){return k})),n.d(t,"m",(function(){return A})),n.d(t,"n",(function(){return f})),n.d(t,"o",(function(){return p})),n.d(t,"p",(function(){return g})),n.d(t,"q",(function(){return v})),n.d(t,"r",(function(){return y})),n.d(t,"s",(function(){return R})),n.d(t,"t",(function(){return D})),n.d(t,"u",(function(){return z})),n.d(t,"v",(function(){return B})),n.d(t,"w",(function(){return h})),n.d(t,"x",(function(){return w})),n.d(t,"y",(function(){return u})),n.d(t,"z",(function(){return m}));var r=n(25),i=n(10),o=n(94),a=n(114),s=n.n(a);n(71);function c(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return c(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return c(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new i.a(17);e[t.value]=null}}function u(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return c(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)}))),f(e.name.value,r,n)}var l=["connection","include","skip","client","rest","export"];function f(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var c=s()(t);a+="("+c+")"}return n&&Object.keys(n).forEach((function(e){-1===l.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function d(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return c(n,r,i,t)})),n}return null}function h(e){return e.alias?e.alias.value:e.name.value}function p(e){return"Field"===e.kind}function v(e){return"InlineFragment"===e.kind}function g(e){return e&&"id"===e.type&&"boolean"===typeof e.generated}function m(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"===typeof e?{id:e,typename:void 0}:e)}function y(e){return null!=e&&"object"===typeof e&&"json"===e.type}function b(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=d(e,t)})),n}return null}function w(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(x).map((function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,14);var n=t[0];Object(i.b)(n.name&&"if"===n.name.value,15);var r=n.value;return Object(i.b)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],Object(i.b)(void 0!==o,13)):o=r.value.value,"skip"===n.name.value?!o:o}));var n}function x(e){var t=e.name.value;return"skip"===t||"include"===t}function O(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(11);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(Object(i.b)(1===r.length,12),n=r[0].name.value),Object(o.a)(Object(o.a)({},e),{definitions:Object(o.b)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function S(e){for(var t=[],n=1;n1){var r=[];t=H(t,r);for(var i=1;i0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var c=s()(t);a+="("+c+")"}return n&&Object.keys(n).forEach((function(e){-1===l.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function d(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return c(n,r,i,t)})),n}return null}function h(e){return e.alias?e.alias.value:e.name.value}function p(e){return"Field"===e.kind}function v(e){return"InlineFragment"===e.kind}function g(e){return e&&"id"===e.type&&"boolean"===typeof e.generated}function m(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"===typeof e?{id:e,typename:void 0}:e)}function y(e){return null!=e&&"object"===typeof e&&"json"===e.type}function b(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=d(e,t)})),n}return null}function w(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(x).map((function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,14);var n=t[0];Object(i.b)(n.name&&"if"===n.name.value,15);var r=n.value;return Object(i.b)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],Object(i.b)(void 0!==o,13)):o=r.value.value,"skip"===n.name.value?!o:o}));var n}function x(e){var t=e.name.value;return"skip"===t||"include"===t}function O(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(11);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(Object(i.b)(1===r.length,12),n=r[0].name.value),Object(o.a)(Object(o.a)({},e),{definitions:Object(o.e)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function S(e){for(var t=[],n=1;n-1}function l(e){return["IntValue","FloatValue"].indexOf(e.kind)>-1}function f(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return f(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return f(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new i.a(17);e[t.value]=null}}function d(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return f(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return f(r,n,i,t)}))),p(e.name.value,r,n)}n.d(t,"isEqual",(function(){return c.a}));var h=["connection","include","skip","client","rest","export"];function p(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var c=s()(t);a+="("+c+")"}return n&&Object.keys(n).forEach((function(e){-1===h.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function v(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return f(n,r,i,t)})),n}return null}function g(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function y(e){return"InlineFragment"===e.kind}function b(e){return e&&"id"===e.type&&"boolean"===typeof e.generated}function w(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"===typeof e?{id:e,typename:void 0}:e)}function x(e){return null!=e&&"object"===typeof e&&"json"===e.type}function O(e){throw new i.a(18)}function S(e,t){switch(void 0===t&&(t=O),e.kind){case"Variable":return t(e);case"NullValue":return null;case"IntValue":return parseInt(e.value,10);case"FloatValue":return parseFloat(e.value);case"ListValue":return e.values.map((function(e){return S(e,t)}));case"ObjectValue":for(var n={},r=0,i=e.fields;r-1}))}function A(e){return e&&C(["client"],e)&&C(["export"],e)}function j(e){var t=e.name.value;return"skip"===t||"include"===t}function T(e){return e?e.filter(j).map((function(e){var t=e.arguments;e.name.value;Object(i.b)(t&&1===t.length,4);var n=t[0];Object(i.b)(n.name&&"if"===n.name.value,5);var r=n.value;return Object(i.b)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),6),{directive:e,ifArgument:n}})):[]}function P(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(1);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(Object(i.b)(1===r.length,2),n=r[0].name.value),Object(o.a)({},e,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}].concat(e.definitions)})}function M(e){for(var t=[],n=1;n1){var r=[];t=Oe(t,r);for(var i=1;i-1}function _(e){return S(e)?window.pageYOffset:e.scrollTop}function E(e,t){S(e)?window.scrollTo(0,t):e.scrollTop=t}function k(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:y,i=_(e),o=t-i,a=10,s=0;function c(){var t=k(s+=a,i,o,n);E(e,t),sn.bottom?E(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!a)return o&&C(c,k,160),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&x>=r)return o&&C(c,k,160),{placement:"bottom",maxHeight:a?x-y:S-y};if("auto"===i||a){var j=t,T=a?w:O;return T>=r&&(j=Math.min(T-y-s.controlHeight,t)),{placement:"top",maxHeight:j}}if("bottom"===i)return E(c,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(O>=h&&!a)return o&&C(c,A,160),{placement:"top",maxHeight:t};if(!a&&O>=r||a&&w>=r){var P=t;return(!a&&O>=r||a&&w>=r)&&(P=a?w-b:O-b),o&&C(c,A,160),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}var L=function(e){return"auto"===e?"bottom":e},R=function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return t={label:"menu"},Object(o.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Object(o.a)(t,"backgroundColor",s.neutral0),Object(o.a)(t,"borderRadius",i),Object(o.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(o.a)(t,"marginBottom",a.menuGutter),Object(o.a)(t,"marginTop",a.menuGutter),Object(o.a)(t,"position","absolute"),Object(o.a)(t,"width","100%"),Object(o.a)(t,"zIndex",1),t},D=Object(f.createContext)({getPortalPlacement:null}),z=function(e){Object(c.a)(n,e);var t=N(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o-1}))}function h(e){return e&&d(["client"],e)&&d(["export"],e)}function p(e){var t=e.name.value;return"skip"===t||"include"===t}function v(e){for(var t=[],n=1;n1){var r=[];t=V(t,r);for(var i=1;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?a(e)+t:t}function c(){return!0}function u(e,t,n){return(0===e&&!h(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function l(e,t){return d(e,t,0)}function f(e,t){return d(e,t,t)}function d(e,t,n){return void 0===e?n:h(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function h(e){return e<0||0===e&&1/e===-1/0}function p(e){return Boolean(e&&e["@@__IMMUTABLE_ITERABLE__@@"])}function v(e){return Boolean(e&&e["@@__IMMUTABLE_KEYED__@@"])}function g(e){return Boolean(e&&e["@@__IMMUTABLE_INDEXED__@@"])}function m(e){return v(e)||g(e)}var y=function(e){return p(e)?e:z(e)},b=function(e){function t(e){return v(e)?e:F(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(y),w=function(e){function t(e){return g(e)?e:B(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(y),x=function(e){function t(e){return p(e)&&!m(e)?e:V(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(y);y.Keyed=b,y.Indexed=w,y.Set=x;function O(e){return Boolean(e&&e["@@__IMMUTABLE_SEQ__@@"])}function S(e){return Boolean(e&&e["@@__IMMUTABLE_RECORD__@@"])}function _(e){return p(e)||S(e)}var E="@@__IMMUTABLE_ORDERED__@@";function k(e){return Boolean(e&&e[E])}var C="function"===typeof Symbol&&Symbol.iterator,A=C||"@@iterator",j=function(e){this.next=e};function T(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function P(){return{value:void 0,done:!0}}function M(e){return!!Array.isArray(e)||!!L(e)}function N(e){return e&&"function"===typeof e.next}function I(e){var t=L(e);return t&&t.call(e)}function L(e){var t=e&&(C&&e[C]||e["@@iterator"]);if("function"===typeof t)return t}j.prototype.toString=function(){return"[Iterator]"},j.KEYS=0,j.VALUES=1,j.ENTRIES=2,j.prototype.inspect=j.prototype.toSource=function(){return this.toString()},j.prototype[A]=function(){return this};var R=Object.prototype.hasOwnProperty;function D(e){return!(!Array.isArray(e)&&"string"!==typeof e)||e&&"object"===typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var z=function(e){function t(e){return null===e||void 0===e?W():_(e)?e.toSeq():function(e){var t=X(e);if(t)return function(e){var t=L(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=L(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"===typeof e)return new H(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[t?r-++i:i++];if(!1===e(o[1],o[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new j((function(){if(i===r)return{value:void 0,done:!0};var o=n[t?r-++i:i++];return T(e,o[0],o[1])}))}return this.__iteratorUncached(e,t)},t}(y),F=function(e){function t(e){return null===e||void 0===e?W().toKeyedSeq():p(e)?v(e)?e.toSeq():e.fromEntrySeq():S(e)?e.toSeq():K(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(z),B=function(e){function t(e){return null===e||void 0===e?W():p(e)?v(e)?e.entrySeq():e.toIndexedSeq():S(e)?e.toSeq().entrySeq():Y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(z),V=function(e){function t(e){return(p(e)&&!m(e)?e:B(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(z);z.isSeq=O,z.Keyed=F,z.Set=V,z.Indexed=B,z.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var U=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[s(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var o=t?r-++i:i++;if(!1===e(n[o],o,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new j((function(){if(i===r)return{value:void 0,done:!0};var o=t?r-++i:i++;return T(e,o,n[o])}))},t}(B),H=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return R.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[t?i-++o:o++];if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,o=0;return new j((function(){if(o===i)return{value:void 0,done:!0};var a=r[t?i-++o:o++];return T(e,a,n[a])}))},t}(F);H.prototype[E]=!0;var q,G=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=I(this._collection),r=0;if(N(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=I(this._collection);if(!N(n))return new j(P);var r=0;return new j((function(){var t=n.next();return t.done?t:T(e,r++,t.value)}))},t}(B);function W(){return q||(q=new U([]))}function K(e){var t=X(e);if(t)return t.fromEntrySeq();if("object"===typeof e)return new H(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function Y(e){var t=X(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function X(e){return D(e)?new U(e):M(e)?new G(e):void 0}function Q(e){return Boolean(e&&e["@@__IMMUTABLE_MAP__@@"])}function $(e){return Q(e)&&k(e)}function J(e){return Boolean(e&&"function"===typeof e.equals&&"function"===typeof e.hashCode)}function Z(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(J(e)&&J(t)&&e.equals(t))}var ee="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function te(e){return e>>>1&1073741824|3221225471&e}var ne=Object.prototype.valueOf;function re(e){if(null==e)return ie(e);if("function"===typeof e.hashCode)return te(e.hashCode(e));var t,n=(t=e).valueOf!==ne&&"function"===typeof t.valueOf?t.valueOf(t):t;if(null==n)return ie(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!==e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return te(t)}(n);case"string":return n.length>pe?function(e){var t=me[e];void 0===t&&(t=oe(e),ge===ve&&(ge=0,me={}),ge++,me[e]=t);return t}(n):oe(n);case"object":case"function":return function(e){var t;if(le&&void 0!==(t=ue.get(e)))return t;if(void 0!==(t=e[he]))return t;if(!se){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[he]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ce(),le)ue.set(e,t);else{if(void 0!==ae&&!1===ae(e))throw new Error("Non-extensible objects are not allowed as keys.");if(se)Object.defineProperty(e,he,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[he]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[he]=t}}return t}(n);case"symbol":return function(e){var t=fe[e];if(void 0!==t)return t;return t=ce(),fe[e]=t,t}(n);default:if("function"===typeof n.toString)return oe(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function ie(e){return null===e?1108378658:1108378659}function oe(e){for(var t=0,n=0;n=0&&(h.get=function(t,n){return(t=s(this,t))>=0&&tc)return{value:void 0,done:!0};var e=i.next();return r||1===t||e.done?e:T(t,s-1,0===t?void 0:e.value[1],e)}))},h}function Ce(e,t,n,r){var i=De(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,c=0;return e.__iterate((function(e,o,u){if(!s||!(s=t.call(n,e,o,u)))return c++,i(e,r?o:c-1,a)})),c},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(2,o),c=!0,u=0;return new j((function(){var e,o,l;do{if((e=s.next()).done)return r||1===i?e:T(i,u++,0===i?void 0:e.value[1],e);var f=e.value;o=f[0],l=f[1],c&&(c=t.call(n,l,o,a))}while(c);return 2===i?e:T(i,o,l,e)}))},i}function Ae(e,t){var n=v(e),r=[e].concat(t).map((function(e){return p(e)?n&&(e=b(e)):e=n?K(e):Y(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&v(i)||g(e)&&g(i))return i}var o=new U(r);return n?o=o.toKeyedSeq():g(e)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),o}function je(e,t,n){var r=De(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function e(c,u){c.__iterate((function(o,c){return(!t||u0}function Ne(e,t,n,r){var i=De(e),o=new U(n).map((function(e){return e.size}));return i.size=r?o.max():o.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var o=n.map((function(e){return e=y(e),I(i?e.reverse():e)})),a=0,s=!1;return new j((function(){var n;return s||(n=o.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:T(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function Ie(e,t){return e===t?e:O(e)?t:e.constructor(t)}function Le(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Re(e){return v(e)?b:g(e)?w:x}function De(e){return Object.create((v(e)?F:g(e)?B:V).prototype)}function ze(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function Fe(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e0;)t[n]=arguments[n+1];if("function"!==typeof e)throw new TypeError("Invalid merger function: "+e);return ut(this,t,e)}function ut(e,t,n){for(var i=[],o=0;o0;)t[n]=arguments[n+1];return lt(this,t,e)}function pt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ze(this,e,Mt(),(function(e){return ft(e,t)}))}function vt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ze(this,e,Mt(),(function(e){return lt(e,t)}))}function gt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function mt(){return this.__ownerID?this:this.__ensureOwner(new o)}function yt(){return this.__ensureOwner()}function bt(){return this.__altered}var wt=function(e){function t(t){return null===t||void 0===t?Mt():Q(t)&&!k(t)?t:Mt().withMutations((function(n){var r=e(t);Ue(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Mt().withMutations((function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Nt(this,e,t)},t.prototype.remove=function(e){return Nt(this,e,r)},t.prototype.deleteAll=function(e){var t=y(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Mt()},t.prototype.sort=function(e){return rn(Te(this,e))},t.prototype.sortBy=function(e,t){return rn(Te(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(i,o){r.set(o,e.call(t,i,o,n))}))}))},t.prototype.__iterator=function(e,t){return new At(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Pt(this.size,this._root,e,this.__hash):0===this.size?Mt():(this.__ownerID=e,this.__altered=!1,this)},t}(b);wt.isMap=Q;var xt=wt.prototype;xt["@@__IMMUTABLE_MAP__@@"]=!0,xt.delete=xt.remove,xt.removeAll=xt.deleteAll,xt.setIn=tt,xt.removeIn=xt.deleteIn=rt,xt.update=ot,xt.updateIn=at,xt.merge=xt.concat=st,xt.mergeWith=ct,xt.mergeDeep=dt,xt.mergeDeepWith=ht,xt.mergeIn=pt,xt.mergeDeepIn=vt,xt.withMutations=gt,xt.wasAltered=bt,xt.asImmutable=yt,xt["@@transducer/init"]=xt.asMutable=mt,xt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},xt["@@transducer/result"]=function(e){return e.asImmutable()};var Ot=function(e,t){this.ownerID=e,this.entries=t};Ot.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=Ft)return function(e,t,n,r){e||(e=new o);for(var i=new kt(e,re(n),[n,r]),a=0;a>>e)),o=this.bitmap;return 0===(o&i)?r:this.nodes[Dt(o&i-1)].get(e+5,t,n,r)},St.prototype.update=function(e,t,n,i,o,a,s){void 0===n&&(n=re(i));var c=31&(0===t?n:n>>>t),u=1<=Bt)return function(e,t,n,r,i){for(var o=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new _t(e,o+1,a)}(e,h,l,c,v);if(f&&!v&&2===h.length&&Lt(h[1^d]))return h[1^d];if(f&&v&&1===h.length&&Lt(v))return v;var g=e&&e===this.ownerID,m=f?v?l:l^u:l|u,y=f?v?zt(h,d,v,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e),o=this.nodes[i];return o?o.get(e+5,t,n,r):r},_t.prototype.update=function(e,t,n,i,o,a,s){void 0===n&&(n=re(i));var c=31&(0===t?n:n>>>t),u=o===r,l=this.nodes,f=l[c];if(u&&!f)return this;var d=It(f,e,t+5,n,i,o,a,s);if(d===f)return this;var h=this.count;if(f){if(!d&&--h>>n),s=31&(0===n?r:r>>>n),c=a===s?[Rt(e,t,n+5,r,i)]:(o=new kt(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function zt(e,t,n,r){var i=r?e:Be(e);return i[t]=n,i}var Ft=8,Bt=16,Vt=8;function Ut(e){return Boolean(e&&e["@@__IMMUTABLE_LIST__@@"])}var Ht=function(e){function t(t){var n=Qt();if(null===t||void 0===t)return n;if(Ut(t))return t;var r=e(t),i=r.size;return 0===i?n:(Ue(i),i>0&&i<32?Xt(0,i,5,null,new Gt(r.toArray())):n.withMutations((function(e){e.setSize(i),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=s(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?en(e,t).set(0,n):en(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,o={value:!1};t>=tn(e._capacity)?r=$t(r,e.__ownerID,0,t,n,o):i=$t(i,e.__ownerID,e._level,t,n,o);if(!o.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return Xt(e._origin,e._capacity,e._level,i,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Qt()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){en(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new Gt([],e);var i,o=0===r;if(t>0){var a=this.array[r];if((i=a&&a.removeBefore(e,t-5,n))===a&&o)return this}if(o&&!i)return this;var s=Jt(this,e);if(!o)for(var c=0;c>>t&31;if(i>=this.array.length)return this;if(t>0){var o=this.array[i];if((r=o&&o.removeAfter(e,t-5,n))===o&&i===this.array.length-1)return this}var a=Jt(this,e);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Wt,Kt={};function Yt(e,t){var n=e._origin,r=e._capacity,i=tn(r),o=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===i?o&&o.array:e&&e.array,c=a>n?0:n-a,u=r-a;u>32&&(u=32);return function(){if(c===u)return Kt;var e=t?--u:c++;return s&&s[e]}}(e,c):function(e,i,o){var s,c=e&&e.array,u=o>n?0:n-o>>i,l=1+(r-o>>i);l>32&&(l=32);return function(){for(;;){if(s){var e=s();if(e!==Kt)return e;s=null}if(u===l)return Kt;var n=t?--l:u++;s=a(c&&c[n],i-5,o+(n<>>n&31,u=e&&c0){var l=e&&e.array[c],f=$t(l,t,n-5,r,o,a);return f===l?e:((s=Jt(e,t)).array[c]=f,s)}return u&&e.array[c]===o?e:(a&&i(a),s=Jt(e,t),void 0===o&&c===s.array.length-1?s.array.pop():s.array[c]=o,s)}function Jt(e,t){return t&&e&&t===e.ownerID?e:new Gt(e?e.array.slice():[],t)}function Zt(e,t){if(t>=tn(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function en(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new o,i=e._origin,a=e._capacity,s=i+t,c=void 0===n?a:n<0?a+n:i+n;if(s===i&&c===a)return e;if(s>=c)return e.clear();for(var u=e._level,l=e._root,f=0;s+f<0;)l=new Gt(l&&l.array.length?[void 0,l]:[],r),f+=1<<(u+=5);f&&(s+=f,i+=f,c+=f,a+=f);for(var d=tn(a),h=tn(c);h>=1<d?new Gt([],r):p;if(p&&h>d&&s5;m-=5){var y=d>>>m&31;g=g.array[y]=Jt(g.array[y],r)}g.array[d>>>5&31]=p}if(c=h)s-=h,c-=h,u=5,l=null,v=v&&v.removeBefore(r,0,s);else if(s>i||h>>u&31;if(b!==h>>>u&31)break;b&&(f+=(1<i&&(l=l.removeBefore(r,u,s-f)),l&&h>>5<<5}var nn,rn=function(e){function t(e){return null===e||void 0===e?an():$(e)?e:an().withMutations((function(t){var n=b(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):an()},t.prototype.set=function(e,t){return sn(this,e,t)},t.prototype.remove=function(e){return sn(this,e,r)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?on(t,n,e,this.__hash):0===this.size?an():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(wt);function on(e,t,n,r){var i=Object.create(rn.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function an(){return nn||(nn=on(Mt(),Qt()))}function sn(e,t,n){var i,o,a=e._map,s=e._list,c=a.get(t),u=void 0!==c;if(n===r){if(!u)return e;s.size>=32&&s.size>=2*a.size?(i=(o=s.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=o.__ownerID=e.__ownerID)):(i=a.remove(t),o=c===s.size-1?s.pop():s.set(c,void 0))}else if(u){if(n===s.get(c)[1])return e;i=a,o=s.set(c,[t,n])}else i=a.set(t,s.size),o=s.set(s.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=o,e.__hash=void 0,e.__altered=!0,e):on(i,o)}rn.isOrderedMap=$,rn.prototype[E]=!0,rn.prototype.delete=rn.prototype.remove;function cn(e){return Boolean(e&&e["@@__IMMUTABLE_STACK__@@"])}var un=function(e){function t(e){return null===e||void 0===e?hn():cn(e)?e:hn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=s(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):dn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&cn(t))return t;Ue(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):dn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):hn()},t.prototype.slice=function(t,n){if(u(t,n,this.size))return this;var r=l(t,this.size);if(f(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):dn(i,o)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?dn(this.size,this._head,e,this.__hash):0===this.size?hn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new U(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new U(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new j((function(){if(r){var t=r.value;return r=r.next,T(e,n++,t)}return{value:void 0,done:!0}}))},t}(w);un.isStack=cn;var ln,fn=un.prototype;function dn(e,t,n,r){var i=Object.create(fn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function hn(){return ln||(ln=dn(0))}fn["@@__IMMUTABLE_STACK__@@"]=!0,fn.shift=fn.pop,fn.unshift=fn.push,fn.unshiftAll=fn.pushAll,fn.withMutations=gt,fn.wasAltered=bt,fn.asImmutable=yt,fn["@@transducer/init"]=fn.asMutable=mt,fn["@@transducer/step"]=function(e,t){return e.unshift(t)},fn["@@transducer/result"]=function(e){return e.asImmutable()};function pn(e){return Boolean(e&&e["@@__IMMUTABLE_SET__@@"])}function vn(e){return pn(e)&&k(e)}function gn(e,t){if(e===t)return!0;if(!p(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||v(e)!==v(t)||g(e)!==g(t)||k(e)!==k(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!m(e);if(k(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&Z(r[1],e)&&(n||Z(r[0],t))}))&&i.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var s=!0,c=t.__iterate((function(t,i){if(n?!e.has(t):o?!Z(t,e.get(i,r)):!Z(e.get(i,r),t))return s=!1,!1}));return s&&e.size===c}function mn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function yn(e){if(!e||"object"!==typeof e)return e;if(!p(e)){if(!We(e))return e;e=z(e)}if(v(e)){var t={};return e.__iterate((function(e,n){t[n]=yn(e)})),t}var n=[];return e.__iterate((function(e){n.push(yn(e))})),n}var bn=function(e){function t(t){return null===t||void 0===t?_n():pn(t)&&!k(t)?t:_n().withMutations((function(n){var r=e(t);Ue(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(b(e).keySeq())},t.intersect=function(e){return(e=y(e).toArray()).length?xn.intersect.apply(t(e.pop()),e):_n()},t.union=function(e){return(e=y(e).toArray()).length?xn.union.apply(t(e.pop()),e):_n()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return On(this,this._map.set(e,e))},t.prototype.remove=function(e){return On(this,this._map.remove(e))},t.prototype.clear=function(){return On(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=On(this,this._map.mapEntries((function(i){var o=i[1],a=e.call(t,o,o,n);return a!==o&&(r=!0),[a,a]}),t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r=0&&t=0&&n>>-15,461845907),t=ee(t<<13|t>>>-13,5),t=ee((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=te((t=ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Un(re(e),re(t))|0}:function(e,t){r=r+Un(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0}),r)}(this))}});var Pn=y.prototype;Pn["@@__IMMUTABLE_ITERABLE__@@"]=!0,Pn[A]=Pn.values,Pn.toJSON=Pn.toArray,Pn.__toStringMapper=Ke,Pn.inspect=Pn.toSource=function(){return this.toString()},Pn.chain=Pn.flatMap,Pn.contains=Pn.includes,mn(b,{flip:function(){return Ie(this,Oe(this))},mapEntries:function(e,t){var n=this,r=0;return Ie(this,this.toSeq().map((function(i,o){return e.call(t,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ie(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Mn=b.prototype;Mn["@@__IMMUTABLE_KEYED__@@"]=!0,Mn[A]=Pn.entries,Mn.toJSON=Tn,Mn.__toStringMapper=function(e,t){return Ke(t)+": "+Ke(e)},mn(w,{toKeyedSeq:function(){return new ye(this,!1)},filter:function(e,t){return Ie(this,Ee(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ie(this,_e(this,!1))},slice:function(e,t){return Ie(this,ke(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=l(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ie(this,1===n?r:r.concat(Be(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Ie(this,je(this,e,!1))},get:function(e,t){return(e=s(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=s(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function Un(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}In.has=Pn.includes,In.contains=In.includes,In.keys=In.values,mn(F,Mn),mn(B,Nn),mn(V,In);var Hn=function(e){function t(e){return null===e||void 0===e?Kn():vn(e)?e:Kn().withMutations((function(t){var n=x(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(b(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(bn);Hn.isOrderedSet=vn;var qn,Gn=Hn.prototype;function Wn(e,t){var n=Object.create(Gn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Kn(){return qn||(qn=Wn(an()))}Gn[E]=!0,Gn.zip=Nn.zip,Gn.zipWith=Nn.zipWith,Gn.zipAll=Nn.zipAll,Gn.__empty=Kn,Gn.__make=Wn;var Yn=function(e,t){var n;!function(e){if(S(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(_(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!==typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(e),c=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var u=0;u0&&(i+=i.length>0?o.SEPARATOR:"",a.forEach((function(e,t){i+=""+e.toUpperCase()+(t0?o.SEPARATOR:"")+s.toUpperCase())}return i&&(i+=""+(i.length>0?o.SEPARATOR:"")+n.toUpperCase()),""+o.PREFIX+o.SEPARATOR+i},t.isValidOptionalNumber=function(e){return null===e||void 0===e||"number"===typeof e},t.isValidOptionalString=function(e){return null===e||void 0===e||"string"===typeof e},t.updateActionFromPayload=function(e,t){return e.id===t.id&&(Object.assign(e,l(e,t)),!0)},t.getMergedProps=l,t.forEachInEnum=function(e,t){Object.keys(e).forEach((function(n){t(e[n])}))},t.findMatchInEnum=function(e,t){var n=Object.keys(e).find((function(n){return t===e[n]}));return n?e[n]:void 0},t.NonSnakeCaseGroup=[s.Group.AuthCode,s.Group.Button,s.Group.ButtonGroup,s.Group.Cart,s.Group.Error,s.Group.Features,s.Group.Fullscreen,s.Group.Link,s.Group.Loading,s.Group.Menu,s.Group.Modal,s.Group.Navigation,s.Group.Pos,s.Group.Print,s.Group.ResourcePicker,s.Group.Scanner,s.Group.SessionToken,s.Group.Share,s.Group.TitleBar,s.Group.Toast]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentType=t.Group=void 0,function(e){e.AuthCode="AuthCode",e.Button="Button",e.ButtonGroup="ButtonGroup",e.Cart="Cart",e.Client="Client",e.ContextualSaveBar="ContextualSaveBar",e.Error="Error",e.Features="Features",e.FeedbackModal="FeedbackModal",e.Fullscreen="Fullscreen",e.LeaveConfirmation="LeaveConfirmation",e.Link="Link",e.Loading="Loading",e.Menu="Menu",e.Modal="Modal",e.Navigation="Navigation",e.Performance="Performance",e.Pos="Pos",e.Print="Print",e.ResourcePicker="Resource_Picker",e.Scanner="Scanner",e.SessionToken="SessionToken",e.Share="Share",e.TitleBar="TitleBar",e.Toast="Toast",e.MarketingExternalActivityTopBar="MarketingExternalActivityTopBar"}(t.Group||(t.Group={})),function(e){e.Button="Button",e.ButtonGroup="ButtonGroup"}(t.ComponentType||(t.ComponentType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(53),o=n(648),a=new Error("use-react-router may only be used with react-router@^5."),s=new Error("useReactRouter may only be called within a context.");t.default=function(){if(!i.__RouterContext)throw a;var e=r.useContext(i.__RouterContext);if(!e)throw s;var t=o.default();return r.useEffect((function(){return e.history.listen(t)}),[e]),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return w})),n.d(t,"i",(function(){return x})),n.d(t,"j",(function(){return O})),n.d(t,"k",(function(){return S})),n.d(t,"l",(function(){return _})),n.d(t,"m",(function(){return E})),n.d(t,"n",(function(){return k})),n.d(t,"o",(function(){return C})),n.d(t,"p",(function(){return A}));var r={};try{"undefined"!==typeof window&&(r=window)}catch(T){}var i=(r.navigator||{}).userAgent,o=void 0===i?"":i,a=r,s=(~o.indexOf("MSIE")||o.indexOf("Trident/"),function(){try{return!0}catch(T){return!1}}()),c=[1,2,3,4,5,6,7,8,9,10],u=c.concat([11,12,13,14,15,16,17,18,19,20]);["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(c.map((function(e){return e+"x"}))).concat(u.map((function(e){return"w-"+e})));var l=a||{};l.___FONT_AWESOME___||(l.___FONT_AWESOME___={}),l.___FONT_AWESOME___.styles||(l.___FONT_AWESOME___.styles={}),l.___FONT_AWESOME___.hooks||(l.___FONT_AWESOME___.hooks={}),l.___FONT_AWESOME___.shims||(l.___FONT_AWESOME___.shims=[]);var f=l.___FONT_AWESOME___,d=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"']/g,z=RegExp(R.source),F=RegExp(D.source),B=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,K=RegExp(W.source),Y=/^\s+/,X=/\s/,Q=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ce=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",ve="["+he+"]",ge="["+de+"]",me="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+he+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",xe="\\ud83c[\\udffb-\\udfff]",Oe="[^\\ud800-\\udfff]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",_e="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ke="(?:"+be+"|"+we+")",Ce="(?:"+Ee+"|"+we+")",Ae="(?:"+ge+"|"+xe+")"+"?",je="[\\ufe0e\\ufe0f]?"+Ae+("(?:\\u200d(?:"+[Oe,Se,_e].join("|")+")[\\ufe0e\\ufe0f]?"+Ae+")*"),Te="(?:"+[ye,Se,_e].join("|")+")"+je,Pe="(?:"+[Oe+ge+"?",ge,Se,_e,pe].join("|")+")",Me=RegExp("['\u2019]","g"),Ne=RegExp(ge,"g"),Ie=RegExp(xe+"(?="+xe+")|"+Pe+je,"g"),Le=RegExp([Ee+"?"+be+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[ve,Ee,"$"].join("|")+")",Ce+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[ve,Ee+ke,"$"].join("|")+")",Ee+"?"+ke+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ee+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,Te].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),De=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fe=-1,Be={};Be[E]=Be[k]=Be[C]=Be[A]=Be[j]=Be[T]=Be["[object Uint8ClampedArray]"]=Be[P]=Be[M]=!0,Be[c]=Be[u]=Be[S]=Be[l]=Be[_]=Be[f]=Be[d]=Be[h]=Be[v]=Be[g]=Be[m]=Be[y]=Be[b]=Be[w]=Be[O]=!1;var Ve={};Ve[c]=Ve[u]=Ve[S]=Ve[_]=Ve[l]=Ve[f]=Ve[E]=Ve[k]=Ve[C]=Ve[A]=Ve[j]=Ve[v]=Ve[g]=Ve[m]=Ve[y]=Ve[b]=Ve[w]=Ve[x]=Ve[T]=Ve["[object Uint8ClampedArray]"]=Ve[P]=Ve[M]=!0,Ve[d]=Ve[h]=Ve[O]=!1;var Ue={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,qe=parseInt,Ge="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,Ke=Ge||We||Function("return this")(),Ye=t&&!t.nodeType&&t,Xe=Ye&&"object"==typeof r&&r&&!r.nodeType&&r,Qe=Xe&&Xe.exports===Ye,$e=Qe&&Ge.process,Je=function(){try{var e=Xe&&Xe.require&&Xe.require("util").types;return e||$e&&$e.binding&&$e.binding("util")}catch(t){}}(),Ze=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,it=Je&&Je.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function dt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Lt(e,t){for(var n=e.length;n--&&xt(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Dt=kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),zt=kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ft(e){return"\\"+Ue[e]}function Bt(e){return Re.test(e)}function Vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ut(e,t){return function(n){return e(t(n))}}function Ht(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var Qt=function e(t){var n=(t=null==t?Ke:Qt.defaults(Ke.Object(),t,Qt.pick(Ke,ze))).Array,r=t.Date,i=t.Error,X=t.Function,de=t.Math,he=t.Object,pe=t.RegExp,ve=t.String,ge=t.TypeError,me=n.prototype,ye=X.prototype,be=he.prototype,we=t["__core-js_shared__"],xe=ye.toString,Oe=be.hasOwnProperty,Se=0,_e=function(){var e=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ee=be.toString,ke=xe.call(he),Ce=Ke._,Ae=pe("^"+xe.call(Oe).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=Qe?t.Buffer:void 0,Te=t.Symbol,Pe=t.Uint8Array,Ie=je?je.allocUnsafe:void 0,Re=Ut(he.getPrototypeOf,he),Ue=he.create,Ge=be.propertyIsEnumerable,We=me.splice,Ye=Te?Te.isConcatSpreadable:void 0,Xe=Te?Te.iterator:void 0,$e=Te?Te.toStringTag:void 0,Je=function(){try{var e=Zi(he,"defineProperty");return e({},"",{}),e}catch(t){}}(),yt=t.clearTimeout!==Ke.clearTimeout&&t.clearTimeout,kt=r&&r.now!==Ke.Date.now&&r.now,$t=t.setTimeout!==Ke.setTimeout&&t.setTimeout,Jt=de.ceil,Zt=de.floor,en=he.getOwnPropertySymbols,tn=je?je.isBuffer:void 0,nn=t.isFinite,rn=me.join,on=Ut(he.keys,he),an=de.max,sn=de.min,cn=r.now,un=t.parseInt,ln=de.random,fn=me.reverse,dn=Zi(t,"DataView"),hn=Zi(t,"Map"),pn=Zi(t,"Promise"),vn=Zi(t,"Set"),gn=Zi(t,"WeakMap"),mn=Zi(he,"create"),yn=gn&&new gn,bn={},wn=Co(dn),xn=Co(hn),On=Co(pn),Sn=Co(vn),_n=Co(gn),En=Te?Te.prototype:void 0,kn=En?En.valueOf:void 0,Cn=En?En.toString:void 0;function An(e){if(qa(e)&&!Na(e)&&!(e instanceof Mn)){if(e instanceof Pn)return e;if(Oe.call(e,"__wrapped__"))return Ao(e)}return new Pn(e)}var jn=function(){function e(){}return function(t){if(!Ha(t))return{};if(Ue)return Ue(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Tn(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Mn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,u=2&t,d=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ha(e))return e;var O=Na(e);if(O){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Oe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return mi(e,a)}else{var N=no(e),I=N==h||N==p;if(Da(e))return fi(e,s);if(N==m||N==c||I&&!i){if(a=u||I?{}:io(e),!s)return u?function(e,t){return yi(e,to(e),t)}(e,function(e,t){return e&&yi(t,xs(t),e)}(a,e)):function(e,t){return yi(e,eo(e),t)}(e,Wn(a,e))}else{if(!Ve[N])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case S:return di(e);case l:case f:return new r(+e);case _:return function(e,t){var n=t?di(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case E:case k:case C:case A:case j:case T:case"[object Uint8ClampedArray]":case P:case M:return hi(e,n);case v:return new r;case g:case w:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case x:return i=e,kn?he(kn.call(i)):{}}var i}(e,N,s)}}o||(o=new Dn);var L=o.get(e);if(L)return L;o.set(e,a),Xa(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):Ga(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var R=O?void 0:(d?u?Wi:Gi:u?xs:ws)(e);return st(R||e,(function(r,i){R&&(r=e[i=r]),Hn(a,i,Qn(r,t,n,i,e,o))})),a}function $n(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Jn(e,t,n){if("function"!=typeof e)throw new ge(o);return wo((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var i=-1,o=ft,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=ht(t,Pt(n))),r?(o=dt,a=!1):t.length>=200&&(o=Nt,a=!1,t=new Rn(t));e:for(;++i-1},In.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ln.prototype.clear=function(){this.size=0,this.__data__={hash:new Nn,map:new(hn||In),string:new Nn}},Ln.prototype.delete=function(e){var t=$i(this,e).delete(e);return this.size-=t?1:0,t},Ln.prototype.get=function(e){return $i(this,e).get(e)},Ln.prototype.has=function(e){return $i(this,e).has(e)},Ln.prototype.set=function(e,t){var n=$i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(e){return this.__data__.has(e)},Dn.prototype.clear=function(){this.__data__=new In,this.size=0},Dn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Dn.prototype.get=function(e){return this.__data__.get(e)},Dn.prototype.has=function(e){return this.__data__.has(e)},Dn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ln(r)}return n.set(e,t),this.size=n.size,this};var er=xi(cr),tr=xi(ur,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?or(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var ar=Oi(),sr=Oi(!0);function cr(e,t){return e&&ar(e,t,ws)}function ur(e,t){return e&&sr(e,t,ws)}function lr(e,t){return lt(t,(function(t){return Ba(e[t])}))}function fr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&nt}function vr(e,t){return null!=e&&Oe.call(e,t)}function gr(e,t){return null!=e&&t in he(e)}function mr(e,t,r){for(var i=r?dt:ft,o=e[0].length,a=e.length,s=a,c=n(a),u=1/0,l=[];s--;){var f=e[s];s&&t&&(f=ht(f,Pt(t))),u=sn(f.length,u),c[s]=!r&&(t||o>=120&&f.length>=120)?new Rn(s&&f):void 0}f=e[0];var d=-1,h=c[0];e:for(;++d=s)return c;var u=n[r];return c*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Nr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&We.call(s,c,1),We.call(e,c,1);return e}function Lr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?We.call(e,i,1):Zr(e,i)}}return e}function Rr(e,t){return e+Zt(ln()*(t-e+1))}function Dr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return xo(vo(e,t,Ws),e+"")}function Fr(e){return Fn(js(e))}function Br(e,t){var n=js(e);return _o(n,Xn(t,0,n.length))}function Vr(e,t,n,r){if(!Ha(e))return e;for(var i=-1,o=(t=si(t,e)).length,a=o-1,s=e;null!=s&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!$a(a)&&(n?a<=t:a=200){var u=t?null:Di(e);if(u)return qt(u);a=!1,i=Nt,c=new Rn}else c=t?[]:s;e:for(;++r=r?e:Gr(e,t,n)}var li=yt||function(e){return Ke.clearTimeout(e)};function fi(e,t){if(t)return e.slice();var n=e.length,r=Ie?Ie(n):new e.constructor(n);return e.copy(r),r}function di(e){var t=new e.constructor(e.byteLength);return new Pe(t).set(new Pe(e)),t}function hi(e,t){var n=t?di(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function pi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e===e,o=$a(e),a=void 0!==t,s=null===t,c=t===t,u=$a(t);if(!s&&!u&&!o&&e>t||o&&a&&c&&!s&&!u||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&e1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=he(t);++r-1?i[o?t[a]:a]:void 0}}function Ci(e){return qi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ge(o);if(i&&!s&&"wrapper"==Yi(a))var s=new Pn([],!0)}for(r=s?r:n;++r1&&b.reverse(),f&&us))return!1;var u=o.get(e),l=o.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,h=2&n?new Rn:void 0;for(o.set(e,t),o.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Q,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match($);return t?t[1].split(J):[]}(r),n)))}function So(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _o(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Yo(e,n)}));function ta(e){var t=An(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=qi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Mn&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ia=bi((function(e,t,n){Oe.call(e,n)?++e[n]:Kn(e,n,1)}));var oa=ki(Mo),aa=ki(No);function sa(e,t){return(Na(e)?st:er)(e,Qi(t,3))}function ca(e,t){return(Na(e)?ct:tr)(e,Qi(t,3))}var ua=bi((function(e,t,n){Oe.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var la=zr((function(e,t,r){var i=-1,o="function"==typeof t,a=La(e)?n(e.length):[];return er(e,(function(e){a[++i]=o?ot(t,e,r):yr(e,t,r)})),a})),fa=bi((function(e,t,n){Kn(e,n,t)}));function da(e,t){return(Na(e)?ht:Cr)(e,Qi(t,3))}var ha=bi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var pa=zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Mr(e,or(t,1),[])})),va=kt||function(){return Ke.Date.now()};function ga(e,t,n){return t=n?void 0:t,Fi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ma(e,t){var n;if("function"!=typeof t)throw new ge(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ya=zr((function(e,t,n){var r=1;if(n.length){var i=Ht(n,Xi(ya));r|=32}return Fi(e,r,t,n,i)})),ba=zr((function(e,t,n){var r=3;if(n.length){var i=Ht(n,Xi(ba));r|=32}return Fi(t,r,e,n,i)}));function wa(e,t,n){var r,i,a,s,c,u,l=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new ge(o);function p(t){var n=r,o=i;return r=i=void 0,l=t,s=e.apply(o,n)}function v(e){return l=e,c=wo(m,t),f?p(e):s}function g(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-l>=a}function m(){var e=va();if(g(e))return y(e);c=wo(m,function(e){var n=t-(e-u);return d?sn(n,a-(e-l)):n}(e))}function y(e){return c=void 0,h&&r?p(e):(r=i=void 0,s)}function b(){var e=va(),n=g(e);if(r=arguments,i=this,u=e,n){if(void 0===c)return v(u);if(d)return li(c),c=wo(m,t),p(u)}return void 0===c&&(c=wo(m,t)),s}return t=os(t)||0,Ha(n)&&(f=!!n.leading,a=(d="maxWait"in n)?an(os(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){void 0!==c&&li(c),l=0,r=u=i=c=void 0},b.flush=function(){return void 0===c?s:y(va())},b}var xa=zr((function(e,t){return Jn(e,1,t)})),Oa=zr((function(e,t,n){return Jn(e,os(t)||0,n)}));function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(o);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Sa.Cache||Ln),n}function _a(e){if("function"!=typeof e)throw new ge(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Sa.Cache=Ln;var Ea=ci((function(e,t){var n=(t=1==t.length&&Na(t[0])?ht(t[0],Pt(Qi())):ht(or(t,1),Pt(Qi()))).length;return zr((function(r){for(var i=-1,o=sn(r.length,n);++i=t})),Ma=br(function(){return arguments}())?br:function(e){return qa(e)&&Oe.call(e,"callee")&&!Ge.call(e,"callee")},Na=n.isArray,Ia=Ze?Pt(Ze):function(e){return qa(e)&&hr(e)==S};function La(e){return null!=e&&Ua(e.length)&&!Ba(e)}function Ra(e){return qa(e)&&La(e)}var Da=tn||oc,za=et?Pt(et):function(e){return qa(e)&&hr(e)==f};function Fa(e){if(!qa(e))return!1;var t=hr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ka(e)}function Ba(e){if(!Ha(e))return!1;var t=hr(e);return t==h||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Va(e){return"number"==typeof e&&e==rs(e)}function Ua(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ha(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qa(e){return null!=e&&"object"==typeof e}var Ga=tt?Pt(tt):function(e){return qa(e)&&no(e)==v};function Wa(e){return"number"==typeof e||qa(e)&&hr(e)==g}function Ka(e){if(!qa(e)||hr(e)!=m)return!1;var t=Re(e);if(null===t)return!0;var n=Oe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==ke}var Ya=nt?Pt(nt):function(e){return qa(e)&&hr(e)==y};var Xa=rt?Pt(rt):function(e){return qa(e)&&no(e)==b};function Qa(e){return"string"==typeof e||!Na(e)&&qa(e)&&hr(e)==w}function $a(e){return"symbol"==typeof e||qa(e)&&hr(e)==x}var Ja=it?Pt(it):function(e){return qa(e)&&Ua(e.length)&&!!Be[hr(e)]};var Za=Ii(kr),es=Ii((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(La(e))return Qa(e)?Kt(e):mi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=no(e);return(t==v?Vt:t==b?qt:js)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t===t?n?t-n:t:0}function is(e){return e?Xn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if($a(e))return NaN;if(Ha(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ha(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=oe.test(e);return n||se.test(e)?qe(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function as(e){return yi(e,xs(e))}function ss(e){return null==e?"":$r(e)}var cs=wi((function(e,t){if(fo(t)||La(t))yi(t,ws(t),e);else for(var n in t)Oe.call(t,n)&&Hn(e,n,t[n])})),us=wi((function(e,t){yi(t,xs(t),e)})),ls=wi((function(e,t,n,r){yi(t,xs(t),e,r)})),fs=wi((function(e,t,n,r){yi(t,ws(t),e,r)})),ds=qi(Yn);var hs=zr((function(e,t){e=he(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&so(t[0],t[1],i)&&(r=1);++n1),t})),yi(e,Wi(e),n),r&&(n=Qn(n,7,Ui));for(var i=t.length;i--;)Zr(n,t[i]);return n}));var Es=qi((function(e,t){return null==e?{}:function(e,t){return Nr(e,t,(function(t,n){return gs(e,n)}))}(e,t)}));function ks(e,t){if(null==e)return{};var n=ht(Wi(e),(function(e){return[e]}));return t=Qi(t),Nr(e,n,(function(e,n){return t(e,n[0])}))}var Cs=zi(ws),As=zi(xs);function js(e){return null==e?[]:Mt(e,ws(e))}var Ts=_i((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Fs(ss(e).toLowerCase())}function Ms(e){return(e=ss(e))&&e.replace(ue,Dt).replace(Ne,"")}var Ns=_i((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=_i((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ls=Si("toLowerCase");var Rs=_i((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ds=_i((function(e,t,n){return e+(n?" ":"")+Fs(t)}));var zs=_i((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fs=Si("toUpperCase");function Bs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return De.test(e)}(e)?function(e){return e.match(Le)||[]}(e):function(e){return e.match(Z)||[]}(e):e.match(t)||[]}var Vs=zr((function(e,t){try{return ot(e,void 0,t)}catch(n){return Fa(n)?n:new i(n)}})),Us=qi((function(e,t){return st(t,(function(t){t=ko(t),Kn(e,t,ya(e[t],e))})),e}));function Hs(e){return function(){return e}}var qs=Ci(),Gs=Ci(!0);function Ws(e){return e}function Ks(e){return Sr("function"==typeof e?e:Qn(e,1))}var Ys=zr((function(e,t){return function(n){return yr(n,e,t)}})),Xs=zr((function(e,t){return function(n){return yr(e,n,t)}}));function Qs(e,t,n){var r=ws(t),i=lr(t,r);null!=n||Ha(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=lr(t,ws(t)));var o=!(Ha(n)&&"chain"in n)||!!n.chain,a=Ba(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=mi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function $s(){}var Js=Pi(ht),Zs=Pi(ut),ec=Pi(mt);function tc(e){return co(e)?Et(ko(e)):function(e){return function(t){return fr(t,e)}}(e)}var nc=Ni(),rc=Ni(!0);function ic(){return[]}function oc(){return!1}var ac=Ti((function(e,t){return e+t}),0),sc=Ri("ceil"),cc=Ti((function(e,t){return e/t}),1),uc=Ri("floor");var lc=Ti((function(e,t){return e*t}),1),fc=Ri("round"),dc=Ti((function(e,t){return e-t}),0);return An.after=function(e,t){if("function"!=typeof t)throw new ge(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},An.ary=ga,An.assign=cs,An.assignIn=us,An.assignInWith=ls,An.assignWith=fs,An.at=ds,An.before=ma,An.bind=ya,An.bindAll=Us,An.bindKey=ba,An.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Na(e)?e:[e]},An.chain=ta,An.chunk=function(e,t,r){t=(r?so(e,t,r):void 0===t)?1:an(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=n(Jt(i/t));oi?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ya(t))&&!(t=$r(t))&&Bt(e)?ui(Kt(e),0,n):e.split(t,n):[]},An.spread=function(e,t){if("function"!=typeof e)throw new ge(o);return t=null==t?0:an(rs(t),0),zr((function(n){var r=n[t],i=ui(n,0,t);return r&&pt(i,r),ot(e,this,i)}))},An.tail=function(e){var t=null==e?0:e.length;return t?Gr(e,1,t):[]},An.take=function(e,t,n){return e&&e.length?Gr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},An.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},An.takeRightWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!1,!0):[]},An.takeWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3)):[]},An.tap=function(e,t){return t(e),e},An.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ge(o);return Ha(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:r,maxWait:t,trailing:i})},An.thru=na,An.toArray=ts,An.toPairs=Cs,An.toPairsIn=As,An.toPath=function(e){return Na(e)?ht(e,ko):$a(e)?[e]:mi(Eo(ss(e)))},An.toPlainObject=as,An.transform=function(e,t,n){var r=Na(e),i=r||Da(e)||Ja(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ha(e)&&Ba(o)?jn(Re(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},An.unary=function(e){return ga(e,1)},An.union=qo,An.unionBy=Go,An.unionWith=Wo,An.uniq=function(e){return e&&e.length?Jr(e):[]},An.uniqBy=function(e,t){return e&&e.length?Jr(e,Qi(t,2)):[]},An.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Jr(e,void 0,t):[]},An.unset=function(e,t){return null==e||Zr(e,t)},An.unzip=Ko,An.unzipWith=Yo,An.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},An.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,ai(n),r)},An.values=js,An.valuesIn=function(e){return null==e?[]:Mt(e,xs(e))},An.without=Xo,An.words=Bs,An.wrap=function(e,t){return ka(ai(t),e)},An.xor=Qo,An.xorBy=$o,An.xorWith=Jo,An.zip=Zo,An.zipObject=function(e,t){return ii(e||[],t||[],Hn)},An.zipObjectDeep=function(e,t){return ii(e||[],t||[],Vr)},An.zipWith=ea,An.entries=Cs,An.entriesIn=As,An.extend=us,An.extendWith=ls,Qs(An,An),An.add=ac,An.attempt=Vs,An.camelCase=Ts,An.capitalize=Ps,An.ceil=sc,An.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))===n?n:0),void 0!==t&&(t=(t=os(t))===t?t:0),Xn(os(e),t,n)},An.clone=function(e){return Qn(e,4)},An.cloneDeep=function(e){return Qn(e,5)},An.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},An.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},An.conformsTo=function(e,t){return null==t||$n(e,t,ws(t))},An.deburr=Ms,An.defaultTo=function(e,t){return null==e||e!==e?t:e},An.divide=cc,An.endsWith=function(e,t,n){e=ss(e),t=$r(t);var r=e.length,i=n=void 0===n?r:Xn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},An.eq=ja,An.escape=function(e){return(e=ss(e))&&F.test(e)?e.replace(D,zt):e},An.escapeRegExp=function(e){return(e=ss(e))&&K.test(e)?e.replace(W,"\\$&"):e},An.every=function(e,t,n){var r=Na(e)?ut:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Qi(t,3))},An.find=oa,An.findIndex=Mo,An.findKey=function(e,t){return bt(e,Qi(t,3),cr)},An.findLast=aa,An.findLastIndex=No,An.findLastKey=function(e,t){return bt(e,Qi(t,3),ur)},An.floor=uc,An.forEach=sa,An.forEachRight=ca,An.forIn=function(e,t){return null==e?e:ar(e,Qi(t,3),xs)},An.forInRight=function(e,t){return null==e?e:sr(e,Qi(t,3),xs)},An.forOwn=function(e,t){return e&&cr(e,Qi(t,3))},An.forOwnRight=function(e,t){return e&&ur(e,Qi(t,3))},An.get=vs,An.gt=Ta,An.gte=Pa,An.has=function(e,t){return null!=e&&ro(e,t,vr)},An.hasIn=gs,An.head=Lo,An.identity=Ws,An.includes=function(e,t,n,r){e=La(e)?e:js(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&xt(e,t,n)>-1},An.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),xt(e,t,i)},An.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e=-9007199254740991&&e<=9007199254740991},An.isSet=Xa,An.isString=Qa,An.isSymbol=$a,An.isTypedArray=Ja,An.isUndefined=function(e){return void 0===e},An.isWeakMap=function(e){return qa(e)&&no(e)==O},An.isWeakSet=function(e){return qa(e)&&"[object WeakSet]"==hr(e)},An.join=function(e,t){return null==e?"":rn.call(e,t)},An.kebabCase=Ns,An.last=Fo,An.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):wt(e,St,i,!0)},An.lowerCase=Is,An.lowerFirst=Ls,An.lt=Za,An.lte=es,An.max=function(e){return e&&e.length?rr(e,Ws,pr):void 0},An.maxBy=function(e,t){return e&&e.length?rr(e,Qi(t,2),pr):void 0},An.mean=function(e){return _t(e,Ws)},An.meanBy=function(e,t){return _t(e,Qi(t,2))},An.min=function(e){return e&&e.length?rr(e,Ws,kr):void 0},An.minBy=function(e,t){return e&&e.length?rr(e,Qi(t,2),kr):void 0},An.stubArray=ic,An.stubFalse=oc,An.stubObject=function(){return{}},An.stubString=function(){return""},An.stubTrue=function(){return!0},An.multiply=lc,An.nth=function(e,t){return e&&e.length?Pr(e,rs(t)):void 0},An.noConflict=function(){return Ke._===this&&(Ke._=Ce),this},An.noop=$s,An.now=va,An.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Wt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Mi(Zt(i),n)+e+Mi(Jt(i),n)},An.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Wt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=ln();return sn(e+i*(t-e+He("1e-"+((i+"").length-1))),t)}return Rr(e,t)},An.reduce=function(e,t,n){var r=Na(e)?vt:Ct,i=arguments.length<3;return r(e,Qi(t,4),n,i,er)},An.reduceRight=function(e,t,n){var r=Na(e)?gt:Ct,i=arguments.length<3;return r(e,Qi(t,4),n,i,tr)},An.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),Dr(ss(e),t)},An.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},An.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=jt(r,t=Qi(t));++n=o)return e;var s=n-Wt(r);if(s<1)return r;var c=a?ui(a,0,s).join(""):e.slice(0,s);if(void 0===i)return c+r;if(a&&(s+=c.length-s),Ya(i)){if(e.slice(s).search(i)){var u,l=c;for(i.global||(i=pe(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;u=i.exec(l);)var f=u.index;c=c.slice(0,void 0===f?s:f)}}else if(e.indexOf($r(i),s)!=s){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},An.unescape=function(e){return(e=ss(e))&&z.test(e)?e.replace(R,Xt):e},An.uniqueId=function(e){var t=++Se;return ss(e)+t},An.upperCase=zs,An.upperFirst=Fs,An.each=sa,An.eachRight=ca,An.first=Lo,Qs(An,function(){var e={};return cr(An,(function(t,n){Oe.call(An.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),An.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){An[e].placeholder=An})),st(["drop","take"],(function(e,t){Mn.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new Mn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Mn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Mn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Mn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Mn.prototype[e]=function(){return this.__filtered__?new Mn(this):this[n](1)}})),Mn.prototype.compact=function(){return this.filter(Ws)},Mn.prototype.find=function(e){return this.filter(e).head()},Mn.prototype.findLast=function(e){return this.reverse().find(e)},Mn.prototype.invokeMap=zr((function(e,t){return"function"==typeof e?new Mn(this):this.map((function(n){return yr(n,e,t)}))})),Mn.prototype.reject=function(e){return this.filter(_a(Qi(e)))},Mn.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Mn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Mn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Mn.prototype.toArray=function(){return this.take(4294967295)},cr(Mn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=An[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(An.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Mn,c=a[0],u=s||Na(t),l=function(e){var t=i.apply(An,pt([e],a));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(s=u=!1);var f=this.__chain__,d=!!this.__actions__.length,h=o&&!f,p=s&&!d;if(!o&&u){t=p?t:new Mn(this);var v=e.apply(t,a);return v.__actions__.push({func:na,args:[l],thisArg:void 0}),new Pn(v,f)}return h&&p?e.apply(this,a):(v=this.thru(l),h?r?v.value()[0]:v.value():v)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);An.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Na(i)?i:[],e)}return this[n]((function(n){return t.apply(Na(n)?n:[],e)}))}})),cr(Mn.prototype,(function(e,t){var n=An[t];if(n){var r=n.name+"";Oe.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}})),bn[Ai(void 0,2).name]=[{name:"wrapper",func:void 0}],Mn.prototype.clone=function(){var e=new Mn(this.__wrapped__);return e.__actions__=mi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=mi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=mi(this.__views__),e},Mn.prototype.reverse=function(){if(this.__filtered__){var e=new Mn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Mn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Na(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},An.prototype.plant=function(e){for(var t,n=this;n instanceof Tn;){var r=Ao(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},An.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Mn){var t=e;return this.__actions__.length&&(t=new Mn(this)),(t=t.reverse()).__actions__.push({func:na,args:[Ho],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Ho)},An.prototype.toJSON=An.prototype.valueOf=An.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},An.prototype.first=An.prototype.head,Xe&&(An.prototype[Xe]=function(){return this}),An}();Ke._=Qt,void 0===(i=function(){return Qt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(69),n(157)(e))},function(e,t,n){"use strict";var r=n(664),i=n(665);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),f=["%","/","?",";","#"].concat(l),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(666);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?N+="x":N+=M[I];if(!N.match(h)){var R=T.slice(0,C),D=T.slice(C+1),z=M.match(p);z&&(R.push(z[1]),D.unshift(z[2])),D.length&&(b="/"+D.join(".")+b),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[O])for(C=0,P=l.length;C0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=S.slice(-1)[0],k=(n.host||e.host||S.length>1)&&("."===E||".."===E)||""===E,C=0,A=S.length;A>=0;A--)"."===(E=S[A])?S.splice(A,1):".."===E?(S.splice(A,1),C++):C&&(S.splice(A,1),C--);if(!x&&!O)for(;C--;C)S.unshift("..");!x||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),k&&"/"!==S.join("/").substr(-1)&&S.push("");var j,T=""===S[0]||S[0]&&"/"===S[0].charAt(0);_&&(n.hostname=n.host=T?"":S.length?S.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(x=x||n.host&&S.length)&&!T&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){e.exports=n(767)},,function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0?this.subscriptions[r].unsubscribe():r=void 0,this.group=t,this.subgroups=n,Object.assign(a,{subgroups:this.subgroups}),this.subscribe(i,o,a,r)},e.prototype.error=function(e){var t=this,n=[];return d.forEachInEnum(u.Action,(function(r){n.push(t.subscriptions.length),t.subscribe(r,e)})),function(){n.map((function(e){return t.subscriptions[e]})).forEach((function(e){c.removeFromCollection(t.subscriptions,e,(function(e){e.unsubscribe()}))}))}},e.prototype.subscribe=function(e,t,n,r){var o,a=this,s=n||this.component,c=e.toUpperCase(),f="number"===typeof r?t:t.bind(this);o=u.isErrorEventName(e)?d.getEventNameSpace(l.Group.Error,e,i(i({},s),{type:""})):d.getEventNameSpace(this.group,e,s);var h=this.app.subscribe(o,f,n?n.id:this.id),p={eventType:c,unsubscribe:h,callback:f,component:s,updateSubscribe:function(e,t){return a.updateSubscription(p,e,t)}};return"number"===typeof r&&r>=0&&r=0?this.children[t]:void 0},t.prototype.getChildIndex=function(e){return this.children.findIndex((function(t){return t.id===e}))},t.prototype.getChildSubscriptions=function(e,t){return this.subscriptions.filter((function(n){return n.component.id===e&&(!t||t===n.eventType)}))},t.prototype.addChild=function(e,n,r){var i=this,o=e.subscriptions;return this.getChild(e.id)||this.children.push(e),!o||n===e.group&&r===e.subgroups||(o.forEach((function(e){(0,e.updateSubscribe)(n,r)})),Object.assign(e,{group:n,subgroups:r}),e instanceof t&&e.children.forEach((function(e){return i.addChild(e,n,r)}))),this},t.prototype.removeChild=function(e){var t=this;return c.removeFromCollection(this.children,this.getChild(e),(function(){t.subscriptions.filter((function(t){return t.component.id===e})).forEach((function(e){c.removeFromCollection(t.subscriptions,e,(function(e){e.unsubscribe()}))}))})),this},t.prototype.subscribeToChild=function(e,t,n){var r=this,i=n.bind(this);if(t instanceof Array)return t.forEach((function(t){return r.subscribeToChild(e,t,n)})),this;if("string"!==typeof t)return this;var o=t.toUpperCase(),a=this.getChildSubscriptions(e.id,o);if(a.length>0)a.forEach((function(t){return t.updateSubscribe(r.group,e.subgroups)}));else{var s={id:e.id,subgroups:e.subgroups,type:e.type};this.subscribe(o,i,s)}return this},t.prototype.getUpdatedChildActions=function(e,t){if(0!==e.length){for(var n=e.filter((function(e,t,n){return t===n.indexOf(e)})),r=n.map((function(e){return e.id})),i=t.filter((function(e){return r.indexOf(e.id)<0}));i.length>0;){if(!(o=i.pop()))break;this.removeChild(o.id)}return n}for(;t.length>0;){var o;if(!(o=t.pop()))break;this.removeChild(o.id)}},t}(h);function v(e,t,n){void 0===n&&(n=!1),e.forEach((function(e){n?(0,e.updateSubscribe)(t,[]):(0,e.unsubscribe)()})),n||(e.length=0)}t.ActionSetWithChildren=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return N}));var r,i=n(93),o=n(23),a=n(1),s=n(45),c=n(71),u=n(87),l=n(102),f=n(189),d=n(10),h=n(25);function p(e){return e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}));var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype[f.a]=function(){return this},t.prototype["@@observable"]=function(){return this},t}(u.a);function g(e){return Array.isArray(e)&&e.length>0}var m,y=function(e){function t(n){var r=n.graphQLErrors,i=n.networkError,o=n.errorMessage,a=n.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=r||[],s.networkError=i||null,s.message=o||function(e){var t="";return g(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var n=e?e.message:"Error message not found.";t+="GraphQL error: "+n+"\n"})),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=t.prototype,s}return Object(o.c)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(m||(m={}));var b=function(e){function t(t){var n=t.queryManager,r=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=r,a.variables=r.variables||{},a.queryId=n.generateQueryId(),a.shouldSubscribe=o;var c=Object(s.i)(r.query);return a.queryName=c&&c.name&&c.name.value,a.queryManager=n,a}return Object(o.c)(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:r.error}}var t,n,i,a=this.queryManager.getCurrentQueryResult(this),s=a.data,c=a.partial,u=this.queryManager.queryStore.get(this.queryId),l=this.options.fetchPolicy,f="network-only"===l||"no-cache"===l;if(u){var d=u.networkStatus;if(n=u,void 0===(i=this.options.errorPolicy)&&(i="none"),n&&(n.networkError||"none"===i&&g(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:d,error:new y({graphQLErrors:u.graphQLErrors,networkError:u.networkError})};u.variables&&(this.options.variables=Object(o.a)({},this.options.variables,u.variables),this.variables=this.options.variables),t={data:s,loading:p(d),networkStatus:d},u.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=u.graphQLErrors)}else{var h=f||c&&"cache-only"!==l;t={data:s,loading:h,networkStatus:h?r.loading:r.ready}}return c||this.updateLastResult(Object(o.a)({},t,{stale:!1})),Object(o.a)({},t,{partial:c})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(c.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new d.a(3)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(c.a)(this.variables,e)||(this.variables=Object(o.a)({},this.variables,e)),Object(c.a)(this.options.variables,this.variables)||(this.options.variables=Object(o.a)({},this.options.variables,this.variables)),this.queryManager.fetchQuery(this.queryId,Object(o.a)({},this.options,{fetchPolicy:t}),m.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(d.b)(e.updateQuery,4);var n=Object(o.a)({},e.query?e:Object(o.a)({},this.options,e,{variables:Object(o.a)({},this.variables,e.variables)}),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,m.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:n.variables})})),t.queryManager.stopQuery(r),i}),(function(e){throw t.queryManager.stopQuery(r),e}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(o.a)({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(c.a)(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,i=n.variables,o=n.document,a=Object(s.v)((function(){return e(r,{variables:i})}));a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){O(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(s.d)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=w)}catch(i){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(O(this),t.startPollingQuery(this.options,n));var i=function(t){e.updateLastResult(Object(o.a)({},e.lastResult,{errors:t.graphQLErrors,networkStatus:r.error,loading:!1})),x(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then((function(i){var a=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==s&&t.transform(o).serverQuery&&!Object(c.a)(a,i)?e.refetch():x(e.observers,"next",n)})):x(e.observers,"next",n)}},error:i}).catch(i)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(v);function w(e){}function x(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function O(e){var t=e.options.fetchPolicy;Object(d.b)("cache-first"!==t&&"cache-only"!==t,5)}var S=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),_=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(d.b)(!t||t.document===e.document||Object(c.a)(t.document,e.document),19);var n,i=!1,o=null;e.storePreviousVariables&&t&&t.networkStatus!==r.loading&&(Object(c.a)(t.variables,e.variables)||(i=!0,o=t.variables)),n=i?r.setVariables:e.isPoll?r.poll:e.isRefetch?r.refetch:r.loading;var a=[];t&&t.graphQLErrors&&(a=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:o,networkError:null,graphQLErrors:a,networkStatus:n,metadata:e.metadata},"string"===typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=r.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=g(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=r.ready,"string"===typeof n&&this.store[n]&&(this.store[n].networkStatus=r.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=r.error,"string"===typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=r.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=r.loading}))},e}();var E=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(s.p)(t.resolvers,e)})):this.resolvers=Object(s.p)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(o.b)(this,void 0,void 0,(function(){return Object(o.d)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,s).then((function(e){return Object(o.a)({},n,{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(s.m)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(s.r)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(o.a)({},e,{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(d.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Object(o.b)(this,void 0,void 0,(function(){return Object(o.d)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Object(o.a)({},t,e.exportedVariables)}))]:[2,Object(o.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(h.d)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return h.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(s.b)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,a){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),Object(o.b)(this,void 0,void 0,(function(){var c,u,l,f,d,h,p,v,g;return Object(o.d)(this,(function(m){var y;return c=Object(s.h)(e),u=Object(s.g)(e),l=Object(s.e)(u),f=c.operation,d=f?(y=f).charAt(0).toUpperCase()+y.slice(1):"Query",p=(h=this).cache,v=h.client,g={fragmentMap:l,context:Object(o.a)({},n,{cache:p,client:v}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(c.selectionSet,t,g).then((function(e){return{result:e,exportedVariables:g.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Object(o.b)(this,void 0,void 0,(function(){var r,i,a,c,u,l=this;return Object(o.d)(this,(function(f){return r=n.fragmentMap,i=n.context,a=n.variables,c=[t],u=function(e){return Object(o.b)(l,void 0,void 0,(function(){var u,l;return Object(o.d)(this,(function(o){return Object(s.u)(e,a)?Object(s.n)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&c.push(((n={})[Object(s.t)(e)]=t,n))}))]:(Object(s.o)(e)?u=e:(u=r[e.name.value],Object(d.b)(u,7)),u&&u.typeCondition&&(l=u.typeCondition.name.value,n.fragmentMatcher(t,l,i))?[2,this.resolveSelectionSet(u.selectionSet,t,n).then((function(e){c.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(u)).then((function(){return Object(s.q)(c)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Object(o.b)(this,void 0,void 0,(function(){var r,i,a,c,u,l,f,d,h,p=this;return Object(o.d)(this,(function(o){return r=n.variables,i=e.name.value,a=Object(s.t)(e),c=i!==a,u=t[a]||t[i],l=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=t.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(h=d[c?i:a])&&(l=Promise.resolve(h(t,Object(s.a)(e,r),n.context,{field:e})))),[2,l.then((function(t){return void 0===t&&(t=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}();function k(e){var t=new Set,n=null;return new v((function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}}))}var C=Object.prototype.hasOwnProperty,A=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,c=e.ssrMode,u=void 0!==c&&c,l=e.clientAwareness,f=void 0===l?{}:l,d=e.localState,h=e.assumeImmutableResults;this.mutationStore=new S,this.queryStore=new _,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(s.c?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=f,this.localState=d||new E({cache:i.getCache()}),this.ssrMode=u,this.assumeImmutableResults=!!h}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.fetchQueryRejectFns.forEach((function(e){e(new d.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,a=e.refetchQueries,c=void 0===a?[]:a,u=e.awaitRefetchQueries,l=void 0!==u&&u,f=e.update,h=e.errorPolicy,p=void 0===h?"none":h,v=e.fetchPolicy,m=e.context,b=void 0===m?{}:m;return Object(o.b)(this,void 0,void 0,(function(){var e,a,u,h=this;return Object(o.d)(this,(function(m){switch(m.label){case 0:return Object(d.b)(t,9),Object(d.b)(!v||"no-cache"===v,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,b)]:[3,2];case 1:n=m.sent(),m.label=2;case 2:return a=function(){var e={};return i&&h.queries.forEach((function(t,n){var r=t.observableQuery;if(r){var o=r.queryName;o&&C.call(i,o)&&(e[n]={updater:i[o],query:h.queryStore.get(n)})}})),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:a(),update:f,optimisticResponse:r}),this.broadcastQueries(),u=this,[2,new Promise((function(i,d){var h,m;u.getObservableFromLink(t,Object(o.a)({},b,{optimisticResponse:r}),n,!1).subscribe({next:function(r){Object(s.k)(r)&&"none"===p?m=new y({graphQLErrors:r.errors}):(u.mutationStore.markMutationResult(e),"no-cache"!==v&&u.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:a(),update:f}),h=r)},error:function(t){u.mutationStore.markMutationError(e,t),u.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),u.broadcastQueries(),u.setQuery(e,(function(){return{document:null}})),d(new y({networkError:t}))},complete:function(){if(m&&u.mutationStore.markMutationError(e,m),u.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),u.broadcastQueries(),m)d(m);else{"function"===typeof c&&(c=c(h));var t=[];g(c)&&c.forEach((function(e){if("string"===typeof e)u.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(u.query(n))}})),Promise.all(l?t:[]).then((function(){u.setQuery(e,(function(){return{document:null}})),"ignore"===p&&h&&Object(s.k)(h)&&delete h.errors,i(h)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,n,r){return Object(o.b)(this,void 0,void 0,(function(){var i,a,c,u,l,f,d,h,p,v,g,b,w,x,O,S,_,E,k=this;return Object(o.d)(this,(function(C){switch(C.label){case 0:return i=t.metadata,a=void 0===i?null:i,c=t.fetchPolicy,u=void 0===c?"cache-first":c,l=t.context,f=void 0===l?{}:l,d=this.transform(t.query).document,h=this.getVariables(d,t.variables),this.transform(d).hasClientExports?[4,this.localState.addExportedVariables(d,h,f)]:[3,2];case 1:h=C.sent(),C.label=2;case 2:if(t=Object(o.a)({},t,{variables:h}),g=v="network-only"===u||"no-cache"===u,v||(b=this.dataStore.getCache().diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),w=b.complete,x=b.result,g=!w||"cache-and-network"===u,p=x),O=g&&"cache-only"!==u&&"standby"!==u,Object(s.m)(["live"],d)&&(O=!0),S=this.idCounter++,_="no-cache"!==u?this.updateQueryWatch(e,d,t):void 0,this.setQuery(e,(function(){return{document:d,lastRequestId:S,invalidated:!0,cancel:_}})),this.invalidate(r),this.queryStore.initQuery({queryId:e,document:d,storePreviousVariables:O,variables:h,isPoll:n===m.poll,isRefetch:n===m.refetch,metadata:a,fetchMoreForQueryId:r}),this.broadcastQueries(),O){if(E=this.fetchRequest({requestId:S,queryId:e,document:d,options:t,fetchMoreForQueryId:r}).catch((function(t){throw t.hasOwnProperty("graphQLErrors")?t:(S>=k.getQuery(e).lastRequestId&&(k.queryStore.markQueryError(e,t,r),k.invalidate(e),k.invalidate(r),k.broadcastQueries()),new y({networkError:t}))})),"cache-and-network"!==u)return[2,E];E.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!O),this.invalidate(e),this.invalidate(r),this.transform(d).hasForcedResolvers?[2,this.localState.runResolvers({document:d,remoteResult:{data:p},context:f,variables:h,onlyRunForcedResolvers:!0}).then((function(n){return k.markQueryResult(e,n,t,r),k.broadcastQueries(),n}))]:(this.broadcastQueries(),[2,{data:p}])}}))}))},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(r){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,c=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var l=p(n.networkStatus),f=s&&s.getLastResult(),d=!(!f||f.networkStatus===n.networkStatus),h=t.returnPartialData||!o&&n.previousVariables||d&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!l||h){var v=g(n.graphQLErrors),m=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===m&&v||n.networkError)return i("error",new y({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var b=void 0,w=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&r.setQuery(e,(function(){return{newData:null}})),b=o.result,w=!o.complete;else{var x=s&&s.getLastError(),O="none"!==m&&(x&&x.graphQLErrors)!==n.graphQLErrors;if(f&&f.data&&!O)b=f.data,w=!1;else{var S=r.dataStore.getCache().diff({query:c,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});b=S.result,w=!S.complete}}var _=w&&!(t.returnPartialData||"cache-only"===u),E={data:_?f&&f.data:b,loading:l,networkStatus:n.networkStatus,stale:_};"all"===m&&v&&(E.errors=n.graphQLErrors),i("next",E)}catch(k){i("error",new y({networkError:k}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.dataStore.getCache(),r=n.transformDocument(e),i=Object(s.s)(n.transformForLink(r)),o=this.localState.clientQuery(r),a=this.localState.serverQuery(i),c={document:r,hasClientExports:Object(s.l)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Object(s.f)(Object(s.i)(r))},u=function(e){e&&!t.has(e)&&t.set(e,c)};u(e),u(r),u(o),u(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(o.a)({},this.transform(e).defaultVars,t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(d.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),"undefined"===typeof e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=Object(o.a)({},e);return new b({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(d.b)(e.query,12),Object(d.b)("Document"===e.query.kind,13),Object(d.b)(!e.returnPartialData,14),Object(d.b)(!e.pollInterval,15),new Promise((function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new d.a(16))}));var e=[];return this.queries.forEach((function(t,n){t.observableQuery&&e.push(n)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.variables;n=this.transform(n).document,i=this.getVariables(n,i);var o=function(e){return t.getObservableFromLink(n,{},e,!1).map((function(i){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(i,n,e),t.broadcastQueries()),Object(s.k)(i))throw new y({graphQLErrors:i.errors});return i}))};if(this.transform(n).hasClientExports){var a=this.localState.addExportedVariables(n,i).then(o);return new v((function(e){var t=null;return a.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),c=this.getQuery(e.queryId).newData;if(c&&c.complete)return{data:c.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),l=u.result,f=u.complete;return{data:f||a?l:void 0,partial:!f}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"===typeof e){var n=this.getQuery(e).observableQuery;Object(d.b)(n,17),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,n){t.invalidated&&t.listeners.forEach((function(r){r&&r(e.queryStore.get(n),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,a=this;void 0===r&&(r=this.queryDeduplication);var c=this.transform(e).serverQuery;if(c){var u=this.inFlightLinkObservables,f=this.link,d={query:c,variables:n,operationName:Object(s.j)(c)||void 0,context:this.prepareContext(Object(o.a)({},t,{forceFetch:!r}))};if(t=d.context,r){var h=u.get(c)||new Map;u.set(c,h);var p=JSON.stringify(n);if(!(i=h.get(p))){h.set(p,i=k(Object(l.b)(f,d)));var g=function(){h.delete(p),h.size||u.delete(c),m.unsubscribe()},m=i.subscribe({next:g,error:g,complete:g})}}else i=k(Object(l.b)(f,d))}else i=v.of({data:{}}),t=this.prepareContext(t);var y=this.transform(e).clientQuery;return y&&(i=function(e,t){return new v((function(n){var r=n.next,i=n.error,o=n.complete,a=0,s=!1,c={next:function(e){++a,new Promise((function(n){n(t(e))})).then((function(e){--a,r&&r.call(n,e),s&&c.complete()}),(function(e){--a,i&&i.call(n,e)}))},error:function(e){i&&i.call(n,e)},complete:function(){s=!0,a||o&&o.call(n)}},u=e.subscribe(c);return function(){return u.unsubscribe()}}))}(i,(function(e){return a.localState.runResolvers({document:y,remoteResult:e,context:t,variables:n})}))),i},e.prototype.fetchRequest=function(e){var t,n,i=this,o=e.requestId,a=e.queryId,s=e.document,c=e.options,u=e.fetchMoreForQueryId,l=c.variables,f=c.errorPolicy,d=void 0===f?"none":f,h=c.fetchPolicy;return new Promise((function(e,f){var p=i.getObservableFromLink(s,c.context,l),v="fetchRequest:"+a;i.fetchQueryRejectFns.set(v,f);var m=function(){i.fetchQueryRejectFns.delete(v),i.setQuery(a,(function(e){e.subscriptions.delete(b)}))},b=p.map((function(e){if(o>=i.getQuery(a).lastRequestId&&(i.markQueryResult(a,e,c,u),i.queryStore.markQueryResult(a,e,u),i.invalidate(a),i.invalidate(u),i.broadcastQueries()),"none"===d&&g(e.errors))return f(new y({graphQLErrors:e.errors}));if("all"===d&&(n=e.errors),u||"no-cache"===h)t=e.data;else{var r=i.dataStore.getCache().diff({variables:l,query:s,optimistic:!1,returnPartialData:!0}),p=r.result;(r.complete||c.returnPartialData)&&(t=p)}})).subscribe({error:function(e){m(),f(e)},complete:function(){m(),e({data:t,errors:n,loading:!1,networkStatus:r.ready,stale:!1})}});i.setQuery(a,(function(e){e.subscriptions.add(b)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),r=Object(o.a)({},n,t(n));this.queries.set(e,r)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(o.a)({},t,{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==r.ready&&t.networkStatus!==r.error},e.prototype.startPollingQuery=function(e,t,n){var r=this,i=e.pollInterval;if(Object(d.b)(i,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=i,a.options=Object(o.a)({},e,{fetchPolicy:"network-only"});var s=function(){var e=r.pollingInfoByQueryId.get(t);e&&(r.checkInFlight(t)?c():r.fetchQuery(t,e.options,m.poll).then(c,c))},c=function(){var e=r.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};n&&this.addQueryListener(t,n),c()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),j=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,i){void 0===i&&(i=!1);var o=!Object(s.k)(e);i&&Object(s.k)(e)&&e.data&&(o=!0),!r&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){Object(s.k)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"===typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(s.k)(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach((function(i){var o=r[i],a=o.query,c=o.updater,u=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),l=u.result;if(u.complete){var f=Object(s.v)((function(){return c(l,{mutationResult:e.result,queryName:Object(s.j)(a.document)||void 0,queryVariables:a.variables})}));f&&n.push({result:f,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(t){n.forEach((function(e){return t.write(e)}));var r=e.update;r&&Object(s.v)((function(){return r(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),T=(function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,c=e.queryDeduplication,u=void 0===c||c,f=e.defaultOptions,h=e.assumeImmutableResults,p=void 0!==h&&h,v=e.resolvers,g=e.typeDefs,m=e.fragmentMatcher,y=e.name,b=e.version,w=e.link;if(!w&&v&&(w=l.a.empty()),!w||!n)throw new d.a(1);this.link=w,this.cache=n,this.store=new j(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=u,this.defaultOptions=f||{},this.typeDefs=g,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);"undefined"!==typeof s&&(s&&"undefined"!==typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.4",this.localState=new E({cache:n,client:this,resolvers:v,fragmentMatcher:m}),this.queryManager=new A({link:this.link,store:this.store,queryDeduplication:u,ssrMode:i,clientAwareness:{name:y,version:b},localState:this.localState,assumeImmutableResults:p,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(o.a)({},this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(o.a)({},e,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(o.a)({},this.defaultOptions.query,e)),Object(d.b)("cache-and-network"!==e.fetchPolicy,2),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(o.a)({},e,{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(o.a)({},this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(l.b)(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)}}(),function(){function e(e,t){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=e||{},this.context=t||{}}return e.prototype.getOptions=function(){return this.options},e.prototype.setOptions=function(e,t){void 0===t&&(t=!1),t&&!Object(c.a)(this.options,e)&&(this.previousOptions=this.options),this.options=e},e.prototype.unmount=function(){this.isMounted=!1},e.prototype.refreshClient=function(){var e=this.options&&this.options.client||this.context&&this.context.client;Object(d.b)(!!e,2);var t=!1;return e!==this.client&&(t=!0,this.client=e,this.cleanup()),{client:this.client,isNew:t}},e.prototype.verifyDocumentType=function(e,t){var n=Object(i.e)(e);Object(i.d)(t),Object(i.d)(n.type);Object(d.b)(n.type===t,3)},e}()),P=function(e){function t(t){var n=t.options,r=t.context,i=t.onNewData,o=e.call(this,n,r)||this;return o.previousData={},o.currentObservable={},o.runLazy=!1,o.runLazyQuery=function(e){o.cleanup(),o.runLazy=!0,o.lazyOptions=e,o.onNewData()},o.getExecuteResult=function(){var e=o.getQueryResult();return o.startQuerySubscription(),e},o.obsRefetch=function(e){return o.currentObservable.query.refetch(e)},o.obsFetchMore=function(e){return o.currentObservable.query.fetchMore(e)},o.obsUpdateQuery=function(e){return o.currentObservable.query.updateQuery(e)},o.obsStartPolling=function(e){o.currentObservable&&o.currentObservable.query&&o.currentObservable.query.startPolling(e)},o.obsStopPolling=function(){o.currentObservable&&o.currentObservable.query&&o.currentObservable.query.stopPolling()},o.obsSubscribeToMore=function(e){return o.currentObservable.query.subscribeToMore(e)},o.onNewData=i,o}return Object(o.c)(t,e),t.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,n=e.query;return(t||n!==this.previousData.query)&&(this.removeQuerySubscription(),this.previousData.query=n),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},t.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:r.ready,called:!1,data:void 0}]},t.prototype.fetchData=function(){var e=this.getOptions();if(e.skip||!1===e.ssr)return!1;var t=this.currentObservable.query;return!!t.getCurrentResult().loading&&t.result()},t.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,n=void 0!==t&&t;return this.isMounted=!0,n&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},t.prototype.cleanup=function(){this.removeQuerySubscription(),delete this.currentObservable.query,delete this.previousData.result},t.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=Object(o.a)(Object(o.a)({},t.variables),this.lazyOptions.variables),t.context=Object(o.a)(Object(o.a)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},t.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},t.prototype.getExecuteSsrResult=function(){var e,t=!1===this.getOptions().ssr,n=this.refreshClient().client.disableNetworkFetches,i=Object(o.a)({loading:!0,networkStatus:r.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());return t&&(this.ssrInitiated()||n)?(this.previousData.result=i,i):(this.ssrInitiated()&&(e=this.context.renderPromises.addQueryPromise(this,this.getExecuteResult)||i),e)},t.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,i.b.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),Object(o.a)(Object(o.a)({},e),{displayName:t,context:e.context,metadata:{reactComponent:{displayName:t}}})},t.prototype.initializeObservableQuery=function(){var e,t;if(this.ssrInitiated()&&(this.currentObservable.query=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable.query){var n=this.prepareObservableQueryOptions();this.previousData.observableQueryOptions=Object(o.a)(Object(o.a)({},n),{children:null}),this.currentObservable.query=this.refreshClient().client.watchQuery(Object(o.a)({},n)),this.ssrInitiated()&&(null===(t=null===(e=this.context)||void 0===e?void 0:e.renderPromises)||void 0===t||t.registerSSRObservable(this.currentObservable.query,n))}},t.prototype.updateObservableQuery=function(){if(this.currentObservable.query){var e=Object(o.a)(Object(o.a)({},this.prepareObservableQueryOptions()),{children:null});Object(c.a)(e,this.previousData.observableQueryOptions)||(this.previousData.observableQueryOptions=e,this.currentObservable.query.setOptions(e).catch((function(){})))}else this.initializeObservableQuery()},t.prototype.startQuerySubscription=function(){var e=this;if(!this.currentObservable.subscription&&!this.getOptions().skip){var t=this.currentObservable.query;this.currentObservable.subscription=t.subscribe({next:function(t){var n=t.loading,r=t.networkStatus,i=t.data,o=e.previousData.result;o&&o.loading===n&&o.networkStatus===r&&Object(c.a)(o.data,i)||e.onNewData()},error:function(t){if(e.resubscribeToQuery(),!t.hasOwnProperty("graphQLErrors"))throw t;var n=e.previousData.result;(n&&n.loading||!Object(c.a)(t,e.previousData.error))&&(e.previousData.error=t,e.onNewData())}})}},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable.query.getLastError(),t=this.currentObservable.query.getLastResult();this.currentObservable.query.resetLastResults(),this.startQuerySubscription(),Object.assign(this.currentObservable.query,{lastError:e,lastResult:t})},t.prototype.getQueryResult=function(){var e=this.observableQueryFields(),t=this.getOptions();if(t.skip)e=Object(o.a)(Object(o.a)({},e),{data:void 0,error:void 0,loading:!1,called:!0});else{var n=this.currentObservable.query.getCurrentResult(),i=n.loading,a=n.partial,s=n.networkStatus,c=n.errors,u=n.error,l=n.data;if(c&&c.length>0&&(u=new y({graphQLErrors:c})),e=Object(o.a)(Object(o.a)({},e),{loading:i,networkStatus:s,error:u,called:!0}),i){var f=this.previousData.result&&this.previousData.result.data;e.data=f&&l?Object(o.a)(Object(o.a)({},f),l):f||l}else if(u)Object.assign(e,{data:(this.currentObservable.query.getLastResult()||{}).data});else{var d=this.currentObservable.query.options.fetchPolicy;if(t.partialRefetch&&!l&&a&&"cache-only"!==d)return Object.assign(e,{loading:!0,networkStatus:r.loading}),e.refetch(),e;e.data=l}}return e.client=this.client,this.previousData.loading=this.previousData.result&&this.previousData.result.loading||!1,this.previousData.result=e,this.currentObservable.query&&this.currentObservable.query.resetQueryStoreErrors(),e},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable.query&&this.previousData.result){var e=this.previousData.result,t=e.data,n=e.loading,r=e.error;if(!n){var i=this.getOptions(),o=i.query,a=i.variables,s=i.onCompleted,u=i.onError;if(this.previousOptions&&!this.previousData.loading&&Object(c.a)(this.previousOptions.query,o)&&Object(c.a)(this.previousOptions.variables,a))return;s&&!r?s(t):u&&r&&u(r)}}},t.prototype.removeQuerySubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t.prototype.observableQueryFields=function(){return{variables:this.currentObservable.query.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},t}(T);function M(e,t,n){void 0===n&&(n=!1);var r=Object(a.useContext)(Object(i.c)()),s=Object(a.useReducer)((function(e){return e+1}),0),u=s[0],l=s[1],f=t?Object(o.a)(Object(o.a)({},t),{query:e}):{query:e},d=Object(a.useRef)(),h=d.current||new P({options:f,context:r,onNewData:function(){h.ssrInitiated()?l():Promise.resolve().then(l)}});h.setOptions(f),h.context=r,h.ssrInitiated()&&!d.current&&(d.current=h);var p=function(e,t){var n=Object(a.useRef)();return n.current&&Object(c.a)(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}((function(){return n?h.executeLazy():h.execute()}),{options:Object(o.a)(Object(o.a)({},f),{onError:void 0,onCompleted:void 0}),context:r,tick:u}),v=n?p[1]:p;return Object(a.useEffect)((function(){return d.current||(d.current=h),function(){return h.cleanup()}}),[]),Object(a.useEffect)((function(){return h.afterExecute({lazy:n})}),[v.loading,v.networkStatus,v.error,v.data]),p}function N(e,t){return M(e,t,!1)}var I=function(e){function t(t){var n=t.options,r=t.context,o=t.result,a=t.setResult,s=e.call(this,n,r)||this;return s.runMutation=function(e){void 0===e&&(e={}),s.onMutationStart();var t=s.generateNewMutationId();return s.mutate(e).then((function(e){return s.onMutationCompleted(e,t),e})).catch((function(e){if(s.onMutationError(e,t),!s.getOptions().onError)throw e}))},s.verifyDocumentType(n.mutation,i.b.Mutation),s.result=o,s.setResult=a,s.mostRecentMutationId=0,s}return Object(o.c)(t,e),t.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,i.b.Mutation),e.client=this.refreshClient().client,[this.runMutation,e]},t.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},t.prototype.cleanup=function(){},t.prototype.mutate=function(e){var t=this.getOptions(),n=t.mutation,r=t.variables,i=t.optimisticResponse,a=t.update,s=t.context,c=void 0===s?{}:s,u=t.awaitRefetchQueries,l=void 0!==u&&u,f=t.fetchPolicy,d=Object(o.a)({},e),h=Object.assign({},r,d.variables);return delete d.variables,this.refreshClient().client.mutate(Object(o.a)({mutation:n,optimisticResponse:i,refetchQueries:d.refetchQueries||this.getOptions().refetchQueries,awaitRefetchQueries:l,update:a,context:c,fetchPolicy:f,variables:h},d))},t.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},t.prototype.onMutationCompleted=function(e,t){var n=this.getOptions(),r=n.onCompleted,i=n.ignoreResults,o=e.data,a=e.errors,s=a&&a.length>0?new y({graphQLErrors:a}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:o,error:s}),r&&r(o)},t.prototype.onMutationError=function(e,t){var n=this.getOptions().onError;this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0}),n&&n(e)},t.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},t.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},t.prototype.updateResult=function(e){!this.isMounted||this.previousResult&&Object(c.a)(this.previousResult,e)||(this.setResult(e),this.previousResult=e)},t}(T);function L(e,t){var n=Object(a.useContext)(Object(i.c)()),r=Object(a.useState)({called:!1,loading:!1}),s=r[0],c=r[1],u=t?Object(o.a)(Object(o.a)({},t),{mutation:e}):{mutation:e},l=Object(a.useRef)();var f=(l.current||(l.current=new I({options:u,context:n,result:s,setResult:c})),l.current);return f.setOptions(u),f.context=n,Object(a.useEffect)((function(){return f.afterExecute()})),f.execute(s)}!function(e){function t(t){var n=t.options,r=t.context,i=t.setResult,o=e.call(this,n,r)||this;return o.currentObservable={},o.setResult=i,o.initialize(n),o}Object(o.c)(t,e),t.prototype.execute=function(e){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var t=e;this.refreshClient().isNew&&(t=this.getLoadingResult());var n=this.getOptions().shouldResubscribe;return"function"===typeof n&&(n=!!n(this.getOptions())),!1!==n&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!Object(c.a)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),Object(o.a)(Object(o.a)({},t),{variables:this.getOptions().variables})},t.prototype.afterExecute=function(){this.isMounted=!0},t.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},t.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy}))},t.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},t.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},t.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},t.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},t.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},t.prototype.completeSubscription=function(){var e=this.getOptions().onSubscriptionComplete;e&&e(),this.endSubscription()},t.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)}}(T);!function(){function e(){this.queryPromises=new Map,this.queryInfoTrie=new Map}e.prototype.registerSSRObservable=function(e,t){this.lookupQueryInfo(t).observable=e},e.prototype.getSSRObservable=function(e){return this.lookupQueryInfo(e).observable},e.prototype.addQueryPromise=function(e,t){return this.lookupQueryInfo(e.getOptions()).seen?t():(this.queryPromises.set(e.getOptions(),new Promise((function(t){t(e.fetchData())}))),null)},e.prototype.hasPromises=function(){return this.queryPromises.size>0},e.prototype.consumeAndAwaitPromises=function(){var e=this,t=[];return this.queryPromises.forEach((function(n,r){e.lookupQueryInfo(r).seen=!0,t.push(n)})),this.queryPromises.clear(),Promise.all(t)},e.prototype.lookupQueryInfo=function(e){var t=this.queryInfoTrie,n=e.query,r=e.variables,i=t.get(n)||new Map;t.has(n)||t.set(n,i);var o=JSON.stringify(r),a=i.get(o)||{seen:!1,observable:null};return i.has(o)||i.set(o,a),a}}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n1)for(var n=1;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=new r.a("Amplify"),a=new(function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Logger=r.a,this.ServiceWorker=null}return e.prototype.register=function(e){o.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):o.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),o.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=i(e,2),r=(n[0],n[1]);Object.keys(r).forEach((function(e){t._modules[e]&&(r[e]=t._modules[e])}))})),this._components.map((function(e){e.configure(t._config)})),this._config):this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"===typeof e.getCategory&&this._components.map((function(t){t.addPluggable&&"function"===typeof t.addPluggable&&t.addPluggable(e)}))},e}())},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(216),i=n(41);function o(e,t){if(t&&("object"===Object(r.a)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Object(i.a)(e)}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),function(e){e.ENV="env",e.CONFIG="shared config entry"}(r||(r={}));var i=function(e,t,n){if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error("Cannot load "+n+' "'+t+'". Expected "true" or "false", got '+e[t]+".")}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return ke})),n.d(t,"b",(function(){return Q}));var r=n(35),i=n(190),o=n(170),a=n(143),s=n(142),c=n(119),u=n(120),l=n(28),f=n(20),d=n(78),h=n(1),p=n.n(h),v={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"===typeof e},str:function(e){return"string"===typeof e},num:function(e){return"number"===typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!==typeof t)return!1;if(v.str(e)||v.num(e))return e===t;if(v.obj(e)&&v.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!v.und(n)||e===t}};function g(){var e=Object(h.useState)(!1)[1];return Object(h.useCallback)((function(){return e((function(e){return!e}))}),[])}function m(e,t){return v.und(e)||v.nul(e)?t:e}function y(e){return v.und(e)?[]:v.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=d.startTime+c.duration;else if(c.decay)v=h+m/(1-.998)*(1-Math.exp(-(1-.998)*(n-d.startTime))),(u=Math.abs(d.lastPosition-v)<.1)&&(p=v);else{l=void 0!==d.lastTime?d.lastTime:n,m=void 0!==d.lastVelocity?d.lastVelocity:c.initialVelocity,n>l+64&&(l=n);for(var y=Math.floor(n-l),b=0;bp:v=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,c){var u=c?c(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r;return u}(e,o[t],o[t+1],i[t],i[t+1],c,a,s,r.map)}}var U=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e,r,i,o){var a;return Object(c.a)(this,n),(a=t.call(this)).calc=void 0,a.payload=e instanceof _&&!(e instanceof n)?e.getPayload():Array.isArray(e)?e:[e],a.calc=V(r,i,o),a}return Object(u.a)(n,[{key:"getValue",value:function(){return this.calc.apply(this,Object(r.a)(this.payload.map((function(e){return e.getValue()}))))}},{key:"updateConfig",value:function(e,t,n){this.calc=V(e,t,n)}},{key:"interpolate",value:function(e,t,r){return new n(this,e,t,r)}}]),n}(_);var H=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){var r,i;return Object(c.a)(this,n),r=t.call(this),i=Object(o.a)(r),r.animatedStyles=new Set,r.value=void 0,r.startPosition=void 0,r.lastPosition=void 0,r.lastVelocity=void 0,r.startTime=void 0,r.lastTime=void 0,r.done=!1,r.setValue=function(e,t){void 0===t&&(t=!0),i.value=e,t&&i.flush()},r.value=e,r.startPosition=e,r.lastPosition=e,r}return Object(u.a)(n,[{key:"flush",value:function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(e,t,n){return new U(this,e,t,n)}}]),n}(S),q=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(c.a)(this,n),(r=t.call(this)).payload=e.map((function(e){return new H(e)})),r}return Object(u.a)(n,[{key:"setValue",value:function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))}},{key:"getValue",value:function(){return this.payload.map((function(e){return e.getValue()}))}},{key:"interpolate",value:function(e,t){return new U(this,e,t)}}]),n}(_),G=0,W=function(){function e(){var t=this;Object(c.a)(this,e),this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return t.interpolations},this.id=G++}return Object(u.a)(e,[{key:"update",value:function(e){if(!e)return this;var t=w(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=Object(d.a)(t,["delay","to"]);if(v.arr(i)||v.fun(i))this.queue.push(Object(f.a)({},o,{delay:r,to:i}));else if(i){var a={};Object.entries(i).forEach((function(e){var t=e[0],n=e[1],i=Object(f.a)({to:Object(l.a)({},t,n),delay:b(r,t)},o),s=a[i.delay]&&a[i.delay].to;a[i.delay]=Object(f.a)({},a[i.delay],i,{to:Object(f.a)({},s,i.to)})})),this.queue=Object.values(a)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(o),this}},{key:"start",value:function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,o=void 0===i?{}:i;v.obj(r)&&(n.merged=Object(f.a)({},r,n.merged)),v.obj(o)&&(n.merged=Object(f.a)({},n.merged,o))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var a=t.delay,s=Object(d.a)(t,["delay"]),c=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},u=v.arr(s.to)||v.fun(s.to);a?setTimeout((function(){r===n.guid&&(u?n.runAsync(s,c):n.diff(s).start(c))}),a):u?n.runAsync(s,c):n.diff(s).start(c)}))}else v.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,F.has(t)||F.add(t),z||(z=!0,j(I||B));return this}},{key:"stop",value:function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this}},{key:"pause",value:function(e){var t;return this.stop(!0),e&&(t=this,F.has(t)&&F.delete(t)),this}},{key:"runAsync",value:function(e,t){var n=this,r=this,i=(e.delay,Object(d.a)(e,["delay"])),o=this.local,a=Promise.resolve(void 0);if(v.arr(i.to))for(var s=function(e){var t=e,r=Object(f.a)({},i,w(i.to[t]));v.arr(r.config)&&(r.config=r.config[t]),a=a.then((function(){if(o===n.guid)return new Promise((function(e){return n.diff(r).start(e)}))}))},c=0;c0&&$(S),v&&v(c,t,n))},onStart:m&&function(){return m(c,t)},onFrame:p&&function(e){return p(c,t,e)},delay:o,reset:u&&"enter"===t});d.update(h),S.current.paused||d.start()})),Object(h.useEffect)((function(){return S.current.mounted=O.current=!0,function(){S.current.mounted=O.current=!1,Array.from(S.current.instances).map((function(e){return e[1].destroy()})),S.current.instances.clear()}}),[]),S.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:S.current.instances.get(r).getValues()}}))}function $(e,t){var n,r=e.current.deleted,o=Object(i.a)(r);try{var a=function(){var r=n.value.key,i=function(e){return e.key!==r};(v.und(t)||t===r)&&(e.current.instances.delete(r),e.current.transitions=e.current.transitions.filter(i),e.current.deleted=e.current.deleted.filter(i))};for(o.s();!(n=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}e.current.forceUpdate()}var J=function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(c.a)(this,n),void 0===e&&(e={}),r=t.call(this),!e.transform||e.transform instanceof S||(e=x.transform(e)),r.payload=e,r}return Object(u.a)(n)}(E),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ee="[-+]?\\d*\\.?\\d+";function te(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=le(i,r,e+1/3),a=le(i,r,e),s=le(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function de(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function he(e){return(parseFloat(e)%360+360)%360/360}function pe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ve(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ge(e){var t=function(e){var t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ce.exec(e))?parseInt(t[1]+"ff",16)>>>0:Z.hasOwnProperty(e)?Z[e]:(t=ne.exec(e))?(de(t[1])<<24|de(t[2])<<16|de(t[3])<<8|255)>>>0:(t=re.exec(e))?(de(t[1])<<24|de(t[2])<<16|de(t[3])<<8|pe(t[4]))>>>0:(t=ae.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ue.exec(e))?parseInt(t[1],16)>>>0:(t=se.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ie.exec(e))?(255|fe(he(t[1]),ve(t[2]),ve(t[3])))>>>0:(t=oe.exec(e))?(fe(he(t[1]),ve(t[2]),ve(t[3]))|pe(t[4]))>>>0:null}(e);if(null===t)return e;var n=(16711680&(t=t||0))>>>16,r=(65280&t)>>>8,i=(255&t)/255;return"rgba(".concat((4278190080&t)>>>24,", ").concat(n,", ").concat(r,", ").concat(i,")")}var me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ye=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,be=new RegExp("(".concat(Object.keys(Z).join("|"),")"),"g"),we={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||we.hasOwnProperty(e)&&we[e]?(""+t).trim():t+"px"}we=Object.keys(we).reduce((function(e,t){return xe.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),we);var Se={};R((function(e){return new J(e)})),M("div"),T((function(e){var t=e.output.map((function(e){return e.replace(ye,ge)})).map((function(e){return e.replace(be,ge)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return V(Object(f.a)({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,i){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(i,")")}))}})),C(Z),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,i=t.scrollTop,o=t.scrollLeft,a=Object(d.a)(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var c in void 0!==i&&(e.scrollTop=i),void 0!==o&&(e.scrollLeft=o),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(c)){var u=0===c.indexOf("--"),l=Oe(c,n[c],u);"float"===c&&(c="cssFloat"),u?e.style.setProperty(c,l):e.style[c]=l}for(var f in a){var h=s?f:Se[f]||(Se[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));"undefined"!==typeof e.getAttribute(h)&&e.setAttribute(h,a[f])}}),(function(e){return e}));var _e,Ee,ke=(_e=function(e){return Object(h.forwardRef)((function(t,n){var r=g(),i=Object(h.useRef)(!0),o=Object(h.useRef)(null),a=Object(h.useRef)(null),s=Object(h.useCallback)((function(e){var t=o.current;o.current=new D(e,(function(){var e=!1;a.current&&(e=x.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);Object(h.useEffect)((function(){return function(){i.current=!1,o.current&&o.current.detach()}}),[]),Object(h.useImperativeHandle)(n,(function(){return L(a,i,r)})),s(t);var c,u=o.current.getValue(),l=(u.scrollTop,u.scrollLeft,Object(d.a)(u,["scrollTop","scrollLeft"])),m=(c=e,!v.fun(c)||c.prototype instanceof p.a.Component?function(e){return a.current=function(e,t){return t&&(v.fun(t)?t(e):v.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return p.a.createElement(e,Object(f.a)({},l,{ref:m}))}))},void 0===(Ee=!1)&&(Ee=!0),function(e){return(v.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ee?t[0].toLowerCase()+t.substring(1):t;return e[n]=_e(n),e}),_e)})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"])},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(641)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return K})),n.d(t,"f",(function(){return U})),n.d(t,"g",(function(){return ae})),n.d(t,"h",(function(){return z})),n.d(t,"i",(function(){return ce}));var r,i=function(){function e(e){var t=e||{},n=t.ValidationData,r=t.Username,i=t.Password,o=t.AuthParameters,a=t.ClientMetadata;this.validationData=n||{},this.authParameters=o||{},this.clientMetadata=a||{},this.username=r,this.password=i}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),o=n(30),a=n(89),s=n.n(a),c=(n(418),n(239)),u=n.n(c),l=n(214),f=n.n(l);function d(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")}"undefined"!==typeof window&&window.crypto&&(r=window.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto);var h,p=function(){function e(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length}var t=e.prototype;return t.random=function(t){for(var n=[],r=0;r>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(this)},e}(),v=g;function g(e,t){null!=e&&this.fromString(e,t)}function m(){return new g(null)}var y="undefined"!==typeof navigator;y&&"Microsoft Internet Explorer"==navigator.appName?(g.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var c=32767&this[e],u=this[e++]>>15,l=s*c+u*a;i=((c=a*c+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*u+(i>>>30),n[r++]=1073741823&c}return i},h=30):y&&"Netscape"!=navigator.appName?(g.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},h=26):(g.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var c=16383&this[e],u=this[e++]>>14,l=s*c+u*a;i=((c=a*c+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*u,n[r++]=268435455&c}return i},h=28),g.prototype.DB=h,g.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function k(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},k.prototype.revert=function(e){var t=m();return e.copyTo(t),this.reduce(t),t},k.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},k.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},k.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},g.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},g.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},g.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var a=S(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}this.clamp(),i&&g.ZERO.subTo(this,this)},g.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},g.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},g.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},g.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},g.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},g.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(c,o),i.lShiftTo(c,n)):(r.copyTo(o),i.copyTo(n));var u=o.t,l=o[u-1];if(0!=l){var f=l*(1<1?o[u-2]>>this.F2:0),d=this.FV/f,h=(1<=0&&(n[n.t++]=1,n.subTo(b,n)),g.ONE.dlShiftTo(u,b),b.subTo(o,o);o.t=0;){var w=n[--v]==l?this.DM:Math.floor(n[v]*d+(n[v-1]+p)*h);if((n[v]+=o.am(0,w,n,y,0,u))0&&n.rShiftTo(c,n),a<0&&g.ZERO.subTo(n,n)}}},g.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},g.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},g.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var n,r=(1<0)for(s>s)>0&&(i=!0,o=O(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=O(n));return i?o:"0"},g.prototype.negate=function(){var e=m();return g.ZERO.subTo(this,e),e},g.prototype.abs=function(){return this.s<0?this.negate():this},g.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},g.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+E(this[this.t-1]^this.s&this.DM)},g.prototype.mod=function(e){var t=m();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(g.ZERO)>0&&e.subTo(t,t),t},g.prototype.equals=function(e){return 0==this.compareTo(e)},g.prototype.add=function(e){var t=m();return this.addTo(e,t),t},g.prototype.subtract=function(e){var t=m();return this.subTo(e,t),t},g.prototype.multiply=function(e){var t=m();return this.multiplyTo(e,t),t},g.prototype.divide=function(e){var t=m();return this.divRemTo(e,t,null),t},g.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=_(1),a=new k(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6;var s=new Array,c=3,u=r-1,l=(1<1){var f=m();for(a.sqrTo(s[1],f);c<=l;)s[c]=m(),a.mulTo(f,s[c-2],s[c]),c+=2}var d,h,p=e.t-1,v=!0,g=m();for(i=E(e[p])-1;p>=0;){for(i>=u?d=e[p]>>i-u&l:(d=(e[p]&(1<0&&(d|=e[p-1]>>this.DB+i-u)),c=r;0==(1&d);)d>>=1,--c;if((i-=c)<0&&(i+=this.DB,--p),v)s[d].copyTo(o),v=!1;else{for(;c>1;)a.sqrTo(o,g),a.sqrTo(g,o),c-=2;c>0?a.sqrTo(o,g):(h=o,o=g,g=h),a.mulTo(g,s[d],o)}for(;p>=0&&0==(e[p]&1<e)&&n}}(n))})((function(t){return new Promise((function(n,i){r.request(e,t,(function(e,t){e?i(e):n(t)}))}))}),[t],5e3).then((function(e){return n(null,e)})).catch((function(e){return n(e)}))},t.request=function(e,t,n){var r,i={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":Q.prototype.userAgent},o=Object.assign({},this.fetchOptions,{headers:i,method:"POST",mode:"cors",cache:"no-cache",body:JSON.stringify(t)});fetch(this.endpoint,o).then((function(e){return r=e,e}),(function(e){if(e instanceof TypeError)throw new Error("Network error");throw e})).then((function(e){return e.json().catch((function(){return{}}))})).then((function(e){if(r.ok)return n(null,e);e;var t=(e.__type||e.code).split("#").pop(),i=new Error(e.message||e.Message||null);return i.name=t,i.code=t,n(i)})).catch((function(e){if(r&&r.headers&&r.headers.get("x-amzn-errortype"))try{var t=r.headers.get("x-amzn-errortype").split(":")[0],i=new Error(r.status?r.status.toString():null);return i.code=t,i.name=t,i.statusCode=r.status,n(i)}catch(o){return n(e)}else e instanceof Error&&"Network error"===e.message&&(e.code="NetworkError");return n(e)}))},e}(),oe=function(){};Error;var ae=function(){function e(e,t){var n=e||{},r=n.UserPoolId,i=n.ClientId,o=n.endpoint,a=n.fetchOptions,s=n.AdvancedSecurityDataCollectionFlag;if(!r||!i)throw new Error("Both UserPoolId and ClientId are required.");if(r.length>55||!/^[\w-]+_[0-9a-zA-Z]+$/.test(r))throw new Error("Invalid UserPoolId format.");var c=r.split("_")[0];this.userPoolId=r,this.clientId=i,this.client=new ie(c,o,a),this.advancedSecurityDataCollectionFlag=!1!==s,this.storage=e.Storage||(new G).getStorage(),t&&(this.wrapRefreshSessionCallback=t)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getClientId=function(){return this.clientId},t.signUp=function(e,t,n,r,i,o){var a=this,s={ClientId:this.clientId,Username:e,Password:t,UserAttributes:n,ValidationData:r,ClientMetadata:o};this.getUserContextData(e)&&(s.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",s,(function(t,n){if(t)return i(t,null);var r={Username:e,Pool:a,Storage:a.storage},o={user:new K(r),userConfirmed:n.UserConfirmed,userSub:n.UserSub,codeDeliveryDetails:n.CodeDeliveryDetails};return i(null,o)}))},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);if(t){var n={Username:t,Pool:this,Storage:this.storage};return new K(n)}return null},t.getUserContextData=function(e){if("undefined"!==typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var n=t.getData(e,this.userPoolId,this.clientId);if(n)return{EncodedData:n}}return{}}},e}(),se=n(140),ce=function(){function e(e){if(!e.domain)throw new Error("The domain of cookieStorage can not be undefined.");if(this.domain=e.domain,e.path?this.path=e.path:this.path="/",Object.prototype.hasOwnProperty.call(e,"expires")?this.expires=e.expires:this.expires=365,Object.prototype.hasOwnProperty.call(e,"secure")?this.secure=e.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!["strict","lax","none"].includes(e.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===e.sameSite&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=e.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(e,t){var n={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(n.sameSite=this.sameSite),se.set(e,t,n),se.get(e)},t.getItem=function(e){return se.get(e)},t.removeItem=function(e){var t={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(t.sameSite=this.sameSite),se.remove(e,t)},t.clear=function(){for(var e=se.get(),t=Object.keys(e).length,n=0;n>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},h=f.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},p=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,o);if(c){for(var f=0;fo?1*r:0})),!0},a=function(e,t){var n=Object.assign({},e);return t&&("string"===typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),i=r.filter((function(e){return n.endsWith("."+e.ext)}));return i.length>0?i[0].type:t},c=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},u=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},l=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},f=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},d=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof e&&null!=e.versions&&null!=e.versions.node}},h=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!v(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},p=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!v(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},v=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},g=function(){function e(){}return e.isEmpty=i,e.sortByField=o,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=c,e.generateRandomString=u,e.makeQuerablePromise=l,e.isWebWorker=f,e.browserOrNode=d,e.transferKeyToLowerCase=h,e.transferKeyToUpperCase=p,e.isStrictObject=v,e}()}).call(this,n(70))},,function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"m",(function(){return o})),n.d(t,"y",(function(){return a})),n.d(t,"n",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"l",(function(){return l})),n.d(t,"j",(function(){return f})),n.d(t,"p",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"s",(function(){return p})),n.d(t,"b",(function(){return v})),n.d(t,"k",(function(){return g})),n.d(t,"o",(function(){return m})),n.d(t,"D",(function(){return y})),n.d(t,"x",(function(){return b})),n.d(t,"w",(function(){return w})),n.d(t,"v",(function(){return x})),n.d(t,"c",(function(){return O})),n.d(t,"f",(function(){return S})),n.d(t,"q",(function(){return _})),n.d(t,"r",(function(){return E})),n.d(t,"t",(function(){return k})),n.d(t,"E",(function(){return C})),n.d(t,"F",(function(){return A})),n.d(t,"A",(function(){return j})),n.d(t,"B",(function(){return T})),n.d(t,"u",(function(){return P})),n.d(t,"z",(function(){return M})),n.d(t,"C",(function(){return N})),n.d(t,"I",(function(){return I})),n.d(t,"J",(function(){return L})),n.d(t,"d",(function(){return R})),n.d(t,"G",(function(){return D})),n.d(t,"H",(function(){return z})),n.d(t,"K",(function(){return F}));var r,i,o,a,s,c,u,l,f,d,h,p,v,g,m,y,b,w,x,O,S,_,E,k,C,A,j,T,P,M,N,I,L,R,D,z,F,B=n(0),V=n(2);!function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(r||(r={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.KMSKeyId&&{KMSKeyId:V.c})}}(i||(i={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(o||(o={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.Encryption&&{Encryption:i.filterSensitiveLog(e.Encryption)})}}(a||(a={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.S3&&{S3:a.filterSensitiveLog(e.S3)})}}(s||(s={})),function(e){e.IGNORE="IGNORE",e.NONE="NONE",e.USE="USE"}(c||(c={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(u||(u={})),function(e){e.DOCUMENT="DOCUMENT",e.LINES="LINES"}(l||(l={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(f||(f={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(d||(d={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(h||(h={})),function(e){e.ALWAYS="ALWAYS",e.ASNEEDED="ASNEEDED"}(p||(p={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(v||(v={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(g||(g={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(m||(m={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(y||(y={})),function(e){e.SELECT="SELECT"}(b||(b={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.OutputLocation&&{OutputLocation:s.filterSensitiveLog(e.OutputLocation)})}}(w||(w={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.RestoreRequest&&{RestoreRequest:w.filterSensitiveLog(e.RestoreRequest)})}}(x||(x={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(O||(O={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(S||(S={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(_||(_={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(E||(E={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(k||(k={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(C||(C={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(A||(A={})),function(e){e.visit=function(e,t){return void 0!==e.Records?t.Records(e.Records):void 0!==e.Stats?t.Stats(e.Stats):void 0!==e.Progress?t.Progress(e.Progress):void 0!==e.Cont?t.Cont(e.Cont):void 0!==e.End?t.End(e.End):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Records?{Records:k.filterSensitiveLog(e.Records)}:void 0!==e.Stats?{Stats:A.filterSensitiveLog(e.Stats)}:void 0!==e.Progress?{Progress:E.filterSensitiveLog(e.Progress)}:void 0!==e.Cont?{Cont:O.filterSensitiveLog(e.Cont)}:void 0!==e.End?{End:S.filterSensitiveLog(e.End)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(j||(j={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.Payload&&{Payload:"STREAMING_CONTENT"})}}(T||(T={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(P||(P={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(M||(M={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.SSECustomerKey&&{SSECustomerKey:V.c})}}(N||(N={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:V.c})}}(I||(I={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.SSECustomerKey&&{SSECustomerKey:V.c})}}(L||(L={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)({},e)}}(R||(R={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:V.c})}}(D||(D={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)(Object(B.a)({},e),e.SSECustomerKey&&{SSECustomerKey:V.c}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:V.c})}}(z||(z={})),function(e){e.filterSensitiveLog=function(e){return Object(B.a)(Object(B.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:V.c})}}(F||(F={}))},function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(297);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";var r=n(0),i=n(109),o=new Map,a=new Map,s=!0,c=!1;function u(e){return e.replace(/[\s,]+/g," ").trim()}function l(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=u((c=e.loc).source.body.substring(c.start,c.end)),o=a.get(r);o&&!o.has(i)?s&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||a.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var c})),Object(r.a)(Object(r.a)({},e),{definitions:n})}function f(e){var t=u(e);if(!o.has(t)){var n=Object(i.a)(e,{experimentalFragmentVariables:c,allowLegacyFragmentVariables:c});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");o.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(l(n)))}return o.get(t)}function d(e){for(var t=[],n=1;n=0;d--){var h=a[d];"."===h?o(a,d):".."===h?(o(a,d),f++):f&&(o(a,d),f--)}if(!u)for(;f--;f)a.unshift("..");!u||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var c=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},u=n(111);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function v(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=v(e,t,d(),w.location);l.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&ta&&(r=t.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",c.push(o.format(r,{count:a}))),c.length>0?t.message||c:void 0):t.message||this.notValid||"has an incorrect length"}},numericality:function(e,t,n,r,i){if(o.isDefined(e)){var a,s,c=[],u={greaterThan:function(e,t){return e>t},greaterThanOrEqualTo:function(e,t){return e>=t},equalTo:function(e,t){return e===t},lessThan:function(e,t){return ea&&(n=t.tooLate||t.message||this.tooLate||"must be no later than %{date}",n=o.format(n,{date:this.format(a,t),value:this.format(e,t)}),r.push(n)),r.length?o.unique(r):void 0)}}),{parse:null,format:null}),date:function(e,t){return t=o.extend({},t,{dateOnly:!0}),o.validators.datetime.call(o.validators.datetime,e,t)},format:function(e,t){(o.isString(t)||t instanceof RegExp)&&(t={pattern:t});var n,r=(t=o.extend({},this.options,t)).message||this.message||"is invalid",i=t.pattern;if(o.isDefined(e))return o.isString(e)?(o.isString(i)&&(i=new RegExp(t.pattern,t.flags)),(n=i.exec(e))&&n[0].length==e.length?void 0:r):r},inclusion:function(e,t){if(o.isDefined(e)&&(o.isArray(t)&&(t={within:t}),t=o.extend({},this.options,t),!o.contains(t.within,e))){var n=t.message||this.message||"^%{value} is not included in the list";return o.format(n,{value:e})}},exclusion:function(e,t){if(o.isDefined(e)&&(o.isArray(t)&&(t={within:t}),t=o.extend({},this.options,t),o.contains(t.within,e))){var n=t.message||this.message||"^%{value} is restricted";return o.isString(t.within[e])&&(e=t.within[e]),o.format(n,{value:e})}},email:o.extend((function(e,t){var n=(t=o.extend({},this.options,t)).message||this.message||"is not a valid email";if(o.isDefined(e))return o.isString(e)&&this.PATTERN.exec(e)?void 0:n}),{PATTERN:/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i}),equality:function(e,t,n,r,i){if(o.isDefined(e)){o.isString(t)&&(t={attribute:t});var a=(t=o.extend({},this.options,t)).message||this.message||"is not equal to %{attribute}";if(o.isEmpty(t.attribute)||!o.isString(t.attribute))throw new Error("The attribute must be a non empty string");var s=o.getDeepObjectValue(r,t.attribute),c=t.comparator||function(e,t){return e===t},u=t.prettify||i&&i.prettify||o.prettify;return c(e,s,t,n,r)?void 0:o.format(a,{attribute:u(t.attribute)})}},url:function(e,t){if(o.isDefined(e)){var n=(t=o.extend({},this.options,t)).message||this.message||"is not a valid url",r=t.schemes||this.schemes||["http","https"],i=t.allowLocal||this.allowLocal||!1,a=t.allowDataUrl||this.allowDataUrl||!1;if(!o.isString(e))return n;var s="^(?:(?:"+r.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",c="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";if(i?c+="?":s+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",s+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+c+")(?::\\d{2,5})?(?:[/?#]\\S*)?$",a){s="(?:"+s+")|(?:^data:(?:\\w+\\/[-+.\\w]+(?:;[\\w=]+)*)?(?:;base64)?,[A-Za-z0-9-_.!~\\*'();\\/?:@&=+$,%]*$)"}return new RegExp(s,"i").exec(e)?void 0:n}},type:o.extend((function(e,t,n,r,i){if(o.isString(t)&&(t={type:t}),o.isDefined(e)){var a,s=o.extend({},this.options,t),c=s.type;if(!o.isDefined(c))throw new Error("No type was specified");if(a=o.isFunction(c)?c:this.types[c],!o.isFunction(a))throw new Error("validate.validators.type.types."+c+" must be a function.");if(!a(e,s,n,r,i)){var u=t.message||this.messages[c]||this.message||s.message||(o.isFunction(c)?"must be of the correct type":"must be of type %{type}");return o.isFunction(u)&&(u=u(e,t,n,r,i)),o.format(u,{attribute:o.prettify(n),type:c})}}}),{types:{object:function(e){return o.isObject(e)&&!o.isArray(e)},array:o.isArray,integer:o.isInteger,number:o.isNumber,string:o.isString,date:o.isDate,boolean:o.isBoolean},messages:{}})},i.formatters={detailed:function(e){return e},flat:o.flattenErrorsToArray,grouped:function(e){var t;for(t in e=o.groupErrorsByAttribute(e))e[t]=o.flattenErrorsToArray(e[t]);return e},constraint:function(e){var t;for(t in e=o.groupErrorsByAttribute(e))e[t]=e[t].map((function(e){return e.validator})).sort();return e}},i.exposeModule(i,this,e,t,n(467))}).call(this,t,e,n(467))}).call(this,n(157)(e))},function(e,t,n){"use strict";var r=n(427),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r,i=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},a=function(){for(var e=[],t=0;t=l){var d=console.log.bind(console);t===r.ERROR&&console.error&&(d=console.error.bind(console)),t===r.WARN&&console.warn&&(d=console.warn.bind(console));var h="["+t+"] "+this._ts()+" "+this.name,p="";if(1===a.length&&"string"===typeof a[0])d(p=h+" - "+a[0]);else if(1===a.length)p=h+" "+a[0],d(h,a[0]);else if("string"===typeof a[0]){var v=a.slice(1);1===v.length&&(v=v[0]),p=h+" - "+a[0]+" "+v,d(h+" - "+a[0],v)}else p=h+" "+a,d(h,a);try{for(var g=i(this._pluggables),m=g.next();!m.done;m=g.next()){var y=m.value,b={message:p,timestamp:Date.now()};y.pushLogs([b])}}catch(w){n={error:w}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(n)throw n.error}}}},e.prototype.log=function(){for(var e=[],t=0;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0;n-=1){var r=e.charCodeAt(n);r>127&&r<=2047?t+=1:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&(n-=1)}return t}function a(){return(new Date).getTime()}function s(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var c={},u=(function(){function e(){}e.clear=function(){c={}},e.getItem=function(e){return c[e]||null},e.setItem=function(e,t){c[e]=t},e.removeItem=function(e){delete c[e]}}(),n(117)),l=new u.a("StorageCache"),f=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){s(this.config.capacityInBytes)||(l.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes),s(this.config.itemMaxSize)||(l.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),s(this.config.defaultTTL)||(l.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=i.defaultTTL),s(this.config.defaultPriority)||(l.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=i.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(l.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(l.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=i.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(l.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=i.warningThreshold);this.config.capacityInBytes>5242880&&(l.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,n){var r={key:e,data:t,timestamp:a(),visitedTime:a(),priority:n.priority,expires:n.expires,type:typeof t,byteSize:0};return r.byteSize=o(JSON.stringify(r)),r.byteSize=o(JSON.stringify(r)),r},e.prototype.configure=function(e){return e?(e.keyPrefix&&l.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),d=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=new u.a("Cache"),p=new(function(e){function t(t){var n=this,r=t?Object.assign({},i,t):i;return(n=e.call(this,r)||this).config.storage=r.storage,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind(n),n.removeItem=n.removeItem.bind(n),n}return d(t,e),t.prototype._decreaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t-e).toString())},t.prototype._increaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t+e).toString())},t.prototype._refreshItem=function(e,t){return e.visitedTime=a(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var t=this.config.storage.getItem(e),n=JSON.parse(t);return a()>=n.expires},t.prototype._removeItem=function(e,t){var n=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(n),this.config.storage.removeItem(e)},t.prototype._setItem=function(e,t){this._increaseCurSizeInBytes(t.byteSize);try{this.config.storage.setItem(e,JSON.stringify(t))}catch(n){this._decreaseCurSizeInBytes(t.byteSize),h.error("Failed to set item "+n)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,n=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>n?t:n},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],n=0;nt.priority?-1:e.priority5)h.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(r,t,i);if(o.byteSize>this.config.itemMaxSize)h.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var s=this.config.storage.getItem(r);if(s&&this._removeItem(r,JSON.parse(s).byteSize),this._isCacheFull(o.byteSize)){var c=this._findValidKeys();if(this._isCacheFull(o.byteSize)){var u=this._sizeToPop(o.byteSize);this._popOutItems(c,u)}}this._setItem(r,o)}catch(l){h.warn("setItem failed! "+l)}}}else h.warn("The value of item should not be undefined!");else h.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){h.log("Get item: key is "+e+" with options "+t);var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||r===this.cacheCurSizeKey)return h.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(n=this.config.storage.getItem(r))){if(!this._isExpired(r)){var i=JSON.parse(n);return(i=this._refreshItem(i,r)).data}this._removeItem(r,JSON.parse(n).byteSize),n=null}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null}catch(a){return h.warn("getItem failed! "+a),null}},t.prototype.removeItem=function(e){h.log("Remove item: key is "+e);var t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!==this.cacheCurSizeKey)try{var n=this.config.storage.getItem(t);n&&this._removeItem(t,JSON.parse(n).byteSize)}catch(r){h.warn("removeItem failed! "+r)}},t.prototype.clear=function(){h.log("Clear Cache");for(var e=[],t=0;t=300?[2,i]:[4,c(l,e)]):[2,i];case 2:return f=r.sent(),[4,u(f,e)];case 3:if(d=r.sent(),0===f.length)throw(h=new Error("S3 aborted request")).name="InternalError",h;return d&&d.match("")&&(o.statusCode=400),o.body=f,[2,i]}}))}))}}}(e),l)}}},d={step:"build",tags:["USE_REGIONAL_ENDPOINT","S3"],name:"useRegionalEndpointMiddleware",override:!0},h=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(r.e)(void 0,void 0,void 0,(function(){var i,o;return Object(r.g)(this,(function(s){switch(s.label){case 0:return i=n.request,!a.isInstance(i)||e.isCustomEndpoint?[2,t(Object(r.a)({},n))]:"s3.amazonaws.com"!==i.hostname?[3,1]:(i.hostname="s3.us-east-1.amazonaws.com",[3,3]);case 1:return o="aws-global",[4,e.region()];case 2:o===s.sent()&&(i.hostname="s3.amazonaws.com"),s.label=3;case 3:return[2,t(Object(r.a)({},n))]}}))}))}}}(e),d)}}},p=n(251);var v={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},g=function(e){return{applyToStack:function(e){e.add(function(){var e=this;return function(t){return function(n){return Object(r.e)(e,void 0,void 0,(function(){var e,i;return Object(r.g)(this,(function(o){if("string"===typeof(e=n.input.Bucket)&&!Object(p.b)(e)&&e.indexOf("/")>=0)throw(i=new Error("Bucket name shouldn't contain '/', received '"+e+"'")).name="InvalidBucketName",i;return[2,t(Object(r.a)({},n))]}))}))}}}(),v)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r={userAgent:"aws-amplify/4.3.2 js",product:"",navigator:null,isReactNative:!1};if("undefined"!==typeof navigator&&navigator.product)switch(r.product=navigator.product||"",r.navigator=navigator||null,navigator.product){case"ReactNative":r.userAgent="aws-amplify/4.3.2 react-native",r.isReactNative=!0;break;default:r.userAgent="aws-amplify/4.3.2 js",r.isReactNative=!1}var i=function(){return r.userAgent}},,,,function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(522),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return ue}));for(var r=n(116),i=n(20),o=n(219),a=n(167),s=n(33),c=n(67),u=n(68),l=n(41),f=n(74),d=n(77),h=n(54),p=n(1),v=n.n(p),g=n(137),m=n(29),y=n(82),b=n(40),w=n(125),x=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],O=new RegExp("["+x.map((function(e){return e.letters})).join("")+"]","g"),S={},_=0;_0,p=l-f-u,v=!1;p>n&&e.isBottom&&(o&&o(t),e.isBottom=!1),h&&e.isTop&&(s&&s(t),e.isTop=!1),h&&n>p?(i&&!e.isBottom&&i(t),d.scrollTop=l,v=!0,e.isBottom=!0):!h&&-n>u&&(a&&!e.isTop&&a(t),d.scrollTop=0,v=!0,e.isTop=!0),v&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var n=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,n)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return Object(u.a)(n,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"===typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"===typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"===typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"===typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"===typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"===typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return v.a.createElement(L,{innerRef:this.getScrollTarget},this.props.children)}}]),n}(p.Component);function $(e){var t=e.isEnabled,n=void 0===t||t,i=Object(r.a)(e,["isEnabled"]);return n?v.a.createElement(Q,i):i.children}var J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,i=t.label,o=t.isDisabled,a=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(i||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Z=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},ee=function(e){return!!e.isDisabled};var te={clearIndicator:b.k,container:b.i,control:b.j,dropdownIndicator:b.l,group:b.o,groupHeading:b.m,indicatorsContainer:b.q,indicatorSeparator:b.n,input:b.p,loadingIndicator:b.t,loadingMessage:b.r,menu:b.u,menuList:b.s,menuPortal:b.v,multiValue:b.w,multiValueLabel:b.x,multiValueRemove:b.y,noOptionsMessage:b.z,option:b.A,placeholder:b.B,singleValue:b.C,valueContainer:b.D};var ne={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ee,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(b.F)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},ce=1,ue=function(e){Object(f.a)(n,e);var t=oe(n);function n(e){var r;Object(c.a)(this,n),(r=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},r.blockOptionHover=!1,r.isComposing=!1,r.clearFocusValueOnUpdate=!1,r.commonProps=void 0,r.components=void 0,r.hasGroups=!1,r.initialTouchX=0,r.initialTouchY=0,r.inputIsHiddenAfterUpdate=void 0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.cacheComponents=function(e){r.components=Object(b.G)({components:e})},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;i(e,ie(ie({},t),{},{name:o}))},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,i=r.props,o=i.closeMenuOnSelect,a=i.isMulti;r.onInputChange("",{action:"set-value"}),o&&(r.inputIsHiddenAfterUpdate=!a,r.onMenuClose()),r.clearFocusValueOnUpdate=!0,r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=r.state.selectValue;if(i)if(r.isOptionSelected(e,o)){var s=r.getOptionValue(e);r.setValue(o.filter((function(e){return r.getOptionValue(e)!==s})),"deselect-option",e),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(e)}})}else r.isOptionDisabled(e,o)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue([].concat(Object(a.a)(o),[e]),"select-option",e),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));else r.isOptionDisabled(e,o)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue(e,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));n&&r.blurInput()},r.removeValue=function(e){var t=r.state.selectValue,n=r.getOptionValue(e),i=t.filter((function(e){return r.getOptionValue(e)!==n}));r.onChange(i.length?i:null,{action:"remove-value",removedValue:e}),r.announceAriaLiveSelection({event:"remove-value",context:{value:e?r.getOptionLabel(e):""}}),r.focusInput()},r.clearValue=function(){r.onChange(null,{action:"clear"})},r.popValue=function(){var e=r.state.selectValue,t=e[e.length-1],n=e.slice(0,e.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:t?r.getOptionLabel(t):""}}),r.onChange(n.length?n:null,{action:"pop-value",removedValue:t})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.inputIsHiddenAfterUpdate=!1,r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){var t=r.props,n=t.isSearchable,i=t.isMulti;r.props.onFocus&&r.props.onFocus(e),r.inputIsHiddenAfterUpdate=!1,r.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:i}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){var e=r.props,t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,c=t.isDisabled,u=t.menuIsOpen,l=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,h=r.state,p=h.focusedOption,v=h.focusedValue,g=h.selectValue;if(!c&&("function"!==typeof l||(l(e),!e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)r.removeValue(v);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!f||!p||d&&r.isOptionSelected(p,g))return;r.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(u){if(!p)return;if(r.isComposing)return;r.selectOption(p);break}return;case"Escape":u?(r.inputIsHiddenAfterUpdate=!1,r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&o&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!p)return;r.selectOption(p);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.buildMenuOptions=function(e,t){var n=e.inputValue,i=void 0===n?"":n,o=e.options,a=function(e,n){var o=r.isOptionDisabled(e,t),a=r.isOptionSelected(e,t),s=r.getOptionLabel(e),c=r.getOptionValue(e);if(!(r.shouldHideSelectedOptions()&&a||!r.filterOption({label:s,value:c,data:e},i))){var u=o?void 0:function(){return r.onOptionHover(e)},l=o?void 0:function(){return r.selectOption(e)},f="".concat(r.getElementId("option"),"-").concat(n);return{innerProps:{id:f,onClick:l,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:o,isSelected:a,key:f,label:s,type:"option",value:c}}};return o.reduce((function(e,t,n){if(t.options){r.hasGroups||(r.hasGroups=!0);var i=t.options.map((function(t,r){var i=a(t,"".concat(n,"-").concat(r));return i&&e.focusable.push(t),i})).filter(Boolean);if(i.length){var o="".concat(r.getElementId("group"),"-").concat(n);e.render.push({type:"group",key:o,data:t,options:i})}}else{var s=a(t,"".concat(n));s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var i=e.value;r.cacheComponents=Object(g.a)(r.cacheComponents,b.b).bind(Object(l.a)(r)),r.cacheComponents(e.components),r.instancePrefix="react-select-"+(r.props.instanceId||++ce);var s=Object(b.c)(i);r.buildMenuOptions=Object(g.a)(r.buildMenuOptions,(function(e,t){var n=e,r=Object(o.a)(n,2),i=r[0],a=r[1],s=t,c=Object(o.a)(s,2),u=c[0];return a===c[1]&&i.inputValue===u.inputValue&&i.options===u.options})).bind(Object(l.a)(r));var u=e.menuIsOpen?r.buildMenuOptions(e,s):{render:[],focusable:[]};return r.state.menuOptions=u,r.state.selectValue=s,r}return Object(u.a)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,i=t.menuIsOpen,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==i||e.inputValue!==o){var a=Object(b.c)(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},c=this.getNextFocusedValue(a),u=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:u,focusedValue:c})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Object(b.d)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildMenuOptions(this.props,r),a=this.props,s=a.isMulti,c=a.tabSelectsValue,u="first"===e?0:o.focusable.length-1;if(!s){var l=o.focusable.indexOf(r[0]);l>-1&&(u=l)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:o,focusedValue:null,focusedOption:o.focusable[u]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:c}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,i=this.state,o=i.selectValue,a=i.focusedValue;if(n){this.setState({focusedOption:null});var s=o.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var c=o.length-1,u=-1;if(o.length){switch(e){case"previous":u=0===s?0:-1===s?c:s-1;break;case"next":s>-1&&s0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,i=this.state,o=i.focusedOption,a=i.menuOptions,s=a.focusable;if(s.length){var c=0,u=s.indexOf(o);o||(u=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?c=u>0?u-1:s.length-1:"down"===e?c=(u+1)%s.length:"pageup"===e?(c=u-n)<0&&(c=0):"pagedown"===e?(c=u+n)>s.length-1&&(c=s.length-1):"last"===e&&(c=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[c],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:ee(s[c]),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(ne):ie(ie({},ne),this.props.theme):ne}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.setValue,o=this.selectOption,a=this.props,s=a.isMulti,c=a.isRtl,u=a.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:o,setValue:i,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"===typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"===typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,i=e.focusedOption,o=this.props,a=o.options,s=o.menuIsOpen,c=o.inputValue,u=o.screenReaderStatus,l=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=i&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:i,getOptionLabel:this.getOptionLabel,options:a}):"",d=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:c,screenReaderMessage:u({count:this.countOptions()})});return"".concat(l," ").concat(f," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,s=e.form,c=this.components.Input,u=this.state.inputIsHidden,l=r||this.getElementId("input"),f={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return v.a.createElement(N,Object(i.a)({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:b.e,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,form:s,value:""},f));var d=this.commonProps,h=d.cx,p=d.theme,g=d.selectProps;return v.a.createElement(c,Object(i.a)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:h,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:g,spellCheck:"false",tabIndex:a,form:s,theme:p,type:"text",value:o},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,c=t.Placeholder,u=this.commonProps,l=this.props,f=l.controlShouldRenderValue,d=l.isDisabled,h=l.isMulti,p=l.inputValue,g=l.placeholder,m=this.state,y=m.selectValue,b=m.focusedValue,w=m.isFocused;if(!this.hasValue()||!f)return p?null:v.a.createElement(c,Object(i.a)({},u,{key:"placeholder",isDisabled:d,isFocused:w}),g);if(h)return y.map((function(t,s){var c=t===b;return v.a.createElement(n,Object(i.a)({},u,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(p)return null;var x=y[0];return v.a.createElement(s,Object(i.a)({},u,{data:x,isDisabled:d}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.a.createElement(e,Object(i.a)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!e||!o)return null;return v.a.createElement(e,Object(i.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return v.a.createElement(n,Object(i.a)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.a.createElement(e,Object(i.a)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,o=t.GroupHeading,a=t.Menu,s=t.MenuList,c=t.MenuPortal,u=t.LoadingMessage,l=t.NoOptionsMessage,f=t.Option,d=this.commonProps,h=this.state,p=h.focusedOption,g=h.menuOptions,m=this.props,y=m.captureMenuScroll,w=m.inputValue,x=m.isLoading,O=m.loadingMessage,S=m.minMenuHeight,_=m.maxMenuHeight,E=m.menuIsOpen,k=m.menuPlacement,C=m.menuPosition,A=m.menuPortalTarget,j=m.menuShouldBlockScroll,T=m.menuShouldScrollIntoView,P=m.noOptionsMessage,M=m.onMenuScrollToTop,N=m.onMenuScrollToBottom;if(!E)return null;var I,L=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,v.a.createElement(f,Object(i.a)({},d,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=g.render.map((function(t){if("group"===t.type){t.type;var a=Object(r.a)(t,["type"]),s="".concat(t.key,"-heading");return v.a.createElement(n,Object(i.a)({},d,a,{Heading:o,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return L(e)})))}if("option"===t.type)return L(t)}));else if(x){var R=O({inputValue:w});if(null===R)return null;I=v.a.createElement(u,d,R)}else{var D=P({inputValue:w});if(null===D)return null;I=v.a.createElement(l,d,D)}var z={minMenuHeight:S,maxMenuHeight:_,menuPlacement:k,menuPosition:C,menuShouldScrollIntoView:T},F=v.a.createElement(b.h,Object(i.a)({},d,z),(function(t){var n=t.ref,r=t.placerProps,o=r.placement,c=r.maxHeight;return v.a.createElement(a,Object(i.a)({},d,z,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:x,placement:o}),v.a.createElement($,{isEnabled:y,onTopArrive:M,onBottomArrive:N},v.a.createElement(Y,{isEnabled:j},v.a.createElement(s,Object(i.a)({},d,{innerRef:e.getMenuListRef,isLoading:x,maxHeight:c}),I))))}));return A||"fixed"===C?v.a.createElement(c,Object(i.a)({},d,{appendTo:A,controlElement:this.controlRef,menuPlacement:k,menuPosition:C}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=this.state.selectValue;if(o&&!r){if(i){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return v.a.createElement("input",{name:o,type:"hidden",value:s})}var c=a.length>0?a.map((function(t,n){return v.a.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):v.a.createElement("input",{name:o,type:"hidden"});return v.a.createElement("div",null,c)}var u=a[0]?this.getOptionValue(a[0]):"";return v.a.createElement("input",{name:o,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?v.a.createElement(M,{"aria-live":"polite"},v.a.createElement("span",{id:"aria-selection-event"},"\xa0",this.state.ariaLiveSelection),v.a.createElement("span",{id:"aria-context"},"\xa0",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,c=a.id,u=a.isDisabled,l=a.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return v.a.createElement(r,Object(i.a)({},d,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),v.a.createElement(t,Object(i.a)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:l}),v.a.createElement(o,Object(i.a)({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),v.a.createElement(n,Object(i.a)({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),n}(p.Component);ue.defaultProps=se},function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,s;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)o(c,this,t);else{var u=c.length,l=g(c,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r,i,o=n(414),a=n(415),s=0,c=0;e.exports=function(e,t,n){var u=t&&n||0,l=t||[],f=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==d){var h=o();null==f&&(f=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==d&&(d=i=16383&(h[6]<<8|h[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:c+1,g=p-s+(v-c)/1e4;if(g<0&&void 0===e.clockseq&&(d=d+1&16383),(g<0||p>s)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,c=v,i=d;var m=(1e4*(268435455&(p+=122192928e5))+v)%4294967296;l[u++]=m>>>24&255,l[u++]=m>>>16&255,l[u++]=m>>>8&255,l[u++]=255&m;var y=p/4294967296*1e4&268435455;l[u++]=y>>>8&255,l[u++]=255&y,l[u++]=y>>>24&15|16,l[u++]=y>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(var b=0;b<6;++b)l[u+b]=f[b];return t||a(l)}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var s=function(e){return function(t,n){return function(r){return i(void 0,void 0,void 0,(function(){var i;return o(this,(function(o){return(null===(i=null===e||void 0===e?void 0:e.retryStrategy)||void 0===i?void 0:i.mode)&&(n.userAgent=function(){for(var e=[],t=0;t>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,_=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},I={};function L(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(I[e]=i),t&&(I[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=D(t,e.localeData()),N[t]=N[t]||function(e){var t,n,r,i=e.match(P);for(t=0,n=i.length;t=0&&M.test(e);)e=e.replace(M,r),M.lastIndex=0,n-=1;return e}var z={};function F(e,t){var n=e.toLowerCase();z[n]=z[n+"s"]=z[t]=e}function B(e){return"string"===typeof e?z[e]||z[e.toLowerCase()]:void 0}function V(e){var t,n,r={};for(n in e)a(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var U={};function H(e,t){U[e]=t}function q(e){return e%4===0&&e%100!==0||e%400===0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=G(t)),n}function K(e,t){return function(n){return null!=n?(X(this,e,n),r.updateOffset(this,t),this):Y(this,e)}}function Y(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function X(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=W(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Q,$=/\d/,J=/\d\d/,Z=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,ce=/\d+/,ue=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){Q[e]=C(t)?t:function(e,r){return e&&n?n:t}}function pe(e,t){return a(Q,e)?Q[e](t._strict,t._locale):new RegExp(ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var ge,me={};function ye(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=W(e)}),n=0;n68?1900:2e3)};var Me=K("FullYear",!0);function Ne(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function Ie(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Le(e,t,n){var r=7+t-n;return-(7+Ie(e,0,r).getUTCDay()-t)%7+r-1}function Re(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Le(e,r,i);return s<=0?a=Pe(o=e-1)+s:s>Pe(e)?(o=e+1,a=s-Pe(e)):(o=e,a=s),{year:o,dayOfYear:a}}function De(e,t,n){var r,i,o=Le(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+ze(i=e.year()-1,t,n):a>ze(e.year(),t,n)?(r=a-ze(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function ze(e,t,n){var r=Le(e,t,n),i=Le(e+1,t,n);return(Pe(e)-r+i)/7}function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),H("week",5),H("isoWeek",5),he("w",ne),he("ww",ne,J),he("W",ne),he("WW",ne,J),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=W(e)})),L("d",0,"do","day"),L("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),L("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),L("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),he("d",ne),he("e",ne),he("E",ne),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=W(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=de,qe=de,Ge=de;function We(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null}function Ke(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=ve(this.weekdaysMin(n,"")),i=ve(this.weekdaysShort(n,"")),o=ve(this.weekdays(n,"")),a.push(r),s.push(i),c.push(o),u.push(r),u.push(i),u.push(o);a.sort(e),s.sort(e),c.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ye(){return this.hours()%12||12}function Xe(e,t){L(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,Ye),L("k",["kk",2],0,(function(){return this.hours()||24})),L("hmm",0,0,(function(){return""+Ye.apply(this)+T(this.minutes(),2)})),L("hmmss",0,0,(function(){return""+Ye.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),L("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),L("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),Xe("a",!0),Xe("A",!1),F("hour","h"),H("hour",13),he("a",Qe),he("A",Qe),he("H",ne),he("h",ne),he("k",ne),he("HH",ne,J),he("hh",ne,J),he("kk",ne,J),he("hmm",re),he("hmmss",ie),he("Hmm",re),he("Hmmss",ie),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=W(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=W(e),p(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r)),p(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r,2)),t[5]=W(e.substr(i)),p(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=W(e.substr(0,r)),t[4]=W(e.substr(r,2)),t[5]=W(e.substr(i))}));var $e,Je=K("Hours",!0),Ze={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:Se,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Ue,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(i,n)>=t-1)break;t--}o++}return $e}(e)}function ct(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>xe(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,dt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pt=/^\/?Date\((-?\d+)/i,vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function mt(e){var t,n,r,i,o,a,s=e._i,c=ut.exec(s)||lt.exec(s);if(c){for(p(e).iso=!0,t=0,n=dt.length;t7)&&(c=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=De(Et(),o,a),n=wt(t.gg,e._a[0],u.year),r=wt(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(c=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(c=!0)):i=o),r<1||r>ze(n,o,a)?p(e)._overflowWeeks=!0:null!=c?p(e)._overflowWeekday=!0:(s=Re(n,r,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=wt(e._a[0],i[0]),(e._dayOfYear>Pe(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ie(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ie:Ne).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}function Ot(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,o,a,s,c=""+e._i,u=c.length,l=0;for(i=D(e._f,e._locale).match(P)||[],t=0;t0&&p(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),l+=n.length),I[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),we(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-l,c.length>0&&p(e).unusedInput.push(c),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),xt(e),ct(e)}else bt(e);else mt(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new w(ct(t)):(l(t)?e._d=t:i(n)?function(e){var t,n,r,i,o,a,s=!1;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:g()}));function At(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Et();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e(o=ze(e,r,i))&&(t=o),un.call(this,e,t,n,r,i))}function un(e,t,n,r,i){var o=Re(e,t,n,r,i),a=Ie(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),he("N",on),he("NN",on),he("NNN",on),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?p(n).era=i:p(n).invalidEra=e})),he("y",ce),he("yy",ce),he("yyy",ce),he("yyyy",ce),he("yo",(function(e,t){return t._eraYearOrdinalRegex||ce})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),L(0,["gg",2],0,(function(){return this.weekYear()%100})),L(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),he("G",ue),he("g",ue),he("GG",ne,J),he("gg",ne,J),he("GGGG",ae,ee),he("gggg",ae,ee),he("GGGGG",se,te),he("ggggg",se,te),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=W(e)})),be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),L("Q",0,"Qo","quarter"),F("quarter","Q"),H("quarter",7),he("Q",$),ye("Q",(function(e,t){t[1]=3*(W(e)-1)})),L("D",["DD",2],"Do","date"),F("date","D"),H("date",9),he("D",ne),he("DD",ne,J),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=W(e.match(ne)[0])}));var ln=K("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),H("dayOfYear",4),he("DDD",oe),he("DDDD",Z),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=W(e)})),L("m",["mm",2],0,"minute"),F("minute","m"),H("minute",14),he("m",ne),he("mm",ne,J),ye(["m","mm"],4);var fn=K("Minutes",!1);L("s",["ss",2],0,"second"),F("second","s"),H("second",15),he("s",ne),he("ss",ne,J),ye(["s","ss"],5);var dn,hn,pn=K("Seconds",!1);for(L("S",0,0,(function(){return~~(this.millisecond()/100)})),L(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),L(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),L(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),L(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),L(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),L(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),H("millisecond",16),he("S",oe,$),he("SS",oe,J),he("SSS",oe,Z),dn="SSSS";dn.length<=9;dn+="S")he(dn,ce);function vn(e,t){t[6]=W(1e3*("0."+e))}for(dn="S";dn.length<=9;dn+="S")ye(dn,vn);hn=K("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var gn=w.prototype;function mn(e){return e}gn.add=Wt,gn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Et(),i=Rt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(C(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Et(n)))},gn.clone=function(){return new w(this)},gn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Rt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":o=$t(this,r)/12;break;case"month":o=$t(this,r);break;case"quarter":o=$t(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:G(o)},gn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},gn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},gn.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Et(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.fromNow=function(e){return this.from(Et(),e)},gn.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Et(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.toNow=function(e){return this.to(Et(),e)},gn.get=function(e){return C(this[e=B(e)])?this[e]():this},gn.invalidAt=function(){return p(this).overflow},gn.isAfter=function(e,t){var n=x(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?R(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(gn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gn.toJSON=function(){return this.isValid()?this.toISOString():null},gn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gn.unix=function(){return Math.floor(this.valueOf()/1e3)},gn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gn.isLocal=function(){return!!this.isValid()&&!this._isUTC},gn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gn.isUtc=zt,gn.isUTC=zt,gn.zoneAbbr=function(){return this._isUTC?"UTC":""},gn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gn.dates=S("dates accessor is deprecated. Use date instead.",ln),gn.months=S("months accessor is deprecated. Use month instead",je),gn.years=S("years accessor is deprecated. Use year instead",Me),gn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),gn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=St(t))._a?(e=t._isUTC?h(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=j.prototype;function bn(e,t,n,r){var i=st(),o=h().set(r,t);return i[n](o,e)}function wn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=bn(e,r,n,"month");return i}function xn(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=st(),a=e?o._week.dow:0,s=[];if(null!=n)return bn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=bn(t,(i+a)%7,r,"day");return s}yn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=mn,yn.postformat=mn,yn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return C(i)?i(e,t,n,r):i.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)a(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,i,o,a=this._eras||st("en")._eras;for(n=0,i=a.length;n=0)return c[r]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_e).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_e.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Ce.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},yn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Te.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ke),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Te.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ee),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return De(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Fe(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===W(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",st);var On=Math.abs;function Sn(e,t,n,r){var i=Vt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function En(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function Cn(e){return function(){return this.as(e)}}var An=Cn("ms"),jn=Cn("s"),Tn=Cn("m"),Pn=Cn("h"),Mn=Cn("d"),Nn=Cn("w"),In=Cn("M"),Ln=Cn("Q"),Rn=Cn("y");function Dn(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Dn("milliseconds"),Fn=Dn("seconds"),Bn=Dn("minutes"),Vn=Dn("hours"),Un=Dn("days"),Hn=Dn("months"),qn=Dn("years"),Gn=Math.round,Wn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Yn=Math.abs;function Xn(e){return(e>0)-(e<0)||+e}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,c=Yn(this._milliseconds)/1e3,u=Yn(this._days),l=Yn(this._months),f=this.asSeconds();return f?(e=G(c/60),t=G(e/60),c%=60,e%=60,n=G(l/12),l%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",o=Xn(this._months)!==Xn(f)?"-":"",a=Xn(this._days)!==Xn(f)?"-":"",s=Xn(this._milliseconds)!==Xn(f)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(u?a+u+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+r+"S":"")):"P0D"}var $n=Tt.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var e=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),e.milliseconds=On(e.milliseconds),e.seconds=On(e.seconds),e.minutes=On(e.minutes),e.hours=On(e.hours),e.months=On(e.months),e.years=On(e.years),this},$n.add=function(e,t){return Sn(this,e,t,1)},$n.subtract=function(e,t){return Sn(this,e,t,-1)},$n.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+En(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},$n.asMilliseconds=An,$n.asSeconds=jn,$n.asMinutes=Tn,$n.asHours=Pn,$n.asDays=Mn,$n.asWeeks=Nn,$n.asMonths=In,$n.asQuarters=Ln,$n.asYears=Rn,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},$n._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,c=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*_n(kn(s)+a),a=0,s=0),c.milliseconds=o%1e3,e=G(o/1e3),c.seconds=e%60,t=G(e/60),c.minutes=t%60,n=G(t/60),c.hours=n%24,a+=G(n/24),i=G(En(a)),s+=i,a-=_n(kn(i)),r=G(s/12),s%=12,c.days=a,c.months=s,c.years=r,this},$n.clone=function(){return Vt(this)},$n.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},$n.milliseconds=zn,$n.seconds=Fn,$n.minutes=Bn,$n.hours=Vn,$n.days=Un,$n.weeks=function(){return G(this.days()/7)},$n.months=Hn,$n.years=qn,$n.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=Wn;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},Wn,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var i=Vt(e).abs(),o=Gn(i.as("s")),a=Gn(i.as("m")),s=Gn(i.as("h")),c=Gn(i.as("d")),u=Gn(i.as("M")),l=Gn(i.as("w")),f=Gn(i.as("y")),d=o<=n.ss&&["s",o]||o0,d[4]=r,Kn.apply(null,d)}(this,!i,o,n),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},$n.toISOString=Qn,$n.toString=Qn,$n.toJSON=Qn,$n.locale=Jt,$n.localeData=en,$n.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),$n.lang=Zt,L("X",0,0,"unix"),L("x",0,0,"valueOf"),he("x",ue),he("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(W(e))})),r.version="2.29.1",t=Et,r.fn=gn,r.min=function(){var e=[].slice.call(arguments,0);return At("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return At("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return Et(1e3*e)},r.months=function(e,t){return wn(e,t,"months")},r.isDate=l,r.locale=ot,r.invalid=g,r.duration=Vt,r.isMoment=x,r.weekdays=function(e,t,n){return xn(e,t,n,"weekdays")},r.parseZone=function(){return Et.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=Pt,r.monthsShort=function(e,t){return wn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return xn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,i=Ze;null!=et[e]&&null!=et[e].parentLocale?et[e].set(A(et[e]._config,t)):(null!=(r=it(e))&&(i=r._config),t=A(i,t),null==r&&(t.abbr=e),(n=new j(t)).parentLocale=et[e],et[e]=n),ot(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===ot()&&ot(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return _(et)},r.weekdaysShort=function(e,t,n){return xn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?Gn:"function"===typeof e&&(Gn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Wn[e]&&(void 0===t?Wn[e]:(Wn[e]=t,"s"===e&&(Wn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=gn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(157)(e))},function(e,t,n){"use strict";var r=n(211),i=n.n(r).a;t.a=i},function(e,t,n){"use strict";var r,i;n.d(t,"a",(function(){return i})),function(e){e.API_KEY="API_KEY",e.AWS_IAM="AWS_IAM",e.OPENID_CONNECT="OPENID_CONNECT",e.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",e.AWS_LAMBDA="AWS_LAMBDA"}(r||(r={})),function(e){e.NO_API_KEY="No api-key configured",e.NO_CURRENT_USER="No current user",e.NO_CREDENTIALS="No credentials",e.NO_FEDERATED_JWT="No federated jwt",e.NO_AUTH_TOKEN="No auth token specified"}(i||(i={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return fe})),n.d(t,"b",(function(){return pe})),n.d(t,"c",(function(){return ne}));var r=n(20),i=n(219),o=n(33);function a(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(x)}}]),e}();function x(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function O(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var S={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},_=function(){if("undefined"===typeof window||"undefined"===typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function E(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function k(e,t){e.style["".concat(_,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function C(e,t){e.style["".concat(_,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function A(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function j(e,t,n){return Math.max(e,Math.min(n,t))}function T(e){return"px"===e.substr(-2)?parseFloat(e):0}function P(e){var t=window.getComputedStyle(e);return{bottom:T(t.marginBottom),left:T(t.marginLeft),right:T(t.marginRight),top:T(t.marginTop)}}function M(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function N(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function I(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function L(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:R(e.parentNode,t,r)}}function D(e,t,n){return et?e-1:e>n&&e0&&n[t].height>0)&&e.getContext("2d").drawImage(n[t],0,0)})),r}function ne(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return Object(s.a)(this,n),Object(u.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(f.a)(n,t),Object(c.a)(n,[{key:"componentDidMount",value:function(){Object(g.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return y()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=i.withRef?"wrappedInstance":null;return Object(h.createElement)(e,Object(r.a)({ref:t},this.props))}}]),n}(h.Component),Object(o.a)(t,"displayName",M("sortableHandle",e)),n}function re(e){return null!=e.sortableHandle}var ie=function(){function e(t,n){Object(s.a)(this,e),this.container=t,this.onScrollCallback=n}return Object(c.a)(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,i=e.maxTranslate,o=e.width,a=e.height,s={x:0,y:0},c={x:1,y:1},u=10,l=10,f=this.container,d=f.scrollTop,h=f.scrollLeft,p=f.scrollHeight,v=f.scrollWidth,g=0===d,m=p-d-f.clientHeight===0,y=0===h,b=v-h-f.clientWidth===0;n.y>=i.y-a/2&&!m?(s.y=1,c.y=l*Math.abs((i.y-a/2-n.y)/a)):n.x>=i.x-o/2&&!b?(s.x=1,c.x=u*Math.abs((i.x-o/2-n.x)/o)):n.y<=r.y+a/2&&!g?(s.y=-1,c.y=l*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+o/2&&!y&&(s.x=-1,c.x=u*Math.abs((n.x-o/2-r.x)/o)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:c.x*s.x,top:c.y*s.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var oe={axis:v.a.oneOf(["x","y","xy"]),contentWindow:v.a.any,disableAutoscroll:v.a.bool,distance:v.a.number,getContainer:v.a.func,getHelperDimensions:v.a.func,helperClass:v.a.string,helperContainer:v.a.oneOfType([v.a.func,"undefined"===typeof HTMLElement?v.a.any:v.a.instanceOf(HTMLElement)]),hideSortableGhost:v.a.bool,keyboardSortingTransitionDuration:v.a.number,lockAxis:v.a.string,lockOffset:v.a.oneOfType([v.a.number,v.a.string,v.a.arrayOf(v.a.oneOfType([v.a.number,v.a.string]))]),lockToContainerEdges:v.a.bool,onSortEnd:v.a.func,onSortMove:v.a.func,onSortOver:v.a.func,onSortStart:v.a.func,pressDelay:v.a.number,pressThreshold:v.a.number,keyCodes:v.a.shape({lift:v.a.arrayOf(v.a.number),drop:v.a.arrayOf(v.a.number),cancel:v.a.arrayOf(v.a.number),up:v.a.arrayOf(v.a.number),down:v.a.arrayOf(v.a.number)}),shouldCancelStart:v.a.func,transitionDuration:v.a.number,updateBeforeSortStart:v.a.func,useDragHandle:v.a.bool,useWindowAsScrollContainer:v.a.bool},ae={lift:[H],drop:[H],cancel:[U],up:[G,q],down:[K,W]},se={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ae,shouldCancelStart:function(e){return-1!==[$,Z,ee,J,X].indexOf(e.target.tagName)||!!A(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},ce=Object.keys(oe);function ue(e){y()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function le(e,t){try{var n=e()}catch(r){return t(!0,r)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}function fe(e){var t,n,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;return Object(s.a)(this,n),t=Object(u.a)(this,Object(l.a)(n).call(this,e)),Object(o.a)(Object(d.a)(Object(d.a)(t)),"state",{}),Object(o.a)(Object(d.a)(Object(d.a)(t)),"handleStart",(function(e){var n=t.props,r=n.distance,i=n.shouldCancelStart;if(2!==e.button&&!i(e)){t.touched=!0,t.position=I(e);var o=A(e.target,(function(e){return null!=e.sortableInfo}));if(o&&o.sortableInfo&&t.nodeIsChild(o)&&!t.state.sorting){var a=t.props.useDragHandle,s=o.sortableInfo,c=s.index,u=s.collection;if(s.disabled)return;if(a&&!A(e.target,re))return;t.manager.active={collection:u,index:c},L(e)||e.target.tagName!==Y||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),Object(o.a)(Object(d.a)(Object(d.a)(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),Object(o.a)(Object(d.a)(Object(d.a)(t)),"handleMove",(function(e){var n=t.props,r=n.distance,i=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var o=I(e),a={x:t.position.x-o.x,y:t.position.y-o.y},s=Math.abs(a.x)+Math.abs(a.y);t.delta=a,r||i&&!(s>=i)?r&&s>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),Object(o.a)(Object(d.a)(Object(d.a)(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),Object(o.a)(Object(d.a)(Object(d.a)(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),Object(o.a)(Object(d.a)(Object(d.a)(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n=h.sortableInfo.index,r=P(h),i=V(t.container),l=t.scrollContainer.getBoundingClientRect(),g=s({index:n,node:h,collection:p});if(t.node=h,t.margin=r,t.gridGap=i,t.width=g.width,t.height=g.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=h.getBoundingClientRect(),t.containerBoundingRect=l,t.index=n,t.newIndex=n,t.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},t.offsetEdge=R(h,t.container),t.initialOffset=I(v?a({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(te(h)),E(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-r.top,"px"),width:"".concat(t.width,"px")}),v&&t.helper.focus(),u&&(t.sortableGhost=h,E(h,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},v){var m=d?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,y=m.top,b=m.left,w=m.width,x=y+m.height,O=b+w;t.axis.x&&(t.minTranslate.x=b-t.boundingClientRect.left,t.maxTranslate.x=O-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=y-t.boundingClientRect.top,t.maxTranslate.y=x-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(d?0:l.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(d?t.contentWindow.innerWidth:l.left+l.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(d?0:l.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(d?t.contentWindow.innerHeight:l.top+l.height)-t.boundingClientRect.top-t.height/2);c&&c.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?h:t.contentWindow,v?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(S.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),S.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),f&&f({node:h,index:n,collection:p,isKeySorting:v,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),v&&t.keyMove(0)},i=t.props,o=i.axis,s=i.getHelperDimensions,c=i.helperClass,u=i.hideSortableGhost,l=i.updateBeforeSortStart,f=i.onSortStart,d=i.useWindowAsScrollContainer,h=n.node,p=n.collection,v=t.manager.isKeySorting,g=function(){if("function"===typeof l){t._awaitingUpdateBeforeSortStart=!0;var n=le((function(){var t=h.sortableInfo.index;return Promise.resolve(l({collection:p,index:t,node:h,isKeySorting:v},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return g&&g.then?g.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(i){return Promise.reject(i)}})),Object(o.a)(Object(d.a)(Object(d.a)(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"===typeof e.preventDefault&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),Object(o.a)(Object(d.a)(Object(d.a)(t)),"handleSortEnd",(function(e){var n=t.props,r=n.hideSortableGhost,i=n.onSortEnd,o=t.manager,a=o.active.collection,s=o.isKeySorting,c=t.manager.getOrderedRefs();t.listenerNode&&(s?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(S.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),S.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&E(t.sortableGhost,{opacity:"",visibility:""});for(var u=0,l=c.length;ur)){t.prevIndex=o,t.newIndex=i;var a=D(t.newIndex,t.prevIndex,t.index),s=n.find((function(e){return e.node.sortableInfo.index===a})),c=s.node,u=t.containerScrollDelta,l=s.boundingClientRect||N(c,u),f=s.translate||{x:0,y:0},d=l.top+f.y-u.top,h=l.left+f.x-u.left,p=og?g/2:this.height/2,width:this.width>v?v/2:this.width/2},y=u&&p>this.index&&p<=l,b=u&&p=l,w={x:0,y:0},x=a[f].edgeOffset;x||(x=R(h,this.container),a[f].edgeOffset=x,u&&(a[f].boundingClientRect=N(h,i)));var O=f0&&a[f-1];O&&!O.edgeOffset&&(O.edgeOffset=R(O.node,this.container),u&&(O.boundingClientRect=N(O.node,i))),p!==this.index?(t&&C(h,t),this.axis.x?this.axis.y?b||pthis.containerBoundingRect.width-m.width&&O&&(w.x=O.edgeOffset.left-x.left,w.y=O.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=p)):(y||p>this.index&&(s+o.left+m.width>=x.left&&c+o.top+m.height>=x.top||c+o.top+m.height>=x.top+g))&&(w.x=-(this.width+this.marginOffset.x),x.left+w.xthis.index&&s+o.left+m.width>=x.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=p):(b||pthis.index&&c+o.top+m.height>=x.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=p):(b||p1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return Object(s.a)(this,n),Object(u.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(f.a)(n,t),Object(c.a)(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,i=Object(g.findDOMNode)(this);i.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=i,this.ref={node:i},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return y()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=i.withRef?"wrappedInstance":null;return Object(h.createElement)(e,Object(r.a)({ref:t},O(this.props,he)))}}]),n}(h.Component),Object(o.a)(t,"displayName",M("sortableElement",e)),Object(o.a)(t,"contextTypes",{manager:v.a.object.isRequired}),Object(o.a)(t,"propTypes",de),Object(o.a)(t,"defaultProps",{collection:0}),n}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=function(e){return Array.isArray(e)?e[0]:e},i=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>=6;var l=o/4*3;a>>=s%8;for(var f=Math.floor(s/8),d=0;d>h)}}return new Uint8Array(n)}function f(e){for(var t="",n=0;n>l]}t+="==".slice(0,4-c)}return t}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t>6|192,63&i|128);else if(n+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)}(e)},i=function(e){return"function"===typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i=n(312),o=n(313),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!==typeof e},l=Object(o.a)((function(e){return c(e)?e:e.replace(a,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===i.a[e]||c(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)h={name:i.name,styles:i.styles,next:h},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i0&&t-1 in e)}return g.fn=g.prototype={jquery:"3.6.0",constructor:g,length:0,toArray:function(){return n.call(this)},get:function(e){return null==e?n.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=g.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return g.each(this,e)},map:function(e){return this.pushStack(g.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(g.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(g.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]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?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}},function(e,t,n){"use strict";(function(e){var r=n(72),i=n(610),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.a.Buffer:void 0,c=(s?s.isBuffer:void 0)||i.a;t.a=c}).call(this,n(261)(e))},,,,function(e,t,n){"use strict";n.r(t),n.d(t,"locateWindow",(function(){return i}));var r={};function i(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:r}},function(e,t,n){var r=n(177),i=n(266);e.exports=n(159)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r=n(472),i=n(341);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(344)("wks"),i=n(269),o=n(158).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"===typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"===typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var c=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var i=n(493),o=n(497);n(201)(u,i);for(var a=r(o.prototype),s=0;s>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],v=e[t+4],g=e[t+5],m=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],O=e[t+11],S=e[t+12],_=e[t+13],E=e[t+14],k=e[t+15],C=o[0],A=o[1],j=o[2],T=o[3];C=u(C,A,j,T,a,7,s[0]),T=u(T,C,A,j,c,12,s[1]),j=u(j,T,C,A,h,17,s[2]),A=u(A,j,T,C,p,22,s[3]),C=u(C,A,j,T,v,7,s[4]),T=u(T,C,A,j,g,12,s[5]),j=u(j,T,C,A,m,17,s[6]),A=u(A,j,T,C,y,22,s[7]),C=u(C,A,j,T,b,7,s[8]),T=u(T,C,A,j,w,12,s[9]),j=u(j,T,C,A,x,17,s[10]),A=u(A,j,T,C,O,22,s[11]),C=u(C,A,j,T,S,7,s[12]),T=u(T,C,A,j,_,12,s[13]),j=u(j,T,C,A,E,17,s[14]),C=l(C,A=u(A,j,T,C,k,22,s[15]),j,T,c,5,s[16]),T=l(T,C,A,j,m,9,s[17]),j=l(j,T,C,A,O,14,s[18]),A=l(A,j,T,C,a,20,s[19]),C=l(C,A,j,T,g,5,s[20]),T=l(T,C,A,j,x,9,s[21]),j=l(j,T,C,A,k,14,s[22]),A=l(A,j,T,C,v,20,s[23]),C=l(C,A,j,T,w,5,s[24]),T=l(T,C,A,j,E,9,s[25]),j=l(j,T,C,A,p,14,s[26]),A=l(A,j,T,C,b,20,s[27]),C=l(C,A,j,T,_,5,s[28]),T=l(T,C,A,j,h,9,s[29]),j=l(j,T,C,A,y,14,s[30]),C=f(C,A=l(A,j,T,C,S,20,s[31]),j,T,g,4,s[32]),T=f(T,C,A,j,b,11,s[33]),j=f(j,T,C,A,O,16,s[34]),A=f(A,j,T,C,E,23,s[35]),C=f(C,A,j,T,c,4,s[36]),T=f(T,C,A,j,v,11,s[37]),j=f(j,T,C,A,y,16,s[38]),A=f(A,j,T,C,x,23,s[39]),C=f(C,A,j,T,_,4,s[40]),T=f(T,C,A,j,a,11,s[41]),j=f(j,T,C,A,p,16,s[42]),A=f(A,j,T,C,m,23,s[43]),C=f(C,A,j,T,w,4,s[44]),T=f(T,C,A,j,S,11,s[45]),j=f(j,T,C,A,k,16,s[46]),C=d(C,A=f(A,j,T,C,h,23,s[47]),j,T,a,6,s[48]),T=d(T,C,A,j,y,10,s[49]),j=d(j,T,C,A,E,15,s[50]),A=d(A,j,T,C,g,21,s[51]),C=d(C,A,j,T,S,6,s[52]),T=d(T,C,A,j,p,10,s[53]),j=d(j,T,C,A,x,15,s[54]),A=d(A,j,T,C,c,21,s[55]),C=d(C,A,j,T,b,6,s[56]),T=d(T,C,A,j,k,10,s[57]),j=d(j,T,C,A,m,15,s[58]),A=d(A,j,T,C,_,21,s[59]),C=d(C,A,j,T,v,6,s[60]),T=d(T,C,A,j,O,10,s[61]),j=d(j,T,C,A,h,15,s[62]),A=d(A,j,T,C,w,21,s[63]),o[0]=o[0]+C|0,o[1]=o[1]+A|0,o[2]=o[2]+j|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<>>32-o)+t}function l(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),i.MD5)}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return m}));var r=n(117),i=n(96),o=n(1216),a=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},s=function(e,t){var n,r,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(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=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++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).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]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]1?n-1:0),i=1;i=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var i=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,o)},o=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()};function a(e){var t,n,o=[];try{for(var a=r(Object.keys(e).sort()),s=a.next();!s.done;s=a.next()){var c=s.value,u=e[c];if(c=i(c),Array.isArray(u))for(var l=0,f=u.length;l0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var e=[],t=0;t0})).map((function(e){return null===e||void 0===e?void 0:e.replace(l,"_")})).join("/")},d={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},h=function(e){return{applyToStack:function(t){var n;t.add((n=e,function(e,t){return function(a){return i(void 0,void 0,void 0,(function(){var i,c,l,d,h,p,v,g;return o(this,(function(o){switch(o.label){case 0:return i=a.request,u.a.isInstance(i)?(c=i.headers,l=(null===(v=null===t||void 0===t?void 0:t.userAgent)||void 0===v?void 0:v.map(f))||[],[4,n.defaultUserAgentProvider()]):[2,e(a)];case 1:return d=o.sent().map(f),h=(null===(g=null===n||void 0===n?void 0:n.customUserAgent)||void 0===g?void 0:g.map(f))||[],c["x-amz-user-agent"]=s(d,l,h).join(" "),p=s(d.filter((function(e){return e.startsWith("aws-sdk-")})),h).join(" "),"browser"!==n.runtime&&p&&(c["user-agent"]=c["user-agent"]?c["user-agent"]+" "+p:p),[2,e(r(r({},a),{request:i}))]}}))}))}}),d)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,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(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=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++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).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}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var a=n(14),s=n(213);var c=function(){function e(e){var t=(void 0===e?{}:e).requestTimeout;this.requestTimeout=t}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=(void 0===t?{}:t).abortSignal,r=this.requestTimeout;if(null===n||void 0===n?void 0:n.aborted){var i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}var c=e.path;if(e.query){var u=Object(s.a)(e.query);u&&(c+="?"+u)}var l=e.port,f=e.method,d=e.protocol+"//"+e.hostname+(l?":"+l:"")+c,h={body:"GET"===f||"HEAD"===f?void 0:e.body,headers:new Headers(e.headers),method:f};"undefined"!==typeof AbortController&&(h.signal=n);var p,v=new Request(d,h),g=[fetch(v).then((function(e){var t,n,r=e.headers,i={};try{for(var s=o(r.entries()),c=s.next();!c.done;c=s.next()){var u=c.value;i[u[0]]=u[1]}}catch(l){t={error:l}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return void 0!==e.body?{response:new a.b({headers:i,statusCode:e.status,body:e.body})}:e.blob().then((function(t){return{response:new a.b({headers:i,statusCode:e.status,body:t})}}))})),(p=r,void 0===p&&(p=0),new Promise((function(e,t){p&&setTimeout((function(){var e=new Error("Request did not complete within "+p+" ms");e.name="TimeoutError",t(e)}),p)})))];return n&&g.push(new Promise((function(e,t){n.onabort=function(){var e=new Error("Request aborted");e.name="AbortError",t(e)}}))),Promise.race(g)},e}(),u=n(165),l=function(e){return"function"===typeof Blob&&e instanceof Blob?function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return[4,f(e)];case 1:return t=r.sent(),n=Object(u.a)(t),[2,new Uint8Array(n)]}}))}))}(e):function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,a,s,c;return i(this,(function(i){switch(i.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,i.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return o=i.sent(),a=o.done,(s=o.value)&&(c=t,(t=new Uint8Array(c.length+s.length)).set(c),t.set(s,c.length)),r=a,[3,1];case 3:return[2,t]}}))}))}(e)};function f(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?e:"",o=i.indexOf(","),a=o>-1?o+1:i.length;t(i.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(303);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(c){s=!0,i=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]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]=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),s)}}}},,,function(e,t,n){"use strict";(function(e){var r=n(401),i=n.n(r),o=n(606),a=n.n(o),s=n(1),c=n.n(s),u=n(312),l=n(185),f=n(137),d=n(607),h=n(628),p=function(e,t){for(var n=[e[0]],r=0,i=t.length;r1?r-1:0),o=1;o0?" Additional arguments: "+i.join(", "):"")));return w(a)}return b(t,e),t}(Error),P=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,M=function(e){var t=""+(e||""),n=[];return t.replace(P,(function(e,t,r){return n.push({componentId:t,matchIndex:r}),e})),n.map((function(e,r){var i=e.componentId,o=e.matchIndex,a=n[r+1];return{componentId:i,cssFromDOM:a?t.slice(o,a.matchIndex):t.slice(o)}}))},N=/^\s*\/\/.*$/gm,I=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),L=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),R=[],D=function(e){if(-2===e){var t=R;return R=[],t}},z=a()((function(e){R.push(e)})),F=void 0,B=void 0,V=void 0,U=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(B)&&n.slice(t-B.length,t)!==B?"."+F:e};L.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(B)>0&&(n[0]=n[0].replace(V,U))},z,D]),I.use([z,D]);var H=function(e){return I("",e)};function q(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",i=e.join("").replace(N,""),o=t&&n?n+" "+t+" { "+i+" }":i;return F=r,B=t,V=new RegExp("\\"+B+"\\b","g"),L(n||!t?"":t,o)}var G=function(){return n.nc},W=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},K=function(e,t){e[t]=Object.create(null)},Y=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},X=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},Q=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n"+e()+""}},te=function(e,t){return function(){var n,r=((n={})[C]=X(t),n["data-styled-version"]="4.4.1",n),i=G();return i&&(r.nonce=i),c.a.createElement("style",y({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},ne=function(e){return function(){return Object.keys(e)}},re=function(e,t){return e.createTextNode(J(t))},ie=function e(t,n){var r=void 0===t?Object.create(null):t,i=void 0===n?Object.create(null):n,o=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},a=function(){var e="";for(var t in i){var n=i[t][0];n&&(e+=J(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=y({},e[n]);return t}(r),n=Object.create(null);for(var o in i)n[o]=[i[o][0]];return e(t,n)},css:a,getIds:ne(i),hasNameForId:Y(r),insertMarker:o,insertRules:function(e,t,n){o(e)[0]+=t.join(" "),W(r,e,n)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",K(r,e))},sealed:!1,styleTag:null,toElement:te(a,r),toHTML:ee(a,r)}},oe=function(e,t,n,r,i){if(A&&!n){var o=function(e,t,n){var r=document;e?r=e.ownerDocument:t&&(r=t.ownerDocument);var i=r.createElement("style");i.setAttribute(C,""),i.setAttribute("data-styled-version","4.4.1");var o=G();if(o&&i.setAttribute("nonce",o),i.appendChild(r.createTextNode("")),e&&!t)e.appendChild(i);else{if(!t||!e||!t.parentNode)throw new T(6);t.parentNode.insertBefore(i,n?t:t.nextSibling)}return i}(e,t,r);return j?function(e,t){var n=Object.create(null),r=Object.create(null),i=void 0!==t,o=!1,a=function(t){var i=r[t];return void 0!==i?i:(r[t]=re(e.ownerDocument,t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new T(5)},css:s,getIds:ne(r),hasNameForId:Y(n),insertMarker:a,insertRules:function(e,r,s){for(var c=a(e),u=[],l=r.length,f=0;f0&&(o=!0,t().insertRules(e+"-import",u))},removeRules:function(a){var s=r[a];if(void 0!==s){var c=re(e.ownerDocument,a);e.replaceChild(c,s),r[a]=c,K(n,a),i&&o&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:te(s,n),toHTML:ee(s,n)}}(o,i):function(e,t){var n=Object.create(null),r=Object.create(null),i=[],o=void 0!==t,a=!1,s=function(e){var t=r[e];return void 0!==t?t:(r[e]=i.length,i.push(0),K(n,e),r[e])},c=function(){var t=Q(e).cssRules,n="";for(var o in r){n+=J(o);for(var a=r[o],s=Z(i,a),c=s-i[a];c0&&(a=!0,t().insertRules(r+"-import",p)),i[l]+=h,W(n,r,u)},removeRules:function(s){var c=r[s];if(void 0!==c&&!1!==e.isConnected){var u=i[c];!function(e,t,n){for(var r=t-n,i=t;i>r;i-=1)e.deleteRule(i)}(Q(e),Z(i,c)-1,u),i[c]=0,K(n,s),o&&a&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:te(c,n),toHTML:ee(c,n)}}(o,i)}return ie()},ae=/\s+/,se=void 0;se=A?j?40:1e3:-1;var ce=0,ue=void 0,le=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=oe(t.target,n?n.styleTag:null,t.forceServer,!0)},ce+=1,this.id=ce,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!A||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+C+'][data-styled-version="4.4.1"]'),i=r.length;if(!i)return this;for(var o=0;o0&&void 0!==arguments[0]&&arguments[0];ue=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),r=e.clone(),i=0;i1?t-1:0),r=1;r=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var we=function(e){return String.fromCharCode(e+(e>25?39:97))};function xe(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=we(n%52)+t;return we(n%52)+t}function Oe(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:S,r=!!n&&e.theme===n.theme,i=e.theme&&!r?e.theme:t||n.theme;return i},Ce=/[[\].#*$><+~=|^:(),"'`-]+/g,Ae=/(^-|-$)/g;function je(e){return e.replace(Ce,"-").replace(Ae,"")}function Te(e){return"string"===typeof e&&!0}var Pe={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Me={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ne=((Se={})[l.ForwardRef]={$$typeof:!0,render:!0},Se),Ie=Object.defineProperty,Le=Object.getOwnPropertyNames,Re=Object.getOwnPropertySymbols,De=void 0===Re?function(){return[]}:Re,ze=Object.getOwnPropertyDescriptor,Fe=Object.getPrototypeOf,Be=Object.prototype,Ve=Array.prototype;function Ue(e,t,n){if("string"!==typeof t){var r=Fe(t);r&&r!==Be&&Ue(e,r,n);for(var i=Ve.concat(Le(t),De(t)),o=Ne[e.$$typeof]||Pe,a=Ne[t.$$typeof]||Pe,s=i.length,c=void 0,u=void 0;s--;)if(u=i[s],!Me[u]&&(!n||!n[u])&&(!a||!a[u])&&(!o||!o[u])&&(c=ze(t,u)))try{Ie(e,u,c)}catch(l){}return e}return e}var He=Object(s.createContext)(),qe=He.Consumer,Ge=(function(e){function t(n){g(this,t);var r=w(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}b(t,e),t.prototype.render=function(){return this.props.children?c.a.createElement(He.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return c.a.createElement(He.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(_(e))return e(t);if(null===e||Array.isArray(e)||"object"!==("undefined"===typeof e?"undefined":v(e)))throw new T(8);return y({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)}}(s.Component),function(){function e(){g(this,e),this.masterSheet=le.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new T(2);return c.a.createElement(Ke,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new T(3)}}(),Object(s.createContext)()),We=Ge.Consumer,Ke=function(e){function t(n){g(this,t);var r=w(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext),r}return b(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new le(t);throw new T(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return c.a.createElement(Ge.Provider,{value:this.getContext(n,r)},t)},t}(s.Component),Ye={};var Xe=function(e){function t(){g(this,t);var n=w(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return b(t,e),t.prototype.render=function(){return c.a.createElement(We,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:le.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():c.a.createElement(qe,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,i=(t.displayName,t.foldedComponentIds),o=t.styledComponentId,a=t.target,c=void 0;c=n.isStatic?this.generateAndInjectStyles(S,this.props):this.generateAndInjectStyles(ke(this.props,e,r)||S,this.props);var u=this.props.as||this.attrs.as||a,l=Te(u),f={},h=y({},this.props,this.attrs),p=void 0;for(p in h)"forwardedComponent"!==p&&"as"!==p&&("forwardedRef"===p?f.ref=h[p]:"forwardedAs"===p?f.as=h[p]:l&&!Object(d.a)(p)||(f[p]=h[p]));return this.props.style&&this.attrs.style&&(f.style=y({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(i,o,c!==o?c:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(u,f)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,i=y({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,o=!1,a=void 0,s=void 0;for(s in _(n)&&(n=n(i),o=!0),n)a=n[s],o||!_(a)||(t=a)&&t.prototype&&t.prototype.isReactComponent||k(a)||(a=a(i)),r.attrs[s]=a,i[s]=a})),i):i},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,i=n.componentStyle;n.warnTooManyClasses;return i.isStatic&&!r.length?i.generateAndInjectStyles(S,this.styleSheet):i.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(s.Component);function Qe(e,t,n){var r=k(e),i=!Te(e),o=t.displayName,a=void 0===o?function(e){return Te(e)?"styled."+e:"Styled("+E(e)+")"}(e):o,s=t.componentId,u=void 0===s?function(e,t,n){var r="string"!==typeof t?"sc":je(t),i=(Ye[r]||0)+1;Ye[r]=i;var o=r+"-"+e.generateName(r+i);return n?n+"-"+o:o}(Ee,t.displayName,t.parentComponentId):s,l=t.ParentComponent,f=void 0===l?Xe:l,d=t.attrs,p=void 0===d?O:d,v=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||u,g=r&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,m=new Ee(r?e.componentStyle.rules.concat(n):n,g,v),b=void 0,w=function(e,t){return c.a.createElement(f,y({},e,{forwardedComponent:b,forwardedRef:t}))};return w.displayName=a,(b=c.a.forwardRef(w)).displayName=a,b.attrs=g,b.componentStyle=m,b.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):O,b.styledComponentId=v,b.target=r?e.target:e,b.withComponent=function(e){var r=t.componentId,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["componentId"]),o=r&&r+"-"+(Te(e)?e:je(E(e)));return Qe(e,y({},i,{attrs:g,componentId:o,ParentComponent:f}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Object(h.a)(e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},i&&Ue(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var $e=function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;if(!Object(l.isValidElementType)(n))throw new T(1,String(n));var i=function(){return t(n,r,ye.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,y({},r,i))},i.attrs=function(i){return e(t,n,y({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Qe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){$e[e]=$e(e)}));!function(){function e(t,n){g(this,e),this.rules=t,this.componentId=n,this.isStatic=Oe(t,O),le.master.hasId(n)||le.master.deferredInject(n,[])}e.prototype.createStyles=function(e,t){var n=q(me(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)}}();A&&(window.scCGSHMRCache={});t.a=$e}).call(this,n(70))},,function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=400&&i.statusCode<500)&&(!a.graphQLResultHasError({errors:i?i.graphQLErrors:[]})&&(!l&&(n=s(e))<=3e5)))},delay:function(e,t,r){return n}}),u=i.ApolloLink.from([c,e]);return new i.ApolloLink((function(e,n){var i=e.variables,o=t.SKIP_RETRY_KEY,a=i[o],s=void 0!==a&&a,c=r(i,["symbol"===typeof o?o:o+""]);return s&&(e.variables=c),u.request(e,n)}))}},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(133).Symbol;e.exports=r},function(e,t,n){"use strict";var r=n(545),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,c=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(n){return!1}}(),u=function(e,t,n,r){var i;(!(t in e)||"function"===typeof(i=r)&&"[object Function]"===o.call(i)&&r())&&(c?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s2147483647||t<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(a.a)(e)));return t},parseValue:function(e){if(!ge(e))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(a.a)(e)));if(e>2147483647||e<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){if(e.kind===u.a.INT){var t=parseInt(e.value,10);if(t<=2147483647&&t>=-2147483648)return t}}});var ye=new te({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ",serialize:function(e){if("boolean"===typeof e)return e?1:0;var t=e;if("string"===typeof e&&""!==e&&(t=Number(e)),!ve(t))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(a.a)(e)));return t},parseValue:function(e){if(!ve(e))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){return e.kind===u.a.FLOAT||e.kind===u.a.INT?parseFloat(e.value):void 0}});var be=new te({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=e&&"function"===typeof e.valueOf?e.valueOf():e;if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if(ve(t))return t.toString();throw new TypeError("String cannot represent value: ".concat(Object(a.a)(e)))},parseValue:function(e){if("string"!==typeof e)throw new TypeError("String cannot represent a non string value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){return e.kind===u.a.STRING?e.value:void 0}});var we=new te({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"===typeof e)return e;if(ve(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(a.a)(e)))},parseValue:function(e){if("boolean"!==typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(a.a)(e)));return e},parseLiteral:function(e){return e.kind===u.a.BOOLEAN?e.value:void 0}});var xe=new te({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=e&&"function"===typeof e.valueOf?e.valueOf():e;if("string"===typeof t)return t;if(ge(t))return String(t);throw new TypeError("ID cannot represent value: ".concat(Object(a.a)(e)))},parseValue:function(e){if("string"===typeof e)return e;if(ge(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat(Object(a.a)(e)))},parseLiteral:function(e){return e.kind===u.a.STRING||e.kind===u.a.INT?e.value:void 0}}),Oe=[be,me,ye,we,xe];function Se(e){return $(e)&&(e.name===be.name||e.name===me.name||e.name===ye.name||e.name===we.name||e.name===xe.name)}var _e=n(34);function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){return o(e,Ce)}var Ce=function(){function e(e){Ee(this,"name",void 0),Ee(this,"description",void 0),Ee(this,"locations",void 0),Ee(this,"args",void 0),Ee(this,"astNode",void 0),this.name=e.name,this.description=e.description,this.locations=e.locations,this.astNode=e.astNode,e.name||Object(s.a)(0,"Directive must be named."),Array.isArray(e.locations)||Object(s.a)(0,"Must provide locations for directive.");var t=e.args;t?(Array.isArray(t)&&Object(s.a)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object.keys(t).map((function(e){var n=t[e];return{name:e,description:void 0===n.description?null:n.description,type:n.type,defaultValue:n.defaultValue,astNode:n.astNode}}))):this.args=[]}return e.prototype.toString=function(){return"@"+this.name},e}();Object(i.a)(Ce),r(Ce);var Ae=new Ce({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[_e.a.FIELD,_e.a.FRAGMENT_SPREAD,_e.a.INLINE_FRAGMENT],args:{if:{type:G(we),description:"Included when true."}}}),je=new Ce({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[_e.a.FIELD,_e.a.FRAGMENT_SPREAD,_e.a.INLINE_FRAGMENT],args:{if:{type:G(we),description:"Skipped when true."}}}),Te="No longer supported",Pe=new Ce({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[_e.a.FIELD_DEFINITION,_e.a.ENUM_VALUE],args:{reason:{type:be,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:Te}}}),Me=[Ae,je,Pe];function Ne(e){return Me.some((function(t){return t.name===e.name}))}var Ie=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Le="function"===typeof Symbol?Symbol:void 0,Re=Le&&Le.iterator,De=Re||"@@iterator";function ze(e){var t=null!=e&&e.length;return"number"===typeof t&&t>=0&&t%1===0}function Fe(e){return Object(e)===e&&(ze(e)||function(e){return!!Ve(e)}(e))}function Be(e){var t=Ve(e);if(t)return t.call(e)}function Ve(e){if(null!=e){var t=Re&&e[Re]||e["@@iterator"];if("function"===typeof t)return t}}function Ue(e){this._o=e,this._i=0}function He(e,t,n){if(null!=e){if("function"===typeof e.forEach)return e.forEach(t,n);var r=0,i=Be(e);if(i){for(var o;!(o=i.next()).done;)if(t.call(n,o.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(ze(e))for(;r=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}};var qe=Le&&Le.asyncIterator,Ge=qe||"@@asyncIterator";function We(e){return!!Ye(e)}function Ke(e){var t=Ye(e);if(t)return t.call(e)}function Ye(e){if(null!=e){var t=qe&&e[qe]||e["@@asyncIterator"];if("function"===typeof t)return t}}function Xe(e){this._i=e}function Qe(e,t,n){var r;return new Promise((function(i){i((r=e[t](n)).value)})).then((function(e){return{value:e,done:r.done}}))}function $e(e){return null===e||void 0===e||e!==e}function Je(e){return(Je="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(e,t){if(M(t)){var n=Ze(e,t.ofType);return n&&n.kind===u.a.NULL?null:n}if(null===e)return{kind:u.a.NULL};if(f(e))return null;if(T(t)){var r=t.ofType;if(Fe(e)){var i=[];return He(e,(function(e){var t=Ze(e,r);t&&i.push(t)})),{kind:u.a.LIST,values:i}}return Ze(e,r)}if(A(t)){if(null===e||"object"!==Je(e))return null;var o=Ie(t.getFields()),s=[],c=!0,l=!1,d=void 0;try{for(var h,p=o[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var v=h.value,g=Ze(e[v.name],v.type);g&&s.push({kind:u.a.OBJECT_FIELD,name:{kind:u.a.NAME,value:v.name},value:g})}}catch(w){l=!0,d=w}finally{try{c||null==p.return||p.return()}finally{if(l)throw d}}return{kind:u.a.OBJECT,fields:s}}if(y(t)||k(t)){var m=t.serialize(e);if($e(m))return null;if("boolean"===typeof m)return{kind:u.a.BOOLEAN,value:m};if("number"===typeof m){var b=String(m);return et.test(b)?{kind:u.a.INT,value:b}:{kind:u.a.FLOAT,value:b}}if("string"===typeof m)return k(t)?{kind:u.a.ENUM,value:m}:t===xe&&et.test(m)?{kind:u.a.INT,value:m}:{kind:u.a.STRING,value:m};throw new TypeError("Cannot convert value to AST: ".concat(Object(a.a)(m)))}throw new Error("Unknown type: ".concat(t,"."))}Xe.prototype[Ge]=function(){return this},Xe.prototype.next=function(e){return Qe(this._i,"next",e)},Xe.prototype.return=function(e){return this._i.return?Qe(this._i,"return",e):Promise.resolve({value:e,done:!0})},Xe.prototype.throw=function(e){return this._i.throw?Qe(this._i,"throw",e):Promise.reject(e)};var et=/^-?(0|[1-9][0-9]*)$/,tt=n(43),nt=new ne({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{types:{description:"A list of all types supported by this server.",type:G(q(G(ot))),resolve:function(e){return Ie(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:G(ot),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:ot,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:ot,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:G(q(G(rt))),resolve:function(e){return e.getDirectives()}}}}}),rt=new ne({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:G(be),resolve:function(e){return e.name}},description:{type:be,resolve:function(e){return e.description}},locations:{type:G(q(G(it))),resolve:function(e){return e.locations}},args:{type:G(q(G(st))),resolve:function(e){return e.args||[]}}}}}),it=new le({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:_e.a.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:_e.a.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:_e.a.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:_e.a.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:_e.a.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:_e.a.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:_e.a.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:_e.a.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:_e.a.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:_e.a.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:_e.a.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:_e.a.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:_e.a.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:_e.a.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:_e.a.UNION,description:"Location adjacent to a union definition."},ENUM:{value:_e.a.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:_e.a.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:_e.a.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:_e.a.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),ot=new ne({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:G(lt),resolve:function(e){if(y(e))return ut.SCALAR;if(w(e))return ut.OBJECT;if(O(e))return ut.INTERFACE;if(_(e))return ut.UNION;if(k(e))return ut.ENUM;if(A(e))return ut.INPUT_OBJECT;if(T(e))return ut.LIST;if(M(e))return ut.NON_NULL;throw new Error("Unknown kind of type: "+e)}},name:{type:be,resolve:function(e){return e.name}},description:{type:be,resolve:function(e){return e.description}},fields:{type:q(G(at)),args:{includeDeprecated:{type:we,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(w(e)||O(e)){var r=Ie(e.getFields());return n||(r=r.filter((function(e){return!e.deprecationReason}))),r}return null}},interfaces:{type:q(G(ot)),resolve:function(e){if(w(e))return e.getInterfaces()}},possibleTypes:{type:q(G(ot)),resolve:function(e,t,n,r){var i=r.schema;if(U(e))return i.getPossibleTypes(e)}},enumValues:{type:q(G(ct)),args:{includeDeprecated:{type:we,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(k(e)){var r=e.getValues();return n||(r=r.filter((function(e){return!e.deprecationReason}))),r}}},inputFields:{type:q(G(st)),resolve:function(e){if(A(e))return Ie(e.getFields())}},ofType:{type:ot,resolve:function(e){return e.ofType}}}}}),at=new ne({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:G(be),resolve:function(e){return e.name}},description:{type:be,resolve:function(e){return e.description}},args:{type:G(q(G(st))),resolve:function(e){return e.args||[]}},type:{type:G(ot),resolve:function(e){return e.type}},isDeprecated:{type:G(we),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:be,resolve:function(e){return e.deprecationReason}}}}}),st=new ne({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:G(be),resolve:function(e){return e.name}},description:{type:be,resolve:function(e){return e.description}},type:{type:G(ot),resolve:function(e){return e.type}},defaultValue:{type:be,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){return f(e.defaultValue)?null:Object(tt.print)(Ze(e.defaultValue,e.type))}}}}}),ct=new ne({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:G(be),resolve:function(e){return e.name}},description:{type:be,resolve:function(e){return e.description}},isDeprecated:{type:G(we),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:be,resolve:function(e){return e.deprecationReason}}}}}),ut={SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"},lt=new le({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ut.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ut.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ut.INTERFACE,description:"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields."},UNION:{value:ut.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ut.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ut.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ut.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ut.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ft={name:"__schema",type:G(nt),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema}},dt={name:"__type",type:ot,description:"Request the type information of a single type.",args:[{name:"name",type:G(be)}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)}},ht={name:"__typename",type:G(be),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name}},pt=[nt,rt,it,ot,at,st,ct,lt];function vt(e){return $(e)&&(e.name===nt.name||e.name===rt.name||e.name===it.name||e.name===ot.name||e.name===at.name||e.name===st.name||e.name===ct.name||e.name===lt.name)}function gt(e,t){for(var n=0;n1&&"_"===e[0]&&"_"===e[1]?new St.a('Name "'.concat(e,'" must not begin with "__", which is reserved by ')+"GraphQL introspection.",t):_t.test(e)?void 0:new St.a('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'),t)}function Ct(e,t){return e===t||(M(e)&&M(t)||!(!T(e)||!T(t)))&&Ct(e.ofType,t.ofType)}function At(e,t,n){return t===n||(M(n)?!!M(t)&&At(e,t.ofType,n.ofType):M(t)?At(e,t.ofType,n):T(n)?!!T(t)&&At(e,t.ofType,n.ofType):!T(t)&&!!(U(n)&&w(t)&&e.isPossibleType(n,t)))}function jt(e,t,n){return t===n||(U(t)?U(n)?e.getPossibleTypes(t).some((function(t){return e.isPossibleType(n,t)})):e.isPossibleType(t,n):!!U(n)&&e.isPossibleType(n,t))}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(e){if(bt(e)||Object(s.a)(0,"Expected ".concat(Object(a.a)(e)," to be a GraphQL schema.")),e.__validationErrors)return e.__validationErrors;var t=new Nt(e);!function(e){var t=e.schema,n=t.getQueryType();n?w(n)||e.reportError("Query root type must be Object type, it cannot be ".concat(Object(a.a)(n),"."),It(t,n,"query")):e.reportError("Query root type must be provided.",t.astNode);var r=t.getMutationType();r&&!w(r)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(Object(a.a)(r),"."),It(t,r,"mutation"));var i=t.getSubscriptionType();i&&!w(i)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(Object(a.a)(i),"."),It(t,i,"subscription"))}(t),function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=e.schema.getDirectives()[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=i.value;if(ke(s)){Lt(e,s);var c=Object.create(null),u=!0,l=!1,f=void 0;try{for(var d,h=s.args[Symbol.iterator]();!(u=(d=h.next()).done);u=!0){var p=d.value,v=p.name;Lt(e,p),c[v]?e.reportError("Argument @".concat(s.name,"(").concat(v,":) can only be defined once."),Jt(s,v)):(c[v]=!0,I(p.type)||e.reportError("The type of @".concat(s.name,"(").concat(v,":) must be Input Type ")+"but got: ".concat(Object(a.a)(p.type),"."),Zt(s,v)))}}catch(g){l=!0,f=g}finally{try{u||null==h.return||h.return()}finally{if(l)throw f}}}else e.reportError("Expected directive but got: ".concat(Object(a.a)(s),"."),s&&s.astNode)}}catch(g){n=!0,r=g}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}(t),function(e){var t=e.schema.getTypeMap(),n=!0,r=!1,i=void 0;try{for(var o,s=Ie(t)[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;$(c)?(vt(c)||Lt(e,c),w(c)?(Rt(e,c),Dt(e,c)):O(c)?Rt(e,c):_(c)?Ft(e,c):k(c)?Bt(e,c):A(c)&&Vt(e,c)):e.reportError("Expected GraphQL named type but got: ".concat(Object(a.a)(c),"."),c&&c.astNode)}}catch(u){r=!0,i=u}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function Mt(e){var t=Pt(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}var Nt=function(){function e(e){Tt(this,"_errors",void 0),Tt(this,"schema",void 0),this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=(Array.isArray(t)?t:[t]).filter(Boolean);this.addError(new St.a(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function It(e,t,n){var r=Ht(e,(function(e){return e.operationTypes})),i=!0,o=!1,a=void 0;try{for(var s,c=r[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value;if(u.operation===n)return u.type}}catch(l){o=!0,a=l}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}return t.astNode}function Lt(e,t){if(-1===e.schema.__allowedLegacyNames.indexOf(t.name)){var n=kt(t.name,t.astNode||void 0);n&&e.addError(n)}}function Rt(e,t){var n=Ie(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),Ut(t));var r=!0,i=!1,o=void 0;try{for(var s,c=n[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var u=s.value;Lt(e,u);var l=Kt(t,u.name);if(l.length>1)e.reportError("Field ".concat(t.name,".").concat(u.name," can only be defined once."),l);else{R(u.type)||e.reportError("The type of ".concat(t.name,".").concat(u.name," must be Output Type ")+"but got: ".concat(Object(a.a)(u.type),"."),Yt(t,u.name));var f=Object.create(null),d=!0,h=!1,p=void 0;try{for(var v,g=u.args[Symbol.iterator]();!(d=(v=g.next()).done);d=!0){var m=v.value,y=m.name;Lt(e,m),f[y]&&e.reportError("Field argument ".concat(t.name,".").concat(u.name,"(").concat(y,":) can only ")+"be defined once.",Qt(t,u.name,y)),f[y]=!0,I(m.type)||e.reportError("The type of ".concat(t.name,".").concat(u.name,"(").concat(y,":) must be Input ")+"Type but got: ".concat(Object(a.a)(m.type),"."),$t(t,u.name,y))}}catch(b){h=!0,p=b}finally{try{d||null==g.return||g.return()}finally{if(h)throw p}}}}}catch(b){i=!0,o=b}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}}function Dt(e,t){var n=Object.create(null),r=!0,i=!1,o=void 0;try{for(var s,c=t.getInterfaces()[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var u=s.value;O(u)?n[u.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(u.name," once."),Gt(t,u)):(n[u.name]=!0,zt(e,t,u)):e.reportError("Type ".concat(Object(a.a)(t)," must only implement Interface types, ")+"it cannot implement ".concat(Object(a.a)(u),"."),qt(t,u))}}catch(l){i=!0,o=l}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}}function zt(e,t,n){for(var r=t.getFields(),i=n.getFields(),o=Object.keys(i),s=0;s1&&e.reportError("Enum type ".concat(t.name," can include value ").concat(u," only once."),l),Lt(e,c),"true"!==u&&"false"!==u&&"null"!==u||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(u,"."),c.astNode)}}catch(f){i=!0,o=f}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}}function Vt(e,t){var n=Ie(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),Ut(t));var r=!0,i=!1,o=void 0;try{for(var s,c=n[Symbol.iterator]();!(r=(s=c.next()).done);r=!0){var u=s.value;Lt(e,u),I(u.type)||e.reportError("The type of ".concat(t.name,".").concat(u.name," must be Input Type ")+"but got: ".concat(Object(a.a)(u.type),"."),u.astNode&&u.astNode.type)}}catch(l){i=!0,o=l}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}}function Ut(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:n||[]}function Ht(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=Ut(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(c){var u=t(c);u&&(n=n.concat(u))}}}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function qt(e,t){return Gt(e,t)[0]}function Gt(e,t){return Ht(e,(function(e){return e.interfaces})).filter((function(e){return e.name.value===t.name}))}function Wt(e,t){return Kt(e,t)[0]}function Kt(e,t){return Ht(e,(function(e){return e.fields})).filter((function(e){return e.name.value===t}))}function Yt(e,t){var n=Wt(e,t);return n&&n.type}function Xt(e,t,n){return Qt(e,t,n)[0]}function Qt(e,t,n){var r=[],i=Wt(e,t);if(i&&i.arguments){var o=!0,a=!1,s=void 0;try{for(var c,u=i.arguments[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l=c.value;l.name.value===n&&r.push(l)}}catch(f){a=!0,s=f}finally{try{o||null==u.return||u.return()}finally{if(a)throw s}}}return r}function $t(e,t,n){var r=Xt(e,t,n);return r&&r.type}function Jt(e,t){return Ht(e,(function(e){return e.arguments})).filter((function(e){return e.name.value===t}))}function Zt(e,t){var n=Jt(e,t)[0];return n&&n.type}function en(e,t){return Ht(e,(function(e){return e.types})).filter((function(e){return e.name.value===t}))}function tn(e,t){return Ht(e,(function(e){return e.values})).filter((function(e){return e.name.value===t}))}var nn=n(109),rn=n(25);function on(e,t){var n;if(t.kind===u.a.LIST_TYPE)return(n=on(e,t.type))&&q(n);if(t.kind===u.a.NON_NULL_TYPE)return(n=on(e,t.type))&&G(n);if(t.kind===u.a.NAMED_TYPE)return e.getType(t.name.value);throw new Error("Unexpected type kind: ".concat(t.kind,"."))}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sn=function(){function e(e,t,n){an(this,"_schema",void 0),an(this,"_typeStack",void 0),an(this,"_parentTypeStack",void 0),an(this,"_inputTypeStack",void 0),an(this,"_fieldDefStack",void 0),an(this,"_defaultValueStack",void 0),an(this,"_directive",void 0),an(this,"_argument",void 0),an(this,"_enumValue",void 0),an(this,"_getFieldDef",void 0),this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=t||cn,n&&(I(n)&&this._inputTypeStack.push(n),B(n)&&this._parentTypeStack.push(n),R(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case u.a.SELECTION_SET:var n=Z(this.getType());this._parentTypeStack.push(B(n)?n:void 0);break;case u.a.FIELD:var r,i,o=this.getParentType();o&&(r=this._getFieldDef(t,o,e))&&(i=r.type),this._fieldDefStack.push(r),this._typeStack.push(R(i)?i:void 0);break;case u.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case u.a.OPERATION_DEFINITION:var a;"query"===e.operation?a=t.getQueryType():"mutation"===e.operation?a=t.getMutationType():"subscription"===e.operation&&(a=t.getSubscriptionType()),this._typeStack.push(w(a)?a:void 0);break;case u.a.INLINE_FRAGMENT:case u.a.FRAGMENT_DEFINITION:var s=e.typeCondition,c=s?on(t,s):Z(this.getType());this._typeStack.push(R(c)?c:void 0);break;case u.a.VARIABLE_DEFINITION:var l=on(t,e.type);this._inputTypeStack.push(I(l)?l:void 0);break;case u.a.ARGUMENT:var f,d,h=this.getDirective()||this.getFieldDef();h&&(f=gt(h.args,(function(t){return t.name===e.name.value})))&&(d=f.type),this._argument=f,this._defaultValueStack.push(f?f.defaultValue:void 0),this._inputTypeStack.push(I(d)?d:void 0);break;case u.a.LIST:var p=Q(this.getInputType()),v=T(p)?p.ofType:p;this._defaultValueStack.push(void 0),this._inputTypeStack.push(I(v)?v:void 0);break;case u.a.OBJECT_FIELD:var g,m,y=Z(this.getInputType());A(y)&&(m=y.getFields()[e.name.value])&&(g=m.type),this._defaultValueStack.push(m?m.defaultValue:void 0),this._inputTypeStack.push(I(g)?g:void 0);break;case u.a.ENUM:var b,x=Z(this.getInputType());k(x)&&(b=x.getValue(e.value)),this._enumValue=b}},t.leave=function(e){switch(e.kind){case u.a.SELECTION_SET:this._parentTypeStack.pop();break;case u.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case u.a.DIRECTIVE:this._directive=null;break;case u.a.OPERATION_DEFINITION:case u.a.INLINE_FRAGMENT:case u.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case u.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case u.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case u.a.LIST:case u.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case u.a.ENUM:this._enumValue=null}},e}();function cn(e,t,n){var r=n.name.value;return r===ft.name&&e.getQueryType()===t?ft:r===dt.name&&e.getQueryType()===t?dt:r===ht.name&&B(t)?ht:w(t)||O(t)?t.getFields()[r]:void 0}function un(e){return ln(e)||pn(e)||gn(e)}function ln(e){return e.kind===u.a.OPERATION_DEFINITION||e.kind===u.a.FRAGMENT_DEFINITION}function fn(e){return e.kind===u.a.FIELD||e.kind===u.a.FRAGMENT_SPREAD||e.kind===u.a.INLINE_FRAGMENT}function dn(e){return e.kind===u.a.VARIABLE||e.kind===u.a.INT||e.kind===u.a.FLOAT||e.kind===u.a.STRING||e.kind===u.a.BOOLEAN||e.kind===u.a.NULL||e.kind===u.a.ENUM||e.kind===u.a.LIST||e.kind===u.a.OBJECT}function hn(e){return e.kind===u.a.NAMED_TYPE||e.kind===u.a.LIST_TYPE||e.kind===u.a.NON_NULL_TYPE}function pn(e){return e.kind===u.a.SCHEMA_DEFINITION||vn(e)||e.kind===u.a.DIRECTIVE_DEFINITION}function vn(e){return e.kind===u.a.SCALAR_TYPE_DEFINITION||e.kind===u.a.OBJECT_TYPE_DEFINITION||e.kind===u.a.INTERFACE_TYPE_DEFINITION||e.kind===u.a.UNION_TYPE_DEFINITION||e.kind===u.a.ENUM_TYPE_DEFINITION||e.kind===u.a.INPUT_OBJECT_TYPE_DEFINITION}function gn(e){return e.kind===u.a.SCHEMA_EXTENSION||mn(e)}function mn(e){return e.kind===u.a.SCALAR_TYPE_EXTENSION||e.kind===u.a.OBJECT_TYPE_EXTENSION||e.kind===u.a.INTERFACE_TYPE_EXTENSION||e.kind===u.a.UNION_TYPE_EXTENSION||e.kind===u.a.ENUM_TYPE_EXTENSION||e.kind===u.a.INPUT_OBJECT_TYPE_EXTENSION}function yn(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new St.a(function(e){return'There can be only one operation named "'.concat(e,'".')}(r.value),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}function bn(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===u.a.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new St.a("This anonymous operation must be the only defined operation.",[n]))}}}function wn(e){return{OperationDefinition:function(t){var n;"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new St.a(((n=t.name&&t.name.value)?'Subscription "'.concat(n,'" '):"Anonymous Subscription ")+"must select only one top level field.",t.selectionSet.selections.slice(1)))}}}function xn(e,t){for(var n=Object.create(null),r=t.length,i=e.length/2,o=0;o1&&r>1&&o[n-1]===a[r-2]&&o[n-2]===a[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+u))}return i[s][c]}function Sn(e){var t=e.slice(0,5);return t.reduce((function(e,n,r){return e+(t.length>2?", ":" ")+(r===t.length-1?"or ":"")+n}))}function _n(e){return Sn(e.map((function(e){return'"'.concat(e,'"')})))}function En(e){return{ObjectTypeDefinition:function(){return!1},InterfaceTypeDefinition:function(){return!1},UnionTypeDefinition:function(){return!1},InputObjectTypeDefinition:function(){return!1},NamedType:function(t){var n=e.getSchema(),r=t.name.value;n.getType(r)||e.reportError(new St.a(function(e,t){var n='Unknown type "'.concat(e,'".');return t.length&&(n+=" Did you mean ".concat(_n(t),"?")),n}(r,xn(r,Object.keys(n.getTypeMap()))),[t]))}}}function kn(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var r=on(e.getSchema(),n);r&&!B(r)&&e.reportError(new St.a(function(e){return'Fragment cannot condition on non composite type "'.concat(e,'".')}(Object(tt.print)(n)),[n]))}},FragmentDefinition:function(t){var n=on(e.getSchema(),t.typeCondition);n&&!B(n)&&e.reportError(new St.a(function(e,t){return'Fragment "'.concat(e,'" cannot condition on non composite ')+'type "'.concat(t,'".')}(t.name.value,Object(tt.print)(t.typeCondition)),[t.typeCondition]))}}}function Cn(e){return{VariableDefinition:function(t){var n=on(e.getSchema(),t.type);if(n&&!I(n)){var r=t.variable.name.value;e.reportError(new St.a(function(e,t){return'Variable "$'.concat(e,'" cannot be non-input type "').concat(t,'".')}(r,Object(tt.print)(t.type)),[t.type]))}}}}function An(e){return{Field:function(t){var n=e.getType(),r=t.selectionSet;n&&(z(Z(n))?r&&e.reportError(new St.a(function(e,t){return'Field "'.concat(e,'" must not have a selection since ')+'type "'.concat(t,'" has no subfields.')}(t.name.value,Object(a.a)(n)),[r])):r||e.reportError(new St.a(function(e,t){return'Field "'.concat(e,'" of type "').concat(t,'" must have a ')+'selection of subfields. Did you mean "'.concat(e,' { ... }"?')}(t.name.value,Object(a.a)(n)),[t])))}}}function jn(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var r=e.getSchema(),i=t.name.value,o=function(e,t,n){if(U(t)){var r=[],i=Object.create(null),o=!0,a=!1,s=void 0;try{for(var c,u=e.getPossibleTypes(t)[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l=c.value;if(l.getFields()[n]){r.push(l.name);var f=!0,d=!1,h=void 0;try{for(var p,v=l.getInterfaces()[Symbol.iterator]();!(f=(p=v.next()).done);f=!0){var g=p.value;g.getFields()[n]&&(i[g.name]=(i[g.name]||0)+1)}}catch(m){d=!0,h=m}finally{try{f||null==v.return||v.return()}finally{if(d)throw h}}}}}catch(m){a=!0,s=m}finally{try{o||null==u.return||u.return()}finally{if(a)throw s}}return Object.keys(i).sort((function(e,t){return i[t]-i[e]})).concat(r)}return[]}(r,n,i),a=0!==o.length?[]:function(e,t,n){if(w(t)||O(t)){var r=Object.keys(t.getFields());return xn(n,r)}return[]}(0,n,i);e.reportError(new St.a(function(e,t,n,r){var i='Cannot query field "'.concat(e,'" on type "').concat(t,'".');if(0!==n.length){var o=_n(n);i+=" Did you mean to use an inline fragment on ".concat(o,"?")}else 0!==r.length&&(i+=" Did you mean ".concat(_n(r),"?"));return i}(i,n.name,o,a),[t]))}}}}function Tn(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new St.a('There can be only one fragment named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}function Pn(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new St.a('Unknown fragment "'.concat(n,'".'),[t.name]))}}}function Mn(e){return'Fragment "'.concat(e,'" is never used.')}function Nn(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var r=Object.create(null),i=0;i1)for(var u=0;u0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(function(e,t,n,r,i,o,a,s){var c=[],u=vr(e,t,i,o),l=u[0],f=u[1],d=vr(e,t,a,s),h=d[0],p=d[1];if(hr(e,c,t,n,r,l,h),0!==p.length)for(var v=Object.create(null),g=0;g0&&e.reportError(new St.a("Must provide only one schema definition.",t)),++r)}}},Un,qn,Yn,Xn,br,ir];function Or(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Sr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Er=function(){function e(e){_r(this,"_ast",void 0),_r(this,"_errors",void 0),this._ast=e,this._errors=[]}var t=e.prototype;return t.reportError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},t.getDocument=function(){return this._ast},e}(),kr=function(e){function t(t,n){var r;return _r(Sr(Sr(r=e.call(this,t)||this)),"_schema",void 0),r._schema=n,r}return Or(t,e),t.prototype.getSchema=function(){return this._schema},t}(Er),Cr=function(e){function t(t,n,r){var i;return _r(Sr(Sr(i=e.call(this,n)||this)),"_schema",void 0),_r(Sr(Sr(i)),"_typeInfo",void 0),_r(Sr(Sr(i)),"_fragments",void 0),_r(Sr(Sr(i)),"_fragmentSpreads",void 0),_r(Sr(Sr(i)),"_recursivelyReferencedFragments",void 0),_r(Sr(Sr(i)),"_variableUsages",void 0),_r(Sr(Sr(i)),"_recursiveVariableUsages",void 0),i._schema=t,i._typeInfo=r,i._fragmentSpreads=new Map,i._recursivelyReferencedFragments=new Map,i._variableUsages=new Map,i._recursiveVariableUsages=new Map,i}Or(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce((function(e,t){return t.kind===u.a.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e}),Object.create(null))),t[e]},n.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var r=n.pop(),i=0;i2&&void 0!==arguments[2]?arguments[2]:wr,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new sn(e);t||Object(s.a)(0,"Must provide document"),Mt(e);var i=new Cr(e,t,r),o=Object(rn.e)(n.map((function(e){return e(i)})));return Object(rn.d)(t,Object(rn.f)(r,o)),i.getErrors()}function jr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xr,r=new kr(e,t),i=n.map((function(e){return e(r)}));return Object(rn.d)(e,Object(rn.e)(i)),r.getErrors()}function Tr(e,t,n){return e&&Array.isArray(e.path)?e:new St.a(e&&e.message,e&&e.nodes||t,e&&e.source,e&&e.positions,n,e)}function Pr(e){return Boolean(e&&"function"===typeof e.then)}function Mr(e,t){switch(t.operation){case"query":var n=e.getQueryType();if(!n)throw new St.a("Schema does not define the required query root type.",[t]);return n;case"mutation":var r=e.getMutationType();if(!r)throw new St.a("Schema is not configured for mutations.",[t]);return r;case"subscription":var i=e.getSubscriptionType();if(!i)throw new St.a("Schema is not configured for subscriptions.",[t]);return i;default:throw new St.a("Can only have query, mutation and subscription operations.",[t])}}function Nr(e){return(Nr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ir(e,t,n,r){if(M(t))return null==e?Rr([Fr("Expected non-nullable type ".concat(Object(a.a)(t)," not to be null"),n,r)]):Ir(e,t.ofType,n,r);if(null==e)return Lr(null);if(y(t))try{var i=t.parseValue(e);return f(i)?Rr([Fr("Expected type ".concat(t.name),n,r)]):Lr(i)}catch(E){return Rr([Fr("Expected type ".concat(t.name),n,r,E.message,E)])}if(k(t)){if("string"===typeof e){var o=t.getValue(e);if(o)return Lr(o.value)}var s=xn(String(e),t.getValues().map((function(e){return e.name}))),c=0!==s.length?"did you mean ".concat(Sn(s),"?"):void 0;return Rr([Fr("Expected type ".concat(t.name),n,r,c)])}if(T(t)){var u=t.ofType;if(Fe(e)){var l,d=[];return He(e,(function(e,t){var i=Ir(e,u,n,zr(r,t));i.errors?l=Dr(l,i.errors):l||d.push(i.value)})),l?Rr(l):Lr(d)}var h=Ir(e,u,n);return h.errors?h:Lr([h.value])}if(A(t)){if("object"!==Nr(e))return Rr([Fr("Expected type ".concat(t.name," to be an object"),n,r)]);var p,v={},g=t.getFields();for(var m in g)if(Vr.call(g,m)){var b=g[m],w=e[m];if(f(w))f(b.defaultValue)?M(b.type)&&(p=Dr(p,Fr("Field ".concat(Br(zr(r,m))," of required ")+"type ".concat(Object(a.a)(b.type)," was not provided"),n))):v[m]=b.defaultValue;else{var x=Ir(w,b.type,n,zr(r,m));x.errors?p=Dr(p,x.errors):p||(v[m]=x.value)}}for(var O in e)if(Vr.call(e,O)&&!g[O]){var S=xn(O,Object.keys(g)),_=0!==S.length?"did you mean ".concat(Sn(S),"?"):void 0;p=Dr(p,Fr('Field "'.concat(O,'" is not defined by type ').concat(t.name),n,r,_))}return p?Rr(p):Lr(v)}throw new Error("Unexpected type: ".concat(t,"."))}function Lr(e){return{errors:void 0,value:e}}function Rr(e){return{errors:e,value:void 0}}function Dr(e,t){return(e||[]).concat(t)}function zr(e,t){return{prev:e,key:t}}function Fr(e,t,n,r,i){var o=Br(n);return new St.a(e+(o?" at "+o:"")+(r?"; "+r:"."),t,void 0,void 0,void 0,i)}function Br(e){for(var t="",n=e;n;)t=("string"===typeof n.key?"."+n.key:"["+String(n.key)+"]")+t,n=n.prev;return t?"value"+t:""}var Vr=Object.prototype.hasOwnProperty;function Ur(e,t,n){if(e){if(M(t)){if(e.kind===u.a.NULL)return;return Ur(e,t.ofType,n)}if(e.kind===u.a.NULL)return null;if(e.kind===u.a.VARIABLE){var r=e.name.value;if(!n||f(n[r]))return;var i=n[r];if(null===i&&M(t))return;return i}if(T(t)){var o=t.ofType;if(e.kind===u.a.LIST){for(var a=[],s=e.values,l=0;l0)return{errors:c};try{s=Object(nn.a)(t)}catch(l){return{errors:[l]}}var u=Ar(e,s);return u.length>0?{errors:u}:Yr(e,s,n,r,i,o,a)}var xi=n(254),Oi=n(248),Si=n(21);function _i(e,t,n){var r,i,o,a=Ke(e);function s(e){return e.done?e:Ei(e.value,t).then(ki,i)}if("function"===typeof a.return&&(r=a.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(a).then(t,t)}),n){var c=n;o=function(e){return Ei(e,c).then(ki,i)}}return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({next:function(){return a.next().then(s,o)},return:function(){return r?r.call(a).then(s,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"===typeof a.throw?a.throw(e).then(s,o):Promise.reject(e).catch(i)}},Ge,(function(){return this}))}function Ei(e,t){return new Promise((function(n){return n(t(e))}))}function ki(e){return{value:e,done:!1}}function Ci(e,t,n,r,i,o,a,s){return 1===arguments.length?ji(e.schema,e.document,e.rootValue,e.contextValue,e.variableValues,e.operationName,e.fieldResolver,e.subscribeFieldResolver):ji(e,t,n,r,i,o,a,s)}function Ai(e){if(e instanceof St.a)return{errors:[e]};throw e}function ji(e,t,n,r,i,o,a,s){var c=Ti(e,t,n,r,i,o,s),u=function(n){return Yr(e,t,n,r,i,o,a)};return c.then((function(e){return We(e)?_i(e,u,Ai):e}),Ai)}function Ti(e,t,n,r,i,o,s){Jr(e,t,i);try{var c=Zr(e,t,n,r,i,o,s);if(Array.isArray(c))return Promise.resolve({errors:c});var u=Mr(e,c.operation),l=ti(c,u,c.operation.selectionSet,Object.create(null),Object.create(null)),f=Object.keys(l)[0],d=l[f],h=d[0].name.value,p=mi(e,u,h);if(!p)throw new St.a('The subscription field "'.concat(h,'" is not defined.'),d);var v=p.subscribe||c.fieldResolver,g=$r(void 0,f),m=oi(c,p,d,u,g),y=ai(c,p,d,v,n,m);return Promise.resolve(y).then((function(e){if(e instanceof Error)throw Tr(e,d,Qr(g));if(We(e))return e;throw new Error("Subscription field must return Async Iterable. Received: "+Object(a.a)(e))}))}catch(b){return Promise.reject(b)}}function Pi(e){e||Object(s.a)(0,"Received null or undefined error.");var t=e.message||"An unknown error occurred.",n=e.locations,r=e.path,i=e.extensions;return i?{message:t,locations:n,path:r,extensions:i}:{message:t,locations:n,path:r}}var Mi=n(581);function Ni(e){var t=!(e&&!1===e.descriptions);return"\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ".concat(t?"description":"","\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(t?"description":"","\n fields(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(t?"description":"","\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}var Ii=Ni();function Li(e,t){for(var n=null,r=0;r2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every((function(e){return!e.description}))?"("+t.map(so).join(", ")+")":"(\n"+t.map((function(t,r){return uo(e,t," "+n,!r)+" "+n+so(t)})).join("\n")+"\n"+n+")"}function so(e){var t=e.name+": "+String(e.type);return f(e.defaultValue)||(t+=" = ".concat(Object(tt.print)(Ze(e.defaultValue,e.type)))),t}function co(e){if(!e.isDeprecated)return"";var t=e.deprecationReason;return $e(t)||""===t||t===Te?" @deprecated":" @deprecated(reason: "+Object(tt.print)(Ze(t,be))+")"}function uo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t.description)return"";var i=ho(t.description,120-n.length);if(e&&e.commentDescriptions)return fo(i,n,r);var o=n&&!r?"\n"+n+'"""':n+'"""';if(1===i.length&&i[0].length<70&&'"'!==i[0][i[0].length-1])return o+lo(i[0])+'"""\n';var a=" "===i[0][0]||"\t"===i[0][0];a||(o+="\n");for(var s=0;s=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){l.forEach((function(t){return delete e[t]}))}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},i,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(o.Component);p.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},p.defaultProps={minWidth:1,injectStyles:!0},t.default=p},function(e,t,n){!function(t,r){var i;e.exports=(i=n(89),function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),c[i]=n(e.pow(r,1/3)),i++),r++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],f=n[6],d=n[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var p=u[h-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=u[h-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[h]=v+u[h-7]+m+u[h-16]}var y=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+c[h]+u[h];d=f,f=l,l=s,s=a+w|0,a=o,o=i,i=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),i.SHA256)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scrollbars=void 0;var r,i=n(871),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,t.Scrollbars=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var r=n(510),i=n(204);t.crc32=function(e){return(new o).update(e).digest()};var o=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var i=(0,r.__values)(e),o=i.next();!o.done;o=i.next()){var s=o.value;this.checksum=this.checksum>>>8^a[255&(this.checksum^s)]}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=o;var a=(0,i.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),s=n(941);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return s.AwsCrc32}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var r=n(511),i=n(204);t.crc32=function(e){return(new o).update(e).digest()};var o=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var i=(0,r.__values)(e),o=i.next();!o.done;o=i.next()){var s=o.value;this.checksum=this.checksum>>>8^a[255&(this.checksum^s)]}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=o;var a=(0,i.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),s=n(942);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return s.AwsCrc32}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AwsCrc32=t.Crc32=t.crc32=void 0;var r=n(570),i=n(571);t.crc32=function(e){return(new o).update(e).digest()};var o=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var i=(0,r.__values)(e),o=i.next();!o.done;o=i.next()){var s=o.value;this.checksum=this.checksum>>>8^a[255&(this.checksum^s)]}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=o;var a=(0,i.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),s=n(1171);Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return s.AwsCrc32}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return It}));var r=n(117),i=n(236),o=n(96),a=n(209),s=n(1216),c=n(128),u=n(76),l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function f(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,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(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=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++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).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]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var p,v,g,m,y,b,w,x,O,S,_,E,k,C,A,j,T,P,M,N,I,L,R,D,z,F,B,V,U,H,q,G,W,K,Y,X,Q,$,J,Z,ee,te,ne,re,ie,oe,ae,se,ce,ue,le,fe,de,he,pe,ve,ge,me=n(0);!function(e){e.AUTHENTICATED_ROLE="AuthenticatedRole",e.DENY="Deny"}(p||(p={})),(v||(v={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(g||(g={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(m||(m={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(y||(y={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(b||(b={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(w||(w={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(x||(x={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(O||(O={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(S||(S={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(_||(_={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},function(e){e.ACCESS_DENIED="AccessDenied",e.INTERNAL_SERVER_ERROR="InternalServerError"}(E||(E={})),(k||(k={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(C||(C={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(A||(A={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(j||(j={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(T||(T={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(P||(P={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(M||(M={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(N||(N={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(I||(I={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(L||(L={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(R||(R={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(D||(D={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(z||(z={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(F||(F={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(B||(B={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},function(e){e.CONTAINS="Contains",e.EQUALS="Equals",e.NOT_EQUAL="NotEqual",e.STARTS_WITH="StartsWith"}(V||(V={})),(U||(U={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(H||(H={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},function(e){e.RULES="Rules",e.TOKEN="Token"}(q||(q={})),(G||(G={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(W||(W={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(K||(K={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(Y||(Y={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(X||(X={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(Q||(Q={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},($||($={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(J||(J={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(Z||(Z={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(ee||(ee={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(te||(te={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(ne||(ne={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(re||(re={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(ie||(ie={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(oe||(oe={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(ae||(ae={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(se||(se={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(ce||(ce={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(ue||(ue={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(le||(le={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(fe||(fe={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(de||(de={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(he||(he={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(pe||(pe={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(ve||(ve={})).filterSensitiveLog=function(e){return Object(me.a)({},e)},(ge||(ge={})).filterSensitiveLog=function(e){return Object(me.a)({},e)};var ye=n(14),be=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,c,u,l,f,d,h,p,v,g;return Object(me.g)(this,(function(m){switch(m.label){case 0:return r=[Object(me.a)({},e)],g={},[4,Ye(e.body,t)];case 1:switch(n=me.a.apply(void 0,r.concat([(g.body=m.sent(),g)])),o="UnknownError",o=Xe(e,n.body),o){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return a=[{}],[4,xe(n,t)];case 3:return i=me.a.apply(void 0,[me.a.apply(void 0,a.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 4:return s=[{}],[4,Oe(n,t)];case 5:return i=me.a.apply(void 0,[me.a.apply(void 0,s.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 6:return c=[{}],[4,Se(n,t)];case 7:return i=me.a.apply(void 0,[me.a.apply(void 0,c.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 8:return u=[{}],[4,_e(n,t)];case 9:return i=me.a.apply(void 0,[me.a.apply(void 0,u.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 10:return l=[{}],[4,ke(n,t)];case 11:return i=me.a.apply(void 0,[me.a.apply(void 0,l.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 12:return f=[{}],[4,Ce(n,t)];case 13:return i=me.a.apply(void 0,[me.a.apply(void 0,f.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 14:return d=[{}],[4,Ae(n,t)];case 15:return i=me.a.apply(void 0,[me.a.apply(void 0,d.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 16:return h=[{}],[4,je(n,t)];case 17:return i=me.a.apply(void 0,[me.a.apply(void 0,h.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 18:p=n.body,o=p.code||p.Code||o,i=Object(me.a)(Object(me.a)({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:Ge(e)}),m.label=19;case 19:return v=i.message||i.Message||o,i.message=v,delete i.Message,[2,Promise.reject(Object.assign(new Error(v),i))]}}))}))},we=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,c,u,l,f,d,h,p,v,g;return Object(me.g)(this,(function(m){switch(m.label){case 0:return r=[Object(me.a)({},e)],g={},[4,Ye(e.body,t)];case 1:switch(n=me.a.apply(void 0,r.concat([(g.body=m.sent(),g)])),o="UnknownError",o=Xe(e,n.body),o){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return a=[{}],[4,xe(n,t)];case 3:return i=me.a.apply(void 0,[me.a.apply(void 0,a.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 4:return s=[{}],[4,Oe(n,t)];case 5:return i=me.a.apply(void 0,[me.a.apply(void 0,s.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 6:return c=[{}],[4,_e(n,t)];case 7:return i=me.a.apply(void 0,[me.a.apply(void 0,c.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 8:return u=[{}],[4,Ee(n,t)];case 9:return i=me.a.apply(void 0,[me.a.apply(void 0,u.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 10:return l=[{}],[4,ke(n,t)];case 11:return i=me.a.apply(void 0,[me.a.apply(void 0,l.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 12:return f=[{}],[4,Ce(n,t)];case 13:return i=me.a.apply(void 0,[me.a.apply(void 0,f.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 14:return d=[{}],[4,Ae(n,t)];case 15:return i=me.a.apply(void 0,[me.a.apply(void 0,d.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 16:return h=[{}],[4,je(n,t)];case 17:return i=me.a.apply(void 0,[me.a.apply(void 0,h.concat([m.sent()])),{name:o,$metadata:Ge(e)}]),[3,19];case 18:p=n.body,o=p.code||p.Code||o,i=Object(me.a)(Object(me.a)({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:Ge(e)}),m.label=19;case 19:return v=i.message||i.Message||o,i.message=v,delete i.Message,[2,Promise.reject(Object.assign(new Error(v),i))]}}))}))},xe=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n=e.body,r=Ie(n,t),[2,Object(me.a)({name:"ExternalServiceException",$fault:"client",$metadata:Ge(e)},r)]}))}))},Oe=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n=e.body,r=De(n,t),[2,Object(me.a)({name:"InternalErrorException",$fault:"server",$metadata:Ge(e)},r)]}))}))},Se=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n=e.body,r=ze(n,t),[2,Object(me.a)({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:Ge(e)},r)]}))}))},_e=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n=e.body,r=Fe(n,t),[2,Object(me.a)({name:"InvalidParameterException",$fault:"client",$metadata:Ge(e)},r)]}))}))},Ee=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n=e.body,r=Be(n,t),[2,Object(me.a)({name:"LimitExceededException",$fault:"client",$metadata:Ge(e)},r)]}))}))},ke=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n=e.body,r=Ve(n,t),[2,Object(me.a)({name:"NotAuthorizedException",$fault:"client",$metadata:Ge(e)},r)]}))}))},Ce=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n=e.body,r=Ue(n,t),[2,Object(me.a)({name:"ResourceConflictException",$fault:"client",$metadata:Ge(e)},r)]}))}))},Ae=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n=e.body,r=He(n,t),[2,Object(me.a)({name:"ResourceNotFoundException",$fault:"client",$metadata:Ge(e)},r)]}))}))},je=function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n=e.body,r=qe(n,t),[2,Object(me.a)({name:"TooManyRequestsException",$fault:"client",$metadata:Ge(e)},r)]}))}))},Te=function(e,t){return Object(me.a)(Object(me.a)(Object(me.a)({},void 0!==e.CustomRoleArn&&null!==e.CustomRoleArn&&{CustomRoleArn:e.CustomRoleArn}),void 0!==e.IdentityId&&null!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.Logins&&null!==e.Logins&&{Logins:Me(e.Logins,t)})},Pe=function(e,t){return Object(me.a)(Object(me.a)(Object(me.a)({},void 0!==e.AccountId&&null!==e.AccountId&&{AccountId:e.AccountId}),void 0!==e.IdentityPoolId&&null!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.Logins&&null!==e.Logins&&{Logins:Me(e.Logins,t)})},Me=function(e,t){return Object.entries(e).reduce((function(e,t){var n,r=Object(me.h)(t,2),i=r[0],o=r[1];return null===o?e:Object(me.a)(Object(me.a)({},e),((n={})[i]=o,n))}),{})},Ne=function(e,t){return{AccessKeyId:void 0!==e.AccessKeyId&&null!==e.AccessKeyId?e.AccessKeyId:void 0,Expiration:void 0!==e.Expiration&&null!==e.Expiration?new Date(Math.round(1e3*e.Expiration)):void 0,SecretKey:void 0!==e.SecretKey&&null!==e.SecretKey?e.SecretKey:void 0,SessionToken:void 0!==e.SessionToken&&null!==e.SessionToken?e.SessionToken:void 0}},Ie=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Le=function(e,t){return{Credentials:void 0!==e.Credentials&&null!==e.Credentials?Ne(e.Credentials):void 0,IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},Re=function(e,t){return{IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},De=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},ze=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Fe=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Be=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Ve=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Ue=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},He=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},qe=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Ge=function(e){var t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},We=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},Ke=function(e,t,n,r,i){return Object(me.e)(void 0,void 0,void 0,(function(){var o,a,s,c,u,l;return Object(me.g)(this,(function(f){switch(f.label){case 0:return[4,e.endpoint()];case 1:return o=f.sent(),a=o.hostname,s=o.protocol,c=void 0===s?"https":s,u=o.port,l={protocol:c,hostname:a,port:u,method:"POST",path:n,headers:t},void 0!==r&&(l.hostname=r),void 0!==i&&(l.body=i),[2,new ye.a(l)]}}))}))},Ye=function(e,t){return function(e,t){return We(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){return e.length?JSON.parse(e):{}}))},Xe=function(e,t){var n,r,i=function(e){var t=e;return t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find((function(e){return e.toLowerCase()===r.toLowerCase()})));return void 0!==o?i(e.headers[o]):void 0!==t.code?i(t.code):void 0!==t.__type?i(t.__type):""},Qe=n(60),$e=n(6),Je=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(me.f)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Qe.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:I.filterSensitiveLog,outputFilterSensitiveLog:R.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},r=JSON.stringify(Te(e,t)),[2,Ke(t,n,"/",void 0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r,i;return Object(me.g)(this,(function(o){switch(o.label){case 0:return e.statusCode>=300?[2,be(e,t)]:[4,Ye(e.body,t)];case 1:return n=o.sent(),{},r=Le(n,t),i=Object(me.a)({$metadata:Ge(e)},r),[2,Promise.resolve(i)]}}))}))}(e,t)},t}($e.b),Ze=function(e){function t(t,n){void 0===n&&(n=!0);var r=e.call(this,t)||this;return r.tryNextLink=n,r}return function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error);function et(e){return Promise.all(Object.keys(e).reduce((function(t,n){var r=e[n];return"string"===typeof r?t.push([n,r]):t.push(r().then((function(e){return[n,e]}))),t}),[])).then((function(e){return e.reduce((function(e,t){var n=h(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}))}function tt(e){var t=this;return function(){return f(t,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u,l,f,h,p;return d(this,(function(d){switch(d.label){case 0:return l=(u=e.client).send,f=Je.bind,p={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},e.logins?[4,et(e.logins)]:[3,2];case 1:return h=d.sent(),[3,3];case 2:h=void 0,d.label=3;case 3:return[4,l.apply(u,[new(f.apply(Je,[void 0,(p.Logins=h,p)]))])];case 4:return t=d.sent().Credentials,n=void 0===t?function(){throw new Ze("Response from Amazon Cognito contained no credentials")}():t,r=n.AccessKeyId,i=void 0===r?function(){throw new Ze("Response from Amazon Cognito contained no access key ID")}():r,o=n.Expiration,a=n.SecretKey,s=void 0===a?function(){throw new Ze("Response from Amazon Cognito contained no secret key")}():a,c=n.SessionToken,[2,{identityId:e.identityId,accessKeyId:i,secretAccessKey:s,sessionToken:c,expiration:o}]}}))}))}}var nt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(me.f)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Qe.a)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:z.filterSensitiveLog,outputFilterSensitiveLog:F.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r;return Object(me.g)(this,(function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetId"},r=JSON.stringify(Pe(e,t)),[2,Ke(t,n,"/",void 0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(me.e)(void 0,void 0,void 0,(function(){var n,r,i;return Object(me.g)(this,(function(o){switch(o.label){case 0:return e.statusCode>=300?[2,we(e,t)]:[4,Ye(e.body,t)];case 1:return n=o.sent(),{},r=Re(n,t),i=Object(me.a)({$metadata:Ge(e)},r),[2,Promise.resolve(i)]}}))}))}(e,t)},t}($e.b),rt=function(){function e(e){void 0===e&&(e="aws:cognito-identity-ids"),this.dbName=e}return e.prototype.getItem=function(e){return this.withObjectStore("readonly",(function(t){var n=t.get(e);return new Promise((function(e){n.onerror=function(){return e(null)},n.onsuccess=function(){return e(n.result?n.result.value:null)}}))})).catch((function(){return null}))},e.prototype.removeItem=function(e){return this.withObjectStore("readwrite",(function(t){var n=t.delete(e);return new Promise((function(e,t){n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e()}}))}))},e.prototype.setItem=function(e,t){return this.withObjectStore("readwrite",(function(n){var r=n.put({id:e,value:t});return new Promise((function(e,t){r.onerror=function(){return t(r.error)},r.onsuccess=function(){return e()}}))}))},e.prototype.getDb=function(){var e=self.indexedDB.open(this.dbName,1);return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)},e.onblocked=function(){n(new Error("Unable to access DB"))},e.onupgradeneeded=function(){var t=e.result;t.onerror=function(){n(new Error("Failed to create object store"))},t.createObjectStore("IdentityIds",{keyPath:"id"})}}))},e.prototype.withObjectStore=function(e,t){return this.getDb().then((function(n){var r=n.transaction("IdentityIds",e);return r.oncomplete=function(){return n.close()},new Promise((function(e,n){r.onerror=function(){return n(r.error)},e(t(r.objectStore("IdentityIds")))})).catch((function(e){throw n.close(),e}))}))},e}(),it=new(function(){function e(e){void 0===e&&(e={}),this.store=e}return e.prototype.getItem=function(e){return e in this.store?this.store[e]:null},e.prototype.removeItem=function(e){delete this.store[e]},e.prototype.setItem=function(e,t){this.store[e]=t},e}());function ot(e){var t=this,n=e.accountId,r=e.cache,i=void 0===r?"object"===typeof self&&self.indexedDB?new rt:"object"===typeof window&&window.localStorage?window.localStorage:it:r,o=e.client,a=e.customRoleArn,s=e.identityPoolId,c=e.logins,u=e.userIdentifier,l=void 0===u?c&&0!==Object.keys(c).length?void 0:"ANONYMOUS":u,h=l?"aws:cognito-identity-credentials:"+s+":"+l:void 0,p=function(){return f(t,void 0,void 0,(function(){var e,t,r,u,l,f,v,g,m;return d(this,(function(d){switch(d.label){case 0:return(t=h)?[4,i.getItem(h)]:[3,2];case 1:t=d.sent(),d.label=2;case 2:return(e=t)?[3,7]:(f=(l=o).send,v=nt.bind,m={AccountId:n,IdentityPoolId:s},c?[4,et(c)]:[3,4]);case 3:return g=d.sent(),[3,5];case 4:g=void 0,d.label=5;case 5:return[4,f.apply(l,[new(v.apply(nt,[void 0,(m.Logins=g,m)]))])];case 6:r=d.sent().IdentityId,u=void 0===r?function(){throw new Ze("Response from Amazon Cognito contained no identity ID")}():r,e=u,h&&Promise.resolve(i.setItem(h,e)).catch((function(){})),d.label=7;case 7:return[2,(p=tt({client:o,customRoleArn:a,logins:c,identityId:e}))()]}}))}))};return function(){return p().catch((function(e){return f(t,void 0,void 0,(function(){return d(this,(function(t){throw h&&Promise.resolve(i.removeItem(h)).catch((function(){})),e}))}))}))}}var at=n(584),st=n(300),ct=n(218),ut=n(319),lt=n(139),ft=n(165),dt=n(301),ht=n(323),pt=n(168),vt="cognito-identity.{region}.amazonaws.com",gt=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),mt=new Set(["cn-north-1","cn-northwest-1"]),yt=new Set(["us-iso-east-1"]),bt=new Set(["us-isob-east-1"]),wt=new Set(["us-gov-east-1","us-gov-west-1"]),xt={apiVersion:"2014-06-30",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"ap-northeast-1":n={hostname:"cognito-identity.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"cognito-identity.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"cognito-identity.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"cognito-identity.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"cognito-identity.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"cognito-identity.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"cognito-identity.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"cognito-identity.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"cognito-identity.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"cognito-identity.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"cognito-identity.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-1":n={hostname:"cognito-identity-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-east-2":n={hostname:"cognito-identity-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-west-1":n={hostname:"cognito-identity-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-2":n={hostname:"cognito-identity-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"sa-east-1":n={hostname:"cognito-identity.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"cognito-identity.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"cognito-identity.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":n={hostname:"cognito-identity.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":n={hostname:"cognito-identity.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"cognito-identity.us-west-2.amazonaws.com",partition:"aws"};break;default:gt.has(e)&&(n={hostname:vt.replace("{region}",e),partition:"aws"}),mt.has(e)&&(n={hostname:"cognito-identity.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),yt.has(e)&&(n={hostname:"cognito-identity.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),bt.has(e)&&(n={hostname:"cognito-identity.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),wt.has(e)&&(n={hostname:"cognito-identity.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:vt.replace("{region}",e),partition:"aws"})}return Promise.resolve(Object(me.a)({signingService:"cognito-identity"},n))},serviceId:"Cognito Identity",urlParser:n(320).a},Ot=Object(me.a)(Object(me.a)({},xt),{runtime:"browser",base64Decoder:ft.a,base64Encoder:ft.b,bodyLengthChecker:dt.a,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:Object(ht.a)({serviceId:xt.serviceId,clientVersion:at.version}),maxAttempts:lt.a,region:Object(ut.a)("Region is missing"),requestHandler:new ct.a,sha256:st.Sha256,streamCollector:ct.b,utf8Decoder:pt.a,utf8Encoder:pt.b}),St=n(220),_t=n(322),Et=n(221),kt=n(318),Ct=n(252),At=n(217),jt=function(e){function t(t){var n=this,r=Object(me.a)(Object(me.a)({},Ot),t),i=Object(St.b)(r),o=Object(St.a)(i),a=Object(Ct.b)(o),s=Object(lt.c)(a),c=Object(Et.b)(s),u=Object(At.b)(c);return(n=e.call(this,u)||this).config=u,n.middlewareStack.use(Object(lt.b)(n.config)),n.middlewareStack.use(Object(_t.a)(n.config)),n.middlewareStack.use(Object(Et.a)(n.config)),n.middlewareStack.use(Object(kt.a)(n.config)),n.middlewareStack.use(Object(At.a)(n.config)),n}return Object(me.f)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}($e.a),Tt=function(){return(Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1](new Date).getTime()?(Nt.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:i,expires_at:o})):this._refreshHandlers[t]&&"function"===typeof this._refreshHandlers[t]?(Nt.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:n})):(Nt.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,i=e.user;return Object(s.b)(n,[],1e4).then((function(e){return Nt.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:i,identity_id:e.identity_id,expires_at:e.expires_at})})).catch((function(e){return"string"===typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||t.clear(),Nt.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return Nt.debug("no credentials for expiration check"),!0;Nt.debug("are these credentials expired?",e);var t=Date.now();return e.expiration.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){return Pt(this,void 0,void 0,(function(){var e,t,n,r,i,o,a,s=this;return Mt(this,(function(u){switch(u.label){case 0:return Nt.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,n=e.region,e.mandatorySignIn?[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")]:t?n?(i=this,[4,this._getGuestIdentityId()]):(Nt.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")]):(Nt.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);case 1:return r=i._identityId=u.sent(),o=new jt({region:n,customUserAgent:Object(c.b)()}),a=void 0,a=r?tt({identityId:r,client:o})():function(){return Pt(s,void 0,void 0,(function(){var e;return Mt(this,(function(n){switch(n.label){case 0:return[4,o.send(new nt({IdentityPoolId:t}))];case 1:return e=n.sent().IdentityId,this._identityId=e,[2,tt({client:o,identityId:e})()]}}))}))}().catch((function(e){return Pt(s,void 0,void 0,(function(){return Mt(this,(function(t){throw e}))}))})),[2,this._loadCredentials(a,"guest",!1,null).then((function(e){return e})).catch((function(e){return Pt(s,void 0,void 0,(function(){var n=this;return Mt(this,(function(i){switch(i.label){case 0:return"ResourceNotFoundException"!==e.name||e.message!=="Identity '"+r+"' not found."?[3,2]:(Nt.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()]);case 1:return i.sent(),a=function(){return Pt(n,void 0,void 0,(function(){var e;return Mt(this,(function(n){switch(n.label){case 0:return[4,o.send(new nt({IdentityPoolId:t}))];case 1:return e=n.sent().IdentityId,this._identityId=e,[2,tt({client:o,identityId:e})()]}}))}))}().catch((function(e){return Pt(n,void 0,void 0,(function(){return Mt(this,(function(t){throw e}))}))})),[2,this._loadCredentials(a,"guest",!1,null)];case 2:return[2,e]}}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,i={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!i)return Promise.reject("You must specify a federated provider");var o={};o[i]=n;var a=this._config,s=a.identityPoolId,u=a.region;if(!s)return Nt.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!u)return Nt.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var l=new jt({region:u,customUserAgent:Object(c.b)()}),f=void 0;r?f=tt({identityId:r,logins:o,client:l})():f=ot({logins:o,identityPoolId:s,client:l})();return this._loadCredentials(f,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;Nt.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,i=r.region,o=r.userPoolId,a=r.identityPoolId;if(!a)return Nt.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!i)return Nt.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var s={};s["cognito-idp."+i+".amazonaws.com/"+o]=n;var u=new jt({region:i,customUserAgent:Object(c.b)()}),l=Pt(t,void 0,void 0,(function(){var e,t,n,r,i,o,c,l,f,d;return Mt(this,(function(h){switch(h.label){case 0:return[4,this._getGuestIdentityId()];case 1:return(e=h.sent())?[3,3]:[4,u.send(new nt({IdentityPoolId:a,Logins:s}))];case 2:n=h.sent().IdentityId,t=n,h.label=3;case 3:return[4,u.send(new Je({IdentityId:e||t,Logins:s}))];case 4:return r=h.sent(),i=r.Credentials,o=i.AccessKeyId,c=i.Expiration,l=i.SecretKey,f=i.SessionToken,d=r.IdentityId,this._identityId=d,e?(Nt.debug("The guest identity "+e+" has been successfully linked to the logins"),e===d&&Nt.debug("The guest identity "+e+" has become the primary identity"),[4,this._removeGuestIdentityId()]):[3,6];case 5:h.sent(),h.label=6;case 6:return[2,{accessKeyId:o,secretAccessKey:l,sessionToken:f,expiration:c,identityId:d}]}}))})).catch((function(e){return Pt(t,void 0,void 0,(function(){return Mt(this,(function(t){throw e}))}))}));return this._loadCredentials(l,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var i=this,o=this;return new Promise((function(a,s){e.then((function(e){return Pt(i,void 0,void 0,(function(){var i,s,c,u,l;return Mt(this,(function(f){switch(f.label){case 0:if(Nt.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=n,o._credentials_source=t,o._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===t){i=Object.assign({id:this._credentials.identityId},r.user),s=r.provider,c=r.token,u=r.expires_at,l=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:s,token:c,user:i,expires_at:u,identity_id:l}))}catch(d){Nt.debug("Failed to put federated info into auth storage",d)}}return"guest"!==t?[3,2]:[4,this._setGuestIdentityId(e.identityId)];case 1:f.sent(),f.label=2;case 2:return a(o._credentials),[2]}}))}))})).catch((function(t){if(t)return Nt.debug("Failed to load credentials",e),Nt.debug("Error loading credentials",t),void s(t)}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(Nt.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return Pt(this,void 0,void 0,(function(){return Mt(this,(function(e){return this._credentials=null,this._credentials_source=null,Nt.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype._getGuestIdentityId=function(){return Pt(this,void 0,void 0,(function(){var e,t;return Mt(this,(function(n){switch(n.label){case 0:e=this._config.identityPoolId,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(e))];case 3:return t=n.sent(),Nt.debug("Failed to get the cached guest identityId",t),[3,4];case 4:return[2]}}))}))},e.prototype._setGuestIdentityId=function(e){return Pt(this,void 0,void 0,(function(){var t,n;return Mt(this,(function(r){switch(r.label){case 0:t=this._config.identityPoolId,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(t),e),[3,4];case 3:return n=r.sent(),Nt.debug("Failed to cache guest identityId",n),[3,4];case 4:return[2]}}))}))},e.prototype._removeGuestIdentityId=function(){return Pt(this,void 0,void 0,(function(){var e;return Mt(this,(function(t){return e=this._config.identityPoolId,Nt.debug("removing "+this._getCognitoIdentityIdStorageKey(e)+" from storage"),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);u.a.register(It)},function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var r=n(44),i=n(117),o=n(331),a=n(244),s=n(426),c=n(576),u=n(236),l=n(96);var f=n(76),d=n(83),h=n(62),p=function(e){var t=window.open(e,"_self");return t?Promise.resolve(t):Promise.reject()},v=n(239),g=n.n(v),m=n(249),y=n.n(m),b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},S="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",_=function(e,t,n){o.a.dispatch("auth",{event:e,data:t,message:n},"Auth",S)},E=new i.a("OAuth"),k=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,i=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||p,this._config=t,this._cognitoClientId=n,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e){return"string"===typeof e}))},e.prototype.oauthSignIn=function(e,t,n,i,o,a){void 0===e&&(e="code"),void 0===o&&(o=r.b.Cognito);var s=this._generateState(32),c=a?s+"-"+a.split("").map((function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):s;!function(e){window.sessionStorage.setItem("oauth_state",e)}(c);var u,l=this._generateRandom(128);u=l,window.sessionStorage.setItem("ouath_pkce_key",u);var f=this._generateChallenge(l),d=this._scopes.join(" "),h="https://"+t+"/oauth2/authorize?"+Object.entries(b(b({redirect_uri:n,response_type:e,client_id:i,identity_provider:o,scope:d,state:c},"code"===e?{code_challenge:f}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=O(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&");E.debug("Redirecting to "+h),this._urlOpener(h,n)},e.prototype._handleCodeFlow=function(e){return w(this,void 0,void 0,(function(){var t,n,i,o,a,s,c,u,l,f,d,p,v,g;return x(this,(function(m){switch(m.label){case 0:return t=(Object(h.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=O(t,2),i=r[0],o=r[1];return b(b({},e),((n={})[i]=o,n))}),{code:void 0}).code,n=Object(h.parse)(e).pathname||"/",i=Object(h.parse)(this._config.redirectSignIn).pathname||"/",t&&n===i?(o="https://"+this._config.domain+"/oauth2/token",_("codeFlow",{},"Retrieving tokens from "+o),a=Object(r.d)(this._config)?this._cognitoClientId:this._config.clientID,s=Object(r.d)(this._config)?this._config.redirectSignIn:this._config.redirectUri,c=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e}(),u=b({grant_type:"authorization_code",code:t,client_id:a,redirect_uri:s},c?{code_verifier:c}:{}),E.debug("Calling token endpoint: "+o+" with",u),l=Object.entries(u).map((function(e){var t=O(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),[4,fetch(o,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:l})]):[2];case 1:return[4,m.sent().json()];case 2:if(f=m.sent(),d=f.access_token,p=f.refresh_token,v=f.id_token,g=f.error)throw new Error(g);return[2,{accessToken:d,refreshToken:p,idToken:v}]}}))}))},e.prototype._handleImplicitFlow=function(e){return w(this,void 0,void 0,(function(){var t,n,r;return x(this,(function(i){return t=(Object(h.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=O(t,2),i=r[0],o=r[1];return b(b({},e),((n={})[i]=o,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,_("implicitFlow",{},"Got tokens from "+e),E.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return w(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return x(this,(function(c){switch(c.label){case 0:if(c.trys.push([0,5,,6]),t=e?b(b({},(Object(h.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=O(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})),(Object(h.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=O(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return i=this._validateState(t),E.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(o=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,b.apply(void 0,[b.apply(void 0,o.concat([c.sent()])),{state:i}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,b.apply(void 0,[b.apply(void 0,a.concat([c.sent()])),{state:i}])];case 4:return[3,6];case 5:throw s=c.sent(),E.error("Error handling auth response.",s),s;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e}(),n=e.state;if(t&&t!==n)throw new Error("Invalid state in OAuth flow");return n}},e.prototype.signOut=function(){return w(this,void 0,void 0,(function(){var e,t,n;return x(this,(function(i){return e="https://"+this._config.domain+"/logout?",t=Object(r.d)(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=Object(r.d)(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=O(e,2);return t[0]+"="+t[1]})).join("&"),_("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),E.debug("Signing out from "+e),[2,this._urlOpener(e,n)]}))}))},e.prototype._generateState=function(e){for(var t="",n=e,r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";n>0;--n)t+=r[Math.round(Math.random()*(r.length-1))];return t},e.prototype._generateChallenge=function(e){return this._base64URL(g()(e))},e.prototype._base64URL=function(e){return e.toString(y.a).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!==typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},D=new i.a("AuthClass"),z="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",F=function(e,t,n){o.a.dispatch("auth",{event:e,data:t,message:n},"Auth",z)},B=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=a.a,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?F("tokenRefresh",void 0,"New token retrieved"):F("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,n)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),o.a.listen("auth",(function(e){switch(e.payload.event){case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}}))}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};D.debug("configure Auth");var n=Object.assign({},this._config,s.a.parseMobilehubConfig(e).Auth,e);this._config=n;var i=this._config,o=i.userPoolId,a=i.userPoolWebClientId,f=i.cookieStorage,h=i.oauth,p=i.region,v=i.identityPoolId,g=i.mandatorySignIn,m=i.refreshHandlers,y=i.identityPoolRegion,b=i.clientMetadata,w=i.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw D.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=f?new d.i(f):e.ssr?new c.a:(new u.a).getStorage();if(this._storageSync=Promise.resolve(),"function"===typeof this._storage.sync&&(this._storageSync=this._storage.sync()),o){var x={UserPoolId:o,ClientId:a,endpoint:w};x.Storage=this._storage,this.userPool=new d.g(x,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:g,region:y||p,userPoolId:o,identityPoolId:v,refreshHandlers:m,storage:this._storage});var O=h?Object(r.d)(this._config.oauth)?h:h.awsCognito:void 0;if(O){var S=Object.assign({cognitoClientId:a,UserPoolId:o,domain:O.domain,scopes:O.scope,redirectSignIn:O.redirectSignIn,redirectSignOut:O.redirectSignOut,responseType:O.responseType,Storage:this._storage,urlOpener:O.urlOpener,clientMetadata:b},O.options);this._oAuthHandler=new k({scopes:S.scopes,config:S,cognitoClientId:S.cognitoClientId});var _={};!function(e){if(l.a.browserOrNode().isBrowser&&window.location)e({url:window.location.href});else if(!l.a.browserOrNode().isNode)throw new Error("Not supported")}((function(e){var n=e.url;_[n]||(_[n]=!0,t._handleAuthResponse(n))}))}return F("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,n=[],i=1;ir&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0h)&&(F=(U=U.replace(" ",":")).length),0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var n=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2,u=s|c;i[o>>>2]|=u<<24-o%4*8,o++}return t.create(i,o)}(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),i.enc.Base64)}()},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=6},o=function(e){var t=e.split(":");if(t.length<6||"arn"!==t[0])throw new Error("Malformed ARN");var n=Object(r.h)(t);return{partition:n[1],service:n[2],region:n[3],accountId:n[4],resource:n.slice(5).join(":")}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return z})),n.d(t,"a",(function(){return q}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&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}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}for(var c={},u={},l=0;l<256;l++){var f=l.toString(16).toLowerCase();1===f.length&&(f="0"+f),c[l]=f,u[f]=l}function d(e){for(var t="",n=0;n-1&&delete e.headers[o]}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}function M(e){return function(e){if("number"===typeof e)return new Date(1e3*e);if("string"===typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var N=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!==typeof t||t,this.regionProvider=R(r),this.credentialProvider=D(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),i(this,void 0,void 0,(function(){var n,i,s,c,u,l,f,d,h,p,v,g,m,y,b,w,x,O,_,k,C,T,M,N;return o(this,(function(o){switch(o.label){case 0:return n=t.signingDate,i=void 0===n?new Date:n,s=t.expiresIn,c=void 0===s?3600:s,u=t.unsignableHeaders,l=t.unhoistableHeaders,f=t.signableHeaders,d=t.signingRegion,h=t.signingService,[4,this.credentialProvider()];case 1:return p=o.sent(),null===d||void 0===d?[3,2]:(g=d,[3,4]);case 2:return[4,this.regionProvider()];case 3:g=o.sent(),o.label=4;case 4:return v=g,m=I(i),y=m.longDate,b=m.shortDate,c>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(w=S(b,v,null!==h&&void 0!==h?h:this.service),x=function(e,t){var n,i,o;void 0===t&&(t={});var s="function"===typeof e.clone?e.clone():j(e),c=s.headers,u=s.query,l=void 0===u?{}:u;try{for(var f=a(Object.keys(c)),d=f.next();!d.done;d=f.next()){var h=d.value,p=h.toLowerCase();"x-amz-"!==p.substr(0,6)||(null===(o=t.unhoistableHeaders)||void 0===o?void 0:o.has(p))||(l[h]=c[h],delete c[h])}}catch(v){n={error:v}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}return r(r({},e),{headers:c,query:l})}(P(e),{unhoistableHeaders:l}),p.sessionToken&&(x.query["X-Amz-Security-Token"]=p.sessionToken),x.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",x.query["X-Amz-Credential"]=p.accessKeyId+"/"+w,x.query["X-Amz-Date"]=y,x.query["X-Amz-Expires"]=c.toString(10),O=E(x,u,f),x.query["X-Amz-SignedHeaders"]=L(O),_=x.query,k="X-Amz-Signature",C=this.getSignature,T=[y,w,this.getSigningKey(p,v,b,h)],M=this.createCanonicalRequest,N=[x,O],[4,A(e,this.sha256)]);case 5:return[4,C.apply(this,T.concat([M.apply(this,N.concat([o.sent()]))]))];case 6:return _[k]=o.sent(),[2,x]}}))}))},e.prototype.sign=function(e,t){return i(this,void 0,void 0,(function(){return o(this,(function(n){return"string"===typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,a=t.signingDate,s=void 0===a?new Date:a,c=t.priorSignature,u=t.signingRegion,l=t.signingService;return i(this,void 0,void 0,(function(){var e,t,i,a,f,h,p,v,g,m,y;return o(this,(function(o){switch(o.label){case 0:return null===u||void 0===u?[3,1]:(t=u,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=o.sent(),o.label=3;case 3:return e=t,i=I(s),a=i.shortDate,f=i.longDate,h=S(a,e,null!==l&&void 0!==l?l:this.service),[4,A({headers:{},body:r},this.sha256)];case 4:return p=o.sent(),(v=new this.sha256).update(n),m=d,[4,v.digest()];case 5:return g=m.apply(void 0,[o.sent()]),y=[w,f,h,c,g,p].join("\n"),[2,this.signString(y,{signingDate:s,signingRegion:e,signingService:l})]}}))}))},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,a=void 0===r?new Date:r,s=n.signingRegion,c=n.signingService;return i(this,void 0,void 0,(function(){var t,n,r,i,u,l,f,h;return o(this,(function(o){switch(o.label){case 0:return[4,this.credentialProvider()];case 1:return t=o.sent(),null===s||void 0===s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=o.sent(),o.label=4;case 4:return n=r,i=I(a).shortDate,f=(l=this.sha256).bind,[4,this.getSigningKey(t,n,i,c)];case 5:return(u=new(f.apply(l,[void 0,o.sent()]))).update(e),h=d,[4,u.digest()];case 6:return[2,h.apply(void 0,[o.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,s=void 0===r?new Date:r,c=n.signableHeaders,u=n.unsignableHeaders,l=n.signingRegion,f=n.signingService;return i(this,void 0,void 0,(function(){var t,n,r,i,d,p,v,m,y,b,w;return o(this,(function(o){switch(o.label){case 0:return[4,this.credentialProvider()];case 1:return t=o.sent(),null===l||void 0===l?[3,2]:(r=l,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=o.sent(),o.label=4;case 4:return n=r,i=P(e),d=I(s),p=d.longDate,v=d.shortDate,m=S(v,n,null!==f&&void 0!==f?f:this.service),i.headers[h]=p,t.sessionToken&&(i.headers[g]=t.sessionToken),[4,A(i,this.sha256)];case 5:return y=o.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var i=a(Object.keys(t)),o=i.next();!o.done;o=i.next()){if(e===o.value.toLowerCase())return!0}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}("x-amz-content-sha256",i.headers)&&this.applyChecksum&&(i.headers["x-amz-content-sha256"]=y),b=E(i,u,c),[4,this.getSignature(p,m,this.getSigningKey(t,n,v,f),this.createCanonicalRequest(i,b,y))];case 6:return w=o.sent(),i.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+m+", SignedHeaders="+L(b)+", Signature="+w,[2,i]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,r=e.query,i=void 0===r?{}:r,o=[],s={},c=function(e){if(e.toLowerCase()===v)return"continue";o.push(e);var t=i[e];"string"===typeof t?s[e]=k(e)+"="+k(t):Array.isArray(t)&&(s[e]=t.slice(0).sort().reduce((function(t,n){return t.concat([k(e)+"="+k(n)])}),[]).join("&"))};try{for(var u=a(Object.keys(i).sort()),l=u.next();!l.done;l=u.next()){c(l.value)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return o.map((function(e){return s[e]})).filter((function(e){return e})).join("&")}(e)+"\n"+r.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return i(this,void 0,void 0,(function(){var r,i;return o(this,(function(o){switch(o.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return i=o.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+d(i)]}}))}))},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,n,r){return i(this,void 0,void 0,(function(){var i,a,s,c,u;return o(this,(function(o){switch(o.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return i=o.sent(),c=(s=this.sha256).bind,[4,n];case 2:return(a=new(c.apply(s,[void 0,o.sent()]))).update(i),u=d,[4,a.digest()];case 3:return[2,u.apply(void 0,[o.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,s){return i(void 0,void 0,void 0,(function(){var i,c,u,l,f,h,p,v,g;return o(this,(function(o){switch(o.label){case 0:return[4,_(e,t.secretAccessKey,t.accessKeyId)];case 1:if(i=o.sent(),(c=n+":"+r+":"+s+":"+d(i)+":"+t.sessionToken)in x)return[2,x[c]];for(O.push(c);O.length>50;)delete x[O.shift()];u="AWS4"+t.secretAccessKey,o.label=2;case 2:o.trys.push([2,7,8,9]),l=a([n,r,s,"aws4_request"]),f=l.next(),o.label=3;case 3:return f.done?[3,6]:(h=f.value,[4,_(e,u,h)]);case 4:u=o.sent(),o.label=5;case 5:return f=l.next(),[3,3];case 6:return[3,9];case 7:return p=o.sent(),v={error:p},[3,9];case 8:try{f&&!f.done&&(g=l.return)&&g.call(l)}finally{if(v)throw v.error}return[7];case 9:return[2,x[c]=u]}}))}))}(this.sha256,e,n,t,r||this.service)},e}(),I=function(e){var t=M(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},L=function(e){return Object.keys(e).sort().join(";")},R=function(e){if("string"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e},D=function(e){if("object"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e};function z(e){var t,n=this,a=F(e.credentials||e.credentialDefaultProvider(e)),c=e.signingEscapePath,u=void 0===c||c,l=e.systemClockOffset,f=void 0===l?e.systemClockOffset||0:l,d=e.sha256;return t=e.signer?F(e.signer):function(){return F(e.region)().then((function(t){return i(n,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,e.regionInfoProvider(t)];case 1:return[2,[n.sent()||{},t]]}}))}))})).then((function(t){var n=s(t,2),r=n[0],i=n[1],o=r.signingRegion,c=r.signingService;return e.signingRegion=e.signingRegion||o||i,e.signingName=e.signingName||c||e.serviceId,new N({credentials:a,region:e.signingRegion,service:e.signingName,sha256:d,uriEscapePath:u})}))},r(r({},e),{systemClockOffset:f,signingEscapePath:u,credentials:a,signer:t})}function F(e){if("object"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var B=n(14),V=function(e){return new Date(Date.now()+e)};function U(e){return function(t,n){return function(a){return i(this,void 0,void 0,(function(){var i,s,c,u,l,f,d,h,p;return o(this,(function(o){switch(o.label){case 0:return B.a.isInstance(a.request)?"function"!==typeof e.signer?[3,2]:[4,e.signer()]:[2,t(a)];case 1:return s=o.sent(),[3,3];case 2:s=e.signer,o.label=3;case 3:return i=s,u=t,l=[r({},a)],p={},[4,i.sign(a.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})];case 4:return[4,u.apply(void 0,[r.apply(void 0,l.concat([(p.request=o.sent(),p)]))])];case 5:return c=o.sent(),f=c.response.headers,(d=f&&(f.date||f.Date))&&(h=Date.parse(d),v=h,g=e.systemClockOffset,Math.abs(V(g).getTime()-v)>=3e5&&(e.systemClockOffset=h-Date.now())),[2,c]}var v,g}))}))}}}var H={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},q=function(e){return{applyToStack:function(t){t.addRelativeTo(U(e),H)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n(0),i=n(58),o="X-Amz-Date".toLowerCase(),a=["authorization",o,"date"],s="X-Amz-Signature".toLowerCase(),c="X-Amz-Security-Token".toLowerCase(),u={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},l=/^proxy-/,f=/^sec-/,d="AWS4-HMAC-SHA256-PAYLOAD",h={},p=[],v=function(e,t,n){return e+"/"+t+"/"+n+"/aws4_request"},g=function(e,t,n){var r=new e(t);return r.update(n),r.digest()},m=function(e,t,n){var i,o,a=e.headers,s={};try{for(var c=Object(r.k)(Object.keys(a).sort()),d=c.next();!d.done;d=c.next()){var h=d.value,p=h.toLowerCase();(p in u||(null===t||void 0===t?void 0:t.has(p))||l.test(p)||f.test(p))&&(!n||n&&!n.has(p))||(s[p]=a[h].trim().replace(/\s+/g," "))}}catch(v){i={error:v}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return s},y=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,b)},b=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()},w=n(308),x=function(e,t){var n=e.headers,o=e.body;return Object(r.e)(void 0,void 0,void 0,(function(){var e,a,s,c,u,l,f;return Object(r.g)(this,(function(d){switch(d.label){case 0:try{for(e=Object(r.k)(Object.keys(n)),a=e.next();!a.done;a=e.next())if("x-amz-content-sha256"===(s=a.value).toLowerCase())return[2,n[s]]}catch(h){l={error:h}}finally{try{a&&!a.done&&(f=e.return)&&f.call(e)}finally{if(l)throw l.error}}return void 0!=o?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"===typeof o||ArrayBuffer.isView(o)||Object(w.a)(o)?((c=new t).update(o),u=i.toHex,[4,c.digest()]):[3,3];case 2:return[2,u.apply(void 0,[d.sent()])];case 3:return[2,"UNSIGNED-PAYLOAD"]}}))}))},O=function(e){var t=e.headers,n=e.query,i=Object(r.i)(e,["headers","query"]);return Object(r.a)(Object(r.a)({},i),{headers:Object(r.a)({},t),query:n?S(n):void 0})},S=function(e){return Object.keys(e).reduce((function(t,n){var i,o=e[n];return Object(r.a)(Object(r.a)({},t),((i={})[n]=Array.isArray(o)?Object(r.j)([],Object(r.h)(o)):o,i))}),{})},_=function(e){var t,n;e="function"===typeof e.clone?e.clone():O(e);try{for(var i=Object(r.k)(Object.keys(e.headers)),o=i.next();!o.done;o=i.next()){var s=o.value;a.indexOf(s.toLowerCase())>-1&&delete e.headers[s]}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return e},E=function(e){return"number"===typeof e?new Date(1e3*e):"string"===typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e},k=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!==typeof t||t,this.regionProvider=function(e){if("string"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}(r),this.credentialProvider=function(e){if("object"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Object(r.e)(this,void 0,void 0,(function(){var n,i,o,a,s,c,u,l,f,d,h,p,g,y,b,w,S,E,k,j,T,P,M,N;return Object(r.g)(this,(function(I){switch(I.label){case 0:return n=t.signingDate,i=void 0===n?new Date:n,o=t.expiresIn,a=void 0===o?3600:o,s=t.unsignableHeaders,c=t.unhoistableHeaders,u=t.signableHeaders,l=t.signingRegion,f=t.signingService,[4,this.credentialProvider()];case 1:return d=I.sent(),null===l||void 0===l?[3,2]:(p=l,[3,4]);case 2:return[4,this.regionProvider()];case 3:p=I.sent(),I.label=4;case 4:return h=p,g=C(i),y=g.longDate,b=g.shortDate,a>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(w=v(b,h,null!==f&&void 0!==f?f:this.service),S=function(e,t){var n,i,o;void 0===t&&(t={});var a="function"===typeof e.clone?e.clone():O(e),s=a.headers,c=a.query,u=void 0===c?{}:c;try{for(var l=Object(r.k)(Object.keys(s)),f=l.next();!f.done;f=l.next()){var d=f.value,h=d.toLowerCase();"x-amz-"!==h.substr(0,6)||(null===(o=t.unhoistableHeaders)||void 0===o?void 0:o.has(h))||(u[d]=s[d],delete s[d])}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return Object(r.a)(Object(r.a)({},e),{headers:s,query:u})}(_(e),{unhoistableHeaders:c}),d.sessionToken&&(S.query["X-Amz-Security-Token"]=d.sessionToken),S.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",S.query["X-Amz-Credential"]=d.accessKeyId+"/"+w,S.query["X-Amz-Date"]=y,S.query["X-Amz-Expires"]=a.toString(10),E=m(S,s,u),S.query["X-Amz-SignedHeaders"]=A(E),k=S.query,j="X-Amz-Signature",T=this.getSignature,P=[y,w,this.getSigningKey(d,h,b,f)],M=this.createCanonicalRequest,N=[S,E],[4,x(e,this.sha256)]);case 5:return[4,T.apply(this,P.concat([M.apply(this,N.concat([I.sent()]))]))];case 6:return k[j]=I.sent(),[2,S]}}))}))},e.prototype.sign=function(e,t){return Object(r.e)(this,void 0,void 0,(function(){return Object(r.g)(this,(function(n){return"string"===typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var n=e.headers,o=e.payload,a=t.signingDate,s=void 0===a?new Date:a,c=t.priorSignature,u=t.signingRegion,l=t.signingService;return Object(r.e)(this,void 0,void 0,(function(){var e,t,a,f,h,p,g,m,y,b,w;return Object(r.g)(this,(function(r){switch(r.label){case 0:return null===u||void 0===u?[3,1]:(t=u,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=r.sent(),r.label=3;case 3:return e=t,a=C(s),f=a.shortDate,h=a.longDate,p=v(f,e,null!==l&&void 0!==l?l:this.service),[4,x({headers:{},body:o},this.sha256)];case 4:return g=r.sent(),(m=new this.sha256).update(n),b=i.toHex,[4,m.digest()];case 5:return y=b.apply(void 0,[r.sent()]),w=[d,h,p,c,y,g].join("\n"),[2,this.signString(w,{signingDate:s,signingRegion:e,signingService:l})]}}))}))},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,o=n.signingDate,a=void 0===o?new Date:o,s=n.signingRegion,c=n.signingService;return Object(r.e)(this,void 0,void 0,(function(){var t,n,o,u,l,f,d,h;return Object(r.g)(this,(function(r){switch(r.label){case 0:return[4,this.credentialProvider()];case 1:return t=r.sent(),null===s||void 0===s?[3,2]:(o=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:o=r.sent(),r.label=4;case 4:return n=o,u=C(a).shortDate,d=(f=this.sha256).bind,[4,this.getSigningKey(t,n,u,c)];case 5:return(l=new(d.apply(f,[void 0,r.sent()]))).update(e),h=i.toHex,[4,l.digest()];case 6:return[2,h.apply(void 0,[r.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,i=n.signingDate,a=void 0===i?new Date:i,s=n.signableHeaders,u=n.unsignableHeaders,l=n.signingRegion,f=n.signingService;return Object(r.e)(this,void 0,void 0,(function(){var t,n,i,d,h,p,g,y,b,w,O;return Object(r.g)(this,(function(S){switch(S.label){case 0:return[4,this.credentialProvider()];case 1:return t=S.sent(),null===l||void 0===l?[3,2]:(i=l,[3,4]);case 2:return[4,this.regionProvider()];case 3:i=S.sent(),S.label=4;case 4:return n=i,d=_(e),h=C(a),p=h.longDate,g=h.shortDate,y=v(g,n,null!==f&&void 0!==f?f:this.service),d.headers[o]=p,t.sessionToken&&(d.headers[c]=t.sessionToken),[4,x(d,this.sha256)];case 5:return b=S.sent(),!function(e,t){var n,i;e=e.toLowerCase();try{for(var o=Object(r.k)(Object.keys(t)),a=o.next();!a.done;a=o.next()){if(e===a.value.toLowerCase())return!0}}catch(s){n={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1}("x-amz-content-sha256",d.headers)&&this.applyChecksum&&(d.headers["x-amz-content-sha256"]=b),w=m(d,u,s),[4,this.getSignature(p,y,this.getSigningKey(t,n,g,f),this.createCanonicalRequest(d,w,b))];case 6:return O=S.sent(),d.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+y+", SignedHeaders="+A(w)+", Signature="+O,[2,d]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var i=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,i=e.query,o=void 0===i?{}:i,a=[],c={},u=function(e){if(e.toLowerCase()===s)return"continue";a.push(e);var t=o[e];"string"===typeof t?c[e]=y(e)+"="+y(t):Array.isArray(t)&&(c[e]=t.slice(0).sort().reduce((function(t,n){return t.concat([y(e)+"="+y(n)])}),[]).join("&"))};try{for(var l=Object(r.k)(Object.keys(o).sort()),f=l.next();!f.done;f=l.next()){u(f.value)}}catch(d){t={error:d}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return a.map((function(e){return c[e]})).filter((function(e){return e})).join("&")}(e)+"\n"+i.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+i.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return Object(r.e)(this,void 0,void 0,(function(){var o,a;return Object(r.g)(this,(function(r){switch(r.label){case 0:return(o=new this.sha256).update(n),[4,o.digest()];case 1:return a=r.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+Object(i.toHex)(a)]}}))}))},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,n,o){return Object(r.e)(this,void 0,void 0,(function(){var a,s,c,u,l;return Object(r.g)(this,(function(r){switch(r.label){case 0:return[4,this.createStringToSign(e,t,o)];case 1:return a=r.sent(),u=(c=this.sha256).bind,[4,n];case 2:return(s=new(u.apply(c,[void 0,r.sent()]))).update(a),l=i.toHex,[4,s.digest()];case 3:return[2,l.apply(void 0,[r.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,o){return function(e,t,n,o,a){return Object(r.e)(void 0,void 0,void 0,(function(){var s,c,u,l,f,d,v,m,y;return Object(r.g)(this,(function(b){switch(b.label){case 0:return[4,g(e,t.secretAccessKey,t.accessKeyId)];case 1:if(s=b.sent(),(c=n+":"+o+":"+a+":"+Object(i.toHex)(s)+":"+t.sessionToken)in h)return[2,h[c]];for(p.push(c);p.length>50;)delete h[p.shift()];u="AWS4"+t.secretAccessKey,b.label=2;case 2:b.trys.push([2,7,8,9]),l=Object(r.k)([n,o,a,"aws4_request"]),f=l.next(),b.label=3;case 3:return f.done?[3,6]:(d=f.value,[4,g(e,u,d)]);case 4:u=b.sent(),b.label=5;case 5:return f=l.next(),[3,3];case 6:return[3,9];case 7:return v=b.sent(),m={error:v},[3,9];case 8:try{f&&!f.done&&(y=l.return)&&y.call(l)}finally{if(m)throw m.error}return[7];case 9:return[2,h[c]=u]}}))}))}(this.sha256,e,n,t,o||this.service)},e}(),C=function(e){var t,n=(t=e,E(t).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.substr(0,8)}},A=function(e){return Object.keys(e).sort().join(";")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(26),i=n(110);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(e,t,n){o(this,"body",void 0),o(this,"name",void 0),o(this,"locationOffset",void 0),this.body=e,this.name=t||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||Object(r.a)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||Object(r.a)(0,"column in locationOffset is 1-indexed and must be positive")};Object(i.a)(a)},function(e,t,n){e.exports=n(694)},function(e,t,n){"use strict";(function(e,r){function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return g.head.insertBefore(t,r),e}}function K(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Y(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function X(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function Q(e){return e.size!==G.size||e.x!==G.x||e.y!==G.y||e.rotate!==G.rotate||e.flipX||e.flipY}function $(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var J={x:0,y:0,width:"100%",height:"100%"};function Z(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ee(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,c=e.symbol,u=e.title,l=e.maskId,f=e.titleId,d=e.extra,h=e.watchable,p=void 0!==h&&h,v=r.found?r:n,g=v.width,m=v.height,y="fak"===i,b=y?"":"fa-w-".concat(Math.ceil(g/m*16)),w=[_.replacementClass,o?"".concat(_.familyPrefix,"-").concat(o):"",b].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),x={children:[],attributes:s({},d.attributes,{"data-prefix":i,"data-icon":o,class:w,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(m)})},O=y&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/m*16*.0625,"em")}:{};p&&(x.attributes["data-fa-i2svg"]=""),u&&x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||K())},children:[u]});var S=s({},x,{prefix:i,iconName:o,main:n,mask:r,maskId:l,transform:a,symbol:c,styles:s({},O,d.styles)}),E=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.mask,a=e.maskId,c=e.transform,u=i.width,l=i.icon,f=o.width,d=o.icon,h=$({transform:c,containerWidth:f,iconWidth:u}),p={tag:"rect",attributes:s({},J,{fill:"white"})},v=l.children?{children:l.children.map(Z)}:{},g={tag:"g",attributes:s({},h.inner),children:[Z(s({tag:l.tag,attributes:s({},l.attributes,h.path)},v))]},m={tag:"g",attributes:s({},h.outer),children:[g]},y="mask-".concat(a||K()),b="clip-".concat(a||K()),w={tag:"mask",attributes:s({},J,{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,m]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=d,"g"===t.tag?t.children:[t])},w]};return n.push(x,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(y,")")},J)}),{children:n,attributes:r}}(S):function(e){var t=e.children,n=e.attributes,r=e.main,i=e.transform,o=X(e.styles);if(o.length>0&&(n.style=o),Q(i)){var a=$({transform:i,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:s({},a.outer),children:[{tag:"g",attributes:s({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,a.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(S),k=E.children,C=E.attributes;return S.children=k,S.attributes=C,c?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},i,{id:!0===o?"".concat(t,"-").concat(_.familyPrefix,"-").concat(n):o}),children:r}]}]}(S):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(Q(a)&&n.found&&!r.found){var c={x:n.width/n.height/2,y:.5};i.style=X(s({},o,{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(S)}var te=function(){},ne=(_.measurePerformance&&m&&m.mark&&m.measure,function(e,t,n,r){var i,o,a,s=Object.keys(e),c=s.length,u=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,o=Object.keys(t).reduce((function(e,n){var r=t[n];return!!r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!==typeof k.hooks.addPack||i?k.styles[e]=s({},k.styles[e]||{},o):k.hooks.addPack(e,o),"fas"===e&&re("fa",t)}var ie=k.styles,oe=k.shims,ae=function(){var e=function(e){return ne(ie,(function(t,n,r){return t[r]=ne(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in ie;ne(oe,(function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),e[r]={prefix:i,iconName:o},e}),{})};ae();k.styles;function se(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function ce(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"===typeof e?Y(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(Y(e[n]),'" ')}),"").trim()}(r),">").concat(o.map(ce).join(""),"")}var ue=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),t):t};function le(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}le.prototype=Object.create(Error.prototype),le.prototype.constructor=le;var fe={fill:"currentColor"},de={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},he={tag:"path",attributes:s({},fe,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},pe=s({},de,{attributeName:"opacity"});s({},fe,{cx:"256",cy:"364",r:"28"}),s({},de,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},pe,{values:"1;0;1;1;0;1;"}),s({},fe,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),s({},pe,{values:"1;0;0;0;0;1;"}),s({},fe,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),s({},pe,{values:"0;0;1;1;0;0;"}),k.styles;function ve(e){var t=e[0],n=e[1],r=c(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(_.familyPrefix,"-").concat(x.GROUP)},children:[{tag:"path",attributes:{class:"".concat(_.familyPrefix,"-").concat(x.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(_.familyPrefix,"-").concat(x.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}k.styles;function ge(){var e="svg-inline--fa",t=_.familyPrefix,n=_.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==t||n!==e){var i=new RegExp("\\.".concat("fa","\\-"),"g"),o=new RegExp("\\--".concat("fa","\\-"),"g"),a=new RegExp("\\.".concat(e),"g");r=r.replace(i,".".concat(t,"-")).replace(o,"--".concat(t,"-")).replace(a,".".concat(n))}return r}function me(){_.autoAddCss&&!Oe&&(W(ge()),Oe=!0)}function ye(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ce(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(y){var t=g.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function be(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return se(xe.definitions,n,r)||se(k.styles,n,r)}var we,xe=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?G:n,i=t.symbol,o=void 0!==i&&i,a=t.mask,c=void 0===a?null:a,u=t.maskId,l=void 0===u?null:u,f=t.title,d=void 0===f?null:f,h=t.titleId,p=void 0===h?null:h,v=t.classes,g=void 0===v?[]:v,m=t.attributes,y=void 0===m?{}:m,b=t.styles,w=void 0===b?{}:b;if(e){var x=e.prefix,O=e.iconName,S=e.icon;return ye(s({type:"icon"},e),(function(){return me(),_.autoA11y&&(d?y["aria-labelledby"]="".concat(_.replacementClass,"-title-").concat(p||K()):(y["aria-hidden"]="true",y.focusable="false")),ee({icons:{main:ve(S),mask:c?ve(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:O,transform:s({},G,r),symbol:o,title:d,maskId:l,titleId:p,extra:{attributes:y,styles:w,classes:g}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:be(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:be(r||{})),we(n,s({},t,{mask:r}))})}).call(this,n(69),n(492).setImmediate)},function(e,t,n){var r;!function(i){var o=/^\s+/,a=/\s+$/,s=0,c=i.round,u=i.min,l=i.max,f=i.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(T[e])e=T[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=B.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=B.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=B.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=B.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=B.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=B.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=B.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=B.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:n?"name":"hex"};if(t=B.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=B.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(V(e.r)&&V(e.g)&&V(e.b)?(h=e.r,p=e.g,v=e.b,t={r:255*N(h,255),g:255*N(p,255),b:255*N(v,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):V(e.h)&&V(e.s)&&V(e.v)?(r=D(e.s),s=D(e.v),t=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),c=n*(1-(1-o)*t),u=r%6;return{r:255*[n,s,a,a,c,n][u],g:255*[c,n,n,s,a,a][u],b:255*[a,a,c,n,n,s][u]}}(e.h,r,s),f=!0,d="hsv"):V(e.h)&&V(e.s)&&V(e.l)&&(r=D(e.s),c=D(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=a(c,s,e+1/3),i=a(c,s,e),o=a(c,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var h,p,v;return n=M(n),{ok:f,format:e.format||d,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function h(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,i,o=l(e,t,n),a=u(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var c=o-a;switch(i=s>.5?c/(2-o-a):c/(o+a),o){case e:r=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(d(r));return o}function j(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(d({h:r,s:i,v:o})),o=(o+s)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=M(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[R(c(e).toString(16)),R(c(t).toString(16)),R(c(n).toString(16)),R(z(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=d(e);n="#"+g(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:D(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),i=d(t).toRgb(),o=n/100;return d({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,i,o=d.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},d.mostReadable=function(e,t,n){var r,i,o,a,s=null,c=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;uc&&(c=r,s=d(t[u]));return d.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var T=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);function M(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return u(1,l(0,e))}function L(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function z(e){return i.round(255*parseFloat(e)).toString(16)}function F(e){return L(e)/255}var B=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function V(e){return!!B.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},,,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),u=1;u component from App Bridge React.");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransportListener=t.fromWindow=t.fromFrame=t.Context=void 0;var r=n(174),i=n(446),o=n(227),a=n(334),s=n(449);!function(e){e.Modal="Modal",e.Main="Main"}(t.Context||(t.Context={})),t.fromFrame=function(e,t,n){var o=[],c=e.host,u=e.window;if(!c)throw r.fromAction("App frame is undefined",r.AppActionType.WINDOW_UNDEFINED);return s.isUnframed&&window&&window.MobileWebView&&Object.assign(window.MobileWebView,{postMessageToIframe:function(e,t){null===u||void 0===u||u.postMessage(e,t)}}),c.addEventListener("message",(function(e){if(i.isAppMessage(e))if(e.origin===t)if(s.isUnframed&&window&&window.MobileWebView){c=JSON.stringify({id:"unframed://fromClient",origin:t,data:e.data});window.MobileWebView.postMessage(c)}else for(var n=0,a=o;n))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var a={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};t.defaultOptions=a;var s=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];function c(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=l(t=n.tagValueProcessor(t,e),n.parseNodeValue,n.parseTrueNumberOnly)),t}function u(e,t){if(t.ignoreNameSpace){var n=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===n[0])return"";2===n.length&&(e=r+n[1])}return e}function l(e,t,n){var i;return t&&"string"===typeof e?(""===e.trim()||isNaN(e)?i="true"===e||"false"!==e&&e:(-1!==e.indexOf("0x")?i=Number.parseInt(e,16):-1!==e.indexOf(".")?(i=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):i=Number.parseInt(e,10),n&&(i=String(i)===e?i:e)),i):r.isExist(e)?e:""}t.props=s;var f=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function d(e,t){if(!t.ignoreAttributes&&"string"===typeof e){e=e.replace(/\r?\n/g," ");for(var n=r.getAllMatches(e,f),i=n.length,o={},a=0;a"===o)return{data:r,index:i};"\t"===o&&(o=" ")}r+=o}}function p(e,t,n,r){var i=e.indexOf(t,n);if(-1===i)throw new Error(r);return i+t.length-1}t.getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n"),t=i(t,a,s);for(var n=new o("!xml"),u=n,l="",f=0;f",f,"Closing Tag is not closed."),g=e.substring(f+2,v).trim();if(t.ignoreNameSpace){var m=g.indexOf(":");-1!==m&&(g=g.substr(m+1))}u&&(u.val?u.val=r.getValue(u.val)+""+c(g,l,t):u.val=c(g,l,t)),t.stopNodes.length&&t.stopNodes.includes(u.tagname)&&(u.child=[],void 0==u.attrsMap&&(u.attrsMap={}),u.val=e.substr(u.startIndex+1,f-u.startIndex-1)),u=u.parent,l="",f=v}else if("?"===e[f+1])f=p(e,"?>",f,"Pi Tag is not closed.");else if("!--"===e.substr(f+1,3))f=p(e,"--\x3e",f,"Comment is not closed.");else if("!D"===e.substr(f+1,2)){var y=p(e,">",f,"DOCTYPE is not closed.");f=e.substring(f,y).indexOf("[")>=0?e.indexOf("]>",f)+1:y}else if("!["===e.substr(f+1,2)){var b=p(e,"]]>",f,"CDATA is not closed.")-2,w=e.substring(f+9,b);if(l&&(u.val=r.getValue(u.val)+""+c(u.tagname,l,t),l=""),t.cdataTagName){var x=new o(t.cdataTagName,u,w);u.addChild(x),u.val=r.getValue(u.val)+t.cdataPositionChar,w&&(x.val=w)}else u.val=(u.val||"")+(w||"");f=b+2}else{var O=h(e,f+1),S=O.data,_=O.index,E=S.indexOf(" "),k=S,C=!0;if(-1!==E&&(k=S.substr(0,E).replace(/\s\s*$/,""),S=S.substr(E+1)),t.ignoreNameSpace){var A=k.indexOf(":");-1!==A&&(C=(k=k.substr(A+1))!==O.data.substr(A+1))}if(u&&l&&"!xml"!==u.tagname&&(u.val=r.getValue(u.val)+""+c(u.tagname,l,t)),S.length>0&&S.lastIndexOf("/")===S.length-1){S="/"===k[k.length-1]?k=k.substr(0,k.length-1):S.substr(0,S.length-1);var j=new o(k,u,"");k!==S&&(j.attrsMap=d(S,t)),u.addChild(j)}else{var T=new o(k,u);t.stopNodes.length&&t.stopNodes.includes(T.tagname)&&(T.startIndex=_),k!==S&&C&&(T.attrsMap=d(S,t)),u.addChild(T),u=T}l="",f=_}else l+=e[f]}return n}},function(e,t,n){var r=n(390);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(180),i=n(146);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(181)(Object,"create");e.exports=r},function(e,t,n){var r=n(995),i=n(996),o=n(997),a=n(998),s=n(999);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var s={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[],alwaysCreateTextNode:!1};t.defaultOptions=s;var c=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];function u(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=f(t=n.tagValueProcessor(t,e),n.parseNodeValue,n.numParseOptions)),t}function l(e,t){if(t.ignoreNameSpace){var n=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===n[0])return"";2===n.length&&(e=r+n[1])}return e}function f(e,t,n){if(t&&"string"===typeof e){var i=e.trim();return"true"===i||"false"!==i&&a(e,n)}return r.isExist(e)?e:""}t.props=c;var d=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function h(e,t){if(!t.ignoreAttributes&&"string"===typeof e){e=e.replace(/\r?\n/g," ");for(var n=r.getAllMatches(e,d),i=n.length,o={},a=0;a"===o)return{data:r,index:i};"\t"===o&&(o=" ")}r+=o}}function v(e,t,n,r){var i=e.indexOf(t,n);if(-1===i)throw new Error(r);return i+t.length-1}t.getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n"),t=i(t,s,c);for(var n=new o("!xml"),a=n,l="",f=0;f",f,"Closing Tag is not closed."),g=e.substring(f+2,d).trim();if(t.ignoreNameSpace){var m=g.indexOf(":");-1!==m&&(g=g.substr(m+1))}a&&(a.val?a.val=r.getValue(a.val)+""+u(g,l,t):a.val=u(g,l,t)),t.stopNodes.length&&t.stopNodes.includes(a.tagname)&&(a.child=[],void 0==a.attrsMap&&(a.attrsMap={}),a.val=e.substr(a.startIndex+1,f-a.startIndex-1)),a=a.parent,l="",f=d}else if("?"===e[f+1])f=v(e,"?>",f,"Pi Tag is not closed.");else if("!--"===e.substr(f+1,3))f=v(e,"--\x3e",f,"Comment is not closed.");else if("!D"===e.substr(f+1,2)){var y=v(e,">",f,"DOCTYPE is not closed.");f=e.substring(f,y).indexOf("[")>=0?e.indexOf("]>",f)+1:y}else if("!["===e.substr(f+1,2)){var b=v(e,"]]>",f,"CDATA is not closed.")-2,w=e.substring(f+9,b);if(l&&(a.val=r.getValue(a.val)+""+u(a.tagname,l,t),l=""),t.cdataTagName){var x=new o(t.cdataTagName,a,w);a.addChild(x),a.val=r.getValue(a.val)+t.cdataPositionChar,w&&(x.val=w)}else a.val=(a.val||"")+(w||"");f=b+2}else{var O=p(e,f+1),S=O.data,_=O.index,E=S.indexOf(" "),k=S,C=!0;if(-1!==E&&(k=S.substr(0,E).replace(/\s\s*$/,""),S=S.substr(E+1)),t.ignoreNameSpace){var A=k.indexOf(":");-1!==A&&(C=(k=k.substr(A+1))!==O.data.substr(A+1))}if(a&&l&&"!xml"!==a.tagname&&(a.val=r.getValue(a.val)+""+u(a.tagname,l,t)),S.length>0&&S.lastIndexOf("/")===S.length-1){S="/"===k[k.length-1]?k=k.substr(0,k.length-1):S.substr(0,S.length-1);var j=new o(k,a,"");k!==S&&(j.attrsMap=h(S,t)),a.addChild(j)}else{var T=new o(k,a);t.stopNodes.length&&t.stopNodes.includes(T.tagname)&&(T.startIndex=_),k!==S&&C&&(T.attrsMap=h(S,t)),a.addChild(T),a=T}l="",f=_}else l+=e[f]}return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"InMemoryCache",(function(){return X})),n.d(t,"defaultDataIdFromObject",(function(){return Y})),n.d(t,"StoreReader",(function(){return k})),n.d(t,"assertIdValue",(function(){return j})),n.d(t,"WriteError",(function(){return D})),n.d(t,"enhanceErrorWithDocument",(function(){return z})),n.d(t,"StoreWriter",(function(){return F})),n.d(t,"HeuristicFragmentMatcher",(function(){return l})),n.d(t,"IntrospectionFragmentMatcher",(function(){return f})),n.d(t,"ObjectCache",(function(){return N})),n.d(t,"defaultNormalizedCacheFactory",(function(){return I})),n.d(t,"RecordingCache",(function(){return H})),n.d(t,"record",(function(){return q}));n(894);var r=n(37);function i(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:o(e)}]}}function o(e){if("number"===typeof e||"boolean"===typeof e||"string"===typeof e||"undefined"===typeof e||null===e)return null;if(Array.isArray(e))return o(e[0]);var t=[];return Object.keys(e).forEach((function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:o(e[n])||void 0};t.push(r)})),{kind:"SelectionSet",selections:t}}var a,s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},c=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(r.h)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(r.h)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,a=e.data;if("undefined"!==typeof r){var c=null;try{c=this.read({rootId:r,optimistic:!1,query:s})}catch(f){}var u=c&&c.__typename||"__ClientData",l=Object.assign({__typename:u},a);this.writeFragment({id:r,fragment:(t=l,n=u,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:o(t)}]}),data:l})}else this.writeQuery({query:i(a),data:a})},e}();a||(a={});var u=!1,l=function(){function e(){}return e.prototype.ensureReady=function(){return Promise.resolve()},e.prototype.canBypassInit=function(){return!0},e.prototype.match=function(e,t,n){var i=n.store.get(e.id);return!i&&"ROOT_QUERY"===e.id||!!i&&(i.__typename?i.__typename===t||(Object(r.w)("You are using the simple (heuristic) fragment matcher, but your queries contain union or interface types. Apollo Client will not be able to accurately map fragments. To make this error go away, use the `IntrospectionFragmentMatcher` as described in the docs: https://www.apollographql.com/docs/react/recipes/fragment-matching.html","error"),"heuristic"):(u||(console.warn("You're using fragments in your queries, but either don't have the addTypename:\n true option set in Apollo Client, or you are trying to write a fragment to the store without the __typename.\n Please turn on the addTypename option and include __typename when writing fragments so that Apollo Client\n can accurately match fragments."),console.warn("Could not find __typename on Fragment ",t,i),console.warn("DEPRECATION WARNING: using fragments without __typename is unsupported behavior and will be removed in future versions of Apollo client. You should fix this and set addTypename to true now."),Object(r.r)()||(u=!0)),"heuristic"))},e}(),f=function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return e.prototype.match=function(e,t,n){if(!this.isReady)throw new Error("FragmentMatcher.match() was called before FragmentMatcher.init()");var r=n.store.get(e.id);if(!r)return!1;if(!r.__typename)throw new Error("Cannot match fragment because __typename property is missing: "+JSON.stringify(r));if(r.__typename===t)return!0;var i=this.possibleTypesMap[t];return!!(i&&i.indexOf(r.__typename)>-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),d=n(71),h=n(895).wrap,p=function(){function e(){this.children=null,this.key=null}return e.prototype.lookup=function(){for(var e=[],t=0;t0;return g&&!s&&v.missing.forEach((function(e){if(!e.tolerable)throw new Error("Can't find field "+e.fieldName+" on object "+JSON.stringify(e.object,null,2)+".")})),o&&Object(d.a)(o,v.result)&&(v.result=o),{result:v.result,complete:!g}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.fragmentMatcher,s=void 0===a?A:a,c=Object(r.i)(t),u=Object(r.g)(t),l={query:t,fragmentMap:Object(r.d)(u),contextValue:i,variableValues:o,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:c.selectionSet,rootValue:n,execContext:l})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,i=e.rootValue,o=e.execContext,a=o.fragmentMap,s=o.contextValue,c=o.variableValues,u={result:{}},l=[],f=s.store.get(i.id),d=f&&f.__typename||"ROOT_QUERY"===i.id&&"Query"||void 0;function h(e){var t;return e.missing&&(u.missing=u.missing||[],(t=u.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if(Object(r.t)(e,c))if(Object(r.m)(e)){var u=h(t.executeField(f,d,e,o));"undefined"!==typeof u&&l.push(((n={})[Object(r.s)(e)]=u,n))}else{var p=void 0;if(Object(r.o)(e))p=e;else if(!(p=a[e.name.value]))throw new Error("No fragment named "+e.name.value);var v=p.typeCondition.name.value,g=o.fragmentMatcher(i,v,s);if(g){var m=t.executeSelectionSet({selectionSet:p.selectionSet,rootValue:i,execContext:o});"heuristic"===g&&m.missing&&(m=E({},m,{missing:m.missing.map((function(e){return E({},e,{tolerable:!0})}))})),l.push(h(m))}}})),function(e,t){var n=[];t.forEach((function(t){!function e(t,n,r){null!==n&&"object"===typeof n&&(Object.isExtensible&&!Object.isExtensible(t)&&(t=P(t,r)),Object.keys(n).forEach((function(i){var o=n[i];if(T.call(t,i)){var a=t[i];o!==a&&(t[i]=e(P(a,r),o,r))}else t[i]=o})));return t}(e,t,n)}))}(u.result,l),u},e.prototype.executeField=function(e,t,n,i){var o=i.variableValues,a=i.contextValue,s=function(e,t,n,i,o,a){a.resultKey;var s=a.directives,c=n;(i||s)&&(c=Object(r.l)(c,i,s));var u=void 0;if(e&&"undefined"===typeof(u=e[c])&&o.cacheRedirects&&"string"===typeof t){var l=o.cacheRedirects[t];if(l){var f=l[n];f&&(u=f(e,i,{getCacheKey:function(e){return Object(r.v)({id:o.dataIdFromObject(e),typename:e.__typename})}}))}}if("undefined"===typeof u)return{result:u,missing:[{object:e,fieldName:c,tolerable:!1}]};Object(r.p)(u)&&(u=u.json);return{result:u}}(e,t,n.name.value,Object(r.b)(n,o),a,{resultKey:Object(r.s)(n),directives:Object(r.f)(n,o)});return Array.isArray(s.result)?this.combineExecResults(s,this.executeSubSelectedArray(n,s.result,i)):n.selectionSet?null==s.result?s:this.combineExecResults(s,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:s.result,execContext:i})):(C(n,s.result),s)},e.prototype.combineExecResults=function(){for(var e=[],t=0;t=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var U=function(){return(U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!e.previousResult)return r.data instanceof g?r.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return G(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){if(void 0===e&&(e=!1),e&&this.optimistic.length>0){var t=this.optimistic.map((function(e){return e.data}));return Object.assign.apply(Object,[{},this.data.toObject()].concat(t))}return this.data.toObject()},t.prototype.read=function(e){if(e.rootId&&void 0===this.data.get(e.rootId))return null;var t=e.optimistic&&this.optimistic.length?new N(this.extract(!0)):this.data;return this.storeReader.readQueryFromStore({store:t,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:this.config.fragmentMatcher.match,previousResult:e.previousResult,config:this.config})},t.prototype.write=function(e){this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:this.config.fragmentMatcher.match}),this.broadcastWatches()},t.prototype.diff=function(e){var t=e.optimistic&&this.optimistic.length?new N(this.extract(!0)):this.data;return this.storeReader.diffQueryAgainstStore({store:t,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:this.config.fragmentMatcher.match,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new Error("eviction is not implemented on InMemory Cache")},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this,n=this.optimistic.filter((function(t){return t.id!==e}));this.optimistic=[],n.forEach((function(e){t.recordOptimisticTransaction(e.transaction,e.id)})),this.broadcastWatches()},t.prototype.performTransaction=function(e){var t=this.silenceBroadcast;this.silenceBroadcast=!0,e(this),t||(this.silenceBroadcast=!1),this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){var n=this;this.silenceBroadcast=!0;var r=q(this.extract(!0),(function(t){var r=n.data;n.data=t,n.performTransaction(e),n.data=r}));this.optimistic.push({id:t,transaction:e,data:r}),this.silenceBroadcast=!1,this.broadcastWatches()},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(r.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},t.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:this.transformDocument(Object(r.h)(e.fragment,e.fragmentName)),variables:e.variables,rootId:e.id,optimistic:t})},t.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:this.transformDocument(e.query),variables:e.variables})},t.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,query:this.transformDocument(Object(r.h)(e.fragment,e.fragmentName)),variables:e.variables})},t.prototype.broadcastWatches=function(){var e=this;if(!this.silenceBroadcast){var t=this.optimistic.length>0;this.watches.forEach((function(n){e.maybeBroadcastWatch(n),t&&e.maybeBroadcastWatch.dirty(n)}))}},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(c)},function(e,t,n){"use strict";n.r(t),n.d(t,"ApolloClient",(function(){return z})),n.d(t,"ApolloError",(function(){return k})),n.d(t,"FetchType",(function(){return E})),n.d(t,"NetworkStatus",(function(){return y})),n.d(t,"ObservableQuery",(function(){return C})),n.d(t,"isApolloError",(function(){return _}));var r=n(17),i=n(38),o=n(71),a=n(48),s=n(10),c=n(289);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(r.c)(t,e)}(Error);function u(e){return e.request.length<=1}function l(e,t){var n=Object(r.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"===typeof e?Object(r.a)({},n,e(n)):Object(r.a)({},n,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(r.a)({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}function f(e,t){return t?t(e):a.a.of()}function d(e){return"function"===typeof e?new g(e):e}function h(){return new g((function(){return a.a.of()}))}function p(e){return 0===e.length?h():e.map(d).reduce((function(e,t){return e.concat(t)}))}function v(e,t,n){var r=d(t),i=d(n||new g(f));return u(r)&&u(i)?new g((function(t){return e(t)?r.request(t)||a.a.of():i.request(t)||a.a.of()})):new g((function(t,n){return e(t)?r.request(t,n)||a.a.of():i.request(t,n)||a.a.of()}))}var g=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(v(t,n,r||new e(f)))},e.prototype.concat=function(e){return function(e,t){var n=d(e);if(u(n))return n;var r=d(t);return u(r)?new g((function(e){return n.request(e,(function(e){return r.request(e)||a.a.of()}))||a.a.of()})):new g((function(e,t){return n.request(e,(function(e){return r.request(e,t)||a.a.of()}))||a.a.of()}))}(this,e)},e.prototype.request=function(e,t){throw new s.a(1)},e.empty=h,e.from=p,e.split=v,e.execute=m,e}();function m(e,t){return e.request(l(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!==typeof t.query?Object(c.a)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n0}function _(e){return e.hasOwnProperty("graphQLErrors")}var E,k=function(e){function t(n){var r=n.graphQLErrors,i=n.networkError,o=n.errorMessage,a=n.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=r||[],s.networkError=i||null,s.message=o||function(e){var t="";return S(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var n=e?e.message:"Error message not found.";t+="GraphQL error: "+n+"\n"})),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=t.prototype,s}return Object(r.c)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(E||(E={}));var C=function(e){function t(t){var n=t.queryManager,r=t.options,o=t.shouldSubscribe,a=void 0===o||o,s=e.call(this,(function(e){return s.onSubscribe(e)}))||this;s.observers=new Set,s.subscriptions=new Set,s.isTornDown=!1,s.options=r,s.variables=r.variables||{},s.queryId=n.generateQueryId(),s.shouldSubscribe=a;var c=Object(i.getOperationDefinition)(r.query);return s.queryName=c&&c.name&&c.name.value,s.queryManager=n,s}return Object(r.c)(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:y.error}}var t,n,i,o=this.queryManager.getCurrentQueryResult(this),a=o.data,s=o.partial,c=this.queryManager.queryStore.get(this.queryId),u=this.options.fetchPolicy,l="network-only"===u||"no-cache"===u;if(c){var f=c.networkStatus;if(n=c,void 0===(i=this.options.errorPolicy)&&(i="none"),n&&(n.networkError||"none"===i&&S(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:f,error:new k({graphQLErrors:c.graphQLErrors,networkError:c.networkError})};c.variables&&(this.options.variables=Object(r.a)({},this.options.variables,c.variables),this.variables=this.options.variables),t={data:a,loading:x(f),networkStatus:f},c.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=c.graphQLErrors)}else{var d=l||s&&"cache-only"!==u;t={data:a,loading:d,networkStatus:d?y.loading:y.ready}}return s||this.updateLastResult(Object(r.a)({},t,{stale:!1})),Object(r.a)({},t,{partial:s})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(o.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new s.a(3)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(o.a)(this.variables,e)||(this.variables=Object(r.a)({},this.variables,e)),Object(o.a)(this.options.variables,this.variables)||(this.options.variables=Object(r.a)({},this.options.variables,this.variables)),this.queryManager.fetchQuery(this.queryId,Object(r.a)({},this.options,{fetchPolicy:t}),E.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(s.b)(e.updateQuery,4);var n=Object(r.a)({},e.query?e:Object(r.a)({},this.options,e,{variables:Object(r.a)({},this.variables,e.variables)}),{fetchPolicy:"network-only"}),i=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(i,n,E.normal,this.queryId).then((function(r){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:r.data,variables:n.variables})})),t.queryManager.stopQuery(i),r}),(function(e){throw t.queryManager.stopQuery(i),e}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(r.a)({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(o.a)(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,o=n.variables,a=n.document,s=Object(i.tryFunctionOrLogError)((function(){return e(r,{variables:o})}));s&&(t.dataStore.markUpdateQueryResult(a,o,s),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){T(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(i.cloneDeep)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=A)}catch(i){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(T(this),t.startPollingQuery(this.options,n));var i=function(t){e.updateLastResult(Object(r.a)({},e.lastResult,{errors:t.graphQLErrors,networkStatus:y.error,loading:!1})),j(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,a=i.query,s=i.variables,c=i.fetchPolicy;t.transform(a).hasClientExports?t.getLocalState().addExportedVariables(a,s).then((function(i){var s=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==c&&t.transform(a).serverQuery&&!Object(o.a)(s,i)?e.refetch():j(e.observers,"next",n)})):j(e.observers,"next",n)}},error:i}).catch(i)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(O);function A(e){}function j(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function T(e){var t=e.options.fetchPolicy;Object(s.b)("cache-first"!==t&&"cache-only"!==t,5)}var P=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),M=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(s.b)(!t||t.document===e.document||Object(o.a)(t.document,e.document),19);var n,r=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==y.loading&&(Object(o.a)(t.variables,e.variables)||(r=!0,i=t.variables)),n=r?y.setVariables:e.isPoll?y.poll:e.isRefetch?y.refetch:y.loading;var a=[];t&&t.graphQLErrors&&(a=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:a,networkStatus:n,metadata:e.metadata},"string"===typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=y.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=S(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=y.ready,"string"===typeof n&&this.store[n]&&(this.store[n].networkStatus=y.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=y.error,"string"===typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=y.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=y.loading}))},e}();var N=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(i.mergeDeep)(t.resolvers,e)})):this.resolvers=Object(i.mergeDeep)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,s).then((function(e){return Object(r.a)({},n,{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(i.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(i.removeClientSetsFromDocument)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(r.a)({},e,{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(s.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Object(r.a)({},t,e.exportedVariables)}))]:[2,Object(r.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(w.d)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return w.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(i.buildQueryFromSelectionSet)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,o,a,s){return void 0===n&&(n={}),void 0===o&&(o={}),void 0===a&&(a=function(){return!0}),void 0===s&&(s=!1),Object(r.b)(this,void 0,void 0,(function(){var c,u,l,f,d,h,p,v,g;return Object(r.d)(this,(function(m){var y;return c=Object(i.getMainDefinition)(e),u=Object(i.getFragmentDefinitions)(e),l=Object(i.createFragmentMap)(u),f=c.operation,d=f?(y=f).charAt(0).toUpperCase()+y.slice(1):"Query",p=(h=this).cache,v=h.client,g={fragmentMap:l,context:Object(r.a)({},n,{cache:p,client:v}),variables:o,fragmentMatcher:a,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(c.selectionSet,t,g).then((function(e){return{result:e,exportedVariables:g.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var o,a,c,u,l,f=this;return Object(r.d)(this,(function(d){return o=n.fragmentMap,a=n.context,c=n.variables,u=[t],l=function(e){return Object(r.b)(f,void 0,void 0,(function(){var l,f;return Object(r.d)(this,(function(r){return Object(i.shouldInclude)(e,c)?Object(i.isField)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&u.push(((n={})[Object(i.resultKeyNameFromField)(e)]=t,n))}))]:(Object(i.isInlineFragment)(e)?l=e:(l=o[e.name.value],Object(s.b)(l,7)),l&&l.typeCondition&&(f=l.typeCondition.name.value,n.fragmentMatcher(t,f,a))?[2,this.resolveSelectionSet(l.selectionSet,t,n).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return Object(i.mergeDeepArray)(u)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var o,a,s,c,u,l,f,d,h,p=this;return Object(r.d)(this,(function(r){return o=n.variables,a=e.name.value,s=Object(i.resultKeyNameFromField)(e),c=a!==s,u=t[s]||t[a],l=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=t.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(h=d[c?a:s])&&(l=Promise.resolve(h(t,Object(i.argumentsObjectFromField)(e,o),n.context,{field:e})))),[2,l.then((function(t){return void 0===t&&(t=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}();function I(e){var t=new Set,n=null;return new O((function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}}))}var L=Object.prototype.hasOwnProperty,R=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,o=e.store,a=e.onBroadcast,s=void 0===a?function(){}:a,c=e.ssrMode,u=void 0!==c&&c,l=e.clientAwareness,f=void 0===l?{}:l,d=e.localState,h=e.assumeImmutableResults;this.mutationStore=new P,this.queryStore=new M,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(i.canUseWeakMap?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=o,this.onBroadcast=s,this.clientAwareness=f,this.localState=d||new N({cache:o.getCache()}),this.ssrMode=u,this.assumeImmutableResults=!!h}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.fetchQueryRejectFns.forEach((function(e){e(new s.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,o=e.optimisticResponse,a=e.updateQueries,c=e.refetchQueries,u=void 0===c?[]:c,l=e.awaitRefetchQueries,f=void 0!==l&&l,d=e.update,h=e.errorPolicy,p=void 0===h?"none":h,v=e.fetchPolicy,g=e.context,m=void 0===g?{}:g;return Object(r.b)(this,void 0,void 0,(function(){var e,c,l,h=this;return Object(r.d)(this,(function(g){switch(g.label){case 0:return Object(s.b)(t,9),Object(s.b)(!v||"no-cache"===v,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,m)]:[3,2];case 1:n=g.sent(),g.label=2;case 2:return c=function(){var e={};return a&&h.queries.forEach((function(t,n){var r=t.observableQuery;if(r){var i=r.queryName;i&&L.call(a,i)&&(e[n]={updater:a[i],query:h.queryStore.get(n)})}})),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:c(),update:d,optimisticResponse:o}),this.broadcastQueries(),l=this,[2,new Promise((function(a,s){var h,g;l.getObservableFromLink(t,Object(r.a)({},m,{optimisticResponse:o}),n,!1).subscribe({next:function(r){Object(i.graphQLResultHasError)(r)&&"none"===p?g=new k({graphQLErrors:r.errors}):(l.mutationStore.markMutationResult(e),"no-cache"!==v&&l.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:c(),update:d}),h=r)},error:function(t){l.mutationStore.markMutationError(e,t),l.dataStore.markMutationComplete({mutationId:e,optimisticResponse:o}),l.broadcastQueries(),l.setQuery(e,(function(){return{document:null}})),s(new k({networkError:t}))},complete:function(){if(g&&l.mutationStore.markMutationError(e,g),l.dataStore.markMutationComplete({mutationId:e,optimisticResponse:o}),l.broadcastQueries(),g)s(g);else{"function"===typeof u&&(u=u(h));var t=[];S(u)&&u.forEach((function(e){if("string"===typeof e)l.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(l.query(n))}})),Promise.all(f?t:[]).then((function(){l.setQuery(e,(function(){return{document:null}})),"ignore"===p&&h&&Object(i.graphQLResultHasError)(h)&&delete h.errors,a(h)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,n,o){return Object(r.b)(this,void 0,void 0,(function(){var a,s,c,u,l,f,d,h,p,v,g,m,y,b,w,x,O,S,C=this;return Object(r.d)(this,(function(A){switch(A.label){case 0:return a=t.metadata,s=void 0===a?null:a,c=t.fetchPolicy,u=void 0===c?"cache-first":c,l=t.context,f=void 0===l?{}:l,d=this.transform(t.query).document,h=this.getVariables(d,t.variables),this.transform(d).hasClientExports?[4,this.localState.addExportedVariables(d,h,f)]:[3,2];case 1:h=A.sent(),A.label=2;case 2:if(t=Object(r.a)({},t,{variables:h}),g=v="network-only"===u||"no-cache"===u,v||(m=this.dataStore.getCache().diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),y=m.complete,b=m.result,g=!y||"cache-and-network"===u,p=b),w=g&&"cache-only"!==u&&"standby"!==u,Object(i.hasDirectives)(["live"],d)&&(w=!0),x=this.idCounter++,O="no-cache"!==u?this.updateQueryWatch(e,d,t):void 0,this.setQuery(e,(function(){return{document:d,lastRequestId:x,invalidated:!0,cancel:O}})),this.invalidate(o),this.queryStore.initQuery({queryId:e,document:d,storePreviousVariables:w,variables:h,isPoll:n===E.poll,isRefetch:n===E.refetch,metadata:s,fetchMoreForQueryId:o}),this.broadcastQueries(),w){if(S=this.fetchRequest({requestId:x,queryId:e,document:d,options:t,fetchMoreForQueryId:o}).catch((function(t){throw _(t)?t:(x>=C.getQuery(e).lastRequestId&&(C.queryStore.markQueryError(e,t,o),C.invalidate(e),C.invalidate(o),C.broadcastQueries()),new k({networkError:t}))})),"cache-and-network"!==u)return[2,S];S.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!w),this.invalidate(e),this.invalidate(o),this.transform(d).hasForcedResolvers?[2,this.localState.runResolvers({document:d,remoteResult:{data:p},context:f,variables:h,onlyRunForcedResolvers:!0}).then((function(n){return C.markQueryResult(e,n,t,o),C.broadcastQueries(),n}))]:(this.broadcastQueries(),[2,{data:p}])}}))}))},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(r){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,c=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var l=x(n.networkStatus),f=s&&s.getLastResult(),d=!(!f||f.networkStatus===n.networkStatus),h=t.returnPartialData||!o&&n.previousVariables||d&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!l||h){var p=S(n.graphQLErrors),v=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===v&&p||n.networkError)return i("error",new k({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var g=void 0,m=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&r.setQuery(e,(function(){return{newData:null}})),g=o.result,m=!o.complete;else{var y=s&&s.getLastError(),b="none"!==v&&(y&&y.graphQLErrors)!==n.graphQLErrors;if(f&&f.data&&!b)g=f.data,m=!1;else{var w=r.dataStore.getCache().diff({query:c,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});g=w.result,m=!w.complete}}var O=m&&!(t.returnPartialData||"cache-only"===u),_={data:O?f&&f.data:g,loading:l,networkStatus:n.networkStatus,stale:O};"all"===v&&p&&(_.errors=n.graphQLErrors),i("next",_)}catch(E){i("error",new k({networkError:E}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.dataStore.getCache(),r=n.transformDocument(e),o=Object(i.removeConnectionDirectiveFromDocument)(n.transformForLink(r)),a=this.localState.clientQuery(r),s=this.localState.serverQuery(o),c={document:r,hasClientExports:Object(i.hasClientExports)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:a,serverQuery:s,defaultVars:Object(i.getDefaultValues)(Object(i.getOperationDefinition)(r))},u=function(e){e&&!t.has(e)&&t.set(e,c)};u(e),u(r),u(a),u(s)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(r.a)({},this.transform(e).defaultVars,t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(s.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),"undefined"===typeof e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=Object(r.a)({},e);return new C({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(s.b)(e.query,12),Object(s.b)("Document"===e.query.kind,13),Object(s.b)(!e.returnPartialData,14),Object(s.b)(!e.pollInterval,15),new Promise((function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new s.a(16))}));var e=[];return this.queries.forEach((function(t,n){t.observableQuery&&e.push(n)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,o=e.variables;n=this.transform(n).document,o=this.getVariables(n,o);var a=function(e){return t.getObservableFromLink(n,{},e,!1).map((function(o){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(o,n,e),t.broadcastQueries()),Object(i.graphQLResultHasError)(o))throw new k({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var s=this.localState.addExportedVariables(n,o).then(a);return new O((function(e){var t=null;return s.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return a(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),c=this.getQuery(e.queryId).newData;if(c&&c.complete)return{data:c.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),l=u.result,f=u.complete;return{data:f||a?l:void 0,partial:!f}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"===typeof e){var n=this.getQuery(e).observableQuery;Object(s.b)(n,17),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,n){t.invalidated&&t.listeners.forEach((function(r){r&&r(e.queryStore.get(n),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,o){var a,s=this;void 0===o&&(o=this.queryDeduplication);var c=this.transform(e).serverQuery;if(c){var u=this.inFlightLinkObservables,l=this.link,f={query:c,variables:n,operationName:Object(i.getOperationName)(c)||void 0,context:this.prepareContext(Object(r.a)({},t,{forceFetch:!o}))};if(t=f.context,o){var d=u.get(c)||new Map;u.set(c,d);var h=JSON.stringify(n);if(!(a=d.get(h))){d.set(h,a=I(m(l,f)));var p=function(){d.delete(h),d.size||u.delete(c),v.unsubscribe()},v=a.subscribe({next:p,error:p,complete:p})}}else a=I(m(l,f))}else a=O.of({data:{}}),t=this.prepareContext(t);var g=this.transform(e).clientQuery;return g&&(a=function(e,t){return new O((function(n){var r=n.next,i=n.error,o=n.complete,a=0,s=!1,c={next:function(e){++a,new Promise((function(n){n(t(e))})).then((function(e){--a,r&&r.call(n,e),s&&c.complete()}),(function(e){--a,i&&i.call(n,e)}))},error:function(e){i&&i.call(n,e)},complete:function(){s=!0,a||o&&o.call(n)}},u=e.subscribe(c);return function(){return u.unsubscribe()}}))}(a,(function(e){return s.localState.runResolvers({document:g,remoteResult:e,context:t,variables:n})}))),a},e.prototype.fetchRequest=function(e){var t,n,r=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,c=e.fetchMoreForQueryId,u=s.variables,l=s.errorPolicy,f=void 0===l?"none":l,d=s.fetchPolicy;return new Promise((function(e,l){var h=r.getObservableFromLink(a,s.context,u),p="fetchRequest:"+o;r.fetchQueryRejectFns.set(p,l);var v=function(){r.fetchQueryRejectFns.delete(p),r.setQuery(o,(function(e){e.subscriptions.delete(g)}))},g=h.map((function(e){if(i>=r.getQuery(o).lastRequestId&&(r.markQueryResult(o,e,s,c),r.queryStore.markQueryResult(o,e,c),r.invalidate(o),r.invalidate(c),r.broadcastQueries()),"none"===f&&S(e.errors))return l(new k({graphQLErrors:e.errors}));if("all"===f&&(n=e.errors),c||"no-cache"===d)t=e.data;else{var h=r.dataStore.getCache().diff({variables:u,query:a,optimistic:!1,returnPartialData:!0}),p=h.result;(h.complete||s.returnPartialData)&&(t=p)}})).subscribe({error:function(e){v(),l(e)},complete:function(){v(),e({data:t,errors:n,loading:!1,networkStatus:y.ready,stale:!1})}});r.setQuery(o,(function(e){e.subscriptions.add(g)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),i=Object(r.a)({},n,t(n));this.queries.set(e,i)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(r.a)({},t,{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==y.ready&&t.networkStatus!==y.error},e.prototype.startPollingQuery=function(e,t,n){var i=this,o=e.pollInterval;if(Object(s.b)(o,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=o,a.options=Object(r.a)({},e,{fetchPolicy:"network-only"});var c=function(){var e=i.pollingInfoByQueryId.get(t);e&&(i.checkInFlight(t)?u():i.fetchQuery(t,e.options,E.poll).then(u,u))},u=function(){var e=i.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(c,e.interval))};n&&this.addQueryListener(t,n),u()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),D=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,o){void 0===o&&(o=!1);var a=!Object(i.graphQLResultHasError)(e);o&&Object(i.graphQLResultHasError)(e)&&e.data&&(a=!0),!r&&a&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){Object(i.graphQLResultHasError)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"===typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(i.graphQLResultHasError)(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach((function(o){var a=r[o],s=a.query,c=a.updater,u=t.cache.diff({query:s.document,variables:s.variables,returnPartialData:!0,optimistic:!1}),l=u.result;if(u.complete){var f=Object(i.tryFunctionOrLogError)((function(){return c(l,{mutationResult:e.result,queryName:Object(i.getOperationName)(s.document)||void 0,queryVariables:s.variables})}));f&&n.push({result:f,dataId:"ROOT_QUERY",query:s.document,variables:s.variables})}})),this.cache.performTransaction((function(t){n.forEach((function(e){return t.write(e)}));var r=e.update;r&&Object(i.tryFunctionOrLogError)((function(){return r(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),z=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,c=e.connectToDevTools,u=e.queryDeduplication,l=void 0===u||u,f=e.defaultOptions,d=e.assumeImmutableResults,h=void 0!==d&&d,p=e.resolvers,v=e.typeDefs,m=e.fragmentMatcher,y=e.name,b=e.version,w=e.link;if(!w&&p&&(w=g.empty()),!w||!n)throw new s.a(1);this.link=w,this.cache=n,this.store=new D(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=l,this.defaultOptions=f||{},this.typeDefs=v,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);"undefined"!==typeof c&&(c&&"undefined"!==typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.4",this.localState=new N({cache:n,client:this,resolvers:p,fragmentMatcher:m}),this.queryManager=new R({link:this.link,store:this.store,queryDeduplication:l,ssrMode:i,clientAwareness:{name:y,version:b},localState:this.localState,assumeImmutableResults:h,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(r.a)({},this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(r.a)({},e,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(r.a)({},this.defaultOptions.query,e)),Object(s.b)("cache-and-network"!==e.fetchPolicy,2),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(r.a)({},e,{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(r.a)({},this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return m(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();t.default=z},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));n(25),n(10),n(17),n(114),n(71);function r(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}"function"===typeof WeakMap&&"object"===typeof navigator&&navigator.product,Object.prototype.toString;Object.prototype.hasOwnProperty;Object.create({})}).call(this,n(70))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(12),o=n(11),a=n(90),s=n(2),c=n(7),u=n(5),l=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(r.f)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(o.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(a.a)(t)),this.middlewareStack.use(Object(i.a)(t));var r=e.concat(this.middlewareStack),s={logger:t.logger,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:c.ee.filterSensitiveLog,outputFilterSensitiveLog:c.de.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return Object(u.rd)(e,t)},t.prototype.deserialize=function(e,t){return Object(u.Db)(e,t)},t}(s.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(12),o=n(11),a=n(90),s=n(2),c=n(7),u=n(5),l=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(r.f)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(o.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(a.a)(t)),this.middlewareStack.use(Object(i.a)(t));var r=e.concat(this.middlewareStack),s={logger:t.logger,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:c.F.filterSensitiveLog,outputFilterSensitiveLog:c.E.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return Object(u.Sb)(e,t)},t.prototype.deserialize=function(e,t){return Object(u.e)(e,t)},t}(s.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(12),o=n(11),a=n(90),s=n(2),c=n(98),u=n(5),l=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(r.f)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(o.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(a.a)(t)),this.middlewareStack.use(Object(i.a)(t));var r=e.concat(this.middlewareStack),s={logger:t.logger,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:c.J.filterSensitiveLog,outputFilterSensitiveLog:c.I.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return Object(u.zd)(e,t)},t.prototype.deserialize=function(e,t){return Object(u.Lb)(e,t)},t}(s.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(12),o=n(127),a=n(11),s=n(2),c=n(7),u=n(5),l=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(r.f)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(a.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(o.b)(t)),this.middlewareStack.use(Object(i.a)(t));var r=e.concat(this.middlewareStack),s={logger:t.logger,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:c.u.filterSensitiveLog,outputFilterSensitiveLog:c.t.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return Object(u.Pb)(e,t)},t.prototype.deserialize=function(e,t){return Object(u.b)(e,t)},t}(s.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(42),o=n(12),a=n(11),s=n(2),c=n(7),u=n(5),l=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(r.f)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(a.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(o.a)(t)),this.middlewareStack.use(Object(i.a)(t));var r=e.concat(this.middlewareStack),s={logger:t.logger,clientName:"S3Client",commandName:"PutObjectTaggingCommand",inputFilterSensitiveLog:c.ie.filterSensitiveLog,outputFilterSensitiveLog:c.he.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return Object(u.vd)(e,t)},t.prototype.deserialize=function(e,t){return Object(u.Hb)(e,t)},t}(s.b)},function(e,t,n){"use strict";n.d(t,"a",(function(){return ie}));var r=n(151),i=n(96),o=n(117),a=n(237),s=n(76),c=n(585),u=n(162),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=r;if("+"!==a&&a!==s)return!1}return r===i.length})(r,e)&&n.push(t)}));var r=JSON.parse(t);"object"===typeof r&&(r[S]=e),n.forEach((function(e){e.forEach((function(e){return e.next(r)}))}))}catch(i){y.warn("Error handling message",i,t)}},t.prototype.subscribe=function(e,t){var n=this;void 0===t&&(t={});var i=[].concat(e);return y.debug("Subscribing to topic(s)",i.join(",")),new r.a((function(e){var r;i.forEach((function(t){var r=n._topicObservers.get(t);r||(r=new Set,n._topicObservers.set(t,r)),r.add(e)}));var o=t.clientId,a=void 0===o?n.clientId:o,s=n._clientIdObservers.get(a);return s||(s=new Set),s.add(e),n._clientIdObservers.set(a,s),v(n,void 0,void 0,(function(){var n,o,s,c;return g(this,(function(u){switch(u.label){case 0:return void 0!==(n=t.url)?[3,2]:[4,this.endpoint];case 1:return s=u.sent(),[3,3];case 2:s=n,u.label=3;case 3:o=s,u.label=4;case 4:return u.trys.push([4,6,,7]),[4,this.connect(a,{url:o})];case 5:return r=u.sent(),i.forEach((function(e){r.subscribe(e)})),[3,7];case 6:return c=u.sent(),e.error(c),[3,7];case 7:return[2]}}))})),function(){return y.debug("Unsubscribing from topic(s)",i.join(",")),r&&(n._clientIdObservers.get(a).delete(e),0===n._clientIdObservers.get(a).size&&(n.disconnect(a),n._clientIdObservers.delete(a)),i.forEach((function(t){var i=n._topicObservers.get(t)||new Set;i.delete(e),0===i.size&&(n._topicObservers.delete(t),r.isConnected()&&r.unsubscribe(t))}))),null}}))},t}(d),E=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,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(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=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++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).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]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},T=function(){for(var e=[],t=0;t-1}));if(r){var i=r.client,o=r.url;e[i]||(e[i]={url:o,topics:new Set}),e[i].topics.add(t)}return e}),{})),[4,Promise.all(s.map((function(e){var t=j(e,2),n=t[0],i=t[1],o=i.url,a=i.topics;return k(c,void 0,void 0,(function(){var e,t,i=this;return C(this,(function(s){switch(s.label){case 0:e=null,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.connect(n,{clientId:n,url:o})];case 2:return e=s.sent(),[3,4];case 3:return t=s.sent(),r.error({message:"Failed to connect",error:t}),r.complete(),[2,void 0];case 4:return a.forEach((function(t){e.isConnected()&&(e.subscribe(t),i._topicClient.set(t,e))})),[2,e]}}))}))})))];case 1:return u.sent(),[2]}}))})),function(){P.debug("Unsubscribing from topic(s)",i.join(",")),i.forEach((function(e){var t=n._topicClient.get(e);t&&t.isConnected()&&(t.unsubscribe(e),n._topicClient.delete(e),Array.from(n._topicClient.values()).some((function(e){return e===t}))||n.disconnect(t.clientId)),n._topicObservers.delete(e)}))}}));return r.a.from(i).map((function(e){var t=n.getTopicForValue(e),r=n._topicAlias.get(t);return e.data=Object.entries(e.data).reduce((function(e,t){var n=j(t,2),i=n[0],o=n[1];return e[r||i]=o,e}),{}),e}))},t}(_),N=n(15),I=n(62),L=n(30),R=n(331),D=n(56),z=n(1216),F=n(244),B=n(296),V=n(126),U=n(149),H=n(112),q=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},X=new o.a("AWSAppSyncRealTimeProvider"),Q="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",$=[400,401,403];!function(e){e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_START="start",e.GQL_START_ACK="start_ack",e.GQL_DATA="data",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_STOP="stop",e.GQL_COMPLETE="complete",e.GQL_ERROR="error"}(b||(b={})),function(e){e[e.PENDING=0]="PENDING",e[e.CONNECTED=1]="CONNECTED",e[e.FAILED=2]="FAILED"}(w||(w={})),function(e){e[e.CLOSED=0]="CLOSED",e[e.READY=1]="READY",e[e.CONNECTING=2]="CONNECTING"}(x||(x={}));var J={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},Z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.socketStatus=x.CLOSED,t.keepAliveTimeout=3e5,t.subscriptionObserverMap=new Map,t.promiseArray=[],t}return q(t,e),t.prototype.getProviderName=function(){return"AWSAppSyncRealTimeProvider"},t.prototype.newClient=function(){throw new Error("Not used here")},t.prototype.publish=function(e,t,n){return W(this,void 0,void 0,(function(){return K(this,(function(e){throw new Error("Operation not supported")}))}))},t.prototype.subscribe=function(e,t){var n=this,i=t.appSyncGraphqlEndpoint;return new r.a((function(e){if(i){var r=Object(u.v4)();return n._startSubscriptionWithAWSAppSyncRealTime({options:t,observer:e,subscriptionId:r}).catch((function(t){e.error({errors:[G({},new N.a(H.a.REALTIME_SUBSCRIPTION_INIT_ERROR+": "+t))]}),e.complete()})),function(){return W(n,void 0,void 0,(function(){var e,t;return K(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),[4,this._waitForSubscriptionToBeConnected(r)];case 1:if(n.sent(),!(e=(this.subscriptionObserverMap.get(r)||{}).subscriptionState))return[2];if(e!==w.CONNECTED)throw new Error("Subscription never connected");return this._sendUnsubscriptionMessage(r),[3,4];case 2:return t=n.sent(),X.debug("Error while unsubscribing "+t),[3,4];case 3:return this._removeSubscriptionObserver(r),[7];case 4:return[2]}}))}))}}e.error({errors:[G({},new N.a("Subscribe only available for AWS AppSync endpoint"))]}),e.complete()}))},Object.defineProperty(t.prototype,"isSSLEnabled",{get:function(){return!this.options.aws_appsync_dangerously_connect_to_http_endpoint_for_testing},enumerable:!0,configurable:!0}),t.prototype._startSubscriptionWithAWSAppSyncRealTime=function(e){var t=e.options,n=e.observer,r=e.subscriptionId;return W(this,void 0,void 0,(function(){var e,i,o,s,c,u,l,f,d,h,p,v,g,m,y,x,O,S,_,E,k,C,A,j,T,P,M=this;return K(this,(function(I){switch(I.label){case 0:return e=t.appSyncGraphqlEndpoint,i=t.authenticationType,o=t.query,s=t.variables,c=t.apiKey,u=t.region,l=t.graphql_headers,f=void 0===l?function(){return{}}:l,d=t.additionalHeaders,h=void 0===d?{}:d,p=w.PENDING,v={query:o,variables:s},this.subscriptionObserverMap.set(r,{observer:n,query:o,variables:s,subscriptionState:p,startAckTimeoutId:null}),g=JSON.stringify(v),y=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:c,appSyncGraphqlEndpoint:e,authenticationType:i,payload:g,canonicalUri:"",region:u,additionalHeaders:h})];case 1:return x=[G.apply(void 0,y.concat([I.sent()]))],[4,f()];case 2:m=G.apply(void 0,[G.apply(void 0,[G.apply(void 0,x.concat([I.sent()])),h]),(P={},P[a.c]=D.a.userAgent,P)]),O={id:r,payload:{data:g,extensions:{authorization:G({},m)}},type:b.GQL_START},S=JSON.stringify(O),I.label=3;case 3:return I.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:c,appSyncGraphqlEndpoint:e,authenticationType:i,region:u,additionalHeaders:h})];case 4:return I.sent(),[3,6];case 5:return _=I.sent(),X.debug({err:_}),E=_.message,k=void 0===E?"":E,n.error({errors:[G({},new N.a(H.a.CONNECTION_FAILED+": "+k))]}),n.complete(),"function"===typeof(C=(this.subscriptionObserverMap.get(r)||{}).subscriptionFailedCallback)&&C(),[2];case 6:return A=this.subscriptionObserverMap.get(r),j=A.subscriptionFailedCallback,T=A.subscriptionReadyCallback,this.subscriptionObserverMap.set(r,{observer:n,subscriptionState:p,variables:s,query:o,subscriptionReadyCallback:T,subscriptionFailedCallback:j,startAckTimeoutId:setTimeout((function(){M._timeoutStartSubscriptionAck.call(M,r)}),15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(S),[2]}}))}))},t.prototype._waitForSubscriptionToBeConnected=function(e){return W(this,void 0,void 0,(function(){var t=this;return K(this,(function(n){return this.subscriptionObserverMap.get(e).subscriptionState===w.PENDING?[2,new Promise((function(n,r){var i=t.subscriptionObserverMap.get(e),o=i.observer,a=i.subscriptionState,s=i.variables,c=i.query;t.subscriptionObserverMap.set(e,{observer:o,subscriptionState:a,variables:s,query:c,subscriptionReadyCallback:n,subscriptionFailedCallback:r})}))]:[2]}))}))},t.prototype._sendUnsubscriptionMessage=function(e){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===x.READY){var t={id:e,type:b.GQL_STOP},n=JSON.stringify(t);this.awsRealTimeSocket.send(n)}}catch(r){X.debug({err:r})}},t.prototype._removeSubscriptionObserver=function(e){this.subscriptionObserverMap.delete(e),setTimeout(this._closeSocketIfRequired.bind(this),1e3)},t.prototype._closeSocketIfRequired=function(){if(!(this.subscriptionObserverMap.size>0))if(this.awsRealTimeSocket)if(this.awsRealTimeSocket.bufferedAmount>0)setTimeout(this._closeSocketIfRequired.bind(this),1e3);else{X.debug("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId);var e=this.awsRealTimeSocket;e.onclose=void 0,e.onerror=void 0,e.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=x.CLOSED}else this.socketStatus=x.CLOSED},t.prototype._handleIncomingSubscriptionMessage=function(e){X.debug("subscription message from AWS AppSync RealTime: "+e.data);var t=JSON.parse(e.data),n=t.id,r=void 0===n?"":n,i=t.payload,o=t.type,a=this.subscriptionObserverMap.get(r)||{},s=a.observer,c=void 0===s?null:s,u=a.query,l=void 0===u?"":u,f=a.variables,d=void 0===f?{}:f,h=a.startAckTimeoutId,p=a.subscriptionReadyCallback,v=a.subscriptionFailedCallback;if(X.debug({id:r,observer:c,query:l,variables:d}),o===b.GQL_DATA&&i&&i.data)c?c.next(i):X.debug("observer not found for id: "+r);else if(o!==b.GQL_START_ACK){if(o===b.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,H.a.TIMEOUT_DISCONNECT),this.keepAliveTimeout));if(o===b.GQL_ERROR){g=w.FAILED;this.subscriptionObserverMap.set(r,{observer:c,query:l,variables:d,startAckTimeoutId:h,subscriptionReadyCallback:p,subscriptionFailedCallback:v,subscriptionState:g}),c.error({errors:[G({},new N.a(H.a.CONNECTION_FAILED+": "+JSON.stringify(i)))]}),clearTimeout(h),c.complete(),"function"===typeof v&&v()}}else{X.debug("subscription ready for "+JSON.stringify({query:l,variables:d})),"function"===typeof p&&p(),clearTimeout(h),function(e,t,n){R.a.dispatch("api",{event:e,data:t,message:n},"PubSub",Q)}(H.a.SUBSCRIPTION_ACK,{query:l,variables:d},"Connection established for subscription");var g=w.CONNECTED;this.subscriptionObserverMap.set(r,{observer:c,query:l,variables:d,startAckTimeoutId:null,subscriptionState:g,subscriptionReadyCallback:p,subscriptionFailedCallback:v})}},t.prototype._errorDisconnect=function(e){X.debug("Disconnect error: "+e),this.subscriptionObserverMap.forEach((function(t){var n=t.observer;n&&!n.closed&&n.error({errors:[G({},new N.a(e))]})})),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=x.CLOSED},t.prototype._timeoutStartSubscriptionAck=function(e){var t=this.subscriptionObserverMap.get(e)||{},n=t.observer,r=t.query,i=t.variables;n&&(this.subscriptionObserverMap.set(e,{observer:n,query:r,variables:i,subscriptionState:w.FAILED}),n&&!n.closed&&(n.error({errors:[G({},new N.a("Subscription timeout "+JSON.stringify({query:r,variables:i})))]}),n.complete()),X.debug("timeoutStartSubscription",JSON.stringify({query:r,variables:i})))},t.prototype._initializeWebSocketConnection=function(e){var t=this,n=e.appSyncGraphqlEndpoint,r=e.authenticationType,i=e.apiKey,o=e.region,a=e.additionalHeaders;if(this.socketStatus!==x.READY)return new Promise((function(e,s){return W(t,void 0,void 0,(function(){var t,c,u,l,f,d,h,p,v,g;return K(this,(function(m){switch(m.label){case 0:if(this.promiseArray.push({res:e,rej:s}),this.socketStatus!==x.CLOSED)return[3,5];m.label=1;case 1:return m.trys.push([1,4,,5]),this.socketStatus=x.CONNECTING,t=this.isSSLEnabled?"wss://":"ws://",c=n.replace("https://",t).replace("http://",t).replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta"),u="{}",d=(f=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:r,payload:u,canonicalUri:"/connect",apiKey:i,appSyncGraphqlEndpoint:n,region:o,additionalHeaders:a})];case 2:return l=d.apply(f,[m.sent()]),h=L.Buffer.from(l).toString("base64"),p=L.Buffer.from(u).toString("base64"),v=c+"?header="+h+"&payload="+p,[4,this._initializeRetryableHandshake({awsRealTimeUrl:v})];case 3:return m.sent(),this.promiseArray.forEach((function(e){var t=e.res;X.debug("Notifying connection successful"),t()})),this.socketStatus=x.READY,this.promiseArray=[],[3,5];case 4:return g=m.sent(),this.promiseArray.forEach((function(e){return(0,e.rej)(g)})),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=x.CLOSED,[3,5];case 5:return[2]}}))}))}))},t.prototype._initializeRetryableHandshake=function(e){var t=e.awsRealTimeUrl;return W(this,void 0,void 0,(function(){return K(this,(function(e){switch(e.label){case 0:return X.debug("Initializaling retryable Handshake"),[4,Object(z.b)(this._initializeHandshake.bind(this),[{awsRealTimeUrl:t}],5e3)];case 1:return e.sent(),[2]}}))}))},t.prototype._initializeHandshake=function(e){var t=e.awsRealTimeUrl;return W(this,void 0,void 0,(function(){var e,n,r,i=this;return K(this,(function(o){switch(o.label){case 0:X.debug("Initializing handshake "+t),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,new Promise((function(e,n){var r=new WebSocket(t,"graphql-ws");r.onerror=function(){X.debug("WebSocket connection error")},r.onclose=function(){n(new Error("Connection handshake error"))},r.onopen=function(){return i.awsRealTimeSocket=r,e()}}))];case 2:return o.sent(),[4,new Promise((function(e,t){var n=!1;i.awsRealTimeSocket.onerror=function(e){X.debug("WebSocket error "+JSON.stringify(e))},i.awsRealTimeSocket.onclose=function(e){X.debug("WebSocket closed "+e.reason),t(new Error(JSON.stringify(e)))},i.awsRealTimeSocket.onmessage=function(r){X.debug("subscription message from AWS AppSyncRealTime: "+r.data+" ");var o=JSON.parse(r.data),a=o.type,s=o.payload,c=(void 0===s?{}:s).connectionTimeoutMs,u=void 0===c?3e5:c;if(a===b.GQL_CONNECTION_ACK)return n=!0,i.keepAliveTimeout=u,i.awsRealTimeSocket.onmessage=i._handleIncomingSubscriptionMessage.bind(i),i.awsRealTimeSocket.onerror=function(e){X.debug(e),i._errorDisconnect(H.a.CONNECTION_CLOSED)},i.awsRealTimeSocket.onclose=function(e){X.debug("WebSocket closed "+e.reason),i._errorDisconnect(H.a.CONNECTION_CLOSED)},void e("Cool, connected to AWS AppSyncRealTime");if(a===b.GQL_CONNECTION_ERROR){var l=o.payload,f=(void 0===l?{}:l).errors,d=Y(void 0===f?[]:f,1)[0],h=void 0===d?{}:d,p=h.errorType,v=void 0===p?"":p,g=h.errorCode;t({errorType:v,errorCode:void 0===g?0:g})}};var r={type:b.GQL_CONNECTION_INIT};i.awsRealTimeSocket.send(JSON.stringify(r)),setTimeout(function(){n||t(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(i),15e3)}))];case 3:return o.sent(),[3,5];case 4:throw e=o.sent(),n=e.errorType,r=e.errorCode,$.includes(r)?new z.a(n):n?new Error(n):e;case 5:return[2]}}))}))},t.prototype._awsRealTimeHeaderBasedAuth=function(e){var t=e.authenticationType,n=e.payload,r=e.canonicalUri,i=e.appSyncGraphqlEndpoint,o=e.apiKey,a=e.region,s=e.additionalHeaders;return W(this,void 0,void 0,(function(){var e,c,u;return K(this,(function(l){switch(l.label){case 0:return e={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeCUPHeader.bind(this),AWS_LAMBDA:this._customAuthHeader},"function"!==typeof(c=e[t])?(X.debug("Authentication type "+t+" not supported"),[2,""]):(u=I.parse(i).host,[4,c({payload:n,canonicalUri:r,appSyncGraphqlEndpoint:i,apiKey:o,region:a,host:u,additionalHeaders:s})]);case 1:return[2,l.sent()]}}))}))},t.prototype._awsRealTimeCUPHeader=function(e){var t=e.host;return W(this,void 0,void 0,(function(){return K(this,(function(e){switch(e.label){case 0:return[4,U.a.currentSession()];case 1:return[2,{Authorization:e.sent().getAccessToken().getJwtToken(),host:t}]}}))}))},t.prototype._awsRealTimeOPENIDHeader=function(e){var t=e.host;return W(this,void 0,void 0,(function(){var e,n,r;return K(this,(function(i){switch(i.label){case 0:return[4,V.a.getItem("federatedInfo")];case 1:return(n=i.sent())?(e=n.token,[3,4]):[3,2];case 2:return[4,U.a.currentAuthenticatedUser()];case 3:(r=i.sent())&&(e=r.token),i.label=4;case 4:if(!e)throw new Error("No federated jwt");return[2,{Authorization:e,host:t}]}}))}))},t.prototype._awsRealTimeApiKeyHeader=function(e){var t=e.apiKey,n=e.host;return W(this,void 0,void 0,(function(){var e,r;return K(this,(function(i){return e=new Date,r=e.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:n,"x-amz-date":r,"x-api-key":t}]}))}))},t.prototype._awsRealTimeIAMHeader=function(e){var t=e.payload,n=e.canonicalUri,r=e.appSyncGraphqlEndpoint,i=e.region;return W(this,void 0,void 0,(function(){var e,o,a;return K(this,(function(s){switch(s.label){case 0:return e={region:i,service:"appsync"},[4,this._ensureCredentials()];case 1:if(!s.sent())throw new Error("No credentials");return[4,F.a.get().then((function(e){return{secret_key:e.secretAccessKey,access_key:e.accessKeyId,session_token:e.sessionToken}}))];case 2:return o=s.sent(),a={url:""+r+n,data:t,method:"POST",headers:G({},J)},[2,B.a.sign(a,o,e).headers]}}))}))},t.prototype._customAuthHeader=function(e){var t=e.host,n=e.additionalHeaders;if(!n.Authorization)throw new Error("No auth token specified");return{Authorization:n.Authorization,host:t}},t.prototype._ensureCredentials=function(){return F.a.get().then((function(e){if(!e)return!1;var t=F.a.shear(e);return X.debug("set credentials for AWSAppSyncRealTimeProvider",t),!0})).catch((function(e){return X.warn("ensure credentials error",e),!1}))},t}(d),ee=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},te=function(e,t){var n,r,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(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=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++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).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]0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}return"number"===typeof e.byteLength?e.byteLength:"number"===typeof e.size?e.size:void 0}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,c=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]1?i-1:0),a=1;a0){var a=Object.keys(n),c=s.default.find(a,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(n[c]);if(void 0!==u)return u}var l=s.default.find(a,(function(e){return t.isPlatform(e)}));if(l){var f=this.satisfies(n[l]);if(void 0!==f)return f}}if(o>0){var d=Object.keys(i),h=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(250);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r=function(e,t,n){var r=n<0?e.length+n:n,i=e.splice(t,1)[0];e.splice(r,0,i)},i=function(e,t,n){return e=e.slice(),r(e,t,n),e};e.exports=i,e.exports.default=i,e.exports.mutate=r},function(e,t,n){"use strict";var r=n(1),i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e();if(e.isMoment(r)||(r=e(r)),!r.isValid())throw new Error("Invalid date.");var i=r.clone().add(n,t),o=[];return o.push(e.min(r,i)),o.push(e.max(r,i)),new h(o)},e.rangeFromISOString=function(t){var n=a(t),r=e.parseZone(n[0]),i=e.parseZone(n[1]);return new h(r,i)},e.parseZoneRange=e.rangeFromISOString,e.fn.range=e.range,e.range.constructor=h,e.isRange=function(e){return e instanceof h},e.fn.within=function(e){return e.contains(this.toDate())},e};var l=r(n(2)),f=r(n(1)),d={year:!0,quarter:!0,month:!0,week:!0,day:!0,hour:!0,minute:!0,second:!0},h=t.DateRange=function(){function e(t,n){o(this,e);var r=t,i=n;if(1===arguments.length||void 0===n)if("object"===(void 0===t?"undefined":c(t))&&2===t.length){var u=s(t,2);r=u[0],i=u[1]}else if("string"==typeof t){var f=a(t),d=s(f,2);r=d[0],i=d[1]}this.start=r||0===r?(0,l.default)(r):(0,l.default)(-864e13),this.end=i||0===i?(0,l.default)(i):(0,l.default)(864e13)}return u(e,[{key:"adjacent",value:function(e){var t=this.start.isSame(e.end),n=this.end.isSame(e.start);return t&&e.start.valueOf()<=this.start.valueOf()||n&&e.end.valueOf()>=this.end.valueOf()}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{adjacent:!1};return this.overlaps(e,t)?new this.constructor(l.default.min(this.start,e.start),l.default.max(this.end,e.end)):null}},{key:"by",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeEnd:!1,step:1},n=this;return i({},f.default.iterator,(function(){var r=t.step||1,i=Math.abs(n.start.diff(n.end,e))/r,o=t.excludeEnd||!1,a=0;return t.hasOwnProperty("exclusive")&&(o=t.exclusive),{next:function(){var t=n.start.clone().add(a*r,e),s=o?!(a1&&void 0!==arguments[1]?arguments[1]:{excludeEnd:!1,step:1},n=this,r=t.step||1,o=this.valueOf()/e.valueOf()/r,a=Math.floor(o),s=t.excludeEnd||!1,c=0;return t.hasOwnProperty("exclusive")&&(s=t.exclusive),i({},f.default.iterator,(function(){return a===1/0?{done:!0}:{next:function(){var t=(0,l.default)(n.start.valueOf()+e.valueOf()*c*r),i=a===o&&s?!(c1&&void 0!==arguments[1]?arguments[1]:{excludeStart:!1,excludeEnd:!1},r=this.start.valueOf(),i=this.end.valueOf(),o=t.valueOf(),a=t.valueOf(),s=n.excludeStart||!1,c=n.excludeEnd||!1;n.hasOwnProperty("exclusive")&&(s=c=n.exclusive),t instanceof e&&(o=t.start.valueOf(),a=t.end.valueOf());var u=ra||i>=a&&!c;return u&&l}},{key:"diff",value:function(e,t){return this.end.diff(this.start,e,t)}},{key:"duration",value:function(e,t){return this.diff(e,t)}},{key:"intersect",value:function(e){var t=this.start.valueOf(),n=this.end.valueOf(),r=e.start.valueOf(),i=e.end.valueOf(),o=r==i;if(t==n){if(t==r||t==i)return null;if(t>r&&tt&&a1&&void 0!==arguments[1]?arguments[1]:{adjacent:!1},n=null!==this.intersect(e);return t.adjacent&&!n?this.adjacent(e):n}},{key:"reverseBy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{excludeStart:!1,step:1},n=this;return i({},f.default.iterator,(function(){var r=t.step||1,i=Math.abs(n.start.diff(n.end,e))/r,o=t.excludeStart||!1,a=0;return t.hasOwnProperty("exclusive")&&(o=t.exclusive),{next:function(){var t=n.end.clone().subtract(a*r,e),s=o?!(a1&&void 0!==arguments[1]?arguments[1]:{excludeStart:!1,step:1},n=this,r=t.step||1,o=this.valueOf()/e.valueOf()/r,a=Math.floor(o),s=t.excludeStart||!1,c=0;return t.hasOwnProperty("exclusive")&&(s=t.exclusive),i({},f.default.iterator,(function(){return a===1/0?{done:!0}:{next:function(){var t=(0,l.default)(n.end.valueOf()-e.valueOf()*c*r),i=a===o&&s?!(c-1}},function(e,t,n){"use strict";var r={object:!0,symbol:!0};e.exports=function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(e){return!1}return!!r[typeof Symbol.iterator]&&!!r[typeof Symbol.toPrimitive]&&!!r[typeof Symbol.toStringTag]}},function(e,t,n){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},function(e,t,n){"use strict";var r,i,o,a,s=n(4),c=n(21),u=Object.create,l=Object.defineProperties,f=Object.defineProperty,d=Object.prototype,h=u(null);if("function"==typeof Symbol){r=Symbol;try{String(r()),a=!0}catch(e){}}var p=function(){var e=u(null);return function(t){for(var n,r,i=0;e[t+(i||"")];)++i;return e[t+=i||""]=!0,f(d,n="@@"+t,s.gs(null,(function(e){r||(r=!0,f(this,n,s(e)),r=!1)}))),n}}();o=function(e){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return i(e)},e.exports=i=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return a?r(t):(n=u(o.prototype),t=void 0===t?"":String(t),l(n,{__description__:s("",t),__name__:s("",p(t))}))},l(i,{for:s((function(e){return h[e]?h[e]:h[e]=i(String(e))})),keyFor:s((function(e){var t;for(t in c(e),h)if(h[t]===e)return t})),hasInstance:s("",r&&r.hasInstance||i("hasInstance")),isConcatSpreadable:s("",r&&r.isConcatSpreadable||i("isConcatSpreadable")),iterator:s("",r&&r.iterator||i("iterator")),match:s("",r&&r.match||i("match")),replace:s("",r&&r.replace||i("replace")),search:s("",r&&r.search||i("search")),species:s("",r&&r.species||i("species")),split:s("",r&&r.split||i("split")),toPrimitive:s("",r&&r.toPrimitive||i("toPrimitive")),toStringTag:s("",r&&r.toStringTag||i("toStringTag")),unscopables:s("",r&&r.unscopables||i("unscopables"))}),l(o.prototype,{constructor:s(i),toString:s("",(function(){return this.__name__}))}),l(i.prototype,{toString:s((function(){return"Symbol ("+c(this).__description__+")"})),valueOf:s((function(){return c(this)}))}),f(i.prototype,i.toPrimitive,s("",(function(){var e=c(this);return"symbol"==typeof e?e:e.toString()}))),f(i.prototype,i.toStringTag,s("c","Symbol")),f(o.prototype,i.toStringTag,s("c",i.prototype[i.toStringTag])),f(o.prototype,i.toPrimitive,s("c",i.prototype[i.toPrimitive]))},function(e,t,n){"use strict";var r=n(19);e.exports=function(e){if(!r(e))throw new TypeError(e+" is not a symbol");return e}}]))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,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(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=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++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).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}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var o=function(e){var t,n=new URL(e),o=n.hostname,a=n.pathname,s=n.port,c=n.protocol,u=n.search;return u&&(t=function(e){var t,n,o={};if(e=e.replace(/^\?/,""))try{for(var a=r(e.split("&")),s=a.next();!s.done;s=a.next()){var c=i(s.value.split("="),2),u=c[0],l=c[1],f=void 0===l?null:l;u=decodeURIComponent(u),f&&(f=decodeURIComponent(f)),u in o?Array.isArray(o[u])?o[u].push(f):o[u]=[o[u],f]:o[u]=f}}catch(d){t={error:d}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o}(u)),{hostname:o,port:s?parseInt(s):void 0,protocol:c,path:a,query:t}}},function(e,t,n){"use strict";n.r(t),n.d(t,"fromUtf8",(function(){return r})),n.d(t,"toUtf8",(function(){return i}));var r=function(e){return"function"===typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var t=[],n=0,r=e.length;n>6|192,63&i|128);else if(n+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)}(e)},i=function(e){return"function"===typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]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]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i={clockOffset:0,getDateWithClockOffset:function(){return i.clockOffset?new Date((new Date).getTime()+i.clockOffset):new Date},getClockOffset:function(){return i.clockOffset},getHeaderStringFromDate:function(e){return void 0===e&&(e=i.getDateWithClockOffset()),e.toISOString().replace(/[:\-]|\.\d{3}/g,"")},getDateFromHeaderString:function(e){var t=r(e.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/),7),n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],c=t[6];return new Date(Date.UTC(Number(n),Number(i)-1,Number(o),Number(a),Number(s),Number(c)))},isClockSkewed:function(e){return Math.abs(e.getTime()-i.getDateWithClockOffset().getTime())>=3e5},isClockSkewError:function(e){if(!e.response||!e.response.headers)return!1;var t=e.response.headers;return Boolean(["BadRequestException","InvalidSignatureException"].includes(t["x-amzn-errortype"])&&(t.date||t.Date))},setClockOffset:function(e){i.clockOffset=e}}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNudgedPopoverRect=t.getNewPopoverRect=t.popoverRectForPosition=t.createContainer=t.targetPositionHasChanged=t.popoverStatesAreEqual=t.rectsAreEqual=t.arrayUnique=t.Constants=void 0,t.Constants={POPOVER_CONTAINER_CLASS_NAME:"react-tiny-popover-container",DEFAULT_ALIGN:"center",OBSERVER_THRESHOLDS:Array(1e3).fill(null).map((function(e,t){return t/1e3})).reverse(),DEFAULT_POSITIONS:["top","left","right","bottom"],EMPTY_CLIENT_RECT:{top:0,left:0,bottom:0,height:0,right:0,width:0}};t.arrayUnique=function(e){return e.filter((function(e,t,n){return n.indexOf(e)===t}))};t.rectsAreEqual=function(e,t){return e===t||(null===e||void 0===e?void 0:e.bottom)===(null===t||void 0===t?void 0:t.bottom)&&(null===e||void 0===e?void 0:e.height)===(null===t||void 0===t?void 0:t.height)&&(null===e||void 0===e?void 0:e.left)===(null===t||void 0===t?void 0:t.left)&&(null===e||void 0===e?void 0:e.right)===(null===t||void 0===t?void 0:t.right)&&(null===e||void 0===e?void 0:e.top)===(null===t||void 0===t?void 0:t.top)&&(null===e||void 0===e?void 0:e.width)===(null===t||void 0===t?void 0:t.width)};t.popoverStatesAreEqual=function(e,n){return e===n||(null===e||void 0===e?void 0:e.align)===(null===n||void 0===n?void 0:n.align)&&(null===e||void 0===e?void 0:e.nudgedLeft)===(null===n||void 0===n?void 0:n.nudgedLeft)&&(null===e||void 0===e?void 0:e.nudgedTop)===(null===n||void 0===n?void 0:n.nudgedTop)&&e.padding===n.padding&&t.rectsAreEqual(null===e||void 0===e?void 0:e.popoverRect,null===n||void 0===n?void 0:n.popoverRect)&&t.rectsAreEqual(null===e||void 0===e?void 0:e.childRect,null===n||void 0===n?void 0:n.childRect)&&(null===e||void 0===e?void 0:e.position)===(null===n||void 0===n?void 0:n.position)};t.targetPositionHasChanged=function(e,t){return void 0===e||e.left!==t.left||e.top!==t.top||e.width!==t.width||e.height!==t.height};t.createContainer=function(e,t){var n=window.document.createElement("div");return t&&(n.className=t),Object.assign(n.style,e),n};t.popoverRectForPosition=function(e,t,n,r,i){var o,a,s=t.left+t.width/2,c=t.top+t.height/2,u=n.width,l=n.height;switch(e){case"left":o=c-l/2,a=t.left-r-u,"start"===i&&(o=t.top),"end"===i&&(o=t.bottom-l);break;case"bottom":o=t.bottom+r,a=s-u/2,"start"===i&&(a=t.left),"end"===i&&(a=t.right-u);break;case"right":o=c-l/2,a=t.right+r,"start"===i&&(o=t.top),"end"===i&&(o=t.bottom-l);break;default:o=t.top-l-r,a=s-u/2,"start"===i&&(a=t.left),"end"===i&&(a=t.right-u)}return{top:o,left:a,width:u,height:l,right:a+u,bottom:o+l}};t.getNewPopoverRect=function(e,n){var r=e.position,i=e.align,o=e.childRect,a=e.popoverRect,s=e.parentRect,c=e.padding,u=e.reposition,l=t.popoverRectForPosition(r,o,a,c,i);return{rect:l,boundaryViolation:u&&("top"===r&&l.tops.right-n||"bottom"===r&&l.bottom>s.bottom-n)}};t.getNudgedPopoverRect=function(e,t,n){var r=t.top+n,i=t.left+n,o=t.right-n,a=t.bottom-n,s=e.topa?a-e.height:s;var c=e.lefto?o-e.width:c,width:e.width,height:e.height,right:c+e.width,bottom:s+e.height}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(117),i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},a=function(){for(var e=[],t=0;t-1)&&(r===c||s.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var o={channel:e,payload:i({},t),source:n,patternInfo:[]};try{this._toListeners(o)}catch(a){s.error(a)}},e.prototype.listen=function(e,t,n){var r,i=this;if(void 0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(t))s.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),r=t.onHubCapsule.bind(t);else{if("function"!==typeof t)throw new Error("No callback supplied to Hub");r=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:r});else{var o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:n,callback:r})}return function(){i.remove(e,r)}},e.prototype._toListeners=function(e){var t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach((function(r){s.debug("Dispatching to "+t+" with ",n);try{r.callback(e)}catch(i){s.error(i)}})),this.patterns.length>0){if(!n.message)return void s.warn("Cannot perform pattern matching without a message key");var a=n.message;this.patterns.forEach((function(t){var n=a.match(t.pattern);if(n){var r=o(n).slice(1),c=i(i({},e),{patternInfo:r});try{t.callback(c)}catch(u){s.error(u)}}}))}},e}())("__default__")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,n(423).__exportStar)(n(678),t)},function(e,t,n){"use strict";(function(t){var r=n(105),i=n(699),o=n(429),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n(430)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(a)})),e.exports=c}).call(this,n(70))},function(e,t,n){"use strict";function r(e,t,n){var r=e.findIndex((function(e){return e===t}));return r>=0&&(e.splice(r,1),n&&n(t),!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.removeFromCollection=t.addAndRemoveFromCollection=void 0,t.addAndRemoveFromCollection=function(e,t,n){return e.push(t),function(){return r(e,t,n)}},t.removeFromCollection=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&void 0!==t.label},t.isGroupedButtonPayload=function(e){var t=e;return Array.isArray(t.buttons)&&"string"===typeof t.id&&"string"===typeof t.label};var f=function(e){function t(t,n){var r=e.call(this,t,u.ComponentType.ButtonGroup,u.Group.ButtonGroup)||this;return r.disabled=!1,r.plain=!1,r.buttonsOptions=[],r.buttons=[],r.set(n,!1),r}return r(t,e),Object.defineProperty(t.prototype,"options",{get:function(){return{buttons:this.buttonsOptions,disabled:this.disabled,label:this.label,plain:this.plain}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"payload",{get:function(){return i(i({},this.options),{buttons:this.buttons,id:this.id})},enumerable:!1,configurable:!0}),t.prototype.set=function(e,t){void 0===t&&(t=!0);var n=s.getMergedProps(this.options,e),r=n.label,i=n.disabled,a=n.buttons,c=n.plain;return this.label=r,this.disabled=Boolean(i),this.buttons=this.getButtons(a),this.plain=Boolean(c),t&&this.dispatch(o.UPDATE),this},t.prototype.dispatch=function(e){switch(e){case o.UPDATE:var t=l(this.group,this.component,this.payload);this.app.dispatch(t)}return this},t.prototype.updateButtons=function(e){if(this.buttons&&0!==this.buttons.length){for(var t,n=0,r=this.buttons;n0?r:n)(e)}},function(e,t,n){var r=n(344)("keys"),i=n(269);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(132),i=n(158),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(268)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports={}},function(e,t,n){var r=n(230),i=n(839),o=n(345),a=n(343)("IE_PROTO"),s=function(){},c=function(){var e,t=n(470)("iframe"),r=o.length;for(t.style.display="none",n(840).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("