/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[54],[function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return c})),n.d(t,"__rest",(function(){return d})),n.d(t,"__decorate",(function(){return f})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return h})),n.d(t,"__awaiter",(function(){return m})),n.d(t,"__generator",(function(){return v})),n.d(t,"__exportStar",(function(){return y})),n.d(t,"__values",(function(){return _})),n.d(t,"__read",(function(){return w})),n.d(t,"__spread",(function(){return S})),n.d(t,"__spreadArrays",(function(){return E})),n.d(t,"__await",(function(){return O})),n.d(t,"__asyncGenerator",(function(){return I})),n.d(t,"__asyncDelegator",(function(){return x})),n.d(t,"__asyncValues",(function(){return A})),n.d(t,"__makeTemplateObject",(function(){return C})),n.d(t,"__importStar",(function(){return j})),n.d(t,"__importDefault",(function(){return k}));var r=function(e,b){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])})(e,b)};function o(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}var c=function(){return(c=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e}).apply(this,arguments)};function d(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]])}return t}function f(e,t,n,desc){var r,o=arguments.length,c=o<3?t:null===desc?desc=Object.getOwnPropertyDescriptor(t,n):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,desc);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(c=(o<3?r(c):o>3?r(t,n,c):r(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c}function l(e,t){return function(n,r){t(n,r,e)}}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(d,f)}l((r=r.apply(e,t||[])).next())}))}function v(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}}function y(e,t){for(var p in e)t.hasOwnProperty(p)||(t[p]=e[p])}function _(e){var t="function"==typeof Symbol&&e[Symbol.iterator],i=0;return t?t.call(e):{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}}function w(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c}function S(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(w(arguments[i]));return e}function E(){for(var s=0,i=0,e=arguments.length;i<e;i++)s+=arguments[i].length;var t=Array(s),n=0;for(i=0;i<e;i++)for(var a=arguments[i],r=0,o=a.length;r<o;r++,n++)t[n]=a[r];return t}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function I(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,g=n.apply(e,t||[]),q=[];return i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i;function r(e){g[e]&&(i[e]=function(t){return new Promise((function(a,b){q.push([e,t,a,b])>1||o(e,t)}))})}function o(e,t){try{(n=g[e](t)).value instanceof O?Promise.resolve(n.value.v).then(c,d):f(q[0][2],n)}catch(e){f(q[0][3],e)}var n}function c(e){o("next",e)}function d(e){o("throw",e)}function f(e,t){e(t),q.shift(),q.length&&o(q[0][0],q[0][1])}}function x(e){var i,p;return i={},t("next"),t("throw",(function(e){throw e})),t("return"),i[Symbol.iterator]=function(){return this},i;function t(t,n){i[t]=e[t]?function(r){return(p=!p)?{value:O(e[t](r)),done:"return"===t}:n?n(r):r}:n}}function A(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,t=e[Symbol.asyncIterator];return t?t.call(e):(e=_(e),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(t){i[t]=e[t]&&function(n){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(n=e[t](n)).done,n.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(900),t),r.__exportStar(n(902),t),r.__exportStar(n(903),t),r.__exportStar(n(904),t),r.__exportStar(n(905),t),r.__exportStar(n(906),t),r.__exportStar(n(907),t),r.__exportStar(n(908),t),r.__exportStar(n(909),t),r.__exportStar(n(910),t),r.__exportStar(n(911),t),r.__exportStar(n(912),t),r.__exportStar(n(913),t),r.__exportStar(n(914),t)},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(885),t),r.__exportStar(n(886),t),r.__exportStar(n(887),t),r.__exportStar(n(888),t)},,,function(e,t,n){var r=n(635),o=n(328),c=36e5,d=6e4,f=2,l=/[T ]/,h=/:/,m=/^(\d{2})$/,v=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],y=/^(\d{4})/,_=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],w=/^-(\d{2})$/,S=/^-?(\d{3})$/,E=/^-?(\d{2})-?(\d{2})$/,O=/^-?W(\d{2})$/,I=/^-?W(\d{2})-?(\d{1})$/,x=/^(\d{2}([.,]\d*)?)$/,A=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,C=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,j=/([Z+-].*)$/,k=/^(Z)$/,M=/^([+-])(\d{2})$/,T=/^([+-])(\d{2}):?(\d{2})$/;function P(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}e.exports=function(e,t){if(o(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?f:Number(n);var $=function(e){var t,n={},r=e.split(l);h.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1]);if(t){var o=j.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e),R=function(e,t){var n,r=v[t],o=_[t];if(n=y.exec(e)||o.exec(e)){var c=n[1];return{year:parseInt(c,10),restDateString:e.slice(c.length)}}if(n=m.exec(e)||r.exec(e)){var d=n[1];return{year:100*parseInt(d,10),restDateString:e.slice(d.length)}}return{year:null}}($.date,n),D=R.year,N=function(e,t){if(null===t)return null;var n,r,o,c;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=w.exec(e))return r=new Date(0),o=parseInt(n[1],10)-1,r.setUTCFullYear(t,o),r;if(n=S.exec(e)){r=new Date(0);var d=parseInt(n[1],10);return r.setUTCFullYear(t,0,d),r}if(n=E.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var f=parseInt(n[2],10);return r.setUTCFullYear(t,o,f),r}if(n=O.exec(e))return c=parseInt(n[1],10)-1,P(t,c);if(n=I.exec(e)){c=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return P(t,c,l)}return null}(R.restDateString,D);if(N){var U,B=N.getTime(),time=0;if($.time&&(time=function(e){var t,n,r;if(t=x.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*c;if(t=A.exec(e))return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),n%24*c+r*d;if(t=C.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return n%24*c+r*d+1e3*o}return null}($.time)),$.timezone)U=function(e){var t,n;if(t=k.exec(e))return 0;if(t=M.exec(e))return n=60*parseInt(t[2],10),"+"===t[1]?-n:n;if(t=T.exec(e))return n=60*parseInt(t[2],10)+parseInt(t[3],10),"+"===t[1]?-n:n;return 0}($.timezone)*d;else{var L=B+time,z=new Date(L);U=r(z);var F=new Date(L);F.setDate(z.getDate()+1);var H=r(F)-r(z);H>0&&(U+=H)}return new Date(B+time+U)}return new Date(e)}},,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"v",(function(){return c})),n.d(t,"w",(function(){return d})),n.d(t,"x",(function(){return f})),n.d(t,"y",(function(){return l})),n.d(t,"z",(function(){return h})),n.d(t,"A",(function(){return m})),n.d(t,"B",(function(){return v})),n.d(t,"C",(function(){return y})),n.d(t,"D",(function(){return _})),n.d(t,"E",(function(){return w})),n.d(t,"F",(function(){return S})),n.d(t,"G",(function(){return E})),n.d(t,"H",(function(){return O})),n.d(t,"I",(function(){return I})),n.d(t,"J",(function(){return x})),n.d(t,"K",(function(){return A})),n.d(t,"L",(function(){return C})),n.d(t,"M",(function(){return j})),n.d(t,"N",(function(){return k})),n.d(t,"O",(function(){return M})),n.d(t,"P",(function(){return T})),n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return B})),n.d(t,"e",(function(){return z})),n.d(t,"f",(function(){return H})),n.d(t,"g",(function(){return W})),n.d(t,"h",(function(){return Y})),n.d(t,"i",(function(){return J})),n.d(t,"j",(function(){return Z})),n.d(t,"k",(function(){return ee})),n.d(t,"l",(function(){return ne})),n.d(t,"m",(function(){return ie})),n.d(t,"n",(function(){return ae})),n.d(t,"o",(function(){return ce})),n.d(t,"p",(function(){return de})),n.d(t,"q",(function(){return le})),n.d(t,"r",(function(){return pe})),n.d(t,"s",(function(){return me})),n.d(t,"t",(function(){return ve})),n.d(t,"u",(function(){return _e}));var r=n(0),o=n(7),c=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.CreateIdentityPool"},body=JSON.stringify($e(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},d=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.DeleteIdentities"},body=JSON.stringify(Re(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},f=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.DeleteIdentityPool"},body=JSON.stringify(De(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},l=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.DescribeIdentity"},body=JSON.stringify(Ne(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},h=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.DescribeIdentityPool"},body=JSON.stringify(Ue(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},m=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body=JSON.stringify(Be(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},v=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body=JSON.stringify(ze(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},y=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetIdentityPoolRoles"},body=JSON.stringify(Le(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},_=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetOpenIdToken"},body=JSON.stringify(Fe(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},w=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetOpenIdTokenForDeveloperIdentity"},body=JSON.stringify(qe(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},S=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.ListIdentities"},body=JSON.stringify(Ge(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},E=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.ListIdentityPools"},body=JSON.stringify(Je(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},O=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.ListTagsForResource"},body=JSON.stringify(Xe(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},I=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.LookupDeveloperIdentity"},body=JSON.stringify(et(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},x=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.MergeDeveloperIdentities"},body=JSON.stringify(nt(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},A=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.SetIdentityPoolRoles"},body=JSON.stringify(ut(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},C=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.TagResource"},body=JSON.stringify(ft(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},j=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.UnlinkDeveloperIdentity"},body=JSON.stringify(lt(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},k=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.UnlinkIdentity"},body=JSON.stringify(ht(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},M=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.UntagResource"},body=JSON.stringify(pt(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},T=function(input,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,body;return Object(r.__generator)(this,(function(n){return t={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.UpdateIdentityPool"},body=JSON.stringify(Ve(input,e)),[2,on(e,t,"/",void 0,body)]}))}))},P=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,$(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=jt(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"IdentityPool"},t),[2,Promise.resolve(n)]}}))}))},$=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S;return Object(r.__generator)(this,(function(E){switch(E.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=E.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,6];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,8];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,12]}return[3,14];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 6:return m=[{}],[4,Ce(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 8:return v=[{}],[4,je(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 10:return y=[{}],[4,ke(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 12:return _=[{}],[4,Te(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 14:w=t.body,d=w.code||w.Code||d,c=Object(r.__assign)(Object(r.__assign)({},w),{name:""+d,message:w.message||w.Message||d,$fault:"client",$metadata:nn(output)}),E.label=15;case 15:return S=c.message||c.Message||d,c.message=S,delete c.Message,[2,Promise.reject(Object.assign(new Error(S),c))]}}))}))},R=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,D(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=vt(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"DeleteIdentitiesResponse"},t),[2,Promise.resolve(n)]}}))}))},D=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y;return Object(r.__generator)(this,(function(_){switch(_.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=_.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,6]}return[3,8];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([_.sent()])),{name:d,$metadata:nn(output)}]),[3,9];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([_.sent()])),{name:d,$metadata:nn(output)}]),[3,9];case 6:return m=[{}],[4,Te(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([_.sent()])),{name:d,$metadata:nn(output)}]),[3,9];case 8:v=t.body,d=v.code||v.Code||d,c=Object(r.__assign)(Object(r.__assign)({},v),{name:""+d,message:v.message||v.Message||d,$fault:"client",$metadata:nn(output)}),_.label=9;case 9:return y=c.message||c.Message||d,c.message=y,delete c.Message,[2,Promise.reject(Object.assign(new Error(y),c))]}}))}))},N=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return output.statusCode>=400?[2,U(output,e)]:[4,rn(output.body,e)];case 1:return n.sent(),t={$metadata:nn(output)},[2,Promise.resolve(t)]}}))}))},U=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w;return Object(r.__generator)(this,(function(S){switch(S.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=S.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 8:return v=[{}],[4,Me(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 10:return y=[{}],[4,Te(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 12:_=t.body,d=_.code||_.Code||d,c=Object(r.__assign)(Object(r.__assign)({},_),{name:""+d,message:_.message||_.Message||d,$fault:"client",$metadata:nn(output)}),S.label=13;case 13:return w=c.message||c.Message||d,c.message=w,delete c.Message,[2,Promise.reject(Object.assign(new Error(w),c))]}}))}))},B=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,L(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=Ct(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"IdentityDescription"},t),[2,Promise.resolve(n)]}}))}))},L=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w;return Object(r.__generator)(this,(function(S){switch(S.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=S.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 8:return v=[{}],[4,Me(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 10:return y=[{}],[4,Te(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 12:_=t.body,d=_.code||_.Code||d,c=Object(r.__assign)(Object(r.__assign)({},_),{name:""+d,message:_.message||_.Message||d,$fault:"client",$metadata:nn(output)}),S.label=13;case 13:return w=c.message||c.Message||d,c.message=w,delete c.Message,[2,Promise.reject(Object.assign(new Error(w),c))]}}))}))},z=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,F(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=jt(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"IdentityPool"},t),[2,Promise.resolve(n)]}}))}))},F=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w;return Object(r.__generator)(this,(function(S){switch(S.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=S.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 8:return v=[{}],[4,Me(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 10:return y=[{}],[4,Te(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 12:_=t.body,d=_.code||_.Code||d,c=Object(r.__assign)(Object(r.__assign)({},_),{name:""+d,message:_.message||_.Message||d,$fault:"client",$metadata:nn(output)}),S.label=13;case 13:return w=c.message||c.Message||d,c.message=w,delete c.Message,[2,Promise.reject(Object.assign(new Error(w),c))]}}))}))},H=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,V(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=St(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"GetCredentialsForIdentityResponse"},t),[2,Promise.resolve(n)]}}))}))},V=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S,E,O;return Object(r.__generator)(this,(function(I){switch(I.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=I.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return l=[{}],[4,Oe(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 4:return h=[{}],[4,Ie(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 6:return m=[{}],[4,xe(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 8:return v=[{}],[4,Ae(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 10:return y=[{}],[4,je(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 12:return _=[{}],[4,ke(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 14:return w=[{}],[4,Me(t,e)];case 15:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,w.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 16:return S=[{}],[4,Te(t,e)];case 17:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,S.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 18:E=t.body,d=E.code||E.Code||d,c=Object(r.__assign)(Object(r.__assign)({},E),{name:""+d,message:E.message||E.Message||d,$fault:"client",$metadata:nn(output)}),I.label=19;case 19:return O=c.message||c.Message||d,c.message=O,delete c.Message,[2,Promise.reject(Object.assign(new Error(O),c))]}}))}))},W=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,K(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=Ot(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"GetIdResponse"},t),[2,Promise.resolve(n)]}}))}))},K=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S,E,O;return Object(r.__generator)(this,(function(I){switch(I.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=I.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return l=[{}],[4,Oe(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 4:return h=[{}],[4,Ie(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 6:return m=[{}],[4,Ae(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 8:return v=[{}],[4,Ce(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 10:return y=[{}],[4,je(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 12:return _=[{}],[4,ke(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 14:return w=[{}],[4,Me(t,e)];case 15:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,w.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 16:return S=[{}],[4,Te(t,e)];case 17:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,S.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 18:E=t.body,d=E.code||E.Code||d,c=Object(r.__assign)(Object(r.__assign)({},E),{name:""+d,message:E.message||E.Message||d,$fault:"client",$metadata:nn(output)}),I.label=19;case 19:return O=c.message||c.Message||d,c.message=O,delete c.Message,[2,Promise.reject(Object.assign(new Error(O),c))]}}))}))},Y=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,G(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=Et(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"GetIdentityPoolRolesResponse"},t),[2,Promise.resolve(n)]}}))}))},G=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S;return Object(r.__generator)(this,(function(E){switch(E.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=E.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,8];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,12]}return[3,14];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 8:return v=[{}],[4,ke(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 10:return y=[{}],[4,Me(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 12:return _=[{}],[4,Te(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 14:w=t.body,d=w.code||w.Code||d,c=Object(r.__assign)(Object(r.__assign)({},w),{name:""+d,message:w.message||w.Message||d,$fault:"client",$metadata:nn(output)}),E.label=15;case 15:return S=c.message||c.Message||d,c.message=S,delete c.Message,[2,Promise.reject(Object.assign(new Error(S),c))]}}))}))},J=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,X(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=xt(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"GetOpenIdTokenResponse"},t),[2,Promise.resolve(n)]}}))}))},X=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S,E;return Object(r.__generator)(this,(function(O){switch(O.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=O.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,8];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,10];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,12];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,14]}return[3,16];case 2:return l=[{}],[4,Oe(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 4:return h=[{}],[4,Ie(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 6:return m=[{}],[4,Ae(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 8:return v=[{}],[4,je(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 10:return y=[{}],[4,ke(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 12:return _=[{}],[4,Me(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 14:return w=[{}],[4,Te(t,e)];case 15:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,w.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 16:S=t.body,d=S.code||S.Code||d,c=Object(r.__assign)(Object(r.__assign)({},S),{name:""+d,message:S.message||S.Message||d,$fault:"client",$metadata:nn(output)}),O.label=17;case 17:return E=c.message||c.Message||d,c.message=E,delete c.Message,[2,Promise.reject(Object.assign(new Error(E),c))]}}))}))},Z=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,Q(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=It(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"GetOpenIdTokenForDeveloperIdentityResponse"},t),[2,Promise.resolve(n)]}}))}))},Q=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S,E;return Object(r.__generator)(this,(function(O){switch(O.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=O.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"DeveloperUserAlreadyRegisteredException":case"com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,8];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,10];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,12];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,14]}return[3,16];case 2:return l=[{}],[4,Ee(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 4:return h=[{}],[4,Ie(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 6:return m=[{}],[4,Ae(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 8:return v=[{}],[4,je(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 10:return y=[{}],[4,ke(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 12:return _=[{}],[4,Me(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 14:return w=[{}],[4,Te(t,e)];case 15:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,w.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 16:S=t.body,d=S.code||S.Code||d,c=Object(r.__assign)(Object(r.__assign)({},S),{name:""+d,message:S.message||S.Message||d,$fault:"client",$metadata:nn(output)}),O.label=17;case 17:return E=c.message||c.Message||d,c.message=E,delete c.Message,[2,Promise.reject(Object.assign(new Error(E),c))]}}))}))},ee=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,te(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=Nt(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"ListIdentitiesResponse"},t),[2,Promise.resolve(n)]}}))}))},te=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w;return Object(r.__generator)(this,(function(S){switch(S.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=S.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 8:return v=[{}],[4,Me(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 10:return y=[{}],[4,Te(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 12:_=t.body,d=_.code||_.Code||d,c=Object(r.__assign)(Object(r.__assign)({},_),{name:""+d,message:_.message||_.Message||d,$fault:"client",$metadata:nn(output)}),S.label=13;case 13:return w=c.message||c.Message||d,c.message=w,delete c.Message,[2,Promise.reject(Object.assign(new Error(w),c))]}}))}))},ne=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,re(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=Ut(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"ListIdentityPoolsResponse"},t),[2,Promise.resolve(n)]}}))}))},re=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w;return Object(r.__generator)(this,(function(S){switch(S.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=S.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 8:return v=[{}],[4,Me(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 10:return y=[{}],[4,Te(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 12:_=t.body,d=_.code||_.Code||d,c=Object(r.__assign)(Object(r.__assign)({},_),{name:""+d,message:_.message||_.Message||d,$fault:"client",$metadata:nn(output)}),S.label=13;case 13:return w=c.message||c.Message||d,c.message=w,delete c.Message,[2,Promise.reject(Object.assign(new Error(w),c))]}}))}))},ie=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,oe(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=Bt(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"ListTagsForResourceResponse"},t),[2,Promise.resolve(n)]}}))}))},oe=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w;return Object(r.__generator)(this,(function(S){switch(S.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=S.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 8:return v=[{}],[4,Me(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 10:return y=[{}],[4,Te(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 12:_=t.body,d=_.code||_.Code||d,c=Object(r.__assign)(Object(r.__assign)({},_),{name:""+d,message:_.message||_.Message||d,$fault:"client",$metadata:nn(output)}),S.label=13;case 13:return w=c.message||c.Message||d,c.message=w,delete c.Message,[2,Promise.reject(Object.assign(new Error(w),c))]}}))}))},ae=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,se(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=zt(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"LookupDeveloperIdentityResponse"},t),[2,Promise.resolve(n)]}}))}))},se=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S;return Object(r.__generator)(this,(function(E){switch(E.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=E.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,8];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,12]}return[3,14];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 8:return v=[{}],[4,ke(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 10:return y=[{}],[4,Me(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 12:return _=[{}],[4,Te(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 14:w=t.body,d=w.code||w.Code||d,c=Object(r.__assign)(Object(r.__assign)({},w),{name:""+d,message:w.message||w.Message||d,$fault:"client",$metadata:nn(output)}),E.label=15;case 15:return S=c.message||c.Message||d,c.message=S,delete c.Message,[2,Promise.reject(Object.assign(new Error(S),c))]}}))}))},ce=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,ue(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=Ft(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"MergeDeveloperIdentitiesResponse"},t),[2,Promise.resolve(n)]}}))}))},ue=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S;return Object(r.__generator)(this,(function(E){switch(E.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=E.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,8];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,12]}return[3,14];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 8:return v=[{}],[4,ke(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 10:return y=[{}],[4,Me(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 12:return _=[{}],[4,Te(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 14:w=t.body,d=w.code||w.Code||d,c=Object(r.__assign)(Object(r.__assign)({},w),{name:""+d,message:w.message||w.Message||d,$fault:"client",$metadata:nn(output)}),E.label=15;case 15:return S=c.message||c.Message||d,c.message=S,delete c.Message,[2,Promise.reject(Object.assign(new Error(S),c))]}}))}))},de=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return output.statusCode>=400?[2,fe(output,e)]:[4,rn(output.body,e)];case 1:return n.sent(),t={$metadata:nn(output)},[2,Promise.resolve(t)]}}))}))},fe=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S,E;return Object(r.__generator)(this,(function(O){switch(O.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=O.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"ConcurrentModificationException":case"com.amazonaws.cognitoidentity#ConcurrentModificationException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,8];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,10];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,12];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,14]}return[3,16];case 2:return l=[{}],[4,Se(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 4:return h=[{}],[4,Ie(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 6:return m=[{}],[4,Ae(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 8:return v=[{}],[4,je(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 10:return y=[{}],[4,ke(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 12:return _=[{}],[4,Me(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 14:return w=[{}],[4,Te(t,e)];case 15:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,w.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 16:S=t.body,d=S.code||S.Code||d,c=Object(r.__assign)(Object(r.__assign)({},S),{name:""+d,message:S.message||S.Message||d,$fault:"client",$metadata:nn(output)}),O.label=17;case 17:return E=c.message||c.Message||d,c.message=E,delete c.Message,[2,Promise.reject(Object.assign(new Error(E),c))]}}))}))},le=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,he(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=Zt(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"TagResourceResponse"},t),[2,Promise.resolve(n)]}}))}))},he=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w;return Object(r.__generator)(this,(function(S){switch(S.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=S.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 8:return v=[{}],[4,Me(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 10:return y=[{}],[4,Te(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 12:_=t.body,d=_.code||_.Code||d,c=Object(r.__assign)(Object(r.__assign)({},_),{name:""+d,message:_.message||_.Message||d,$fault:"client",$metadata:nn(output)}),S.label=13;case 13:return w=c.message||c.Message||d,c.message=w,delete c.Message,[2,Promise.reject(Object.assign(new Error(w),c))]}}))}))},pe=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return output.statusCode>=400?[2,ge(output,e)]:[4,rn(output.body,e)];case 1:return n.sent(),t={$metadata:nn(output)},[2,Promise.resolve(t)]}}))}))},ge=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S;return Object(r.__generator)(this,(function(E){switch(E.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=E.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,8];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,12]}return[3,14];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 8:return v=[{}],[4,ke(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 10:return y=[{}],[4,Me(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 12:return _=[{}],[4,Te(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([E.sent()])),{name:d,$metadata:nn(output)}]),[3,15];case 14:w=t.body,d=w.code||w.Code||d,c=Object(r.__assign)(Object(r.__assign)({},w),{name:""+d,message:w.message||w.Message||d,$fault:"client",$metadata:nn(output)}),E.label=15;case 15:return S=c.message||c.Message||d,c.message=S,delete c.Message,[2,Promise.reject(Object.assign(new Error(S),c))]}}))}))},me=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return output.statusCode>=400?[2,be(output,e)]:[4,rn(output.body,e)];case 1:return n.sent(),t={$metadata:nn(output)},[2,Promise.resolve(t)]}}))}))},be=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S,E;return Object(r.__generator)(this,(function(O){switch(O.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=O.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,8];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,10];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,12];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,14]}return[3,16];case 2:return l=[{}],[4,Oe(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 4:return h=[{}],[4,Ie(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 6:return m=[{}],[4,Ae(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 8:return v=[{}],[4,je(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 10:return y=[{}],[4,ke(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 12:return _=[{}],[4,Me(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 14:return w=[{}],[4,Te(t,e)];case 15:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,w.concat([O.sent()])),{name:d,$metadata:nn(output)}]),[3,17];case 16:S=t.body,d=S.code||S.Code||d,c=Object(r.__assign)(Object(r.__assign)({},S),{name:""+d,message:S.message||S.Message||d,$fault:"client",$metadata:nn(output)}),O.label=17;case 17:return E=c.message||c.Message||d,c.message=E,delete c.Message,[2,Promise.reject(Object.assign(new Error(E),c))]}}))}))},ve=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,ye(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=tn(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"UntagResourceResponse"},t),[2,Promise.resolve(n)]}}))}))},ye=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w;return Object(r.__generator)(this,(function(S){switch(S.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=S.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,2];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,4];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,6];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,8];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,10]}return[3,12];case 2:return l=[{}],[4,Ie(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 4:return h=[{}],[4,Ae(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 6:return m=[{}],[4,je(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 8:return v=[{}],[4,Me(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 10:return y=[{}],[4,Te(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([S.sent()])),{name:d,$metadata:nn(output)}]),[3,13];case 12:_=t.body,d=_.code||_.Code||d,c=Object(r.__assign)(Object(r.__assign)({},_),{name:""+d,message:_.message||_.Message||d,$fault:"client",$metadata:nn(output)}),S.label=13;case 13:return w=c.message||c.Message||d,c.message=w,delete c.Message,[2,Promise.reject(Object.assign(new Error(w),c))]}}))}))},_e=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var data,t,n;return Object(r.__generator)(this,(function(o){switch(o.label){case 0:return output.statusCode>=400?[2,we(output,e)]:[4,an(output.body,e)];case 1:return data=o.sent(),{},t=jt(data,e),n=Object(r.__assign)({$metadata:nn(output),__type:"IdentityPool"},t),[2,Promise.resolve(n)]}}))}))},we=function(output,e){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var t,n,o,c,d,f,l,h,m,v,y,_,w,S,E,O;return Object(r.__generator)(this,(function(I){switch(I.label){case 0:return n=[Object(r.__assign)({},output)],o={},[4,an(output.body,e)];case 1:switch(t=r.__assign.apply(void 0,n.concat([(o.body=I.sent(),o)])),d="UnknownError",f=t.body.__type.split("#"),d=void 0===f[1]?f[0]:f[1],d){case"ConcurrentModificationException":case"com.amazonaws.cognitoidentity#ConcurrentModificationException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return l=[{}],[4,Se(t,e)];case 3:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,l.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 4:return h=[{}],[4,Ie(t,e)];case 5:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,h.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 6:return m=[{}],[4,Ae(t,e)];case 7:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,m.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 8:return v=[{}],[4,Ce(t,e)];case 9:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,v.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 10:return y=[{}],[4,je(t,e)];case 11:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,y.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 12:return _=[{}],[4,ke(t,e)];case 13:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,_.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 14:return w=[{}],[4,Me(t,e)];case 15:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,w.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 16:return S=[{}],[4,Te(t,e)];case 17:return c=r.__assign.apply(void 0,[r.__assign.apply(void 0,S.concat([I.sent()])),{name:d,$metadata:nn(output)}]),[3,19];case 18:E=t.body,d=E.code||E.Code||d,c=Object(r.__assign)(Object(r.__assign)({},E),{name:""+d,message:E.message||E.Message||d,$fault:"client",$metadata:nn(output)}),I.label=19;case 19:return O=c.message||c.Message||d,c.message=O,delete c.Message,[2,Promise.reject(Object.assign(new Error(O),c))]}}))}))},Se=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=mt(body,t),[2,Object(r.__assign)({name:"ConcurrentModificationException",$fault:"client",$metadata:nn(e)},n)]}))}))},Ee=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=yt(body,t),[2,Object(r.__assign)({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",$metadata:nn(e)},n)]}))}))},Oe=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=wt(body,t),[2,Object(r.__assign)({name:"ExternalServiceException",$fault:"client",$metadata:nn(e)},n)]}))}))},Ie=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=Pt(body,t),[2,Object(r.__assign)({name:"InternalErrorException",$fault:"server",$metadata:nn(e)},n)]}))}))},xe=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=$t(body,t),[2,Object(r.__assign)({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:nn(e)},n)]}))}))},Ae=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=Rt(body,t),[2,Object(r.__assign)({name:"InvalidParameterException",$fault:"client",$metadata:nn(e)},n)]}))}))},Ce=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=Dt(body,t),[2,Object(r.__assign)({name:"LimitExceededException",$fault:"client",$metadata:nn(e)},n)]}))}))},je=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=Ht(body,t),[2,Object(r.__assign)({name:"NotAuthorizedException",$fault:"client",$metadata:nn(e)},n)]}))}))},ke=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=Wt(body,t),[2,Object(r.__assign)({name:"ResourceConflictException",$fault:"client",$metadata:nn(e)},n)]}))}))},Me=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=Kt(body,t),[2,Object(r.__assign)({name:"ResourceNotFoundException",$fault:"client",$metadata:nn(e)},n)]}))}))},Te=function(e,t){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var body,n;return Object(r.__generator)(this,(function(o){return body=e.body,n=Qt(body,t),[2,Object(r.__assign)({name:"TooManyRequestsException",$fault:"client",$metadata:nn(e)},n)]}))}))},Pe=function(input,e){return input.map((function(e){return function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.ClientId&&{ClientId:input.ClientId}),void 0!==input.ProviderName&&{ProviderName:input.ProviderName}),void 0!==input.ServerSideTokenCheck&&{ServerSideTokenCheck:input.ServerSideTokenCheck})}(e)}))},$e=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.AllowClassicFlow&&{AllowClassicFlow:input.AllowClassicFlow}),void 0!==input.AllowUnauthenticatedIdentities&&{AllowUnauthenticatedIdentities:input.AllowUnauthenticatedIdentities}),void 0!==input.CognitoIdentityProviders&&{CognitoIdentityProviders:Pe(input.CognitoIdentityProviders)}),void 0!==input.DeveloperProviderName&&{DeveloperProviderName:input.DeveloperProviderName}),void 0!==input.IdentityPoolName&&{IdentityPoolName:input.IdentityPoolName}),void 0!==input.IdentityPoolTags&&{IdentityPoolTags:Ke(input.IdentityPoolTags,e)}),void 0!==input.OpenIdConnectProviderARNs&&{OpenIdConnectProviderARNs:it(input.OpenIdConnectProviderARNs,e)}),void 0!==input.SamlProviderARNs&&{SamlProviderARNs:ct(input.SamlProviderARNs,e)}),void 0!==input.SupportedLoginProviders&&{SupportedLoginProviders:Ye(input.SupportedLoginProviders,e)})},Re=function(input,e){return Object(r.__assign)({},void 0!==input.IdentityIdsToDelete&&{IdentityIdsToDelete:He(input.IdentityIdsToDelete,e)})},De=function(input,e){return Object(r.__assign)({},void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId})},Ne=function(input,e){return Object(r.__assign)({},void 0!==input.IdentityId&&{IdentityId:input.IdentityId})},Ue=function(input,e){return Object(r.__assign)({},void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId})},Be=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.CustomRoleArn&&{CustomRoleArn:input.CustomRoleArn}),void 0!==input.IdentityId&&{IdentityId:input.IdentityId}),void 0!==input.Logins&&{Logins:Qe(input.Logins,e)})},Le=function(input,e){return Object(r.__assign)({},void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId})},ze=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.AccountId&&{AccountId:input.AccountId}),void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId}),void 0!==input.Logins&&{Logins:Qe(input.Logins,e)})},qe=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.IdentityId&&{IdentityId:input.IdentityId}),void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId}),void 0!==input.Logins&&{Logins:Qe(input.Logins,e)}),void 0!==input.TokenDuration&&{TokenDuration:input.TokenDuration})},Fe=function(input,e){return Object(r.__assign)(Object(r.__assign)({},void 0!==input.IdentityId&&{IdentityId:input.IdentityId}),void 0!==input.Logins&&{Logins:Qe(input.Logins,e)})},He=function(input,e){return input.map((function(e){return e}))},Ve=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.AllowClassicFlow&&{AllowClassicFlow:input.AllowClassicFlow}),void 0!==input.AllowUnauthenticatedIdentities&&{AllowUnauthenticatedIdentities:input.AllowUnauthenticatedIdentities}),void 0!==input.CognitoIdentityProviders&&{CognitoIdentityProviders:Pe(input.CognitoIdentityProviders)}),void 0!==input.DeveloperProviderName&&{DeveloperProviderName:input.DeveloperProviderName}),void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId}),void 0!==input.IdentityPoolName&&{IdentityPoolName:input.IdentityPoolName}),void 0!==input.IdentityPoolTags&&{IdentityPoolTags:Ke(input.IdentityPoolTags,e)}),void 0!==input.OpenIdConnectProviderARNs&&{OpenIdConnectProviderARNs:it(input.OpenIdConnectProviderARNs,e)}),void 0!==input.SamlProviderARNs&&{SamlProviderARNs:ct(input.SamlProviderARNs,e)}),void 0!==input.SupportedLoginProviders&&{SupportedLoginProviders:Ye(input.SupportedLoginProviders,e)})},We=function(input,e){return input.map((function(e){return e}))},Ke=function(input,e){return Object.entries(input).reduce((function(e,t){var n,o=Object(r.__read)(t,2),c=o[0],d=o[1];return Object(r.__assign)(Object(r.__assign)({},e),((n={})[c]=d,n))}),{})},Ye=function(input,e){return Object.entries(input).reduce((function(e,t){var n,o=Object(r.__read)(t,2),c=o[0],d=o[1];return Object(r.__assign)(Object(r.__assign)({},e),((n={})[c]=d,n))}),{})},Ge=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.HideDisabled&&{HideDisabled:input.HideDisabled}),void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId}),void 0!==input.MaxResults&&{MaxResults:input.MaxResults}),void 0!==input.NextToken&&{NextToken:input.NextToken})},Je=function(input,e){return Object(r.__assign)(Object(r.__assign)({},void 0!==input.MaxResults&&{MaxResults:input.MaxResults}),void 0!==input.NextToken&&{NextToken:input.NextToken})},Xe=function(input,e){return Object(r.__assign)({},void 0!==input.ResourceArn&&{ResourceArn:input.ResourceArn})},Ze=function(input,e){return input.map((function(e){return e}))},Qe=function(input,e){return Object.entries(input).reduce((function(e,t){var n,o=Object(r.__read)(t,2),c=o[0],d=o[1];return Object(r.__assign)(Object(r.__assign)({},e),((n={})[c]=d,n))}),{})},et=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.DeveloperUserIdentifier&&{DeveloperUserIdentifier:input.DeveloperUserIdentifier}),void 0!==input.IdentityId&&{IdentityId:input.IdentityId}),void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId}),void 0!==input.MaxResults&&{MaxResults:input.MaxResults}),void 0!==input.NextToken&&{NextToken:input.NextToken})},tt=function(input,e){return input.map((function(e){return function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.Claim&&{Claim:input.Claim}),void 0!==input.MatchType&&{MatchType:input.MatchType}),void 0!==input.RoleARN&&{RoleARN:input.RoleARN}),void 0!==input.Value&&{Value:input.Value})}(e)}))},nt=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.DestinationUserIdentifier&&{DestinationUserIdentifier:input.DestinationUserIdentifier}),void 0!==input.DeveloperProviderName&&{DeveloperProviderName:input.DeveloperProviderName}),void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId}),void 0!==input.SourceUserIdentifier&&{SourceUserIdentifier:input.SourceUserIdentifier})},it=function(input,e){return input.map((function(e){return e}))},ot=function(input,e){return Object.entries(input).reduce((function(t,n){var o,c=Object(r.__read)(n,2),d=c[0],f=c[1];return Object(r.__assign)(Object(r.__assign)({},t),((o={})[d]=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.AmbiguousRoleResolution&&{AmbiguousRoleResolution:input.AmbiguousRoleResolution}),void 0!==input.RulesConfiguration&&{RulesConfiguration:st(input.RulesConfiguration,e)}),void 0!==input.Type&&{Type:input.Type})}(f,e),o))}),{})},at=function(input,e){return Object.entries(input).reduce((function(e,t){var n,o=Object(r.__read)(t,2),c=o[0],d=o[1];return Object(r.__assign)(Object(r.__assign)({},e),((n={})[c]=d,n))}),{})},st=function(input,e){return Object(r.__assign)({},void 0!==input.Rules&&{Rules:tt(input.Rules)})},ct=function(input,e){return input.map((function(e){return e}))},ut=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId}),void 0!==input.RoleMappings&&{RoleMappings:ot(input.RoleMappings,e)}),void 0!==input.Roles&&{Roles:at(input.Roles)})},ft=function(input,e){return Object(r.__assign)(Object(r.__assign)({},void 0!==input.ResourceArn&&{ResourceArn:input.ResourceArn}),void 0!==input.Tags&&{Tags:Ke(input.Tags,e)})},lt=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.DeveloperProviderName&&{DeveloperProviderName:input.DeveloperProviderName}),void 0!==input.DeveloperUserIdentifier&&{DeveloperUserIdentifier:input.DeveloperUserIdentifier}),void 0!==input.IdentityId&&{IdentityId:input.IdentityId}),void 0!==input.IdentityPoolId&&{IdentityPoolId:input.IdentityPoolId})},ht=function(input,e){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},void 0!==input.IdentityId&&{IdentityId:input.IdentityId}),void 0!==input.Logins&&{Logins:Qe(input.Logins,e)}),void 0!==input.LoginsToRemove&&{LoginsToRemove:Ze(input.LoginsToRemove)})},pt=function(input,e){return Object(r.__assign)(Object(r.__assign)({},void 0!==input.ResourceArn&&{ResourceArn:input.ResourceArn}),void 0!==input.TagKeys&&{TagKeys:We(input.TagKeys)})},gt=function(output,e){return(output||[]).map((function(e){return function(output,e){return{__type:"CognitoIdentityProvider",ClientId:void 0!==output.ClientId&&null!==output.ClientId?output.ClientId:void 0,ProviderName:void 0!==output.ProviderName&&null!==output.ProviderName?output.ProviderName:void 0,ServerSideTokenCheck:void 0!==output.ServerSideTokenCheck&&null!==output.ServerSideTokenCheck?output.ServerSideTokenCheck:void 0}}(e)}))},mt=function(output,e){return{__type:"ConcurrentModificationException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},bt=function(output,e){return{__type:"Credentials",AccessKeyId:void 0!==output.AccessKeyId&&null!==output.AccessKeyId?output.AccessKeyId:void 0,Expiration:void 0!==output.Expiration&&null!==output.Expiration?new Date(Math.round(1e3*output.Expiration)):void 0,SecretKey:void 0!==output.SecretKey&&null!==output.SecretKey?output.SecretKey:void 0,SessionToken:void 0!==output.SessionToken&&null!==output.SessionToken?output.SessionToken:void 0}},vt=function(output,e){return{__type:"DeleteIdentitiesResponse",UnprocessedIdentityIds:void 0!==output.UnprocessedIdentityIds&&null!==output.UnprocessedIdentityIds?en(output.UnprocessedIdentityIds,e):void 0}},yt=function(output,e){return{__type:"DeveloperUserAlreadyRegisteredException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},_t=function(output,e){return(output||[]).map((function(e){return e}))},wt=function(output,e){return{__type:"ExternalServiceException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},St=function(output,e){return{__type:"GetCredentialsForIdentityResponse",Credentials:void 0!==output.Credentials&&null!==output.Credentials?bt(output.Credentials):void 0,IdentityId:void 0!==output.IdentityId&&null!==output.IdentityId?output.IdentityId:void 0}},Et=function(output,e){return{__type:"GetIdentityPoolRolesResponse",IdentityPoolId:void 0!==output.IdentityPoolId&&null!==output.IdentityPoolId?output.IdentityPoolId:void 0,RoleMappings:void 0!==output.RoleMappings&&null!==output.RoleMappings?Yt(output.RoleMappings,e):void 0,Roles:void 0!==output.Roles&&null!==output.Roles?Gt(output.Roles,e):void 0}},Ot=function(output,e){return{__type:"GetIdResponse",IdentityId:void 0!==output.IdentityId&&null!==output.IdentityId?output.IdentityId:void 0}},It=function(output,e){return{__type:"GetOpenIdTokenForDeveloperIdentityResponse",IdentityId:void 0!==output.IdentityId&&null!==output.IdentityId?output.IdentityId:void 0,Token:void 0!==output.Token&&null!==output.Token?output.Token:void 0}},xt=function(output,e){return{__type:"GetOpenIdTokenResponse",IdentityId:void 0!==output.IdentityId&&null!==output.IdentityId?output.IdentityId:void 0,Token:void 0!==output.Token&&null!==output.Token?output.Token:void 0}},At=function(output,e){return(output||[]).map((function(t){return Ct(t,e)}))},Ct=function(output,e){return{__type:"IdentityDescription",CreationDate:void 0!==output.CreationDate&&null!==output.CreationDate?new Date(Math.round(1e3*output.CreationDate)):void 0,IdentityId:void 0!==output.IdentityId&&null!==output.IdentityId?output.IdentityId:void 0,LastModifiedDate:void 0!==output.LastModifiedDate&&null!==output.LastModifiedDate?new Date(Math.round(1e3*output.LastModifiedDate)):void 0,Logins:void 0!==output.Logins&&null!==output.Logins?Lt(output.Logins,e):void 0}},jt=function(output,e){return{__type:"IdentityPool",AllowClassicFlow:void 0!==output.AllowClassicFlow&&null!==output.AllowClassicFlow?output.AllowClassicFlow:void 0,AllowUnauthenticatedIdentities:void 0!==output.AllowUnauthenticatedIdentities&&null!==output.AllowUnauthenticatedIdentities?output.AllowUnauthenticatedIdentities:void 0,CognitoIdentityProviders:void 0!==output.CognitoIdentityProviders&&null!==output.CognitoIdentityProviders?gt(output.CognitoIdentityProviders):void 0,DeveloperProviderName:void 0!==output.DeveloperProviderName&&null!==output.DeveloperProviderName?output.DeveloperProviderName:void 0,IdentityPoolId:void 0!==output.IdentityPoolId&&null!==output.IdentityPoolId?output.IdentityPoolId:void 0,IdentityPoolName:void 0!==output.IdentityPoolName&&null!==output.IdentityPoolName?output.IdentityPoolName:void 0,IdentityPoolTags:void 0!==output.IdentityPoolTags&&null!==output.IdentityPoolTags?Mt(output.IdentityPoolTags,e):void 0,OpenIdConnectProviderARNs:void 0!==output.OpenIdConnectProviderARNs&&null!==output.OpenIdConnectProviderARNs?Vt(output.OpenIdConnectProviderARNs,e):void 0,SamlProviderARNs:void 0!==output.SamlProviderARNs&&null!==output.SamlProviderARNs?Xt(output.SamlProviderARNs,e):void 0,SupportedLoginProviders:void 0!==output.SupportedLoginProviders&&null!==output.SupportedLoginProviders?Tt(output.SupportedLoginProviders,e):void 0}},kt=function(output,e){return(output||[]).map((function(e){return function(output,e){return{__type:"IdentityPoolShortDescription",IdentityPoolId:void 0!==output.IdentityPoolId&&null!==output.IdentityPoolId?output.IdentityPoolId:void 0,IdentityPoolName:void 0!==output.IdentityPoolName&&null!==output.IdentityPoolName?output.IdentityPoolName:void 0}}(e)}))},Mt=function(output,e){return Object.entries(output).reduce((function(e,t){var n,o=Object(r.__read)(t,2),c=o[0],d=o[1];return Object(r.__assign)(Object(r.__assign)({},e),((n={})[c]=d,n))}),{})},Tt=function(output,e){return Object.entries(output).reduce((function(e,t){var n,o=Object(r.__read)(t,2),c=o[0],d=o[1];return Object(r.__assign)(Object(r.__assign)({},e),((n={})[c]=d,n))}),{})},Pt=function(output,e){return{__type:"InternalErrorException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},$t=function(output,e){return{__type:"InvalidIdentityPoolConfigurationException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},Rt=function(output,e){return{__type:"InvalidParameterException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},Dt=function(output,e){return{__type:"LimitExceededException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},Nt=function(output,e){return{__type:"ListIdentitiesResponse",Identities:void 0!==output.Identities&&null!==output.Identities?At(output.Identities,e):void 0,IdentityPoolId:void 0!==output.IdentityPoolId&&null!==output.IdentityPoolId?output.IdentityPoolId:void 0,NextToken:void 0!==output.NextToken&&null!==output.NextToken?output.NextToken:void 0}},Ut=function(output,e){return{__type:"ListIdentityPoolsResponse",IdentityPools:void 0!==output.IdentityPools&&null!==output.IdentityPools?kt(output.IdentityPools):void 0,NextToken:void 0!==output.NextToken&&null!==output.NextToken?output.NextToken:void 0}},Bt=function(output,e){return{__type:"ListTagsForResourceResponse",Tags:void 0!==output.Tags&&null!==output.Tags?Mt(output.Tags,e):void 0}},Lt=function(output,e){return(output||[]).map((function(e){return e}))},zt=function(output,e){return{__type:"LookupDeveloperIdentityResponse",DeveloperUserIdentifierList:void 0!==output.DeveloperUserIdentifierList&&null!==output.DeveloperUserIdentifierList?_t(output.DeveloperUserIdentifierList):void 0,IdentityId:void 0!==output.IdentityId&&null!==output.IdentityId?output.IdentityId:void 0,NextToken:void 0!==output.NextToken&&null!==output.NextToken?output.NextToken:void 0}},qt=function(output,e){return(output||[]).map((function(e){return function(output,e){return{__type:"MappingRule",Claim:void 0!==output.Claim&&null!==output.Claim?output.Claim:void 0,MatchType:void 0!==output.MatchType&&null!==output.MatchType?output.MatchType:void 0,RoleARN:void 0!==output.RoleARN&&null!==output.RoleARN?output.RoleARN:void 0,Value:void 0!==output.Value&&null!==output.Value?output.Value:void 0}}(e)}))},Ft=function(output,e){return{__type:"MergeDeveloperIdentitiesResponse",IdentityId:void 0!==output.IdentityId&&null!==output.IdentityId?output.IdentityId:void 0}},Ht=function(output,e){return{__type:"NotAuthorizedException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},Vt=function(output,e){return(output||[]).map((function(e){return e}))},Wt=function(output,e){return{__type:"ResourceConflictException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},Kt=function(output,e){return{__type:"ResourceNotFoundException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},Yt=function(output,e){return Object.entries(output).reduce((function(t,n){var o,c=Object(r.__read)(n,2),d=c[0],f=c[1];return Object(r.__assign)(Object(r.__assign)({},t),((o={})[d]=function(output,e){return{__type:"RoleMapping",AmbiguousRoleResolution:void 0!==output.AmbiguousRoleResolution&&null!==output.AmbiguousRoleResolution?output.AmbiguousRoleResolution:void 0,RulesConfiguration:void 0!==output.RulesConfiguration&&null!==output.RulesConfiguration?Jt(output.RulesConfiguration,e):void 0,Type:void 0!==output.Type&&null!==output.Type?output.Type:void 0}}(f,e),o))}),{})},Gt=function(output,e){return Object.entries(output).reduce((function(e,t){var n,o=Object(r.__read)(t,2),c=o[0],d=o[1];return Object(r.__assign)(Object(r.__assign)({},e),((n={})[c]=d,n))}),{})},Jt=function(output,e){return{__type:"RulesConfigurationType",Rules:void 0!==output.Rules&&null!==output.Rules?qt(output.Rules):void 0}},Xt=function(output,e){return(output||[]).map((function(e){return e}))},Zt=function(output,e){return{__type:"TagResourceResponse"}},Qt=function(output,e){return{__type:"TooManyRequestsException",message:void 0!==output.message&&null!==output.message?output.message:void 0}},en=function(output,e){return(output||[]).map((function(e){return function(output,e){return{__type:"UnprocessedIdentityId",ErrorCode:void 0!==output.ErrorCode&&null!==output.ErrorCode?output.ErrorCode:void 0,IdentityId:void 0!==output.IdentityId&&null!==output.IdentityId?output.IdentityId:void 0}}(e)}))},tn=function(output,e){return{__type:"UntagResourceResponse"}},nn=function(output){return{httpStatusCode:output.statusCode,httpHeaders:output.headers,requestId:output.headers["x-amzn-requestid"]}},rn=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},on=function(e,t,path,n,body){return Object(r.__awaiter)(void 0,void 0,void 0,(function(){var c,d,f,l,h,m;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return[4,e.endpoint()];case 1:return c=r.sent(),d=c.hostname,f=c.protocol,l=void 0===f?"https":f,h=c.port,m={protocol:l,hostname:d,port:h,method:"POST",path:path,headers:t},void 0!==n&&(m.hostname=n),void 0!==body&&(m.body=body),[2,new o.HttpRequest(m)]}}))}))},an=function(e,t){return function(e,t){return rn(e,t).then((function(body){return t.utf8Encoder(body)}))}(e,t).then((function(e){return e.length?JSON.parse(e):{}}))}},,,,,,,function(e,t,n){"use strict";(function(e){var r=n(733),o=n(734),c=n(509);function d(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(e,t){if(d()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return v(this,e)}return h(this,e,t,n)}function h(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=y(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|w(t,n),o=(e=f(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|_(t.length);return 0===(e=f(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?f(e,0):y(e,t);if("Buffer"===t.type&&c(t.data))return y(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function m(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 v(e,t){if(m(t),e=f(e,t<0?0:0|_(t)),!l.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function y(e,t){var n=t.length<0?0:0|_(t.length);e=f(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function _(e){if(e>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|e}function w(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function S(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function E(b,e,t){var i=b[e];b[e]=b[t],b[t]=i}function O(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:I(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):I(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function I(e,t,n,r,o){var i,c=1,d=e.length,f=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;c=2,d/=2,f/=2,n/=2}function l(e,i){return 1===c?e[i]:e.readUInt16BE(i*c)}if(o){var h=-1;for(i=n;i<d;i++)if(l(e,i)===l(t,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===f)return h*c}else-1!==h&&(i-=i-h),h=-1}else for(n+f>d&&(n=d-f),i=n;i>=0;i--){for(var m=!0,v=0;v<f;v++)if(l(e,i+v)!==l(t,v)){m=!1;break}if(m)return i}return-1}function x(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var c=t.length;if(c%2!=0)throw new TypeError("Invalid hex string");r>c/2&&(r=c/2);for(var i=0;i<r;++i){var d=parseInt(t.substr(2*i,2),16);if(isNaN(d))return i;e[n+i]=d}return i}function A(e,t,n,r){return X(G(t,e.length-n),e,n,r)}function C(e,t,n,r){return X(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,n,r)}function j(e,t,n,r){return C(e,t,n,r)}function k(e,t,n,r){return X(J(t),e,n,r)}function M(e,t,n,r){return X(function(e,t){for(var n,r,o,c=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,o=n%256,c.push(o),c.push(r);return c}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,c,d,f,l=e[i],h=null,m=l>239?4:l>223?3:l>191?2:1;if(i+m<=n)switch(m){case 1:l<128&&(h=l);break;case 2:128==(192&(o=e[i+1]))&&(f=(31&l)<<6|63&o)>127&&(h=f);break;case 3:o=e[i+1],c=e[i+2],128==(192&o)&&128==(192&c)&&(f=(15&l)<<12|(63&o)<<6|63&c)>2047&&(f<55296||f>57343)&&(h=f);break;case 4:o=e[i+1],c=e[i+2],d=e[i+3],128==(192&o)&&128==(192&c)&&128==(192&d)&&(f=(15&l)<<18|(63&o)<<12|(63&c)<<6|63&d)>65535&&f<1114112&&(h=f)}null===h?(h=65533,m=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),i+=m}return function(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=$));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.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(e){return!1}}(),t.kMaxLength=d(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return h(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return m(t),t<=0?f(e,t):void 0!==n?"string"==typeof r?f(e,t).fill(n,r):f(e,t).fill(n):f(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return v(null,e)},l.allocUnsafeSlow=function(e){return v(null,e)},l.isBuffer=function(b){return!(null==b||!b._isBuffer)},l.compare=function(a,b){if(!l.isBuffer(a)||!l.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var e=a.length,t=b.length,i=0,n=Math.min(e,t);i<n;++i)if(a[i]!==b[i]){e=a[i],t=b[i];break}return e<t?-1:t<e?1:0},l.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}},l.concat=function(e,t){if(!c(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=l.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var o=e[i];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},l.byteLength=w,l.prototype._isBuffer=!0,l.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 i=0;i<e;i+=2)E(this,i,i+1);return this},l.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 i=0;i<e;i+=4)E(this,i,i+3),E(this,i+1,i+2);return this},l.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 i=0;i<e;i+=8)E(this,i,i+7),E(this,i+1,i+6),E(this,i+2,i+5),E(this,i+3,i+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):S.apply(this,arguments)},l.prototype.equals=function(b){if(!l.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===l.compare(this,b)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var c=(o>>>=0)-(r>>>=0),d=(n>>>=0)-(t>>>=0),f=Math.min(c,d),h=this.slice(r,o),m=e.slice(t,n),i=0;i<f;++i)if(h[i]!==m[i]){c=h[i],d=m[i];break}return c<d?-1:d<c?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return O(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return O(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var c=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return C(this,e,t,n);case"latin1":case"binary":return j(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(c)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),c=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=Y(e[i]);return o}function U(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function B(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,c){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<c)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function H(e,t,n,r,o,c){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,c){return c||H(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,c){return c||H(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,c=1,sub=0;for(this[t]=255&e;++i<n&&(c*=256);)e<0&&0===sub&&0!==this[t+i-1]&&(sub=1),this[t+i]=(e/c>>0)-sub&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,c=1,sub=0;for(this[t+i]=255&e;--i>=0&&(c*=256);)e<0&&0===sub&&0!==this[t+i+1]&&(sub=1),this[t+i]=(e/c>>0)-sub&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var code=e.charCodeAt(0);code<256&&(e=code)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=l.isBuffer(e)?e:G(new l(e,r).toString()),c=o.length;for(i=0;i<n-t;++i)this[i+t]=o[i%c]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function G(e,t){var n;t=t||1/0;for(var r=e.length,o=null,c=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&c.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&c.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&c.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&c.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;c.push(n)}else if(n<2048){if((t-=2)<0)break;c.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;c.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return c}function J(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(88))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(567),t),r.__exportStar(n(568),t),r.__exportStar(n(930),t)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return y})),n.d(t,"c",(function(){return _}));n(25),n(2);var r=n(70),o=(n(68),n(69),n(954),n(955),n(22),n(956),n(15),n(8),n(16),n(44));var c=Object.assign,d=Object.getOwnPropertyNames,f=Object.keys,l=(Object.defineProperties,Object.defineProperty,Object.freeze),h=(Object.getOwnPropertyDescriptor,Object.getOwnPropertySymbols,Object.getPrototypeOf,Object.create),m=(Object.isFrozen,Object.is,function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}),v=function(e){return null!==e&&"object"===Object(r.a)(e)},y=function(e){return"[object Object]"===Object.prototype.toString.call(e)},_=function e(t){return f(t).forEach((function(n){var r=t[n];t[n]=r&&(y(r)||Object(o.d)(r))?e(r):r})),l(t)}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(895),t),r.__exportStar(n(897),t)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return h})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y}));n(68),n(69),n(8);var r=n(70),o=function(e){return Object(r.a)(e)},c=function(e){return void 0===e},d=function(e){return null===e},f=function(e){return c(e)||d(e)},l=function(e){return"function"===o(e)},h=function(e){return"boolean"===o(e)},m=function(e){return"string"===o(e)},v=function(e){return e instanceof Date},y=function(e){return e instanceof Event}},function(e,t,n){var r=n(28),o=r.Buffer;function c(e,t){for(var n in e)t[n]=e[n]}function d(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(c(r,t),t.Buffer=d),c(o,d),d.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},d.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},d.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},d.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"i",(function(){return w})),n.d(t,"h",(function(){return S})),n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return O})),n.d(t,"k",(function(){return I})),n.d(t,"g",(function(){return x})),n.d(t,"l",(function(){return A})),n.d(t,"j",(function(){return C})),n.d(t,"e",(function(){return j})),n.d(t,"f",(function(){return k}));n(44);var r=n(62),o=n(36),c=n(30),d=r.f?window:{},f=(r.b&&document,"undefined"!=typeof Element?Element.prototype:{}),l=f.matches||f.msMatchesSelector||f.webkitMatchesSelector,h=f.closest||function(e){var t=this;do{if(S(t,e))return t;t=t.parentElement||t.parentNode}while(!Object(o.e)(t)&&t.nodeType===Node.ELEMENT_NODE);return null},m=(d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.msRequestAnimationFrame||d.oRequestAnimationFrame,d.MutationObserver||d.WebKitMutationObserver||d.MozMutationObserver,function(e){return r.d?Object(c.f)(e)?e:{useCapture:Boolean(e||!1)}:Boolean(Object(c.f)(e)?e.useCapture:e)}),v=function(e,t,n,r){e&&e.addEventListener&&e.addEventListener(t,n,m(r))},y=function(e,t,n,r){e&&e.removeEventListener&&e.removeEventListener(t,n,m(r))},_=function(e){return Boolean(e&&e.nodeType===Node.ELEMENT_NODE)},w=function(e){return _(e)&&e.offsetHeight},S=function(e,t){return!!_(e)&&l.call(e,t)},E=function(e,t){if(!_(t))return null;var n=h.call(t,e);return n===t?null:n},O=function(e,t){t&&_(e)&&e.classList&&e.classList.add(t)},I=function(e,t){t&&_(e)&&e.classList&&e.classList.remove(t)},x=function(e,t){return!!(t&&_(e)&&e.classList)&&e.classList.contains(t)},A=function(e,t,n){t&&_(e)&&e.setAttribute(t,n)},C=function(e,t){t&&_(e)&&e.removeAttribute(t)},j=function(e){return _(e)?e.getBoundingClientRect():null},k=function(e){return r.f&&_(e)?d.getComputedStyle(e):{}}},,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));n(153),n(609);var r=Array.from,o=Array.isArray,c=function(e,t){return-1!==e.indexOf(t)},d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply([],t)}},,function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var content=function(e,t){var content=e[1]||"",n=e[3];if(!n)return content;if(t&&"function"==typeof btoa){var r=(c=n,d=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(d),"/*# ".concat(data," */")),o=n.sources.map((function(source){return"/*# sourceURL=".concat(n.sourceRoot).concat(source," */")}));return[content].concat(o).concat([r]).join("\n")}var c,d,data;return[content].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(content,"}"):content})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var c=0;c<e.length;c++){var d=e[c];null!=d[0]&&r[d[0]]||(n&&!d[2]?d[2]=n:n&&(d[2]="(".concat(d[2],") and (").concat(n,")")),t.push(d))}},t}},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],c=o[0],d={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[c]?r[c].parts.push(d):n.push(r[c]={id:c,parts:[d]})}return n}n.r(t),n.d(t,"default",(function(){return _}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c={},head=o&&(document.head||document.getElementsByTagName("head")[0]),d=null,f=0,l=!1,h=function(){},m=null,v="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function _(e,t,n,o){l=n,m=o||{};var d=r(e,t);return w(d),function(t){for(var n=[],i=0;i<d.length;i++){var o=d[i];(f=c[o.id]).refs--,n.push(f)}t?w(d=r(e,t)):d=[];for(i=0;i<n.length;i++){var f;if(0===(f=n[i]).refs){for(var l=0;l<f.parts.length;l++)f.parts[l]();delete c[f.id]}}}}function w(e){for(var i=0;i<e.length;i++){var t=e[i],n=c[t.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](t.parts[r]);for(;r<t.parts.length;r++)n.parts.push(E(t.parts[r]));n.parts.length>t.parts.length&&(n.parts.length=t.parts.length)}else{var o=[];for(r=0;r<t.parts.length;r++)o.push(E(t.parts[r]));c[t.id]={id:t.id,refs:1,parts:o}}}}function S(){var e=document.createElement("style");return e.type="text/css",head.appendChild(e),e}function E(e){var t,n,r=document.querySelector("style["+v+'~="'+e.id+'"]');if(r){if(l)return h;r.parentNode.removeChild(r)}if(y){var o=f++;r=d||(d=S()),t=x.bind(null,r,o,!1),n=x.bind(null,r,o,!0)}else r=S(),t=A.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var O,I=(O=[],function(e,t){return O[e]=t,O.filter(Boolean).join("\n")});function x(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=I(t,o);else{var c=document.createTextNode(o),d=e.childNodes;d[t]&&e.removeChild(d[t]),d.length?e.insertBefore(c,d[t]):e.appendChild(c)}}function A(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),m.ssrId&&e.setAttribute(v,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},,,function(e,t,n){"use strict";var r=n(20);t.a=r.default},,,,,,,,,,,function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function c(e,base,t){if(c.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==base&&"be"!==base||(t=base,base=10),this._init(e||0,base||10,t||"be"))}var d;"object"==typeof e?e.exports=c:t.BN=c,c.BN=c,c.wordSize=26;try{d=n(768).Buffer}catch(e){}function f(e,t,n){for(var r=0,o=Math.min(e.length,n),i=t;i<o;i++){var c=e.charCodeAt(i)-48;r<<=4,r|=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:15&c}return r}function l(e,t,n,r){for(var o=0,c=Math.min(e.length,n),i=t;i<c;i++){var d=e.charCodeAt(i)-48;o*=r,o+=d>=49?d-49+10:d>=17?d-17+10:d}return o}c.isBN=function(e){return e instanceof c||null!==e&&"object"==typeof e&&e.constructor.wordSize===c.wordSize&&Array.isArray(e.words)},c.max=function(e,t){return e.cmp(t)>0?e:t},c.min=function(e,t){return e.cmp(t)<0?e:t},c.prototype._init=function(e,base,t){if("number"==typeof e)return this._initNumber(e,base,t);if("object"==typeof e)return this._initArray(e,base,t);"hex"===base&&(base=16),r(base===(0|base)&&base>=2&&base<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===base?this._parseHex(e,n):this._parseBase(e,base,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===t&&this._initArray(this.toArray(),base,t)},c.prototype._initNumber=function(e,base,t){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===t&&this._initArray(this.toArray(),base,t)},c.prototype._initArray=function(e,base,t){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o,c=0;if("be"===t)for(i=e.length-1,n=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);else if("le"===t)for(i=0,n=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[n]|=o<<c&67108863,this.words[n+1]=o>>>26-c&67108863,(c+=24)>=26&&(c-=26,n++);return this.strip()},c.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,r,o=0;for(i=e.length-6,n=0;i>=t;i-=6)r=f(e,i,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);i+6!==t&&(r=f(e,t,i+6),this.words[n]|=r<<o&67108863,this.words[n+1]|=r>>>26-o&4194303),this.strip()},c.prototype._parseBase=function(e,base,t){this.words=[0],this.length=1;for(var n=0,r=1;r<=67108863;r*=base)n++;n--,r=r/base|0;for(var o=e.length-t,c=o%n,d=Math.min(o,o-c)+t,f=0,i=t;i<d;i+=n)f=l(e,i,i+n,base),this.imuln(r),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==c){var h=1;for(f=l(e,i,e.length,base),i=0;i<c;i++)h*=base;this.imuln(h),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},c.prototype.copy=function(e){e.words=new Array(this.length);for(var i=0;i<this.length;i++)e.words[i]=this.words[i];e.length=this.length,e.negative=this.negative,e.red=this.red},c.prototype.clone=function(){var e=new c(null);return this.copy(e),e},c.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},c.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},c.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],b=0|t.words[0],o=a*b,c=67108863&o,d=o/67108864|0;n.words[0]=c;for(var f=1;f<r;f++){for(var l=d>>>26,h=67108863&d,m=Math.min(f,t.length-1),v=Math.max(0,f-e.length+1);v<=m;v++){var i=f-v|0;l+=(o=(a=0|e.words[i])*(b=0|t.words[v])+h)/67108864|0,h=67108863&o}n.words[f]=0|h,d=0|l}return 0!==d?n.words[f]=0|d:n.length--,n.strip()}c.prototype.toString=function(base,e){var t;if(e=0|e||1,16===(base=base||10)||"hex"===base){t="";for(var n=0,o=0,i=0;i<this.length;i++){var c=this.words[i],d=(16777215&(c<<n|o)).toString(16);t=0!==(o=c>>>24-n&16777215)||i!==this.length-1?h[6-d.length]+d+t:d+t,(n+=2)>=26&&(n-=26,i--)}for(0!==o&&(t=o.toString(16)+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}if(base===(0|base)&&base>=2&&base<=36){var f=m[base],l=v[base];t="";var y=this.clone();for(y.negative=0;!y.isZero();){var _=y.modn(l).toString(base);t=(y=y.idivn(l)).isZero()?_+t:h[f-_.length]+_+t}for(this.isZero()&&(t="0"+t);t.length%e!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}r(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(e,t){return r(void 0!==d),this.toArrayLike(d,e,t)},c.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},c.prototype.toArrayLike=function(e,t,n){var o=this.byteLength(),c=n||Math.max(1,o);r(o<=c,"byte array longer than desired length"),r(c>0,"Requested array length <= 0"),this.strip();var b,i,d="le"===t,f=new e(c),q=this.clone();if(d){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[i]=b;for(;i<c;i++)f[i]=0}else{for(i=0;i<c-o;i++)f[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[c-i-1]=b}return f},Math.clz32?c.prototype._countBits=function(e){return 32-Math.clz32(e)}:c.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},c.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},c.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(e+=b,26!==b)break}return e},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},c.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return 0!==this.negative},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var i=0;i<e.length;i++)this.words[i]=this.words[i]|e.words[i];return this.strip()},c.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},c.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},c.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},c.prototype.iuand=function(e){var b;b=this.length>e.length?e:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=b.length,this.strip()},c.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},c.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},c.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},c.prototype.iuxor=function(e){var a,b;this.length>e.length?(a=this,b=e):(a=e,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},c.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},c.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},c.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},c.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},c.prototype.notn=function(e){return this.clone().inotn(e)},c.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},c.prototype.iadd=function(e){var t,a,b;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(a=this,b=e):(a=e,b=this);for(var n=0,i=0;i<b.length;i++)t=(0|a.words[i])+(0|b.words[i])+n,this.words[i]=67108863&t,n=t>>>26;for(;0!==n&&i<a.length;i++)t=(0|a.words[i])+n,this.words[i]=67108863&t,n=t>>>26;if(this.length=a.length,0!==n)this.words[this.length]=n,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},c.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},c.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a,b,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(a=this,b=e):(a=e,b=this);for(var r=0,i=0;i<b.length;i++)r=(t=(0|a.words[i])-(0|b.words[i])+r)>>26,this.words[i]=67108863&t;for(;0!==r&&i<a.length;i++)r=(t=(0|a.words[i])+r)>>26,this.words[i]=67108863&t;if(0===r&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},c.prototype.sub=function(e){return this.clone().isub(e)};var _=function(e,t,n){var r,o,c,a=e.words,b=t.words,d=n.words,f=0,l=0|a[0],h=8191&l,m=l>>>13,v=0|a[1],y=8191&v,_=v>>>13,w=0|a[2],S=8191&w,E=w>>>13,O=0|a[3],I=8191&O,x=O>>>13,A=0|a[4],C=8191&A,j=A>>>13,k=0|a[5],M=8191&k,T=k>>>13,P=0|a[6],$=8191&P,R=P>>>13,D=0|a[7],N=8191&D,U=D>>>13,B=0|a[8],L=8191&B,z=B>>>13,F=0|a[9],H=8191&F,V=F>>>13,W=0|b[0],K=8191&W,Y=W>>>13,G=0|b[1],J=8191&G,X=G>>>13,Z=0|b[2],Q=8191&Z,ee=Z>>>13,te=0|b[3],ne=8191&te,re=te>>>13,ie=0|b[4],oe=8191&ie,ae=ie>>>13,se=0|b[5],ce=8191&se,ue=se>>>13,de=0|b[6],fe=8191&de,le=de>>>13,he=0|b[7],pe=8191&he,ge=he>>>13,me=0|b[8],be=8191&me,ve=me>>>13,ye=0|b[9],_e=8191&ye,we=ye>>>13;n.negative=e.negative^t.negative,n.length=19;var Se=(f+(r=Math.imul(h,K))|0)+((8191&(o=(o=Math.imul(h,Y))+Math.imul(m,K)|0))<<13)|0;f=((c=Math.imul(m,Y))+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(y,K),o=(o=Math.imul(y,Y))+Math.imul(_,K)|0,c=Math.imul(_,Y);var Ee=(f+(r=r+Math.imul(h,J)|0)|0)+((8191&(o=(o=o+Math.imul(h,X)|0)+Math.imul(m,J)|0))<<13)|0;f=((c=c+Math.imul(m,X)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(S,K),o=(o=Math.imul(S,Y))+Math.imul(E,K)|0,c=Math.imul(E,Y),r=r+Math.imul(y,J)|0,o=(o=o+Math.imul(y,X)|0)+Math.imul(_,J)|0,c=c+Math.imul(_,X)|0;var Oe=(f+(r=r+Math.imul(h,Q)|0)|0)+((8191&(o=(o=o+Math.imul(h,ee)|0)+Math.imul(m,Q)|0))<<13)|0;f=((c=c+Math.imul(m,ee)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(I,K),o=(o=Math.imul(I,Y))+Math.imul(x,K)|0,c=Math.imul(x,Y),r=r+Math.imul(S,J)|0,o=(o=o+Math.imul(S,X)|0)+Math.imul(E,J)|0,c=c+Math.imul(E,X)|0,r=r+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(_,Q)|0,c=c+Math.imul(_,ee)|0;var Ie=(f+(r=r+Math.imul(h,ne)|0)|0)+((8191&(o=(o=o+Math.imul(h,re)|0)+Math.imul(m,ne)|0))<<13)|0;f=((c=c+Math.imul(m,re)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(C,K),o=(o=Math.imul(C,Y))+Math.imul(j,K)|0,c=Math.imul(j,Y),r=r+Math.imul(I,J)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(x,J)|0,c=c+Math.imul(x,X)|0,r=r+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(E,Q)|0,c=c+Math.imul(E,ee)|0,r=r+Math.imul(y,ne)|0,o=(o=o+Math.imul(y,re)|0)+Math.imul(_,ne)|0,c=c+Math.imul(_,re)|0;var xe=(f+(r=r+Math.imul(h,oe)|0)|0)+((8191&(o=(o=o+Math.imul(h,ae)|0)+Math.imul(m,oe)|0))<<13)|0;f=((c=c+Math.imul(m,ae)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,K),o=(o=Math.imul(M,Y))+Math.imul(T,K)|0,c=Math.imul(T,Y),r=r+Math.imul(C,J)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(j,J)|0,c=c+Math.imul(j,X)|0,r=r+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,ee)|0)+Math.imul(x,Q)|0,c=c+Math.imul(x,ee)|0,r=r+Math.imul(S,ne)|0,o=(o=o+Math.imul(S,re)|0)+Math.imul(E,ne)|0,c=c+Math.imul(E,re)|0,r=r+Math.imul(y,oe)|0,o=(o=o+Math.imul(y,ae)|0)+Math.imul(_,oe)|0,c=c+Math.imul(_,ae)|0;var Ae=(f+(r=r+Math.imul(h,ce)|0)|0)+((8191&(o=(o=o+Math.imul(h,ue)|0)+Math.imul(m,ce)|0))<<13)|0;f=((c=c+Math.imul(m,ue)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul($,K),o=(o=Math.imul($,Y))+Math.imul(R,K)|0,c=Math.imul(R,Y),r=r+Math.imul(M,J)|0,o=(o=o+Math.imul(M,X)|0)+Math.imul(T,J)|0,c=c+Math.imul(T,X)|0,r=r+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(j,Q)|0,c=c+Math.imul(j,ee)|0,r=r+Math.imul(I,ne)|0,o=(o=o+Math.imul(I,re)|0)+Math.imul(x,ne)|0,c=c+Math.imul(x,re)|0,r=r+Math.imul(S,oe)|0,o=(o=o+Math.imul(S,ae)|0)+Math.imul(E,oe)|0,c=c+Math.imul(E,ae)|0,r=r+Math.imul(y,ce)|0,o=(o=o+Math.imul(y,ue)|0)+Math.imul(_,ce)|0,c=c+Math.imul(_,ue)|0;var Ce=(f+(r=r+Math.imul(h,fe)|0)|0)+((8191&(o=(o=o+Math.imul(h,le)|0)+Math.imul(m,fe)|0))<<13)|0;f=((c=c+Math.imul(m,le)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(N,K),o=(o=Math.imul(N,Y))+Math.imul(U,K)|0,c=Math.imul(U,Y),r=r+Math.imul($,J)|0,o=(o=o+Math.imul($,X)|0)+Math.imul(R,J)|0,c=c+Math.imul(R,X)|0,r=r+Math.imul(M,Q)|0,o=(o=o+Math.imul(M,ee)|0)+Math.imul(T,Q)|0,c=c+Math.imul(T,ee)|0,r=r+Math.imul(C,ne)|0,o=(o=o+Math.imul(C,re)|0)+Math.imul(j,ne)|0,c=c+Math.imul(j,re)|0,r=r+Math.imul(I,oe)|0,o=(o=o+Math.imul(I,ae)|0)+Math.imul(x,oe)|0,c=c+Math.imul(x,ae)|0,r=r+Math.imul(S,ce)|0,o=(o=o+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,c=c+Math.imul(E,ue)|0,r=r+Math.imul(y,fe)|0,o=(o=o+Math.imul(y,le)|0)+Math.imul(_,fe)|0,c=c+Math.imul(_,le)|0;var je=(f+(r=r+Math.imul(h,pe)|0)|0)+((8191&(o=(o=o+Math.imul(h,ge)|0)+Math.imul(m,pe)|0))<<13)|0;f=((c=c+Math.imul(m,ge)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(L,K),o=(o=Math.imul(L,Y))+Math.imul(z,K)|0,c=Math.imul(z,Y),r=r+Math.imul(N,J)|0,o=(o=o+Math.imul(N,X)|0)+Math.imul(U,J)|0,c=c+Math.imul(U,X)|0,r=r+Math.imul($,Q)|0,o=(o=o+Math.imul($,ee)|0)+Math.imul(R,Q)|0,c=c+Math.imul(R,ee)|0,r=r+Math.imul(M,ne)|0,o=(o=o+Math.imul(M,re)|0)+Math.imul(T,ne)|0,c=c+Math.imul(T,re)|0,r=r+Math.imul(C,oe)|0,o=(o=o+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,c=c+Math.imul(j,ae)|0,r=r+Math.imul(I,ce)|0,o=(o=o+Math.imul(I,ue)|0)+Math.imul(x,ce)|0,c=c+Math.imul(x,ue)|0,r=r+Math.imul(S,fe)|0,o=(o=o+Math.imul(S,le)|0)+Math.imul(E,fe)|0,c=c+Math.imul(E,le)|0,r=r+Math.imul(y,pe)|0,o=(o=o+Math.imul(y,ge)|0)+Math.imul(_,pe)|0,c=c+Math.imul(_,ge)|0;var ke=(f+(r=r+Math.imul(h,be)|0)|0)+((8191&(o=(o=o+Math.imul(h,ve)|0)+Math.imul(m,be)|0))<<13)|0;f=((c=c+Math.imul(m,ve)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(H,K),o=(o=Math.imul(H,Y))+Math.imul(V,K)|0,c=Math.imul(V,Y),r=r+Math.imul(L,J)|0,o=(o=o+Math.imul(L,X)|0)+Math.imul(z,J)|0,c=c+Math.imul(z,X)|0,r=r+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,ee)|0)+Math.imul(U,Q)|0,c=c+Math.imul(U,ee)|0,r=r+Math.imul($,ne)|0,o=(o=o+Math.imul($,re)|0)+Math.imul(R,ne)|0,c=c+Math.imul(R,re)|0,r=r+Math.imul(M,oe)|0,o=(o=o+Math.imul(M,ae)|0)+Math.imul(T,oe)|0,c=c+Math.imul(T,ae)|0,r=r+Math.imul(C,ce)|0,o=(o=o+Math.imul(C,ue)|0)+Math.imul(j,ce)|0,c=c+Math.imul(j,ue)|0,r=r+Math.imul(I,fe)|0,o=(o=o+Math.imul(I,le)|0)+Math.imul(x,fe)|0,c=c+Math.imul(x,le)|0,r=r+Math.imul(S,pe)|0,o=(o=o+Math.imul(S,ge)|0)+Math.imul(E,pe)|0,c=c+Math.imul(E,ge)|0,r=r+Math.imul(y,be)|0,o=(o=o+Math.imul(y,ve)|0)+Math.imul(_,be)|0,c=c+Math.imul(_,ve)|0;var Me=(f+(r=r+Math.imul(h,_e)|0)|0)+((8191&(o=(o=o+Math.imul(h,we)|0)+Math.imul(m,_e)|0))<<13)|0;f=((c=c+Math.imul(m,we)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(H,J),o=(o=Math.imul(H,X))+Math.imul(V,J)|0,c=Math.imul(V,X),r=r+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(z,Q)|0,c=c+Math.imul(z,ee)|0,r=r+Math.imul(N,ne)|0,o=(o=o+Math.imul(N,re)|0)+Math.imul(U,ne)|0,c=c+Math.imul(U,re)|0,r=r+Math.imul($,oe)|0,o=(o=o+Math.imul($,ae)|0)+Math.imul(R,oe)|0,c=c+Math.imul(R,ae)|0,r=r+Math.imul(M,ce)|0,o=(o=o+Math.imul(M,ue)|0)+Math.imul(T,ce)|0,c=c+Math.imul(T,ue)|0,r=r+Math.imul(C,fe)|0,o=(o=o+Math.imul(C,le)|0)+Math.imul(j,fe)|0,c=c+Math.imul(j,le)|0,r=r+Math.imul(I,pe)|0,o=(o=o+Math.imul(I,ge)|0)+Math.imul(x,pe)|0,c=c+Math.imul(x,ge)|0,r=r+Math.imul(S,be)|0,o=(o=o+Math.imul(S,ve)|0)+Math.imul(E,be)|0,c=c+Math.imul(E,ve)|0;var Te=(f+(r=r+Math.imul(y,_e)|0)|0)+((8191&(o=(o=o+Math.imul(y,we)|0)+Math.imul(_,_e)|0))<<13)|0;f=((c=c+Math.imul(_,we)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(H,Q),o=(o=Math.imul(H,ee))+Math.imul(V,Q)|0,c=Math.imul(V,ee),r=r+Math.imul(L,ne)|0,o=(o=o+Math.imul(L,re)|0)+Math.imul(z,ne)|0,c=c+Math.imul(z,re)|0,r=r+Math.imul(N,oe)|0,o=(o=o+Math.imul(N,ae)|0)+Math.imul(U,oe)|0,c=c+Math.imul(U,ae)|0,r=r+Math.imul($,ce)|0,o=(o=o+Math.imul($,ue)|0)+Math.imul(R,ce)|0,c=c+Math.imul(R,ue)|0,r=r+Math.imul(M,fe)|0,o=(o=o+Math.imul(M,le)|0)+Math.imul(T,fe)|0,c=c+Math.imul(T,le)|0,r=r+Math.imul(C,pe)|0,o=(o=o+Math.imul(C,ge)|0)+Math.imul(j,pe)|0,c=c+Math.imul(j,ge)|0,r=r+Math.imul(I,be)|0,o=(o=o+Math.imul(I,ve)|0)+Math.imul(x,be)|0,c=c+Math.imul(x,ve)|0;var Pe=(f+(r=r+Math.imul(S,_e)|0)|0)+((8191&(o=(o=o+Math.imul(S,we)|0)+Math.imul(E,_e)|0))<<13)|0;f=((c=c+Math.imul(E,we)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(H,ne),o=(o=Math.imul(H,re))+Math.imul(V,ne)|0,c=Math.imul(V,re),r=r+Math.imul(L,oe)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(z,oe)|0,c=c+Math.imul(z,ae)|0,r=r+Math.imul(N,ce)|0,o=(o=o+Math.imul(N,ue)|0)+Math.imul(U,ce)|0,c=c+Math.imul(U,ue)|0,r=r+Math.imul($,fe)|0,o=(o=o+Math.imul($,le)|0)+Math.imul(R,fe)|0,c=c+Math.imul(R,le)|0,r=r+Math.imul(M,pe)|0,o=(o=o+Math.imul(M,ge)|0)+Math.imul(T,pe)|0,c=c+Math.imul(T,ge)|0,r=r+Math.imul(C,be)|0,o=(o=o+Math.imul(C,ve)|0)+Math.imul(j,be)|0,c=c+Math.imul(j,ve)|0;var $e=(f+(r=r+Math.imul(I,_e)|0)|0)+((8191&(o=(o=o+Math.imul(I,we)|0)+Math.imul(x,_e)|0))<<13)|0;f=((c=c+Math.imul(x,we)|0)+(o>>>13)|0)+($e>>>26)|0,$e&=67108863,r=Math.imul(H,oe),o=(o=Math.imul(H,ae))+Math.imul(V,oe)|0,c=Math.imul(V,ae),r=r+Math.imul(L,ce)|0,o=(o=o+Math.imul(L,ue)|0)+Math.imul(z,ce)|0,c=c+Math.imul(z,ue)|0,r=r+Math.imul(N,fe)|0,o=(o=o+Math.imul(N,le)|0)+Math.imul(U,fe)|0,c=c+Math.imul(U,le)|0,r=r+Math.imul($,pe)|0,o=(o=o+Math.imul($,ge)|0)+Math.imul(R,pe)|0,c=c+Math.imul(R,ge)|0,r=r+Math.imul(M,be)|0,o=(o=o+Math.imul(M,ve)|0)+Math.imul(T,be)|0,c=c+Math.imul(T,ve)|0;var Re=(f+(r=r+Math.imul(C,_e)|0)|0)+((8191&(o=(o=o+Math.imul(C,we)|0)+Math.imul(j,_e)|0))<<13)|0;f=((c=c+Math.imul(j,we)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(H,ce),o=(o=Math.imul(H,ue))+Math.imul(V,ce)|0,c=Math.imul(V,ue),r=r+Math.imul(L,fe)|0,o=(o=o+Math.imul(L,le)|0)+Math.imul(z,fe)|0,c=c+Math.imul(z,le)|0,r=r+Math.imul(N,pe)|0,o=(o=o+Math.imul(N,ge)|0)+Math.imul(U,pe)|0,c=c+Math.imul(U,ge)|0,r=r+Math.imul($,be)|0,o=(o=o+Math.imul($,ve)|0)+Math.imul(R,be)|0,c=c+Math.imul(R,ve)|0;var De=(f+(r=r+Math.imul(M,_e)|0)|0)+((8191&(o=(o=o+Math.imul(M,we)|0)+Math.imul(T,_e)|0))<<13)|0;f=((c=c+Math.imul(T,we)|0)+(o>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(H,fe),o=(o=Math.imul(H,le))+Math.imul(V,fe)|0,c=Math.imul(V,le),r=r+Math.imul(L,pe)|0,o=(o=o+Math.imul(L,ge)|0)+Math.imul(z,pe)|0,c=c+Math.imul(z,ge)|0,r=r+Math.imul(N,be)|0,o=(o=o+Math.imul(N,ve)|0)+Math.imul(U,be)|0,c=c+Math.imul(U,ve)|0;var Ne=(f+(r=r+Math.imul($,_e)|0)|0)+((8191&(o=(o=o+Math.imul($,we)|0)+Math.imul(R,_e)|0))<<13)|0;f=((c=c+Math.imul(R,we)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(H,pe),o=(o=Math.imul(H,ge))+Math.imul(V,pe)|0,c=Math.imul(V,ge),r=r+Math.imul(L,be)|0,o=(o=o+Math.imul(L,ve)|0)+Math.imul(z,be)|0,c=c+Math.imul(z,ve)|0;var Ue=(f+(r=r+Math.imul(N,_e)|0)|0)+((8191&(o=(o=o+Math.imul(N,we)|0)+Math.imul(U,_e)|0))<<13)|0;f=((c=c+Math.imul(U,we)|0)+(o>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,r=Math.imul(H,be),o=(o=Math.imul(H,ve))+Math.imul(V,be)|0,c=Math.imul(V,ve);var Be=(f+(r=r+Math.imul(L,_e)|0)|0)+((8191&(o=(o=o+Math.imul(L,we)|0)+Math.imul(z,_e)|0))<<13)|0;f=((c=c+Math.imul(z,we)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Le=(f+(r=Math.imul(H,_e))|0)+((8191&(o=(o=Math.imul(H,we))+Math.imul(V,_e)|0))<<13)|0;return f=((c=Math.imul(V,we))+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,d[0]=Se,d[1]=Ee,d[2]=Oe,d[3]=Ie,d[4]=xe,d[5]=Ae,d[6]=Ce,d[7]=je,d[8]=ke,d[9]=Me,d[10]=Te,d[11]=Pe,d[12]=$e,d[13]=Re,d[14]=De,d[15]=Ne,d[16]=Ue,d[17]=Be,d[18]=Le,0!==f&&(d[19]=f,n.length++),n};function w(e,t,n){return(new S).mulp(e,t,n)}function S(e,t){this.x=e,this.y=t}Math.imul||(_=y),c.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?_(this,e,t):n<63?y(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,c=0;c<n.length-1;c++){var d=o;o=0;for(var f=67108863&r,l=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=l;h++){var i=c-h,m=(0|e.words[i])*(0|t.words[h]),v=67108863&m;f=67108863&(v=v+f|0),o+=(d=(d=d+(m/67108864|0)|0)+(v>>>26)|0)>>>26,d&=67108863}n.words[c]=f,r=d,d=o}return 0!==r?n.words[c]=r:n.length--,n.strip()}(this,e,t):w(this,e,t)},S.prototype.makeRBT=function(e){for(var t=new Array(e),n=c.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,n,e);return t},S.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},S.prototype.permute=function(e,t,n,r,o,c){for(var i=0;i<c;i++)r[i]=t[e[i]],o[i]=n[e[i]]},S.prototype.transform=function(e,t,n,r,o,c){this.permute(c,e,t,n,r,o);for(var s=1;s<o;s<<=1)for(var d=s<<1,f=Math.cos(2*Math.PI/d),l=Math.sin(2*Math.PI/d),p=0;p<o;p+=d)for(var h=f,m=l,v=0;v<s;v++){var y=n[p+v],_=r[p+v],w=n[p+v+s],S=r[p+v+s],E=h*w-m*S;S=h*S+m*w,w=E,n[p+v]=y+w,r[p+v]=_+S,n[p+v+s]=y-w,r[p+v+s]=_-S,v!==d&&(E=f*h-l*m,m=f*m+l*h,h=E)}},S.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},S.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=e[i];e[i]=e[n-i-1],e[n-i-1]=r,r=t[i],t[i]=-t[n-i-1],t[n-i-1]=-r}},S.prototype.normalize13b=function(e,t){for(var n=0,i=0;i<t/2;i++){var r=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+n;e[i]=67108863&r,n=r<67108864?0:r/67108864|0}return e},S.prototype.convert13b=function(e,t,n,o){for(var c=0,i=0;i<t;i++)c+=0|e[i],n[2*i]=8191&c,c>>>=13,n[2*i+1]=8191&c,c>>>=13;for(i=2*t;i<o;++i)n[i]=0;r(0===c),r(0==(-8192&c))},S.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},S.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(r),c=this.stub(r),d=new Array(r),f=new Array(r),l=new Array(r),h=new Array(r),m=new Array(r),v=new Array(r),y=n.words;y.length=r,this.convert13b(e.words,e.length,d,r),this.convert13b(t.words,t.length,h,r),this.transform(d,c,f,l,r,o),this.transform(h,c,m,v,r,o);for(var i=0;i<r;i++){var _=f[i]*m[i]-l[i]*v[i];l[i]=f[i]*v[i]+l[i]*m[i],f[i]=_}return this.conjugate(f,l,r),this.transform(f,l,y,c,r,o),this.conjugate(y,c,r),this.normalize13b(y,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},c.prototype.mul=function(e){var t=new c(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},c.prototype.mulf=function(e){var t=new c(null);return t.words=new Array(this.length+e.length),w(this,e,t)},c.prototype.imul=function(e){return this.clone().mulTo(e,this)},c.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,o=(67108863&n)+(67108863&t);t>>=26,t+=n/67108864|0,t+=o>>>26,this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},c.prototype.muln=function(e){return this.clone().imuln(e)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,o=n%26;t[n]=(e.words[r]&1<<o)>>>o}return t}(e);if(0===t.length)return new c(1);for(var n=this,i=0;i<t.length&&0===t[i];i++,n=n.sqr());if(++i<t.length)for(var q=n.sqr();i<t.length;i++,q=q.sqr())0!==t[i]&&(n=n.mul(q));return n},c.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var i,t=e%26,s=(e-t)/26,n=67108863>>>26-t<<26-t;if(0!==t){var o=0;for(i=0;i<this.length;i++){var c=this.words[i]&n,d=(0|this.words[i])-c<<t;this.words[i]=d|o,o=c>>>26-t}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},c.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},c.prototype.iushrn=function(e,t,n){var o;r("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var c=e%26,s=Math.min((e-c)/26,this.length),mask=67108863^67108863>>>c<<c,d=n;if(o-=s,o=Math.max(0,o),d){for(var i=0;i<s;i++)d.words[i]=this.words[i];d.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var l=0|this.words[i];this.words[i]=f<<26-c|l>>>c,f=l&mask}return d&&0!==f&&(d.words[d.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},c.prototype.shln=function(e){return this.clone().ishln(e)},c.prototype.ushln=function(e){return this.clone().iushln(e)},c.prototype.shrn=function(e){return this.clone().ishrn(e)},c.prototype.ushrn=function(e){return this.clone().iushrn(e)},c.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26,q=1<<t;return!(this.length<=s)&&!!(this.words[s]&q)},c.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,s=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==t&&s++,this.length=Math.min(s,this.length),0!==t){var mask=67108863^67108863>>>t<<t;this.words[this.length-1]&=mask}return this.strip()},c.prototype.maskn=function(e){return this.clone().imaskn(e)},c.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},c.prototype._iaddn=function(e){this.words[0]+=e;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},c.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},c.prototype.addn=function(e){return this.clone().iaddn(e)},c.prototype.subn=function(e){return this.clone().isubn(e)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(e,t,n){var i,o,c=e.length+n;this._expand(c);var d=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+d;var f=(0|e.words[i])*t;d=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)d=(o=(0|this.words[i+n])+d)>>26,this.words[i+n]=67108863&o;if(0===d)return this.strip();for(r(-1===d),d=0,i=0;i<this.length;i++)d=(o=-(0|this.words[i])+d)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},c.prototype._wordDiv=function(e,t){var n=(this.length,e.length),a=this.clone(),b=e,r=0|b.words[b.length-1];0!==(n=26-this._countBits(r))&&(b=b.ushln(n),a.iushln(n),r=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==t){(q=new c(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var d=a.clone()._ishlnsubmul(b,1,o);0===d.negative&&(a=d,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var l=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(l=Math.min(l/r|0,67108863),a._ishlnsubmul(b,l,f);0!==a.negative;)l--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=l)}return q&&q.strip(),a.strip(),"div"!==t&&0!==n&&a.iushrn(n),{div:q||null,mod:a}},c.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new c(0),mod:new c(0)}:0!==this.negative&&0===e.negative?(d=this.neg().divmod(e,t),"mod"!==t&&(div=d.div.neg()),"div"!==t&&(o=d.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:div,mod:o}):0===this.negative&&0!==e.negative?(d=this.divmod(e.neg(),t),"mod"!==t&&(div=d.div.neg()),{div:div,mod:d.mod}):0!=(this.negative&e.negative)?(d=this.neg().divmod(e.neg(),t),"div"!==t&&(o=d.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:d.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new c(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new c(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new c(this.modn(e.words[0]))}:this._wordDiv(e,t);var div,o,d},c.prototype.div=function(e){return this.divmod(e,"div",!1).div},c.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},c.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},c.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),o=e.andln(1),c=n.cmp(r);return c<0||1===o&&0===c?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},c.prototype.modn=function(e){r(e<=67108863);for(var p=(1<<26)%e,t=0,i=this.length-1;i>=0;i--)t=(p*t+(0|this.words[i]))%e;return t},c.prototype.idivn=function(e){r(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*t;this.words[i]=n/e|0,t=n%e}return this.strip()},c.prototype.divn=function(e){return this.clone().idivn(e)},c.prototype.egcd=function(p){r(0===p.negative),r(!p.isZero());var e=this,t=p.clone();e=0!==e.negative?e.umod(p):e.clone();for(var n=new c(1),o=new c(0),d=new c(0),f=new c(1),g=0;e.isEven()&&t.isEven();)e.iushrn(1),t.iushrn(1),++g;for(var l=t.clone(),h=e.clone();!e.isZero();){for(var i=0,m=1;0==(e.words[0]&m)&&i<26;++i,m<<=1);if(i>0)for(e.iushrn(i);i-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(l),o.isub(h)),n.iushrn(1),o.iushrn(1);for(var v=0,y=1;0==(t.words[0]&y)&&v<26;++v,y<<=1);if(v>0)for(t.iushrn(v);v-- >0;)(d.isOdd()||f.isOdd())&&(d.iadd(l),f.isub(h)),d.iushrn(1),f.iushrn(1);e.cmp(t)>=0?(e.isub(t),n.isub(d),o.isub(f)):(t.isub(e),d.isub(n),f.isub(o))}return{a:d,b:f,gcd:t.iushln(g)}},c.prototype._invmp=function(p){r(0===p.negative),r(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var e,t=new c(1),n=new c(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,d=1;0==(a.words[0]&d)&&i<26;++i,d<<=1);if(i>0)for(a.iushrn(i);i-- >0;)t.isOdd()&&t.iadd(o),t.iushrn(1);for(var f=0,l=1;0==(b.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(b.iushrn(f);f-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);a.cmp(b)>=0?(a.isub(b),t.isub(n)):(b.isub(a),n.isub(t))}return(e=0===a.cmpn(1)?t:n).cmpn(0)<0&&e.iadd(p),e},c.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var a=this.clone(),b=e.clone();a.negative=0,b.negative=0;for(var t=0;a.isEven()&&b.isEven();t++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var n=a.cmp(b);if(n<0){var r=a;a=b,b=r}else if(0===n||0===b.cmpn(1))break;a.isub(b)}return b.iushln(t)},c.prototype.invm=function(e){return this.egcd(e).a.umod(e)},c.prototype.isEven=function(){return 0==(1&this.words[0])},c.prototype.isOdd=function(){return 1==(1&this.words[0])},c.prototype.andln=function(e){return this.words[0]&e},c.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,s=(e-t)/26,q=1<<t;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var n=q,i=s;0!==n&&i<this.length;i++){var o=0|this.words[i];n=(o+=n)>>>26,o&=67108863,this.words[i]=o}return 0!==n&&(this.words[i]=n,this.length++),this},c.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},c.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},c.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},c.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|e.words[i];if(a!==b){a<b?t=-1:a>b&&(t=1);break}}return t},c.prototype.gtn=function(e){return 1===this.cmpn(e)},c.prototype.gt=function(e){return 1===this.cmp(e)},c.prototype.gten=function(e){return this.cmpn(e)>=0},c.prototype.gte=function(e){return this.cmp(e)>=0},c.prototype.ltn=function(e){return-1===this.cmpn(e)},c.prototype.lt=function(e){return-1===this.cmp(e)},c.prototype.lten=function(e){return this.cmpn(e)<=0},c.prototype.lte=function(e){return this.cmp(e)<=0},c.prototype.eqn=function(e){return 0===this.cmpn(e)},c.prototype.eq=function(e){return 0===this.cmp(e)},c.red=function(e){return new j(e)},c.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},c.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(e){return this.red=e,this},c.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},c.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},c.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},c.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},c.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},c.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},c.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},c.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},c.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var E={k256:null,p224:null,p192:null,p25519:null};function O(e,p){this.name=e,this.p=new c(p,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function I(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function j(e){if("string"==typeof e){var t=c._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){j.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}O.prototype._tmp=function(){var e=new c(null);return e.words=new Array(Math.ceil(this.n/13)),e},O.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},O.prototype.split=function(input,e){input.iushrn(this.n,0,e)},O.prototype.imulK=function(e){return e.imul(this.k)},o(I,O),I.prototype.split=function(input,output){for(var e=Math.min(input.length,9),i=0;i<e;i++)output.words[i]=input.words[i];if(output.length=e,input.length<=9)return input.words[0]=0,void(input.length=1);var t=input.words[9];for(output.words[output.length++]=4194303&t,i=10;i<input.length;i++){var n=0|input.words[i];input.words[i-10]=(4194303&n)<<4|t>>>22,t=n}t>>>=22,input.words[i-10]=t,0===t&&input.length>10?input.length-=10:input.length-=9},I.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(x,O),o(A,O),o(C,O),C.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,r=67108863&n;n>>>=26,e.words[i]=r,t=n}return 0!==t&&(e.words[e.length++]=t),e},c._prime=function(e){if(E[e])return E[e];var t;if("k256"===e)t=new I;else if("p224"===e)t=new x;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new C}return E[e]=t,t},j.prototype._verify1=function(a){r(0===a.negative,"red works only with positives"),r(a.red,"red works only with red numbers")},j.prototype._verify2=function(a,b){r(0==(a.negative|b.negative),"red works only with positives"),r(a.red&&a.red===b.red,"red works only with red numbers")},j.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},j.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},j.prototype.add=function(a,b){this._verify2(a,b);var e=a.add(b);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},j.prototype.iadd=function(a,b){this._verify2(a,b);var e=a.iadd(b);return e.cmp(this.m)>=0&&e.isub(this.m),e},j.prototype.sub=function(a,b){this._verify2(a,b);var e=a.sub(b);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},j.prototype.isub=function(a,b){this._verify2(a,b);var e=a.isub(b);return e.cmpn(0)<0&&e.iadd(this.m),e},j.prototype.shl=function(a,e){return this._verify1(a),this.imod(a.ushln(e))},j.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},j.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},j.prototype.isqr=function(a){return this.imul(a,a.clone())},j.prototype.sqr=function(a){return this.mul(a,a)},j.prototype.sqrt=function(a){if(a.isZero())return a.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var t=this.m.add(new c(1)).iushrn(2);return this.pow(a,t)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);r(!q.isZero());var n=new c(1).toRed(this),o=n.redNeg(),d=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new c(2*f*f).toRed(this);0!==this.pow(f,d).cmp(o);)f.redIAdd(o);for(var l=this.pow(f,q),h=this.pow(a,q.addn(1).iushrn(1)),m=this.pow(a,q),v=s;0!==m.cmp(n);){for(var y=m,i=0;0!==y.cmp(n);i++)y=y.redSqr();r(i<v);var b=this.pow(l,new c(1).iushln(v-i-1));h=h.redMul(b),l=b.redSqr(),m=m.redMul(l),v=i}return h},j.prototype.invm=function(a){var e=a._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},j.prototype.pow=function(a,e){if(e.isZero())return new c(1).toRed(this);if(0===e.cmpn(1))return a.clone();var t=new Array(16);t[0]=new c(1).toRed(this),t[1]=a;for(var i=2;i<t.length;i++)t[i]=this.mul(t[i-1],a);var n=t[0],r=0,o=0,d=e.bitLength()%26;for(0===d&&(d=26),i=e.length-1;i>=0;i--){for(var f=e.words[i],l=d-1;l>=0;l--){var h=f>>l&1;n!==t[0]&&(n=this.sqr(n)),0!==h||0!==r?(r<<=1,r|=h,(4===++o||0===i&&0===l)&&(n=this.mul(n,t[r]),o=0,r=0)):o=0}d=26}return n},j.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},j.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},c.mont=function(e){return new k(e)},o(k,j),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var e=a.imul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},k.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new c(0)._forceRed(this);var e=a.mul(b),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=e.isub(t).iushrn(this.shift),n=u;return u.cmp(this.m)>=0?n=u.isub(this.m):u.cmpn(0)<0&&(n=u.iadd(this.m)),n._forceRed(this)},k.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(532)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"f",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"a",(function(){return y}));n(8);var r="undefined"!=typeof window,o="undefined"!=typeof document,c="undefined"!=typeof navigator,d="undefined"!=typeof Promise,f="undefined"!=typeof MutationObserver||"undefined"!=typeof WebKitMutationObserver||"undefined"!=typeof MozMutationObserver,l=r&&o&&c,h=l?window.navigator.userAgent.toLowerCase():"",m=h.indexOf("jsdom")>0,v=(/msie|trident/.test(h),function(){var e=!1;if(l)try{var t={get passive(){e=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e}()),y=(l&&("ontouchstart"in document.documentElement||navigator.maxTouchPoints),l&&Boolean(window.PointerEvent||window.MSPointerEvent),l&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&window.IntersectionObserverEntry.prototype,function(){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=void 0!==e&&e&&e.env||{};return t?r[t]||n:r}("BOOTSTRAP_VUE_NO_WARN")})}).call(this,n(107))},,,,,,,,,,,,,,,,function(e,t,n){var r;e.exports=(r=r||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},c=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},d=o.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var c=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=c<<24-(r+i)%4*8}else for(i=0;i<o;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,mask=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&mask)<<16)+(t=18e3*(65535&t)+(t>>16)&mask)&mask;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var c=o(4294967296*(n||e.random()));n=987654071*c(),r.push(4294967296*c()|0)}return new d.init(r,t)}}),f=r.enc={},l=f.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new d.init(n,t/2)}},h=f.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new d.init(n,t)}},m=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},v=o.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(data){"string"==typeof data&&(data=m.parse(data)),this._data.concat(data),this._nDataBytes+=data.sigBytes},_process:function(t){var data=this._data,n=data.words,r=data.sigBytes,o=this.blockSize,c=r/(4*o),f=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*o,l=e.min(4*f,r);if(f){for(var h=0;h<f;h+=o)this._doProcessBlock(n,h);var m=n.splice(0,f);data.sigBytes-=l}return new d.init(m,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),y=(o.Hasher=v.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new y.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math),r)},function(e,t,n){"use strict";var r=n(878),o=n(879);function c(){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=x,t.resolve=function(source,e){return x(source,!1,!0).resolve(e)},t.resolveObject=function(source,e){return source?x(source,!1,!0).resolveObject(e):e},t.format=function(e){o.isString(e)&&(e=x(e));return e instanceof c?e.format():c.prototype.format.call(e)},t.Url=c;var d=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),m=["'"].concat(h),v=["%","/","?",";","#"].concat(m),y=["/","?","#"],_=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},I=n(880);function x(e,t,n){if(e&&o.isObject(e)&&e instanceof c)return e;var u=new c;return u.parse(e,t,n),u}c.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var c=e.indexOf("?"),f=-1!==c&&c<e.indexOf("#")?"?":"#",h=e.split(f);h[0]=h[0].replace(/\\/g,"/");var x=e=h.join(f);if(x=x.trim(),!n&&1===e.split("#").length){var A=l.exec(x);if(A)return this.path=x,this.href=x,this.pathname=A[1],A[2]?(this.search=A[2],this.query=t?I.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var C=d.exec(x);if(C){var j=(C=C[0]).toLowerCase();this.protocol=j,x=x.substr(C.length)}if(n||C||x.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===x.substr(0,2);!k||C&&E[C]||(x=x.substr(2),this.slashes=!0)}if(!E[C]&&(k||C&&!O[C])){for(var M,T,P=-1,i=0;i<y.length;i++){-1!==($=x.indexOf(y[i]))&&(-1===P||$<P)&&(P=$)}-1!==(T=-1===P?x.lastIndexOf("@"):x.lastIndexOf("@",P))&&(M=x.slice(0,T),x=x.slice(T+1),this.auth=decodeURIComponent(M)),P=-1;for(i=0;i<v.length;i++){var $;-1!==($=x.indexOf(v[i]))&&(-1===P||$<P)&&(P=$)}-1===P&&(P=x.length),this.host=x.slice(0,P),x=x.slice(P),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var D=this.hostname.split(/\./),N=(i=0,D.length);i<N;i++){var U=D[i];if(U&&!U.match(_)){for(var B="",L=0,z=U.length;L<z;L++)U.charCodeAt(L)>127?B+="x":B+=U[L];if(!B.match(_)){var F=D.slice(0,i),H=D.slice(i+1),V=U.match(w);V&&(F.push(V[1]),H.unshift(V[2])),H.length&&(x="/"+H.join(".")+x),this.hostname=F.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var p=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+p,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==x[0]&&(x="/"+x))}if(!S[j])for(i=0,N=m.length;i<N;i++){var K=m[i];if(-1!==x.indexOf(K)){var Y=encodeURIComponent(K);Y===K&&(Y=escape(K)),x=x.split(K).join(Y)}}var G=x.indexOf("#");-1!==G&&(this.hash=x.substr(G),x=x.slice(0,G));var J=x.indexOf("?");if(-1!==J?(this.search=x.substr(J),this.query=x.substr(J+1),t&&(this.query=I.parse(this.query)),x=x.slice(0,J)):t&&(this.search="",this.query={}),x&&(this.pathname=x),O[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){p=this.pathname||"";var s=this.search||"";this.path=p+s}return this.href=this.format(),this},c.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",c=!1,d="";this.host?c=e+this.host:this.hostname&&(c=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(c+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(d=I.stringify(this.query));var f=this.search||d&&"?"+d||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||O[t])&&!1!==c?(c="//"+(c||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):c||(c=""),r&&"#"!==r.charAt(0)&&(r="#"+r),f&&"?"!==f.charAt(0)&&(f="?"+f),t+c+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(f=f.replace("#","%23"))+r},c.prototype.resolve=function(e){return this.resolveObject(x(e,!1,!0)).format()},c.prototype.resolveObject=function(e){if(o.isString(e)){var t=new c;t.parse(e,!1,!0),e=t}for(var n=new c,r=Object.keys(this),d=0;d<r.length;d++){var f=r[d];n[f]=this[f]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),h=0;h<l.length;h++){var m=l[h];"protocol"!==m&&(n[m]=e[m])}return O[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!O[e.protocol]){for(var v=Object.keys(e),y=0;y<v.length;y++){var _=v[y];n[_]=e[_]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||E[e.protocol])n.pathname=e.pathname;else{for(var w=(e.pathname||"").split("/");w.length&&!(e.host=w.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==w[0]&&w.unshift(""),w.length<2&&w.unshift(""),n.pathname=w.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",s=n.search||"";n.path=p+s}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var S=n.pathname&&"/"===n.pathname.charAt(0),I=e.host||e.pathname&&"/"===e.pathname.charAt(0),x=I||S||n.host&&e.pathname,A=x,C=n.pathname&&n.pathname.split("/")||[],j=(w=e.pathname&&e.pathname.split("/")||[],n.protocol&&!O[n.protocol]);if(j&&(n.hostname="",n.port=null,n.host&&(""===C[0]?C[0]=n.host:C.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===w[0]?w[0]=e.host:w.unshift(e.host)),e.host=null),x=x&&(""===w[0]||""===C[0])),I)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,C=w;else if(w.length)C||(C=[]),C.pop(),C=C.concat(w),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(j)n.hostname=n.host=C.shift(),(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!C.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=C.slice(-1)[0],M=(n.host||e.host||C.length>1)&&("."===k||".."===k)||""===k,T=0,i=C.length;i>=0;i--)"."===(k=C[i])?C.splice(i,1):".."===k?(C.splice(i,1),T++):T&&(C.splice(i,1),T--);if(!x&&!A)for(;T--;T)C.unshift("..");!x||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),M&&"/"!==C.join("/").substr(-1)&&C.push("");var P,$=""===C[0]||C[0]&&"/"===C[0].charAt(0);j&&(n.hostname=n.host=$?"":C.length?C.shift():"",(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift()));return(x=x||n.host&&C.length)&&!$&&C.unshift(""),C.length?n.pathname=C.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},c.prototype.parseHost=function(){var e=this.host,t=f.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},,,function(e,t,n){e.exports={addDays:n(185),addHours:n(474),addISOYears:n(475),addMilliseconds:n(186),addMinutes:n(477),addMonths:n(227),addQuarters:n(478),addSeconds:n(479),addWeeks:n(330),addYears:n(480),areRangesOverlapping:n(636),closestIndexTo:n(637),closestTo:n(638),compareAsc:n(188),compareDesc:n(331),differenceInCalendarDays:n(226),differenceInCalendarISOWeeks:n(639),differenceInCalendarISOYears:n(481),differenceInCalendarMonths:n(482),differenceInCalendarQuarters:n(640),differenceInCalendarWeeks:n(641),differenceInCalendarYears:n(484),differenceInDays:n(485),differenceInHours:n(642),differenceInISOYears:n(643),differenceInMilliseconds:n(228),differenceInMinutes:n(644),differenceInMonths:n(332),differenceInQuarters:n(645),differenceInSeconds:n(333),differenceInWeeks:n(646),differenceInYears:n(602),distanceInWords:n(487),distanceInWordsStrict:n(650),distanceInWordsToNow:n(651),eachDay:n(652),endOfDay:n(335),endOfHour:n(653),endOfISOWeek:n(654),endOfISOYear:n(655),endOfMinute:n(656),endOfMonth:n(489),endOfQuarter:n(657),endOfSecond:n(658),endOfToday:n(659),endOfTomorrow:n(660),endOfWeek:n(488),endOfYear:n(661),endOfYesterday:n(662),format:n(336),getDate:n(663),getDay:n(664),getDayOfYear:n(490),getDaysInMonth:n(329),getDaysInYear:n(665),getHours:n(666),getISODay:n(494),getISOWeek:n(337),getISOWeeksInYear:n(667),getISOYear:n(141),getMilliseconds:n(668),getMinutes:n(669),getMonth:n(670),getOverlappingDaysInRanges:n(671),getQuarter:n(483),getSeconds:n(672),getTime:n(673),getYear:n(674),isAfter:n(675),isBefore:n(676),isDate:n(328),isEqual:n(677),isFirstDayOfMonth:n(678),isFriday:n(679),isFuture:n(604),isLastDayOfMonth:n(680),isLeapYear:n(493),isMonday:n(681),isPast:n(605),isSameDay:n(682),isSameHour:n(495),isSameISOWeek:n(497),isSameISOYear:n(498),isSameMinute:n(499),isSameMonth:n(501),isSameQuarter:n(502),isSameSecond:n(504),isSameWeek:n(338),isSameYear:n(506),isSaturday:n(683),isSunday:n(684),isThisHour:n(685),isThisISOWeek:n(686),isThisISOYear:n(687),isThisMinute:n(688),isThisMonth:n(689),isThisQuarter:n(690),isThisSecond:n(691),isThisWeek:n(692),isThisYear:n(693),isThursday:n(694),isToday:n(695),isTomorrow:n(696),isTuesday:n(697),isValid:n(492),isWednesday:n(698),isWeekend:n(699),isWithinRange:n(700),isYesterday:n(701),lastDayOfISOWeek:n(702),lastDayOfISOYear:n(703),lastDayOfMonth:n(704),lastDayOfQuarter:n(705),lastDayOfWeek:n(507),lastDayOfYear:n(706),max:n(707),min:n(708),parse:n(10),setDate:n(709),setDay:n(710),setDayOfYear:n(711),setHours:n(712),setISODay:n(713),setISOWeek:n(714),setISOYear:n(476),setMilliseconds:n(715),setMinutes:n(716),setMonth:n(508),setQuarter:n(717),setSeconds:n(718),setYear:n(719),startOfDay:n(143),startOfHour:n(496),startOfISOWeek:n(142),startOfISOYear:n(187),startOfMinute:n(500),startOfMonth:n(720),startOfQuarter:n(503),startOfSecond:n(505),startOfToday:n(721),startOfTomorrow:n(722),startOfWeek:n(225),startOfYear:n(491),startOfYesterday:n(723),subDays:n(724),subHours:n(725),subISOYears:n(486),subMilliseconds:n(726),subMinutes:n(727),subMonths:n(728),subQuarters:n(729),subSeconds:n(730),subWeeks:n(731),subYears:n(732)}},,,,,,,,,,,,,,function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,o=n(61),c=n(96),d=n(534);r.assert=c,r.toArray=d.toArray,r.zero2=d.zero2,r.toHex=d.toHex,r.encode=d.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var o=1<<t+1,c=e.clone(),i=0;i<r.length;i++){var d,f=c.andln(o-1);c.isOdd()?(d=f>(o>>1)-1?(o>>1)-f:f,c.isubn(d)):d=0,r[i]=d,c.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,o=0;e.cmpn(-r)>0||t.cmpn(-o)>0;){var c,d,f,l=e.andln(3)+r&3,h=t.andln(3)+o&3;if(3===l&&(l=-1),3===h&&(h=-1),0==(1&l))c=0;else c=3!==(f=e.andln(7)+r&7)&&5!==f||2!==h?l:-l;if(n[0].push(c),0==(1&h))d=0;else d=3!==(f=t.andln(7)+o&7)&&5!==f||2!==l?h:-h;n[1].push(d),2*r===c+1&&(r=1-r),2*o===d+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new o(e,"hex","le")}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},o={kebab:/-(\w)/g,styleProp:/:(.*)/,styleList:/;(?![^(]*\))/g};function c(e,t){return t?t.toUpperCase():""}function s(e){for(var s,a={},t=0,n=e.split(o.styleList);t<n.length;t++){var r=n[t].split(o.styleProp),i=r[0],d=r[1];(i=i.trim())&&("string"==typeof d&&(d=d.trim()),a[(s=i,s.replace(o.kebab,c))]=d)}return a}function a(){for(var e,t,a={},n=arguments.length;n--;)for(var o=0,c=Object.keys(arguments[n]);o<c.length;o++)switch(e=c[o]){case"class":case"style":case"directives":if(Array.isArray(a[e])||(a[e]=[]),"style"===e){var i=void 0;i=Array.isArray(arguments[n].style)?arguments[n].style:[arguments[n].style];for(var d=0;d<i.length;d++){var f=i[d];"string"==typeof f&&(i[d]=s(f))}arguments[n].style=i}a[e]=a[e].concat(arguments[n][e]);break;case"staticClass":if(!arguments[n][e])break;void 0===a[e]&&(a[e]=""),a[e]&&(a[e]+=" "),a[e]+=arguments[n][e].trim();break;case"on":case"nativeOn":a[e]||(a[e]={});for(var p=0,l=Object.keys(arguments[n][e]||{});p<l.length;p++)t=l[p],a[e][t]?a[e][t]=[].concat(a[e][t],arguments[n][e][t]):a[e][t]=arguments[n][e][t];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":a[e]||(a[e]={}),a[e]=r({},arguments[n][e],a[e]);break;case"slot":case"key":case"ref":case"tag":case"show":case"keepAlive":default:a[e]||(a[e]=arguments[n][e])}return a}},,,,,,,,,function(e,t,n){"use strict";var r=n(96),o=n(35);function c(e,i){return 55296==(64512&e.charCodeAt(i))&&(!(i<0||i+1>=e.length)&&56320==(64512&e.charCodeAt(i+1)))}function d(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function f(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var p=0,i=0;i<e.length;i++){var r=e.charCodeAt(i);r<128?n[p++]=r:r<2048?(n[p++]=r>>6|192,n[p++]=63&r|128):c(e,i)?(r=65536+((1023&r)<<10)+(1023&e.charCodeAt(++i)),n[p++]=r>>18|240,n[p++]=r>>12&63|128,n[p++]=r>>6&63|128,n[p++]=63&r|128):(n[p++]=r>>12|224,n[p++]=r>>6&63|128,n[p++]=63&r|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",i=0;i<e.length;i++)t+=f(e[i].toString(16));return t},t.htonl=d,t.toHex32=function(e,t){for(var n="",i=0;i<e.length;i++){var r=e[i];"little"===t&&(r=d(r)),n+=l(r.toString(16))}return n},t.zero2=f,t.zero8=l,t.join32=function(e,t,n,o){var c=n-t;r(c%4==0);for(var d=new Array(c/4),i=0,f=t;i<d.length;i++,f+=4){var l;l="big"===o?e[f]<<24|e[f+1]<<16|e[f+2]<<8|e[f+3]:e[f+3]<<24|e[f+2]<<16|e[f+1]<<8|e[f],d[i]=l>>>0}return d},t.split32=function(e,t){for(var n=new Array(4*e.length),i=0,r=0;i<e.length;i++,r+=4){var o=e[i];"big"===t?(n[r]=o>>>24,n[r+1]=o>>>16&255,n[r+2]=o>>>8&255,n[r+3]=255&o):(n[r+3]=o>>>24,n[r+2]=o>>>16&255,n[r+1]=o>>>8&255,n[r]=255&o)}return n},t.rotr32=function(e,b){return e>>>b|e<<32-b},t.rotl32=function(e,b){return e<<b|e>>>32-b},t.sum32=function(a,b){return a+b>>>0},t.sum32_3=function(a,b,e){return a+b+e>>>0},t.sum32_4=function(a,b,e,t){return a+b+e+t>>>0},t.sum32_5=function(a,b,e,t,n){return a+b+e+t+n>>>0},t.sum64=function(e,t,n,r){var o=e[t],c=r+e[t+1]>>>0,d=(c<r?1:0)+n+o;e[t]=d>>>0,e[t+1]=c},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,c,d,dl){var f=0,l=t;return f+=(l=l+r>>>0)<t?1:0,f+=(l=l+c>>>0)<c?1:0,e+n+o+d+(f+=(l=l+dl>>>0)<dl?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,c,d,dl){return t+r+c+dl>>>0},t.sum64_5_hi=function(e,t,n,r,o,c,d,dl,f,l){var h=0,m=t;return h+=(m=m+r>>>0)<t?1:0,h+=(m=m+c>>>0)<c?1:0,h+=(m=m+dl>>>0)<dl?1:0,e+n+o+d+f+(h+=(m=m+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,c,d,dl,f,l){return t+r+c+dl+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toHex=t.fromHex=void 0;for(var r={},o={},i=0;i<256;i++){var c=i.toString(16).toLowerCase();1===c.length&&(c="0"+c),r[i]=c,o[c]=i}t.fromHex=function(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");for(var t=new Uint8Array(e.length/2),i=0;i<e.length;i+=2){var n=e.substr(i,2).toLowerCase();if(!(n in o))throw new Error("Cannot decode unrecognized sequence "+n+" as hexadecimal");t[i/2]=o[n]}return t},t.toHex=function(e){for(var t="",i=0;i<e.byteLength;i++)t+=r[e[i]];return t}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0;var r=n(916),o=n(917);t.fromUtf8=function(input){return"function"==typeof TextEncoder?o.fromUtf8(input):r.fromUtf8(input)},t.toUtf8=function(input){return"function"==typeof TextDecoder?o.toUtf8(input):r.toUtf8(input)}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return w}));var r=n(50),o=n(135),c=n(204),d=n(203),f=n(136),l=r.a.prototype,h=function(e){return l.$bvConfig?l.$bvConfig.getConfigValue(e):Object(o.a)(Object(c.a)(f.a,e))},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?h("".concat(e,".").concat(t)):h(e)||{}},v=function(){return h("breakpoints")},y=Object(d.a)((function(){return v()})),_=function(){return Object(o.a)(y())},w=Object(d.a)((function(){var e=_();return e[0]="",e}))},function(e,t,n){"use strict";var r=n(171),o=n(1204),c=n(303),d=n(1205),f=new r.a("ClientDevice_Browser");function l(){return"undefined"==typeof window?{}:function(){if("undefined"==typeof window)return f.warn("No window object available to get browser client info"),{};var nav=window.navigator;if(!nav)return f.warn("No navigator object available to get browser client info"),{};var e=nav.platform,t=nav.product,n=nav.vendor,r=nav.userAgent,o=nav.language,c=function(e){var t=/.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(e);if(t)return{type:t[1],version:t[2]};var n=/.+(Trident|Edge)\/([0-9\.]+).*/i.exec(e);if(n)return{type:n[1],version:n[2]};var r=/.+(Chrome|Firefox|FxiOS)\/([0-9\.]+).*/i.exec(e);if(r)return{type:r[1],version:r[2]};var o=/.+(Safari)\/([0-9\.]+).*/i.exec(e);if(o)return{type:o[1],version:o[2]};var c=/.+(AppleWebKit)\/([0-9\.]+).*/i.exec(e);if(c)return{type:c[1],version:c[2]};var d=/.*([A-Z]+)\/([0-9\.]+).*/i.exec(e);if(d)return{type:d[1],version:d[2]};return{type:"",version:""}}(r),d=(l=/\(([A-Za-z\s].*)\)/.exec((new Date).toString()),l&&l[1]||"");var l;return{platform:e,make:t||n,model:c.type,version:c.version,appVersion:[c.type,c.version].join("/"),language:o,timezone:d}}()}var h=function(){function e(){}return e.clientInfo=function(){return l()},e.dimension=function(){return"undefined"==typeof window?(f.warn("No window object available to get browser client info"),{width:320,height:320}):{width:window.innerWidth,height:window.innerHeight}},e}(),m=n(277),v=n(112),y=n(79),_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},w={clockOffset:0,getDateWithClockOffset:function(){return w.clockOffset?new Date((new Date).getTime()+w.clockOffset):new Date},getClockOffset:function(){return w.clockOffset},getHeaderStringFromDate:function(e){return void 0===e&&(e=w.getDateWithClockOffset()),e.toISOString().replace(/[:\-]|\.\d{3}/g,"")},getDateFromHeaderString:function(header){var e=_(header.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/),7),t=e[1],n=e[2],r=e[3],o=e[4],c=e[5],d=e[6];return new Date(Date.UTC(Number(t),Number(n)-1,Number(r),Number(o),Number(c),Number(d)))},isClockSkewed:function(e){return Math.abs(e.getTime()-w.getDateWithClockOffset().getTime())>=3e5},isClockSkewError:function(e){if(!e.response||!e.response.headers)return!1;var t=e.response.headers;return Boolean("BadRequestException"===t["x-amzn-errortype"]&&(t.date||t.Date))},setClockOffset:function(e){w.clockOffset=e}},S=function(){return(S=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e}).apply(this,arguments)},E=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]])}return t},O=new r.a("Signer"),I=function(e,t){var n=new m.Sha256(e);return n.update(t),n.digestSync()},x=function(e){var t=e||"",n=new m.Sha256;return n.update(t),Object(v.toHex)(n.digestSync())},A=function(e){return Object.keys(e).map((function(e){return e.toLowerCase()})).sort().join(";")},C=function(e){var t,n,r=Object(y.parse)(e.url);return[e.method||"/",encodeURIComponent(r.pathname).replace(/%2F/gi,"/"),(n=r.query,n&&0!==n.length?n.split("&").map((function(e){var t=e.split("=");if(1===t.length)return e;var n=t[1].replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}));return t[0]+"="+n})).sort((function(a,b){var e=a.split("=")[0],t=b.split("=")[0];return e===t?a<b?-1:1:e<t?-1:1})).join("&"):""),(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(a,b){return a.key<b.key?-1:1})).map((function(e){return e.key+":"+e.value})).join("\n")+"\n":""),A(e.headers),x(e.data)].join("\n")},j=function(e){var t=(Object(y.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]}},k=function(e,t,n){return[e,t,n,"aws4_request"].join("/")},M=function(e,t,n,r){return[e,n,r,x(t)].join("\n")},T=function(e,t,n){O.debug(n);var r=I("AWS4"+e,t),o=I(r,n.region),c=I(o,n.service);return I(c,"aws4_request")},P=function(e,t){return Object(v.toHex)(I(e,t))},$=function(){function e(){}return e.sign=function(e,t,n){void 0===n&&(n=null),e.headers=e.headers||{};var r=w.getDateWithClockOffset().toISOString().replace(/[:\-]|\.\d{3}/g,""),o=r.substr(0,8),c=Object(y.parse)(e.url);e.headers.host=c.host,e.headers["x-amz-date"]=r,t.session_token&&(e.headers["X-Amz-Security-Token"]=t.session_token);var d=C(e);O.debug(d);var f=n||j(e),l=k(o,f.region,f.service),h=M("AWS4-HMAC-SHA256",d,r,l),m=T(t.secret_key,o,f),v=P(m,h),_=function(e,t,n,r,o){return[e+" Credential="+t+"/"+n,"SignedHeaders="+r,"Signature="+o].join(", ")}("AWS4-HMAC-SHA256",t.access_key,l,A(e.headers),v);return e.headers.Authorization=_,e},e.signUrl=function(e,t,n,r){var o="object"==typeof e?e.url:e,c="object"==typeof e?e.method:"GET",body="object"==typeof e?e.body:void 0,d=w.getDateWithClockOffset().toISOString().replace(/[:\-]|\.\d{3}/g,""),f=d.substr(0,8),l=Object(y.parse)(o,!0,!0),h=(l.search,E(l,["search"])),m={host:h.host},v=n||j({url:Object(y.format)(h)}),_=v.region,O=v.service,I=k(f,_,O),x=t.session_token&&"iotdevicegateway"!==O,A=S(S(S({"X-Amz-Algorithm":"AWS4-HMAC-SHA256","X-Amz-Credential":[t.access_key,I].join("/"),"X-Amz-Date":d.substr(0,16)},x?{"X-Amz-Security-Token":""+t.session_token}:{}),r?{"X-Amz-Expires":""+r}:{}),{"X-Amz-SignedHeaders":Object.keys(m).join(",")}),$=C({method:c,url:Object(y.format)(S(S({},h),{query:S(S({},h.query),A)})),headers:m,data:body}),R=M("AWS4-HMAC-SHA256",$,d,I),D=T(t.secret_key,f,{region:_,service:O}),N=P(D,R),U=S({"X-Amz-Signature":N},t.session_token&&{"X-Amz-Security-Token":t.session_token});return Object(y.format)({protocol:h.protocol,slashes:!0,hostname:h.hostname,port:h.port,pathname:h.pathname,query:S(S(S({},h.query),A),U)})},e}(),R=n(133),D=n(305),N=n(1207),U=n(0),B=n(7),L=n(3),z=function(output,e){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,o,c,d,f,l,h,m,v,y,_;return Object(U.__generator)(this,(function(w){switch(w.label){case 0:return n=[Object(U.__assign)({},output)],r={},[4,xe(output.body,e)];case 1:switch(t=U.__assign.apply(void 0,n.concat([(r.body=w.sent(),r)])),c="UnknownError",c=Ae(output,t.body),c){case"BadRequestException":case"com.amazonaws.pinpoint#BadRequestException":return[3,2];case"ForbiddenException":case"com.amazonaws.pinpoint#ForbiddenException":return[3,4];case"InternalServerErrorException":case"com.amazonaws.pinpoint#InternalServerErrorException":return[3,6];case"MethodNotAllowedException":case"com.amazonaws.pinpoint#MethodNotAllowedException":return[3,8];case"NotFoundException":case"com.amazonaws.pinpoint#NotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.pinpoint#TooManyRequestsException":return[3,12]}return[3,14];case 2:return d=[{}],[4,V(t,e)];case 3:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,d.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 4:return f=[{}],[4,W(t,e)];case 5:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,f.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 6:return l=[{}],[4,K(t,e)];case 7:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,l.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 8:return h=[{}],[4,Y(t,e)];case 9:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,h.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 10:return m=[{}],[4,G(t,e)];case 11:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,m.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 12:return v=[{}],[4,J(t,e)];case 13:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,v.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 14:y=t.body,c=y.code||y.Code||c,o=Object(U.__assign)(Object(U.__assign)({},y),{name:""+c,message:y.message||y.Message||c,$fault:"client",$metadata:Oe(output)}),w.label=15;case 15:return _=o.message||o.Message||c,o.message=_,delete o.Message,[2,Promise.reject(Object.assign(new Error(_),o))]}}))}))},F=function(output,e){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,o,c,d,f,l,h,m,v,y,_;return Object(U.__generator)(this,(function(w){switch(w.label){case 0:return n=[Object(U.__assign)({},output)],r={},[4,xe(output.body,e)];case 1:switch(t=U.__assign.apply(void 0,n.concat([(r.body=w.sent(),r)])),c="UnknownError",c=Ae(output,t.body),c){case"BadRequestException":case"com.amazonaws.pinpoint#BadRequestException":return[3,2];case"ForbiddenException":case"com.amazonaws.pinpoint#ForbiddenException":return[3,4];case"InternalServerErrorException":case"com.amazonaws.pinpoint#InternalServerErrorException":return[3,6];case"MethodNotAllowedException":case"com.amazonaws.pinpoint#MethodNotAllowedException":return[3,8];case"NotFoundException":case"com.amazonaws.pinpoint#NotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.pinpoint#TooManyRequestsException":return[3,12]}return[3,14];case 2:return d=[{}],[4,V(t,e)];case 3:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,d.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 4:return f=[{}],[4,W(t,e)];case 5:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,f.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 6:return l=[{}],[4,K(t,e)];case 7:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,l.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 8:return h=[{}],[4,Y(t,e)];case 9:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,h.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 10:return m=[{}],[4,G(t,e)];case 11:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,m.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 12:return v=[{}],[4,J(t,e)];case 13:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,v.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 14:y=t.body,c=y.code||y.Code||c,o=Object(U.__assign)(Object(U.__assign)({},y),{name:""+c,message:y.message||y.Message||c,$fault:"client",$metadata:Oe(output)}),w.label=15;case 15:return _=o.message||o.Message||c,o.message=_,delete o.Message,[2,Promise.reject(Object.assign(new Error(_),o))]}}))}))},H=function(output,e){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,o,c,d,f,l,h,m,v,y,_;return Object(U.__generator)(this,(function(w){switch(w.label){case 0:return n=[Object(U.__assign)({},output)],r={},[4,xe(output.body,e)];case 1:switch(t=U.__assign.apply(void 0,n.concat([(r.body=w.sent(),r)])),c="UnknownError",c=Ae(output,t.body),c){case"BadRequestException":case"com.amazonaws.pinpoint#BadRequestException":return[3,2];case"ForbiddenException":case"com.amazonaws.pinpoint#ForbiddenException":return[3,4];case"InternalServerErrorException":case"com.amazonaws.pinpoint#InternalServerErrorException":return[3,6];case"MethodNotAllowedException":case"com.amazonaws.pinpoint#MethodNotAllowedException":return[3,8];case"NotFoundException":case"com.amazonaws.pinpoint#NotFoundException":return[3,10];case"TooManyRequestsException":case"com.amazonaws.pinpoint#TooManyRequestsException":return[3,12]}return[3,14];case 2:return d=[{}],[4,V(t,e)];case 3:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,d.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 4:return f=[{}],[4,W(t,e)];case 5:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,f.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 6:return l=[{}],[4,K(t,e)];case 7:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,l.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 8:return h=[{}],[4,Y(t,e)];case 9:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,h.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 10:return m=[{}],[4,G(t,e)];case 11:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,m.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 12:return v=[{}],[4,J(t,e)];case 13:return o=U.__assign.apply(void 0,[U.__assign.apply(void 0,v.concat([w.sent()])),{name:c,$metadata:Oe(output)}]),[3,15];case 14:y=t.body,c=y.code||y.Code||c,o=Object(U.__assign)(Object(U.__assign)({},y),{name:""+c,message:y.message||y.Message||c,$fault:"client",$metadata:Oe(output)}),w.label=15;case 15:return _=o.message||o.Message||c,o.message=_,delete o.Message,[2,Promise.reject(Object.assign(new Error(_),o))]}}))}))},V=function(e,t){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,data;return Object(U.__generator)(this,(function(n){return t={name:"BadRequestException",$fault:"client",$metadata:Oe(e),Message:void 0,RequestID:void 0},void 0!==(data=e.body).Message&&null!==data.Message&&(t.Message=data.Message),void 0!==data.RequestID&&null!==data.RequestID&&(t.RequestID=data.RequestID),[2,t]}))}))},W=function(e,t){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,data;return Object(U.__generator)(this,(function(n){return t={name:"ForbiddenException",$fault:"client",$metadata:Oe(e),Message:void 0,RequestID:void 0},void 0!==(data=e.body).Message&&null!==data.Message&&(t.Message=data.Message),void 0!==data.RequestID&&null!==data.RequestID&&(t.RequestID=data.RequestID),[2,t]}))}))},K=function(e,t){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,data;return Object(U.__generator)(this,(function(n){return t={name:"InternalServerErrorException",$fault:"server",$metadata:Oe(e),Message:void 0,RequestID:void 0},void 0!==(data=e.body).Message&&null!==data.Message&&(t.Message=data.Message),void 0!==data.RequestID&&null!==data.RequestID&&(t.RequestID=data.RequestID),[2,t]}))}))},Y=function(e,t){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,data;return Object(U.__generator)(this,(function(n){return t={name:"MethodNotAllowedException",$fault:"client",$metadata:Oe(e),Message:void 0,RequestID:void 0},void 0!==(data=e.body).Message&&null!==data.Message&&(t.Message=data.Message),void 0!==data.RequestID&&null!==data.RequestID&&(t.RequestID=data.RequestID),[2,t]}))}))},G=function(e,t){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,data;return Object(U.__generator)(this,(function(n){return t={name:"NotFoundException",$fault:"client",$metadata:Oe(e),Message:void 0,RequestID:void 0},void 0!==(data=e.body).Message&&null!==data.Message&&(t.Message=data.Message),void 0!==data.RequestID&&null!==data.RequestID&&(t.RequestID=data.RequestID),[2,t]}))}))},J=function(e,t){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,data;return Object(U.__generator)(this,(function(n){return t={name:"TooManyRequestsException",$fault:"client",$metadata:Oe(e),Message:void 0,RequestID:void 0},void 0!==(data=e.body).Message&&null!==data.Message&&(t.Message=data.Message),void 0!==data.RequestID&&null!==data.RequestID&&(t.RequestID=data.RequestID),[2,t]}))}))},X=function(input,e){return Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)({},void 0!==input.AppVersion&&{AppVersion:input.AppVersion}),void 0!==input.Locale&&{Locale:input.Locale}),void 0!==input.Make&&{Make:input.Make}),void 0!==input.Model&&{Model:input.Model}),void 0!==input.ModelVersion&&{ModelVersion:input.ModelVersion}),void 0!==input.Platform&&{Platform:input.Platform}),void 0!==input.PlatformVersion&&{PlatformVersion:input.PlatformVersion}),void 0!==input.Timezone&&{Timezone:input.Timezone})},Z=function(input,e){return Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)({},void 0!==input.City&&{City:input.City}),void 0!==input.Country&&{Country:input.Country}),void 0!==input.Latitude&&{Latitude:input.Latitude}),void 0!==input.Longitude&&{Longitude:input.Longitude}),void 0!==input.PostalCode&&{PostalCode:input.PostalCode}),void 0!==input.Region&&{Region:input.Region})},Q=function(input,e){return Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)({},void 0!==input.Address&&{Address:input.Address}),void 0!==input.Attributes&&{Attributes:se(input.Attributes,e)}),void 0!==input.ChannelType&&{ChannelType:input.ChannelType}),void 0!==input.Demographic&&{Demographic:X(input.Demographic,e)}),void 0!==input.EffectiveDate&&{EffectiveDate:input.EffectiveDate}),void 0!==input.EndpointStatus&&{EndpointStatus:input.EndpointStatus}),void 0!==input.Location&&{Location:Z(input.Location,e)}),void 0!==input.Metrics&&{Metrics:re(input.Metrics,e)}),void 0!==input.OptOut&&{OptOut:input.OptOut}),void 0!==input.RequestId&&{RequestId:input.RequestId}),void 0!==input.User&&{User:ee(input.User,e)})},ee=function(input,e){return Object(U.__assign)(Object(U.__assign)({},void 0!==input.UserAttributes&&{UserAttributes:se(input.UserAttributes,e)}),void 0!==input.UserId&&{UserId:input.UserId})},te=function(input,e){return Object(U.__assign)({},void 0!==input.BatchItem&&{BatchItem:ae(input.BatchItem,e)})},ne=function(input,e){return input.map((function(e){return e}))},re=function(input,e){return Object.entries(input).reduce((function(e,t){var n,r=Object(U.__read)(t,2),o=r[0],c=r[1];return Object(U.__assign)(Object(U.__assign)({},e),((n={})[o]=c,n))}),{})},ie=function(input,e){return Object.entries(input).reduce((function(e,t){var n,r=Object(U.__read)(t,2),o=r[0],c=r[1];return Object(U.__assign)(Object(U.__assign)({},e),((n={})[o]=c,n))}),{})},oe=function(input,e){return Object.entries(input).reduce((function(t,n){var r,o=Object(U.__read)(n,2),c=o[0],d=o[1];return Object(U.__assign)(Object(U.__assign)({},t),((r={})[c]=function(input,e){return Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)({},void 0!==input.AppPackageName&&{AppPackageName:input.AppPackageName}),void 0!==input.AppTitle&&{AppTitle:input.AppTitle}),void 0!==input.AppVersionCode&&{AppVersionCode:input.AppVersionCode}),void 0!==input.Attributes&&{Attributes:ie(input.Attributes,e)}),void 0!==input.ClientSdkVersion&&{ClientSdkVersion:input.ClientSdkVersion}),void 0!==input.EventType&&{EventType:input.EventType}),void 0!==input.Metrics&&{Metrics:re(input.Metrics,e)}),void 0!==input.SdkName&&{SdkName:input.SdkName}),void 0!==input.Session&&{Session:ue(input.Session,e)}),void 0!==input.Timestamp&&{Timestamp:input.Timestamp})}(d,e),r))}),{})},ae=function(input,e){return Object.entries(input).reduce((function(t,n){var r,o=Object(U.__read)(n,2),c=o[0],d=o[1];return Object(U.__assign)(Object(U.__assign)({},t),((r={})[c]=function(input,e){return Object(U.__assign)(Object(U.__assign)({},void 0!==input.Endpoint&&{Endpoint:ce(input.Endpoint,e)}),void 0!==input.Events&&{Events:oe(input.Events,e)})}(d,e),r))}),{})},se=function(input,e){return Object.entries(input).reduce((function(t,n){var r,o=Object(U.__read)(n,2),c=o[0],d=o[1];return Object(U.__assign)(Object(U.__assign)({},t),((r={})[c]=ne(d,e),r))}),{})},ce=function(input,e){return Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)({},void 0!==input.Address&&{Address:input.Address}),void 0!==input.Attributes&&{Attributes:se(input.Attributes,e)}),void 0!==input.ChannelType&&{ChannelType:input.ChannelType}),void 0!==input.Demographic&&{Demographic:X(input.Demographic,e)}),void 0!==input.EffectiveDate&&{EffectiveDate:input.EffectiveDate}),void 0!==input.EndpointStatus&&{EndpointStatus:input.EndpointStatus}),void 0!==input.Location&&{Location:Z(input.Location,e)}),void 0!==input.Metrics&&{Metrics:re(input.Metrics,e)}),void 0!==input.OptOut&&{OptOut:input.OptOut}),void 0!==input.RequestId&&{RequestId:input.RequestId}),void 0!==input.User&&{User:ee(input.User,e)})},ue=function(input,e){return Object(U.__assign)(Object(U.__assign)(Object(U.__assign)(Object(U.__assign)({},void 0!==input.Duration&&{Duration:input.Duration}),void 0!==input.Id&&{Id:input.Id}),void 0!==input.StartTimestamp&&{StartTimestamp:input.StartTimestamp}),void 0!==input.StopTimestamp&&{StopTimestamp:input.StopTimestamp})},de=function(output,e){return{__type:"EndpointDemographic",AppVersion:void 0!==output.AppVersion&&null!==output.AppVersion?output.AppVersion:void 0,Locale:void 0!==output.Locale&&null!==output.Locale?output.Locale:void 0,Make:void 0!==output.Make&&null!==output.Make?output.Make:void 0,Model:void 0!==output.Model&&null!==output.Model?output.Model:void 0,ModelVersion:void 0!==output.ModelVersion&&null!==output.ModelVersion?output.ModelVersion:void 0,Platform:void 0!==output.Platform&&null!==output.Platform?output.Platform:void 0,PlatformVersion:void 0!==output.PlatformVersion&&null!==output.PlatformVersion?output.PlatformVersion:void 0,Timezone:void 0!==output.Timezone&&null!==output.Timezone?output.Timezone:void 0}},fe=function(output,e){return{__type:"EndpointItemResponse",Message:void 0!==output.Message&&null!==output.Message?output.Message:void 0,StatusCode:void 0!==output.StatusCode&&null!==output.StatusCode?output.StatusCode:void 0}},le=function(output,e){return{__type:"EndpointLocation",City:void 0!==output.City&&null!==output.City?output.City:void 0,Country:void 0!==output.Country&&null!==output.Country?output.Country:void 0,Latitude:void 0!==output.Latitude&&null!==output.Latitude?output.Latitude:void 0,Longitude:void 0!==output.Longitude&&null!==output.Longitude?output.Longitude:void 0,PostalCode:void 0!==output.PostalCode&&null!==output.PostalCode?output.PostalCode:void 0,Region:void 0!==output.Region&&null!==output.Region?output.Region:void 0}},he=function(output,e){return{__type:"EndpointResponse",Address:void 0!==output.Address&&null!==output.Address?output.Address:void 0,ApplicationId:void 0!==output.ApplicationId&&null!==output.ApplicationId?output.ApplicationId:void 0,Attributes:void 0!==output.Attributes&&null!==output.Attributes?Se(output.Attributes,e):void 0,ChannelType:void 0!==output.ChannelType&&null!==output.ChannelType?output.ChannelType:void 0,CohortId:void 0!==output.CohortId&&null!==output.CohortId?output.CohortId:void 0,CreationDate:void 0!==output.CreationDate&&null!==output.CreationDate?output.CreationDate:void 0,Demographic:void 0!==output.Demographic&&null!==output.Demographic?de(output.Demographic):void 0,EffectiveDate:void 0!==output.EffectiveDate&&null!==output.EffectiveDate?output.EffectiveDate:void 0,EndpointStatus:void 0!==output.EndpointStatus&&null!==output.EndpointStatus?output.EndpointStatus:void 0,Id:void 0!==output.Id&&null!==output.Id?output.Id:void 0,Location:void 0!==output.Location&&null!==output.Location?le(output.Location):void 0,Metrics:void 0!==output.Metrics&&null!==output.Metrics?ye(output.Metrics,e):void 0,OptOut:void 0!==output.OptOut&&null!==output.OptOut?output.OptOut:void 0,RequestId:void 0!==output.RequestId&&null!==output.RequestId?output.RequestId:void 0,User:void 0!==output.User&&null!==output.User?ge(output.User,e):void 0}},pe=function(output,e){return{__type:"EndpointsResponse",Item:void 0!==output.Item&&null!==output.Item?ve(output.Item,e):void 0}},ge=function(output,e){return{__type:"EndpointUser",UserAttributes:void 0!==output.UserAttributes&&null!==output.UserAttributes?Se(output.UserAttributes,e):void 0,UserId:void 0!==output.UserId&&null!==output.UserId?output.UserId:void 0}},me=function(output,e){return{__type:"EventsResponse",Results:void 0!==output.Results&&null!==output.Results?we(output.Results,e):void 0}},be=function(output,e){return(output||[]).map((function(e){return e}))},ve=function(output,e){return(output||[]).map((function(t){return he(t,e)}))},ye=function(output,e){return Object.entries(output).reduce((function(e,t){var n,r=Object(U.__read)(t,2),o=r[0],c=r[1];return Object(U.__assign)(Object(U.__assign)({},e),((n={})[o]=c,n))}),{})},_e=function(output,e){return Object.entries(output).reduce((function(e,t){var n,r=Object(U.__read)(t,2),o=r[0],c=r[1];return Object(U.__assign)(Object(U.__assign)({},e),((n={})[o]=function(output,e){return{__type:"EventItemResponse",Message:void 0!==output.Message&&null!==output.Message?output.Message:void 0,StatusCode:void 0!==output.StatusCode&&null!==output.StatusCode?output.StatusCode:void 0}}(c),n))}),{})},we=function(output,e){return Object.entries(output).reduce((function(t,n){var r,o=Object(U.__read)(n,2),c=o[0],d=o[1];return Object(U.__assign)(Object(U.__assign)({},t),((r={})[c]=function(output,e){return{__type:"ItemResponse",EndpointItemResponse:void 0!==output.EndpointItemResponse&&null!==output.EndpointItemResponse?fe(output.EndpointItemResponse):void 0,EventsItemResponse:void 0!==output.EventsItemResponse&&null!==output.EventsItemResponse?_e(output.EventsItemResponse,e):void 0}}(d,e),r))}),{})},Se=function(output,e){return Object.entries(output).reduce((function(t,n){var r,o=Object(U.__read)(n,2),c=o[0],d=o[1];return Object(U.__assign)(Object(U.__assign)({},t),((r={})[c]=be(d,e),r))}),{})},Ee=function(output,e){return{__type:"MessageBody",Message:void 0!==output.Message&&null!==output.Message?output.Message:void 0,RequestID:void 0!==output.RequestID&&null!==output.RequestID?output.RequestID:void 0}},Oe=function(output){return{httpStatusCode:output.statusCode,httpHeaders:output.headers,requestId:output.headers["x-amzn-requestid"]}},Ie=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},xe=function(e,t){return function(e,t){return Ie(e,t).then((function(body){return t.utf8Encoder(body)}))}(e,t).then((function(e){return e.length?JSON.parse(e):{}}))},Ae=function(output,data){var object,e,t=function(e){var t=e;return t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(object=output.headers,e="x-amzn-errortype",Object.keys(object).find((function(t){return t.toLowerCase()===e.toLowerCase()})));return void 0!==n?t(output.headers[n]):void 0!==data.code?t(data.code):void 0!==data.__type?t(data.__type):""},Ce=n(29),je=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(U.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Ce.getSerdePlugin)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return function(input,e){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,body,o,c,d,f,l;return Object(U.__generator)(this,(function(h){switch(h.label){case 0:if(t={"Content-Type":"application/json"},n="/v1/apps/{ApplicationId}/events",void 0===input.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((r=input.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");return n=n.replace("{ApplicationId}",Object(L.extendedEncodeURIComponent)(r)),void 0!==input.EventsRequest&&(body=te(input.EventsRequest,e)),void 0===body&&(body={}),body=JSON.stringify(body),[4,e.endpoint()];case 1:return o=h.sent(),c=o.hostname,d=o.protocol,f=void 0===d?"https":d,l=o.port,[2,new B.HttpRequest({protocol:f,hostname:c,port:l,method:"POST",headers:t,path:n,body:body})]}}))}))}(input,e)},t.prototype.deserialize=function(output,e){return function(output,e){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,data;return Object(U.__generator)(this,(function(n){switch(n.label){case 0:return 202!==output.statusCode&&output.statusCode>=400?[2,F(output,e)]:(t={$metadata:Oe(output),__type:"PutEventsResponse",EventsResponse:void 0},[4,xe(output.body,e)]);case 1:return data=n.sent(),t.EventsResponse=me(data,e),[2,Promise.resolve(t)]}}))}))}(output,e)},t}(L.Command),ke=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(U.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Ce.getSerdePlugin)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return function(input,e){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,body,o,c,d,f,l;return Object(U.__generator)(this,(function(h){switch(h.label){case 0:if(t={"Content-Type":"application/json"},n="/v1/apps/{ApplicationId}/endpoints/{EndpointId}",void 0===input.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((r=input.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(n=n.replace("{ApplicationId}",Object(L.extendedEncodeURIComponent)(r)),void 0===input.EndpointId)throw new Error("No value provided for input HTTP label: EndpointId.");if((r=input.EndpointId).length<=0)throw new Error("Empty value provided for input HTTP label: EndpointId.");return n=n.replace("{EndpointId}",Object(L.extendedEncodeURIComponent)(r)),void 0!==input.EndpointRequest&&(body=Q(input.EndpointRequest,e)),void 0===body&&(body={}),body=JSON.stringify(body),[4,e.endpoint()];case 1:return o=h.sent(),c=o.hostname,d=o.protocol,f=void 0===d?"https":d,l=o.port,[2,new B.HttpRequest({protocol:f,hostname:c,port:l,method:"PUT",headers:t,path:n,body:body})]}}))}))}(input,e)},t.prototype.deserialize=function(output,e){return function(output,e){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,data;return Object(U.__generator)(this,(function(n){switch(n.label){case 0:return 202!==output.statusCode&&output.statusCode>=400?[2,H(output,e)]:(t={$metadata:Oe(output),__type:"UpdateEndpointResponse",MessageBody:void 0},[4,xe(output.body,e)]);case 1:return data=n.sent(),t.MessageBody=Ee(data,e),[2,Promise.resolve(t)]}}))}))}(output,e)},t}(L.Command),Me=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(U.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(Ce.getSerdePlugin)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return function(input,e){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,o,c,d,f,l;return Object(U.__generator)(this,(function(h){switch(h.label){case 0:if(t={"Content-Type":""},n="/v1/apps/{ApplicationId}/users/{UserId}",void 0===input.ApplicationId)throw new Error("No value provided for input HTTP label: ApplicationId.");if((r=input.ApplicationId).length<=0)throw new Error("Empty value provided for input HTTP label: ApplicationId.");if(n=n.replace("{ApplicationId}",Object(L.extendedEncodeURIComponent)(r)),void 0===input.UserId)throw new Error("No value provided for input HTTP label: UserId.");if((r=input.UserId).length<=0)throw new Error("Empty value provided for input HTTP label: UserId.");return n=n.replace("{UserId}",Object(L.extendedEncodeURIComponent)(r)),[4,e.endpoint()];case 1:return o=h.sent(),c=o.hostname,d=o.protocol,f=void 0===d?"https":d,l=o.port,[2,new B.HttpRequest({protocol:f,hostname:c,port:l,method:"GET",headers:t,path:n,body:void 0})]}}))}))}(input,e)},t.prototype.deserialize=function(output,e){return function(output,e){return Object(U.__awaiter)(void 0,void 0,void 0,(function(){var t,data;return Object(U.__generator)(this,(function(n){switch(n.label){case 0:return 200!==output.statusCode&&output.statusCode>=400?[2,z(output,e)]:(t={$metadata:Oe(output),__type:"GetUserEndpointsResponse",EndpointsResponse:void 0},[4,xe(output.body,e)]);case 1:return data=n.sent(),t.EndpointsResponse=pe(data,e),[2,Promise.resolve(t)]}}))}))}(output,e)},t}(L.Command),Te=n(437),Pe=n(276),$e=n(167),Re=n(200),De=n(278),Ne=n(148),Ue=n(279),Be=n(280),Le=n(115),ze=new Set(["ap-south-1","eu-north-1","eu-west-3","eu-west-2","eu-west-1","ap-northeast-2","ap-northeast-1","me-south-1","ca-central-1","sa-east-1","ap-east-1","ap-southeast-1","ap-southeast-2","eu-central-1","us-east-1","us-east-2","us-west-1","us-west-2"]),qe=new Set(["cn-north-1","cn-northwest-1"]),Fe=new Set(["us-iso-east-1"]),He=new Set(["us-isob-east-1"]),Ve=new Set(["us-gov-west-1","us-gov-east-1"]),We={apiVersion:"2016-12-01",disableHostPrefix:!1,regionInfoProvider:function(e,t){var n=void 0;switch(e){case"ap-south-1":n={hostname:"pinpoint.ap-south-1.amazonaws.com",signingService:"mobiletargeting"};break;case"ap-southeast-2":n={hostname:"pinpoint.ap-southeast-2.amazonaws.com",signingService:"mobiletargeting"};break;case"eu-central-1":n={hostname:"pinpoint.eu-central-1.amazonaws.com",signingService:"mobiletargeting"};break;case"eu-west-1":n={hostname:"pinpoint.eu-west-1.amazonaws.com",signingService:"mobiletargeting"};break;case"us-east-1":n={hostname:"pinpoint.us-east-1.amazonaws.com",signingService:"mobiletargeting"};break;case"us-west-2":n={hostname:"pinpoint.us-west-2.amazonaws.com",signingService:"mobiletargeting"};break;default:ze.has(e)&&(n={hostname:"pinpoint.{region}.amazonaws.com".replace("{region}",e),signingService:"mobiletargeting"}),qe.has(e)&&(n={hostname:"pinpoint.{region}.amazonaws.com.cn".replace("{region}",e)}),Fe.has(e)&&(n={hostname:"pinpoint.{region}.c2s.ic.gov".replace("{region}",e)}),He.has(e)&&(n={hostname:"pinpoint.{region}.sc2s.sgov.gov".replace("{region}",e)}),Ve.has(e)&&(n={hostname:"pinpoint.{region}.amazonaws.com".replace("{region}",e)}),void 0===n&&(n={hostname:"pinpoint.{region}.amazonaws.com".replace("{region}",e),signingService:"mobiletargeting"})}return Promise.resolve(n)},signingName:"mobiletargeting"},Ke=Object(U.__assign)(Object(U.__assign)({},We),{runtime:"browser",base64Decoder:Ne.fromBase64,base64Encoder:Ne.toBase64,bodyLengthChecker:Ue.calculateBodyLength,credentialDefaultProvider:Object(Re.invalidFunction)("Credential is missing"),defaultUserAgent:Object(Be.defaultUserAgent)(Te.a,Te.b),maxAttemptsDefaultProvider:function(){return"3"},regionDefaultProvider:Object(Re.invalidFunction)("Region is missing"),requestHandler:new $e.FetchHttpHandler,sha256:Pe.Sha256,streamCollector:$e.streamCollector,urlParser:De.parseUrl,utf8Decoder:Le.fromUtf8,utf8Encoder:Le.toUtf8}),Ye=n(162),Ge=n(275),Je=n(163),Xe=n(164),Ze=n(34),Qe=n(166),et=function(e){function t(t){var n=this,r=Object(U.__assign)(Object(U.__assign)({},Ke),t),o=Object(Ye.resolveRegionConfig)(r),c=Object(Ye.resolveEndpointsConfig)(o),d=Object(Ze.resolveAwsAuthConfig)(c),f=Object(Xe.resolveRetryConfig)(d),l=Object(Qe.resolveUserAgentConfig)(f),h=Object(Je.resolveHostHeaderConfig)(l);return(n=e.call(this,h)||this).config=h,n.middlewareStack.use(Object(Ze.getAwsAuthPlugin)(n.config)),n.middlewareStack.use(Object(Xe.getRetryPlugin)(n.config)),n.middlewareStack.use(Object(Qe.getUserAgentPlugin)(n.config)),n.middlewareStack.use(Object(Ge.getContentLengthPlugin)(n.config)),n.middlewareStack.use(Object(Je.getHostHeaderPlugin)(n.config)),n}return Object(U.__extends)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(L.Client),tt={keyPrefix:"aws-amplify-cache",capacityInBytes:1048576,itemMaxSize:21e4,defaultTTL:2592e5,defaultPriority:5,warningThreshold:.8,storage:(new(n(585).a)).getStorage()};function nt(e){var t=0;t=e.length;for(var i=e.length;i>=0;i-=1){var n=e.charCodeAt(i);n>127&&n<=2047?t+=1:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&(i-=1)}return t}function it(){return(new Date).getTime()}function ot(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var at,st={},ct=(function(){function e(){}e.clear=function(){st={}},e.getItem=function(e){return st[e]||null},e.setItem=function(e,t){st[e]=t},e.removeItem=function(e){delete st[e]}}(),new r.a("StorageCache")),ut=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){ot(this.config.capacityInBytes)||(ct.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=tt.capacityInBytes),ot(this.config.itemMaxSize)||(ct.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=tt.itemMaxSize),ot(this.config.defaultTTL)||(ct.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=tt.defaultTTL),ot(this.config.defaultPriority)||(ct.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=tt.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(ct.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=tt.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(ct.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=tt.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(ct.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=tt.warningThreshold);this.config.capacityInBytes>5242880&&(ct.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=tt.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,n){var r={key:e,data:t,timestamp:it(),visitedTime:it(),priority:n.priority,expires:n.expires,type:typeof t,byteSize:0};return r.byteSize=nt(JSON.stringify(r)),r.byteSize=nt(JSON.stringify(r)),r},e.prototype.configure=function(e){return e?(e.keyPrefix&&ct.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),ft=(at=function(e,b){return(at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])})(e,b)},function(e,b){function t(){this.constructor=e}at(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}),lt=new r.a("Cache"),ht=new(function(e){function t(t){var n=this,r=t?Object.assign({},tt,t):tt;return(n=e.call(this,r)||this).config.storage=r.storage,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind(n),n.removeItem=n.removeItem.bind(n),n}return ft(t,e),t.prototype._decreaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t-e).toString())},t.prototype._increaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t+e).toString())},t.prototype._refreshItem=function(e,t){return e.visitedTime=it(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var text=this.config.storage.getItem(e),t=JSON.parse(text);return it()>=t.expires},t.prototype._removeItem=function(e,t){var n=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(n),this.config.storage.removeItem(e)},t.prototype._setItem=function(e,t){this._increaseCurSizeInBytes(t.byteSize);try{this.config.storage.setItem(e,JSON.stringify(t))}catch(e){this._decreaseCurSizeInBytes(t.byteSize),lt.error("Failed to set item "+e)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,n=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>n?t:n},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],i=0;i<this.config.storage.length;i+=1)t.push(this.config.storage.key(i));for(i=0;i<t.length;i+=1){var n=t[i];0===n.indexOf(this.config.keyPrefix)&&n!==this.cacheCurSizeKey&&(this._isExpired(n)?this._removeItem(n):e.push(n))}return e},t.prototype._popOutItems=function(e,t){for(var n=[],r=t,i=0;i<e.length;i+=1){var o=this.config.storage.getItem(e[i]);if(null!=o){var c=JSON.parse(o);n.push(c)}}n.sort((function(a,b){return a.priority>b.priority?-1:a.priority<b.priority?1:a.visitedTime<b.visitedTime?-1:1}));for(i=0;i<n.length;i+=1)if(this._removeItem(n[i].key,n[i].byteSize),(r-=n[i].byteSize)<=0)return},t.prototype.setItem=function(e,t,n){lt.log("Set item: key is "+e+", value is "+t+" with options: "+n);var r=this.config.keyPrefix+e;if(r!==this.config.keyPrefix&&r!==this.cacheCurSizeKey)if(void 0!==t){var o={priority:n&&void 0!==n.priority?n.priority:this.config.defaultPriority,expires:n&&void 0!==n.expires?n.expires:this.config.defaultTTL+it()};if(o.priority<1||o.priority>5)lt.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var c=this.fillCacheItem(r,t,o);if(c.byteSize>this.config.itemMaxSize)lt.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var d=this.config.storage.getItem(r);if(d&&this._removeItem(r,JSON.parse(d).byteSize),this._isCacheFull(c.byteSize)){var f=this._findValidKeys();if(this._isCacheFull(c.byteSize)){var l=this._sizeToPop(c.byteSize);this._popOutItems(f,l)}}this._setItem(r,c)}catch(e){lt.warn("setItem failed! "+e)}}}else lt.warn("The value of item should not be undefined!");else lt.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){lt.log("Get item: key is "+e+" with options "+t);var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||r===this.cacheCurSizeKey)return lt.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(n=this.config.storage.getItem(r))){if(!this._isExpired(r)){var o=JSON.parse(n);return(o=this._refreshItem(o,r)).data}this._removeItem(r,JSON.parse(n).byteSize),n=null}if(t&&void 0!==t.callback){var c=t.callback();return null!==c&&this.setItem(e,c,t),c}return null}catch(e){return lt.warn("getItem failed! "+e),null}},t.prototype.removeItem=function(e){lt.log("Remove item: key is "+e);var t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!==this.cacheCurSizeKey)try{var n=this.config.storage.getItem(t);n&&this._removeItem(t,JSON.parse(n).byteSize)}catch(e){lt.warn("removeItem failed! "+e)}},t.prototype.clear=function(){lt.log("Clear Cache");for(var e=[],i=0;i<this.config.storage.length;i+=1){var t=this.config.storage.key(i);0===t.indexOf(this.config.keyPrefix)&&e.push(t)}try{for(i=0;i<e.length;i+=1)this.config.storage.removeItem(e[i])}catch(e){lt.warn("clear failed! "+e)}},t.prototype.getAllKeys=function(){for(var e=[],i=0;i<this.config.storage.length;i+=1){var t=this.config.storage.key(i);0===t.indexOf(this.config.keyPrefix)&&t!==this.cacheCurSizeKey&&e.push(t.substring(this.config.keyPrefix.length))}return e},t.prototype.getCacheCurSize=function(){var e=this.config.storage.getItem(this.cacheCurSizeKey);return e||(this.config.storage.setItem(this.cacheCurSizeKey,"0"),e="0"),Number(e)},t.prototype.createInstance=function(e){return e.keyPrefix&&e.keyPrefix!==tt.keyPrefix||(lt.error("invalid keyPrefix, setting keyPrefix with timeStamp"),e.keyPrefix=it.toString()),new t(e)},t}(ut)),pt=ht;c.a.register(ht);var gt=n(121),mt=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},bt=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},vt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},yt=function(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(vt(arguments[i]));return e},_t=new r.a("EventsBuffer"),wt=[429,500],St=[202],Et=function(){function e(e,t){this._pause=!1,this._flush=!1,_t.debug("Instantiating buffer with config:",t),this._buffer=[],this._client=e,this._config=t,this._sendBatch=this._sendBatch.bind(this),this._startLoop()}return e.prototype.push=function(e){var t;if(this._buffer>this._config.bufferSize)return _t.debug("Exceeded analytics events buffer size"),e.handlers.reject(new Error("Exceeded the size of analytics events buffer"));var n=((t={})[e.params.event.eventId]=e,t);this._buffer.push(n)},e.prototype.pause=function(){this._pause=!0},e.prototype.resume=function(){this._pause=!1},e.prototype.updateClient=function(e){this._client=e},e.prototype.flush=function(){this._flush=!0},e.prototype._startLoop=function(){this._interval&&clearInterval(this._interval);var e=this._config.flushInterval;this._interval=setInterval(this._sendBatch,e)},e.prototype._sendBatch=function(){var e=this._buffer.length;if(this._flush&&!e&&clearInterval(this._interval),!this._pause&&e){var t=this._config.flushSize,n=Math.min(t,e),r=this._buffer.splice(0,n);this._putEvents(r)}},e.prototype._putEvents=function(e){return mt(this,void 0,void 0,(function(){var t,n,r,data,o;return bt(this,(function(c){switch(c.label){case 0:t=this._bufferToMap(e),n=this._generateBatchEventParams(t),c.label=1;case 1:return c.trys.push([1,3,,4]),r=new je(n),[4,this._client.send(r)];case 2:return data=c.sent(),this._processPutEventsSuccessResponse(data,t),[3,4];case 3:return o=c.sent(),[2,this._handlePutEventsFailure(o,t)];case 4:return[2]}}))}))},e.prototype._generateBatchEventParams=function(e){var t={ApplicationId:"",EventsRequest:{BatchItem:{}}};return Object.values(e).forEach((function(e){var n=e.params,r=n.event,o=n.timestamp,c=n.config,d=r.name,f=r.attributes,l=r.metrics,h=r.eventId,m=r.session,v=c.appId,y=c.endpointId,_=t.EventsRequest.BatchItem;t.ApplicationId=t.ApplicationId||v,_[y]||(_[y]={Endpoint:{},Events:{}}),_[y].Events[h]={EventType:d,Timestamp:new Date(o).toISOString(),Attributes:f,Metrics:l,Session:m}})),t},e.prototype._handlePutEventsFailure=function(e,t){_t.debug("_putEvents Failed: ",e);var n=e.$metadata&&e.$metadata.httpStatusCode;if(wt.includes(n)){var r=Object.values(t);this._retry(r)}else;},e.prototype._processPutEventsSuccessResponse=function(data,e){var t=data.EventsResponse.Results,n=[];Object.entries(t).forEach((function(t){var r=vt(t,2),o=r[0],c=r[1].EventsItemResponse;Object.entries(c).forEach((function(t){var r,c,d=vt(t,2),f=d[0],l=d[1],h=l.StatusCode,m=l.Message,v=e[f],y={EventsResponse:{Results:(r={},r[o]={EventsItemResponse:(c={},c[f]={StatusCode:h,Message:m},c)},r)}};if(St.includes(h))v.handlers.resolve(y);else{if(!wt.includes(h)){var _=v.params.event.name;return _t.error("event "+f+" : "+_+" failed with error: "+m),v.handlers.reject(y)}n.push(v)}}))})),n.length&&this._retry(n)},e.prototype._retry=function(e){var t,n=[];e.forEach((function(e){var t,r=e.params,o=r.event,c=o.eventId,d=o.name;if(r.resendLimit-- >0)return _t.debug("resending event "+c+" : "+d+" with "+r.resendLimit+" retry attempts remaining"),void n.push((t={},t[c]=e,t));_t.debug("no retry attempts remaining for event "+c+" : "+d)})),(t=this._buffer).unshift.apply(t,yt(n))},e.prototype._bufferToMap=function(e){return e.reduce((function(e,t){var n=vt(Object.entries(t),1),r=vt(n[0],2),o=r[0],c=r[1];return e[o]=c,e}),{})},e}(),Ot=function(){return(Ot=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e}).apply(this,arguments)},It=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},xt=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},At=function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]])}return t},Ct="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",jt=function(e,data){o.a.dispatch("analytics",{event:e,data:data},"Analytics",Ct)},kt=new r.a("AWSPinpointProvider"),Mt=[429,500],Tt=[202],Pt="undefined"!=typeof navigator&&navigator&&"function"==typeof navigator.sendBeacon,$t=1e3,Rt=100,Dt=5e3,Nt=5,Ut=function(){function e(e){this._endpointGenerating=!0,this._endpointUpdateInProgress=!1,this._buffer=null,this._endpointBuffer=[],this._config=e||{},this._config.bufferSize=this._config.bufferSize||$t,this._config.flushSize=this._config.flushSize||Rt,this._config.flushInterval=this._config.flushInterval||Dt,this._config.resendLimit=this._config.resendLimit||Nt,this._clientInfo=h.clientInfo()}return e.prototype.getCategory=function(){return e.category},e.prototype.getProviderName=function(){return e.providerName},e.prototype.configure=function(e){var t=this;kt.debug("configure Analytics",e);var n=e||{};if(this._config=Object.assign({},this._config,n),this._config.appId&&!this._config.disabled)if(this._config.endpointId)jt("pinpointProvider_configured",null);else{var r=this.getProviderName()+"_"+this._config.appId;this._getEndpointId(r).then((function(e){kt.debug("setting endpoint id from the cache",e),t._config.endpointId=e,jt("pinpointProvider_configured",null)})).catch((function(e){kt.debug("Failed to generate endpointId",e)}))}else this._flushBuffer();return this._config},e.prototype.record=function(e,t){return It(this,void 0,void 0,(function(){var n,r;return xt(this,(function(o){switch(o.label){case 0:return kt.debug("_public record",e),[4,this._getCredentials()];case 1:return(n=o.sent())&&this._config.appId&&this._config.region?(this._initClients(n),r=(new Date).getTime(),this._generateSession(e),e.event.eventId=Object(gt.v1)(),Object.assign(e,{timestamp:r,config:this._config}),e.event.immediate?[2,this._send(e,t)]:(this._putToBuffer(e,t),[2])):(kt.debug("cannot send events without credentials, applicationId or region"),[2,t.reject(new Error("No credentials, applicationId or region"))])}}))}))},e.prototype._sendEndpointUpdate=function(e){return It(this,void 0,void 0,(function(){var t;return xt(this,(function(n){switch(n.label){case 0:return this._endpointUpdateInProgress?(this._endpointBuffer.push(e),[2]):(this._endpointUpdateInProgress=!0,[4,this._updateEndpoint(e)]);case 1:return n.sent(),t=this._endpointBuffer.shift(),this._endpointUpdateInProgress=!1,t&&this._sendEndpointUpdate(t),[2]}}))}))},e.prototype._putToBuffer=function(e,t){"_update_endpoint"!==e.event.name?this._buffer&&this._buffer.push({params:e,handlers:t}):this._sendEndpointUpdate({params:e,handlers:t})},e.prototype._generateSession=function(e){this._sessionId=this._sessionId||Object(gt.v1)();var t=e.event;switch(t.name){case"_session.start":this._sessionStartTimestamp=(new Date).getTime(),this._sessionId=Object(gt.v1)(),t.session={Id:this._sessionId,StartTimestamp:new Date(this._sessionStartTimestamp).toISOString()};break;case"_session.stop":var n=(new Date).getTime();this._sessionStartTimestamp=this._sessionStartTimestamp||(new Date).getTime(),this._sessionId=this._sessionId||Object(gt.v1)(),t.session={Id:this._sessionId,Duration:n-this._sessionStartTimestamp,StartTimestamp:new Date(this._sessionStartTimestamp).toISOString(),StopTimestamp:new Date(n).toISOString()},this._sessionId=void 0,this._sessionStartTimestamp=void 0;break;default:this._sessionStartTimestamp=this._sessionStartTimestamp||(new Date).getTime(),this._sessionId=this._sessionId||Object(gt.v1)(),t.session={Id:this._sessionId,StartTimestamp:new Date(this._sessionStartTimestamp).toISOString()}}},e.prototype._send=function(e,t){return It(this,void 0,void 0,(function(){return xt(this,(function(n){switch(e.event.name){case"_update_endpoint":return[2,this._updateEndpoint({params:e,handlers:t})];case"_session.stop":return[2,this._pinpointSendStopSession(e,t)];default:return[2,this._pinpointPutEvents(e,t)]}return[2]}))}))},e.prototype._generateBatchItemContext=function(e){var t,n=e.event,r=e.timestamp,o=e.config,c=n.name,d=n.attributes,f=n.metrics,l=n.eventId,h=n.session,m=o.appId,v=o.endpointId,y={ApplicationId:m,EventsRequest:{BatchItem:{}}},_={Endpoint:{}};return _.Events=((t={})[l]={EventType:c,Timestamp:new Date(r).toISOString(),Attributes:d,Metrics:f,Session:h},t),y.EventsRequest.BatchItem[v]=_,y},e.prototype._pinpointPutEvents=function(e,t){return It(this,void 0,void 0,(function(){var n,r,o,c,data,d,f,l,h,m,v;return xt(this,(function(y){switch(y.label){case 0:n=e.event.eventId,r=e.config.endpointId,o=this._generateBatchItemContext(e),c=new je(o),y.label=1;case 1:return y.trys.push([1,3,,4]),[4,this.pinpointClient.send(c)];case 2:return data=y.sent(),d=r,f=n,l=data.EventsResponse.Results[d].EventsItemResponse[f],h=l.StatusCode,m=l.Message,Tt.includes(h)?(kt.debug("record event success. ",data),[2,t.resolve(data)]):Mt.includes(h)?(this._retry(e,t),[3,4]):(kt.error("Event "+n+" is not accepted, the error is "+m),[2,t.reject(data)]);case 3:return v=y.sent(),this._eventError(v),[2,t.reject(v)];case 4:return[2]}}))}))},e.prototype._pinpointSendStopSession=function(e,t){if(Pt){var n=this._generateBatchItemContext(e),r=this._config.region,o=n.ApplicationId,c=n.EventsRequest,d={secret_key:this._config.credentials.secretAccessKey,access_key:this._config.credentials.accessKeyId,session_token:this._config.credentials.sessionToken},f="https://pinpoint."+r+".amazonaws.com/v1/apps/"+o+"/events/legacy",body=JSON.stringify(c),l={url:f,body:body,method:"POST"},h={region:r,service:"mobiletargeting"},m=$.signUrl(l,d,h,null);return navigator.sendBeacon(m,body)?t.resolve("sendBeacon success"):t.reject("sendBeacon failure")}this._pinpointPutEvents(e,t)},e.prototype._retry=function(e,t){var n=e.config.resendLimit;e.resendLimit="number"==typeof e.resendLimit?e.resendLimit:n,e.resendLimit-- >0?(kt.debug("resending event "+e.eventName+" with "+e.resendLimit+" retry times left"),this._pinpointPutEvents(e,t)):kt.debug("retry times used up for event "+e.eventName)},e.prototype._updateEndpoint=function(e){return It(this,void 0,void 0,(function(){var t,n,r,o,c,d,f,l,h,data,m,v;return xt(this,(function(y){switch(y.label){case 0:t=e.params,n=e.handlers,r=t.config,o=t.event,c=r.appId,d=r.endpointId,f=this._endpointRequest(r,R.a.transferKeyToLowerCase(o,[],["attributes","userAttributes","Attributes","UserAttributes"])),l={ApplicationId:c,EndpointId:d,EndpointRequest:f},y.label=1;case 1:return y.trys.push([1,3,,4]),h=new ke(l),[4,this.pinpointClient.send(h)];case 2:return data=y.sent(),kt.debug("updateEndpoint success",data),this._endpointGenerating=!1,this._resumeBuffer(),n.resolve(data),[2];case 3:return m=y.sent(),v={err:m,update_params:l,endpointObject:e},[2,this._handleEndpointUpdateFailure(v)];case 4:return[2]}}))}))},e.prototype._handleEndpointUpdateFailure=function(e){return It(this,void 0,void 0,(function(){var t,n,r;return xt(this,(function(o){switch(t=e.err,n=e.endpointObject,r=t.$metadata&&t.$metadata.httpStatusCode,kt.debug("updateEndpoint failed",t),r){case 400:return[2,this._handleEndpointUpdateBadRequest(e)];case 403:return[2,this._handleEndpointUpdateForbidden(e)];default:if(Mt.includes(r))return!0,[2,this._retryEndpointUpdate(n,!0)];n.handlers.reject(t)}return[2]}))}))},e.prototype._handleEndpointUpdateBadRequest=function(e){return It(this,void 0,void 0,(function(){var t,n,r,o,c,d,f;return xt(this,(function(l){switch(l.label){case 0:if(t=e.err,n=e.update_params,r=e.endpointObject,o=t.message,c=n.ApplicationId,d=n.EndpointRequest,!String(o).startsWith("Exceeded maximum endpoint per user count"))return[2,r.handlers.reject(t)];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this._removeUnusedEndpoints(c,d.User.UserId)];case 2:return l.sent(),kt.debug("Removed unused endpoints successfully"),this._retryEndpointUpdate(r),[3,4];case 3:return f=l.sent(),kt.warn("Failed to remove unused endpoints with error: "+f),kt.warn('Please ensure you have updated your Pinpoint IAM Policy with the Action: "mobiletargeting:GetUserEndpoints" in order to get endpoints info of the user'),[2,r.handlers.reject(f)];case 4:return[2]}}))}))},e.prototype._handleEndpointUpdateForbidden=function(e){var t=e.err,n=e.endpointObject,code=t.code,r=t.retryable;if("ExpiredTokenException"!==code&&!r)return n.handlers.reject(t);this._retryEndpointUpdate(n)},e.prototype._retryEndpointUpdate=function(e,t){void 0===t&&(t=!1),kt.debug("_retryEndpointUpdate",e);var n=e.params,r=n.config.resendLimit;if(n.resendLimit="number"==typeof n.resendLimit?n.resendLimit:r,n.resendLimit-- >0)return kt.debug("resending endpoint update "+n.event.eventId+" with "+n.resendLimit+" retry attempts remaining"),void(this._endpointBuffer.length?this._endpointBuffer.unshift(e):this._updateEndpoint(e));kt.warn("resending endpoint update "+n.event.eventId+" failed after "+n.config.resendLimit+" attempts"),this._endpointGenerating&&kt.error("Initial endpoint update failed. ")},e.prototype._removeUnusedEndpoints=function(e,t){return It(this,void 0,void 0,(function(){var n,data,r,o,i,c,d,f,l,h,m,v;return xt(this,(function(y){switch(y.label){case 0:return y.trys.push([0,6,,7]),n=new Me({ApplicationId:e,UserId:t}),[4,this.pinpointClient.send(n)];case 1:for(data=y.sent(),r=data.EndpointsResponse.Item,kt.debug("get endpoints associated with the userId: "+t+" with data",r),o=r[0],i=1;i<r.length&&(c=Date.parse(o.EffectiveDate),d=Date.parse(r[i].EffectiveDate),!isNaN(c));i++){if(isNaN(d)){o=r[i];break}d<c&&(o=r[i])}f={ApplicationId:e,EndpointId:o.Id,EndpointRequest:{User:{UserId:""}}},y.label=2;case 2:return y.trys.push([2,4,,5]),l=new ke(f),[4,this.pinpointClient.send(l)];case 3:return h=y.sent(),kt.debug("The old endpoint is updated with an empty string for user id"),[2,h];case 4:throw m=y.sent(),kt.debug("Failed to update the endpoint",m),m;case 5:return[3,7];case 6:throw v=y.sent(),kt.debug("Failed to get endpoints associated with the userId: "+t+" with error",v),v;case 7:return[2]}}))}))},e.prototype._initClients=function(e){return It(this,void 0,void 0,(function(){var t,n;return xt(this,(function(r){return kt.debug("init clients"),this.pinpointClient&&this._config.credentials&&this._config.credentials.sessionToken===e.sessionToken&&this._config.credentials.identityId===e.identityId?(kt.debug("no change for aws credentials, directly return from init"),[2]):(t=this._config.credentials?this._config.credentials.identityId:null,this._config.credentials=e,n=this._config.region,kt.debug("init clients with credentials",e),this.pinpointClient=new et({region:n,credentials:e,customUserAgent:Object(D.a)()}),this.pinpointClient.middlewareStack.addRelativeTo((function(e){return function(t){return delete t.request.headers["amz-sdk-invocation-id"],delete t.request.headers["amz-sdk-request"],e(t)}}),{step:"finalizeRequest",relation:"after",toMiddleware:"retryMiddleware"}),this._bufferExists()&&t===e.identityId?this._updateBufferClient():this._initBuffer(),this._customizePinpointClientReq(),[2])}))}))},e.prototype._bufferExists=function(){return this._buffer&&this._buffer instanceof Et},e.prototype._initBuffer=function(){this._bufferExists()&&this._flushBuffer(),this._buffer=new Et(this.pinpointClient,this._config),this._endpointGenerating&&this._buffer.pause()},e.prototype._updateBufferClient=function(){this._bufferExists()&&this._buffer.updateClient(this.pinpointClient)},e.prototype._flushBuffer=function(){this._bufferExists()&&(this._buffer.flush(),this._buffer=null)},e.prototype._resumeBuffer=function(){this._bufferExists()&&this._buffer.resume()},e.prototype._customizePinpointClientReq=function(){},e.prototype._getEndpointId=function(e){return It(this,void 0,void 0,(function(){var t;return xt(this,(function(n){switch(n.label){case 0:return[4,pt.getItem(e)];case 1:return t=n.sent(),kt.debug("endpointId from cache",t,"type",typeof t),t||(t=Object(gt.v1)(),pt.setItem(e,t)),[2,t]}}))}))},e.prototype._endpointRequest=function(e,t){var n=e.credentials,r=this._clientInfo||{},o=e.clientContext||{},c=e.endpoint||{},d={appVersion:r.appVersion,make:r.make,model:r.model,modelVersion:r.version,platform:r.platform},f=(o.clientId,o.appTitle,o.appVersionName,o.appVersionCode,o.appPackageName,At(o,["clientId","appTitle","appVersionName","appVersionCode","appPackageName"])),l=t.address?"android"===r.platform?"GCM":"APNS":void 0,h=Ot(Ot(Ot({channelType:l,requestId:Object(gt.v1)(),effectiveDate:(new Date).toISOString()},c),t),{attributes:Ot(Ot({},c.attributes),t.attributes),demographic:Ot(Ot(Ot(Ot({},d),f),c.demographic),t.demographic),location:Ot(Ot({},c.location),t.location),metrics:Ot(Ot({},c.metrics),t.metrics),user:{userId:t.userId||c.userId||n.identityId,userAttributes:Ot(Ot({},c.userAttributes),t.userAttributes)}}),m=(h.userId,h.userAttributes,h.name,h.session,h.eventId,h.immediate,At(h,["userId","userAttributes","name","session","eventId","immediate"]));return R.a.transferKeyToUpperCase(m,[],["metrics","userAttributes","attributes"])},e.prototype._eventError=function(e){kt.error("record event failed.",e),kt.warn('Please ensure you have updated your Pinpoint IAM Policy with the Action: "mobiletargeting:PutEvents" in order to record events')},e.prototype._getCredentials=function(){return It(this,void 0,void 0,(function(){var e,t;return xt(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,N.a.get()];case 1:return(e=n.sent())?(kt.debug("set credentials for analytics",e),[2,N.a.shear(e)]):[2,null];case 2:return t=n.sent(),kt.debug("ensure credentials error",t),[2,null];case 3:return[2]}}))}))},e.category="Analytics",e.providerName="AWSPinpoint",e}(),Bt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},Lt=function(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(Bt(arguments[i]));return e},zt=[],qt=function(){function e(e,t){this.context=e,this.methodName=t,this._originalMethod=e[t].bind(e)}return e.add=function(e,t,n){Ft(e,t).set(n)},e.remove=function(e,t){Ft(e,t).remove()},e.prototype.set=function(e){var t=this;this.context[this.methodName]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t._originalMethod.apply(t,Lt(n)))}},e.prototype.remove=function(){this.context[this.methodName]=this._originalMethod},e}();function Ft(e,t){var n=zt.filter((function(n){return n.context===e&&n.methodName===t}))[0];return n||(n=new qt(e,t),zt.push(n)),n}var Ht=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},Vt=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},Wt=new r.a("PageViewTracker"),Kt="aws-amplify-analytics-prevUrl",Yt={enable:!1,provider:"AWSPinpoint",getUrl:function(){return R.a.browserOrNode().isBrowser?window.location.origin+window.location.pathname:""}},Gt=function(){function e(e,t){Wt.debug("initialize pageview tracker with opts",t),this._config=Object.assign({},Yt,t),this._tracker=e,this._hasEnabled=!1,this._trackFunc=this._trackFunc.bind(this),"SPA"===this._config.type?this._pageViewTrackSPA():this._pageViewTrackDefault()}return e.prototype.configure=function(e){return Object.assign(this._config,e),"SPA"===this._config.type&&this._pageViewTrackSPA(),this._config},e.prototype._isSameUrl=function(){return sessionStorage.getItem(Kt)===this._config.getUrl()&&(Wt.debug("the url is same"),!0)},e.prototype._pageViewTrackDefault=function(){return Ht(this,void 0,void 0,(function(){var e,t,n,r;return Vt(this,(function(o){switch(o.label){case 0:return R.a.browserOrNode().isBrowser&&window.addEventListener&&window.sessionStorage?(e=this._config.getUrl(),"function"!=typeof this._config.attributes?[3,2]:[4,this._config.attributes()]):(Wt.debug("not in the supported web enviroment"),[2]);case 1:return n=o.sent(),[3,3];case 2:n=this._config.attributes,o.label=3;case 3:return t=n,r=Object.assign({url:e},t),this._config.enable&&!this._isSameUrl()&&(this._tracker({name:this._config.eventName||"pageView",attributes:r},this._config.provider).catch((function(e){Wt.debug("Failed to record the page view event",e)})),sessionStorage.setItem(Kt,e)),[2]}}))}))},e.prototype._trackFunc=function(){return Ht(this,void 0,void 0,(function(){var e,t,n,r;return Vt(this,(function(o){switch(o.label){case 0:return R.a.browserOrNode().isBrowser&&window.addEventListener&&history.pushState&&window.sessionStorage?(e=this._config.getUrl(),"function"!=typeof this._config.attributes?[3,2]:[4,this._config.attributes()]):(Wt.debug("not in the supported web enviroment"),[2]);case 1:return n=o.sent(),[3,3];case 2:n=this._config.attributes,o.label=3;case 3:return t=n,r=Object.assign({url:e},t),this._isSameUrl()||(this._tracker({name:this._config.eventName||"pageView",attributes:r},this._config.provider).catch((function(e){Wt.debug("Failed to record the page view event",e)})),sessionStorage.setItem(Kt,e)),[2]}}))}))},e.prototype._pageViewTrackSPA=function(){R.a.browserOrNode().isBrowser&&window.addEventListener&&history.pushState?this._config.enable&&!this._hasEnabled?(qt.add(history,"pushState",this._trackFunc),qt.add(history,"replaceState",this._trackFunc),window.addEventListener("popstate",this._trackFunc),this._trackFunc(),this._hasEnabled=!0):(qt.remove(history,"pushState"),qt.remove(history,"replaceState"),window.removeEventListener("popstate",this._trackFunc),this._hasEnabled=!1):Wt.debug("not in the supported web enviroment")},e}(),Jt=R.a.browserOrNode().isBrowser&&window.Element?window.Element.prototype:null,Xt=Jt?Jt.matches||Jt.matchesSelector||Jt.webkitMatchesSelector||Jt.mozMatchesSelector||Jt.msMatchesSelector||Jt.oMatchesSelector:null;function Zt(element,e){if(element&&1===element.nodeType&&e){if("string"==typeof e||1===e.nodeType)return element===e||Qt(element,e);if("length"in e)for(var i=0,t=void 0;t=e[i];i++)if(element===t||Qt(element,t))return!0}return!1}function Qt(element,e){if("string"!=typeof e)return!1;if(Xt)return Xt.call(element,e);for(var t=element.parentNode.querySelectorAll(e),i=0,n=void 0;n=t[i];i++)if(n===element)return!0;return!1}function en(e,t,n,r,o){void 0===o&&(o={});var c=function(e){var t;if(o.composed&&"function"==typeof e.composedPath)for(var c=e.composedPath(),i=0,d=void 0;d=c[i];i++)1===d.nodeType&&Zt(d,n)&&(t=d);else t=function(element,e,t){if(void 0===t&&(t=!1),element&&1===element.nodeType&&e)for(var n,r=(t?[element]:[]).concat(function(e){for(var t=[],element=e;element&&element.parentNode&&1===element.parentNode.nodeType;)element=element.parentNode,t.push(element);return t}(element)),i=0;n=r[i];i++)if(Zt(n,e))return n}(e.target,n,!0);t&&r.call(t,e,t)};return e.addEventListener(t,c,o.useCapture),{destroy:function(){e.removeEventListener(t,c,o.useCapture)}}}var tn=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},nn=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},rn=new r.a("EventTracker"),on={enable:!1,events:["click"],selectorPrefix:"data-amplify-analytics-",provider:"AWSPinpoint"},an=function(){function e(e,t){R.a.browserOrNode().isBrowser&&window.addEventListener?(this._config=Object.assign({},on,t),this._tracker=e,this._delegates={},this._trackFunc=this._trackFunc.bind(this),rn.debug("initialize pageview tracker with opts",this._config),this.configure(this._config)):rn.debug("not in the supported web environment")}return e.prototype.configure=function(e){var t=this;if(Object.assign(this._config,e),this._config.enable){if(this._config.enable&&0===Object.keys(this._delegates).length){var n="["+this._config.selectorPrefix+"on]";this._config.events.forEach((function(e){t._delegates[e]=en(document,e,n,t._trackFunc,{composed:!0,useCapture:!0})}))}}else Object.keys(this._delegates).forEach((function(e){"function"==typeof t._delegates[e].destroy&&t._delegates[e].destroy()})),this._delegates={};return this._config},e.prototype._trackFunc=function(e,element){return tn(this,void 0,void 0,(function(){var t,n,r,o,c,d,f;return nn(this,(function(l){switch(l.label){case 0:return t={},n=element.getAttribute(this._config.selectorPrefix+"on").split(/\s*,\s*/),r=element.getAttribute(this._config.selectorPrefix+"name"),(o=element.getAttribute(this._config.selectorPrefix+"attrs"))&&o.split(/\s*,\s*/).forEach((function(e){var n=e.trim().split(/\s*:\s*/);t[n[0]]=n[1]})),"function"!=typeof this._config.attributes?[3,2]:[4,this._config.attributes()];case 1:return d=l.sent(),[3,3];case 2:d=this._config.attributes,l.label=3;case 3:return c=d,f=Object.assign({type:e.type,target:e.target.localName+" with id "+e.target.id},c,t),rn.debug("events needed to be recorded",n),rn.debug("attributes needed to be attached",t),n.indexOf(e.type)<0?(rn.debug("event "+e.type+" is not selected to be recorded"),[2]):(this._tracker({name:r||"event",attributes:f},this._config.provider).catch((function(t){rn.debug("Failed to record the "+e.type+" event', "+t)})),[2])}}))}))},e}(),sn=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},cn=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},un=new r.a("SessionTracker"),dn={enable:!1,provider:"AWSPinpoint"},fn=!1,ln=function(){function e(e,t){this._config=Object.assign({},dn,t),this._tracker=e,this._hasEnabled=!1,this._trackFunc=this._trackFunc.bind(this),this._trackBeforeUnload=this._trackBeforeUnload.bind(this),this.configure(this._config)}return e.prototype._envCheck=function(){if(!R.a.browserOrNode().isBrowser)return!1;if(!document||!document.addEventListener)return un.debug("not in the supported web environment"),!1;if(void 0!==document.hidden)this._hidden="hidden",this._visibilityChange="visibilitychange";else if(void 0!==document.msHidden)this._hidden="msHidden",this._visibilityChange="msvisibilitychange";else{if(void 0===document.webkitHidden)return un.debug("not in the supported web environment"),!1;this._hidden="webkitHidden",this._visibilityChange="webkitvisibilitychange"}return!0},e.prototype._trackFunc=function(){return sn(this,void 0,void 0,(function(){var e,t,n;return cn(this,(function(r){switch(r.label){case 0:return"function"!=typeof this._config.attributes?[3,2]:[4,this._config.attributes()];case 1:return t=r.sent(),[3,3];case 2:t=this._config.attributes,r.label=3;case 3:return e=t,n=Object.assign({},e),document.visibilityState===this._hidden?this._tracker({name:"_session.stop",attributes:n},this._config.provider).catch((function(e){un.debug("record session stop event failed.",e)})):this._tracker({name:"_session.start",attributes:n},this._config.provider).catch((function(e){un.debug("record session start event failed.",e)})),[2]}}))}))},e.prototype._trackBeforeUnload=function(e){var t=this;("function"==typeof this._config.attributes?Promise.resolve(this._config.attributes()):Promise.resolve(this._config.attributes)).then((function(e){var n=Object.assign({},e);t._tracker({name:"_session.stop",attributes:n,immediate:!0},t._config.provider).catch((function(e){un.debug("record session stop event failed.",e)}))}))},e.prototype._sendInitialEvent=function(){return sn(this,void 0,void 0,(function(){var e,t,n;return cn(this,(function(r){switch(r.label){case 0:return fn?(un.debug("the start session has been sent when the page is loaded"),[2]):(fn=!0,"function"!=typeof this._config.attributes?[3,2]:[4,this._config.attributes()]);case 1:return t=r.sent(),[3,3];case 2:t=this._config.attributes,r.label=3;case 3:return e=t,n=Object.assign({},e),this._tracker({name:"_session.start",attributes:n},this._config.provider).catch((function(e){un.debug("record session start event failed.",e)})),[2]}}))}))},e.prototype.configure=function(e){return this._envCheck()?(Object.assign(this._config,e),this._config.enable&&!this._hasEnabled?(this._sendInitialEvent(),document.addEventListener(this._visibilityChange,this._trackFunc,!1),window.addEventListener("beforeunload",this._trackBeforeUnload,!1),this._hasEnabled=!0):!this._config.enable&&this._hasEnabled&&(document.removeEventListener(this._visibilityChange,this._trackFunc,!1),window.removeEventListener("beforeunload",this._trackBeforeUnload,!1),this._hasEnabled=!1),this._config):this._config},e}(),hn=function(){return(hn=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e}).apply(this,arguments)},pn=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},gn=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},mn=new r.a("AnalyticsClass"),bn="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",vn={pageView:Gt,event:an,session:ln},yn=null,_n=function(){function e(){this._config={},this._pluggables=[],this._disabled=!1,this._trackers={},yn=this,this.record=this.record.bind(this),o.a.listen("auth",On),o.a.listen("storage",On),o.a.listen("analytics",On),c.a.register(this)}return e.prototype.getModuleName=function(){return"Analytics"},e.prototype.configure=function(e){var t=this;if(!e)return this._config;mn.debug("configure Analytics",e);var n,data,r,c=d.a.parseMobilehubConfig(e);return this._config=Object.assign({},this._config,c.Analytics,e),this._config.disabled&&(this._disabled=!0),this._pluggables.forEach((function(e){var n="AWSPinpoint"!==e.getProviderName()||t._config.AWSPinpoint?t._config[e.getProviderName()]:t._config;e.configure(hn({disabled:t._config.disabled},n))})),0===this._pluggables.length&&this.addPluggable(new Ut),void 0===this._config.autoSessionRecord&&(this._config.autoSessionRecord=!0),n="configured",data=null,r="The Analytics category has been configured successfully",o.a.dispatch("analytics",{event:n,data:data,message:r},"Analytics",bn),mn.debug("current configuration",this._config),this._config},e.prototype.addPluggable=function(e){if(e&&"Analytics"===e.getCategory()){this._pluggables.push(e);var t="AWSPinpoint"!==e.getProviderName()||this._config.AWSPinpoint?this._config[e.getProviderName()]:this._config,n=hn({disabled:this._config.disabled},t);return e.configure(n),n}},e.prototype.getPluggable=function(e){for(var i=0;i<this._pluggables.length;i+=1){var t=this._pluggables[i];if(t.getProviderName()===e)return t}return mn.debug("No plugin found with providerName",e),null},e.prototype.removePluggable=function(e){for(var t=0;t<this._pluggables.length&&this._pluggables[t].getProviderName()!==e;)t+=1;return t===this._pluggables.length?void mn.debug("No plugin found with providerName",e):void this._pluggables.splice(t,t+1)},e.prototype.disable=function(){this._disabled=!0},e.prototype.enable=function(){this._disabled=!1},e.prototype.startSession=function(e){return pn(this,void 0,void 0,(function(){var t;return gn(this,(function(n){return t={event:{name:"_session.start"},provider:e},[2,this._sendEvent(t)]}))}))},e.prototype.stopSession=function(e){return pn(this,void 0,void 0,(function(){var t;return gn(this,(function(n){return t={event:{name:"_session.stop"},provider:e},[2,this._sendEvent(t)]}))}))},e.prototype.record=function(e,t,n){return pn(this,void 0,void 0,(function(){var r;return gn(this,(function(o){return r=null,r="string"==typeof e?{event:{name:e,attributes:t,metrics:n},provider:"AWSPinpoint"}:{event:e,provider:t},[2,this._sendEvent(r)]}))}))},e.prototype.updateEndpoint=function(e,t){return pn(this,void 0,void 0,(function(){var n;return gn(this,(function(r){return n=hn(hn({},e),{name:"_update_endpoint"}),[2,this.record(n,t)]}))}))},e.prototype._sendEvent=function(e){var t=this;if(this._disabled)return mn.debug("Analytics has been disabled"),Promise.resolve();var n=e.provider?e.provider:"AWSPinpoint";return new Promise((function(r,o){t._pluggables.forEach((function(t){t.getProviderName()===n&&t.record(e,{resolve:r,reject:o})}))}))},e.prototype.autoTrack=function(e,t){if(vn[e]){"session"===e&&(this._config.autoSessionRecord=t.enable);var n=this._trackers[e];n?n.configure(t):this._trackers[e]=new vn[e](this.record,t)}else mn.debug("invalid tracker type")},e}(),wn=!1,Sn=!1,En=!1,On=function(e){var t=e.channel,n=e.payload;switch(mn.debug("on hub capsule "+t,n),t){case"auth":xn(n);break;case"storage":In(n);break;case"analytics":An(n)}},In=function(e){var t=e.data,n=t.attrs,r=t.metrics;n&&En&&yn.record({name:"Storage",attributes:n,metrics:r}).catch((function(e){mn.debug("Failed to send the storage event automatically",e)}))},xn=function(e){var t=e.event;if(t){var n=function(e){return pn(void 0,void 0,void 0,(function(){var t;return gn(this,(function(n){switch(n.label){case 0:if(!Sn||!En)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,yn.record({name:"_userauth."+e})];case 2:return[2,n.sent()];case 3:return t=n.sent(),mn.debug("Failed to send the "+e+" event automatically",t),[3,4];case 4:return[2]}}))}))};switch(t){case"signIn":return n("sign_in");case"signUp":return n("sign_up");case"signOut":return n("sign_out");case"signIn_failure":return n("auth_fail");case"configured":(Sn=!0)&&En&&Cn()}}},An=function(e){var t=e.event;if(t)switch(t){case"pinpointProvider_configured":En=!0,Sn&&En&&Cn()}},Cn=function(){var e=yn.configure();!wn&&e.autoSessionRecord&&(yn.updateEndpoint({immediate:!0}).catch((function(e){mn.debug("Failed to update the endpoint",e)})),wn=!0),yn.autoTrack("session",{enable:e.autoSessionRecord})},jn=new _n;t.a=jn},function(e,t,n){"use strict";var r,o;function c(e){return e&&!!["provider","customState"].find((function(t){return e.hasOwnProperty(t)}))}function d(e){return void 0!==e.redirectSignIn}!function(e){e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon",e.Apple="SignInWithApple"}(r||(r={})),function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default"}(o||(o={}));var f,l=n(171),h=n(1204),m=n(303),v=n(1205),y=n(585),_=n(1207),w=n(133),S=function(){function e(data){var e=data||{},t=e.ValidationData,n=e.Username,r=e.Password,o=e.AuthParameters,c=e.ClientMetadata;this.validationData=t||{},this.authParameters=o||{},this.clientMetadata=c||{},this.username=n,this.password=r}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),E=n(28),O=n(78),I=n.n(O),x=(n(552),n(196)),A=n.n(x),C=n(161),j=n.n(C),k=M;function M(a,b){null!=a&&this.fromString(a,b)}function T(){return new M(null)}var P="undefined"!=typeof navigator;P&&"Microsoft Internet Explorer"==navigator.appName?(M.prototype.am=function(i,e,t,n,r,o){for(var c=32767&e,d=e>>15;--o>=0;){var f=32767&this[i],l=this[i++]>>15,h=d*f+l*c;r=((f=c*f+((32767&h)<<15)+t[n]+(1073741823&r))>>>30)+(h>>>15)+d*l+(r>>>30),t[n++]=1073741823&f}return r},f=30):P&&"Netscape"!=navigator.appName?(M.prototype.am=function(i,e,t,n,r,o){for(;--o>=0;){var c=e*this[i++]+t[n]+r;r=Math.floor(c/67108864),t[n++]=67108863&c}return r},f=26):(M.prototype.am=function(i,e,t,n,r,o){for(var c=16383&e,d=e>>14;--o>=0;){var f=16383&this[i],l=this[i++]>>14,h=d*f+l*c;r=((f=c*f+((16383&h)<<14)+t[n]+r)>>28)+(h>>14)+d*l,t[n++]=268435455&f}return r},f=28),M.prototype.DB=f,M.prototype.DM=(1<<f)-1,M.prototype.DV=1<<f;M.prototype.FV=Math.pow(2,52),M.prototype.F1=52-f,M.prototype.F2=2*f-52;var $,R,D="0123456789abcdefghijklmnopqrstuvwxyz",N=new Array;for($="0".charCodeAt(0),R=0;R<=9;++R)N[$++]=R;for($="a".charCodeAt(0),R=10;R<36;++R)N[$++]=R;for($="A".charCodeAt(0),R=10;R<36;++R)N[$++]=R;function U(e){return D.charAt(e)}function B(s,i){var e=N[s.charCodeAt(i)];return null==e?-1:e}function L(i){var e=T();return e.fromInt(i),e}function z(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function F(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}F.prototype.convert=function(e){var t=T();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(M.ZERO)>0&&this.m.subTo(t,t),t},F.prototype.revert=function(e){var t=T();return e.copyTo(t),this.reduce(t),t},F.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var i=0;i<this.m.t;++i){var t=32767&e[i],n=t*this.mpl+((t*this.mph+(e[i]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[t=i+this.m.t]+=this.m.am(0,n,e,i,0,this.m.t);e[t]>=e.DV;)e[t]-=e.DV,e[++t]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},F.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},F.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},M.prototype.copyTo=function(e){for(var i=this.t-1;i>=0;--i)e[i]=this[i];e.t=this.t,e.s=this.s},M.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},M.prototype.fromString=function(s,b){var e;if(16==b)e=4;else if(8==b)e=3;else if(2==b)e=1;else if(32==b)e=5;else{if(4!=b)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");e=2}this.t=0,this.s=0;for(var i=s.length,t=!1,n=0;--i>=0;){var r=B(s,i);r<0?"-"==s.charAt(i)&&(t=!0):(t=!1,0==n?this[this.t++]=r:n+e>this.DB?(this[this.t-1]|=(r&(1<<this.DB-n)-1)<<n,this[this.t++]=r>>this.DB-n):this[this.t-1]|=r<<n,(n+=e)>=this.DB&&(n-=this.DB))}this.clamp(),t&&M.ZERO.subTo(this,this)},M.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},M.prototype.dlShiftTo=function(e,t){var i;for(i=this.t-1;i>=0;--i)t[i+e]=this[i];for(i=e-1;i>=0;--i)t[i]=0;t.t=this.t+e,t.s=this.s},M.prototype.drShiftTo=function(e,t){for(var i=e;i<this.t;++i)t[i-e]=this[i];t.t=Math.max(this.t-e,0),t.s=this.s},M.prototype.lShiftTo=function(e,t){var i,n=e%this.DB,r=this.DB-n,o=(1<<r)-1,c=Math.floor(e/this.DB),d=this.s<<n&this.DM;for(i=this.t-1;i>=0;--i)t[i+c+1]=this[i]>>r|d,d=(this[i]&o)<<n;for(i=c-1;i>=0;--i)t[i]=0;t[c]=d,t.t=this.t+c+1,t.s=this.s,t.clamp()},M.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,c=(1<<r)-1;t[0]=this[n]>>r;for(var i=n+1;i<this.t;++i)t[i-n-1]|=(this[i]&c)<<o,t[i-n]=this[i]>>r;r>0&&(t[this.t-n-1]|=(this.s&c)<<o),t.t=this.t-n,t.clamp()}},M.prototype.subTo=function(a,e){for(var i=0,t=0,n=Math.min(a.t,this.t);i<n;)t+=this[i]-a[i],e[i++]=t&this.DM,t>>=this.DB;if(a.t<this.t){for(t-=a.s;i<this.t;)t+=this[i],e[i++]=t&this.DM,t>>=this.DB;t+=this.s}else{for(t+=this.s;i<a.t;)t-=a[i],e[i++]=t&this.DM,t>>=this.DB;t-=a.s}e.s=t<0?-1:0,t<-1?e[i++]=this.DV+t:t>0&&(e[i++]=t),e.t=i,e.clamp()},M.prototype.multiplyTo=function(a,e){var t=this.abs(),n=a.abs(),i=t.t;for(e.t=i+n.t;--i>=0;)e[i]=0;for(i=0;i<n.t;++i)e[i+t.t]=t.am(0,n[i],e,i,0,t.t);e.s=0,e.clamp(),this.s!=a.s&&M.ZERO.subTo(e,e)},M.prototype.squareTo=function(e){for(var t=this.abs(),i=e.t=2*t.t;--i>=0;)e[i]=0;for(i=0;i<t.t-1;++i){var n=t.am(i,t[i],e,2*i,0,1);(e[i+t.t]+=t.am(i+1,2*t[i],e,2*i+1,n,t.t-i-1))>=t.DV&&(e[i+t.t]-=t.DV,e[i+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(i,t[i],e,2*i,0,1)),e.s=0,e.clamp()},M.prototype.divRemTo=function(e,q,t){var n=e.abs();if(!(n.t<=0)){var r=this.abs();if(r.t<n.t)return null!=q&&q.fromInt(0),void(null!=t&&this.copyTo(t));null==t&&(t=T());var o=T(),c=this.s,d=e.s,f=this.DB-z(n[n.t-1]);f>0?(n.lShiftTo(f,o),r.lShiftTo(f,t)):(n.copyTo(o),r.copyTo(t));var l=o.t,h=o[l-1];if(0!=h){var m=h*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),v=this.FV/m,y=(1<<this.F1)/m,_=1<<this.F2,i=t.t,w=i-l,S=null==q?T():q;for(o.dlShiftTo(w,S),t.compareTo(S)>=0&&(t[t.t++]=1,t.subTo(S,t)),M.ONE.dlShiftTo(l,S),S.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--w>=0;){var E=t[--i]==h?this.DM:Math.floor(t[i]*v+(t[i-1]+_)*y);if((t[i]+=o.am(0,E,t,w,0,l))<E)for(o.dlShiftTo(w,S),t.subTo(S,t);t[i]<--E;)t.subTo(S,t)}null!=q&&(t.drShiftTo(l,q),c!=d&&M.ZERO.subTo(q,q)),t.t=l,t.clamp(),f>0&&t.rShiftTo(f,t),c<0&&M.ZERO.subTo(t,t)}}},M.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},M.prototype.addTo=function(a,e){for(var i=0,t=0,n=Math.min(a.t,this.t);i<n;)t+=this[i]+a[i],e[i++]=t&this.DM,t>>=this.DB;if(a.t<this.t){for(t+=a.s;i<this.t;)t+=this[i],e[i++]=t&this.DM,t>>=this.DB;t+=this.s}else{for(t+=this.s;i<a.t;)t+=a[i],e[i++]=t&this.DM,t>>=this.DB;t+=a.s}e.s=t<0?-1:0,t>0?e[i++]=t:t<-1&&(e[i++]=this.DV+t),e.t=i,e.clamp()},M.prototype.toString=function(b){if(this.s<0)return"-"+this.negate().toString(b);var e;if(16==b)e=4;else if(8==b)e=3;else if(2==b)e=1;else if(32==b)e=5;else{if(4!=b)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");e=2}var t,n=(1<<e)-1,r=!1,o="",i=this.t,p=this.DB-i*this.DB%e;if(i-- >0)for(p<this.DB&&(t=this[i]>>p)>0&&(r=!0,o=U(t));i>=0;)p<e?(t=(this[i]&(1<<p)-1)<<e-p,t|=this[--i]>>(p+=this.DB-e)):(t=this[i]>>(p-=e)&n,p<=0&&(p+=this.DB,--i)),t>0&&(r=!0),r&&(o+=U(t));return r?o:"0"},M.prototype.negate=function(){var e=T();return M.ZERO.subTo(this,e),e},M.prototype.abs=function(){return this.s<0?this.negate():this},M.prototype.compareTo=function(a){var e=this.s-a.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-a.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-a[i]))return e;return 0},M.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+z(this[this.t-1]^this.s&this.DM)},M.prototype.mod=function(a){var e=T();return this.abs().divRemTo(a,null,e),this.s<0&&e.compareTo(M.ZERO)>0&&a.subTo(e,e),e},M.prototype.equals=function(a){return 0==this.compareTo(a)},M.prototype.add=function(a){var e=T();return this.addTo(a,e),e},M.prototype.subtract=function(a){var e=T();return this.subTo(a,e),e},M.prototype.multiply=function(a){var e=T();return this.multiplyTo(a,e),e},M.prototype.divide=function(a){var e=T();return this.divRemTo(a,e,null),e},M.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=L(1),c=new F(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6;var g=new Array,d=3,f=r-1,l=(1<<r)-1;if(g[1]=c.convert(this),r>1){var h=T();for(c.sqrTo(g[1],h);d<=l;)g[d]=T(),c.mulTo(h,g[d-2],g[d]),d+=2}var m,v,y=e.t-1,_=!0,w=T();for(i=z(e[y])-1;y>=0;){for(i>=f?m=e[y]>>i-f&l:(m=(e[y]&(1<<i+1)-1)<<f-i,y>0&&(m|=e[y-1]>>this.DB+i-f)),d=r;0==(1&m);)m>>=1,--d;if((i-=d)<0&&(i+=this.DB,--y),_)g[m].copyTo(o),_=!1;else{for(;d>1;)c.sqrTo(o,w),c.sqrTo(w,o),d-=2;d>0?c.sqrTo(o,w):(v=o,o=w,w=v),c.mulTo(w,g[m],o)}for(;y>=0&&0==(e[y]&1<<i);)c.sqrTo(o,w),v=o,o=w,w=v,--i<0&&(i=this.DB-1,--y)}var S=c.revert(o);return n(null,S),S},M.ZERO=L(0),M.ONE=L(1);var H=function(e){return E.Buffer.from(I.a.lib.WordArray.random(e).toString(),"hex")},V="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",W=function(){function e(e){this.N=new k(V,16),this.g=new k("2",16),this.k=new k(this.hexHash("00"+this.N.toString(16)+"0"+this.g.toString(16)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue((function(){})),this.infoBits=E.Buffer.from("Caldera Derived Key","utf8"),this.poolName=e}var t=e.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(e){var t=this;this.largeAValue?e(null,this.largeAValue):this.calculateA(this.smallAValue,(function(n,r){n&&e(n,null),t.largeAValue=r,e(null,t.largeAValue)}))},t.generateRandomSmallA=function(){var e=H(128).toString("hex");return new k(e,16).mod(this.N)},t.generateRandomString=function(){return H(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(e,t,n){var r=this;this.randomPassword=this.generateRandomString();var o=""+e+t+":"+this.randomPassword,c=this.hash(o),d=H(16).toString("hex");this.SaltToHashDevices=this.padHex(new k(d,16)),this.g.modPow(new k(this.hexHash(this.SaltToHashDevices+c),16),this.N,(function(e,t){e&&n(e,null),r.verifierDevices=r.padHex(t),n(null,null)}))},t.calculateA=function(a,e){var t=this;this.g.modPow(a,this.N,(function(n,r){n&&e(n,null),r.mod(t.N).equals(k.ZERO)&&e(new Error("Illegal paramater. A mod N cannot be 0."),null),e(null,r)}))},t.calculateU=function(e,t){return this.UHexHash=this.hexHash(this.padHex(e)+this.padHex(t)),new k(this.UHexHash,16)},t.hash=function(e){var t=e instanceof E.Buffer?I.a.lib.WordArray.create(e):e,n=A()(t).toString();return new Array(64-n.length).join("0")+n},t.hexHash=function(e){return this.hash(E.Buffer.from(e,"hex"))},t.computehkdf=function(e,t){var n=I.a.lib.WordArray.create(E.Buffer.concat([this.infoBits,E.Buffer.from(String.fromCharCode(1),"utf8")])),r=e instanceof E.Buffer?I.a.lib.WordArray.create(e):e,o=t instanceof E.Buffer?I.a.lib.WordArray.create(t):t,c=j()(r,o),d=j()(n,c);return E.Buffer.from(d.toString(),"hex").slice(0,16)},t.getPasswordAuthenticationKey=function(e,t,n,r,o){var c=this;if(n.mod(this.N).equals(k.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,n),this.UValue.equals(k.ZERO))throw new Error("U cannot be zero.");var d=""+this.poolName+e+":"+t,f=this.hash(d),l=new k(this.hexHash(this.padHex(r)+f),16);this.calculateS(l,n,(function(e,t){e&&o(e,null);var n=c.computehkdf(E.Buffer.from(c.padHex(t),"hex"),E.Buffer.from(c.padHex(c.UValue.toString(16)),"hex"));o(null,n)}))},t.calculateS=function(e,t,n){var r=this;this.g.modPow(e,this.N,(function(o,c){o&&n(o,null),t.subtract(r.k.multiply(c)).modPow(r.smallAValue.add(r.UValue.multiply(e)),r.N,(function(e,t){e&&n(e,null),n(null,t.mod(r.N))}))}))},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return"userAttributes."},t.padHex=function(e){var t=e.toString(16);return t.length%2==1?t="0"+t:-1!=="89ABCDEFabcdef".indexOf(t[0])&&(t="00"+t),t},e}(),K=function(){function e(e){this.jwtToken=e||"",this.payload=this.decodePayload()}var t=e.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var e=this.jwtToken.split(".")[1];try{return JSON.parse(E.Buffer.from(e,"base64").toString("utf8"))}catch(e){return{}}},e}();var Y=function(e){var t,n;function r(t){var n=(void 0===t?{}:t).AccessToken;return e.call(this,n||"")||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(K);var G=function(e){var t,n;function r(t){var n=(void 0===t?{}:t).IdToken;return e.call(this,n||"")||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(K),J=function(){function e(e){var t=(void 0===e?{}:e).RefreshToken;this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),X=n(199),Z=n.n(X),Q=function(){function e(e){var t=void 0===e?{}:e,n=t.IdToken,r=t.RefreshToken,o=t.AccessToken,c=t.ClockDrift;if(null==o||null==n)throw new Error("Id token and Access Token must be present.");this.idToken=n,this.refreshToken=r,this.accessToken=o,this.clockDrift=void 0===c?this.calculateClockDrift():c}var t=e.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.isValid=function(){var e=Math.floor(new Date/1e3)-this.clockDrift;return e<this.accessToken.getExpiration()&&e<this.idToken.getExpiration()},e}(),ee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],te=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ne=function(){function e(){}return e.prototype.getNowString=function(){var e=new Date,t=te[e.getUTCDay()],n=ee[e.getUTCMonth()],r=e.getUTCDate(),o=e.getUTCHours();o<10&&(o="0"+o);var c=e.getUTCMinutes();c<10&&(c="0"+c);var d=e.getUTCSeconds();return d<10&&(d="0"+d),t+" "+n+" "+r+" "+o+":"+c+":"+d+" UTC "+e.getUTCFullYear()},e}(),re=function(){function e(e){var t=void 0===e?{}:e,n=t.Name,r=t.Value;this.Name=n||"",this.Value=r||""}var t=e.prototype;return t.getValue=function(){return this.Value},t.setValue=function(e){return this.Value=e,this},t.getName=function(){return this.Name},t.setName=function(e){return this.Name=e,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},e}(),ie={},oe=function(){function e(){}return e.setItem=function(e,t){return ie[e]=t,ie[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(ie,e)?ie[e]:void 0},e.removeItem=function(e){return delete ie[e]},e.clear=function(){return ie={}},e}(),ae=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(e){this.storageWindow=oe}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),se="undefined"!=typeof navigator?navigator.userAgent:"nodejs",ce=function(){function e(data){if(null==data||null==data.Username||null==data.Pool)throw new Error("Username and pool information are required.");this.username=data.Username||"",this.pool=data.Pool,this.Session=null,this.client=data.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=data.Storage||(new ae).getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=e.prototype;return t.setSignInUserSession=function(e){this.clearCachedUserData(),this.signInUserSession=e,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(e){this.authenticationFlowType=e},t.initiateAuth=function(e,t){var n=this,r=e.getAuthParameters();r.USERNAME=this.username;var o=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),c={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:o};this.getUserContextData()&&(c.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",c,(function(e,data){if(e)return t.onFailure(e);var r=data.ChallengeName,o=data.ChallengeParameters;return"CUSTOM_CHALLENGE"===r?(n.Session=data.Session,t.customChallenge(o)):(n.signInUserSession=n.getCognitoUserSession(data.AuthenticationResult),n.cacheTokens(),t.onSuccess(n.signInUserSession))}))},t.authenticateUser=function(e,t){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(e,t):"USER_SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(e,t):t.onFailure(new Error("Authentication flow type is invalid."))},t.authenticateUserDefaultAuth=function(e,t){var n,r,o=this,c=new W(this.pool.getUserPoolId().split("_")[1]),d=new ne,f={};null!=this.deviceKey&&(f.DEVICE_KEY=this.deviceKey),f.USERNAME=this.username,c.getLargeAValue((function(l,h){l&&t.onFailure(l),f.SRP_A=h.toString(16),"CUSTOM_AUTH"===o.authenticationFlowType&&(f.CHALLENGE_NAME="SRP_A");var m=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),v={AuthFlow:o.authenticationFlowType,ClientId:o.pool.getClientId(),AuthParameters:f,ClientMetadata:m};o.getUserContextData(o.username)&&(v.UserContextData=o.getUserContextData(o.username)),o.client.request("InitiateAuth",v,(function(f,data){if(f)return t.onFailure(f);var l=data.ChallengeParameters;o.username=l.USER_ID_FOR_SRP,n=new k(l.SRP_B,16),r=new k(l.SALT,16),o.getCachedDeviceKeyAndPassword(),c.getPasswordAuthenticationKey(o.username,e.getPassword(),n,r,(function(e,n){e&&t.onFailure(e);var r=d.getNowString(),f=I.a.lib.WordArray.create(E.Buffer.concat([E.Buffer.from(o.pool.getUserPoolId().split("_")[1],"utf8"),E.Buffer.from(o.username,"utf8"),E.Buffer.from(l.SECRET_BLOCK,"base64"),E.Buffer.from(r,"utf8")])),h=I.a.lib.WordArray.create(n),v=Z.a.stringify(j()(f,h)),y={};y.USERNAME=o.username,y.PASSWORD_CLAIM_SECRET_BLOCK=l.SECRET_BLOCK,y.TIMESTAMP=r,y.PASSWORD_CLAIM_SIGNATURE=v,null!=o.deviceKey&&(y.DEVICE_KEY=o.deviceKey);var _={ChallengeName:"PASSWORD_VERIFIER",ClientId:o.pool.getClientId(),ChallengeResponses:y,Session:data.Session,ClientMetadata:m};o.getUserContextData()&&(_.UserContextData=o.getUserContextData()),function e(t,n){return o.client.request("RespondToAuthChallenge",t,(function(r,c){return r&&"ResourceNotFoundException"===r.code&&-1!==r.message.toLowerCase().indexOf("device")?(y.DEVICE_KEY=null,o.deviceKey=null,o.randomPassword=null,o.deviceGroupKey=null,o.clearCachedDeviceKeyAndPassword(),e(t,n)):n(r,c)}))}(_,(function(e,n){return e?t.onFailure(e):o.authenticateUserInternal(n,c,t)}))}))}))}))},t.authenticateUserPlainUsernamePassword=function(e,t){var n=this,r={};if(r.USERNAME=this.username,r.PASSWORD=e.getPassword(),r.PASSWORD){var o=new W(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(r.DEVICE_KEY=this.deviceKey);var c=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),d={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:c};this.getUserContextData(this.username)&&(d.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",d,(function(e,r){return e?t.onFailure(e):n.authenticateUserInternal(r,o,t)}))}else t.onFailure(new Error("PASSWORD parameter is required"))},t.authenticateUserInternal=function(e,t,n){var r=this,o=e.ChallengeName,c=e.ChallengeParameters;if("SMS_MFA"===o)return this.Session=e.Session,n.mfaRequired(o,c);if("SELECT_MFA_TYPE"===o)return this.Session=e.Session,n.selectMFAType(o,c);if("MFA_SETUP"===o)return this.Session=e.Session,n.mfaSetup(o,c);if("SOFTWARE_TOKEN_MFA"===o)return this.Session=e.Session,n.totpRequired(o,c);if("CUSTOM_CHALLENGE"===o)return this.Session=e.Session,n.customChallenge(c);if("NEW_PASSWORD_REQUIRED"===o){this.Session=e.Session;var d=null,f=null,l=[],h=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(c&&(d=JSON.parse(e.ChallengeParameters.userAttributes),f=JSON.parse(e.ChallengeParameters.requiredAttributes)),f)for(var i=0;i<f.length;i++)l[i]=f[i].substr(h.length);return n.newPasswordRequired(d,l)}if("DEVICE_SRP_AUTH"!==o){this.signInUserSession=this.getCognitoUserSession(e.AuthenticationResult),this.challengeName=o,this.cacheTokens();var m=e.AuthenticationResult.NewDeviceMetadata;if(null==m)return n.onSuccess(this.signInUserSession);t.generateHashDevice(e.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,e.AuthenticationResult.NewDeviceMetadata.DeviceKey,(function(o){if(o)return n.onFailure(o);var c={Salt:E.Buffer.from(t.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:E.Buffer.from(t.getVerifierDevices(),"hex").toString("base64")};r.verifierDevices=c.PasswordVerifier,r.deviceGroupKey=m.DeviceGroupKey,r.randomPassword=t.getRandomPassword(),r.client.request("ConfirmDevice",{DeviceKey:m.DeviceKey,AccessToken:r.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:c,DeviceName:se},(function(t,o){return t?n.onFailure(t):(r.deviceKey=e.AuthenticationResult.NewDeviceMetadata.DeviceKey,r.cacheDeviceKeyAndPassword(),!0===o.UserConfirmationNecessary?n.onSuccess(r.signInUserSession,o.UserConfirmationNecessary):n.onSuccess(r.signInUserSession))}))}))}else this.getDeviceResponse(n)},t.completeNewPasswordChallenge=function(e,t,n,r){var o=this;if(!e)return n.onFailure(new Error("New password is required."));var c=new W(this.pool.getUserPoolId().split("_")[1]),d=c.getNewPasswordRequiredChallengeUserAttributePrefix(),f={};t&&Object.keys(t).forEach((function(e){f[d+e]=t[e]})),f.NEW_PASSWORD=e,f.USERNAME=this.username;var l={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:f,Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",l,(function(e,t){return e?n.onFailure(e):o.authenticateUserInternal(t,c,n)}))},t.getDeviceResponse=function(e,t){var n=this,r=new W(this.deviceGroupKey),o=new ne,c={};c.USERNAME=this.username,c.DEVICE_KEY=this.deviceKey,r.getLargeAValue((function(d,f){d&&e.onFailure(d),c.SRP_A=f.toString(16);var l={ChallengeName:"DEVICE_SRP_AUTH",ClientId:n.pool.getClientId(),ChallengeResponses:c,ClientMetadata:t};n.getUserContextData()&&(l.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",l,(function(t,data){if(t)return e.onFailure(t);var c=data.ChallengeParameters,d=new k(c.SRP_B,16),f=new k(c.SALT,16);r.getPasswordAuthenticationKey(n.deviceKey,n.randomPassword,d,f,(function(t,r){if(t)return e.onFailure(t);var d=o.getNowString(),f=I.a.lib.WordArray.create(E.Buffer.concat([E.Buffer.from(n.deviceGroupKey,"utf8"),E.Buffer.from(n.deviceKey,"utf8"),E.Buffer.from(c.SECRET_BLOCK,"base64"),E.Buffer.from(d,"utf8")])),l=I.a.lib.WordArray.create(r),h=Z.a.stringify(j()(f,l)),m={};m.USERNAME=n.username,m.PASSWORD_CLAIM_SECRET_BLOCK=c.SECRET_BLOCK,m.TIMESTAMP=d,m.PASSWORD_CLAIM_SIGNATURE=h,m.DEVICE_KEY=n.deviceKey;var v={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:n.pool.getClientId(),ChallengeResponses:m,Session:data.Session};n.getUserContextData()&&(v.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",v,(function(t,r){return t?e.onFailure(t):(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(),e.onSuccess(n.signInUserSession))}))}))}))}))},t.confirmRegistration=function(e,t,n,r){var o={ClientId:this.pool.getClientId(),ConfirmationCode:e,Username:this.username,ForceAliasCreation:t,ClientMetadata:r};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",o,(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.sendCustomChallengeAnswer=function(e,t,n){var r=this,o={};o.USERNAME=this.username,o.ANSWER=e;var c=new W(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(o.DEVICE_KEY=this.deviceKey);var d={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:o,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:n};this.getUserContextData()&&(d.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",d,(function(e,data){return e?t.onFailure(e):r.authenticateUserInternal(data,c,t)}))},t.sendMFACode=function(e,t,n,r){var o=this,c={};c.USERNAME=this.username,c.SMS_MFA_CODE=e;var d=n||"SMS_MFA";"SOFTWARE_TOKEN_MFA"===d&&(c.SOFTWARE_TOKEN_MFA_CODE=e),null!=this.deviceKey&&(c.DEVICE_KEY=this.deviceKey);var f={ChallengeName:d,ChallengeResponses:c,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",f,(function(e,n){if(e)return t.onFailure(e);if("DEVICE_SRP_AUTH"!==n.ChallengeName){if(o.signInUserSession=o.getCognitoUserSession(n.AuthenticationResult),o.cacheTokens(),null==n.AuthenticationResult.NewDeviceMetadata)return t.onSuccess(o.signInUserSession);var r=new W(o.pool.getUserPoolId().split("_")[1]);r.generateHashDevice(n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,n.AuthenticationResult.NewDeviceMetadata.DeviceKey,(function(e){if(e)return t.onFailure(e);var c={Salt:E.Buffer.from(r.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:E.Buffer.from(r.getVerifierDevices(),"hex").toString("base64")};o.verifierDevices=c.PasswordVerifier,o.deviceGroupKey=n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,o.randomPassword=r.getRandomPassword(),o.client.request("ConfirmDevice",{DeviceKey:n.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:o.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:c,DeviceName:se},(function(e,r){return e?t.onFailure(e):(o.deviceKey=n.AuthenticationResult.NewDeviceMetadata.DeviceKey,o.cacheDeviceKeyAndPassword(),!0===r.UserConfirmationNecessary?t.onSuccess(o.signInUserSession,r.UserConfirmationNecessary):t.onSuccess(o.signInUserSession))}))}))}else o.getDeviceResponse(t)}))},t.changePassword=function(e,t,n,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:e,ProposedPassword:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:r},(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.enableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);var t=[];t.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.request("SetUserSettings",{MFAOptions:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?e(t,null):e(null,"SUCCESS")}))},t.setUserMfaPreference=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:e,SoftwareTokenMfaSettings:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.disableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("SetUserSettings",{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?e(t,null):e(null,"SUCCESS")}))},t.deleteUser=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:t},(function(t){return t?e(t,null):(n.clearCachedUser(),e(null,"SUCCESS"))}))},t.updateAttributes=function(e,t,n){var r=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:e,ClientMetadata:n},(function(e){return e?t(e,null):r.getUserData((function(){return t(null,"SUCCESS")}),{bypassCache:!0})}))},t.getUserAttributes=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n){if(t)return e(t,null);for(var r=[],i=0;i<n.UserAttributes.length;i++){var o={Name:n.UserAttributes[i].Name,Value:n.UserAttributes[i].Value},c=new re(o);r.push(c)}return e(null,r)}))},t.getMFAOptions=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n){return t?e(t,null):e(null,n.MFAOptions)}))},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(){var e=this;return new Promise((function(t){var n=e.signInUserSession.getRefreshToken();n&&n.getToken()?e.refreshSession(n,t):t()}))},t.getUserData=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return this.clearCachedUserData(),e(new Error("User is not authenticated"),null);var r=this.getUserDataFromCache();if(r)if(this.isFetchUserDataAndTokenRequired(t))this.fetchUserData().then((function(data){return n.refreshSessionIfPossible().then((function(){return data}))})).then((function(data){return e(null,data)})).catch(e);else try{return void e(null,JSON.parse(r))}catch(t){return this.clearCachedUserData(),void e(t,null)}else this.fetchUserData().then((function(data){e(null,data)})).catch(e)},t.getUserDataFromCache=function(){return this.storage.getItem(this.userDataKey)},t.isFetchUserDataAndTokenRequired=function(e){var t=(e||{}).bypassCache;return void 0!==t&&t},t.fetchUserData=function(){var e=this;return this.createGetUserRequest().then((function(data){return e.cacheUserData(data),data}))},t.deleteAttributes=function(e,t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?t(e,null):t(null,"SUCCESS")}))},t.resendConfirmationCode=function(e,t){var n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.client.request("ResendConfirmationCode",n,(function(t,n){return t?e(t,null):e(null,n)}))},t.getSession=function(e){if(null==this.username)return e(new Error("Username is null. Cannot retrieve a new session"),null);if(null!=this.signInUserSession&&this.signInUserSession.isValid())return e(null,this.signInUserSession);var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,n=t+".idToken",r=t+".accessToken",o=t+".refreshToken",c=t+".clockDrift";if(this.storage.getItem(n)){var d=new G({IdToken:this.storage.getItem(n)}),f=new Y({AccessToken:this.storage.getItem(r)}),l=new J({RefreshToken:this.storage.getItem(o)}),h=parseInt(this.storage.getItem(c),0)||0,m=new Q({IdToken:d,AccessToken:f,RefreshToken:l,ClockDrift:h});if(m.isValid())return this.signInUserSession=m,e(null,this.signInUserSession);if(!l.getToken())return e(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(l,e)}else e(new Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(e,t,n){var r=this,o={};o.REFRESH_TOKEN=e.getToken();var c="CognitoIdentityServiceProvider."+this.pool.getClientId(),d=c+".LastAuthUser";if(this.storage.getItem(d)){this.username=this.storage.getItem(d);var f=c+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(f),o.DEVICE_KEY=this.deviceKey}var l={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:o,ClientMetadata:n};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",l,(function(n,o){if(n)return"NotAuthorizedException"===n.code&&r.clearCachedUser(),t(n,null);if(o){var c=o.AuthenticationResult;return Object.prototype.hasOwnProperty.call(c,"RefreshToken")||(c.RefreshToken=e.getToken()),r.signInUserSession=r.getCognitoUserSession(c),r.cacheTokens(),t(null,r.signInUserSession)}}))},t.cacheTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",n=e+"."+this.username+".accessToken",r=e+"."+this.username+".refreshToken",o=e+"."+this.username+".clockDrift",c=e+".LastAuthUser";this.storage.setItem(t,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(n,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(r,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(o,""+this.signInUserSession.getClockDrift()),this.storage.setItem(c,this.username)},t.cacheUserData=function(e){this.storage.setItem(this.userDataKey,JSON.stringify(e))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},t.cacheDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";this.storage.setItem(t,this.deviceKey),this.storage.setItem(n,this.randomPassword),this.storage.setItem(r,this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";this.storage.getItem(t)&&(this.deviceKey=this.storage.getItem(t),this.randomPassword=this.storage.getItem(n),this.deviceGroupKey=this.storage.getItem(r))},t.clearCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";this.storage.removeItem(t),this.storage.removeItem(n),this.storage.removeItem(r)},t.clearCachedTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",n=e+"."+this.username+".accessToken",r=e+"."+this.username+".refreshToken",o=e+".LastAuthUser",c=e+"."+this.username+".clockDrift";this.storage.removeItem(t),this.storage.removeItem(n),this.storage.removeItem(r),this.storage.removeItem(o),this.storage.removeItem(c)},t.getCognitoUserSession=function(e){var t=new G(e),n=new Y(e),r=new J(e);return new Q({IdToken:t,AccessToken:n,RefreshToken:r})},t.forgotPassword=function(e,t){var n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.getUserContextData()&&(n.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",n,(function(t,data){return t?e.onFailure(t):"function"==typeof e.inputVerificationCode?e.inputVerificationCode(data):e.onSuccess(data)}))},t.confirmPassword=function(e,t,n,r){var o={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:e,Password:t,ClientMetadata:r};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",o,(function(e){return e?n.onFailure(e):n.onSuccess()}))},t.getAttributeVerificationCode=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:n},(function(e,data){return e?t.onFailure(e):"function"==typeof t.inputVerificationCode?t.inputVerificationCode(data):t.onSuccess()}))},t.verifyAttribute=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:e,Code:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?n.onFailure(e):n.onSuccess("SUCCESS")}))},t.getDevice=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},(function(t,data){return t?e.onFailure(t):e.onSuccess(data)}))},t.forgetSpecificDevice=function(e,t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:e},(function(e){return e?t.onFailure(e):t.onSuccess("SUCCESS")}))},t.forgetDevice=function(e){var t=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:e.onFailure,onSuccess:function(n){return t.deviceKey=null,t.deviceGroupKey=null,t.randomPassword=null,t.clearCachedDeviceKeyAndPassword(),e.onSuccess(n)}})},t.setDeviceStatusRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},(function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")}))},t.setDeviceStatusNotRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},(function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")}))},t.listDevices=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));var r={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:e};t&&(r.PaginationToken=t),this.client.request("ListDevices",r,(function(e,data){return e?n.onFailure(e):n.onSuccess(data)}))},t.globalSignOut=function(e){var t=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(n){return n?e.onFailure(n):(t.clearCachedUser(),e.onSuccess("SUCCESS"))}))},t.signOut=function(){this.signInUserSession=null,this.clearCachedUser()},t.sendMFASelectionAnswer=function(e,t){var n=this,r={};r.USERNAME=this.username,r.ANSWER=e;var o={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:r,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",o,(function(r,data){return r?t.onFailure(r):(n.Session=data.Session,"SMS_MFA"===e?t.mfaRequired(data.challengeName,data.challengeParameters):"SOFTWARE_TOKEN_MFA"===e?t.totpRequired(data.challengeName,data.challengeParameters):void 0)}))},t.getUserContextData=function(){return this.pool.getUserContextData(this.username)},t.associateSoftwareToken=function(e){var t=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,data){return t?e.onFailure(t):e.associateSecretCode(data.SecretCode)})):this.client.request("AssociateSoftwareToken",{Session:this.Session},(function(n,data){return n?e.onFailure(n):(t.Session=data.Session,e.associateSecretCode(data.SecretCode))}))},t.verifySoftwareToken=function(e,t,n){var r=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:e,FriendlyDeviceName:t},(function(e,data){return e?n.onFailure(e):n.onSuccess(data)})):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:e,FriendlyDeviceName:t},(function(e,data){if(e)return n.onFailure(e);r.Session=data.Session;var t={};t.USERNAME=r.username;var o={ChallengeName:"MFA_SETUP",ClientId:r.pool.getClientId(),ChallengeResponses:t,Session:r.Session};r.getUserContextData()&&(o.UserContextData=r.getUserContextData()),r.client.request("RespondToAuthChallenge",o,(function(e,t){return e?n.onFailure(e):(r.signInUserSession=r.getCognitoUserSession(t.AuthenticationResult),r.cacheTokens(),n.onSuccess(r.signInUserSession))}))}))},e}();function ue(){}ue.prototype.userAgent="aws-amplify/0.1.x js";var de=ue;function fe(e){var t="function"==typeof Map?new Map:void 0;return(fe=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return le(e,arguments,pe(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),he(r,e)})(e)}function le(e,t,n){return(le=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var a=[null];a.push.apply(a,t);var r=new(Function.bind.apply(e,a));return n&&he(r,n.prototype),r}).apply(null,arguments)}function he(e,p){return(he=Object.setPrototypeOf||function(e,p){return e.__proto__=p,e})(e,p)}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ge,me=function(e){var t,n;function r(t,code,n,r){var o;return(o=e.call(this,t)||this).code=code,o.name=n,o.statusCode=r,o}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(fe(Error)),be=function(){function e(e,t,n){this.endpoint=t||"https://cognito-idp."+e+".amazonaws.com/";var r=(n||{}).credentials;this.fetchOptions=r?{credentials:r}:{}}var t=e.prototype;return t.promisifyRequest=function(e,t){var n=this;return new Promise((function(r,o){n.request(e,t,(function(e,data){e?o(new me(e.message,e.code,e.name,e.statusCode)):r(data)}))}))},t.request=function(e,t,n){var r,o={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":de.prototype.userAgent},c=Object.assign({},this.fetchOptions,{headers:o,method:"POST",mode:"cors",cache:"no-cache",body:JSON.stringify(t)});fetch(this.endpoint,c).then((function(e){return r=e,e}),(function(e){if(e instanceof TypeError)throw new Error("Network error");throw e})).then((function(e){return e.json().catch((function(){return{}}))})).then((function(data){if(r.ok)return n(null,data);data;var code=(data.__type||data.code).split("#").pop(),e={code:code,name:code,message:data.message||data.Message||null};return n(e)})).catch((function(e){if(!(r&&r.headers&&r.headers.get("x-amzn-errortype"))){if(e instanceof Error&&"Network error"===e.message){var t={code:"NetworkError",name:e.name,message:e.message};return n(t)}return n(e)}try{var code=r.headers.get("x-amzn-errortype").split(":")[0],o={code:code,name:code,statusCode:r.status,message:r.status?r.status.toString():null};return n(o)}catch(t){return n(e)}}))},e}(),ve=function(){function e(data){var e=data||{},t=e.UserPoolId,n=e.ClientId,r=e.endpoint,o=e.fetchOptions,c=e.AdvancedSecurityDataCollectionFlag;if(!t||!n)throw new Error("Both UserPoolId and ClientId are required.");if(!/^[\w-]+_.+$/.test(t))throw new Error("Invalid UserPoolId format.");var d=t.split("_")[0];this.userPoolId=t,this.clientId=n,this.client=new be(d,r,o),this.advancedSecurityDataCollectionFlag=!1!==c,this.storage=data.Storage||(new ae).getStorage()}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getClientId=function(){return this.clientId},t.signUp=function(e,t,n,r,o,c){var d=this,f={ClientId:this.clientId,Username:e,Password:t,UserAttributes:n,ValidationData:r,ClientMetadata:c};this.getUserContextData(e)&&(f.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",f,(function(t,data){if(t)return o(t,null);var n={Username:e,Pool:d,Storage:d.storage},r={user:new ce(n),userConfirmed:data.UserConfirmed,userSub:data.UserSub,codeDeliveryDetails:data.CodeDeliveryDetails};return o(null,r)}))},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);if(t){var n={Username:t,Pool:this,Storage:this.storage};return new ce(n)}return null},t.getUserContextData=function(e){if("undefined"!=typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var n=t.getData(e,this.userPoolId,this.clientId);if(n)return{EncodedData:n}}return{}}},e}(),ye=n(106),_e=function(){function e(data){if(!data.domain)throw new Error("The domain of cookieStorage can not be undefined.");this.domain=data.domain,data.path?this.path=data.path:this.path="/",Object.prototype.hasOwnProperty.call(data,"expires")?this.expires=data.expires:this.expires=365,Object.prototype.hasOwnProperty.call(data,"secure")?this.secure=data.secure:this.secure=!0}var t=e.prototype;return t.setItem=function(e,t){return ye.set(e,t,{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure}),ye.get(e)},t.getItem=function(e){return ye.get(e)},t.removeItem=function(e){return ye.remove(e,{path:this.path,domain:this.domain,secure:this.secure})},t.clear=function(){var e,t=ye.get();for(e=0;e<t.length;++e)ye.remove(t[e]);return{}},e}(),we=n(79),Se=function(e){var t=window.open(e,"_self");return t?Promise.resolve(t):Promise.reject()},Ee=function(){return(Ee=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e}).apply(this,arguments)},Oe=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},Ie=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},xe=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},Ae="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Ce=function(e,data,t){h.a.dispatch("auth",{event:e,data:data,message:t},"Auth",Ae)},je=new l.a("OAuth"),ke=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,o=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||Se,this._config=t,this._cognitoClientId=n,!this.isValidScopes(o))throw Error("scopes must be a String Array");this._scopes=o}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))},e.prototype.oauthSignIn=function(e,t,n,o,c,d){void 0===e&&(e="code"),void 0===c&&(c=r.Cognito);var f=this._generateState(32),l=d?f+"-"+d:f;!function(e){window.sessionStorage.setItem("oauth_state",e)}(encodeURIComponent(l));var h,m=this._generateRandom(128);h=m,window.sessionStorage.setItem("ouath_pkce_key",h);var v=this._generateChallenge(m),y=this._scopes.join(" "),_="https://"+t+"/oauth2/authorize?"+Object.entries(Ee(Ee({redirect_uri:n,response_type:e,client_id:o,identity_provider:c,scope:y,state:l},"code"===e?{code_challenge:v}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=xe(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&");je.debug("Redirecting to "+_),this._urlOpener(_,n)},e.prototype._handleCodeFlow=function(e){return Oe(this,void 0,void 0,(function(){var code,t,n,r,o,c,body,f,l,h,m,v;return Ie(this,(function(y){switch(y.label){case 0:return(code=(Object(we.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=xe(t,2),o=r[0],c=r[1];return Ee(Ee({},e),((n={})[o]=c,n))}),{code:void 0}).code)?(t="https://"+this._config.domain+"/oauth2/token",Ce("codeFlow",{},"Retrieving tokens from "+t),n=d(this._config)?this._cognitoClientId:this._config.clientID,r=d(this._config)?this._config.redirectSignIn:this._config.redirectUri,_=window.sessionStorage.getItem("ouath_pkce_key"),window.sessionStorage.removeItem("ouath_pkce_key"),c=Ee({grant_type:"authorization_code",code:code,client_id:n,redirect_uri:r},(o=_)?{code_verifier:o}:{}),je.debug("Calling token endpoint: "+t+" with",c),body=Object.entries(c).map((function(e){var t=xe(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),[4,fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:body})]):[2];case 1:return[4,y.sent().json()];case 2:if(f=y.sent(),l=f.access_token,h=f.refresh_token,m=f.id_token,v=f.error)throw new Error(v);return[2,{accessToken:l,refreshToken:h,idToken:m}]}var _}))}))},e.prototype._handleImplicitFlow=function(e){return Oe(this,void 0,void 0,(function(){var t,n,r;return Ie(this,(function(o){return t=Object(we.parse)(e).hash.substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=xe(t,2),o=r[0],c=r[1];return Ee(Ee({},e),((n={})[o]=c,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,Ce("implicitFlow",{},"Got tokens from "+e),je.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return Oe(this,void 0,void 0,(function(){var t,n,r,o,c,d,f;return Ie(this,(function(l){switch(l.label){case 0:if(l.trys.push([0,5,,6]),t=e?Ee(Ee({},(Object(we.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=xe(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})),(Object(we.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=xe(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return o=this._validateState(t),je.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(c=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,Ee.apply(void 0,[Ee.apply(void 0,c.concat([l.sent()])),{state:o}])];case 2:return d=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,Ee.apply(void 0,[Ee.apply(void 0,d.concat([l.sent()])),{state:o}])];case 4:return[3,6];case 5:throw f=l.sent(),je.error("Error handling auth response.",f),f;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t,n=(t=window.sessionStorage.getItem("oauth_state"),window.sessionStorage.removeItem("oauth_state"),t),r=e.state;if(n&&n!==r)throw new Error("Invalid state in OAuth flow");return r}},e.prototype.signOut=function(){return Oe(this,void 0,void 0,(function(){var e,t,n;return Ie(this,(function(r){return e="https://"+this._config.domain+"/logout?",t=d(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=d(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=xe(e,2);return t[0]+"="+t[1]})).join("&"),Ce("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),je.debug("Signing out from "+e),[2,this._urlOpener(e)]}))}))},e.prototype._generateState=function(e){for(var t="",i=e,n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";i>0;--i)t+=n[Math.round(Math.random()*(n.length-1))];return t},e.prototype._generateChallenge=function(code){return this._base64URL(A()(code))},e.prototype._base64URL=function(e){return e.toString(Z.a).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var i=0;i<e;i+=1)t[i]=Math.random()*"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~".length|0;return this._bufferToString(t)},e.prototype._bufferToString=function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],i=0;i<e.byteLength;i+=1){var r=e[i]%t.length;n.push(t[r])}return n.join("")},e}();!function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty"}(ge||(ge={}));var Me,Te=(Me=function(e,b){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])})(e,b)},function(e,b){function t(){this.constructor=e}Me(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}),Pe=new l.a("AuthError"),$e=function(e){function t(n){var r=this,o=De[n],c=o.message,d=o.log;return(r=e.call(this,c)||this).constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="AuthError",r.log=d||c,Pe.error(r.log),r}return Te(t,e),t}(Error),Re=function(e){function t(n){var r=e.call(this,n)||this;return r.constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="NoUserPoolError",r}return Te(t,e),t}($e),De={noConfig:{message:ge.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly.\n            This error is typically caused by one of the following scenarios:\n\n            1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n                See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n            \n            2. There might be multiple conflicting versions of aws-amplify or amplify packages in your node_modules.\n                Try deleting your node_modules folder and reinstalling the dependencies with `yarn install`\n        "},missingAuthConfig:{message:ge.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly. \n            The configuration object is missing required auth properties. \n            Did you run `amplify push` after adding auth via `amplify add auth`?\n            See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n        "},emptyUsername:{message:ge.EMPTY_USERNAME},invalidUsername:{message:ge.INVALID_USERNAME},emptyPassword:{message:ge.EMPTY_PASSWORD},emptyCode:{message:ge.EMPTY_CODE},signUpError:{message:ge.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:ge.NO_MFA},invalidMFA:{message:ge.INVALID_MFA},emptyChallengeResponse:{message:ge.EMPTY_CHALLENGE},noUserSession:{message:ge.NO_USER_SESSION},default:{message:ge.DEFAULT_MSG}},Ne=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},Ue=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},Be=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},Le=new l.a("AuthClass"),ze="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",qe=function(e,data,t){h.a.dispatch("auth",{event:e,data:data,message:t},"Auth",ze)},Fe=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.configure(e),this.currentUserCredentials=this.currentUserCredentials.bind(this),h.a.listen("auth",(function(e){switch(e.payload.event){case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}})),m.a.register(this)}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};Le.debug("configure Auth");var n=Object.assign({},this._config,v.a.parseMobilehubConfig(e).Auth,e);this._config=n;var r=this._config,o=r.userPoolId,c=r.userPoolWebClientId,f=r.cookieStorage,l=r.oauth,h=r.region,m=r.identityPoolId,S=r.mandatorySignIn,E=r.refreshHandlers,O=r.identityPoolRegion,I=r.clientMetadata;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw Le.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=f?new _e(f):(new y.a).getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),o){var x={UserPoolId:o,ClientId:c};x.Storage=this._storage,this.userPool=new ve(x)}_.a.configure({mandatorySignIn:S,region:O||h,userPoolId:o,identityPoolId:m,refreshHandlers:E,storage:this._storage});var A=l?d(this._config.oauth)?l:l.awsCognito:void 0;if(A){var C=Object.assign({cognitoClientId:c,UserPoolId:o,domain:A.domain,scopes:A.scope,redirectSignIn:A.redirectSignIn,redirectSignOut:A.redirectSignOut,responseType:A.responseType,Storage:this._storage,urlOpener:A.urlOpener,clientMetadata:I},A.options);this._oAuthHandler=new ke({scopes:C.scopes,config:C,cognitoClientId:C.cognitoClientId});var j={};!function(e){if(w.a.browserOrNode().isBrowser&&window.location)e({url:window.location.href});else if(!w.a.browserOrNode().isNode)throw new Error("Not supported")}((function(e){var n=e.url;j[n]||(j[n]=!0,t._handleAuthResponse(n))}))}return qe("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this.userPool)return this.rejectNoUserPool();var c,d=null,f=null,l=[],h=null;if(e&&"string"==typeof e){d=e,f=n?n[0]:null;var m=n?n[1]:null,v=n?n[2]:null;m&&l.push({Name:"email",Value:m}),v&&l.push({Name:"phone_number",Value:v})}else{if(!e||"object"!=typeof e)return this.rejectAuthError(o.SignUpError);d=e.username,f=e.password,e&&e.clientMetadata?c=e.clientMetadata:this._config.clientMetadata&&(c=this._config.clientMetadata);var y=e.attributes;y&&Object.keys(y).map((function(e){var t={Name:e,Value:y[e]};l.push(t)})),h=e.validationData||null}return d?f?(Le.debug("signUp attrs:",l),Le.debug("signUp validation data:",h),new Promise((function(e,n){t.userPool.signUp(d,f,l,h,(function(t,data){t?(qe("signUp_failure",t,d+" failed to signup"),n(t)):(qe("signUp",data,d+" has signed up successfully"),e(data))}),c)}))):this.rejectAuthError(o.EmptyPassword):this.rejectAuthError(o.EmptyUsername)},e.prototype.confirmSignUp=function(e,code,t){if(!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(o.EmptyUsername);if(!code)return this.rejectAuthError(o.EmptyCode);var n,r=this.createCognitoUser(e),c=!t||"boolean"!=typeof t.forceAliasCreation||t.forceAliasCreation;return t&&t.clientMetadata?n=t.clientMetadata:this._config.clientMetadata&&(n=this._config.clientMetadata),new Promise((function(e,t){r.confirmRegistration(code,c,(function(n,data){n?t(n):e(data)}),n)}))},e.prototype.resendSignUp=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(o.EmptyUsername);var n=this.createCognitoUser(e);return new Promise((function(e,r){n.resendConfirmationCode((function(t,data){t?r(t):e(data)}),t)}))},e.prototype.signIn=function(e,t,n){if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var r=null,c=null,d={};if("string"==typeof e)r=e,c=t;else{if(!e.username)return this.rejectAuthError(o.InvalidUsername);void 0!==t&&Le.warn("The password should be defined under the first parameter object!"),r=e.username,c=e.password,d=e.validationData}if(!r)return this.rejectAuthError(o.EmptyUsername);var f=new S({Username:r,Password:c,ValidationData:d,ClientMetadata:n});return c?this.signInWithPassword(f):this.signInWithoutPassword(f)},e.prototype.authCallbacks=function(e,t,n){var r=this,o=this;return{onSuccess:function(c){return Ne(r,void 0,void 0,(function(){var r,d,f,l;return Ue(this,(function(h){switch(h.label){case 0:Le.debug(c),delete e.challengeName,delete e.challengeParam,h.label=1;case 1:return h.trys.push([1,4,5,9]),[4,_.a.clear()];case 2:return h.sent(),[4,_.a.set(c,"session")];case 3:return r=h.sent(),Le.debug("succeed to get cognito credentials",r),[3,9];case 4:return d=h.sent(),Le.debug("cannot get cognito credentials",d),[3,9];case 5:return h.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return f=h.sent(),o.user=f,qe("signIn",f,"A user "+e.getUsername()+" has been signed in"),t(f),[3,8];case 7:return l=h.sent(),Le.error("Failed to get the signed in user",l),n(l),[3,8];case 8:return[7];case 9:return[2]}}))}))},onFailure:function(t){Le.debug("signIn failure",t),qe("signIn_failure",t,e.getUsername()+" failed to signin"),n(t)},customChallenge:function(n){Le.debug("signIn custom challenge answer required"),e.challengeName="CUSTOM_CHALLENGE",e.challengeParam=n,t(e)},mfaRequired:function(n,r){Le.debug("signIn MFA required"),e.challengeName=n,e.challengeParam=r,t(e)},mfaSetup:function(n,r){Le.debug("signIn mfa setup",n),e.challengeName=n,e.challengeParam=r,t(e)},newPasswordRequired:function(n,r){Le.debug("signIn new password"),e.challengeName="NEW_PASSWORD_REQUIRED",e.challengeParam={userAttributes:n,requiredAttributes:r},t(e)},totpRequired:function(n,r){Le.debug("signIn totpRequired"),e.challengeName=n,e.challengeParam=r,t(e)},selectMFAType:function(n,r){Le.debug("signIn selectMFAType",n),e.challengeName=n,e.challengeParam=r,t(e)}}},e.prototype.signInWithPassword=function(e){var t=this,n=this.createCognitoUser(e.getUsername());return new Promise((function(r,o){n.authenticateUser(e,t.authCallbacks(n,r,o))}))},e.prototype.signInWithoutPassword=function(e){var t=this,n=this.createCognitoUser(e.getUsername());return n.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise((function(r,o){n.initiateAuth(e,t.authCallbacks(n,r,o))}))},e.prototype.getMFAOptions=function(e){return new Promise((function(t,n){e.getMFAOptions((function(e,r){if(e)return Le.debug("get MFA Options failed",e),void n(e);Le.debug("get MFA options success",r),t(r)}))}))},e.prototype.getPreferredMFA=function(e,t){var n=this;return new Promise((function(r,o){var c=!!t&&t.bypassCache;e.getUserData((function(e,data){if(e)return Le.debug("getting preferred mfa failed",e),void o(e);var t=n._getMfaTypeFromUserData(data);return t?void r(t):void o("invalid MFA Type")}),{bypassCache:c})}))},e.prototype._getMfaTypeFromUserData=function(data){var e=null,t=data.PreferredMfaSetting;if(t)e=t;else{var n=data.UserMFASettingList;if(n)0===n.length?e="NOMFA":Le.debug("invalid case for getPreferredMFA",data);else e=data.MFAOptions?"SMS_MFA":"NOMFA"}return e},e.prototype._getUserData=function(e,t){return new Promise((function(n,r){e.getUserData((function(e,data){return e?(Le.debug("getting user data failed",e),void r(e)):void n(data)}),t)}))},e.prototype.setPreferredMFA=function(e,t){return Ne(this,void 0,void 0,(function(){var n,r,c,d,f;return Ue(this,(function(l){switch(l.label){case 0:return[4,this._getUserData(e,{bypassCache:!0})];case 1:switch(n=l.sent(),r=null,c=null,t){case"TOTP":return[3,2];case"SMS":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return c={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return r={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return d=n.UserMFASettingList,[4,this._getMfaTypeFromUserData(n)];case 5:if("NOMFA"===(f=l.sent()))return[2,Promise.resolve("No change for mfa type")];if("SMS_MFA"===f)r={PreferredMfa:!1,Enabled:!1};else{if("SOFTWARE_TOKEN_MFA"!==f)return[2,this.rejectAuthError(o.InvalidMFA)];c={PreferredMfa:!1,Enabled:!1}}return d&&0!==d.length&&d.forEach((function(e){"SMS_MFA"===e?r={PreferredMfa:!1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===e&&(c={PreferredMfa:!1,Enabled:!1})})),[3,7];case 6:return Le.debug("no validmfa method provided"),[2,this.rejectAuthError(o.NoMFA)];case 7:return this,[2,new Promise((function(t,n){e.setUserMfaPreference(r,c,(function(r,o){if(r)return Le.debug("Set user mfa preference error",r),n(r);Le.debug("Set user mfa success",o),Le.debug("Caching the latest user data into local"),e.getUserData((function(e,data){return e?(Le.debug("getting user data failed",e),n(e)):t(o)}),{bypassCache:!0})}))}))]}}))}))},e.prototype.disableSMS=function(e){return new Promise((function(t,n){e.disableMFA((function(e,data){if(e)return Le.debug("disable mfa failed",e),void n(e);Le.debug("disable mfa succeed",data),t(data)}))}))},e.prototype.enableSMS=function(e){return new Promise((function(t,n){e.enableMFA((function(e,data){if(e)return Le.debug("enable mfa failed",e),void n(e);Le.debug("enable mfa succeed",data),t(data)}))}))},e.prototype.setupTOTP=function(e){return new Promise((function(t,n){e.associateSoftwareToken({onFailure:function(e){Le.debug("associateSoftwareToken failed",e),n(e)},associateSecretCode:function(e){Le.debug("associateSoftwareToken sucess",e),t(e)}})}))},e.prototype.verifyTotpToken=function(e,t){return Le.debug("verfication totp token",e,t),new Promise((function(n,r){e.verifySoftwareToken(t,"My TOTP device",{onFailure:function(e){Le.debug("verifyTotpToken failed",e),r(e)},onSuccess:function(data){Le.debug("verifyTotpToken success",data),n(data)}})}))},e.prototype.confirmSignIn=function(e,code,t,n){var r=this;if(void 0===n&&(n=this._config.clientMetadata),!code)return this.rejectAuthError(o.EmptyCode);var c=this;return new Promise((function(o,d){e.sendMFACode(code,{onSuccess:function(t){return Ne(r,void 0,void 0,(function(){var n,r;return Ue(this,(function(d){switch(d.label){case 0:Le.debug(t),d.label=1;case 1:return d.trys.push([1,4,5,6]),[4,_.a.clear()];case 2:return d.sent(),[4,_.a.set(t,"session")];case 3:return n=d.sent(),Le.debug("succeed to get cognito credentials",n),[3,6];case 4:return r=d.sent(),Le.debug("cannot get cognito credentials",r),[3,6];case 5:return c.user=e,qe("signIn",e,e+" has signed in"),o(e),[7];case 6:return[2]}}))}))},onFailure:function(e){Le.debug("confirm signIn failure",e),d(e)}},t,n)}))},e.prototype.completeNewPassword=function(e,t,n,r){var c=this;if(void 0===r&&(r=this._config.clientMetadata),!t)return this.rejectAuthError(o.EmptyPassword);var d=this;return new Promise((function(o,f){e.completeNewPasswordChallenge(t,n,{onSuccess:function(t){return Ne(c,void 0,void 0,(function(){var n,r;return Ue(this,(function(c){switch(c.label){case 0:Le.debug(t),c.label=1;case 1:return c.trys.push([1,4,5,6]),[4,_.a.clear()];case 2:return c.sent(),[4,_.a.set(t,"session")];case 3:return n=c.sent(),Le.debug("succeed to get cognito credentials",n),[3,6];case 4:return r=c.sent(),Le.debug("cannot get cognito credentials",r),[3,6];case 5:return d.user=e,qe("signIn",e,e+" has signed in"),o(e),[7];case 6:return[2]}}))}))},onFailure:function(e){Le.debug("completeNewPassword failure",e),qe("completeNewPassword_failure",e,c.user+" failed to complete the new password flow"),f(e)},mfaRequired:function(t,n){Le.debug("signIn MFA required"),e.challengeName=t,e.challengeParam=n,o(e)},mfaSetup:function(t,n){Le.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=n,o(e)},totpRequired:function(t,n){Le.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=n,o(e)}},r)}))},e.prototype.sendCustomChallengeAnswer=function(e,t,n){var r=this;if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(o.EmptyChallengeResponse);return new Promise((function(o,c){e.sendCustomChallengeAnswer(t,r.authCallbacks(e,o,c),n)}))},e.prototype.updateUserAttributes=function(e,t,n){void 0===n&&(n=this._config.clientMetadata);var r=[],o=this;return new Promise((function(c,d){o.userSession(e).then((function(o){for(var f in t)if("sub"!==f&&f.indexOf("_verified")<0){var l={Name:f,Value:t[f]};r.push(l)}e.updateAttributes(r,(function(e,t){return e?d(e):c(t)}),n)}))}))},e.prototype.userAttributes=function(e){var t=this;return new Promise((function(n,r){t.userSession(e).then((function(t){e.getUserAttributes((function(e,t){e?r(e):n(t)}))}))}))},e.prototype.verifiedContact=function(e){var t=this;return this.userAttributes(e).then((function(e){var n=t.attributesToObject(e),r={},o={};return n.email&&(n.email_verified?o.email=n.email:r.email=n.email),n.phone_number&&(n.phone_number_verified?o.phone_number=n.phone_number:r.phone_number=n.phone_number),{verified:o,unverified:r}}))},e.prototype.currentUserPoolUser=function(e){var t=this;return this.userPool?new Promise((function(n,r){t._storageSync.then((function(){return Ne(t,void 0,void 0,(function(){var t,o=this;return Ue(this,(function(c){switch(c.label){case 0:return this.isOAuthInProgress()?(Le.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise((function(e){var t=setTimeout((function(){Le.debug("OAuth signIn in progress timeout"),h.a.remove("auth",n),e()}),1e4);function n(r){var o=r.payload.event;"cognitoHostedUI"!==o&&"cognitoHostedUI_failure"!==o||(Le.debug("OAuth signIn resolved: "+o),clearTimeout(t),h.a.remove("auth",n),e())}h.a.listen("auth",n)}))]):[3,2];case 1:c.sent(),c.label=2;case 2:return(t=this.userPool.getCurrentUser())?(t.getSession((function(c,d){if(c)return Le.debug("Failed to get the user session",c),void r(c);var f=!!e&&e.bypassCache,l=d.getAccessToken().decodePayload().scope;if(!(void 0===l?"":l).split(" ").includes("aws.cognito.signin.user.admin"))return Le.debug("Unable to get the user data because the aws.cognito.signin.user.admin is not in the scopes of the access token"),n(t);t.getUserData((function(e,data){if(e)return Le.debug("getting user data failed",e),void("User is disabled."===e.message||"User does not exist."===e.message||"Access Token has been revoked"===e.message?r(e):n(t));for(var c=data.PreferredMfaSetting||"NOMFA",d=[],i=0;i<data.UserAttributes.length;i++){var f={Name:data.UserAttributes[i].Name,Value:data.UserAttributes[i].Value},l=new re(f);d.push(l)}var h=o.attributesToObject(d);return Object.assign(t,{attributes:h,preferredMFA:c}),n(t)}),{bypassCache:f})})),[2]):(Le.debug("Failed to get user from user pool"),r("No current user"),[2])}}))}))})).catch((function(e){return Le.debug("Failed to sync cache info into memory",e),r(e)}))})):this.rejectNoUserPool()},e.prototype.isOAuthInProgress=function(){return this.oAuthFlowInProgress},e.prototype.currentAuthenticatedUser=function(e){return Ne(this,void 0,void 0,(function(){var t,n,r,o;return Ue(this,(function(c){switch(c.label){case 0:Le.debug("getting current authenticated user"),t=null,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._storageSync];case 2:return c.sent(),[3,4];case 3:throw n=c.sent(),Le.debug("Failed to sync cache info into memory",n),n;case 4:try{t=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")).user}catch(e){Le.debug("cannot load federated user from auth storage")}return t?(this.user=t,Le.debug("get current authenticated federated user",this.user),[2,this.user]):[3,5];case 5:Le.debug("get current authenticated userpool user"),r=null,c.label=6;case 6:return c.trys.push([6,8,,9]),[4,this.currentUserPoolUser(e)];case 7:return r=c.sent(),[3,9];case 8:throw"No userPool"===(o=c.sent())&&Le.error("Cannot get the current user because the user pool is missing. Please make sure the Auth module is configured with a valid Cognito User Pool ID"),Le.debug("The user is not authenticated by the error",o),"not authenticated";case 9:return this.user=r,[2,this.user]}}))}))},e.prototype.currentSession=function(){var e=this;return Le.debug("Getting current session"),this.userPool?new Promise((function(t,n){e.currentUserPoolUser().then((function(r){e.userSession(r).then((function(e){t(e)})).catch((function(e){Le.debug("Failed to get the current session",e),n(e)}))})).catch((function(e){Le.debug("Failed to get the current user",e),n(e)}))})):Promise.reject()},e.prototype.userSession=function(e){return e?new Promise((function(t,n){Le.debug("Getting the session from this user:",e),e.getSession((function(r,o){return r?(Le.debug("Failed to get the session from user",e),void n(r)):(Le.debug("Succeed to get the user session",o),void t(o))}))})):(Le.debug("the user is null"),this.rejectAuthError(o.NoUserSession))},e.prototype.currentUserCredentials=function(){return Ne(this,void 0,void 0,(function(){var e,t;return Ue(this,(function(n){switch(n.label){case 0:this,Le.debug("Getting current user credentials"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[3,4];case 3:throw e=n.sent(),Le.debug("Failed to sync cache info into memory",e),e;case 4:t=null;try{t=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo"))}catch(e){Le.debug("failed to get or parse item aws-amplify-federatedInfo",e)}return t?[2,_.a.refreshFederatedToken(t)]:[2,this.currentSession().then((function(e){return Le.debug("getting session success",e),_.a.set(e,"session")})).catch((function(e){return Le.debug("getting session failed",e),_.a.set(null,"guest")}))]}}))}))},e.prototype.currentCredentials=function(){return Le.debug("getting current credentials"),_.a.get()},e.prototype.verifyUserAttribute=function(e,t,n){return void 0===n&&(n=this._config.clientMetadata),new Promise((function(r,o){e.getAttributeVerificationCode(t,{onSuccess:function(){return r()},onFailure:function(e){return o(e)},clientMetadata:n})}))},e.prototype.verifyUserAttributeSubmit=function(e,t,code){return code?new Promise((function(n,r){e.verifyAttribute(t,code,{onSuccess:function(data){n(data)},onFailure:function(e){r(e)}})})):this.rejectAuthError(o.EmptyCode)},e.prototype.verifyCurrentUserAttribute=function(e){var t=this;return t.currentUserPoolUser().then((function(n){return t.verifyUserAttribute(n,e)}))},e.prototype.verifyCurrentUserAttributeSubmit=function(e,code){var t=this;return t.currentUserPoolUser().then((function(n){return t.verifyUserAttributeSubmit(n,e,code)}))},e.prototype.cognitoIdentitySignOut=function(e,t){return Ne(this,void 0,void 0,(function(){var n,r,o=this;return Ue(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,this._storageSync];case 1:return c.sent(),[3,3];case 2:throw n=c.sent(),Le.debug("Failed to sync cache info into memory",n),n;case 3:return r=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise((function(n,c){if(e&&e.global)Le.debug("user global sign out",t),t.getSession((function(e,d){if(e)return Le.debug("failed to get the user session",e),c(e);t.globalSignOut({onSuccess:function(data){if(Le.debug("global sign out success"),!r)return n();o.oAuthSignOutRedirect(n,c)},onFailure:function(e){return Le.debug("global sign out failed",e),c(e)}})}));else{if(Le.debug("user sign out",t),t.signOut(),!r)return n();o.oAuthSignOutRedirect(n,c)}}))]}}))}))},e.prototype.oAuthSignOutRedirect=function(e,t){w.a.browserOrNode().isBrowser?this.oAuthSignOutRedirectOrReject(t):this.oAuthSignOutAndResolve(e)},e.prototype.oAuthSignOutAndResolve=function(e){this._oAuthHandler.signOut(),e()},e.prototype.oAuthSignOutRedirectOrReject=function(e){this._oAuthHandler.signOut(),setTimeout((function(){return e("Signout timeout fail")}),3e3)},e.prototype.signOut=function(e){return Ne(this,void 0,void 0,(function(){var t;return Ue(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.cleanCachedItems()];case 1:return n.sent(),[3,3];case 2:return n.sent(),Le.debug("failed to clear cached items"),[3,3];case 3:return this.userPool?(t=this.userPool.getCurrentUser())?[4,this.cognitoIdentitySignOut(e,t)]:[3,5]:[3,7];case 4:return n.sent(),[3,6];case 5:Le.debug("no current Cognito user"),n.label=6;case 6:return[3,8];case 7:Le.debug("no Congito User pool"),n.label=8;case 8:return qe("signOut",this.user,"A user has been signed out"),this.user=null,[2]}}))}))},e.prototype.cleanCachedItems=function(){return Ne(this,void 0,void 0,(function(){return Ue(this,(function(e){switch(e.label){case 0:return[4,_.a.clear()];case 1:return e.sent(),[2]}}))}))},e.prototype.changePassword=function(e,t,n,r){var o=this;return void 0===r&&(r=this._config.clientMetadata),new Promise((function(c,d){o.userSession(e).then((function(o){e.changePassword(t,n,(function(e,data){return e?(Le.debug("change password failure",e),d(e)):c(data)}),r)}))}))},e.prototype.forgotPassword=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(o.EmptyUsername);var n=this.createCognitoUser(e);return new Promise((function(r,o){n.forgotPassword({onSuccess:function(){r()},onFailure:function(t){Le.debug("forgot password failure",t),qe("forgotPassword_failure",t,e+" forgotPassword failed"),o(t)},inputVerificationCode:function(data){qe("forgotPassword",n,e+" has initiated forgot password flow"),r(data)}},t)}))},e.prototype.forgotPasswordSubmit=function(e,code,t,n){if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(o.EmptyUsername);if(!code)return this.rejectAuthError(o.EmptyCode);if(!t)return this.rejectAuthError(o.EmptyPassword);var r=this.createCognitoUser(e);return new Promise((function(o,c){r.confirmPassword(code,t,{onSuccess:function(){qe("forgotPasswordSubmit",r,e+" forgotPasswordSubmit successful"),o()},onFailure:function(t){qe("forgotPasswordSubmit_failure",t,e+" forgotPasswordSubmit failed"),c(t)}},n)}))},e.prototype.currentUserInfo=function(){return Ne(this,void 0,void 0,(function(){var source,e,t,n,r,o,c;return Ue(this,(function(d){switch(d.label){case 0:return(source=_.a.getCredSource())&&"aws"!==source&&"userPool"!==source?[3,9]:[4,this.currentUserPoolUser().catch((function(e){return Le.debug(e)}))];case 1:if(!(c=d.sent()))return[2,null];d.label=2;case 2:return d.trys.push([2,8,,9]),[4,this.userAttributes(c)];case 3:e=d.sent(),t=this.attributesToObject(e),n=null,d.label=4;case 4:return d.trys.push([4,6,,7]),[4,this.currentCredentials()];case 5:return n=d.sent(),[3,7];case 6:return r=d.sent(),Le.debug("Failed to retrieve credentials while getting current user info",r),[3,7];case 7:return[2,{id:n?n.identityId:void 0,username:c.getUsername(),attributes:t}];case 8:return o=d.sent(),Le.debug("currentUserInfo error",o),[2,{}];case 9:return"federated"===source?[2,(c=this.user)||{}]:[2]}}))}))},e.prototype.federatedSignIn=function(e,t,n){return Ne(this,void 0,void 0,(function(){var o,f,l,h,m,v,y,w,S,E,O;return Ue(this,(function(I){switch(I.label){case 0:if(!this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation requires either a User Pool or Identity Pool in config");if(void 0===e&&this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation with Identity Pools requires tokens passed as arguments");return c(e)||(x=e)&&["customProvider","customState"].find((function(e){return x.hasOwnProperty(e)}))||void 0===e?(o=e||{provider:r.Cognito},m=c(o)?o.provider:o.customProvider,c(o),f=o.customState,this._config.userPoolId&&(l=d(this._config.oauth)?this._config.userPoolWebClientId:this._config.oauth.clientID,h=d(this._config.oauth)?this._config.oauth.redirectSignIn:this._config.oauth.redirectUri,this._oAuthHandler.oauthSignIn(this._config.oauth.responseType,this._config.oauth.domain,h,l,m,f)),[3,4]):[3,1];case 1:m=e;try{(v=JSON.stringify(JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")).user))&&Le.warn("There is already a signed in user: "+v+" in your app.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tYou should not call Auth.federatedSignIn method again as it may cause unexpected behavior.")}catch(e){}return y=t.token,w=t.identity_id,S=t.expires_at,[4,_.a.set({provider:m,token:y,identity_id:w,user:n,expires_at:S},"federation")];case 2:return E=I.sent(),[4,this.currentAuthenticatedUser()];case 3:return O=I.sent(),qe("signIn",O,"A user "+O.username+" has been signed in"),Le.debug("federated sign in credentials",E),[2,E];case 4:return[2]}var x}))}))},e.prototype._handleAuthResponse=function(e){return Ne(this,void 0,void 0,(function(){var t,n,r,o,c,d,f,l,h,m,v,y,S,E;return Ue(this,(function(O){switch(O.label){case 0:if(this.oAuthFlowInProgress)return Le.debug("Skipping URL "+e+" current flow in progress"),[2];O.label=1;case 1:if(O.trys.push([1,,8,9]),this.oAuthFlowInProgress=!0,!this._config.userPoolId)throw new Error("OAuth responses require a User Pool defined in config");if(qe("parsingCallbackUrl",{url:e},"The callback url is being parsed"),t=e||(w.a.browserOrNode().isBrowser?window.location.href:""),n=!!(Object(we.parse)(t).query||"").split("&").map((function(e){return e.split("=")})).find((function(e){var t=Be(e,1)[0];return"code"===t||"error"===t})),r=!!(Object(we.parse)(t).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).find((function(e){var t=Be(e,1)[0];return"access_token"===t||"error"===t})),!n&&!r)return[3,7];this._storage.setItem("amplify-redirected-from-hosted-ui","true"),O.label=2;case 2:return O.trys.push([2,6,,7]),[4,this._oAuthHandler.handleAuthResponse(t)];case 3:return o=O.sent(),c=o.accessToken,d=o.idToken,f=o.refreshToken,l=o.state,h=new Q({IdToken:new G({IdToken:d}),RefreshToken:new J({RefreshToken:f}),AccessToken:new Y({AccessToken:c})}),m=void 0,this._config.identityPoolId?[4,_.a.set(h,"session")]:[3,5];case 4:m=O.sent(),Le.debug("AWS credentials",m),O.label=5;case 5:return v=/-/.test(l),(y=this.createCognitoUser(h.getIdToken().decodePayload()["cognito:username"])).setSignInUserSession(h),window&&void 0!==window.history&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),qe("signIn",y,"A user "+y.getUsername()+" has been signed in"),qe("cognitoHostedUI",y,"A user "+y.getUsername()+" has been signed in via Cognito Hosted UI"),v&&(S=l.split("-").splice(1).join("-"),qe("customOAuthState",S,"State for user "+y.getUsername())),[2,m];case 6:return E=O.sent(),Le.debug("Error in cognito hosted auth response",E),qe("signIn_failure",E,"The OAuth response flow failed"),qe("cognitoHostedUI_failure",E,"A failure occurred when returning to the Cognito Hosted UI"),qe("customState_failure",E,"A failure occurred when returning state"),[3,7];case 7:return[3,9];case 8:return this.oAuthFlowInProgress=!1,[7];case 9:return[2]}}))}))},e.prototype.essentialCredentials=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e.prototype.attributesToObject=function(e){var t={};return e&&e.map((function(e){"email_verified"===e.Name||"phone_number_verified"===e.Name?t[e.Name]="true"===e.Value||!0===e.Value:t[e.Name]=e.Value})),t},e.prototype.createCognitoUser=function(e){var t={Username:e,Pool:this.userPool};t.Storage=this._storage;var n=this._config.authenticationFlowType,r=new ce(t);return n&&r.setAuthenticationFlowType(n),r},e.prototype._isValidAuthStorage=function(e){return!!e&&"function"==typeof e.getItem&&"function"==typeof e.setItem&&"function"==typeof e.removeItem&&"function"==typeof e.clear},e.prototype.noUserPoolErrorHandler=function(e){return!e||e.userPoolId&&e.identityPoolId?o.NoConfig:o.MissingAuthConfig},e.prototype.rejectAuthError=function(e){return Promise.reject(new $e(e))},e.prototype.rejectNoUserPool=function(){var e=this.noUserPoolErrorHandler(this._config);return Promise.reject(new Re(e))},e}())(null);t.a=Fe},function(e,t,n){var r=n(891),o=n(892),c=o;c.v1=r,c.v4=o,e.exports=c},,,,,,,,,function(e,t,n){var r=n(37).Buffer,o=n(340).Transform,c=n(343).StringDecoder;function d(e){o.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(35)(d,o),d.prototype.update=function(data,e,t){"string"==typeof data&&(data=r.from(data,e));var n=this._update(data);return this.hashMode?this:(t&&(n=this._toString(n,t)),n)},d.prototype.setAutoPadding=function(){},d.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},d.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},d.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},d.prototype._transform=function(data,e,t){var n;try{this.hashMode?this._update(data):this.push(this._update(data))}catch(e){n=e}finally{t(n)}},d.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},d.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},d.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new c(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=d},,,function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return S}));var r=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],o=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},c=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort((function(a,b){var e=a[t],n=b[t];return void 0===n?void 0===e?0:1*r:void 0===e?-1*r:e<n?-1*r:e>n?1*r:0})),!0},d=function(e,t){var n=Object.assign({},e);return t&&("string"==typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},f=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),o=r.filter((function(e){return n.endsWith("."+e.ext)}));return o.length>0?o[0].type:t},l=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},h=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",i=32;i>0;i-=1)e+=t[Math.floor(Math.random()*t.length)];return e},m=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,o=e.then((function(data){return r=!0,t=!1,data}),(function(e){throw n=!0,t=!1,e}));return o.isFullfilled=function(){return r},o.isPending=function(){return t},o.isRejected=function(){return n},o},v=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==e&&null!=e.versions&&null!=e.versions.node}},y=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!w(e))return e;var r={};for(var o in e){if(e.hasOwnProperty(o))r[t.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=n.includes(o)?e[o]:y(e[o],t,n)}return r},_=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!w(e))return e;var r={};for(var o in e){if(e.hasOwnProperty(o))r[t.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=n.includes(o)?e[o]:_(e[o],t,n)}return r},w=function(e){return!(!(e instanceof Object)||e instanceof Array||e instanceof Function||e instanceof Number||e instanceof String||e instanceof Boolean)},S=function(){function e(){}return e.isEmpty=o,e.sortByField=c,e.objectLessAttributes=d,e.filenameToContentType=f,e.isTextFile=l,e.generateRandomString=h,e.makeQuerablePromise=m,e.browserOrNode=v,e.transferKeyToLowerCase=y,e.transferKeyToUpperCase=_,e.isStrictObject=w,e}()}).call(this,n(107))},,function(e,t,n){"use strict";n(25),n(22),n(15),n(8),n(16);var r=n(2),o=n(24),c=n(44),d=n(30);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?f(source,!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):f(source).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}t.a=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return Object(c.d)(t)?t.reduce((function(t,n){return[].concat(Object(o.a)(t),[e(n,n)])}),[]):Object(d.g)(t)?Object(d.h)(t).reduce((function(n,o){return l({},n,Object(r.a)({},o,e(t[o],t[o])))}),{}):n}},function(e,t,n){"use strict";var r=n(30);t.a=Object(r.c)({breakpoints:["xs","sm","md","lg","xl"],formControls:{size:null},BAlert:{dismissLabel:"Close",variant:"info"},BBadge:{variant:"secondary"},BButton:{size:null,variant:"secondary"},BButtonClose:{textVariant:null,ariaLabel:"Close"},BCardSubTitle:{subTitleTextVariant:"muted"},BCarousel:{labelPrev:"Previous Slide",labelNext:"Next Slide",labelGotoSlide:"Goto Slide",labelIndicators:"Select a slide to display"},BDropdown:{toggleText:"Toggle Dropdown",size:null,variant:"secondary",splitVariant:null},BFormFile:{browseText:"Browse",placeholder:"No file chosen",dropPlaceholder:"Drop files here"},BFormText:{textVariant:"muted"},BImg:{blankColor:"transparent"},BImgLazy:{blankColor:"transparent"},BInputGroup:{size:null},BJumbotron:{bgVariant:null,borderVariant:null,textVariant:null},BListGroupItem:{variant:null},BModal:{titleTag:"h5",size:"md",headerBgVariant:null,headerBorderVariant:null,headerTextVariant:null,headerCloseVariant:null,bodyBgVariant:null,bodyTextVariant:null,footerBgVariant:null,footerBorderVariant:null,footerTextVariant:null,cancelTitle:"Cancel",cancelVariant:"secondary",okTitle:"OK",okVariant:"primary",headerCloseLabel:"Close"},BNavbar:{variant:null},BNavbarToggle:{label:"Toggle navigation"},BPagination:{size:null},BPaginationNav:{size:null},BPopover:{boundary:"scrollParent",boundaryPadding:5,customClass:null,delay:0,variant:null},BProgress:{variant:null},BProgressBar:{variant:null},BSpinner:{variant:null},BTable:{selectedVariant:"primary",headVariant:null,footVariant:null},BToast:{toaster:"b-toaster-top-right",autoHideDelay:5e3,variant:null,toastClass:null,headerClass:null,bodyClass:null},BToaster:{ariaLive:null,ariaAtomic:null,role:null},BTooltip:{boundary:"scrollParent",boundaryPadding:5,customClass:null,delay:0,variant:null}})},,,,,function(e,t,n){var r=n(10),o=n(142);e.exports=function(e){var t=r(e),n=t.getFullYear(),c=new Date(0);c.setFullYear(n+1,0,4),c.setHours(0,0,0,0);var d=o(c),f=new Date(0);f.setFullYear(n,0,4),f.setHours(0,0,0,0);var l=o(f);return t.getTime()>=d.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}},function(e,t,n){var r=n(225);e.exports=function(e){return r(e,{weekStartsOn:1})}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e);return t.setHours(0,0,0,0),t}},function(e,t,n){"use strict";var r=n(229),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=v;var c=Object.create(n(190));c.inherits=n(35);var d=n(511),f=n(342);c.inherits(v,d);for(var l=o(f.prototype),h=0;h<l.length;h++){var m=l[h];v.prototype[m]||(v.prototype[m]=f.prototype[m])}function v(e){if(!(this instanceof v))return new v(e);d.call(this,e),f.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",y)}function y(){this.allowHalfOpen||this._writableState.ended||r.nextTick(_,this)}function _(e){e.end()}Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),v.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBase64=t.fromBase64=void 0;for(var r={},o=new Array(64),i=0,c="A".charCodeAt(0),d="Z".charCodeAt(0);i+c<=d;i++){var f=String.fromCharCode(i+c);r[f]=i,o[i]=f}for(i=0,c="a".charCodeAt(0),d="z".charCodeAt(0);i+c<=d;i++){f=String.fromCharCode(i+c);var l=i+26;r[f]=l,o[l]=f}for(i=0;i<10;i++){r[i.toString(10)]=i+52;f=i.toString(10),l=i+52;r[f]=l,o[l]=f}r["+"]=62,o[62]="+",r["/"]=63,o[63]="/";var h=6,m=8,v=63;t.fromBase64=function(input){var e=input.length/4*3;"=="===input.substr(-2)?e-=2:"="===input.substr(-1)&&e--;for(var t=new ArrayBuffer(e),n=new DataView(t),i=0;i<input.length;i+=4){for(var o=0,c=0,d=i,f=i+3;d<=f;d++)"="!==input[d]?(o|=r[input[d]]<<(f-d)*h,c+=h):o>>=h;var l=i/4*3;o>>=c%m;for(var v=Math.floor(c/m),y=0;y<v;y++){var _=(v-y-1)*m;n.setUint8(l+y,(o&255<<_)>>_)}}return new Uint8Array(t)},t.toBase64=function(input){for(var e="",i=0;i<input.length;i+=3){for(var t=0,n=0,r=i,c=Math.min(i+3,input.length);r<c;r++)t|=input[r]<<(c-r-1)*m,n+=m;var d=Math.ceil(n/h);t<<=d*h-n;for(var f=1;f<=d;f++){var l=(d-f)*h;e+=o[(t&v<<l)>>l]}e+="==".slice(0,4-d)}return e}},,,,,,,function(e,t,n){"use strict";(function(t,r){var o=65536,c=4294967295;var d=n(37).Buffer,f=t.crypto||t.msCrypto;f&&f.getRandomValues?e.exports=function(e,t){if(e>c)throw new RangeError("requested too many random bytes");var n=d.allocUnsafe(e);if(e>0)if(e>o)for(var l=0;l<e;l+=o)f.getRandomValues(n.slice(l,l+o));else f.getRandomValues(n);if("function"==typeof t)return r.nextTick((function(){t(null,n)}));return n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(88),n(107))},function(e,t,n){var r=n(37).Buffer;function o(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(data,e){"string"==typeof data&&(e=e||"utf8",data=r.from(data,e));for(var t=this._block,n=this._blockSize,o=data.length,c=this._len,d=0;d<o;){for(var f=c%n,l=Math.min(o-d,n-f),i=0;i<l;i++)t[f+i]=data[d+i];d+=l,(c+=l)%n==0&&this._update(t)}return this._len+=o,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var c=this._hash();return e?c.toString(e):c},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},,function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(155),t.createHash=t.Hash=n(189),t.createHmac=t.Hmac=n(517);var r=n(750),o=Object.keys(r),c=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);t.getHashes=function(){return c};var p=n(520);t.pbkdf2=p.pbkdf2,t.pbkdf2Sync=p.pbkdf2Sync;var d=n(752);t.Cipher=d.Cipher,t.createCipher=d.createCipher,t.Cipheriv=d.Cipheriv,t.createCipheriv=d.createCipheriv,t.Decipher=d.Decipher,t.createDecipher=d.createDecipher,t.Decipheriv=d.Decipheriv,t.createDecipheriv=d.createDecipheriv,t.getCiphers=d.getCiphers,t.listCiphers=d.listCiphers;var f=n(767);t.DiffieHellmanGroup=f.DiffieHellmanGroup,t.createDiffieHellmanGroup=f.createDiffieHellmanGroup,t.getDiffieHellman=f.getDiffieHellman,t.createDiffieHellman=f.createDiffieHellman,t.DiffieHellman=f.DiffieHellman;var l=n(772);t.createSign=l.createSign,t.Sign=l.Sign,t.createVerify=l.createVerify,t.Verify=l.Verify,t.createECDH=n(806);var h=n(807);t.publicEncrypt=h.publicEncrypt,t.privateEncrypt=h.privateEncrypt,t.publicDecrypt=h.publicDecrypt,t.privateDecrypt=h.privateDecrypt;var m=n(810);t.randomFill=m.randomFill,t.randomFillSync=m.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));n(25),n(22),n(15),n(8),n(16),n(80);var r=n(2),o=n(50),c=n(168),d=n(296),f=n(297),l=n(135),h=n(204),object=n(30),m=n(44),v=n(36),y=n(136),_=function(){function e(){Object(d.a)(this,e),this.$_config={},this.$_cachedBreakpoints=null}return Object(f.a)(e,[{key:"getDefaults",value:function(){return this.defaults}},{key:"setConfig",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(object.g)(t)){var n=Object(object.d)(t);n.forEach((function(n){if(Object(object.e)(y.a,n)){var r=t[n];if("breakpoints"===n){var o=t.breakpoints;!Object(m.d)(o)||o.length<2||o.some((function(b){return!Object(v.f)(b)||0===b.length}))?Object(c.a)('config: "breakpoints" must be an array of at least 2 breakpoint names'):e.$_config.breakpoints=Object(l.a)(o)}else if(Object(object.g)(r)){Object(object.d)(r).forEach((function(t){Object(object.e)(y.a[n],t)?(e.$_config[n]=e.$_config[n]||{},Object(v.g)(r[t])||(e.$_config[n][t]=Object(l.a)(r[t]))):Object(c.a)('config: unknown config property "'.concat(n,".").concat(t,'"'))}))}}else Object(c.a)('config: unknown config property "'.concat(n,'"'))}))}}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return Object(l.a)(this.$_config)}},{key:"getConfigValue",value:function(e){return Object(l.a)(Object(h.a)(this.$_config,e,Object(h.a)(y.a,e)))}},{key:"defaults",get:function(){return y.a}}],[{key:"Defaults",get:function(){return y.a}}]),e}(),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.a;t.prototype.$bvConfig=o.a.prototype.$bvConfig=t.prototype.$bvConfig||o.a.prototype.$bvConfig||new _,t.prototype.$bvConfig.setConfig(e)},S=n(62);function E(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function O(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?E(source,!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):E(source).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var I,x,A=(I=!1,x=["Multiple instances of Vue detected!","You may need to set up an alias for Vue in your bundler config.","See: https://bootstrap-vue.js.org/docs#using-module-bundlers"].join("\n"),function(e){I||o.a===e||S.h||Object(c.a)(x),I=!0}),C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,n=e.directives,r=e.plugins,o=function e(o){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.installed||(e.installed=!0,A(o),w(c,o),T(o,t),$(o,n),k(o,r))};return o.installed=!1,o},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return O({},t,{install:C(e)})},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)n&&t[n]&&e.use(t[n])},M=function(e,t,n){e&&t&&n&&e.component(t,n)},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var component in t)M(e,component,t[component])},P=function(e,t,n){e&&t&&n&&e.directive(t.replace(/^VB/,"B"),n)},$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)P(e,n,t[n])}},function(e,t,n){var r;e.exports=(r=n(78),n(196),n(877),r.HmacSHA256)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(883),t),r.__exportStar(n(884),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHostHeaderPlugin=t.hostHeaderMiddlewareOptions=t.hostHeaderMiddleware=t.resolveHostHeaderConfig=void 0;var r=n(0),o=n(7);t.resolveHostHeaderConfig=function(input){return input},t.hostHeaderMiddleware=function(e){return function(t){return function(n){return r.__awaiter(void 0,void 0,void 0,(function(){var c,d;return r.__generator(this,(function(r){return o.HttpRequest.isInstance(n.request)?(c=n.request,d=(e.requestHandler.metadata||{}).handlerProtocol,(void 0===d?"":d).indexOf("h2")>=0&&!c.headers[":authority"]?(delete c.headers.host,c.headers[":authority"]=""):c.headers.host||(c.headers.host=c.hostname),[2,t(n)]):[2,t(n)]}))}))}}},t.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",tags:["HOST"]},t.getHostHeaderPlugin=function(e){return{applyToStack:function(n){n.add(t.hostHeaderMiddleware(e),t.hostHeaderMiddlewareOptions)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(889),t),r.__exportStar(n(553),t),r.__exportStar(n(894),t),r.__exportStar(n(557),t),r.__exportStar(n(558),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(559),t),r.__exportStar(n(896),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(898),t),r.__exportStar(n(899),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(924),t),r.__exportStar(n(927),t)},function(e,t,n){"use strict";var r=n(62),o=function(e){Object(r.a)()||console.warn("[BootstrapVue warn]: ".concat(e))};t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var r=n(44),o=n(36),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(e=Object(r.b)(e).filter(Boolean)).some((function(e){return t[e]||n[e]}))},d=function(e){var slot,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=Object(r.b)(e).filter(Boolean);for(var i=0;i<e.length&&!slot;i++){var d=e[i];slot=n[d]||c[d]}return Object(o.d)(slot)?slot(t):slot}},function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),d=c.default;void 0===d&&(d=[]);var f=c.placeholder;return n._isMounted?d:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||f):d.length>0?d.map((function(){return e(!1)})):e(!1))}};e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},o=function(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(r(arguments[i]));return e},c={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5},d=function(){function e(e,t){void 0===t&&(t="WARN"),this.name=e,this.level=t}return e.prototype._padding=function(e){return e<10?"0"+e:""+e},e.prototype._ts=function(){var dt=new Date;return[this._padding(dt.getMinutes()),this._padding(dt.getSeconds())].join(":")+"."+dt.getMilliseconds()},e.prototype._log=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.level;e.LOG_LEVEL&&(o=e.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(o=window.LOG_LEVEL);var d=c[o],f=c[t];if(f>=d){var l=console.log.bind(console);"ERROR"===t&&console.error&&(l=console.error.bind(console)),"WARN"===t&&console.warn&&(l=console.warn.bind(console));var h="["+t+"] "+this._ts()+" "+this.name;if(1===n.length&&"string"==typeof n[0])l(h+" - "+n[0]);else if(1===n.length)l(h,n[0]);else if("string"==typeof n[0]){var m=n.slice(1);1===m.length&&(m=m[0]),l(h+" - "+n[0],m)}else l(h,n)}},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,o(["INFO"],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,o(["INFO"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,o(["WARN"],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,o(["ERROR"],e))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,o(["DEBUG"],e))},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,o(["VERBOSE"],e))},e.LOG_LEVEL=null,e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(929),t),r.__exportStar(n(566),t),r.__exportStar(n(934),t),r.__exportStar(n(938),t),r.__exportStar(n(939),t)},function(e,t,n){"use strict";n(68),n(69),n(8);var r=n(36),o=n(44),c=n(30);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Object(r.h)(e)?"":Object(o.d)(e)||Object(c.g)(e)&&e.toString===Object.prototype.toString?JSON.stringify(e,null,t):String(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return he})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return le})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return A})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return ke})),n.d(t,"h",(function(){return _e}));let r,o,c,d=!1,f=!1,l=!1,h=!1,m=!1;const v={},y=e=>"object"===(e=typeof e)||"function"===e;function _(e){var t,n,r;return null!==(r=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==r?r:void 0}const w=(e,t,...n)=>{let r=null,o=null,c=null,d=!1,f=!1;const l=[],h=t=>{for(let i=0;i<t.length;i++)r=t[i],Array.isArray(r)?h(r):null!=r&&"boolean"!=typeof r&&((d="function"!=typeof e&&!y(r))&&(r=String(r)),d&&f?l[l.length-1].$text$+=r:l.push(d?S(null,r):r),f=d)};if(h(n),t){t.key&&(o=t.key),t.name&&(c=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,O);const m=S(e,null);return m.$attrs$=t,l.length>0&&(m.$children$=l),m.$key$=o,m.$name$=c,m},S=(e,text)=>{const t={$flags$:0,$tag$:e,$text$:text,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return t},E={},O={forEach:(e,t)=>e.map(I).forEach(t),map:(e,t)=>e.map(I).map(t).map(x)},I=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),x=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),w(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},A=e=>ye(e).$hostElement$,C=(e,t,n)=>{const r=A(e);return{emit:e=>j(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},j=(e,t,n)=>{const r=je.ce(t,n);return e.dispatchEvent(r),r},k=new WeakMap,M=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,o=(t.$tagName$,()=>{}),c=((e,t,n,r)=>{var o;let c=T(t);const style=xe.get(c);if(e=11===e.nodeType?e:Ce,style)if("string"==typeof style){e=e.head||e;let t,n=k.get(e);if(n||k.set(e,n=new Set),!n.has(c)){{(t=Ce.createElement("style")).innerHTML=style;const n=null!==(o=je.$nonce$)&&void 0!==o?o:_(Ce);null!=n&&t.setAttribute("nonce",n),e.insertBefore(t,e.querySelector("link"))}n&&n.add(c)}}else e.adoptedStyleSheets.includes(style)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,style]);return c})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&(n["s-sc"]=c,n.classList.add(c+"-h")),o()},T=(e,t)=>"sc-"+e.$tagName$,P=(e,t,n,r,o,c)=>{if(n!==r){let d=Se(e,t),f=t.toLowerCase();if("class"===t){const t=e.classList,o=R(n),c=R(r);t.remove(...o.filter(e=>e&&!c.includes(e))),t.add(...c.filter(e=>e&&!o.includes(e)))}else if("style"===t){for(const t in n)r&&null!=r[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if("key"===t);else if("ref"===t)r&&r(e);else if(d||"o"!==t[0]||"n"!==t[1]){const f=y(r);if((d||f&&null!==r)&&!o)try{if(e.tagName.includes("-"))e[t]=r;else{const o=null==r?"":r;"list"===t?d=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==r||!1===r?!1===r&&""!==e.getAttribute(t)||e.removeAttribute(t):(!d||4&c||o)&&!f&&(r=!0===r?"":r,e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):Se(Ae,f)?f.slice(2):f[2]+t.slice(3),n&&je.rel(e,t,n,!1),r&&je.ael(e,t,r,!1)}},$=/\s/,R=e=>e?e.split($):[],D=(e,t,n,r)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,c=e&&e.$attrs$||v,d=t.$attrs$||v;for(r in c)r in d||P(o,r,c[r],void 0,n,t.$flags$);for(r in d)P(o,r,c[r],d[r],n,t.$flags$)},N=(e,t,n,f)=>{const m=t.$children$[n];let v,y,_,i=0;if(d||(l=!0,"slot"===m.$tag$&&(r&&f.classList.add(r+"-s"),m.$flags$|=m.$children$?2:1)),null!==m.$text$)v=m.$elm$=Ce.createTextNode(m.$text$);else if(1&m.$flags$)v=m.$elm$=Ce.createTextNode("");else{if(h||(h="svg"===m.$tag$),v=m.$elm$=Ce.createElementNS(h?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&m.$flags$?"slot-fb":m.$tag$),h&&"foreignObject"===m.$tag$&&(h=!1),D(null,m,h),(e=>null!=e)(r)&&v["s-si"]!==r&&v.classList.add(v["s-si"]=r),m.$children$)for(i=0;i<m.$children$.length;++i)(y=N(e,m,i,v))&&v.appendChild(y);"svg"===m.$tag$?h=!1:"foreignObject"===v.tagName&&(h=!0)}return v["s-hn"]=c,3&m.$flags$&&(v["s-sr"]=!0,v["s-cr"]=o,v["s-sn"]=m.$name$||"",(_=e&&e.$children$&&e.$children$[n])&&_.$tag$===m.$tag$&&e.$elm$&&U(e.$elm$,!1)),v},U=(e,t)=>{je.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const e=n[i];e["s-hn"]!==c&&e["s-ol"]&&(H(e).insertBefore(e,F(e)),e["s-ol"].remove(),e["s-ol"]=void 0,l=!0),t&&U(e,t)}je.$flags$&=-2},B=(e,t,n,r,o,d)=>{let f,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===c&&(l=l.shadowRoot);o<=d;++o)r[o]&&(f=N(null,n,o,e))&&(r[o].$elm$=f,l.insertBefore(f,F(t)))},L=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.$elm$;J(t),e&&(f=!0,e["s-ol"]?e["s-ol"].remove():U(e,!0),e.remove())}}},z=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),F=e=>e&&e["s-ol"]||e,H=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,V=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,o=t.$children$,c=t.$tag$,text=t.$text$;let d;null===text?(h="svg"===c||"foreignObject"!==c&&h,"slot"===c||D(e,t,h),null!==r&&null!==o?((e,t,n,r)=>{let o,c,d=0,f=0,l=0,i=0,h=t.length-1,m=t[0],v=t[h],y=r.length-1,_=r[0],w=r[y];for(;d<=h&&f<=y;)if(null==m)m=t[++d];else if(null==v)v=t[--h];else if(null==_)_=r[++f];else if(null==w)w=r[--y];else if(z(m,_))V(m,_),m=t[++d],_=r[++f];else if(z(v,w))V(v,w),v=t[--h],w=r[--y];else if(z(m,w))"slot"!==m.$tag$&&"slot"!==w.$tag$||U(m.$elm$.parentNode,!1),V(m,w),e.insertBefore(m.$elm$,v.$elm$.nextSibling),m=t[++d],w=r[--y];else if(z(v,_))"slot"!==m.$tag$&&"slot"!==w.$tag$||U(v.$elm$.parentNode,!1),V(v,_),e.insertBefore(v.$elm$,m.$elm$),v=t[--h],_=r[++f];else{for(l=-1,i=d;i<=h;++i)if(t[i]&&null!==t[i].$key$&&t[i].$key$===_.$key$){l=i;break}l>=0?((c=t[l]).$tag$!==_.$tag$?o=N(t&&t[f],n,l,e):(V(c,_),t[l]=void 0,o=c.$elm$),_=r[++f]):(o=N(t&&t[f],n,f,e),_=r[++f]),o&&H(m.$elm$).insertBefore(o,F(m.$elm$))}d>h?B(e,null==r[y+1]?null:r[y+1].$elm$,n,r,f,y):f>y&&L(t,d,h)})(n,r,t,o):null!==o?(null!==e.$text$&&(n.textContent=""),B(n,null,t,o,0,o.length-1)):null!==r&&L(r,0,r.length-1),h&&"svg"===c&&(h=!1)):(d=n["s-cr"])?d.parentNode.textContent=text:e.$text$!==text&&(n.data=text)},W=e=>{const t=e.childNodes;let n,i,r,o,c,d;for(i=0,r=t.length;i<r;i++)if(1===(n=t[i]).nodeType){if(n["s-sr"])for(c=n["s-sn"],n.hidden=!1,o=0;o<r;o++)if(d=t[o].nodeType,t[o]["s-hn"]!==n["s-hn"]||""!==c){if(1===d&&c===t[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===d||3===d&&""!==t[o].textContent.trim()){n.hidden=!0;break}W(n)}},K=[],Y=e=>{let t,n,r,o,c,d,i=0;const l=e.childNodes,h=l.length;for(;i<h;i++){if((t=l[i])["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,o=t["s-sn"],d=r.length-1;d>=0;d--)(n=r[d])["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(G(n,o)?(c=K.find(e=>e.$nodeToRelocate$===n),f=!0,n["s-sn"]=n["s-sn"]||o,c?c.$slotRefNode$=t:K.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&K.map(e=>{G(e.$nodeToRelocate$,n["s-sn"])&&(c=K.find(e=>e.$nodeToRelocate$===n))&&!e.$slotRefNode$&&(e.$slotRefNode$=c.$slotRefNode$)})):K.some(e=>e.$nodeToRelocate$===n)||K.push({$nodeToRelocate$:n}));1===t.nodeType&&Y(t)}},G=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,J=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(J)},X=(e,t)=>{const n=e.$hostElement$,h=e.$cmpMeta$,m=e.$vnode$||S(null,null),v=(e=>e&&e.$tag$===E)(t)?t:w(null,null,t);if(c=n.tagName,h.$attrsToReflect$&&(v.$attrs$=v.$attrs$||{},h.$attrsToReflect$.map(([e,t])=>v.$attrs$[t]=n[e])),v.$tag$=null,v.$flags$|=4,e.$vnode$=v,v.$elm$=m.$elm$=n.shadowRoot||n,r=n["s-sc"],o=n["s-cr"],d=0!=(1&h.$flags$),f=!1,V(m,v),je.$flags$|=1,l){let e,t,n,r,o,c;Y(v.$elm$);let i=0;for(;i<K.length;i++)(t=(e=K[i]).$nodeToRelocate$)["s-ol"]||((n=Ce.createTextNode(""))["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<K.length;i++)if(t=(e=K[i]).$nodeToRelocate$,e.$slotRefNode$){for(r=e.$slotRefNode$.parentNode,o=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if((c=n["s-nr"])&&c["s-sn"]===t["s-sn"]&&r===c.parentNode&&(!(c=c.nextSibling)||!c["s-nr"])){o=c;break}(!o&&r!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),r.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}f&&W(v.$elm$),je.$flags$&=-2,K.length=0},Z=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},Q=(e,t)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);Z(e,e.$ancestorComponent$);return Ue(()=>ee(e,t))},ee=(e,t)=>{const n=(e.$cmpMeta$.$tagName$,()=>{}),r=e.$lazyInstance$;let o;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>ae(r,e,t)),e.$queuedListeners$=void 0),o=ae(r,"componentWillLoad")),n(),te(o,()=>ne(e,r,t))},te=(e,t)=>e instanceof Promise?e.then(t):t(),ne=async(e,t,n)=>{var r;const o=e.$hostElement$,c=(e.$cmpMeta$.$tagName$,()=>{}),d=o["s-rc"];n&&M(e);const f=(e.$cmpMeta$.$tagName$,()=>{});re(e,t),d&&(d.map(e=>e()),o["s-rc"]=void 0),f(),c();{const t=null!==(r=o["s-p"])&&void 0!==r?r:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},re=(e,t,n)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,X(e,t)}catch(t){Ee(t,e.$hostElement$)}return null},ie=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,n=()=>{},r=e.$lazyInstance$,o=e.$ancestorComponent$;ae(r,"componentDidRender"),64&e.$flags$?(ae(r,"componentDidUpdate"),n()):(e.$flags$|=64,se(t),ae(r,"componentDidLoad"),n(),e.$onReadyResolve$(t),o||oe()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Ne(()=>Q(e,!1)),e.$flags$&=-517},oe=e=>{se(Ce.documentElement),Ne(()=>j(Ae,"appload",{detail:{namespace:"aegon-website-common-widgets"}}))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){Ee(e)}},se=e=>e.classList.add("hydrated"),ce=(e,t,n,r)=>{const o=ye(e),c=o.$hostElement$,d=o.$instanceValues$.get(t),f=o.$flags$,l=o.$lazyInstance$;n=((e,t)=>null==e||y(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?String(e):e)(n,r.$members$[t][0]);const h=Number.isNaN(d)&&Number.isNaN(n);if((!(8&f)||void 0===d)&&(n!==d&&!h)&&(o.$instanceValues$.set(t,n),l)){if(r.$watchers$&&128&f){const e=r.$watchers$[t];e&&e.map(e=>{try{l[e](n,d,t)}catch(e){Ee(e,c)}})}2==(18&f)&&Q(o,!1)}},ue=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),o=e.prototype;if(r.map(([e,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(o,e,{get(){return((e,t)=>ye(e).$instanceValues$.get(t))(this,e)},set(n){ce(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(o,e,{value(...t){const n=ye(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,r){je.jmp(()=>{const t=n.get(e);if(this.hasOwnProperty(t))r=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==r)return;this[t]=(null!==r||"boolean"!=typeof this[t])&&r})},e.observedAttributes=r.filter(([e,t])=>15&t[0]).map(([e,r])=>{const o=r[1]||e;return n.set(o,e),512&r[0]&&t.$attrsToReflect$.push([e,o]),o})}}return e},de=async(e,t,n,r,o)=>{if(0==(32&t.$flags$)){t.$flags$|=32;{if((o=Ie(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.$watchers$=o.watchers,ue(o,n,2),o.isProxied=!0);const e=(n.$tagName$,()=>{});t.$flags$|=8;try{new o(t)}catch(e){Ee(e)}t.$flags$&=-9,t.$flags$|=128,e()}if(o.style){let style=o.style;const e=T(n);if(!xe.has(e)){const t=(n.$tagName$,()=>{});((e,t,n)=>{let style=xe.get(e);Me&&n?"string"==typeof(style=style||new CSSStyleSheet)?style=t:style.replaceSync(t):style=t,xe.set(e,style)})(e,style,!!(1&n.$flags$)),t()}}}const c=t.$ancestorComponent$,d=()=>Q(t,!0);c&&c["s-rc"]?c["s-rc"].push(d):d()},fe=e=>{const t=e["s-cr"]=Ce.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},le=(e,t={})=>{var n;const r=()=>{},o=[],c=t.exclude||[],d=Ae.customElements,head=Ce.head,f=head.querySelector("meta[charset]"),l=Ce.createElement("style"),h=[];let m,v=!0;Object.assign(je,t),je.$resourcesUrl$=new URL(t.resourcesUrl||"./",Ce.baseURI).href,e.map(e=>{e[1].map(t=>{const n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};n.$members$=t[2],n.$listeners$=t[3],n.$attrsToReflect$=[],n.$watchers$={};const r=n.$tagName$,f=class extends HTMLElement{constructor(e){super(e),we(e=this,n),1&n.$flags$&&e.attachShadow({mode:"open"})}connectedCallback(){m&&(clearTimeout(m),m=null),v?h.push(this):je.jmp(()=>(e=>{if(0==(1&je.$flags$)){const t=ye(e),n=t.$cmpMeta$,r=(n.$tagName$,()=>{});if(1&t.$flags$)pe(e,t,n.$listeners$);else{t.$flags$|=1,12&n.$flags$&&fe(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),de(0,t,n)}r()}})(this))}disconnectedCallback(){je.jmp(()=>(e=>{if(0==(1&je.$flags$)){const t=ye(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),ae(n,"disconnectedCallback")}})(this))}componentOnReady(){return ye(this).$onReadyPromise$}};n.$lazyBundleId$=e[0],c.includes(r)||d.get(r)||(o.push(r),d.define(r,ue(f,n,1)))})});{l.innerHTML=o+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles","");const e=null!==(n=je.$nonce$)&&void 0!==n?n:_(Ce);null!=e&&l.setAttribute("nonce",e),head.insertBefore(l,f?f.nextSibling:head.firstChild)}v=!1,h.length?h.map(e=>e.connectedCallback()):je.jmp(()=>m=setTimeout(oe,30)),r()},he=(e,t)=>t,pe=(e,t,n,r)=>{n&&n.map(([n,r,o])=>{const c=me(e,n),d=ge(t,o),f=be(n);je.ael(c,r,d,f),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>je.rel(c,r,d,f))})},ge=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(e){Ee(e)}},me=(e,t)=>4&t?Ce:8&t?Ae:16&t?Ce.body:e,be=e=>0!=(2&e),ve=new WeakMap,ye=e=>ve.get(e),_e=(e,t)=>ve.set(t.$lazyInstance$=e,t),we=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],pe(e,n,t.$listeners$),ve.set(e,n)},Se=(e,t)=>t in e,Ee=(e,t)=>(0,console.error)(e,t),Oe=new Map,Ie=(e,t,r)=>{const o=e.$tagName$.replace(/-/g,"_"),c=e.$lazyBundleId$,d=Oe.get(c);return d?d[o]:n(978)(`./${c}.entry.js`).then(e=>(Oe.set(c,e),e[o]),Ee)},xe=new Map,Ae="undefined"!=typeof window?window:{},Ce=Ae.document||{head:{}},je={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},ke=e=>Promise.resolve(e),Me=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Te=[],Pe=[],$e=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&je.$flags$?Ne(De):je.raf(De))},Re=e=>{for(let i=0;i<e.length;i++)try{e[i](performance.now())}catch(e){Ee(e)}e.length=0},De=()=>{Re(Te),Re(Pe),(m=Te.length>0)&&je.raf(De)},Ne=e=>ke().then(e),Ue=$e(Pe,!0)},function(e,t,n){"use strict";n.d(t,"a",(function(){return pe})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return he})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return A})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return Me})),n.d(t,"h",(function(){return we}));let r,o,c=!1,d=!1,f=!1,l=!1,h=!1;const m="http://www.w3.org/1999/xlink",v={},y=e=>"object"===(e=typeof e)||"function"===e;function _(e){var t,n,r;return null!==(r=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==r?r:void 0}const w=(e,t,...n)=>{let r=null,o=null,c=null,d=!1,f=!1;const l=[],h=t=>{for(let i=0;i<t.length;i++)r=t[i],Array.isArray(r)?h(r):null!=r&&"boolean"!=typeof r&&((d="function"!=typeof e&&!y(r))&&(r=String(r)),d&&f?l[l.length-1].$text$+=r:l.push(d?S(null,r):r),f=d)};if(h(n),t){t.key&&(o=t.key),t.name&&(c=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,O);const m=S(e,null);return m.$attrs$=t,l.length>0&&(m.$children$=l),m.$key$=o,m.$name$=c,m},S=(e,text)=>{const t={$flags$:0,$tag$:e,$text$:text,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return t},E={},O={forEach:(e,t)=>e.map(I).forEach(t),map:(e,t)=>e.map(I).map(t).map(x)},I=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),x=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),w(e.vtag,t,...e.vchildren||[])}const t=S(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},A=e=>_e(e).$hostElement$,C=(e,t,n)=>{const r=A(e);return{emit:e=>j(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},j=(e,t,n)=>{const r=ke.ce(t,n);return e.dispatchEvent(r),r},k=new WeakMap,M=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=(t.$tagName$,()=>{});((e,t,n,r)=>{var o;let c=T(t);const style=Ae.get(c);if(e=11===e.nodeType?e:je,style)if("string"==typeof style){e=e.head||e;let t,n=k.get(e);if(n||k.set(e,n=new Set),!n.has(c)){{(t=je.createElement("style")).innerHTML=style;const n=null!==(o=ke.$nonce$)&&void 0!==o?o:_(je);null!=n&&t.setAttribute("nonce",n),e.insertBefore(t,e.querySelector("link"))}n&&n.add(c)}}else e.adoptedStyleSheets.includes(style)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,style])})(n.getRootNode(),t),r()},T=(e,t)=>"sc-"+e.$tagName$,P=(e,t,n,r,o,c)=>{if(n!==r){let d=Ee(e,t),f=t.toLowerCase();if("class"===t){const t=e.classList,o=R(n),c=R(r);t.remove(...o.filter(e=>e&&!c.includes(e))),t.add(...c.filter(e=>e&&!o.includes(e)))}else if("style"===t){for(const t in n)r&&null!=r[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if("key"===t);else if("ref"===t)r&&r(e);else if(d||"o"!==t[0]||"n"!==t[1]){const l=y(r);if((d||l&&null!==r)&&!o)try{if(e.tagName.includes("-"))e[t]=r;else{const o=null==r?"":r;"list"===t?d=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let h=!1;f!==(f=f.replace(/^xlink\:?/,""))&&(t=f,h=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(h?e.removeAttributeNS(m,t):e.removeAttribute(t)):(!d||4&c||o)&&!l&&(r=!0===r?"":r,h?e.setAttributeNS(m,t,r):e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):Ee(Ce,f)?f.slice(2):f[2]+t.slice(3),n&&ke.rel(e,t,n,!1),r&&ke.ael(e,t,r,!1)}},$=/\s/,R=e=>e?e.split($):[],D=(e,t,n,r)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,c=e&&e.$attrs$||v,d=t.$attrs$||v;for(r in c)r in d||P(o,r,c[r],void 0,n,t.$flags$);for(r in d)P(o,r,c[r],d[r],n,t.$flags$)},N=(e,t,n,d)=>{const h=t.$children$[n];let m,v,y,i=0;if(c||(f=!0,"slot"===h.$tag$&&(h.$flags$|=h.$children$?2:1)),null!==h.$text$)m=h.$elm$=je.createTextNode(h.$text$);else if(1&h.$flags$)m=h.$elm$=je.createTextNode("");else{if(l||(l="svg"===h.$tag$),m=h.$elm$=je.createElementNS(l?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&h.$flags$?"slot-fb":h.$tag$),l&&"foreignObject"===h.$tag$&&(l=!1),D(null,h,l),h.$children$)for(i=0;i<h.$children$.length;++i)(v=N(e,h,i))&&m.appendChild(v);"svg"===h.$tag$?l=!1:"foreignObject"===m.tagName&&(l=!0)}return m["s-hn"]=o,3&h.$flags$&&(m["s-sr"]=!0,m["s-cr"]=r,m["s-sn"]=h.$name$||"",(y=e&&e.$children$&&e.$children$[n])&&y.$tag$===h.$tag$&&e.$elm$&&U(e.$elm$,!1)),m},U=(e,t)=>{ke.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const e=n[i];e["s-hn"]!==o&&e["s-ol"]&&(H(e).insertBefore(e,F(e)),e["s-ol"].remove(),e["s-ol"]=void 0,f=!0),t&&U(e,t)}ke.$flags$&=-2},B=(e,t,n,r,o,c)=>{let d,f=e["s-cr"]&&e["s-cr"].parentNode||e;for(;o<=c;++o)r[o]&&(d=N(null,n,o))&&(r[o].$elm$=d,f.insertBefore(d,F(t)))},L=(e,t,n,r,o)=>{for(;t<=n;++t)(r=e[t])&&(o=r.$elm$,J(r),d=!0,o["s-ol"]?o["s-ol"].remove():U(o,!0),o.remove())},z=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),F=e=>e&&e["s-ol"]||e,H=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,V=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,o=t.$children$,c=t.$tag$,text=t.$text$;let d;null===text?(l="svg"===c||"foreignObject"!==c&&l,"slot"===c||D(e,t,l),null!==r&&null!==o?((e,t,n,r)=>{let o,c,d=0,f=0,l=0,i=0,h=t.length-1,m=t[0],v=t[h],y=r.length-1,_=r[0],w=r[y];for(;d<=h&&f<=y;)if(null==m)m=t[++d];else if(null==v)v=t[--h];else if(null==_)_=r[++f];else if(null==w)w=r[--y];else if(z(m,_))V(m,_),m=t[++d],_=r[++f];else if(z(v,w))V(v,w),v=t[--h],w=r[--y];else if(z(m,w))"slot"!==m.$tag$&&"slot"!==w.$tag$||U(m.$elm$.parentNode,!1),V(m,w),e.insertBefore(m.$elm$,v.$elm$.nextSibling),m=t[++d],w=r[--y];else if(z(v,_))"slot"!==m.$tag$&&"slot"!==w.$tag$||U(v.$elm$.parentNode,!1),V(v,_),e.insertBefore(v.$elm$,m.$elm$),v=t[--h],_=r[++f];else{for(l=-1,i=d;i<=h;++i)if(t[i]&&null!==t[i].$key$&&t[i].$key$===_.$key$){l=i;break}l>=0?((c=t[l]).$tag$!==_.$tag$?o=N(t&&t[f],n,l):(V(c,_),t[l]=void 0,o=c.$elm$),_=r[++f]):(o=N(t&&t[f],n,f),_=r[++f]),o&&H(m.$elm$).insertBefore(o,F(m.$elm$))}d>h?B(e,null==r[y+1]?null:r[y+1].$elm$,n,r,f,y):f>y&&L(t,d,h)})(n,r,t,o):null!==o?(null!==e.$text$&&(n.textContent=""),B(n,null,t,o,0,o.length-1)):null!==r&&L(r,0,r.length-1),l&&"svg"===c&&(l=!1)):(d=n["s-cr"])?d.parentNode.textContent=text:e.$text$!==text&&(n.data=text)},W=e=>{const t=e.childNodes;let n,i,r,o,c,d;for(i=0,r=t.length;i<r;i++)if(1===(n=t[i]).nodeType){if(n["s-sr"])for(c=n["s-sn"],n.hidden=!1,o=0;o<r;o++)if(d=t[o].nodeType,t[o]["s-hn"]!==n["s-hn"]||""!==c){if(1===d&&c===t[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===d||3===d&&""!==t[o].textContent.trim()){n.hidden=!0;break}W(n)}},K=[],Y=e=>{let t,n,r,o,c,f,i=0;const l=e.childNodes,h=l.length;for(;i<h;i++){if((t=l[i])["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,o=t["s-sn"],f=r.length-1;f>=0;f--)(n=r[f])["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(G(n,o)?(c=K.find(e=>e.$nodeToRelocate$===n),d=!0,n["s-sn"]=n["s-sn"]||o,c?c.$slotRefNode$=t:K.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&K.map(e=>{G(e.$nodeToRelocate$,n["s-sn"])&&(c=K.find(e=>e.$nodeToRelocate$===n))&&!e.$slotRefNode$&&(e.$slotRefNode$=c.$slotRefNode$)})):K.some(e=>e.$nodeToRelocate$===n)||K.push({$nodeToRelocate$:n}));1===t.nodeType&&Y(t)}},G=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,J=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(J)},X=(e,t)=>{const n=e.$hostElement$,l=e.$cmpMeta$,h=e.$vnode$||S(null,null),m=(e=>e&&e.$tag$===E)(t)?t:w(null,null,t);if(o=n.tagName,l.$attrsToReflect$&&(m.$attrs$=m.$attrs$||{},l.$attrsToReflect$.map(([e,t])=>m.$attrs$[t]=n[e])),m.$tag$=null,m.$flags$|=4,e.$vnode$=m,m.$elm$=h.$elm$=n,r=n["s-cr"],c=0!=(1&l.$flags$),d=!1,V(h,m),ke.$flags$|=1,f){let e,t,n,r,o,c;Y(m.$elm$);let i=0;for(;i<K.length;i++)(t=(e=K[i]).$nodeToRelocate$)["s-ol"]||((n=je.createTextNode(""))["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(i=0;i<K.length;i++)if(t=(e=K[i]).$nodeToRelocate$,e.$slotRefNode$){for(r=e.$slotRefNode$.parentNode,o=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if((c=n["s-nr"])&&c["s-sn"]===t["s-sn"]&&r===c.parentNode&&(!(c=c.nextSibling)||!c["s-nr"])){o=c;break}(!o&&r!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),r.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}d&&W(m.$elm$),ke.$flags$&=-2,K.length=0},Z=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},Q=(e,t)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);Z(e,e.$ancestorComponent$);return Be(()=>ee(e,t))},ee=(e,t)=>{const n=(e.$cmpMeta$.$tagName$,()=>{}),r=e.$lazyInstance$;let o;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>oe(r,e,t)),e.$queuedListeners$=null),o=oe(r,"componentWillLoad")),o=ae(o,()=>oe(r,"componentWillRender")),n(),ae(o,()=>te(e,r,t))},te=async(e,t,n)=>{const r=e.$hostElement$,o=(e.$cmpMeta$.$tagName$,()=>{}),c=r["s-rc"];n&&M(e);const d=(e.$cmpMeta$.$tagName$,()=>{});ne(e,t),c&&(c.map(e=>e()),r["s-rc"]=void 0),d(),o();{const t=r["s-p"],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},ne=(e,t,n)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,X(e,t)}catch(t){Oe(t,e.$hostElement$)}return null},re=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,n=()=>{},r=e.$lazyInstance$,o=e.$ancestorComponent$;oe(r,"componentDidRender"),64&e.$flags$?n():(e.$flags$|=64,se(t),oe(r,"componentDidLoad"),n(),e.$onReadyResolve$(t),o||ie()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Ue(()=>Q(e,!1)),e.$flags$&=-517},ie=e=>{se(je.documentElement),Ue(()=>j(Ce,"appload",{detail:{namespace:"aegon-common-widgets"}}))},oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){Oe(e)}},ae=(e,t)=>e&&e.then?e.then(t):t(),se=e=>e.classList.add("hydrated"),ce=(e,t,n,r)=>{const o=_e(e),c=o.$hostElement$,d=o.$instanceValues$.get(t),f=o.$flags$,l=o.$lazyInstance$;n=((e,t)=>null==e||y(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?String(e):e)(n,r.$members$[t][0]);const h=Number.isNaN(d)&&Number.isNaN(n);if((!(8&f)||void 0===d)&&(n!==d&&!h)&&(o.$instanceValues$.set(t,n),l)){if(r.$watchers$&&128&f){const e=r.$watchers$[t];e&&e.map(e=>{try{l[e](n,d,t)}catch(e){Oe(e,c)}})}2==(18&f)&&Q(o,!1)}},ue=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),o=e.prototype;if(r.map(([e,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(o,e,{get(){return((e,t)=>_e(e).$instanceValues$.get(t))(this,e)},set(n){ce(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(o,e,{value(...t){const n=_e(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,r){ke.jmp(()=>{const t=n.get(e);if(this.hasOwnProperty(t))r=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==r)return;this[t]=(null!==r||"boolean"!=typeof this[t])&&r})},e.observedAttributes=r.filter(([e,t])=>15&t[0]).map(([e,r])=>{const o=r[1]||e;return n.set(o,e),512&r[0]&&t.$attrsToReflect$.push([e,o]),o})}}return e},de=async(e,t,n,r,o)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(o=xe(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.$watchers$=o.watchers,ue(o,n,2),o.isProxied=!0);const e=(n.$tagName$,()=>{});t.$flags$|=8;try{new o(t)}catch(e){Oe(e)}t.$flags$&=-9,t.$flags$|=128,e(),fe(t.$lazyInstance$)}if(o.style){let style=o.style;const e=T(n);if(!Ae.has(e)){const t=(n.$tagName$,()=>{});((e,t,n)=>{let style=Ae.get(e);Te&&n?"string"==typeof(style=style||new CSSStyleSheet)?style=t:style.replaceSync(t):style=t,Ae.set(e,style)})(e,style,!!(1&n.$flags$)),t()}}}const c=t.$ancestorComponent$,d=()=>Q(t,!0);c&&c["s-rc"]?c["s-rc"].push(d):d()},fe=e=>{oe(e,"connectedCallback")},le=e=>{const t=e["s-cr"]=je.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},he=(e,t={})=>{var n;const r=()=>{},o=[],c=t.exclude||[],d=Ce.customElements,head=je.head,f=head.querySelector("meta[charset]"),l=je.createElement("style"),h=[];let m,v=!0;Object.assign(ke,t),ke.$resourcesUrl$=new URL(t.resourcesUrl||"./",je.baseURI).href,e.map(e=>{e[1].map(t=>{const n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};n.$members$=t[2],n.$listeners$=t[3],n.$attrsToReflect$=[],n.$watchers$={};const r=n.$tagName$,f=class extends HTMLElement{constructor(e){super(e),Se(e=this,n)}connectedCallback(){m&&(clearTimeout(m),m=null),v?h.push(this):ke.jmp(()=>(e=>{if(0==(1&ke.$flags$)){const t=_e(e),n=t.$cmpMeta$,r=(n.$tagName$,()=>{});if(1&t.$flags$)ge(e,t,n.$listeners$),fe(t.$lazyInstance$);else{t.$flags$|=1,12&n.$flags$&&le(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),de(0,t,n)}r()}})(this))}disconnectedCallback(){ke.jmp(()=>(e=>{if(0==(1&ke.$flags$)){const t=_e(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),oe(n,"disconnectedCallback")}})(this))}componentOnReady(){return _e(this).$onReadyPromise$}};n.$lazyBundleId$=e[0],c.includes(r)||d.get(r)||(o.push(r),d.define(r,ue(f,n,1)))})});{l.innerHTML=o+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles","");const e=null!==(n=ke.$nonce$)&&void 0!==n?n:_(je);null!=e&&l.setAttribute("nonce",e),head.insertBefore(l,f?f.nextSibling:head.firstChild)}v=!1,h.length?h.map(e=>e.connectedCallback()):ke.jmp(()=>m=setTimeout(ie,30)),r()},pe=(e,t)=>t,ge=(e,t,n,r)=>{n&&n.map(([n,r,o])=>{const c=be(e,n),d=me(t,o),f=ve(n);ke.ael(c,r,d,f),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>ke.rel(c,r,d,f))})},me=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(e){Oe(e)}},be=(e,t)=>4&t?je:8&t?Ce:e,ve=e=>0!=(2&e),ye=new WeakMap,_e=e=>ye.get(e),we=(e,t)=>ye.set(t.$lazyInstance$=e,t),Se=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],ge(e,n,t.$listeners$),ye.set(e,n)},Ee=(e,t)=>t in e,Oe=(e,t)=>(0,console.error)(e,t),Ie=new Map,xe=(e,t,r)=>{const o=e.$tagName$.replace(/-/g,"_"),c=e.$lazyBundleId$,d=Ie.get(c);return d?d[o]:n(976)(`./${c}.entry.js`).then(e=>(Ie.set(c,e),e[o]),Oe)},Ae=new Map,Ce="undefined"!=typeof window?window:{},je=Ce.document||{head:{}},ke={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},Me=e=>Promise.resolve(e),Te=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Pe=[],$e=[],Re=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&ke.$flags$?Ue(Ne):ke.raf(Ne))},De=e=>{for(let i=0;i<e.length;i++)try{e[i](performance.now())}catch(e){Oe(e)}e.length=0},Ne=()=>{De(Pe),De($e),(h=Pe.length>0)&&ke.raf(Ne)},Ue=e=>Me().then(e),Be=Re($e,!0)},,,,,,,,,,function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=Number(t);return n.setDate(n.getDate()+o),n}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e).getTime(),o=Number(t);return new Date(n+o)}},function(e,t,n){var r=n(141),o=n(142);e.exports=function(e){var t=r(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),o(n)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e).getTime(),o=r(t).getTime();return n<o?-1:n>o?1:0}},function(e,t,n){"use strict";var r=n(35),o=n(339),c=n(344),d=n(345),f=n(130);function l(e){f.call(this,"digest"),this._hash=e}r(l,f),l.prototype._update=function(data){this._hash.update(data)},l.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new o:"rmd160"===e||"ripemd160"===e?new c:new l(d(e))}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(28).Buffer)},function(e,t,n){(function(t){e.exports=function(a,b){for(var e=Math.min(a.length,b.length),n=new t(e),i=0;i<e;++i)n[i]=a[i]^b[i];return n}}).call(this,n(28).Buffer)},function(e,t,n){"use strict";var r=n(109),o=n(96);function c(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=c,c.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},c.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},c.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){var r=t;r.bignum=n(61),r.define=n(793).define,r.base=n(194),r.constants=n(540),r.decoders=n(798),r.encoders=n(800)},function(e,t,n){var base=t;base.Reporter=n(795).Reporter,base.DecoderBuffer=n(539).DecoderBuffer,base.EncoderBuffer=n(539).EncoderBuffer,base.Node=n(796)},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,c=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var d=Number.isNaN||function(e){return e!=e};function f(){f.init.call(this)}e.exports=f,f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var l=10;function h(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function m(e){return void 0===e._maxListeners?f.defaultMaxListeners:e._maxListeners}function v(e,t,n,r){var o,c,d,f;if(h(n),void 0===(c=e._events)?(c=e._events=Object.create(null),e._eventsCount=0):(void 0!==c.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),c=e._events),d=c[t]),void 0===d)d=c[t]=n,++e._eventsCount;else if("function"==typeof d?d=c[t]=r?[n,d]:[d,n]:r?d.unshift(n):d.push(n),(o=m(e))>0&&d.length>o&&!d.warned){d.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+d.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=d.length,f=l,console&&console.warn&&console.warn(f)}return e}function y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=y.bind(r);return o.listener=n,r.wrapFn=o,o}function w(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(o):E(o,o.length)}function S(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function E(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||d(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),f.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},f.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||d(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},f.prototype.getMaxListeners=function(){return m(this)},f.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var n="error"===e,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var d=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw d.context=o,d}var f=r[e];if(void 0===f)return!1;if("function"==typeof f)c(f,this,t);else{var l=f.length,h=E(f,l);for(i=0;i<l;++i)c(h[i],this,t)}return!0},f.prototype.addListener=function(e,t){return v(this,e,t,!1)},f.prototype.on=f.prototype.addListener,f.prototype.prependListener=function(e,t){return v(this,e,t,!0)},f.prototype.once=function(e,t){return h(t),this.on(e,_(this,e,t)),this},f.prototype.prependOnceListener=function(e,t){return h(t),this.prependListener(e,_(this,e,t)),this},f.prototype.removeListener=function(e,t){var n,r,o,i,c;if(h(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){c=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,c||t)}return this},f.prototype.off=f.prototype.removeListener,f.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},f.prototype.listeners=function(e){return w(this,e,!0)},f.prototype.rawListeners=function(e){return w(this,e,!1)},f.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):S.call(e,t)},f.prototype.listenerCount=S,f.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r;e.exports=(r=n(78),function(e){var t=r,n=t.lib,o=n.WordArray,c=n.Hasher,d=t.algo,f=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(f[o]=n(e.pow(r,.5))),l[o]=n(e.pow(r,1/3)),o++),r++}();var h=[],m=d.SHA256=c.extend({_doReset:function(){this._hash=new o.init(f.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],b=n[1],r=n[2],o=n[3],c=n[4],d=n[5],g=n[6],f=n[7],i=0;i<64;i++){if(i<16)h[i]=0|e[t+i];else{var m=h[i-15],v=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,y=h[i-2],_=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;h[i]=v+h[i-7]+_+h[i-16]}var w=a&b^a&r^b&r,S=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),E=f+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&d^~c&g)+l[i]+h[i];f=g,g=d,d=c,c=o+E|0,o=r,r=b,b=a,a=E+(S+w)|0}n[0]=n[0]+a|0,n[1]=n[1]+b|0,n[2]=n[2]+r|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0,n[5]=n[5]+d|0,n[6]=n[6]+g|0,n[7]=n[7]+f|0},_doFinalize:function(){var data=this._data,t=data.words,n=8*this._nDataBytes,r=8*data.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=e.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,data.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=c.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=c._createHelper(m),t.HmacSHA256=c._createHmacHelper(m)}(Math),r.SHA256)},,,function(e,t,n){var r,o,c;e.exports=(c=n(78),o=(r=c).lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,map=this._map;e.clamp();for(var r=[],i=0;i<n;i+=3)for(var o=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,c=0;c<4&&i+.75*c<n;c++)r.push(map.charAt(o>>>6*(3-c)&63));var d=map.charAt(64);if(d)for(;r.length%4;)r.push(d);return r.join("")},parse:function(e){var t=e.length,map=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var r=0;r<map.length;r++)n[map.charCodeAt(r)]=r}var c=map.charAt(64);if(c){var d=e.indexOf(c);-1!==d&&(t=d)}return function(e,t,n){for(var r=[],c=0,i=0;i<t;i++)if(i%4){var d=n[e.charCodeAt(i-1)]<<i%4*2,f=n[e.charCodeAt(i)]>>>6-i%4*2;r[c>>>2]|=(d|f)<<24-c%4*8,c++}return o.create(r,c)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},c.enc.Base64)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invalidFunction=void 0,t.invalidFunction=function(e){return function(){throw new Error(e)}}},,,function(e,t,n){"use strict";var r=n(30);t.a=function(e){var t=Object(r.b)(null);return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var c=JSON.stringify(r);return t[c]=t[c]||e.apply(null,r)}}},function(e,t,n){"use strict";n(124),n(80);var r=n(44),o=n(30);t.a=function(e,path){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!(path=Object(r.d)(path)?path.join("."):path)||!Object(o.f)(e))return t;if(path in e)return e[path];var n=(path=String(path).replace(/\[(\d+)]/g,".$1")).split(".").filter(Boolean);return 0===n.length?t:n.every((function(t){return Object(o.f)(e)&&t in e&&null!=(e=e[t])}))?e:t}},function(e,t,n){"use strict";n.d(t,"d",(function(){return y})),n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return S}));n(124),n(80),n(68),n(69),n(8);var r=n(173),o=n(30),c=n(36),d=n(44),f=/%2C/g,l=/[!'()*]/g,h=function(e){return"%"+e.charCodeAt(0).toString(16)},m=function(e){return encodeURIComponent(Object(r.a)(e)).replace(l,h).replace(f,",")},v=(decodeURIComponent,function(e){if(!Object(o.g)(e))return"";var t=Object(o.h)(e).map((function(t){var n=e[t];return Object(c.g)(n)?"":Object(c.e)(n)?m(t):Object(d.d)(n)?n.reduce((function(e,n){return Object(c.e)(n)?e.push(m(t)):Object(c.g)(n)||e.push(m(t)+"="+m(n)),e}),[]).join("&"):m(t)+"="+m(n)})).filter((function(e){return e.length>0})).join("&");return t?"?".concat(t):""}),y=function(e){return"a"!==Object(r.a)(e).toLowerCase()},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.to,n=e.disabled,r=arguments.length>1?arguments[1]:void 0;return r.$router&&t&&!n?r.$nuxt?"nuxt-link":"router-link":"a"},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,n=e.rel;return"_blank"===t&&Object(c.e)(n)?"noopener":n||null},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.href,n=e.to,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a",f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(y(d))return null;if(t)return t;if(n){if(Object(c.f)(n))return n||l;if(Object(o.g)(n)&&(n.path||n.query||n.hash)){var path=Object(r.a)(n.path),h=v(n.query),m=Object(r.a)(n.hash);return m=m&&"#"!==m.charAt(0)?"#".concat(m):m,"".concat(path).concat(h).concat(m)||l}}return f}},,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(10);e.exports=function(e,t){var n=t&&Number(t.weekStartsOn)||0,o=r(e),c=o.getDay(),d=(c<n?7:0)+c-n;return o.setDate(o.getDate()-d),o.setHours(0,0,0,0),o}},function(e,t,n){var r=n(143),o=6e4,c=864e5;e.exports=function(e,t){var n=r(e),d=r(t),f=n.getTime()-n.getTimezoneOffset()*o,l=d.getTime()-d.getTimezoneOffset()*o;return Math.round((f-l)/c)}},function(e,t,n){var r=n(10),o=n(329);e.exports=function(e,t){var n=r(e),c=Number(t),d=n.getMonth()+c,f=new Date(0);f.setFullYear(n.getFullYear(),d,1),f.setHours(0,0,0,0);var l=o(f);return n.setMonth(d,Math.min(l,n.getDate())),n}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()-o.getTime()}},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var c,i,d=arguments.length;switch(d){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,o)}));default:for(c=new Array(d-1),i=0;i<c.length;)c[i++]=arguments[i];return t.nextTick((function(){e.apply(null,c)}))}}}:e.exports=t}).call(this,n(107))},function(e,t,n){var r=n(37).Buffer;function o(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function c(e){for(;0<e.length;e++)e[0]=0}function d(e,t,n,r,o){for(var c,d,f,l,h=n[0],m=n[1],v=n[2],y=n[3],_=e[0]^t[0],w=e[1]^t[1],S=e[2]^t[2],E=e[3]^t[3],O=4,I=1;I<o;I++)c=h[_>>>24]^m[w>>>16&255]^v[S>>>8&255]^y[255&E]^t[O++],d=h[w>>>24]^m[S>>>16&255]^v[E>>>8&255]^y[255&_]^t[O++],f=h[S>>>24]^m[E>>>16&255]^v[_>>>8&255]^y[255&w]^t[O++],l=h[E>>>24]^m[_>>>16&255]^v[w>>>8&255]^y[255&S]^t[O++],_=c,w=d,S=f,E=l;return c=(r[_>>>24]<<24|r[w>>>16&255]<<16|r[S>>>8&255]<<8|r[255&E])^t[O++],d=(r[w>>>24]<<24|r[S>>>16&255]<<16|r[E>>>8&255]<<8|r[255&_])^t[O++],f=(r[S>>>24]<<24|r[E>>>16&255]<<16|r[_>>>8&255]<<8|r[255&w])^t[O++],l=(r[E>>>24]<<24|r[_>>>16&255]<<16|r[w>>>8&255]<<8|r[255&S])^t[O++],[c>>>=0,d>>>=0,f>>>=0,l>>>=0]}var f=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],o=[[],[],[],[]],c=[[],[],[],[]],d=0,f=0,i=0;i<256;++i){var l=f^f<<1^f<<2^f<<3^f<<4;l=l>>>8^255&l^99,n[d]=l,r[l]=d;var h=e[d],m=e[h],v=e[m],y=257*e[l]^16843008*l;o[0][d]=y<<24|y>>>8,o[1][d]=y<<16|y>>>16,o[2][d]=y<<8|y>>>24,o[3][d]=y,y=16843009*v^65537*m^257*h^16843008*d,c[0][l]=y<<24|y>>>8,c[1][l]=y<<16|y>>>16,c[2][l]=y<<8|y>>>24,c[3][l]=y,0===d?d=f=1:(d=h^e[e[e[v^h]]],f^=e[e[f]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:o,INV_SUB_MIX:c}}();function h(e){this._key=o(e),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),o=[],c=0;c<t;c++)o[c]=e[c];for(c=t;c<r;c++){var d=o[c-1];c%t==0?(d=d<<8|d>>>24,d=l.SBOX[d>>>24]<<24|l.SBOX[d>>>16&255]<<16|l.SBOX[d>>>8&255]<<8|l.SBOX[255&d],d^=f[c/t|0]<<24):t>6&&c%t==4&&(d=l.SBOX[d>>>24]<<24|l.SBOX[d>>>16&255]<<16|l.SBOX[d>>>8&255]<<8|l.SBOX[255&d]),o[c]=o[c-t]^d}for(var h=[],m=0;m<r;m++){var v=r-m,y=o[v-(m%4?0:4)];h[m]=m<4||v<=4?y:l.INV_SUB_MIX[0][l.SBOX[y>>>24]]^l.INV_SUB_MIX[1][l.SBOX[y>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[y>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&y]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=h},h.prototype.encryptBlockRaw=function(e){return d(e=o(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},h.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},h.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var n=d(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),c=r.allocUnsafe(16);return c.writeUInt32BE(n[0],0),c.writeUInt32BE(n[3],4),c.writeUInt32BE(n[2],8),c.writeUInt32BE(n[1],12),c},h.prototype.scrub=function(){c(this._keySchedule),c(this._invKeySchedule),c(this._key)},e.exports.AES=h},function(e,t,n){var r=n(37).Buffer,o=n(339);e.exports=function(e,t,n,c){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var d=n/8,f=r.alloc(d),l=r.alloc(c||0),h=r.alloc(0);d>0||c>0;){var m=new o;m.update(h),m.update(e),t&&m.update(t),h=m.digest();var v=0;if(d>0){var y=f.length-d;v=Math.min(d,h.length),h.copy(f,y,0,v),d-=v}if(v<h.length&&c>0){var _=l.length-c,w=Math.min(c,h.length-v);h.copy(l,_,v,v+w),c-=w}}return h.fill(0),{key:f,iv:l}}},function(e,t,n){"use strict";var r=n(61),o=n(97),c=o.getNAF,d=o.getJSF,f=o.assert;function l(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(p,e){f(p.precomputed);var t=p._getDoubles(),n=c(e,1,this._bitLength),r=(1<<t.step+1)-(t.step%2==0?2:1);r/=3;for(var o=[],d=0;d<n.length;d+=t.step){var l=0;for(e=d+t.step-1;e>=d;e--)l=(l<<1)+n[e];o.push(l)}for(var a=this.jpoint(null,null,null),b=this.jpoint(null,null,null),i=r;i>0;i--){for(d=0;d<o.length;d++){(l=o[d])===i?b=b.mixedAdd(t.points[d]):l===-i&&(b=b.mixedAdd(t.points[d].neg()))}a=a.add(b)}return a.toP()},l.prototype._wnafMul=function(p,e){var t=4,n=p._getNAFPoints(t);t=n.wnd;for(var r=n.points,o=c(e,t,this._bitLength),d=this.jpoint(null,null,null),i=o.length-1;i>=0;i--){for(e=0;i>=0&&0===o[i];i--)e++;if(i>=0&&e++,d=d.dblp(e),i<0)break;var l=o[i];f(0!==l),d="affine"===p.type?l>0?d.mixedAdd(r[l-1>>1]):d.mixedAdd(r[-l-1>>1].neg()):l>0?d.add(r[l-1>>1]):d.add(r[-l-1>>1].neg())}return"affine"===p.type?d.toP():d},l.prototype._wnafMulAdd=function(e,t,n,r,o){for(var f=this._wnafT1,l=this._wnafT2,h=this._wnafT3,m=0,i=0;i<r;i++){var v=(p=t[i])._getNAFPoints(e);f[i]=v.wnd,l[i]=v.points}for(i=r-1;i>=1;i-=2){var a=i-1,b=i;if(1===f[a]&&1===f[b]){var y=[t[a],null,null,t[b]];0===t[a].y.cmp(t[b].y)?(y[1]=t[a].add(t[b]),y[2]=t[a].toJ().mixedAdd(t[b].neg())):0===t[a].y.cmp(t[b].y.redNeg())?(y[1]=t[a].toJ().mixedAdd(t[b]),y[2]=t[a].add(t[b].neg())):(y[1]=t[a].toJ().mixedAdd(t[b]),y[2]=t[a].toJ().mixedAdd(t[b].neg()));var _=[-3,-1,-5,-7,0,7,5,1,3],w=d(n[a],n[b]);m=Math.max(w[0].length,m),h[a]=new Array(m),h[b]=new Array(m);for(var S=0;S<m;S++){var E=0|w[0][S],O=0|w[1][S];h[a][S]=_[3*(E+1)+(O+1)],h[b][S]=0,l[a]=y}}else h[a]=c(n[a],f[a],this._bitLength),h[b]=c(n[b],f[b],this._bitLength),m=Math.max(h[a].length,m),m=Math.max(h[b].length,m)}var I=this.jpoint(null,null,null),x=this._wnafT4;for(i=m;i>=0;i--){for(var A=0;i>=0;){var C=!0;for(S=0;S<r;S++)x[S]=0|h[S][i],0!==x[S]&&(C=!1);if(!C)break;A++,i--}if(i>=0&&A++,I=I.dblp(A),i<0)break;for(S=0;S<r;S++){var p,j=x[S];0!==j&&(j>0?p=l[S][j-1>>1]:j<0&&(p=l[S][-j-1>>1].neg()),I="affine"===p.type?I.mixedAdd(p):I.add(p))}}for(i=0;i<r;i++)l[i]=null;return o?I:I.toP()},l.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=o.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?f(e[e.length-1]%2==0):7===e[0]&&f(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},h.prototype.encodeCompressed=function(e){return this.encode(e,!0)},h.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},h.prototype.encode=function(e,t){return o.encode(this._encode(t),e)},h.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},h.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},h.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},h.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(e){for(var t=this,i=0;i<e;i++)t=t.dbl();return t}},function(e,t,n){var r=n(792),o=n(803),c=n(804),d=n(347),f=n(520),l=n(37).Buffer;function h(e){var t;"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var n,h,m=c(e,t),v=m.tag,data=m.data;switch(v){case"CERTIFICATE":h=r.certificate.decode(data,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=r.PublicKey.decode(data,"der")),n=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=r.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+v);case"ENCRYPTED PRIVATE KEY":data=function(data,e){var t=data.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(data.algorithm.decrypt.kde.kdeparams.iters.toString(),10),r=o[data.algorithm.decrypt.cipher.algo.join(".")],c=data.algorithm.decrypt.cipher.iv,h=data.subjectPrivateKey,m=parseInt(r.split("-")[1],10)/8,v=f.pbkdf2Sync(e,t,n,m,"sha1"),y=d.createDecipheriv(r,v,c),_=[];return _.push(y.update(h)),_.push(y.final()),l.concat(_)}(data=r.EncryptedPrivateKey.decode(data,"der"),t);case"PRIVATE KEY":switch(n=(h=r.PrivateKey.decode(data,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:r.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=r.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+v);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(data,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(data,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(data,"der")};case"EC PRIVATE KEY":return{curve:(data=r.ECPrivateKey.decode(data,"der")).parameters.value,privateKey:data.privateKey};default:throw new Error("unknown key type "+v)}}e.exports=h,h.signature=r.signature},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(0),o=n(21),c=n(29),d=n(3),f=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(r.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(c.getSerdePlugin)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(o.B)(input,e)},t.prototype.deserialize=function(output,e){return Object(o.g)(output,e)},t}(d.Command)},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return $}));var r=n(0),o=n(436),c=n(276),d=n(167),f=n(200),l=n(278),h=n(148),m=n(279),v=n(280),y=n(115),_="cognito-identity.{region}.amazonaws.com",w=new Set(["ap-south-1","eu-north-1","eu-west-3","eu-west-2","eu-west-1","ap-northeast-2","ap-northeast-1","me-south-1","ca-central-1","sa-east-1","ap-east-1","ap-southeast-1","ap-southeast-2","eu-central-1","us-east-1","us-east-2","us-west-1","us-west-2"]),S=new Set(["cn-north-1","cn-northwest-1"]),E=new Set(["us-iso-east-1"]),O=new Set(["us-isob-east-1"]),I=new Set(["us-gov-west-1","us-gov-east-1"]),x={apiVersion:"2014-06-30",disableHostPrefix:!1,regionInfoProvider:function(e,t){var n=void 0;switch(e){case"ap-northeast-1":n={hostname:"cognito-identity.ap-northeast-1.amazonaws.com"};break;case"ap-northeast-2":n={hostname:"cognito-identity.ap-northeast-2.amazonaws.com"};break;case"ap-south-1":n={hostname:"cognito-identity.ap-south-1.amazonaws.com"};break;case"ap-southeast-1":n={hostname:"cognito-identity.ap-southeast-1.amazonaws.com"};break;case"ap-southeast-2":n={hostname:"cognito-identity.ap-southeast-2.amazonaws.com"};break;case"ca-central-1":n={hostname:"cognito-identity.ca-central-1.amazonaws.com"};break;case"cn-north-1":n={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn"};break;case"eu-central-1":n={hostname:"cognito-identity.eu-central-1.amazonaws.com"};break;case"eu-west-1":n={hostname:"cognito-identity.eu-west-1.amazonaws.com"};break;case"eu-west-2":n={hostname:"cognito-identity.eu-west-2.amazonaws.com"};break;case"us-east-1":n={hostname:"cognito-identity.us-east-1.amazonaws.com"};break;case"us-east-2":n={hostname:"cognito-identity.us-east-2.amazonaws.com"};break;case"us-west-2":n={hostname:"cognito-identity.us-west-2.amazonaws.com"};break;default:w.has(e)&&(n={hostname:_.replace("{region}",e)}),S.has(e)&&(n={hostname:"cognito-identity.{region}.amazonaws.com.cn".replace("{region}",e)}),E.has(e)&&(n={hostname:"cognito-identity.{region}.c2s.ic.gov".replace("{region}",e)}),O.has(e)&&(n={hostname:"cognito-identity.{region}.sc2s.sgov.gov".replace("{region}",e)}),I.has(e)&&(n={hostname:"cognito-identity.{region}.amazonaws.com".replace("{region}",e)}),void 0===n&&(n={hostname:_.replace("{region}",e)})}return Promise.resolve(n)},signingName:"cognito-identity"},A=Object(r.__assign)(Object(r.__assign)({},x),{runtime:"browser",base64Decoder:h.fromBase64,base64Encoder:h.toBase64,bodyLengthChecker:m.calculateBodyLength,credentialDefaultProvider:function(){},defaultUserAgent:Object(v.defaultUserAgent)(o.a,o.b),maxAttemptsDefaultProvider:function(){return"3"},regionDefaultProvider:Object(f.invalidFunction)("Region is missing"),requestHandler:new d.FetchHttpHandler,sha256:c.Sha256,streamCollector:d.streamCollector,urlParser:l.parseUrl,utf8Decoder:y.fromUtf8,utf8Encoder:y.toUtf8}),C=n(162),j=n(275),k=n(163),M=n(164),T=n(34),P=n(166),$=function(e){function t(t){var n=this,o=Object(r.__assign)(Object(r.__assign)({},A),t),c=Object(C.resolveRegionConfig)(o),d=Object(C.resolveEndpointsConfig)(c),f=Object(T.resolveAwsAuthConfig)(d),l=Object(M.resolveRetryConfig)(f),h=Object(P.resolveUserAgentConfig)(l),m=Object(k.resolveHostHeaderConfig)(h);return(n=e.call(this,m)||this).config=m,n.middlewareStack.use(Object(M.getRetryPlugin)(n.config)),n.middlewareStack.use(Object(P.getUserAgentPlugin)(n.config)),n.middlewareStack.use(Object(j.getContentLengthPlugin)(n.config)),n.middlewareStack.use(Object(k.getHostHeaderPlugin)(n.config)),n}return Object(r.__extends)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(n(3).Client)},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContentLengthPlugin=t.contentLengthMiddlewareOptions=t.contentLengthMiddleware=void 0;var r=n(0),o=n(7),c="content-length";function d(e){var t=this;return function(n){return function(d){return r.__awaiter(t,void 0,void 0,(function(){var t,body,f,l,h;return r.__generator(this,(function(m){return t=d.request,o.HttpRequest.isInstance(t)&&(body=t.body,f=t.headers,body&&-1===Object.keys(f).map((function(e){return e.toLowerCase()})).indexOf(c)&&void 0!==(l=e(body))&&(t.headers=r.__assign(r.__assign({},t.headers),((h={})[c]=String(l),h)))),[2,n(r.__assign(r.__assign({},d),{request:t}))]}))}))}}}t.contentLengthMiddleware=d,t.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware"},t.getContentLengthPlugin=function(e){return{applyToStack:function(n){n.add(d(e.bodyLengthChecker),t.contentLengthMiddlewareOptions)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(915),t);var r=n(561);t.Ie11Sha256=r.Sha256;var o=n(564);t.WebCryptoSha256=o.Sha256},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(918),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrl=void 0;var r=n(928);t.parseUrl=function(e){var t,n=new URL(e),o=n.hostname,c=n.pathname,d=n.port,f=n.protocol,l=n.search;return l&&(t=r.parseQueryString(l)),{hostname:o,port:d?parseInt(d):void 0,protocol:f,path:c,query:t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateBodyLength=void 0,t.calculateBodyLength=function(body){return"string"==typeof body?new Blob([body]).size:"number"==typeof body.byteLength?body.byteLength:"number"==typeof body.size?body.size:void 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultUserAgent=void 0,t.defaultUserAgent=function(e,t){return"aws-sdk-js-v3-"+e+"/"+t+" "+("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")}},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));n(25),n(22),n(15),n(8),n(16);var r=n(2),o=n(50),c=n(100),d=n(598),f=n(44),l=n(118),h=n(38),m=n(36),v=n(30),y=n(438);function _(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var w="BButton",S={block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:function(){return Object(l.b)(w,"size")}},variant:{type:String,default:function(){return Object(l.b)(w,"variant")}},type:{type:String,default:"button"},tag:{type:String,default:"button"},pill:{type:Boolean,default:!1},squared:{type:Boolean,default:!1},pressed:{type:Boolean,default:null}},E=Object(y.b)();delete E.href.default,delete E.to.default;var O=Object(v.h)(E),I=function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?_(source,!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):_(source).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({},E,{},S),x=function(e){"focusin"===e.type?Object(h.a)(e.target,"focus"):"focusout"===e.type&&Object(h.k)(e.target,"focus")},A=function(e){return Boolean(e.href||e.to||e.tag&&"a"===String(e.tag).toLowerCase())},C=function(e){return Object(m.a)(e.pressed)},j=function(e){return!A(e)&&(!e.tag||"button"===String(e.tag).toLowerCase())},k=function(e){var t;return["btn-".concat(e.variant||Object(l.b)(w,"variant")),(t={},Object(r.a)(t,"btn-".concat(e.size),Boolean(e.size)),Object(r.a)(t,"btn-block",e.block),Object(r.a)(t,"rounded-pill",e.pill),Object(r.a)(t,"rounded-0",e.squared&&!e.pill),Object(r.a)(t,"disabled",e.disabled),Object(r.a)(t,"active",e.pressed),t)]},M=function(e){return A(e)?Object(d.a)(O,e):null},T=function(e,data){var button=j(e),link=A(e),t=C(e),n=function(e){return!A(e)&&!j(e)}(e),r=data.attrs&&data.attrs.role?data.attrs.role:null,o=data.attrs?data.attrs.tabindex:null;return n&&(o="0"),{type:button&&!link?e.type:null,disabled:button?e.disabled:null,role:n?"button":r,"aria-disabled":n?String(e.disabled):null,"aria-pressed":t?String(e.pressed):null,autocomplete:t?"off":null,tabindex:e.disabled&&!button?"-1":o}},P=o.a.extend({name:w,functional:!0,props:I,render:function(e,t){var n=t.props,data=t.data,r=t.listeners,o=t.children,d=C(n),link=A(n),l={click:function(e){n.disabled&&Object(m.c)(e)?(e.stopPropagation(),e.preventDefault()):d&&r&&r["update:pressed"]&&Object(f.b)(r["update:pressed"]).forEach((function(e){Object(m.d)(e)&&e(!n.pressed)}))}};d&&(l.focusin=x,l.focusout=x);var h={staticClass:"btn",class:k(n),props:M(n),attrs:T(n,data),on:l};return e(link?y.a:n.tag,Object(c.a)(data,h),o)}})},function(e,t,n){"use strict";var r=n(169),o=n(44);t.a={methods:{hasNormalizedSlot:function(e){return Object(r.a)(e,this.$scopedSlots,this.$slots)},normalizeSlot:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(r.b)(e,t,this.$scopedSlots,this.$slots);return n?Object(o.b)(n):n}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(2),o=n(50),c=n(100),d=n(118),f=n(36),l=n(169),h="BButtonClose",m={disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:function(){return Object(d.b)(h,"ariaLabel")}},textVariant:{type:String,default:function(){return Object(d.b)(h,"textVariant")}}},v=o.a.extend({name:h,functional:!0,props:m,render:function(e,t){var n=t.props,data=t.data,o=(t.listeners,t.slots),d=t.scopedSlots,h=o(),m=d||{},v={staticClass:"close",class:Object(r.a)({},"text-".concat(n.textVariant),n.textVariant),attrs:{type:"button",disabled:n.disabled,"aria-label":n.ariaLabel?String(n.ariaLabel):null},on:{click:function(e){n.disabled&&Object(f.c)(e)&&(e.stopPropagation(),e.preventDefault())}}};return Object(l.a)("default",m,h)||(v.domProps={innerHTML:"&times;"}),e("button",Object(c.a)(data,v),Object(l.b)("default",{},m,h))}})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(171),o=new r.a("Amplify"),c=function(){function e(){}return e.register=function(t){o.debug("component registered in amplify",t),this._components.push(t),"function"==typeof t.getModuleName?e[t.getModuleName()]=t:o.debug("no getModuleName method for component",t),t.configure(this._config)},e.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),o.debug("amplify config",this._config),this._components.map((function(e){e.configure(t._config)})),this._config):this._config},e.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map((function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)}))},e._components=[],e._config={},e.Auth=null,e.Analytics=null,e.API=null,e.Storage=null,e.I18n=null,e.Cache=null,e.PubSub=null,e.Interactions=null,e.Pushnotification=null,e.UI=null,e.XR=null,e.Predictions=null,e.DataStore=null,e.Logger=r.a,e.ServiceWorker=null,e}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={userAgent:"aws-amplify/3.4.3 js",product:"",navigator:null,isReactNative:!1};if("undefined"!=typeof navigator&&navigator.product)switch(r.product=navigator.product||"",r.navigator=navigator||null,navigator.product){case"ReactNative":r.userAgent="aws-amplify/3.4.3 react-native",r.isReactNative=!0;break;default:r.userAgent="aws-amplify/3.4.3 js",r.isReactNative=!1}var o=function(){return r.userAgent}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ue})),n.d(t,"b",(function(){return Y})),n.d(t,"c",(function(){return K})),n.d(t,"d",(function(){return T})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return le}));var r,o,c,d=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function i(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){e.done?n(e.value):a(e.value).then(o,i)}c((r=r.apply(e,t||[])).next())}))},l=function(e,t){var n,a,s,r,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return r={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(e){return function(t){return c([e,t])}}function c(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(s=2&r[0]?a.return:r[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,r[1])).done)return s;switch(a=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,a=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(s=(s=o.trys).length>0&&s[s.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){o.label=r[1];break}if(6===r[0]&&o.label<s[1]){o.label=s[1],s=r;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(r);break}s[2]&&o.ops.pop(),o.trys.pop();continue}r=t.call(e,o)}catch(e){r=[6,e],a=0}finally{n=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},h=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},m=!1,v="undefined"!=typeof window?window:{},y=v.document||{head:{}},_={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}},w=function(e){return Promise.resolve(e)},S=function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1}(),E=function(e,t,n,r){n&&n.map((function(n){var r=n[0],a=n[1],s=n[2],o=e,i=O(t,s),c=I(r);_.ael(o,a,i,c),(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return _.rel(o,a,i,c)}))}))},O=function(e,t){return function(n){try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(e){ge(e)}}},I=function(e){return 0!=(2&e)},x=function(e,t){return void 0===t&&(t=""),function(){}},A=new WeakMap,C=function(e){var t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,a=x(0,t.$tagName$),s=function(e,t,n,r){var a=j(t),s=ve.get(a);if(e=11===e.nodeType?e:y,s)if("string"==typeof s){e=e.head||e;var o=A.get(e),i=void 0;o||A.set(e,o=new Set),o.has(a)||((i=y.createElement("style")).innerHTML=s,e.insertBefore(i,e.querySelector("link")),o&&o.add(a))}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=h(h([],e.adoptedStyleSheets),[s]));return a}(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&(n["s-sc"]=s,n.classList.add(s+"-h")),a()},j=function(e,t){return"sc-"+e.$tagName$},k={},M=function(e){return"object"===(e=typeof e)||"function"===e},T=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=null,s=null,o=!1,i=!1,c=[],u=function(t){for(var n=0;n<t.length;n++)a=t[n],Array.isArray(a)?u(a):null!=a&&"boolean"!=typeof a&&((o="function"!=typeof e&&!M(a))&&(a=String(a)),o&&i?c[c.length-1].$text$+=a:c.push(o?P(null,a):a),i=o)};if(u(n),t){t.key&&(s=t.key);var d=t.className||t.class;d&&(t.class="object"!=typeof d?d:Object.keys(d).filter((function(e){return d[e]})).join(" "))}var f=P(e,null);return f.$attrs$=t,c.length>0&&(f.$children$=c),f.$key$=s,f},P=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null};return n},$={},R=function(e,t,n,r,a,s){if(n!==r){var o=pe(e,t),i=t.toLowerCase();if("class"===t){var c=e.classList,u=N(n),d=N(r);c.remove.apply(c,u.filter((function(e){return e&&!d.includes(e)}))),c.add.apply(c,d.filter((function(e){return e&&!u.includes(e)})))}else if("key"===t);else if("ref"===t)r&&r(e);else if(o||"o"!==t[0]||"n"!==t[1]){var f=M(r);if((o||f&&null!==r)&&!a)try{if(e.tagName.includes("-"))e[t]=r;else{var l=null==r?"":r;"list"===t?o=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==r||!1===r?!1===r&&""!==e.getAttribute(t)||e.removeAttribute(t):(!o||4&s||a)&&!f&&(r=!0===r?"":r,e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):pe(v,i)?i.slice(2):i[2]+t.slice(3),n&&_.rel(e,t,n,!1),r&&_.ael(e,t,r,!1)}},D=/\s/,N=function(e){return e?e.split(D):[]},U=function(e,t,n,r){var a=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||k,o=t.$attrs$||k;for(r in s)r in o||R(a,r,s[r],void 0,n,t.$flags$);for(r in o)R(a,r,s[r],o[r],n,t.$flags$)},B=function(e,t,n,r){var c,i,a=t.$children$[n],s=0;if(null!==a.$text$)c=a.$elm$=y.createTextNode(a.$text$);else if(c=a.$elm$=y.createElement(a.$tag$),U(null,a,!1),function(e){return null!=e}(o)&&c["s-si"]!==o&&c.classList.add(c["s-si"]=o),a.$children$)for(s=0;s<a.$children$.length;++s)(i=B(e,a,s))&&c.appendChild(i);return c},L=function(e,t,n,r,a,s){var i,o=e;for(o.shadowRoot&&o.tagName===c&&(o=o.shadowRoot);a<=s;++a)r[a]&&(i=B(null,n,a))&&(r[a].$elm$=i,o.insertBefore(i,t))},z=function(e,t,n,r,a){for(;t<=n;++t)(r=e[t])&&(a=r.$elm$,V(r),a.remove())},F=function(e,t){return e.$tag$===t.$tag$&&e.$key$===t.$key$},H=function(e,t){var n=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$,s=t.$text$;null===s?(U(e,t,!1),null!==r&&null!==a?function(e,t,n,r){for(var o,p,a=0,s=0,c=0,i=0,d=t.length-1,u=t[0],f=t[d],l=r.length-1,h=r[0],m=r[l];a<=d&&s<=l;)if(null==u)u=t[++a];else if(null==f)f=t[--d];else if(null==h)h=r[++s];else if(null==m)m=r[--l];else if(F(u,h))H(u,h),u=t[++a],h=r[++s];else if(F(f,m))H(f,m),f=t[--d],m=r[--l];else if(F(u,m))H(u,m),e.insertBefore(u.$elm$,f.$elm$.nextSibling),u=t[++a],m=r[--l];else if(F(f,h))H(f,h),e.insertBefore(f.$elm$,u.$elm$),f=t[--d],h=r[++s];else{for(c=-1,i=a;i<=d;++i)if(t[i]&&null!==t[i].$key$&&t[i].$key$===h.$key$){c=i;break}c>=0?((p=t[c]).$tag$!==h.$tag$?o=B(t&&t[s],n,c):(H(p,h),t[c]=void 0,o=p.$elm$),h=r[++s]):(o=B(t&&t[s],n,s),h=r[++s]),o&&u.$elm$.parentNode.insertBefore(o,u.$elm$)}a>d?L(e,null==r[l+1]?null:r[l+1].$elm$,n,r,s,l):s>l&&z(t,a,d)}(n,r,t,a):null!==a?(null!==e.$text$&&(n.textContent=""),L(n,null,t,a,0,a.length-1)):null!==r&&z(r,0,r.length-1)):e.$text$!==s&&(n.data=s)},V=function(e){e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(V)},W=function(e,t){var n=e.$hostElement$,r=e.$vnode$||P(null,null),a=function(e){return e&&e.$tag$===$}(t)?t:T(null,null,t);c=n.tagName,a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=r.$elm$=n.shadowRoot||n,o=n["s-sc"],H(r,a)},K=function(e){return fe(e).$hostElement$},Y=function(e,t,n){var r=K(e);return{emit:function(e){return G(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}}},G=function(e,t,n){var r=_.ce(t,n);return e.dispatchEvent(r),r},J=function(e,t){t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))},X=function(e,t){if(e.$flags$|=16,!(4&e.$flags$)){J(e,e.$ancestorComponent$);return Oe((function(){return Z(e,t)}))}e.$flags$|=512},Z=function(e,t){var a,n=x(0,e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return re(r,t,n)})),e.$queuedListeners$=null),a=re(r,"componentWillLoad")),n(),ie(a,(function(){return Q(e,r,t)}))},Q=function(e,t,n){return f(void 0,void 0,void 0,(function(){var r,a,s,o,i,c;return l(this,(function(u){return r=e.$hostElement$,a=x(0,e.$cmpMeta$.$tagName$),s=r["s-rc"],n&&C(e),o=x(0,e.$cmpMeta$.$tagName$),ee(e,t),s&&(s.map((function(e){return e()})),r["s-rc"]=void 0),o(),a(),i=r["s-p"],c=function(){return te(e)},0===i.length?c():(Promise.all(i).then(c),e.$flags$|=4,i.length=0),[2]}))}))},ee=function(e,t,n){try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,W(e,t)}catch(t){ge(t,e.$hostElement$)}return null},te=function(e){var t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,r=x(0,t),a=e.$lazyInstance$,s=e.$ancestorComponent$;64&e.$flags$?(re(a,"componentDidUpdate"),r()):(e.$flags$|=64,oe(n),re(a,"componentDidLoad"),r(),e.$onReadyResolve$(n),s||ne()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Ee((function(){return X(e,!1)})),e.$flags$&=-517},ne=function(e){oe(y.documentElement),Ee((function(){return G(v,"appload",{detail:{namespace:"aegon-issuance-widgets"}})}))},re=function(e,t,n){if(e&&e[t])try{return e[t](n)}catch(e){ge(e)}},ie=function(e,t){return e&&e.then?e.then(t):t()},oe=function(e){return e.classList.add("hydrated")},ae=function(e,t,n,r){var a=fe(e),s=a.$hostElement$,o=a.$instanceValues$.get(t),i=a.$flags$,c=a.$lazyInstance$;if(n=function(e,t){return null==e||M(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?String(e):e}(n,r.$members$[t][0]),!(8&i&&void 0!==o||n===o)&&(a.$instanceValues$.set(t,n),c)){if(r.$watchers$&&128&i){var u=r.$watchers$[t];u&&u.map((function(e){try{c[e](n,o,t)}catch(e){ge(e,s)}}))}2==(18&i)&&X(a,!1)}},se=function(e,t,n){if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);var r=Object.entries(t.$members$),a=e.prototype;if(r.map((function(e){var r=e[0],s=e[1][0];(31&s||2&n&&32&s)&&Object.defineProperty(a,r,{get:function(){return function(e,t){return fe(e).$instanceValues$.get(t)}(this,r)},set:function(e){ae(this,r,e,t)},configurable:!0,enumerable:!0})})),1&n){var s=new Map;a.attributeChangedCallback=function(e,t,n){var r=this;_.jmp((function(){var t=s.get(e);if(r.hasOwnProperty(t))n=r[t],delete r[t];else if(a.hasOwnProperty(t)&&"number"==typeof r[t]&&r[t]==n)return;r[t]=(null!==n||"boolean"!=typeof r[t])&&n}))},e.observedAttributes=r.filter((function(e){e[0];return 15&e[1][0]})).map((function(e){var t=e[0],n=e[1][1]||t;return s.set(n,t),n}))}}return e},ce=function(e,t,n,r,a){return f(void 0,void 0,void 0,(function(){var e,r,s,o,i,c,u;return l(this,(function(d){switch(d.label){case 0:return 0!=(32&t.$flags$)?[3,3]:(t.$flags$|=32,(a=be(n)).then?(e=function(){},[4,a]):[3,2]);case 1:a=d.sent(),e(),d.label=2;case 2:a.isProxied||(n.$watchers$=a.watchers,se(a,n,2),a.isProxied=!0),r=x(0,n.$tagName$),t.$flags$|=8;try{new a(t)}catch(e){ge(e)}t.$flags$&=-9,t.$flags$|=128,r(),a.style&&(s=a.style,o=j(n),ve.has(o)||(i=x(0,n.$tagName$),function(e,t,n){var r=ve.get(e);S&&n?(r=r||new CSSStyleSheet).replace(t):r=t,ve.set(e,r)}(o,s,!!(1&n.$flags$)),i())),d.label=3;case 3:return c=t.$ancestorComponent$,u=function(){return X(t,!0)},c&&c["s-rc"]?c["s-rc"].push(u):u(),[2]}}))}))},ue=function(e,t){void 0===t&&(t={});var n,r=x(),o=[],a=t.exclude||[],s=v.customElements,c=y.head,i=c.querySelector("meta[charset]"),f=y.createElement("style"),u=[],l=!0;Object.assign(_,t),_.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href,e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};r.$members$=t[2],r.$listeners$=t[3],r.$watchers$={};var c=r.$tagName$,i=function(e){function t(t){var n=e.call(this,t)||this;return he(t=n,r),1&r.$flags$&&t.attachShadow({mode:"open"}),n}return d(t,e),t.prototype.connectedCallback=function(){var e=this;n&&(clearTimeout(n),n=null),l?u.push(this):_.jmp((function(){return function(e){if(0==(1&_.$flags$)){var t=fe(e),n=t.$cmpMeta$,r=x(0,n.$tagName$);if(1&t.$flags$)E(e,t,n.$listeners$);else{t.$flags$|=1;for(var a=e;a=a.parentNode||a.host;)if(a["s-p"]){J(t,t.$ancestorComponent$=a);break}n.$members$&&Object.entries(n.$members$).map((function(t){var n=t[0];if(31&t[1][0]&&e.hasOwnProperty(n)){var a=e[n];delete e[n],e[n]=a}})),ce(0,t,n)}r()}}(e)}))},t.prototype.disconnectedCallback=function(){var e=this;_.jmp((function(){return function(e){if(0==(1&_.$flags$)){var t=fe(e);t.$rmListeners$&&(t.$rmListeners$.map((function(e){return e()})),t.$rmListeners$=void 0)}}(e)}))},t.prototype.componentOnReady=function(){return fe(this).$onReadyPromise$},t}(HTMLElement);r.$lazyBundleId$=e[0],a.includes(c)||s.get(c)||(o.push(c),s.define(c,se(i,r,1)))}))})),f.innerHTML=o+"{visibility:hidden}.hydrated{visibility:inherit}",f.setAttribute("data-styles",""),c.insertBefore(f,i?i.nextSibling:c.firstChild),l=!1,u.length?u.map((function(e){return e.connectedCallback()})):_.jmp((function(){return n=setTimeout(ne,30)})),r()},de=new WeakMap,fe=function(e){return de.get(e)},le=function(e,t){return de.set(t.$lazyInstance$=e,t)},he=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e})),e["s-p"]=[],e["s-rc"]=[],E(e,n,t.$listeners$),de.set(e,n)},pe=function(e,t){return t in e},ge=function(e,t){return(0,console.error)(e,t)},me=new Map,be=function(e,t,r){var o=e.$tagName$.replace(/-/g,"_"),a=e.$lazyBundleId$,s=me.get(a);return s?s[o]:n(977)("./"+a+".entry.js").then((function(e){return me.set(a,e),e[o]}),ge)},ve=new Map,ye=[],_e=[],we=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ge(e)}e.length=0},Se=function(){we(ye),we(_e),(m=ye.length>0)&&_.raf(Se)},Ee=function(e){return w().then(e)},Oe=function(e,t){return function(n){e.push(n),m||(m=!0,t&&4&_.$flags$?Ee(Se):_.raf(Se))}}(_e,!0)},,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e instanceof Date}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e),n=t.getFullYear(),o=t.getMonth(),c=new Date(0);return c.setFullYear(n,o+1,0),c.setHours(0,0,0,0),c.getDate()}},function(e,t,n){var r=n(185);e.exports=function(e,t){var n=Number(t);return r(e,7*n)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e).getTime(),o=r(t).getTime();return n>o?-1:n<o?1:0}},function(e,t,n){var r=n(10),o=n(482),c=n(188);e.exports=function(e,t){var n=r(e),d=r(t),f=c(n,d),l=Math.abs(o(n,d));return n.setMonth(n.getMonth()-f*l),f*(l-(c(n,d)===-f))}},function(e,t,n){var r=n(228);e.exports=function(e,t){var n=r(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}},function(e,t,n){var r=n(647),o=n(648);e.exports={distanceInWords:r(),format:o()}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e);return t.setHours(23,59,59,999),t}},function(e,t,n){var r=n(490),o=n(337),c=n(141),d=n(10),f=n(492),l=n(334);var h={M:function(e){return e.getMonth()+1},MM:function(e){return y(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return y(e.getDate(),2)},DDD:function(e){return r(e)},DDDD:function(e){return y(r(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return o(e)},WW:function(e){return y(o(e),2)},YY:function(e){return y(e.getFullYear(),4).substr(2)},YYYY:function(e){return y(e.getFullYear(),4)},GG:function(e){return String(c(e)).substr(2)},GGGG:function(e){return c(e)},H:function(e){return e.getHours()},HH:function(e){return y(e.getHours(),2)},h:function(e){var t=e.getHours();return 0===t?12:t>12?t%12:t},hh:function(e){return y(h.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return y(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return y(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return y(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return y(e.getMilliseconds(),3)},Z:function(e){return v(e.getTimezoneOffset(),":")},ZZ:function(e){return v(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function m(input){return input.match(/\[[\s\S]/)?input.replace(/^\[|]$/g,""):input.replace(/\\/g,"")}function v(e,t){t=t||"";var n=e>0?"-":"+",r=Math.abs(e),o=r%60;return n+y(Math.floor(r/60),2)+t+y(o,2)}function y(e,t){for(var output=Math.abs(e).toString();output.length<t;)output="0"+output;return output}e.exports=function(e,t,n){var r=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",o=(n||{}).locale,c=l.format.formatters,v=l.format.formattingTokensRegExp;o&&o.format&&o.format.formatters&&(c=o.format.formatters,o.format.formattingTokensRegExp&&(v=o.format.formattingTokensRegExp));var y=d(e);return f(y)?function(e,t,n){var i,r,o=e.match(n),c=o.length;for(i=0;i<c;i++)r=t[o[i]]||h[o[i]],o[i]=r||m(o[i]);return function(e){for(var output="",i=0;i<c;i++)o[i]instanceof Function?output+=o[i](e,h):output+=o[i];return output}}(r,c,v)(y):"Invalid Date"}},function(e,t,n){var r=n(10),o=n(142),c=n(187),d=6048e5;e.exports=function(e){var t=r(e),n=o(t).getTime()-c(t).getTime();return Math.round(n/d)+1}},function(e,t,n){var r=n(225);e.exports=function(e,t,n){var o=r(e,n),c=r(t,n);return o.getTime()===c.getTime()}},function(e,t,n){"use strict";var r=n(35),o=n(510),c=n(37).Buffer,d=new Array(16);function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function h(a,b,e,t,n,r,s){return l(a+(b&e|~b&t)+n+r|0,s)+b|0}function m(a,b,e,t,n,r,s){return l(a+(b&t|e&~t)+n+r|0,s)+b|0}function v(a,b,e,t,n,r,s){return l(a+(b^e^t)+n+r|0,s)+b|0}function y(a,b,e,t,n,r,s){return l(a+(e^(b|~t))+n+r|0,s)+b|0}r(f,o),f.prototype._update=function(){for(var e=d,i=0;i<16;++i)e[i]=this._block.readInt32LE(4*i);var a=this._a,b=this._b,t=this._c,n=this._d;a=h(a,b,t,n,e[0],3614090360,7),n=h(n,a,b,t,e[1],3905402710,12),t=h(t,n,a,b,e[2],606105819,17),b=h(b,t,n,a,e[3],3250441966,22),a=h(a,b,t,n,e[4],4118548399,7),n=h(n,a,b,t,e[5],1200080426,12),t=h(t,n,a,b,e[6],2821735955,17),b=h(b,t,n,a,e[7],4249261313,22),a=h(a,b,t,n,e[8],1770035416,7),n=h(n,a,b,t,e[9],2336552879,12),t=h(t,n,a,b,e[10],4294925233,17),b=h(b,t,n,a,e[11],2304563134,22),a=h(a,b,t,n,e[12],1804603682,7),n=h(n,a,b,t,e[13],4254626195,12),t=h(t,n,a,b,e[14],2792965006,17),a=m(a,b=h(b,t,n,a,e[15],1236535329,22),t,n,e[1],4129170786,5),n=m(n,a,b,t,e[6],3225465664,9),t=m(t,n,a,b,e[11],643717713,14),b=m(b,t,n,a,e[0],3921069994,20),a=m(a,b,t,n,e[5],3593408605,5),n=m(n,a,b,t,e[10],38016083,9),t=m(t,n,a,b,e[15],3634488961,14),b=m(b,t,n,a,e[4],3889429448,20),a=m(a,b,t,n,e[9],568446438,5),n=m(n,a,b,t,e[14],3275163606,9),t=m(t,n,a,b,e[3],4107603335,14),b=m(b,t,n,a,e[8],1163531501,20),a=m(a,b,t,n,e[13],2850285829,5),n=m(n,a,b,t,e[2],4243563512,9),t=m(t,n,a,b,e[7],1735328473,14),a=v(a,b=m(b,t,n,a,e[12],2368359562,20),t,n,e[5],4294588738,4),n=v(n,a,b,t,e[8],2272392833,11),t=v(t,n,a,b,e[11],1839030562,16),b=v(b,t,n,a,e[14],4259657740,23),a=v(a,b,t,n,e[1],2763975236,4),n=v(n,a,b,t,e[4],1272893353,11),t=v(t,n,a,b,e[7],4139469664,16),b=v(b,t,n,a,e[10],3200236656,23),a=v(a,b,t,n,e[13],681279174,4),n=v(n,a,b,t,e[0],3936430074,11),t=v(t,n,a,b,e[3],3572445317,16),b=v(b,t,n,a,e[6],76029189,23),a=v(a,b,t,n,e[9],3654602809,4),n=v(n,a,b,t,e[12],3873151461,11),t=v(t,n,a,b,e[15],530742520,16),a=y(a,b=v(b,t,n,a,e[2],3299628645,23),t,n,e[0],4096336452,6),n=y(n,a,b,t,e[7],1126891415,10),t=y(t,n,a,b,e[14],2878612391,15),b=y(b,t,n,a,e[5],4237533241,21),a=y(a,b,t,n,e[12],1700485571,6),n=y(n,a,b,t,e[3],2399980690,10),t=y(t,n,a,b,e[10],4293915773,15),b=y(b,t,n,a,e[1],2240044497,21),a=y(a,b,t,n,e[8],1873313359,6),n=y(n,a,b,t,e[15],4264355552,10),t=y(t,n,a,b,e[6],2734768916,15),b=y(b,t,n,a,e[13],1309151649,21),a=y(a,b,t,n,e[4],4149444226,6),n=y(n,a,b,t,e[11],3174756917,10),t=y(t,n,a,b,e[2],718787259,15),b=y(b,t,n,a,e[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+b|0,this._c=this._c+t|0,this._d=this._d+n|0},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=c.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=f},function(e,t,n){e.exports=o;var r=n(195).EventEmitter;function o(){r.call(this)}n(35)(o,r),o.Readable=n(341),o.Writable=n(741),o.Duplex=n(742),o.Transform=n(743),o.PassThrough=n(744),o.Stream=o,o.prototype.pipe=function(e,t){var source=this;function n(t){e.writable&&!1===e.write(t)&&source.pause&&source.pause()}function o(){source.readable&&source.resume&&source.resume()}source.on("data",n),e.on("drain",o),e._isStdio||t&&!1===t.end||(source.on("end",d),source.on("close",f));var c=!1;function d(){c||(c=!0,e.end())}function f(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(h(),0===r.listenerCount(this,"error"))throw e}function h(){source.removeListener("data",n),e.removeListener("drain",o),source.removeListener("end",d),source.removeListener("close",f),source.removeListener("error",l),e.removeListener("error",l),source.removeListener("end",h),source.removeListener("close",h),e.removeListener("close",h)}return source.on("error",l),e.on("error",l),source.on("end",h),source.on("close",h),e.on("close",h),e.emit("pipe",source),e}},function(e,t,n){(t=e.exports=n(511)).Stream=t,t.Readable=t,t.Writable=n(342),t.Duplex=n(144),t.Transform=n(514),t.PassThrough=n(740)},function(e,t,n){"use strict";(function(t){var r=n(229);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=E;var c,d=r.nextTick;E.WritableState=S;var f=Object.create(n(190));f.inherits=n(35);var l={deprecate:n(738)},h=n(512),m=n(37).Buffer,v=t.Uint8Array||function(){};var y,_=n(513);function w(){}function S(e,t){c=c||n(144),e=e||{};var f=t instanceof c;this.objectMode=!!e.objectMode,f&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var l=e.highWaterMark,h=e.writableHighWaterMark,m=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:f&&(h||0===h)?h:m,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var v=!1===e.decodeStrings;this.decodeStrings=!v,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,o=n.sync,c=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,o,c){--t.pendingcb,n?(r.nextTick(c,o),r.nextTick(j,e,t),e._writableState.errorEmitted=!0,e.emit("error",o)):(c(o),e._writableState.errorEmitted=!0,e.emit("error",o),j(e,t))}(e,n,o,t,c);else{var f=A(n);f||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),o?d(I,e,n,f,c):I(e,n,f,c)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function E(e){if(c=c||n(144),!(y.call(E,this)||this instanceof c))return new E(e);this._writableState=new S(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function O(e,t,n,r,o,c,d){t.writelen=r,t.writecb=d,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,c,t.onwrite),t.sync=!1}function I(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),j(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,c=new Array(r),d=t.corkedRequestsFree;d.entry=n;for(var f=0,l=!0;n;)c[f]=n,n.isBuf||(l=!1),n=n.next,f+=1;c.allBuffers=l,O(e,t,!0,t.length,c,"",d.finish),t.pendingcb++,t.lastBufferedRequest=null,d.next?(t.corkedRequestsFree=d.next,d.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var h=n.chunk,m=n.encoding,v=n.callback;if(O(e,t,!1,t.objectMode?1:h.length,h,m,v),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var n=A(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,r.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}f.inherits(E,h),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(object){return!!y.call(this,object)||this===E&&(object&&object._writableState instanceof S)}})):y=function(object){return object instanceof this},E.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},E.prototype.write=function(e,t,n){var o,c=this._writableState,d=!1,f=!c.objectMode&&(o=e,m.isBuffer(o)||o instanceof v);return f&&!m.isBuffer(e)&&(e=function(e){return m.from(e)}(e)),"function"==typeof t&&(n=t,t=null),f?t="buffer":t||(t=c.defaultEncoding),"function"!=typeof n&&(n=w),c.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),r.nextTick(t,n)}(this,n):(f||function(e,t,n,o){var c=!0,d=!1;return null===n?d=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(d=new TypeError("Invalid non-string/buffer chunk")),d&&(e.emit("error",d),r.nextTick(o,d),c=!1),c}(this,c,e,n))&&(c.pendingcb++,d=function(e,t,n,r,o,c){if(!n){var d=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=m.from(t,n));return t}(t,r,o);r!==d&&(n=!0,o="buffer",r=d)}var f=t.objectMode?1:r.length;t.length+=f;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var h=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:c,next:null},h?h.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else O(e,t,!1,f,r,o,c);return l}(this,c,f,e,t,n)),d},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var o=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||o.finished||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,o,n)},Object.defineProperty(E.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=_.destroy,E.prototype._undestroy=_.undestroy,E.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(88))},function(e,t,n){"use strict";var r=n(739).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function c(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=h,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=m,this.end=v,t=3;break;default:return this.write=y,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function d(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function f(e){var p=this.lastTotal-this.lastNeed,t=function(e,t,p){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==t?t:this.lastNeed<=e.length?(e.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,p,0,e.length),void(this.lastNeed-=e.length))}function l(e,i){if((e.length-i)%2==0){var t=e.toString("utf16le",i);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",i,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function m(e,i){var t=(e.length-i)%3;return 0===t?e.toString("base64",i):(this.lastNeed=3-t,this.lastTotal=3,1===t?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",i,e.length-t))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}t.StringDecoder=c,c.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<e.length?t?t+this.text(e,i):this.text(e,i):t||""},c.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},c.prototype.text=function(e,i){var t=function(e,t,i){var n=t.length-1;if(n<i)return 0;var r=d(t[n]);if(r>=0)return r>0&&(e.lastNeed=r-1),r;if(--n<i||-2===r)return 0;if((r=d(t[n]))>=0)return r>0&&(e.lastNeed=r-2),r;if(--n<i||-2===r)return 0;if((r=d(t[n]))>=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,i);if(!this.lastNeed)return e.toString("utf8",i);this.lastTotal=t;var n=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",i,n)},c.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(28).Buffer,o=n(35),c=n(510),d=new Array(16),f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],v=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function y(){c.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function _(e,t){return e<<t|e>>>32-t}function w(a,b,e,t,n,r,o,s){return _(a+(b^e^t)+r+o|0,s)+n|0}function S(a,b,e,t,n,r,o,s){return _(a+(b&e|~b&t)+r+o|0,s)+n|0}function E(a,b,e,t,n,r,o,s){return _(a+((b|~e)^t)+r+o|0,s)+n|0}function O(a,b,e,t,n,r,o,s){return _(a+(b&t|e&~t)+r+o|0,s)+n|0}function I(a,b,e,t,n,r,o,s){return _(a+(b^(e|~t))+r+o|0,s)+n|0}o(y,c),y.prototype._update=function(){for(var e=d,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,o=0|this._c,dl=0|this._d,c=0|this._e,y=0|this._a,br=0|this._b,x=0|this._c,A=0|this._d,C=0|this._e,i=0;i<80;i+=1){var j,tr;i<16?(j=w(n,r,o,dl,c,e[f[i]],v[0],h[i]),tr=I(y,br,x,A,C,e[l[i]],hr[0],m[i])):i<32?(j=S(n,r,o,dl,c,e[f[i]],v[1],h[i]),tr=O(y,br,x,A,C,e[l[i]],hr[1],m[i])):i<48?(j=E(n,r,o,dl,c,e[f[i]],v[2],h[i]),tr=E(y,br,x,A,C,e[l[i]],hr[2],m[i])):i<64?(j=O(n,r,o,dl,c,e[f[i]],v[3],h[i]),tr=S(y,br,x,A,C,e[l[i]],hr[3],m[i])):(j=I(n,r,o,dl,c,e[f[i]],v[4],h[i]),tr=w(y,br,x,A,C,e[l[i]],hr[4],m[i])),n=c,c=dl,dl=_(o,10),o=r,r=j,y=C,C=A,A=_(x,10),x=br,br=tr}var k=this._b+o+A|0;this._b=this._c+dl+C|0,this._c=this._d+c+y|0,this._d=this._e+n+br|0,this._e=this._a+r+x|0,this._a=k},y.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=y},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(745),t.sha1=n(746),t.sha224=n(747),t.sha256=n(515),t.sha384=n(748),t.sha512=n(516)},function(e,t,n){"use strict";var r=n(96);function o(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=o,o.prototype._init=function(){},o.prototype.update=function(data){return 0===data.length?[]:"decrypt"===this.type?this._updateDecrypt(data):this._updateEncrypt(data)},o.prototype._buffer=function(data,e){for(var t=Math.min(this.buffer.length-this.bufferOff,data.length-e),i=0;i<t;i++)this.buffer[this.bufferOff+i]=data[e+i];return this.bufferOff+=t,t},o.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(data){var e=0,t=0,n=(this.bufferOff+data.length)/this.blockSize|0,r=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(data,e),this.bufferOff===this.buffer.length&&(t+=this._flushBuffer(r,t)));for(var o=data.length-(data.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(data,e,r,t),t+=this.blockSize;for(;e<data.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=data[e];return r},o.prototype._updateDecrypt=function(data){for(var e=0,t=0,n=Math.ceil((this.bufferOff+data.length)/this.blockSize)-1,r=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(data,e),t+=this._flushBuffer(r,t);return e+=this._buffer(data,e),r},o.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},o.prototype._unpad=function(e){return e},o.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,n){var r=n(757),o=n(765),c=n(528);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=o.createDecipher,t.createDecipheriv=t.Decipheriv=o.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(c)}},function(e,t,n){var r={ECB:n(758),CBC:n(759),CFB:n(760),CFB8:n(761),CFB1:n(762),OFB:n(763),CTR:n(526),GCM:n(526)},o=n(528);for(var c in o)o[c].module=r[o[c].mode];e.exports=o},function(e,t,n){var r;function o(e){this.rand=e}if(e.exports=function(e){return r||(r=new o(null)),r.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var c=n(769);if("function"!=typeof c.randomBytes)throw new Error("Not supported");o.prototype._rand=function(e){return c.randomBytes(e)}}catch(e){}},function(e,t,n){(function(t){var r=n(61),o=n(155);function c(e,n){var o=function(e){var t=d(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),c=n.modulus.byteLength(),f=(r.mont(n.modulus),new r(e).mul(o.blinder).umod(n.modulus)),l=f.toRed(r.mont(n.prime1)),h=f.toRed(r.mont(n.prime2)),m=n.coefficient,p=n.prime1,q=n.prime2,v=l.redPow(n.exponent1),y=h.redPow(n.exponent2);v=v.fromRed(),y=y.fromRed();var _=v.isub(y).imul(m).umod(p);return _.imul(q),y.iadd(_),new t(y.imul(o.unblinder).umod(n.modulus).toArray(!1,c))}function d(e){for(var t=e.modulus.byteLength(),n=new r(o(t));n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new r(o(t));return n}e.exports=c,c.getr=d}).call(this,n(28).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(774).version,r.utils=n(97),r.rand=n(349),r.curve=n(535),r.curves=n(352),r.ec=n(785),r.eddsa=n(789)},function(e,t,n){"use strict";var pre,r=t,o=n(353),c=n(535),d=n(97).assert;function f(e){"short"===e.type?this.curve=new c.short(e):"edwards"===e.type?this.curve=new c.edwards(e):this.curve=new c.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,d(this.g.validate(),"Invalid curve"),d(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new f(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=f,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{pre=n(784)}catch(e){pre=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",pre]})},function(e,t,n){var r=t;r.utils=n(109),r.common=n(192),r.sha=n(778),r.ripemd=n(782),r.hmac=n(783),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NO_RETRY_INCREMENT=t.TIMEOUT_RETRY_COST=t.RETRY_COST=t.INITIAL_RETRY_TOKENS=t.THROTTLING_RETRY_DELAY_BASE=t.MAXIMUM_RETRY_DELAY=t.DEFAULT_RETRY_DELAY_BASE=void 0,t.DEFAULT_RETRY_DELAY_BASE=100,t.MAXIMUM_RETRY_DELAY=2e4,t.THROTTLING_RETRY_DELAY_BASE=500,t.INITIAL_RETRY_TOKENS=500,t.RETRY_COST=5,t.TIMEOUT_RETRY_COST=10,t.NO_RETRY_INCREMENT=1},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.locateWindow=void 0;var n={};t.locateWindow=function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n}},,function(e,t,n){"use strict";n.r(t),n.d(t,"CognitoIdentityClient",(function(){return gt.a})),n.d(t,"CognitoIdentity",(function(){return qt})),n.d(t,"CreateIdentityPoolCommand",(function(){return wt})),n.d(t,"DeleteIdentitiesCommand",(function(){return St})),n.d(t,"DeleteIdentityPoolCommand",(function(){return Et})),n.d(t,"DescribeIdentityCommand",(function(){return Ot})),n.d(t,"DescribeIdentityPoolCommand",(function(){return It})),n.d(t,"GetCredentialsForIdentityCommand",(function(){return xt})),n.d(t,"GetIdCommand",(function(){return At.a})),n.d(t,"GetIdentityPoolRolesCommand",(function(){return Ct})),n.d(t,"GetOpenIdTokenCommand",(function(){return jt})),n.d(t,"GetOpenIdTokenForDeveloperIdentityCommand",(function(){return kt})),n.d(t,"ListIdentitiesCommand",(function(){return Mt})),n.d(t,"ListIdentityPoolsCommand",(function(){return Tt})),n.d(t,"ListTagsForResourceCommand",(function(){return Pt})),n.d(t,"LookupDeveloperIdentityCommand",(function(){return $t})),n.d(t,"MergeDeveloperIdentitiesCommand",(function(){return Rt})),n.d(t,"SetIdentityPoolRolesCommand",(function(){return Dt})),n.d(t,"TagResourceCommand",(function(){return Nt})),n.d(t,"UnlinkDeveloperIdentityCommand",(function(){return Ut})),n.d(t,"UnlinkIdentityCommand",(function(){return Bt})),n.d(t,"UntagResourceCommand",(function(){return Lt})),n.d(t,"UpdateIdentityPoolCommand",(function(){return zt})),n.d(t,"AmbiguousRoleResolutionType",(function(){return r})),n.d(t,"CognitoIdentityProvider",(function(){return o})),n.d(t,"ConcurrentModificationException",(function(){return d})),n.d(t,"CreateIdentityPoolInput",(function(){return l})),n.d(t,"Credentials",(function(){return m})),n.d(t,"DeleteIdentitiesInput",(function(){return y})),n.d(t,"DeleteIdentitiesResponse",(function(){return w})),n.d(t,"DeleteIdentityPoolInput",(function(){return E})),n.d(t,"DescribeIdentityInput",(function(){return I})),n.d(t,"DescribeIdentityPoolInput",(function(){return A})),n.d(t,"DeveloperUserAlreadyRegisteredException",(function(){return j})),n.d(t,"ErrorCode",(function(){return M})),n.d(t,"ExternalServiceException",(function(){return T})),n.d(t,"GetCredentialsForIdentityInput",(function(){return $})),n.d(t,"GetCredentialsForIdentityResponse",(function(){return D})),n.d(t,"GetIdentityPoolRolesInput",(function(){return U})),n.d(t,"GetIdentityPoolRolesResponse",(function(){return L})),n.d(t,"GetIdInput",(function(){return F})),n.d(t,"GetIdResponse",(function(){return V})),n.d(t,"GetOpenIdTokenForDeveloperIdentityInput",(function(){return K})),n.d(t,"GetOpenIdTokenForDeveloperIdentityResponse",(function(){return G})),n.d(t,"GetOpenIdTokenInput",(function(){return X})),n.d(t,"GetOpenIdTokenResponse",(function(){return Q})),n.d(t,"IdentityDescription",(function(){return te})),n.d(t,"IdentityPool",(function(){return re})),n.d(t,"IdentityPoolShortDescription",(function(){return oe})),n.d(t,"InternalErrorException",(function(){return se})),n.d(t,"InvalidIdentityPoolConfigurationException",(function(){return ue})),n.d(t,"InvalidParameterException",(function(){return fe})),n.d(t,"LimitExceededException",(function(){return he})),n.d(t,"ListIdentitiesInput",(function(){return ge})),n.d(t,"ListIdentitiesResponse",(function(){return be})),n.d(t,"ListIdentityPoolsInput",(function(){return ye})),n.d(t,"ListIdentityPoolsResponse",(function(){return we})),n.d(t,"ListTagsForResourceInput",(function(){return Ee})),n.d(t,"ListTagsForResourceResponse",(function(){return Ie})),n.d(t,"LookupDeveloperIdentityInput",(function(){return Ae})),n.d(t,"LookupDeveloperIdentityResponse",(function(){return je})),n.d(t,"MappingRule",(function(){return Me})),n.d(t,"MappingRuleMatchType",(function(){return Pe})),n.d(t,"MergeDeveloperIdentitiesInput",(function(){return $e})),n.d(t,"MergeDeveloperIdentitiesResponse",(function(){return De})),n.d(t,"NotAuthorizedException",(function(){return Ue})),n.d(t,"ResourceConflictException",(function(){return Le})),n.d(t,"ResourceNotFoundException",(function(){return qe})),n.d(t,"RoleMapping",(function(){return He})),n.d(t,"RoleMappingType",(function(){return We})),n.d(t,"RulesConfigurationType",(function(){return Ke})),n.d(t,"SetIdentityPoolRolesInput",(function(){return Ge})),n.d(t,"TagResourceInput",(function(){return Xe})),n.d(t,"TagResourceResponse",(function(){return Qe})),n.d(t,"TooManyRequestsException",(function(){return tt})),n.d(t,"UnlinkDeveloperIdentityInput",(function(){return it})),n.d(t,"UnlinkIdentityInput",(function(){return at})),n.d(t,"UnprocessedIdentityId",(function(){return ct})),n.d(t,"UntagResourceInput",(function(){return ft})),n.d(t,"UntagResourceResponse",(function(){return ht}));var r,o,c,d,f,l,h,m,v,y,_,w,S,E,O,I,x,A,C,j,k,M,T,P,$,R,D,N,U,B,L,z,F,H,V,W,K,Y,G,J,X,Z,Q,ee,te,ne,re,ie,oe,ae,se,ce,ue,de,fe,le,he,pe,ge,me,be,ve,ye,_e,we,Se,Ee,Oe,Ie,xe,Ae,Ce,je,ke,Me,Te,Pe,$e,Re,De,Ne,Ue,Be,Le,ze,qe,Fe,He,Ve,We,Ke,Ye,Ge,Je,Xe,Ze,Qe,et,tt,nt,it,ot,at,st,ct,ut,ft,lt,ht,pt,gt=n(265),mt=n(0),bt=n(21),vt=n(29),yt=n(34),_t=n(3),wt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.v)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.a)(output,e)},t}(_t.Command),St=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.w)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.b)(output,e)},t}(_t.Command),Et=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.x)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.c)(output,e)},t}(_t.Command),Ot=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.y)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.d)(output,e)},t}(_t.Command),It=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.z)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.e)(output,e)},t}(_t.Command),xt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.A)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.f)(output,e)},t}(_t.Command),At=n(260),Ct=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.C)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.h)(output,e)},t}(_t.Command),jt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.D)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.i)(output,e)},t}(_t.Command),kt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.E)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.j)(output,e)},t}(_t.Command),Mt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.F)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.k)(output,e)},t}(_t.Command),Tt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.G)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.l)(output,e)},t}(_t.Command),Pt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.H)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.m)(output,e)},t}(_t.Command),$t=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.I)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.n)(output,e)},t}(_t.Command),Rt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.J)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.o)(output,e)},t}(_t.Command),Dt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.K)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.p)(output,e)},t}(_t.Command),Nt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.L)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.q)(output,e)},t}(_t.Command),Ut=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.M)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.r)(output,e)},t}(_t.Command),Bt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.N)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.s)(output,e)},t}(_t.Command),Lt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.O)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.t)(output,e)},t}(_t.Command),zt=function(e){function t(input){var t=e.call(this)||this;return t.input=input,t}return Object(mt.__extends)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(vt.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Object(yt.getAwsAuthPlugin)(t));var r=e.concat(this.middlewareStack),o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),{logger:{}})},t.prototype.serialize=function(input,e){return Object(bt.P)(input,e)},t.prototype.deserialize=function(output,e){return Object(bt.u)(output,e)},t}(_t.Command),qt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(mt.__extends)(t,e),t.prototype.createIdentityPool=function(e,t,n){var r=new wt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteIdentities=function(e,t,n){var r=new St(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.deleteIdentityPool=function(e,t,n){var r=new Et(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeIdentity=function(e,t,n){var r=new Ot(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.describeIdentityPool=function(e,t,n){var r=new It(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getCredentialsForIdentity=function(e,t,n){var r=new xt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getId=function(e,t,n){var r=new At.a(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getIdentityPoolRoles=function(e,t,n){var r=new Ct(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getOpenIdToken=function(e,t,n){var r=new jt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.getOpenIdTokenForDeveloperIdentity=function(e,t,n){var r=new kt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listIdentities=function(e,t,n){var r=new Mt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listIdentityPools=function(e,t,n){var r=new Tt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.listTagsForResource=function(e,t,n){var r=new Pt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.lookupDeveloperIdentity=function(e,t,n){var r=new $t(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.mergeDeveloperIdentities=function(e,t,n){var r=new Rt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.setIdentityPoolRoles=function(e,t,n){var r=new Dt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.tagResource=function(e,t,n){var r=new Nt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.unlinkDeveloperIdentity=function(e,t,n){var r=new Ut(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.unlinkIdentity=function(e,t,n){var r=new Bt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.untagResource=function(e,t,n){var r=new Lt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t.prototype.updateIdentityPool=function(e,t,n){var r=new zt(e);if("function"==typeof t)this.send(r,t);else{if("function"!=typeof n)return this.send(r,t);if("object"!=typeof t)throw new Error("Expect http options but get "+typeof t);this.send(r,t||{},n)}},t}(gt.a);!function(e){e.AUTHENTICATED_ROLE="AuthenticatedRole",e.DENY="Deny"}(r||(r={})),(c=o||(o={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},c.isa=function(e){return Object(_t.isa)(e,"CognitoIdentityProvider")},(f=d||(d={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},f.isa=function(e){return Object(_t.isa)(e,"ConcurrentModificationException")},(h=l||(l={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},h.isa=function(e){return Object(_t.isa)(e,"CreateIdentityPoolInput")},(v=m||(m={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},v.isa=function(e){return Object(_t.isa)(e,"Credentials")},(_=y||(y={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},_.isa=function(e){return Object(_t.isa)(e,"DeleteIdentitiesInput")},(S=w||(w={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},S.isa=function(e){return Object(_t.isa)(e,"DeleteIdentitiesResponse")},(O=E||(E={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},O.isa=function(e){return Object(_t.isa)(e,"DeleteIdentityPoolInput")},(x=I||(I={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},x.isa=function(e){return Object(_t.isa)(e,"DescribeIdentityInput")},(C=A||(A={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},C.isa=function(e){return Object(_t.isa)(e,"DescribeIdentityPoolInput")},(k=j||(j={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},k.isa=function(e){return Object(_t.isa)(e,"DeveloperUserAlreadyRegisteredException")},function(e){e.ACCESS_DENIED="AccessDenied",e.INTERNAL_SERVER_ERROR="InternalServerError"}(M||(M={})),(P=T||(T={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},P.isa=function(e){return Object(_t.isa)(e,"ExternalServiceException")},(R=$||($={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},R.isa=function(e){return Object(_t.isa)(e,"GetCredentialsForIdentityInput")},(N=D||(D={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},N.isa=function(e){return Object(_t.isa)(e,"GetCredentialsForIdentityResponse")},(B=U||(U={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},B.isa=function(e){return Object(_t.isa)(e,"GetIdentityPoolRolesInput")},(z=L||(L={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},z.isa=function(e){return Object(_t.isa)(e,"GetIdentityPoolRolesResponse")},(H=F||(F={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},H.isa=function(e){return Object(_t.isa)(e,"GetIdInput")},(W=V||(V={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},W.isa=function(e){return Object(_t.isa)(e,"GetIdResponse")},(Y=K||(K={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Y.isa=function(e){return Object(_t.isa)(e,"GetOpenIdTokenForDeveloperIdentityInput")},(J=G||(G={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},J.isa=function(e){return Object(_t.isa)(e,"GetOpenIdTokenForDeveloperIdentityResponse")},(Z=X||(X={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Z.isa=function(e){return Object(_t.isa)(e,"GetOpenIdTokenInput")},(ee=Q||(Q={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},ee.isa=function(e){return Object(_t.isa)(e,"GetOpenIdTokenResponse")},(ne=te||(te={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},ne.isa=function(e){return Object(_t.isa)(e,"IdentityDescription")},(ie=re||(re={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},ie.isa=function(e){return Object(_t.isa)(e,"IdentityPool")},(ae=oe||(oe={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},ae.isa=function(e){return Object(_t.isa)(e,"IdentityPoolShortDescription")},(ce=se||(se={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},ce.isa=function(e){return Object(_t.isa)(e,"InternalErrorException")},(de=ue||(ue={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},de.isa=function(e){return Object(_t.isa)(e,"InvalidIdentityPoolConfigurationException")},(le=fe||(fe={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},le.isa=function(e){return Object(_t.isa)(e,"InvalidParameterException")},(pe=he||(he={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},pe.isa=function(e){return Object(_t.isa)(e,"LimitExceededException")},(me=ge||(ge={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},me.isa=function(e){return Object(_t.isa)(e,"ListIdentitiesInput")},(ve=be||(be={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},ve.isa=function(e){return Object(_t.isa)(e,"ListIdentitiesResponse")},(_e=ye||(ye={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},_e.isa=function(e){return Object(_t.isa)(e,"ListIdentityPoolsInput")},(Se=we||(we={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Se.isa=function(e){return Object(_t.isa)(e,"ListIdentityPoolsResponse")},(Oe=Ee||(Ee={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Oe.isa=function(e){return Object(_t.isa)(e,"ListTagsForResourceInput")},(xe=Ie||(Ie={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},xe.isa=function(e){return Object(_t.isa)(e,"ListTagsForResourceResponse")},(Ce=Ae||(Ae={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Ce.isa=function(e){return Object(_t.isa)(e,"LookupDeveloperIdentityInput")},(ke=je||(je={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},ke.isa=function(e){return Object(_t.isa)(e,"LookupDeveloperIdentityResponse")},(Te=Me||(Me={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Te.isa=function(e){return Object(_t.isa)(e,"MappingRule")},function(e){e.CONTAINS="Contains",e.EQUALS="Equals",e.NOT_EQUAL="NotEqual",e.STARTS_WITH="StartsWith"}(Pe||(Pe={})),(Re=$e||($e={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Re.isa=function(e){return Object(_t.isa)(e,"MergeDeveloperIdentitiesInput")},(Ne=De||(De={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Ne.isa=function(e){return Object(_t.isa)(e,"MergeDeveloperIdentitiesResponse")},(Be=Ue||(Ue={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Be.isa=function(e){return Object(_t.isa)(e,"NotAuthorizedException")},(ze=Le||(Le={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},ze.isa=function(e){return Object(_t.isa)(e,"ResourceConflictException")},(Fe=qe||(qe={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Fe.isa=function(e){return Object(_t.isa)(e,"ResourceNotFoundException")},(Ve=He||(He={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Ve.isa=function(e){return Object(_t.isa)(e,"RoleMapping")},function(e){e.RULES="Rules",e.TOKEN="Token"}(We||(We={})),(Ye=Ke||(Ke={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Ye.isa=function(e){return Object(_t.isa)(e,"RulesConfigurationType")},(Je=Ge||(Ge={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Je.isa=function(e){return Object(_t.isa)(e,"SetIdentityPoolRolesInput")},(Ze=Xe||(Xe={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},Ze.isa=function(e){return Object(_t.isa)(e,"TagResourceInput")},(et=Qe||(Qe={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},et.isa=function(e){return Object(_t.isa)(e,"TagResourceResponse")},(nt=tt||(tt={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},nt.isa=function(e){return Object(_t.isa)(e,"TooManyRequestsException")},(ot=it||(it={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},ot.isa=function(e){return Object(_t.isa)(e,"UnlinkDeveloperIdentityInput")},(st=at||(at={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},st.isa=function(e){return Object(_t.isa)(e,"UnlinkIdentityInput")},(ut=ct||(ct={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},ut.isa=function(e){return Object(_t.isa)(e,"UnprocessedIdentityId")},(lt=ft||(ft={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},lt.isa=function(e){return Object(_t.isa)(e,"UntagResourceInput")},(pt=ht||(ht={})).filterSensitiveLog=function(e){return Object(mt.__assign)({},e)},pt.isa=function(e){return Object(_t.isa)(e,"UntagResourceResponse")}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(50),o=n(100),c={tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},d=r.a.extend({name:"BContainer",functional:!0,props:c,render:function(e,t){var n=t.props,data=t.data,r=t.children;return e(n.tag,Object(o.a)(data,{class:{container:!n.fluid,"container-fluid":n.fluid}}),r)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(50),o=n(100),c={tag:{type:String,default:"div"}},d=r.a.extend({name:"BFormRow",functional:!0,props:c,render:function(e,t){var n=t.props,data=t.data,r=t.children;return e(n.tag,Object(o.a)(data,{staticClass:"form-row"}),r)}})},,function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));n(25),n(22),n(15),n(8),n(16),n(80);var r=n(2),o=(n(206),n(100)),c=n(203),d=n(587),f=function(e,t){return t+(e?Object(d.a)(e):"")},l=n(44),h=n(36),object=n(30),m=n(118);function v(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var y=function(){return{type:[String,Number],default:null}},_=Object(c.a)((function(e,t,n){var r=e;if(!Object(h.g)(n)&&!Object(h.e)(n)&&!1!==n)return t&&(r+="-".concat(t)),"col"!==e||""!==n&&!0!==n?(r+="-".concat(n)).toLowerCase():r.toLowerCase()})),w=Object(object.b)(null),S=function(){var e=Object(m.a)().filter(Boolean),t=e.reduce((function(e,t){return t&&(e[t]={type:[Boolean,String,Number],default:!1}),e}),Object(object.b)(null)),n=e.reduce((function(e,t){return e[f(t,"offset")]=y(),e}),Object(object.b)(null)),o=e.reduce((function(e,t){return e[f(t,"order")]=y(),e}),Object(object.b)(null));return w=Object(object.a)(Object(object.b)(null),{col:Object(object.h)(t),offset:Object(object.h)(n),order:Object(object.h)(o)}),function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(source,!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):v(source).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({col:{type:Boolean,default:!1},cols:y()},t,{offset:y()},n,{order:y()},o,{alignSelf:{type:String,default:null,validator:function(e){return Object(l.a)(["auto","start","end","center","baseline","stretch"],e)}},tag:{type:String,default:"div"}})},E={name:"BCol",functional:!0,get props(){return delete this.props,this.props=S()},render:function(e,t){var n,c=t.props,data=t.data,d=t.children,f=[];for(var l in w)for(var h=w[l],i=0;i<h.length;i++){var m=_(l,h[i].replace(l,""),c[h[i]]);m&&f.push(m)}var v=f.some((function(e){return/^col-/.test(e)}));return f.push((n={col:c.col||!v&&!c.cols},Object(r.a)(n,"col-".concat(c.cols),c.cols),Object(r.a)(n,"offset-".concat(c.offset),c.offset),Object(r.a)(n,"order-".concat(c.order),c.order),Object(r.a)(n,"align-self-".concat(c.alignSelf),c.alignSelf),n)),e(c.tag,Object(o.a)(data,{class:f}),d)}}},,function(e,t,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),d=c.default;void 0===d&&(d=[]);var f=c.placeholder;return n._isMounted?d:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?e(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||f):d.length>0?d.map((function(){return e(!1)})):e(!1))}};e.exports=r},,function(e){e.exports=JSON.parse('{"a":"@aws-sdk/client-cognito-identity","b":"1.0.0-gamma.4"}')},function(e){e.exports=JSON.parse('{"a":"@aws-sdk/client-pinpoint","b":"1.0.0-gamma.4"}')},function(e,t,n){"use strict";n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return _}));n(25),n(22),n(15),n(8),n(16);var r=n(24),o=n(2),c=n(50),d=n(299),f=n(44),l=n(36),h=n(205);function m(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function v(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?m(source,!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):m(source).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var y=function(){return{href:{type:String,default:null},rel:{type:String,default:null},target:{type:String,default:"_self"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{type:[String,Object],default:null},append:{type:Boolean,default:!1},replace:{type:Boolean,default:!1},event:{type:[String,Array],default:"click"},activeClass:{type:String},exact:{type:Boolean,default:!1},exactActiveClass:{type:String},routerTag:{type:String,default:"a"},noPrefetch:{type:Boolean,default:!1}}},_=(y(),c.a.extend({name:"BLink",mixins:[d.a],inheritAttrs:!1,props:y(),computed:{computedTag:function(){return Object(h.c)({to:this.to,disabled:this.disabled},this)},isRouterLink:function(){return Object(h.d)(this.computedTag)},computedRel:function(){return Object(h.b)({target:this.target,rel:this.rel})},computedHref:function(){return Object(h.a)({to:this.to,href:this.href},this.computedTag)},computedProps:function(){return this.isRouterLink?v({},this.$props,{tag:this.routerTag}):{}}},methods:{onClick:function(e){var t=arguments,n=Object(l.c)(e),o=this.isRouterLink,c=this.$listeners.click;n&&this.disabled?(e.stopPropagation(),e.stopImmediatePropagation()):(o&&e.currentTarget.__vue__&&e.currentTarget.__vue__.$emit("click",e),Object(f.b)(c).filter((function(e){return Object(l.d)(e)})).forEach((function(e){e.apply(void 0,Object(r.a)(t))})),this.$root.$emit("clicked::link",e)),n&&(this.disabled||!o&&"#"===this.computedHref)&&e.preventDefault()},focus:function(){this.$el&&this.$el.focus&&this.$el.focus()},blur:function(){this.$el&&this.$el.blur&&this.$el.blur()}},render:function(e){var t=this.computedTag,n=this.computedRel,r=this.computedHref,o=this.isRouterLink,c=v({},this.$listeners,{click:this.onClick}),d={class:{active:this.active,disabled:this.disabled},attrs:v({},this.$attrs,{rel:n,target:this.target,tabindex:this.disabled?"-1":Object(l.g)(this.$attrs.tabindex)?null:this.$attrs.tabindex,"aria-disabled":this.disabled?"true":null}),props:this.computedProps,on:o?{}:c,nativeOn:o?c:{}};return r?d.attrs.href=r:delete d.props.href,e(t,d,this.normalizeSlot("default"))}}))},,function(e,t,n){"use strict";function r(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(n.e(57).then(n.t.bind(null,1895,7)));"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var u=new URL("b","http://a");return u.pathname="c%20d","http://a/c%20d"===u.href&&u.searchParams}catch(e){return!1}}()&&"undefined"!=typeof WeakMap||e.push(n.e(56).then(n.t.bind(null,1896,7)))}return Promise.all(e)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var o=n(175);const c=(e,t)=>"undefined"==typeof window?Promise.resolve():(()=>Object(o.g)())().then(()=>Object(o.c)([["aegon-otp-custom-widget",[[0,"aegon-otp-custom-widget",{error:[1],showLoader:[4,"show-loader"],label:[1],submitOtp:[8,"submit-otp"],resendOtp:[8,"resend-otp"],time:[8],maskedMobileNo:[1,"masked-mobile-no"],isDisabled:[4,"is-disabled"],screenMode:[1,"screen-mode"],otpWidgetTitle:[1,"otp-widget-title"],OtpLength:[2,"otp-length"],otpMessage:[1,"otp-message"],otp:[32],validationError:[32],showResendOTP:[32],userBlocked:[32]},[[0,"otpComplete","onOtpComplete"],[0,"timedOut","onTimerTimeout"]]]]],["aegon-track-my-policy",[[0,"aegon-track-my-policy",{data:[8],header:[8],active:[4],enableUpload:[4,"enable-upload"],policyNotIssued:[4,"policy-not-issued"],toggleFeature:[16],tasks:[32],currentTask:[32],expand:[32]}]]],["aegon-age-widget2",[[0,"aegon-age-widget2",{dateCallback:[520,"date-callback"],minAge:[2,"min-age"],maxAge:[2,"max-age"],ageValue:[2,"age-value"],showYears:[32],showMonths:[32],showDate:[32],selectedYear:[32],selectedMonth:[32],daysInMonth:[32],title:[32]}]]],["aegon-button-loader",[[0,"aegon-button-loader"]]],["aegon-copy",[[4,"aegon-copy",{content:[1],persist:[4],tooltipContent:[1,"tooltip-content"],showIcon:[32],showTooltip:[32]}]]],["aegon-date-picker",[[0,"aegon-date-picker",{name:[1],identifier:[1],disabled:[516],role:[1],direction:[1],required:[4],dateLength:[2,"date-length"],separator:[1],value:[1537],min:[1537],max:[1537],firstDayOfWeek:[2,"first-day-of-week"],localization:[16],placeHolder:[1,"place-holder"],dateAdapter:[16],isDateDisabled:[16],activeFocus:[32],focusedDay:[32],open:[32],setFocus:[64],show:[64],hide:[64]},[[6,"click","handleDocumentClick"]]]]],["aegon-date-widget",[[0,"aegon-date-widget",{dateCallback:[520,"date-callback"],yearRange:[2,"year-range"],minDate:[1,"min-date"],showYears:[32],showMonths:[32],showDate:[32],selectedYear:[32],selectedMonth:[32],daysInMonth:[32],title:[32],minYear:[32],maxYear:[32],minSelectedDate:[32],minSelectedMonth:[32]}]]],["aegon-date-widget-v1",[[0,"aegon-date-widget-v1",{dateCallback:[520,"date-callback"],minDate:[1,"min-date"],maxDate:[1,"max-date"],showYears:[32],showMonths:[32],showDate:[32],selectedYear:[32],selectedMonth:[32],daysInMonth:[32],title:[32],minYear:[32],maxYear:[32],minSelectedDate:[32],maxSelectedDate:[32],minSelectedMonth:[32],maxSelectedMonth:[32]}]]],["aegon-dialog",[[4,"aegon-dialog",{confirmAction:[8,"confirm-action"],cancelAction:[8,"cancel-action"],dialogTitle:[1,"dialog-title"],resolveLabel:[1,"resolve-label"],rejectLabel:[1,"reject-label"]}]]],["aegon-document-upload",[[4,"aegon-document-upload",{apiConfig:[16],apiRequestMetaData:[16],mergeRequestMetaData:[16],multiple:[4],mergeMultiple:[4,"merge-multiple"],maxDocumentsToMerge:[2,"max-documents-to-merge"],accept:[1],uploadToggler:[4,"upload-toggler"],uploadOnSelect:[4,"upload-on-select"],hasDragDrop:[4,"has-drag-drop"],disabled:[4],selectedFiles:[1040],uploadedFilesMap:[1040],uploadedProgressMap:[1040],uploadProgressCallback:[16],cancelUploadCallback:[16],maxFileSize:[2,"max-file-size"],toCancelUpload:[4,"to-cancel-upload"],uploadDelayTime:[2,"upload-delay-time"],mergeDelayTime:[2,"merge-delay-time"],apiRequest:[32],dragDropFocus:[32],mergeRequest:[32],fileError:[32]}]]],["aegon-progress",[[0,"aegon-progress",{progressAmount:[1,"progress-amount"],textSuffix:[1,"text-suffix"],huaAdj:[2,"hua-adj"],customHuaAdj:[16],darkness:[2],multipleColor:[4,"multiple-color"],borderWidth:[1,"border-width"],height:[1],width:[1],isCircle:[4,"is-circle"],bgColor:[1537,"bg-color"]}]]],["aegon-rupee-textbox",[[0,"aegon-rupee-textbox",{commaSeparatedValue:[1,"comma-separated-value"],validationMessage:[1,"validation-message"],labelText:[1,"label-text"],indexTab:[2,"index-tab"],required:[4],isError:[32],stateCommaSeparatedValue:[32]}]]],["aegon-tooltip",[[4,"aegon-tooltip",{content:[1],direction:[1],hideDelay:[2,"hide-delay"],autoHide:[4,"auto-hide"],active:[32]},[[4,"proceedAction","onProceed"]]]]],["aegon-typeahead-dropdown",[[0,"aegon-typeahead-dropdown",{validationMessage:[1,"validation-message"],outofRangeMessage:[1,"outof-range-message"],dataSource:[8,"data-source"],dataSourceId:[1,"data-source-id"],name:[1],placeHolder:[1,"place-holder"],required:[4],selectedOption:[1,"selected-option"],isDisabled:[4,"is-disabled"],indexTab:[1,"index-tab"],optionKey:[1,"option-key"],optionValue:[1,"option-value"],helpText:[1,"help-text"],showOptions:[32],backupDataSource:[32],isError:[32]}]]],["aegon-age-widget_7",[[0,"aegon-otp-widget",{error:[1],showLoader:[4,"show-loader"],label:[1],submitOtp:[8,"submit-otp"],resendOtp:[8,"resend-otp"],time:[8],maskedMobileNo:[1,"masked-mobile-no"],isDisabled:[4,"is-disabled"],otpMessage:[1,"otp-message"],otp:[32],validationError:[32],showResendOTP:[32],userBlocked:[32]},[[0,"otpComplete","onOtpComplete"],[0,"timedOut","onTimerTimeout"]]],[0,"aegon-comp",{ageValue:[32]}],[4,"aegon-bottomsheet",{open:[1028],active:[4],overlayclick:[8]},[[8,"keydown","handleScroll"]]],[0,"aegon-age-widget",{dateCallback:[520,"date-callback"],minAge:[2,"min-age"],maxAge:[2,"max-age"],ageValue:[2,"age-value"],showYears:[32],showMonths:[32],showDate:[32],selectedYear:[32],selectedMonth:[32],daysInMonth:[32],title:[32],checkSelection:[32]}],[0,"aegon-otp-input",{otpLength:[2,"otp-length"],autoFocusFirst:[4,"auto-focus-first"],clearInput:[4,"clear-input"],otp:[32],isEdited:[32],activeFocusIndex:[32]},[[4,"clearOtp","clearInputHandler"]]],[0,"aegon-timer",{timeLimitInSeconds:[2,"time-limit-in-seconds"],preText:[1,"pre-text"],typeMinuteAndSeconds:[8,"type-minute-and-seconds"],remainingTimeInSeconds:[32]}],[4,"aegon-button",{submitHandler:[16],type:[1],isLoading:[4,"is-loading"],label:[1],size:[1],disabled:[4],fadeOut:[4,"fade-out"]}]]]],t));!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)},HTMLElement.prototype=a.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,a)}}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(186),o=36e5;e.exports=function(e,t){var n=Number(t);return r(e,n*o)}},function(e,t,n){var r=n(141),o=n(476);e.exports=function(e,t){var n=Number(t);return o(e,r(e)+n)}},function(e,t,n){var r=n(10),o=n(187),c=n(226);e.exports=function(e,t){var n=r(e),d=Number(t),f=c(n,o(n)),l=new Date(0);return l.setFullYear(d,0,4),l.setHours(0,0,0,0),(n=o(l)).setDate(n.getDate()+f),n}},function(e,t,n){var r=n(186),o=6e4;e.exports=function(e,t){var n=Number(t);return r(e,n*o)}},function(e,t,n){var r=n(227);e.exports=function(e,t){var n=Number(t);return r(e,3*n)}},function(e,t,n){var r=n(186);e.exports=function(e,t){var n=Number(t);return r(e,1e3*n)}},function(e,t,n){var r=n(227);e.exports=function(e,t){var n=Number(t);return r(e,12*n)}},function(e,t,n){var r=n(141);e.exports=function(e,t){return r(e)-r(t)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=r(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e);return Math.floor(t.getMonth()/3)+1}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=r(t);return n.getFullYear()-o.getFullYear()}},function(e,t,n){var r=n(10),o=n(226),c=n(188);e.exports=function(e,t){var n=r(e),d=r(t),f=c(n,d),l=Math.abs(o(n,d));return n.setDate(n.getDate()-f*l),f*(l-(c(n,d)===-f))}},function(e,t,n){var r=n(475);e.exports=function(e,t){var n=Number(t);return r(e,-n)}},function(e,t,n){var r=n(331),o=n(10),c=n(333),d=n(332),f=n(334),l=1440,h=2520,m=43200,v=86400;e.exports=function(e,t,n){var y=n||{},_=r(e,t),w=y.locale,S=f.distanceInWords.localize;w&&w.distanceInWords&&w.distanceInWords.localize&&(S=w.distanceInWords.localize);var E,O,I={addSuffix:Boolean(y.addSuffix),comparison:_};_>0?(E=o(e),O=o(t)):(E=o(t),O=o(e));var x,A=c(O,E),C=O.getTimezoneOffset()-E.getTimezoneOffset(),j=Math.round(A/60)-C;if(j<2)return y.includeSeconds?A<5?S("lessThanXSeconds",5,I):A<10?S("lessThanXSeconds",10,I):A<20?S("lessThanXSeconds",20,I):A<40?S("halfAMinute",null,I):S(A<60?"lessThanXMinutes":"xMinutes",1,I):0===j?S("lessThanXMinutes",1,I):S("xMinutes",j,I);if(j<45)return S("xMinutes",j,I);if(j<90)return S("aboutXHours",1,I);if(j<l)return S("aboutXHours",Math.round(j/60),I);if(j<h)return S("xDays",1,I);if(j<m)return S("xDays",Math.round(j/l),I);if(j<v)return S("aboutXMonths",x=Math.round(j/m),I);if((x=d(O,E))<12)return S("xMonths",Math.round(j/m),I);var k=x%12,M=Math.floor(x/12);return k<3?S("aboutXYears",M,I):k<9?S("overXYears",M,I):S("almostXYears",M+1,I)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=t&&Number(t.weekStartsOn)||0,o=r(e),c=o.getDay(),d=6+(c<n?-7:0)-(c-n);return o.setDate(o.getDate()+d),o.setHours(23,59,59,999),o}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},function(e,t,n){var r=n(10),o=n(491),c=n(226);e.exports=function(e){var t=r(e);return c(t,o(t))+1}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},function(e,t,n){var r=n(328);e.exports=function(e){if(r(e))return!isNaN(e);throw new TypeError(toString.call(e)+" is not an instance of Date")}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e).getFullYear();return t%400==0||t%4==0&&t%100!=0}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e).getDay();return 0===t&&(t=7),t}},function(e,t,n){var r=n(496);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()===o.getTime()}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e);return t.setMinutes(0,0,0),t}},function(e,t,n){var r=n(338);e.exports=function(e,t){return r(e,t,{weekStartsOn:1})}},function(e,t,n){var r=n(187);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()===o.getTime()}},function(e,t,n){var r=n(500);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()===o.getTime()}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e);return t.setSeconds(0,0),t}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=r(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}},function(e,t,n){var r=n(503);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()===o.getTime()}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e),n=t.getMonth(),o=n-n%3;return t.setMonth(o,1),t.setHours(0,0,0,0),t}},function(e,t,n){var r=n(505);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()===o.getTime()}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e);return t.setMilliseconds(0),t}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=r(t);return n.getFullYear()===o.getFullYear()}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=t&&Number(t.weekStartsOn)||0,o=r(e),c=o.getDay(),d=6+(c<n?-7:0)-(c-n);return o.setHours(0,0,0,0),o.setDate(o.getDate()+d),o}},function(e,t,n){var r=n(10),o=n(329);e.exports=function(e,t){var n=r(e),c=Number(t),d=n.getFullYear(),f=n.getDate(),l=new Date(0);l.setFullYear(d,c,15),l.setHours(0,0,0,0);var h=o(l);return n.setMonth(c,Math.min(f,h)),n}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(37).Buffer,o=n(340).Transform;function c(e){o.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(35)(c,o),c.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},c.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},c.prototype.update=function(data,e){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(data,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(data)||(data=r.from(data,e));for(var t=this._block,n=0;this._blockOffset+data.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)t[i++]=data[n++];this._update(),this._blockOffset=0}for(;n<data.length;)t[this._blockOffset++]=data[n++];for(var o=0,c=8*data.length;c>0;++o)this._length[o]+=c,(c=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*c);return this},c.prototype._update=function(){throw new Error("_update is not implemented")},c.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return t},c.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=c},function(e,t,n){"use strict";(function(t,r){var o=n(229);e.exports=x;var c,d=n(509);x.ReadableState=I;n(195).EventEmitter;var f=function(e,t){return e.listeners(t).length},l=n(512),h=n(37).Buffer,m=t.Uint8Array||function(){};var v=Object.create(n(190));v.inherits=n(35);var y=n(735),_=void 0;_=y&&y.debuglog?y.debuglog("stream"):function(){};var w,S=n(736),E=n(513);v.inherits(x,l);var O=["error","close","destroy","pause","resume"];function I(e,t){e=e||{};var r=t instanceof(c=c||n(144));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,d=e.readableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(d||0===d)?d:f,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new S,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(w||(w=n(343).StringDecoder),this.decoder=new w(e.encoding),this.encoding=e.encoding)}function x(e){if(c=c||n(144),!(this instanceof x))return new x(e);this._readableState=new I(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function A(e,t,n,r,o){var c,d=e._readableState;null===t?(d.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,M(e)}(e,d)):(o||(c=function(e,t){var n;r=t,h.isBuffer(r)||r instanceof m||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(d,t)),c?e.emit("error",c):d.objectMode||t&&t.length>0?("string"==typeof t||d.objectMode||Object.getPrototypeOf(t)===h.prototype||(t=function(e){return h.from(e)}(t)),r?d.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):C(e,d,t,!0):d.ended?e.emit("error",new Error("stream.push() after EOF")):(d.reading=!1,d.decoder&&!n?(t=d.decoder.write(t),d.objectMode||0!==t.length?C(e,d,t,!1):P(e,d)):C(e,d,t,!1))):r||(d.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(d)}function C(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&M(e)),P(e,t)}Object.defineProperty(x.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=E.destroy,x.prototype._undestroy=E.undestroy,x.prototype._destroy=function(e,t){this.push(null),t(e)},x.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=h.from(e,t),t=""),n=!0),A(this,e,t,!1,n)},x.prototype.unshift=function(e){return A(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){return w||(w=n(343).StringDecoder),this._readableState.decoder=new w(e),this._readableState.encoding=e,this};var j=8388608;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=j?e=j:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(T,e):T(e))}function T(e){_("emit readable"),e.emit("readable"),N(e)}function P(e,t){t.readingMore||(t.readingMore=!0,o.nextTick($,e,t))}function $(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(_("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function R(e){_("readable nexttick read 0"),e.read(0)}function D(e,t){t.reading||(_("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(_("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var p=t.head,n=1,r=p.data;e-=r.length;for(;p=p.next;){var o=p.data,c=e>o.length?o.length:e;if(c===o.length?r+=o:r+=o.slice(0,e),0===(e-=c)){c===o.length?(++n,p.next?t.head=p.next:t.head=t.tail=null):(t.head=p,p.data=o.slice(c));break}++n}return t.length-=n,r}(e,t):function(e,t){var n=h.allocUnsafe(e),p=t.head,r=1;p.data.copy(n),e-=p.data.length;for(;p=p.next;){var o=p.data,c=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,c),0===(e-=c)){c===o.length?(++r,p.next?t.head=p.next:t.head=t.tail=null):(t.head=p,p.data=o.slice(c));break}++r}return t.length-=r,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function B(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function z(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}x.prototype.read=function(e){_("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):M(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&B(this),null;var r,o=t.needReadable;return _("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&_("length less than watermark",o=!0),t.ended||t.reading?_("reading or ended",o=!1):o&&(_("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?U(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,t){var n=this,c=this._readableState;switch(c.pipesCount){case 0:c.pipes=e;break;case 1:c.pipes=[c.pipes,e];break;default:c.pipes.push(e)}c.pipesCount+=1,_("pipe count=%d opts=%j",c.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?m:x;function h(t,r){_("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,_("cleanup"),e.removeListener("close",O),e.removeListener("finish",I),e.removeListener("drain",v),e.removeListener("error",E),e.removeListener("unpipe",h),n.removeListener("end",m),n.removeListener("end",x),n.removeListener("data",S),y=!0,!c.awaitDrain||e._writableState&&!e._writableState.needDrain||v())}function m(){_("onend"),e.end()}c.endEmitted?o.nextTick(l):n.once("end",l),e.on("unpipe",h);var v=function(e){return function(){var t=e._readableState;_("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&f(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",v);var y=!1;var w=!1;function S(t){_("ondata"),w=!1,!1!==e.write(t)||w||((1===c.pipesCount&&c.pipes===e||c.pipesCount>1&&-1!==z(c.pipes,e))&&!y&&(_("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,w=!0),n.pause())}function E(t){_("onerror",t),x(),e.removeListener("error",E),0===f(e,"error")&&e.emit("error",t)}function O(){e.removeListener("finish",I),x()}function I(){_("onfinish"),e.removeListener("close",O),x()}function x(){_("unpipe"),n.unpipe(e)}return n.on("data",S),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?d(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",E),e.once("close",O),e.once("finish",I),e.emit("pipe",n),c.flowing||(_("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var c=z(t.pipes,e);return-1===c?this:(t.pipes.splice(c,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},x.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&M(this):o.nextTick(R,this))}return n},x.prototype.addListener=x.prototype.on,x.prototype.resume=function(){var e=this._readableState;return e.flowing||(_("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(D,e,t))}(this,e)),this},x.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},x.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(_("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(_("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<O.length;o++)e.on(O[o],this.emit.bind(this,O[o]));return this._read=function(t){_("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),x._fromList=U}).call(this,n(88),n(107))},function(e,t,n){e.exports=n(195).EventEmitter},function(e,t,n){"use strict";var r=n(229);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,c=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return c||d?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=d;var r=n(144),o=Object.create(n(190));function c(e,data){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));t.writechunk=null,t.writecb=null,null!=data&&this.push(data),n(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function d(e){if(!(this instanceof d))return new d(e);r.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"==typeof this._flush?this._flush((function(t,data){l(e,t,data)})):l(this,null,null)}function l(e,t,data){if(t)return e.emit("error",t);if(null!=data&&e.push(data),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=n(35),o.inherits(d,r),d.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},d.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},d.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},d.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},d.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){var r=n(35),o=n(156),c=n(37).Buffer,d=[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],f=new Array(64);function l(){this.init(),this._w=f,o.call(this,64,56)}function h(e,t,n){return n^e&(t^n)}function m(e,t,n){return e&t|n&(e|t)}function v(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function y(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function _(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(l,o),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,n=this._w,a=0|this._a,b=0|this._b,r=0|this._c,o=0|this._d,c=0|this._e,f=0|this._f,g=0|this._g,l=0|this._h,i=0;i<16;++i)n[i]=e.readInt32BE(4*i);for(;i<64;++i)n[i]=0|(((t=n[i-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[i-7]+_(n[i-15])+n[i-16];for(var w=0;w<64;++w){var S=l+y(c)+h(c,f,g)+d[w]+n[w]|0,E=v(a)+m(a,b,r)|0;l=g,g=f,f=c,c=o+S|0,o=r,r=b,b=a,a=S+E|0}this._a=a+this._a|0,this._b=b+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0,this._f=f+this._f|0,this._g=g+this._g|0,this._h=l+this._h|0},l.prototype._hash=function(){var e=c.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},function(e,t,n){var r=n(35),o=n(156),c=n(37).Buffer,d=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],f=new Array(160);function l(){this.init(),this._w=f,o.call(this,128,112)}function h(e,t,n){return n^e&(t^n)}function m(e,t,n){return e&t|n&(e|t)}function v(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function y(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function _(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function w(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function S(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function E(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function O(a,b){return a>>>0<b>>>0?1:0}r(l,o),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,o=0|this._ch,c=0|this._dh,f=0|this._eh,l=0|this._fh,I=0|this._gh,x=0|this._hh,A=0|this._al,C=0|this._bl,j=0|this._cl,dl=0|this._dl,k=0|this._el,M=0|this._fl,T=0|this._gl,P=0|this._hl,i=0;i<32;i+=2)t[i]=e.readInt32BE(4*i),t[i+1]=e.readInt32BE(4*i+4);for(;i<160;i+=2){var $=t[i-30],R=t[i-30+1],D=_($,R),N=w(R,$),U=S($=t[i-4],R=t[i-4+1]),B=E(R,$),L=t[i-14],z=t[i-14+1],F=t[i-32],H=t[i-32+1],V=N+z|0,W=D+L+O(V,N)|0;W=(W=W+U+O(V=V+B|0,B)|0)+F+O(V=V+H|0,H)|0,t[i]=W,t[i+1]=V}for(var K=0;K<160;K+=2){W=t[K],V=t[K+1];var Y=m(n,r,o),G=m(A,C,j),J=v(n,A),X=v(A,n),Z=y(f,k),Q=y(k,f),ee=d[K],te=d[K+1],ne=h(f,l,I),re=h(k,M,T),ie=P+Q|0,oe=x+Z+O(ie,P)|0;oe=(oe=(oe=oe+ne+O(ie=ie+re|0,re)|0)+ee+O(ie=ie+te|0,te)|0)+W+O(ie=ie+V|0,V)|0;var ae=X+G|0,se=J+Y+O(ae,X)|0;x=I,P=T,I=l,T=M,l=f,M=k,f=c+oe+O(k=dl+ie|0,dl)|0,c=o,dl=j,o=r,j=C,r=n,C=A,n=oe+se+O(A=ie+ae|0,ie)|0}this._al=this._al+A|0,this._bl=this._bl+C|0,this._cl=this._cl+j|0,this._dl=this._dl+dl|0,this._el=this._el+k|0,this._fl=this._fl+M|0,this._gl=this._gl+T|0,this._hl=this._hl+P|0,this._ah=this._ah+n+O(this._al,A)|0,this._bh=this._bh+r+O(this._bl,C)|0,this._ch=this._ch+o+O(this._cl,j)|0,this._dh=this._dh+c+O(this._dl,dl)|0,this._eh=this._eh+f+O(this._el,k)|0,this._fh=this._fh+l+O(this._fl,M)|0,this._gh=this._gh+I+O(this._gl,T)|0,this._hh=this._hh+x+O(this._hl,P)|0},l.prototype._hash=function(){var e=c.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},function(e,t,n){"use strict";var r=n(35),o=n(749),c=n(130),d=n(37).Buffer,f=n(518),l=n(344),h=n(345),m=d.alloc(128);function v(e,t){c.call(this,"digest"),"string"==typeof t&&(t=d.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new l:h(e)).update(t).digest():t.length<n&&(t=d.concat([t,m],n));for(var r=this._ipad=d.allocUnsafe(n),o=this._opad=d.allocUnsafe(n),i=0;i<n;i++)r[i]=54^t[i],o[i]=92^t[i];this._hash="rmd160"===e?new l:h(e),this._hash.update(r)}r(v,c),v.prototype._update=function(data){this._hash.update(data)},v.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:h(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new v("rmd160",t):"md5"===e?new o(f,t):new v(e,t)}},function(e,t,n){var r=n(339);e.exports=function(e){return(new r).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,n){t.pbkdf2=n(751),t.pbkdf2Sync=n(523)},function(e,t,n){(function(t){var n=Math.pow(2,30)-1;function r(e,n){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(n+" must be a buffer or string")}e.exports=function(e,t,o,c){if(r(e,"Password"),r(t,"Salt"),"number"!=typeof o)throw new TypeError("Iterations not a number");if(o<0)throw new TypeError("Bad iterations");if("number"!=typeof c)throw new TypeError("Key length not a number");if(c<0||c>n||c!=c)throw new TypeError("Bad key length")}}).call(this,n(28).Buffer)},function(e,t,n){var r;r="utf-8",e.exports=r},function(e,t,n){var r=n(518),o=n(344),c=n(345),d=n(521),f=n(522),l=n(37).Buffer,h=l.alloc(128),m={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function v(e,t,n){var d=function(e){return"rmd160"===e||"ripemd160"===e?function(data){return(new o).update(data).digest()}:"md5"===e?r:function(data){return c(e).update(data).digest()}}(e),f="sha512"===e||"sha384"===e?128:64;t.length>f?t=d(t):t.length<f&&(t=l.concat([t,h],f));for(var v=l.allocUnsafe(f+m[e]),y=l.allocUnsafe(f+m[e]),i=0;i<f;i++)v[i]=54^t[i],y[i]=92^t[i];var _=l.allocUnsafe(f+n+4);v.copy(_,0,0,f),this.ipad1=_,this.ipad2=v,this.opad=y,this.alg=e,this.blocksize=f,this.hash=d,this.size=m[e]}v.prototype.run=function(data,e){return data.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,r,o){d(e,t,n,r),l.isBuffer(e)||(e=l.from(e,f)),l.isBuffer(t)||(t=l.from(t,f));var c=new v(o=o||"sha1",e,t.length),h=l.allocUnsafe(r),y=l.allocUnsafe(t.length+4);t.copy(y,0,0,t.length);for(var _=0,w=m[o],S=Math.ceil(r/w),i=1;i<=S;i++){y.writeUInt32BE(i,t.length);for(var E=c.run(y,c.ipad1),O=E,I=1;I<n;I++){O=c.run(O,c.ipad2);for(var x=0;x<w;x++)E[x]^=O[x]}E.copy(h,_),_+=w}return h}},function(e,t,n){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var o=0,c=0,i=6;i>=0;i-=2){for(var d=0;d<=24;d+=8)o<<=1,o|=t>>>d+i&1;for(d=0;d<=24;d+=8)o<<=1,o|=e>>>d+i&1}for(i=6;i>=0;i-=2){for(d=1;d<=25;d+=8)c<<=1,c|=t>>>d+i&1;for(d=1;d<=25;d+=8)c<<=1,c|=e>>>d+i&1}n[r+0]=o>>>0,n[r+1]=c>>>0},t.rip=function(e,t,n,r){for(var o=0,c=0,i=0;i<4;i++)for(var d=24;d>=0;d-=8)o<<=1,o|=t>>>d+i&1,o<<=1,o|=e>>>d+i&1;for(i=4;i<8;i++)for(d=24;d>=0;d-=8)c<<=1,c|=t>>>d+i&1,c<<=1,c|=e>>>d+i&1;n[r+0]=o>>>0,n[r+1]=c>>>0},t.pc1=function(e,t,n,r){for(var o=0,c=0,i=7;i>=5;i--){for(var d=0;d<=24;d+=8)o<<=1,o|=t>>d+i&1;for(d=0;d<=24;d+=8)o<<=1,o|=e>>d+i&1}for(d=0;d<=24;d+=8)o<<=1,o|=t>>d+i&1;for(i=1;i<=3;i++){for(d=0;d<=24;d+=8)c<<=1,c|=t>>d+i&1;for(d=0;d<=24;d+=8)c<<=1,c|=e>>d+i&1}for(d=0;d<=24;d+=8)c<<=1,c|=e>>d+i&1;n[r+0]=o>>>0,n[r+1]=c>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,o){for(var c=0,d=0,f=r.length>>>1,i=0;i<f;i++)c<<=1,c|=e>>>r[i]&1;for(i=f;i<r.length;i++)d<<=1,d|=t>>>r[i]&1;n[o+0]=c>>>0,n[o+1]=d>>>0},t.expand=function(e,t,n){var r=0,o=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,i=0;i<4;i++){n<<=4,n|=o[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){n<<=4,n|=o[256+64*i+(t>>>18-6*i&63)]}return n>>>0};var c=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,i=0;i<c.length;i++)t<<=1,t|=e>>>c[i]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var o=[],i=0;i<t;i+=n)o.push(r.slice(i,i+n));return o.join(" ")}},function(e,t,n){"use strict";var r=n(96),o=n(35),c=n(524),d=n(346);function f(){this.tmp=new Array(2),this.keys=null}function l(e){d.call(this,e);var t=new f;this._desState=t,this.deriveKeys(t,e.key)}o(l,d),e.exports=l,l.create=function(e){return new l(e)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=c.readUInt32BE(t,0),o=c.readUInt32BE(t,4);c.pc1(n,o,e.tmp,0),n=e.tmp[0],o=e.tmp[1];for(var i=0;i<e.keys.length;i+=2){var d=h[i>>>1];n=c.r28shl(n,d),o=c.r28shl(o,d),c.pc2(n,o,e.keys,i)}},l.prototype._update=function(e,t,n,r){var o=this._desState,d=c.readUInt32BE(e,t),f=c.readUInt32BE(e,t+4);c.ip(d,f,o.tmp,0),d=o.tmp[0],f=o.tmp[1],"encrypt"===this.type?this._encrypt(o,d,f,o.tmp,0):this._decrypt(o,d,f,o.tmp,0),d=o.tmp[0],f=o.tmp[1],c.writeUInt32BE(n,d,r),c.writeUInt32BE(n,f,r+4)},l.prototype._pad=function(e,t){for(var n=e.length-t,i=t;i<e.length;i++)e[i]=n;return!0},l.prototype._unpad=function(e){for(var t=e[e.length-1],i=e.length-t;i<e.length;i++)r.equal(e[i],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,n,r,o){for(var d=t,f=n,i=0;i<e.keys.length;i+=2){var l=e.keys[i],h=e.keys[i+1];c.expand(f,e.tmp,0),l^=e.tmp[0],h^=e.tmp[1];var s=c.substitute(l,h),m=f;f=(d^c.permute(s))>>>0,d=m}c.rip(f,d,r,o)},l.prototype._decrypt=function(e,t,n,r,o){for(var d=n,f=t,i=e.keys.length-2;i>=0;i-=2){var l=e.keys[i],h=e.keys[i+1];c.expand(d,e.tmp,0),l^=e.tmp[0],h^=e.tmp[1];var s=c.substitute(l,h),m=d;d=(f^c.permute(s))>>>0,f=m}c.rip(d,f,r,o)}},function(e,t,n){var r=n(191),o=n(37).Buffer,c=n(527);function d(e){var t=e._cipher.encryptBlockRaw(e._prev);return c(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),c=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(16*n)]);for(var i=0;i<n;i++){var f=d(e),l=c+16*i;e._cache.writeUInt32BE(f[0],l+0),e._cache.writeUInt32BE(f[1],l+4),e._cache.writeUInt32BE(f[2],l+8),e._cache.writeUInt32BE(f[3],l+12)}var h=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,h)}},function(e,t){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,n){var r=n(230),o=n(37).Buffer,c=n(130),d=n(35),f=n(764),l=n(191),h=n(527);function m(e,t,n,d){c.call(this);var l=o.alloc(4,0);this._cipher=new r.AES(t);var m=this._cipher.encryptBlock(l);this._ghash=new f(m),n=function(e,t,n){if(12===t.length)return e._finID=o.concat([t,o.from([0,0,0,1])]),o.concat([t,o.from([0,0,0,2])]);var r=new f(n),c=t.length,d=c%16;r.update(t),d&&(d=16-d,r.update(o.alloc(d,0))),r.update(o.alloc(8,0));var l=8*c,m=o.alloc(8);m.writeUIntBE(l,0,8),r.update(m),e._finID=r.state;var v=o.from(e._finID);return h(v),v}(this,n,m),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=d,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}d(m,c),m.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=o.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},m.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(a,b){var e=0;a.length!==b.length&&e++;for(var t=Math.min(a.length,b.length),i=0;i<t;++i)e+=a[i]^b[i];return e}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},m.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},m.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},m.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=m},function(e,t,n){var r=n(230),o=n(37).Buffer,c=n(130);function d(e,t,n,d){c.call(this),this._cipher=new r.AES(t),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=d,this._mode=e}n(35)(d,c),d.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},d.prototype._final=function(){this._cipher.scrub()},e.exports=d},function(e,t,n){var r=n(155);e.exports=I,I.simpleSieve=E,I.fermatTest=O;var o=n(61),c=new o(24),d=new(n(533)),f=new o(1),l=new o(2),h=new o(5),m=(new o(16),new o(8),new o(10)),v=new o(3),y=(new o(7),new o(11)),_=new o(4),w=(new o(12),null);function S(){if(null!==w)return w;var e=[];e[0]=2;for(var i=1,t=3;t<1048576;t+=2){for(var n=Math.ceil(Math.sqrt(t)),r=0;r<i&&e[r]<=n&&t%e[r]!=0;r++);i!==r&&e[r]<=n||(e[i++]=t)}return w=e,e}function E(p){for(var e=S(),i=0;i<e.length;i++)if(0===p.modn(e[i]))return 0===p.cmpn(e[i]);return!0}function O(p){var e=o.mont(p);return 0===l.toRed(e).redPow(p.subn(1)).fromRed().cmpn(1)}function I(e,t){if(e<16)return new o(2===t||5===t?[140,123]:[140,39]);var n,w;for(t=new o(t);;){for(n=new o(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(f),n.testn(1)||n.iadd(l),t.cmp(l)){if(!t.cmp(h))for(;n.mod(m).cmp(v);)n.iadd(_)}else for(;n.mod(c).cmp(y);)n.iadd(_);if(E(w=n.shrn(1))&&E(n)&&O(w)&&O(n)&&d.test(w)&&d.test(n))return n}}},,function(e,t,n){var r=n(61),o=n(349);function c(e){this.rand=e||new o.Rand}e.exports=c,c.create=function(e){return new c(e)},c.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var a=new r(this.rand.generate(n))}while(a.cmp(e)>=0);return a},c.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},c.prototype.test=function(e,t,n){var o=e.bitLength(),c=r.mont(e),d=new r(1).toRed(c);t||(t=Math.max(1,o/48|0));for(var f=e.subn(1),s=0;!f.testn(s);s++);for(var l=e.shrn(s),h=f.toRed(c);t>0;t--){var a=this._randrange(new r(2),f);n&&n(a);var m=a.toRed(c).redPow(l);if(0!==m.cmp(d)&&0!==m.cmp(h)){for(var i=1;i<s;i++){if(0===(m=m.redSqr()).cmp(d))return!1;if(0===m.cmp(h))break}if(i===s)return!1}}return!0},c.prototype.getDivisor=function(e,t){var n=e.bitLength(),o=r.mont(e),c=new r(1).toRed(o);t||(t=Math.max(1,n/48|0));for(var d=e.subn(1),s=0;!d.testn(s);s++);for(var f=e.shrn(s),l=d.toRed(o);t>0;t--){var a=this._randrange(new r(2),d),g=e.gcd(a);if(0!==g.cmpn(1))return g;var h=a.toRed(o).redPow(f);if(0!==h.cmp(c)&&0!==h.cmp(l)){for(var i=1;i<s;i++){if(0===(h=h.redSqr()).cmp(c))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(l))break}if(i===s)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){"use strict";var r=t;function o(e){return 1===e.length?"0"+e:e}function c(e){for(var t="",i=0;i<e.length;i++)t+=o(e[i].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)n[i]=0|e[i];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(i=0;i<e.length;i++){var r=e.charCodeAt(i),o=r>>8,c=255&r;o?n.push(o,c):n.push(c)}return n},r.zero2=o,r.toHex=c,r.encode=function(e,t){return"hex"===t?c(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(232),r.short=n(775),r.mont=n(776),r.edwards=n(777)},function(e,t,n){"use strict";var r=n(109).rotr32;function o(e,t,n){return e&t^~e&n}function c(e,t,n){return e&t^e&n^t&n}function d(e,t,n){return e^t^n}t.ft_1=function(s,e,t,n){return 0===s?o(e,t,n):1===s||3===s?d(e,t,n):2===s?c(e,t,n):void 0},t.ch32=o,t.maj32=c,t.p32=d,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(109),o=n(192),c=n(536),d=n(96),f=r.sum32,l=r.sum32_4,h=r.sum32_5,m=c.ch32,v=c.maj32,y=c.s0_256,_=c.s1_256,w=c.g0_256,S=c.g1_256,E=o.BlockHash,O=[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];function I(){if(!(this instanceof I))return new I;E.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=O,this.W=new Array(64)}r.inherits(I,E),e.exports=I,I.blockSize=512,I.outSize=256,I.hmacStrength=192,I.padLength=64,I.prototype._update=function(e,t){for(var n=this.W,i=0;i<16;i++)n[i]=e[t+i];for(;i<n.length;i++)n[i]=l(S(n[i-2]),n[i-7],w(n[i-15]),n[i-16]);var a=this.h[0],b=this.h[1],r=this.h[2],o=this.h[3],c=this.h[4],E=this.h[5],g=this.h[6],O=this.h[7];for(d(this.k.length===n.length),i=0;i<n.length;i++){var I=h(O,_(c),m(c,E,g),this.k[i],n[i]),x=f(y(a),v(a,b,r));O=g,g=E,E=c,c=f(o,I),o=r,r=b,b=a,a=f(I,x)}this.h[0]=f(this.h[0],a),this.h[1]=f(this.h[1],b),this.h[2]=f(this.h[2],r),this.h[3]=f(this.h[3],o),this.h[4]=f(this.h[4],c),this.h[5]=f(this.h[5],E),this.h[6]=f(this.h[6],g),this.h[7]=f(this.h[7],O)},I.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(109),o=n(192),c=n(96),d=r.rotr64_hi,f=r.rotr64_lo,l=r.shr64_hi,h=r.shr64_lo,m=r.sum64,v=r.sum64_hi,y=r.sum64_lo,_=r.sum64_4_hi,w=r.sum64_4_lo,S=r.sum64_5_hi,E=r.sum64_5_lo,O=o.BlockHash,I=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function x(){if(!(this instanceof x))return new x;O.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=I,this.W=new Array(160)}function A(e,t,n,r,o){var c=e&n^~e&o;return c<0&&(c+=4294967296),c}function C(e,t,n,r,o,c){var d=t&r^~t&c;return d<0&&(d+=4294967296),d}function j(e,t,n,r,o){var c=e&n^e&o^n&o;return c<0&&(c+=4294967296),c}function k(e,t,n,r,o,c){var d=t&r^t&c^r&c;return d<0&&(d+=4294967296),d}function M(e,t){var n=d(e,t,28)^d(t,e,2)^d(t,e,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=f(e,t,28)^f(t,e,2)^f(t,e,7);return n<0&&(n+=4294967296),n}function P(e,t){var n=d(e,t,14)^d(e,t,18)^d(t,e,9);return n<0&&(n+=4294967296),n}function $(e,t){var n=f(e,t,14)^f(e,t,18)^f(t,e,9);return n<0&&(n+=4294967296),n}function R(e,t){var n=d(e,t,1)^d(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function D(e,t){var n=f(e,t,1)^f(e,t,8)^h(e,t,7);return n<0&&(n+=4294967296),n}function N(e,t){var n=d(e,t,19)^d(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}function U(e,t){var n=f(e,t,19)^f(t,e,29)^h(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(x,O),e.exports=x,x.blockSize=1024,x.outSize=512,x.hmacStrength=192,x.padLength=128,x.prototype._prepareBlock=function(e,t){for(var n=this.W,i=0;i<32;i++)n[i]=e[t+i];for(;i<n.length;i+=2){var r=N(n[i-4],n[i-3]),o=U(n[i-4],n[i-3]),c=n[i-14],d=n[i-13],f=R(n[i-30],n[i-29]),l=D(n[i-30],n[i-29]),h=n[i-32],m=n[i-31];n[i]=_(r,o,c,d,f,l,h,m),n[i+1]=w(r,o,c,d,f,l,h,m)}},x.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],o=this.h[1],d=this.h[2],f=this.h[3],l=this.h[4],h=this.h[5],_=this.h[6],dl=this.h[7],w=this.h[8],O=this.h[9],I=this.h[10],x=this.h[11],R=this.h[12],D=this.h[13],N=this.h[14],U=this.h[15];c(this.k.length===n.length);for(var i=0;i<n.length;i+=2){var B=N,L=U,z=P(w,O),F=$(w,O),H=A(w,O,I,x,R),V=C(w,O,I,x,R,D),W=this.k[i],K=this.k[i+1],Y=n[i],G=n[i+1],J=S(B,L,z,F,H,V,W,K,Y,G),X=E(B,L,z,F,H,V,W,K,Y,G);B=M(r,o),L=T(r,o),z=j(r,o,d,f,l),F=k(r,o,d,f,l,h);var Z=v(B,L,z,F),Q=y(B,L,z,F);N=R,U=D,R=I,D=x,I=w,x=O,w=v(_,dl,J,X),O=y(dl,dl,J,X),_=l,dl=h,l=d,h=f,d=r,f=o,r=v(J,X,Z,Q),o=y(J,X,Z,Q)}m(this.h,0,r,o),m(this.h,2,d,f),m(this.h,4,l,h),m(this.h,6,_,dl),m(this.h,8,w,O),m(this.h,10,I,x),m(this.h,12,R,D),m(this.h,14,N,U)},x.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){var r=n(35),o=n(194).Reporter,c=n(28).Buffer;function d(base,e){o.call(this,e),c.isBuffer(base)?(this.base=base,this.offset=0,this.length=base.length):this.error("Input not Buffer")}function f(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof f||(e=new f(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=c.byteLength(e);else{if(!c.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(d,o),t.DecoderBuffer=d,d.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},d.prototype.restore=function(e){var t=new d(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},d.prototype.isEmpty=function(){return this.offset===this.length},d.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},d.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new d(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},d.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=f,f.prototype.join=function(e,t){return e||(e=new c(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):c.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},function(e,t,n){var r=t;r._reverse=function(map){var e={};return Object.keys(map).forEach((function(t){(0|t)==t&&(t|=0);var n=map[t];e[n]=t})),e},r.der=n(797)},function(e,t,n){var r=n(35),o=n(193),base=o.base,c=o.bignum,d=o.constants.der;function f(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){base.Node.call(this,"der",e)}function h(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=d.tagClass[n>>6],o=0==(32&n);if(31==(31&n)){var c=n;for(n=0;128==(128&c);){if(c=e.readUInt8(t),e.isError(c))return c;n<<=7,n|=127&c}}else n&=31;return{cls:r,primitive:o,tag:n,tagStr:d.tag[n]}}function m(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var o=127&r;if(o>4)return e.error("length octect is too long");r=0;for(var i=0;i<o;i++){r<<=8;var c=e.readUInt8(n);if(e.isError(c))return c;r|=c}return r}e.exports=f,f.prototype.decode=function(data,e){return data instanceof base.DecoderBuffer||(data=new base.DecoderBuffer(data,e)),this.tree._decode(data,e)},r(l,base.Node),l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;var r=e.save(),o=h(e,'Failed to peek tag: "'+t+'"');return e.isError(o)?o:(e.restore(r),o.tag===t||o.tagStr===t||o.tagStr+"of"===t||n)},l.prototype._decodeTag=function(e,t,n){var r=h(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;var o=m(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(o))return o;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==o)return e.skip(o,'Failed to match body of: "'+t+'"');var c=e.save(),d=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(d)?d:(o=e.offset-c.offset,e.restore(c),e.skip(o,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){var n=h(e,t);if(e.isError(n))return n;var r,o=m(e,n.primitive,t);if(e.isError(o))return o;if(r=n.primitive||null!==o?e.skip(o):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===n.tagStr)break}},l.prototype._decodeList=function(e,t,n,r){for(var o=[];!e.isEmpty();){var c=this._peekTag(e,"end");if(e.isError(c))return c;var d=n.decode(e,"der",r);if(e.isError(d)&&c)break;o.push(d)}return o},l.prototype._decodeStr=function(e,t){if("bitstr"===t){var n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}if("bmpstr"===t){var r=e.raw();if(r.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var o="",i=0;i<r.length/2;i++)o+=String.fromCharCode(r.readUInt16BE(2*i));return o}if("numstr"===t){var c=e.raw().toString("ascii");return this._isNumstr(c)?c:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var d=e.raw().toString("ascii");return this._isPrintstr(d)?d:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},l.prototype._decodeObjid=function(e,t,n){for(var r,o=[],c=0;!e.isEmpty();){var d=e.readUInt8();c<<=7,c|=127&d,0==(128&d)&&(o.push(c),c=0)}128&d&&o.push(c);var f=o[0]/40|0,l=o[0]%40;if(r=n?o:[f,l].concat(o.slice(1)),t){var h=t[r.join(" ")];void 0===h&&(h=t[r.join(".")]),void 0!==h&&(r=h)}return r},l.prototype._decodeTime=function(e,t){var n=e.raw().toString();if("gentime"===t)var r=0|n.slice(0,4),o=0|n.slice(4,6),c=0|n.slice(6,8),d=0|n.slice(8,10),f=0|n.slice(10,12),l=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),o=0|n.slice(2,4),c=0|n.slice(4,6),d=0|n.slice(6,8),f=0|n.slice(8,10),l=0|n.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,o-1,c,d,f,l,0)},l.prototype._decodeNull=function(e){return null},l.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){var n=e.raw(),r=new c(n);return t&&(r=t[r.toString(10)]||r),r},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,n){var r=n(35),o=n(28).Buffer,c=n(193),base=c.base,d=c.constants.der;function f(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){base.Node.call(this,"der",e)}function h(e){return e<10?"0"+e:e}e.exports=f,f.prototype.encode=function(data,e){return this.tree._encode(data,e).join()},r(l,base.Node),l.prototype._encodeComposite=function(e,t,n,content){var header,r=function(e,t,n,r){var o;"seqof"===e?e="seq":"setof"===e&&(e="set");if(d.tagByName.hasOwnProperty(e))o=d.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);o=e}if(o>=31)return r.error("Multi-octet tag encoding unsupported");t||(o|=32);return o|=d.tagClassByName[n||"universal"]<<6}(e,t,n,this.reporter);if(content.length<128)return(header=new o(2))[0]=r,header[1]=content.length,this._createEncoderBuffer([header,content]);for(var c=1,i=content.length;i>=256;i>>=8)c++;(header=new o(2+c))[0]=r,header[1]=128|c;i=1+c;for(var f=content.length;f>0;i--,f>>=8)header[i]=255&f;return this._createEncoderBuffer([header,content])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=new o(2*e.length),i=0;i<e.length;i++)n.writeUInt16BE(e.charCodeAt(i),2*i);return this._createEncoderBuffer(n)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e)){e=e.slice();for(i=0;i<e.length;i++)e[i]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var r=0;for(i=0;i<e.length;i++){var c=e[i];for(r++;c>=128;c>>=7)r++}var d=new o(r),f=d.length-1;for(i=e.length-1;i>=0;i--){c=e[i];for(d[f--]=127&c;(c>>=7)>0;)d[f--]=128|127&c}return this._createEncoderBuffer(d)},l.prototype._encodeTime=function(time,e){var t,n=new Date(time);return"gentime"===e?t=[h(n.getFullYear()),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?t=[h(n.getFullYear()%100),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(t,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!o.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=new o(n)}if(o.isBuffer(e)){var r=e.length;0===e.length&&r++;var c=new o(r);return e.copy(c),0===e.length&&(c[0]=0),this._createEncoderBuffer(c)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);r=1;for(var i=e;i>=256;i>>=8)r++;for(i=(c=new Array(r)).length-1;i>=0;i--)c[i]=255&e,e>>=8;return 128&c[0]&&c.unshift(0),this._createEncoderBuffer(new o(c))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,n){var i,r=this._baseState;if(null===r.default)return!1;var data=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),data.length!==r.defaultBuffer.length)return!1;for(i=0;i<data.length;i++)if(data[i]!==r.defaultBuffer[i])return!1;return!0}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,n){var r=n(189),o=n(37).Buffer;function c(e){var t=o.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,d=o.alloc(0),i=0;d.length<t;)n=c(i++),d=o.concat([d,r("sha1").update(e).update(n).digest()]);return d.slice(0,t)}},function(e,t){e.exports=function(a,b){for(var e=a.length,i=-1;++i<e;)a[i]^=b[i];return a}},function(e,t,n){var r=n(61),o=n(37).Buffer;e.exports=function(e,t){return o.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},,,,,,function(e,t,n){var r;e.exports=(r=n(78),function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)}).prototype=e}}(),r.lib.WordArray)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StandardRetryStrategy=t.DEFAULT_RETRY_MODE=t.DEFAULT_MAX_ATTEMPTS=void 0;var r=n(0),o=n(7),c=n(554),d=n(121),f=n(359),l=n(893),h=n(557),m=n(558);t.DEFAULT_MAX_ATTEMPTS="3",t.DEFAULT_RETRY_MODE="standard";var v=function(){function e(e,t){var n,r,o;this.maxAttemptsProvider=e,this.retryDecider=null!==(n=null==t?void 0:t.retryDecider)&&void 0!==n?n:m.defaultRetryDecider,this.delayDecider=null!==(r=null==t?void 0:t.delayDecider)&&void 0!==r?r:h.defaultDelayDecider,this.retryQuota=null!==(o=null==t?void 0:t.retryQuota)&&void 0!==o?o:l.getDefaultRetryQuota(f.INITIAL_RETRY_TOKENS)}return e.prototype.shouldRetry=function(e,t,n){return t<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)},e.prototype.getMaxAttempts=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,n;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.maxAttemptsProvider()];case 1:return e=r.sent(),[3,3];case 2:return r.sent(),e=t.DEFAULT_MAX_ATTEMPTS,[3,3];case 3:return n=parseInt(e),[2,Number.isNaN(n)?parseInt(t.DEFAULT_MAX_ATTEMPTS):n]}}))}))},e.prototype.retry=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,l,h,m,v,y,_,w;return r.__generator(this,(function(S){switch(S.label){case 0:return l=0,h=0,[4,this.getMaxAttempts()];case 1:m=S.sent(),v=t.request,o.HttpRequest.isInstance(v)&&(v.headers["amz-sdk-invocation-id"]=d.v4()),y=function(){var d,y,output,w,S;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,5]),o.HttpRequest.isInstance(v)&&(v.headers["amz-sdk-request"]="attempt="+(l+1)+"; max="+m),[4,e(t)];case 1:return d=r.sent(),y=d.response,output=d.output,_.retryQuota.releaseRetryTokens(n),output.$metadata.attempts=l+1,output.$metadata.totalRetryDelay=h,[2,{value:{response:y,output:output}}];case 2:return w=r.sent(),l++,_.shouldRetry(w,l,m)?(n=_.retryQuota.retrieveRetryTokens(w),S=_.delayDecider(c.isThrottlingError(w)?f.THROTTLING_RETRY_DELAY_BASE:f.DEFAULT_RETRY_DELAY_BASE,l),h+=S,[4,new Promise((function(e){return setTimeout(e,S)}))]):[3,4];case 3:return r.sent(),[2,"continue"];case 4:throw w.$metadata||(w.$metadata={}),w.$metadata.attempts=l,w.$metadata.totalRetryDelay=h,w;case 5:return[2]}}))},_=this,S.label=2;case 2:return[5,y()];case 3:return"object"==typeof(w=S.sent())?[2,w.value]:[3,2];case 4:return[2]}}))}))},e}();t.StandardRetryStrategy=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTransientError=t.isThrottlingError=t.isClockSkewError=t.isRetryableByTrait=void 0;var r=n(890);t.isRetryableByTrait=function(e){return void 0!==e.$retryable},t.isClockSkewError=function(e){return r.CLOCK_SKEW_ERROR_CODES.includes(e.name)},t.isThrottlingError=function(e){var t;return r.THROTTLING_ERROR_CODES.includes(e.name)||1==(null===(t=e.$retryable)||void 0===t?void 0:t.throttling)},t.isTransientError=function(e){var t;return r.TRANSIENT_ERROR_CODES.includes(e.name)||r.TRANSIENT_ERROR_STATUS_CODES.includes((null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||0)}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,i=0;i<16;i++)0==(3&i)&&(e=4294967296*Math.random()),o[i]=e>>>((3&i)<<3)&255;return o}}},function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0,r=n;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDelayDecider=void 0;var r=n(359);t.defaultDelayDecider=function(e,t){return Math.floor(Math.min(r.MAXIMUM_RETRY_DELAY,Math.random()*Math.pow(2,t)*e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultRetryDecider=void 0;var r=n(554);t.defaultRetryDecider=function(e){return!!e&&(r.isRetryableByTrait(e)||r.isClockSkewError(e)||r.isThrottlingError(e)||r.isTransientError(e))}},function(e,t,n){"use strict";function r(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUri=void 0,t.escapeUri=function(e){var output=encodeURIComponent(e);return output=output.replace(/[!'()*]/g,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(901),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(562),o=n(563),c=n(115),d=n(360),f=function(){function e(e){e?(this.operation=function(e){return new Promise((function(t,n){var r=d.locateWindow().msCrypto.subtle.importKey("raw",l(e),o.SHA_256_HMAC_ALGO,!1,["sign"]);r.oncomplete=function(){r.result&&t(r.result),n("ImportKey completed without importing key.")},r.onerror=function(){n("ImportKey failed to import key.")}}))}(e).then((function(e){return d.locateWindow().msCrypto.subtle.sign(o.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve(d.locateWindow().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var t=this;r.isEmptyData(e)||(this.operation=this.operation.then((function(n){return n.onerror=function(){t.operation=Promise.reject(new Error("Error encountered updating hash"))},n.process(l(e)),n})),this.operation.catch((function(){})))},e.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(t,n){e.onerror=function(){n("Error encountered finalizing hash")},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),n("Error encountered finalizing hash")},e.finish()}))}))},e}();function l(data){return"string"==typeof data?c.fromUtf8(data):ArrayBuffer.isView(data)?new Uint8Array(data.buffer,data.byteOffset,data.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(data)}t.Sha256=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=function(data){return"string"==typeof data?0===data.length:0===data.byteLength}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(115),o=n(562),c=n(563),d=n(360),f=function(){function e(e){this.toHash=new Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,n){d.locateWindow().crypto.subtle.importKey("raw",l(e),c.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,n)})),this.key.catch((function(){})))}return e.prototype.update=function(data){if(!o.isEmptyData(data)){var e=l(data),t=new Uint8Array(this.toHash.byteLength+e.byteLength);t.set(this.toHash,0),t.set(e,this.toHash.byteLength),this.toHash=t}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return d.locateWindow().crypto.subtle.sign(c.SHA_256_HMAC_ALGO,t,e.toHash).then((function(data){return new Uint8Array(data)}))})):o.isEmptyData(this.toHash)?Promise.resolve(c.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return d.locateWindow().crypto.subtle.digest(c.SHA_256_HASH,e.toHash)})).then((function(data){return Promise.resolve(new Uint8Array(data))}))},e}();function l(data){return"string"==typeof data?r.fromUtf8(data):ArrayBuffer.isView(data)?new Uint8Array(data.buffer,data.byteOffset,data.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(data)}t.Sha256=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCognitoIdentity=void 0;var r=n(0),o=n(362),c=n(569),d=n(571);t.fromCognitoIdentity=function(e){var t=this;return function(){return r.__awaiter(t,void 0,void 0,(function(){var t,n,f,l,h,m,v,y,_,w,S,E,O;return r.__generator(this,(function(r){switch(r.label){case 0:return w=(_=e.client).send,S=o.GetCredentialsForIdentityCommand.bind,E={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},e.logins?[4,d.resolveLogins(e.logins)]:[3,2];case 1:return O=r.sent(),[3,3];case 2:O=void 0,r.label=3;case 3:return[4,w.apply(_,[new(S.apply(o.GetCredentialsForIdentityCommand,[void 0,(E.Logins=O,E)]))])];case 4:return t=r.sent().Credentials,n=void 0===t?function(){throw new c.ProviderError("Response from Amazon Cognito contained no credentials")}():t,f=n.AccessKeyId,l=void 0===f?function(){throw new c.ProviderError("Response from Amazon Cognito contained no access key ID")}():f,h=n.Expiration,m=n.SecretKey,v=void 0===m?function(){throw new c.ProviderError("Response from Amazon Cognito contained no secret key")}():m,y=n.SessionToken,[2,{accessKeyId:l,secretAccessKey:v,sessionToken:y,expiration:h}]}}))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializerMiddleware=void 0;var r=n(0);t.deserializerMiddleware=function(e,t){var n=this;return function(o){return function(c){return r.__awaiter(n,void 0,void 0,(function(){var n,d;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,o(c)];case 1:return n=r.sent().response,[4,t(n,e)];case 2:return d=r.sent(),[2,{response:n,output:d}]}}))}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializerMiddleware=void 0;var r=n(0);t.serializerMiddleware=function(e,t){var n=this;return function(o){return function(c){return r.__awaiter(n,void 0,void 0,(function(){var n;return r.__generator(this,(function(d){switch(d.label){case 0:return[4,t(c.input,e)];case 1:return n=d.sent(),[2,o(r.__assign(r.__assign({},c),{request:n}))]}}))}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(931),t),r.__exportStar(n(932),t),r.__exportStar(n(933),t),r.__exportStar(n(570),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderError=void 0;var r=n(0),o=function(e){function t(t,n){void 0===n&&(n=!0);var r=e.call(this,t)||this;return r.tryNextLink=n,r}return r.__extends(t,e),t}(Error);t.ProviderError=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveLogins=void 0;var r=n(0);t.resolveLogins=function(e){return Promise.all(Object.keys(e).reduce((function(t,n){var r=e[n];return"string"==typeof r?t.push([n,r]):t.push(r().then((function(e){return[n,e]}))),t}),[])).then((function(e){return e.reduce((function(e,t){var n=r.__read(t,2),o=n[0],c=n[1];return e[o]=c,e}),{})}))}},,,,,,,,,,,function(e,t,n){"use strict";t.a=function(e,t){return t=t||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(JSON.parse(s.responseText))},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var c in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),u.push([t,n]),i[t]=i[t]?i[t]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(c,t.headers[c]);s.send(t.body||null)}))}},,function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function d(e,source,t){return e.concat(source).map((function(element){return c(element,t)}))}function f(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(symbol){return e.propertyIsEnumerable(symbol)})):[]}(e))}function l(object,e){try{return e in object}catch(e){return!1}}function h(e,source,t){var n={};return t.isMergeableObject(e)&&f(e).forEach((function(r){n[r]=c(e[r],t)})),f(source).forEach((function(r){(function(e,t){return l(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(l(e,r)&&t.isMergeableObject(source[r])?n[r]=function(e,t){if(!t.customMerge)return m;var n=t.customMerge(e);return"function"==typeof n?n:m}(r,t)(e[r],source[r],t):n[r]=c(source[r],t))})),n}function m(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||d,t.isMergeableObject=t.isMergeableObject||r,t.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(e)?n?t.arrayMerge(e,source,t):h(e,source,t):c(source,t)}m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return m(e,n,t)}),{})};var v=m;e.exports=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r={},o=function(){function e(){}return e.setItem=function(e,t){return r[e]=t,r[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},e.removeItem=function(e){return delete r[e]},e.clear=function(){return r={}},e}(),c=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=o}}return e.prototype.getStorage=function(){return this.storageWindow},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayBuffer=void 0,t.isArrayBuffer=function(e){return"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=n(36);t.a=function(e){return Object(r.f)(e)||(e=String(e)),(e=e.trim()).charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";t.a={methods:{listenOnRoot:function(e,t){var n=this;return this.$root.$on(e,t),this.$on("hook:beforeDestroy",(function(){n.$root.$off(e,t)})),this},listenOnRootOnce:function(e,t){var n=this;return this.$root.$once(e,t),this.$on("hook:beforeDestroy",(function(){n.$root.$off(e,t)})),this},emitOnRoot:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.$root).$emit.apply(t,[e].concat(r)),this}}}},function(e,t,n){"use strict";var r=n(30),o=n(36),c=n(44),d=function(a,b){if(a.length!==b.length)return!1;for(var e=!0,i=0;e&&i<a.length;i++)e=f(a[i],b[i]);return e},f=function e(a,b){if(a===b)return!0;var t=Object(o.b)(a),n=Object(o.b)(b);if(t||n)return!(!t||!n)&&a.getTime()===b.getTime();if(t=Object(c.d)(a),n=Object(c.d)(b),t||n)return!(!t||!n)&&d(a,b);if(t=Object(r.f)(a),n=Object(r.f)(b),t||n){if(!t||!n)return!1;if(Object(r.h)(a).length!==Object(r.h)(b).length)return!1;for(var f in a){var l=a.hasOwnProperty(f),h=b.hasOwnProperty(f);if(l&&!h||!l&&h||!e(a[f],b[f]))return!1}}return String(a)===String(b)};t.a=f},function(e,t,n){var r;!function(){function o(a,b,e){return a.call.apply(a.bind,arguments)}function c(a,b,e){if(!a)throw Error();if(2<arguments.length){var t=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(e,t),a.apply(b,e)}}return function(){return a.apply(b,arguments)}}function p(a,b,e){return(p=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:c).apply(null,arguments)}var q=Date.now||function(){return+new Date};function d(a,b){this.a=a,this.o=b||a,this.c=this.o.document}var f=!!window.FontFace;function l(a,b,e,t){if(b=a.c.createElement(b),e)for(var n in e)e.hasOwnProperty(n)&&("style"==n?b.style.cssText=e[n]:b.setAttribute(n,e[n]));return t&&b.appendChild(a.c.createTextNode(t)),b}function u(a,b,e){(a=a.c.getElementsByTagName(b)[0])||(a=document.documentElement),a.insertBefore(e,a.lastChild)}function h(a){a.parentNode&&a.parentNode.removeChild(a)}function m(a,b,e){b=b||[],e=e||[];for(var t=a.className.split(/\s+/),n=0;n<b.length;n+=1){for(var r=!1,g=0;g<t.length;g+=1)if(b[n]===t[g]){r=!0;break}r||t.push(b[n])}for(b=[],n=0;n<t.length;n+=1){for(r=!1,g=0;g<e.length;g+=1)if(t[n]===e[g]){r=!0;break}r||b.push(t[n])}a.className=b.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function v(a,b){for(var e=a.className.split(/\s+/),t=0,n=e.length;t<n;t++)if(e[t]==b)return!0;return!1}function y(a,b,e){function t(){o&&n&&r&&(o(g),o=null)}b=l(a,"link",{rel:"stylesheet",href:b,media:"all"});var n=!1,r=!0,g=null,o=e||null;f?(b.onload=function(){n=!0,t()},b.onerror=function(){n=!0,g=Error("Stylesheet failed to load"),t()}):setTimeout((function(){n=!0,t()}),0),u(a,"head",b)}function _(a,b,e,t){var n=a.c.getElementsByTagName("head")[0];if(n){var r=l(a,"script",{src:b}),g=!1;return r.onload=r.onreadystatechange=function(){g||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(g=!0,e&&e(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&n.removeChild(r))},n.appendChild(r),setTimeout((function(){g||(g=!0,e&&e(Error("Script load timeout")))}),t||5e3),r}return null}function w(){this.a=0,this.c=null}function S(a){return a.a++,function(){a.a--,O(a)}}function E(a,b){a.c=b,O(a)}function O(a){0==a.a&&a.c&&(a.c(),a.c=null)}function I(a){this.a=a||"-"}function x(a,b){this.c=a,this.f=4,this.a="n";var e=(b||"n4").match(/^([nio])([1-9])$/i);e&&(this.a=e[1],this.f=parseInt(e[2],10))}function A(a){var b=[];a=a.split(/,\s*/);for(var e=0;e<a.length;e++){var t=a[e].replace(/['"]/g,"");-1!=t.indexOf(" ")||/^\d/.test(t)?b.push("'"+t+"'"):b.push(t)}return b.join(",")}function C(a){return a.a+a.f}function j(a){var b="normal";return"o"===a.a?b="oblique":"i"===a.a&&(b="italic"),b}function k(a){var b=4,e="n",t=null;return a&&((t=a.match(/(normal|oblique|italic)/i))&&t[1]&&(e=t[1].substr(0,1).toLowerCase()),(t=a.match(/([1-9]00|normal|bold)/i))&&t[1]&&(/bold/i.test(t[1])?b=7:/[1-9]00/.test(t[1])&&(b=parseInt(t[1].substr(0,1),10)))),e+b}function M(a,b){this.c=a,this.f=a.o.document.documentElement,this.h=b,this.a=new I("-"),this.j=!1!==b.events,this.g=!1!==b.classes}function T(a){if(a.g){var b=v(a.f,a.a.c("wf","active")),e=[],t=[a.a.c("wf","loading")];b||e.push(a.a.c("wf","inactive")),m(a.f,e,t)}P(a,"inactive")}function P(a,b,e){a.j&&a.h[b]&&(e?a.h[b](e.c,C(e)):a.h[b]())}function $(){this.c={}}function R(a,b){this.c=a,this.f=b,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function D(a){u(a.c,"body",a.a)}function N(a){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+A(a.c)+";font-style:"+j(a)+";font-weight:"+a.f+"00;"}function U(a,b,e,t,n,r){this.g=a,this.j=b,this.a=t,this.c=e,this.f=n||3e3,this.h=r||void 0}function B(a,b,e,t,n,r,g){this.v=a,this.B=b,this.c=e,this.a=t,this.s=g||"BESbswy",this.f={},this.w=n||3e3,this.u=r||null,this.m=this.j=this.h=this.g=null,this.g=new R(this.c,this.s),this.h=new R(this.c,this.s),this.j=new R(this.c,this.s),this.m=new R(this.c,this.s),a=N(a=new x(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=a,a=N(a=new x(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=a,a=N(a=new x("serif",C(this.a))),this.j.a.style.cssText=a,a=N(a=new x("sans-serif",C(this.a))),this.m.a.style.cssText=a,D(this.g),D(this.h),D(this.j),D(this.m)}I.prototype.c=function(a){for(var b=[],e=0;e<arguments.length;e++)b.push(arguments[e].replace(/[\W_]+/g,"").toLowerCase());return b.join(this.a)},U.prototype.start=function(){var a=this.c.o.document,b=this,e=q(),t=new Promise((function(t,n){!function r(){q()-e>=b.f?n():a.fonts.load(function(a){return j(a)+" "+a.f+"00 300px "+A(a.c)}(b.a),b.h).then((function(a){1<=a.length?t():setTimeout(r,25)}),(function(){n()}))}()})),n=null,r=new Promise((function(a,e){n=setTimeout(e,b.f)}));Promise.race([r,t]).then((function(){n&&(clearTimeout(n),n=null),b.g(b.a)}),(function(){b.j(b.a)}))};var L={D:"serif",C:"sans-serif"},z=null;function F(){if(null===z){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);z=!!a&&(536>parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return z}function H(a,b,e){for(var t in L)if(L.hasOwnProperty(t)&&b===a.f[L[t]]&&e===a.f[L[t]])return!0;return!1}function V(a){var e,b=a.g.a.offsetWidth,t=a.h.a.offsetWidth;(e=b===a.f.serif&&t===a.f["sans-serif"])||(e=F()&&H(a,b,t)),e?q()-a.A>=a.w?F()&&H(a,b,t)&&(null===a.u||a.u.hasOwnProperty(a.a.c))?W(a,a.v):W(a,a.B):function(a){setTimeout(p((function(){V(this)}),a),50)}(a):W(a,a.v)}function W(a,b){setTimeout(p((function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),b(this.a)}),a),0)}function K(a,b,e){this.c=a,this.a=b,this.f=0,this.m=this.j=!1,this.s=e}B.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=q(),V(this)};var Y=null;function G(a){0==--a.f&&a.j&&(a.m?((a=a.a).g&&m(a.f,[a.a.c("wf","active")],[a.a.c("wf","loading"),a.a.c("wf","inactive")]),P(a,"active")):T(a.a))}function J(a){this.j=a,this.a=new $,this.h=0,this.f=this.g=!0}function X(a,b,e,t,n){var r=0==--a.h;(a.f||a.g)&&setTimeout((function(){var a=n||null,o=t||{};if(0===e.length&&r)T(b.a);else{b.f+=e.length,r&&(b.j=r);var c,d=[];for(c=0;c<e.length;c++){var f=e[c],l=o[f.c],h=b.a,v=f;if(h.g&&m(h.f,[h.a.c("wf",v.c,C(v).toString(),"loading")]),P(h,"fontloading",v),h=null,null===Y)if(window.FontFace){v=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var y=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);Y=v?42<parseInt(v[1],10):!y}else Y=!1;h=Y?new U(p(b.g,b),p(b.h,b),b.c,f,b.s,l):new B(p(b.g,b),p(b.h,b),b.c,f,b.s,a,l),d.push(h)}for(c=0;c<d.length;c++)d[c].start()}}),0)}function Z(a,b){this.c=a,this.a=b}function Q(a,b){this.c=a,this.a=b}function ee(a,b){this.c=a||te,this.a=[],this.f=[],this.g=b||""}K.prototype.g=function(a){var b=this.a;b.g&&m(b.f,[b.a.c("wf",a.c,C(a).toString(),"active")],[b.a.c("wf",a.c,C(a).toString(),"loading"),b.a.c("wf",a.c,C(a).toString(),"inactive")]),P(b,"fontactive",a),this.m=!0,G(this)},K.prototype.h=function(a){var b=this.a;if(b.g){var e=v(b.f,b.a.c("wf",a.c,C(a).toString(),"active")),t=[],n=[b.a.c("wf",a.c,C(a).toString(),"loading")];e||t.push(b.a.c("wf",a.c,C(a).toString(),"inactive")),m(b.f,t,n)}P(b,"fontinactive",a),G(this)},J.prototype.load=function(a){this.c=new d(this.j,a.context||this.j),this.g=!1!==a.events,this.f=!1!==a.classes,function(a,b,e){var t=[],n=e.timeout;!function(a){a.g&&m(a.f,[a.a.c("wf","loading")]),P(a,"loading")}(b);t=function(a,b,e){var t,n=[];for(t in b)if(b.hasOwnProperty(t)){var r=a.c[t];r&&n.push(r(b[t],e))}return n}(a.a,e,a.c);var r=new K(a.c,b,n);for(a.h=t.length,b=0,e=t.length;b<e;b++)t[b].load((function(b,e,t){X(a,r,b,e,t)}))}(this,new M(this.c,a),a)},Z.prototype.load=function(a){var e=this,t=e.a.projectId,n=e.a.version;if(t){var r=e.c.o;_(this.c,(e.a.api||"https://fast.fonts.net/jsapi")+"/"+t+".js"+(n?"?v="+n:""),(function(n){n?a([]):(r["__MonotypeConfiguration__"+t]=function(){return e.a},function b(){if(r["__mti_fntLst"+t]){var e,n=r["__mti_fntLst"+t](),o=[];if(n)for(var c=0;c<n.length;c++){var d=n[c].fontfamily;null!=n[c].fontStyle&&null!=n[c].fontWeight?(e=n[c].fontStyle+n[c].fontWeight,o.push(new x(d,e))):o.push(new x(d))}a(o)}else setTimeout((function(){b()}),50)}())})).id="__MonotypeAPIScript__"+t}else a([])},Q.prototype.load=function(a){var b,e,t=this.a.urls||[],n=this.a.families||[],r=this.a.testStrings||{},g=new w;for(b=0,e=t.length;b<e;b++)y(this.c,t[b],S(g));var o=[];for(b=0,e=n.length;b<e;b++)if((t=n[b].split(":"))[1])for(var c=t[1].split(","),d=0;d<c.length;d+=1)o.push(new x(t[0],c[d]));else o.push(new x(t[0]));E(g,(function(){a(o,r)}))};var te="https://fonts.googleapis.com/css";function ne(a){this.f=a,this.a=[],this.c={}}var re={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},ie={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},oe={i:"i",italic:"i",n:"n",normal:"n"},ae=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function se(a,b){this.c=a,this.a=b}var ce={Arimo:!0,Cousine:!0,Tinos:!0};function ue(a,b){this.c=a,this.a=b}function de(a,b){this.c=a,this.f=b,this.a=[]}se.prototype.load=function(a){var b=new w,e=this.c,t=new ee(this.a.api,this.a.text),n=this.a.families;!function(a,b){for(var e=b.length,t=0;t<e;t++){var n=b[t].split(":");3==n.length&&a.f.push(n.pop());var r="";2==n.length&&""!=n[1]&&(r=":"),a.a.push(n.join(r))}}(t,n);var r=new ne(n);!function(a){for(var b=a.f.length,e=0;e<b;e++){var t=a.f[e].split(":"),n=t[0].replace(/\+/g," "),r=["n4"];if(2<=t.length){var g;if(g=[],o=t[1])for(var o,c=(o=o.split(",")).length,d=0;d<c;d++){var f;if((f=o[d]).match(/^[\w-]+$/))if(null==(h=ae.exec(f.toLowerCase())))f="";else{if(f=null==(f=h[2])||""==f?"n":oe[f],null==(h=h[1])||""==h)h="4";else var l=ie[h],h=l||(isNaN(h)?"4":h.substr(0,1));f=[f,h].join("")}else f="";f&&g.push(f)}0<g.length&&(r=g),3==t.length&&(g=[],0<(t=(t=t[2])?t.split(","):g).length&&(t=re[t[0]])&&(a.c[n]=t))}for(a.c[n]||(t=re[n])&&(a.c[n]=t),t=0;t<r.length;t+=1)a.a.push(new x(n,r[t]))}}(r),y(e,function(a){if(0==a.a.length)throw Error("No fonts to load!");if(-1!=a.c.indexOf("kit="))return a.c;for(var b=a.a.length,e=[],t=0;t<b;t++)e.push(a.a[t].replace(/ /g,"+"));return b=a.c+"?family="+e.join("%7C"),0<a.f.length&&(b+="&subset="+a.f.join(",")),0<a.g.length&&(b+="&text="+encodeURIComponent(a.g)),b}(t),S(b)),E(b,(function(){a(r.a,r.c,ce)}))},ue.prototype.load=function(a){var b=this.a.id,e=this.c.o;b?_(this.c,(this.a.api||"https://use.typekit.net")+"/"+b+".js",(function(b){if(b)a([]);else if(e.Typekit&&e.Typekit.config&&e.Typekit.config.fn){b=e.Typekit.config.fn;for(var t=[],n=0;n<b.length;n+=2)for(var g=b[n],r=b[n+1],o=0;o<r.length;o++)t.push(new x(g,r[o]));try{e.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}a(t)}}),2e3):a([])},de.prototype.load=function(a){var b=this.f.id,e=this.c.o,t=this;b?(e.__webfontfontdeckmodule__||(e.__webfontfontdeckmodule__={}),e.__webfontfontdeckmodule__[b]=function(b,e){for(var g=0,n=e.fonts.length;g<n;++g){var r=e.fonts[g];t.a.push(new x(r.name,k("font-weight:"+r.weight+";font-style:"+r.style)))}a(t.a)},_(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(a){return a.o.location.hostname||a.a.location.hostname}(this.c)+"/"+b+".js",(function(b){b&&a([])}))):a([])};var fe=new J(window);fe.a.c.custom=function(a,b){return new Q(b,a)},fe.a.c.fontdeck=function(a,b){return new de(b,a)},fe.a.c.monotype=function(a,b){return new Z(b,a)},fe.a.c.typekit=function(a,b){return new ue(b,a)},fe.a.c.google=function(a,b){return new se(b,a)};var le={load:p(fe.load,fe)};void 0===(r=function(){return le}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(20))&&"object"==typeof r&&"default"in r?r.default:r;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return function(e){if(Array.isArray(e)){for(var i=0,t=new Array(e.length);i<e.length;i++)t[i]=e[i];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var f="undefined"!=typeof window;function l(e,t){return t.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}var h={},m={},v={},y=new(o.extend({data:function(){return{transports:h,targets:m,sources:v,trackInstances:f}},methods:{open:function(e){if(f){var t=e.to,n=e.from,r=e.passengers,d=e.order,l=void 0===d?1/0:d;if(t&&n&&r){var h,m={to:t,from:n,passengers:(h=r,Array.isArray(h)||"object"===c(h)?Object.freeze(h):h),order:l};-1===Object.keys(this.transports).indexOf(t)&&o.set(this.transports,t,[]);var v,y=this.$_getTransportIndex(m),_=this.transports[t].slice(0);-1===y?_.push(m):_[y]=m,this.transports[t]=(v=function(a,b){return a.order-b.order},_.map((function(e,t){return[t,e]})).sort((function(a,b){return v(a[1],b[1])||a[0]-b[0]})).map((function(e){return e[1]})))}}},close:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.to,r=e.from;if(n&&(r||!1!==t)&&this.transports[n])if(t)this.transports[n]=[];else{var o=this.$_getTransportIndex(e);if(o>=0){var c=this.transports[n].slice(0);c.splice(o,1),this.transports[n]=c}}},registerTarget:function(e,t,n){f&&(this.trackInstances&&!n&&this.targets[e]&&console.warn("[portal-vue]: Target ".concat(e," already exists")),this.$set(this.targets,e,Object.freeze([t])))},unregisterTarget:function(e){this.$delete(this.targets,e)},registerSource:function(source,e,t){f&&(this.trackInstances&&!t&&this.sources[source]&&console.warn("[portal-vue]: source ".concat(source," already exists")),this.$set(this.sources,source,Object.freeze([e])))},unregisterSource:function(source){this.$delete(this.sources,source)},hasTarget:function(e){return!(!this.targets[e]||!this.targets[e][0])},hasSource:function(e){return!(!this.sources[e]||!this.sources[e][0])},hasContentFor:function(e){return!!this.transports[e]&&!!this.transports[e].length},$_getTransportIndex:function(e){var t=e.to,n=e.from;for(var i in this.transports[t])if(this.transports[t][i].from===n)return+i;return-1}}}))(h),_=1,w=o.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(_++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var e=this;this.$nextTick((function(){y.registerSource(e.name,e)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){y.unregisterSource(this.name),this.clear()},watch:{to:function(e,t){t&&t!==e&&this.clear(t),this.sendUpdate()}},methods:{clear:function(e){var t={from:this.name,to:e||this.to};y.close(t)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(e){return"function"==typeof e?e(this.slotProps):e},sendUpdate:function(){var e=this.normalizeSlots();if(e){var t={from:this.name,to:this.to,passengers:d(e),order:this.order};y.open(t)}else this.clear()}},render:function(e){var t=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return t&&this.disabled?t.length<=1&&this.slim?this.normalizeOwnChildren(t)[0]:e(n,[this.normalizeOwnChildren(t)]):this.slim?e():e(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),S=o.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:y.transports,firstRender:!0}},created:function(){var e=this;this.$nextTick((function(){y.registerTarget(e.name,e)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(e,t){y.unregisterTarget(t),y.registerTarget(e,this)}},mounted:function(){var e=this;this.transition&&this.$nextTick((function(){e.firstRender=!1}))},beforeDestroy:function(){y.unregisterTarget(this.name)},computed:{ownTransports:function(){var e=this.transports[this.name]||[];return this.multiple?e:0===e.length?[]:[e[e.length-1]]},passengers:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce((function(e,n){var r=n.passengers[0],o="function"==typeof r?r(t):n.passengers;return e.concat(o)}),[])}(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var e=this.slim&&!this.transition;return e&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),e}},render:function(e){var t=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return t?n[0]:this.slim&&!r?e():e(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),E=0,O=["disabled","name","order","slim","slotProps","tag","to"],I=["multiple","transition"],x=o.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(E++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var e=document.querySelector(this.mountTo);if(e){var t=this.$props;if(y.targets[t.name])t.bail?console.warn("[portal-vue]: Target ".concat(t.name," is already mounted.\n        Aborting because 'bail: true' is set")):this.portalTarget=y.targets[t.name];else{var n=t.append;if(n){var r="string"==typeof n?n:"DIV",o=document.createElement(r);e.appendChild(o),e=o}var c=l(this.$props,I);c.slim=this.targetSlim,c.tag=this.targetTag,c.slotProps=this.targetSlotProps,c.name=this.to,this.portalTarget=new S({el:e,parent:this.$parent||this,propsData:c})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var e=this.portalTarget;if(this.append){var t=e.$el;t.parentNode.removeChild(t)}e.$destroy()},render:function(e){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),e();if(!this.$scopedSlots.manual){var t=l(this.$props,O);return e(w,{props:t,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var content=this.$scopedSlots.manual({to:this.to});return Array.isArray(content)&&(content=content[0]),content||e()}});var A={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.portalName||"Portal",w),e.component(t.portalTargetName||"PortalTarget",S),e.component(t.MountingPortalName||"MountingPortal",x)}};t.default=A,t.Portal=w,t.PortalTarget=S,t.MountingPortal=x,t.Wormhole=y},,function(e,t,n){e.exports=n(974).default},function(e,t,n){"use strict";n.d(t,"a",(function(){return W}));var r=window,o=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.msRequestAnimationFrame||function(e){return setTimeout(e,16)},c=window,d=c.cancelAnimationFrame||c.mozCancelAnimationFrame||function(e){clearTimeout(e)};function f(){for(var e,t,n,r=arguments[0]||{},i=1,o=arguments.length;i<o;i++)if(null!==(e=arguments[i]))for(t in e)r!==(n=e[t])&&void 0!==n&&(r[t]=n);return r}function l(e){return["true","false"].indexOf(e)>=0?JSON.parse(e):e}function h(e,t,n,r){if(r)try{e.setItem(t,n)}catch(e){}return n}function m(){var e=document,body=e.body;return body||((body=e.createElement("body")).fake=!0),body}var v=document.documentElement;function y(body){var e="";return body.fake&&(e=v.style.overflow,body.style.background="",body.style.overflow=v.style.overflow="hidden",v.appendChild(body)),e}function _(body,e){body.fake&&(body.remove(),v.style.overflow=e,v.offsetHeight)}function w(e,t,n,r){"insertRule"in e?e.insertRule(t+"{"+n+"}",r):e.addRule(t,n,r)}function S(e){return("insertRule"in e?e.cssRules:e.rules).length}function E(e,t,n){for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i)}var O="classList"in document.createElement("_"),I=O?function(e,t){return e.classList.contains(t)}:function(e,t){return e.className.indexOf(t)>=0},x=O?function(e,t){I(e,t)||e.classList.add(t)}:function(e,t){I(e,t)||(e.className+=" "+t)},A=O?function(e,t){I(e,t)&&e.classList.remove(t)}:function(e,t){I(e,t)&&(e.className=e.className.replace(t,""))};function C(e,t){return e.hasAttribute(t)}function j(e,t){return e.getAttribute(t)}function k(e){return void 0!==e.item}function M(e,t){if(e=k(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var i=e.length;i--;)for(var n in t)e[i].setAttribute(n,t[n])}function T(e,t){e=k(e)||e instanceof Array?e:[e];for(var n=(t=t instanceof Array?t:[t]).length,i=e.length;i--;)for(var r=n;r--;)e[i].removeAttribute(t[r])}function P(e){for(var t=[],i=0,n=e.length;i<n;i++)t.push(e[i]);return t}function $(e,t){"none"!==e.style.display&&(e.style.display="none")}function R(e,t){"none"===e.style.display&&(e.style.display="")}function D(e){return"none"!==window.getComputedStyle(e).display}function N(e){if("string"==typeof e){var t=[e],n=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach((function(r){"ms"===r&&"transform"!==e||t.push(r+n)})),e=t}for(var r=document.createElement("fakeelement"),i=(e.length,0);i<e.length;i++){var o=e[i];if(void 0!==r.style[o])return o}return!1}function U(e,t){var n=!1;return/^Webkit/.test(e)?n="webkit"+t+"End":/^O/.test(e)?n="o"+t+"End":e&&(n=t.toLowerCase()+"end"),n}var B=!1;try{var L=Object.defineProperty({},"passive",{get:function(){B=!0}});window.addEventListener("test",null,L)}catch(e){}var z=!!B&&{passive:!0};function F(e,t,n){for(var r in t){var option=["touchstart","touchmove"].indexOf(r)>=0&&!n&&z;e.addEventListener(r,t[r],option)}}function H(e,t){for(var n in t){var option=["touchstart","touchmove"].indexOf(n)>=0&&z;e.removeEventListener(n,t[n],option)}}function V(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var i=0;i<this.topics[e].length;i++)if(this.topics[e][i]===t){this.topics[e].splice(i,1);break}},emit:function(e,data){data.type=e,this.topics[e]&&this.topics[e].forEach((function(t){t(data,e)}))}}}Object.keys||(Object.keys=function(object){var e=[];for(var t in object)Object.prototype.hasOwnProperty.call(object,t)&&e.push(t);return e}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var W=function(e){e=f({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,nonce:!1},e||{});var t=document,n=window,r={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},c={},v=e.useLocalStorage;if(v){var O=navigator.userAgent,k=new Date;try{(c=n.localStorage)?(c.setItem(k,k),v=c.getItem(k)==k,c.removeItem(k)):v=!1,v||(c={})}catch(e){v=!1}v&&(c.tnsApp&&c.tnsApp!==O&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach((function(e){c.removeItem(e)})),localStorage.tnsApp=O)}var B=c.tC?l(c.tC):h(c,"tC",function(){var e=document,body=m(),t=y(body),div=e.createElement("div"),n=!1;body.appendChild(div);try{for(var r,o="(10px * 10)",c=["calc"+o,"-moz-calc"+o,"-webkit-calc"+o],i=0;i<3;i++)if(r=c[i],div.style.width=r,100===div.offsetWidth){n=r.replace(o,"");break}}catch(e){}return body.fake?_(body,t):div.remove(),n}(),v),L=c.tPL?l(c.tPL):h(c,"tPL",function(){var e,t=document,body=m(),n=y(body),r=t.createElement("div"),o=t.createElement("div"),c="";r.className="tns-t-subp2",o.className="tns-t-ct";for(var i=0;i<70;i++)c+="<div></div>";return o.innerHTML=c,r.appendChild(o),body.appendChild(r),e=Math.abs(r.getBoundingClientRect().left-o.children[67].getBoundingClientRect().left)<2,body.fake?_(body,n):r.remove(),e}(),v),z=c.tMQ?l(c.tMQ):h(c,"tMQ",function(){if(window.matchMedia||window.msMatchMedia)return!0;var e,t=document,body=m(),n=y(body),div=t.createElement("div"),style=t.createElement("style"),r="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return style.type="text/css",div.className="tns-mq-test",body.appendChild(style),body.appendChild(div),style.styleSheet?style.styleSheet.cssText=r:style.appendChild(t.createTextNode(r)),e=window.getComputedStyle?window.getComputedStyle(div).position:div.currentStyle.position,body.fake?_(body,n):div.remove(),"absolute"===e}(),v),K=c.tTf?l(c.tTf):h(c,"tTf",N("transform"),v),Y=c.t3D?l(c.t3D):h(c,"t3D",function(e){if(!e)return!1;if(!window.getComputedStyle)return!1;var t,n=document,body=m(),r=y(body),o=n.createElement("p"),c=e.length>9?"-"+e.slice(0,-9).toLowerCase()+"-":"";return c+="transform",body.insertBefore(o,null),o.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(o).getPropertyValue(c),body.fake?_(body,r):o.remove(),void 0!==t&&t.length>0&&"none"!==t}(K),v),G=c.tTDu?l(c.tTDu):h(c,"tTDu",N("transitionDuration"),v),J=c.tTDe?l(c.tTDe):h(c,"tTDe",N("transitionDelay"),v),X=c.tADu?l(c.tADu):h(c,"tADu",N("animationDuration"),v),Z=c.tADe?l(c.tADe):h(c,"tADe",N("animationDelay"),v),Q=c.tTE?l(c.tTE):h(c,"tTE",U(G,"Transition"),v),ee=c.tAE?l(c.tAE):h(c,"tAE",U(X,"Animation"),v),te=n.console&&"function"==typeof n.console.warn,ne=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],re={};if(ne.forEach((function(n){if("string"==typeof e[n]){var r=e[n],o=t.querySelector(r);if(re[n]=r,!o||!o.nodeName)return void(te&&console.warn("Can't find",e[n]));e[n]=o}})),!(e.container.children.length<1)){var ie=e.responsive,oe=e.nested,ae="carousel"===e.mode;if(ie){0 in ie&&(e=f(e,ie[0]),delete ie[0]);var se={};for(var ce in ie){var ue=ie[ce];ue="number"==typeof ue?{items:ue}:ue,se[ce]=ue}ie=se,se=null}if(ae||function e(t){for(var n in t)ae||("slideBy"===n&&(t[n]="page"),"edgePadding"===n&&(t[n]=!1),"autoHeight"===n&&(t[n]=!1)),"responsive"===n&&e(t[n])}(e),!ae){e.axis="horizontal",e.slideBy="page",e.edgePadding=!1;var de=e.animateIn,fe=e.animateOut,le=e.animateDelay,he=e.animateNormal}var pe,ge,me="horizontal"===e.axis,be=t.createElement("div"),ve=t.createElement("div"),ye=e.container,_e=ye.parentNode,we=ye.outerHTML,Se=ye.children,Ee=Se.length,Oe=zn(),Ie=!1;ie&&cr(),ae&&(ye.className+=" tns-vpfix");var xe,Ae,Ce,je,ke,Me,Te,Pe,style,$e=e.autoWidth,Re=Vn("fixedWidth"),De=Vn("edgePadding"),Ne=Vn("gutter"),Ue=Fn(),Be=Vn("center"),Le=$e?1:Math.floor(Vn("items")),ze=Vn("slideBy"),qe=e.viewportMax||e.fixedWidthViewportWidth,Fe=Vn("arrowKeys"),He=Vn("speed"),Ve=e.rewind,We=!Ve&&e.loop,Ke=Vn("autoHeight"),Ye=Vn("controls"),Ge=Vn("controlsText"),nav=Vn("nav"),Je=Vn("touch"),Xe=Vn("mouseDrag"),Ze=Vn("autoplay"),Qe=Vn("autoplayTimeout"),et=Vn("autoplayText"),tt=Vn("autoplayHoverPause"),nt=Vn("autoplayResetOnVisibility"),it=(Te=null,Pe=Vn("nonce"),style=document.createElement("style"),Te&&style.setAttribute("media",Te),Pe&&style.setAttribute("nonce",Pe),document.querySelector("head").appendChild(style),style.sheet?style.sheet:style.styleSheet),ot=e.lazyload,at=e.lazyloadSelector,st=[],ct=We?(ke=function(){if($e||Re&&!qe)return Ee-1;var t=Re?"fixedWidth":"items",n=[];if((Re||e[t]<Ee)&&n.push(e[t]),ie)for(var r in ie){var o=ie[r][t];o&&(Re||o<Ee)&&n.push(o)}return n.length||n.push(0),Math.ceil(Re?qe/Math.min.apply(null,n):Math.max.apply(null,n))}(),Me=ae?Math.ceil((5*ke-Ee)/2):4*ke-Ee,Me=Math.max(ke,Me),Hn("edgePadding")?Me+1:Me):0,ut=ae?Ee+2*ct:Ee+ct,ft=!(!Re&&!$e||We),lt=Re?Dr():null,ht=!ae||!We,pt=me?"left":"top",gt="",mt="",bt=Re?function(){return Be&&!We?Ee-1:Math.ceil(-lt/(Re+Ne))}:$e?function(){for(var i=0;i<ut;i++)if(xe[i]>=-lt)return i}:function(){return Be&&ae&&!We?Ee-1:We||ae?Math.max(0,ut-Math.ceil(Le)):ut-1},vt=Un(Vn("startIndex")),yt=vt,_t=(Nn(),0),wt=$e?null:bt(),St=e.preventActionWhenRunning,Et=e.swipeAngle,Ot=!Et||"?",It=!1,xt=e.onInit,At=new V,Ct=" tns-slider tns-"+e.mode,jt=ye.id||(je=window.tnsId,window.tnsId=je?je+1:1,"tns"+window.tnsId),kt=Vn("disable"),Mt=!1,Tt=e.freezable,Pt=!(!Tt||$e)&&sr(),$t=!1,Rt={click:Vr,keydown:function(e){e=Qr(e);var t=[r.LEFT,r.RIGHT].indexOf(e.keyCode);t>=0&&(0===t?rn.disabled||Vr(e,-1):on.disabled||Vr(e,1))}},Dt={click:function(e){if(It){if(St)return;Fr()}var t=ei(e=Qr(e));for(;t!==un&&!C(t,"data-nav");)t=t.parentNode;if(C(t,"data-nav")){var n=hn=Number(j(t,"data-nav")),r=Re||$e?n*Ee/fn:n*Le;Hr(Ht?n:Math.min(Math.ceil(r),Ee-1),e),pn===n&&(_n&&Jr(),hn=-1)}},keydown:function(e){e=Qr(e);var n=t.activeElement;if(!C(n,"data-nav"))return;var o=[r.LEFT,r.RIGHT,r.ENTER,r.SPACE].indexOf(e.keyCode),c=Number(j(n,"data-nav"));o>=0&&(0===o?c>0&&Zr(cn[c-1]):1===o?c<fn-1&&Zr(cn[c+1]):(hn=c,Hr(c,e)))}},Nt={mouseover:function(){_n&&(Kr(),wn=!0)},mouseout:function(){wn&&(Wr(),wn=!1)}},Ut={visibilitychange:function(){t.hidden?_n&&(Kr(),En=!0):En&&(Wr(),En=!1)}},Bt={keydown:function(e){e=Qr(e);var t=[r.LEFT,r.RIGHT].indexOf(e.keyCode);t>=0&&Vr(e,0===t?-1:1)}},Lt={touchstart:ii,touchmove:oi,touchend:ai,touchcancel:ai},zt={mousedown:ii,mousemove:oi,mouseup:ai,mouseleave:ai},qt=Hn("controls"),Ft=Hn("nav"),Ht=!!$e||e.navAsThumbnails,Vt=Hn("autoplay"),Wt=Hn("touch"),Kt=Hn("mouseDrag"),Yt="tns-slide-active",Gt="tns-slide-cloned",Jt="tns-complete",Xt={load:function(e){yr(ei(e))},error:function(e){img=ei(e),x(img,"failed"),_r(img);var img}},Zt="force"===e.preventScrollOnTouch;if(qt)var Qt,en,tn=e.controlsContainer,nn=e.controlsContainer?e.controlsContainer.outerHTML:"",rn=e.prevButton,on=e.nextButton,an=e.prevButton?e.prevButton.outerHTML:"",sn=e.nextButton?e.nextButton.outerHTML:"";if(Ft)var cn,un=e.navContainer,dn=e.navContainer?e.navContainer.outerHTML:"",fn=$e?Ee:ci(),ln=0,hn=-1,pn=Ln(),gn=pn,mn="tns-nav-active",bn="Carousel Page ",vn=" (Current Slide)";if(Vt)var yn,_n,wn,Sn,En,On="forward"===e.autoplayDirection?1:-1,In=e.autoplayButton,xn=e.autoplayButton?e.autoplayButton.outerHTML:"",An=["<span class='tns-visually-hidden'>"," animation</span>"];if(Wt||Kt)var Cn,jn,kn={},Mn={},Tn=!1,Pn=me?function(a,b){return a.x-b.x}:function(a,b){return a.y-b.y};$e||Dn(kt||Pt),K&&(pt=K,gt="translate",Y?(gt+=me?"3d(":"3d(0px, ",mt=me?", 0px, 0px)":", 0px)"):(gt+=me?"X(":"Y(",mt=")")),ae&&(ye.className=ye.className.replace("tns-vpfix","")),function(){Hn("gutter");be.className="tns-outer",ve.className="tns-inner",be.id=jt+"-ow",ve.id=jt+"-iw",""===ye.id&&(ye.id=jt);Ct+=L||$e?" tns-subpixel":" tns-no-subpixel",Ct+=B?" tns-calc":" tns-no-calc",$e&&(Ct+=" tns-autowidth");Ct+=" tns-"+e.axis,ye.className+=Ct,ae?((pe=t.createElement("div")).id=jt+"-mw",pe.className="tns-ovh",be.appendChild(pe),pe.appendChild(ve)):be.appendChild(ve);if(Ke){(pe||ve).className+=" tns-ah"}if(_e.insertBefore(be,ye),ve.appendChild(ye),E(Se,(function(e,i){x(e,"tns-item"),e.id||(e.id=jt+"-item"+i),!ae&&he&&x(e,he),M(e,{"aria-hidden":"true",tabindex:"-1"})})),ct){for(var n=t.createDocumentFragment(),r=t.createDocumentFragment(),o=ct;o--;){var c=o%Ee,d=Se[c].cloneNode(!0);if(x(d,Gt),T(d,"id"),r.insertBefore(d,r.firstChild),ae){var f=Se[Ee-1-c].cloneNode(!0);x(f,Gt),T(f,"id"),n.appendChild(f)}}ye.insertBefore(n,ye.firstChild),ye.appendChild(r),Se=ye.children}}(),function(){if(!ae)for(var i=vt,t=vt+Math.min(Ee,Le);i<t;i++){var r=Se[i];r.style.left=100*(i-vt)/Le+"%",x(r,de),A(r,he)}me&&(L||$e?(w(it,"#"+jt+" > .tns-item","font-size:"+n.getComputedStyle(Se[0]).fontSize+";",S(it)),w(it,"#"+jt,"font-size:0;",S(it))):ae&&E(Se,(function(e,i){e.style.marginLeft=function(i){return B?B+"("+100*i+"% / "+ut+")":100*i/ut+"%"}(i)})));if(z){if(G){var o=pe&&e.autoHeight?Xn(e.speed):"";w(it,"#"+jt+"-mw",o,S(it))}o=Wn(e.edgePadding,e.gutter,e.fixedWidth,e.speed,e.autoHeight),w(it,"#"+jt+"-iw",o,S(it)),ae&&(o=me&&!$e?"width:"+Kn(e.fixedWidth,e.gutter,e.items)+";":"",G&&(o+=Xn(He)),w(it,"#"+jt,o,S(it))),o=me&&!$e?Yn(e.fixedWidth,e.gutter,e.items):"",e.gutter&&(o+=Gn(e.gutter)),ae||(G&&(o+=Xn(He)),X&&(o+=Zn(He))),o&&w(it,"#"+jt+" > .tns-item",o,S(it))}else{ae&&Ke&&(pe.style[G]=He/1e3+"s"),ve.style.cssText=Wn(De,Ne,Re,Ke),ae&&me&&!$e&&(ye.style.width=Kn(Re,Ne,Le));o=me&&!$e?Yn(Re,Ne,Le):"";Ne&&(o+=Gn(Ne)),o&&w(it,"#"+jt+" > .tns-item",o,S(it))}if(ie&&z)for(var c in ie){c=parseInt(c);var d=ie[c],f=(o="",""),l="",h="",m="",v=$e?null:Vn("items",c),y=Vn("fixedWidth",c),_=Vn("speed",c),O=Vn("edgePadding",c),I=Vn("autoHeight",c),C=Vn("gutter",c);G&&pe&&Vn("autoHeight",c)&&"speed"in d&&(f="#"+jt+"-mw{"+Xn(_)+"}"),("edgePadding"in d||"gutter"in d)&&(l="#"+jt+"-iw{"+Wn(O,C,y,_,I)+"}"),ae&&me&&!$e&&("fixedWidth"in d||"items"in d||Re&&"gutter"in d)&&(h="width:"+Kn(y,C,v)+";"),G&&"speed"in d&&(h+=Xn(_)),h&&(h="#"+jt+"{"+h+"}"),("fixedWidth"in d||Re&&"gutter"in d||!ae&&"items"in d)&&(m+=Yn(y,C,v)),"gutter"in d&&(m+=Gn(C)),!ae&&"speed"in d&&(G&&(m+=Xn(_)),X&&(m+=Zn(_))),m&&(m="#"+jt+" > .tns-item{"+m+"}"),(o=f+l+h+m)&&it.insertRule("@media (min-width: "+c/16+"em) {"+o+"}",it.cssRules.length)}}(),Qn();var $n=We?ae?function(){var e=_t,t=wt;e+=ze,t-=ze,De?(e+=1,t-=1):Re&&(Ue+Ne)%(Re+Ne)&&(t-=1),ct&&(vt>t?vt-=Ee:vt<e&&(vt+=Ee))}:function(){if(vt>wt)for(;vt>=_t+Ee;)vt-=Ee;else if(vt<_t)for(;vt<=wt-Ee;)vt+=Ee}:function(){vt=Math.max(_t,Math.min(wt,vt))},Rn=ae?function(){var element,e,t,n,r,o,c,d,f,l,h;$r(ye,""),G||!He?(Br(),He&&D(ye)||Fr()):(element=ye,e=pt,t=gt,n=mt,r=Nr(),o=He,c=Fr,d=Math.min(o,10),f=r.indexOf("%")>=0?"%":"px",r=r.replace(f,""),l=Number(element.style[e].replace(t,"").replace(n,"").replace(f,"")),h=(r-l)/o*d,setTimeout((function r(){o-=d,l+=h,element.style[e]=t+l+f+n,o>0?setTimeout(r,d):c()}),d)),me||si()}:function(){st=[];var e={};e[Q]=e[ee]=Fr,H(Se[yt],e),F(Se[vt],e),Lr(yt,de,fe,!0),Lr(vt,he,de),Q&&ee&&He&&D(ye)||Fr()};return{version:"2.9.3",getInfo:di,events:At,goTo:Hr,play:function(){Ze&&!_n&&(Gr(),Sn=!1)},pause:function(){_n&&(Jr(),Sn=!0)},isOn:Ie,updateSliderHeight:xr,refresh:Qn,destroy:function(){if(it.disabled=!0,it.ownerNode&&it.ownerNode.remove(),H(n,{resize:or}),Fe&&H(t,Bt),tn&&H(tn,Rt),un&&H(un,Dt),H(ye,Nt),H(ye,Ut),In&&H(In,{click:Xr}),Ze&&clearInterval(yn),ae&&Q){var r={};r[Q]=Fr,H(ye,r)}Je&&H(ye,Lt),Xe&&H(ye,zt);var o=[we,nn,an,sn,dn,xn];for(var a in ne.forEach((function(t,i){var n="container"===t?be:e[t];if("object"==typeof n&&n){var r=!!n.previousElementSibling&&n.previousElementSibling,c=n.parentNode;n.outerHTML=o[i],e[t]=r?r.nextElementSibling:c.firstElementChild}})),ne=de=fe=le=he=me=be=ve=ye=_e=we=Se=Ee=ge=Oe=$e=Re=De=Ne=Ue=Le=ze=qe=Fe=He=Ve=We=Ke=it=ot=xe=st=ct=ut=ft=lt=ht=pt=gt=mt=bt=vt=yt=_t=wt=Et=Ot=It=xt=At=Ct=jt=kt=Mt=Tt=Pt=$t=Rt=Dt=Nt=Ut=Bt=Lt=zt=qt=Ft=Ht=Vt=Wt=Kt=Yt=Jt=Xt=Ae=Ye=Ge=tn=nn=rn=on=Qt=en=nav=un=dn=cn=fn=ln=hn=pn=gn=mn=bn=vn=Ze=Qe=On=et=tt=In=xn=nt=An=yn=_n=wn=Sn=En=kn=Mn=Cn=Tn=jn=Pn=Je=Xe=null,this)"rebuild"!==a&&(this[a]=null);Ie=!1},rebuild:function(){return W(f(e,re))}}}function Dn(e){e&&(Ye=nav=Je=Xe=Fe=Ze=tt=nt=!1)}function Nn(){for(var e=ae?vt-ct:vt;e<0;)e+=Ee;return e%Ee+1}function Un(e){return e=e?Math.max(0,Math.min(We?Ee-1:Ee-Le,e)):0,ae?e+ct:e}function Bn(i){for(null==i&&(i=vt),ae&&(i-=ct);i<0;)i+=Ee;return Math.floor(i%Ee)}function Ln(){var e,t=Bn();return e=Ht?t:Re||$e?Math.ceil((t+1)*fn/Ee-1):Math.floor(t/Le),!We&&ae&&vt===wt&&(e=fn-1),e}function zn(){return n.innerWidth||t.documentElement.clientWidth||t.body.clientWidth}function qn(e){return"top"===e?"afterbegin":"beforeend"}function Fn(){var e=De?2*De-Ne:0;return function e(n){if(null!=n){var rect,r,div=t.createElement("div");return n.appendChild(div),r=(rect=div.getBoundingClientRect()).right-rect.left,div.remove(),r||e(n.parentNode)}}(_e)-e}function Hn(t){if(e[t])return!0;if(ie)for(var n in ie)if(ie[n][t])return!0;return!1}function Vn(t,n){if(null==n&&(n=Oe),"items"===t&&Re)return Math.floor((Ue+Ne)/(Re+Ne))||1;var r=e[t];if(ie)for(var o in ie)n>=parseInt(o)&&t in ie[o]&&(r=ie[o][t]);return"slideBy"===t&&"page"===r&&(r=Vn("items")),ae||"slideBy"!==t&&"items"!==t||(r=Math.floor(r)),r}function Wn(e,t,n,r,o){var c="";if(void 0!==e){var d=e;t&&(d-=t),c=me?"margin: 0 "+d+"px 0 "+e+"px;":"margin: "+e+"px 0 "+d+"px 0;"}else if(t&&!n){var f="-"+t+"px";c="margin: 0 "+(me?f+" 0 0":"0 "+f+" 0")+";"}return!ae&&o&&G&&r&&(c+=Xn(r)),c}function Kn(e,t,n){return e?(e+t)*ut+"px":B?B+"("+100*ut+"% / "+n+")":100*ut/n+"%"}function Yn(e,t,n){var r;if(e)r=e+t+"px";else{ae||(n=Math.floor(n));var o=ae?ut:n;r=B?B+"(100% / "+o+")":100/o+"%"}return r="width:"+r,"inner"!==oe?r+";":r+" !important;"}function Gn(e){var t="";!1!==e&&(t=(me?"padding-":"margin-")+(me?"right":"bottom")+": "+e+"px;");return t}function Jn(e,t){var n=e.substring(0,e.length-t).toLowerCase();return n&&(n="-"+n+"-"),n}function Xn(e){return Jn(G,18)+"transition-duration:"+e/1e3+"s;"}function Zn(e){return Jn(X,17)+"animation-duration:"+e/1e3+"s;"}function Qn(){if(Hn("autoHeight")||$e||!me){var e=ye.querySelectorAll("img");E(e,(function(img){var e=img.src;ot||(e&&e.indexOf("data:image")<0?(img.src="",F(img,Xt),x(img,"loading"),img.src=e):yr(img))})),o((function(){Er(P(e),(function(){Ae=!0}))})),Hn("autoHeight")&&(e=wr(vt,Math.min(vt+Le-1,ut-1))),ot?er():o((function(){Er(P(e),er)}))}else ae&&Ur(),rr(),ir()}function er(){if($e&&Ee>1){var e=We?vt:Ee-1;!function t(){var n=Se[e].getBoundingClientRect().left,r=Se[e-1].getBoundingClientRect().right;Math.abs(n-r)<=1?nr():setTimeout((function(){t()}),16)}()}else nr()}function nr(){me&&!$e||(Ar(),$e?(lt=Dr(),Tt&&(Pt=sr()),wt=bt(),Dn(kt||Pt)):si()),ae&&Ur(),rr(),ir()}function rr(){if(Cr(),be.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+gr()+"</span>  of "+Ee+"</div>"),Ce=be.querySelector(".tns-liveregion .current"),Vt){var t=Ze?"stop":"start";In?M(In,{"data-action":t}):e.autoplayButtonOutput&&(be.insertAdjacentHTML(qn(e.autoplayPosition),'<button type="button" data-action="'+t+'">'+An[0]+t+An[1]+et[0]+"</button>"),In=be.querySelector("[data-action]")),In&&F(In,{click:Xr}),Ze&&(Gr(),tt&&F(ye,Nt),nt&&F(ye,Ut))}if(Ft){if(un)M(un,{"aria-label":"Carousel Pagination"}),E(cn=un.children,(function(e,i){M(e,{"data-nav":i,tabindex:"-1","aria-label":bn+(i+1),"aria-controls":jt})}));else{for(var n="",r=Ht?"":'style="display:none"',i=0;i<Ee;i++)n+='<button type="button" data-nav="'+i+'" tabindex="-1" aria-controls="'+jt+'" '+r+' aria-label="'+bn+(i+1)+'"></button>';n='<div class="tns-nav" aria-label="Carousel Pagination">'+n+"</div>",be.insertAdjacentHTML(qn(e.navPosition),n),un=be.querySelector(".tns-nav"),cn=un.children}if(ui(),G){var o=G.substring(0,G.length-18).toLowerCase(),c="transition: all "+He/1e3+"s";o&&(c="-"+o+"-"+c),w(it,"[aria-controls^="+jt+"-item]",c,S(it))}M(cn[pn],{"aria-label":bn+(pn+1)+vn}),T(cn[pn],"tabindex"),x(cn[pn],mn),F(un,Dt)}qt&&(tn||rn&&on||(be.insertAdjacentHTML(qn(e.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+jt+'">'+Ge[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+jt+'">'+Ge[1]+"</button></div>"),tn=be.querySelector(".tns-controls")),rn&&on||(rn=tn.children[0],on=tn.children[1]),e.controlsContainer&&M(tn,{"aria-label":"Carousel Navigation",tabindex:"0"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&M([rn,on],{"aria-controls":jt,tabindex:"-1"}),(e.controlsContainer||e.prevButton&&e.nextButton)&&(M(rn,{"data-controls":"prev"}),M(on,{"data-controls":"next"})),Qt=kr(rn),en=kr(on),Pr(),tn?F(tn,Rt):(F(rn,Rt),F(on,Rt))),ur()}function ir(){if(ae&&Q){var r={};r[Q]=Fr,F(ye,r)}Je&&F(ye,Lt,e.preventScrollOnTouch),Xe&&F(ye,zt),Fe&&F(t,Bt),"inner"===oe?At.on("outerResized",(function(){ar(),At.emit("innerLoaded",di())})):(ie||Re||$e||Ke||!me)&&F(n,{resize:or}),Ke&&("outer"===oe?At.on("innerLoaded",Sr):kt||Sr()),vr(),kt?lr():Pt&&fr(),At.on("indexChanged",Or),"inner"===oe&&At.emit("innerLoaded",di()),"function"==typeof xt&&xt(di()),Ie=!0}function or(e){o((function(){ar(Qr(e))}))}function ar(n){if(Ie){"outer"===oe&&At.emit("outerResized",di(n)),Oe=zn();var r,o=ge,c=!1;ie&&(cr(),(r=o!==ge)&&At.emit("newBreakpointStart",di(n)));var d,f,l=Le,h=kt,m=Pt,v=Fe,y=Ye,_=nav,O=Je,I=Xe,C=Ze,j=tt,k=nt,M=vt;if(r){var T=Re,P=Ke,D=Ge,N=Be,U=et;if(!z)var B=Ne,L=De}if(Fe=Vn("arrowKeys"),Ye=Vn("controls"),nav=Vn("nav"),Je=Vn("touch"),Be=Vn("center"),Xe=Vn("mouseDrag"),Ze=Vn("autoplay"),tt=Vn("autoplayHoverPause"),nt=Vn("autoplayResetOnVisibility"),r&&(kt=Vn("disable"),Re=Vn("fixedWidth"),He=Vn("speed"),Ke=Vn("autoHeight"),Ge=Vn("controlsText"),et=Vn("autoplayText"),Qe=Vn("autoplayTimeout"),z||(De=Vn("edgePadding"),Ne=Vn("gutter"))),Dn(kt),Ue=Fn(),me&&!$e||kt||(Ar(),me||(si(),c=!0)),(Re||$e)&&(lt=Dr(),wt=bt()),(r||Re)&&(Le=Vn("items"),ze=Vn("slideBy"),(f=Le!==l)&&(Re||$e||(wt=bt()),$n())),r&&kt!==h&&(kt?lr():function(){if(!Mt)return;if(it.disabled=!1,ye.className+=Ct,Ur(),We)for(var e=ct;e--;)ae&&R(Se[e]),R(Se[ut-e-1]);if(!ae)for(var i=vt,t=vt+Ee;i<t;i++){var n=Se[i],r=i<vt+Le?de:he;n.style.left=100*(i-vt)/Le+"%",x(n,r)}dr(),Mt=!1}()),Tt&&(r||Re||$e)&&(Pt=sr())!==m&&(Pt?(Br(Nr(Un(0))),fr()):(!function(){if(!$t)return;De&&z&&(ve.style.margin="");if(ct)for(var e="tns-transparent",i=ct;i--;)ae&&A(Se[i],e),A(Se[ut-i-1],e);dr(),$t=!1}(),c=!0)),Dn(kt||Pt),Ze||(tt=nt=!1),Fe!==v&&(Fe?F(t,Bt):H(t,Bt)),Ye!==y&&(Ye?tn?R(tn):(rn&&R(rn),on&&R(on)):tn?$(tn):(rn&&$(rn),on&&$(on))),nav!==_&&(nav?(R(un),ui()):$(un)),Je!==O&&(Je?F(ye,Lt,e.preventScrollOnTouch):H(ye,Lt)),Xe!==I&&(Xe?F(ye,zt):H(ye,zt)),Ze!==C&&(Ze?(In&&R(In),_n||Sn||Gr()):(In&&$(In),_n&&Jr())),tt!==j&&(tt?F(ye,Nt):H(ye,Nt)),nt!==k&&(nt?F(t,Ut):H(t,Ut)),r){if(Re===T&&Be===N||(c=!0),Ke!==P&&(Ke||(ve.style.height="")),Ye&&Ge!==D&&(rn.innerHTML=Ge[0],on.innerHTML=Ge[1]),In&&et!==U){var i=Ze?1:0,html=In.innerHTML,V=html.length-U[i].length;html.substring(V)===U[i]&&(In.innerHTML=html.substring(0,V)+et[i])}}else Be&&(Re||$e)&&(c=!0);if((f||Re&&!$e)&&(fn=ci(),ui()),(d=vt!==M)?(At.emit("indexChanged",di()),c=!0):f?d||Or():(Re||$e)&&(vr(),Cr(),pr()),f&&!ae&&function(){for(var e=vt+Math.min(Ee,Le),i=ut;i--;){var t=Se[i];i>=vt&&i<e?(x(t,"tns-moving"),t.style.left=100*(i-vt)/Le+"%",x(t,de),A(t,he)):t.style.left&&(t.style.left="",x(t,he),A(t,de)),A(t,fe)}setTimeout((function(){E(Se,(function(e){A(e,"tns-moving")}))}),300)}(),!kt&&!Pt){if(r&&!z&&(De===L&&Ne===B||(ve.style.cssText=Wn(De,Ne,Re,He,Ke)),me)){ae&&(ye.style.width=Kn(Re,Ne,Le));var W=Yn(Re,Ne,Le)+Gn(Ne);!function(e,t){"deleteRule"in e?e.deleteRule(t):e.removeRule(t)}(it,S(it)-1),w(it,"#"+jt+" > .tns-item",W,S(it))}Ke&&Sr(),c&&(Ur(),yt=vt)}r&&At.emit("newBreakpointEnd",di(n))}}function sr(){if(!Re&&!$e)return Ee<=(Be?Le-(Le-1)/2:Le);var e=Re?(Re+Ne)*Ee:xe[Ee],t=De?Ue+2*De:Ue+Ne;return Be&&(t-=Re?(Ue-Re)/2:(Ue-(xe[vt+1]-xe[vt]-Ne))/2),e<=t}function cr(){for(var e in ge=0,ie)e=parseInt(e),Oe>=e&&(ge=e)}function ur(){!Ze&&In&&$(In),!nav&&un&&$(un),Ye||(tn?$(tn):(rn&&$(rn),on&&$(on)))}function dr(){Ze&&In&&R(In),nav&&un&&R(un),Ye&&(tn?R(tn):(rn&&R(rn),on&&R(on)))}function fr(){if(!$t){if(De&&(ve.style.margin="0px"),ct)for(var e="tns-transparent",i=ct;i--;)ae&&x(Se[i],e),x(Se[ut-i-1],e);ur(),$t=!0}}function lr(){if(!Mt){if(it.disabled=!0,ye.className=ye.className.replace(Ct.substring(1),""),T(ye,["style"]),We)for(var e=ct;e--;)ae&&$(Se[e]),$(Se[ut-e-1]);if(me&&ae||T(ve,["style"]),!ae)for(var i=vt,t=vt+Ee;i<t;i++){var n=Se[i];T(n,["style"]),A(n,de),A(n,he)}ur(),Mt=!0}}function pr(){var e=gr();Ce.innerHTML!==e&&(Ce.innerHTML=e)}function gr(){var e=mr(),t=e[0]+1,n=e[1]+1;return t===n?t+"":t+" to "+n}function mr(e){null==e&&(e=Nr());var t,n,r,o=vt;if(Be||De?($e||Re)&&(n=-(parseFloat(e)+De),r=n+Ue+2*De):$e&&(n=xe[vt],r=n+Ue),$e)xe.forEach((function(e,i){i<ut&&((Be||De)&&e<=n+.5&&(o=i),r-e>=.5&&(t=i))}));else{if(Re){var c=Re+Ne;Be||De?(o=Math.floor(n/c),t=Math.ceil(r/c-1)):t=o+Math.ceil(Ue/c)-1}else if(Be||De){var a=Le-1;if(Be?(o-=a/2,t=vt+a/2):t=vt+a,De){var b=De*Le/Ue;o-=b,t+=b}o=Math.floor(o),t=Math.ceil(t)}else t=o+Le-1;o=Math.max(o,0),t=Math.min(t,ut-1)}return[o,t]}function vr(){if(ot&&!kt){var e=mr();e.push(at),wr.apply(null,e).forEach((function(img){if(!I(img,Jt)){var e={};e[Q]=function(e){e.stopPropagation()},F(img,e),F(img,Xt),img.src=j(img,"data-src");var t=j(img,"data-srcset");t&&(img.srcset=t),x(img,"loading")}}))}}function yr(img){x(img,"loaded"),_r(img)}function _r(img){x(img,Jt),A(img,"loading"),H(img,Xt)}function wr(e,t,n){var r=[];for(n||(n="img");e<=t;)E(Se[e].querySelectorAll(n),(function(img){r.push(img)})),e++;return r}function Sr(){var e=wr.apply(null,mr());o((function(){Er(e,xr)}))}function Er(e,t){return Ae?t():(e.forEach((function(img,t){!ot&&img.complete&&_r(img),I(img,Jt)&&e.splice(t,1)})),e.length?void o((function(){Er(e,t)})):t())}function Or(){vr(),Cr(),pr(),Pr(),function(){if(nav&&(pn=hn>=0?hn:Ln(),hn=-1,pn!==gn)){var e=cn[gn],t=cn[pn];M(e,{tabindex:"-1","aria-label":bn+(gn+1)}),A(e,mn),M(t,{"aria-label":bn+(pn+1)+vn}),T(t,"tabindex"),x(t,mn),gn=pn}}()}function Ir(e,t){for(var n=[],i=e,r=Math.min(e+t,ut);i<r;i++)n.push(Se[i].offsetHeight);return Math.max.apply(null,n)}function xr(){var e=Ke?Ir(vt,Le):Ir(ct,Ee),t=pe||ve;t.style.height!==e&&(t.style.height=e+"px")}function Ar(){xe=[0];var e=me?"left":"top",t=me?"right":"bottom",base=Se[0].getBoundingClientRect()[e];E(Se,(function(n,i){i&&xe.push(n.getBoundingClientRect()[e]-base),i===ut-1&&xe.push(n.getBoundingClientRect()[t]-base)}))}function Cr(){var e=mr(),t=e[0],n=e[1];E(Se,(function(e,i){i>=t&&i<=n?C(e,"aria-hidden")&&(T(e,["aria-hidden","tabindex"]),x(e,Yt)):C(e,"aria-hidden")||(M(e,{"aria-hidden":"true",tabindex:"-1"}),A(e,Yt))}))}function jr(e){return e.nodeName.toLowerCase()}function kr(e){return"button"===jr(e)}function Mr(e){return"true"===e.getAttribute("aria-disabled")}function Tr(e,t,n){e?t.disabled=n:t.setAttribute("aria-disabled",n.toString())}function Pr(){if(Ye&&!Ve&&!We){var e=Qt?rn.disabled:Mr(rn),t=en?on.disabled:Mr(on),n=vt<=_t,r=!Ve&&vt>=wt;n&&!e&&Tr(Qt,rn,!0),!n&&e&&Tr(Qt,rn,!1),r&&!t&&Tr(en,on,!0),!r&&t&&Tr(en,on,!1)}}function $r(e,t){G&&(e.style[G]=t)}function Rr(e){return null==e&&(e=vt),$e?(Ue-(De?Ne:0)-(xe[e+1]-xe[e]-Ne))/2:Re?(Ue-Re)/2:(Le-1)/2}function Dr(){var e=Ue+(De?Ne:0)-(Re?(Re+Ne)*ut:xe[ut]);return Be&&!We&&(e=Re?-(Re+Ne)*(ut-1)-Rr():Rr(ut-1)-xe[ut-1]),e>0&&(e=0),e}function Nr(e){var t;if(null==e&&(e=vt),me&&!$e)if(Re)t=-(Re+Ne)*e,Be&&(t+=Rr());else{var n=K?ut:Le;Be&&(e-=Rr()),t=100*-e/n}else t=-xe[e],Be&&$e&&(t+=Rr());return ft&&(t=Math.max(t,lt)),t+=!me||$e||Re?"px":"%"}function Ur(e){$r(ye,"0s"),Br(e)}function Br(e){null==e&&(e=Nr()),ye.style[pt]=gt+e+mt}function Lr(e,t,n,r){var o=e+Le;We||(o=Math.min(o,ut));for(var i=e;i<o;i++){var c=Se[i];r||(c.style.left=100*(i-vt)/Le+"%"),le&&J&&(c.style[J]=c.style[Z]=le*(i-e)/1e3+"s"),A(c,t),x(c,n),r&&st.push(c)}}function zr(e,t){ht&&$n(),(vt!==yt||t)&&(At.emit("indexChanged",di()),At.emit("transitionStart",di()),Ke&&Sr(),_n&&e&&["click","keydown"].indexOf(e.type)>=0&&Jr(),It=!0,Rn())}function qr(e){return e.toLowerCase().replace(/-/g,"")}function Fr(e){if(ae||It){if(At.emit("transitionEnd",di(e)),!ae&&st.length>0)for(var i=0;i<st.length;i++){var t=st[i];t.style.left="",Z&&J&&(t.style[Z]="",t.style[J]=""),A(t,fe),x(t,he)}if(!e||!ae&&e.target.parentNode===ye||e.target===ye&&qr(e.propertyName)===qr(pt)){if(!ht){var n=vt;$n(),vt!==n&&(At.emit("indexChanged",di()),Ur())}"inner"===oe&&At.emit("innerLoaded",di()),It=!1,yt=vt}}}function Hr(e,t){if(!Pt)if("prev"===e)Vr(t,-1);else if("next"===e)Vr(t,1);else{if(It){if(St)return;Fr()}var n=Bn(),r=0;if("first"===e?r=-n:"last"===e?r=ae?Ee-Le-n:Ee-1-n:("number"!=typeof e&&(e=parseInt(e)),isNaN(e)||(t||(e=Math.max(0,Math.min(Ee-1,e))),r=e-n)),!ae&&r&&Math.abs(r)<Le){var o=r>0?1:-1;r+=vt+r-Ee>=_t?Ee*o:2*Ee*o*-1}vt+=r,ae&&We&&(vt<_t&&(vt+=Ee),vt>wt&&(vt-=Ee)),Bn(vt)!==Bn(yt)&&zr(t)}}function Vr(e,t){if(It){if(St)return;Fr()}var n;if(!t){for(var r=ei(e=Qr(e));r!==tn&&[rn,on].indexOf(r)<0;)r=r.parentNode;var o=[rn,on].indexOf(r);o>=0&&(n=!0,t=0===o?-1:1)}if(Ve){if(vt===_t&&-1===t)return void Hr("last",e);if(vt===wt&&1===t)return void Hr("first",e)}t&&(vt+=ze*t,$e&&(vt=Math.floor(vt)),zr(n||e&&"keydown"===e.type?e:null))}function Wr(){yn=setInterval((function(){Vr(null,On)}),Qe),_n=!0}function Kr(){clearInterval(yn),_n=!1}function Yr(e,t){M(In,{"data-action":e}),In.innerHTML=An[0]+e+An[1]+t}function Gr(){Wr(),In&&Yr("stop",et[1])}function Jr(){Kr(),In&&Yr("start",et[0])}function Xr(){_n?(Jr(),Sn=!0):(Gr(),Sn=!1)}function Zr(e){e.focus()}function Qr(e){return ti(e=e||n.event)?e.changedTouches[0]:e}function ei(e){return e.target||n.event.srcElement}function ti(e){return e.type.indexOf("touch")>=0}function ni(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ri(){return c=Mn.y-kn.y,d=Mn.x-kn.x,t=Math.atan2(c,d)*(180/Math.PI),n=Et,r=!1,(o=Math.abs(90-Math.abs(t)))>=90-n?r="horizontal":o<=n&&(r="vertical"),r===e.axis;var t,n,r,o,c,d}function ii(e){if(It){if(St)return;Fr()}Ze&&_n&&Kr(),Tn=!0,jn&&(d(jn),jn=null);var t=Qr(e);At.emit(ti(e)?"touchStart":"dragStart",di(e)),!ti(e)&&["img","a"].indexOf(jr(ei(e)))>=0&&ni(e),Mn.x=kn.x=t.clientX,Mn.y=kn.y=t.clientY,ae&&(Cn=parseFloat(ye.style[pt].replace(gt,"")),$r(ye,"0s"))}function oi(e){if(Tn){var t=Qr(e);Mn.x=t.clientX,Mn.y=t.clientY,ae?jn||(jn=o((function(){!function e(t){if(!Ot)return void(Tn=!1);d(jn),Tn&&(jn=o((function(){e(t)})));"?"===Ot&&(Ot=ri());if(Ot){!Zt&&ti(t)&&(Zt=!0);try{t.type&&At.emit(ti(t)?"touchMove":"dragMove",di(t))}catch(e){}var n=Cn,r=Pn(Mn,kn);if(!me||Re||$e)n+=r,n+="px";else n+=K?r*Le*100/((Ue+Ne)*ut):100*r/(Ue+Ne),n+="%";ye.style[pt]=gt+n+mt}}(e)}))):("?"===Ot&&(Ot=ri()),Ot&&(Zt=!0)),("boolean"!=typeof e.cancelable||e.cancelable)&&Zt&&e.preventDefault()}}function ai(t){if(Tn){jn&&(d(jn),jn=null),ae&&$r(ye,""),Tn=!1;var n=Qr(t);Mn.x=n.clientX,Mn.y=n.clientY;var r=Pn(Mn,kn);if(Math.abs(r)){if(!ti(t)){var c=ei(t);F(c,{click:function e(t){ni(t),H(c,{click:e})}})}ae?jn=o((function(){if(me&&!$e){var e=-r*Le/(Ue+Ne);e=r>0?Math.floor(e):Math.ceil(e),vt+=e}else{var n=-(Cn+r);if(n<=0)vt=_t;else if(n>=xe[ut-1])vt=wt;else for(var i=0;i<ut&&n>=xe[i];)vt=i,n>xe[i]&&r<0&&(vt+=1),i++}zr(t,r),At.emit(ti(t)?"touchEnd":"dragEnd",di(t))})):Ot&&Vr(t,r>0?-1:1)}}"auto"===e.preventScrollOnTouch&&(Zt=!1),Et&&(Ot="?"),Ze&&!_n&&Wr()}function si(){(pe||ve).style.height=xe[vt+Le]-xe[vt]+"px"}function ci(){var e=Re?(Re+Ne)*Ee/Ue:Ee/Le;return Math.min(Math.ceil(e),Ee)}function ui(){if(nav&&!Ht&&fn!==ln){var e=ln,t=fn,n=R;for(ln>fn&&(e=fn,t=ln,n=$);e<t;)n(cn[e]),e++;ln=fn}}function di(e){return{container:ye,slideItems:Se,navContainer:un,navItems:cn,controlsContainer:tn,hasControls:qt,prevButton:rn,nextButton:on,items:Le,slideBy:ze,cloneCount:ct,slideCount:Ee,slideCountNew:ut,index:vt,indexCached:yt,displayIndex:Nn(),navCurrentIndex:pn,navCurrentIndexCached:gn,pages:fn,pagesCached:ln,sheet:it,isOn:Ie,event:e||{}}}te&&console.warn("No slides found in",e.container)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(306),o=function(e,a){return"undefined"==typeof window?Promise.resolve():Object(r.e)().then((function(){return Object(r.a)([["aegon-kyc-widget-v1",[[0,"aegon-kyc-widget-v1",{apiConfig:[16],kycInitData:[16],isModal:[1028,"is-modal"],showSignzy:[1028,"show-signzy"],headingText:[1,"heading-text"],khoslaPayload:[32],kycModal:[32],showModal:[32],showAadharWidget:[32],loading:[32],invalidDLNumber:[32],kycDocuments:[32]}]]],["aegon-finance-verification-widget",[[0,"aegon-finance-verification-widget",{apiConfig:[16],financeRequestData:[16],showBottomSheet:[32],partnerType:[32]},[[0,"isLoading","loadingEventHandler"],[0,"financeVerificationComplete","fvCompletedHandler"]]]]],["kyc-loader_2",[[1,"kyc-loader"],[1,"kyc-modal",{modalTitle:[1,"modal-title"],message:[1],buttonLabel:[1,"button-label"],status:[1],visible:[32]}]]],["aegon-kyc-widget",[[1,"aegon-kyc-widget",{apiConfig:[16],kycInitData:[16],showSignzy:[1028,"show-signzy"],khoslaPayload:[32],partner:[32],kycModal:[32],showModal:[32],showAadharWidget:[32],loading:[32],kycVerified:[32],invalidDLNumber:[32]}]]],["aegon-doc-upload-widget",[[1,"aegon-doc-upload-widget",{documents:[8],apiConfig:[8,"api-config"],loading:[32],hideDocList:[32],showModal:[32],docModal:[32]}]]],["aegon-requirement-upload-widget",[[1,"aegon-requirement-upload-widget",{apiConfig:[16],docUploadData:[16],loading:[32],documents:[32]}]]],["aegon-kyc-widget-v2",[[0,"aegon-kyc-widget-v2",{kycInitData:[16],apiConfig:[16],headingText:[8,"heading-text"],kycMethods:[1040],encrypt:[16],decrypt:[16],kycOptions:[32],kycModal:[32],showModal:[32]}]]],["kyc-verification-status",[[1,"kyc-verification-status",{kycDocuments:[8,"kyc-documents"],showSignzy:[1028,"show-signzy"],visible:[32],kycSuccessful:[32]}]]],["aegon-aadhar-widget",[[1,"aegon-aadhar-widget",{khoslaPayload:[16],invalidMobileNumber:[32],khoslaAadharUrl:[32]}]]],["aegon-bank-statement-widget_3",[[0,"aegon-bank-statement-widget",{apiConfig:[16],bankAuthData:[16],showOtpLoader:[32],iFrameUrl:[32]}],[0,"aegon-epfo-widget",{apiConfig:[16],epfoRequestData:[16],showOtpForm:[32],showOtpLoader:[32]}],[0,"aegon-itr-widget",{apiConfig:[16],policyNumber:[1,"policy-number"],itrRequestData:[32],formFields:[32],isFormValid:[32]}]]]],a)}))};!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)},HTMLElement.prototype=a.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,a)}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(174);n(979);const o=(e,t)=>"undefined"==typeof window?Promise.resolve():(()=>Object(r.g)())().then(()=>Object(r.c)(JSON.parse('[["agn-accordion_53",[[0,"agn-goal-calculator-template",{"data":[16],"suggestedProducts":[16],"href":[1],"goal":[1],"showPlans":[32],"isFormSubmit":[32]},[[0,"showPlans","onShowPlans"],[0,"analyticsDataEvent","getAnalyticsData"],[0,"downloadpdfevent","addPdfAnalyticsData"],[0,"formValueChange","onFormChange"]]],[4,"agn-template",{"headerData":[16],"agnDownloadsFilesData":[16],"faqCategoryData":[1040],"knowledgeCenterMediaData":[16],"popularSearches":[16],"recentSearch":[1040],"pages":[16],"searchIcon":[8,"search-icon"]}],[4,"agn-global-styles"],[0,"agn-header",{"headerData":[8,"header-data"],"agnDownloadsFilesData":[8,"agn-downloads-files-data"],"faqCategoryData":[1544,"faq-category-data"],"knowledgeCenterMediaData":[8,"knowledge-center-media-data"],"popularSearches":[8,"popular-searches"],"recentSearch":[1544,"recent-search"],"pages":[8],"searchIcon":[8,"search-icon"],"showStickyBanner":[8,"show-sticky-banner"],"stickyBannerData":[8,"sticky-banner-data"]},[[9,"scroll","onScroll"]]],[0,"agn-child-education-form",{"data":[8],"disclaimer":[8],"suggestedProducts":[8,"suggested-products"],"pdfTitle":[8,"pdf-title"],"estimatedFee":[32],"result":[32],"current_age":[32],"child_dream":[32],"child_will_be":[32],"monthly_income":[32],"current_savings_value":[32],"currentSavings":[32],"study_abroad":[32],"formSubmit":[32],"isError":[32],"totalAmtRequired":[32],"additionalAmount":[32]},[[0,"buttonSelected","getSelectedCategory"],[0,"inputSelected","getInputSelected"],[0,"eventInputChange","getInputValue"]]],[0,"agn-cover-my-health-form",{"data":[8],"recommendedPlan":[8,"recommended-plan"],"pdfButtonLabel":[8,"pdf-button-label"],"disclaimer":[8],"pdfTitle":[8,"pdf-title"],"current_age":[32],"existing_cost":[32],"treatment_abroad":[32],"existingCostInWords":[32],"formSubmit":[32],"select_year":[32],"coverAmount":[32],"existingCost":[32]},[[0,"buttonSelected","getSelectedCategory"],[0,"inputSelected","getInputSelected"],[0,"eventInputChange","getInputValue"]]],[0,"agn-become-crorepati-form",{"data":[8],"recommendedPlan":[8,"recommended-plan"],"disclaimer":[8],"suggestedProducts":[8,"suggested-products"],"pdfTitle":[8,"pdf-title"],"first_crore":[32],"rate_of_return":[32],"formSubmit":[32],"select_year":[32],"futureYear":[32],"result":[32]},[[0,"inputSelected","getInputSelected"],[0,"eventInputChange","getInputValue"]]],[0,"agn-buy-dream-car-form",{"data":[8],"recommendedPlan":[8,"recommended-plan"],"disclaimer":[8],"suggestedProducts":[8,"suggested-products"],"pdfTitle":[8,"pdf-title"],"dream_car":[32],"travel_in":[32],"current_value":[32],"current_savings":[32],"current_savings_value":[32],"rate_of_return":[32],"formSubmit":[32],"select_year":[32],"total_years_saving":[32],"result":[32],"monthlyInvest":[32],"futureYear":[32],"currentValueInWords":[32],"currentSavingsInWords":[32]},[[0,"buttonSelected","getSelectedCategory"],[0,"inputSelected","getInputSelected"],[0,"eventInputChange","getInputValue"]]],[0,"agn-buy-dream-home-form",{"data":[8],"recommendedPlan":[8,"recommended-plan"],"disclaimer":[8],"suggestedProducts":[8,"suggested-products"],"pdfTitle":[8,"pdf-title"],"travel_in":[32],"estimated_cost":[32],"current_savings":[32],"current_savings_value":[32],"rate_of_return":[32],"formSubmit":[32],"select_year":[32],"total_years_saving":[32],"result":[32],"futureYear":[32],"currentValueInWords":[32],"currentSavingsInWords":[32],"monthlyInvest":[32],"isErrorVal":[32]},[[0,"buttonSelected","getSelectedCategory"],[0,"inputSelected","getInputSelected"],[0,"eventInputChange","getInputValue"]]],[0,"agn-dream-vacation-form",{"data":[8],"recommendedPlan":[8,"recommended-plan"],"disclaimer":[8],"suggestedProducts":[8,"suggested-products"],"pdfTitle":[8,"pdf-title"],"vacation_place":[32],"estimated_cost":[32],"travel_in":[32],"current_savings":[32],"current_savings_value":[32],"travel_with":[32],"investment_growth":[32],"currentValueInWords":[32],"currentSavingsInWords":[32],"formSubmit":[32],"select_year":[32],"result":[32],"futureYear":[32],"monthlyInvest":[32],"total_years_saving":[32]},[[0,"buttonSelected","getSelectedCategory"],[0,"inputSelected","getInputSelected"],[0,"eventInputChange","getInputValue"]]],[0,"agn-save-for-retirement-form",{"data":[8],"recommendedPlan":[8,"recommended-plan"],"disclaimer":[8],"suggestedProducts":[8,"suggested-products"],"pdfTitle":[8,"pdf-title"],"current_age":[32],"get_retired_at":[32],"monthly_income":[32],"current_value":[32],"retirement_to_be":[32],"result":[32],"retCorpusInWords":[32],"retCorpus":[32],"formSubmit":[32],"retirePlaceHolder":[32],"retireError":[32],"isRetireError":[32]},[[0,"errorValidationEvent","onFocusOut"],[0,"buttonSelected","getSelectedCategory"],[0,"eventInputChange","getInputValue"]]],[0,"agn-family-protection-form",{"data":[8],"recommendedPlan":[8,"recommended-plan"],"disclaimer":[8],"suggestedProducts":[8,"suggested-products"],"pdfTitle":[8,"pdf-title"],"current_age":[32],"annual_income":[32],"current_liabilities":[32],"insurance_cover":[32],"totalCover":[32],"totalCoverInWords":[32],"formSubmit":[32],"select_year":[32],"insuranceCoverInWords":[32],"liabilitiesInWords":[32]},[[0,"eventInputChange","getInputValue"]]],[0,"agn-footer",{"footerBlockData":[1040],"footerMenuData":[1040],"homePagedata":[8,"home-pagedata"],"showDisclaimer":[8,"show-disclaimer"],"disclaimerData":[32],"covidAdvi":[32]}],[0,"agn-goal-calc-education",{"data":[8],"suggestedProducts":[8,"suggested-products"]}],[0,"agn-chat-modal",{"chatData":[8,"chat-data"],"addChatBot":[32]}],[0,"agn-disclaimer-modal",{"modalData":[8,"modal-data"],"modalId":[1,"modal-id"]}],[0,"agn-hamburger-menu",{"headerData":[520,"header-data"],"agnDownloadsFilesData":[8,"agn-downloads-files-data"],"faqCategoryData":[1544,"faq-category-data"],"knowledgeCenterMediaData":[8,"knowledge-center-media-data"],"popularSearches":[8,"popular-searches"],"recentSearch":[1544,"recent-search"],"pages":[8],"searchIcon":[8,"search-icon"],"showStickyBanner":[8,"show-sticky-banner"],"stickyBannerData":[8,"sticky-banner-data"],"isMenuOpen":[32],"subMenuElement":[32],"subMenuOpened":[32],"searchData":[32],"rlMediaData":[32],"isMobile":[32]},[[16,"close_submenu","closeSubmenu"],[16,"show_submenu","showSubmenu"],[16,"menuClose","closeModal"],[9,"scroll","onScroll"]]],[0,"agn-desktop-header",{"headerData":[8,"header-data"],"agnDownloadsFilesData":[8,"agn-downloads-files-data"],"faqCategoryData":[1544,"faq-category-data"],"knowledgeCenterMediaData":[8,"knowledge-center-media-data"],"popularSearches":[8,"popular-searches"],"recentSearch":[1544,"recent-search"],"pages":[8],"searchIcon":[8,"search-icon"],"showStickyBanner":[8,"show-sticky-banner"],"stickyBannerData":[8,"sticky-banner-data"],"searchData":[32],"rlMediaData":[32],"isDesktop":[32]},[[0,"dropdownClicked","onTabClick"]]],[0,"agn-footer-links",{"footerLinkData":[8,"footer-link-data"],"selectedParent":[32],"footerLinkAllCols":[32]},[[16,"toggleDropdownEvent","removeActive"]]],[0,"agn-footer-follow-us",{"data":[8]}],[0,"agn-footer-imp-links",{"data":[8],"collapsed":[4]}],[0,"agn-footer-warning",{"data":[8]}],[4,"agn-fgc-card-b",{"disease":[1],"amount":[8],"tip":[8],"selectedYear":[8,"selected-year"],"description":[8]}],[0,"agn-input-selection",{"value":[8],"group":[8],"data":[8],"getExistingCost":[16],"descriptionValue":[8,"description-value"],"descriptionKey":[8,"description-key"]},[[0,"modalClose","onClick"]]],[0,"agn-menu",{"headerData":[8,"header-data"],"subMenuOpened":[516,"sub-menu-opened"]}],[0,"agn-submenu",{"close":[516],"smHeader":[513,"sm-header"],"smLinks":[16],"selectedParent":[32],"showLinks":[32]},[[16,"toggleDropdownEvent","removeActive"]]],[0,"agn-tab",{"tab":[8],"index":[2]}],[0,"agn-search-modal",{"recentSearch":[1544,"recent-search"],"faqData":[1040],"downloadData":[1040],"readLearnData":[1040],"popularSearches":[8,"popular-searches"],"siteLogo":[8,"site-logo"],"pages":[1544],"searchIcon":[8,"search-icon"],"isFocused":[32],"searchText":[32],"suggestions":[32],"isSearched":[32],"suggData":[32],"popularSearchHeader":[32],"popularSearchItems":[32]},[[16,"modalClosed","onModalClose"],[16,"textChanged","onSearchTextChange"],[16,"searchedForText","setElementToLocalStorage"]]],[0,"agn-menu-links",{"menuLinks":[520,"menu-links"],"openSM":[32]}],[0,"agn-quick-access",{"quickAccessLinks":[8,"quick-access-links"]}],[0,"agn-submenu-links",{"subSubLinks":[520,"sub-sub-links"],"menuHeader":[8,"menu-header"],"subMenu":[8,"sub-menu"]}],[0,"agn-home-top-banner",{"data":[8],"inBottom":[4,"in-bottom"],"className":[32]}],[0,"agn-search-modal-bar",{"data":[8],"searchText":[1537,"search-text"],"searchKey":[1,"search-key"],"searchTitle":[1,"search-title"],"searchPlaceholder":[1,"search-placeholder"],"checkRegex":[4,"check-regex"],"items":[32],"suggestions":[32],"isSearched":[32],"numberOfArticlePerPage":[32],"articlesPerPage":[32],"currentPageNumber":[32],"currentPageArticles":[32]}],[1,"agn-chatbot",{"openChat":[64]}],[0,"agn-find-product-result-slider-card",{"data":[8],"recommendedGoal":[8,"recommended-goal"],"datalayerPayload":[8,"datalayer-payload"],"isPersoneBased":[4,"is-persone-based"]}],[0,"agn-input-selection-modal",{"group":[8],"value":[8],"data":[8],"modalId":[1,"modal-id"]},[[2,"buttonSelected","buttonSelected"],[0,"buttonClicked","onFormSubmit"]]],[4,"agn-goal-calc-bluepill",{"requiredAmount":[1,"required-amount"],"options":[8],"type":[8],"getPlanBtn":[1028,"get-plan-btn"],"showTips":[4,"show-tips"],"tipMessage":[1,"tip-message"]},[[0,"buttonClicked","onShowPlans"]]],[4,"agn-goal-calculator-pdf",{"disclaimer":[8],"suggestedProducts":[16],"noProducts1stPage":[2,"no-products-1st-page"],"pdfTitle":[8,"pdf-title"]}],[0,"agn-options",{"group":[1],"element":[8],"type":[1],"buttonStyle":[1,"button-style"],"hideTitle":[4,"hide-title"],"value":[8]}],[0,"agn-link",{"closeModal":[4,"close-modal"],"linkTitle":[1,"link-title"],"linkDescription":[1,"link-description"],"linkImage":[8,"link-image"],"linkHref":[1,"link-href"],"showArrow":[4,"show-arrow"],"linkClassName":[1,"link-class-name"],"external":[8],"target":[1],"analyticsName":[8,"analytics-name"]}],[4,"agn-blue-header"],[0,"agn-loader"],[0,"agn-find-product-card",{"card":[8],"cardTitle":[8,"card-title"],"datalayerPayload":[8,"datalayer-payload"],"isPersoneBased":[4,"is-persone-based"]}],[0,"agn-radio-button",{"inputType":[1,"input-type"],"buttonId":[1,"button-id"],"buttonTitle":[1,"button-title"],"groupName":[1,"group-name"],"isRequired":[4,"is-required"],"selectValue":[1537,"select-value"],"value":[1],"buttonStyle":[1,"button-style"]}],[4,"agn-accordion",{"isActive":[1540,"is-active"],"linkClassName":[1,"link-class-name"],"linkDescription":[1,"link-description"],"linkImage":[1,"link-image"],"imageObj":[8,"image-obj"],"linkTitle":[1,"link-title"],"isAccordion":[4,"is-accordion"],"likeCount":[2,"like-count"],"showLikeCount":[4,"show-like-count"],"analyticsObject":[8,"analytics-object"],"pageName":[8,"page-name"],"accordionID":[8,"accordion-i-d"],"analyticsName":[8,"analytics-name"],"anchorLink":[8,"anchor-link"],"needScroll":[4,"need-scroll"],"screenWidth":[32]}],[4,"agn-slider",{"showMobileDots":[4,"show-mobile-dots"],"showDots":[4,"show-dots"],"showNavBtns":[4,"show-nav-btns"],"autoPlay":[4,"auto-play"],"classNames":[1,"class-names"],"maxSlidesPerView":[2,"max-slides-per-view"],"slidesCount":[2,"slides-count"],"isSliderMobile":[4,"is-slider-mobile"],"isResponsive":[4,"is-responsive"],"analyticsDetails":[8,"analytics-details"],"isAutoSlide":[4,"is-auto-slide"],"willAdd":[2,"will-add"],"slides":[32],"slidesPerView":[32],"isCenter":[32],"countIndex":[32]}],[4,"agn-input",{"inputID":[1,"input-i-d"],"inputMode":[1,"input-mode"],"inputType":[1,"input-type"],"inputLabel":[1,"input-label"],"inputPattern":[1,"input-pattern"],"inputPlaceHolder":[1537,"input-place-holder"],"parentClass":[1,"parent-class"],"isRequired":[4,"is-required"],"label":[1],"maxLength":[2,"max-length"],"prefixLabel":[1,"prefix-label"],"suffixLabel":[1,"suffix-label"],"regex":[16],"min":[1],"max":[1],"defaultValue":[8,"default-value"],"errorValidation":[4,"error-validation"],"allNumericFields":[4,"all-numeric-fields"],"noMaxAgeLimit":[4,"no-max-age-limit"],"errorMessage":[1544,"error-message"],"errorRegex":[16],"value":[1537],"isError":[32],"isUnique":[32],"errorVal":[32],"updateIsErrorState":[64]}],[4,"agn-diagonal-background",{"isBottom":[4,"is-bottom"],"isTop":[4,"is-top"],"diagonalBG":[4,"diagonal-b-g"]}],[4,"agn-modal",{"modalId":[1,"modal-id"],"closeButtonAnalyticsName":[8,"close-button-analytics-name"]},[[16,"modalOpen","modalOpenEvent"],[16,"modalClose","modalClose"]]],[4,"agn-button",{"analyticsName":[8,"analytics-name"],"buttonTitle":[1,"button-title"],"buttonType":[1,"button-type"],"buttonId":[1,"button-id"],"isDisabled":[4,"is-disabled"],"isGhost":[4,"is-ghost"],"href":[8],"routerParams":[8,"router-params"],"dataAction":[1,"data-action"],"formAction":[8,"form-action"],"isWhiteCTA":[4,"is-white-c-t-a"]}],[0,"agn-title",{"analyticsName":[8,"analytics-name"],"analyticsOn":[8,"analytics-on"],"imageUrl":[1,"image-url"],"imageObj":[8,"image-obj"],"label":[1],"isH1":[4,"is-h-1"],"description":[1],"type":[1]}],[4,"agn-anchor-tag",{"analyticsName":[8,"analytics-name"],"analyticsOn":[8,"analytics-on"],"downloadDoc":[1,"download-doc"],"href":[1],"parentClassName":[1,"parent-class-name"],"target":[1],"external":[8]}],[4,"agn-image",{"analyticsName":[8,"analytics-name"],"analyticsOn":[8,"analytics-on"],"imageUrl":[1,"image-url"],"altText":[1,"alt-text"],"classNameImg":[1,"class-name-img"],"imageObj":[8,"image-obj"],"height":[8],"width":[8],"isLazyLoaded":[4,"is-lazy-loaded"]}]]],["agn-homepage",[[4,"agn-homepage",{"aegonEmail":[1,"aegon-email"],"homePageData":[8,"home-page-data"],"requestCallBack":[4,"request-call-back"],"dataFetched":[4,"data-fetched"],"messageUs":[4,"message-us"],"gameEnd":[4,"game-end"],"testimonialsAnalyticsDetails":[32],"userScore":[32],"disclaimerData":[32],"aboutusData":[32],"isBottomBannerDisplayed":[32],"gmData":[32]},[[4,"scoreEvent","onScoreEvent"],[0,"isBannerInPlace","isbannerBootomInPLace"]]]]],["agn-product-details",[[4,"agn-product-details",{"showConfirmModal":[4,"show-confirm-modal"],"productPlan":[8,"product-plan"],"productData":[16],"accordionAnalyticsObject":[32],"whatsthisAnalyticsObject":[32],"productsImaximizeEligibility":[32]},[[0,"tabEvent","deathBenefitOption"]]]]],["agn-sjb",[[4,"agn-sjb",{"sjbData":[16],"showConfirmModal":[4,"show-confirm-modal"]}]]],["agn-product-category",[[4,"agn-product-category",{"showConfirmModal":[4,"show-confirm-modal"],"categoryData":[16],"plansData":[8,"plans-data"],"blogData":[8,"blog-data"],"faqData":[8,"faq-data"],"plan":[8]}]]],["agn-iterm-classic",[[4,"agn-iterm-classic",{"itermData":[16],"showConfirmModal":[4,"show-confirm-modal"]}]]],["agn-pos-grip",[[4,"agn-pos-grip",{"posGripData":[16],"showConfirmModal":[4,"show-confirm-modal"]}]]],["agn-gcpip",[[4,"agn-gcpip",{"gcip":[8],"productPlan":[1,"product-plan"],"showConfirmModal":[4,"show-confirm-modal"]}]]],["agn-gmip",[[4,"agn-gmip",{"gmip":[8],"productPlan":[1,"product-plan"],"showConfirmModal":[4,"show-confirm-modal"]}]]],["agn-partner-us",[[4,"agn-partner-us",{"data":[16],"caseStudiesData":[16],"showConfirmModal":[4,"show-confirm-modal"]}]]],["agn-jeevan-riddhi",[[0,"agn-jeevan-riddhi",{"agnJeevanRiddhi":[8,"agn-jeevan-riddhi"]}]]],["agn-career",[[0,"agn-career",{"data":[16],"imageData":[16],"agnVideos":[8,"agn-videos"]}]]],["agn-find-right-product",[[0,"agn-find-right-product",{"data":[16],"findProductData":[16],"fetchSuggested":[4,"fetch-suggested"],"suggestedProducts":[16],"recommendedGoal":[1,"recommended-goal"],"showStepper":[32],"numberOfSteps":[32],"stepperDataAll":[32],"stepperData":[32],"stepperTitle":[32],"endGoal":[32],"key":[32],"categoryEventData":[32],"goalName":[32]},[[0,"findProductSteps","onCardClick"],[0,"buttonClicked","onExitButtonCLick"]]]]],["agn-ipp",[[0,"agn-ipp",{"agnIpp":[8,"agn-ipp"]}]]],["agn-rmbi",[[0,"agn-rmbi",{"agnRmbi":[8,"agn-rmbi"]}]]],["agn-rtip",[[0,"agn-rtip",{"agnRtip":[8,"agn-rtip"]}]]],["agn-saral-pension-plan",[[0,"agn-saral-pension-plan",{"AgnSaralPensionPlan":[8,"agn-saral-pension-plan"]}]]],["agn-customer-service",[[0,"agn-customer-service",{"customerServiceData":[16]}]]],["agn-knowledge-center",[[0,"agn-knowledge-center",{"pageData":[16],"mediaData":[16]}]]],["agn-business-owners",[[0,"agn-business-owners",{"agnBusinessTypeData":[8,"agn-business-type-data"],"data":[16],"suggestedProducts":[8,"suggested-products"],"occupation":[8],"fetchSuggested":[8,"fetch-suggested"],"findProductData":[32],"showStepper":[32],"numberOfSteps":[32],"stepperDataAll":[32],"stepperData":[32],"stepperTitle":[32],"endGoal":[32],"key":[32],"categoryEventData":[32],"goalName":[32],"showResultPage":[32],"datalayerPayload":[32],"recommendedGoal":[32],"extraParam":[32],"letsStartJourney":[32],"extraHeaderData":[32],"buttonClickedData":[32],"currentStepName":[32],"customDimention":[32],"currentSteps":[32]},[[0,"planSelect","onClickPlan"],[0,"findProductSteps","onCardClick"],[0,"genderSelected","listenGender"],[0,"buttonClicked","onExitButtonCLick"],[0,"currentProductStep","onButtonClick"]]]]],["agn-inominee",[[0,"agn-inominee",{"iNomineeData":[8,"i-nominee-data"],"faqData":[8,"faq-data"]}]]],["agn-faqpage",[[0,"agn-faqpage",{"faqData":[16],"faqCategoryData":[1040],"faqCategory":[1537,"faq-category"]}]]],["agn-insurance-calculator",[[0,"agn-insurance-calculator",{"data":[16],"term":[8],"health":[8]}]]],["agn-search-page",[[0,"agn-search-page",{"searchText":[1537,"search-text"],"searchId":[1537,"search-id"],"faqData":[16],"knowledgeCenterMediaData":[16],"faqCategoryData":[1040],"searchPageLandingData":[16],"searchPageResults":[16],"agnDownloadsMainData":[16],"agnDownloadsFilesData":[16],"recentSearch":[1544,"recent-search"],"faqAccordionData":[32],"faqCategoryTabData":[32],"searchFormData":[32],"faqPageStructure":[32],"faqChatWithUsData":[32],"faqReachOutData":[32],"faqMappingCategory":[32],"dlTabData":[32],"dlSubTabData":[32],"rlSubTabData":[32],"dlCategory":[32],"mappingCategory":[32],"rlMediaData":[32],"noResultsData":[32]}]]],["agn-about-us",[[0,"agn-about-us",{"aboutUsData":[16]}]]],["agn-register-a-complaint",[[4,"agn-register-a-complaint",{"registerAComplaintData":[16],"registerComplaint":[1540,"register-complaint"],"submitComplaintSuccess":[4,"submit-complaint-success"],"successModalData":[32]},[[16,"backButtonClick","showPageTitle"],[0,"modalClosed","onModalClose"]]]]],["agn-downloads",[[0,"agn-downloads",{"agnDownloadsMainData":[16],"agnDownloadsFilesData":[16],"dlTabData":[32],"dlSubTabData":[32],"dlCategory":[32],"mappingCategory":[32]},[[0,"tabEvent","onTabClicked"]]]]],["agn-mediacenter",[[0,"agn-mediacenter",{"mediaCenterData":[16]}]]],["agn-kc-details-page",[[0,"agn-kc-details-page",{"pageData":[16],"relatedArticles":[16],"otherSectionData":[32],"contactUsData":[32],"currentLikeData":[32],"imageData":[32],"modalData":[32],"sourceData":[32],"articleLink":[32]}]]],["agn-read-learn",[[0,"agn-read-learn",{"pageData":[16],"mediaData":[16]}]]],["agn-watch-learn",[[0,"agn-watch-learn",{"pageData":[16],"mediaData":[16]}]]],["agn-cust-serv-register",[[0,"agn-cust-serv-register"]]],["agn-icare-iwill",[[0,"agn-icare-iwill",{"pageData":[16],"isEBookPurchased":[4,"is-e-book-purchased"],"bannerData":[32],"cardData":[32],"formData":[32],"modalData":[32],"noticeData":[32],"formSubmitted":[32]},[[0,"formSubmitted","onFormSubmit"]]]]],["agn-life-offerings",[[4,"agn-life-offerings",{"data":[8]}]]],["agn-unclaimed-amount-details",[[0,"agn-unclaimed-amount-details",{"data":[16],"apiData":[8,"api-data"]}]]],["agn-wellnes-score",[[0,"agn-wellnes-score",{"agnWellnessScoreData":[8,"agn-wellness-score-data"],"resultData":[8,"result-data"],"stepNumber":[32],"disabled":[32],"step1":[32],"step2":[32],"numericNames":[32],"formComponent":[32],"isStarted":[32],"isDisabledNext":[32],"isDisabledPrev":[32],"customerDob":[32],"customerHeightWeight":[32],"customerConsumeAlcohal":[32],"customerSmoke":[32],"customerExercise":[32],"customerBrushing":[32],"customerDrink":[32],"customerSleep":[32],"customerDisease":[32],"customerFamilyDisease":[32],"valueWhichsendToApi":[32]},[[0,"buttonClicked","onButtonClick"],[0,"dobData","enterborndate"],[0,"heightWeight","enterheightWeight"],[0,"consuleAlcohal","enterConsuleAlcohal"]]]]],["agn-contact-us",[[0,"agn-contact-us",{"contactUs":[16],"mobileNo":[8,"mobile-no"]}]]],["agn-find-a-service",[[0,"agn-find-a-service",{"pageData":[16]}]]],["agn-public-disclosure",[[0,"agn-public-disclosure",{"pdData":[16]}]]],["agn-goal-calculator",[[0,"agn-goal-calculator",{"data":[8],"categoryEventData":[32]}]]],["agn-iwdlkto-learn",[[0,"agn-iwdlkto-learn",{"data":[16],"parentHref":[1,"parent-href"]}]]],["agn-iwdlkto-main",[[0,"agn-iwdlkto-main",{"data":[16]}]]],["agn-iwdlkto-offerings",[[0,"agn-iwdlkto-offerings",{"data":[16],"parentHref":[1,"parent-href"]}]]],["agn-claims-proccess",[[0,"agn-claims-proccess",{"agnClaimProccess":[8,"agn-claim-proccess"],"mainComponent":[32],"banner":[32]}]]],["agn-compare-products",[[0,"agn-compare-products",{"pageData":[16],"sectionData":[16],"selectedProducts":[8,"selected-products"],"productPopUpTitle1":[32],"productPopUpTitle2":[32],"productPopUp1":[32],"productPopUp2":[32],"selectedDropdown":[32],"isDisabled":[32],"dropdownModalData":[32]}]]],["agn-locate-service-center",[[0,"agn-locate-service-center",{"headerData":[16],"contentData":[16],"mapKey":[8,"map-key"]}]]],["agn-unclaimed-amount-status",[[0,"agn-unclaimed-amount-status",{"data":[16],"siteKey":[1,"site-key"]}]]],["agn-case-studies-page",[[0,"agn-case-studies-page",{"caseStudies":[16],"data":[16]}]]],["agn-disclaimer-page",[[0,"agn-disclaimer-page",{"disclaimerPage":[8,"disclaimer-page"]}]]],["agn-request-score-modal",[[0,"agn-request-score-modal",{"modalData":[8,"modal-data"],"modalId":[1,"modal-id"],"pageName":[8,"page-name"],"score":[2],"gameEnd":[8,"game-end"],"name":[32],"mobileNumber":[32],"isHeader":[32],"disableLog":[32]},[[4,"sharePopup","onScoreEvent"],[0,"eventInputChange","getInputValue"],[0,"modalClosed","onModalClose"]]]]],["agn-article-page",[[0,"agn-article-page",{"articleData":[8,"article-data"]}]]],["agn-faq-query",[[0,"agn-faq-query",{"faqQueryData":[8,"faq-query-data"],"currentSelectedTab":[32],"subTabId":[32]},[[0,"tabEvent","getSubTab"]]]]],["agn-gol-game",[[0,"agn-gol-game",{"restartBtnTitle":[1,"restart-btn-title"],"playAgainBtnTitle":[1,"play-again-btn-title"],"gameData":[8,"game-data"],"lives":[2],"obstacles":[16],"coins":[16],"gameStatus":[32],"playBtnTitle":[32],"score":[32],"coinScore":[32]},[[4,"buttonClicked","openModal"],[4,"startGame","onStartGame"]]]]],["agn-investment-details",[[0,"agn-investment-details",{"agnInvestmentDetails":[8,"agn-investment-details"],"agnInvestmentDetailsHeader":[8,"agn-investment-details-header"],"banner":[8],"mainComponent":[32],"numberOfArticlePerPage":[32],"currentPageNumber":[32],"articlesPerPage":[32],"articles":[32],"currentPageArticles":[32]},[[0,"pageNumber","getYear"]]]]],["agn-other-disclosures",[[0,"agn-other-disclosures",{"agnOtherDisclosures":[8,"agn-other-disclosures"],"agnOtherDisclosuresHeader":[8,"agn-other-disclosures-header"],"banner":[8],"mainComponent":[32],"numberOfArticlePerPage":[32],"currentPageNumber":[32],"articlesPerPage":[32],"articles":[32],"currentPageArticles":[32]},[[0,"pageNumber","getYear"]]]]],["agn-partners-news",[[0,"agn-partners-news",{"data":[8],"articles":[8]}]]],["agn-partners-portal",[[0,"agn-partners-portal",{"data":[8],"blogs":[8]}]]],["agn-board-of-directors",[[0,"agn-board-of-directors",{"bodData":[16]}]]],["agn-claims-mechanism",[[0,"agn-claims-mechanism",{"agnClaimsMechanism":[8,"agn-claims-mechanism"],"mainComponent":[32],"banner":[32]}]]],["agn-dnc",[[0,"agn-dnc",{"dncData":[8,"dnc-data"]}]]],["agn-page-notfound",[[0,"agn-page-notfound"]]],["agn-payment-option",[[0,"agn-payment-option",{"agnPaymentOption":[8,"agn-payment-option"],"banner":[32],"paymentOptionData":[32]}]]],["agn-policies",[[0,"agn-policies",{"agnPolicies":[8,"agn-policies"],"agnPoliciesHeader":[8,"agn-policies-header"],"banner":[8],"mainComponent":[32]}]]],["agn-withdrwan-products",[[0,"agn-withdrwan-products",{"agnWithdrwanProducts":[8,"agn-withdrwan-products"],"agnWithdrawnProductsHeader":[8,"agn-withdrawn-products-header"],"agnWithdrawnProductsRiderHeader":[8,"agn-withdrawn-products-rider-header"],"banner":[8],"mainComponent":[32],"withRiderData":[32],"withoutRiderData":[32]}]]],["agn-annual-report",[[0,"agn-annual-report",{"agnAnnualReportData":[8,"agn-annual-report-data"],"agnAnnualBanner":[8,"agn-annual-banner"],"headers":[32]}]]],["agn-blog-life-insurance-buddy",[[0,"agn-blog-life-insurance-buddy"]]],["agn-blog-which-insurance-best",[[0,"agn-blog-which-insurance-best"]]],["agn-cookie-policy",[[0,"agn-cookie-policy",{"cookiePolicy":[8,"cookie-policy"]}]]],["agn-coporate-agents-list",[[0,"agn-coporate-agents-list",{"agnCoporateAgentsList":[8,"agn-coporate-agents-list"],"coporateAgentsHeaderData":[8,"coporate-agents-header-data"],"headers":[32]}]]],["agn-game-terms",[[0,"agn-game-terms",{"gameTermsData":[8,"game-terms-data"]}]]],["agn-offline",[[0,"agn-offline",{"offlineData":[16]}]]],["agn-privacy-policy",[[0,"agn-privacy-policy",{"privacyPolicy":[8,"privacy-policy"]}]]],["agn-terms-and-condition",[[0,"agn-terms-and-condition",{"agnTermsAndCondition":[8,"agn-terms-and-condition"]}]]],["agn-blog-things-toget-right",[[0,"agn-blog-things-toget-right"]]],["agn-bonus-rate",[[0,"agn-bonus-rate",{"agnBonusRateData":[8,"agn-bonus-rate-data"],"banner":[32],"rowSpanData":[32],"paragraphData":[32],"dataRender":[32],"dataRenderNext":[32]}]]],["agn-breadcrumb",[[0,"agn-breadcrumb",{"breadCrumbInput":[16]}]]],["agn-career-image-modal",[[0,"agn-career-image-modal",{"modalData":[8,"modal-data"],"currentIndex":[8,"current-index"]}]]],["agn-claims-philosophy",[[0,"agn-claims-philosophy",{"agnClaimsPhilosophy":[8,"agn-claims-philosophy"],"mainComponent":[32],"banner":[32]}]]],["agn-individual-agents",[[0,"agn-individual-agents",{"agents":[8],"agentsList":[32],"agentsBanner":[32]}]]],["agn-key-management-persons",[[0,"agn-key-management-persons",{"keyManagementData":[16]}]]],["agn-nav-rates-form",[[0,"agn-nav-rates-form",{"agnNavRateData":[8,"agn-nav-rate-data"],"agnNavRateHeader":[8,"agn-nav-rate-header"],"agnNavRateScheme":[8,"agn-nav-rate-scheme"],"selectedScheme":[8,"selected-scheme"],"selectedStartDate":[8,"selected-start-date"],"selectedEndDate":[8,"selected-end-date"],"pageNumber":[2,"page-number"],"banner":[32],"rowSpanData":[32],"paragraphData":[32],"dataRender":[32],"dataRenderNext":[32],"startDateChange":[32],"searchForm":[32]}]]],["agn-post-disclaimer-page",[[0,"agn-post-disclaimer-page",{"agnPostDesclaimer":[8,"agn-post-desclaimer"],"agnMsdBody":[32],"agnMsdBodyContent":[32]}]]],["agn-complaint-regarding",[[0,"agn-complaint-regarding",{"custName":[8,"cust-name"],"policyDetails":[8,"policy-details"]}]]],["agn-unregistered-user",[[0,"agn-unregistered-user",{"mobNum":[1,"mob-num"]}]]],["agn-carousel",[[4,"agn-carousel",{"carouselConfig":[16],"currentPageNumber":[32],"isDesktop":[32],"currentSlideDifference":[32]}]]],["agn-inominee-banner",[[0,"agn-inominee-banner"]]],["agn-inominee-questions",[[4,"agn-inominee-questions"]]],["agn-nav-rates",[[0,"agn-nav-rates",{"agnNavRateData":[8,"agn-nav-rate-data"],"agnNavRateHeader":[8,"agn-nav-rate-header"],"agnNavRateScheme":[8,"agn-nav-rate-scheme"],"selectedScheme":[8,"selected-scheme"],"selectedStartDate":[8,"selected-start-date"],"selectedEndDate":[8,"selected-end-date"],"pageNumber":[2,"page-number"],"banner":[32],"rowSpanData":[32],"paragraphData":[32],"dataRender":[32],"dataRenderNext":[32],"startDateChange":[32],"searchForm":[32]}]]],["agn-career-content",[[0,"agn-career-content",{"data":[8],"imageData":[8,"image-data"],"agnVideos":[8,"agn-videos"],"exploreJobsData":[32],"whoWeAreData":[32],"ourValuesData":[32],"workAtAegonData":[32],"testimonialsData":[32],"socialData":[32],"ourCommitmentData":[32],"careerImageTabs":[32],"spotlightData":[32],"carrerVideos":[32]}]]],["agn-customer-service-content",[[0,"agn-customer-service-content",{"customerServicePageData":[8,"customer-service-page-data"],"feedbackData":[32],"responseCardData":[32],"queryAboutService":[32],"furtherAssistanceData":[32],"haveAComplaintData":[32],"statusOfUncliamedAmount":[32],"iAssist":[32],"customerServiceTabs":[32],"offlineIassist":[32],"csDocuments":[32]}]]],["agn-find-product",[[0,"agn-find-product",{"findProductData":[8,"find-product-data"],"fetchSuggested":[4,"fetch-suggested"],"recommendedGoal":[8,"recommended-goal"],"suggestedProducts":[8,"suggested-products"],"numberOfSteps":[8,"number-of-steps"],"stepperTitle":[8,"stepper-title"],"endGoal":[8,"end-goal"],"goalName":[8,"goal-name"]}]]],["agn-knowledge-center-content",[[0,"agn-knowledge-center-content",{"pageData":[8,"page-data"],"mediaData":[8,"media-data"],"categoryData":[32],"readLearnHeaderData":[32],"readLearnMediaData":[32],"bestPlanData":[32],"watchLearnHeaderData":[32],"watchLearnMediaData":[32],"sufficientInsuredData":[32],"icareIwillData":[32],"claimSettlementData":[32],"contactUsData":[32],"selectedCategory":[32],"mappingCategory":[32],"kcCompareData":[32]},[[0,"tabEvent","onTabClicked"]]]]],["agn-faq-content",[[0,"agn-faq-content",{"faqData":[8,"faq-data"],"faqCategoryData":[1544,"faq-category-data"],"faqCategory":[1537,"faq-category"],"faqAccordionData":[32],"faqCategoryTabData":[32],"faqSearchData":[32],"faqPageStructure":[32],"faqChatWithUsData":[32],"faqReachOutData":[32],"faqMappingCategory":[32],"key":[32]},[[0,"tabEvent","onTabClicked"]]]]],["agn-search-page-content",[[0,"agn-search-page-content",{"searchText":[1537,"search-text"],"searchId":[1537,"search-id"],"noResultsData":[8,"no-results-data"],"searchKey":[8,"search-key"],"dlSearchKey":[8,"dl-search-key"],"faqData":[1544,"faq-data"],"downloadData":[1544,"download-data"],"readLearnData":[1544,"read-learn-data"],"pagesData":[1544,"pages-data"],"formData":[8,"form-data"],"dlFormData":[8,"dl-form-data"],"articlesInOnePage":[2,"articles-in-one-page"],"recentSearch":[1544,"recent-search"],"searchType":[32],"isFocused":[32],"isSearched":[32],"faqItems":[32],"downloadItems":[32],"readLearnItems":[32],"pageItems":[32],"suggestions":[32],"numberOfArticlePerPage":[32],"currentPageArticles":[32],"currentPageNumber":[32],"articlesPerPage":[32],"tabArray":[32],"selectedTab":[32],"isPropSearch":[32],"viewAll":[32]},[[0,"tabEvent","getSubTab"],[8,"hideRecentsContainer","hideRecentsListener"],[0,"pageNumber","getYear"]]]]],["agn-mc-content",[[0,"agn-mc-content",{"pageContent":[8,"page-content"],"subTabId":[32],"subTabData":[32],"subTabMainData":[32],"yearArray":[32],"selectedYear":[32],"awardReconations":[32]},[[4,"tabEvent","getMcTab"],[0,"getYearEvent","getYear"]]]]],["agn-unclaimed-amount-details-content",[[0,"agn-unclaimed-amount-details-content",{"data":[8],"apiData":[8,"api-data"],"alreadyClaimedData":[32],"claimAmountStuckData":[32],"currentDate":[32]}]]],["agn-contactus-content",[[0,"agn-contactus-content",{"pageContent":[8,"page-content"],"mobileNo":[8,"mobile-no"]},[[16,"cardClickEvent","openModal"]]]]],["agn-find-a-service-content",[[0,"agn-find-a-service-content",{"pageData":[8,"page-data"],"selectedCategory":[32]},[[0,"tabEvent","onTabClicked"],[0,"findServiceShowMoreButtonClicked","onShowMoreButtonClick"]]]]],["agn-lo-content",[[0,"agn-lo-content",{"lifeOfferings":[8,"life-offerings"],"tabData":[32],"tabId":[32]},[[0,"tabEvent","getTab"]]]]],["agn-pd-content",[[0,"agn-pd-content",{"pdData":[16],"imageUrl":[32],"tabData":[32],"tabId":[32]},[[0,"tabEvent","getTab"]]]]],["agn-locate-service-center-content",[[0,"agn-locate-service-center-content",{"mapData":[8,"map-data"],"headerData":[8,"header-data"],"mapKey":[8,"map-key"],"nearestLocation":[32]}]]],["agn-case-studies-tabs",[[0,"agn-case-studies-tabs",{"caseStudies":[8,"case-studies"],"data":[8],"isPage":[4,"is-page"],"tabData":[32],"tabId":[32],"tabTitle":[32]},[[0,"tabEvent","getTab"]]]]],["agn-disclaimer-page-content",[[0,"agn-disclaimer-page-content",{"agnDisclaimerPage":[8,"agn-disclaimer-page"],"disclaimerTitile":[32],"disclaimerBody":[32],"agnDisclaimerOnlineAdvertising":[32],"agnDisclaimerNilLiability":[32]}]]],["agn-claim-download",[[0,"agn-claim-download",{"data":[8],"siteKey":[1,"site-key"]}]]],["agn-unclaimed-amount-status-content",[[0,"agn-unclaimed-amount-status-content",{"data":[8],"siteKey":[1,"site-key"]}]]],["agn-dnc-content",[[0,"agn-dnc-content",{"dncData":[8,"dnc-data"],"dncTitile":[32],"dncBody":[32],"dncBanner":[32]}]]],["agn-kc-compare-imaximize-modal",[[0,"agn-kc-compare-imaximize-modal",{"modalData":[8,"modal-data"]}]]],["agn-score-share-modal",[[0,"agn-score-share-modal",{"articleLink":[1,"article-link"],"isHeader":[4,"is-header"],"modalId":[1,"modal-id"],"scoreData":[8,"score-data"]}]]],["agn-game-terms-content",[[0,"agn-game-terms-content",{"agnDisclaimerPage":[8,"agn-disclaimer-page"],"disclaimerTitile":[32],"disclaimerBody":[32],"agnDisclaimerOnlineAdvertising":[32],"agnDisclaimerNilLiability":[32],"agnDisclaimerTerms":[32]}]]],["agn-terms-and-condition-content",[[0,"agn-terms-and-condition-content",{"agnTermsAndCondition":[8,"agn-terms-and-condition"],"agnTermsAndConditionTitile":[32],"agnTermsAndConditionBody":[32]}]]],["agn-faq-query-form-input",[[0,"agn-faq-query-form-input",{"formInputData":[1544,"form-input-data"]}]]],["agn-radio-card",[[0,"agn-radio-card",{"cardObj":[8,"card-obj"]}]]],["agn-unreg-user-block",[[0,"agn-unreg-user-block",{"mobileNum":[1,"mobile-num"]}]]],["agn-find-product-content",[[0,"agn-find-product-content",{"findProductData":[8,"find-product-data"],"suggestedProducts":[8,"suggested-products"],"fetchSuggested":[8,"fetch-suggested"],"numberOfSteps":[8,"number-of-steps"],"stepperTitle":[8,"stepper-title"],"endGoal":[8,"end-goal"],"recommendedGoal":[8,"recommended-goal"],"goalName":[8,"goal-name"],"resultPageData":[32],"showResultPage":[32],"datalayerPayload":[32]},[[0,"currentProductStep","onButtonClick"]]]]],["agn-insurance-calc-form_2",[[0,"agn-insurance-calc-form",{"data":[8],"term":[8],"health":[8],"age":[32],"income":[32],"retirement":[32],"liabilities":[32],"existing":[32],"growthRate":[32],"gender":[32],"dependents":[32],"illness":[32],"startLoader":[32],"showSubmit":[32],"showHealthSubmit":[32],"userSelection":[32]},[[0,"buttonSelected","getSelectedCategory"],[0,"buttonClicked","getSubmitter"],[0,"eventInputChange","getInputValue"],[0,"focusOutEvent","onFocusOut"],[0,"genderSelected","selectGender"]]],[0,"agn-insurance-calc-header",{"label":[8],"href":[1],"imageObj":[8,"image-obj"]}]]],["agn-register-a-complaint-content_2",[[4,"agn-register-a-complaint-content",{"registerAComplaintData":[8,"register-a-complaint-data"],"showComplaintPage":[4,"show-complaint-page"],"submitComplaintSuccess":[4,"submit-complaint-success"],"registeredMobileData":[32],"registerGrievenceData":[32],"registerStepperData":[32],"registerTextareaData":[32],"mobileNumber":[32],"showLoader":[32]},[[16,"customerMobileNumber","getMobileNumber"]]],[0,"agn-register-complaint-success-modal",{"successModalData":[16]}]]],["agn-read-learn-content",[[0,"agn-read-learn-content",{"pageData":[8,"page-data"],"mediaData":[8,"media-data"],"mediaType":[8,"media-type"],"categoryData":[32],"readLearnMediaData":[32],"readLearnHeaderData":[32],"selectedCategory":[32],"mappingCategory":[32],"watchLearnMediaData":[32],"numberOfArticlePerPage":[32],"articlesPerPage":[32],"currentPageNumber":[32],"currentPageArticles":[32]},[[0,"pageNumber","getYear"],[0,"tabEvent","onTabClicked"]]]]],["agn-our-products_2",[[0,"agn-our-products",{"data":[8]}],[0,"agn-partner-us-case-studies",{"caseStudies":[8,"case-studies"],"data":[8]}]]],["agn-lo-tab-content",[[0,"agn-lo-tab-content",{"tabData":[8,"tab-data"],"tabId":[1,"tab-id"]}]]],["agn-group-term-benefit-options_2",[[0,"agn-group-term-benefit-options",{"benefitOptionsData":[8,"benefit-options-data"]}],[0,"agn-product-banner",{"bannerData":[8,"banner-data"]}]]],["agn-inominee-digital-card_2",[[0,"agn-inominee-reminders",{"reminderData":[8,"reminder-data"]}],[0,"agn-inominee-digital-card",{"digitalCardData":[8,"digital-card-data"]}]]],["agn-become-partner-steps",[[0,"agn-become-partner-steps",{"stepData":[8,"step-data"],"needButton":[4,"need-button"]}]]],["agn-home-media-center",[[0,"agn-home-media-center",{"mediaCenter":[8,"media-center"],"isArrow":[4,"is-arrow"]}]]],["agn-gol-end_2",[[0,"agn-gol-end",{"bannerLink":[8,"banner-link"],"btnName":[1544,"btn-name"],"description":[8],"label":[8],"playAgainBtnTitle":[8,"play-again-btn-title"]}],[0,"agn-gol-play",{"playData":[16],"label":[1]},[[0,"buttonClicked","openModal"]]]]],["agn-claim-settlement-modal",[[0,"agn-claim-settlement-modal",{"modalData":[8,"modal-data"],"modalId":[1,"modal-id"]}]]],["agn-sms-modal",[[0,"agn-sms-modal",{"codes":[16],"mobile":[1],"modalData":[8,"modal-data"],"modalId":[1,"modal-id"],"selectedCode":[32]}]]],["agn-privacy-policy-content",[[0,"agn-privacy-policy-content",{"agnPrivacyPolicyPage":[8,"agn-privacy-policy-page"],"agnPrivacyPolicyTitile":[32],"agnPrivacyPolicyBody":[32]}]]],["agn-product-card",[[0,"agn-product-card",{"cardData":[8,"card-data"]}]]],["agn-group-term-slider-card",[[0,"agn-group-term-slider-card",{"cardData":[8,"card-data"]}]]],["agn-dnc-body",[[0,"agn-dnc-body",{"dncBody":[8,"dnc-body"]}]]],["agn-product-plans-slider_3",[[0,"agn-product-simplified",{"simplifiedData":[8,"simplified-data"],"planType":[8,"plan-type"],"pauseObserver":[32],"intersectionObserver":[32]},[[0,"tabEvent","tabFn"]]],[0,"agn-product-relevant-media",{"mediaData":[8,"media-data"],"articleRequest":[8,"article-request"],"mediaSrc":[32]}],[0,"agn-product-plans-slider",{"sliderData":[8,"slider-data"],"planData":[8,"plan-data"]}]]],["agn-articles",[[0,"agn-articles",{"articles":[8],"type":[1],"numberOfArticlePerPage":[32],"showAll":[32],"articlesPerPage":[32],"currentPageNumber":[32],"currentPageArticles":[32]},[[0,"pageNumber","getYear"]]]]],["agn-aboutus-accordion",[[0,"agn-aboutus-accordion",{"aboutusAcc":[1544,"aboutus-acc"],"readmoreSection":[4,"readmore-section"],"imageDimensions":[1,"image-dimensions"],"selectedParent":[32],"showMore":[32]},[[16,"toggleDropdownEvent","removeActive"]]]]],["agn-gol-start_2",[[0,"agn-gol-start",{"modalData":[8,"modal-data"],"images":[16],"modalId":[1,"modal-id"]},[[0,"buttonClicked","onStartGame"]]],[4,"agn-home-banner",{"banner":[8],"whatWhouldLikeToDo":[8,"what-whould-like-to-do"]}]]],["agn-contact-us-card_2",[[0,"agn-message-us-modal",{"modalData":[8,"modal-data"],"modalId":[1,"modal-id"],"name":[32],"mobileNumber":[32],"category":[32],"description":[32],"radioError":[32],"isError":[32],"errorInput":[32],"isDisabled":[32],"disableLog":[32],"inputEntered":[32],"txareaEntered":[32],"radioEntered":[32]},[[0,"eventInputChange","getInputValue"],[0,"buttonSelected","getSelectedCategory"],[0,"modalClosed","onModalClose"]]],[4,"agn-contact-us-card",{"card":[8],"modalId":[1,"modal-id"],"contactUsCardGAData":[8,"contact-us-card-g-a-data"]}]]],["agn-icare-card_4",[[0,"agn-icare-form",{"formData":[8,"form-data"],"buttonData":[8,"button-data"],"user":[32]},[[0,"eventInputChange","getInputValue"]]],[0,"agn-icare-modal",{"successModalData":[8,"success-modal-data"]}],[0,"agn-icare-card",{"cards":[8]}],[0,"agn-icare-notice",{"noticeData":[1,"notice-data"]}]]],["agn-no-results-found_2",[[0,"agn-search-result-pages",{"searchResultPages":[8,"search-result-pages"],"searchText":[8,"search-text"]}],[0,"agn-no-results-found",{"searchText":[1,"search-text"],"data":[8]}]]],["agn-get-touch-modal",[[0,"agn-get-touch-modal",{"modalId":[1,"modal-id"],"modalData":[8,"modal-data"],"showConfirmModal":[4,"show-confirm-modal"],"successPopup":[8,"success-popup"],"analyticsData":[8,"analytics-data"],"caseFirstName":[32],"caseEndUserMobile":[32],"caseDescription":[32],"caseEndUserEmail":[32]},[[0,"eventInputChange","getInputValue"],[0,"modalClosed","onModalClose"]]]]],["agn-iterm-classic-addons",[[0,"agn-iterm-classic-addons",{"addonsData":[8,"addons-data"]}]]],["agn-insurance-claim-process-body_2",[[0,"agn-insurance-claim-process-steps",{"data":[8],"siteKey":[1,"site-key"]}],[0,"agn-insurance-claim-process-body",{"data":[8],"siteKey":[1,"site-key"]}]]],["agn-case-studies-card",[[4,"agn-case-studies-card",{"imageObj":[8,"image-obj"],"cardTitle":[1,"card-title"],"linkTitle":[1,"link-title"],"linkHref":[1,"link-href"],"isYellow":[4,"is-yellow"]}]]],["agn-partner-us-banner",[[0,"agn-partner-us-banner",{"bannerData":[8,"banner-data"],"analyticsName":[8,"analytics-name"]}]]],["agn-table",[[4,"agn-table",{"tableHead":[8,"table-head"],"tableBody":[8,"table-body"],"tableType":[1,"table-type"]}]]],["agn-find-service-category-accordian",[[0,"agn-find-service-category-accordian",{"accordionType":[1,"accordion-type"],"categoryIndex":[2,"category-index"],"accordionData":[8,"accordion-data"],"showMore":[4,"show-more"]}]]],["agn-customer-service-share-feedback",[[0,"agn-customer-service-share-feedback",{"resetForm":[4,"reset-form"],"data":[8],"feedbackTitle":[8,"feedback-title"],"feedbackType":[8,"feedback-type"],"fdbkArr":[32],"fdbkBtnCntnt":[32],"options":[32],"btnStatus":[32]}]]],["agn-wellnes-boxes_5",[[0,"agn-wellnes-dob",{"inputValue":[1544,"input-value"],"componentData":[1544,"component-data"]},[[0,"eventInputChange","getInputValue"]]],[0,"agn-wellnes-height",{"inputValueFeet":[1544,"input-value-feet"],"inputValueInch":[1544,"input-value-inch"],"inputValueWeight":[1544,"input-value-weight"],"componentData":[1544,"component-data"]},[[0,"eventInputChange","getInputValue"]]],[0,"agn-wellnes-result",{"componentData":[8,"component-data"],"inputValue":[1544,"input-value"],"resultData":[1544,"result-data"],"apiResultData":[1544,"api-result-data"],"modelData":[32]}],[0,"agn-wellnes-boxes",{"componentData":[8,"component-data"],"inputValue":[1544,"input-value"],"isLast":[4,"is-last"],"typeBox":[1,"type-box"],"isSingle":[4,"is-single"],"inputdataval":[32],"elRef":[32],"isNone":[32]}],[0,"agn-wellnes-start",{"wellnessStart":[8,"wellness-start"],"bannerData":[8,"banner-data"]}]]],["agn-home-faq_2",[[0,"agn-home-unique-offerings",{"uniqueOfferings":[8,"unique-offerings"]}],[0,"agn-home-faq",{"faq":[8],"likeCount":[4,"like-count"],"accordionRequest":[8,"accordion-request"],"textTypeCTA":[4,"text-type-c-t-a"],"showLikeCounts":[4,"show-like-counts"],"numberOfArticlePerPage":[32],"articlesPerPage":[32],"currentPageNumber":[32],"currentPageArticles":[32]},[[0,"pageNumber","getYear"]]]]],["agn-tab-content_2",[[0,"agn-tab-details",{"tabData":[16],"imageUrl":[1,"image-url"],"subtabData":[32],"subtabId":[32],"subTabs":[32]},[[0,"tabEvent","getSubTab"]]],[0,"agn-tab-content",{"subtabData":[16],"imageUrl":[1,"image-url"],"currentYear":[32],"documents":[32],"years":[32]},[[0,"getYearEvent","getYear"]]]]],["agn-article-modal_2",[[0,"agn-article-modal",{"modalData":[8,"modal-data"],"articleLink":[1,"article-link"],"sendGA":[4,"send-g-a"]}],[0,"agn-share-icon",{"iconTitle":[1,"icon-title"],"imageObj":[8,"image-obj"],"hrefUrl":[1,"href-url"],"sendGA":[4,"send-g-a"]}]]],["agn-recaptcha_2",[[0,"agn-unclaimed-amt",{"formInput":[8,"form-input"],"siteKey":[1,"site-key"],"dob":[32],"isCaptchaVerified":[32],"isDisabled":[32]},[[0,"eventInputChange","getInputValue"],[16,"updateCaptchaSuccess","getCaptchaSuccess"]]],[0,"agn-recaptcha",{"modalData":[8,"modal-data"],"modalId":[1,"modal-id"],"siteKey":[1,"site-key"]}]]],["agn-faq-category-tabs",[[0,"agn-faq-category-tabs",{"faqCategoryTabData":[8,"faq-category-tab-data"]}]]],["agn-aboutus-claimratio_6",[[0,"agn-aboutus-management-team",{"aboutusMngmt":[8,"aboutus-mngmt"]}],[0,"agn-aboutus-claimratio",{"aboutusClaimratio":[8,"aboutus-claimratio"]}],[0,"agn-aboutus-mediacenter",{"aboutusMediacenter":[8,"aboutus-mediacenter"]}],[0,"agn-aboutus-ourpartners",{"aboutusPartners":[8,"aboutus-partners"]}],[0,"agn-aboutus-information",{"aboutusInfoUpper":[8,"aboutus-info-upper"],"aboutusInfoLower":[8,"aboutus-info-lower"]}],[0,"agn-aboutus-venture-details",{"aboutusVenture":[8,"aboutus-venture"]}]]],["agn-insurance-calc-accordion_3",[[4,"agn-insurance-calc-accordion",{"data":[8],"hideSubmitBtn":[4,"hide-submit-btn"],"dependents":[1],"illness":[1],"isActive":[32]}],[0,"agn-insurance-calc-cover-card",{"cardDescription":[1,"card-description"],"link":[8],"cardTitle":[1,"card-title"],"coverValue":[1,"cover-value"]}],[0,"agn-insurance-calc-modal",{"modalData":[8,"modal-data"],"modalId":[1,"modal-id"]}]]],["agn-find-service-category-data_3",[[0,"agn-find-service-search-bar",{"data":[8],"searchTitle":[1,"search-title"],"formData":[8,"form-data"],"searchPlaceholder":[1,"search-placeholder"],"faqItems":[32],"searchText":[32],"suggestions":[32],"isSearched":[32],"numberOfArticlePerPage":[32],"articlesPerPage":[32],"currentPageNumber":[32],"currentPageArticles":[32]},[[0,"pageNumber","getYear"]]],[0,"agn-find-service-category-data",{"allTabData":[8,"all-tab-data"],"selectedCategory":[8,"selected-category"],"allCategory":[8,"all-category"],"currentTabData":[32]}],[0,"agn-find-service-category-tabs",{"tabs":[8]}]]],["agn-disclaimer-body_3",[[0,"agn-disclaimer-nil-liability",{"agnDisclaimerNilLiability":[8,"agn-disclaimer-nil-liability"]}],[0,"agn-disclaimer-online-advertising",{"agnDisclaimerOnlineAdvertising":[8,"agn-disclaimer-online-advertising"]}],[0,"agn-disclaimer-body",{"disclaimerBody":[8,"disclaimer-body"]}]]],["agn-faq-chat-with-us_3",[[0,"agn-faq-reach-out",{"data":[8]}],[0,"agn-faq-chat-with-us",{"data":[8]}],[0,"agn-faq-search",{"faqData":[1544,"faq-data"],"searchTitle":[1,"search-title"],"formData":[8,"form-data"],"searchKey":[8,"search-key"],"page":[8],"articlesInOnePage":[2,"articles-in-one-page"],"emitGAEvent":[4,"emit-g-a-event"],"analyticsPayload":[8,"analytics-payload"],"faqItems":[32],"searchText":[32],"suggestions":[32],"isSearched":[32],"numberOfArticlePerPage":[32],"articlesPerPage":[32],"currentPageNumber":[32],"currentPageArticles":[32]},[[0,"pageNumber","getYear"]]]]],["agn-sjb-waiting-card",[[0,"agn-sjb-waiting-card",{"sjbWaitingCardData":[8,"sjb-waiting-card-data"]}]]],["agn-sjb-death-benefits_3",[[0,"agn-sjb-waiting-period",{"sjbWaitPrd":[8,"sjb-wait-prd"],"analyticsObject":[8,"analytics-object"],"planName":[8,"plan-name"],"tabId":[32],"tabData":[32],"currentTab":[32]},[[0,"tabEvent","getTab"]]],[0,"agn-sjb-death-benefits",{"sjbDeath":[8,"sjb-death"]}],[0,"agn-sjb-payment-options",{"sjbPayment":[8,"sjb-payment"]}]]],["agn-unclaim-amt-claimed_3",[[0,"agn-unclaim-amt-claimed",{"data":[8]}],[0,"agn-unclaim-amt-stuck",{"data":[8],"idProofArray":[32]}],[0,"agn-unclaim-amt-inprogress",{"claimDetails":[16]}]]],["agn-year-slider",[[0,"agn-year-slider",{"eventId":[1,"event-id"],"yearArray":[16],"financialYearLabel":[1,"financial-year-label"],"customClass":[1,"custom-class"],"displayIndex":[32],"displayedYearArray":[32],"selectedYear":[32]}]]],["agn-awards",[[0,"agn-awards",{"label":[1],"images":[16],"isAwards":[4,"is-awards"],"awardsData":[8,"awards-data"],"swiper":[32]}]]],["agn-pos-floating-buttons",[[0,"agn-pos-floating-buttons",{"buttonsData":[8,"buttons-data"],"modalId":[1,"modal-id"],"planName":[8,"plan-name"],"analyticsName":[8,"analytics-name"]},[[0,"buttonClicked","onClick"]]]]],["agn-map_3",[[0,"agn-map",{"apiKey":[1,"api-key"],"mapCardTitle":[1,"map-card-title"],"nearestLocation":[8,"nearest-location"],"locations":[8],"searchPlaceholder":[1,"search-placeholder"],"zoom":[2],"locationNotFound":[32]},[[0,"updateNearestLocation","updateLocation"],[0,"resultFoundOrNot","updateLocationNotFoundText"]]],[0,"agn-map-card",{"cardData":[8,"card-data"],"cardTitle":[8,"card-title"]}],[0,"agn-search",{"data":[8],"searchText":[1537,"search-text"],"searchKey":[1,"search-key"],"searchTitle":[1,"search-title"],"searchPlaceholder":[1,"search-placeholder"],"items":[32],"suggestions":[32],"isSearched":[32],"numberOfArticlePerPage":[32],"articlesPerPage":[32],"currentPageNumber":[32],"currentPageArticles":[32]}]]],["agn-product-stepper-gender",[[0,"agn-product-stepper-gender",{"data":[8],"inputValue":[8,"input-value"]}]]],["agn-social_2",[[0,"agn-social",{"socialCards":[16]}],[0,"agn-social-card",{"mediaItem":[8,"media-item"]}]]],["agn-article-card",[[0,"agn-article-card",{"classNames":[1,"class-names"],"article":[8],"type":[1]}]]],["agn-inominee-make-easy_4",[[0,"agn-product-why-insurance",{"whyCardData":[8,"why-card-data"],"disableSwiper":[4,"disable-swiper"]}],[0,"agn-product-video-desc",{"videoData":[8,"video-data"],"planType":[8,"plan-type"]}],[0,"agn-inominee-make-easy",{"makeEasyData":[8,"make-easy-data"],"diagonalBG":[4,"diagonal-b-g"],"footerNote":[4,"footer-note"],"showAll":[32]}],[0,"agn-product-video-card",{"card":[8],"planType":[8,"plan-type"]}]]],["agn-categories_2",[[0,"agn-iwouldliketo-header",{"href":[1],"pageTitle":[1,"page-title"],"mainPageTitle":[1,"main-page-title"]}],[0,"agn-categories",{"category":[8],"categoryName":[1,"category-name"],"cardSlot":[8,"card-slot"],"hasChildren":[4,"has-children"],"categoryEventData":[8,"category-event-data"],"childEventData":[8,"child-event-data"],"removeAnchor":[8,"remove-anchor"]}]]],["agn-cust-serv-reg-grievance_4",[[0,"agn-textarea",{"txareaLabel":[1,"txarea-label"],"txareaPlaceholder":[1,"txarea-placeholder"],"buttonLabel":[1,"button-label"],"buttonFunction":[16],"errorRegex":[1,"error-regex"],"errorMessage":[1,"error-message"],"errorInput":[32],"isError":[32]}],[0,"agn-cust-serv-reg-ombudsman",{"stepData":[8,"step-data"],"stepsArray":[32]}],[0,"agn-cust-serv-reg-grievance",{"regGrievanceDetails":[8,"reg-grievance-details"]}],[0,"agn-cust-serv-reg-mobile",{"regMobileContents":[8,"reg-mobile-contents"],"user":[32]},[[0,"eventInputChange","getInputValue"]]]]],["agn-lo-card_2",[[0,"agn-lo-cards",{"cardsData":[8,"cards-data"],"planType":[8,"plan-type"]}],[0,"agn-lo-card",{"card":[8],"planType":[8,"plan-type"]}]]],["agn-faq-payment-cards",[[0,"agn-faq-payment-cards",{"paymentData":[8,"payment-data"]}]]],["agn-career-image-tabs_6",[[0,"agn-who-are-we",{"data":[8]}],[0,"agn-career-image-tabs",{"headerData":[8,"header-data"],"imageData":[8,"image-data"],"selectedImageCategory":[32],"tabArray":[32],"allImageData":[32],"imageGridArray":[32],"currentTabId":[32],"imageModalIndex":[32],"gridSize":[32]},[[0,"tabEvent","onTabClicked"]]],[0,"agn-team-spotlight",{"data":[8]}],[0,"agn-explore-jobs",{"data":[8]}],[0,"agn-work-at-aegon",{"data":[8]}],[0,"agn-our-commitment",{"data":[8]}]]],["agn-circular-chart",[[4,"agn-circular-chart",{"percentage":[2],"value":[8],"showPercentage":[4,"show-percentage"],"showSlotImage":[4,"show-slot-image"]}]]],["agn-blog-card",[[0,"agn-blog-card",{"card":[8],"showArticleType":[4,"show-article-type"],"selectedCategory":[8,"selected-category"],"isVideo":[32]}]]],["agn-kc-category-tabs_2",[[0,"agn-kc-category-tabs",{"tabData":[8,"tab-data"],"tabTitle":[8,"tab-title"],"tabId":[1,"tab-id"],"tabMediaData":[8,"tab-media-data"],"selectedTab":[8,"selected-tab"],"showArticleType":[4,"show-article-type"]}],[0,"agn-our-partner-portal",{"knowledgeCentre":[8,"knowledge-centre"],"partnerPortal":[8,"partner-portal"],"isTabsTitle":[4,"is-tabs-title"],"sliceItems":[4,"slice-items"],"tabsTitle":[8,"tabs-title"],"showPagination":[4,"show-pagination"],"viewAll":[4,"view-all"],"showArticleType":[4,"show-article-type"],"selectedCategory":[8,"selected-category"],"scrollToElement":[8,"scroll-to-element"],"mediaSrc":[32],"showAll":[32],"currentPageNumber":[32],"articlesPerPage":[32],"currentPageArticles":[32],"numberOfArticlePerPage":[32]},[[0,"pageNumber","getYear"]]]]],["agn-number-icon",[[0,"agn-number-icon",{"iconDigit":[8,"icon-digit"]}]]],["agn-card",[[4,"agn-card",{"downloadButtonGAData":[8,"download-button-g-a-data"],"viewButtonGAData":[8,"view-button-g-a-data"],"description":[1],"heading":[1],"contactUsCardGAData":[8,"contact-us-card-g-a-data"],"href":[1],"isLink":[4,"is-link"],"isDownload":[1,"is-download"],"imageUrl":[1,"image-url"],"imageObj":[8,"image-obj"],"isView":[4,"is-view"],"label":[1],"tag":[16],"url":[1]}]]],["agn-downloads-cards_2",[[0,"agn-downloads-cards",{"cardData":[8,"card-data"]}],[0,"agn-faq-accordion",{"faqs":[1544],"faqTitle":[8,"faq-title"],"showLikeCount":[4,"show-like-count"],"selectedParent":[32],"accordionAnalyticsObject":[32]},[[16,"toggleDropdownEvent","removeActive"]]]]],["agn-home-testimonials_2",[[0,"agn-home-testimonials",{"testimonials":[8],"analyticsDetails":[8,"analytics-details"]}],[4,"agn-testimonial-card",{"story":[8]}]]],["agn-video-modal",[[0,"agn-video-modal",{"modalId":[1,"modal-id"],"mediaSrc":[1537,"media-src"],"isOpen":[32]},[[4,"playVideo","playVideo"],[0,"modalClosed","onModalClose"]]]]],["agn-link-card",[[4,"agn-link-card",{"href":[1],"target":[8],"external":[4],"label":[1],"linkTitle":[1,"link-title"],"imageObj":[8,"image-obj"],"isLeft":[4,"is-left"],"isRight":[4,"is-right"],"tag":[1],"description":[1],"modalId":[1,"modal-id"],"analyticsName":[8,"analytics-name"]}]]],["agn-kc-best-plan_7",[[0,"agn-kc-claimratio",{"claimratioData":[8,"claimratio-data"]}],[0,"agn-kc-icare-iwill",{"data":[8],"cardsData":[32],"cardTopTitle":[32]}],[0,"agn-kc-best-plan",{"data":[8]}],[0,"agn-kc-compare",{"pageData":[8,"page-data"],"isDisabled":[32],"selectedCheckbox":[32]}],[0,"agn-kc-contact-us",{"data":[8]}],[0,"agn-kc-sufficient-insured",{"data":[8]}],[0,"agn-kc-icare-iwill-cards",{"cards":[8],"cardTopTitle":[8,"card-top-title"]}]]],["agn-lo-link-card",[[4,"agn-lo-link-card",{"href":[1],"label":[1],"linkTitle":[1,"link-title"],"imageObj":[8,"image-obj"],"imagePosition":[1,"image-position"],"isTop":[4,"is-top"],"description":[1],"yellowBackgroundImageUrl":[4,"yellow-background-image-url"]}]]],["agn-otp-confirmation-modal_2",[[4,"agn-otp-modal",{"modalId":[1,"modal-id"],"modalTitle":[1,"modal-title"]},[[0,"buttonClicked","onFormSubmit"]]],[0,"agn-otp-confirmation-modal",{"modalData":[8,"modal-data"],"modalId":[1,"modal-id"]}]]],["agn-pos-grip-contact-us_3",[[4,"agn-pos-grip-contact-us",{"findData":[8,"find-data"],"requestCallBack":[4,"request-call-back"],"planName":[8,"plan-name"],"diagonalBG":[4,"diagonal-b-g"]},[[0,"buttonClicked","openModal"]]],[0,"agn-pos-grip-promise",{"promiseData":[8,"promise-data"]}],[0,"agn-request-callback-modal",{"modalData":[8,"modal-data"],"modalId":[1,"modal-id"],"pageName":[8,"page-name"],"name":[32],"mobileNumber":[32],"disableLog":[32]},[[0,"eventInputChange","getInputValue"],[0,"modalClosed","onModalClose"]]]]],["agn-contact-us-cards_9",[[0,"agn-contact-us-cards",{"aegonEmail":[1,"aegon-email"],"cardsData":[8,"cards-data"],"requestCallBack":[4,"request-call-back"],"messageUs":[4,"message-us"],"isExisting":[32]}],[0,"agn-home-banner-slider",{"bannerData":[8,"banner-data"],"bannerImagedata":[32],"mediaSrc":[32],"iframeClass":[32],"ImageClass":[32],"swipperInit":[32]}],[0,"agn-home-claim-settlement",{"claimSettlement":[8,"claim-settlement"]}],[0,"agn-home-partners",{"partners":[8]}],[0,"agn-life-insurance",{"lifeInsurance":[8,"life-insurance"]}],[0,"agn-life-profession",{"professionData":[8,"profession-data"]}],[0,"agn-i-would-like-to-card",{"label":[1],"href":[1],"linkTitle":[1,"link-title"],"extraData":[8,"extra-data"],"dropDownClass":[32],"imageUrl":[32]}],[0,"agn-join-team",{"joinTeam":[8,"join-team"]}],[0,"agn-home-about-us",{"slideIndex":[1538,"slide-index"],"aboutUs":[8,"about-us"]}]]],["agn-stepper",[[0,"agn-stepper",{"steps":[8],"isVerticalForMobile":[4,"is-vertical-for-mobile"]}]]],["agn-customer-service-documents_12",[[0,"agn-customer-service-offline-iassist",{"data":[8]}],[0,"agn-customer-service-unclaimed-amount",{"data":[8]}],[0,"agn-customer-service-feedback",{"data":[8],"modalData":[32],"modalType":[32],"buttonImage":[32],"isModalOpen":[32]},[[16,"modalClosed","onModalClose"]]],[0,"agn-customer-service-tabs",{"data":[8]}],[0,"agn-customer-service-documents",{"data":[8]}],[0,"agn-customer-service-further-assistance",{"data":[8]}],[0,"agn-customer-service-have-a-complaint",{"data":[8]}],[0,"agn-customer-service-query-about-service",{"data":[8]}],[0,"agn-customer-service-response-card",{"data":[8]}],[0,"agn-customer-service-iassist",{"data":[8]}],[0,"agn-customer-service-feedback-modal",{"modalData":[8,"modal-data"],"modalType":[8,"modal-type"],"resetForm":[4,"reset-form"]}],[0,"agn-customer-service-unclaimed-amount-modal",{"modalData":[8,"modal-data"]}]]],["agn-pagination",[[0,"agn-pagination",{"articles":[16],"itemsPerPage":[2,"items-per-page"],"scrollToElement":[1,"scroll-to-element"],"scrollToCenter":[4,"scroll-to-center"],"currentPageNumber":[32],"numberOfPages":[32],"pageListArray":[32]}]]],["agn-find-product-result_7",[[4,"agn-product-stepper",{"productStepper":[8,"product-stepper"],"productStepperTitle":[8,"product-stepper-title"],"numberOfSteps":[8,"number-of-steps"],"hideExitButton":[8,"hide-exit-button"],"goalName":[8,"goal-name"],"pageTitile":[8,"page-titile"],"extraPageData":[8,"extra-page-data"],"journeyTitle":[8,"journey-title"],"objBannerData":[8,"obj-banner-data"],"isExtraParams":[4,"is-extra-params"],"extraHeaderData":[8,"extra-header-data"],"isPersoneBased":[4,"is-persone-based"],"isFeatched":[8,"is-featched"],"currentlyEarnAmount":[32],"currentStepData":[32],"disabled":[32],"dobData":[32],"dobDate":[32],"age":[32],"fpDobData":[32],"financialDetails":[32],"genderName":[32],"selectedCurrentlyEarn":[32],"selectedFinancial":[32],"selectedGender":[32],"selectedGenderImageObj":[32],"stepNumber":[32],"personalRisk":[32],"selectedRisk":[32],"customerDob":[32],"showModalPopUp":[32],"modalData":[32],"modalDescription":[32]},[[0,"buttonClicked","onButtonClick"],[0,"genderSelected","selectGender"],[0,"dobData","enterborndate"],[0,"financialSupportSelected","selectfinancial"],[0,"currentlyEarnSelected","selectcurrentlyearn"],[0,"selectedRisk","selectRisk"]]],[0,"agn-find-product-result",{"data":[8],"recommendedGoal":[8,"recommended-goal"],"datalayerPayload":[8,"datalayer-payload"],"isPersoneBased":[4,"is-persone-based"]}],[0,"agn-find-product-step-data",{"data":[8],"label":[8],"type":[8],"inputValue":[8,"input-value"]}],[0,"agn-product-stepper-dob",{"inputValue":[1544,"input-value"]},[[0,"eventInputChange","getInputValue"]]],[0,"agn-product-stepper-risk",{"data":[8],"inputValue":[8,"input-value"]}],[0,"agn-product-stepper-support",{"data":[8],"inputValue":[8,"input-value"]}],[0,"agn-product-stepper-salary",{"data":[8],"inputValue":[8,"input-value"]}]]],["agn-picture",[[0,"agn-picture",{"imageMobile":[8,"image-mobile"],"imageDesktop":[8,"image-desktop"],"height":[8],"width":[8],"altText":[1,"alt-text"],"classNameImage":[8,"class-name-image"],"classNamePicture":[8,"class-name-picture"],"loading":[1]}]]],["agn-tabs",[[0,"agn-tabs",{"classNames":[1537,"class-names"],"tabContentId":[1,"tab-content-id"],"tabs":[16],"isActive":[1540,"is-active"],"isResponsive":[4,"is-responsive"],"moveTabs":[64]}]]],["agn-group-eligibility-blocks_14",[[4,"agn-pos-grip-plans",{"planData":[8,"plan-data"],"planName":[8,"plan-name"],"componentType":[1,"component-type"]},[[0,"tabEvent","onTabClicked"]]],[0,"agn-why-pos-grip",{"gripData":[8,"grip-data"]}],[0,"agn-pos-grip-banner",{"bannerData":[8,"banner-data"],"bannerImages":[8,"banner-images"]}],[0,"agn-pos-grip-claim-details",{"claimDetailData":[8,"claim-detail-data"]}],[0,"agn-pos-grip-disclaimers",{"disclaimers":[8]}],[0,"agn-pos-grip-download-card",{"downloadData":[8,"download-data"],"planName":[8,"plan-name"],"showAll":[32]}],[0,"agn-pos-grip-eligibility",{"eligibilityData":[8,"eligibility-data"],"eligibilityBlock1":[32],"eligibilityBlock1_Title":[32],"eligibilityBlock2_POS":[32],"eligibilityBlock2_SJB":[32],"eligibilityBlock2_ULIP":[32],"eligibilityBlock2_Group":[32],"eligibilityBlock2_New":[32],"eligibilityBlock4_New":[32]}],[0,"agn-pos-grip-ombudsman",{"stepData":[8,"step-data"]}],[0,"agn-iinvest-key-feature-card",{"iInvestCardData":[8,"i-invest-card-data"]}],[0,"agn-sjb-death-benefits-card",{"deathCardData":[8,"death-card-data"],"deathBodyContainsOR":[4,"death-body-contains-o-r"]}],[0,"agn-group-eligibility-blocks",{"groupBlocksData":[8,"group-blocks-data"]}],[0,"agn-pos-grip-key-features",{"keyData":[8,"key-data"],"isCareerPage":[8,"is-career-page"],"analyticsName":[8,"analytics-name"],"analyticsObject":[8,"analytics-object"],"planName":[8,"plan-name"]}],[0,"agn-pos-grip-model",{"modalpopupId":[1,"modalpopup-id"],"modeldata":[8]},[[0,"buttonClicked","onStartGame"]]],[0,"agn-pos-grip-key-features-cards",{"mediaItem":[8,"media-item"],"planName":[8,"plan-name"]}]]]]'),t));!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)},HTMLElement.prototype=a.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,a)}}()},,function(e,t,n){"use strict";var r=function(e){return e},o=n(44),object=n(30);t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;return(Object(o.d)(e)?e.slice():Object(object.h)(e)).reduce((function(e,r){return e[n(r)]=t[r],e}),{})}},,,,function(e,t,n){var r=n(10),o=n(484),c=n(188);e.exports=function(e,t){var n=r(e),d=r(t),f=c(n,d),l=Math.abs(o(n,d));return n.setFullYear(n.getFullYear()-f*l),f*(l-(c(n,d)===-f))}},,function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getTime()>(new Date).getTime()}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getTime()<(new Date).getTime()}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();return t.setSeconds(0,0),6e4*n+t.getTime()%6e4}},function(e,t,n){var r=n(10);e.exports=function(e,t,n,o){var c=r(e).getTime(),d=r(t).getTime(),f=r(n).getTime(),l=r(o).getTime();if(c>d||f>l)throw new Error("The start of the range cannot be after the end of the range");return c<l&&f<d}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(!(t instanceof Array))throw new TypeError(toString.call(t)+" is not an instance of Array");var n,o,c=r(e).getTime();return t.forEach((function(e,t){var d=r(e),f=Math.abs(c-d.getTime());(void 0===n||f<o)&&(n=t,o=f)})),n}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(!(t instanceof Array))throw new TypeError(toString.call(t)+" is not an instance of Array");var n,o,c=r(e).getTime();return t.forEach((function(e){var t=r(e),d=Math.abs(c-t.getTime());(void 0===n||d<o)&&(n=t,o=d)})),n}},function(e,t,n){var r=n(142),o=6e4,c=6048e5;e.exports=function(e,t){var n=r(e),d=r(t),f=n.getTime()-n.getTimezoneOffset()*o,l=d.getTime()-d.getTimezoneOffset()*o;return Math.round((f-l)/c)}},function(e,t,n){var r=n(483),o=n(10);e.exports=function(e,t){var n=o(e),c=o(t);return 4*(n.getFullYear()-c.getFullYear())+(r(n)-r(c))}},function(e,t,n){var r=n(225),o=6e4,c=6048e5;e.exports=function(e,t,n){var d=r(e,n),f=r(t,n),l=d.getTime()-d.getTimezoneOffset()*o,h=f.getTime()-f.getTimezoneOffset()*o;return Math.round((l-h)/c)}},function(e,t,n){var r=n(228),o=36e5;e.exports=function(e,t){var n=r(e,t)/o;return n>0?Math.floor(n):Math.ceil(n)}},function(e,t,n){var r=n(10),o=n(481),c=n(188),d=n(486);e.exports=function(e,t){var n=r(e),f=r(t),l=c(n,f),h=Math.abs(o(n,f));return n=d(n,l*h),l*(h-(c(n,f)===-l))}},function(e,t,n){var r=n(228),o=6e4;e.exports=function(e,t){var n=r(e,t)/o;return n>0?Math.floor(n):Math.ceil(n)}},function(e,t,n){var r=n(332);e.exports=function(e,t){var n=r(e,t)/3;return n>0?Math.floor(n):Math.ceil(n)}},function(e,t,n){var r=n(485);e.exports=function(e,t){var n=r(e,t)/7;return n>0?Math.floor(n):Math.ceil(n)}},function(e,t){e.exports=function(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(t,n,r){var o;return r=r||{},o="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"in "+o:o+" ago":o}}}},function(e,t,n){var r=n(649);e.exports=function(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["AM","PM"],f=["am","pm"],l=["a.m.","p.m."],h={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return o[e.getDay()]},dddd:function(e){return c[e.getDay()]},A:function(e){return e.getHours()/12>=1?d[1]:d[0]},a:function(e){return e.getHours()/12>=1?f[1]:f[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}};return["M","D","DDD","d","Q","W"].forEach((function(e){h[e+"o"]=function(t,n){return function(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}(n[e](t))}})),{formatters:h,formattingTokensRegExp:r(h)}}},function(e,t){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];e.exports=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);var o=n.concat(t).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+o.join("|")+"|.)","g")}},function(e,t,n){var r=n(331),o=n(10),c=n(333),d=n(334),f=1440,l=43200,h=525600;e.exports=function(e,t,n){var m=n||{},v=r(e,t),y=m.locale,_=d.distanceInWords.localize;y&&y.distanceInWords&&y.distanceInWords.localize&&(_=y.distanceInWords.localize);var w,S,E,O={addSuffix:Boolean(m.addSuffix),comparison:v};v>0?(w=o(e),S=o(t)):(w=o(t),S=o(e));var I=Math[m.partialMethod?String(m.partialMethod):"floor"],x=c(S,w),A=S.getTimezoneOffset()-w.getTimezoneOffset(),C=I(x/60)-A;if("s"===(E=m.unit?String(m.unit):C<1?"s":C<60?"m":C<f?"h":C<l?"d":C<h?"M":"Y"))return _("xSeconds",x,O);if("m"===E)return _("xMinutes",C,O);if("h"===E)return _("xHours",I(C/60),O);if("d"===E)return _("xDays",I(C/f),O);if("M"===E)return _("xMonths",I(C/l),O);if("Y"===E)return _("xYears",I(C/h),O);throw new Error("Unknown unit: "+E)}},function(e,t,n){var r=n(487);e.exports=function(e,t){return r(Date.now(),e,t)}},function(e,t,n){var r=n(10);e.exports=function(e,t,n){var o=r(e),c=void 0!==n?n:1,d=r(t).getTime();if(o.getTime()>d)throw new Error("The first date cannot be after the second date");var f=[],l=o;for(l.setHours(0,0,0,0);l.getTime()<=d;)f.push(r(l)),l.setDate(l.getDate()+c);return f}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e);return t.setMinutes(59,59,999),t}},function(e,t,n){var r=n(488);e.exports=function(e){return r(e,{weekStartsOn:1})}},function(e,t,n){var r=n(141),o=n(142);e.exports=function(e){var t=r(e),n=new Date(0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);var c=o(n);return c.setMilliseconds(c.getMilliseconds()-1),c}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e);return t.setSeconds(59,999),t}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e),n=t.getMonth(),o=n-n%3+3;return t.setMonth(o,0),t.setHours(23,59,59,999),t}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e);return t.setMilliseconds(999),t}},function(e,t,n){var r=n(335);e.exports=function(){return r(new Date)}},function(e,t){e.exports=function(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r+1),o.setHours(23,59,59,999),o}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},function(e,t){e.exports=function(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r-1),o.setHours(23,59,59,999),o}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getDate()}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getDay()}},function(e,t,n){var r=n(493);e.exports=function(e){return r(e)?366:365}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getHours()}},function(e,t,n){var r=n(187),o=n(330),c=6048e5;e.exports=function(e){var t=r(e),n=r(o(t,60)).valueOf()-t.valueOf();return Math.round(n/c)}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getMilliseconds()}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getMinutes()}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getMonth()}},function(e,t,n){var r=n(10),o=864e5;e.exports=function(e,t,n,c){var d=r(e).getTime(),f=r(t).getTime(),l=r(n).getTime(),h=r(c).getTime();if(d>f||l>h)throw new Error("The start of the range cannot be after the end of the range");if(!(d<h&&l<f))return 0;var m=(h>f?f:h)-(l<d?d:l);return Math.ceil(m/o)}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getSeconds()}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getTime()}},function(e,t,n){var r=n(10);e.exports=function(e){return r(e).getFullYear()}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()>o.getTime()}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()<o.getTime()}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()===o.getTime()}},function(e,t,n){var r=n(10);e.exports=function(e){return 1===r(e).getDate()}},function(e,t,n){var r=n(10);e.exports=function(e){return 5===r(e).getDay()}},function(e,t,n){var r=n(10),o=n(335),c=n(489);e.exports=function(e){var t=r(e);return o(t).getTime()===c(t).getTime()}},function(e,t,n){var r=n(10);e.exports=function(e){return 1===r(e).getDay()}},function(e,t,n){var r=n(143);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()===o.getTime()}},function(e,t,n){var r=n(10);e.exports=function(e){return 6===r(e).getDay()}},function(e,t,n){var r=n(10);e.exports=function(e){return 0===r(e).getDay()}},function(e,t,n){var r=n(495);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(497);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(498);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(499);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(501);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(502);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(504);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(338);e.exports=function(e,t){return r(new Date,e,t)}},function(e,t,n){var r=n(506);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(10);e.exports=function(e){return 4===r(e).getDay()}},function(e,t,n){var r=n(143);e.exports=function(e){return r(e).getTime()===r(new Date).getTime()}},function(e,t,n){var r=n(143);e.exports=function(e){var t=new Date;return t.setDate(t.getDate()+1),r(e).getTime()===r(t).getTime()}},function(e,t,n){var r=n(10);e.exports=function(e){return 2===r(e).getDay()}},function(e,t,n){var r=n(10);e.exports=function(e){return 3===r(e).getDay()}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e).getDay();return 0===t||6===t}},function(e,t,n){var r=n(10);e.exports=function(e,t,n){var time=r(e).getTime(),o=r(t).getTime(),c=r(n).getTime();if(o>c)throw new Error("The start of the range cannot be after the end of the range");return time>=o&&time<=c}},function(e,t,n){var r=n(143);e.exports=function(e){var t=new Date;return t.setDate(t.getDate()-1),r(e).getTime()===r(t).getTime()}},function(e,t,n){var r=n(507);e.exports=function(e){return r(e,{weekStartsOn:1})}},function(e,t,n){var r=n(141),o=n(142);e.exports=function(e){var t=r(e),n=new Date(0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);var c=o(n);return c.setDate(c.getDate()-1),c}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e),n=t.getMonth(),o=n-n%3+3;return t.setMonth(o,0),t.setHours(0,0,0,0),t}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(0,0,0,0),t}},function(e,t,n){var r=n(10);e.exports=function(){var e=Array.prototype.slice.call(arguments).map((function(e){return r(e)})),t=Math.max.apply(null,e);return new Date(t)}},function(e,t,n){var r=n(10);e.exports=function(){var e=Array.prototype.slice.call(arguments).map((function(e){return r(e)})),t=Math.min.apply(null,e);return new Date(t)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=Number(t);return n.setDate(o),n}},function(e,t,n){var r=n(10),o=n(185);e.exports=function(e,t,n){var c=n&&Number(n.weekStartsOn)||0,d=r(e),f=Number(t),l=d.getDay();return o(d,((f%7+7)%7<c?7:0)+f-l)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=Number(t);return n.setMonth(0),n.setDate(o),n}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=Number(t);return n.setHours(o),n}},function(e,t,n){var r=n(10),o=n(185),c=n(494);e.exports=function(e,t){var n=r(e),d=Number(t),f=c(n);return o(n,d-f)}},function(e,t,n){var r=n(10),o=n(337);e.exports=function(e,t){var n=r(e),c=Number(t),d=o(n)-c;return n.setDate(n.getDate()-7*d),n}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=Number(t);return n.setMilliseconds(o),n}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=Number(t);return n.setMinutes(o),n}},function(e,t,n){var r=n(10),o=n(508);e.exports=function(e,t){var n=r(e),c=Number(t)-(Math.floor(n.getMonth()/3)+1);return o(n,n.getMonth()+3*c)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=Number(t);return n.setSeconds(o),n}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=r(e),o=Number(t);return n.setFullYear(o),n}},function(e,t,n){var r=n(10);e.exports=function(e){var t=r(e);return t.setDate(1),t.setHours(0,0,0,0),t}},function(e,t,n){var r=n(143);e.exports=function(){return r(new Date)}},function(e,t){e.exports=function(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r+1),o.setHours(0,0,0,0),o}},function(e,t){e.exports=function(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r-1),o.setHours(0,0,0,0),o}},function(e,t,n){var r=n(185);e.exports=function(e,t){var n=Number(t);return r(e,-n)}},function(e,t,n){var r=n(474);e.exports=function(e,t){var n=Number(t);return r(e,-n)}},function(e,t,n){var r=n(186);e.exports=function(e,t){var n=Number(t);return r(e,-n)}},function(e,t,n){var r=n(477);e.exports=function(e,t){var n=Number(t);return r(e,-n)}},function(e,t,n){var r=n(227);e.exports=function(e,t){var n=Number(t);return r(e,-n)}},function(e,t,n){var r=n(478);e.exports=function(e,t){var n=Number(t);return r(e,-n)}},function(e,t,n){var r=n(479);e.exports=function(e,t){var n=Number(t);return r(e,-n)}},function(e,t,n){var r=n(330);e.exports=function(e,t){var n=Number(t);return r(e,-n)}},function(e,t,n){var r=n(480);e.exports=function(e,t){var n=Number(t);return r(e,-n)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=f(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,i,n=f(e),r=n[0],d=n[1],l=new c(function(e,t,n){return 3*(t+n)/4-n}(0,r,d)),h=0,m=d>0?r-4:r;for(i=0;i<m;i+=4)t=o[e.charCodeAt(i)]<<18|o[e.charCodeAt(i+1)]<<12|o[e.charCodeAt(i+2)]<<6|o[e.charCodeAt(i+3)],l[h++]=t>>16&255,l[h++]=t>>8&255,l[h++]=255&t;2===d&&(t=o[e.charCodeAt(i)]<<2|o[e.charCodeAt(i+1)]>>4,l[h++]=255&t);1===d&&(t=o[e.charCodeAt(i)]<<10|o[e.charCodeAt(i+1)]<<4|o[e.charCodeAt(i+2)]>>2,l[h++]=t>>8&255,l[h++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,c=[],i=0,d=n-o;i<d;i+=16383)c.push(l(e,i,i+16383>d?d:i+16383));1===o?(t=e[n-1],c.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],c.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return c.join("")};for(var r=[],o=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,d=code.length;i<d;++i)r[i]=code[i],o[code.charCodeAt(i)]=i;function f(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,c,output=[],i=t;i<n;i+=3)o=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),output.push(r[(c=o)>>18&63]+r[c>>12&63]+r[c>>6&63]+r[63&c]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var c,d,f=8*o-r-1,l=(1<<f)-1,h=l>>1,m=-7,i=n?o-1:0,v=n?-1:1,s=e[t+i];for(i+=v,c=s&(1<<-m)-1,s>>=-m,m+=f;m>0;c=256*c+e[t+i],i+=v,m-=8);for(d=c&(1<<-m)-1,c>>=-m,m+=r;m>0;d=256*d+e[t+i],i+=v,m-=8);if(0===c)c=1-h;else{if(c===l)return d?NaN:1/0*(s?-1:1);d+=Math.pow(2,r),c-=h}return(s?-1:1)*d*Math.pow(2,c-r)},t.write=function(e,t,n,r,o,c){var d,f,l,h=8*c-o-1,m=(1<<h)-1,v=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:c-1,y=r?1:-1,s=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,d=m):(d=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-d))<1&&(d--,l*=2),(t+=d+v>=1?rt/l:rt*Math.pow(2,1-v))*l>=2&&(d++,l/=2),d+v>=m?(f=0,d=m):d+v>=1?(f=(t*l-1)*Math.pow(2,o),d+=v):(f=t*Math.pow(2,v-1)*Math.pow(2,o),d=0));o>=8;e[n+i]=255&f,i+=y,f/=256,o-=8);for(d=d<<o|f,h+=o;h>0;e[n+i]=255&d,i+=y,d/=256,h-=8);e[n+i-y]|=128*s}},,function(e,t,n){"use strict";var r=n(37).Buffer,o=n(737);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(s){if(0===this.length)return"";for(var p=this.head,e=""+p.data;p=p.next;)e+=s+p.data;return e},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,o,c=r.allocUnsafe(e>>>0),p=this.head,i=0;p;)t=p.data,n=c,o=i,t.copy(n,o),i+=p.data.length,p=p.next;return c},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},,function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(88))},function(e,t,n){var r=n(28),o=r.Buffer;function c(e,t){for(var n in e)t[n]=e[n]}function d(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(c(r,t),t.Buffer=d),d.prototype=Object.create(o.prototype),c(o,d),d.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},d.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},d.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},d.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";e.exports=c;var r=n(514),o=Object.create(n(190));function c(e){if(!(this instanceof c))return new c(e);r.call(this,e)}o.inherits=n(35),o.inherits(c,r),c.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(342)},function(e,t,n){e.exports=n(144)},function(e,t,n){e.exports=n(341).Transform},function(e,t,n){e.exports=n(341).PassThrough},function(e,t,n){var r=n(35),o=n(156),c=n(37).Buffer,d=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);function l(){this.init(),this._w=f,o.call(this,64,56)}function h(e){return e<<30|e>>>2}function m(s,b,e,t){return 0===s?b&e|~b&t:2===s?b&e|b&t|e&t:b^e^t}r(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,n=this._w,a=0|this._a,b=0|this._b,r=0|this._c,o=0|this._d,c=0|this._e,i=0;i<16;++i)n[i]=e.readInt32BE(4*i);for(;i<80;++i)n[i]=n[i-3]^n[i-8]^n[i-14]^n[i-16];for(var f=0;f<80;++f){var s=~~(f/20),l=0|((t=a)<<5|t>>>27)+m(s,b,r,o)+c+n[f]+d[s];c=o,o=r,r=h(b),b=a,a=l}this._a=a+this._a|0,this._b=b+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0},l.prototype._hash=function(){var e=c.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,n){var r=n(35),o=n(156),c=n(37).Buffer,d=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);function l(){this.init(),this._w=f,o.call(this,64,56)}function h(e){return e<<5|e>>>27}function m(e){return e<<30|e>>>2}function v(s,b,e,t){return 0===s?b&e|~b&t:2===s?b&e|b&t|e&t:b^e^t}r(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,n=this._w,a=0|this._a,b=0|this._b,r=0|this._c,o=0|this._d,c=0|this._e,i=0;i<16;++i)n[i]=e.readInt32BE(4*i);for(;i<80;++i)n[i]=(t=n[i-3]^n[i-8]^n[i-14]^n[i-16])<<1|t>>>31;for(var f=0;f<80;++f){var s=~~(f/20),l=h(a)+v(s,b,r,o)+c+n[f]+d[s]|0;c=o,o=r,r=m(b),b=a,a=l}this._a=a+this._a|0,this._b=b+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0},l.prototype._hash=function(){var e=c.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},function(e,t,n){var r=n(35),o=n(515),c=n(156),d=n(37).Buffer,f=new Array(64);function l(){this.init(),this._w=f,c.call(this,64,56)}r(l,o),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=d.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},function(e,t,n){var r=n(35),o=n(516),c=n(156),d=n(37).Buffer,f=new Array(160);function l(){this.init(),this._w=f,c.call(this,128,112)}r(l,o),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=d.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},function(e,t,n){"use strict";var r=n(35),o=n(37).Buffer,c=n(130),d=o.alloc(128),f=64;function l(e,t){c.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>f?t=e(t):t.length<f&&(t=o.concat([t,d],f));for(var n=this._ipad=o.allocUnsafe(f),r=this._opad=o.allocUnsafe(f),i=0;i<f;i++)n[i]=54^t[i],r[i]=92^t[i];this._hash=[n]}r(l,c),l.prototype._update=function(data){this._hash.push(data)},l.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},e.exports=l},function(e,t,n){e.exports=n(519)},function(e,t,n){(function(t,r){var o,c=n(521),d=n(522),f=n(523),l=n(37).Buffer,h=t.crypto&&t.crypto.subtle,m={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},v=[];function y(e,t,n,r,o){return h.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return h.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:o}},e,r<<3)})).then((function(e){return l.from(e)}))}e.exports=function(e,n,_,w,S,E){"function"==typeof S&&(E=S,S=void 0);var O=m[(S=S||"sha1").toLowerCase()];if(!O||"function"!=typeof t.Promise)return r.nextTick((function(){var t;try{t=f(e,n,_,w,S)}catch(e){return E(e)}E(null,t)}));if(c(e,n,_,w),"function"!=typeof E)throw new Error("No callback provided to pbkdf2");l.isBuffer(e)||(e=l.from(e,d)),l.isBuffer(n)||(n=l.from(n,d)),function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(void 0!==v[e])return v[e];var n=y(o=o||l.alloc(8),o,10,128,e).then((function(){return!0})).catch((function(){return!1}));return v[e]=n,n}(O).then((function(t){return t?y(e,n,_,w,O):f(e,n,_,w,S)})),E)}}).call(this,n(88),n(107))},function(e,t,n){var r=n(753),o=n(347),c=n(348),d=n(766),f=n(231);function l(e,t,n){if(e=e.toLowerCase(),c[e])return o.createCipheriv(e,t,n);if(d[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function h(e,t,n){if(e=e.toLowerCase(),c[e])return o.createDecipheriv(e,t,n);if(d[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),c[e])n=c[e].key,r=c[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");n=8*d[e].key,r=d[e].iv}var o=f(t,!1,n,r);return l(e,o.key,o.iv)},t.createCipheriv=t.Cipheriv=l,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),c[e])n=c[e].key,r=c[e].iv;else{if(!d[e])throw new TypeError("invalid suite type");n=8*d[e].key,r=d[e].iv}var o=f(t,!1,n,r);return h(e,o.key,o.iv)},t.createDecipheriv=t.Decipheriv=h,t.listCiphers=t.getCiphers=function(){return Object.keys(d).concat(o.getCiphers())}},function(e,t,n){var r=n(130),o=n(754),c=n(35),d=n(37).Buffer,f={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function l(e){r.call(this);var t,n=e.mode.toLowerCase(),o=f[n];t=e.decrypt?"decrypt":"encrypt";var c=e.key;d.isBuffer(c)||(c=d.from(c)),"des-ede"!==n&&"des-ede-cbc"!==n||(c=d.concat([c,c.slice(0,8)]));var l=e.iv;d.isBuffer(l)||(l=d.from(l)),this._des=o.create({key:c,iv:l,type:t})}f.des=f["des-cbc"],f.des3=f["des-ede3-cbc"],e.exports=l,c(l,r),l.prototype._update=function(data){return d.from(this._des.update(data))},l.prototype._final=function(){return d.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(524),t.Cipher=n(346),t.DES=n(525),t.CBC=n(755),t.EDE=n(756)},function(e,t,n){"use strict";var r=n(96),o=n(35),c={};function d(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var i=0;i<this.iv.length;i++)this.iv[i]=e[i]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}o(t,e);for(var n=Object.keys(c),i=0;i<n.length;i++){var r=n[i];t.prototype[r]=c[r]}return t.create=function(e){return new t(e)},t},c._cbcInit=function(){var e=new d(this.options.iv);this._cbcState=e},c._update=function(e,t,n,r){var o=this._cbcState,c=this.constructor.super_.prototype,d=o.iv;if("encrypt"===this.type){for(var i=0;i<this.blockSize;i++)d[i]^=e[t+i];c._update.call(this,d,0,n,r);for(i=0;i<this.blockSize;i++)d[i]=n[r+i]}else{c._update.call(this,e,t,n,r);for(i=0;i<this.blockSize;i++)n[r+i]^=d[i];for(i=0;i<this.blockSize;i++)d[i]=e[t+i]}}},function(e,t,n){"use strict";var r=n(96),o=n(35),c=n(346),d=n(525);function f(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),o=t.slice(8,16),c=t.slice(16,24);this.ciphers="encrypt"===e?[d.create({type:"encrypt",key:n}),d.create({type:"decrypt",key:o}),d.create({type:"encrypt",key:c})]:[d.create({type:"decrypt",key:c}),d.create({type:"encrypt",key:o}),d.create({type:"decrypt",key:n})]}function l(e){c.call(this,e);var t=new f(this.type,this.options.key);this._edeState=t}o(l,c),e.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,n,r){var o=this._edeState;o.ciphers[0]._update(e,t,n,r),o.ciphers[1]._update(n,r,n,r),o.ciphers[2]._update(n,r,n,r)},l.prototype._pad=d.prototype._pad,l.prototype._unpad=d.prototype._unpad},function(e,t,n){var r=n(348),o=n(529),c=n(37).Buffer,d=n(530),f=n(130),l=n(230),h=n(231);function m(e,t,n){f.call(this),this._cache=new y,this._cipher=new l.AES(t),this._prev=c.from(n),this._mode=e,this._autopadding=!0}n(35)(m,f),m.prototype._update=function(data){var e,t;this._cache.add(data);for(var n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return c.concat(n)};var v=c.alloc(16,16);function y(){this.cache=c.allocUnsafe(0)}function _(e,t,n){var f=r[e.toLowerCase()];if(!f)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=c.from(t)),t.length!==f.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=c.from(n)),"GCM"!==f.mode&&n.length!==f.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===f.type?new d(f.module,t,n):"auth"===f.type?new o(f.module,t,n):new m(f.module,t,n)}m.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(v))throw this._cipher.scrub(),new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},y.prototype.add=function(data){this.cache=c.concat([this.cache,data])},y.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},y.prototype.flush=function(){for(var e=16-this.cache.length,t=c.allocUnsafe(e),i=-1;++i<e;)t.writeUInt8(e,i);return c.concat([this.cache,t])},t.createCipheriv=_,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var o=h(t,!1,n.key,n.iv);return _(e,o.key,o.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,n){var r=n(191);t.encrypt=function(e,t){var data=r(t,e._prev);return e._prev=e._cipher.encryptBlock(data),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var o=e._cipher.decryptBlock(t);return r(o,n)}},function(e,t,n){var r=n(37).Buffer,o=n(191);function c(e,data,t){var n=data.length,c=o(data,e._cache);return e._cache=e._cache.slice(n),e._prev=r.concat([e._prev,t?data:c]),c}t.encrypt=function(e,data,t){for(var n,o=r.allocUnsafe(0);data.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=data.length)){o=r.concat([o,c(e,data,t)]);break}n=e._cache.length,o=r.concat([o,c(e,data.slice(0,n),t)]),data=data.slice(n)}return o}},function(e,t,n){var r=n(37).Buffer;function o(e,t,n){var o=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:o])]),o}t.encrypt=function(e,t,n){for(var c=t.length,d=r.allocUnsafe(c),i=-1;++i<c;)d[i]=o(e,t[i],n);return d}},function(e,t,n){var r=n(37).Buffer;function o(e,t,n){for(var r,o,i=-1,d=0;++i<8;)r=t&1<<7-i?128:0,d+=(128&(o=e._cipher.encryptBlock(e._prev)[0]^r))>>i%8,e._prev=c(e._prev,n?r:o);return d}function c(e,t){var n=e.length,i=-1,o=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,n){for(var c=t.length,d=r.allocUnsafe(c),i=-1;++i<c;)d[i]=o(e,t[i],n);return d}},function(e,t,n){(function(e){var r=n(191);function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,o(t)]);var c=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),r(n,c)}}).call(this,n(28).Buffer)},function(e,t,n){var r=n(37).Buffer,o=r.alloc(16,0);function c(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function d(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}d.prototype.ghash=function(e){for(var i=-1;++i<e.length;)this.state[i]^=e[i];this._multiply()},d.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],o=[0,0,0,0],i=-1;++i<128;){for(0!=(this.state[~~(i/8)]&1<<7-i%8)&&(o[0]^=r[0],o[1]^=r[1],o[2]^=r[2],o[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=c(o)},d.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},d.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,o],16)),this.ghash(c([0,e,0,t])),this.state},e.exports=d},function(e,t,n){var r=n(529),o=n(37).Buffer,c=n(348),d=n(530),f=n(130),l=n(230),h=n(231);function m(e,t,n){f.call(this),this._cache=new v,this._last=void 0,this._cipher=new l.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}function v(){this.cache=o.allocUnsafe(0)}function y(e,t,n){var f=c[e.toLowerCase()];if(!f)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=o.from(n)),"GCM"!==f.mode&&n.length!==f.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=o.from(t)),t.length!==f.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===f.type?new d(f.module,t,n,!0):"auth"===f.type?new r(f.module,t,n,!0):new m(f.module,t,n)}n(35)(m,f),m.prototype._update=function(data){var e,t;this._cache.add(data);for(var n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return o.concat(n)},m.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var i=-1;for(;++i<t;)if(e[i+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},v.prototype.add=function(data){this.cache=o.concat([this.cache,data])},v.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},v.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=c[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=h(t,!1,n.key,n.iv);return y(e,r.key,r.iv)},t.createDecipheriv=y},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,n){(function(e){var r=n(531),o=n(770),c=n(771);var d={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(o[t].prime,"hex"),r=new e(o[t].gen,"hex");return new c(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,o,f,l){return e.isBuffer(o)||void 0===d[o]?t(n,"binary",o,f):(o=o||"binary",l=l||"binary",f=f||new e([2]),e.isBuffer(f)||(f=new e(f,l)),"number"==typeof n?new c(r(n,f),f,!0):(e.isBuffer(n)||(n=new e(n,o)),new c(n,f,!0)))}}).call(this,n(28).Buffer)},,,function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,n){(function(t){var r=n(61),o=new(n(533)),c=new r(24),d=new r(11),f=new r(10),l=new r(3),h=new r(7),m=n(531),v=n(155);function y(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function _(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=S;var w={};function S(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=y,this.setPrivateKey=_):this._primeCode=8}function E(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(S.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in w)return w[r];var v,y=0;if(e.isEven()||!m.simpleSieve||!m.fermatTest(e)||!o.test(e))return y+=1,y+="02"===n||"05"===n?8:4,w[r]=y,y;switch(o.test(e.shrn(1))||(y+=2),n){case"02":e.mod(c).cmp(d)&&(y+=8);break;case"05":(v=e.mod(f)).cmp(l)&&v.cmp(h)&&(y+=8);break;default:y+=4}return w[r]=y,y}(this.__prime,this.__gen)),this._primeCode}}),S.prototype.generateKeys=function(){return this._priv||(this._priv=new r(v(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},S.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new t(n.toArray()),c=this.getPrime();if(o.length<c.length){var d=new t(c.length-o.length);d.fill(0),o=t.concat([d,o])}return o},S.prototype.getPublicKey=function(e){return E(this._pub,e)},S.prototype.getPrivateKey=function(e){return E(this._priv,e)},S.prototype.getPrime=function(e){return E(this.__prime,e)},S.prototype.getGenerator=function(e){return E(this._gen,e)},S.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new r(e),this}}).call(this,n(28).Buffer)},function(e,t,n){(function(t){var r=n(189),o=n(340),c=n(35),d=n(773),f=n(805),l=n(519);function h(e){o.Writable.call(this);var data=l[e];if(!data)throw new Error("Unknown message digest");this._hashType=data.hash,this._hash=r(data.hash),this._tag=data.id,this._signType=data.sign}function m(e){o.Writable.call(this);var data=l[e];if(!data)throw new Error("Unknown message digest");this._hash=r(data.hash),this._tag=data.id,this._signType=data.sign}function v(e){return new h(e)}function y(e){return new m(e)}Object.keys(l).forEach((function(e){l[e].id=new t(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),c(h,o.Writable),h.prototype._write=function(data,e,t){this._hash.update(data),t()},h.prototype.update=function(data,e){return"string"==typeof data&&(data=new t(data,e)),this._hash.update(data),this},h.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=d(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},c(m,o.Writable),m.prototype._write=function(data,e,t){this._hash.update(data),t()},m.prototype.update=function(data,e){return"string"==typeof data&&(data=new t(data,e)),this._hash.update(data),this},m.prototype.verify=function(e,n,r){"string"==typeof n&&(n=new t(n,r)),this.end();var o=this._hash.digest();return f(n,o,e,this._signType,this._tag)},e.exports={Sign:v,Verify:y,createSign:v,createVerify:y}}).call(this,n(28).Buffer)},function(e,t,n){(function(t){var r=n(517),o=n(350),c=n(351).ec,d=n(61),f=n(233),l=n(543);function h(e,q,n,o){if((e=new t(e.toArray())).length<q.byteLength()){var c=new t(q.byteLength()-e.length);c.fill(0),e=t.concat([c,e])}var d=n.length,f=function(e,q){e=(e=m(e,q)).mod(q);var n=new t(e.toArray());if(n.length<q.byteLength()){var r=new t(q.byteLength()-n.length);r.fill(0),n=t.concat([r,n])}return n}(n,q),l=new t(d);l.fill(1);var h=new t(d);return h.fill(0),h=r(o,h).update(l).update(new t([0])).update(e).update(f).digest(),l=r(o,h).update(l).digest(),{k:h=r(o,h).update(l).update(new t([1])).update(e).update(f).digest(),v:l=r(o,h).update(l).digest()}}function m(e,q){var t=new d(e),n=(e.length<<3)-q.bitLength();return n>0&&t.ishrn(n),t}function v(q,e,n){var o,c;do{for(o=new t(0);8*o.length<q.bitLength();)e.v=r(n,e.k).update(e.v).digest(),o=t.concat([o,e.v]);c=m(o,q),e.k=r(n,e.k).update(e.v).update(new t([0])).digest(),e.v=r(n,e.k).update(e.v).digest()}while(-1!==c.cmp(q));return c}function y(g,e,p,q){return g.toRed(d.mont(p)).redPow(e).fromRed().mod(q)}e.exports=function(e,n,r,_,w){var S=f(n);if(S.curve){if("ecdsa"!==_&&"ecdsa/rsa"!==_)throw new Error("wrong private key type");return function(e,n){var r=l[n.curve.join(".")];if(!r)throw new Error("unknown curve "+n.curve.join("."));var o=new c(r).keyFromPrivate(n.privateKey).sign(e);return new t(o.toDER())}(e,S)}if("dsa"===S.type){if("dsa"!==_)throw new Error("wrong private key type");return function(e,n,r){var o,c=n.params.priv_key,p=n.params.p,q=n.params.q,g=n.params.g,f=new d(0),l=m(e,q).mod(q),s=!1,_=h(c,q,e,r);for(;!1===s;)o=v(q,_,r),f=y(g,o,p,q),0===(s=o.invm(q).imul(l.add(c.mul(f))).mod(q)).cmpn(0)&&(s=!1,f=new d(0));return function(e,s){e=e.toArray(),s=s.toArray(),128&e[0]&&(e=[0].concat(e));128&s[0]&&(s=[0].concat(s));var n=[48,e.length+s.length+4,2,e.length];return n=n.concat(e,[2,s.length],s),new t(n)}(f,s)}(e,S,r)}if("rsa"!==_&&"ecdsa/rsa"!==_)throw new Error("wrong private key type");e=t.concat([w,e]);for(var E=S.modulus.byteLength(),O=[0,1];e.length+O.length+1<E;)O.push(255);O.push(0);for(var i=-1;++i<e.length;)O.push(e[i]);return o(O,S)},e.exports.getKey=h,e.exports.makeKey=v}).call(this,n(28).Buffer)},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.2","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz","_integrity":"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==","_from":"elliptic@6.5.2"}')},function(e,t,n){"use strict";var r=n(97),o=n(61),c=n(35),d=n(232),f=r.assert;function l(e){d.call(this,"short",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(e,t,n,r){d.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(t,16),this.y=new o(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function m(e,t,n,r){d.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(t,16),this.y=new o(n,16),this.z=new o(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}c(l,d),e.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new o(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new o(e.lambda,16);else{var c=this._getEndoRoots(this.n);0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(t))?n=c[0]:(n=c[1],f(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new o(e.a,16),b:new o(e.b,16)}})):this._getEndoBasis(n)}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.mont(e),n=new o(2).toRed(t).redInvm(),r=n.redNeg(),s=new o(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(s).fromRed(),r.redSub(s).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,n,r,c,d,f,l,h,m,v=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=e,y=this.n.clone(),_=new o(1),w=new o(0),S=new o(0),E=new o(1),i=0;0!==u.cmpn(0);){var q=y.div(u);h=y.sub(q.mul(u)),m=S.sub(q.mul(_));var O=E.sub(q.mul(w));if(!r&&h.cmp(v)<0)t=l.neg(),n=_,r=h.neg(),c=m;else if(r&&2==++i)break;l=h,y=u,u=h,S=_,_=m,E=w,w=O}d=h.neg(),f=m;var I=r.sqr().add(c.sqr());return d.sqr().add(f.sqr()).cmp(I)>=0&&(d=t,f=n),r.negative&&(r=r.neg(),c=c.neg()),d.negative&&(d=d.neg(),f=f.neg()),[{a:r,b:c},{a:d,b:f}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],o=r.b.mul(e).divRound(this.n),c=n.b.neg().mul(e).divRound(this.n),d=o.mul(n.a),f=c.mul(r.a),l=o.mul(n.b),h=c.mul(r.b);return{k1:e.sub(d).sub(f),k2:l.add(h).neg()}},l.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var c=r.fromRed().isOdd();return(t&&!c||!t&&c)&&(r=r.redNeg()),this.point(e,r)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,o=this._endoWnafT2,i=0;i<e.length;i++){var c=this._endoSplit(t[i]),p=e[i],d=p._getBeta();c.k1.negative&&(c.k1.ineg(),p=p.neg(!0)),c.k2.negative&&(c.k2.ineg(),d=d.neg(!0)),r[2*i]=p,r[2*i+1]=d,o[2*i]=c.k1,o[2*i+1]=c.k2}for(var f=this._wnafMulAdd(1,r,o,2*i,n),l=0;l<2*i;l++)r[l]=null,o[l]=null;return f},c(h,d.BasePoint),l.prototype.point=function(e,t,n){return new h(this,e,t,n)},l.prototype.pointFromJSON=function(e,t){return h.fromJSON(this,e,t)},h.prototype._getBeta=function(){if(this.curve.endo){var pre=this.precomputed;if(pre&&pre.beta)return pre.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(pre){var t=this.curve,n=function(p){return t.point(p.x.redMul(t.endo.beta),p.y)};pre.beta=e,e.precomputed={beta:null,naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(n)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(n)}}}return e}},h.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},h.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function o(t){return e.point(t[0],t[1],n)}var pre=t[2];return r.precomputed={beta:null,doubles:pre.doubles&&{step:pre.doubles.step,points:[r].concat(pre.doubles.points.map(o))},naf:pre.naf&&{wnd:pre.naf.wnd,points:[r].concat(pre.naf.points.map(o))}},r},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(0===this.x.cmp(p.x))return this.curve.point(null,null);var e=this.y.redSub(p.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(p.x).redInvm()));var t=e.redSqr().redISub(this.x).redISub(p.x),n=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,n)},h.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var a=this.curve.a,t=this.x.redSqr(),n=e.redInvm(),r=t.redAdd(t).redIAdd(t).redIAdd(a).redMul(n),o=r.redSqr().redISub(this.x.redAdd(this.x)),c=r.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,c)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(e){return e=new o(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},h.prototype.mulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o):this.curve._wnafMulAdd(1,r,o,2)},h.prototype.jmulAdd=function(e,t,n){var r=[this,t],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,o,!0):this.curve._wnafMulAdd(1,r,o,2,!0)},h.prototype.eq=function(p){return this===p||this.inf===p.inf&&(this.inf||0===this.x.cmp(p.x)&&0===this.y.cmp(p.y))},h.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var pre=this.precomputed,n=function(p){return p.neg()};t.precomputed={naf:pre.naf&&{wnd:pre.naf.wnd,points:pre.naf.points.map(n)},doubles:pre.doubles&&{step:pre.doubles.step,points:pre.doubles.points.map(n)}}}return t},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},c(m,d.BasePoint),l.prototype.jpoint=function(e,t,n){return new m(this,e,t,n)},m.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},m.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},m.prototype.add=function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var e=p.z.redSqr(),t=this.z.redSqr(),n=this.x.redMul(e),r=p.x.redMul(t),o=this.y.redMul(e.redMul(p.z)),c=p.y.redMul(t.redMul(this.z)),d=n.redSub(r),f=o.redSub(c);if(0===d.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=d.redSqr(),h3=h2.redMul(d),l=n.redMul(h2),h=f.redSqr().redIAdd(h3).redISub(l).redISub(l),m=f.redMul(l.redISub(h)).redISub(o.redMul(h3)),v=this.z.redMul(p.z).redMul(d);return this.curve.jpoint(h,m,v)},m.prototype.mixedAdd=function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var e=this.z.redSqr(),t=this.x,n=p.x.redMul(e),r=this.y,o=p.y.redMul(e).redMul(this.z),c=t.redSub(n),d=r.redSub(o);if(0===c.cmpn(0))return 0!==d.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h2=c.redSqr(),h3=h2.redMul(c),f=t.redMul(h2),l=d.redSqr().redIAdd(h3).redISub(f).redISub(f),h=d.redMul(f.redISub(l)).redISub(r.redMul(h3)),m=this.z.redMul(c);return this.curve.jpoint(l,h,m)},m.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,i=0;i<e;i++)t=t.dbl();return t}var a=this.curve.a,n=this.curve.tinv,r=this.x,o=this.y,c=this.z,d=c.redSqr().redSqr(),f=o.redAdd(o);for(i=0;i<e;i++){var l=r.redSqr(),h=f.redSqr(),m=h.redSqr(),v=l.redAdd(l).redIAdd(l).redIAdd(a.redMul(d)),y=r.redMul(h),_=v.redSqr().redISub(y.redAdd(y)),w=y.redISub(_),S=v.redMul(w);S=S.redIAdd(S).redISub(m);var E=f.redMul(c);i+1<e&&(d=d.redMul(m)),r=_,c=E,f=S}return this.curve.jpoint(r,f.redMul(n),c)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},m.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),c=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(r).redISub(c);s=s.redIAdd(s);var d=r.redAdd(r).redIAdd(r),f=d.redSqr().redISub(s).redISub(s),l=c.redIAdd(c);l=(l=l.redIAdd(l)).redIAdd(l),e=f,t=d.redMul(s.redISub(f)).redISub(l),n=this.y.redAdd(this.y)}else{var a=this.x.redSqr(),b=this.y.redSqr(),h=b.redSqr(),m=this.x.redAdd(b).redSqr().redISub(a).redISub(h);m=m.redIAdd(m);var v=a.redAdd(a).redIAdd(a),y=v.redSqr(),_=h.redIAdd(h);_=(_=_.redIAdd(_)).redIAdd(_),e=y.redISub(m).redISub(m),t=v.redMul(m.redISub(e)).redISub(_),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},m.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),o=this.y.redSqr(),c=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(r).redISub(c);s=s.redIAdd(s);var d=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),f=d.redSqr().redISub(s).redISub(s);e=f;var l=c.redIAdd(c);l=(l=l.redIAdd(l)).redIAdd(l),t=d.redMul(s.redISub(f)).redISub(l),n=this.y.redAdd(this.y)}else{var h=this.z.redSqr(),m=this.y.redSqr(),v=this.x.redMul(m),y=this.x.redSub(h).redMul(this.x.redAdd(h));y=y.redAdd(y).redIAdd(y);var _=v.redIAdd(v),w=(_=_.redIAdd(_)).redAdd(_);e=y.redSqr().redISub(w),n=this.y.redAdd(this.z).redSqr().redISub(m).redISub(h);var S=m.redSqr();S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S),t=y.redMul(_.redISub(e)).redISub(S)}return this.curve.jpoint(e,t,n)},m.prototype._dbl=function(){var a=this.curve.a,e=this.x,t=this.y,n=this.z,r=n.redSqr().redSqr(),o=e.redSqr(),c=t.redSqr(),d=o.redAdd(o).redIAdd(o).redIAdd(a.redMul(r)),f=e.redAdd(e),l=(f=f.redIAdd(f)).redMul(c),h=d.redSqr().redISub(l.redAdd(l)),m=l.redISub(h),v=c.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v);var y=d.redMul(m).redISub(v),_=t.redAdd(t).redMul(n);return this.curve.jpoint(h,y,_)},m.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),o=e.redAdd(e).redIAdd(e),c=o.redSqr(),d=this.x.redAdd(t).redSqr().redISub(e).redISub(r),f=(d=(d=(d=d.redIAdd(d)).redAdd(d).redIAdd(d)).redISub(c)).redSqr(),l=r.redIAdd(r);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=o.redIAdd(d).redSqr().redISub(c).redISub(f).redISub(l),h=t.redMul(u);h=(h=h.redIAdd(h)).redIAdd(h);var m=this.x.redMul(f).redISub(h);m=(m=m.redIAdd(m)).redIAdd(m);var v=this.y.redMul(u.redMul(l.redISub(u)).redISub(d.redMul(f)));v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v);var y=this.z.redAdd(d).redSqr().redISub(n).redISub(f);return this.curve.jpoint(m,v,y)},m.prototype.mul=function(e,t){return e=new o(e,t),this.curve._wnafMul(this,e)},m.prototype.eq=function(p){if("affine"===p.type)return this.eq(p.toJ());if(this===p)return!0;var e=this.z.redSqr(),t=p.z.redSqr();if(0!==this.x.redMul(t).redISub(p.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),r=t.redMul(p.z);return 0===this.y.redMul(r).redISub(p.y.redMul(n)).cmpn(0)},m.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),o=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0}},m.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},m.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,n){"use strict";var r=n(61),o=n(35),c=n(232),d=n(97);function f(e){c.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,n){c.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,c),e.exports=f,f.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},o(l,c.BasePoint),f.prototype.decodePoint=function(e,t){return this.point(d.toArray(e,t),1)},f.prototype.point=function(e,t){return new l(this,e,t)},f.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),o=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,o)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(p,e){var a=this.x.redAdd(this.z),b=this.x.redSub(this.z),t=p.x.redAdd(p.z),n=p.x.redSub(p.z).redMul(a),r=t.redMul(b),o=e.z.redMul(n.redAdd(r).redSqr()),c=e.x.redMul(n.redISub(r).redSqr());return this.curve.point(o,c)},l.prototype.mul=function(e){for(var t=e.clone(),a=this,b=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var i=n.length-1;i>=0;i--)0===n[i]?(a=a.diffAdd(b,this),b=b.dbl()):(b=a.diffAdd(b,this),a=a.dbl());return b},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(97),o=n(61),c=n(35),d=n(232),f=r.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,d.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),f(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function h(e,t,n,r,c){d.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(n,16),this.z=r?new o(r,16):this.curve.one,this.t=c&&new o(c,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}c(l,d),e.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},l.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),c=this.one.redSub(this.c2.redMul(this.d).redMul(n)),d=r.redMul(c.redInvm()),f=d.redSqrt();if(0!==f.redSqr().redSub(d).cmp(this.zero))throw new Error("invalid point");var l=f.fromRed().isOdd();return(t&&!l||!t&&l)&&(f=f.redNeg()),this.point(e,f)},l.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),c=n.redMul(this.d).redMul(this.c2).redSub(this.a),d=r.redMul(c.redInvm());if(0===d.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var f=d.redSqrt();if(0!==f.redSqr().redSub(d).cmp(this.zero))throw new Error("invalid point");return f.fromRed().isOdd()!==t&&(f=f.redNeg()),this.point(f,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(o)},c(h,d.BasePoint),l.prototype.pointFromJSON=function(e){return h.fromJSON(this,e)},l.prototype.point=function(e,t,n,r){return new h(this,e,t,n,r)},h.fromJSON=function(e,t){return new h(e,t[0],t[1],t[2])},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},h.prototype._extDbl=function(){var a=this.x.redSqr(),b=this.y.redSqr(),e=this.z.redSqr();e=e.redIAdd(e);var t=this.curve._mulA(a),n=this.x.redAdd(this.y).redSqr().redISub(a).redISub(b),g=t.redAdd(b),r=g.redSub(e),o=t.redSub(b),c=n.redMul(r),d=g.redMul(o),f=n.redMul(o),l=r.redMul(g);return this.curve.point(c,d,l,f)},h.prototype._projDbl=function(){var e,t,n,b=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var c=(l=this.curve._mulA(r)).redAdd(o);if(this.zOne)e=b.redSub(r).redSub(o).redMul(c.redSub(this.curve.two)),t=c.redMul(l.redSub(o)),n=c.redSqr().redSub(c).redSub(c);else{var d=this.z.redSqr(),f=c.redSub(d).redISub(d);e=b.redSub(r).redISub(o).redMul(f),t=c.redMul(l.redSub(o)),n=c.redMul(f)}}else{var l=r.redAdd(o);d=this.curve._mulC(this.z).redSqr(),f=l.redSub(d).redSub(d);e=this.curve._mulC(b.redISub(l)).redMul(f),t=this.curve._mulC(l).redMul(r.redISub(o)),n=l.redMul(f)}return this.curve.point(e,t,n)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(p){var a=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),b=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),e=this.t.redMul(this.curve.dd).redMul(p.t),t=this.z.redMul(p.z.redAdd(p.z)),n=b.redSub(a),r=t.redSub(e),g=t.redAdd(e),o=b.redAdd(a),c=n.redMul(r),d=g.redMul(o),f=n.redMul(o),l=r.redMul(g);return this.curve.point(c,d,l,f)},h.prototype._projAdd=function(p){var e,t,a=this.z.redMul(p.z),b=a.redSqr(),n=this.x.redMul(p.x),r=this.y.redMul(p.y),o=this.curve.d.redMul(n).redMul(r),c=b.redSub(o),g=b.redAdd(o),d=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(n).redISub(r),f=a.redMul(c).redMul(d);return this.curve.twisted?(e=a.redMul(g).redMul(r.redSub(this.curve._mulA(n))),t=c.redMul(g)):(e=a.redMul(g).redMul(r.redSub(n)),t=this.curve._mulC(c).redMul(g)),this.curve.point(f,e,t)},h.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},h.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},h.prototype.mulAdd=function(e,p,t){return this.curve._wnafMulAdd(1,[this,p],[e,t],2,!1)},h.prototype.jmulAdd=function(e,p,t){return this.curve._wnafMulAdd(1,[this,p],[e,t],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},h.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},function(e,t,n){"use strict";t.sha1=n(779),t.sha224=n(780),t.sha256=n(537),t.sha384=n(781),t.sha512=n(538)},function(e,t,n){"use strict";var r=n(109),o=n(192),c=n(536),d=r.rotl32,f=r.sum32,l=r.sum32_5,h=c.ft_1,m=o.BlockHash,v=[1518500249,1859775393,2400959708,3395469782];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(y,m),e.exports=y,y.blockSize=512,y.outSize=160,y.hmacStrength=80,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,i=0;i<16;i++)n[i]=e[t+i];for(;i<n.length;i++)n[i]=d(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var a=this.h[0],b=this.h[1],r=this.h[2],o=this.h[3],c=this.h[4];for(i=0;i<n.length;i++){var s=~~(i/20),m=l(d(a,5),h(s,b,r,o),c,n[i],v[s]);c=o,o=r,r=d(b,30),b=a,a=m}this.h[0]=f(this.h[0],a),this.h[1]=f(this.h[1],b),this.h[2]=f(this.h[2],r),this.h[3]=f(this.h[3],o),this.h[4]=f(this.h[4],c)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(109),o=n(537);function c(){if(!(this instanceof c))return new c;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(c,o),e.exports=c,c.blockSize=512,c.outSize=224,c.hmacStrength=192,c.padLength=64,c.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(109),o=n(538);function c(){if(!(this instanceof c))return new c;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(c,o),e.exports=c,c.blockSize=1024,c.outSize=384,c.hmacStrength=192,c.padLength=128,c.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(109),o=n(192),c=r.rotl32,d=r.sum32,f=r.sum32_3,l=r.sum32_4,h=o.BlockHash;function m(){if(!(this instanceof m))return new m;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function v(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function y(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function _(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(m,h),t.ripemd160=m,m.blockSize=512,m.outSize=160,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],o=this.h[2],h=this.h[3],m=this.h[4],O=n,I=r,x=o,A=h,C=m,j=0;j<80;j++){var k=d(c(l(n,v(j,r,o,h),e[w[j]+t],y(j)),s[j]),m);n=m,m=h,h=c(o,10),o=r,r=k,k=d(c(l(O,v(79-j,I,x,A),e[S[j]+t],_(j)),E[j]),C),O=C,C=A,A=c(x,10),x=I,I=k}k=f(this.h[1],o,A),this.h[1]=f(this.h[2],h,C),this.h[2]=f(this.h[3],m,O),this.h[3]=f(this.h[4],n,I),this.h[4]=f(this.h[0],r,x),this.h[0]=k},m.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var w=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],S=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],s=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],E=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,n){"use strict";var r=n(109),o=n(96);function c(e,t,n){if(!(this instanceof c))return new c(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=c,c.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var i=e.length;i<this.blockSize;i++)e.push(0);for(i=0;i<e.length;i++)e[i]^=54;for(this.inner=(new this.Hash).update(e),i=0;i<e.length;i++)e[i]^=106;this.outer=(new this.Hash).update(e)},c.prototype.update=function(e,t){return this.inner.update(e,t),this},c.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,n){"use strict";var r=n(61),o=n(786),c=n(97),d=n(352),f=n(349),l=c.assert,h=n(787),m=n(788);function v(e){if(!(this instanceof v))return new v(e);"string"==typeof e&&(l(d.hasOwnProperty(e),"Unknown curve "+e),e=d[e]),e instanceof d.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=v,v.prototype.keyPair=function(e){return new h(this,e)},v.prototype.keyFromPrivate=function(e,t){return h.fromPrivate(this,e,t)},v.prototype.keyFromPublic=function(e,t){return h.fromPublic(this,e,t)},v.prototype.genKeyPair=function(e){e||(e={});for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||f(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),c=this.n.sub(new r(2));;){var d=new r(t.generate(n));if(!(d.cmp(c)>0))return d.iaddn(1),this.keyFromPrivate(d)}},v.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},v.prototype.sign=function(e,t,n,c){"object"==typeof n&&(c=n,n=null),c||(c={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var d=this.n.byteLength(),f=t.getPrivate().toArray("be",d),l=e.toArray("be",d),h=new o({hash:this.hash,entropy:f,nonce:l,pers:c.pers,persEnc:c.persEnc||"utf8"}),v=this.n.sub(new r(1)),y=0;;y++){var _=c.k?c.k(y):new r(h.generate(this.n.byteLength()));if(!((_=this._truncateToN(_,!0)).cmpn(1)<=0||_.cmp(v)>=0)){var w=this.g.mul(_);if(!w.isInfinity()){var S=w.getX(),E=S.umod(this.n);if(0!==E.cmpn(0)){var s=_.invm(this.n).mul(E.mul(t.getPrivate()).iadd(e));if(0!==(s=s.umod(this.n)).cmpn(0)){var O=(w.getY().isOdd()?1:0)|(0!==S.cmp(E)?2:0);return c.canonical&&s.cmp(this.nh)>0&&(s=this.n.sub(s),O^=1),new m({r:E,s:s,recoveryParam:O})}}}}}},v.prototype.verify=function(e,t,n,o){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,o);var c=(t=new m(t,"hex")).r,s=t.s;if(c.cmpn(1)<0||c.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var p,d=s.invm(this.n),f=d.mul(e).umod(this.n),l=d.mul(c).umod(this.n);return this.curve._maxwellTrick?!(p=this.g.jmulAdd(f,n.getPublic(),l)).isInfinity()&&p.eqXToP(c):!(p=this.g.mulAdd(f,n.getPublic(),l)).isInfinity()&&0===p.getX().umod(this.n).cmp(c)},v.prototype.recoverPubKey=function(e,t,n,o){l((3&n)===n,"The recovery param is more than two bits"),t=new m(t,o);var c=this.n,d=new r(e),f=t.r,s=t.s,h=1&n,v=n>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&v)throw new Error("Unable to find sencond key candinate");f=v?this.curve.pointFromX(f.add(this.curve.n),h):this.curve.pointFromX(f,h);var y=t.r.invm(c),_=c.sub(d).mul(y).umod(c),w=s.mul(y).umod(c);return this.g.mulAdd(_,f,w)},v.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new m(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(353),o=n(534),c=n(96);function d(e){if(!(this instanceof d))return new d(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),n=o.toArray(e.nonce,e.nonceEnc||"hex"),r=o.toArray(e.pers,e.persEnc||"hex");c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=d,d.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},d.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},d.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},d.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=o.toArray(e,t),n=o.toArray(n,r),c(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},d.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=o.toArray(n,r||"hex"),this._update(n));for(var c=[];c.length<e;)this.V=this._hmac().update(this.V).digest(),c=c.concat(this.V);var d=c.slice(0,e);return this._update(n),this._reseed++,o.encode(d,t)}},function(e,t,n){"use strict";var r=n(61),o=n(97).assert;function c(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=c,c.fromPublic=function(e,t,n){return t instanceof c?t:new c(e,{pub:t,pubEnc:n})},c.fromPrivate=function(e,t,n){return t instanceof c?t:new c(e,{priv:t,privEnc:n})},c.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},c.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},c.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},c.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},c.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?o(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},c.prototype.derive=function(e){return e.mul(this.priv).getX()},c.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},c.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},c.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var r=n(61),o=n(97),c=o.assert;function d(e,t){if(e instanceof d)return e;this._importDER(e,t)||(c(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function f(){this.place=0}function l(e,p){var t=e[p.place++];if(!(128&t))return t;for(var n=15&t,r=0,i=0,o=p.place;i<n;i++,o++)r<<=8,r|=e[o];return p.place=o,r}function h(e){for(var i=0,t=e.length-1;!e[i]&&!(128&e[i+1])&&i<t;)i++;return 0===i?e:e.slice(i)}function m(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=d,d.prototype._importDER=function(data,e){data=o.toArray(data,e);var p=new f;if(48!==data[p.place++])return!1;if(l(data,p)+p.place!==data.length)return!1;if(2!==data[p.place++])return!1;var t=l(data,p),n=data.slice(p.place,t+p.place);if(p.place+=t,2!==data[p.place++])return!1;var c=l(data,p);if(data.length!==c+p.place)return!1;var s=data.slice(p.place,c+p.place);return 0===n[0]&&128&n[1]&&(n=n.slice(1)),0===s[0]&&128&s[1]&&(s=s.slice(1)),this.r=new r(n),this.s=new r(s),this.recoveryParam=null,!0},d.prototype.toDER=function(e){var t=this.r.toArray(),s=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&s[0]&&(s=[0].concat(s)),t=h(t),s=h(s);!(s[0]||128&s[1]);)s=s.slice(1);var n=[2];m(n,t.length),(n=n.concat(t)).push(2),m(n,s.length);var r=n.concat(s),c=[48];return m(c,r.length),c=c.concat(r),o.encode(c,e)}},function(e,t,n){"use strict";var r=n(353),o=n(352),c=n(97),d=c.assert,f=c.parseBytes,l=n(790),h=n(791);function m(e){if(d("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof m))return new m(e);e=o[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=m,m.prototype.sign=function(e,t){e=f(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),o=this.g.mul(r),c=this.encodePoint(o),d=this.hashInt(c,n.pubBytes(),e).mul(n.priv()),l=r.add(d).umod(this.curve.n);return this.makeSignature({R:o,S:l,Rencoded:c})},m.prototype.verify=function(e,t,n){e=f(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),o=this.hashInt(t.Rencoded(),r.pubBytes(),e),c=this.g.mul(t.S());return t.R().add(r.pub().mul(o)).eq(c)},m.prototype.hashInt=function(){for(var e=this.hash(),i=0;i<arguments.length;i++)e.update(arguments[i]);return c.intFromLE(e.digest()).umod(this.curve.n)},m.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},m.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},m.prototype.makeSignature=function(e){return e instanceof h?e:new h(this,e)},m.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},m.prototype.decodePoint=function(e){var t=(e=c.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),o=c.intFromLE(n);return this.curve.pointFromY(o,r)},m.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},m.prototype.decodeInt=function(e){return c.intFromLE(e)},m.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(97),o=r.assert,c=r.parseBytes,d=r.cachedProperty;function f(e,t){this.eddsa=e,this._secret=c(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=c(t.pub)}f.fromPublic=function(e,t){return t instanceof f?t:new f(e,{pub:t})},f.fromSecret=function(e,t){return t instanceof f?t:new f(e,{secret:t})},f.prototype.secret=function(){return this._secret},d(f,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),d(f,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),d(f,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a})),d(f,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),d(f,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),d(f,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),f.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},f.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},f.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},f.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=f},function(e,t,n){"use strict";var r=n(61),o=n(97),c=o.assert,d=o.cachedProperty,f=o.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=f(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),c(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}d(l,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),d(l,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),d(l,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),d(l,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},function(e,t,n){"use strict";var r=n(193);t.certificate=n(802);var o=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=o;var c=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=c;var d=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(f),this.key("subjectPublicKey").bitstr())}));t.PublicKey=d;var f=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),l=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(f),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=l;var h=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=h;var m=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=m,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var v=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(y),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=v;var y=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,n){var r=n(193),o=n(35);function c(e,body){this.name=e,this.body=body,this.decoders={},this.encoders={}}t.define=function(e,body){return new c(e,body)},c.prototype._createNamed=function(base){var e;try{e=n(794).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(t){e=function(e){this._initNamed(e)}}return o(e,base),e.prototype._initNamed=function(e){base.call(this,e)},new e(this)},c.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e]},c.prototype.decode=function(data,e,t){return this._getDecoder(e).decode(data,t)},c.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e]},c.prototype.encode=function(data,e,t){return this._getEncoder(e).encode(data,t)}},function(module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0;i<e.length;i++)if(e[i]===t)return i;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var i=0;i<e.length;i++)t(e[i],i,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(code){if(!(this instanceof Script))return new Script(code);this.code=code};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var iframe=document.createElement("iframe");iframe.style||(iframe.style={}),iframe.style.display="none",document.body.appendChild(iframe);var t=iframe.contentWindow,n=t.eval,r=t.execScript;!n&&r&&(r.call(t,"null"),n=t.eval),forEach(Object_keys(e),(function(n){t[n]=e[n]})),forEach(globals,(function(n){e[n]&&(t[n]=e[n])}));var o=Object_keys(t),c=n.call(t,this.code);return forEach(Object_keys(t),(function(n){(n in e||-1===indexOf(o,n))&&(e[n]=t[n])})),forEach(globals,(function(n){n in e||defineProp(e,n,t[n])})),document.body.removeChild(iframe),c},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return e&&forEach(Object_keys(t),(function(n){e[n]=t[n]})),n},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(code){var s=Script(code);return s[e].apply(s,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(code){return exports.Script(code)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),(function(n){t[n]=e[n]})),t}},function(e,t,n){var r=n(35);function o(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function c(path,e){this.path=path,this.rethrow(e)}t.Reporter=o,o.prototype.isError=function(e){return e instanceof c},o.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},o.prototype.restore=function(data){var e=this._reporterState;e.obj=data.obj,e.path=e.path.slice(0,data.pathLen)},o.prototype.enterKey=function(e){return this._reporterState.path.push(e)},o.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},o.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},o.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},o.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof c;if(t=r?e:new c(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},o.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(c,Error),c.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,c),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){var r=n(194).Reporter,o=n(194).EncoderBuffer,c=n(194).DecoderBuffer,d=n(96),f=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(f);function h(e,t){var n={};this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=h;var m=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){var e=this._baseState,t={};m.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},h.prototype._wrap=function(){var e=this._baseState;l.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},h.prototype._init=function(body){var e=this._baseState;d(null===e.parent),body.call(this),e.children=e.children.filter((function(e){return e._baseState.parent===this}),this),d.equal(e.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(d(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(d(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){h.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),f.forEach((function(e){h.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return d(null===t.tag),t.tag=e,this._useArgs(n),this}})),h.prototype.use=function(e){d(e);var t=this._baseState;return d(null===t.use),t.use=e,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(e){var t=this._baseState;return d(null===t.default),t.default=e,t.optional=!0,this},h.prototype.explicit=function(e){var t=this._baseState;return d(null===t.explicit&&null===t.implicit),t.explicit=e,this},h.prototype.implicit=function(e){var t=this._baseState;return d(null===t.explicit&&null===t.implicit),t.implicit=e,this},h.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},h.prototype.key=function(e){var t=this._baseState;return d(null===t.key),t.key=e,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(e){var t=this._baseState;return d(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},h.prototype.contains=function(e){var t=this._baseState;return d(null===t.use),t.contains=e,this},h.prototype._decode=function(input,e){var t=this._baseState;if(null===t.parent)return input.wrapResult(t.children[0]._decode(input,e));var n,r=t.default,o=!0,d=null;if(null!==t.key&&(d=input.enterKey(t.key)),t.optional){var f=null;if(null!==t.explicit?f=t.explicit:null!==t.implicit?f=t.implicit:null!==t.tag&&(f=t.tag),null!==f||t.any){if(o=this._peekTag(input,f,t.any),input.isError(o))return o}else{var l=input.save();try{null===t.choice?this._decodeGeneric(t.tag,input,e):this._decodeChoice(input,e),o=!0}catch(e){o=!1}input.restore(l)}}if(t.obj&&o&&(n=input.enterObject()),o){if(null!==t.explicit){var h=this._decodeTag(input,t.explicit);if(input.isError(h))return h;input=h}var m=input.offset;if(null===t.use&&null===t.choice){if(t.any)l=input.save();var body=this._decodeTag(input,null!==t.implicit?t.implicit:t.tag,t.any);if(input.isError(body))return body;t.any?r=input.raw(l):input=body}if(e&&e.track&&null!==t.tag&&e.track(input.path(),m,input.length,"tagged"),e&&e.track&&null!==t.tag&&e.track(input.path(),input.offset,input.length,"content"),r=t.any?r:null===t.choice?this._decodeGeneric(t.tag,input,e):this._decodeChoice(input,e),input.isError(r))return r;if(t.any||null!==t.choice||null===t.children||t.children.forEach((function(t){t._decode(input,e)})),t.contains&&("octstr"===t.tag||"bitstr"===t.tag)){var data=new c(r);r=this._getUse(t.contains,input._reporterState.obj)._decode(data,e)}}return t.obj&&o&&(r=input.leaveObject(n)),null===t.key||null===r&&!0!==o?null!==d&&input.exitKey(d):input.leaveKey(d,t.key,r),r},h.prototype._decodeGeneric=function(e,input,t){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(input,e,n.args[0],t):/str$/.test(e)?this._decodeStr(input,e,t):"objid"===e&&n.args?this._decodeObjid(input,n.args[0],n.args[1],t):"objid"===e?this._decodeObjid(input,null,null,t):"gentime"===e||"utctime"===e?this._decodeTime(input,e,t):"null_"===e?this._decodeNull(input,t):"bool"===e?this._decodeBool(input,t):"objDesc"===e?this._decodeStr(input,e,t):"int"===e||"enum"===e?this._decodeInt(input,n.args&&n.args[0],t):null!==n.use?this._getUse(n.use,input._reporterState.obj)._decode(input,t):input.error("unknown tag: "+e)},h.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),d(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},h.prototype._decodeChoice=function(input,e){var t=this._baseState,n=null,r=!1;return Object.keys(t.choice).some((function(o){var c=input.save(),d=t.choice[o];try{var f=d._decode(input,e);if(input.isError(f))return!1;n={type:o,value:f},r=!0}catch(e){return input.restore(c),!1}return!0}),this),r?n:input.error("Choice not matched")},h.prototype._createEncoderBuffer=function(data){return new o(data,this.reporter)},h.prototype._encode=function(data,e,t){var n=this._baseState;if(null===n.default||n.default!==data){var r=this._encodeValue(data,e,t);if(void 0!==r&&!this._skipDefault(r,e,t))return r}},h.prototype._encodeValue=function(data,e,t){var n=this._baseState;if(null===n.parent)return n.children[0]._encode(data,e||new r);var o=null;if(this.reporter=e,n.optional&&void 0===data){if(null===n.default)return;data=n.default}var content=null,c=!1;if(n.any)o=this._createEncoderBuffer(data);else if(n.choice)o=this._encodeChoice(data,e);else if(n.contains)content=this._getUse(n.contains,t)._encode(data,e),c=!0;else if(n.children)content=n.children.map((function(t){if("null_"===t._baseState.tag)return t._encode(null,e,data);if(null===t._baseState.key)return e.error("Child should have a key");var n=e.enterKey(t._baseState.key);if("object"!=typeof data)return e.error("Child expected, but input is not object");var r=t._encode(data[t._baseState.key],e,data);return e.leaveKey(n),r}),this).filter((function(e){return e})),content=this._createEncoderBuffer(content);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return e.error("Too many args for : "+n.tag);if(!Array.isArray(data))return e.error("seqof/setof, but data is not Array");var d=this.clone();d._baseState.implicit=null,content=this._createEncoderBuffer(data.map((function(t){var n=this._baseState;return this._getUse(n.args[0],data)._encode(t,e)}),d))}else null!==n.use?o=this._getUse(n.use,t)._encode(data,e):(content=this._encodePrimitive(n.tag,data),c=!0);if(!n.any&&null===n.choice){var f=null!==n.implicit?n.implicit:n.tag,l=null===n.implicit?"universal":"context";null===f?null===n.use&&e.error("Tag could be omitted only for .use()"):null===n.use&&(o=this._encodeComposite(f,c,l,content))}return null!==n.explicit&&(o=this._encodeComposite(n.explicit,!1,"context",o)),o},h.prototype._encodeChoice=function(data,e){var t=this._baseState,n=t.choice[data.type];return n||d(!1,data.type+" not found in "+JSON.stringify(Object.keys(t.choice))),n._encode(data.value,e)},h.prototype._encodePrimitive=function(e,data){var t=this._baseState;if(/str$/.test(e))return this._encodeStr(data,e);if("objid"===e&&t.args)return this._encodeObjid(data,t.reverseArgs[0],t.args[1]);if("objid"===e)return this._encodeObjid(data,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(data,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(data,t.args&&t.reverseArgs[0]);if("bool"===e)return this._encodeBool(data);if("objDesc"===e)return this._encodeStr(data,e);throw new Error("Unsupported tag: "+e)},h.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},h.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,n){var r=n(540);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r._reverse(t.tag)},function(e,t,n){var r=t;r.der=n(541),r.pem=n(799)},function(e,t,n){var r=n(35),o=n(28).Buffer,c=n(541);function d(e){c.call(this,e),this.enc="pem"}r(d,c),e.exports=d,d.prototype.decode=function(data,e){for(var t=data.toString().split(/[\r\n]+/g),label=e.label.toUpperCase(),n=/^-----(BEGIN|END) ([^-]+)-----$/,r=-1,d=-1,i=0;i<t.length;i++){var f=t[i].match(n);if(null!==f&&f[2]===label){if(-1!==r){if("END"!==f[1])break;d=i;break}if("BEGIN"!==f[1])break;r=i}}if(-1===r||-1===d)throw new Error("PEM section not found for: "+label);var l=t.slice(r+1,d).join("");l.replace(/[^a-z0-9\+\/=]+/gi,"");var input=new o(l,"base64");return c.prototype.decode.call(this,input,e)}},function(e,t,n){var r=t;r.der=n(542),r.pem=n(801)},function(e,t,n){var r=n(35),o=n(542);function c(e){o.call(this,e),this.enc="pem"}r(c,o),e.exports=c,c.prototype.encode=function(data,e){for(var p=o.prototype.encode.call(this,data).toString("base64"),t=["-----BEGIN "+e.label+"-----"],i=0;i<p.length;i+=64)t.push(p.slice(i,i+64));return t.push("-----END "+e.label+"-----"),t.join("\n")}},function(e,t,n){"use strict";var r=n(193),o=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),c=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),d=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),f=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(d),this.key("subjectPublicKey").bitstr())})),l=r.define("RelativeDistinguishedName",(function(){this.setof(c)})),h=r.define("RDNSequence",(function(){this.seqof(l)})),m=r.define("Name",(function(){this.choice({rdnSequence:this.use(h)})})),v=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))})),y=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),_=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(d),this.key("issuer").use(m),this.key("validity").use(v),this.key("subject").use(m),this.key("subjectPublicKeyInfo").use(f),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(y).optional())})),w=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(_),this.key("signatureAlgorithm").use(d),this.key("signatureValue").bitstr())}));e.exports=w},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,c=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,d=n(231),f=n(347),l=n(37).Buffer;e.exports=function(e,t){var n,h=e.toString(),m=h.match(r);if(m){var v="aes"+m[1],y=l.from(m[2],"hex"),_=l.from(m[3].replace(/[\r\n]/g,""),"base64"),w=d(t,y.slice(0,8),parseInt(m[1],10)).key,S=[],E=f.createDecipheriv(v,w,y);S.push(E.update(_)),S.push(E.final()),n=l.concat(S)}else{var O=h.match(c);n=new l(O[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(o)[1],data:n}}},function(e,t,n){(function(t){var r=n(61),o=n(351).ec,c=n(233),d=n(543);function f(b,q){if(b.cmpn(0)<=0)throw new Error("invalid sig");if(b.cmp(q)>=q)throw new Error("invalid sig")}e.exports=function(e,n,l,h,m){var v=c(l);if("ec"===v.type){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");return function(e,t,n){var r=d[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var c=new o(r),f=n.data.subjectPrivateKey.data;return c.verify(t,e,f)}(e,n,v)}if("dsa"===v.type){if("dsa"!==h)throw new Error("wrong public key type");return function(e,t,n){var p=n.data.p,q=n.data.q,g=n.data.g,o=n.data.pub_key,d=c.signature.decode(e,"der"),s=d.s,l=d.r;f(s,q),f(l,q);var h=r.mont(p),m=s.invm(q);return 0===g.toRed(h).redPow(new r(t).mul(m).mod(q)).fromRed().mul(o.toRed(h).redPow(l.mul(m).mod(q)).fromRed()).mod(p).mod(q).cmp(l)}(e,n,v)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong public key type");n=t.concat([m,n]);for(var y=v.modulus.byteLength(),_=[1],w=0;n.length+_.length+2<y;)_.push(255),w++;_.push(0);for(var i=-1;++i<n.length;)_.push(n[i]);_=new t(_);var S=r.mont(v.modulus);e=(e=new r(e).toRed(S)).redPow(new r(v.publicExponent)),e=new t(e.fromRed().toArray());var E=w<8?1:0;for(y=Math.min(e.length,_.length),e.length!==_.length&&(E=1),i=-1;++i<y;)E|=e[i]^_[i];return 0===E}}).call(this,n(28).Buffer)},function(e,t,n){(function(t){var r=n(351),o=n(61);e.exports=function(e){return new d(e)};var c={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function d(e){this.curveType=c[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function f(e,n,r){Array.isArray(e)||(e=e.toArray());var o=new t(e);if(r&&o.length<r){var c=new t(r-o.length);c.fill(0),o=t.concat([c,o])}return n?o.toString(n):o}c.p224=c.secp224r1,c.p256=c.secp256r1=c.prime256v1,c.p192=c.secp192r1=c.prime192v1,c.p384=c.secp384r1,c.p521=c.secp521r1,d.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},d.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),f(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},d.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),f(n,e)},d.prototype.getPrivateKey=function(e){return f(this.keys.getPrivate(),e)},d.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},d.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new o(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(28).Buffer)},function(e,t,n){t.publicEncrypt=n(808),t.privateDecrypt=n(809),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){var r=n(233),o=n(155),c=n(189),d=n(544),f=n(545),l=n(61),h=n(546),m=n(350),v=n(37).Buffer;e.exports=function(e,t,n){var y;y=e.padding?e.padding:n?1:4;var _,w=r(e);if(4===y)_=function(e,t){var n=e.modulus.byteLength(),r=t.length,h=c("sha1").update(v.alloc(0)).digest(),m=h.length,y=2*m;if(r>n-y-2)throw new Error("message too long");var _=v.alloc(n-r-y-2),w=n-m-1,S=o(m),E=f(v.concat([h,_,v.alloc(1,1),t],w),d(S,w)),O=f(S,d(E,m));return new l(v.concat([v.alloc(1),O,E],n))}(w,t);else if(1===y)_=function(e,t,n){var r,c=t.length,d=e.modulus.byteLength();if(c>d-11)throw new Error("message too long");r=n?v.alloc(d-c-3,255):function(e){var t,n=v.allocUnsafe(e),i=0,r=o(2*e),c=0;for(;i<e;)c===r.length&&(r=o(2*e),c=0),(t=r[c++])&&(n[i++]=t);return n}(d-c-3);return new l(v.concat([v.from([0,n?1:2]),r,v.alloc(1),t],d))}(w,t,n);else{if(3!==y)throw new Error("unknown padding");if((_=new l(t)).cmp(w.modulus)>=0)throw new Error("data too long for modulus")}return n?m(_,w):h(_,w)}},function(e,t,n){var r=n(233),o=n(544),c=n(545),d=n(61),f=n(350),l=n(189),h=n(546),m=n(37).Buffer;e.exports=function(e,t,n){var v;v=e.padding?e.padding:n?1:4;var y,_=r(e),w=_.modulus.byteLength();if(t.length>w||new d(t).cmp(_.modulus)>=0)throw new Error("decryption error");y=n?h(new d(t),_):f(t,_);var S=m.alloc(w-y.length);if(y=m.concat([S,y],w),4===v)return function(e,t){var n=e.modulus.byteLength(),r=l("sha1").update(m.alloc(0)).digest(),d=r.length;if(0!==t[0])throw new Error("decryption error");var f=t.slice(1,d+1),h=t.slice(d+1),v=c(f,o(h,d)),y=c(h,o(v,n-d-1));if(function(a,b){a=m.from(a),b=m.from(b);var e=0,t=a.length;a.length!==b.length&&(e++,t=Math.min(a.length,b.length));var i=-1;for(;++i<t;)e+=a[i]^b[i];return e}(r,y.slice(0,d)))throw new Error("decryption error");var i=d;for(;0===y[i];)i++;if(1!==y[i++])throw new Error("decryption error");return y.slice(i)}(_,y);if(1===v)return function(e,t,n){var r=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var c=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++;c.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,y,n);if(3===v)return y;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e,r){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var c=n(37),d=(n(155),c.Buffer),f=c.kMaxLength,l=e.crypto||e.msCrypto,h=Math.pow(2,32)-1;function m(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>h||e<0)throw new TypeError("offset must be a uint32");if(e>f||e>t)throw new RangeError("offset out of range")}function v(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>h||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>f)throw new RangeError("buffer too small")}function y(e,t,n,o){var c=e.buffer,d=new Uint8Array(c,t,n);return l.getRandomValues(d),o?void r.nextTick((function(){o(null,e)})):e}l&&l.getRandomValues?(t.randomFill=function(t,n,r,o){if(!(d.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)o=n,n=0,r=t.length;else if("function"==typeof r)o=r,r=t.length-n;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return m(n,t.length),v(r,n,t.length),y(t,n,r,o)},t.randomFillSync=function(t,n,r){void 0===n&&(n=0);if(!(d.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');m(n,t.length),void 0===r&&(r=t.length-n);return v(r,n,t.length),y(t,n,r)}):(t.randomFill=o,t.randomFillSync=o)}).call(this,n(88),n(107))},,,,,,,,,,function(e,t,n){"use strict";e.exports=function(e,t){return"string"!=typeof(e=e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)||t?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r,o,c,d;e.exports=(r=n(78),c=(o=r).lib.Base,d=o.enc.Utf8,void(o.algo.HMAC=c.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=d.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),c=this._iKey=t.clone(),f=o.words,l=c.words,i=0;i<n;i++)f[i]^=1549556828,l[i]^=909522486;o.sigBytes=c.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},function(e,t,n){(function(e,r){var o;!function(c){t&&t.nodeType,e&&e.nodeType;var d="object"==typeof r&&r;d.global!==d&&d.window!==d&&d.self;var f,l=2147483647,base=36,h=1,m=26,v=38,y=700,_=72,w=128,S="-",E=/^xn--/,O=/[^\x20-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=base-h,C=Math.floor,j=String.fromCharCode;function k(e){throw RangeError(x[e])}function map(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function M(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+map((e=e.replace(I,".")).split("."),t).join(".")}function T(e){for(var t,n,output=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(n=e.charCodeAt(r++)))?output.push(((1023&t)<<10)+(1023&n)+65536):(output.push(t),r--):output.push(t);return output}function P(e){return map(e,(function(e){var output="";return e>65535&&(output+=j((e-=65536)>>>10&1023|55296),e=56320|1023&e),output+=j(e)})).join("")}function $(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,n){var r=0;for(e=n?C(e/y):e>>1,e+=C(e/t);e>A*m>>1;r+=base)e=C(e/A);return C(r+(A+1)*e/(e+v))}function D(input){var e,t,n,r,o,c,d,f,v,y,E,output=[],O=input.length,i=0,I=w,x=_;for((t=input.lastIndexOf(S))<0&&(t=0),n=0;n<t;++n)input.charCodeAt(n)>=128&&k("not-basic"),output.push(input.charCodeAt(n));for(r=t>0?t+1:0;r<O;){for(o=i,c=1,d=base;r>=O&&k("invalid-input"),((f=(E=input.charCodeAt(r++))-48<10?E-22:E-65<26?E-65:E-97<26?E-97:base)>=base||f>C((l-i)/c))&&k("overflow"),i+=f*c,!(f<(v=d<=x?h:d>=x+m?m:d-x));d+=base)c>C(l/(y=base-v))&&k("overflow"),c*=y;x=R(i-o,e=output.length+1,0==o),C(i/e)>l-I&&k("overflow"),I+=C(i/e),i%=e,output.splice(i++,0,I)}return P(output)}function N(input){var e,t,n,r,o,c,d,q,f,v,y,E,O,I,x,output=[];for(E=(input=T(input)).length,e=w,t=0,o=_,c=0;c<E;++c)(y=input[c])<128&&output.push(j(y));for(n=r=output.length,r&&output.push(S);n<E;){for(d=l,c=0;c<E;++c)(y=input[c])>=e&&y<d&&(d=y);for(d-e>C((l-t)/(O=n+1))&&k("overflow"),t+=(d-e)*O,e=d,c=0;c<E;++c)if((y=input[c])<e&&++t>l&&k("overflow"),y==e){for(q=t,f=base;!(q<(v=f<=o?h:f>=o+m?m:f-o));f+=base)x=q-v,I=base-v,output.push(j($(v+x%I,0))),q=C(x/I);output.push(j($(q,0))),o=R(t,O,n==r),t=0,++n}++t,++e}return output.join("")}f={version:"1.3.2",ucs2:{decode:T,encode:P},decode:D,encode:N,toASCII:function(input){return M(input,(function(e){return O.test(e)?"xn--"+N(e):e}))},toUnicode:function(input){return M(input,(function(e){return E.test(e)?D(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return f}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(532)(e),n(88))},function(e,t,n){"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}}},function(e,t,n){"use strict";t.decode=t.parse=n(881),t.encode=t.stringify=n(882)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,c){t=t||"&",n=n||"=";var d={};if("string"!=typeof e||0===e.length)return d;var f=/\+/g;e=e.split(t);var l=1e3;c&&"number"==typeof c.maxKeys&&(l=c.maxKeys);var h=e.length;l>0&&h>l&&(h=l);for(var i=0;i<h;++i){var m,v,y,_,w=e[i].replace(f,"%20"),S=w.indexOf(n);S>=0?(m=w.substr(0,S),v=w.substr(S+1)):(m=w,v=""),y=decodeURIComponent(m),_=decodeURIComponent(v),r(d,y)?o(d[y])?d[y].push(_):d[y]=[d[y],_]:d[y]=_}return d};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=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,n,d){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?map(c(e),(function(c){var d=encodeURIComponent(r(c))+n;return o(e[c])?map(e[c],(function(e){return d+encodeURIComponent(r(e))})).join(t):d+encodeURIComponent(r(e[c]))})).join(t):d?encodeURIComponent(r(d))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function map(e,t){if(e.map)return e.map(t);for(var n=[],i=0;i<e.length;i++)n.push(t(e[i],i));return n}var c=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveEndpointsConfig=t.normalizeEndpoint=void 0;var r=n(0);function o(e,t){if("string"==typeof e){var n=Promise.resolve(t(e));return function(){return n}}if("object"==typeof e){var r=Promise.resolve(e);return function(){return r}}return e}t.normalizeEndpoint=o,t.resolveEndpointsConfig=function(input){var e=this,t=void 0===input.tls||input.tls,n=input.endpoint?o(input.endpoint,input.urlParser):function(){return input.region().then((function(n){return r.__awaiter(e,void 0,void 0,(function(){var e;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,input.regionInfoProvider(n)];case 1:if(!(e=(r.sent()||{}).hostname))throw new Error("Cannot resolve hostname from client config");return[2,input.urlParser((t?"https:":"http:")+"//"+e)]}}))}))}))};return r.__assign(r.__assign({},input),{endpoint:n,tls:t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRegionConfig=void 0;var r=n(0);function o(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}t.resolveRegionConfig=function(input){var e=input.region||input.regionDefaultProvider(input);return r.__assign(r.__assign({},input),{region:o(e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpResponse=void 0;var r=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}();t.HttpResponse=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpRequest=void 0;var r=n(0),o=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var t,n=new e(r.__assign(r.__assign({},this),{headers:r.__assign({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce((function(e,n){var o,param=t[n];return r.__assign(r.__assign({},e),((o={})[n]=Array.isArray(param)?r.__spread(param):param,o))}),{}))),n},e}();t.HttpRequest=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidHostname=void 0,t.isValidHostname=function(e){return/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRetryPlugin=t.retryMiddlewareOptions=t.retryMiddleware=void 0;var r=n(0);t.retryMiddleware=function(e){return function(t){return function(n){return r.__awaiter(void 0,void 0,void 0,(function(){return r.__generator(this,(function(r){return[2,e.retryStrategy.retry(t,n)]}))}))}}},t.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high"},t.getRetryPlugin=function(e){return{applyToStack:function(n){n.add(t.retryMiddleware(e),t.retryMiddlewareOptions)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TRANSIENT_ERROR_STATUS_CODES=t.TRANSIENT_ERROR_CODES=t.THROTTLING_ERROR_CODES=t.CLOCK_SKEW_ERROR_CODES=void 0,t.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],t.THROTTLING_ERROR_CODES=["Throttling","ThrottlingException","ThrottledException","RequestThrottledException","TooManyRequestsException","ProvisionedThroughputExceededException","TransactionInProgressException","RequestLimitExceeded","BandwidthLimitExceeded","LimitExceededException","RequestThrottled","SlowDown","PriorRequestNotComplete","EC2ThrottledException"],t.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],t.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]},function(e,t,n){var r,o,c=n(555),d=n(556),f=0,l=0;e.exports=function(e,t,n){var i=t&&n||0,b=t||[],h=(e=e||{}).node||r,m=void 0!==e.clockseq?e.clockseq:o;if(null==h||null==m){var v=c();null==h&&(h=r=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==m&&(m=o=16383&(v[6]<<8|v[7]))}var y=void 0!==e.msecs?e.msecs:(new Date).getTime(),_=void 0!==e.nsecs?e.nsecs:l+1,dt=y-f+(_-l)/1e4;if(dt<0&&void 0===e.clockseq&&(m=m+1&16383),(dt<0||y>f)&&void 0===e.nsecs&&(_=0),_>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=y,l=_,o=m;var w=(1e4*(268435455&(y+=122192928e5))+_)%4294967296;b[i++]=w>>>24&255,b[i++]=w>>>16&255,b[i++]=w>>>8&255,b[i++]=255&w;var S=y/4294967296*1e4&268435455;b[i++]=S>>>8&255,b[i++]=255&S,b[i++]=S>>>24&15|16,b[i++]=S>>>16&255,b[i++]=m>>>8|128,b[i++]=255&m;for(var E=0;E<6;++E)b[i+E]=h[E];return t||d(b)}},function(e,t,n){var r=n(555),o=n(556);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var c=(e=e||{}).random||(e.rng||r)();if(c[6]=15&c[6]|64,c[8]=63&c[8]|128,t)for(var d=0;d<16;++d)t[i+d]=c[d];return t||o(c)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultRetryQuota=void 0;var r=n(359);t.getDefaultRetryQuota=function(e){var t=e,n=e,o=function(e){return"TimeoutError"===e.name?r.TIMEOUT_RETRY_COST:r.RETRY_COST},c=function(e){return o(e)<=n};return Object.freeze({hasRetryTokens:c,retrieveRetryTokens:function(e){if(!c(e))throw new Error("No retry token available");var t=o(e);return n-=t,t},releaseRetryTokens:function(e){n+=null!=e?e:r.NO_RETRY_INCREMENT,n=Math.min(n,t)}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRetryConfig=void 0;var r=n(0),o=n(553);t.resolveRetryConfig=function(input){var e,t=null!==(e=c(input.maxAttempts))&&void 0!==e?e:input.maxAttemptsDefaultProvider(input);return r.__assign(r.__assign({},input),{maxAttempts:t,retryStrategy:input.retryStrategy||new o.StandardRetryStrategy(t)})};var c=function(e){if(e){var t=Promise.resolve(e.toString());return function(){return t}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAwsAuthConfig=void 0;var r=n(0),o=n(980);function c(input){if("object"==typeof input){var e=Promise.resolve(input);return function(){return e}}return input}t.resolveAwsAuthConfig=function(input){var e,t=this,n=c(input.credentials||input.credentialDefaultProvider(input)),d=input.signingEscapePath,f=void 0===d||d,l=input.systemClockOffset,h=void 0===l?input.systemClockOffset||0:l,m=input.sha256;return e=input.signer?c(input.signer):function(){return c(input.region)().then((function(e){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,input.regionInfoProvider(e)];case 1:return[2,[t.sent()||{},e]]}}))}))})).then((function(e){var t=r.__read(e,2),c=t[0],d=t[1],l=c.signingRegion,h=void 0===l?input.signingRegion:l,v=c.signingService,y=void 0===v?input.signingName:v;return input.signingRegion=input.signingRegion||h||d,input.signingName=input.signingName||y,new o.SignatureV4({credentials:n,region:input.signingRegion,service:input.signingName,sha256:m,uriEscapePath:f})}))},r.__assign(r.__assign({},input),{systemClockOffset:h,signingEscapePath:f,credentials:n,signer:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUriPath=void 0;var r=n(0),o=n(559);t.escapeUriPath=function(e){var t,n,c=[];try{for(var d=r.__values(e.split("/")),f=d.next();!f.done;f=d.next()){var sub=f.value;c.push(o.escapeUri(sub))}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}return c.join("/")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAwsAuthPlugin=t.awsAuthMiddlewareOptions=t.awsAuthMiddleware=void 0;var r=n(0),o=n(7),c=function(e,t){return Math.abs(d(t).getTime()-e)>=3e5},d=function(e){return new Date(Date.now()+e)};function f(e){return function(t){return function(n){return r.__awaiter(this,void 0,void 0,(function(){var d,f,output,l,h,m,v,y,_;return r.__generator(this,(function(w){switch(w.label){case 0:return o.HttpRequest.isInstance(n.request)?"function"!=typeof e.signer?[3,2]:[4,e.signer()]:[2,t(n)];case 1:return f=w.sent(),[3,3];case 2:f=e.signer,w.label=3;case 3:return d=f,l=t,h=[r.__assign({},n)],m={},[4,d.sign(n.request,{signingDate:new Date(Date.now()+e.systemClockOffset)})];case 4:return[4,l.apply(void 0,[r.__assign.apply(void 0,h.concat([(m.request=w.sent(),m)]))])];case 5:return output=w.sent(),v=output.response.headers,(y=v&&(v.date||v.Date))&&(_=Date.parse(y),c(_,e.systemClockOffset)&&(e.systemClockOffset=_-Date.now())),[2,output]}}))}))}}}t.awsAuthMiddleware=f,t.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",step:"finalizeRequest",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware"},t.getAwsAuthPlugin=function(e){return{applyToStack:function(n){n.addRelativeTo(f(e),t.awsAuthMiddlewareOptions)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveUserAgentConfig=void 0,t.resolveUserAgentConfig=function(input){return input}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUserAgentPlugin=t.getUserAgentMiddlewareOptions=t.userAgentMiddleware=void 0;var r=n(0),o=n(7);function c(e){return function(t){return function(n){var c=n.request;if(!o.HttpRequest.isInstance(c))return t(n);var d=c.headers,f="node"===e.runtime?"user-agent":"x-amz-user-agent";return d[f]?d[f]+=" "+e.defaultUserAgent:d[f]=""+e.defaultUserAgent,e.customUserAgent&&(d[f]+=" "+e.customUserAgent),t(r.__assign(r.__assign({},n),{request:c}))}}}t.userAgentMiddleware=c,t.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",tags:["SET_USER_AGENT","USER_AGENT"]},t.getUserAgentPlugin=function(e){return{applyToStack:function(n){n.add(c(e),t.getUserAgentMiddlewareOptions)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;var r=n(560),o=function(){function e(e){this.middlewareStack=new r.MiddlewareStack,this.config=e}return e.prototype.send=function(e,t,n){var r="function"!=typeof t?t:void 0,o="function"==typeof t?t:n,c=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!o)return c(e).then((function(e){return e.output}));c(e).then((function(e){return o(null,e.output)}),(function(e){return o(e)})).catch((function(){}))},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}();t.Client=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MiddlewareStack=void 0;var r=n(0),o=function(){function e(){this.absoluteEntries=[],this.relativeEntries=[],this.entriesNameMap={}}return e.prototype.add=function(e,t){void 0===t&&(t={});var n=t.name,r=t.step,o=void 0===r?"initialize":r,c=t.tags,d=t.priority,f={name:n,step:o,tags:c,priority:void 0===d?"normal":d,middleware:e};if(n){if(Object.prototype.hasOwnProperty.call(this.entriesNameMap,n))throw new Error("Duplicated middleware name '"+n+"'");this.entriesNameMap[n]=f}this.absoluteEntries.push(f)},e.prototype.addRelativeTo=function(e,t){var n=t.step,r=void 0===n?"initialize":n,o=t.name,c=t.tags,d=t.relation,f=t.toMiddleware,l={middleware:e,step:r,name:o,tags:c,next:"before"===d?f:void 0,prev:"after"===d?f:void 0};if(o){if(Object.prototype.hasOwnProperty.call(this.entriesNameMap,o))throw new Error("Duplicated middleware name '"+o+"'");this.entriesNameMap[o]=l}this.relativeEntries.push(l)},e.prototype.sort=function(e){return e.sort((function(a,b){return c[b.step]-c[a.step]||d[b.priority||"normal"]-d[a.priority||"normal"]}))},e.prototype.clone=function(){var t,n,o=new e;return(t=o.absoluteEntries).push.apply(t,r.__spread(this.absoluteEntries)),(n=o.relativeEntries).push.apply(n,r.__spread(this.relativeEntries)),o.entriesNameMap=r.__assign({},this.entriesNameMap),o},e.prototype.concat=function(t){var n,o,c=new e;c.entriesNameMap=r.__assign({},this.entriesNameMap);var d=t;for(var f in d.entriesNameMap){if(c.entriesNameMap[f])throw new Error("Duplicated middleware name '"+f+"'");c.entriesNameMap[f]=d.entriesNameMap[f]}return(n=c.absoluteEntries).push.apply(n,r.__spread(this.absoluteEntries,d.absoluteEntries)),(o=c.relativeEntries).push.apply(o,r.__spread(this.relativeEntries,d.relativeEntries)),c},e.prototype.remove=function(e){return"string"==typeof e?this.removeByName(e):this.removeByReference(e)},e.prototype.removeByName=function(e){for(var i=this.absoluteEntries.length-1;i>=0;i--)if(this.absoluteEntries[i].name&&this.absoluteEntries[i].name===e)return this.absoluteEntries.splice(i,1),delete this.entriesNameMap[e],!0;for(i=this.relativeEntries.length-1;i>=0;i--)if(this.relativeEntries[i].name&&this.relativeEntries[i].name===e)return this.relativeEntries.splice(i,1),delete this.entriesNameMap[e],!0;return!1},e.prototype.removeByReference=function(e){for(var i=this.absoluteEntries.length-1;i>=0;i--){if(this.absoluteEntries[i].middleware===e)return(t=this.absoluteEntries[i].name)&&delete this.entriesNameMap[t],this.absoluteEntries.splice(i,1),!0}for(i=this.relativeEntries.length-1;i>=0;i--){var t;if(this.relativeEntries[i].middleware===e)return(t=this.relativeEntries[i].name)&&delete this.entriesNameMap[t],this.relativeEntries.splice(i,1),!0}return!1},e.prototype.removeByTag=function(e){for(var t=!1,i=this.absoluteEntries.length-1;i>=0;i--){var n=this.absoluteEntries[i],r=n.tags,o=n.name;r&&r.indexOf(e)>-1&&(this.absoluteEntries.splice(i,1),o&&delete this.entriesNameMap[o],t=!0)}for(i=this.relativeEntries.length-1;i>=0;i--){var c=this.relativeEntries[i];r=c.tags,o=c.name;r&&r.indexOf(e)>-1&&(this.relativeEntries.splice(i,1),o&&delete this.entriesNameMap[o],t=!0)}return t},e.prototype.use=function(e){e.applyToStack(this)},e.prototype.normalizeRelativeEntries=function(){for(var e,t,n=this.absoluteEntries.filter((function(e){return e.name})).reduce((function(e,t){return e[t.name]=t,e}),{}),o=this.relativeEntries.map((function(e){return r.__assign(r.__assign({},e),{priority:null,next:void 0,prev:void 0})})),c=o.filter((function(e){return e.name})).reduce((function(e,t){return e[t.name]=t,e}),{}),d={},i=0;i<this.relativeEntries.length;i++){var f=this.relativeEntries[i],l=f.prev,h=f.next,m=o[i];if(l){if(n[l]&&n[l].step===m.step)d[l]||(d[l]={}),m.next=d[l].next,d[l].next&&(d[l].next.prev=m),d[l].next=m;else if(c[l]&&c[l].step===m.step){var v=c[l];if(v.next===m)continue;m.next=v.next,v.next=m,m.next&&(m.next.prev=m),m.prev=v}}else if(h)if(n[h]&&n[h].step===m.step)d[h]||(d[h]={}),m.prev=d[h].prev,d[h].prev&&(d[h].prev.next=m),d[h].prev=m;else if(c[h]&&c[h].step===m.step){var y=c[h];if(y.prev===m)continue;m.prev=y.prev,y.prev=m,m.prev&&(m.prev.next=m),m.next=y}}var _=[],w=new WeakSet;try{for(var S=r.__values(Object.keys(d)),E=S.next();!E.done;E=S.next()){var O=d[E.value];for(l=O.prev,h=O.next;l;)w.add(l),l=l.prev;for(;h;)w.add(h),h=h.next}}catch(t){e={error:t}}finally{try{E&&!E.done&&(t=S.return)&&t.call(S)}finally{if(e)throw e.error}}for(i=0;i<o.length;i++){var I=o[i];if(!w.has(I))for(I.prev||_.push(I);I&&!w.has(I);)w.add(I),I=I.next}return[_,d]},e.prototype.getMiddlewareList=function(){var e,t,n=[],o=r.__read(this.normalizeRelativeEntries(),2),c=o[0],d=o[1],f=r.__spread(this.absoluteEntries,c);f=this.sort(f);try{for(var l=r.__values(f),h=l.next();!h.done;h=l.next()){for(var m=h.value,v={prev:void 0,next:void 0},y=m.name&&d[m.name]||v,_=y.prev,w=y.next,S=_;null==S?void 0:S.prev;)S=S.prev;for(;S;)n.push(S.middleware),S=S.next;n.push(m.middleware);for(var E=m;E.next;)n.push(E.next.middleware),E=E.next;for(S=w;S;)n.push(S.middleware),S=S.next}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return n.reverse()},e.prototype.resolve=function(e,t){var n,o;try{for(var c=r.__values(this.getMiddlewareList()),d=c.next();!d.done;d=c.next()){e=(0,d.value)(e,t)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return e},e}();t.MiddlewareStack=o;var c={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},d={high:3,normal:2,low:1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Command=void 0;var r=n(560),o=function(){this.middlewareStack=new r.MiddlewareStack};t.Command=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendedEncodeURIComponent=void 0,t.extendedEncodeURIComponent=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getArrayIfSingleItem=void 0,t.getArrayIfSingleItem=function(e){return Array.isArray(e)?e:[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getValueFromTextNode=void 0,t.getValueFromTextNode=function(e){for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]["#text"]?e[n]=e[n]["#text"]:"object"==typeof e[n]&&null!==e[n]&&(e[n]=t.getValueFromTextNode(e[n]));return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isa=void 0,t.isa=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"object"==typeof e&&("__type"in e&&t.indexOf(e.__type)>-1||"name"in e&&t.indexOf(e.name)>-1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LazyJsonString=t.StringWrapper=void 0;var r=n(0);t.StringWrapper=function(){var e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,r.__spread([null],arguments)),n=new t;return Object.setPrototypeOf(n,e.prototype),n},t.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:t.StringWrapper,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(t.StringWrapper,String);var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.deserializeJSON=function(){return JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return e.prototype.toString.call(this)},t.fromObject=function(object){return object instanceof t?object:new t(object instanceof String||"string"==typeof object?object:JSON.stringify(object))},t}(t.StringWrapper);t.LazyJsonString=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateToUtcString=void 0;var r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.dateToUtcString=function(e){var t=e.getUTCFullYear(),n=e.getUTCMonth(),c=e.getUTCDay(),d=e.getUTCDate(),f=e.getUTCHours(),l=e.getUTCMinutes(),h=e.getUTCSeconds(),m=d<10?"0"+d:""+d,v=f<10?"0"+f:""+f,y=l<10?"0"+l:""+l,_=h<10?"0"+h:""+h;return r[c]+", "+m+" "+o[n]+" "+t+" "+v+":"+y+":"+_+" GMT"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitEvery=void 0,t.splitEvery=function(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");var r=e.split(t);if(1===n)return r;for(var o=[],c="",i=0;i<r.length;i++)""===c?c=r[i]:c+=t+r[i],(i+1)%n==0&&(o.push(c),c="");return""!==c&&o.push(c),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SENSITIVE_STRING=void 0,t.SENSITIVE_STRING="***SensitiveInformation***"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(561),o=n(564),c=n(277),d=n(920),f=n(922),l=n(360),h=function(){function e(e){d.supportsWebCrypto(l.locateWindow())?this.hash=new o.Sha256(e):f.isMsWindow(l.locateWindow())?this.hash=new r.Sha256(e):this.hash=new c.Sha256(e)}return e.prototype.update=function(data,e){this.hash.update(data,e)},e.prototype.digest=function(){return this.hash.digest()},e}();t.Sha256=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0,t.fromUtf8=function(input){for(var e=[],i=0,t=input.length;i<t;i++){var n=input.charCodeAt(i);if(n<128)e.push(n);else if(n<2048)e.push(n>>6|192,63&n|128);else if(i+1<input.length&&55296==(64512&n)&&56320==(64512&input.charCodeAt(i+1))){var r=65536+((1023&n)<<10)+(1023&input.charCodeAt(++i));e.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else e.push(n>>12|224,n>>6&63|128,63&n|128)}return Uint8Array.from(e)},t.toUtf8=function(input){for(var e="",i=0,t=input.length;i<t;i++){var n=input[i];if(n<128)e+=String.fromCharCode(n);else if(192<=n&&n<224){var r=input[++i];e+=String.fromCharCode((31&n)<<6|63&r)}else if(240<=n&&n<365){var o="%"+[n,input[++i],input[++i],input[++i]].map((function(e){return e.toString(16)})).join("%");e+=decodeURIComponent(o)}else e+=String.fromCharCode((15&n)<<12|(63&input[++i])<<6|63&input[++i])}return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=void 0,t.fromUtf8=function(input){return(new TextEncoder).encode(input)},t.toUtf8=function(input){return new TextDecoder("utf-8").decode(input)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(565),c=n(919),d=n(115),f=function(){function e(e){if(this.hash=new c.RawSha256,e){this.outer=new c.RawSha256;var t=function(e){var input=l(e);if(input.byteLength>o.BLOCK_SIZE){var t=new c.RawSha256;t.update(input),input=t.digest()}var n=new Uint8Array(o.BLOCK_SIZE);return n.set(input),n}(e),n=new Uint8Array(o.BLOCK_SIZE);n.set(t);for(var i=0;i<o.BLOCK_SIZE;i++)t[i]^=54,n[i]^=92;this.hash.update(t),this.outer.update(n);for(i=0;i<t.byteLength;i++)t[i]=0}}return e.prototype.update=function(e){if(!function(data){if("string"==typeof data)return 0===data.length;return 0===data.byteLength}(e)&&!this.error)try{this.hash.update(l(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.digestSync()]}))}))},e}();function l(data){return"string"==typeof data?d.fromUtf8(data):ArrayBuffer.isView(data)?new Uint8Array(data.buffer,data.byteOffset,data.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(data)}t.Sha256=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(565),o=function(){function e(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(data){if(this.finished)throw new Error("Attempted to update an already finished hash.");var e=0,t=data.byteLength;if(this.bytesHashed+=t,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;t>0;)this.buffer[this.bufferLength++]=data[e++],t--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var i=this.bufferLength;i<r.BLOCK_SIZE;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<r.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(r.DIGEST_LENGTH);for(i=0;i<8;i++)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],o=t[1],c=t[2],d=t[3],f=t[4],l=t[5],h=t[6],m=t[7],i=0;i<r.BLOCK_SIZE;i++){if(i<16)this.temp[i]=(255&e[4*i])<<24|(255&e[4*i+1])<<16|(255&e[4*i+2])<<8|255&e[4*i+3];else{var u=this.temp[i-2],v=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10,y=((u=this.temp[i-15])>>>7|u<<25)^(u>>>18|u<<14)^u>>>3;this.temp[i]=(v+this.temp[i-7]|0)+(y+this.temp[i-16]|0)}var _=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&l^~f&h)|0)+(m+(r.KEY[i]+this.temp[i]|0)|0)|0,w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&o^n&c^o&c)|0;m=h,h=l,l=f,f=d+_|0,d=c,c=o,o=n,n=_+w|0}t[0]+=n,t[1]+=o,t[2]+=c,t[3]+=d,t[4]+=f,t[5]+=l,t[6]+=h,t[7]+=m},e}();t.RawSha256=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(921),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function c(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function d(e){return e&&o.every((function(t){return"function"==typeof e[t]}))}t.supportsWebCrypto=function(e){return!(!c(e)||"object"!=typeof e.crypto.subtle)&&d(e.crypto.subtle)},t.supportsSecureRandom=c,t.supportsSubtleCrypto=d,t.supportsZeroByteGCM=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(n){switch(n.label){case 0:if(!d(e))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=n.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),[2,!1];case 5:return[2]}}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(923),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];t.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var t=e.msCrypto,n=t.getRandomValues,o=t.subtle;return r.map((function(e){return o[e]})).concat(n).every((function(e){return"function"==typeof e}))}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchHttpHandler=void 0;var r=n(0),o=n(7),c=n(925),d=n(926),f=function(){function e(e){void 0===e&&(e={}),this.httpOptions=e}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=null==t?void 0:t.abortSignal,f=this.httpOptions.requestTimeout;if(null==n?void 0:n.aborted){var l=new Error("Request aborted");return l.name="AbortError",Promise.reject(l)}var path=e.path;if(e.query){var h=c.buildQueryString(e.query);h&&(path+="?"+h)}var m=e.port,v=e.protocol+"//"+e.hostname+(m?":"+m:"")+path,y={body:e.body,headers:new Headers(e.headers),method:e.method};"undefined"!=typeof AbortController&&(y.signal=n);var _=new Request(v,y),w=[fetch(_).then((function(e){var t,n,c=e.headers,d={};try{for(var f=r.__values(c.entries()),l=f.next();!l.done;l=f.next()){var h=l.value;d[h[0]]=h[1]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return void 0!==e.body?{response:new o.HttpResponse({headers:d,statusCode:e.status,body:e.body})}:e.blob().then((function(body){return{response:new o.HttpResponse({headers:d,statusCode:e.status,body:body})}}))})),d.requestTimeout(f)];return n&&w.push(new Promise((function(e,t){n.onabort=function(){var e=new Error("Request aborted");e.name="AbortError",t(e)}}))),Promise.race(w)},e}();t.FetchHttpHandler=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildQueryString=void 0;var r=n(0),o=n(165);t.buildQueryString=function(e){var t,n,c=[];try{for(var d=r.__values(Object.keys(e).sort()),f=d.next();!f.done;f=d.next()){var l=f.value,h=e[l];if(l=o.escapeUri(l),Array.isArray(h))for(var i=0,m=h.length;i<m;i++)c.push(l+"="+o.escapeUri(h[i]));else{var v=l;(h||"string"==typeof h)&&(v+="="+o.escapeUri(h)),c.push(v)}}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}return c.join("&")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestTimeout=void 0,t.requestTimeout=function(e){return void 0===e&&(e=0),new Promise((function(t,n){e&&setTimeout((function(){var t=new Error("Request did not complete within "+e+" ms");t.name="TimeoutError",n(t)}),e)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.streamCollector=void 0;var r=n(0),o=n(148);function c(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var o=null!==(e=r.result)&&void 0!==e?e:"",c=o.indexOf(","),d=c>-1?c+1:o.length;t(o.substring(d))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)}))}t.streamCollector=function(e){return e instanceof Blob?function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,c(e)];case 1:return t=r.sent(),n=o.fromBase64(t),[2,new Uint8Array(n)]}}))}))}(e):function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n,o,c,d,f,l;return r.__generator(this,(function(r){switch(r.label){case 0:t=new Uint8Array(0),n=e.getReader(),o=!1,r.label=1;case 1:return o?[3,3]:[4,n.read()];case 2:return c=r.sent(),d=c.done,(f=c.value)&&(l=t,(t=new Uint8Array(l.length+f.length)).set(l),t.set(f,l.length)),o=d,[3,1];case 3:return[2,t]}}))}))}(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQueryString=void 0;var r=n(0);t.parseQueryString=function(e){var t,n,o={};if(e=e.replace(/^\?/,""))try{for(var c=r.__values(e.split("&")),d=c.next();!d.done;d=c.next()){var f=d.value,l=r.__read(f.split("="),2),h=l[0],m=l[1],v=void 0===m?null:m;h=decodeURIComponent(h),v&&(v=decodeURIComponent(v)),h in o?Array.isArray(o[h])?o[h].push(v):o[h]=[o[h],v]:o[h]=v}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSerdePlugin=t.serializerMiddlewareOption=t.deserializerMiddlewareOption=void 0;var r=n(567),o=n(568);t.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"]},t.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"]},t.getSerdePlugin=function(e,n,c){return{applyToStack:function(d){d.add(r.deserializerMiddleware(e,c),t.deserializerMiddlewareOption),d.add(o.serializerMiddleware(e,n),t.serializerMiddlewareOption)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chain=void 0;var r=n(0),o=n(570);t.chain=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){var t,n,c=Promise.reject(new o.ProviderError("No providers in chain")),d=function(e){c=c.catch((function(t){if(null==t?void 0:t.tryNextLink)return e();throw t}))};try{for(var f=r.__values(e),l=f.next();!l.done;l=f.next()){d(l.value)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return c}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromStatic=void 0,t.fromStatic=function(e){return function(){return Promise.resolve(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=void 0;var r=n(0);t.memoize=function(e,t,n){if(void 0===t){var o=e();return function(){return o}}var c=e(),d=!1;return function(){return r.__awaiter(void 0,void 0,void 0,(function(){var o;return r.__generator(this,(function(r){switch(r.label){case 0:return d?[2,c]:[4,c];case 1:return o=r.sent(),n&&!n(o)?(d=!0,[2,o]):t(o)?[2,c=e()]:[2,o]}}))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCognitoIdentityPool=void 0;var r=n(0),o=n(362),c=n(569),d=n(566),f=n(935),l=n(571);t.fromCognitoIdentityPool=function(e){var t=this,n=e.accountId,h=e.cache,m=void 0===h?f.localStorage():h,v=e.client,y=e.customRoleArn,_=e.identityPoolId,w=e.logins,S=e.userIdentifier,E=void 0===S?w&&0!==Object.keys(w).length?void 0:"ANONYMOUS":S,O=E?"aws:cognito-identity-credentials:"+_+":"+E:void 0,I=function(){return r.__awaiter(t,void 0,void 0,(function(){var e,t,f,h,S,E,x,A,C;return r.__generator(this,(function(r){switch(r.label){case 0:return(t=O)?[4,m.getItem(O)]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return(e=t)?[3,7]:(E=(S=v).send,x=o.GetIdCommand.bind,A={AccountId:n,IdentityPoolId:_},w?[4,l.resolveLogins(w)]:[3,4]);case 3:return C=r.sent(),[3,5];case 4:C=void 0,r.label=5;case 5:return[4,E.apply(S,[new(x.apply(o.GetIdCommand,[void 0,(A.Logins=C,A)]))])];case 6:f=r.sent().IdentityId,h=void 0===f?function(){throw new c.ProviderError("Response from Amazon Cognito contained no identity ID")}():f,e=h,O&&Promise.resolve(m.setItem(O,e)).catch((function(){})),r.label=7;case 7:return[2,(I=d.fromCognitoIdentity({client:v,customRoleArn:y,logins:w,identityId:e}))()]}}))}))};return function(){return I().catch((function(e){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(t){throw O&&Promise.resolve(m.removeItem(O)).catch((function(){})),e}))}))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localStorage=void 0;var r=n(936),o=new(n(937).InMemoryStorage);t.localStorage=function(){return"object"==typeof self&&self.indexedDB?new r.IndexedDbStorage:"object"==typeof window&&window.localStorage?window.localStorage:o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexedDbStorage=void 0;var r=function(){function e(e){void 0===e&&(e="aws:cognito-identity-ids"),this.dbName=e}return e.prototype.getItem=function(e){return this.withObjectStore("readonly",(function(t){var n=t.get(e);return new Promise((function(e){n.onerror=function(){return e(null)},n.onsuccess=function(){return e(n.result?n.result.value:null)}}))})).catch((function(){return null}))},e.prototype.removeItem=function(e){return this.withObjectStore("readwrite",(function(t){var n=t.delete(e);return new Promise((function(e,t){n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e()}}))}))},e.prototype.setItem=function(e,t){return this.withObjectStore("readwrite",(function(n){var r=n.put({id:e,value:t});return new Promise((function(e,t){r.onerror=function(){return t(r.error)},r.onsuccess=function(){return e()}}))}))},e.prototype.getDb=function(){var e=self.indexedDB.open(this.dbName,1);return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)},e.onblocked=function(){n(new Error("Unable to access DB"))},e.onupgradeneeded=function(){var t=e.result;t.onerror=function(){n(new Error("Failed to create object store"))},t.createObjectStore("IdentityIds",{keyPath:"id"})}}))},e.prototype.withObjectStore=function(e,t){return this.getDb().then((function(n){var r=n.transaction("IdentityIds",e);return r.oncomplete=function(){return n.close()},new Promise((function(e,n){r.onerror=function(){return n(r.error)},e(t(r.objectStore("IdentityIds")))})).catch((function(e){throw n.close(),e}))}))},e}();t.IndexedDbStorage=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryStorage=void 0;var r=function(){function e(e){void 0===e&&(e={}),this.store=e}return e.prototype.getItem=function(e){return e in this.store?this.store[e]:null},e.prototype.removeItem=function(e){delete this.store[e]},e.prototype.setItem=function(e,t){this.store[e]=t},e}();t.InMemoryStorage=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNetworkError=f,t.isRetryableError=m,t.isSafeRequestError=v,t.isIdempotentRequestError=y,t.isNetworkOrIdempotentRequestError=_,t.exponentialDelay=S,t.default=O;var r,o=n(975),c=(r=o)&&r.__esModule?r:{default:r};var d="axios-retry";function f(e){return!e.response&&Boolean(e.code)&&"ECONNABORTED"!==e.code&&(0,c.default)(e)}var l=["get","head","options"],h=l.concat(["put","delete"]);function m(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function v(e){return!!e.config&&(m(e)&&-1!==l.indexOf(e.config.method))}function y(e){return!!e.config&&(m(e)&&-1!==h.indexOf(e.config.method))}function _(e){return f(e)||y(e)}function w(){return 0}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=100*Math.pow(2,e);return t+.2*t*Math.random()}function E(e){var t=e[d]||{};return t.retryCount=t.retryCount||0,e[d]=t,t}function O(e,t){e.interceptors.request.use((function(e){return E(e).lastRequestTime=Date.now(),e})),e.interceptors.response.use(null,(function(n){var r=n.config;if(!r)return Promise.reject(n);var o=function(e,t){return Object.assign({},t,e[d])}(r,t),c=o.retries,f=void 0===c?3:c,l=o.retryCondition,h=void 0===l?_:l,m=o.retryDelay,v=void 0===m?w:m,y=o.shouldResetTimeout,S=void 0!==y&&y,O=E(r);if(h(n)&&O.retryCount<f){O.retryCount+=1;var I=v(O.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!S&&r.timeout&&O.lastRequestTime){var x=Date.now()-O.lastRequestTime;r.timeout=Math.max(r.timeout-x-I,1)}return r.transformRequest=[function(data){return data}],new Promise((function(t){return setTimeout((function(){return t(e(r))}),I)}))}return Promise.reject(n)}))}O.isNetworkError=f,O.isSafeRequestError=v,O.isIdempotentRequestError=y,O.isNetworkOrIdempotentRequestError=_,O.exponentialDelay=S,O.isRetryableError=m},function(e,t,n){"use strict";var r=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],o=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];e.exports=function(e){return!e||!e.code||(-1!==r.indexOf(e.code)||-1===o.indexOf(e.code))}},,,,function(e,t){window.addEventListener("keydown",e=>{"Space"===e.code&&e.target===document.body&&e.preventDefault()})},function(e,t,n){"use strict";n.r(t),n.d(t,"createScope",(function(){return I})),n.d(t,"getSigningKey",(function(){return x})),n.d(t,"clearCredentialCache",(function(){return A})),n.d(t,"SignatureV4",(function(){return N}));var r=n(0),o="X-Amz-Date".toLowerCase(),c=["authorization",o,"date"],d="X-Amz-Signature".toLowerCase(),f="x-amz-content-sha256",l="X-Amz-Security-Token".toLowerCase(),h={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},m=/^proxy-/,v=/^sec-/,y="AWS4-HMAC-SHA256-PAYLOAD",_="UNSIGNED-PAYLOAD",w=50,S="aws4_request",E={},O=[];function I(e,t,n){return e+"/"+t+"/"+n+"/"+S}function x(e,t,n,o,c){var d=n+":"+o+":"+c+":"+t.accessKeyId+":"+t.sessionToken;if(d in E)return E[d];for(O.push(d);O.length>w;)delete E[O.shift()];return E[d]=new Promise((function(f,l){var h,m,v=Promise.resolve("AWS4"+t.secretAccessKey),y=function(t){(v=v.then((function(n){return data=t,(r=new e(n)).update(data),r.digest();var data,r}))).catch((function(){}))};try{for(var _=Object(r.__values)([n,o,c,S]),w=_.next();!w.done;w=_.next()){y(w.value)}}catch(e){h={error:e}}finally{try{w&&!w.done&&(m=_.return)&&m.call(_)}finally{if(h)throw h.error}}v.then(f,(function(e){delete E[d],l(e)}))}))}function A(){O.length=0,Object.keys(E).forEach((function(e){delete E[e]}))}var C=n(112);function j(e,t,n){var o,c,d=e.headers,f={};try{for(var l=Object(r.__values)(Object.keys(d).sort()),y=l.next();!y.done;y=l.next()){var _=y.value,w=_.toLowerCase();(w in h||(null==t?void 0:t.has(w))||m.test(w)||v.test(w))&&(!n||n&&!n.has(w))||(f[w]=d[_].trim().replace(/\s+/g," "))}}catch(e){o={error:e}}finally{try{y&&!y.done&&(c=l.return)&&c.call(l)}finally{if(o)throw o.error}}return f}var k=n(165);var M=n(586);function T(e,t){var n=e.headers,body=e.body;return Object(r.__awaiter)(this,void 0,void 0,(function(){var e,o,c,d,l,h,m;return Object(r.__generator)(this,(function(v){switch(v.label){case 0:try{for(e=Object(r.__values)(Object.keys(n)),o=e.next();!o.done;o=e.next())if((c=o.value).toLowerCase()===f)return[2,n[c]]}catch(e){h={error:e}}finally{try{o&&!o.done&&(m=e.return)&&m.call(e)}finally{if(h)throw h.error}}return null!=body?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"==typeof body||ArrayBuffer.isView(body)||Object(M.isArrayBuffer)(body)?((d=new t).update(body),l=C.toHex,[4,d.digest()]):[3,3];case 2:return[2,l.apply(void 0,[v.sent()])];case 3:return[2,_]}}))}))}function P(e){var t=e.headers,n=e.query,o=Object(r.__rest)(e,["headers","query"]);return Object(r.__assign)(Object(r.__assign)({},o),{headers:Object(r.__assign)({},t),query:n?$(n):void 0})}function $(e){return Object.keys(e).reduce((function(t,n){var o,param=e[n];return Object(r.__assign)(Object(r.__assign)({},t),((o={})[n]=Array.isArray(param)?Object(r.__spread)(param):param,o))}),{})}function R(e){var t,n;e="function"==typeof e.clone?e.clone():P(e);try{for(var o=Object(r.__values)(Object.keys(e.headers)),d=o.next();!d.done;d=o.next()){var f=d.value;c.indexOf(f.toLowerCase())>-1&&delete e.headers[f]}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return e}function D(time){return function(time){if("number"==typeof time)return new Date(1e3*time);if("string"==typeof time)return Number(time)?new Date(1e3*Number(time)):new Date(time);return time}(time).toISOString().replace(/\.\d{3}Z$/,"Z")}var N=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,o=e.service,c=e.sha256,d=e.uriEscapePath,f=void 0===d||d;if(this.service=o,this.sha256=c,this.uriEscapePath=f,this.applyChecksum="boolean"!=typeof t||t,"string"==typeof r){var l=Promise.resolve(r);this.regionProvider=function(){return l}}else this.regionProvider=r;if("object"==typeof n){var h=Promise.resolve(n);this.credentialProvider=function(){return h}}else this.credentialProvider=n}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Object(r.__awaiter)(this,void 0,void 0,(function(){var n,o,c,d,f,l,h,m,v,y,_,w,S,E,O,x,A,C,k,M,$;return Object(r.__generator)(this,(function(D){switch(D.label){case 0:return[4,Promise.all([this.regionProvider(),this.credentialProvider()])];case 1:return n=r.__read.apply(void 0,[D.sent(),2]),o=n[0],c=n[1],d=t.signingDate,f=void 0===d?new Date:d,l=t.expiresIn,h=void 0===l?3600:l,m=t.unsignableHeaders,v=t.signableHeaders,y=U(f),_=y.longDate,w=y.shortDate,h>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(S=I(w,o,this.service),E=function(e){var t,n,o="function"==typeof e.clone?e.clone():P(e),c=o.headers,d=o.query,f=void 0===d?{}:d;try{for(var l=Object(r.__values)(Object.keys(c)),h=l.next();!h.done;h=l.next()){var m=h.value;"x-amz-"===m.toLowerCase().substr(0,6)&&(f[m]=c[m],delete c[m])}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return Object(r.__assign)(Object(r.__assign)({},e),{headers:c,query:f})}(R(e)),c.sessionToken&&(E.query["X-Amz-Security-Token"]=c.sessionToken),E.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",E.query["X-Amz-Credential"]=c.accessKeyId+"/"+S,E.query["X-Amz-Date"]=_,E.query["X-Amz-Expires"]=h.toString(10),O=j(E,m,v),E.query["X-Amz-SignedHeaders"]=B(O),x=E.query,A="X-Amz-Signature",C=this.getSignature,k=[_,S,this.getSigningKey(c,o,w)],M=this.createCanonicalRequest,$=[E,O],[4,T(e,this.sha256)]);case 2:return[4,C.apply(this,k.concat([M.apply(this,$.concat([D.sent()]))]))];case 3:return x[A]=D.sent(),[2,E]}}))}))},e.prototype.sign=function(e,t){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var n=e.headers,o=e.payload,c=t.signingDate,d=void 0===c?new Date:c,f=t.priorSignature;return Object(r.__awaiter)(this,void 0,void 0,(function(){var e,t,c,l,h,m,v,_,w,S,E;return Object(r.__generator)(this,(function(O){switch(O.label){case 0:return[4,Promise.all([this.regionProvider(),this.credentialProvider()])];case 1:return e=r.__read.apply(void 0,[O.sent(),1]),t=e[0],c=U(d),l=c.shortDate,h=c.longDate,m=I(l,t,this.service),[4,T({headers:{},body:o},this.sha256)];case 2:return v=O.sent(),(_=new this.sha256).update(n),S=C.toHex,[4,_.digest()];case 3:return w=S.apply(void 0,[O.sent()]),E=[y,h,m,f,w,v].join("\n"),[2,this.signString(E,{signingDate:d})]}}))}))},e.prototype.signString=function(e,t){var n=(void 0===t?{}:t).signingDate,o=void 0===n?new Date:n;return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,n,c,d,f,l,h,m;return Object(r.__generator)(this,(function(v){switch(v.label){case 0:return[4,Promise.all([this.regionProvider(),this.credentialProvider()])];case 1:return t=r.__read.apply(void 0,[v.sent(),2]),n=t[0],c=t[1],d=U(o).shortDate,h=(l=this.sha256).bind,[4,this.getSigningKey(c,n,d)];case 2:return(f=new(h.apply(l,[void 0,v.sent()]))).update(e),m=C.toHex,[4,f.digest()];case 3:return[2,m.apply(void 0,[v.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,c=n.signingDate,d=void 0===c?new Date:c,h=n.signableHeaders,m=n.unsignableHeaders;return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,n,c,v,y,_,w,S,E,O,x;return Object(r.__generator)(this,(function(A){switch(A.label){case 0:return[4,Promise.all([this.regionProvider(),this.credentialProvider()])];case 1:return t=r.__read.apply(void 0,[A.sent(),2]),n=t[0],c=t[1],v=R(e),y=U(d),_=y.longDate,w=y.shortDate,S=I(w,n,this.service),v.headers[o]=_,c.sessionToken&&(v.headers[l]=c.sessionToken),[4,T(v,this.sha256)];case 2:return E=A.sent(),!function(e,t){var n,o;e=e.toLowerCase();try{for(var c=Object(r.__values)(Object.keys(t)),d=c.next();!d.done;d=c.next()){if(e===d.value.toLowerCase())return!0}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return!1}(f,v.headers)&&this.applyChecksum&&(v.headers[f]=E),O=j(v,m,h),[4,this.getSignature(_,S,this.getSigningKey(c,n,w),this.createCanonicalRequest(v,O,E))];case 3:return x=A.sent(),v.headers.authorization="AWS4-HMAC-SHA256 Credential="+c.accessKeyId+"/"+S+", SignedHeaders="+B(O)+", Signature="+x,[2,v]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var o=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,o=e.query,c=void 0===o?{}:o,f=[],l={},h=function(e){if(e.toLowerCase()===d)return"continue";f.push(e);var t=c[e];"string"==typeof t?l[e]=Object(k.escapeUri)(e)+"="+Object(k.escapeUri)(t):Array.isArray(t)&&(l[e]=t.slice(0).sort().reduce((function(t,n){return t.concat([Object(k.escapeUri)(e)+"="+Object(k.escapeUri)(n)])}),[]).join("&"))};try{for(var m=Object(r.__values)(Object.keys(c).sort()),v=m.next();!v.done;v=m.next()){h(v.value)}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=m.return)&&n.call(m)}finally{if(t)throw t.error}}return f.map((function(e){return l[e]})).filter((function(e){return e})).join("&")}(e)+"\n"+o.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+o.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return Object(r.__awaiter)(this,void 0,void 0,(function(){var o,c;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return(o=new this.sha256).update(n),[4,o.digest()];case 1:return c=r.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+Object(C.toHex)(c)]}}))}))},e.prototype.getCanonicalPath=function(e){var path=e.path;return this.uriEscapePath?"/"+encodeURIComponent(path.replace(/^\//,"")).replace(/%2F/g,"/"):path},e.prototype.getSignature=function(e,t,n,o){return Object(r.__awaiter)(this,void 0,void 0,(function(){var c,d,f,l,h;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return[4,this.createStringToSign(e,t,o)];case 1:return c=r.sent(),l=(f=this.sha256).bind,[4,n];case 2:return(d=new(l.apply(f,[void 0,r.sent()]))).update(c),h=C.toHex,[4,d.digest()];case 3:return[2,h.apply(void 0,[r.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n){return x(this.sha256,e,n,t,this.service)},e}();function U(e){var t=D(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}}function B(e){return Object.keys(e).sort().join(";")}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(171),o=function(){return(o=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e}).apply(this,arguments)},c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},d=function(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(c(arguments[i]));return e},f=new r.a("Hub"),l="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default";var h=new(function(){function e(e){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","xr"],this.name=e}return e.prototype.remove=function(e,t){if(e instanceof RegExp){var n=this.patterns.find((function(t){return t.pattern.source===e.source}));if(!n)return void f.warn("No listeners for "+e);this.patterns=d(this.patterns.filter((function(e){return e!==n})))}else{var r=this.listeners[e];if(!r)return void f.warn("No listeners for "+e);this.listeners[e]=d(r.filter((function(e){return e.callback!==t})))}},e.prototype.dispatch=function(e,t,source,n){(void 0===source&&(source=""),this.protectedChannels.indexOf(e)>-1)&&(n===l||f.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var r={channel:e,payload:o({},t),source:source,patternInfo:[]};try{this._toListeners(r)}catch(e){f.error(e)}},e.prototype.listen=function(e,t,n){var r,o=this;if(void 0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(t))f.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),r=t.onHubCapsule.bind(t);else{if("function"!=typeof t)throw new Error("No callback supplied to Hub");r=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:r});else{var c=this.listeners[e];c||(c=[],this.listeners[e]=c),c.push({name:n,callback:r})}return function(){o.remove(e,r)}},e.prototype._toListeners=function(e){var t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach((function(r){f.debug("Dispatching to "+t+" with ",n);try{r.callback(e)}catch(e){f.error(e)}})),this.patterns.length>0){if(!n.message)return void f.warn("Cannot perform pattern matching without a message key");var d=n.message;this.patterns.forEach((function(pattern){var t=d.match(pattern.pattern);if(t){var n=c(t).slice(1),r=o(o({},e),{patternInfo:n});try{pattern.callback(r)}catch(e){f.error(e)}}}))}},e}())("__default__")},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=new(n(171).a)("Parser"),o=function(e){var t,n={};if(e.aws_mobile_analytics_app_id){var o={AWSPinpoint:{appId:e.aws_mobile_analytics_app_id,region:e.aws_mobile_analytics_app_region}};n.Analytics=o}return(e.aws_cognito_identity_pool_id||e.aws_user_pools_id)&&(n.Auth={userPoolId:e.aws_user_pools_id,userPoolWebClientId:e.aws_user_pools_web_client_id,region:e.aws_cognito_region,identityPoolId:e.aws_cognito_identity_pool_id,identityPoolRegion:e.aws_cognito_region,mandatorySignIn:"enable"===e.aws_mandatory_sign_in}),t=e.aws_user_files_s3_bucket?{AWSS3:{bucket:e.aws_user_files_s3_bucket,region:e.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:e.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:e?e.Storage||e:{},n.Analytics=Object.assign({},n.Analytics,e.Analytics),n.Auth=Object.assign({},n.Auth,e.Auth),n.Storage=Object.assign({},t),r.debug("parse config",e,"to amplifyconfig",n),n},c=function(){function e(){}return e.parseMobilehubConfig=o,e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(298),o=n(300),c=n(160),d=Object(c.a)({components:{BButton:r.a,BBtn:r.a,BButtonClose:o.a,BBtnClose:o.a}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return V}));var r,o=n(171),c=n(585),d=n(133),f=(r=function(e,b){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)b.hasOwnProperty(p)&&(e[p]=b[p])})(e,b)},function(e,b){function t(){this.constructor=e}r(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}),l=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},h=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},m=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c},v=function(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(m(arguments[i]));return e},y=new o.a("Util"),_=function(e){function t(t){var n=e.call(this,t)||this;return n.nonRetryable=!0,n}return f(t,e),t}(Error),w=function(e){return e&&e.nonRetryable};var S=function(e,t,n){return void 0===n&&(n=3e5),function e(t,n,r,o){return void 0===o&&(o=1),l(this,void 0,void 0,(function(){var c,d;return h(this,(function(f){switch(f.label){case 0:if("function"!=typeof t)throw Error("functionToRetry must be a function");y.debug(t.name+" attempt #"+o+" with this vars: "+JSON.stringify(n)),f.label=1;case 1:return f.trys.push([1,3,,8]),[4,t.apply(void 0,v(n))];case 2:return[2,f.sent()];case 3:if(c=f.sent(),y.debug("error on "+t.name,c),w(c))throw y.debug(t.name+" non retryable error",c),c;return d=r(o,n,c),y.debug(t.name+" retrying in "+d+" ms"),!1===d?[3,6]:[4,new Promise((function(e){return setTimeout(e,d)}))];case 4:return f.sent(),[4,e(t,n,r,o+1)];case 5:return[2,f.sent()];case 6:throw c;case 7:return[3,8];case 8:return[2]}}))}))}(e,t,function(e){return function(t){var n=100*Math.pow(2,t)+100*Math.random();return!(n>e)&&n}}(n))},E=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},O=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},I=new o.a("CognitoCredentials"),x=new Promise((function(e,t){return Object(d.b)().isBrowser?(window.gapi&&window.gapi.auth2?window.gapi.auth2:null)?(I.debug("google api already loaded"),e()):void setTimeout((function(){return e()}),2e3):(I.debug("not in the browser, directly resolved"),e())})),A=function(){function e(){this.initialized=!1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTokenImpl=this._refreshGoogleTokenImpl.bind(this)}return e.prototype.refreshGoogleToken=function(){return E(this,void 0,void 0,(function(){return O(this,(function(e){switch(e.label){case 0:return this.initialized?[3,2]:(I.debug("need to wait for the Google SDK loaded"),[4,x]);case 1:e.sent(),this.initialized=!0,I.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshGoogleTokenImpl()]}}))}))},e.prototype._refreshGoogleTokenImpl=function(){var e=null;return Object(d.b)().isBrowser&&(e=window.gapi&&window.gapi.auth2?window.gapi.auth2:null),e?new Promise((function(t,n){e.getAuthInstance().then((function(e){e||(I.debug("google Auth undefined"),n(new _("google Auth undefined")));var r=e.currentUser.get();r.isSignedIn()?(I.debug("refreshing the google access token"),r.reloadAuthResponse().then((function(e){var n=e.id_token,r=e.expires_at;t({token:n,expires_at:r})})).catch((function(e){e&&"network_error"===e.error?n("Network error reloading google auth response"):n(new _("Failed to reload google auth response"))}))):n(new _("User is not signed in with Google"))})).catch((function(e){I.debug("Failed to refresh google token",e),n(new _("Failed to refresh google token"))}))})):(I.debug("no gapi auth2 available"),Promise.reject("no gapi auth2 available"))},e}(),C=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},j=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},k=new o.a("CognitoCredentials"),M=new Promise((function(e,t){return Object(d.b)().isBrowser?window.FB?(k.debug("FB SDK already loaded"),e()):void setTimeout((function(){return e()}),2e3):(k.debug("not in the browser, directly resolved"),e())})),T=function(){function e(){this.initialized=!1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFacebookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return e.prototype.refreshFacebookToken=function(){return C(this,void 0,void 0,(function(){return j(this,(function(e){switch(e.label){case 0:return this.initialized?[3,2]:(k.debug("need to wait for the Facebook SDK loaded"),[4,M]);case 1:e.sent(),this.initialized=!0,k.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshFacebookTokenImpl()]}}))}))},e.prototype._refreshFacebookTokenImpl=function(){var e=null;if(Object(d.b)().isBrowser&&(e=window.FB),!e){return k.debug("no fb sdk available"),Promise.reject(new _("no fb sdk available"))}return new Promise((function(t,n){e.getLoginStatus((function(e){if(e&&e.authResponse){var r=e.authResponse,o=r.accessToken,c=1e3*r.expiresIn+(new Date).getTime();if(!o){d="the jwtToken is undefined";k.debug(d),n(new _(d))}t({token:o,expires_at:c})}else{var d="no response from facebook when refreshing the jwt token";k.debug(d),n(new _(d))}}),{scope:"public_profile,email"})}))},e}(),P=new A,$=new T,R=n(305),D=n(303),N=n(172),U=n(265),B=n(260),L=function(){return(L=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e}).apply(this,arguments)},z=function(e,t,n,r){return new(n||(n=Promise))((function(o,c){function d(e){try{l(r.next(e))}catch(e){c(e)}}function f(e){try{l(r.throw(e))}catch(e){c(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(d,f)}l((r=r.apply(e,t||[])).next())}))},F=function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(d){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,d])}}},H=new o.a("Credentials"),V=new(function(){function e(e){this._gettingCredPromise=null,this._refreshHandlers={},this.configure(e),this._refreshHandlers.google=P.refreshGoogleToken,this._refreshHandlers.facebook=$.refreshFacebookToken}return e.prototype.getCredSource=function(){return this._credentials_source},e.prototype.configure=function(e){if(!e)return this._config||{};this._config=Object.assign({},this._config,e);var t=this._config.refreshHandlers;return t&&(this._refreshHandlers=L(L({},this._refreshHandlers),t)),this._storage=this._config.storage,this._storage||(this._storage=(new c.a).getStorage()),this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),this._config},e.prototype.get=function(){return H.debug("getting credentials"),this._pickupCredentials()},e.prototype._pickupCredentials=function(){return H.debug("picking up credentials"),this._gettingCredPromise&&this._gettingCredPromise.isPending()?H.debug("getting old cred promise"):(H.debug("getting new cred promise"),this._gettingCredPromise=Object(d.c)(this._keepAlive())),this._gettingCredPromise},e.prototype._keepAlive=function(){H.debug("checking if credentials exists and not expired");var e=this._credentials;return e&&!this._isExpired(e)?(H.debug("credentials not changed and not expired, directly return"),Promise.resolve(e)):(H.debug("need to get a new credential or refresh the existing one"),D.a.Auth&&"function"==typeof D.a.Auth.currentUserCredentials?D.a.Auth.currentUserCredentials():Promise.reject("No Auth module registered in Amplify"))},e.prototype.refreshFederatedToken=function(e){H.debug("Getting federated credentials");var t=e.provider,n=e.user,r=e.token,o=e.identity_id,c=e.expires_at;c=1970===new Date(c).getFullYear()?1e3*c:c;return H.debug("checking if federated jwt token expired"),c>(new Date).getTime()?(H.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:o,expires_at:c})):this._refreshHandlers[t]&&"function"==typeof this._refreshHandlers[t]?(H.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:n})):(H.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,o=e.user;return S(n,[],1e4).then((function(data){return H.debug("refresh federated token sucessfully",data),t._setCredentialsFromFederation({provider:r,token:data.token,user:o,identity_id:data.identity_id,expires_at:data.expires_at})})).catch((function(e){return"string"==typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||t.clear(),H.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return H.debug("no credentials for expiration check"),!0;H.debug("are these credentials expired?",e);var t=Date.now();return!(e.expiration.getTime()>t+6e5&&t<this._nextCredentialsRefresh)},e.prototype._setCredentialsForGuest=function(){return z(this,void 0,void 0,(function(){var e,t,n,r,o,c,d,f,l=this;return F(this,(function(h){switch(h.label){case 0:if(H.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,n=e.region,e.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!t)return H.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!n)return H.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];r=void 0,h.label=1;case 1:return h.trys.push([1,3,,4]),[4,this._storageSync];case 2:return h.sent(),r=this._storage.getItem("CognitoIdentityId-"+t),this._identityId=r,[3,4];case 3:return o=h.sent(),H.debug("Failed to get the cached identityId",o),[3,4];case 4:return c=new U.a({region:n,customUserAgent:Object(R.a)()}),d=void 0,r?(f={identityId:r,client:c},d=Object(N.fromCognitoIdentity)(f)()):d=function(){return z(l,void 0,void 0,(function(){var e,n;return F(this,(function(r){switch(r.label){case 0:return[4,c.send(new B.a({IdentityPoolId:t}))];case 1:return e=r.sent().IdentityId,this._identityId=e,n={client:c,identityId:e},[2,Object(N.fromCognitoIdentity)(n)()]}}))}))}().catch((function(e){return z(l,void 0,void 0,(function(){return F(this,(function(t){throw e}))}))})),[2,this._loadCredentials(d,"guest",!1,null).then((function(e){return e})).catch((function(e){return z(l,void 0,void 0,(function(){return F(this,(function(t){return[2,e]}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,o={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!o)return Promise.reject("You must specify a federated provider");var c={};c[o]=n;var d=this._config,f=d.identityPoolId,l=d.region;if(!f)return H.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!l)return H.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var h=new U.a({region:l,customUserAgent:Object(R.a)()}),m=void 0;if(r){var v={identityId:r,logins:c,client:h};m=Object(N.fromCognitoIdentity)(v)()}else{v={logins:c,identityPoolId:f,client:h};m=Object(N.fromCognitoIdentityPool)(v)()}return this._loadCredentials(m,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;H.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,o=r.region,c=r.userPoolId,d=r.identityPoolId;if(!d)return H.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!o)return H.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var f={};f["cognito-idp."+o+".amazonaws.com/"+c]=n;var l=new U.a({region:o,customUserAgent:Object(R.a)()}),h=z(t,void 0,void 0,(function(){var e,t;return F(this,(function(n){switch(n.label){case 0:return[4,l.send(new B.a({IdentityPoolId:d,Logins:f}))];case 1:return e=n.sent().IdentityId,this._identityId=e,t={client:l,logins:f,identityId:e},[2,Object(N.fromCognitoIdentity)(t)()]}}))})).catch((function(e){return z(t,void 0,void 0,(function(){return F(this,(function(t){throw e}))}))}));return this._loadCredentials(h,"userPool",!0,null)},e.prototype._loadCredentials=function(e,source,t,n){var r=this,o=this,c=this._config.identityPoolId;return new Promise((function(d,f){e.then((function(e){return z(r,void 0,void 0,(function(){var r,f,l,h,m,v;return F(this,(function(y){switch(y.label){case 0:if(H.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=t,o._credentials_source=source,o._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===source){r=Object.assign({id:this._credentials.identityId},n.user),f=n.provider,l=n.token,h=n.expires_at,m=n.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:f,token:l,user:r,expires_at:h,identity_id:m}))}catch(e){H.debug("Failed to put federated info into auth storage",e)}}if("guest"!==source)return[3,4];y.label=1;case 1:return y.trys.push([1,3,,4]),[4,this._storageSync];case 2:return y.sent(),this._storage.setItem("CognitoIdentityId-"+c,e.identityId),[3,4];case 3:return v=y.sent(),H.debug("Failed to cache identityId",v),[3,4];case 4:return d(o._credentials),[2]}}))}))})).catch((function(t){if(t)return H.debug("Failed to load credentials",e),H.debug("Error loading credentials",t),void f(t)}))}))},e.prototype.set=function(e,source){return"session"===source?this._setCredentialsFromSession(e):"federation"===source?this._setCredentialsFromFederation(e):"guest"===source?this._setCredentialsForGuest():(H.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return z(this,void 0,void 0,(function(){return F(this,(function(e){return this._credentials=null,this._credentials_source=null,H.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n(50),o=n(588),c=n(299),d=n(62),f=n(38),l={passive:!0,capture:!1},h=r.a.extend({name:"BCollapse",mixins:[o.a,c.a],model:{prop:"visible",event:"input"},props:{id:{type:String,required:!0},isNav:{type:Boolean,default:!1},accordion:{type:String,default:null},visible:{type:Boolean,default:!1},tag:{type:String,default:"div"}},data:function(){return{show:this.visible,transitioning:!1}},computed:{classObject:function(){return{"navbar-collapse":this.isNav,collapse:!this.transitioning,show:this.show&&!this.transitioning}}},watch:{visible:function(e){e!==this.show&&(this.show=e)},show:function(e,t){e!==t&&this.emitState()}},created:function(){this.show=this.visible},mounted:function(){var e=this;this.show=this.visible,this.listenOnRoot("bv::toggle::collapse",this.handleToggleEvt),this.listenOnRoot("bv::collapse::accordion",this.handleAccordionEvt),this.isNav&&(this.setWindowEvents(!0),this.handleResize()),this.$nextTick((function(){e.emitState()})),this.listenOnRoot("bv::request::collapse::state",(function(t){t===e.id&&e.$nextTick(e.emitSync)}))},updated:function(){this.emitSync()},deactivated:function(){this.isNav&&this.setWindowEvents(!1)},activated:function(){this.isNav&&this.setWindowEvents(!0),this.emitSync()},beforeDestroy:function(){this.show=!1,this.isNav&&d.g&&this.setWindowEvents(!1)},methods:{setWindowEvents:function(e){var t=e?f.d:f.c;t(window,"resize",this.handleResize,l),t(window,"orientationchange",this.handleResize,l)},toggle:function(){this.show=!this.show},onEnter:function(e){e.style.height=0,Object(f.i)(e),e.style.height=e.scrollHeight+"px",this.transitioning=!0,this.$emit("show")},onAfterEnter:function(e){e.style.height=null,this.transitioning=!1,this.$emit("shown")},onLeave:function(e){e.style.height="auto",e.style.display="block",e.style.height=Object(f.e)(e).height+"px",Object(f.i)(e),this.transitioning=!0,e.style.height=0,this.$emit("hide")},onAfterLeave:function(e){e.style.height=null,this.transitioning=!1,this.$emit("hidden")},emitState:function(){this.$emit("input",this.show),this.$root.$emit("bv::collapse::state",this.id,this.show),this.accordion&&this.show&&this.$root.$emit("bv::collapse::accordion",this.id,this.accordion)},emitSync:function(){this.$root.$emit("bv::collapse::sync::state",this.id,this.show)},checkDisplayBlock:function(){var e=Object(f.g)(this.$el,"show");Object(f.k)(this.$el,"show");var t="block"===Object(f.f)(this.$el).display;return e&&Object(f.a)(this.$el,"show"),t},clickHandler:function(e){var t=e.target;this.isNav&&t&&"block"===Object(f.f)(this.$el).display&&(Object(f.h)(t,".nav-link,.dropdown-item")||Object(f.b)(".nav-link,.dropdown-item",t))&&(this.checkDisplayBlock()||(this.show=!1))},handleToggleEvt:function(e){e===this.id&&this.toggle()},handleAccordionEvt:function(e,t){this.accordion&&t===this.accordion&&(e===this.id?this.show||this.toggle():this.show&&this.toggle())},handleResize:function(){this.show="block"===Object(f.f)(this.$el).display}},render:function(e){var content=e(this.tag,{class:this.classObject,directives:[{name:"show",value:this.show}],attrs:{id:this.id||null},on:{click:this.clickHandler}},[this.normalizeSlot("default")]);return e("transition",{props:{enterClass:"",enterActiveClass:"collapsing",enterToClass:"",leaveClass:"",leaveActiveClass:"collapsing",leaveToClass:""},on:{enter:this.onEnter,afterEnter:this.onAfterEnter,leave:this.onLeave,afterLeave:this.onAfterLeave}},[content])}}),m=n(589),object=n(30),v={hover:!0,click:!0,focus:!0},y="__BV_boundEventListeners__",_=function(e){var t=Object(object.h)(e.modifiers||{}).filter((function(e){return!v[e]}));return e.value&&t.push(e.value),t},w=function(e,t,n,r){var o=_(t),c=function(){r({targets:o,vnode:e})};return Object(object.h)(v).forEach((function(r){if(n[r]||t.modifiers[r]){Object(f.d)(e.elm,r,c);var o=e.elm[y]||{};o[r]=o[r]||[],o[r].push(c),e.elm[y]=o}})),o},S=function(e,t,n){Object(object.h)(v).forEach((function(r){if(n[r]||t.modifiers[r]){var o=e.elm[y]&&e.elm[y][r];o&&(o.forEach((function(t){return Object(f.c)(e.elm,r,t)})),delete e.elm[y][r])}}))},E={click:!0},O="__BV_toggle__",I=function(e,t){e[t]=null,delete e[t]},x=function(e){var t=e.targets,n=e.vnode;t.forEach((function(e){n.context.$root.$emit("bv::toggle::collapse",e)}))},A=function(e,t,n){if(d.g){if(!Object(m.a)(_(t),e.__BV_toggle_TARGETS__)){S(n,t,E);var r=w(n,t,E,x);e.__BV_toggle_TARGETS__=r,e.__BV_toggle_CONTROLS__=r.join(" "),Object(f.l)(e,"aria-controls",e.__BV_toggle_CONTROLS__),r.forEach((function(e){n.context.$root.$emit("bv::request::collapse::state",e)}))}!0===e.__BV_toggle_STATE__?(Object(f.a)(e,"collapsed"),Object(f.l)(e,"aria-expanded","true")):!1===e.__BV_toggle_STATE__&&(Object(f.k)(e,"collapsed"),Object(f.l)(e,"aria-expanded","false")),Object(f.l)(e,"aria-controls",e.__BV_toggle_CONTROLS__)}},C={bind:function(e,t,n){var r=w(n,t,E,x);if(d.g&&n.context&&r.length>0){e.__BV_toggle_TARGETS__=r,e.__BV_toggle_CONTROLS__=r.join(" "),e.__BV_toggle_STATE__=!1,Object(f.l)(e,"aria-controls",e.__BV_toggle_CONTROLS__),Object(f.l)(e,"aria-expanded","false"),"BUTTON"!==e.tagName&&Object(f.l)(e,"role","button");e[O]=function(t,n){-1!==(e.__BV_toggle_TARGETS__||[]).indexOf(t)&&(Object(f.l)(e,"aria-expanded",n?"true":"false"),e.__BV_toggle_STATE__=n,n?Object(f.k)(e,"collapsed"):Object(f.a)(e,"collapsed"))},n.context.$root.$on("bv::collapse::state",e[O]),n.context.$root.$on("bv::collapse::sync::state",e[O])}},componentUpdated:A,updated:A,unbind:function(e,t,n){S(n,t,E),e[O]&&(n.context.$root.$off("bv::collapse::state",e[O]),n.context.$root.$off("bv::collapse::sync::state",e[O])),I(e,O),I(e,"__BV_toggle_STATE__"),I(e,"__BV_toggle_CONTROLS__"),I(e,"__BV_toggle_TARGETS__"),Object(f.k)(e,"collapsed"),Object(f.j)(e,"aria-expanded"),Object(f.j)(e,"aria-controls"),Object(f.j)(e,"role")}},j=n(160),k=Object(j.a)({components:{BCollapse:h},directives:{VBToggle:C}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(429),o=n(2),c=n(50),d=n(100),f=n(44),l=["start","end","center"],h={tag:{type:String,default:"div"},noGutters:{type:Boolean,default:!1},alignV:{type:String,default:null,validator:function(e){return Object(f.a)(l.concat(["baseline","stretch"]),e)}},alignH:{type:String,default:null,validator:function(e){return Object(f.a)(l.concat(["between","around"]),e)}},alignContent:{type:String,default:null,validator:function(e){return Object(f.a)(l.concat(["between","around","stretch"]),e)}}},m=c.a.extend({name:"BRow",functional:!0,props:h,render:function(e,t){var n,r=t.props,data=t.data,c=t.children;return e(r.tag,Object(d.a)(data,{staticClass:"row",class:(n={"no-gutters":r.noGutters},Object(o.a)(n,"align-items-".concat(r.alignV),r.alignV),Object(o.a)(n,"justify-content-".concat(r.alignH),r.alignH),Object(o.a)(n,"align-content-".concat(r.alignContent),r.alignContent),n)}),c)}}),col=n(432),v=n(430),y=n(160),_=Object(y.a)({components:{BContainer:r.a,BRow:m,BCol:col.a,BFormRow:v.a}})}]]);