altair-static 4.0.9 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/build/dist/108.js +1 -0
  2. package/build/dist/283.js +1 -0
  3. package/build/dist/379.js +1 -0
  4. package/build/dist/3rdpartylicenses.txt +52 -156
  5. package/build/dist/471.js +1 -0
  6. package/build/dist/527.js +1 -0
  7. package/build/dist/604.js +1 -0
  8. package/build/dist/672.js +1 -0
  9. package/build/dist/709.js +1 -0
  10. package/build/dist/729.js +1 -0
  11. package/build/dist/747.js +1 -0
  12. package/build/dist/790.js +1 -0
  13. package/build/dist/794.js +1 -0
  14. package/build/dist/866.js +1 -0
  15. package/build/dist/873.js +1 -0
  16. package/build/dist/934.js +1 -0
  17. package/build/dist/assets/i18n/ach-UG.json +157 -153
  18. package/build/dist/assets/i18n/cs-CZ.json +4 -0
  19. package/build/dist/assets/i18n/da-DK.json +4 -0
  20. package/build/dist/assets/i18n/de-DE.json +4 -0
  21. package/build/dist/assets/i18n/default.json +4 -0
  22. package/build/dist/assets/i18n/en-US.json +4 -0
  23. package/build/dist/assets/i18n/es-ES.json +4 -0
  24. package/build/dist/assets/i18n/fi-FI.json +4 -0
  25. package/build/dist/assets/i18n/fr-FR.json +4 -0
  26. package/build/dist/assets/i18n/hu-HU.json +4 -0
  27. package/build/dist/assets/i18n/it-IT.json +4 -0
  28. package/build/dist/assets/i18n/ja-JP.json +4 -0
  29. package/build/dist/assets/i18n/ko-KR.json +4 -0
  30. package/build/dist/assets/i18n/nl-NL.json +4 -0
  31. package/build/dist/assets/i18n/no-NO.json +4 -0
  32. package/build/dist/assets/i18n/pl-PL.json +4 -0
  33. package/build/dist/assets/i18n/pt-BR.json +4 -0
  34. package/build/dist/assets/i18n/pt-PT.json +4 -0
  35. package/build/dist/assets/i18n/ro-RO.json +4 -0
  36. package/build/dist/assets/i18n/ru-RU.json +30 -26
  37. package/build/dist/assets/i18n/sr-SP.json +4 -0
  38. package/build/dist/assets/i18n/sv-SE.json +4 -0
  39. package/build/dist/assets/i18n/tr-TR.json +4 -0
  40. package/build/dist/assets/i18n/uk-UA.json +4 -0
  41. package/build/dist/assets/i18n/vi-VN.json +4 -0
  42. package/build/dist/assets/i18n/zh-CN.json +12 -8
  43. package/build/dist/assets/i18n/zh-TW.json +4 -0
  44. package/build/dist/index.html +3 -3
  45. package/build/dist/main.js +1 -0
  46. package/build/dist/polyfills.js +1 -0
  47. package/build/dist/runtime.js +1 -0
  48. package/build/dist/styles.css +2 -2
  49. package/build/index.js +21 -28
  50. package/build/index.js.map +1 -1
  51. package/build/index.test.js +23 -13
  52. package/build/index.test.js.map +1 -1
  53. package/build/utils/get-altair-html.js +3 -3
  54. package/build/utils/get-altair-html.js.map +1 -1
  55. package/build/utils/get-dist.js +2 -2
  56. package/build/utils/get-dist.js.map +1 -1
  57. package/package.json +4 -4
  58. package/tsconfig.json +1 -1
  59. package/build/dist/0-es2018.worker.js +0 -1
  60. package/build/dist/0-es5.worker.js +0 -1
  61. package/build/dist/1-es2018.js +0 -1
  62. package/build/dist/1-es5.js +0 -1
  63. package/build/dist/10-es2018.js +0 -1
  64. package/build/dist/10-es5.js +0 -1
  65. package/build/dist/11-es2018.js +0 -1
  66. package/build/dist/11-es5.js +0 -1
  67. package/build/dist/12-es2018.js +0 -1
  68. package/build/dist/12-es5.js +0 -1
  69. package/build/dist/13-es2018.js +0 -1
  70. package/build/dist/13-es5.js +0 -1
  71. package/build/dist/14-es2018.js +0 -1
  72. package/build/dist/14-es5.js +0 -1
  73. package/build/dist/15-es2018.js +0 -1
  74. package/build/dist/15-es5.js +0 -1
  75. package/build/dist/2-es2018.js +0 -1
  76. package/build/dist/2-es5.js +0 -1
  77. package/build/dist/7-es2018.js +0 -1
  78. package/build/dist/7-es5.js +0 -1
  79. package/build/dist/8-es2018.js +0 -1
  80. package/build/dist/8-es5.js +0 -1
  81. package/build/dist/9-es2018.js +0 -1
  82. package/build/dist/9-es5.js +0 -1
  83. package/build/dist/main-es2018.js +0 -1
  84. package/build/dist/main-es5.js +0 -1
  85. package/build/dist/polyfills-es2018.js +0 -1
  86. package/build/dist/polyfills-es5.js +0 -1
  87. package/build/dist/runtime-es2018.js +0 -1
  88. package/build/dist/runtime-es5.js +0 -1
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"+LXc":function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=r("1Old")("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},s=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,e.exports=a?o:s},"+bCz":function(e,t,r){"use strict";var n;r.d(t,"a",function(){return n}),n||(n={})},"+orC":function(e,t,r){var n=r("zU8g").Buffer;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return i.indexOf(Object.prototype.toString.call(e))>-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},"/+mi":function(e,t,r){var n=r("uZW4");function i(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null!=e){var r={};return n.each(t.members,function(t,n){var i=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var s=o(e[i],n);void 0!==s&&(r[t]=s)}}),r}}(e,t);case"map":return function(e,t){if(null!=e){var r={};return n.each(e,function(e,n){var i=o(n,t.value);r[e]=void 0===i?null:i}),r}}(e,t);case"list":return function(e,t){if(null!=e){var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);r.push(void 0===n?null:n)}),r}}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=i},"/4Ut":function(e){e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none"},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none"},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none"},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none"},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},"/4yE":function(e,t,r){var n=r("uZW4"),i=r("i0hM");function o(){}function s(e,t){for(var r=e.getElementsByTagName(t),n=0,i=r.length;n<i;n++)if(r[n].parentNode===e)return r[n]}function a(e,t){switch(t||(t={}),t.type){case"structure":return u(e,t);case"map":return function(e,t){for(var r={},n=t.key.name||"key",i=t.value.name||"value",o=t.flattened?t.name:"entry",u=e.firstElementChild;u;){if(u.nodeName===o){var c=s(u,n).textContent,l=s(u,i);r[c]=a(l,t.value)}u=u.nextElementSibling}return r}(e,t);case"list":return function(e,t){for(var r=[],n=t.flattened?t.name:t.member.name||"member",i=e.firstElementChild;i;)i.nodeName===n&&r.push(a(i,t.member)),i=i.nextElementSibling;return r}(e,t);case void 0:case null:return function(e){if(null==e)return"";if(!e.firstElementChild)return null===e.parentNode.parentNode?{}:0===e.childNodes.length?"":e.textContent;for(var t={type:"structure",members:{}},r=e.firstElementChild;r;){var n=r.nodeName;Object.prototype.hasOwnProperty.call(t.members,n)?t.members[n].type="list":t.members[n]={name:n},r=r.nextElementSibling}return u(e,t)}(e);default:return function(e,t){if(e.getAttribute){var r=e.getAttribute("encoding");"base64"===r&&(t=new i.create({type:r}))}var n=e.textContent;return""===n&&(n=null),"function"==typeof t.toType?t.toType(n):n}(e,t)}}function u(e,t){var r={};return null===e||n.each(t.members,function(n,i){if(i.isXmlAttribute)Object.prototype.hasOwnProperty.call(e.attributes,i.name)&&(r[n]=a({textContent:e.attributes[i.name].value},i));else{var o=i.flattened?e:s(e,i.name);o?r[n]=a(o,i):i.flattened||"list"!==i.type||t.api.xmlNoDefaultLists||(r[n]=i.defaultValue)}}),r}o.prototype.parse=function(e,t){if(""===e.replace(/^\s+/,""))return{};var r,i;try{if(window.DOMParser){try{r=(new DOMParser).parseFromString(e,"text/xml")}catch(f){throw n.error(new Error("Parse error in document"),{originalError:f,code:"XMLParserError",retryable:!0})}if(null===r.documentElement)throw n.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var o=r.getElementsByTagName("parsererror")[0];if(o&&(o.parentNode===r||"body"===o.parentNode.nodeName||o.parentNode.parentNode===r||"body"===o.parentNode.parentNode.nodeName)){var u=o.getElementsByTagName("div")[0]||o;throw n.error(new Error(u.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((r=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!r.loadXML(e))throw n.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(p){i=p}if(r&&r.documentElement&&!i){var c=a(r.documentElement,t),l=s(r.documentElement,"ResponseMetadata");return l&&(c.ResponseMetadata=a(l,{})),c}if(i)throw n.error(i||new Error,{code:"XMLParserError",retryable:!0});return{}},e.exports=o},"/FdR":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),global.Buffer=global.Buffer||r("zU8g").Buffer;var n=r("9FZN"),i=r("LIvr").util.crypto,o=function(e,t,r){return void 0===r&&(r=""),i.lib.createHmac("sha256",e).update(t,"utf8").digest(r)},s=function(e){return e=e||"",i.createHash("sha256").update(e,"utf8").digest("hex")},a=function(e){return Object.keys(e).map(function(e){return e.toLowerCase()}).sort().join(";")},u=function(e,t,r){void 0===r&&(r=null),e.headers=e.headers||{};var i=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),u=i.substr(0,8),c=n.parse(e.url);e.headers.host=c.host,e.headers["x-amz-date"]=i,t.session_token&&(e.headers["X-Amz-Security-Token"]=t.session_token);var l=function(e){var t,r=n.parse(e.url);return[e.method||"/",r.path,r.query,(t=e.headers,t&&0!==Object.keys(t).length?Object.keys(t).map(function(e){return{key:e.toLowerCase(),value:t[e]?t[e].trim().replace(/\s+/g," "):""}}).sort(function(e,t){return e.key<t.key?-1:1}).map(function(e){return e.key+":"+e.value}).join("\n")+"\n":""),a(e.headers),s(e.body)].join("\n")}(e),f=function(e,t,r){return[e,t,r,"aws4_request"].join("/")}(u,(r=r||function(e){var t=(n.parse(e.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===t[1]&&(t=t.reverse()),{service:e.service||t[0],region:e.region||t[1]}}(e)).region,r.service),p=function(e,t,r,n){return["AWS4-HMAC-SHA256",r,n,s(t)].join("\n")}(0,l,i,f),h=function(e,t){return o(e,t,"hex")}(function(e,t,r){void 0===e&&(e="");var n=o("AWS4"+e,t),i=o(n,r.region),s=o(i,r.service);return o(s,"aws4_request")}(t.secret_key,u,r),p),d=function(e,t,r,n,i){return void 0===t&&(t=""),["AWS4-HMAC-SHA256 Credential="+t+"/"+r,"SignedHeaders="+n,"Signature="+i].join(", ")}(0,t.access_key,f,a(e.headers),h);return e.headers.Authorization=d,e},c=function(){function e(){}return e.sign=u,e}();t.Signer=c,t.default=c},"0HyC":function(e,t,r){var n,i=r("dH5K");r("gDch"),r("hfgg"),i.Config=i.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),i.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){var t,r=this;function n(t){e(t,t?null:r.credentials)}function o(e,t){return new i.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}r.credentials?"function"==typeof r.credentials.get?r.credentials.get(function(e){e&&(e=o("Could not load credentials from "+r.credentials.constructor.name,e)),n(e)}):(t=null,r.credentials.accessKeyId&&r.credentials.secretAccessKey||(t=o("Missing credentials")),n(t)):r.credentialProvider?r.credentialProvider.resolve(function(e,t){e&&(e=o("Could not load credentials from any providers",e)),r.credentials=t,n(e)}):n(o("No credentials to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),i.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||i.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(i.util.readFileSync(e)),r=new i.FileSystemCredentials(e),n=new i.CredentialProviderChain;return n.providers.unshift(r),n.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){i.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):this[e]="httpOptions"===e&&this[e]?i.util.merge(this[e],t):t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy"},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&((e=i.util.copy(e)).credentials=new i.Credentials(e)),e},setPromisesDependency:function(e){n=e,null===e&&"function"==typeof Promise&&(n=Promise);var t=[i.Request,i.Credentials,i.CredentialProviderChain];i.S3&&(t.push(i.S3),i.S3.ManagedUpload&&t.push(i.S3.ManagedUpload)),i.util.addPromises(t,n)},getPromisesDependency:function(){return n}}),i.config=new i.Config},"0ORH":function(e,t,r){"use strict";t.decode=t.parse=r("9VFc"),t.encode=t.stringify=r("sazJ")},"0rvZ":function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var i=r("LYE2");t.CONTROL_EVENTS_KEY=i.CONTROL_EVENTS_KEY;var o=r("oZE0"),s=r("J+jz"),a=r("SL2x"),u=r("Ro6a");t.createSubscriptionHandshakeLink=function(e,t){var r,c;return"string"==typeof e?(r=t||o.createHttpLink({uri:e}),c=o.ApolloLink.from([new a.NonTerminatingLink("controlMessages",{link:new o.ApolloLink(function(e,t){return new o.Observable(function(t){var r,o=e.variables,s=i.CONTROL_EVENTS_KEY,a=o[s],u=n(o,["symbol"==typeof s?s:s+""]);return void 0!==a&&(e.variables=u),t.next(((r={})[i.CONTROL_EVENTS_KEY]=a,r)),function(){}})})}),new a.NonTerminatingLink("subsInfo",{link:r}),new i.SubscriptionHandshakeLink("subsInfo")])):(r=t||o.createHttpLink({uri:e.url}),c=new u.AppSyncRealTimeSubscriptionHandshakeLink(e)),o.ApolloLink.split(function(e){var t=s.getMainDefinition(e.query);return"OperationDefinition"===t.kind&&"subscription"===t.operation},c,r)}},"1Old":function(e,t,r){"use strict";var n=r("nS4h"),i=r("yowe"),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},"1eGD":function(e,t,r){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){return r({key:t,value:e[t]},{key:n,value:e[n]})}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,s;if(Array.isArray(t)){for(s="[",r=0;r<t.length;r++)r&&(s+=","),s+=e(t[r])||"null";return s+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=o.push(t)-1,u=Object.keys(t).sort(i&&i(t));for(s="",r=0;r<u.length;r++){var c=u[r],l=e(t[c]);l&&(s&&(s+=","),s+=JSON.stringify(c)+":"+l)}return o.splice(a,1),"{"+s+"}"}}(e)}},"1xPv":function(e,t,r){var n=r("dH5K"),i=r("uZW4"),o=r("Gi+K"),s=r("i0hM"),a=r("yJiX").populateHostPrefix;e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new o).serialize(e.params,t.input,function(e,t){r.params[e]=t}),r.body=i.queryParamsToString(r.params),a(e)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("<UnknownOperationException"))t={Code:"UnknownOperation",Message:"Unknown operation "+e.request.operation};else try{t=(new n.XML.Parser).parse(r)}catch(o){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.requestId&&!e.requestId&&(e.requestId=t.requestId),t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),e.error=i.error(new Error,t.Code?{code:t.Code,message:t.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t=e.request,r=t.service.api.operations[t.operation].output||{},o=r;if(o.resultWrapper){var a=s.create({type:"structure"});a.members[o.resultWrapper]=r,a.memberNames=[o.resultWrapper],i.property(r,"name",r.resultWrapper),r=a}var u=new n.XML.Parser;if(r&&r.members&&!r.members._XAMZRequestId){var c=s.create({type:"string"},{api:{protocol:"query"}},"requestId");r.members._XAMZRequestId=c}var l=u.parse(e.httpResponse.body.toString(),r);e.requestId=l._XAMZRequestId||l.requestId,l._XAMZRequestId&&delete l._XAMZRequestId,o.resultWrapper&&l[o.resultWrapper]&&(i.update(l,l[o.resultWrapper]),delete l[o.resultWrapper]),e.data=l}}},"2Tks":function(e,t,r){var n=r("dH5K");n.ParamValidator=n.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,n.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(n.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){var n;this.validateType(t,r,["object"],"structure");for(var i=0;e.required&&i<e.required.length;i++)null==t[n=e.required[i]]&&this.fail("MissingRequiredParameter","Missing required key '"+n+"' in "+r);for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var o=t[n],s=e.members[n];if(void 0!==s){var a=[r,n].join(".");this.validateMember(s,o,a)}else null!=o&&this.fail("UnexpectedParameter","Unexpected key '"+n+"' found in "+r)}return!0},validateMember:function(e,t,r){switch(e.type){case"structure":return this.validateStructure(e,t,r);case"list":return this.validateList(e,t,r);case"map":return this.validateMap(e,t,r);default:return this.validateScalar(e,t,r)}},validateList:function(e,t,r){if(this.validateType(t,r,[Array])){this.validateRange(e,t.length,r,"list member count");for(var n=0;n<t.length;n++)this.validateMember(e.member,t[n],r+"["+n+"]")}},validateMap:function(e,t,r){if(this.validateType(t,r,["object"],"map")){var n=0;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(this.validateMember(e.key,i,r+"[key='"+i+"']"),this.validateMember(e.value,t[i],r+"['"+i+"']"),n++);this.validateRange(e,n,r,"map member count")}},validateScalar:function(e,t,r){switch(e.type){case null:case void 0:case"string":return this.validateString(e,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(e,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+r)}},validateString:function(e,t,r){var n=["string"];e.isJsonValue&&(n=n.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,n)&&(this.validateEnum(e,t,r),this.validateRange(e,t.length,r,"string length"),this.validatePattern(e,t,r),this.validateUri(e,t,r))},validateUri:function(e,t,r){"uri"===e.location&&0===t.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,n){this.validation.min&&void 0!==e.min&&t<e.min&&this.fail("MinRangeError","Expected "+n+" >= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+n+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,i){if(null==e)return!1;for(var o=!1,s=0;s<r.length;s++){if("string"==typeof r[s]){if(typeof e===r[s])return!0}else if(r[s]instanceof RegExp){if((e||"").toString().match(r[s]))return!0}else{if(e instanceof r[s])return!0;if(n.util.isType(e,r[s]))return!0;i||o||(r=r.slice()),r[s]=n.util.typeName(r[s])}o=!0}var a=i;a||(a=r.join(", ").replace(/,([^,]+)$/,", or$1"));var u=a.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+u+" "+a),!1},validateNumber:function(e,t,r){if(null!=t){if("string"==typeof t){var n=parseFloat(t);n.toString()===t&&(t=n)}this.validateType(t,r,["number"])&&this.validateRange(e,t,r,"numeric value")}},validatePayload:function(e,t){if(null!=e&&"string"!=typeof e&&(!e||"number"!=typeof e.byteLength)){if(n.util.isNode()){var r=n.util.stream.Stream;if(n.util.Buffer.isBuffer(e)||e instanceof r)return}else if(void 0!==typeof Blob&&e instanceof Blob)return;var i=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e)for(var o=0;o<i.length;o++){if(n.util.isType(e,i[o]))return;if(n.util.typeName(e.constructor)===i[o])return}this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},"2Y41":function(e,t,r){"use strict";function n(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}r.d(t,"a",function(){return n})},"2bPK":function(e,t,r){var n=r("dH5K").util,i=n.buffer.toBuffer;function o(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");n.Buffer.isBuffer(e)||(e=i(e)),this.bytes=e}function s(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}o.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&s(t),new o(t)},o.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&s(e),parseInt(e.toString("hex"),16)*(t?-1:1)},o.prototype.toString=function(){return String(this.valueOf())},e.exports={Int64:o}},"30cl":function(e,t,r){var n=r("dH5K"),i=r("uZW4"),o=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function s(e){var t=e.service,r=t.api||{},n={};return t.config.region&&(n.region=t.config.region),r.serviceId&&(n.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(n.accessKeyId=t.config.credentials.accessKeyId),n}function a(e,t,r){r&&null!=t&&"structure"===r.type&&r.required&&r.required.length>0&&i.arrayEach(r.required,function(n){var i=r.members[n];!0===i.endpointDiscoveryId?e[i.isLocationName?i.name:n]=String(t[n]):a(e,t[n],i)})}function u(e,t){var r={};return a(r,e.params,t),r}function c(e){var t=e.service,r=t.api,o=r.operations?r.operations[e.operation]:void 0,a=u(e,o?o.input:void 0),c=s(e);Object.keys(a).length>0&&(c=i.update(c,a),o&&(c.operation=o.name));var l=n.endpointCache.get(c);if(!l||1!==l.length||""!==l[0].Address)if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address);else{var f=t.makeRequest(r.endpointOperation,{Operation:o.name,Identifiers:a});p(f),f.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),f.removeListener("retry",n.EventListeners.Core.RETRY_CHECK),n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]),f.send(function(e,t){t&&t.Endpoints?n.endpointCache.put(c,t.Endpoints):e&&n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])})}}var l={};function f(e,t){var r=e.service,o=r.api,a=o.operations?o.operations[e.operation]:void 0,c=u(e,a?a.input:void 0),f=s(e);Object.keys(c).length>0&&(f=i.update(f,c),a&&(f.operation=a.name));var h=n.EndpointCache.getKeyString(f),d=n.endpointCache.get(h);if(d&&1===d.length&&""===d[0].Address)return l[h]||(l[h]=[]),void l[h].push({request:e,callback:t});if(d&&d.length>0)e.httpRequest.updateEndpoint(d[0].Address),t();else{var y=r.makeRequest(o.endpointOperation,{Operation:a.name,Identifiers:c});y.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),p(y),n.endpointCache.put(h,[{Address:"",CachePeriodInMinutes:60}]),y.send(function(r,o){r?(e.response.error=i.error(r,{retryable:!1}),n.endpointCache.remove(f),l[h]&&(i.arrayEach(l[h],function(e){e.request.response.error=i.error(r,{retryable:!1}),e.callback()}),delete l[h])):o&&(n.endpointCache.put(h,o.Endpoints),e.httpRequest.updateEndpoint(o.Endpoints[0].Address),l[h]&&(i.arrayEach(l[h],function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address),e.callback()}),delete l[h])),t()})}}function p(e){var t=e.service.api.apiVersion;t&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=t)}function h(e){var t=e.error;if(t&&("InvalidEndpointException"===t.code||421===e.httpResponse.statusCode)){var r=e.request,o=r.service.api.operations||{},a=u(r,o[r.operation]?o[r.operation].input:void 0),c=s(r);Object.keys(a).length>0&&(c=i.update(c,a),o[r.operation]&&(c.operation=o[r.operation].name)),n.endpointCache.remove(c)}}function d(e){return["false","0"].indexOf(e)>=0}e.exports={discoverEndpoint:function(e,t){var r=e.service||{};if(function(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw i.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return Boolean(n.config.endpoint||(n.config[e.serviceIdentifier]||{}).endpoint||e._originalConfig&&e._originalConfig.endpoint)}(r)||e.isPresigned())return t();var s=(r.api.operations||{})[e.operation],a=s?s.endpointDiscoveryRequired:"NULL",u=function(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!i.isBrowser()){for(var r=0;r<o.length;r++){var s=o[r];if(Object.prototype.hasOwnProperty.call(process.env,s)){if(""===process.env[s]||void 0===process.env[s])throw i.error(new Error,{code:"ConfigurationException",message:"environmental variable "+s+" cannot be set to nothing"});return!d(process.env[s])}}var a={};try{a=n.util.iniLoader?n.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[n.util.sharedConfigFileEnv]}):{}}catch(c){}var u=a[process.env.AWS_PROFILE||n.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(u,"endpoint_discovery_enabled")){if(void 0===u.endpoint_discovery_enabled)throw i.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!d(u.endpoint_discovery_enabled)}}}(e),l=r.api.hasRequiredEndpointDiscovery;switch((u||l)&&e.httpRequest.appendToUserAgent("endpoint-discovery"),a){case"OPTIONAL":(u||l)&&(c(e),e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",h)),t();break;case"REQUIRED":if(!1===u){e.response.error=i.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+r.api.className+"."+e.operation+"() requires it. Please check your configurations."}),t();break}e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",h),f(e,t);break;case"NULL":default:t()}},requiredDiscoverEndpoint:f,optionalDiscoverEndpoint:c,marshallCustomIdentifiers:u,getCacheKey:s,invalidateCachedEndpoint:h}},"3dfa":function(e,t,r){"use strict";var n=r("FU9T");e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},4:function(e,t){},"4ClY":function(e,t,r){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,i){if(e===i)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(i))return!1;if(!0===t(e)){if(e.length!==i.length)return!1;for(var o=0;o<e.length;o++)if(!1===n(e[o],i[o]))return!1;return!0}if(!0===r(e)){var s={};for(var a in e)if(hasOwnProperty.call(e,a)){if(!1===n(e[a],i[a]))return!1;s[a]=!0}for(var u in i)if(hasOwnProperty.call(i,u)&&!0!==s[u])return!1;return!0}return!1}function i(e){if(""===e||!1===e||null===e)return!0;if(t(e)&&0===e.length)return!0;if(r(e)){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0}return!1}var o;o="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var s=0,a=2,u={".":"Dot","*":"Star",",":"Comma",":":"Colon","{":"Lbrace","}":"Rbrace","]":"Rbracket","(":"Lparen",")":"Rparen","@":"Current"},c={"<":!0,">":!0,"=":!0,"!":!0},l={" ":!0,"\t":!0,"\n":!0};function f(e){return e>="0"&&e<="9"||"-"===e}function p(){}p.prototype={tokenize:function(e){var t,r,n,i,o=[];for(this._current=0;this._current<e.length;)if((i=e[this._current])>="a"&&i<="z"||i>="A"&&i<="Z"||"_"===i)t=this._current,r=this._consumeUnquotedIdentifier(e),o.push({type:"UnquotedIdentifier",value:r,start:t});else if(void 0!==u[e[this._current]])o.push({type:u[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(f(e[this._current]))n=this._consumeNumber(e),o.push(n);else if("["===e[this._current])n=this._consumeLBracket(e),o.push(n);else if('"'===e[this._current])t=this._current,r=this._consumeQuotedIdentifier(e),o.push({type:"QuotedIdentifier",value:r,start:t});else if("'"===e[this._current])t=this._current,r=this._consumeRawStringLiteral(e),o.push({type:"Literal",value:r,start:t});else if("`"===e[this._current]){t=this._current;var s=this._consumeLiteral(e);o.push({type:"Literal",value:s,start:t})}else if(void 0!==c[e[this._current]])o.push(this._consumeOperator(e));else if(void 0!==l[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,o.push({type:"And",value:"&&",start:t})):o.push({type:"Expref",value:"&",start:t});else{if("|"!==e[this._current]){var a=new Error("Unknown character:"+e[this._current]);throw a.name="LexerError",a}t=this._current,this._current++,"|"===e[this._current]?(this._current++,o.push({type:"Or",value:"||",start:t})):o.push({type:"Pipe",value:"|",start:t})}return o},_consumeUnquotedIdentifier:function(e){var t,r=this._current;for(this._current++;this._current<e.length&&((t=e[this._current])>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"_"===t);)this._current++;return e.slice(r,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var r=e.length;'"'!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&'"'!==e[n+1]?n++:n+=2,this._current=n}return this._current++,JSON.parse(e.slice(t,this._current))},_consumeRawStringLiteral:function(e){var t=this._current;this._current++;for(var r=e.length;"'"!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&"'"!==e[n+1]?n++:n+=2,this._current=n}return this._current++,e.slice(t+1,this._current-1).replace("\\'","'")},_consumeNumber:function(e){var t=this._current;this._current++;for(var r=e.length;f(e[this._current])&&this._current<r;)this._current++;return{type:"Number",value:parseInt(e.slice(t,this._current)),start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:"Filter",value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:"Flatten",value:"[]",start:t}):{type:"Lbracket",value:"[",start:t}},_consumeOperator:function(e){var t=this._current,r=e[t];return this._current++,"!"===r?"="===e[this._current]?(this._current++,{type:"NE",value:"!=",start:t}):{type:"Not",value:"!",start:t}:"<"===r?"="===e[this._current]?(this._current++,{type:"LTE",value:"<=",start:t}):{type:"LT",value:"<",start:t}:">"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,n=e.length;"`"!==e[this._current]&&this._current<n;){var i=this._current;"\\"!==e[i]||"\\"!==e[i+1]&&"`"!==e[i+1]?i++:i+=2,this._current=i}var s=o(e.slice(r,this._current));return s=s.replace("\\`","`"),t=this._looksLikeJSON(s)?JSON.parse(s):JSON.parse('"'+s+'"'),this._current++,t},_looksLikeJSON:function(e){if(""===e)return!1;if('[{"'.indexOf(e[0])>=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(t){return!1}}};var h={};function d(){}function y(e){this.runtime=e}function v(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[a]},{types:[a]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}h.EOF=0,h.UnquotedIdentifier=0,h.QuotedIdentifier=0,h.Rbracket=0,h.Rparen=0,h.Comma=0,h.Rbrace=0,h.Number=0,h.Current=0,h.Expref=0,h.Pipe=1,h.Or=2,h.And=3,h.EQ=5,h.GT=5,h.LT=5,h.GTE=5,h.LTE=5,h.NE=5,h.Flatten=9,h.Star=20,h.Filter=21,h.Dot=40,h.Not=45,h.Lbrace=50,h.Lbracket=55,h.Lparen=60,d.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw n.name="ParserError",n}return t},_loadTokens:function(e){var t=(new p).tokenize(e);t.push({type:"EOF",value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),n=this._lookahead(0);e<h[n];)this._advance(),r=this.led(n,r),n=this._lookahead(0);return r},_lookahead:function(e){return this.tokens[this.index+e].type},_lookaheadToken:function(e){return this.tokens[this.index+e]},_advance:function(){this.index++},nud:function(e){var t,r;switch(e.type){case"Literal":return{type:"Literal",value:e.value};case"UnquotedIdentifier":return{type:"Field",name:e.value};case"QuotedIdentifier":var n={type:"Field",name:e.value};if("Lparen"===this._lookahead(0))throw new Error("Quoted identifier not allowed for function names.");return n;case"Not":return{type:"NotExpression",children:[t=this.expression(h.Not)]};case"Star":return t=null,{type:"ValueProjection",children:[{type:"Identity"},t="Rbracket"===this._lookahead(0)?{type:"Identity"}:this._parseProjectionRHS(h.Star)]};case"Filter":return this.led(e.type,{type:"Identity"});case"Lbrace":return this._parseMultiselectHash();case"Flatten":return{type:"Projection",children:[{type:"Flatten",children:[{type:"Identity"}]},t=this._parseProjectionRHS(h.Flatten)]};case"Lbracket":return"Number"===this._lookahead(0)||"Colon"===this._lookahead(0)?(t=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},t)):"Star"===this._lookahead(0)&&"Rbracket"===this._lookahead(1)?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},t=this._parseProjectionRHS(h.Star)]}):this._parseMultiselectList();case"Current":return{type:"Current"};case"Expref":return{type:"ExpressionReference",children:[r=this.expression(h.Expref)]};case"Lparen":for(var i=[];"Rparen"!==this._lookahead(0);)"Current"===this._lookahead(0)?(r={type:"Current"},this._advance()):r=this.expression(0),i.push(r);return this._match("Rparen"),i[0];default:this._errorToken(e)}},led:function(e,t){var r;switch(e){case"Dot":var n=h.Dot;return"Star"!==this._lookahead(0)?{type:"Subexpression",children:[t,r=this._parseDotRHS(n)]}:(this._advance(),{type:"ValueProjection",children:[t,r=this._parseProjectionRHS(n)]});case"Pipe":return{type:"Pipe",children:[t,r=this.expression(h.Pipe)]};case"Or":return{type:"OrExpression",children:[t,r=this.expression(h.Or)]};case"And":return{type:"AndExpression",children:[t,r=this.expression(h.And)]};case"Lparen":for(var i,o=t.name,s=[];"Rparen"!==this._lookahead(0);)"Current"===this._lookahead(0)?(i={type:"Current"},this._advance()):i=this.expression(0),"Comma"===this._lookahead(0)&&this._match("Comma"),s.push(i);return this._match("Rparen"),{type:"Function",name:o,children:s};case"Filter":var a=this.expression(0);return this._match("Rbracket"),{type:"FilterProjection",children:[t,r="Flatten"===this._lookahead(0)?{type:"Identity"}:this._parseProjectionRHS(h.Filter),a]};case"Flatten":return{type:"Projection",children:[{type:"Flatten",children:[t]},this._parseProjectionRHS(h.Flatten)]};case"EQ":case"NE":case"GT":case"GTE":case"LT":case"LTE":return this._parseComparator(t,e);case"Lbracket":var u=this._lookaheadToken(0);return"Number"===u.type||"Colon"===u.type?(r=this._parseIndexExpression(),this._projectIfSlice(t,r)):(this._match("Star"),this._match("Rbracket"),{type:"Projection",children:[t,r=this._parseProjectionRHS(h.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(e){if(this._lookahead(0)!==e){var t=this._lookaheadToken(0),r=new Error("Expected "+e+", got: "+t.type);throw r.name="ParserError",r}this._advance()},_errorToken:function(e){var t=new Error("Invalid token ("+e.type+'): "'+e.value+'"');throw t.name="ParserError",t},_parseIndexExpression:function(){if("Colon"===this._lookahead(0)||"Colon"===this._lookahead(1))return this._parseSliceExpression();var e={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match("Rbracket"),e},_projectIfSlice:function(e,t){var r={type:"IndexExpression",children:[e,t]};return"Slice"===t.type?{type:"Projection",children:[r,this._parseProjectionRHS(h.Star)]}:r},_parseSliceExpression:function(){for(var e=[null,null,null],t=0,r=this._lookahead(0);"Rbracket"!==r&&t<3;){if("Colon"===r)t++,this._advance();else{if("Number"!==r){var n=this._lookahead(0),i=new Error("Syntax error, unexpected token: "+n.value+"("+n.type+")");throw i.name="Parsererror",i}e[t]=this._lookaheadToken(0).value,this._advance()}r=this._lookahead(0)}return this._match("Rbracket"),{type:"Slice",children:e}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(h[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return["UnquotedIdentifier","QuotedIdentifier","Star"].indexOf(t)>=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(h[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n=[],i=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),i.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r=this.expression(0),n.push({type:"KeyValuePair",name:t,value:r}),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:n}}},y.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var s,a,u,c,l,f,p,h,d;switch(e.type){case"Field":return null===o?null:r(o)?void 0===(f=o[e.name])?null:f:null;case"Subexpression":for(u=this.visit(e.children[0],o),d=1;d<e.children.length;d++)if(null===(u=this.visit(e.children[1],u)))return null;return u;case"IndexExpression":return p=this.visit(e.children[0],o),this.visit(e.children[1],p);case"Index":if(!t(o))return null;var y=e.value;return y<0&&(y=o.length+y),void 0===(u=o[y])&&(u=null),u;case"Slice":if(!t(o))return null;var v=e.children.slice(0),m=this.computeSliceParams(o.length,v),g=m[0],b=m[1],w=m[2];if(u=[],w>0)for(d=g;d<b;d+=w)u.push(o[d]);else for(d=g;d>b;d+=w)u.push(o[d]);return u;case"Projection":var S=this.visit(e.children[0],o);if(!t(S))return null;for(h=[],d=0;d<S.length;d++)null!==(a=this.visit(e.children[1],S[d]))&&h.push(a);return h;case"ValueProjection":if(!r(S=this.visit(e.children[0],o)))return null;h=[];var O=function(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;n++)r.push(e[t[n]]);return r}(S);for(d=0;d<O.length;d++)null!==(a=this.visit(e.children[1],O[d]))&&h.push(a);return h;case"FilterProjection":if(!t(S=this.visit(e.children[0],o)))return null;var E=[],_=[];for(d=0;d<S.length;d++)i(s=this.visit(e.children[2],S[d]))||E.push(S[d]);for(var A=0;A<E.length;A++)null!==(a=this.visit(e.children[1],E[A]))&&_.push(a);return _;case"Comparator":switch(c=this.visit(e.children[0],o),l=this.visit(e.children[1],o),e.name){case"EQ":u=n(c,l);break;case"NE":u=!n(c,l);break;case"GT":u=c>l;break;case"GTE":u=c>=l;break;case"LT":u=c<l;break;case"LTE":u=c<=l;break;default:throw new Error("Unknown comparator: "+e.name)}return u;case"Flatten":var k=this.visit(e.children[0],o);if(!t(k))return null;var R=[];for(d=0;d<k.length;d++)t(a=k[d])?R.push.apply(R,a):R.push(a);return R;case"Identity":return o;case"MultiSelectList":if(null===o)return null;for(h=[],d=0;d<e.children.length;d++)h.push(this.visit(e.children[d],o));return h;case"MultiSelectHash":if(null===o)return null;var C;for(h={},d=0;d<e.children.length;d++)h[(C=e.children[d]).name]=this.visit(C.value,o);return h;case"OrExpression":return i(s=this.visit(e.children[0],o))&&(s=this.visit(e.children[1],o)),s;case"AndExpression":return!0===i(c=this.visit(e.children[0],o))?c:this.visit(e.children[1],o);case"NotExpression":return i(c=this.visit(e.children[0],o));case"Literal":return e.value;case"Pipe":return p=this.visit(e.children[0],o),this.visit(e.children[1],p);case"Current":return o;case"Function":var T=[];for(d=0;d<e.children.length;d++)T.push(this.visit(e.children[d],o));return this.runtime.callFunction(e.name,T);case"ExpressionReference":var x=e.children[0];return x.jmespathType="Expref",x;default:throw new Error("Unknown node type: "+e.type)}},computeSliceParams:function(e,t){var r=t[0],n=t[1],i=t[2],o=[null,null,null];if(null===i)i=1;else if(0===i){var s=new Error("Invalid slice, step cannot be 0");throw s.name="RuntimeError",s}var a=i<0;return r=null===r?a?e-1:0:this.capSliceRange(e,r,i),n=null===n?a?-1:e:this.capSliceRange(e,n,i),o[0]=r,o[1]=n,o[2]=i,o},capSliceRange:function(e,t,r){return t<0?(t+=e)<0&&(t=r<0?-1:0):t>=e&&(t=r<0?e-1:e),t}},v.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n,i,o,s;if(r[r.length-1].variadic){if(t.length<r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+r.length+n+" but received "+t.length)}else if(t.length!==r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+r.length+n+" but received "+t.length);for(var a=0;a<r.length;a++){s=!1,i=r[a].types,o=this._getTypeName(t[a]);for(var u=0;u<i.length;u++)if(this._typeMatches(o,i[u],t[a])){s=!0;break}if(!s)throw new Error("TypeError: "+e+"() expected argument "+(a+1)+" to be type "+i+" but received type "+o+" instead.")}},_typeMatches:function(e,t,r){if(1===t)return!0;if(9!==t&&8!==t&&3!==t)return e===t;if(3===t)return 3===e;if(3===e){var n;8===t?n=s:9===t&&(n=a);for(var i=0;i<r.length;i++)if(!this._typeMatches(this._getTypeName(r[i]),n,r[i]))return!1;return!0}},_getTypeName:function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return a;case"[object Number]":return s;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return"Expref"===e.jmespathType?6:4}},_functionStartsWith:function(e){return 0===e[0].lastIndexOf(e[1])},_functionEndsWith:function(e){var t=e[0],r=e[1];return-1!==t.indexOf(r,t.length-r.length)},_functionReverse:function(e){if(this._getTypeName(e[0])===a){for(var t=e[0],r="",n=t.length-1;n>=0;n--)r+=t[n];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t/r.length},_functionContains:function(e){return e[0].indexOf(e[1])>=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],i=e[1],o=0;o<i.length;o++)t.push(r.visit(n,i[o]));return t},_functionMerge:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];for(var i in n)t[i]=n[i]}return t},_functionMax:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===s)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)r.localeCompare(t[n])<0&&(r=t[n]);return r}return null},_functionMin:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===s)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)t[n].localeCompare(r)<0&&(r=t[n]);return r}return null},_functionSum:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t},_functionType:function(e){switch(this._getTypeName(e[0])){case s:return"number";case a:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(e){return Object.keys(e[0])},_functionValues:function(e){for(var t=e[0],r=Object.keys(t),n=[],i=0;i<r.length;i++)n.push(t[r[i]]);return n},_functionJoin:function(e){return e[1].join(e[0])},_functionToArray:function(e){return 3===this._getTypeName(e[0])?e[0]:[e[0]]},_functionToString:function(e){return this._getTypeName(e[0])===a?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t,r=this._getTypeName(e[0]);return r===s?e[0]:r!==a||(t=+e[0],isNaN(t))?null:t},_functionNotNull:function(e){for(var t=0;t<e.length;t++)if(7!==this._getTypeName(e[t]))return e[t];return null},_functionSort:function(e){var t=e[0].slice(0);return t.sort(),t},_functionSortBy:function(e){var t=e[0].slice(0);if(0===t.length)return t;var r=this._interpreter,n=e[1],i=this._getTypeName(r.visit(n,t[0]));if([s,a].indexOf(i)<0)throw new Error("TypeError");for(var o=this,u=[],c=0;c<t.length;c++)u.push([c,t[c]]);u.sort(function(e,t){var s=r.visit(n,e[1]),a=r.visit(n,t[1]);if(o._getTypeName(s)!==i)throw new Error("TypeError: expected "+i+", received "+o._getTypeName(s));if(o._getTypeName(a)!==i)throw new Error("TypeError: expected "+i+", received "+o._getTypeName(a));return s>a?1:s<a?-1:e[0]-t[0]});for(var l=0;l<u.length;l++)t[l]=u[l][1];return t},_functionMaxBy:function(e){for(var t,r,n=e[0],i=this.createKeyFunction(e[1],[s,a]),o=-1/0,u=0;u<n.length;u++)(r=i(n[u]))>o&&(o=r,t=n[u]);return t},_functionMinBy:function(e){for(var t,r,n=e[0],i=this.createKeyFunction(e[1],[s,a]),o=1/0,u=0;u<n.length;u++)(r=i(n[u]))<o&&(o=r,t=n[u]);return t},createKeyFunction:function(e,t){var r=this,n=this._interpreter;return function(i){var o=n.visit(e,i);if(t.indexOf(r._getTypeName(o))<0){var s="TypeError: expected one of "+t+", received "+r._getTypeName(o);throw new Error(s)}return o}}},e.tokenize=function(e){return(new p).tokenize(e)},e.compile=function(e){return(new d).parse(e)},e.search=function(e,t){var r=new d,n=new v,i=new y(n);n._interpreter=i;var o=r.parse(t);return i.search(o,e)},e.strictDeepEqual=n}(t)},"4El8":function(e){e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{},"SourceIdentity":{}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"SourceIdentity":{}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{},"SourceIdentity":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Si"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{},"SourceIdentity":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Si":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sn":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},"4bpB":function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r("C0O2");e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},"5emR":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("7cA4");t.rootLogger=n.default},"5iv9":function(e,t,r){var n=r("psk+"),i=r("kclq"),o=i;o.v1=n,o.v4=i,e.exports=o},"7EKC":function(e,t,r){"use strict";r.d(t,"a",function(){return o}),r.d(t,"b",function(){return s});var n=r("7yOe"),i=r("dQau"),o={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},s=function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var s=Object(n.a)(Object(n.a)({},t.options),{headers:t.headers,credentials:t.credentials}),a=t.http||{};r.forEach(function(e){s=Object(n.a)(Object(n.a)(Object(n.a)({},s),e.options),{headers:Object(n.a)(Object(n.a)({},s.headers),e.headers)}),e.credentials&&(s.credentials=e.credentials),a=Object(n.a)(Object(n.a)({},a),e.http)});var u=e.operationName,c=e.extensions,l=e.variables,f=e.query,p={operationName:u,variables:l};return a.includeExtensions&&(p.extensions=c),a.includeQuery&&(p.query=Object(i.print)(f)),{options:s,body:p}}},"7NNw":function(e,t,r){"use strict";r.d(t,"b",function(){return i}),r.d(t,"a",function(){return o});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(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 r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}},"7SFw":function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},"7VRw":function(e,t){e.exports={escapeElement:function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}}},"7cA4":function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n};Object.defineProperty(t,"__esModule",{value:!0});var i=r("E4qY"),o=i.default("aws-appsync"),s=function(e){void 0===e&&(e="");var t=e?n(this.namespace.split(":"),[e]).join(":"):this.namespace,r=i.default(t);return r.extend=s.bind(r),r};o.extend=s.bind(o),t.default=o},"7xw/":function(e,t){},"7yOe":function(e,t,r){"use strict";r.d(t,"c",function(){return i}),r.d(t,"a",function(){return o}),r.d(t,"e",function(){return s}),r.d(t,"b",function(){return a}),r.d(t,"d",function(){return u}),r.d(t,"f",function(){return c});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function a(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})}function u(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function c(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}},"82Eq":function(e){e.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{"endpoint":"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"}}}')},"8M/+":function(e,t,r){var n=r("dH5K").util,i=n.buffer.toBuffer;e.exports={splitMessage:function(e){if(n.Buffer.isBuffer(e)||(e=i(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(8);if(t!==n.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-4);if(r!==n.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+r);var o=12+e.readUInt32BE(4);return{headers:e.slice(12,o),body:e.slice(o,e.length-4)}}}},"8nwp":function(e,t,r){"use strict";r.r(t);var n=r("glyH");r.d(t,"empty",function(){return n.a});var i=r("QLCn");r.d(t,"from",function(){return i.a});var o=r("NxNq");r.d(t,"split",function(){return o.a});var s=r("EJxN");r.d(t,"concat",function(){return s.a});var a=r("ao6a");r.d(t,"execute",function(){return a.a});var u=r("iyfc");r.d(t,"ApolloLink",function(){return u.a});var c=r("7xw/");for(var l in c)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(l)<0&&function(e){r.d(t,e,function(){return c[e]})}(l)},"9Ci+":function(e,t){},"9FZN":function(e,t,r){"use strict";var n=r("ZHBb"),i=r("TixA");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){return i.isString(e)&&(e=b(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},v={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},g=r("0ORH");function b(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),a=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(a);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(a);if(b=b.trim(),!r&&1===e.split("#").length){var w=u.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var S=s.exec(b);if(S){var O=(S=S[0]).toLowerCase();this.protocol=O,b=b.substr(S.length)}if(r||S||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===b.substr(0,2);!E||S&&v[S]||(b=b.substr(2),this.slashes=!0)}if(!v[S]&&(E||S&&!m[S])){for(var _,A,k=-1,R=0;R<p.length;R++)-1!==(C=b.indexOf(p[R]))&&(-1===k||C<k)&&(k=C);for(-1!==(A=-1===k?b.lastIndexOf("@"):b.lastIndexOf("@",k))&&(_=b.slice(0,A),b=b.slice(A+1),this.auth=decodeURIComponent(_)),k=-1,R=0;R<f.length;R++){var C;-1!==(C=b.indexOf(f[R]))&&(-1===k||C<k)&&(k=C)}-1===k&&(k=b.length),this.host=b.slice(0,k),b=b.slice(k),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var x=this.hostname.split(/\./),I=(R=0,x.length);R<I;R++){var j=x[R];if(j&&!j.match(h)){for(var P="",N=0,M=j.length;N<M;N++)j.charCodeAt(N)>127?P+="x":P+=j[N];if(!P.match(h)){var q=x.slice(0,R),L=x.slice(R+1),D=j.match(d);D&&(q.push(D[1]),L.unshift(D[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=q.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!y[O])for(R=0,I=l.length;R<I;R++){var U=l[R];if(-1!==b.indexOf(U)){var F=encodeURIComponent(U);F===U&&(F=escape(U)),b=b.split(U).join(F)}}var B=b.indexOf("#");-1!==B&&(this.hash=b.substr(B),b=b.slice(0,B));var V=b.indexOf("?");return-1!==V?(this.search=b.substr(V),this.query=b.substr(V+1),t&&(this.query=g.parse(this.query)),b=b.slice(0,V)):t&&(this.search="",this.query={}),b&&(this.pathname=b),m[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,s="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(s=g.stringify(this.query));var a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(r[l]=e[l])}return m[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!m[e.protocol]){for(var f=Object.keys(e),p=0;p<f.length;p++){var h=f[p];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||v[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}return r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,(r.pathname||r.search)&&(r.path=(r.pathname||"")+(r.search||"")),r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),b=g||y||r.host&&e.pathname,w=b,S=r.pathname&&r.pathname.split("/")||[],O=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(O&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),b=b&&(""===d[0]||""===S[0])),g)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=d;else if(d.length)S||(S=[]),S.pop(),S=S.concat(d),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search))return O&&(r.hostname=r.host=S.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!S.length)return r.pathname=null,r.path=r.search?"/"+r.search:null,r.href=r.format(),r;for(var E=S.slice(-1)[0],_=(r.host||e.host||S.length>1)&&("."===E||".."===E)||""===E,A=0,k=S.length;k>=0;k--)"."===(E=S[k])?S.splice(k,1):".."===E?(S.splice(k,1),A++):A&&(S.splice(k,1),A--);if(!b&&!w)for(;A--;A)S.unshift("..");!b||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),_&&"/"!==S.join("/").substr(-1)&&S.push("");var R,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);return O&&(r.hostname=r.host=C?"":S.length?S.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(b=b||r.host&&S.length)&&!C&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},"9VFc":function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,i){r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t=t||"&");var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var u=e.length;a>0&&u>a&&(u=a);for(var c=0;c<u;++c){var l,f,p,h,d=e[c].replace(s,"%20"),y=d.indexOf(r);y>=0?(l=d.substr(0,y),f=d.substr(y+1)):(l=d,f=""),p=decodeURIComponent(l),h=decodeURIComponent(f),n(o,p)?Array.isArray(o[p])?o[p].push(h):o[p]=[o[p],h]:o[p]=h}return o}},"9u62":function(e,t,r){var n=r("dH5K"),i="presigned-expires";function o(e){var t=e.httpRequest.headers[i],r=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],r===n.Signers.V4){if(t>604800)throw n.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1});e.httpRequest.headers[i]=t}else{if(r!==n.Signers.S3)throw n.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var o=e.service?e.service.getSkewCorrectedDate():n.util.date.getDate();e.httpRequest.headers[i]=parseInt(n.util.date.unixTimestamp(o)+t,10).toString()}}function s(e){var t=e.httpRequest.endpoint,r=n.util.urlParse(e.httpRequest.path),o={};r.search&&(o=n.util.queryStringParse(r.search.substr(1)));var s=e.httpRequest.headers.Authorization.split(" ");if("AWS"===s[0])s=s[1].split(":"),o.Signature=s.pop(),o.AWSAccessKeyId=s.join(":"),n.util.each(e.httpRequest.headers,function(e,t){e===i&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete o[e],e=e.toLowerCase()),o[e]=t}),delete e.httpRequest.headers[i],delete o.Authorization,delete o.Host;else if("AWS4-HMAC-SHA256"===s[0]){s.shift();var a=s.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];o["X-Amz-Signature"]=a,delete o.Expires}t.pathname=r.pathname,t.search=n.util.queryParamsToString(o)}n.Signers.Presign=(0,n.util.inherit)({sign:function(e,t,r){if(e.httpRequest.headers[i]=t||3600,e.on("build",o),e.on("sign",s),e.removeListener("afterBuild",n.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return n.util.urlFormat(e.httpRequest.endpoint)}e.build(function(){this.response.error?r(this.response.error):r(null,n.util.urlFormat(e.httpRequest.endpoint))})}}),e.exports=n.Signers.Presign},"9yMY":function(e,t,r){"use strict";var n,i,o,s;Object.defineProperty(t,"__esModule",{value:!0}),(s=t.SUBSCRIPTION_STATUS||(t.SUBSCRIPTION_STATUS={}))[s.PENDING=0]="PENDING",s[s.CONNECTED=1]="CONNECTED",s[s.FAILED=2]="FAILED",(o=t.SOCKET_STATUS||(t.SOCKET_STATUS={}))[o.CLOSED=0]="CLOSED",o[o.READY=1]="READY",o[o.CONNECTING=2]="CONNECTING",(i=t.MESSAGE_TYPES||(t.MESSAGE_TYPES={})).GQL_CONNECTION_INIT="connection_init",i.GQL_CONNECTION_ERROR="connection_error",i.GQL_CONNECTION_ACK="connection_ack",i.GQL_START="start",i.GQL_START_ACK="start_ack",i.GQL_DATA="data",i.GQL_CONNECTION_KEEP_ALIVE="ka",i.GQL_STOP="stop",i.GQL_COMPLETE="complete",i.GQL_ERROR="error",(n=t.CONTROL_MSG||(t.CONTROL_MSG={})).CONNECTION_CLOSED="Connection closed",n.TIMEOUT_DISCONNECT="Timeout disconnect",n.SUBSCRIPTION_ACK="Subscription ack"},AFyd:function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},Aouz:function(e,t,r){var n=r("2bPK").Int64,i=r("8M/+").splitMessage;function o(e){for(var t={},r=0;r<e.length;){var i=e.readUInt8(r++),o=e.slice(r,r+i).toString();switch(r+=i,e.readUInt8(r++)){case 0:t[o]={type:"boolean",value:!0};break;case 1:t[o]={type:"boolean",value:!1};break;case 2:t[o]={type:"byte",value:e.readInt8(r++)};break;case 3:t[o]={type:"short",value:e.readInt16BE(r)},r+=2;break;case 4:t[o]={type:"integer",value:e.readInt32BE(r)},r+=4;break;case 5:t[o]={type:"long",value:new n(e.slice(r,r+8))},r+=8;break;case 6:var s=e.readUInt16BE(r);t[o]={type:"binary",value:e.slice(r+=2,r+s)},r+=s;break;case 7:var a=e.readUInt16BE(r);t[o]={type:"string",value:e.slice(r+=2,r+a).toString()},r+=a;break;case 8:t[o]={type:"timestamp",value:new Date(new n(e.slice(r,r+8)).valueOf())},r+=8;break;case 9:var u=e.slice(r,r+16).toString("hex");r+=16,t[o]={type:"uuid",value:u.substr(0,8)+"-"+u.substr(8,4)+"-"+u.substr(12,4)+"-"+u.substr(16,4)+"-"+u.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return t}e.exports={parseMessage:function(e){var t=i(e);return{headers:o(t.headers),body:t.body}}}},Augq:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},B4To:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("RpwU"),i=function(e,t){var r;try{r=JSON.stringify(e)}catch(o){var i=new n.a(23);throw i.parseError=o,i}return r}},BpTK:function(e,t,r){"use strict";r.d(t,"g",function(){return a}),r.d(t,"f",function(){return u}),r.d(t,"j",function(){return c}),r.d(t,"i",function(){return l}),r.d(t,"b",function(){return p}),r.d(t,"a",function(){return h}),r.d(t,"h",function(){return d}),r.d(t,"c",function(){return y}),r.d(t,"d",function(){return v}),r.d(t,"e",function(){return m});var n=r("1eGD"),i=r.n(n),o=r("RpwU"),s=r("MxFh");function a(e){return{__ref:String(e)}}function u(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map(function(e){return c(i,e.name,e.value,n)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r))e[t.value]=(n||{})[r.name.value];else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map(function(e){var r={};return c(r,t,e,n),r[t.value]});else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw new o.a(53);e[t.value]=null}}function l(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){return c(r[e.name.value],n.name,n.value,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){return c(n,e.name,e.value,t)})),p(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export"];function p(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var o={};return n.forEach(function(e){o[e]=t[e]}),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var s=e;if(t){var a=i()(t);s+="("+a+")"}return r&&Object.keys(r).forEach(function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?s+="@"+e+"("+JSON.stringify(r[e])+")":s+="@"+e)}),s}function h(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return c(r,e.name,e.value,t)}),r}return null}function d(e){return e.alias?e.alias.value:e.name.value}function y(e,t,r){if("string"==typeof e.__typename)return e.__typename;for(var n=0,i=t.selections;n<i.length;n++){var o=i[n];if(v(o)){if("__typename"===o.name.value)return e[d(o)]}else{var a=y(e,Object(s.b)(o,r).selectionSet,r);if("string"==typeof a)return a}}}function v(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}},C0O2:function(e,t,r){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},Cq1e:function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,s,a,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),r.apply(this,a)}else if(i(r))for(a=Array.prototype.slice.call(arguments,1),s=(c=r.slice()).length,u=0;u<s;u++)c[u].apply(this,a);return!0},r.prototype.on=r.prototype.addListener=function(e,t){var s;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(s=o(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){var r,o,s,a;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(r=this._events[e]).length,o=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(a=s;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},D41J:function(e,t,r){"use strict";var n=r("gT6+");r.d(t,"f",function(){return n.a});var i=r("B4To");r.d(t,"j",function(){return i.a});var o=r("7EKC");r.d(t,"e",function(){return o.a}),r.d(t,"h",function(){return o.b});var s=r("o/OA");r.d(t,"b",function(){return s.a});var a=r("Ecvl");r.d(t,"d",function(){return a.a});var u=r("ecmS");r.d(t,"i",function(){return u.a});var c=r("cCRm");r.d(t,"c",function(){return c.a});var l=r("mknY");r.d(t,"a",function(){return l.a});var f=r("KqxT");r.d(t,"g",function(){return f.a})},DN2r:function(e,t,r){"use strict";r.d(t,"a",function(){return a}),r.d(t,"b",function(){return v}),r.d(t,"c",function(){return b}),r.d(t,"d",function(){return w}),r.d(t,"f",function(){return O}),r.d(t,"e",function(){return E});var n=r("YjwB"),i=r.n(n),o=r("RpwU"),s=r("vSug");function a(){var e=i.a.useContext(Object(s.a)()).client;return Object(o.b)(e,33),e}var u=r("7yOe"),c=r("v2+5"),l=r("lLK+"),f=r("MHe3"),p=r("oM03"),h=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(o.b)(!!e,29);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 r=Object(p.c)(e);Object(p.b)(t),Object(p.b)(r.type),Object(o.b)(r.type===t,30)},e}(),d=function(e){function t(t){var r=t.onNewData,n=e.call(this,t.options,t.context)||this;return n.runLazy=!1,n.previous=Object.create(null),n.runLazyQuery=function(e){n.cleanup(),n.runLazy=!0,n.lazyOptions=e,n.onNewData()},n.getQueryResult=function(){var e=n.observableQueryFields(),t=n.getOptions();if(t.skip)e=Object(u.a)(Object(u.a)({},e),{data:void 0,error:void 0,loading:!1,networkStatus:f.a.ready,called:!0});else if(n.currentObservable){var r=n.currentObservable.getCurrentResult(),i=r.data,o=r.loading,s=r.partial,a=r.networkStatus,c=r.errors,p=r.error;if(c&&c.length>0&&(p=new l.a({graphQLErrors:c})),e=Object(u.a)(Object(u.a)({},e),{data:i,loading:o,networkStatus:a,error:p,called:!0}),o);else if(p)Object.assign(e,{data:(n.currentObservable.getLastResult()||{}).data});else{var h=n.currentObservable.options.fetchPolicy;if(t.partialRefetch&&s&&(!i||0===Object.keys(i).length)&&"cache-only"!==h)return Object.assign(e,{loading:!0,networkStatus:f.a.loading}),e.refetch(),e}}e.client=n.client,n.setOptions(t,!0);var d=n.previous.result;return n.previous.loading=d&&d.loading||!1,e.previousData=d&&(d.data||d.previousData),n.previous.result=e,n.currentObservable&&n.currentObservable.resetQueryStoreErrors(),e},n.obsRefetch=function(e){var t;return null===(t=n.currentObservable)||void 0===t?void 0:t.refetch(e)},n.obsFetchMore=function(e){return n.currentObservable.fetchMore(e)},n.obsUpdateQuery=function(e){return n.currentObservable.updateQuery(e)},n.obsStartPolling=function(e){var t;null===(t=n.currentObservable)||void 0===t||t.startPolling(e)},n.obsStopPolling=function(){var e;null===(e=n.currentObservable)||void 0===e||e.stopPolling()},n.obsSubscribeToMore=function(e){return n.currentObservable.subscribeToMore(e)},n.onNewData=r,n}return Object(u.c)(t,e),t.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,r=e.query;return(t||r!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=r),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:f.a.ready,called:!1,data:void 0}]},t.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise(function(t){return e.startQuerySubscription(t)})},t.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,r=void 0!==t&&t;return this.isMounted=!0,r&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},t.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},t.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=Object(u.a)(Object(u.a)({},t.variables),this.lazyOptions.variables),t.context=Object(u.a)(Object(u.a)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},t.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},t.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},t.prototype.getExecuteSsrResult=function(){var e=this.getOptions(),t=e.skip,r=!1===e.ssr,n=this.refreshClient().client.disableNetworkFetches,i=Object(u.a)({loading:!0,networkStatus:f.a.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(r&&(this.ssrInitiated()||n))return this.previous.result=i,i;if(this.ssrInitiated()){var o=this.getQueryResult()||i;return o.loading&&!t&&this.context.renderPromises.addQueryPromise(this,function(){return null}),o}},t.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,p.a.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),Object(u.a)(Object(u.a)({},e),{displayName:t,context:e.context})},t.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=Object(u.a)(Object(u.a)({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery(Object(u.a)({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},t.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=Object(u.a)(Object(u.a)({},this.prepareObservableQueryOptions()),{children:null});Object(c.a)(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch(function(){}))}}else this.initializeObservableQuery()},t.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function(r){var n=r.data,i=t.previous.result;i&&i.loading===r.loading&&i.networkStatus===r.networkStatus&&Object(c.a)(i.data,n)||e()},error:function(r){if(t.resubscribeToQuery(),!r.hasOwnProperty("graphQLErrors"))throw r;var n=t.previous.result;(n&&n.loading||!Object(c.a)(r,t.previous.error))&&(t.previous.error=r,e())}}))},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),r=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:r})}},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,r=e.error;if(!e.loading){var n=this.getOptions(),i=n.query,o=n.variables,s=n.onCompleted,a=n.onError,u=n.skip;if(this.previousOptions&&!this.previous.loading&&Object(c.a)(this.previousOptions.query,i)&&Object(c.a)(this.previousOptions.variables,o))return;!s||r||u?a&&r&&a(r):s(t)}}},t.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},t.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},t.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},t}(h);function y(e,t,r){void 0===r&&(r=!1);var i=Object(n.useContext)(Object(s.a)()),o=Object(n.useReducer)(function(e){return e+1},0),a=o[0],l=o[1],f=t?Object(u.a)(Object(u.a)({},t),{query:e}):{query:e},p=Object(n.useRef)(),h=p.current||(p.current=new d({options:f,context:i,onNewData:function(){h.ssrInitiated()?l():Promise.resolve().then(function(){return p.current&&l()})}}));h.setOptions(f),h.context=i;var y,v,m,g=(y=function(){return r?h.executeLazy():h.execute()},v={options:Object(u.a)(Object(u.a)({},f),{onError:void 0,onCompleted:void 0}),context:i,tick:a},(m=Object(n.useRef)()).current&&Object(c.a)(v,m.current.key)||(m.current={key:v,value:y()}),m.current.value),b=r?g[1]:g;return Object(n.useEffect)(function(){return function(){return h.cleanup()}},[]),Object(n.useEffect)(function(){return h.afterExecute({lazy:r})},[b.loading,b.networkStatus,b.error,b.data]),g}function v(e,t){return y(e,t,!0)}var m=r("dXvB"),g=function(e){function t(t){var r=t.options,n=t.result,i=t.setResult,o=e.call(this,r,t.context)||this;return o.runMutation=function(e){void 0===e&&(e={}),o.onMutationStart();var t=o.generateNewMutationId();return o.mutate(e).then(function(e){return o.onMutationCompleted(e,t),e}).catch(function(e){var r=o.getOptions().onError;if(o.onMutationError(e,t),r)return r(e),{data:void 0,errors:e};throw e})},o.verifyDocumentType(r.mutation,p.a.Mutation),o.result=n,o.setResult=i,o.mostRecentMutationId=0,o}return Object(u.c)(t,e),t.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,p.a.Mutation),[this.runMutation,Object(u.a)(Object(u.a)({},e),{client:this.refreshClient().client})]},t.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},t.prototype.cleanup=function(){},t.prototype.mutate=function(e){return this.refreshClient().client.mutate(Object(m.b)(this.getOptions(),e))},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 r=this.getOptions(),n=r.onCompleted,i=r.ignoreResults,o=e.data,s=e.errors,a=s&&s.length>0?new l.a({graphQLErrors:s}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:o,error:a}),n&&n(o)},t.prototype.onMutationError=function(e,t){this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0})},t.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},t.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},t.prototype.updateResult=function(e){if(this.isMounted&&(!this.previousResult||!Object(c.a)(this.previousResult,e)))return this.setResult(e),this.previousResult=e,e},t}(h);function b(e,t){var r=Object(n.useContext)(Object(s.a)()),i=Object(n.useState)({called:!1,loading:!1}),o=i[0],a=i[1],c=t?Object(u.a)(Object(u.a)({},t),{mutation:e}):{mutation:e},l=Object(n.useRef)(),f=(l.current||(l.current=new g({options:c,context:r,result:o,setResult:a})),l.current);return f.setOptions(c),f.context=r,Object(n.useEffect)(function(){return f.afterExecute()}),f.execute(o)}function w(e,t){return y(e,t,!1)}var S=function(e){function t(t){var r=t.options,n=t.setResult,i=e.call(this,r,t.context)||this;return i.currentObservable={},i.setResult=n,i.initialize(r),i}return Object(u.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 r=this.getOptions().shouldResubscribe;return"function"==typeof r&&(r=!!r(this.getOptions())),!1!==r&&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(u.a)(Object(u.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,context:e.context}))},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;Promise.resolve().then(function(){var t=e.getOptions().onSubscriptionComplete;t&&t(),e.endSubscription()})},t.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t}(h);function O(e,t){var r=Object(n.useContext)(Object(s.a)()),i=t?Object(u.a)(Object(u.a)({},t),{subscription:e}):{subscription:e},o=Object(n.useState)({loading:!i.skip,error:void 0,data:void 0}),a=o[0],c=o[1],l=Object(n.useRef)(),f=(l.current||(l.current=new S({options:i,context:r,setResult:c})),l.current);return f.setOptions(i,!0),f.context=r,Object(n.useEffect)(function(){return f.afterExecute()}),Object(n.useEffect)(function(){return f.cleanup.bind(f)},[]),f.execute(a)}function E(e){var t=e(),r=Object(n.useState)(t)[1];return Object(n.useEffect)(function(){var n=e();if(t===n)return e.onNextChange(r);r(n)},[t]),t}},E4qY:function(e,t,r){function n(){var e;try{e=t.storage.debug}catch(r){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=r("TBsM")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(r){}},t.load=n,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(n())},EJxN:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=r("iyfc").a.concat},EVls:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var u,c=r("oZE0"),l=r("dQau"),f=r("YYeJ"),p=r("9FZN"),h=r("ajcu"),d=r("G3C7");t.USER_AGENT_HEADER="x-amz-user-agent",t.USER_AGENT="aws-amplify/"+d.version+(h.userAgent&&" ")+h.userAgent,function(e){e.NONE="NONE",e.API_KEY="API_KEY",e.AWS_IAM="AWS_IAM",e.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",e.OPENID_CONNECT="OPENID_CONNECT"}(u=t.AUTH_TYPE||(t.AUTH_TYPE={}));var y=function(e){function r(r){var n=e.call(this)||this;return n.link=t.authLink(r),n}return i(r,e),r.prototype.request=function(e,t){return this.link.request(e,t)},r}(c.ApolloLink);t.AuthLink=y;var v=function(e,r,n){var i=void 0===e?{header:"",value:""}:e,u=i.header,c=i.value;return s(void 0,void 0,void 0,function(){var e,i,s,l,f;return a(this,function(a){switch(a.label){case 0:return e=r.getContext(),i=o(o({},e.headers),((l={})[t.USER_AGENT_HEADER]=t.USER_AGENT,l)),u&&c?"function"!=typeof c?[3,2]:[4,c.call(void 0)]:[3,5];case 1:return s=a.sent(),[3,4];case 2:return[4,c];case 3:s=a.sent(),a.label=4;case 4:i=o(((f={})[u]=s,f),i),a.label=5;case 5:return r.setContext(o(o({},e),{headers:i})),[2,n(r)]}})})};t.authLink=function(e){var r=e.url,n=e.region,i=e.auth,l=(void 0===i?{}:i).type,h=e.auth;return new c.ApolloLink(function(e,i){return new c.Observable(function(c){var d,y;switch(l){case u.NONE:y=v(void 0,e,i);break;case u.AWS_IAM:var g=h.credentials;y=function(e,r,n){var i=e.credentials,u=e.region,c=e.url;return s(void 0,void 0,void 0,function(){var e,s,l,h,d,y,v,g,b,w,S,O,E;return a(this,function(a){switch(a.label){case 0:return e="appsync",s=r.getContext(),(l="function"==typeof i?i.call():i||{})&&"function"==typeof l.getPromise?[4,l.getPromise()]:[3,2];case 1:a.sent(),a.label=2;case 2:return[4,l];case 3:return h=a.sent(),d=h.accessKeyId,y=h.secretAccessKey,v=h.sessionToken,g=p.parse(c),b=g.host,w=g.path,S=o(o({},m(r,{})),{service:e,region:u,url:c,host:b,path:w}),O=f.Signer.sign(S,{access_key:d,secret_key:y,session_token:v}).headers,r.setContext(o(o({},s),{headers:o(o(o({},s.headers),O),(E={},E[t.USER_AGENT_HEADER]=t.USER_AGENT,E))})),[2,n(r)]}})})}({credentials:void 0===g?{}:g,region:n,url:r},e,i);break;case u.API_KEY:var b=h.apiKey;y=v({header:"X-Api-Key",value:void 0===b?"":b},e,i);break;case u.AMAZON_COGNITO_USER_POOLS:case u.OPENID_CONNECT:var w=h.jwtToken;y=v({header:"Authorization",value:void 0===w?"":w},e,i);break;default:throw new Error("Invalid AUTH_TYPE: "+h.type)}return y.then(function(e){d=e.subscribe({next:c.next.bind(c),error:c.error.bind(c),complete:c.complete.bind(c)})}),function(){d&&d.unsubscribe()}})})};var m=function(e,t){var r=e.query,n={operationName:e.operationName,variables:g(e.variables),query:l.print(r)};return o(o({body:JSON.stringify(n),method:"POST"},t),{headers:o({accept:"*/*","content-type":"application/json; charset=UTF-8"},t.headers)})},g=function(e){return Object.keys(e).filter(function(e){return!e.startsWith("@@")}).reduce(function(t,r){return t[r]=e[r],t},{})}},Ecvl:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}},F07a:function(e,t,r){"use strict";var n=r("h8FL"),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var s=60109,a=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),s=f("react.provider"),a=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||d}function m(){}function g(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||d}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var b=g.prototype=new m;b.constructor=g,n(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},S=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var n,o={},s=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)S.call(t,n)&&!O.hasOwnProperty(n)&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return{$$typeof:i,type:e,key:s,ref:a,props:o,_owner:w.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var A=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function R(e,t,r,n,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var u=!1;if(null===e)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case o:u=!0}}if(u)return s=s(u=e),e=""===n?"."+k(u,0):n,Array.isArray(s)?(r="",null!=e&&(r=e.replace(A,"$&/")+"/"),R(s,t,r,"",function(e){return e})):null!=s&&(_(s)&&(s=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,r+(!s.key||u&&u.key===s.key?"":(""+s.key).replace(A,"$&/")+"/")+e)),t.push(s)),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=n+k(a=e[c],c);u+=R(a,t,r,l,s)}else if("function"==typeof(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),c=0;!(a=e.next()).done;)u+=R(a=a.value,t,r,l=n+k(a,c++),s);else if("object"===a)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function C(e,t,r){if(null==e)return e;var n=[],i=0;return R(e,n,"","",function(e){return t.call(r,e,i++)}),n}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var x={current:null};function I(){var e=x.current;if(null===e)throw Error(h(321));return e}var j={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:C,forEach:function(e,t,r){C(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return C(e,function(){t++}),t},toArray:function(e){return C(e,function(e){return e})||[]},only:function(e){if(!_(e))throw Error(h(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,r){if(null==e)throw Error(h(267,e));var o=n({},e.props),s=e.key,a=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,u=w.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)S.call(t,l)&&!O.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:i,type:e.type,key:s,ref:a,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return I().useCallback(e,t)},t.useContext=function(e,t){return I().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return I().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return I().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return I().useLayoutEffect(e,t)},t.useMemo=function(e,t){return I().useMemo(e,t)},t.useReducer=function(e,t,r){return I().useReducer(e,t,r)},t.useRef=function(e){return I().useRef(e)},t.useState=function(e){return I().useState(e)},t.version="17.0.2"},F4fy:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("nv8m"),i=r.n(n);function o(e){function t(t){Object.defineProperty(e,t,{value:i.a})}return"function"==typeof Symbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},FRSw:function(e,t){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},FU9T:function(e,t,r){"use strict";var n=r("qWVU");e.exports=Function.prototype.bind||n},FiKA:function(e,t,r){"use strict";r.d(t,"a",function(){return g});var n=r("7yOe"),i=r("RpwU"),o=r("v2+5"),s=r("MHe3"),a=r("2Y41"),u=r("geoG"),c=Object.prototype.toString;function l(e){return f(e)}function f(e,t){switch(c.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=f(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=f(e[r],t)}),n;default:return e}}var p=r("jjvw"),h=r("nv8m"),d=r.n(h),y=r("F4fy"),v=r("kVOx"),m=function(){function e(e,t,r,n){this.observer=e,this.options=t,this.fetch=r,this.shouldFetch=n}return e.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var r=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),r.addObserver(this.observer),(this.concast=r).promise},e.prototype.updateOptions=function(e){return Object.assign(this.options,Object(v.a)(e)),this.updatePolling(),this},e.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},e.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,r=this.options.pollInterval;if(r){if((!t||t.interval!==r)&&(Object(i.b)(r,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},s.a.poll).then(o,o):o())},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},e}(),g=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,c=e.call(this,function(e){return c.onSubscribe(e)})||this;c.observers=new Set,c.subscriptions=new Set,c.observer={next:function(e){(c.lastError||c.isDifferentFromLastResult(e))&&(c.updateLastResult(e),Object(a.a)(c.observers,"next",e))},error:function(e){c.updateLastResult(Object(n.a)(Object(n.a)({},c.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:s.a.error,loading:!1})),Object(a.a)(c.observers,"error",c.lastError=e)}},c.isTornDown=!1,c.options=o,c.queryId=r.generateQueryId();var l=Object(u.f)(o.query);return c.queryName=l&&l.name&&l.name.value,c.queryManager=r,c.queryInfo=i,c}return Object(n.c)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,r=this.queryInfo.networkStatus||t&&t.networkStatus||s.a.ready,i=Object(n.a)(Object(n.a)({},t),{loading:Object(s.b)(r),networkStatus:r});if(this.isTornDown)return i;var o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("no-cache"===a||"network-only"===a)delete i.partial;else if(!i.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var u=this.queryInfo.getDiff();i.data=u.complete||this.options.returnPartialData?u.result:void 0,u.complete?(i.networkStatus!==s.a.loading||"cache-first"!==a&&"cache-only"!==a||(i.networkStatus=s.a.ready,i.loading=!1),delete i.partial):i.partial=!0}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!Object(o.a)(this.lastResultSnapshot,e)},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(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},r=this.options.fetchPolicy;return"no-cache"!==r&&"cache-and-network"!==r&&(t.fetchPolicy="network-only",t.nextFetchPolicy=r||"cache-first"),e&&!Object(o.a)(this.options.variables,e)&&(t.variables=this.options.variables=Object(n.a)(Object(n.a)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,s.a.refetch)},t.prototype.fetchMore=function(e){var t=this,r=Object(n.a)(Object(n.a)({},e.query?e:Object(n.a)(Object(n.a)(Object(n.a)({},this.options),e),{variables:Object(n.a)(Object(n.a)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return r.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=s.a.fetchMore,this.observe()),this.queryManager.fetchQuery(i,r,s.a.fetchMore).then(function(n){var i=n.data,o=e.updateQuery;return o?t.updateQuery(function(e){return o(e,{fetchMoreResult:i,variables:r.variables})}):t.queryManager.cache.writeQuery({query:r.query,variables:r.variables,data:i}),n}).finally(function(){t.queryManager.stopQuery(i),t.reobserve()})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){if(Object(o.a)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,r=void 0===t?"cache-first":t,n={fetchPolicy:r,variables:e};return"cache-first"!==r&&"no-cache"!==r&&"network-only"!==r&&(n.fetchPolicy="cache-and-network",n.nextFetchPolicy=r),this.reobserve(n,s.a.setVariables)},t.prototype.updateQuery=function(e){var t,r=this.queryManager,n=e(r.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(r.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},t.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:l(e),Object(p.a)(e.errors)||delete this.lastError,t},t.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var r=e._subscription._observer;r&&!r.error&&(r.error=b)}catch(i){}var n=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),n&&this.reobserve().catch(function(e){}),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},t.prototype.newReobserver=function(e){var t=this,r=this.queryManager,i=this.queryId;return r.setObservableQuery(this),new m(this.observer,e?this.options:Object(n.a)({},this.options),function(e,n){return r.setObservableQuery(t),r.fetchQueryObservable(i,e,n)},!r.ssrMode&&function(){return!Object(s.b)(t.queryInfo.networkStatus)})},t.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},t.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(d.a);function b(e){}Object(y.a)(g)},FqpE:function(e,t,r){var n=r("dH5K"),i=r("RWsy");n.ChainableTemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=n.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new n.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=n.util.merge({params:t,credentials:e.masterCredentials||n.config.credentials},e.stsConfig||{});this.service=new i(r)},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(n,i){var o={};n?e(n):(i&&(o.TokenCode=i),t.service[r](o,function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,i){if(r){var o=r;return r instanceof Error&&(o=r.message),void e(n.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}))}e(null,i)}):e(null)}})},G3C7:function(e){e.exports=JSON.parse('{"name":"aws-appsync-auth-link","version":"3.0.4","main":"lib/index.js","license":"Apache-2.0","description":"AWS Mobile AppSync Auth Link for JavaScript","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com/"},"homepage":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git","repository":{"type":"git","url":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git"},"scripts":{"prepare":"tsc","test":"jest --coverage --coverageReporters=text --passWithNoTests","test-watch":"jest --watch"},"dependencies":{"aws-sdk":"^2.814.0","debug":"2.6.9"},"devDependencies":{"@apollo/client":"^3.2.0"},"peerDependencies":{"@apollo/client":"3.x"}}')},G8hq:function(e,t,r){r("sfbN");var n=r("dH5K"),i=n.Service,o=n.apiLoader;o.services.cognitoidentity={},n.CognitoIdentity=i.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(o.services.cognitoidentity,"2014-06-30",{get:function(){var e=r("/4Ut");return e.paginators=r("e2nY").pagination,e},enumerable:!0,configurable:!0}),e.exports=n.CognitoIdentity},G9tm:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AppSyncSubscriptionProvider=void 0;var o=r("e7RV"),s=r("46+y"),a=r("J+uJ"),u=r("0rvZ"),c=r("U/sP"),l=r("Tzvz"),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.execute=function(e){var t=this,r=this.connectionParams.aws_appsync_graphqlEndpoint,n=this.connectionParams.aws_appsync_region,i={type:this.connectionParams.aws_appsync_authenticationType,apiKey:this.connectionParams.aws_appsync_apiKey,jwtToken:this.connectionParams.aws_appsync_jwtToken},o=c.ApolloLink.from([a.createAuthLink({url:r,region:n,auth:i}),u.createSubscriptionHandshakeLink({url:r,region:n,auth:i})]),f=new c.ApolloClient({link:o,cache:new c.InMemoryCache}).subscribe({query:l.parse(e.query),variables:e.variables});return new s.Observable(function(e){t.subscription=f.subscribe({next:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next.apply(e,t)},error:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.error.apply(e,t)},complete:function(){return e.complete()}})})},t.prototype.close=function(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()},t}(o.SubscriptionProvider);t.AppSyncSubscriptionProvider=f},"Gi+K":function(e,t,r){var n=r("uZW4");function i(){}function o(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function s(e,t,r,i){n.each(r.members,function(r,n){var s=t[r];if(null!=s){var u=o(n);a(u=e?e+"."+u:u,s,n,i)}})}function a(e,t,r,i){null!=t&&("structure"===r.type?s(e,t,r,i):"list"===r.type?function(e,t,r,i){var s=r.member||{};0!==t.length?n.arrayEach(t,function(t,n){var u="."+(n+1);if("ec2"===r.api.protocol)u+="";else if(r.flattened){if(s.name){var c=e.split(".");c.pop(),c.push(o(s)),e=c.join(".")}}else u="."+(s.name?s.name:"member")+u;a(e+u,t,s,i)}):i.call(this,e,null)}(e,t,r,i):"map"===r.type?function(e,t,r,i){var o=1;n.each(t,function(t,n){var s=(r.flattened?".":".entry.")+o+++".",u=s+(r.value.name||"value");a(e+(s+(r.key.name||"key")),t,r.key,i),a(e+u,n,r.value,i)})}(e,t,r,i):i(e,r.toWireFormat(t).toString()))}i.prototype.serialize=function(e,t,r){s("",e,t,r)},e.exports=i},HB9N:function(e,t,r){"use strict";var n=r("nS4h")("%Object.getOwnPropertyDescriptor%");if(n)try{n([],"length")}catch(i){n=null}e.exports=n},IeCx:function(e,t,r){var n=r("dH5K"),i=n.util.inherit,o=r("4ClY");n.Response=i({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new n.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,r=this.request.service,i=this.request.operation;try{t=r.paginationConfig(i,!0)}catch(u){this.error=u}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=n.util.copy(this.request.params);if(this.nextPageTokens){var s=t.inputToken;"string"==typeof s&&(s=[s]);for(var a=0;a<s.length;a++)o[s[a]]=this.nextPageTokens[a];return r.makeRequest(this.request.operation,o,e)}return e?e(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var e=this.request.service.paginationConfig(this.request.operation);if(!e)return this.nextPageTokens;if(this.nextPageTokens=null,e.moreResults&&!o.search(this.data,e.moreResults))return this.nextPageTokens;var t=e.outputToken;return"string"==typeof t&&(t=[t]),n.util.arrayEach.call(this,t,function(e){var t=o.search(this.data,e);t&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(t))}),this.nextPageTokens}})},"J+jz":function(e,t,r){"use strict";r.r(t),r.d(t,"isEqual",function(){return m}),r.d(t,"addTypenameToDocument",function(){return ue}),r.d(t,"argumentsObjectFromField",function(){return k}),r.d(t,"assign",function(){return z}),r.d(t,"buildQueryFromSelectionSet",function(){return me}),r.d(t,"canUseWeakMap",function(){return be}),r.d(t,"checkDocument",function(){return H}),r.d(t,"cloneDeep",function(){return Se}),r.d(t,"createFragmentMap",function(){return $}),r.d(t,"getDefaultValues",function(){return ee}),r.d(t,"getDirectiveInfoFromField",function(){return M}),r.d(t,"getDirectiveNames",function(){return L}),r.d(t,"getDirectivesFromDocument",function(){return he}),r.d(t,"getEnv",function(){return Ee}),r.d(t,"getFragmentDefinition",function(){return X}),r.d(t,"getFragmentDefinitions",function(){return Y}),r.d(t,"getFragmentQueryDocument",function(){return V}),r.d(t,"getInclusionDirectives",function(){return B}),r.d(t,"getMainDefinition",function(){return Z}),r.d(t,"getMutationDefinition",function(){return Q}),r.d(t,"getOperationDefinition",function(){return K}),r.d(t,"getOperationDefinitionOrDie",function(){return W}),r.d(t,"getOperationName",function(){return G}),r.d(t,"getQueryDefinition",function(){return J}),r.d(t,"getStoreKeyName",function(){return A}),r.d(t,"graphQLResultHasError",function(){return Te}),r.d(t,"hasClientExports",function(){return U}),r.d(t,"hasDirectives",function(){return D}),r.d(t,"isDevelopment",function(){return ke}),r.d(t,"isEnv",function(){return _e}),r.d(t,"isField",function(){return C}),r.d(t,"isIdValue",function(){return x}),r.d(t,"isInlineFragment",function(){return T}),r.d(t,"isJsonValue",function(){return j}),r.d(t,"isNumberValue",function(){return S}),r.d(t,"isProduction",function(){return Ae}),r.d(t,"isScalarValue",function(){return w}),r.d(t,"isTest",function(){return Re}),r.d(t,"maybeDeepFreeze",function(){return Ie}),r.d(t,"mergeDeep",function(){return Pe}),r.d(t,"mergeDeepArray",function(){return Ne}),r.d(t,"removeArgumentsFromDocument",function(){return de}),r.d(t,"removeClientSetsFromDocument",function(){return ge}),r.d(t,"removeConnectionDirectiveFromDocument",function(){return le}),r.d(t,"removeDirectivesFromDocument",function(){return ae}),r.d(t,"removeFragmentSpreadFromDocument",function(){return ye}),r.d(t,"resultKeyNameFromField",function(){return R}),r.d(t,"shouldInclude",function(){return q}),r.d(t,"storeKeyNameFromField",function(){return E}),r.d(t,"stripSymbols",function(){return Fe}),r.d(t,"toIdValue",function(){return I}),r.d(t,"tryFunctionOrLogError",function(){return Ce}),r.d(t,"valueFromNode",function(){return N}),r.d(t,"valueToObjectRepresentation",function(){return O}),r.d(t,"variablesInOperation",function(){return te}),r.d(t,"warnOnceInDevelopment",function(){return Ue});var n=r("L2ys"),i=r("7yOe"),o=Object.setPrototypeOf,s=void 0===o?function(e,t){return e.__proto__=t,e}:o,a=function(e){function t(r){void 0===r&&(r="Invariant Violation");var n=e.call(this,"number"==typeof r?"Invariant Violation: "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name="Invariant Violation",s(n,t.prototype),n}return Object(i.c)(t,e),t}(Error);function u(e,t){if(!e)throw new a(t)}function c(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=c("warn"),e.error=c("error")}(u||(u={}));var l={env:{}};if("object"==typeof process)l=process;else try{Function("stub","process = stub")(l)}catch(Be){}var f=r("1eGD"),p=r.n(f),h=Object.prototype,d=h.toString,y=h.hasOwnProperty,v=new Map;function m(e,t){try{return g(e,t)}finally{v.clear()}}function g(e,t){if(e===t)return!0;var r=d.call(e);if(r!==d.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(b(e,t))return!0;var n=Object.keys(e),i=Object.keys(t),o=n.length;if(o!==i.length)return!1;for(var s=0;s<o;++s)if(!y.call(t,n[s]))return!1;for(s=0;s<o;++s){var a=n[s];if(!g(e[a],t[a]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(b(e,t))return!0;for(var u=e.entries(),c="[object Map]"===r;;){var l=u.next();if(l.done)break;var f=l.value,p=f[0],h=f[1];if(!t.has(p))return!1;if(c&&!g(h,t.get(p)))return!1}return!0}return!1}function b(e,t){var r=v.get(e);if(r){if(r.has(t))return!0}else v.set(e,r=new Set);return r.add(t),!1}function w(e){return["StringValue","BooleanValue","EnumValue"].indexOf(e.kind)>-1}function S(e){return["IntValue","FloatValue"].indexOf(e.kind)>-1}function O(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map(function(e){return O(i,e.name,e.value,n)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r))e[t.value]=(n||{})[r.name.value];else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map(function(e){var r={};return O(r,t,e,n),r[t.value]});else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw new a(17);e[t.value]=null}}function E(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){return O(r[e.name.value],n.name,n.value,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){return O(n,e.name,e.value,t)})),A(e.name.value,n,r)}var _=["connection","include","skip","client","rest","export"];function A(e,t,r){if(r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i=t,o={};return n.forEach(function(e){o[e]=i[e]}),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var s=e;if(t){var a=p()(t);s+="("+a+")"}return r&&Object.keys(r).forEach(function(e){-1===_.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?s+="@"+e+"("+JSON.stringify(r[e])+")":s+="@"+e)}),s}function k(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return O(r,e.name,e.value,t)}),r}return null}function R(e){return e.alias?e.alias.value:e.name.value}function C(e){return"Field"===e.kind}function T(e){return"InlineFragment"===e.kind}function x(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function I(e,t){return void 0===t&&(t=!1),Object(i.a)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function j(e){return null!=e&&"object"==typeof e&&"json"===e.type}function P(e){throw new a(18)}function N(e,t){switch(void 0===t&&(t=P),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 N(e,t)});case"ObjectValue":for(var r={},n=0,i=e.fields;n<i.length;n++){var o=i[n];r[o.name.value]=N(o.value,t)}return r;default:return e.value}}function M(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach(function(e){r[e.name.value]=k(e,t)}),r}return null}function q(e,t){return void 0===t&&(t={}),B(e.directives).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?u(void 0!==(i=t[n.value.name.value]),13):i=n.value.value,"skip"===r.name.value?!i:i})}function L(e){var t=[];return Object(n.c)(e,{Directive:function(e){t.push(e.name.value)}}),t}function D(e,t){return L(t).some(function(t){return e.indexOf(t)>-1})}function U(e){return e&&D(["client"],e)&&D(["export"],e)}function F(e){var t=e.name.value;return"skip"===t||"include"===t}function B(e){return e?e.filter(F).map(function(e){var t=e.arguments;u(t&&1===t.length,14);var r=t[0];u(r.name&&"if"===r.name.value,15);var n=r.value;return u(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}}):[]}function V(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new a(11);"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&(u(1===n.length,12),r=n[0].name.value),Object(i.a)(Object(i.a)({},e),{definitions:Object(i.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function z(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){null!=t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function Q(e){H(e);var t=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})[0];return u(t,1),t}function H(e){return u(e&&"Document"===e.kind,2),u(e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new a(3);return e}).length<=1,4),e}function K(e){return H(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function W(e){var t=K(e);return u(t,5),t}function G(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function Y(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function J(e){var t=K(e);return u(t&&"query"===t.operation,6),t}function X(e){u("Document"===e.kind,7),u(e.definitions.length<=1,8);var t=e.definitions[0];return u("FragmentDefinition"===t.kind,9),t}function Z(e){var t;H(e);for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw new a(10)}function $(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function ee(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter(function(e){return e.defaultValue}).map(function(e){var t={};return O(t,e.variable.name,e.defaultValue),t});return z.apply(void 0,Object(i.f)([{}],t))}return{}}function te(e){var t=new Set;if(e.variableDefinitions)for(var r=0,n=e.variableDefinitions;r<n.length;r++)t.add(n[r].variable.name.value);return t}function re(e,t,r){var n=0;return e.forEach(function(r,i){t.call(this,r,i,e)&&(e[n++]=r)},r),e.length=n,e}var ne={kind:"Field",name:{kind:"Name",value:"__typename"}};function ie(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&ie(t[e.name.value],t)})}function oe(e){return ie(K(e)||X(e),$(Y(e)))?null:e}function se(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function ae(e,t){var r=Object.create(null),i=[],o=Object.create(null),s=[],a=oe(Object(n.c)(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(se(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})}),t.selectionSet&&ve(t.selectionSet).forEach(function(e){s.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){o[e.name.value]=!0}},Directive:{enter:function(t){if(se(e)(t))return null}}}));return a&&re(i,function(e){return!r[e.name]}).length&&(a=de(i,a)),a&&re(s,function(e){return!o[e.name]}).length&&(a=ye(s,a)),a}function ue(e){return Object(n.c)(H(e),{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var n=e.selections;if(n&&!n.some(function(e){return C(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var o=r;if(!(C(o)&&o.directives&&o.directives.some(function(e){return"export"===e.name.value})))return Object(i.a)(Object(i.a)({},e),{selections:Object(i.f)(n,[ne])})}}}}})}var ce={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some(function(e){return"key"===e.name.value})),t}};function le(e){return ae([ce],H(e))}function fe(e,t,r){return void 0===r&&(r=!0),t&&t.selections&&t.selections.some(function(t){return pe(e,t,r)})}function pe(e,t,r){return void 0===r&&(r=!0),!C(t)||!!t.directives&&(t.directives.some(se(e))||r&&fe(e,t.selectionSet,r))}function he(e,t){var r;return H(t),oe(Object(n.c)(t,{SelectionSet:{enter:function(t,n,o,s){var a=s.join("-");if(!r||a===r||!a.startsWith(r)){if(t.selections){var u=t.selections.filter(function(t){return pe(e,t)});return fe(e,t,!1)&&(r=a),Object(i.a)(Object(i.a)({},t),{selections:u})}return null}}}}))}function de(e,t){var r=function(e){return function(t){return e.some(function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}(e);return oe(Object(n.c)(t,{OperationDefinition:{enter:function(t){return Object(i.a)(Object(i.a)({},t),{variableDefinitions:t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})})})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var n=0;if(t.arguments.forEach(function(e){r(e)&&(n+=1)}),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}function ye(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return oe(Object(n.c)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function ve(e){var t=[];return e.selections.forEach(function(e){(C(e)||T(e))&&e.selectionSet?ve(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function me(e){return"query"===Z(e).operation?e:Object(n.c)(e,{OperationDefinition:{enter:function(e){return Object(i.a)(Object(i.a)({},e),{operation:"query"})}}})}function ge(e){H(e);var t=ae([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Object(n.c)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return C(e)&&"__typename"===e.name.value}))return null}}})),t}var be="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),we=Object.prototype.toString;function Se(e){return Oe(e,new Map)}function Oe(e,t){switch(we.call(e)){case"[object Array]":if(t.has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=Oe(e,t)}),r;case"[object Object]":if(t.has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=Oe(e[r],t)}),n;default:return e}}function Ee(){return"undefined"!=typeof process?"production":"development"}function _e(e){return Ee()===e}function Ae(){return!0===_e("production")}function ke(){return!0===_e("development")}function Re(){return!0===_e("test")}function Ce(e){try{return e()}catch(t){console.error&&console.error(t)}}function Te(e){return e.errors&&e.errors.length}function xe(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){null===e[t]||"object"!=typeof e[t]&&"function"!=typeof e[t]||Object.isFrozen(e[t])||xe(e[t])}),e}function Ie(e){return!ke()&&!Re()||"function"==typeof Symbol&&"string"==typeof Symbol("")?e:xe(e)}var je=Object.prototype.hasOwnProperty;function Pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ne(e)}function Ne(e){var t=e[0]||{},r=e.length;if(r>1){var n=[];t=Le(t,n);for(var i=1;i<r;++i)t=qe(t,e[i],n)}return t}function Me(e){return null!==e&&"object"==typeof e}function qe(e,t,r){return Me(t)&&Me(e)?(Object.isExtensible&&!Object.isExtensible(e)&&(e=Le(e,r)),Object.keys(t).forEach(function(n){var i=t[n];if(je.call(e,n)){var o=e[n];i!==o&&(e[n]=qe(Le(o,r),i,r))}else e[n]=i}),e):t}function Le(e,t){return null!==e&&"object"==typeof e&&t.indexOf(e)<0&&(e=Array.isArray(e)?e.slice(0):Object(i.a)({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}var De=Object.create({});function Ue(e,t){void 0===t&&(t="warn"),Ae()||De[e]||(Re()||(De[e]=!0),"error"===t?console.error(e):console.warn(e))}function Fe(e){return JSON.parse(JSON.stringify(e))}},"J+uJ":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("EVls");t.AuthLink=n.AuthLink,t.AUTH_TYPE=n.AUTH_TYPE,t.USER_AGENT_HEADER=n.USER_AGENT_HEADER,t.USER_AGENT=n.USER_AGENT,t.createAuthLink=function(e){return new n.AuthLink({url:e.url,region:e.region,auth:e.auth})};var i=r("YYeJ");t.Signer=i.Signer},KXBt:function(e,t){function r(e,t){if(!r.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return r.services[e][t]}r.services={},e.exports=r},KoSE:function(e,t,r){var n=r("dH5K"),i=n.util.inherit;r("Rj3l"),n.Signers.V3Https=i(n.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),e.exports=n.Signers.V3Https},KpGD:function(e,t,r){var n=r("cSgv"),i=r("aEV5"),o=r("i0hM"),s=r("N4Z5"),a=r("p8N+"),u=r("LFVe"),c=r("uZW4"),l=c.property,f=c.memoizedProperty;e.exports=function(e,t){var r=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{};var p=t.serviceIdentifier;delete t.serviceIdentifier,l(this,"isApi",!0,!1),l(this,"apiVersion",e.metadata.apiVersion),l(this,"endpointPrefix",e.metadata.endpointPrefix),l(this,"signingName",e.metadata.signingName),l(this,"globalEndpoint",e.metadata.globalEndpoint),l(this,"signatureVersion",e.metadata.signatureVersion),l(this,"jsonVersion",e.metadata.jsonVersion),l(this,"targetPrefix",e.metadata.targetPrefix),l(this,"protocol",e.metadata.protocol),l(this,"timestampFormat",e.metadata.timestampFormat),l(this,"xmlNamespaceUri",e.metadata.xmlNamespace),l(this,"abbreviation",e.metadata.serviceAbbreviation),l(this,"fullName",e.metadata.serviceFullName),l(this,"serviceId",e.metadata.serviceId),p&&u[p]&&l(this,"xmlNoDefaultLists",u[p].xmlNoDefaultLists,!1),f(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null}),l(this,"operations",new n(e.operations,t,function(e,r){return new i(e,r,t)},c.string.lowerFirst,function(e,t){!0===t.endpointoperation&&l(r,"endpointOperation",c.string.lowerFirst(e)),t.endpointdiscovery&&!r.hasRequiredEndpointDiscovery&&l(r,"hasRequiredEndpointDiscovery",!0===t.endpointdiscovery.required)})),l(this,"shapes",new n(e.shapes,t,function(e,r){return o.create(r,t)})),l(this,"paginators",new n(e.paginators,t,function(e,r){return new s(e,r,t)})),l(this,"waiters",new n(e.waiters,t,function(e,r){return new a(e,r,t)},c.string.lowerFirst)),t.documentation&&(l(this,"documentation",e.documentation),l(this,"documentationUrl",e.documentationUrl))}},KqxT:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("B4To");function i(e,t){var r=[],i=function(e,t){r.push(e+"="+encodeURIComponent(t))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var o=void 0;try{o=Object(n.a)(t.variables,"Variables map")}catch(f){return{parseError:f}}i("variables",o)}if(t.extensions){var s=void 0;try{s=Object(n.a)(t.extensions,"Extensions map")}catch(f){return{parseError:f}}i("extensions",s)}var a="",u=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),u=e.substr(0,c));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+r.join("&")+a}}},LDC6:function(e,t,r){var n=r("uZW4"),i=r("gSlD"),o=r("LOhA"),s=r("kvld"),a=r("/+mi");function u(e,t){e.httpRequest.headers["Content-Type"]||(e.httpRequest.headers["Content-Type"]=t?"binary/octet-stream":"application/json")}e.exports={buildRequest:function(e){i.buildRequest(e),["HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&function(e){var t=new s,r=e.service.api.operations[e.operation].input;if(r.payload){var n,i=r.members[r.payload];if(void 0===(n=e.params[r.payload]))return;"structure"===i.type?(e.httpRequest.body=t.build(n,i),u(e)):(e.httpRequest.body=n,("binary"===i.type||i.isStreaming)&&u(e,!0))}else{var o=t.build(e.params,r);"{}"===o&&"GET"===e.httpRequest.method||(e.httpRequest.body=o),u(e)}}(e)},extractError:function(e){o.extractError(e)},extractData:function(e){i.extractData(e);var t=e.request,r=t.service.api.operations[t.operation].output||{};if(r.payload){var s=r.members[r.payload],u=e.httpResponse.body;if(s.isEventStream)c=new a,e.data[payload]=n.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:u,c,s);else if("structure"===s.type||"list"===s.type){var c=new a;e.data[r.payload]=c.parse(u,s)}else e.data[r.payload]="binary"===s.type||s.isStreaming?u:s.toType(u)}else{var l=e.data;o.extractData(e),e.data=n.merge(l,e.data)}}}},LFVe:function(e){e.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena","cors":true},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2"},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"},"timestreamquery":{"prefix":"timestream-query","name":"TimestreamQuery"},"timestreamwrite":{"prefix":"timestream-write","name":"TimestreamWrite"},"s3outposts":{"name":"S3Outposts"},"databrew":{"name":"DataBrew"},"servicecatalogappregistry":{"prefix":"servicecatalog-appregistry","name":"ServiceCatalogAppRegistry"},"networkfirewall":{"prefix":"network-firewall","name":"NetworkFirewall"},"mwaa":{"name":"MWAA"},"amplifybackend":{"name":"AmplifyBackend"},"appintegrations":{"name":"AppIntegrations"},"connectcontactlens":{"prefix":"connect-contact-lens","name":"ConnectContactLens"},"devopsguru":{"prefix":"devops-guru","name":"DevOpsGuru"},"ecrpublic":{"prefix":"ecr-public","name":"ECRPUBLIC"},"lookoutvision":{"name":"LookoutVision"},"sagemakerfeaturestoreruntime":{"prefix":"sagemaker-featurestore-runtime","name":"SageMakerFeatureStoreRuntime"},"customerprofiles":{"prefix":"customer-profiles","name":"CustomerProfiles"},"auditmanager":{"name":"AuditManager"},"emrcontainers":{"prefix":"emr-containers","name":"EMRcontainers"},"healthlake":{"name":"HealthLake"},"sagemakeredge":{"prefix":"sagemaker-edge","name":"SagemakerEdge"},"amp":{"name":"Amp"},"greengrassv2":{"name":"GreengrassV2"},"iotdeviceadvisor":{"name":"IotDeviceAdvisor"},"iotfleethub":{"name":"IoTFleetHub"},"iotwireless":{"name":"IoTWireless"},"location":{"name":"Location","cors":true},"wellarchitected":{"name":"WellArchitected"},"lexmodelsv2":{"prefix":"models.lex.v2","name":"LexModelsV2"},"lexruntimev2":{"prefix":"runtime.lex.v2","name":"LexRuntimeV2","cors":true},"fis":{"name":"Fis"},"lookoutmetrics":{"name":"LookoutMetrics"},"mgn":{"name":"Mgn"},"lookoutequipment":{"name":"LookoutEquipment"},"nimble":{"name":"Nimble"},"finspace":{"name":"Finspace"},"finspacedata":{"prefix":"finspace-data","name":"Finspacedata"},"ssmcontacts":{"prefix":"ssm-contacts","name":"SSMContacts"},"ssmincidents":{"prefix":"ssm-incidents","name":"SSMIncidents"},"applicationcostprofiler":{"name":"ApplicationCostProfiler"},"apprunner":{"name":"AppRunner"},"proton":{"name":"Proton"}}')},LI2d:function(e,t,r){var n=r("zU8g").Buffer,i=r("+orC");function o(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53),e.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(i.isEmptyData(e))return this;var t=(e=i.convertToBuffer(e)).length;this.totalLength+=8*t;for(var r=0;r<t;r++)this.write(e[r]);return this},o.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},o.prototype.digest=function(e){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new n(20),i=new DataView(r.buffer);return i.setUint32(0,this.h0,!1),i.setUint32(4,this.h1,!1),i.setUint32(8,this.h2,!1),i.setUint32(12,this.h3,!1),i.setUint32(16,this.h4,!1),e?r.toString(e):r},o.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,n,i=this.h0,o=this.h1,s=this.h2,a=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=a^o&(s^a),n=1518500249):e<40?(r=o^s^a,n=1859775393):e<60?(r=o&s|a&(o|s),n=2400959708):(r=o^s^a,n=3395469782);var c=(i<<5|i>>>27)+r+u+n+(0|this.block[e]);u=a,a=s,s=o<<30|o>>>2,o=i,i=c}for(this.h0=this.h0+i|0,this.h1=this.h1+o|0,this.h2=this.h2+s|0,this.h3=this.h3+a|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},LIvr:function(e,t,r){r("sfbN");var n=r("dH5K");"undefined"!=typeof window&&(window.AWS=n),e.exports=n,"undefined"!=typeof self&&(self.AWS=n)},LOhA:function(e,t,r){var n=r("uZW4"),i=r("kvld"),o=r("/+mi"),s=r("yJiX").populateHostPrefix;e.exports={buildRequest:function(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,o=r.jsonVersion||"1.0",a=r.operations[e.operation].input,u=new i;1===o&&(o="1.0"),t.body=u.build(e.params||{},a),t.headers["Content-Type"]="application/x-amz-json-"+o,t.headers["X-Amz-Target"]=n,s(e)},extractError:function(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var i=JSON.parse(r.body.toString()),o=i.__type||i.code||i.Code;o&&(t.code=o.split("#").pop()),t.message="RequestEntityTooLarge"===t.code?"Request body must be less than 1 MB":i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new o;e.data=n.parse(t,r)}}}},LYE2:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},u=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var c=r("oZE0"),l=r("5emR"),f=r("u3tj"),p=r("J+jz"),h=l.rootLogger.extend("subscriptions"),d=h.extend("mqtt");t.CONTROL_EVENTS_KEY="@@controlEvents";var y=function(e){function r(t){var r=e.call(this)||this;return r.topicObservers=new Map,r.clientObservers=new Map,r.onMessage=function(e,t,n){var i=JSON.parse(t),s=r.topicObservers.get(e),a=n.reduce(function(e,t){return e[t]=e[t]||null,e},i.data||{});h("Message received",{data:a,topic:e,observers:s}),s.forEach(function(e){try{e.next(o(o({},i),{data:a}))}catch(t){h(t)}})},r.subsInfoContextKey=t,r}return i(r,e),r.prototype.request=function(e){var r,n=this,i=e.getContext(),s=i[this.subsInfoContextKey],a=i.controlMessages,l=t.CONTROL_EVENTS_KEY,f=(void 0===a?(r={},r[t.CONTROL_EVENTS_KEY]=void 0,r):a)[l],p=s.extensions,h=(void 0===p?{subscription:{newSubscriptions:{},mqttConnections:[]}}:p).subscription,d=h.newSubscriptions,y=h.mqttConnections,v=s.errors,m=void 0===v?[]:v;if(m&&m.length)return new c.Observable(function(e){return e.error(new c.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:m},graphQLErrors:m})),function(){}});var g=Object.keys(d).map(function(e){return d[e].topic}),b=new Set(g.filter(function(e){return n.topicObservers.has(e)})),w=new Set(g.filter(function(e){return!b.has(e)}));return new c.Observable(function(t){b.forEach(function(e){n.topicObservers.get(e).add(t);var r=Array.from(n.topicObservers.get(e)).find(function(){return!0}),i=Array.from(n.clientObservers).find(function(e){return e[1].observers.has(r)})[0];n.clientObservers.get(i).observers.add(t)});var r=y.filter(function(e){return e.topics.some(function(e){return w.has(e)})}).map(function(e){var t=e.topics,r=u(e,["topics"]);return o(o({},r),{topics:t.filter(function(e){return w.has(e)})})});return n.connectNewClients(r,t,e),function(){Array.from(n.clientObservers).filter(function(e){return e[1].observers.has(t)}).forEach(function(e){return n.clientObservers.get(e[0]).observers.delete(t)}),n.clientObservers.forEach(function(e){var t=e.client;0===e.observers.size&&(t.isConnected()&&t.disconnect(),n.clientObservers.delete(t.clientId))}),n.clientObservers=new Map(Array.from(n.clientObservers).filter(function(e){return e[1].observers.size>0})),n.topicObservers.forEach(function(e){return e.delete(t)}),n.topicObservers=new Map(Array.from(n.topicObservers).filter(function(e){return e[1].size>0}))}}).filter(function(e){var t=e.extensions,r=(void 0===t?{}:t).controlMsgType;return!0===f||!(void 0!==(void 0===r?void 0:r))})},r.prototype.connectNewClients=function(e,t,r){return s(this,void 0,void 0,function(){var n,i,o,s=this;return a(this,function(a){return n=p.getMainDefinition(r.query).selectionSet.selections.map(function(e){return e.name.value}),i=Promise.all(e.map(function(e){return s.connectNewClient(e,t,n)})),o=n.reduce(function(e,t){return e[t]=e[t]||null,e},{}),t.next({data:o,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:e}}}),[2,i]})})},r.prototype.connectNewClient=function(e,t,r){return s(this,void 0,void 0,function(){var n,i,s,c,l=this;return a(this,function(a){switch(a.label){case 0:return s=e.topics,(c=new f.Client(i=e.url,n=e.client)).trace=d.bind(null,n),c.onConnectionLost=function(e){var t=e.errorCode,r=u(e,["errorCode"]);0!==t&&s.forEach(function(e){l.topicObservers.has(e)&&l.topicObservers.get(e).forEach(function(e){return e.error(o(o({},r),{permanent:!0}))})}),s.forEach(function(e){return l.topicObservers.delete(e)})},c.onMessageArrived=function(e){return l.onMessage(e.destinationName,e.payloadString,r)},[4,new Promise(function(e,t){c.connect({useSSL:0===i.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return e(c)},onFailure:t})})];case 1:return a.sent(),[4,this.subscribeToTopics(c,s,t)];case 2:return a.sent(),[2,c]}})})},r.prototype.subscribeToTopics=function(e,t,r){var n=this;return Promise.all(t.map(function(t){return n.subscribeToTopic(e,t,r)}))},r.prototype.subscribeToTopic=function(e,t,r){var n=this;return new Promise(function(i,o){e.subscribe(t,{onSuccess:function(){n.topicObservers.has(t)||n.topicObservers.set(t,new Set),n.clientObservers.has(e.clientId)||n.clientObservers.set(e.clientId,{client:e,observers:new Set}),n.topicObservers.get(t).add(r),n.clientObservers.get(e.clientId).observers.add(r),i(t)},onFailure:o})})},r}(c.ApolloLink);t.SubscriptionHandshakeLink=y},LvZT:function(e,t){var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,t,i){if("[object Function]"!==n.call(t))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var s=0;s<o;s++)t.call(i,e[s],s,e);else for(var a in e)r.call(e,a)&&t.call(i,e[a],a,e)}},"M8/R":function(e,t,r){var n=r("dH5K"),i=r("G8hq"),o=r("RWsy");n.CognitoIdentityCredentials=n.util.inherit(n.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=n.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId(function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){"NotAuthorizedException"==e.code&&this.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId(function(r,n){!r&&n.IdentityId?(t.params.IdentityId=n.IdentityId,e(null,n.IdentityId)):e(r)})},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,n){r?t.clearIdOnNotAuthorized(r):(t.cacheId(n),t.data=n,t.loadCredentials(t.data,t)),e(r)})},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken(function(r,n){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(n),t.params.WebIdentityToken=n.Token,t.webIdentityCredentials.refresh(function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)}))})},loadCachedId:function(){if(n.util.isBrowser()&&!this.params.IdentityId){var e=this.getStorage("id");if(e&&this.params.Logins){var t=Object.keys(this.params.Logins);0!==(this.getStorage("providers")||"").split(",").filter(function(e){return-1!==t.indexOf(e)}).length&&(this.params.IdentityId=e)}else e&&(this.params.IdentityId=e)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new n.WebIdentityCredentials(this.params,e),!this.cognito){var t=n.util.merge({},e);t.params=this.params,this.cognito=new i(t)}this.sts=this.sts||new o(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,n.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(r){}},storage:function(){try{var e=n.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(t){return{}}}()})},M948:function(e,t,r){var n=r("dH5K"),i=r("uZW4"),o=r("gSlD");e.exports={buildRequest:function(e){o.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,o=e.params,s=t.payload;if(s){var a=t.members[s];if(void 0===(o=o[s]))return;e.httpRequest.body="structure"===a.type?r.toXML(o,a,a.name,!0):o}else e.httpRequest.body=r.toXML(o,t,t.name||t.shape||i.string.upperFirst(e.operation)+"Request")}(e)},extractError:function(e){var t;o.extractError(e);try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),e.error=i.error(new Error,t.Code?{code:t.Code,message:t.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t;o.extractData(e);var r=e.request,s=e.httpResponse.body,a=r.service.api.operations[r.operation].output,u=a.payload;if(u){var c=a.members[u];c.isEventStream?(t=new n.XML.Parser,e.data[u]=i.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,c)):"structure"===c.type?(t=new n.XML.Parser,e.data[u]=t.parse(s.toString(),c)):e.data[u]="binary"===c.type||c.isStreaming?s:c.toType(s)}else if(s.length>0){var l=(t=new n.XML.Parser).parse(s.toString(),a);i.update(e.data,l)}}}},MHe3:function(e,t,r){"use strict";var n;function i(e){return!!e&&e<7}r.d(t,"a",function(){return n}),r.d(t,"b",function(){return i}),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"}(n||(n={}))},MxFh:function(e,t,r){"use strict";r.d(t,"c",function(){return o}),r.d(t,"a",function(){return s}),r.d(t,"b",function(){return a});var n=r("7yOe"),i=r("RpwU");function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new i.a(42);"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&(Object(i.b)(1===o.length,43),r=o[0].name.value),Object(n.a)(Object(n.a)({},e),{definitions:Object(n.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function a(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=t&&t[e.name.value];return Object(i.b)(r,44),r;default:return null}}},N4Z5:function(e,t,r){var n=r("uZW4").property;e.exports=function(e,t){n(this,"inputToken",t.input_token),n(this,"limitKey",t.limit_key),n(this,"moreResults",t.more_results),n(this,"outputToken",t.output_token),n(this,"resultKey",t.result_key)}},N9uk:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("nv8m"),i=r.n(n);function o(e){return new i.a(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}},NZjt:function(e,t,r){var n=r("yTg4").eventMessageChunker,i=r("jml2").parseEvent;e.exports={createEventStream:function(e,t,r){for(var o=n(e),s=[],a=0;a<o.length;a++)s.push(i(t,o[a],r));return s}}},NxNq:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=r("iyfc").a.split},OG69:function(e,t,r){"use strict";r.d(t,"c",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"a",function(){return a});var n=r("L2ys"),i=r("RpwU");function o(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];return e&&e.length&&e.forEach(function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments;Object(i.b)(r&&1===r.length,39);var n=r[0];Object(i.b)(n.name&&"if"===n.name.value,40);var o=n.value;Object(i.b)(o&&("Variable"===o.kind||"BooleanValue"===o.kind),41),t.push({directive:e,ifArgument:n})}}),t}(r).every(function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t&&t[n.value.name.value],Object(i.b)(void 0!==o,38)):o=n.value.value,"skip"===r.name.value?!o:o})}function s(e,t){return function(e){var t=[];return Object(n.c)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some(function(t){return e.indexOf(t)>-1})}function a(e){return e&&s(["client"],e)&&s(["export"],e)}},ON24:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=null,i={},o=1,s=Array,a=s["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=n;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},e.prototype.withValue=function(e,t,r,i){var o,s=((o={__proto__:null})[this.id]=e,o),a=n;n={parent:a,slots:s};try{return t.apply(i,r)}finally{n=a}},e.bind=function(e){var t=n;return function(){var r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}},e.noContext=function(e,t,r){if(!n)return e.apply(r,t);var i=n;try{return n=null,e.apply(r,t)}finally{n=i}},e}();try{Object.defineProperty(s,"@wry/context:Slot",{value:s["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}()},OUnF:function(e,t,r){"use strict";r.d(t,"a",function(){return L});var n,i,o=r("7yOe"),s=r("pQBj"),a=r("nbUR"),u=r("dOJq"),c=r("BpTK"),l=r("mNHT"),f=r("RpwU"),p=r("geoG"),h=r("MxFh"),d=r("OG69"),y=r("TxYc"),v=r("v2+5"),m=r("Augq"),g=r("pBqm"),b=Object.create(null),w=function(){return b},S=Object.create(null),O=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Object(c.f)(e)?r.get(e.__ref,t):e&&e[t]},this.canRead=function(e){return Object(c.f)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Object(c.g)(e);if(Object(c.f)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=Object(c.g)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return Object(o.a)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),g.c.call(this.data,e)){var r=this.data[e];if(r&&g.c.call(r,t))return r[t]}return"__typename"===t&&g.c.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof A?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),g.c.call(this.data,e)?this.data[e]:this instanceof A?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r=this,n=this.lookup(e),i=new y.a(k).merge(n,t);if(this.data[e]=i,i!==n&&(delete this.refs[e],this.group.caching)){var o=Object.create(null);n||(o.__exists=1),Object.keys(t).forEach(function(e){if(!n||n[e]!==i[e]){o[e]=1;var t=Object(g.b)(e);t===e||r.policies.hasKeyArgs(i.__typename,t)||(o[t]=1),void 0!==i[e]||r instanceof A||delete i[e]}}),Object.keys(o).forEach(function(t){return r.group.dirty(e,t)})}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),s=!1,a=!0,u={DELETE:b,INVALIDATE:S,isReference:c.f,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||Object(c.g)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(c){var l=Object(g.b)(c),f=n[c];if(void 0!==f){var p="function"==typeof t?t:t[c]||t[l];if(p){var h=p===w?b:p(f,Object(o.a)(Object(o.a)({},u),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));h===S?r.group.dirty(e,c):(h===b&&(h=void 0),h!==f&&(i[c]=h,s=!0,f=h))}void 0!==f&&(a=!1)}}),s)return this.merge(e,i),a&&(this instanceof A?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,s?((n={})[s]=w,n):w)}return!1},e.prototype.evict=function(e){var t=!1;return e.id&&(g.c.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof A&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){g.c.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&g.c.call(e,r)||t.delete(r)}),e){var r=e.__META,n=Object(o.e)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof A?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){g.c.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof A;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!g.c.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=new Set([this.data[e]]),n=function(e){return null!==e&&"object"==typeof e};r.forEach(function(e){Object(c.f)(e)?t[e.__ref]=!0:n(e)&&Object.values(e).filter(n).forEach(r.add,r)})}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.group.keyMaker.lookupArray(e)},e}(),E=function(){function e(e){this.caching=e,this.d=null,this.keyMaker=new s.a(m.a),this.d=e?Object(s.b)():null}return e.prototype.depend=function(e,t){if(this.d){this.d(_(e,t));var r=Object(g.b)(t);r!==t&&this.d(_(e,r))}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(_(e,t))},e}();function _(e,t){return t+"#"+e}i=function(e){function t(t){var r=t.resultCaching,n=void 0===r||r,i=t.seed,o=e.call(this,t.policies,new E(n))||this;return o.storageTrie=new s.a(m.a),o.sharedLayerGroup=new E(n),i&&o.replace(i),o}return Object(o.c)(t,e),t.prototype.addLayer=function(e,t){return new A(e,this,t,this.sharedLayerGroup)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(n=O||(O={})),n.Root=i;var A=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return Object(o.c)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){t.data[e]!==r.lookup(e)&&t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Object(o.a)(Object(o.a)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return g.c.call(this.data,t)?Object(o.a)(Object(o.a)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(O);function k(e,t,r){var n=e[r],i=t[r];return Object(v.a)(n,i)?n:i}function R(e){return!!(e instanceof O&&e.group.caching)}function C(e,t){return new u.a(e.message,t.path.slice(),t.query,t.clientOnly,t.variables)}var T=function(){function e(e){var t=this;this.config=e,this.executeSelectionSet=Object(s.c)(function(e){return t.execSelectionSetImpl(e)},{keyArgs:function(e){return[e.selectionSet,e.objectOrReference,e.context]},makeCacheKey:function(e,t,r){if(R(r.store))return r.store.makeCacheKey(e,Object(c.f)(t)?t.__ref:t,r.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=Object(s.c)(function(e){return t.execSubSelectedArrayImpl(e)},{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(R(n.store))return n.store.makeCacheKey(t,r,n.varString)}}),this.config=Object(o.a)({addTypename:!0},e)}return e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,i=void 0===n?"ROOT_QUERY":n,s=e.variables,a=e.returnPartialData,u=void 0===a||a,l=this.config.cache.policies;s=Object(o.a)(Object(o.a)({},Object(p.b)(Object(p.h)(r))),s);var f=this.executeSelectionSet({selectionSet:Object(p.e)(r).selectionSet,objectOrReference:Object(c.g)(i),context:{store:t,query:r,policies:l,variables:s,varString:JSON.stringify(s),fragmentMap:Object(h.a)(Object(p.d)(r)),path:[],clientOnly:!1}}),d=f.missing&&f.missing.length>0;if(d&&!u)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!d}},e.prototype.isFresh=function(e,t,r,n){if(R(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.context;if(Object(c.f)(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:[C(new f.a(4),i)]};var o=i.variables,s=i.policies,a=[],u={result:null},p=i.store.getFieldValue(n,"__typename");function v(){return u.missing||(u.missing=[])}function m(e){var t;return e.missing&&(t=v()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof p&&!s.rootIdsByTypename[p]&&a.push({__typename:p});var g=new Set(r.selections);return g.forEach(function(e){var r;if(Object(d.c)(e,o))if(Object(c.d)(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:i.variables,from:n},i),y=Object(c.h)(e);i.path.push(y);var b=i.clientOnly;i.clientOnly=b||!(!e.directives||!e.directives.some(function(e){return"client"===e.name.value})),void 0===u?l.a.added(e)||v().push(C(new f.a(5),i)):Array.isArray(u)?u=m(t.executeSubSelectedArray({field:e,array:u,context:i})):e.selectionSet&&null!=u&&(u=m(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,context:i}))),void 0!==u&&a.push(((r={})[y]=u,r)),i.clientOnly=b,Object(f.b)(i.path.pop()===y)}else{var w=Object(h.b)(e,i.fragmentMap);w&&s.fragmentMatches(w,p)&&w.selectionSet.selections.forEach(g.add,g)}}),u.result=Object(y.c)(a),this.knownResults.set(u.result,r),u},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.context;function s(e,r){return e.missing&&(t=t||[]).push.apply(t,e.missing),Object(f.b)(o.path.pop()===r),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),{result:i=i.map(function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?s(r.executeSubSelectedArray({field:n,array:e,context:o}),t):n.selectionSet?s(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,context:o}),t):(Object(f.b)(o.path.pop()===t),e))}),missing:t}},e}(),x=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,r=e.result,n=e.dataId,i=e.store,s=e.variables,a=Object(p.f)(t),u=Object(g.d)();s=Object(o.a)(Object(o.a)({},Object(p.b)(a)),s);var l=this.processSelectionSet({result:r||Object.create(null),dataId:n,selectionSet:a.selectionSet,mergeTree:{map:new Map},context:{store:i,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:s,varString:JSON.stringify(s),fragmentMap:Object(h.a)(Object(p.d)(t))}});if(!Object(c.f)(l))throw new f.a(7);return i.retain(l.__ref),l},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,s=e.mergeTree,a=this.cache.policies,u=a.identify(n,i,o.fragmentMap),l=u[1];if("string"==typeof(r=r||u[0])){var p=o.written[r]||(o.written[r]=[]),y=Object(c.g)(r);if(p.indexOf(i)>=0)return y;if(p.push(i),this.reader&&this.reader.isFresh(n,y,i,o))return y}var v=Object.create(null);l&&(v=o.merge(v,l));var m=r&&a.rootTypenamesById[r]||Object(c.c)(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof m&&(v.__typename=m);var g=new Set(i.selections);if(g.forEach(function(e){var r;if(Object(d.c)(e,o.variables))if(Object(c.d)(e)){var i=Object(c.h)(e),u=n[i];if(void 0!==u){var l=a.getStoreFieldName({typename:m,fieldName:e.name.value,field:e,variables:o.variables}),p=j(s,l),y=t.processFieldValue(u,e,o,p),b=e.selectionSet&&o.store.getFieldValue(y,"__typename")||void 0,w=a.getMergeFunction(m,e.name.value,b);w?p.info={field:e,typename:m,merge:w}:P(s,l),v=o.merge(v,((r={})[l]=y,r))}else if(a.usingPossibleTypes&&!Object(d.b)(["defer","client"],e))throw new f.a(8)}else{var S=Object(h.b)(e,o.fragmentMap);S&&a.fragmentMatches(S,m,n,o.variables)&&S.selectionSet.selections.forEach(g.add,g)}}),"string"==typeof r){var b=Object(c.g)(r);return s.map.size&&(v=this.applyMerges(s,b,v,o)),o.store.merge(r,v),b}return v},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map(function(e,o){var s=i.processFieldValue(e,t,r,j(n,o));return P(n,o),s}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):e},e.prototype.applyMerges=function(e,t,r,n,i){var s,a=this;if(e.map.size&&!Object(c.f)(r)){var u,l=Array.isArray(r)||!Object(c.f)(t)&&!Object(g.f)(t)?void 0:t,p=r;l&&!i&&(i=[Object(c.f)(l)?l.__ref:l]);var h=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){i&&i.push(t);var r=h(l,t),o=h(p,t),s=a.applyMerges(e,r,o,n,i);s!==o&&(u=u||new Map).set(t,s),i&&Object(f.b)(i.pop()===t)}),u&&(r=Array.isArray(p)?p.slice(0):Object(o.a)({},p),u.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(s=n.store).getStorage.apply(s,i)):r},e}(),I=[];function j(e,t){var r=e.map;return r.has(t)||r.set(t,I.pop()||{map:new Map}),r.get(t)}function P(e,t){var r=e.map,n=r.get(t);!n||n.info||n.map.size||(I.push(n),r.delete(t))}new Set;var N=r("Q4gx"),M=r("d+gj"),q={dataIdFromObject:M.b,addTypename:!0,resultCaching:!0,typePolicies:{}},L=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=N.c,r.txCount=0,r.maybeBroadcastWatch=Object(s.c)(function(e,t){return r.broadcastWatch.call(r,e,!!t)},{makeCacheKey:function(e){var t=e.optimistic?r.optimisticData:r.data;if(R(t))return t.makeCacheKey(e.query,e.callback,JSON.stringify({optimistic:e.optimistic,rootId:e.rootId,variables:e.variables}))}}),r.watchDep=Object(s.b)(),r.config=Object(o.a)(Object(o.a)({},q),t),r.addTypename=!!r.config.addTypename,r.policies=new M.a({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.data=new O.Root({policies:r.policies,resultCaching:r.config.resultCaching}),r.optimisticData=r.data,r.storeWriter=new x(r,r.storeReader=new T({cache:r,addTypename:r.addTypename})),r}return Object(o.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:e.query,variables:e.variables,rootId:e.rootId,config:this.config,returnPartialData:r}).result||null}catch(n){if(n instanceof u.a)return null;throw n}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:e.query,result:e.result,dataId:e.dataId,variables:e.variables})}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(g.c.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.size||Object(N.d)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&Object(N.b)(t),t.watchDep.dirty(e),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(){return this.optimisticData.gc()},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return Object(c.f)(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(g.c.call(e,"id"))return!1;e=Object(o.a)(Object(o.a)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.performTransaction=function(e,t){var r=this,n=function(t){var n=r.data,i=r.optimisticData;++r.txCount,t&&(r.data=r.optimisticData=t);try{e(r)}finally{--r.txCount,r.data=n,r.optimisticData=i}},i=!1;"string"==typeof t?(this.optimisticData=this.optimisticData.addLayer(t,n),i=!0):null===t?n(this.data):n(),this.broadcastWatches(i)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(l.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.broadcastWatch=function(e,t){this.watchDep.dirty(e),this.watchDep(e);var r=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});e.optimistic&&t&&(r.fromOptimisticTransaction=!0),e.callback(r)},t}(a.a)},P0Pz:function(e,t,r){var n=r("uZW4"),i=r("82Eq");function o(e,t){n.each(t,function(t,r){"globalEndpoint"!==t&&null==e.config[t]&&(e.config[t]=r)})}e.exports={configureEndpoint:function(e){for(var t=function(e){var t=e.config.region,r=function(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}(t),n=e.api.endpointPrefix;return[[t,n],[r,n],[t,"*"],[r,"*"],["*",n],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}(e),r=0;r<t.length;r++){var s=t[r];if(s&&Object.prototype.hasOwnProperty.call(i.rules,s)){var a=i.rules[s];return"string"==typeof a&&(a=i.patterns[a]),e.config.useDualstack&&n.isDualstackAvailable(e)&&((a=n.copy(a)).endpoint=a.endpoint.replace(/{service}\.({region}\.)?/,"{service}.dualstack.{region}.")),e.isGlobalEndpoint=!!a.globalEndpoint,a.signingRegion&&(e.signingRegion=a.signingRegion),a.signatureVersion||(a.signatureVersion="v4"),void o(e,a)}}},getEndpointSuffix:function(e){for(var t={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},r=Object.keys(t),n=0;n<r.length;n++){var i=RegExp(r[n]),o=t[r[n]];if(i.test(e))return o}return"amazonaws.com"}}},PRz8:function(e,t,r){var n=r("dH5K"),i=r("wL2q");n.util.update(n.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new n.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=i(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var o=r.endpoint.indexOf(".amazonaws.com"),s=r.endpoint.substring(0,o)+"."+r.region+r.endpoint.substring(o);e.httpRequest.updateEndpoint(s),e.httpRequest.region=r.region}}})},Q4gx:function(e,t,r){"use strict";r.d(t,"a",function(){return i}),r.d(t,"b",function(){return a}),r.d(t,"d",function(){return u}),r.d(t,"c",function(){return c});var n=r("pQBj"),i=new(r("ON24").a),o=new WeakMap;function s(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:Object(n.b)()}),t}function a(e){s(e).vars.forEach(function(t){return t.forgetCache(e)})}function u(e){s(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){s(e).dep.dirty(n),l(e)});var u=Array.from(r);r.clear(),u.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(o(c),s(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),s(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}function l(e){e.broadcastWatches&&e.broadcastWatches()}},QLCn:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=r("iyfc").a.from},"QUG+":function(e,t,r){var n=r("dH5K"),i=n.util.inherit;n.Endpoint=i({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return n.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:n.config.sslEnabled)?"https":"http")+"://"+e),n.util.update(this,n.util.urlParse(e)),this.port=this.port?parseInt(this.port,10):"https:"===this.protocol?443:80}}),n.HttpRequest=i({constructor:function(e,t){e=new n.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=n.util.userAgent()},getUserAgentHeaderName:function(){return(n.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=n.util.queryStringParse(e),n.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new n.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),n.HttpResponse=i({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),n.HttpClient=i({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},RWsy:function(e,t,r){r("sfbN");var n=r("dH5K"),i=n.Service,o=n.apiLoader;o.services.sts={},n.STS=i.defineService("sts",["2011-06-15"]),r("PRz8"),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=r("4El8");return e.paginators=r("gW7G").pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},Rj3l:function(e,t,r){var n=r("dH5K");n.Signers.V3=(0,n.util.inherit)(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return n.util.arrayEach(this.headersToSign(),function(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),e},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),n.util.crypto.sha256(e.join("\n"))}}),e.exports=n.Signers.V3},Ro6a:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var u=r("oZE0"),c=r("5emR"),l=r("J+uJ"),f=r("Tzvz"),p=r("9FZN"),h=r("eAmO"),d=r("9yMY"),y=r("iha9"),v=c.rootLogger.extend("subscriptions");t.CONTROL_EVENTS_KEY="@@controlEvents";var m=[400,401,403],g={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},b=function(e){function r(t){var r=t.url,n=t.region,i=t.auth,o=e.call(this)||this;return o.socketStatus=d.SOCKET_STATUS.CLOSED,o.keepAliveTimeout=3e5,o.subscriptionObserverMap=new Map,o.promiseArray=[],o.url=r,o.region=n,o.auth=i,o}return i(r,e),r.prototype.request=function(e){var r,n=this,i=e.query,c=e.variables,p=e.getContext(),y=p.controlMessages,v=t.CONTROL_EVENTS_KEY,m=(void 0===y?(r={},r[t.CONTROL_EVENTS_KEY]=void 0,r):y)[v],g=p.headers;return new u.Observable(function(e){if(n.url){var t=h.v4(),r={appSyncGraphqlEndpoint:n.url,authenticationType:n.auth.type,query:f.print(i),region:n.region,graphql_headers:function(){return g},variables:c,apiKey:n.auth.type===l.AUTH_TYPE.API_KEY?n.auth.apiKey:"",credentials:n.auth.type===l.AUTH_TYPE.AWS_IAM?n.auth.credentials:null,jwtToken:n.auth.type===l.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||n.auth.type===l.AUTH_TYPE.OPENID_CONNECT?n.auth.jwtToken:null};return n._startSubscriptionWithAWSAppSyncRealTime({options:r,observer:e,subscriptionId:t}),function(){return s(n,void 0,void 0,function(){return a(this,function(e){try{if(this._verifySubscriptionAlreadyStarted(t),this.subscriptionObserverMap.get(t).subscriptionState!==d.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(t)}catch(r){return this._removeSubscriptionObserver(t),[2]}return[2]})})}}e.error({errors:[o({},new f.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),e.complete()}).filter(function(e){var t=e.extensions,r=(void 0===t?{}:t).controlMsgType;return!0===m||!(void 0!==(void 0===r?void 0:r))})},r.prototype._verifySubscriptionAlreadyStarted=function(e){return s(this,void 0,void 0,function(){var t=this;return a(this,function(r){return this.subscriptionObserverMap.get(e).subscriptionState===d.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(r,n){var i=t.subscriptionObserverMap.get(e);t.subscriptionObserverMap.set(e,{observer:i.observer,subscriptionState:i.subscriptionState,variables:i.variables,query:i.query,subscriptionReadyCallback:r,subscriptionFailedCallback:n})})]:[2]})})},r.prototype._sendUnsubscriptionMessage=function(e){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===d.SOCKET_STATUS.READY){var t=JSON.stringify({id:e,type:d.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(t),this._removeSubscriptionObserver(e)}}catch(r){v({err:r})}},r.prototype._removeSubscriptionObserver=function(e){this.subscriptionObserverMap.delete(e),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},r.prototype._closeSocketWhenFlushed=function(){v("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId),this.awsRealTimeSocket?this.awsRealTimeSocket.bufferedAmount>0?setTimeout(this._closeSocketWhenFlushed.bind(this),1e3):(this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=d.SOCKET_STATUS.CLOSED):this.socketStatus=d.SOCKET_STATUS.CLOSED},r.prototype._startSubscriptionWithAWSAppSyncRealTime=function(e){var t=e.options,r=e.observer,n=e.subscriptionId;return s(this,void 0,void 0,function(){var e,i,s,u,c,p,h,y,v,m,g,b,w,S,O,E,_,A,k,R,C,T,x,I=this;return a(this,function(a){switch(a.label){case 0:return e=t.appSyncGraphqlEndpoint,i=t.authenticationType,c=t.apiKey,p=t.region,y=void 0===(h=t.graphql_headers)?function(){return{}}:h,v=t.credentials,m=t.jwtToken,b={query:s=t.query,variables:u=t.variables},this.subscriptionObserverMap.set(n,{observer:r,query:s,variables:u,subscriptionState:g=d.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),w=JSON.stringify(b),O=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:c,appSyncGraphqlEndpoint:e,authenticationType:i,payload:w,canonicalUri:"",region:p,credentials:v,jwtToken:m})];case 1:return E=[o.apply(void 0,O.concat([a.sent()]))],[4,y()];case 2:S=o.apply(void 0,[o.apply(void 0,E.concat([a.sent()])),(x={},x[l.USER_AGENT_HEADER]=l.USER_AGENT,x)]),_={id:n,payload:{data:w,extensions:{authorization:o({},S)}},type:d.MESSAGE_TYPES.GQL_START},A=JSON.stringify(_),a.label=3;case 3:return a.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:c,appSyncGraphqlEndpoint:e,authenticationType:i,region:p,credentials:v,jwtToken:m})];case 4:return a.sent(),[3,6];case 5:return k=a.sent(),r.error({errors:[o({},new f.GraphQLError("Connection failed: "+(void 0===(R=k.message)?"":R)))]}),r.complete(),"function"==typeof(C=(this.subscriptionObserverMap.get(n)||{}).subscriptionFailedCallback)&&C(),[2];case 6:return T=this.subscriptionObserverMap.get(n),this.subscriptionObserverMap.set(n,{observer:r,subscriptionState:g,variables:u,query:s,subscriptionReadyCallback:T.subscriptionReadyCallback,subscriptionFailedCallback:T.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){I._timeoutStartSubscriptionAck.call(I,n)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(A),[2]}})})},r.prototype._initializeWebSocketConnection=function(e){var t=this,n=e.appSyncGraphqlEndpoint,i=e.authenticationType,o=e.apiKey,u=e.region,c=e.credentials,l=e.jwtToken;if(this.socketStatus!==d.SOCKET_STATUS.READY)return new Promise(function(e,f){return s(t,void 0,void 0,function(){var t,s,p,h,y,m,g,b;return a(this,function(a){switch(a.label){case 0:if(this.promiseArray.push({res:e,rej:f}),this.socketStatus!==d.SOCKET_STATUS.CLOSED)return[3,5];a.label=1;case 1:return a.trys.push([1,4,,5]),this.socketStatus=d.SOCKET_STATUS.CONNECTING,t=r._discoverAppSyncRealTimeEndpoint(this.url),s="{}",y=(h=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:i,payload:s,canonicalUri:"/connect",apiKey:o,appSyncGraphqlEndpoint:n,region:u,credentials:c,jwtToken:l})];case 2:return p=y.apply(h,[a.sent()]),m=Buffer.from(p).toString("base64"),g=Buffer.from(s).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:t+"?header="+m+"&payload="+g})];case 3:return a.sent(),this.promiseArray.forEach(function(e){var t=e.res;v("Notifying connection successful"),t()}),this.socketStatus=d.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return b=a.sent(),this.promiseArray.forEach(function(e){return(0,e.rej)(b)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=d.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},r.prototype._awsRealTimeHeaderBasedAuth=function(e){var t=e.authenticationType,r=e.payload,n=e.canonicalUri,i=e.appSyncGraphqlEndpoint,o=e.apiKey,u=e.region,c=e.credentials,l=e.jwtToken;return s(this,void 0,void 0,function(){var e,s,f;return a(this,function(a){switch(a.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._awsRealTimeOPENIDHeader.bind(this)},"function"!=typeof(s=e[t])?(v("Authentication type "+t+" not supported"),[2,{}]):(f=p.parse(i).host,[4,s({payload:r,canonicalUri:n,appSyncGraphqlEndpoint:i,apiKey:o,region:u,host:f,credentials:c,jwtToken:l})]);case 1:return[2,a.sent()]}})})},r.prototype._awsRealTimeOPENIDHeader=function(e){var t=e.host,r=e.jwtToken;return s(this,void 0,void 0,function(){var e,n;return a(this,function(i){switch(i.label){case 0:return e={},"function"!=typeof r?[3,2]:[4,r.call(void 0)];case 1:return n=i.sent(),[3,4];case 2:return[4,r];case 3:n=i.sent(),i.label=4;case 4:return[2,(e.Authorization=n,e.host=t,e)]}})})},r.prototype._awsRealTimeApiKeyHeader=function(e){var t=e.apiKey,r=e.host;return s(this,void 0,void 0,function(){var e,n;return a(this,function(i){return e=new Date,n=e.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:r,"x-amz-date":n,"x-api-key":t}]})})},r.prototype._awsRealTimeIAMHeader=function(e){var t=e.payload,r=e.canonicalUri,n=e.appSyncGraphqlEndpoint,i=e.region,u=e.credentials;return s(this,void 0,void 0,function(){var e,s,c,f,p;return a(this,function(a){switch(a.label){case 0:return e={region:i,service:"appsync"},(s="function"==typeof u?u.call():u||{})&&"function"==typeof s.getPromise?[4,s.getPromise()]:[3,2];case 1:a.sent(),a.label=2;case 2:if(!s)throw new Error("No credentials");return[4,s];case 3:return c=a.sent(),f={access_key:c.accessKeyId,secret_key:c.secretAccessKey,session_token:c.sessionToken},p={url:""+n+r,body:t,method:"POST",headers:o({},g)},[2,l.Signer.sign(p,f,e).headers]}})})},r.prototype._initializeRetryableHandshake=function(e){var t=e.awsRealTimeUrl;return s(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return v("Initializaling retryable Handshake"),[4,y.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:t}])];case 1:return e.sent(),[2]}})})},r.prototype._initializeHandshake=function(e){var t=e.awsRealTimeUrl;return s(this,void 0,void 0,function(){var e,n,i=this;return a(this,function(o){switch(o.label){case 0:v("Initializing handshake "+t),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,new Promise(function(e,n){var o=r.createWebSocket(t,"graphql-ws");o.onerror=function(){v("WebSocket connection error")},o.onclose=function(){n(new Error("Connection handshake error"))},o.onopen=function(){return i.awsRealTimeSocket=o,e()}})];case 2:return o.sent(),[4,new Promise(function(e,t){var r=!1;i.awsRealTimeSocket.onerror=function(e){v("WebSocket closed "+JSON.stringify(e))},i.awsRealTimeSocket.onclose=function(e){v("WebSocket closed "+e.reason),t(new Error(JSON.stringify(e)))},i.awsRealTimeSocket.onmessage=function(n){v("subscription message from AWS AppSyncRealTime: "+n.data+" ");var o=JSON.parse(n.data),s=o.type,a=o.payload,u=(void 0===a?{}:a).connectionTimeoutMs;if(s===d.MESSAGE_TYPES.GQL_CONNECTION_ACK)return r=!0,i.keepAliveTimeout=void 0===u?3e5:u,i.awsRealTimeSocket.onmessage=i._handleIncomingSubscriptionMessage.bind(i),i.awsRealTimeSocket.onerror=function(e){v(e),i._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},i.awsRealTimeSocket.onclose=function(e){v("WebSocket closed "+e.reason),i._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},void e("Cool, connected to AWS AppSyncRealTime");if(s===d.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var c=o.payload,l=(void 0===c?{}:c).errors,f=(void 0===l?[]:l)[0],p=void 0===f?{}:f,h=p.errorType,y=p.errorCode;t({errorType:void 0===h?"":h,errorCode:void 0===y?0:y})}},i.awsRealTimeSocket.send(JSON.stringify({type:d.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout((function(){r||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,m.indexOf(e.errorCode)>=0?new y.NonRetryableError(n):n?new Error(n):e;case 5:return[2]}})})},r.prototype._handleIncomingSubscriptionMessage=function(e){v("subscription message from AWS AppSync RealTime: "+e.data);var t=JSON.parse(e.data),r=t.id,n=void 0===r?"":r,i=t.payload,s=t.type,a=this.subscriptionObserverMap.get(n)||{},u=a.observer,c=void 0===u?null:u,l=a.query,p=void 0===l?"":l,h=a.variables,y=void 0===h?{}:h,m=a.startAckTimeoutId,g=void 0===m?0:m,b=a.subscriptionReadyCallback,w=void 0===b?null:b,S=a.subscriptionFailedCallback,O=void 0===S?null:S;if(v({id:n,observer:c,query:p,variables:y}),s===d.MESSAGE_TYPES.GQL_DATA&&i&&i.data)c?c.next(i):v("observer not found for id: "+n);else{if(s===d.MESSAGE_TYPES.GQL_START_ACK)return v("subscription ready for "+JSON.stringify({query:p,variables:y})),"function"==typeof w&&w(),clearTimeout(g),c?c.next({data:i,extensions:{controlMsgType:"CONNECTED"}}):v("observer not found for id: "+n),void this.subscriptionObserverMap.set(n,{observer:c,query:p,variables:y,startAckTimeoutId:null,subscriptionState:d.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:w,subscriptionFailedCallback:O});if(s===d.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,d.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));s===d.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(n,{observer:c,query:p,variables:y,startAckTimeoutId:g,subscriptionReadyCallback:w,subscriptionFailedCallback:O,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),c.error({errors:[o({},new f.GraphQLError("Connection failed: "+JSON.stringify(i)))]}),clearTimeout(g),c.complete(),"function"==typeof O&&O())}},r.prototype._errorDisconnect=function(e){v("Disconnect error: "+e),this.subscriptionObserverMap.forEach(function(t){var r=t.observer;r&&!r.closed&&r.error({errors:[o({},new f.GraphQLError(e))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=d.SOCKET_STATUS.CLOSED},r.prototype._timeoutStartSubscriptionAck=function(e){var t=this.subscriptionObserverMap.get(e)||{},r=t.observer,n=t.query,i=t.variables;r&&(this.subscriptionObserverMap.set(e,{observer:r,query:n,variables:i,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),r&&!r.closed&&(r.error({errors:[o({},new f.GraphQLError("Subscription timeout "+JSON.stringify({query:n,variables:i})))]}),r.complete()),v("timeoutStartSubscription",JSON.stringify({query:n,variables:i})))},r.createWebSocket=function(e,t){return new WebSocket(e,t)},r._discoverAppSyncRealTimeEndpoint=function(e){return e.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},r}(u.ApolloLink);t.AppSyncRealTimeSubscriptionHandshakeLink=b},RpwU:function(e,t,r){"use strict";r.d(t,"a",function(){return s}),r.d(t,"b",function(){return a}),r.d(t,"c",function(){return f});var n=r("7NNw"),i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,s=function(e){function t(r){void 0===r&&(r="Invariant Violation");var n=e.call(this,"number"==typeof r?"Invariant Violation: "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name="Invariant Violation",o(n,t.prototype),n}return Object(n.b)(t,e),t}(Error);function a(e,t){if(!e)throw new s(t)}var u=["log","warn","error","silent"],c=u.indexOf("log");function l(e){return function(){if(u.indexOf(e)>=c)return console[e].apply(console,arguments)}}function f(e){var t=u[c];return c=Math.max(0,u.indexOf(e)),t}!function(e){e.log=l("log"),e.warn=l("warn"),e.error=l("error")}(a||(a={})),"object"==typeof process&&"object"==typeof process.env&&process},SL2x:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var u=r("oZE0"),c=r("wDQZ"),l=function(e){function t(t,r){var n=r.link,i=e.call(this)||this;return i.contextKey=t,i.link=n,i}return i(t,e),t.prototype.request=function(e,t){var r=this;return c.setContext(function(t,n){return s(r,void 0,void 0,function(){var t,r,i=this;return a(this,function(s){switch(s.label){case 0:return[4,new Promise(function(t,r){i.link.request(e).subscribe({next:t,error:r})})];case 1:return t=s.sent(),[2,o(o({},n),(r={},r[this.contextKey]=t,r))]}})})}).request(e,t)},t}(u.ApolloLink);t.NonTerminatingLink=l},TBsM:function(e,t,r){var n;function i(e){function r(){if(r.enabled){var e=r,i=+new Date,o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var u=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(r,n){if("%%"===r)return r;u++;var i=t.formatters[n];return"function"==typeof i&&(r=i.call(e,s[u]),s.splice(u,1),u--),r}),t.formatArgs.call(e,s);var c=r.log||t.log||console.log.bind(console);c.apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(r),r}(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,i=0;i<n;i++)r[i]&&("-"===(e=r[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r("fm2W"),t.names=[],t.skips=[],t.formatters={}},TdF2:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("YjwB"),i=r.n(n),o=r("RpwU"),s=r("vSug"),a=function(e){var t=e.client,r=e.children,n=Object(s.a)();return i.a.createElement(n.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),Object(o.b)(e.client,28),i.a.createElement(n.Provider,{value:e},r)})}},TixA:function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},TxYc:function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"c",function(){return s}),r.d(t,"a",function(){return c});var n=r("7yOe"),i=Object.prototype.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}function a(e){return null!==e&&"object"==typeof e}var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=a,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return a(t)&&a(e)?(Object.keys(t).forEach(function(s){if(i.call(e,s)){var a=e[s];if(t[s]!==a){var u=r.reconciler.apply(r,Object(n.f)([e,t,s],o));u!==a&&((e=r.shallowCopyForMerge(e))[s]=u)}}else(e=r.shallowCopyForMerge(e))[s]=t[s]}),e):t},e.prototype.shallowCopyForMerge=function(e){return a(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):Object(n.a)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},"U/sP":function(e,t,r){"use strict";r.r(t);var n=r("dXvB");r.d(t,"ApolloClient",function(){return n.a}),r.d(t,"mergeOptions",function(){return n.b});var i=r("FiKA");r.d(t,"ObservableQuery",function(){return i.a});var o=r("MHe3");r.d(t,"NetworkStatus",function(){return o.a});var s=r("xMD3");for(var a in s)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(a)<0&&function(e){r.d(t,e,function(){return s[e]})}(a);var u=r("lLK+");r.d(t,"isApolloError",function(){return u.b}),r.d(t,"ApolloError",function(){return u.a});var c=r("+bCz");r.d(t,"Cache",function(){return c.a});var l=r("nbUR");r.d(t,"ApolloCache",function(){return l.a});var f=r("OUnF");r.d(t,"InMemoryCache",function(){return f.a});var p=r("dOJq");r.d(t,"MissingFieldError",function(){return p.a});var h=r("d+gj");r.d(t,"defaultDataIdFromObject",function(){return h.b});var d=r("Q4gx");r.d(t,"makeVar",function(){return d.c});var y=r("9Ci+");for(var a in y)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(a)<0&&function(e){r.d(t,e,function(){return y[e]})}(a);var v=r("8nwp");for(var a in v)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(a)<0&&function(e){r.d(t,e,function(){return v[e]})}(a);var m=r("D41J");r.d(t,"parseAndCheckHttpResponse",function(){return m.f}),r.d(t,"serializeFetchParameter",function(){return m.j}),r.d(t,"fallbackHttpConfig",function(){return m.e}),r.d(t,"selectHttpOptionsAndBody",function(){return m.h}),r.d(t,"checkFetcher",function(){return m.b}),r.d(t,"createSignalIfSupported",function(){return m.d}),r.d(t,"selectURI",function(){return m.i}),r.d(t,"createHttpLink",function(){return m.c}),r.d(t,"HttpLink",function(){return m.a}),r.d(t,"rewriteURIForGET",function(){return m.g});var g=r("bw8I");r.d(t,"fromError",function(){return g.a});var b=r("YJtS");r.d(t,"toPromise",function(){return b.a});var w=r("N9uk");r.d(t,"fromPromise",function(){return w.a});var S=r("hTwx");r.d(t,"throwServerError",function(){return S.a});var O=r("nv8m"),E=r.n(O);r.d(t,"Observable",function(){return E.a});var _=r("BpTK");r.d(t,"isReference",function(){return _.f}),r.d(t,"makeReference",function(){return _.g});var A=r("RpwU");r.d(t,"setLogVerbosity",function(){return A.c});var k=r("p+jE");r.d(t,"gql",function(){return k.a}),r.d(t,"resetCaches",function(){return k.e}),r.d(t,"disableFragmentWarnings",function(){return k.c}),r.d(t,"enableExperimentalFragmentVariables",function(){return k.d}),r.d(t,"disableExperimentalFragmentVariables",function(){return k.b}),Object(A.c)("log")},U6c4:function(e,t,r){var n=r("7VRw").escapeElement;function i(e){this.value=e}i.prototype.toString=function(){return n(""+this.value)},e.exports={XmlText:i}},UL9b:function(e,t){},Uk5I:function(e,t,r){var n=r("uZW4"),i=r("uVQL").XmlNode,o=r("U6c4").XmlText;function s(){}function a(e,t,r){switch(r.type){case"structure":return function(e,t,r){n.arrayEach(r.memberNames,function(n){var o=r.members[n];if("body"===o.location){var s=t[n],c=o.name;if(null!=s)if(o.isXmlAttribute)e.addAttribute(c,s);else if(o.flattened)a(e,s,o);else{var l=new i(c);e.addChildNode(l),u(l,o),a(l,s,o)}}})}(e,t,r);case"map":return function(e,t,r){var o=r.key.name||"key",s=r.value.name||"value";n.each(t,function(t,n){var u=new i(r.flattened?r.name:"entry");e.addChildNode(u);var c=new i(o),l=new i(s);u.addChildNode(c),u.addChildNode(l),a(c,t,r.key),a(l,n,r.value)})}(e,t,r);case"list":return function(e,t,r){n.arrayEach(t,r.flattened?function(t){var n=new i(r.member.name||r.name);e.addChildNode(n),a(n,t,r.member)}:function(t){var n=new i(r.member.name||"member");e.addChildNode(n),a(n,t,r.member)})}(e,t,r);default:return function(e,t,r){e.addChildNode(new o(r.toWireFormat(t)))}(e,t,r)}}function u(e,t,r){var n,i="xmlns";t.xmlNamespaceUri?(n=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(i+=":"+t.xmlNamespacePrefix)):r&&t.api.xmlNamespaceUri&&(n=t.api.xmlNamespaceUri),n&&e.addAttribute(i,n)}s.prototype.toXML=function(e,t,r,n){var o=new i(r);return u(o,t,!0),a(o,e,t),o.children.length>0||n?o.toString():""},e.exports=s},VCfo:function(e,t,r){"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,s=/^\s*(?:function)?\*/,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(s.test(o.call(e)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===n){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&u(t)}return u(e)===n}},"VV/y":function(e,t,r){var n=r("VrZe"),i=r("e5r6"),o=r("LI2d"),s=r("hqjv");e.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new i;if("sha256"===e)return new s;if("sha1"===e)return new o;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new n(i,t);if("sha256"===e)return new n(s,t);if("sha1"===e)return new n(o,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},VrZe:function(e,t,r){var n=r("+orC");function i(e,t){this.hash=new e,this.outer=new e;var r=function(e,t){var r=n.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var i=new e;i.update(r),r=i.digest()}var o=new Uint8Array(e.BLOCK_SIZE);return o.set(r),o}(e,t),i=new Uint8Array(e.BLOCK_SIZE);i.set(r);for(var o=0;o<e.BLOCK_SIZE;o++)r[o]^=54,i[o]^=92;for(this.hash.update(r),this.outer.update(i),o=0;o<r.byteLength;o++)r[o]=0}e.exports=i,i.prototype.update=function(e){if(n.isEmptyData(e)||this.error)return this;try{this.hash.update(n.convertToBuffer(e))}catch(t){this.error=t}return this},i.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},WRfo:function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}},XFfB:function(e,t,r){var n=r("dH5K"),i={},o=[],s="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,s].join("/")},getSigningKey:function(e,t,r,a,u){var c=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,a].join("_");if((u=!1!==u)&&c in i)return i[c];var l=n.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),f=n.util.crypto.hmac(l,r,"buffer"),p=n.util.crypto.hmac(f,a,"buffer"),h=n.util.crypto.hmac(p,s,"buffer");return u&&(i[c]=h,o.push(c),o.length>50&&delete i[o.shift()]),h},emptyCache:function(){i={},o=[]}}},XgeL:function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r("YjwB"),i=r.n(n),o=r("RpwU"),s=r("vSug"),a=function(e){var t=Object(s.a)();return i.a.createElement(t.Consumer,null,function(t){return Object(o.b)(t&&t.client,27),e.children(t.client)})}},YJtS:function(e,t,r){"use strict";function n(e){var t=!1;return new Promise(function(r,n){e.subscribe({next:function(e){t||(t=!0,r(e))},error:n})})}r.d(t,"a",function(){return n}),r("RpwU")},YYeJ:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r("/FdR"))},YjwB:function(e,t,r){"use strict";e.exports=r("F07a")},"YpG+":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t){this.key=e,this.value=t}}();t.LRUCache=function(){function e(e){if(this.nodeMap={},this.size=0,"number"!=typeof e||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,t=e.prev;return t&&(t.next=void 0),e.prev=void 0,this.tailNode=t,this.size--,e}},e.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},e.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];return this.detachFromList(t),this.prependToList(t),t.value}},e.prototype.remove=function(e){this.nodeMap[e]&&(this.detachFromList(this.nodeMap[e]),delete this.nodeMap[e])},e.prototype.put=function(e,t){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var r=this.removeFromTail();delete this.nodeMap[r.key]}var i=new n(e,t);this.nodeMap[e]=i,this.prependToList(i)},e.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),t=0;t<e.length;t++){var r=e[t];this.detachFromList(this.nodeMap[r]),delete this.nodeMap[r]}},e}()},ZHBb:function(e,t,r){(function(e){var n;!function(i){"object"==typeof global&&global;var o,s=2147483647,a=/^xn--/,u=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function h(e){throw RangeError(l[e])}function d(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+d((e=e.replace(c,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function m(e){return d(e,function(e){var t="";return e>65535&&(t+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+p(e)}).join("")}function g(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function b(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=36)e=f(e/35);return f(n+36*e/(e+38))}function w(e){var t,r,n,i,o,a,u,c,l,p,d,y=[],v=e.length,g=0,w=128,S=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&h("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<v;){for(o=g,a=1,u=36;i>=v&&h("invalid-input"),((c=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||c>f((s-g)/a))&&h("overflow"),g+=c*a,!(c<(l=u<=S?1:u>=S+26?26:u-S));u+=36)a>f(s/(p=36-l))&&h("overflow"),a*=p;S=b(g-o,t=y.length+1,0==o),f(g/t)>s-w&&h("overflow"),w+=f(g/t),g%=t,y.splice(g++,0,w)}return m(y)}function S(e){var t,r,n,i,o,a,u,c,l,d,y,m,w,S,O,E=[];for(m=(e=v(e)).length,t=128,r=0,o=72,a=0;a<m;++a)(y=e[a])<128&&E.push(p(y));for(n=i=E.length,i&&E.push("-");n<m;){for(u=s,a=0;a<m;++a)(y=e[a])>=t&&y<u&&(u=y);for(u-t>f((s-r)/(w=n+1))&&h("overflow"),r+=(u-t)*w,t=u,a=0;a<m;++a)if((y=e[a])<t&&++r>s&&h("overflow"),y==t){for(c=r,l=36;!(c<(d=l<=o?1:l>=o+26?26:l-o));l+=36)E.push(p(g(d+(O=c-d)%(S=36-d),0))),c=f(O/S);E.push(p(g(c,0))),o=b(r,w,n==i),r=0,++n}++r,++t}return E.join("")}o={version:"1.3.2",ucs2:{decode:v,encode:m},decode:w,encode:S,toASCII:function(e){return y(e,function(e){return u.test(e)?"xn--"+S(e):e})},toUnicode:function(e){return y(e,function(e){return a.test(e)?w(e.slice(4).toLowerCase()):e})}},void 0===(n=(function(){return o}).call(t,r,t,e))||(e.exports=n)}()}).call(this,r("YuTi")(e))},aEV5:function(e,t,r){var n=r("i0hM"),i=r("uZW4"),o=i.property,s=i.memoizedProperty;e.exports=function(e,t,r){var i=this;r=r||{},o(this,"name",t.name||e),o(this,"api",r.api,!1),t.http=t.http||{},o(this,"endpoint",t.endpoint),o(this,"httpMethod",t.http.method||"POST"),o(this,"httpPath",t.http.requestUri||"/"),o(this,"authtype",t.authtype||""),o(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),o(this,"httpChecksumRequired",t.httpChecksumRequired,!1),s(this,"input",function(){return t.input?n.create(t.input,r):new n.create({type:"structure"},r)}),s(this,"output",function(){return t.output?n.create(t.output,r):new n.create({type:"structure"},r)}),s(this,"errors",function(){var e=[];if(!t.errors)return null;for(var i=0;i<t.errors.length;i++)e.push(n.create(t.errors[i],r));return e}),s(this,"paginator",function(){return r.api.paginators[e]}),r.documentation&&(o(this,"documentation",t.documentation),o(this,"documentationUrl",t.documentationUrl)),s(this,"idempotentMembers",function(){var e=[],t=i.input,r=t.members;if(!t.members)return e;for(var n in r)r.hasOwnProperty(n)&&!0===r[n].isIdempotent&&e.push(n);return e}),s(this,"hasEventOutput",function(){return function(e){var t=e.members,r=e.payload;if(!e.members)return!1;if(r)return t[r].isEventStream;for(var n in t)if(!t.hasOwnProperty(n)&&!0===t[n].isEventStream)return!0;return!1}(i.output)})}},ajcu:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.userAgent=""},ao6a:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=r("iyfc").a.execute},buyg:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var s=function(){return"function"==typeof Symbol},a=function(e){return s()&&Boolean(Symbol[e])},u=function(e){return a(e)?Symbol[e]:"@@"+e};s()&&!a("observable")&&(Symbol.observable=Symbol("observable"));var c=u("iterator"),l=u("observable"),f=u("species");function p(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:E}function d(e){return e instanceof E}function y(e){y.log?y.log(e):setTimeout(function(){throw e})}function v(e){Promise.resolve().then(function(){try{e()}catch(t){y(t)}})}function m(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=p(t,"unsubscribe");r&&r.call(t)}}catch(n){y(n)}}function g(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function b(e,t,r){e._state="running";var n=e._observer;try{var i=p(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(g(e),!i)throw r;i.call(n,r);break;case"complete":g(e),i&&i.call(n)}}catch(o){y(o)}"closed"===e._state?m(e):"running"===e._state&&(e._state="ready")}function w(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void v(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(b(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)})):void b(e,t,r);e._queue.push({type:t,value:r})}}var S=function(){function e(t,r){n(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new O(this);try{this._cleanup=r.call(void 0,i)}catch(o){i.error(o)}"initializing"===this._state&&(this._state="ready")}return o(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(g(this),m(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),O=function(){function e(t){n(this,e),this._subscription=t}return o(e,[{key:"next",value:function(e){w(this._subscription,"next",e)}},{key:"error",value:function(e){w(this._subscription,"error",e)}},{key:"complete",value:function(){w(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),E=function(){function e(t){if(n(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return o(e,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new S(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise(function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(r){n(r),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}})}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=h(this),n=arguments.length>1,i=!1,o=arguments[1],s=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{s=e(s,t)}catch(a){return r.error(a)}else s=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(s),r.complete()}})})}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(this);return new i(function(t){var n,o=0;return function e(s){n=s.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=h(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(a){return n.error(a)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),s()}});i.push(o)},error:function(e){n.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=p(t,l);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return d(i)&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(a("iterator")&&(n=p(t,c)))return new r(function(e){v(function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var s,a=n.call(t)[Symbol.iterator]();!(r=(s=a.next()).done);r=!0)if(e.next(s.value),e.closed)return}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}e.complete()}})});if(Array.isArray(t))return new r(function(e){v(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i="function"==typeof this?this:e;return new i(function(e){v(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})}},{key:f,get:function(){return this}}]),e}();t.Observable=E,s()&&Object.defineProperty(E,Symbol("extensions"),{value:{symbol:l,hostReportError:y},configurable:!0})},bw8I:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("nv8m"),i=r.n(n);function o(e){return new i.a(function(t){t.error(e)})}},cCRm:function(e,t,r){"use strict";r.d(t,"a",function(){return v});var n=r("7yOe"),i=r("L2ys"),o=r("iyfc"),s=r("nv8m"),a=r.n(s),u=r("B4To"),c=r("ecmS"),l=r("gT6+"),f=r("o/OA"),p=r("7EKC"),h=r("Ecvl"),d=r("KqxT"),y=r("bw8I"),v=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,s=e.fetch,v=e.includeExtensions,m=e.useGETForQueries,g=e.includeUnusedVariables,b=void 0!==g&&g,w=Object(n.e)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);Object(f.a)(s),s||(s=fetch);var S={http:{includeExtensions:v},options:w.fetchOptions,credentials:w.credentials,headers:w.headers};return new o.a(function(e){var t=Object(c.a)(e,r),o=e.getContext(),f={};if(o.clientAwareness){var v=o.clientAwareness,g=v.name,w=v.version;g&&(f["apollographql-client-name"]=g),w&&(f["apollographql-client-version"]=w)}var O,E=Object(n.a)(Object(n.a)({},f),o.headers),_={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:E},A=Object(p.b)(e,p.a,S,_),k=A.options,R=A.body;if(R.variables&&!b){var C=new Set(Object.keys(R.variables));Object(i.c)(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&C.delete(e.name.value)}}),C.size&&(R.variables=Object(n.a)({},R.variables),C.forEach(function(e){delete R.variables[e]}))}if(!k.signal){var T=Object(h.a)();(O=T.controller)&&(k.signal=T.signal)}if(m&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(k.method="GET"),"GET"===k.method){var x=Object(d.a)(t,R),I=x.newURI,j=x.parseError;if(j)return Object(y.a)(j);t=I}else try{k.body=Object(u.a)(R,"Payload")}catch(j){return Object(y.a)(j)}return new a.a(function(r){return s(t,k).then(function(t){return e.setContext({response:t}),t}).then(Object(l.a)(e)).then(function(e){return r.next(e),r.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))}),function(){O&&O.abort()}})})}},cSgv:function(e,t,r){var n=r("uZW4").memoizedProperty;function i(e,t,r,i){n(this,i(e),function(){return r(e,t)})}e.exports=function(e,t,r,n,o){for(var s in n=n||String,e)Object.prototype.hasOwnProperty.call(e,s)&&(i.call(this,s,e[s],r,n),o&&o(s,e[s]))}},caAz:function(e,t,r){"use strict";r.r(t);var n=r("TdF2");r.d(t,"ApolloProvider",function(){return n.a});var i=r("XgeL");r.d(t,"ApolloConsumer",function(){return i.a});var o=r("vSug");r.d(t,"getApolloContext",function(){return o.a}),r.d(t,"resetApolloContext",function(){return o.b});var s=r("DN2r");r.d(t,"useApolloClient",function(){return s.a}),r.d(t,"useLazyQuery",function(){return s.b}),r.d(t,"useMutation",function(){return s.c}),r.d(t,"useQuery",function(){return s.d}),r.d(t,"useSubscription",function(){return s.f}),r.d(t,"useReactiveVar",function(){return s.e});var a=r("oM03");r.d(t,"DocumentType",function(){return a.a}),r.d(t,"operationName",function(){return a.b}),r.d(t,"parser",function(){return a.c});var u=r("UL9b");for(var c in u)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useSubscription","useReactiveVar"].indexOf(c)<0&&function(e){r.d(t,e,function(){return u[e]})}(c)},"d+gj":function(e,t,r){"use strict";r.d(t,"b",function(){return p}),r.d(t,"a",function(){return m});var n=r("7yOe"),i=r("pQBj"),o=r("RpwU"),s=r("BpTK"),a=r("Augq"),u=r("MxFh"),c=r("pBqm"),l=r("Q4gx");function f(e){return void 0!==e.args?e.args:e.field?Object(s.a)(e.field,e.variables):null}var p=function(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=void 0!==n?{id:n}:void 0!==i?{_id:i}:void 0),void 0===n&&(n=i),void 0!==n))return r+":"+("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))},h=function(){},d=function(e,t){return t.fieldName},y=function(e,t,r){return(0,r.mergeObjects)(e,t)},v=function(e,t){return t},m=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Object(n.a)({dataIdFromObject:p},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,r){var n=t&&r?Object(s.c)(e,t,r):e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:n,selectionSet:t,fragmentMap:r},a=n&&this.getTypePolicy(n),u=a&&a.keyFn||this.config.dataIdFromObject;u;){var c=u(e,o);if(!Array.isArray(c)){i=c;break}u=S(c)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var i=e[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,u=Object(n.e)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),s&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),c.c.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?y:!1===t?v:e.merge}s(n,t.merge),n.keyFn=!1===i?h:Array.isArray(i)?S(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var a=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===a?d:Array.isArray(a)?w(a):"function"==typeof a?a:n.keyFn,"function"==typeof u&&(n.read=u),s(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||d)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(Object(o.b)(!n||n===e,1),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(c.a);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!c.c.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),o=i.fields,s=Object(n.e)(i,["fields"]);Object.assign(r,s),Object.assign(r.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),a=[s],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&a.indexOf(t)<0&&a.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=0;f<a.length;++f){var p=a[f];if(p.has(o))return s.has(o)||s.add(o),!0;p.forEach(u),l&&f===a.length-1&&Object(c.e)(e.selectionSet,r,n)&&(l=!1,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},u=f(e);o;){var l=o(u,a);if(!Array.isArray(l)){t=l||n;break}o=w(l)}return void 0===t&&(t=e.field?Object(s.i)(e.field,e.variables):Object(s.b)(n,f(e))),!1===t?n:n===Object(c.b)(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=Object(c.b)(i),a=t.store.getFieldValue(r,i),u=this.getFieldPolicy(e.typename,o,!1),f=u&&u.read;if(f){var p=g(this,r,e,t,t.store.getStorage(Object(s.f)(r)?r.__ref:r,i));return l.a.withValue(this.cache,f,[a,p])}return a}},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,s=r.typename,a=r.merge;return a===y?b(n.store.getFieldValue)(e,t):a===v?t:a(e,t,g(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null)))},e}();function g(e,t,r,i,o){var a=e.getStoreFieldName(r),u=Object(c.b)(a),l=r.variables||i.variables,p=i.store,h=p.getFieldValue,d=p.toReference,y=p.canRead;return{args:f(r),field:r.field||null,fieldName:u,storeFieldName:a,variables:l,isReference:s.f,toReference:d,storage:o,cache:e.cache,canRead:y,readField:function(r,o){var s="string"==typeof r?{fieldName:r,from:o}:Object(n.a)({},r);return void 0===s.from&&(s.from=t),void 0===s.variables&&(s.variables=l),e.readField(s,i)},mergeObjects:b(h)}}function b(e){return function(t,r){if(Array.isArray(t)||Array.isArray(r))throw new o.a(2);if(t&&"object"==typeof t&&r&&"object"==typeof r){var i=e(t,"__typename"),s=e(r,"__typename");return i&&s&&i!==s||!Object(c.f)(t)||!Object(c.f)(r)?r:Object(n.a)(Object(n.a)({},t),r)}return r}}function w(e){return function(t,r){return t?r.fieldName+":"+JSON.stringify(E(t,e,!1)):r.fieldName}}function S(e){var t=new i.a(a.a);return function(r,n){var i;if(n.selectionSet&&n.fragmentMap){var o=t.lookupArray([n.selectionSet,n.fragmentMap]);i=o.aliasMap||(o.aliasMap=O(n.selectionSet,n.fragmentMap))}var s=n.keyObject=E(r,e,!0,i);return n.typename+":"+JSON.stringify(s)}}function O(e,t){var r=Object.create(null),n=new Set([e]);return n.forEach(function(e){e.selections.forEach(function(e){if(Object(s.d)(e)){if(e.alias){var i=e.alias.value,o=e.name.value;o!==i&&((r.aliases||(r.aliases=Object.create(null)))[o]=i)}e.selectionSet&&((r.subsets||(r.subsets=Object.create(null)))[e.name.value]=O(e.selectionSet,t))}else{var a=Object(u.b)(e,t);a&&n.add(a.selectionSet)}})}),r}function E(e,t,r,n){var i,s=Object.create(null);return t.forEach(function(t){if(Array.isArray(t)){if("string"==typeof i){var a=n&&n.subsets;s[i]=E(e[i],t,r,a&&a[i])}}else{var u=n&&n.aliases,l=u&&u[t]||t;c.c.call(e,l)?s[i=t]=e[l]:(Object(o.b)(!r,3),i=void 0)}}),s}},dH5K:function(e,t,r){var n={util:r("uZW4")};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.931.0",Signers:{},Protocol:{Json:r("LOhA"),Query:r("1xPv"),Rest:r("gSlD"),RestJson:r("LDC6"),RestXml:r("M948")},XML:{Builder:r("Uk5I"),Parser:null},JSON:{Builder:r("kvld"),Parser:r("/+mi")},Model:{Api:r("KpGD"),Operation:r("aEV5"),Shape:r("i0hM"),Paginator:r("N4Z5"),ResourceWaiter:r("p8N+")},apiLoader:r("KXBt"),EndpointCache:r("lqiz").EndpointCache}),r("wpik"),r("j7fh"),r("0HyC"),r("QUG+"),r("lmzu"),r("m2RZ"),r("IeCx"),r("uqQW"),r("pxbP"),r("2Tks"),n.events=new n.SequentialExecutor,n.util.memoizedProperty(n,"endpointCache",function(){return new n.EndpointCache(n.config.endpointCacheSize)},!0)},dOJq:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(e,t,r,n,i){this.message=e,this.path=t,this.query=r,this.clientOnly=n,this.variables=i}},dXvB:function(e,t,r){"use strict";r.d(t,"b",function(){return U}),r.d(t,"a",function(){return F});var n=r("7yOe"),i=r("RpwU"),o=r("iyfc"),s=r("ao6a"),a=r("kVOx"),u=r("mknY"),c=r("v2+5"),l=r("Augq");function f(e){return e.errors&&e.errors.length>0||!1}var p=r("jjvw"),h=r("geoG"),d=r("mNHT"),y=r("OG69"),v=r("nv8m"),m=r.n(v),g=r("2Y41"),b=r("F4fy");function w(e){return e&&"function"==typeof e.then}var S=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.addCount=0,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],Object(g.a)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&Promise.resolve().then(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),Object(g.a)(r.observers,"error",e))},complete:function(){if(null!==r.sub){var e=r.sources.shift();e?w(e)?e.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=e.subscribe(r.handlers):(r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),Object(g.a)(r.observers,"complete"))}}},r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new m.a(t)]),w(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return Object(n.c)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,r=!1,n=function(){r||(r=!0,t.observers.delete(i),e())},i={next:n,error:n,complete:n},o=this.addCount;this.addObserver(i),this.addCount=o},t}(m.a);function O(e,t,r){return new m.a(function(n){var i=n.next,o=n.error,s=n.complete,a=0,u=!1,c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++a;var r=function(){return e(t)};c=c.then(r,r).then(function(e){--a,i&&i.call(n,e),u&&f.complete()},function(e){throw--a,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var f={next:l(t,i),error:l(r,o),complete:function(){u=!0,a||s&&s.call(n)}},p=e.subscribe(f);return function(){return p.unsubscribe()}})}Object(b.a)(S);var E=r("lLK+"),_=r("FiKA"),A=r("MHe3"),k=r("L2ys"),R=r("TxYc"),C=r("MxFh"),T=r("BpTK"),x=r("Q4gx"),I=function(){function e(e){var t=e.client,r=e.resolvers,n=e.fragmentMatcher;this.cache=e.cache,t&&(this.client=t),r&&this.addResolvers(r),n&&this.setFragmentMatcher(n)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=Object(R.b)(t.resolvers,e)}):this.resolvers=Object(R.b)(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,r=e.remoteResult,i=e.context,o=e.variables,s=e.onlyRunForcedResolvers,a=void 0!==s&&s;return Object(n.b)(this,void 0,void 0,function(){return Object(n.d)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,a).then(function(e){return Object(n.a)(Object(n.a)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(y.b)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Object(d.c)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Object(n.a)(Object(n.a)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(n.b)(this,void 0,void 0,function(){return Object(n.d)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return Object(n.a)(Object(n.a)({},t),e.exportedVariables)})]:[2,Object(n.a)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(k.c)(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 k.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(d.b)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Object(n.b)(this,void 0,void 0,function(){var a,u,c,l,f,p,d,y,v;return Object(n.d)(this,function(m){return a=Object(h.e)(e),u=Object(h.d)(e),c=Object(C.a)(u),f=(l=a.operation)?l.charAt(0).toUpperCase()+l.slice(1):"Query",d=(p=this).cache,y=p.client,v={fragmentMap:c,context:Object(n.a)(Object(n.a)({},r),{cache:d,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r){return Object(n.b)(this,void 0,void 0,function(){var o,s,a,u,c=this;return Object(n.d)(this,function(l){return o=r.fragmentMap,s=r.context,a=r.variables,u=[t],[2,Promise.all(e.selections.map(function(e){return Object(n.b)(c,void 0,void 0,function(){var c;return Object(n.d)(this,function(n){return Object(y.c)(e,a)?Object(T.d)(e)?[2,this.resolveField(e,t,r).then(function(t){var r;void 0!==t&&u.push(((r={})[Object(T.h)(e)]=t,r))})]:(Object(T.e)(e)?c=e:(c=o[e.name.value],Object(i.b)(c,11)),c&&c.typeCondition&&r.fragmentMatcher(t,c.typeCondition.name.value,s)?[2,this.resolveSelectionSet(c.selectionSet,t,r).then(function(e){u.push(e)})]:[2]):[2]})})})).then(function(){return Object(R.c)(u)})]})})},e.prototype.resolveField=function(e,t,r){return Object(n.b)(this,void 0,void 0,function(){var i,o,s,a,u,c,l,f,p,h=this;return Object(n.d)(this,function(n){return i=r.variables,o=e.name.value,s=Object(T.h)(e),a=o!==s,u=t[s]||t[o],c=Promise.resolve(u),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||r.defaultOperationType,(f=this.resolvers&&this.resolvers[l])&&(p=f[a?o:s])&&(c=Promise.resolve(x.a.withValue(this.cache,p,[t,Object(T.a)(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,c.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&&(r.exportedVariables[e.value.value]=t)})}),e.selectionSet?null==t?t:Array.isArray(t)?h.resolveSubSelectedArray(e,t,r):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,r):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0}))},e}(),j=new(l.a?WeakMap:Map);function P(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return j.set(e,(j.get(e)+1)%1e15),r.apply(this,arguments)})}function N(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var M=function(){function e(e){this.cache=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.diff=null,this.observableQuery=null,j.has(e)||(j.set(e,0),P(e,"evict"),P(e,"modify"),P(e,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||A.a.loading;return this.variables&&this.networkStatus!==A.a.loading&&!Object(c.a)(this.variables,e.variables)&&(t=A.a.setVariables),Object(c.a)(e.variables,this.variables)||(this.diff=null),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){N(this),this.diff=null,this.dirty=!1},e.prototype.getDiff=function(e){return void 0===e&&(e=this.variables),this.diff&&Object(c.a)(e,this.variables)?this.diff:(this.updateWatch(this.variables=e),this.diff=this.cache.diff({query:this.document,variables:e,returnPartialData:!0,optimistic:!0}))},e.prototype.setDiff=function(e){var t=this,r=this.diff;this.diff=e,this.dirty||(e&&e.result)===(r&&r.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;N(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Object(A.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var e=this.observableQuery;e&&e.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;r&&"no-cache"===r.options.fetchPolicy||this.lastWatch&&this.lastWatch.query===this.document&&Object(c.a)(e,this.lastWatch.variables)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:e,optimistic:!0,callback:function(e){return t.setDiff(e)}}))},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===j.get(this.cache)&&Object(c.a)(t,r.variables)&&Object(c.a)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r){var n=this;this.graphQLErrors=Object(p.a)(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.diff={result:e.data,complete:!0}:!this.stopped&&r&&(q(e,t.errorPolicy)?this.cache.performTransaction(function(r){if(n.shouldWrite(e,t.variables))r.writeQuery({query:n.document,data:e.data,variables:t.variables}),n.lastWrite={result:e,variables:t.variables,dmCount:j.get(n.cache)};else if(n.diff&&n.diff.complete)return void(e.data=n.diff.result);var i=r.diff({query:n.document,variables:t.variables,returnPartialData:!0,optimistic:!0});n.stopped||n.updateWatch(t.variables),n.diff=i,i.complete&&(e.data=i.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=A.a.ready},e.prototype.markError=function(e){return this.networkStatus=A.a.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function q(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!f(e);return!n&&r&&e.data&&(n=!0),n}var L=Object.prototype.hasOwnProperty,D=function(){function e(e){var t=e.cache,r=e.link,n=e.queryDeduplication,i=void 0!==n&&n,o=e.onBroadcast,s=e.ssrMode,a=void 0!==s&&s,u=e.clientAwareness,c=void 0===u?{}:u,f=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(l.a?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.queryDeduplication=i,this.clientAwareness=c,this.localState=f||new I({cache:t}),this.ssrMode=a,this.assumeImmutableResults=!!p,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(new i.a(12))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,o=e.optimisticResponse,s=e.updateQueries,a=e.refetchQueries,u=void 0===a?[]:a,c=e.awaitRefetchQueries,l=void 0!==c&&c,h=e.update,d=e.errorPolicy,y=void 0===d?"none":d,v=e.fetchPolicy,m=e.context,g=void 0===m?{}:m;return Object(n.b)(this,void 0,void 0,function(){var e,a,c;return Object(n.d)(this,function(d){switch(d.label){case 0:return Object(i.b)(t,13),Object(i.b)(!v||"no-cache"===v,14),e=this.generateMutationId(),t=this.transform(t).document,r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,g)]:[3,2];case 1:r=d.sent(),d.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:r,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:t,variables:r,errorPolicy:y,updateQueries:s,update:h}),this.broadcastQueries(),c=this,[2,new Promise(function(i,d){var m,b;c.getObservableFromLink(t,Object(n.a)(Object(n.a)({},g),{optimisticResponse:o}),r,!1).subscribe({next:function(n){if(f(n)&&"none"===y)b=new E.a({graphQLErrors:n.errors});else{if(a&&(a.loading=!1,a.error=null),"no-cache"!==v)try{c.markMutationResult({mutationId:e,result:n,document:t,variables:r,errorPolicy:y,updateQueries:s,update:h})}catch(i){return void(b=new E.a({networkError:i}))}m=n}},error:function(t){a&&(a.loading=!1,a.error=t),o&&c.cache.removeOptimistic(e),c.broadcastQueries(),d(new E.a({networkError:t}))},complete:function(){if(b&&a&&(a.loading=!1,a.error=b),o&&c.cache.removeOptimistic(e),c.broadcastQueries(),b)d(b);else{"function"==typeof u&&(u=u(m));var t=[];Object(p.a)(u)&&u.forEach(function(e){if("string"==typeof e)c.queries.forEach(function(r){var n=r.observableQuery;n&&n.hasObservers()&&n.queryName===e&&t.push(n.refetch())});else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(c.query(r))}}),Promise.all(l?t:[]).then(function(){"ignore"===y&&m&&f(m)&&delete m.errors,i(m)},d)}}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;if(void 0===t&&(t=this.cache),q(e.result,e.errorPolicy)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],i=e.updateQueries;i&&this.queries.forEach(function(o,s){var a=o.observableQuery,u=a&&a.queryName;if(u&&L.call(i,u)){var c=i[u],l=r.queries.get(s),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),y=d.result;if(d.complete&&y){var v=c(y,{mutationResult:e.result,queryName:f&&Object(h.g)(f)||void 0,queryVariables:p});v&&n.push({result:v,dataId:"ROOT_QUERY",query:f,variables:p})}}}),t.performTransaction(function(t){n.forEach(function(e){return t.write(e)});var r=e.update;r&&r(t,e.result)},null)}},e.prototype.markMutationOptimistic=function(e,t){var r=this,i="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult(Object(n.a)(Object(n.a)({},t),{result:{data:i}}),e)}catch(o){}},t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),n=Object(d.d)(this.cache.transformForLink(r)),i=this.localState.clientQuery(r),o=n&&this.localState.serverQuery(n),s={document:r,hasClientExports:Object(y.a)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:i,serverQuery:o,defaultVars:Object(h.b)(Object(h.f)(r))},a=function(e){e&&!t.has(e)&&t.set(e,s)};a(e),a(r),a(i),a(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(n.a)(Object(n.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=Object(n.a)(Object(n.a)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new M(this.cache),r=new _.a({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:e.query,observableQuery:r,variables:e.variables}),r},e.prototype.query=function(e){var t=this;Object(i.b)(e.query,15),Object(i.b)("Document"===e.query.kind,16),Object(i.b)(!e.returnPartialData,17),Object(i.b)(!e.pollInterval,18);var r=this.generateQueryId();return this.fetchQuery(r,e).finally(function(){return t.stopQuery(r)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(){return this.cancelPendingFetches(new i.a(19)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=A.a.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.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 r=[];return this.queries.forEach(function(n,i){var o=n.observableQuery;if(o&&o.hasObservers()){var s=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===s||!e&&"standby"===s||r.push(o.refetch()),t.getQuery(i).setDiff(null)}}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,s=e.context,a=void 0===s?{}:s;r=this.transform(r).document,o=this.getVariables(r,o);var u=function(e){return t.getObservableFromLink(r,a,e,!1).map(function(o){if("no-cache"!==n&&(q(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),f(o))throw new E.a({graphQLErrors:o.errors});return o})};if(this.transform(r).hasClientExports){var c=this.localState.addExportedVariables(r,o,a).then(u);return new m.a(function(e){var t=null;return c.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(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.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,a,u=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.transform(e).serverQuery;if(c){var l=this.inFlightLinkObservables,f=this.link,p={query:c,variables:r,operationName:Object(h.g)(c)||void 0,context:this.prepareContext(Object(n.a)(Object(n.a)({},t),{forceFetch:!i}))};if(t=p.context,i){var d=l.get(c)||new Map;l.set(c,d);var y=JSON.stringify(r);if(!(a=d.get(y))){var v=new S([Object(s.a)(f,p)]);d.set(y,a=v),v.cleanup(function(){d.delete(y)&&d.size<1&&l.delete(c)})}}else a=new S([Object(s.a)(f,p)])}else a=new S([m.a.of({data:{}})]),t=this.prepareContext(t);var g=this.transform(e).clientQuery;return g&&(a=O(a,function(e){return u.localState.runResolvers({document:g,remoteResult:e,context:t,variables:r})})),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId();return O(this.getObservableFromLink(e.document,r.context,r.variables),function(i){var o=Object(p.a)(i.errors);if(n>=e.lastRequestId){if(o&&"none"===r.errorPolicy)throw e.markError(new E.a({graphQLErrors:i.errors}));e.markResult(i,r,t),e.markReady()}var s={data:i.data,loading:!1,networkStatus:e.networkStatus||A.a.ready};return o&&"ignore"!==r.errorPolicy&&(s.errors=i.errors),s},function(t){var r=Object(E.b)(t)?t:new E.a({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchQueryObservable=function(e,t,r){var n=this;void 0===r&&(r=A.a.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),s=this.getQuery(e),a=s.networkStatus,u=t.fetchPolicy,c=void 0===u?"cache-first":u,l=t.errorPolicy,f=void 0===l?"none":l,p=t.returnPartialData,h=void 0!==p&&p,d=t.notifyOnNetworkStatusChange,y=void 0!==d&&d,v=t.context,m=void 0===v?{}:v;("cache-first"===c||"cache-and-network"===c||"network-only"===c||"no-cache"===c)&&y&&"number"==typeof a&&a!==r&&Object(A.b)(r)&&("cache-first"!==c&&(c="cache-and-network"),h=!0);var g=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:f,returnPartialData:h,notifyOnNetworkStatusChange:y,context:m}),b=function(e){return g.variables=e,n.fetchQueryByPolicy(s,g,r)};this.fetchCancelFns.set(e,function(e){Promise.resolve().then(function(){return w.cancel(e)})});var w=new S(this.transform(g.query).hasClientExports?this.localState.addExportedVariables(g.query,g.variables,g.context).then(b):b(g.variables));return w.cleanup(function(){n.fetchCancelFns.delete(e);var r=t.nextFetchPolicy;r&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"==typeof r?r.call(t,t.fetchPolicy||"cache-first"):r)}),w},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,s=t.variables,a=t.fetchPolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context;e.init({document:o,variables:s,networkStatus:r});var f=function(){return e.getDiff(s)},p=function(t,r){void 0===r&&(r=e.networkStatus||A.a.loading);var a=t.result,u=function(e){return m.a.of(Object(n.a)({data:e,loading:Object(A.b)(r),networkStatus:r},t.complete?null:{partial:!0}))};return i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:a},context:l,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data)}):u(a)},h=function(t){return i.getResultsFromLink(e,t,{variables:s,context:l,fetchPolicy:a,errorPolicy:u})};switch(a){default:case"cache-first":return(d=f()).complete?[p(d,e.markReady())]:c?[p(d),h(!0)]:[h(!0)];case"cache-and-network":var d;return(d=f()).complete||c?[p(d),h(!0)]:[h(!0)];case"cache-only":return[p(f(),e.markReady())];case"network-only":return[h(!0)];case"no-cache":return[h(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new M(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(n.a)(Object(n.a)({},t),{clientAwareness:this.clientAwareness})},e}();function U(e,t){return Object(a.a)(e,t,t.variables&&{variables:Object(n.a)(Object(n.a)({},e.variables),t.variables)})}var F=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.cache,s=e.ssrMode,a=void 0!==s&&s,c=e.ssrForceFetchDelay,l=void 0===c?0:c,f=e.connectToDevTools,p=void 0===f?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:f,h=e.queryDeduplication,d=void 0===h||h,y=e.defaultOptions,v=e.assumeImmutableResults,m=void 0!==v&&v,g=e.resolvers,b=e.typeDefs,w=e.fragmentMatcher,S=e.name,O=e.version,E=e.link;if(E||(E=r?new u.a({uri:r,credentials:e.credentials,headers:e.headers}):o.a.empty()),!n)throw new i.a(9);this.link=E,this.cache=n,this.disableNetworkFetches=a||l>0,this.queryDeduplication=d,this.defaultOptions=y||{},this.typeDefs=b,l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),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),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new I({cache:n,client:this,resolvers:g,fragmentMatcher:w}),this.queryManager=new D({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:a,clientAwareness:{name:S,version:O},localState:this.localState,assumeImmutableResults:m,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=U(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=U(this.defaultOptions.query,e)),Object(i.b)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=U(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){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(s.a)(this.link,e)},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.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},e2nY:function(e){e.exports=JSON.parse('{"pagination":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},e5r6:function(e,t,r){var n=r("+orC"),i=r("zU8g").Buffer;function o(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function s(e,t,r,n,i,o){return((t=(t+e&4294967295)+(n+o&4294967295)&4294967295)<<i|t>>>32-i)+r&4294967295}function a(e,t,r,n,i,o,a){return s(t&r|~t&n,e,t,i,o,a)}function u(e,t,r,n,i,o,a){return s(t&n|r&~n,e,t,i,o,a)}function c(e,t,r,n,i,o,a){return s(t^r^n,e,t,i,o,a)}function l(e,t,r,n,i,o,a){return s(r^(t|~n),e,t,i,o,a)}e.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(e){if(n.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=n.convertToBuffer(e),r=0,i=t.byteLength;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),i--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},o.prototype.digest=function(e){if(!this.finished){var t=this.buffer,r=this.bufferLength,n=8*this.bytesHashed;if(t.setUint8(this.bufferLength++,128),r%64>=56){for(var o=this.bufferLength;o<64;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<56;o++)t.setUint8(o,0);t.setUint32(56,n>>>0,!0),t.setUint32(60,Math.floor(n/4294967296),!0),this.hashBuffer(),this.finished=!0}var s=new DataView(new ArrayBuffer(16));for(o=0;o<4;o++)s.setUint32(4*o,this.state[o],!0);var a=new i(s.buffer,s.byteOffset,s.byteLength);return e?a.toString(e):a},o.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],o=t[3];r=a(r,n,i,o,e.getUint32(0,!0),7,3614090360),o=a(o,r,n,i,e.getUint32(4,!0),12,3905402710),i=a(i,o,r,n,e.getUint32(8,!0),17,606105819),n=a(n,i,o,r,e.getUint32(12,!0),22,3250441966),r=a(r,n,i,o,e.getUint32(16,!0),7,4118548399),o=a(o,r,n,i,e.getUint32(20,!0),12,1200080426),i=a(i,o,r,n,e.getUint32(24,!0),17,2821735955),n=a(n,i,o,r,e.getUint32(28,!0),22,4249261313),r=a(r,n,i,o,e.getUint32(32,!0),7,1770035416),o=a(o,r,n,i,e.getUint32(36,!0),12,2336552879),i=a(i,o,r,n,e.getUint32(40,!0),17,4294925233),n=a(n,i,o,r,e.getUint32(44,!0),22,2304563134),r=a(r,n,i,o,e.getUint32(48,!0),7,1804603682),o=a(o,r,n,i,e.getUint32(52,!0),12,4254626195),i=a(i,o,r,n,e.getUint32(56,!0),17,2792965006),r=u(r,n=a(n,i,o,r,e.getUint32(60,!0),22,1236535329),i,o,e.getUint32(4,!0),5,4129170786),o=u(o,r,n,i,e.getUint32(24,!0),9,3225465664),i=u(i,o,r,n,e.getUint32(44,!0),14,643717713),n=u(n,i,o,r,e.getUint32(0,!0),20,3921069994),r=u(r,n,i,o,e.getUint32(20,!0),5,3593408605),o=u(o,r,n,i,e.getUint32(40,!0),9,38016083),i=u(i,o,r,n,e.getUint32(60,!0),14,3634488961),n=u(n,i,o,r,e.getUint32(16,!0),20,3889429448),r=u(r,n,i,o,e.getUint32(36,!0),5,568446438),o=u(o,r,n,i,e.getUint32(56,!0),9,3275163606),i=u(i,o,r,n,e.getUint32(12,!0),14,4107603335),n=u(n,i,o,r,e.getUint32(32,!0),20,1163531501),r=u(r,n,i,o,e.getUint32(52,!0),5,2850285829),o=u(o,r,n,i,e.getUint32(8,!0),9,4243563512),i=u(i,o,r,n,e.getUint32(28,!0),14,1735328473),r=c(r,n=u(n,i,o,r,e.getUint32(48,!0),20,2368359562),i,o,e.getUint32(20,!0),4,4294588738),o=c(o,r,n,i,e.getUint32(32,!0),11,2272392833),i=c(i,o,r,n,e.getUint32(44,!0),16,1839030562),n=c(n,i,o,r,e.getUint32(56,!0),23,4259657740),r=c(r,n,i,o,e.getUint32(4,!0),4,2763975236),o=c(o,r,n,i,e.getUint32(16,!0),11,1272893353),i=c(i,o,r,n,e.getUint32(28,!0),16,4139469664),n=c(n,i,o,r,e.getUint32(40,!0),23,3200236656),r=c(r,n,i,o,e.getUint32(52,!0),4,681279174),o=c(o,r,n,i,e.getUint32(0,!0),11,3936430074),i=c(i,o,r,n,e.getUint32(12,!0),16,3572445317),n=c(n,i,o,r,e.getUint32(24,!0),23,76029189),r=c(r,n,i,o,e.getUint32(36,!0),4,3654602809),o=c(o,r,n,i,e.getUint32(48,!0),11,3873151461),i=c(i,o,r,n,e.getUint32(60,!0),16,530742520),r=l(r,n=c(n,i,o,r,e.getUint32(8,!0),23,3299628645),i,o,e.getUint32(0,!0),6,4096336452),o=l(o,r,n,i,e.getUint32(28,!0),10,1126891415),i=l(i,o,r,n,e.getUint32(56,!0),15,2878612391),n=l(n,i,o,r,e.getUint32(20,!0),21,4237533241),r=l(r,n,i,o,e.getUint32(48,!0),6,1700485571),o=l(o,r,n,i,e.getUint32(12,!0),10,2399980690),i=l(i,o,r,n,e.getUint32(40,!0),15,4293915773),n=l(n,i,o,r,e.getUint32(4,!0),21,2240044497),r=l(r,n,i,o,e.getUint32(32,!0),6,1873313359),o=l(o,r,n,i,e.getUint32(60,!0),10,4264355552),i=l(i,o,r,n,e.getUint32(24,!0),15,2734768916),n=l(n,i,o,r,e.getUint32(52,!0),21,1309151649),r=l(r,n,i,o,e.getUint32(16,!0),6,4149444226),o=l(o,r,n,i,e.getUint32(44,!0),10,3174756917),i=l(i,o,r,n,e.getUint32(8,!0),15,718787259),n=l(n,i,o,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=o+t[3]&4294967295}},ecmS:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}},fIPs:function(e,t,r){var n=r("ZHBb");function i(){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=m,t.resolve=function(e,t){return m(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},t.format=function(e){return g(e)&&(e=m(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(a),c=["%","/","?",";","#"].concat(u),l=["/","?","#"],f=/^[a-z0-9A-Z_-]{0,63}$/,p=/^([a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},d={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r("0ORH");function m(e,t,r){if(e&&b(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}function g(e){return"string"==typeof e}function b(e){return"object"==typeof e&&null!==e}function w(e){return null===e}i.prototype.parse=function(e,t,r){if(!g(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e;i=i.trim();var s=o.exec(i);if(s){var a=(s=s[0]).toLowerCase();this.protocol=a,i=i.substr(s.length)}if(r||s||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var m="//"===i.substr(0,2);!m||s&&d[s]||(i=i.substr(2),this.slashes=!0)}if(!d[s]&&(m||s&&!y[s])){for(var b,w,S=-1,O=0;O<l.length;O++)-1!==(E=i.indexOf(l[O]))&&(-1===S||E<S)&&(S=E);for(-1!==(w=-1===S?i.lastIndexOf("@"):i.lastIndexOf("@",S))&&(b=i.slice(0,w),i=i.slice(w+1),this.auth=decodeURIComponent(b)),S=-1,O=0;O<c.length;O++){var E;-1!==(E=i.indexOf(c[O]))&&(-1===S||E<S)&&(S=E)}-1===S&&(S=i.length),this.host=i.slice(0,S),i=i.slice(S),this.parseHost(),this.hostname=this.hostname||"";var _="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_)for(var A=this.hostname.split(/\./),k=(O=0,A.length);O<k;O++){var R=A[O];if(R&&!R.match(f)){for(var C="",T=0,x=R.length;T<x;T++)R.charCodeAt(T)>127?C+="x":C+=R[T];if(!C.match(f)){var I=A.slice(0,O),j=A.slice(O+1),P=R.match(p);P&&(I.push(P[1]),j.unshift(P[2])),j.length&&(i="/"+j.join(".")+i),this.hostname=I.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!_){var N=this.hostname.split("."),M=[];for(O=0;O<N.length;++O)M.push((U=N[O]).match(/[^A-Za-z0-9_-]/)?"xn--"+n.encode(U):U);this.hostname=M.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!h[a])for(O=0,k=u.length;O<k;O++){var q=u[O],L=encodeURIComponent(q);L===q&&(L=escape(q)),i=i.split(q).join(L)}var D=i.indexOf("#");-1!==D&&(this.hash=i.substr(D),i=i.slice(0,D));var U,F=i.indexOf("?");return-1!==F?(this.search=i.substr(F),this.query=i.substr(F+1),t&&(this.query=v.parse(this.query)),i=i.slice(0,F)):t&&(this.search="",this.query={}),i&&(this.pathname=i),y[a]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(U=this.search||"")),this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&b(this.query)&&Object.keys(this.query).length&&(o=v.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(g(e)){var t=new i;t.parse(e,!1,!0),e=t}var r=new i;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||d[e.protocol])r.pathname=e.pathname;else{for(var n=(e.pathname||"").split("/");n.length&&!(e.host=n.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),r.pathname=n.join("/")}return r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,(r.pathname||r.search)&&(r.path=(r.pathname||"")+(r.search||"")),r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var o=r.pathname&&"/"===r.pathname.charAt(0),s=e.host||e.pathname&&"/"===e.pathname.charAt(0),a=s||o||r.host&&e.pathname,u=a,c=r.pathname&&r.pathname.split("/")||[],l=(n=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(l&&(r.hostname="",r.port=null,r.host&&(""===c[0]?c[0]=r.host:c.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===n[0]?n[0]=e.host:n.unshift(e.host)),e.host=null),a=a&&(""===n[0]||""===c[0])),s)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,c=n;else if(n.length)c||(c=[]),c.pop(),c=c.concat(n),r.search=e.search,r.query=e.query;else if(null!=e.search)return l&&(r.hostname=r.host=c.shift(),(m=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=m.shift(),r.host=r.hostname=m.shift())),r.search=e.search,r.query=e.query,w(r.pathname)&&w(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!c.length)return r.pathname=null,r.path=r.search?"/"+r.search:null,r.href=r.format(),r;for(var f=c.slice(-1)[0],p=(r.host||e.host)&&("."===f||".."===f)||""===f,h=0,v=c.length;v>=0;v--)"."==(f=c[v])?c.splice(v,1):".."===f?(c.splice(v,1),h++):h&&(c.splice(v,1),h--);if(!a&&!u)for(;h--;h)c.unshift("..");!a||""===c[0]||c[0]&&"/"===c[0].charAt(0)||c.unshift(""),p&&"/"!==c.join("/").substr(-1)&&c.push("");var m,b=""===c[0]||c[0]&&"/"===c[0].charAt(0);return l&&(r.hostname=r.host=b?"":c.length?c.shift():"",(m=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=m.shift(),r.host=r.hostname=m.shift())),(a=a||r.host&&c.length)&&!b&&c.unshift(""),c.length?r.pathname=c.join("/"):(r.pathname=null,r.path=null),w(r.pathname)&&w(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.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)}},fm2W:function(e,t){var r=1e3,n=60*r,i=60*n,o=24*i;function s(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}e.exports=function(e,t){t=t||{};var a,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===u&&!1===isNaN(e))return t.long?s(a=e,o,"day")||s(a,i,"hour")||s(a,n,"minute")||s(a,r,"second")||a+" ms":function(e){return e>=o?Math.round(e/o)+"d":e>=i?Math.round(e/i)+"h":e>=n?Math.round(e/n)+"m":e>=r?Math.round(e/r)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},g7Xj:function(e,t,r){"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof global[n[t]]&&(e[e.length]=n[t]);return e}},gBoe:function(e,t,r){var n=r("dH5K"),i=r("RWsy");n.WebIdentityCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=n.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity(function(r,n){t.data=null,r||(t.data=n,t.service.credentialsFrom(n,t)),e(r)})},createClients:function(){if(!this.service){var e=n.util.merge({},this._clientConfig);e.params=this.params,this.service=new i(e)}}})},gDch:function(e,t,r){var n=r("dH5K");n.Credentials=n.util.inherit({constructor:function(){if(n.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=n.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load(function(e){n.util.arrayEach(r.refreshCallbacks,function(r){t?r(e):n.util.defer(function(){r(e)})}),r.refreshCallbacks.length=0})},load:function(e){e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},gSlD:function(e,t,r){var n=r("uZW4"),i=r("yJiX").populateHostPrefix;function o(e,t,r,i){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var s={},a=!1;if(n.each(r.members,function(e,t){var r=i[e];if(null!=r)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,function(e,t){return(t?n.uriEscapePath:n.uriEscape)(String(r))})}else"querystring"===t.location&&(a=!0,"list"===t.type?s[t.name]=r.map(function(e){return n.uriEscape(t.member.toWireFormat(e).toString())}):"map"===t.type?n.each(r,function(e,t){s[e]=Array.isArray(t)?t.map(function(e){return n.uriEscape(String(e))}):n.uriEscape(String(t))}):s[t.name]=n.uriEscape(t.toWireFormat(r).toString()))}),a){o+=o.indexOf("?")>=0?"&":"?";var u=[];n.arrayEach(Object.keys(s).sort(),function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t<s[e].length;t++)u.push(n.uriEscape(String(e))+"="+s[e][t])}),o+=u.join("&")}return o}e.exports={buildRequest:function(e){!function(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}(e),function(e){var t=e.service.api.operations[e.operation],r=o(e.httpRequest.endpoint.path,t.httpPath,t.input,e.params);e.httpRequest.path=r}(e),function(e){n.each(e.service.api.operations[e.operation].input.members,function(t,r){var i=e.params[t];null!=i&&("headers"===r.location&&"map"===r.type?n.each(i,function(t,n){e.httpRequest.headers[r.name+t]=n}):"header"===r.location&&(i=r.toWireFormat(i).toString(),r.isJsonValue&&(i=n.base64.encode(i)),e.httpRequest.headers[r.name]=i))})}(e),i(e)},extractError:function(){},extractData:function(e){var t=e.request,r={},i=e.httpResponse,o=t.service.api.operations[t.operation].output,s={};n.each(i.headers,function(e,t){s[e.toLowerCase()]=t}),n.each(o.members,function(e,t){var o=(t.name||e).toLowerCase();if("headers"===t.location&&"map"===t.type){r[e]={};var a=new RegExp("^"+(t.isLocationName?t.name:"")+"(.+)","i");n.each(i.headers,function(t,n){var i=t.match(a);null!==i&&(r[e][i[1]]=n)})}else if("header"===t.location){if(void 0!==s[o]){var u=t.isJsonValue?n.base64.decode(s[o]):s[o];r[e]=t.toType(u)}}else"statusCode"===t.location&&(r[e]=parseInt(i.statusCode,10))}),e.data=r},generateURI:o}},"gT6+":function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("hTwx"),i=Object.prototype.hasOwnProperty;function o(e){return function(t){return t.text().then(function(e){try{return JSON.parse(e)}catch(n){var r=n;throw r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=e,r}}).then(function(r){return t.status>=300&&Object(n.a)(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||i.call(r,"data")||i.call(r,"errors")||Object(n.a)(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName)+"'."),r})}}},gW7G:function(e){e.exports=JSON.parse('{"pagination":{}}')},geoG:function(e,t,r){"use strict";r.d(t,"a",function(){return o}),r.d(t,"f",function(){return s}),r.d(t,"g",function(){return a}),r.d(t,"d",function(){return u}),r.d(t,"h",function(){return c}),r.d(t,"c",function(){return l}),r.d(t,"e",function(){return f}),r.d(t,"b",function(){return p});var n=r("RpwU"),i=r("BpTK");function o(e){Object(n.b)(e&&"Document"===e.kind,45);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new n.a(46);return e});return Object(n.b)(t.length<=1,47),e}function s(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function a(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=s(e);return Object(n.b)(t&&"query"===t.operation,48),t}function l(e){Object(n.b)("Document"===e.kind,49),Object(n.b)(e.definitions.length<=1,50);var t=e.definitions[0];return Object(n.b)("FragmentDefinition"===t.kind,51),t}function f(e){var t;o(e);for(var r=0,i=e.definitions;r<i.length;r++){var s=i[r];if("OperationDefinition"===s.kind){var a=s.operation;if("query"===a||"mutation"===a||"subscription"===a)return s}"FragmentDefinition"!==s.kind||t||(t=s)}if(t)return t;throw new n.a(52)}function p(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&Object(i.j)(t,e.variable.name,e.defaultValue)}),t}},glyH:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=r("iyfc").a.empty},grsC:function(e,t,r){var n=r("dH5K"),i=r("RWsy");n.SAMLCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML(function(r,n){r||t.service.credentialsFrom(n,t),e(r)})},createClients:function(){this.service=this.service||new i({params:this.params})}})},"h/rl":function(e,t){e.exports={escapeAttribute:function(e){return e.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},h8FL:function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(e){if(null==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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var r,a,u=s(e),c=1;c<arguments.length;c++){for(var l in r=Object(arguments[c]))i.call(r,l)&&(u[l]=r[l]);if(n){a=n(r);for(var f=0;f<a.length;f++)o.call(r,a[f])&&(u[a[f]]=r[a[f]])}}return u}},hAFg:function(e,t,r){var n=r("dH5K"),i=r("Cq1e").EventEmitter;r("QUG+"),n.XHRClient=n.util.inherit({handleRequest:function(e,t,r,o){var s=this,a=e.endpoint,u=new i,c=a.protocol+"//"+a.hostname;80!==a.port&&443!==a.port&&(c+=":"+a.port),c+=e.path;var l=new XMLHttpRequest,f=!1;e.stream=l,l.addEventListener("readystatechange",function(){try{if(0===l.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!f&&(u.statusCode=l.status,u.headers=s.parseHeaders(l.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,l.statusText),f=!0),this.readyState===this.DONE&&s.finishRequest(l,u)},!1),l.upload.addEventListener("progress",function(e){u.emit("sendProgress",e)}),l.addEventListener("progress",function(e){u.emit("receiveProgress",e)},!1),l.addEventListener("timeout",function(){o(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),l.addEventListener("error",function(){o(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),l.addEventListener("abort",function(){o(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),r(u),l.open(e.method,c,!1!==t.xhrAsync),n.util.each(e.headers,function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&l.setRequestHeader(e,t)}),t.timeout&&!1!==t.xhrAsync&&(l.timeout=t.timeout),t.xhrWithCredentials&&(l.withCredentials=!0);try{l.responseType="arraybuffer"}catch(p){}try{e.body?l.send(e.body):l.send()}catch(h){if(!e.body||"object"!=typeof e.body.buffer)throw h;l.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),function(e){var r=e.split(":",1)[0],n=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=n)}),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var i=e.response;r=new n.util.Buffer(i.byteLength);for(var o=new Uint8Array(i),s=0;s<r.length;++s)r[s]=o[s]}try{r||"string"!=typeof e.responseText||(r=new n.util.Buffer(e.responseText))}catch(a){}r&&t.emit("data",r),t.emit("end")}}),n.HttpClient.prototype=n.XHRClient.prototype,n.HttpClient.streamsApiVersion=1},hTwx:function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}},hZOY:function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},hfgg:function(e,t,r){var n=r("dH5K");n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){var t=this;if(0===t.providers.length)return e(new Error("No providers")),t;if(1===t.resolveCallbacks.push(e)){var r=0,i=t.providers.slice(0);!function e(o,s){if(!o&&s||r===i.length)return n.util.arrayEach(t.resolveCallbacks,function(e){e(o,s)}),void(t.resolveCallbacks.length=0);var a=i[r++];(s="function"==typeof a?a.call():a).get?s.get(function(t){e(t,t?null:s)}):e(null,s)}()}return t}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},hqjv:function(e,t,r){var n=r("zU8g").Buffer,i=r("+orC"),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=Math.pow(2,53)-1;function a(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}e.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(i.isEmptyData(e))return this;var t=0,r=(e=i.convertToBuffer(e)).byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>s)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(r.setUint8(this.bufferLength++,128),i%64>=56){for(var o=this.bufferLength;o<64;o++)r.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<56;o++)r.setUint8(o,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}var s=new n(32);for(o=0;o<8;o++)s[4*o]=this.state[o]>>>24&255,s[4*o+1]=this.state[o]>>>16&255,s[4*o+2]=this.state[o]>>>8&255,s[4*o+3]=this.state[o]>>>0&255;return e?s.toString(e):s},a.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],s=t[3],a=t[4],u=t[5],c=t[6],l=t[7],f=0;f<64;f++){if(f<16)this.temp[f]=(255&e[4*f])<<24|(255&e[4*f+1])<<16|(255&e[4*f+2])<<8|255&e[4*f+3];else{var p=this.temp[f-2];this.temp[f]=(((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+this.temp[f-7]|0)+((((p=this.temp[f-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+this.temp[f-16]|0)}var h=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&u^~a&c)|0)+(l+(o[f]+this.temp[f]|0)|0)|0,d=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&i^n&i)|0;l=c,c=u,u=a,a=s+h|0,s=i,i=n,n=r,r=h+d|0}t[0]+=r,t[1]+=n,t[2]+=i,t[3]+=s,t[4]+=a,t[5]+=u,t[6]+=c,t[7]+=l}},i0hM:function(e,t,r){var n=r("cSgv"),i=r("uZW4");function o(e,t,r){null!=r&&i.property.apply(this,arguments)}function s(e,t){e.constructor.prototype[t]||i.memoizedProperty.apply(this,arguments)}function a(e,t,r){t=t||{},o(this,"shape",e.shape),o(this,"api",t.api,!1),o(this,"type",e.type),o(this,"enum",e.enum),o(this,"min",e.min),o(this,"max",e.max),o(this,"pattern",e.pattern),o(this,"location",e.location||this.location||"body"),o(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),o(this,"isStreaming",e.streaming||this.isStreaming||!1),o(this,"requiresLength",e.requiresLength,!1),o(this,"isComposite",e.isComposite||!1),o(this,"isShape",!0,!1),o(this,"isQueryName",Boolean(e.queryName),!1),o(this,"isLocationName",Boolean(e.locationName),!1),o(this,"isIdempotent",!0===e.idempotencyToken),o(this,"isJsonValue",!0===e.jsonvalue),o(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),o(this,"isEventStream",Boolean(e.eventstream),!1),o(this,"isEvent",Boolean(e.event),!1),o(this,"isEventPayload",Boolean(e.eventpayload),!1),o(this,"isEventHeader",Boolean(e.eventheader),!1),o(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),o(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),o(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(o(this,"documentation",e.documentation),o(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&o(this,"isXmlAttribute",e.xmlAttribute||!1),o(this,"defaultValue",null),this.toWireFormat=function(e){return null==e?"":e},this.toType=function(e){return e}}function u(e){a.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function c(e,t){var r=this,i=null,c=!this.isShape;u.apply(this,arguments),c&&(o(this,"defaultValue",function(){return{}}),o(this,"members",{}),o(this,"memberNames",[]),o(this,"required",[]),o(this,"isRequired",function(){return!1})),e.members&&(o(this,"members",new n(e.members,t,function(e,r){return a.create(r,t,e)})),s(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)}),e.event&&(s(this,"eventPayloadMemberName",function(){for(var e=r.members,t=r.memberNames,n=0,i=t.length;n<i;n++)if(e[t[n]].isEventPayload)return t[n]}),s(this,"eventHeaderMemberNames",function(){for(var e=r.members,t=r.memberNames,n=[],i=0,o=t.length;i<o;i++)e[t[i]].isEventHeader&&n.push(t[i]);return n}))),e.required&&(o(this,"required",e.required),o(this,"isRequired",function(t){if(!i){i={};for(var r=0;r<e.required.length;r++)i[e.required[r]]=!0}return i[t]},!1,!0)),o(this,"resultWrapper",e.resultWrapper||null),e.payload&&o(this,"payload",e.payload),"string"==typeof e.xmlNamespace?o(this,"xmlNamespaceUri",e.xmlNamespace):"object"==typeof e.xmlNamespace&&(o(this,"xmlNamespacePrefix",e.xmlNamespace.prefix),o(this,"xmlNamespaceUri",e.xmlNamespace.uri))}function l(e,t){var r=this,n=!this.isShape;if(u.apply(this,arguments),n&&o(this,"defaultValue",function(){return[]}),e.member&&s(this,"member",function(){return a.create(e.member,t)}),this.flattened){var i=this.name;s(this,"name",function(){return r.member.name||i})}}function f(e,t){var r=!this.isShape;u.apply(this,arguments),r&&(o(this,"defaultValue",function(){return{}}),o(this,"key",a.create({type:"string"},t)),o(this,"value",a.create({type:"string"},t))),e.key&&s(this,"key",function(){return a.create(e.key,t)}),e.value&&s(this,"value",function(){return a.create(e.value,t)})}function p(){a.apply(this,arguments);var e=["rest-xml","query","ec2"];this.toType=function(t){return t=this.api&&e.indexOf(this.api.protocol)>-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function h(){a.apply(this,arguments),this.toType=function(e){var t=i.base64.decode(e);if(this.isSensitive&&i.isNode()&&"function"==typeof i.Buffer.alloc){var r=i.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=i.base64.encode}function d(){h.apply(this,arguments)}function y(){a.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null==e?null:"true"===e}}a.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},a.types={structure:c,list:l,map:f,boolean:y,timestamp:function(e){var t=this;if(a.apply(this,arguments),e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)o(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)o(this,"timestampFormat","rfc822");else if("querystring"===this.location)o(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null==e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){a.apply(this,arguments),this.toType=function(e){return null==e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){a.apply(this,arguments),this.toType=function(e){return null==e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:p,base64:d,binary:h},a.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},a.create=function(e,t,r){if(e.isShape)return e;var n=a.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){n.constructor.call(this,e,t,r)};return o.prototype=n,new o}e.type||(e.type=e.members?"structure":e.member?"list":e.key?"map":"string");var s=e.type;if(a.normalizedTypes[e.type]&&(e.type=a.normalizedTypes[e.type]),a.types[e.type])return new a.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+s)},a.shapes={StructureShape:c,ListShape:l,MapShape:f,StringShape:p,BooleanShape:y,Base64Shape:d},e.exports=a},iha9:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=r("5emR").rootLogger.extend("retry"),u=function(e){function t(t){var r=e.call(this,t)||this;return r.nonRetryable=!0,r}return i(t,e),t}(Error);function c(e,t,r,n){return void 0===n&&(n=1),o(this,void 0,void 0,function(){var i,o;return s(this,function(s){switch(s.label){case 0:a("Attempt #"+n+" for this vars: "+JSON.stringify(t)),s.label=1;case 1:return s.trys.push([1,3,,8]),[4,e.apply(void 0,t)];case 2:return s.sent(),[3,8];case 3:if(i=s.sent(),a("error "+i),(u=i)&&u.nonRetryable)throw a("non retryable error"),i;return o=r(n,t,i),a("retryIn ",o),!1===o?[3,6]:[4,new Promise(function(e){return setTimeout(e,o)})];case 4:return s.sent(),[4,c(e,t,r,n+1)];case 5:return[2,s.sent()];case 6:throw i;case 7:return[3,8];case 8:return[2]}var u})})}t.NonRetryableError=u,t.retry=c,t.jitteredExponentialRetry=function(e,t,r){return void 0===r&&(r=5e3),c(e,t,function(e){return function(t){var r=100*Math.pow(2,t)+100*Math.random();return!(r>e)&&r}}(r))}},iyfc:function(e,t,r){"use strict";r.d(t,"a",function(){return p});var n,i=r("7yOe"),o=r("RpwU"),s=r("nv8m"),a=r.n(s),u=r("geoG");function c(e,t){return t?t(e):a.a.of()}function l(e){return"function"==typeof e?new p(e):e}function f(e){return e.request.length<=1}n=Error,Object(i.c)(function(e,t){var r=n.call(this,e)||this;return r.link=t,r},n);var p=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return a.a.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=l(r),o=l(n||new e(c));return f(i)&&f(o)?new e(function(e){return t(e)?i.request(e)||a.a.of():o.request(e)||a.a.of()}):new e(function(e,r){return t(e)?i.request(e,r)||a.a.of():o.request(e,r)||a.a.of()})},e.execute=function(e,t){return e.request(function(e,t){var r=Object(i.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?Object(i.a)(Object(i.a)({},r),e(r)):Object(i.a)(Object(i.a)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(i.a)({},r)}}),t}(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(u.g)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++)if(t.indexOf(n[r])<0)throw new o.a(26);return e}(t))))||a.a.of()},e.concat=function(t,r){var n=l(t);if(f(n))return n;var i=l(r);return f(i)?new e(function(e){return n.request(e,function(e){return i.request(e)||a.a.of()})||a.a.of()}):new e(function(e,t){return n.request(e,function(e){return i.request(e,t)||a.a.of()})||a.a.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(c)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw new o.a(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},j7fh:function(e,t,r){var n=r("dH5K"),i=r("KpGD"),o=r("P0Pz"),s=n.util.inherit,a=0;n.Service=s({constructor:function(e){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");var t=this.loadServiceClass(e||{});if(t){var r=n.util.copy(e),i=new t(e);return Object.defineProperty(i,"_originalConfig",{get:function(){return r},enumerable:!1,configurable:!0}),i._clientId=++a,i}this.initialize(e)},initialize:function(e){var t=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||o.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),n.SequentialExecutor.call(this),n.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||n.Service._clientSideMonitoring)&&this.publisher){var r=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(e){process.nextTick(function(){r.eventHandler(e)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(e){process.nextTick(function(){r.eventHandler(e)})})}},validateService:function(){},loadServiceClass:function(e){var t=e;if(n.util.isEmpty(this.api)){if(t.apiConfig)return n.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){(t=new n.Config(n.config)).update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(r=r||t.apiVersion)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&n.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?n.util.isType(e,Date)&&(e=n.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,i=t.length-1;i>=0;i--)if("*"!==t[i][t[i].length-1]&&(r=t[i]),t[i].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var i=this.api.operations[e];i&&(t=n.util.copy(t),n.util.each(this.config.params,function(e,r){i.input.members[e]&&null==t[e]&&(t[e]=r)}))}var o=new n.Request(this,e,t);return this.addAllRequestListeners(o),this.attachMonitoringEmitter(o),r&&o.send(r),o},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var n=this.makeRequest(e,t).toUnauthenticated();return r?n.send(r):n},waitFor:function(e,t,r){return new n.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],r=0;r<t.length;r++)t[r]&&e.addListeners(t[r]);this.config.paramValidation||e.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(n.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCall",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},n=e.response;if(n.httpResponse.statusCode&&(r.FinalHttpStatusCode=n.httpResponse.statusCode),n.error){var i=n.error;n.httpResponse.statusCode>299?(i.code&&(r.FinalAwsException=i.code),i.message&&(r.FinalAwsExceptionMessage=i.message)):((i.code||i.name)&&(r.FinalSdkException=i.code||i.name),i.message&&(r.FinalSdkExceptionMessage=i.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},n=e.response;return n.httpResponse.statusCode&&(r.HttpStatusCode=n.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),n.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),n.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=n.httpResponse.headers["x-amzn-requestid"]),n.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=n.httpResponse.headers["x-amz-request-id"]),n.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=n.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,n=r.error;return r.httpResponse.statusCode>299?(n.code&&(t.AwsException=n.code),n.message&&(t.AwsExceptionMessage=n.message)):((n.code||n.name)&&(t.SdkException=n.code||n.name),n.message&&(t.SdkExceptionMessage=n.message)),t},attachMonitoringEmitter:function(e){var t,r,i,o,s,a,u=0,c=this;e.on("validate",function(){o=n.util.realClock.now(),a=Date.now()},!0),e.on("sign",function(){r=n.util.realClock.now(),t=Date.now(),s=e.httpRequest.region,u++},!0),e.on("validateResponse",function(){i=Math.round(n.util.realClock.now()-r)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var r=c.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=i>=0?i:0,r.Region=s,c.emit("apiCallAttempt",[r])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var o=c.attemptFailEvent(e);o.Timestamp=t,i=i||Math.round(n.util.realClock.now()-r),o.AttemptLatency=i>=0?i:0,o.Region=s,c.emit("apiCallAttempt",[o])}),e.addNamedListener("API_CALL","complete",function(){var t=c.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=a;var r=Math.round(n.util.realClock.now()-o);t.Latency=r>=0?r:0;var i=e.response;i.error&&i.error.retryable&&"number"==typeof i.retryCount&&"number"==typeof i.maxRetries&&i.retryCount>=i.maxRetries&&(t.MaxRetriesExceeded=1),c.emit("apiCall",[t])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var t=null,r="";return e&&(r=(t=(e.service.api.operations||{})[e.operation]||null)?t.authtype:""),n.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===r||"v4-unsigned-body"===r?"v4":this.api.signatureVersion)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest-json":return n.EventListeners.RestJson;case"rest-xml":return n.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return n.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!this.timeoutError(e)||!!this.networkingError(e)||!!this.expiredCredentialsError(e)||!!this.throttledError(e)||e.statusCode>=500},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;return e.replace(/\{service\}/g,this.api.endpointPrefix).replace(/\{region\}/g,this.config.region).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new n.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var i=new Error;throw n.util.error(i,"No pagination configuration for "+e)}return null}return r}}),n.util.update(n.Service,{defineMethods:function(e){n.util.each(e.prototype.api.operations,function(t){e.prototype[t]||(e.prototype[t]="none"===e.prototype.api.operations[t].authtype?function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:function(e,r){return this.makeRequest(t,e,r)})})},defineService:function(e,t,r){n.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var i=s(n.Service,r||{});if("string"==typeof e?(n.Service.addVersions(i,t),i.serviceIdentifier=i.serviceIdentifier||e):(i.prototype.api=e,n.Service.defineMethods(i)),n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var o=n.util.clientSideMonitoring.Publisher,a=(0,n.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new o(a),a.enabled&&(n.Service._clientSideMonitoring=!0)}return n.SequentialExecutor.call(i.prototype),n.Service.addDefaultMonitoringListeners(i.prototype),i},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r<t.length;r++)void 0===e.services[t[r]]&&(e.services[t[r]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,t,r){var o=s(e,{serviceIdentifier:e.serviceIdentifier});function a(t){o.prototype.api=t.isApi?t:new i(t,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof t){if(r)a(r);else try{a(n.apiLoader(e.serviceIdentifier,t))}catch(u){throw n.util.error(u,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+t})}Object.prototype.hasOwnProperty.call(e.services,t)||(e.apiVersions=e.apiVersions.concat(t).sort()),e.services[t]=o}else a(t);return n.Service.defineMethods(o),o},hasService:function(e){return Object.prototype.hasOwnProperty.call(n.Service._serviceMap,e)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCallAttempt",[t])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCall",[t])})},_serviceMap:{}}),n.util.mixin(n.Service,n.SequentialExecutor),e.exports=n.Service},jjvw:function(e,t,r){"use strict";function n(e){return Array.isArray(e)&&e.length>0}r.d(t,"a",function(){return n})},jml2:function(e,t,r){var n=r("Aouz").parseMessage;e.exports={parseEvent:function(e,t,r){var i=n(t),o=i.headers[":message-type"];if(o){if("error"===o.value)throw function(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],n=new Error(r.value||r);return n.code=n.name=t.value||t,n}(i);if("event"!==o.value)return}var s=i.headers[":event-type"],a=r.members[s.value];if(a){var u={},c=a.eventPayloadMemberName;if(c){var l=a.members[c];u[c]="binary"===l.type?i.body:e.parse(i.body.toString(),l)}for(var f=a.eventHeaderMemberNames,p=0;p<f.length;p++){var h=f[p];i.headers[h]&&(u[h]=a.members[h].toType(i.headers[h].value))}var d={};return d[s.value]=u,d}}}},kArZ:function(e,t,r){"use strict";var n=r("+LXc"),i=r("VCfo"),o=r("zeQg"),s=r("sVG9");function a(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=a(Object.prototype.toString),f=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(u)var d=a(BigInt.prototype.valueOf);if(c)var y=a(Symbol.prototype.valueOf);function v(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(r){return!1}}function m(e){return"[object Map]"===l(e)}function g(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function S(e){return"[object ArrayBuffer]"===l(e)}function O(e){return"undefined"!=typeof ArrayBuffer&&(S.working?S(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===l(e)}function _(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||_(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},S.working="undefined"!=typeof ArrayBuffer&&S(new ArrayBuffer),t.isArrayBuffer=O,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=_;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function k(e){return"[object SharedArrayBuffer]"===l(e)}function R(e){return void 0!==A&&(void 0===k.working&&(k.working=k(new A)),k.working?k(e):e instanceof A)}function C(e){return v(e,f)}function T(e){return v(e,p)}function x(e){return v(e,h)}function I(e){return u&&v(e,d)}function j(e){return c&&v(e,y)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=C,t.isStringObject=T,t.isBooleanObject=x,t.isBigIntObject=I,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return C(e)||T(e)||x(e)||I(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(O(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},kVOx:function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r.d(t,"a",function(){return n})},kclq:function(e,t,r){var n=r("hZOY"),i=r("WRfo");e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||n)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},kvld:function(e,t,r){var n=r("uZW4");function i(){}function o(e,t){if(t&&null!=e)switch(t.type){case"structure":return function(e,t){var r={};return n.each(e,function(e,n){var i=t.members[e];if(i){if("body"!==i.location)return;var s=i.isLocationName?i.name:e,a=o(n,i);void 0!==a&&(r[s]=a)}}),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,function(e,n){var i=o(n,t.value);void 0!==i&&(r[e]=i)}),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0!==n&&r.push(n)}),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},"lLK+":function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"a",function(){return s});var n=r("7yOe"),i=r("jjvw");function o(e){return e.hasOwnProperty("graphQLErrors")}var s=function(e){function t(r){var n,o,s=r.graphQLErrors,a=r.networkError,u=r.errorMessage,c=r.extraInfo,l=e.call(this,u)||this;return l.graphQLErrors=s||[],l.networkError=a||null,l.message=u||(n=l,o="",Object(i.a)(n.graphQLErrors)&&n.graphQLErrors.forEach(function(e){o+=(e?e.message:"Error message not found.")+"\n"}),n.networkError&&(o+=n.networkError.message+"\n"),o=o.replace(/\n$/,"")),l.extraInfo=c,l.__proto__=t.prototype,l}return Object(n.c)(t,e),t}(Error)},laIR:function(e,t,r){var n=r("dH5K"),i=r("XFfB");n.Signers.V4=(0,n.util.inherit)(n.Signers.RequestSigner,{constructor:function(e,t,r){n.Signers.RequestSigner.call(this,e),this.serviceName=t,this.signatureCache="boolean"!=typeof(r=r||{}).signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=n.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),i={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers["presigned-expires"],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(i["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(i["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(i["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(i["Cache-Control"]=this.request.headers["Cache-Control"]),n.util.each.call(this,this.request.headers,function(e,t){if("presigned-expires"!==e&&this.isSignableHeader(e)){var r=e.toLowerCase();0===r.indexOf("x-amz-meta-")?i[r]=t:0===r.indexOf("x-amz-")&&(i[e]=t)}});var o=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=o+n.util.queryParamsToString(i)},authorization:function(e,t){var r=[],n=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+n),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=i.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=n.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];n.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])}),e.sort(function(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1});var t=[];return n.util.arrayEach.call(this,e,function(e){var r=e[0].toLowerCase();if(this.isSignableHeader(r)){var i=e[1];if(null==i||"function"!=typeof i.toString)throw n.util.error(new Error("Header "+r+" contains invalid value"),{code:"InvalidHeader"});t.push(r+":"+this.canonicalHeaderValues(i.toString()))}}),t.join("\n")},canonicalHeaderValues:function(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var e=[];return n.util.each.call(this,this.request.headers,function(t){t=t.toLowerCase(),this.isSignableHeader(t)&&e.push(t)}),e.sort().join(";")},credentialString:function(e){return i.createScope(e.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(e){return n.util.crypto.sha256(e,"hex")},hexEncodedBodyHash:function(){var e=this.request;return this.isPresigned()&&"s3"===this.serviceName&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers["presigned-expires"]}}),e.exports=n.Signers.V4},lmzu:function(e,t,r){var n=r("dH5K"),i=r("wpik"),o=r("30cl").discoverEndpoint;n.EventListeners={Core:{}},n.EventListeners={Core:(new i).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(r){r&&(e.response.error=n.util.error(r,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),t()})}),e("VALIDATE_REGION","validate",function(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);e.service.config.region?t.test(e.service.config.region)||(e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),e("BUILD_IDEMPOTENCY_TOKENS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=t.idempotentMembers;if(r.length){for(var i=n.util.copy(e.params),o=0,s=r.length;o<s;o++)i[r[o]]||(i[r[o]]=n.util.uuid.v4());e.params=i}}}}),e("VALIDATE_PARAMETERS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation].input;new n.ParamValidator(e.service.config.paramValidation).validate(t,e.params)}}),e("COMPUTE_CHECKSUM","afterBuild",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=e.httpRequest.body,i=r&&(n.util.Buffer.isBuffer(r)||"string"==typeof r),o=e.httpRequest.headers;if(t.httpChecksumRequired&&e.service.config.computeChecksums&&i&&e.service.getSignerClass(e)===n.Signers.V4&&!o["Content-MD5"]){var s=n.util.crypto.md5(r,"base64");o["Content-MD5"]=s}}}}),t("COMPUTE_SHA256","afterBuild",function(e,t){if(e.haltHandlersOnError(),e.service.api.operations){var r=e.service.api.operations[e.operation],i=r?r.authtype:"";if(!e.service.api.signatureVersion&&!i&&!e.service.config.signatureVersion)return t();if(e.service.getSignerClass(e)===n.Signers.V4){var o=e.httpRequest.body||"";if(i.indexOf("unsigned-body")>=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();n.util.computeSha256(o,function(r,n){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=n,t())})}else t()}}),e("SET_CONTENT_LENGTH","afterBuild",function(e){var t=function(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}(e),r=n.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var i=n.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=i}catch(o){if(r&&r.isStreaming){if(r.requiresLength)throw o;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw o}throw o}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("RESTART","restart",function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new n.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),t("DISCOVER_ENDPOINT","sign",o,!0),t("SIGN","sign",function(e,t){var r=e.service,n=(e.service.api.operations||{})[e.operation];if(!(r.api.signatureVersion||n&&n.authtype||r.config.signatureVersion))return t();r.config.getCredentials(function(i,o){if(i)return e.response.error=i,t();try{var s=r.getSkewCorrectedDate(),a=new(r.getSignerClass(e))(e.httpRequest,r.getSigningName(e),{signatureCache:r.config.signatureCache,operation:n,signatureVersion:r.api.signatureVersion});a.setServiceClientId(r._clientId),delete e.httpRequest.headers.Authorization,delete e.httpRequest.headers.Date,delete e.httpRequest.headers["X-Amz-Date"],a.addAuthorization(o,s),e.signedAt=s}catch(u){e.response.error=u}t()})}),e("VALIDATE_RESPONSE","validateResponse",function(e){this.service.successfulResponse(e,this)?(e.data={},e.error=null):(e.data=null,e.error=n.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),t("SEND","send",function(e,t){function r(r){e.httpResponse.stream=r;var i=e.request.httpRequest.stream,o=e.request.service,s=o.api.operations[e.request.operation]||{};r.on("headers",function(i,a,u){if(e.request.emit("httpHeaders",[i,a,e,u]),!e.httpResponse.streaming)if(2===n.HttpClient.streamsApiVersion){if(s.hasEventOutput&&o.successfulResponse(e))return e.request.emit("httpDone"),void t();r.on("readable",function(){var t=r.read();null!==t&&e.request.emit("httpData",[t,e])})}else r.on("data",function(t){e.request.emit("httpData",[t,e])})}),r.on("end",function(){if(!i||!i.didCallback){if(2===n.HttpClient.streamsApiVersion&&s.hasEventOutput&&o.successfulResponse(e))return;e.request.emit("httpDone"),t()}})}function i(r){"RequestAbortedError"!==r.code&&(r=n.util.error(r,{code:"TimeoutError"===r.code?r.code:"NetworkingError",region:e.request.httpRequest.region,hostname:e.request.httpRequest.endpoint.hostname,retryable:!0})),e.error=r,e.request.emit("httpError",[e.error,e],function(){t()})}function o(){var t,o=n.HttpClient.getInstance(),s=e.request.service.config.httpOptions||{};try{(t=o.handleRequest(e.request.httpRequest,s,r,i)).on("sendProgress",function(t){e.request.emit("httpUploadProgress",[t,e])}),t.on("receiveProgress",function(t){e.request.emit("httpDownloadProgress",[t,e])})}catch(a){i(a)}}e.httpResponse._abortCallback=t,e.error=null,e.data=null,(e.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(e){e?t(e):o()}):o()}),e("HTTP_HEADERS","httpHeaders",function(e,t,r,i){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=i,r.httpResponse.headers=t,r.httpResponse.body=n.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var o=t.date||t.Date,s=r.request.service;if(o){var a=Date.parse(o);s.config.correctClockSkew&&s.isClockSkewed(a)&&s.applyClockOffset(a)}}),e("HTTP_DATA","httpData",function(e,t){e&&(n.util.isNode()&&(t.httpResponse.numBytes+=e.length,t.request.emit("httpDownloadProgress",[{loaded:t.httpResponse.numBytes,total:t.httpResponse.headers["content-length"]},t])),t.httpResponse.buffers.push(n.util.buffer.toBuffer(e)))}),e("HTTP_DONE","httpDone",function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=n.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))}),e("INVALIDATE_CREDENTIALS","retry",function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}}),e("EXPIRED_SIGNATURE","retry",function(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)}),e("CLOCK_SKEWED","retry",function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)}),e("REDIRECT","retry",function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new n.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)}),e("RETRY_CHECK","retry",function(e){e.error&&(e.error.redirect&&e.redirectCount<e.maxRedirects?e.error.retryDelay=0:e.retryCount<e.maxRetries&&(e.error.retryDelay=this.service.retryDelays(e.retryCount,e.error)||0))}),t("RESET_RETRY_STATE","afterRetry",function(e,t){var r,n=!1;e.error&&(r=e.error.retryDelay||0,e.error.retryable&&e.retryCount<e.maxRetries?(e.retryCount++,n=!0):e.error.redirect&&e.redirectCount<e.maxRedirects&&(e.redirectCount++,n=!0)),n&&r>=0?(e.error=null,setTimeout(t,r)):t()})}),CorePost:(new i).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",n.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",n.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function(e){"NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"==typeof e.errno&&"function"==typeof n.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(n.util.getSystemErrorName(e.errno)>=0)}(e)&&(this.response.error=n.util.error(new Error("Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region."),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e}))})}),Logger:(new i).addNamedListeners(function(e){e("LOG_REQUEST","complete",function(e){var t=e.request,i=t.service.config.logger;if(i){var o=function(){var o=(e.request.service.getSkewCorrectedDate().getTime()-t.startTime.getTime())/1e3,a=!!i.isTTY,u=e.httpResponse.statusCode,c=t.params;t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input&&(c=s(t.service.api.operations[t.operation].input,t.params));var l=r("z1k3").inspect(c,!0,null),f="";return a&&(f+="\x1b[33m"),f+="[AWS "+t.service.serviceIdentifier+" "+u,f+=" "+o.toString()+"s "+e.retryCount+" retries]",a&&(f+="\x1b[0;1m"),f+=" "+n.util.string.lowerFirst(t.operation),f+="("+l+")",a&&(f+="\x1b[0m"),f}();"function"==typeof i.log?i.log(o):"function"==typeof i.write&&i.write(o+"\n")}function s(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var r={};return n.util.each(t,function(t,n){r[t]=Object.prototype.hasOwnProperty.call(e.members,t)?s(e.members[t],n):n}),r;case"list":var i=[];return n.util.arrayEach(t,function(t,r){i.push(s(e.member,t))}),i;case"map":var o={};return n.util.each(t,function(t,r){o[t]=s(e.value,r)}),o;default:return t}}})}),Json:(new i).addNamedListeners(function(e){var t=r("LOhA");e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new i).addNamedListeners(function(e){var t=r("gSlD");e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new i).addNamedListeners(function(e){var t=r("LDC6");e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new i).addNamedListeners(function(e){var t=r("M948");e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new i).addNamedListeners(function(e){var t=r("1xPv");e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})}},lqiz:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("YpG+");t.EndpointCache=function(){function e(e){void 0===e&&(e=1e3),this.maxSize=e,this.cache=new n.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var n="string"!=typeof t?e.getKeyString(t):t,i=this.populateValue(r);this.cache.put(n,i)},e.prototype.get=function(t){var r="string"!=typeof t?e.getKeyString(t):t,n=Date.now(),i=this.cache.get(r);if(i){for(var o=i.length-1;o>=0;o--)i[o].Expire<n&&i.splice(o,1);if(0===i.length)return void this.cache.remove(r)}return i},e.getKeyString=function(e){for(var t=[],r=Object.keys(e).sort(),n=0;n<r.length;n++){var i=r[n];void 0!==e[i]&&t.push(e[i])}return t.join(" ")},e.prototype.populateValue=function(e){var t=Date.now();return e.map(function(e){return{Address:e.Address||"",Expire:t+60*(e.CachePeriodInMinutes||1)*1e3}})},e.prototype.empty=function(){this.cache.empty()},e.prototype.remove=function(t){var r="string"!=typeof t?e.getKeyString(t):t;this.cache.remove(r)},e}()},lzMJ:function(e,t,r){"use strict";t.byteLength=function(e){var t=c(e),r=t[1];return 3*(t[0]+r)/4-r},t.toByteArray=function(e){var t,r,n=c(e),s=n[0],a=n[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(l(e,s,s+16383>a?a:s+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,o=[],s=t;s<r;s+=3)o.push(n[(i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"m/yg":function(e,t,r){var n=r("dH5K");n.Signers.V2=(0,n.util.inherit)(n.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=n.util.date.getDate());var r=this.request;r.params.Timestamp=n.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=n.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(n.util.queryParamsToString(this.request.params)),e.join("\n")}}),e.exports=n.Signers.V2},m2RZ:function(e,t,r){var n=r("dH5K"),i=r("saGk"),o=n.util.inherit,s=n.util.domain,a=r("4ClY"),u={success:1,error:1,complete:1},c=new i;c.setupStates=function(){var e=function(e,t){var r=this;r._haltHandlersOnError=!1,r.emit(r._asm.currentState,function(e){if(e)if(Object.prototype.hasOwnProperty.call(u,r._asm.currentState)){if(!(s&&r.domain instanceof s.Domain))throw e;e.domainEmitter=r,e.domain=r.domain,e.domainThrown=!1,r.domain.emit("error",e)}else r.response.error=e,t(e);else t(r.response.error)})};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)},c.setupStates(),n.Request=o({constructor:function(e,t,r){var o=e.endpoint,a=e.config.region,u=e.config.customUserAgent;e.isGlobalEndpoint&&(a=e.signingRegion?e.signingRegion:"us-east-1"),this.domain=s&&s.active,this.service=e,this.operation=t,this.params=r||{},this.httpRequest=new n.HttpRequest(o,a),this.httpRequest.appendToUserAgent(u),this.startTime=e.getSkewCorrectedDate(),this.response=new n.Response(this),this._asm=new i(c.states,"validate"),this._haltHandlersOnError=!1,n.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(t){e.call(t,t.error,t.data)})),this.runTo(),this.response},build:function(e){return this.runTo("send",e)},runTo:function(e,t){return this._asm.runTo(e,t,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(e){e.error=n.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(e){e=n.util.fn.makeAsync(e,3),this.on("complete",function t(r){e.call(r,r.error,r.data,function(i){!1!==i&&(r.hasNextPage()?r.nextPage().on("complete",t).send():e.call(r,null,null,n.util.fn.noop))})}).send()},eachItem:function(e){var t=this;this.eachPage(function(r,i){if(r)return e(r,null);if(null===i)return e(null,null);var o=t.service.paginationConfig(t.operation).resultKey;Array.isArray(o)&&(o=o[0]);var s=a.search(i,o),u=!0;return n.util.arrayEach(s,function(t){if(!1===(u=e(null,t)))return n.util.abort}),u})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var e=n.util.stream,t=this,r=null;return 2===n.HttpClient.streamsApiVersion?(r=new e.PassThrough,process.nextTick(function(){t.send()})):((r=new e.Stream).readable=!0,r.sent=!1,r.on("newListener",function(e){r.sent||"data"!==e||(r.sent=!0,process.nextTick(function(){t.send()}))})),this.on("error",function(e){r.emit("error",e)}),this.on("httpHeaders",function(i,o,s){if(i<300){t.removeListener("httpData",n.EventListeners.Core.HTTP_DATA),t.removeListener("httpError",n.EventListeners.Core.HTTP_ERROR),t.on("httpError",function(e){s.error=e,s.error.retryable=!1});var a,u=!1;if("HEAD"!==t.httpRequest.method&&(a=parseInt(o["content-length"],10)),void 0!==a&&!isNaN(a)&&a>=0){u=!0;var c=0}var l=function(){u&&c!==a?r.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+c+" of "+a+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?r.end():r.emit("end")},f=s.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(u){var p=new e.PassThrough;p._write=function(t){return t&&t.length&&(c+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},p.on("end",l),r.on("error",function(e){u=!1,f.unpipe(p),p.emit("end"),p.end()}),f.pipe(p).pipe(r,{end:!1})}else f.pipe(r);else u&&f.on("data",function(e){e&&e.length&&(c+=e.length)}),f.on("data",function(e){r.emit("data",e)}),f.on("end",l);f.on("error",function(e){u=!1,r.emit("error",e)})}}),r},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),n.SequentialExecutor.prototype.emit.call(this,e,t,function(e){e&&(this.response.error=e),r.call(this,e)})},eventParameters:function(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(e,t){return t||"function"!=typeof e||(t=e,e=null),(new n.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",n.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",n.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),n.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e(function(e,r){t.on("complete",function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))}),t.runTo()})}},n.Request.deletePromisesFromClass=function(){delete this.prototype.promise},n.util.addPromises(n.Request),n.util.mixin(n.Request,n.SequentialExecutor)},mNHT:function(e,t,r){"use strict";r.d(t,"a",function(){return d}),r.d(t,"d",function(){return v}),r.d(t,"b",function(){return g}),r.d(t,"c",function(){return b});var n=r("7yOe"),i=r("L2ys"),o=(r("RpwU"),r("geoG"));function s(e,t,r){var n=0;return e.forEach(function(r,i){t.call(this,r,i,e)&&(e[n++]=r)},r),e.length=n,e}var a=r("BpTK"),u=r("MxFh"),c={kind:"Field",name:{kind:"Name",value:"__typename"}};function l(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&l(t[e.name.value],t)})}function f(e){return l(Object(o.f)(e)||Object(o.c)(e),Object(u.a)(Object(o.d)(e)))?null:e}function p(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function h(e,t){var r=Object.create(null),o=[],a=Object.create(null),u=[],c=f(Object(i.c)(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(p(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&o.push({name:e.value.name.value})}),t.selectionSet&&m(t.selectionSet).forEach(function(e){u.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){a[e.name.value]=!0}},Directive:{enter:function(t){if(p(e)(t))return null}}}));return c&&s(o,function(e){return!!e.name&&!r[e.name]}).length&&(c=function(e,t){var r=function(e){return function(t){return e.some(function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}(e);return f(Object(i.c)(t,{OperationDefinition:{enter:function(t){return Object(n.a)(Object(n.a)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var n=0;if(t.arguments&&t.arguments.forEach(function(e){r(e)&&(n+=1)}),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}(o,c)),c&&s(u,function(e){return!!e.name&&!a[e.name]}).length&&(c=function(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return f(Object(i.c)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(u,c)),c}function d(e){return Object(i.c)(Object(o.a)(e),{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var i=e.selections;if(i&&!i.some(function(e){return Object(a.d)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var o=r;if(!(Object(a.d)(o)&&o.directives&&o.directives.some(function(e){return"export"===e.name.value})))return Object(n.a)(Object(n.a)({},e),{selections:Object(n.f)(i,[c])})}}}}})}d.added=function(e){return e===c};var y={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some(function(e){return"key"===e.name.value})),t}};function v(e){return h([y],Object(o.a)(e))}function m(e){var t=[];return e.selections.forEach(function(e){(Object(a.d)(e)||Object(a.e)(e))&&e.selectionSet?m(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function g(e){return"query"===Object(o.e)(e).operation?e:Object(i.c)(e,{OperationDefinition:{enter:function(e){return Object(n.a)(Object(n.a)({},e),{operation:"query"})}}})}function b(e){Object(o.a)(e);var t=h([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Object(i.c)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return Object(a.d)(e)&&"__typename"===e.name.value}))return null}}})),t}},mknY:function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r("7yOe"),i=r("iyfc"),o=r("cCRm"),s=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,Object(o.a)(t).request)||this;return r.options=t,r}return Object(n.c)(t,e),t}(i.a)},nS4h:function(e,t,r){"use strict";var n=SyntaxError,i=Function,o=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(R){a=null}var u=function(){throw new o},c=a?function(){try{return u}catch(e){try{return a(arguments,"callee").get}catch(t){return u}}}():u,l=r("4bpB")(),f=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"==typeof Uint8Array?void 0:f(Uint8Array),d={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=f(i.prototype))}return d[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r("FU9T"),g=r("3dfa"),b=m.call(Function.call,Array.prototype.concat),w=m.call(Function.apply,Array.prototype.splice),S=m.call(Function.call,String.prototype.replace),O=m.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,A=function(e){var t=O(e,0,1),r=O(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var i=[];return S(e,E,function(e,t,r,n){i[i.length]=r?S(n,_,"$1"):t||e}),i},k=function(e,t){var r,i=e;if(g(v,i)&&(i="%"+(r=v[i])[0]+"%"),g(d,i)){var s=d[i];if(s===p&&(s=y(i)),void 0===s&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:s}}throw new n("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');var r=A(e),i=r.length>0?r[0]:"",s=k("%"+i+"%",t),u=s.name,c=s.value,l=!1,f=s.alias;f&&(i=f[0],w(r,b([0,1],f)));for(var p=1,h=!0;p<r.length;p+=1){var y=r[p],v=O(y,0,1),m=O(y,-1);if(('"'===v||"'"===v||"`"===v||'"'===m||"'"===m||"`"===m)&&v!==m)throw new n("property names with quotes must have matching quotes");if("constructor"!==y&&h||(l=!0),g(d,u="%"+(i+="."+y)+"%"))c=d[u];else if(null!=c){if(!(y in c)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(a&&p+1>=r.length){var S=a(c,y);c=(h=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:c[y]}else h=g(c,y),c=c[y];h&&!l&&(d[u]=c)}}return c}},nbUR:function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=r("pQBj"),i=r("MxFh"),o=function(){function e(){this.getFragmentDoc=Object(n.c)(i.c)}return e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({query:this.getFragmentDoc(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,returnPartialData:e.returnPartialData,optimistic:t})},e.prototype.writeQuery=function(e){return this.write({dataId:e.id||"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables,broadcast:e.broadcast})},e.prototype.writeFragment=function(e){return this.write({dataId:e.id,result:e.data,variables:e.variables,query:this.getFragmentDoc(e.fragment,e.fragmentName),broadcast:e.broadcast})},e}()},nv8m:function(e,t,r){e.exports=r("buyg").Observable},"o/OA":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("RpwU"),i=function(e){if(!e&&"undefined"==typeof fetch)throw new n.a(22)}},oBpQ:function(e,t,r){var n=r("dH5K");n.Signers.S3=(0,n.util.inherit)(n.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=n.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+e.accessKeyId+":"+r},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];n.util.each(this.request.headers,function(t){t.match(/^x-amz-/i)&&e.push(t)}),e.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var t=[];return n.util.arrayEach.call(this,e,function(e){t.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),t.join("\n")},canonicalizedResource:function(){var e=this.request,t=e.path.split("?"),r=t[1],i="";if(e.virtualHostedBucket&&(i+="/"+e.virtualHostedBucket),i+=t[0],r){var o=[];n.util.arrayEach.call(this,r.split("&"),function(e){var t=e.split("=")[0],r=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var n={name:t};void 0!==r&&(n.value=this.subResources[t]?r:decodeURIComponent(r)),o.push(n)}}),o.sort(function(e,t){return e.name<t.name?-1:1}),o.length&&(r=[],n.util.arrayEach(o,function(e){r.push(void 0===e.value?e.name:e.name+"="+e.value)}),i+="?"+r.join("&"))}return i},sign:function(e,t){return n.util.crypto.hmac(e,t,"base64","sha1")}}),e.exports=n.Signers.S3},oM03:function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return a});var n,i=r("RpwU");!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={}));var o=new Map;function s(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function a(e){var t,r=o.get(e);if(r)return r;Object(i.b)(!!e&&!!e.kind,34);var s=e.definitions.filter(function(e){return"FragmentDefinition"===e.kind}),a=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"query"===e.operation}),u=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}),c=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation});Object(i.b)(!s.length||a.length||u.length||c.length,35),Object(i.b)(a.length+u.length+c.length<=1,36),t=a.length?n.Query:n.Mutation,a.length||u.length||(t=n.Subscription);var l=a.length?a:u.length?u:c;Object(i.b)(1===l.length,37);var f=l[0],p={name:f.name&&"Name"===f.name.kind?f.name.value:"data",type:t,variables:f.variableDefinitions||[]};return o.set(e,p),p}},oZE0:function(e,t,r){"use strict";r.r(t);var n=r("U/sP");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,function(){return n[e]})}(i);var o=r("caAz");for(var i in o)["default"].indexOf(i)<0&&function(e){r.d(t,e,function(){return o[e]})}(i)},"p+jE":function(e,t,r){"use strict";r.d(t,"e",function(){return p}),r.d(t,"c",function(){return h}),r.d(t,"d",function(){return d}),r.d(t,"b",function(){return y});var n=r("7NNw"),i=r("EMzn"),o=new Map,s=new Map,a=!0,u=!1;function c(e){return e.replace(/[\s,]+/g," ").trim()}function l(e){var t,r,l,f=c(e);if(!o.has(f)){var p=Object(i.a)(e,{experimentalFragmentVariables:u});if(!p||"Document"!==p.kind)throw new Error("Not a valid GraphQL document.");o.set(f,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}((t=p,r=new Set,l=[],t.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,n=c((o=e.loc).source.body.substring(o.start,o.end)),i=s.get(t);i&&!i.has(n)?a&&console.warn("Warning: fragment with name "+t+" 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"):i||s.set(t,i=new Set),i.add(n),r.has(n)||(r.add(n),l.push(e))}else l.push(e);var o}),Object(n.a)(Object(n.a)({},t),{definitions:l}))))}return o.get(f)}function f(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){n+=t&&"Document"===t.kind?t.loc.source.body:t,n+=e[r+1]}),l(n)}function p(){o.clear(),s.clear()}function h(){a=!1}function d(){u=!0}function y(){u=!1}var v,m=f,g=p,b=h,w=d,S=y;(v=f||(f={})).gql=m,v.resetCaches=g,v.disableFragmentWarnings=b,v.enableExperimentalFragmentVariables=w,v.disableExperimentalFragmentVariables=S,f.default=f,t.a=f},"p8N+":function(e,t,r){var n=r("uZW4"),i=n.property;e.exports=function(e,t,r){r=r||{},i(this,"name",e),i(this,"api",r.api,!1),t.operation&&i(this,"operation",n.string.lowerFirst(t.operation));var o=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(e){var r=t[e];r&&i(o,e,r)})}},pBqm:function(e,t,r){"use strict";r.d(t,"c",function(){return s}),r.d(t,"a",function(){return a}),r.d(t,"b",function(){return u}),r.d(t,"e",function(){return c}),r.d(t,"f",function(){return l}),r.d(t,"d",function(){return f});var n=r("BpTK"),i=r("OG69"),o=r("TxYc"),s=Object.prototype.hasOwnProperty,a=/^[_a-z][_0-9a-z]*/i;function u(e){var t=e.match(a);return t?t[0]:e}function c(e,t,r){return!(!t||"object"!=typeof t)&&(Array.isArray(t)?t.every(function(t){return c(e,t,r)}):e.selections.every(function(e){if(Object(n.d)(e)&&Object(i.c)(e,r)){var o=Object(n.h)(e);return s.call(t,o)&&(!e.selectionSet||c(e.selectionSet,t[o],r))}return!0}))}function l(e){return null!==e&&"object"==typeof e&&!Object(n.f)(e)&&!Array.isArray(e)}function f(){return new o.a}},pQBj:function(e,t,r){"use strict";r.d(t,"a",function(){return a}),r.d(t,"b",function(){return j}),r.d(t,"c",function(){return M});var n=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,s=i.slice,a=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=n),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return o.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(s.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}(),u=r("ON24");function c(){}var l,f=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=c),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),p=new u.a,h=Object.prototype.hasOwnProperty,d=void 0===(l=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:l;function y(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var v=[];function m(e,t){if(!e)throw new Error(t||"assertion failure")}function g(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var b=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!O(this))return w(this),this.value[0]},e.prototype.recompute=function(e){return m(!this.recomputing,"already recomputing"),w(this),O(this)?function(e,t){return T(e),p.withValue(e,S,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{y(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(r){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,O(e)||_(e)}(e),g(e.value)}(this,e):g(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,E(this),y(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),T(this),A(this,function(t,r){t.setDirty(),x(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=v.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(d(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),v.push(this.deps),this.deps=null)},e.count=0,e}();function w(e){var t=p.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),O(e)?k(t,e):R(t,e),t}function S(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(r){e.value[1]=r}e.recomputing=!1}function O(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function E(e){A(e,k)}function _(e){A(e,R)}function A(e,t){var r=e.parents.size;if(r)for(var n=d(e.parents),i=0;i<r;++i)t(n[i],e)}function k(e,t){m(e.childValues.has(t)),m(O(t));var r=!O(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=v.pop()||new Set;e.dirtyChildren.add(t),r&&E(e)}function R(e,t){m(e.childValues.has(t)),m(!O(t));var r,n,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(n=t.value,(i=(r=o).length)>0&&i===n.length&&r[i-1]===n[i-1]||e.setDirty()),C(e,t),O(e)||_(e)}function C(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(v.length<100&&v.push(r),e.dirtyChildren=null))}function T(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){x(e,r)}),e.forgetDeps(),m(null===e.dirtyChildren)}function x(e,t){t.parents.delete(e),e.childValues.delete(t),C(e,t)}var I={setDirty:!0,dispose:!0,forget:!0};function j(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=p.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(y(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&h.call(I,r)?r:"setDirty";d(n).forEach(function(e){return e[i]()}),t.delete(e),y(n)}},n}function P(){var e=new a("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}P();var N=new Set;function M(e,t){void 0===t&&(t=Object.create(null));var r=new f(t.max||Math.pow(2,16),function(e){return e.dispose()}),n=t.keyArgs,i=t.makeCacheKey||P(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var s=r.get(o);s||(r.set(o,s=new b(e)),s.subscribe=t.subscribe,s.forget=function(){return r.delete(o)});var a=s.recompute(Array.prototype.slice.call(arguments));return r.set(o,s),N.add(r),p.hasValue()||(N.forEach(function(e){return e.clean()}),N.clear()),a};function s(e){var t=r.get(e);t&&t.setDirty()}function a(e){var t=r.get(e);if(t)return t.peek()}function u(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=s,o.dirty=function(){s(i.apply(null,arguments))},o.peekKey=a,o.peek=function(){return a(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}},"psk+":function(e,t,r){var n,i,o=r("hZOY"),s=r("WRfo"),a=0,u=0;e.exports=function(e,t,r){var c=t&&r||0,l=t||[],f=(e=e||{}).node||n,p=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==p){var h=o();null==f&&(f=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var d=void 0!==e.msecs?e.msecs:(new Date).getTime(),y=void 0!==e.nsecs?e.nsecs:u+1,v=d-a+(y-u)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||d>a)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=d,u=y,i=p;var m=(1e4*(268435455&(d+=122192928e5))+y)%4294967296;l[c++]=m>>>24&255,l[c++]=m>>>16&255,l[c++]=m>>>8&255,l[c++]=255&m;var g=d/4294967296*1e4&268435455;l[c++]=g>>>8&255,l[c++]=255&g,l[c++]=g>>>24&15|16,l[c++]=g>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=f[b];return t||s(l)}},pxbP:function(e,t,r){var n=r("dH5K");n.Signers.RequestSigner=(0,n.util.inherit)({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),n.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return n.Signers.V2;case"v3":return n.Signers.V3;case"s3v4":case"v4":return n.Signers.V4;case"s3":return n.Signers.S3;case"v3https":return n.Signers.V3Https}throw new Error("Unknown signing version "+e)},r("m/yg"),r("Rj3l"),r("KoSE"),r("laIR"),r("oBpQ"),r("9u62")},qWVU:function(e,t,r){"use strict";var n="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError(n+t);for(var r,s=i.call(arguments,1),a=function(){if(this instanceof r){var n=t.apply(this,s.concat(i.call(arguments)));return Object(n)===n?n:this}return t.apply(e,s.concat(i.call(arguments)))},u=Math.max(0,t.length-s.length),c=[],l=0;l<u;l++)c.push("$"+l);if(r=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var f=function(){};f.prototype=t.prototype,r.prototype=new f,f.prototype=null}return r}},rWcP:function(e,t){e.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},sVG9:function(e,t,r){"use strict";var n=r("LvZT"),i=r("g7Xj"),o=r("1Old"),s=o("Object.prototype.toString"),a=r("4bpB")()&&"symbol"==typeof Symbol.toStringTag,u=i(),c=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},l=o("String.prototype.slice"),f={},p=r("HB9N"),h=Object.getPrototypeOf;a&&p&&h&&n(u,function(e){var t=new global[e];if(!(Symbol.toStringTag in t))throw new EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=h(t),n=p(r,Symbol.toStringTag);if(!n){var i=h(r);n=p(i,Symbol.toStringTag)}f[e]=n.get}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!a){var t=l(s(e),8,-1);return c(u,t)>-1}return!!p&&function(e){var t=!1;return n(f,function(r,n){if(!t)try{t=r.call(e)===n}catch(i){}}),t}(e)}},saGk:function(e,t){function r(e,t){this.currentState=t||null,this.states=e||{}}r.prototype.runTo=function(e,t,r,n){"function"==typeof e&&(n=r,r=t,t=e,e=null);var i=this,o=i.states[i.currentState];o.fn.call(r||i,n,function(n){if(n){if(!o.fail)return t?t.call(r,n):null;i.currentState=o.fail}else{if(!o.accept)return t?t.call(r):null;i.currentState=o.accept}if(i.currentState===e)return t?t.call(r,n):null;i.runTo(e,t,r,n)})},r.prototype.addState=function(e,t,r,n){return"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:n},this},e.exports=r},sazJ:function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,i){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(i){var o=encodeURIComponent(n(i))+r;return Array.isArray(e[i])?e[i].map(function(e){return o+encodeURIComponent(n(e))}).join(t):o+encodeURIComponent(n(e[i]))}).join(t):i?encodeURIComponent(n(i))+r+encodeURIComponent(n(e)):""}},sfbN:function(e,t,r){var n=r("uZW4");n.crypto.lib=r("VV/y"),n.Buffer=r("zU8g").Buffer,n.url=r("fIPs"),n.querystring=r("0ORH"),n.realClock=r("rWcP"),n.environment="js",n.createEventStream=r("NZjt").createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var i=r("dH5K");if(e.exports=i,r("gDch"),r("hfgg"),r("yzB7"),r("FqpE"),r("gBoe"),r("M8/R"),r("grsC"),i.XML.Parser=r("/4yE"),r("hAFg"),void 0===o)var o={browser:!0}},u3tj:function(e,t,r){var n;e.exports=n=function(e){var t,r=e.localStorage||(t={},{setItem:function(e,r){t[e]=r},getItem:function(e){return t[e]},removeItem:function(e){delete t[e]}}),i=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)){var n="Unknown property, "+r+". Valid properties are:";for(var i in t)t.hasOwnProperty(i)&&(n=n+" "+i);throw new Error(n)}if(typeof e[r]!==t[r])throw new Error(u(s.INVALID_TYPE,[typeof e[r],r]))}},o=function(e,t){return function(){return e.apply(t,arguments)}},s={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"},CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."},UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."},BUFFER_FULL:{code:18,text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}},a={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},u=function(e,t){var r=e.text;if(t)for(var n,i,o=0;o<t.length;o++)if((i=r.indexOf(n="{"+o+"}"))>0){var s=r.substring(0,i),a=r.substring(i+n.length);r=s+t[o]+a}return r},c=[0,6,77,81,73,115,100,112,3],l=[0,4,77,81,84,84,4],f=function(e,t){for(var r in this.type=e,t)t.hasOwnProperty(r)&&(this[r]=t[r])};function p(e,t){var r,i=t,o=e[t],s=o>>4,a=o&=15;t+=1;var u=0,c=1;do{if(t==e.length)return[null,i];u+=(127&(r=e[t++]))*c,c*=128}while(0!=(128&r));var l=t+u;if(l>e.length)return[null,i];var p=new f(s);switch(s){case 2:1&e[t++]&&(p.sessionPresent=!0),p.returnCode=e[t++];break;case 3:var h=a>>1&3,d=y(e,t),v=g(e,t+=2,d);t+=d,h>0&&(p.messageIdentifier=y(e,t),t+=2);var m=new n.Message(e.subarray(t,l));1==(1&a)&&(m.retained=!0),8==(8&a)&&(m.duplicate=!0),m.qos=h,m.destinationName=v,p.payloadMessage=m;break;case 4:case 5:case 6:case 7:case 11:p.messageIdentifier=y(e,t);break;case 9:p.messageIdentifier=y(e,t),p.returnCode=e.subarray(t+=2,l)}return[p,l]}function h(e,t,r){return t[r++]=e>>8,t[r++]=e%256,r}function d(e,t,r,n){return m(e,r,n=h(t,r,n)),n+t}function y(e,t){return 256*e[t]+e[t+1]}function v(e){for(var t=0,r=0;r<e.length;r++){var n=e.charCodeAt(r);n>2047?(55296<=n&&n<=56319&&(r++,t++),t+=3):n>127?t+=2:t++}return t}function m(e,t,r){for(var n=r,i=0;i<e.length;i++){var o=e.charCodeAt(i);if(55296<=o&&o<=56319){var a=e.charCodeAt(++i);if(isNaN(a))throw new Error(u(s.MALFORMED_UNICODE,[o,a]));o=a-56320+(o-55296<<10)+65536}o<=127?t[n++]=o:o<=2047?(t[n++]=o>>6&31|192,t[n++]=63&o|128):o<=65535?(t[n++]=o>>12&15|224,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>18&7|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t}function g(e,t,r){for(var n,i="",o=t;o<t+r;){var a=e[o++];if(a<128)n=a;else{var c=e[o++]-128;if(c<0)throw new Error(u(s.MALFORMED_UTF,[a.toString(16),c.toString(16),""]));if(a<224)n=64*(a-192)+c;else{var l=e[o++]-128;if(l<0)throw new Error(u(s.MALFORMED_UTF,[a.toString(16),c.toString(16),l.toString(16)]));if(a<240)n=4096*(a-224)+64*c+l;else{var f=e[o++]-128;if(f<0)throw new Error(u(s.MALFORMED_UTF,[a.toString(16),c.toString(16),l.toString(16),f.toString(16)]));if(!(a<248))throw new Error(u(s.MALFORMED_UTF,[a.toString(16),c.toString(16),l.toString(16),f.toString(16)]));n=262144*(a-240)+4096*c+64*l+f}}}n>65535&&(n-=65536,i+=String.fromCharCode(55296+(n>>10)),n=56320+(1023&n)),i+=String.fromCharCode(n)}return i}f.prototype.encode=function(){var e,t=(15&this.type)<<4,r=0,n=[],i=0;switch(void 0!==this.messageIdentifier&&(r+=2),this.type){case 1:switch(this.mqttVersion){case 3:r+=c.length+3;break;case 4:r+=l.length+3}r+=v(this.clientId)+2,void 0!==this.willMessage&&(r+=v(this.willMessage.destinationName)+2,(e=this.willMessage.payloadBytes)instanceof Uint8Array||(e=new Uint8Array(s)),r+=e.byteLength+2),void 0!==this.userName&&(r+=v(this.userName)+2),void 0!==this.password&&(r+=v(this.password)+2);break;case 8:t|=2;for(var o=0;o<this.topics.length;o++)n[o]=v(this.topics[o]),r+=n[o]+2;r+=this.requestedQos.length;break;case 10:for(t|=2,o=0;o<this.topics.length;o++)n[o]=v(this.topics[o]),r+=n[o]+2;break;case 6:t|=2;break;case 3:this.payloadMessage.duplicate&&(t|=8),t=t|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(t|=1),r+=(i=v(this.payloadMessage.destinationName))+2;var s=this.payloadMessage.payloadBytes;r+=s.byteLength,s instanceof ArrayBuffer?s=new Uint8Array(s):s instanceof Uint8Array||(s=new Uint8Array(s.buffer))}var a=function(e){var t=new Array(1),r=0;do{var n=e%128;(e>>=7)>0&&(n|=128),t[r++]=n}while(e>0&&r<4);return t}(r),u=a.length+1,f=new ArrayBuffer(r+u),p=new Uint8Array(f);if(p[0]=t,p.set(a,1),3==this.type)u=d(this.payloadMessage.destinationName,i,p,u);else if(1==this.type){switch(this.mqttVersion){case 3:p.set(c,u),u+=c.length;break;case 4:p.set(l,u),u+=l.length}var y=0;this.cleanSession&&(y=2),void 0!==this.willMessage&&(y|=4,y|=this.willMessage.qos<<3,this.willMessage.retained&&(y|=32)),void 0!==this.userName&&(y|=128),void 0!==this.password&&(y|=64),p[u++]=y,u=h(this.keepAliveInterval,p,u)}switch(void 0!==this.messageIdentifier&&(u=h(this.messageIdentifier,p,u)),this.type){case 1:u=d(this.clientId,v(this.clientId),p,u),void 0!==this.willMessage&&(u=d(this.willMessage.destinationName,v(this.willMessage.destinationName),p,u),u=h(e.byteLength,p,u),p.set(e,u),u+=e.byteLength),void 0!==this.userName&&(u=d(this.userName,v(this.userName),p,u)),void 0!==this.password&&(u=d(this.password,v(this.password),p,u));break;case 3:p.set(s,u);break;case 8:for(o=0;o<this.topics.length;o++)u=d(this.topics[o],n[o],p,u),p[u++]=this.requestedQos[o];break;case 10:for(o=0;o<this.topics.length;o++)u=d(this.topics[o],n[o],p,u)}return f};var b=function(e,t){this._client=e,this._keepAliveInterval=1e3*t,this.isReset=!1;var r=new f(12).encode(),n=function(e){return function(){return i.apply(e)}},i=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(r),this.timeout=setTimeout(n(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(s.PING_TIMEOUT.code,u(s.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(n(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},w=function(e,t,r,n){t||(t=30),this.timeout=setTimeout(function(e,t,r){return function(){return e.apply(t,r)}}(r,e,n),1e3*t),this.cancel=function(){clearTimeout(this.timeout)}},S=function(t,n,i,o,a){if(!("WebSocket"in e)||null===e.WebSocket)throw new Error(u(s.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in e)||null===e.ArrayBuffer)throw new Error(u(s.UNSUPPORTED,["ArrayBuffer"]));for(var c in this._trace("Paho.Client",t,n,i,o,a),this.host=n,this.port=i,this.path=o,this.uri=t,this.clientId=a,this._wsuri=null,this._localKey=n+":"+i+("/mqtt"!=o?":"+o:"")+":"+a+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,r)0!==c.indexOf("Sent:"+this._localKey)&&0!==c.indexOf("Received:"+this._localKey)||this.restore(c)};S.prototype.host=null,S.prototype.port=null,S.prototype.path=null,S.prototype.uri=null,S.prototype.clientId=null,S.prototype.socket=null,S.prototype.connected=!1,S.prototype.maxMessageIdentifier=65536,S.prototype.connectOptions=null,S.prototype.hostIndex=null,S.prototype.onConnected=null,S.prototype.onConnectionLost=null,S.prototype.onMessageDelivered=null,S.prototype.onMessageArrived=null,S.prototype.traceFunction=null,S.prototype._msg_queue=null,S.prototype._buffered_msg_queue=null,S.prototype._connectTimeout=null,S.prototype.sendPinger=null,S.prototype.receivePinger=null,S.prototype._reconnectInterval=1,S.prototype._reconnecting=!1,S.prototype._reconnectTimeout=null,S.prototype.disconnectedPublishing=!1,S.prototype.disconnectedBufferSize=5e3,S.prototype.receiveBuffer=null,S.prototype._traceBuffer=null,S.prototype._MAX_TRACE_ENTRIES=100,S.prototype.connect=function(e){var t=this._traceMask(e,"password");if(this._trace("Client.connect",t,this.socket,this.connected),this.connected)throw new Error(u(s.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(u(s.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=e,this._reconnectInterval=1,this._reconnecting=!1,e.uris?(this.hostIndex=0,this._doConnect(e.uris[0])):this._doConnect(this.uri)},S.prototype.subscribe=function(e,t){if(this._trace("Client.subscribe",e,t),!this.connected)throw new Error(u(s.INVALID_STATE,["not connected"]));var r=new f(8);r.topics=[e],r.requestedQos=void 0!==t.qos?[t.qos]:[0],t.onSuccess&&(r.onSuccess=function(e){t.onSuccess({invocationContext:t.invocationContext,grantedQos:e})}),t.onFailure&&(r.onFailure=function(e){t.onFailure({invocationContext:t.invocationContext,errorCode:e,errorMessage:u(e)})}),t.timeout&&(r.timeOut=new w(this,t.timeout,t.onFailure,[{invocationContext:t.invocationContext,errorCode:s.SUBSCRIBE_TIMEOUT.code,errorMessage:u(s.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(r),this._schedule_message(r)},S.prototype.unsubscribe=function(e,t){if(this._trace("Client.unsubscribe",e,t),!this.connected)throw new Error(u(s.INVALID_STATE,["not connected"]));var r=new f(10);r.topics=[e],t.onSuccess&&(r.callback=function(){t.onSuccess({invocationContext:t.invocationContext})}),t.timeout&&(r.timeOut=new w(this,t.timeout,t.onFailure,[{invocationContext:t.invocationContext,errorCode:s.UNSUBSCRIBE_TIMEOUT.code,errorMessage:u(s.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(r),this._schedule_message(r)},S.prototype.send=function(e){this._trace("Client.send",e);var t=new f(3);if(t.payloadMessage=e,this.connected)e.qos>0?this._requires_ack(t):this.onMessageDelivered&&(this._notify_msg_sent[t]=this.onMessageDelivered(t.payloadMessage)),this._schedule_message(t);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(u(s.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(u(s.BUFFER_FULL,[this.disconnectedBufferSize]));e.qos>0?this._requires_ack(t):(t.sequence=++this._sequence,this._buffered_msg_queue.unshift(t))}},S.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(u(s.INVALID_STATE,["not connecting or connected"]));var e=new f(14);this._notify_msg_sent[e]=o(this._disconnected,this),this._schedule_message(e)},S.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var e in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",e,this._sentMessages[e]);for(var e in this._receivedMessages)this._trace("_receivedMessages ",e,this._receivedMessages[e]);return this._traceBuffer}},S.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},S.prototype.stopTrace=function(){delete this._traceBuffer},S.prototype._doConnect=function(e){if(this.connectOptions.useSSL){var t=e.split(":");t[0]="wss",e=t.join(":")}this._wsuri=e,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(e,["mqttv3.1"]):new WebSocket(e,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=o(this._on_socket_open,this),this.socket.onmessage=o(this._on_socket_message,this),this.socket.onerror=o(this._on_socket_error,this),this.socket.onclose=o(this._on_socket_close,this),this.sendPinger=new b(this,this.connectOptions.keepAliveInterval),this.receivePinger=new b(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new w(this,this.connectOptions.timeout,this._disconnected,[s.CONNECT_TIMEOUT.code,u(s.CONNECT_TIMEOUT)])},S.prototype._schedule_message=function(e){this._msg_queue.unshift(e),this.connected&&this._process_queue()},S.prototype.store=function(e,t){var n={type:t.type,messageIdentifier:t.messageIdentifier,version:1};switch(t.type){case 3:t.pubRecReceived&&(n.pubRecReceived=!0),n.payloadMessage={};for(var i="",o=t.payloadMessage.payloadBytes,a=0;a<o.length;a++)o[a]<=15?i=i+"0"+o[a].toString(16):i+=o[a].toString(16);n.payloadMessage.payloadHex=i,n.payloadMessage.qos=t.payloadMessage.qos,n.payloadMessage.destinationName=t.payloadMessage.destinationName,t.payloadMessage.duplicate&&(n.payloadMessage.duplicate=!0),t.payloadMessage.retained&&(n.payloadMessage.retained=!0),0===e.indexOf("Sent:")&&(void 0===t.sequence&&(t.sequence=++this._sequence),n.sequence=t.sequence);break;default:throw Error(u(s.INVALID_STORED_DATA,[e+this._localKey+t.messageIdentifier,n]))}r.setItem(e+this._localKey+t.messageIdentifier,JSON.stringify(n))},S.prototype.restore=function(e){var t=r.getItem(e),i=JSON.parse(t),o=new f(i.type,i);switch(i.type){case 3:for(var a=i.payloadMessage.payloadHex,c=new ArrayBuffer(a.length/2),l=new Uint8Array(c),p=0;a.length>=2;){var h=parseInt(a.substring(0,2),16);a=a.substring(2,a.length),l[p++]=h}var d=new n.Message(l);d.qos=i.payloadMessage.qos,d.destinationName=i.payloadMessage.destinationName,i.payloadMessage.duplicate&&(d.duplicate=!0),i.payloadMessage.retained&&(d.retained=!0),o.payloadMessage=d;break;default:throw Error(u(s.INVALID_STORED_DATA,[e,t]))}0===e.indexOf("Sent:"+this._localKey)?(o.payloadMessage.duplicate=!0,this._sentMessages[o.messageIdentifier]=o):0===e.indexOf("Received:"+this._localKey)&&(this._receivedMessages[o.messageIdentifier]=o)},S.prototype._process_queue=function(){for(var e=null;e=this._msg_queue.pop();)this._socket_send(e),this._notify_msg_sent[e]&&(this._notify_msg_sent[e](),delete this._notify_msg_sent[e])},S.prototype._requires_ack=function(e){var t=Object.keys(this._sentMessages).length;if(t>this.maxMessageIdentifier)throw Error("Too many messages:"+t);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;e.messageIdentifier=this._message_identifier,this._sentMessages[e.messageIdentifier]=e,3===e.type&&this.store("Sent:",e),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},S.prototype._on_socket_open=function(){var e=new f(1,this.connectOptions);e.clientId=this.clientId,this._socket_send(e)},S.prototype._on_socket_message=function(e){this._trace("Client._on_socket_message",e.data);for(var t=this._deframeMessages(e.data),r=0;r<t.length;r+=1)this._handleMessage(t[r])},S.prototype._deframeMessages=function(e){var t=new Uint8Array(e),r=[];if(this.receiveBuffer){var n=new Uint8Array(this.receiveBuffer.length+t.length);n.set(this.receiveBuffer),n.set(t,this.receiveBuffer.length),t=n,delete this.receiveBuffer}try{for(var i=0;i<t.length;){var o=p(t,i),a=o[0];if(i=o[1],null===a)break;r.push(a)}i<t.length&&(this.receiveBuffer=t.subarray(i))}catch(l){var c="undefined"==l.hasOwnProperty("stack")?l.stack.toString():"No Error Stack Available";return void this._disconnected(s.INTERNAL_ERROR.code,u(s.INTERNAL_ERROR,[l.message,c]))}return r},S.prototype._handleMessage=function(e){this._trace("Client._handleMessage",e);try{switch(e.type){case 2:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var t in this._sentMessages)r.removeItem("Sent:"+this._localKey+(v=this._sentMessages[t]).messageIdentifier);for(var t in this._sentMessages={},this._receivedMessages)r.removeItem("Received:"+this._localKey+(d=this._receivedMessages[t]).messageIdentifier);this._receivedMessages={}}if(0!==e.returnCode){this._disconnected(s.CONNACK_RETURNCODE.code,u(s.CONNACK_RETURNCODE,[e.returnCode,a[e.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var n=[];for(var i in this._sentMessages)this._sentMessages.hasOwnProperty(i)&&n.push(this._sentMessages[i]);if(this._buffered_msg_queue.length>0)for(var o=null;o=this._buffered_msg_queue.pop();)n.push(o),this.onMessageDelivered&&(this._notify_msg_sent[o]=this.onMessageDelivered(o.payloadMessage));n=n.sort(function(e,t){return e.sequence-t.sequence});for(var c=0,l=n.length;c<l;c++)if(3==(v=n[c]).type&&v.pubRecReceived){var p=new f(6,{messageIdentifier:v.messageIdentifier});this._schedule_message(p)}else this._schedule_message(v);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var h=!1;this._reconnecting&&(h=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(h,this._wsuri),this._process_queue();break;case 3:this._receivePublish(e);break;case 4:(v=this._sentMessages[e.messageIdentifier])&&(delete this._sentMessages[e.messageIdentifier],r.removeItem("Sent:"+this._localKey+e.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(v.payloadMessage));break;case 5:(v=this._sentMessages[e.messageIdentifier])&&(v.pubRecReceived=!0,p=new f(6,{messageIdentifier:e.messageIdentifier}),this.store("Sent:",v),this._schedule_message(p));break;case 6:var d=this._receivedMessages[e.messageIdentifier];r.removeItem("Received:"+this._localKey+e.messageIdentifier),d&&(this._receiveMessage(d),delete this._receivedMessages[e.messageIdentifier]);var y=new f(7,{messageIdentifier:e.messageIdentifier});this._schedule_message(y);break;case 7:var v=this._sentMessages[e.messageIdentifier];delete this._sentMessages[e.messageIdentifier],r.removeItem("Sent:"+this._localKey+e.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(v.payloadMessage);break;case 9:(v=this._sentMessages[e.messageIdentifier])&&(v.timeOut&&v.timeOut.cancel(),128===e.returnCode[0]?v.onFailure&&v.onFailure(e.returnCode):v.onSuccess&&v.onSuccess(e.returnCode),delete this._sentMessages[e.messageIdentifier]);break;case 11:(v=this._sentMessages[e.messageIdentifier])&&(v.timeOut&&v.timeOut.cancel(),v.callback&&v.callback(),delete this._sentMessages[e.messageIdentifier]);break;case 13:this.sendPinger.reset();break;case 14:this._disconnected(s.INVALID_MQTT_MESSAGE_TYPE.code,u(s.INVALID_MQTT_MESSAGE_TYPE,[e.type]));break;default:this._disconnected(s.INVALID_MQTT_MESSAGE_TYPE.code,u(s.INVALID_MQTT_MESSAGE_TYPE,[e.type]))}}catch(g){var m="undefined"==g.hasOwnProperty("stack")?g.stack.toString():"No Error Stack Available";return void this._disconnected(s.INTERNAL_ERROR.code,u(s.INTERNAL_ERROR,[g.message,m]))}},S.prototype._on_socket_error=function(e){this._reconnecting||this._disconnected(s.SOCKET_ERROR.code,u(s.SOCKET_ERROR,[e.data]))},S.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(s.SOCKET_CLOSE.code,u(s.SOCKET_CLOSE))},S.prototype._socket_send=function(e){if(1==e.type){var t=this._traceMask(e,"password");this._trace("Client._socket_send",t)}else this._trace("Client._socket_send",e);this.socket.send(e.encode()),this.sendPinger.reset()},S.prototype._receivePublish=function(e){switch(e.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(e);break;case 1:var t=new f(4,{messageIdentifier:e.messageIdentifier});this._schedule_message(t),this._receiveMessage(e);break;case 2:this._receivedMessages[e.messageIdentifier]=e,this.store("Received:",e);var r=new f(5,{messageIdentifier:e.messageIdentifier});this._schedule_message(r);break;default:throw Error("Invaild qos="+e.payloadMessage.qos)}},S.prototype._receiveMessage=function(e){this.onMessageArrived&&this.onMessageArrived(e.payloadMessage)},S.prototype._connected=function(e,t){this.onConnected&&this.onConnected(e,t)},S.prototype._reconnect=function(){this._trace("Client._reconnect"),this.connected||(this._reconnecting=!0,this.sendPinger.cancel(),this.receivePinger.cancel(),this._reconnectInterval<128&&(this._reconnectInterval=2*this._reconnectInterval),this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri))},S.prototype._disconnected=function(e,t){if(this._trace("Client._disconnected",e,t),void 0!==e&&this._reconnecting)this._reconnectTimeout=new w(this,this._reconnectInterval,this._reconnect);else if(this.sendPinger.cancel(),this.receivePinger.cancel(),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._msg_queue=[],this._buffered_msg_queue=[],this._notify_msg_sent={},this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onerror=null,this.socket.onclose=null,1===this.socket.readyState&&this.socket.close(),delete this.socket),this.connectOptions.uris&&this.hostIndex<this.connectOptions.uris.length-1)this.hostIndex++,this._doConnect(this.connectOptions.uris[this.hostIndex]);else if(void 0===e&&(e=s.OK.code,t=u(s.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:e,errorMessage:t,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),e!==s.OK.code&&this.connectOptions.reconnect)return this._reconnectInterval=1,void this._reconnect()}else 4===this.connectOptions.mqttVersion&&!1===this.connectOptions.mqttVersionExplicit?(this._trace("Failed to connect V4, dropping back to V3"),this.connectOptions.mqttVersion=3,this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri)):this.connectOptions.onFailure&&this.connectOptions.onFailure({invocationContext:this.connectOptions.invocationContext,errorCode:e,errorMessage:t})},S.prototype._trace=function(){if(this.traceFunction){var e=Array.prototype.slice.call(arguments);for(var t in e)void 0!==e[t]&&e.splice(t,1,JSON.stringify(e[t]));var r=e.join("");this.traceFunction({severity:"Debug",message:r})}if(null!==this._traceBuffer){t=0;for(var n=arguments.length;t<n;t++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===t||void 0===arguments[t]?arguments[t]:" "+JSON.stringify(arguments[t]))}},S.prototype._traceMask=function(e,t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=n==t?"******":e[n]);return r};var O=function(e){var t,r;if(!("string"==typeof e||e instanceof ArrayBuffer||ArrayBuffer.isView(e)&&!(e instanceof DataView)))throw u(s.INVALID_ARGUMENT,[e,"newPayload"]);t=e;var n=0,i=!1,o=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof t?t:g(t,0,t.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof t){var e=new ArrayBuffer(v(t)),r=new Uint8Array(e);return m(t,r,0),r}return t}},destinationName:{enumerable:!0,get:function(){return r},set:function(e){if("string"!=typeof e)throw new Error(u(s.INVALID_ARGUMENT,[e,"newDestinationName"]));r=e}},qos:{enumerable:!0,get:function(){return n},set:function(e){if(0!==e&&1!==e&&2!==e)throw new Error("Invalid argument:"+e);n=e}},retained:{enumerable:!0,get:function(){return i},set:function(e){if("boolean"!=typeof e)throw new Error(u(s.INVALID_ARGUMENT,[e,"newRetained"]));i=e}},topic:{enumerable:!0,get:function(){return r},set:function(e){r=e}},duplicate:{enumerable:!0,get:function(){return o},set:function(e){o=e}}})};return{Client:function(e,t,r,n){var o;if("string"!=typeof e)throw new Error(u(s.INVALID_TYPE,[typeof e,"host"]));if(2==arguments.length){n=t;var a=(o=e).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!a)throw new Error(u(s.INVALID_ARGUMENT,[e,"host"]));e=a[4]||a[2],t=parseInt(a[7]),r=a[8]}else{if(3==arguments.length&&(n=r,r="/mqtt"),"number"!=typeof t||t<0)throw new Error(u(s.INVALID_TYPE,[typeof t,"port"]));if("string"!=typeof r)throw new Error(u(s.INVALID_TYPE,[typeof r,"path"]));var c=-1!==e.indexOf(":")&&"["!==e.slice(0,1)&&"]"!==e.slice(-1);o="ws://"+(c?"["+e+"]":e)+":"+t+r}for(var l=0,f=0;f<n.length;f++){var p=n.charCodeAt(f);55296<=p&&p<=56319&&f++,l++}if("string"!=typeof n||l>65535)throw new Error(u(s.INVALID_ARGUMENT,[n,"clientId"]));var h=new S(o,e,t,r,n);Object.defineProperties(this,{host:{get:function(){return e},set:function(){throw new Error(u(s.UNSUPPORTED_OPERATION))}},port:{get:function(){return t},set:function(){throw new Error(u(s.UNSUPPORTED_OPERATION))}},path:{get:function(){return r},set:function(){throw new Error(u(s.UNSUPPORTED_OPERATION))}},uri:{get:function(){return o},set:function(){throw new Error(u(s.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return h.clientId},set:function(){throw new Error(u(s.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return h.onConnected},set:function(e){if("function"!=typeof e)throw new Error(u(s.INVALID_TYPE,[typeof e,"onConnected"]));h.onConnected=e}},disconnectedPublishing:{get:function(){return h.disconnectedPublishing},set:function(e){h.disconnectedPublishing=e}},disconnectedBufferSize:{get:function(){return h.disconnectedBufferSize},set:function(e){h.disconnectedBufferSize=e}},onConnectionLost:{get:function(){return h.onConnectionLost},set:function(e){if("function"!=typeof e)throw new Error(u(s.INVALID_TYPE,[typeof e,"onConnectionLost"]));h.onConnectionLost=e}},onMessageDelivered:{get:function(){return h.onMessageDelivered},set:function(e){if("function"!=typeof e)throw new Error(u(s.INVALID_TYPE,[typeof e,"onMessageDelivered"]));h.onMessageDelivered=e}},onMessageArrived:{get:function(){return h.onMessageArrived},set:function(e){if("function"!=typeof e)throw new Error(u(s.INVALID_TYPE,[typeof e,"onMessageArrived"]));h.onMessageArrived=e}},trace:{get:function(){return h.traceFunction},set:function(e){if("function"!=typeof e)throw new Error(u(s.INVALID_TYPE,[typeof e,"onTrace"]));h.traceFunction=e}}}),this.connect=function(e){if(i(e=e||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===e.keepAliveInterval&&(e.keepAliveInterval=60),e.mqttVersion>4||e.mqttVersion<3)throw new Error(u(s.INVALID_ARGUMENT,[e.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===e.mqttVersion?(e.mqttVersionExplicit=!1,e.mqttVersion=4):e.mqttVersionExplicit=!0,void 0!==e.password&&void 0===e.userName)throw new Error(u(s.INVALID_ARGUMENT,[e.password,"connectOptions.password"]));if(e.willMessage){if(!(e.willMessage instanceof O))throw new Error(u(s.INVALID_TYPE,[e.willMessage,"connectOptions.willMessage"]));if(e.willMessage.stringPayload=null,void 0===e.willMessage.destinationName)throw new Error(u(s.INVALID_TYPE,[typeof e.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(void 0===e.cleanSession&&(e.cleanSession=!0),e.hosts){if(!(e.hosts instanceof Array))throw new Error(u(s.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));if(e.hosts.length<1)throw new Error(u(s.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));for(var t=!1,n=0;n<e.hosts.length;n++){if("string"!=typeof e.hosts[n])throw new Error(u(s.INVALID_TYPE,[typeof e.hosts[n],"connectOptions.hosts["+n+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(e.hosts[n])){if(0===n)t=!0;else if(!t)throw new Error(u(s.INVALID_ARGUMENT,[e.hosts[n],"connectOptions.hosts["+n+"]"]))}else if(t)throw new Error(u(s.INVALID_ARGUMENT,[e.hosts[n],"connectOptions.hosts["+n+"]"]))}if(t)e.uris=e.hosts;else{if(!e.ports)throw new Error(u(s.INVALID_ARGUMENT,[e.ports,"connectOptions.ports"]));if(!(e.ports instanceof Array))throw new Error(u(s.INVALID_ARGUMENT,[e.ports,"connectOptions.ports"]));if(e.hosts.length!==e.ports.length)throw new Error(u(s.INVALID_ARGUMENT,[e.ports,"connectOptions.ports"]));for(e.uris=[],n=0;n<e.hosts.length;n++){if("number"!=typeof e.ports[n]||e.ports[n]<0)throw new Error(u(s.INVALID_TYPE,[typeof e.ports[n],"connectOptions.ports["+n+"]"]));var a=e.hosts[n],c=e.ports[n],l=-1!==a.indexOf(":");e.uris.push(o="ws://"+(l?"["+a+"]":a)+":"+c+r)}}}h.connect(e)},this.subscribe=function(e,t){if("string"!=typeof e)throw new Error("Invalid argument:"+e);if(i(t=t||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),t.timeout&&!t.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(void 0!==t.qos&&0!==t.qos&&1!==t.qos&&2!==t.qos)throw new Error(u(s.INVALID_ARGUMENT,[t.qos,"subscribeOptions.qos"]));h.subscribe(e,t)},this.unsubscribe=function(e,t){if("string"!=typeof e)throw new Error("Invalid argument:"+e);if(i(t=t||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),t.timeout&&!t.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");h.unsubscribe(e,t)},this.send=function(e,t,r,n){var i;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof O)&&"string"!=typeof e)throw new Error("Invalid argument:"+typeof e);if(void 0===(i=e).destinationName)throw new Error(u(s.INVALID_ARGUMENT,[i.destinationName,"Message.destinationName"]));h.send(i)}else(i=new O(t)).destinationName=e,arguments.length>=3&&(i.qos=r),arguments.length>=4&&(i.retained=n),h.send(i)},this.publish=function(e,t,r,n){var i;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof O)&&"string"!=typeof e)throw new Error("Invalid argument:"+typeof e);if(void 0===(i=e).destinationName)throw new Error(u(s.INVALID_ARGUMENT,[i.destinationName,"Message.destinationName"]));h.send(i)}else(i=new O(t)).destinationName=e,arguments.length>=3&&(i.qos=r),arguments.length>=4&&(i.retained=n),h.send(i)},this.disconnect=function(){h.disconnect()},this.getTraceLog=function(){return h.getTraceLog()},this.startTrace=function(){h.startTrace()},this.stopTrace=function(){h.stopTrace()},this.isConnected=function(){return h.connected}},Message:O}}("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},uVQL:function(e,t,r){var n=r("h/rl").escapeAttribute;function i(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}i.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},i.prototype.addChildNode=function(e){return this.children.push(e),this},i.prototype.removeAttribute=function(e){return delete this.attributes[e],this},i.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,i=0,o=Object.keys(r);i<o.length;i++){var s=o[i],a=r[s];null!=a&&(t+=" "+s+'="'+n(""+a)+'"')}return t+(e?">"+this.children.map(function(e){return e.toString()}).join("")+"</"+this.name+">":"/>")},e.exports={XmlNode:i}},uZW4:function(e,t,r){var n,i={environment:"nodejs",engine:function(){if(i.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=i.environment,t="aws-sdk-"+e+"/"+r("dH5K").VERSION;return"nodejs"===e&&(t+=" "+i.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return i.arrayEach(e.split("/"),function(e){t.push(i.uriEscape(e))}),t.join("/")},urlParse:function(e){return i.url.parse(e)},urlFormat:function(e){return i.url.format(e)},queryStringParse:function(e){return i.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=i.uriEscape,n=Object.keys(e).sort();return i.arrayEach(n,function(n){var o=e[n],s=r(n),a=s+"=";if(Array.isArray(o)){var u=[];i.arrayEach(o,function(e){u.push(r(e))}),a=s+"="+u.sort().join("&"+s+"=")}else null!=o&&(a=s+"="+r(o));t.push(a)}),t.join("&")},readFileSync:function(e){return i.isBrowser()?null:r(4).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw i.error(new Error("Cannot base64 encode number "+e));return null==e?e:i.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw i.error(new Error("Cannot base64 decode number "+e));return null==e?e:i.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof i.Buffer.from&&i.Buffer.from!==Uint8Array.from?i.Buffer.from(e,t):new i.Buffer(e,t)},alloc:function(e,t,r){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof i.Buffer.alloc)return i.Buffer.alloc(e,t,r);var n=new i.Buffer(e);return void 0!==t&&"function"==typeof n.fill&&n.fill(t,void 0,void 0,r),n},toStream:function(e){i.Buffer.isBuffer(e)||(e=i.buffer.toBuffer(e));var t=new i.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,o=0;for(r=0;r<e.length;r++)n+=e[r].length;for(t=i.buffer.alloc(n),r=0;r<e.length;r++)e[r].copy(t,o),o+=e[r].length;return t}},string:{byteLength:function(e){if(null==e)return 0;if("string"==typeof e&&(e=i.buffer.toBuffer(e)),"number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.length)return e.length;if("number"==typeof e.size)return e.size;if("string"==typeof e.path)return r(4).lstatSync(e.path).size;throw i.error(new Error("Cannot determine length of "+e),{object:e})},upperFirst:function(e){return e[0].toUpperCase()+e.substr(1)},lowerFirst:function(e){return e[0].toLowerCase()+e.substr(1)}},ini:{parse:function(e){var t,r={};return i.arrayEach(e.split(/\r?\n/),function(e){var n=(e=e.split(/(^|\s)[;#]/)[0]).match(/^\s*\[([^\[\]]+)\]\s*$/);if(n){if("__proto__"===(t=n[1])||"__proto__"===t.split(/\s/)[1])throw i.error(new Error("Cannot load profile name '"+t+"' from shared ini file."))}else if(t){var o=e.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);o&&(r[t]=r[t]||{},r[t][o[1]]=o[2])}}),r}},fn:{noop:function(){},callback:function(e){if(e)throw e},makeAsync:function(e,t){return t&&t<=e.length?e:function(){var t=Array.prototype.slice.call(arguments,0),r=t.pop(),n=e.apply(null,t);r(n)}}},date:{getDate:function(){return n||(n=r("dH5K")),n.config.systemClockOffset?new Date((new Date).getTime()+n.config.systemClockOffset):new Date},iso8601:function(e){return void 0===e&&(e=i.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(e){return void 0===e&&(e=i.date.getDate()),e.toUTCString()},unixTimestamp:function(e){return void 0===e&&(e=i.date.getDate()),e.getTime()/1e3},from:function(e){return"number"==typeof e?new Date(1e3*e):new Date(e)},format:function(e,t){return t||(t="iso8601"),i.date[t](i.date.from(e))},parseTimestamp:function(e){if("number"==typeof e)return new Date(1e3*e);if(e.match(/^\d+$/))return new Date(1e3*e);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw i.error(new Error("unhandled timestamp format: "+e),{code:"TimestampParserError"})}},crypto:{crc32Table:[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],crc32:function(e){var t=i.crypto.crc32Table,r=-1;"string"==typeof e&&(e=i.buffer.toBuffer(e));for(var n=0;n<e.length;n++)r=r>>>8^t[255&(r^e.readUInt8(n))];return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=i.buffer.toBuffer(t)),i.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return i.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return i.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var o=i.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=i.buffer.toBuffer(t));var s=i.arraySliceFn(t),a=i.Buffer.isBuffer(t);if(i.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(a=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!a)t.on("data",function(e){o.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,o.digest(r))});else{if(!n||!s||a||"undefined"==typeof FileReader){i.isBrowser()&&"object"==typeof t&&!a&&(t=new i.Buffer(new Uint8Array(t)));var u=o.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new i.Buffer(new Uint8Array(l.result));o.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)n(null,o.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(s.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push(("0"+e.charCodeAt(r).toString(16)).substr(-2,2));return t.join("")},createHash:function(e){return i.crypto.lib.createHash(e)}},abort:{},each:function(e,t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.call(this,r,e[r])===i.abort)break},arrayEach:function(e,t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.call(this,e[r],parseInt(r,10))===i.abort)break},update:function(e,t){return i.each(t,function(t,r){e[t]=r}),e},merge:function(e,t){return i.update(i.copy(e),t)},copy:function(e){if(null==e)return e;var t={};for(var r in e)t[r]=e[r];return t},isEmpty:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},arraySliceFn:function(e){var t=e.slice||e.webkitSlice||e.mozSlice;return"function"==typeof t?t:null},isType:function(e,t){return"function"==typeof t&&(t=i.typeName(t)),Object.prototype.toString.call(e)==="[object "+t+"]"},typeName:function(e){if(Object.prototype.hasOwnProperty.call(e,"name"))return e.name;var t=e.toString(),r=t.match(/^\s*function (.+)\(/);return r?r[1]:t},error:function(e,t){var r=null;return"string"==typeof e.message&&""!==e.message&&("string"==typeof t||t&&t.message)&&((r=i.copy(e)).message=e.message),e.message=e.message||null,"string"==typeof t?e.message=t:"object"==typeof t&&null!==t&&(i.update(e,t),t.message&&(e.message=t.message),(t.code||t.name)&&(e.code=t.code||t.name),t.stack&&(e.stack=t.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=String(t&&t.name||e.name||e.code||"Error"),e.time=new Date,r&&(e.originalError=r),e},inherit:function(e,t){var r=null;if(void 0===t)t=e,e=Object,r={};else{var n=function(){};n.prototype=e.prototype,r=new n}return t.constructor===Object&&(t.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),t.constructor.prototype=r,i.update(t.constructor.prototype,t),t.constructor.__super__=e,t.constructor},mixin:function(){for(var e=arguments[0],t=1;t<arguments.length;t++)for(var r in arguments[t].prototype){var n=arguments[t].prototype[r];"constructor"!==r&&(e.prototype[r]=n)}return e},hideProperties:function(e,t){"function"==typeof Object.defineProperty&&i.arrayEach(t,function(t){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0})})},property:function(e,t,r,n,i){var o={configurable:!0,enumerable:void 0===n||n};"function"!=typeof r||i?(o.value=r,o.writable=!0):o.get=r,Object.defineProperty(e,t,o)},memoizedProperty:function(e,t,r,n){var o=null;i.property(e,t,function(){return null===o&&(o=r()),o},n)},hoistPayloadMember:function(e){var t=e.request,r=t.service.api.operations[t.operation],n=r.output;n.payload&&!r.hasEventOutput&&"structure"===n.members[n.payload].type&&i.each(e.data[n.payload],function(t,r){i.property(e.data,t,r,!1)})},computeSha256:function(e,t){if(i.isNode()){var n=i.stream.Stream,o=r(4);if("function"==typeof n&&e instanceof n){if("string"!=typeof e.path)return t(new Error("Non-file stream objects are not supported with SigV4"));var s={};"number"==typeof e.start&&(s.start=e.start),"number"==typeof e.end&&(s.end=e.end),e=o.createReadStream(e.path,s)}}i.crypto.sha256(e,"hex",function(e,r){e?t(e):t(null,r)})},isClockSkewed:function(e){if(e)return i.property(n.config,"isClockSkewed",Math.abs((new Date).getTime()-e)>=3e5,!1),n.config.isClockSkewed},applyClockOffset:function(e){e&&(n.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&n&&n.config&&(t=n.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var i=0;i<e.length;i++){var o=e[i];r?o.deletePromisesFromClass&&o.deletePromisesFromClass():o.addPromisesToClass&&o.addPromisesToClass(t)}},promisifyMethod:function(e,t){return function(){var r=this,n=Array.prototype.slice.call(arguments);return new t(function(t,i){n.push(function(e,r){e?i(e):t(r)}),r[e].apply(r,n)})}},isDualstackAvailable:function(e){if(!e)return!1;var t=r("LFVe");return"string"!=typeof e&&(e=e.serviceIdentifier),!("string"!=typeof e||!t.hasOwnProperty(e)||!t[e].dualstackAvailable)},calculateRetryDelay:function(e,t,r){t||(t={});var n=t.customBackoff||null;if("function"==typeof n)return n(e,r);var i="number"==typeof t.base?t.base:100;return Math.random()*(Math.pow(2,e)*i)},handleRequestWithRetries:function(e,t,r){t||(t={});var o=n.HttpClient.getInstance(),s=t.httpOptions||{},a=0,u=function(e){var n=t.maxRetries||0;if(e&&"TimeoutError"===e.code&&(e.retryable=!0),e&&e.retryable&&a<n){var o=i.calculateRetryDelay(a,t.retryDelayOptions,e);if(o>=0)return a++,void setTimeout(c,o+(e.retryAfter||0))}r(e)},c=function(){var t="";o.handleRequest(e,s,function(e){e.on("data",function(e){t+=e.toString()}),e.on("end",function(){var n=e.statusCode;if(n<300)r(null,t);else{var o=1e3*parseInt(e.headers["retry-after"],10)||0,s=i.error(new Error,{statusCode:n,retryable:n>=500||429===n});o&&s.retryable&&(s.retryAfter=o),u(s)}})},u)};n.util.defer(c)},uuid:{v4:function(){return r("5iv9").v4()}},convertPayloadToString:function(e){var t=e.request,r=t.service.api.operations[t.operation].output||{};r.payload&&e.data[r.payload]&&(e.data[r.payload]=e.data[r.payload].toString())},defer:function(e){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(e):"function"==typeof setImmediate?setImmediate(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){var r={},n={};process.env[i.configOptInEnv]&&(n=e.loadFrom({isConfig:!0,filename:process.env[i.sharedConfigFileEnv]}));var o={};try{o=e.loadFrom({filename:t||process.env[i.configOptInEnv]&&process.env[i.sharedCredentialsFileEnv]})}catch(c){if(!process.env[i.configOptInEnv])throw c}for(var s=0,a=Object.keys(n);s<a.length;s++)r[a[s]]=u(r[a[s]]||{},n[a[s]]);for(s=0,a=Object.keys(o);s<a.length;s++)r[a[s]]=u(r[a[s]]||{},o[a[s]]);return r;function u(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++)e[n[r]]=t[n[r]];return e}},ARN:{validate:function(e){return e&&0===e.indexOf("arn:")&&e.split(":").length>=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw i.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=i},uqQW:function(e,t,r){var n=r("dH5K"),i=n.util.inherit,o=r("4ClY");function s(e){var t=e.request._waiter,r=!1,n="retry";t.config.acceptors.forEach(function(i){if(!r){var o=t.matchers[i.matcher];o&&o(e,i.expected,i.argument)&&(r=!0,n=i.state)}}),!r&&e.error&&(n="failure"),"success"===n?t.setSuccess(e):t.setError(e,"retry"===n)}n.ResourceWaiter=i({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var n=o.search(e.data,r)}catch(i){return!1}return o.strictDeepEqual(n,t)},pathAll:function(e,t,r){try{var n=o.search(e.data,r)}catch(a){return!1}Array.isArray(n)||(n=[n]);var i=n.length;if(!i)return!1;for(var s=0;s<i;s++)if(!o.strictDeepEqual(n[s],t))return!1;return!0},pathAny:function(e,t,r){try{var n=o.search(e.data,r)}catch(a){return!1}Array.isArray(n)||(n=[n]);for(var i=n.length,s=0;s<i;s++)if(o.strictDeepEqual(n[s],t))return!0;return!1},status:function(e,t){var r=e.httpResponse.statusCode;return"number"==typeof r&&r===t},error:function(e,t){return"string"==typeof t&&e.error?t===e.error.code:t===!!e.error}},listeners:(new n.SequentialExecutor).addNamedListeners(function(e){e("RETRY_CHECK","retry",function(e){e.error&&"ResourceNotReady"===e.error.code&&(e.error.retryDelay=1e3*(e.request._waiter.config.delay||0))}),e("CHECK_OUTPUT","extractData",s),e("CHECK_ERROR","extractError",s)}),wait:function(e,t){"function"==typeof e&&(t=e,e=void 0),e&&e.$waiter&&("number"==typeof(e=n.util.copy(e)).$waiter.delay&&(this.config.delay=e.$waiter.delay),"number"==typeof e.$waiter.maxAttempts&&(this.config.maxAttempts=e.$waiter.maxAttempts),delete e.$waiter);var r=this.service.makeRequest(this.config.operation,e);return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.listeners),t&&r.send(t),r},setSuccess:function(e){e.error=null,e.data=e.data||{},e.request.removeAllListeners("extractData")},setError:function(e,t){e.data=null,e.error=n.util.error(e.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:t})},loadWaiterConfig:function(e){if(!this.service.api.waiters[e])throw new n.util.error(new Error,{code:"StateNotFoundError",message:"State "+e+" not found."});this.config=n.util.copy(this.service.api.waiters[e])}})},"v2+5":function(e,t,r){"use strict";r.d(t,"a",function(){return u});var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,s=Function.prototype.toString,a=new Map;function u(e,t){try{return c(e,t)}finally{a.clear()}}function c(e,t){if(e===t)return!0;var r,n,a,u=i.call(e);if(u!==i.call(t))return!1;switch(u){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(h(e,t))return!0;var f=l(e),d=l(t),y=f.length;if(y!==d.length)return!1;for(var v=0;v<y;++v)if(!o.call(t,f[v]))return!1;for(v=0;v<y;++v){var m=f[v];if(!c(e[m],t[m]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(h(e,t))return!0;for(var g=e.entries(),b="[object Map]"===u;;){var w=g.next();if(w.done)break;var S=w.value,O=S[0],E=S[1];if(!t.has(O))return!1;if(b&&!c(E,t.get(O)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var _=e.byteLength;if(_===t.byteLength)for(;_--&&e[_]===t[_];);return-1===_;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var A=s.call(e);return A===s.call(t)&&!((a=(r=A).length-(n=p).length)>=0&&r.indexOf(n,a)===a)}return!1}function l(e){return Object.keys(e).filter(f,e)}function f(e){return void 0!==this[e]}var p="{ [native code] }";function h(e,t){var r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},vSug:function(e,t,r){"use strict";r.d(t,"a",function(){return s}),r.d(t,"b",function(){return s});var n=r("YjwB"),i=r.n(n),o=new(r("Augq").a?WeakMap:Map);function s(){var e=o.get(i.a.createContext);return e||((e=i.a.createContext({})).displayName="ApolloContext",o.set(i.a.createContext,e)),e}},wDQZ:function(e,t,r){"use strict";r.r(t),r.d(t,"setContext",function(){return a});var n=r("7yOe"),i=r("iyfc"),o=r("nv8m"),s=r.n(o);function a(e){return new i.a(function(t,r){var i=Object(n.e)(t,[]);return new s.a(function(n){var o;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)})}).catch(n.error.bind(n)),function(){o&&o.unsubscribe()}})})}},wL2q:function(e,t,r){var n=r("dH5K");function i(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw n.util.error(new Error,t)}}e.exports=function(e,t){var r;if((e=e||{})[t.clientConfig]&&(r=i(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return r;if(!n.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,t.env)&&(r=i(process.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[t.env]+'".'})))return r;var o={};try{o=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[process.env.AWS_PROFILE||n.util.defaultProfile]}catch(s){}return o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)&&(r=i(o[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[t.sharedConfig]+'".'})),r}},wpik:function(e,t,r){var n=r("dH5K");n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,r){return this._events[e]?r?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,r){return t._isAsync=!0,this.on(e,t,r)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,i=-1,o=0;o<n;++o)r[o]===t&&(i=o);i>-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var o=this,s=i||null;function a(i){if(i&&(s=n.util.error(s||new Error,i),o._haltHandlersOnError))return r.call(o,s);o.callListeners(e,t,r,s)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([a]));try{u.apply(o,t)}catch(c){s=n.util.error(s||new Error,c)}if(s&&o._haltHandlersOnError)return void r.call(o,s)}r.call(o,s)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r,n){return this[e]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(e,t,r,n){return r._isAsync=!0,this.addNamedListener(e,t,r,n)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},xMD3:function(e,t){},yJiX:function(e,t,r){var n=r("uZW4"),i=r("dH5K");e.exports={populateHostPrefix:function(e){if(!e.service.config.hostPrefixEnabled)return e;var t,r,o,s,a,u,c=e.service.api.operations[e.operation];if(function(e){var t=e.service.api,r=t.operations[e.operation],i=t.endpointOperation&&t.endpointOperation===n.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===i}(e))return e;c.endpoint&&c.endpoint.hostPrefix&&(s=(a=c.endpoint.hostPrefix,u=e.params,n.each(c.input.members,function(e,t){if(!0===t.hostLabel){if("string"!=typeof u[e]||""===u[e])throw n.error(new Error,{message:"Parameter "+e+" should be a non-empty string.",code:"InvalidParameter"});var r=new RegExp("\\{"+e+"\\}","g");a=a.replace(r,u[e])}}),a),(o=e.httpRequest.endpoint).host&&(o.host=s+o.host),o.hostname&&(o.hostname=s+o.hostname),t=e.httpRequest.endpoint.hostname.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/,n.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63)throw n.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw i.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}));return e}}},yQby:function(e,t){t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?i-1:0,p=r?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=c}return(h?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+h]=255&s,h+=d,s/=256,c-=8);e[r+h-d]|=128*y}},yTg4:function(e,t){e.exports={eventMessageChunker:function(e){for(var t=[],r=0;r<e.length;){var n=e.readInt32BE(r),i=e.slice(r,n+r);r+=n,t.push(i)}return t}}},yowe:function(e,t,r){"use strict";var n=r("FU9T"),i=r("nS4h"),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||n.call(s,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(p){c=null}e.exports=function(e){var t=a(n,s,arguments);if(u&&c){var r=u(t,"length");r.configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return a(n,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},yzB7:function(e,t,r){var n=r("dH5K"),i=r("RWsy");n.TemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,function(r,n){r||t.service.credentialsFrom(n,t),e(r)})})},loadMasterCredentials:function(e){for(this.masterCredentials=e||n.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new n.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new i({params:this.params})}})},z1k3:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),a=n[r];r<o;a=n[++r])v(a)||!S(a)?s+=" "+a:s+=" "+u(a);return s},t.deprecate=function(e,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var o={},s=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function u(e,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,e,n.depth)}function c(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function l(e,t){return e}function f(e,r,n){if(e.customInspect&&r&&_(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=f(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,r);if(o)return o;var s=Object.keys(r),a=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),E(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(r);if(0===s.length){if(_(r))return e.stylize("[Function"+(r.name?": "+r.name:"")+"]","special");if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(O(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return p(r)}var u,c="",l=!1,S=["{","}"];return d(r)&&(l=!0,S=["[","]"]),_(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(c=" "+RegExp.prototype.toString.call(r)),O(r)&&(c=" "+Date.prototype.toUTCString.call(r)),E(r)&&(c=" "+p(r)),0!==s.length||l&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=l?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)T(t,String(s))?o.push(h(e,t,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))}),o}(e,r,n,a,s):s.map(function(t){return h(e,r,n,a,t,l)}),e.seen.pop(),function(e,t,r){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(u,c,S)):S[0]+c+S[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=e.stylize(u.set?"[Getter/Setter]":"[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),T(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=v(r)?f(e,u.value,null):f(e,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function d(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function v(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function w(e){return S(e)&&"[object RegExp]"===A(e)}function S(e){return"object"==typeof e&&null!==e}function O(e){return S(e)&&"[object Date]"===A(e)}function E(e){return S(e)&&("[object Error]"===A(e)||e instanceof Error)}function _(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(s.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r("kArZ"),t.isArray=d,t.isBoolean=y,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=w,t.types.isRegExp=w,t.isObject=S,t.isDate=O,t.types.isDate=O,t.isError=E,t.types.isNativeError=E,t.isFunction=_,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r("AFyd");var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=r("FRSw"),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var x="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(x&&e[x]){var t;if("function"!=typeof(t=e[x]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(s){r(s)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),x&&Object.defineProperty(t,x,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=x,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){process.nextTick(o.bind(null,null,e))},function(e){process.nextTick(I.bind(null,e,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},zU8g:function(e,t,r){"use strict";var n=r("lzMJ"),i=r("yQby"),o=r("7SFw");function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r),i=(e=a(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=a(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function p(e,t){var r=t.length<0?0:0|h(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(n)return U(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var f=!0,p=0;p<u;p++)if(c(e,o+p)!==c(t,p)){f=!1;break}if(f)return o}return-1}function b(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function w(e,t,r,n){return B(U(t,e.length-r),e,r,n)}function S(e,t,r,n){return B(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function O(e,t,r,n){return S(e,t,r,n)}function E(e,t,r,n){return B(F(t),e,r,n)}function _(e,t,r,n){return B(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,e.length-r),e,r,n)}function A(e,t,r){return n.fromByteArray(0===t&&r===e.length?e:e.slice(t,r))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:s=e[i+2],128==(192&(o=e[i+1]))&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:s=e[i+2],a=e[i+3],128==(192&(o=e[i+1]))&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function R(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function T(e,t,r){var n,i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var o="",s=t;s<r;++s)o+=(n=e[s])<16?"0"+n.toString(16):n.toString(16);return o}function x(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function M(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,n,o){return o||M(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return o||M(e,0,r,8),i.write(e,t,r,n,52,8),r+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?a(null,t):void 0!==r?"string"==typeof n?a(null,t).fill(r,n):a(null,t).fill(r):a(null,t)}(0,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(n,i),l=e.slice(t,r),f=0;f<a;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return O(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||j(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||j(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=u.isBuffer(e)?e:U(new u(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var D=/[^+\/0-9A-Za-z-_]/g;function U(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}},zeQg:function(e,t,r){"use strict";var n=r("LvZT"),i=r("g7Xj"),o=r("1Old"),s=o("Object.prototype.toString"),a=r("4bpB")()&&"symbol"==typeof Symbol.toStringTag,u=i(),c=o("String.prototype.slice"),l={},f=r("HB9N"),p=Object.getPrototypeOf;a&&f&&p&&n(u,function(e){if("function"==typeof global[e]){var t=new global[e];if(!(Symbol.toStringTag in t))throw new EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=p(t),n=f(r,Symbol.toStringTag);if(!n){var i=p(r);n=f(i,Symbol.toStringTag)}l[e]=n.get}});var h=r("sVG9");e.exports=function(e){return!!h(e)&&(a?function(e){var t=!1;return n(l,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(o){}}),t}(e):c(s(e),8,-1))}}}]);