/*! For license information please see 2.83777df2.chunk.js.LICENSE */ (this["webpackJsonpng911-portal-app"]=this["webpackJsonpng911-portal-app"]||[]).push([[2],[function(e,t,r){"use strict";e.exports=r(324)},function(e,t,r){"use strict";var n=r(200),i=function(){for(var e=0,t=0,r=arguments.length;t=o){var u=console.log.bind(console);"ERROR"===t&&console.error&&(u=console.error.bind(console)),"WARN"===t&&console.warn&&(u=console.warn.bind(console));var c="["+t+"] "+this._ts()+" "+this.name;if(1===r.length&&"string"===typeof r[0])u(c+" - "+r[0]);else if(1===r.length)u(c,r[0]);else if("string"===typeof r[0]){var p=r.slice(1);1===p.length&&(p=p[0]),u(c+" - "+r[0],p)}else u(c,r)}},e.prototype.log=function(){for(var e=[],t=0;t-1)&&(n===h||y.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var i={channel:e,payload:m({},t),source:r,patternInfo:[]};try{this._toListeners(i)}catch(a){y.error(a)}},e.prototype.listen=function(e,t,r){var n;if(void 0===r&&(r="noname"),function(e){return void 0!==e.onHubCapsule}(t))y.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),n=t.onHubCapsule.bind(t);else{if("function"!==typeof t)throw new Error("No callback supplied to Hub");n=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:n});else{var i=this.listeners[e];i||(i=[],this.listeners[e]=i),i.push({name:r,callback:n})}},e.prototype._toListeners=function(e){var t=e.channel,r=e.payload,n=this.listeners[t];if(n&&n.forEach((function(n){y.debug("Dispatching to "+t+" with ",r);try{n.callback(e)}catch(i){y.error(i)}})),this.patterns.length>0){if(!r.message)return void y.warn("Cannot perform pattern matching without a message key");var i=r.message;this.patterns.forEach((function(t){var r=i.match(t.pattern);if(r){var n=r.slice(1),a=m(m({},e),{patternInfo:n});try{t.callback(a)}catch(o){y.error(o)}}}))}},e}())("__default__"),b=new o("I18n"),g=function(){function e(e){this._options=null,this._lang=null,this._dict={},this._options=Object.assign({},e),this._lang=this._options.language,!this._lang&&"undefined"!==typeof window&&window&&window.navigator&&(this._lang=window.navigator.language),b.debug(this._lang)}return e.prototype.setLanguage=function(e){this._lang=e},e.prototype.get=function(e,t){if(void 0===t&&(t=void 0),!this._lang)return"undefined"!==typeof t?t:e;var r=this._lang,n=this.getByLanguage(e,r);return n||(r.indexOf("-")>0&&(n=this.getByLanguage(e,r.split("-")[0])),n||("undefined"!==typeof t?t:e))},e.prototype.getByLanguage=function(e,t,r){if(void 0===r&&(r=null),!t)return r;var n=this._dict[t];return n?n[e]:r},e.prototype.putVocabulariesForLanguage=function(e,t){var r=this._dict[e];r||(r=this._dict[e]={}),Object.assign(r,t)},e.prototype.putVocabularies=function(e){var t=this;Object.keys(e).map((function(r){t.putVocabulariesForLanguage(r,e[r])}))},e}(),S=new o("I18n"),v=null,I=null,N=function(){function e(){}return e.configure=function(t){return S.debug("configure I18n"),t?(v=Object.assign({},v,t.I18n||t),e.createInstance(),v):v},e.getModuleName=function(){return"I18n"},e.createInstance=function(){S.debug("create I18n instance"),I||(I=new g(v))},e.setLanguage=function(t){return e.checkConfig(),I.setLanguage(t)},e.get=function(t,r){return e.checkConfig()?I.get(t,r):"undefined"===typeof r?t:r},e.putVocabulariesForLanguage=function(t,r){return e.checkConfig(),I.putVocabulariesForLanguage(t,r)},e.putVocabularies=function(t){return e.checkConfig(),I.putVocabularies(t)},e.checkConfig=function(){return I||(I=new g(v)),!0},e}();u.register(N);var C=N,T=r(45),k=function(){return(k=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1](new Date).getTime()?(oe.debug("token not expired"),this._setCredentialsFromFederation({provider:r,token:i,user:n,identity_id:o,expires_at:a})):s._refreshHandlers[r]&&"function"===typeof s._refreshHandlers[r]?(oe.debug("getting refreshed jwt token from federation provider"),s._refreshHandlers[r]().then((function(e){return oe.debug("refresh federated token sucessfully",e),i=e.token,o=e.identity_id,a=e.expires_at,s._setCredentialsFromFederation({provider:r,token:i,user:n,identity_id:o,expires_at:a})})).catch((function(e){return oe.debug("refresh federated token failed",e),t.clear(),Promise.reject("refreshing federation token failed: "+e)}))):(oe.debug("no refresh handler for provider:",r),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._isExpired=function(e){if(!e)return oe.debug("no credentials for expiration check"),!0;oe.debug("is this credentials expired?",e);var t=(new Date).getTime(),r=e.expired,n=e.expireTime;return!(!r&&n>t+6e5)},e.prototype._setCredentialsForGuest=function(){return ie(this,void 0,void 0,(function(){var e,t,r,i,a,o,s,u=this;return ae(this,(function(c){switch(c.label){case 0:if(e=!1,oe.debug("setting credentials for guest"),t=this._config,r=t.identityPoolId,i=t.region,t.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!r)return oe.debug("No Cognito Federated Identity pool provided"),[2,Promise.reject("No Cognito Federated Identity pool provided")];a=void 0,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._storageSync];case 2:return c.sent(),a=this._storage.getItem("CognitoIdentityId-"+r),[3,4];case 3:return o=c.sent(),oe.debug("Failed to get the cached identityId",o),[3,4];case 4:return s=new n.CognitoIdentityCredentials({IdentityPoolId:r,IdentityId:a||void 0},{region:i}),this,[2,this._loadCredentials(s,"guest",!1,null).then((function(e){return e})).catch((function(t){return ie(u,void 0,void 0,(function(){var o;return ae(this,(function(u){return"ResourceNotFoundException"!==t.code||t.message!=="Identity '"+a+"' not found."||e?[2,t]:(e=!0,oe.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+r),s.clearCachedId(),o=new n.CognitoIdentityCredentials({IdentityPoolId:r,IdentityId:void 0},{region:i}),[2,this._loadCredentials(o,"guest",!1,null)])}))}))}))]}}))}))},e.prototype._setCredentialsFromAWS=function(){var e=n.config.credentials;oe.debug("setting credentials from aws");return e instanceof n.Credentials?Promise.resolve(e):(oe.debug("AWS.config.credentials is not an instance of AWS Credentials"),Promise.reject("AWS.config.credentials is not an instance of AWS Credentials"))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,r=e.token,i=e.identity_id,a=(e.user,e.expires_at,{google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t);if(!a)return Promise.reject("You must specify a federated provider");var o={};o[a]=r;var s=this._config,u=s.identityPoolId,c=s.region;if(!u)return oe.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");var p=new n.CognitoIdentityCredentials({IdentityPoolId:u,IdentityId:i,Logins:o},{region:c});return this._loadCredentials(p,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){oe.debug("set credentials from session");var t=e.getIdToken().getJwtToken(),r=this._config,i=r.region,a=r.userPoolId,o=r.identityPoolId;if(!o)return oe.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");var s={};s["cognito-idp."+i+".amazonaws.com/"+a]=t;var u=new n.CognitoIdentityCredentials({IdentityPoolId:o,Logins:s},{region:i});return this._loadCredentials(u,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,r,n){var i=this,a=this,o=this._config.identityPoolId;return new Promise((function(s,c){e.get((function(p){return ie(i,void 0,void 0,(function(){var i,l,m,d,y,h;return ae(this,(function(f){switch(f.label){case 0:if(p)return oe.debug("Failed to load credentials",e),c(p),[2];if(oe.debug("Load credentials successfully",e),a._credentials=e,a._credentials.authenticated=r,a._credentials_source=t,"federated"!==t)return[3,3];i=Object.assign({id:this._credentials.identityId},n.user),l=n.provider,m=n.token,d=n.expires_at,y=n.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:l,token:m,user:i,expires_at:d,identity_id:y}))}catch(b){oe.debug("Failed to put federated info into auth storage",b)}return u.Cache&&"function"===typeof u.Cache.setItem?[4,u.Cache.setItem("federatedInfo",{provider:l,token:m,user:i,expires_at:d,identity_id:y},{priority:1})]:[3,2];case 1:return f.sent(),[3,3];case 2:oe.debug("No Cache module registered in Amplify"),f.label=3;case 3:if("guest"!==t)return[3,7];f.label=4;case 4:return f.trys.push([4,6,,7]),[4,this._storageSync];case 5:return f.sent(),this._storage.setItem("CognitoIdentityId-"+o,e.identityId),[3,7];case 6:return h=f.sent(),oe.debug("Failed to cache identityId",h),[3,7];case 7:return s(a._credentials),[2]}}))}))}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(oe.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return ie(this,void 0,void 0,(function(){var e,t,r;return ae(this,(function(i){switch(i.label){case 0:return e=this._config,t=e.identityPoolId,r=e.region,t&&new n.CognitoIdentityCredentials({IdentityPoolId:t},{region:r}).clearCachedId(),this._credentials=null,this._credentials_source=null,this._storage.removeItem("aws-amplify-federatedInfo"),u.Cache&&"function"===typeof u.Cache.setItem?[4,u.Cache.removeItem("federatedInfo")]:[3,2];case 1:return i.sent(),[3,3];case 2:oe.debug("No Cache module registered in Amplify"),i.label=3;case 3:return[2]}}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null),ue=function(){function e(){this._logger=new o("ServiceWorker")}return Object.defineProperty(e.prototype,"serviceWorker",{get:function(){return this._serviceWorker},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var r=this;return void 0===e&&(e="/service-worker.js"),void 0===t&&(t="/"),this._logger.debug("registering "+e),this._logger.debug("registering service worker with scope "+t),new Promise((function(n,i){if(!(navigator&&"serviceWorker"in navigator))return i(new Error("Service Worker not available"));navigator.serviceWorker.register(e,{scope:t}).then((function(e){return e.installing?r._serviceWorker=e.installing:e.waiting?r._serviceWorker=e.waiting:e.active&&(r._serviceWorker=e.active),r._registration=e,r._setupListeners(),r._logger.debug("Service Worker Registration Success: "+e),n(e)})).catch((function(e){return r._logger.debug("Service Worker Registration Failed "+e),i(e)}))}))},e.prototype.enablePush=function(e){var t=this;if(!this._registration)throw new Error("Service Worker not registered");return this._publicKey=e,new Promise((function(r,n){if(!T.a.browserOrNode().isBrowser)return n(new Error("Service Worker not available"));t._registration.pushManager.getSubscription().then((function(n){if(!n)return t._logger.debug("User is NOT subscribed to push"),t._registration.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:t._urlB64ToUint8Array(e)}).then((function(e){t._subscription=e,t._logger.debug("User subscribed: "+JSON.stringify(e)),r(e)})).catch((function(e){t._logger.error(e)}));t._subscription=n,t._logger.debug("User is subscribed to push: "+JSON.stringify(n)),r(n)}))}))},e.prototype._urlB64ToUint8Array=function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),r=window.atob(t),n=new Uint8Array(r.length),i=0;i0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]e)&&r}}(r))},Ne=(function(){function e(){this._queue=[],this._pending=!1}e.prototype.isLocked=function(){return this._pending},e.prototype.acquire=function(){var e=this,t=new Promise((function(t){return e._queue.push(t)}));return this._pending||this._dispatchNext(),t},e.prototype.runExclusive=function(e){return this.acquire().then((function(t){var r;try{r=e()}catch(n){throw t(),n}return Promise.resolve(r).then((function(e){return t(),e}),(function(e){throw t(),e}))}))},e.prototype._dispatchNext=function(){this._queue.length>0?(this._pending=!0,this._queue.shift()(this._dispatchNext.bind(this))):this._pending=!1}}(),r(63));!function(){function e(){}e.prototype.networkMonitor=function(){return new Ne((function(e){e.next({online:window.navigator.onLine});var t=function(){return e.next({online:!0})},r=function(){return e.next({online:!1})};return window.addEventListener("online",t),window.addEventListener("offline",r),function(){window.removeEventListener("online",t),window.removeEventListener("offline",r)}}))}}();r.d(t,"d",(function(){return Ce})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return o})),r.d(t,"k",(function(){return o})),r.d(t,"f",(function(){return f})),r.d(t,"g",(function(){return C})),r.d(t,"j",(function(){return T.a})),r.d(t,"p",(function(){return U})),r.d(t,"m",(function(){return F})),r.d(t,"e",(function(){return se})),r.d(t,"o",(function(){return ue})),r.d(t,"q",(function(){return re})),r.d(t,"n",(function(){return le})),r.d(t,"h",(function(){return de})),r.d(t,"i",(function(){return ye})),r.d(t,"r",(function(){return"x-amz-user-agent"})),r.d(t,"l",(function(){return Se})),r.d(t,"t",(function(){return Ie}));var Ce={userAgent:le.userAgent},Te=(t.s=u,new o("Core"));n.util?n.util.userAgent=function(){return Ce.userAgent}:n.config?n.config.update({customUserAgent:Ce.userAgent}):Te.warn("No AWS.config")},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t>15;--a>=0;){var u=32767&this[e],c=this[e++]>>15,p=s*u+c*o;i=((u=o*u+((32767&p)<<15)+r[n]+(1073741823&i))>>>30)+(p>>>15)+s*c+(i>>>30),r[n++]=1073741823&u}return i},s=30):v&&"Netscape"!=navigator.appName?(g.prototype.am=function(e,t,r,n,i,a){for(;--a>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=67108863&o}return i},s=26):(g.prototype.am=function(e,t,r,n,i,a){for(var o=16383&t,s=t>>14;--a>=0;){var u=16383&this[e],c=this[e++]>>14,p=s*u+c*o;i=((u=o*u+((16383&p)<<14)+r[n]+i)>>28)+(p>>14)+s*c,r[n++]=268435455&u}return i},s=28),g.prototype.DB=s,g.prototype.DM=(1<>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function P(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},P.prototype.revert=function(e){var t=S();return e.copyTo(t),this.reduce(t),t},P.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},P.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},P.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},g.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},g.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},g.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");r=2}this.t=0,this.s=0;for(var n=e.length,i=!1,a=0;--n>=0;){var o=A(e,n);o<0?"-"==e.charAt(n)&&(i=!0):(i=!1,0==a?this[this.t++]=o:a+r>this.DB?(this[this.t-1]|=(o&(1<>this.DB-a):this[this.t-1]|=o<=this.DB&&(a-=this.DB))}this.clamp(),i&&g.ZERO.subTo(this,this)},g.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},g.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},g.prototype.drShiftTo=function(e,t){for(var r=e;r=0;--r)t[r+o+1]=this[r]>>i|s,s=(this[r]&a)<=0;--r)t[r]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()},g.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,a=(1<>n;for(var o=r+1;o>n;n>0&&(t[this.t-r-1]|=(this.s&a)<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},g.prototype.multiplyTo=function(e,t){var r=this.abs(),n=e.abs(),i=r.t;for(t.t=i+n.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[r]=0;for(r=0;r=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},g.prototype.divRemTo=function(e,t,r){var n=e.abs();if(!(n.t<=0)){var i=this.abs();if(i.t0?(n.lShiftTo(u,a),i.lShiftTo(u,r)):(n.copyTo(a),i.copyTo(r));var c=a.t,p=a[c-1];if(0!=p){var l=p*(1<1?a[c-2]>>this.F2:0),m=this.FV/l,d=(1<=0&&(r[r.t++]=1,r.subTo(b,r)),g.ONE.dlShiftTo(c,b),b.subTo(a,a);a.t=0;){var v=r[--h]==p?this.DM:Math.floor(r[h]*m+(r[h-1]+y)*d);if((r[h]+=a.am(0,v,r,f,0,c))0&&r.rShiftTo(u,r),o<0&&g.ZERO.subTo(r,r)}}},g.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},g.prototype.addTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()},g.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var r,n=(1<0)for(s>s)>0&&(i=!0,a=k(r));o>=0;)s>(s+=this.DB-t)):(r=this[o]>>(s-=t)&n,s<=0&&(s+=this.DB,--o)),r>0&&(i=!0),i&&(a+=k(r));return i?a:"0"},g.prototype.negate=function(){var e=S();return g.ZERO.subTo(this,e),e},g.prototype.abs=function(){return this.s<0?this.negate():this},g.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},g.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+R(this[this.t-1]^this.s&this.DM)},g.prototype.mod=function(e){var t=S();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(g.ZERO)>0&&e.subTo(t,t),t},g.prototype.equals=function(e){return 0==this.compareTo(e)},g.prototype.add=function(e){var t=S();return this.addTo(e,t),t},g.prototype.subtract=function(e){var t=S();return this.subTo(e,t),t},g.prototype.multiply=function(e){var t=S();return this.multiplyTo(e,t),t},g.prototype.divide=function(e){var t=S();return this.divRemTo(e,t,null),t},g.prototype.modPow=function(e,t,r){var n,i=e.bitLength(),a=D(1),o=new P(t);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6;var s=new Array,u=3,c=n-1,p=(1<1){var l=S();for(o.sqrTo(s[1],l);u<=p;)s[u]=S(),o.mulTo(l,s[u-2],s[u]),u+=2}var m,d,y=e.t-1,h=!0,f=S();for(i=R(e[y])-1;y>=0;){for(i>=c?m=e[y]>>i-c&p:(m=(e[y]&(1<0&&(m|=e[y-1]>>this.DB+i-c)),u=n;0==(1&m);)m>>=1,--u;if((i-=u)<0&&(i+=this.DB,--y),h)s[m].copyTo(a),h=!1;else{for(;u>1;)o.sqrTo(a,f),o.sqrTo(f,a),u-=2;u>0?o.sqrTo(a,f):(d=a,a=f,f=d),o.mulTo(f,s[m],a)}for(;y>=0&&0==(e[y]&1<0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0;--r)t+=n[Math.round(Math.random()*(n.length-1))];return t},e.prototype._generateChallenge=function(e){return this._base64URL(oe(e))},e.prototype._base64URL=function(e){return e.toString(se).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 r=0;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(t){a(t)}}function s(e){try{u(n.throw(e))}catch(t){a(t)}}function u(e){e.done?i(e.value):new r((function(t){t(e.value)})).then(o,s)}u((n=n.apply(e,t||[])).next())}))}function l(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function y(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function h(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(u,c):p(a[0][2],r)}catch(n){p(a[0][3],n)}var r}function u(e){s("next",e)}function c(e){s("throw",e)}function p(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function S(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function v(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=d(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function I(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function N(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){var n=r(806),i=r(112)(n);e.exports=i},function(e,t,r){var n=r(32);n.crypto.lib=r(362),n.Buffer=r(23).Buffer,n.url=r(54),n.querystring=r(217),n.realClock=r(374),n.environment="js",n.createEventStream=r(375).createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var i=r(5);if(e.exports=i,r(210),r(211),r(381),r(385),r(386),r(387),r(391),i.XML.Parser=r(392),r(393),"undefined"===typeof a)var a={browser:!0}},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(1)),n(r(2)),n(r(3)),n(r(4)),n(r(5)),n(r(6)),n(r(7)),n(r(8)),n(r(9)),n(r(10)),n(r(11)),n(r(12)),n(r(13))},function(e,t,r){e.exports={a:"Anchor__a___1_Iz8"}},function(e,t,r){e.exports={button:"Button__button___vS7Mv",signInButton:"Button__signInButton___3bUH-",googleSignInButton:"Button__googleSignInButton___1YiCu",signInButtonIcon:"Button__signInButtonIcon___ihN75",auth0SignInButton:"Button__auth0SignInButton___znnCj",facebookSignInButton:"Button__facebookSignInButton___34Txh",amazonSignInButton:"Button__amazonSignInButton___2EMtl",oAuthSignInButton:"Button__oAuthSignInButton___3UGOl",signInButtonContent:"Button__signInButtonContent___xqTXJ"}},function(e,t,r){e.exports={formContainer:"Form__formContainer___1GA3x",formSection:"Form__formSection___1PPvW",formField:"Form__formField___38Ikl",formRow:"Form__formRow___2mwRs"}},function(e,t,r){e.exports={hint:"Hint__hint___2XngB"}},function(e,t,r){e.exports={input:"Input__input___3e_bf",inputLabel:"Input__inputLabel___3VF0S",label:"Input__label___23sO8",radio:"Input__radio___2hllK"}},function(e,t,r){e.exports={navBar:"Nav__navBar___xtCFA",navRight:"Nav__navRight___1QG2J",nav:"Nav__nav___2Dx2Y",navItem:"Nav__navItem___1LtFQ"}},function(e,t,r){e.exports={photoPickerButton:"PhotoPicker__photoPickerButton___2XdVn",photoPlaceholder:"PhotoPicker__photoPlaceholder___2JXO4",photoPlaceholderIcon:"PhotoPicker__photoPlaceholderIcon___3Et71"}},function(e,t,r){e.exports={container:"Section__container___3YYTG",actionRow:"Section__actionRow___2LWSU",sectionHeader:"Section__sectionHeader___2djyg",sectionHeaderHint:"Section__sectionHeaderHint___3Wxdc",sectionBody:"Section__sectionBody___ihqqd",sectionHeaderContent:"Section__sectionHeaderContent___1UCqa",sectionFooter:"Section__sectionFooter___1T54C",sectionFooterPrimaryContent:"Section__sectionFooterPrimaryContent___2r9ZX",sectionFooterSecondaryContent:"Section__sectionFooterSecondaryContent___Nj41Q"}},function(e,t,r){e.exports={selectInput:"SelectInput__selectInput___3efO4"}},function(e,t,r){e.exports={strike:"Strike__strike___1XV1b",strikeContent:"Strike__strikeContent___10gLb"}},function(e,t,r){e.exports={toast:"Toast__toast___XXr3v",toastClose:"Toast__toastClose___18lU4"}},function(e,t,r){e.exports={totpQrcode:"Totp__totpQrcode___1crLx"}},function(e,t,r){e.exports={sumerianSceneContainer:"XR__sumerianSceneContainer___3nVMt",sumerianScene:"XR__sumerianScene___2Tt7-",loadingOverlay:"XR__loadingOverlay___IbqcI",loadingContainer:"XR__loadingContainer___2Itxb",loadingLogo:"XR__loadingLogo___Ub7xQ",loadingSceneName:"XR__loadingSceneName___3__ne",loadingBar:"XR__loadingBar___2vcke",loadingBarFill:"XR__loadingBarFill___3M-D9",sceneErrorText:"XR__sceneErrorText___2y0tp",sceneBar:"XR__sceneBar___2ShrP",sceneName:"XR__sceneName___1ApHr",sceneActions:"XR__sceneActions___7plGs",actionButton:"XR__actionButton___2poIM",tooltip:"XR__tooltip___UYyhn",actionIcon:"XR__actionIcon___2qnd2",autoShowTooltip:"XR__autoShowTooltip___V1QH7"}}])},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i}));var n={display:"block",width:"100%",height:"34px",padding:"6px 12px",fontSize:"14px",lineHeight:"1.42857143",color:"#555",backgroundColor:"#fff",backgroundImage:"none",border:"1px solid #ccc",borderRadius:"4px",boxShadow:"inset 0 1px 1px rgba(0,0,0,.075)",boxSizing:"border-box",transition:"border-color ease-in-out .15s,box-shadow ease-in-out .15s"},i={display:"inline-block",padding:"6px 12px",marginBottom:"0",fontSize:"14px",fontWeight:400,lineHeight:"1.42857143",textAlign:"center",whiteSpace:"nowrap",verticalAlign:"middle",touchAction:"manipulation",cursor:"pointer",userSelect:"none",backgroundImage:"none",border:"1px solid transparent",borderRadius:"4px",color:"#333",backgroundColor:"#fff",borderColor:"#ccc"},a={container:{fontFamily:'-apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n Roboto,\n "Helvetica Neue",\n Arial,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol"',fontWeight:"400",lineHeight:"1.5",color:"#212529",textAlign:"left",paddingLeft:"15px",paddingRight:"15px"},navBar:{position:"relative",border:"1px solid transparent",borderColor:"#e7e7e7"},nav:{margin:"7.5px"},navRight:{textAlign:"right"},navItem:{display:"inline-block",padding:"10px 5px",lineHeight:"20px"},navButton:{display:"inline-block",padding:"6px 12px",marginTop:"8px",marginBottom:"8px",fontSize:"14px",fontWeight:400,lineHeight:"1.42857143",textAlign:"center",whiteSpace:"nowrap",verticalAlign:"middle",touchAction:"manipulation",cursor:"pointer",userSelect:"none",backgroundImage:"none",border:"1px solid transparent",borderRadius:"4px",color:"#333",backgroundColor:"#fff",borderColor:"#ccc"},formContainer:{textAlign:"center"},formSection:{marginBottom:"20px",backgroundColor:"#fff",border:"1px solid #ddd",borderRadius:"4px",textAlign:"left",width:"400px",display:"inline-block"},errorSection:{marginBottom:"20px",color:"#fff",backgroundColor:"#f0ad4e",border:"1px solid #eea236",borderRadius:"4px",textAlign:"left"},sectionHeader:{color:"#fff",backgroundColor:"#337ab7",borderColor:"#337ab7",padding:"10px 15px",borderBottom:"1px solid transparent",borderTopLeftRadius:"3px",borderTopRightRadius:"3px",textAlign:"center"},sectionBody:{padding:"15px"},sectionFooter:{color:"#333",backgroundColor:"#f5f5f5",padding:"10px 15px",borderTop:"1px solid #ddd",borderTopLeftRadius:"3px",borderTopRightRadius:"3px"},formRow:{marginBottom:"15px"},actionRow:{marginBottom:"15px"},space:{display:"inline-block",width:"20px"},signInButton:{position:"relative",padding:"6px 12px 6px 44px",fontSize:"14px",textAlign:"left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",marginTop:"2px","#google_signin_btn":{color:"#fff",backgroundColor:"#dd4b39",borderColor:"rgba(0,0,0,0.2)"},"#facebook_signin_btn":{color:"#fff",backgroundColor:"#3b5998",borderColor:"rgba(0,0,0,0.2)"}},input:n,button:i,a:{color:"#007bff",cursor:"pointer"},pre:{overflow:"auto",fontFamily:'Menlo,\n Monaco,\n Consolas,\n "Courier New",\n monospace',display:"block",padding:"9.5px",margin:"0 0 10px",fontSize:"13px",lineHeight:"1.42857143",color:"#333",wordBreak:"break-all",wordWrap:"break-word",backgroundColor:"#f5f5f5",border:"1px solid #ccc",borderRadius:"4px"},col1:{display:"inline-block",width:"8.33333333%"},col2:{display:"inline-block",width:"16.66666667%"},col3:{display:"inline-block",width:"25%"},col4:{display:"inline-block",width:"33.33333333%"},col5:{display:"inline-block",width:"41.66666667%"},col6:{display:"inline-block",width:"50%"},col7:{display:"inline-block",width:"58.33333333%"},col8:{display:"inline-block",width:"66.66666667%"},col9:{display:"inline-block",width:"75%"},col10:{display:"inline-block",width:"83.33333333%"},col11:{display:"inline-block",width:"91.66666667%"},col12:{display:"inline-block",width:"100%"},hidden:{display:"none"}};t.c=a},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(t)}e.exports=r},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r>>1,G=[["ary",T],["bind",b],["bindKey",g],["curry",v],["curryRight",I],["flip",A],["partial",N],["partialRight",C],["rearg",k]],F="[object Arguments]",V="[object Array]",j="[object AsyncFunction]",z="[object Boolean]",K="[object Date]",W="[object DOMException]",H="[object Error]",J="[object Function]",Q="[object GeneratorFunction]",Z="[object Map]",Y="[object Number]",$="[object Null]",X="[object Object]",ee="[object Proxy]",te="[object RegExp]",re="[object Set]",ne="[object String]",ie="[object Symbol]",ae="[object Undefined]",oe="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",pe="[object Float32Array]",le="[object Float64Array]",me="[object Int8Array]",de="[object Int16Array]",ye="[object Int32Array]",he="[object Uint8Array]",fe="[object Uint8ClampedArray]",be="[object Uint16Array]",ge="[object Uint32Array]",Se=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,Ie=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ne=/&(?:amp|lt|gt|quot|#39);/g,Ce=/[&<>"']/g,Te=RegExp(Ne.source),ke=RegExp(Ce.source),Ae=/<%-([\s\S]+?)%>/g,De=/<%([\s\S]+?)%>/g,Re=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ee=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_e=/[\\^$.*+?()[\]{}|]/g,we=RegExp(_e.source),qe=/^\s+|\s+$/g,Me=/^\s+/,Oe=/\s+$/,Le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,Ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,je=/\w*$/,ze=/^[-+]0x[0-9a-f]+$/i,Ke=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Ye=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Xe+"]",rt="["+$e+"]",nt="\\d+",it="[\\u2700-\\u27bf]",at="[a-z\\xdf-\\xf6\\xf8-\\xff]",ot="[^\\ud800-\\udfff"+Xe+nt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",pt="[\\ud800-\\udbff][\\udc00-\\udfff]",lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",mt="(?:"+at+"|"+ot+")",dt="(?:"+lt+"|"+ot+")",yt="(?:"+rt+"|"+st+")"+"?",ht="[\\ufe0e\\ufe0f]?"+yt+("(?:\\u200d(?:"+[ut,ct,pt].join("|")+")[\\ufe0e\\ufe0f]?"+yt+")*"),ft="(?:"+[it,ct,pt].join("|")+")"+ht,bt="(?:"+[ut+rt+"?",rt,ct,pt,et].join("|")+")",gt=RegExp("['\u2019]","g"),St=RegExp(rt,"g"),vt=RegExp(st+"(?="+st+")|"+bt+ht,"g"),It=RegExp([lt+"?"+at+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[tt,lt,"$"].join("|")+")",dt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[tt,lt+mt,"$"].join("|")+")",lt+"?"+mt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",lt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nt,ft].join("|"),"g"),Nt=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),Ct=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kt=-1,At={};At[pe]=At[le]=At[me]=At[de]=At[ye]=At[he]=At[fe]=At[be]=At[ge]=!0,At[F]=At[V]=At[ue]=At[z]=At[ce]=At[K]=At[H]=At[J]=At[Z]=At[Y]=At[X]=At[te]=At[re]=At[ne]=At[oe]=!1;var Dt={};Dt[F]=Dt[V]=Dt[ue]=Dt[ce]=Dt[z]=Dt[K]=Dt[pe]=Dt[le]=Dt[me]=Dt[de]=Dt[ye]=Dt[Z]=Dt[Y]=Dt[X]=Dt[te]=Dt[re]=Dt[ne]=Dt[ie]=Dt[he]=Dt[fe]=Dt[be]=Dt[ge]=!0,Dt[H]=Dt[J]=Dt[oe]=!1;var Rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pt=parseFloat,Et=parseInt,xt="object"==typeof e&&e&&e.Object===Object&&e,_t="object"==typeof self&&self&&self.Object===Object&&self,wt=xt||_t||Function("return this")(),qt=t&&!t.nodeType&&t,Mt=qt&&"object"==typeof n&&n&&!n.nodeType&&n,Ot=Mt&&Mt.exports===qt,Lt=Ot&&xt.process,Bt=function(){try{var e=Mt&&Mt.require&&Mt.require("util").types;return e||Lt&&Lt.binding&&Lt.binding("util")}catch(t){}}(),Ut=Bt&&Bt.isArrayBuffer,Gt=Bt&&Bt.isDate,Ft=Bt&&Bt.isMap,Vt=Bt&&Bt.isRegExp,jt=Bt&&Bt.isSet,zt=Bt&&Bt.isTypedArray;function Kt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wt(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i-1}function $t(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function vr(e,t){for(var r=e.length;r--&&sr(t,e[r],0)>-1;);return r}var Ir=mr({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Nr=mr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Cr(e){return"\\"+Rt[e]}function Tr(e){return Nt.test(e)}function kr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function Ar(e,t){return function(r){return e(t(r))}}function Dr(e,t){for(var r=-1,n=e.length,i=0,a=[];++r",""":'"',"'":"'"});var wr=function e(t){var r=(t=null==t?wt:wr.defaults(wt.Object(),t,wr.pick(wt,Tt))).Array,n=t.Date,i=t.Error,$e=t.Function,Xe=t.Math,et=t.Object,tt=t.RegExp,rt=t.String,nt=t.TypeError,it=r.prototype,at=$e.prototype,ot=et.prototype,st=t["__core-js_shared__"],ut=at.toString,ct=ot.hasOwnProperty,pt=0,lt=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mt=ot.toString,dt=ut.call(et),yt=wt._,ht=tt("^"+ut.call(ct).replace(_e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=Ot?t.Buffer:a,bt=t.Symbol,vt=t.Uint8Array,Nt=ft?ft.allocUnsafe:a,Rt=Ar(et.getPrototypeOf,et),xt=et.create,_t=ot.propertyIsEnumerable,qt=it.splice,Mt=bt?bt.isConcatSpreadable:a,Lt=bt?bt.iterator:a,Bt=bt?bt.toStringTag:a,ir=function(){try{var e=La(et,"defineProperty");return e({},"",{}),e}catch(t){}}(),mr=t.clearTimeout!==wt.clearTimeout&&t.clearTimeout,qr=n&&n.now!==wt.Date.now&&n.now,Mr=t.setTimeout!==wt.setTimeout&&t.setTimeout,Or=Xe.ceil,Lr=Xe.floor,Br=et.getOwnPropertySymbols,Ur=ft?ft.isBuffer:a,Gr=t.isFinite,Fr=it.join,Vr=Ar(et.keys,et),jr=Xe.max,zr=Xe.min,Kr=n.now,Wr=t.parseInt,Hr=Xe.random,Jr=it.reverse,Qr=La(t,"DataView"),Zr=La(t,"Map"),Yr=La(t,"Promise"),$r=La(t,"Set"),Xr=La(t,"WeakMap"),en=La(et,"create"),tn=Xr&&new Xr,rn={},nn=co(Qr),an=co(Zr),on=co(Yr),sn=co($r),un=co(Xr),cn=bt?bt.prototype:a,pn=cn?cn.valueOf:a,ln=cn?cn.toString:a;function mn(e){if(Ds(e)&&!fs(e)&&!(e instanceof fn)){if(e instanceof hn)return e;if(ct.call(e,"__wrapped__"))return po(e)}return new hn(e)}var dn=function(){function e(){}return function(t){if(!As(t))return{};if(xt)return xt(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function yn(){}function hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function fn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function bn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function qn(e,t,r,n,i,o){var s,u=t&m,c=t&d,p=t&y;if(r&&(s=i?r(e,n,i,o):r(e)),s!==a)return s;if(!As(e))return e;var l=fs(e);if(l){if(s=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!u)return ta(e,s)}else{var h=Ga(e),f=h==J||h==Q;if(vs(e))return Qi(e,u);if(h==X||h==F||f&&!i){if(s=c||f?{}:Va(e),!u)return c?function(e,t){return ra(e,Ua(e),t)}(e,function(e,t){return e&&ra(t,iu(t),e)}(s,e)):function(e,t){return ra(e,Ba(e),t)}(e,En(s,e))}else{if(!Dt[h])return i?e:{};s=function(e,t,r){var n=e.constructor;switch(t){case ue:return Zi(e);case z:case K:return new n(+e);case ce:return function(e,t){var r=t?Zi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case pe:case le:case me:case de:case ye:case he:case fe:case be:case ge:return Yi(e,r);case Z:return new n;case Y:case ne:return new n(e);case te:return function(e){var t=new e.constructor(e.source,je.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new n;case ie:return i=e,pn?et(pn.call(i)):{}}var i}(e,h,u)}}o||(o=new In);var b=o.get(e);if(b)return b;o.set(e,s),_s(e)?e.forEach((function(n){s.add(qn(n,t,r,n,e,o))})):Rs(e)&&e.forEach((function(n,i){s.set(i,qn(n,t,r,i,e,o))}));var g=l?a:(p?c?Ea:Pa:c?iu:nu)(e);return Ht(g||e,(function(n,i){g&&(n=e[i=n]),Dn(s,i,qn(n,t,r,i,e,o))})),s}function Mn(e,t,r){var n=r.length;if(null==e)return!n;for(e=et(e);n--;){var i=r[n],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function On(e,t,r){if("function"!=typeof e)throw new nt(u);return ro((function(){e.apply(a,r)}),t)}function Ln(e,t,r,n){var i=-1,a=Yt,s=!0,u=e.length,c=[],p=t.length;if(!u)return c;r&&(t=Xt(t,fr(r))),n?(a=$t,s=!1):t.length>=o&&(a=gr,s=!1,t=new vn(t));e:for(;++i-1},gn.prototype.set=function(e,t){var r=this.__data__,n=Rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Sn.prototype.clear=function(){this.size=0,this.__data__={hash:new bn,map:new(Zr||gn),string:new bn}},Sn.prototype.delete=function(e){var t=Ma(this,e).delete(e);return this.size-=t?1:0,t},Sn.prototype.get=function(e){return Ma(this,e).get(e)},Sn.prototype.has=function(e){return Ma(this,e).has(e)},Sn.prototype.set=function(e,t){var r=Ma(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},vn.prototype.add=vn.prototype.push=function(e){return this.__data__.set(e,c),this},vn.prototype.has=function(e){return this.__data__.has(e)},In.prototype.clear=function(){this.__data__=new gn,this.size=0},In.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},In.prototype.get=function(e){return this.__data__.get(e)},In.prototype.has=function(e){return this.__data__.has(e)},In.prototype.set=function(e,t){var r=this.__data__;if(r instanceof gn){var n=r.__data__;if(!Zr||n.length0&&r(s)?t>1?jn(s,t-1,r,n,i):er(i,s):n||(i[i.length]=s)}return i}var zn=oa(),Kn=oa(!0);function Wn(e,t){return e&&zn(e,t,nu)}function Hn(e,t){return e&&Kn(e,t,nu)}function Jn(e,t){return Zt(t,(function(t){return Cs(e[t])}))}function Qn(e,t){for(var r=0,n=(t=Ki(t,e)).length;null!=e&&rt}function Xn(e,t){return null!=e&&ct.call(e,t)}function ei(e,t){return null!=e&&t in et(e)}function ti(e,t,n){for(var i=n?$t:Yt,o=e[0].length,s=e.length,u=s,c=r(s),p=1/0,l=[];u--;){var m=e[u];u&&t&&(m=Xt(m,fr(t))),p=zr(m.length,p),c[u]=!n&&(t||o>=120&&m.length>=120)?new vn(u&&m):a}m=e[0];var d=-1,y=c[0];e:for(;++d=s)return u;var c=r[n];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,r)}))}function bi(e,t,r){for(var n=-1,i=t.length,a={};++n-1;)s!==e&&qt.call(s,u,1),qt.call(e,u,1);return e}function Si(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==a){var a=i;za(i)?qt.call(e,i,1):Li(e,i)}}return e}function vi(e,t){return e+Lr(Hr()*(t-e+1))}function Ii(e,t){var r="";if(!e||t<1||t>q)return r;do{t%2&&(r+=e),(t=Lr(t/2))&&(e+=e)}while(t);return r}function Ni(e,t){return no($a(e,t,Pu),e+"")}function Ci(e){return Cn(mu(e))}function Ti(e,t){var r=mu(e);return oo(r,wn(t,0,r.length))}function ki(e,t,r,n){if(!As(e))return e;for(var i=-1,o=(t=Ki(t,e)).length,s=o-1,u=e;null!=u&&++ia?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i>>1,o=e[a];null!==o&&!qs(o)&&(r?o<=t:o=o){var p=t?null:Ia(e);if(p)return Rr(p);s=!1,i=gr,c=new vn}else c=t?[]:u;e:for(;++n=n?e:Pi(e,t,r)}var Ji=mr||function(e){return wt.clearTimeout(e)};function Qi(e,t){if(t)return e.slice();var r=e.length,n=Nt?Nt(r):new e.constructor(r);return e.copy(n),n}function Zi(e){var t=new e.constructor(e.byteLength);return new vt(t).set(new vt(e)),t}function Yi(e,t){var r=t?Zi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function $i(e,t){if(e!==t){var r=e!==a,n=null===e,i=e===e,o=qs(e),s=t!==a,u=null===t,c=t===t,p=qs(t);if(!u&&!p&&!o&&e>t||o&&s&&c&&!u&&!p||n&&s&&c||!r&&c||!i)return 1;if(!n&&!o&&!p&&e1?r[i-1]:a,s=i>2?r[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&Ka(r[0],r[1],s)&&(o=i<3?a:o,i=1),t=et(t);++n-1?i[o?t[s]:s]:a}}function la(e){return Ra((function(t){var r=t.length,n=r,i=hn.prototype.thru;for(e&&t.reverse();n--;){var o=t[n];if("function"!=typeof o)throw new nt(u);if(i&&!s&&"wrapper"==_a(o))var s=new hn([],!0)}for(n=s?n:r;++n1&&v.reverse(),m&&pu))return!1;var p=o.get(e);if(p&&o.get(t))return p==t;var l=-1,m=!0,d=r&f?new vn:a;for(o.set(e,t),o.set(t,e);++l-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Le,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ht(G,(function(r){var n="_."+r[0];t&r[1]&&!Yt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(Be);return t?t[1].split(Ue):[]}(n),r)))}function ao(e){var t=0,r=0;return function(){var n=Kr(),i=E-(n-r);if(r=n,i>0){if(++t>=P)return arguments[0]}else t=0;return e.apply(a,arguments)}}function oo(e,t){var r=-1,n=e.length,i=n-1;for(t=t===a?n:t;++r1?e[t-1]:a;return r="function"==typeof r?(e.pop(),r):a,xo(e,r)}));function Bo(e){var t=mn(e);return t.__chain__=!0,t}function Uo(e,t){return t(e)}var Go=Ra((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return _n(t,e)};return!(t>1||this.__actions__.length)&&n instanceof fn&&za(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:Uo,args:[i],thisArg:a}),new hn(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));var Fo=na((function(e,t,r){ct.call(e,r)?++e[r]:xn(e,r,1)}));var Vo=pa(ho),jo=pa(fo);function zo(e,t){return(fs(e)?Ht:Bn)(e,qa(t,3))}function Ko(e,t){return(fs(e)?Jt:Un)(e,qa(t,3))}var Wo=na((function(e,t,r){ct.call(e,r)?e[r].push(t):xn(e,r,[t])}));var Ho=Ni((function(e,t,n){var i=-1,a="function"==typeof t,o=gs(e)?r(e.length):[];return Bn(e,(function(e){o[++i]=a?Kt(t,e,n):ri(e,t,n)})),o})),Jo=na((function(e,t,r){xn(e,r,t)}));function Qo(e,t){return(fs(e)?Xt:li)(e,qa(t,3))}var Zo=na((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Yo=Ni((function(e,t){if(null==e)return[];var r=t.length;return r>1&&Ka(e,t[0],t[1])?t=[]:r>2&&Ka(t[0],t[1],t[2])&&(t=[t[0]]),fi(e,jn(t,1),[])})),$o=qr||function(){return wt.Date.now()};function Xo(e,t,r){return t=r?a:t,t=e&&null==t?e.length:t,Ca(e,T,a,a,a,a,t)}function es(e,t){var r;if("function"!=typeof t)throw new nt(u);return e=Gs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var ts=Ni((function(e,t,r){var n=b;if(r.length){var i=Dr(r,wa(ts));n|=N}return Ca(e,n,t,r,i)})),rs=Ni((function(e,t,r){var n=b|g;if(r.length){var i=Dr(r,wa(rs));n|=N}return Ca(t,n,e,r,i)}));function ns(e,t,r){var n,i,o,s,c,p,l=0,m=!1,d=!1,y=!0;if("function"!=typeof e)throw new nt(u);function h(t){var r=n,o=i;return n=i=a,l=t,s=e.apply(o,r)}function f(e){var r=e-p;return p===a||r>=t||r<0||d&&e-l>=o}function b(){var e=$o();if(f(e))return g(e);c=ro(b,function(e){var r=t-(e-p);return d?zr(r,o-(e-l)):r}(e))}function g(e){return c=a,y&&n?h(e):(n=i=a,s)}function S(){var e=$o(),r=f(e);if(n=arguments,i=this,p=e,r){if(c===a)return function(e){return l=e,c=ro(b,t),m?h(e):s}(p);if(d)return Ji(c),c=ro(b,t),h(p)}return c===a&&(c=ro(b,t)),s}return t=Vs(t)||0,As(r)&&(m=!!r.leading,o=(d="maxWait"in r)?jr(Vs(r.maxWait)||0,t):o,y="trailing"in r?!!r.trailing:y),S.cancel=function(){c!==a&&Ji(c),l=0,n=p=i=c=a},S.flush=function(){return c===a?s:g($o())},S}var is=Ni((function(e,t){return On(e,1,t)})),as=Ni((function(e,t,r){return On(e,Vs(t)||0,r)}));function os(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new nt(u);var r=function r(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(os.Cache||Sn),r}function ss(e){if("function"!=typeof e)throw new nt(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}os.Cache=Sn;var us=Wi((function(e,t){var r=(t=1==t.length&&fs(t[0])?Xt(t[0],fr(qa())):Xt(jn(t,1),fr(qa()))).length;return Ni((function(n){for(var i=-1,a=zr(n.length,r);++i=t})),hs=ni(function(){return arguments}())?ni:function(e){return Ds(e)&&ct.call(e,"callee")&&!_t.call(e,"callee")},fs=r.isArray,bs=Ut?fr(Ut):function(e){return Ds(e)&&Yn(e)==ue};function gs(e){return null!=e&&ks(e.length)&&!Cs(e)}function Ss(e){return Ds(e)&&gs(e)}var vs=Ur||Vu,Is=Gt?fr(Gt):function(e){return Ds(e)&&Yn(e)==K};function Ns(e){if(!Ds(e))return!1;var t=Yn(e);return t==H||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Es(e)}function Cs(e){if(!As(e))return!1;var t=Yn(e);return t==J||t==Q||t==j||t==ee}function Ts(e){return"number"==typeof e&&e==Gs(e)}function ks(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=q}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ds(e){return null!=e&&"object"==typeof e}var Rs=Ft?fr(Ft):function(e){return Ds(e)&&Ga(e)==Z};function Ps(e){return"number"==typeof e||Ds(e)&&Yn(e)==Y}function Es(e){if(!Ds(e)||Yn(e)!=X)return!1;var t=Rt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ut.call(r)==dt}var xs=Vt?fr(Vt):function(e){return Ds(e)&&Yn(e)==te};var _s=jt?fr(jt):function(e){return Ds(e)&&Ga(e)==re};function ws(e){return"string"==typeof e||!fs(e)&&Ds(e)&&Yn(e)==ne}function qs(e){return"symbol"==typeof e||Ds(e)&&Yn(e)==ie}var Ms=zt?fr(zt):function(e){return Ds(e)&&ks(e.length)&&!!At[Yn(e)]};var Os=ga(pi),Ls=ga((function(e,t){return e<=t}));function Bs(e){if(!e)return[];if(gs(e))return ws(e)?xr(e):ta(e);if(Lt&&e[Lt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Lt]());var t=Ga(e);return(t==Z?kr:t==re?Rr:mu)(e)}function Us(e){return e?(e=Vs(e))===w||e===-w?(e<0?-1:1)*M:e===e?e:0:0===e?e:0}function Gs(e){var t=Us(e),r=t%1;return t===t?r?t-r:t:0}function Fs(e){return e?wn(Gs(e),0,L):0}function Vs(e){if("number"==typeof e)return e;if(qs(e))return O;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(qe,"");var r=Ke.test(e);return r||He.test(e)?Et(e.slice(2),r?2:8):ze.test(e)?O:+e}function js(e){return ra(e,iu(e))}function zs(e){return null==e?"":Mi(e)}var Ks=ia((function(e,t){if(Qa(t)||gs(t))ra(t,nu(t),e);else for(var r in t)ct.call(t,r)&&Dn(e,r,t[r])})),Ws=ia((function(e,t){ra(t,iu(t),e)})),Hs=ia((function(e,t,r,n){ra(t,iu(t),e,n)})),Js=ia((function(e,t,r,n){ra(t,nu(t),e,n)})),Qs=Ra(_n);var Zs=Ni((function(e,t){e=et(e);var r=-1,n=t.length,i=n>2?t[2]:a;for(i&&Ka(t[0],t[1],i)&&(n=1);++r1),t})),ra(e,Ea(e),r),n&&(r=qn(r,m|d|y,Aa));for(var i=t.length;i--;)Li(r,t[i]);return r}));var uu=Ra((function(e,t){return null==e?{}:function(e,t){return bi(e,t,(function(t,r){return Xs(e,r)}))}(e,t)}));function cu(e,t){if(null==e)return{};var r=Xt(Ea(e),(function(e){return[e]}));return t=qa(t),bi(e,r,(function(e,r){return t(e,r[0])}))}var pu=Na(nu),lu=Na(iu);function mu(e){return null==e?[]:br(e,nu(e))}var du=ua((function(e,t,r){return t=t.toLowerCase(),e+(r?yu(t):t)}));function yu(e){return Nu(zs(e).toLowerCase())}function hu(e){return(e=zs(e))&&e.replace(Qe,Ir).replace(St,"")}var fu=ua((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),bu=ua((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),gu=sa("toLowerCase");var Su=ua((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var vu=ua((function(e,t,r){return e+(r?" ":"")+Nu(t)}));var Iu=ua((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Nu=sa("toUpperCase");function Cu(e,t,r){return e=zs(e),(t=r?a:t)===a?function(e){return Ct.test(e)}(e)?function(e){return e.match(It)||[]}(e):function(e){return e.match(Ge)||[]}(e):e.match(t)||[]}var Tu=Ni((function(e,t){try{return Kt(e,a,t)}catch(r){return Ns(r)?r:new i(r)}})),ku=Ra((function(e,t){return Ht(t,(function(t){t=uo(t),xn(e,t,ts(e[t],e))})),e}));function Au(e){return function(){return e}}var Du=la(),Ru=la(!0);function Pu(e){return e}function Eu(e){return si("function"==typeof e?e:qn(e,m))}var xu=Ni((function(e,t){return function(r){return ri(r,e,t)}})),_u=Ni((function(e,t){return function(r){return ri(e,r,t)}}));function wu(e,t,r){var n=nu(t),i=Jn(t,n);null!=r||As(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Jn(t,nu(t)));var a=!(As(r)&&"chain"in r)||!!r.chain,o=Cs(e);return Ht(i,(function(r){var n=t[r];e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__),i=r.__actions__=ta(this.__actions__);return i.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,er([this.value()],arguments))})})),e}function qu(){}var Mu=ha(Xt),Ou=ha(Qt),Lu=ha(nr);function Bu(e){return Wa(e)?lr(uo(e)):function(e){return function(t){return Qn(t,e)}}(e)}var Uu=ba(),Gu=ba(!0);function Fu(){return[]}function Vu(){return!1}var ju=ya((function(e,t){return e+t}),0),zu=va("ceil"),Ku=ya((function(e,t){return e/t}),1),Wu=va("floor");var Hu=ya((function(e,t){return e*t}),1),Ju=va("round"),Qu=ya((function(e,t){return e-t}),0);return mn.after=function(e,t){if("function"!=typeof t)throw new nt(u);return e=Gs(e),function(){if(--e<1)return t.apply(this,arguments)}},mn.ary=Xo,mn.assign=Ks,mn.assignIn=Ws,mn.assignInWith=Hs,mn.assignWith=Js,mn.at=Qs,mn.before=es,mn.bind=ts,mn.bindAll=ku,mn.bindKey=rs,mn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return fs(e)?e:[e]},mn.chain=Bo,mn.chunk=function(e,t,n){t=(n?Ka(e,t,n):t===a)?1:jr(Gs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,u=r(Or(i/t));oi?0:i+r),(n=n===a||n>i?i:Gs(n))<0&&(n+=i),n=r>n?0:Fs(n);r>>0)?(e=zs(e))&&("string"==typeof t||null!=t&&!xs(t))&&!(t=Mi(t))&&Tr(e)?Hi(xr(e),0,r):e.split(t,r):[]},mn.spread=function(e,t){if("function"!=typeof e)throw new nt(u);return t=null==t?0:jr(Gs(t),0),Ni((function(r){var n=r[t],i=Hi(r,0,t);return n&&er(i,n),Kt(e,this,i)}))},mn.tail=function(e){var t=null==e?0:e.length;return t?Pi(e,1,t):[]},mn.take=function(e,t,r){return e&&e.length?Pi(e,0,(t=r||t===a?1:Gs(t))<0?0:t):[]},mn.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Pi(e,(t=n-(t=r||t===a?1:Gs(t)))<0?0:t,n):[]},mn.takeRightWhile=function(e,t){return e&&e.length?Ui(e,qa(t,3),!1,!0):[]},mn.takeWhile=function(e,t){return e&&e.length?Ui(e,qa(t,3)):[]},mn.tap=function(e,t){return t(e),e},mn.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new nt(u);return As(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ns(e,t,{leading:n,maxWait:t,trailing:i})},mn.thru=Uo,mn.toArray=Bs,mn.toPairs=pu,mn.toPairsIn=lu,mn.toPath=function(e){return fs(e)?Xt(e,uo):qs(e)?[e]:ta(so(zs(e)))},mn.toPlainObject=js,mn.transform=function(e,t,r){var n=fs(e),i=n||vs(e)||Ms(e);if(t=qa(t,4),null==r){var a=e&&e.constructor;r=i?n?new a:[]:As(e)&&Cs(a)?dn(Rt(e)):{}}return(i?Ht:Wn)(e,(function(e,n,i){return t(r,e,n,i)})),r},mn.unary=function(e){return Xo(e,1)},mn.union=Do,mn.unionBy=Ro,mn.unionWith=Po,mn.uniq=function(e){return e&&e.length?Oi(e):[]},mn.uniqBy=function(e,t){return e&&e.length?Oi(e,qa(t,2)):[]},mn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?Oi(e,a,t):[]},mn.unset=function(e,t){return null==e||Li(e,t)},mn.unzip=Eo,mn.unzipWith=xo,mn.update=function(e,t,r){return null==e?e:Bi(e,t,zi(r))},mn.updateWith=function(e,t,r,n){return n="function"==typeof n?n:a,null==e?e:Bi(e,t,zi(r),n)},mn.values=mu,mn.valuesIn=function(e){return null==e?[]:br(e,iu(e))},mn.without=_o,mn.words=Cu,mn.wrap=function(e,t){return cs(zi(t),e)},mn.xor=wo,mn.xorBy=qo,mn.xorWith=Mo,mn.zip=Oo,mn.zipObject=function(e,t){return Vi(e||[],t||[],Dn)},mn.zipObjectDeep=function(e,t){return Vi(e||[],t||[],ki)},mn.zipWith=Lo,mn.entries=pu,mn.entriesIn=lu,mn.extend=Ws,mn.extendWith=Hs,wu(mn,mn),mn.add=ju,mn.attempt=Tu,mn.camelCase=du,mn.capitalize=yu,mn.ceil=zu,mn.clamp=function(e,t,r){return r===a&&(r=t,t=a),r!==a&&(r=(r=Vs(r))===r?r:0),t!==a&&(t=(t=Vs(t))===t?t:0),wn(Vs(e),t,r)},mn.clone=function(e){return qn(e,y)},mn.cloneDeep=function(e){return qn(e,m|y)},mn.cloneDeepWith=function(e,t){return qn(e,m|y,t="function"==typeof t?t:a)},mn.cloneWith=function(e,t){return qn(e,y,t="function"==typeof t?t:a)},mn.conformsTo=function(e,t){return null==t||Mn(e,t,nu(t))},mn.deburr=hu,mn.defaultTo=function(e,t){return null==e||e!==e?t:e},mn.divide=Ku,mn.endsWith=function(e,t,r){e=zs(e),t=Mi(t);var n=e.length,i=r=r===a?n:wn(Gs(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},mn.eq=ms,mn.escape=function(e){return(e=zs(e))&&ke.test(e)?e.replace(Ce,Nr):e},mn.escapeRegExp=function(e){return(e=zs(e))&&we.test(e)?e.replace(_e,"\\$&"):e},mn.every=function(e,t,r){var n=fs(e)?Qt:Gn;return r&&Ka(e,t,r)&&(t=a),n(e,qa(t,3))},mn.find=Vo,mn.findIndex=ho,mn.findKey=function(e,t){return ar(e,qa(t,3),Wn)},mn.findLast=jo,mn.findLastIndex=fo,mn.findLastKey=function(e,t){return ar(e,qa(t,3),Hn)},mn.floor=Wu,mn.forEach=zo,mn.forEachRight=Ko,mn.forIn=function(e,t){return null==e?e:zn(e,qa(t,3),iu)},mn.forInRight=function(e,t){return null==e?e:Kn(e,qa(t,3),iu)},mn.forOwn=function(e,t){return e&&Wn(e,qa(t,3))},mn.forOwnRight=function(e,t){return e&&Hn(e,qa(t,3))},mn.get=$s,mn.gt=ds,mn.gte=ys,mn.has=function(e,t){return null!=e&&Fa(e,t,Xn)},mn.hasIn=Xs,mn.head=go,mn.identity=Pu,mn.includes=function(e,t,r,n){e=gs(e)?e:mu(e),r=r&&!n?Gs(r):0;var i=e.length;return r<0&&(r=jr(i+r,0)),ws(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sr(e,t,r)>-1},mn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Gs(r);return i<0&&(i=jr(n+i,0)),sr(e,t,i)},mn.inRange=function(e,t,r){return t=Us(t),r===a?(r=t,t=0):r=Us(r),function(e,t,r){return e>=zr(t,r)&&e=-q&&e<=q},mn.isSet=_s,mn.isString=ws,mn.isSymbol=qs,mn.isTypedArray=Ms,mn.isUndefined=function(e){return e===a},mn.isWeakMap=function(e){return Ds(e)&&Ga(e)==oe},mn.isWeakSet=function(e){return Ds(e)&&Yn(e)==se},mn.join=function(e,t){return null==e?"":Fr.call(e,t)},mn.kebabCase=fu,mn.last=No,mn.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==a&&(i=(i=Gs(r))<0?jr(n+i,0):zr(i,n-1)),t===t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):or(e,cr,i,!0)},mn.lowerCase=bu,mn.lowerFirst=gu,mn.lt=Os,mn.lte=Ls,mn.max=function(e){return e&&e.length?Fn(e,Pu,$n):a},mn.maxBy=function(e,t){return e&&e.length?Fn(e,qa(t,2),$n):a},mn.mean=function(e){return pr(e,Pu)},mn.meanBy=function(e,t){return pr(e,qa(t,2))},mn.min=function(e){return e&&e.length?Fn(e,Pu,pi):a},mn.minBy=function(e,t){return e&&e.length?Fn(e,qa(t,2),pi):a},mn.stubArray=Fu,mn.stubFalse=Vu,mn.stubObject=function(){return{}},mn.stubString=function(){return""},mn.stubTrue=function(){return!0},mn.multiply=Hu,mn.nth=function(e,t){return e&&e.length?hi(e,Gs(t)):a},mn.noConflict=function(){return wt._===this&&(wt._=yt),this},mn.noop=qu,mn.now=$o,mn.pad=function(e,t,r){e=zs(e);var n=(t=Gs(t))?Er(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return fa(Lr(i),r)+e+fa(Or(i),r)},mn.padEnd=function(e,t,r){e=zs(e);var n=(t=Gs(t))?Er(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Hr();return zr(e+i*(t-e+Pt("1e-"+((i+"").length-1))),t)}return vi(e,t)},mn.reduce=function(e,t,r){var n=fs(e)?tr:dr,i=arguments.length<3;return n(e,qa(t,4),r,i,Bn)},mn.reduceRight=function(e,t,r){var n=fs(e)?rr:dr,i=arguments.length<3;return n(e,qa(t,4),r,i,Un)},mn.repeat=function(e,t,r){return t=(r?Ka(e,t,r):t===a)?1:Gs(t),Ii(zs(e),t)},mn.replace=function(){var e=arguments,t=zs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},mn.result=function(e,t,r){var n=-1,i=(t=Ki(t,e)).length;for(i||(i=1,e=a);++nq)return[];var r=L,n=zr(e,L);t=qa(t),e-=L;for(var i=hr(n,t);++r=o)return e;var u=r-Er(n);if(u<1)return n;var c=s?Hi(s,0,u).join(""):e.slice(0,u);if(i===a)return c+n;if(s&&(u+=c.length-u),xs(i)){if(e.slice(u).search(i)){var p,l=c;for(i.global||(i=tt(i.source,zs(je.exec(i))+"g")),i.lastIndex=0;p=i.exec(l);)var m=p.index;c=c.slice(0,m===a?u:m)}}else if(e.indexOf(Mi(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+n},mn.unescape=function(e){return(e=zs(e))&&Te.test(e)?e.replace(Ne,_r):e},mn.uniqueId=function(e){var t=++pt;return zs(e)+t},mn.upperCase=Iu,mn.upperFirst=Nu,mn.each=zo,mn.eachRight=Ko,mn.first=go,wu(mn,function(){var e={};return Wn(mn,(function(t,r){ct.call(mn.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),mn.VERSION="4.17.15",Ht(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){mn[e].placeholder=mn})),Ht(["drop","take"],(function(e,t){fn.prototype[e]=function(r){r=r===a?1:jr(Gs(r),0);var n=this.__filtered__&&!t?new fn(this):this.clone();return n.__filtered__?n.__takeCount__=zr(r,n.__takeCount__):n.__views__.push({size:zr(r,L),type:e+(n.__dir__<0?"Right":"")}),n},fn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ht(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=r==x||3==r;fn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:qa(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Ht(["head","last"],(function(e,t){var r="take"+(t?"Right":"");fn.prototype[e]=function(){return this[r](1).value()[0]}})),Ht(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");fn.prototype[e]=function(){return this.__filtered__?new fn(this):this[r](1)}})),fn.prototype.compact=function(){return this.filter(Pu)},fn.prototype.find=function(e){return this.filter(e).head()},fn.prototype.findLast=function(e){return this.reverse().find(e)},fn.prototype.invokeMap=Ni((function(e,t){return"function"==typeof e?new fn(this):this.map((function(r){return ri(r,e,t)}))})),fn.prototype.reject=function(e){return this.filter(ss(qa(e)))},fn.prototype.slice=function(e,t){e=Gs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new fn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==a&&(r=(t=Gs(t))<0?r.dropRight(-t):r.take(t-e)),r)},fn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},fn.prototype.toArray=function(){return this.take(L)},Wn(fn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=mn[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t);i&&(mn.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof fn,c=s[0],p=u||fs(t),l=function(e){var t=i.apply(mn,er([e],s));return n&&m?t[0]:t};p&&r&&"function"==typeof c&&1!=c.length&&(u=p=!1);var m=this.__chain__,d=!!this.__actions__.length,y=o&&!m,h=u&&!d;if(!o&&p){t=h?t:new fn(this);var f=e.apply(t,s);return f.__actions__.push({func:Uo,args:[l],thisArg:a}),new hn(f,m)}return y&&h?e.apply(this,s):(f=this.thru(l),y?n?f.value()[0]:f.value():f)})})),Ht(["pop","push","shift","sort","splice","unshift"],(function(e){var t=it[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);mn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(fs(i)?i:[],e)}return this[r]((function(r){return t.apply(fs(r)?r:[],e)}))}})),Wn(fn.prototype,(function(e,t){var r=mn[t];if(r){var n=r.name+"";ct.call(rn,n)||(rn[n]=[]),rn[n].push({name:t,func:r})}})),rn[ma(a,g).name]=[{name:"wrapper",func:a}],fn.prototype.clone=function(){var e=new fn(this.__wrapped__);return e.__actions__=ta(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ta(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ta(this.__views__),e},fn.prototype.reverse=function(){if(this.__filtered__){var e=new fn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},fn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=fs(e),n=t<0,i=r?e.length:0,a=function(e,t,r){var n=-1,i=r.length;for(;++n=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},mn.prototype.plant=function(e){for(var t,r=this;r instanceof yn;){var n=po(r);n.__index__=0,n.__values__=a,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},mn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof fn){var t=e;return this.__actions__.length&&(t=new fn(this)),(t=t.reverse()).__actions__.push({func:Uo,args:[Ao],thisArg:a}),new hn(t,this.__chain__)}return this.thru(Ao)},mn.prototype.toJSON=mn.prototype.valueOf=mn.prototype.value=function(){return Gi(this.__wrapped__,this.__actions__)},mn.prototype.first=mn.prototype.head,Lt&&(mn.prototype[Lt]=function(){return this}),mn}();wt._=wr,(i=function(){return wr}.call(t,r,t,n))===a||(n.exports=i)}).call(this)}).call(this,r(57),r(108)(e))},function(e,t,r){"use strict";(function(e){var n=r(364),i=r(365),a=r(366);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return F(e).length;t=(""+t).toLowerCase(),n=!0}}function h(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function f(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var a,o=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var p=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var l=!0,m=0;mi&&(n=i):n=i;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function k(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(p=c);break;case 2:128===(192&(a=e[i+1]))&&(u=(31&c)<<6|63&a)>127&&(p=u);break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(p=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(p=u)}null===p?(p=65533,l=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|1023&p),n.push(p),i+=l}return function(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(n,i),p=e.slice(t,r),l=0;li)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return I(this,e,t,r);case"latin1":case"binary":return N(this,e,t,r);case"base64":return C(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function R(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function q(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function M(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function O(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,n,a){return a||O(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,a){return a||O(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||_(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||_(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||_(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||_(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||_(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||_(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||_(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||_(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||_(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||_(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||_(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||w(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function j(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(57))},function(e,t,r){var n=r(2);e.exports=function(e){for(var t=1;t0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]"}return e.event_id||""}function d(e){var t=c();if(!("console"in t))return e();var r=t.console,n={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&r[e].__sentry_original__&&(n[e]=r[e],r[e]=r[e].__sentry_original__)}));var i=e();return Object.keys(n).forEach((function(e){r[e]=n[e]})),i}function y(e,t,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||r||"Error"}function h(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(r){e.exception.values[0].mechanism[r]=t[r]}))}catch(r){}}function f(){try{return document.location.href}catch(e){return""}}function b(e){try{for(var t=e,r=[],n=0,i=0,a=" > ".length,o=void 0;t&&n++<5&&!("html"===(o=g(t))||n>1&&i+r.length*a+o.length>=80);)r.push(o),i+=o.length,t=t.parentNode;return r.reverse().join(" > ")}catch(s){return""}}function g(e){var t,r,n,i,o,s=e,u=[];if(!s||!s.tagName)return"";if(u.push(s.tagName.toLowerCase()),s.id&&u.push("#"+s.id),(t=s.className)&&Object(a.k)(t))for(r=t.split(/\s+/),o=0;o1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r&&"equal"===e)return"equal width";var n=i()(e);return"string"!==n&&"number"!==n||!t?Object(a.a)(e):"".concat(Object(a.a)(e)," ").concat(t)}},function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(u){i=!0,a=u}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.d(t,"a",(function(){return n}))},,function(e,t,r){"use strict";function n(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return h(e,Error)}}function i(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function a(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function o(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function u(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e){return"undefined"!==typeof Event&&h(e,Event)}function l(e){return"undefined"!==typeof Element&&h(e,Element)}function m(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function d(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function y(e){return c(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function h(e,t){try{return e instanceof t}catch(r){return!1}}r.d(t,"d",(function(){return n})),r.d(t,"e",(function(){return i})),r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"k",(function(){return s})),r.d(t,"i",(function(){return u})),r.d(t,"h",(function(){return c})),r.d(t,"f",(function(){return p})),r.d(t,"c",(function(){return l})),r.d(t,"j",(function(){return m})),r.d(t,"m",(function(){return d})),r.d(t,"l",(function(){return y})),r.d(t,"g",(function(){return h}))},function(e,t,r){(function(t,n){var i,a={environment:"nodejs",engine:function(){if(a.isBrowser()&&"undefined"!==typeof navigator)return navigator.userAgent;var e=t.platform+"/"+t.version;return Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_POOL_ID:"us-east-1:97857d62-278f-4299-989d-cb5677f621c2",REACT_APP_REGION:"us-east-1",REACT_APP_S3_BUCKET:"ngp-app-upload-prd",REACT_APP_USER_POOL_ID:"us-east-1_GoFCuq1y7",REACT_APP_WEB_ID:"58lkvle8ereakcanjqjjnu7f0l"}).AWS_EXECUTION_ENV&&(e+=" exec-env/"+Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_POOL_ID:"us-east-1:97857d62-278f-4299-989d-cb5677f621c2",REACT_APP_REGION:"us-east-1",REACT_APP_S3_BUCKET:"ngp-app-upload-prd",REACT_APP_USER_POOL_ID:"us-east-1_GoFCuq1y7",REACT_APP_WEB_ID:"58lkvle8ereakcanjqjjnu7f0l"}).AWS_EXECUTION_ENV),e},userAgent:function(){var e=a.environment,t="aws-sdk-"+e+"/"+r(5).VERSION;return"nodejs"===e&&(t+=" "+a.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},uriEscapePath:function(e){var t=[];return a.arrayEach(e.split("/"),(function(e){t.push(a.uriEscape(e))})),t.join("/")},urlParse:function(e){return a.url.parse(e)},urlFormat:function(e){return a.url.format(e)},queryStringParse:function(e){return a.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=a.uriEscape,n=Object.keys(e).sort();return a.arrayEach(n,(function(n){var i=e[n],o=r(n),s=o+"=";if(Array.isArray(i)){var u=[];a.arrayEach(i,(function(e){u.push(r(e))})),s=o+"="+u.sort().join("&"+o+"=")}else void 0!==i&&null!==i&&(s=o+"="+r(i));t.push(s)})),t.join("&")},readFileSync:function(e){return a.isBrowser()?null:r(157).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"===typeof e)throw a.error(new Error("Cannot base64 encode number "+e));return null===e||"undefined"===typeof e?e:a.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"===typeof e)throw a.error(new Error("Cannot base64 decode number "+e));return null===e||"undefined"===typeof e?e:a.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"===typeof a.Buffer.from&&a.Buffer.from!==Uint8Array.from?a.Buffer.from(e,t):new a.Buffer(e,t)},alloc:function(e,t,r){if("number"!==typeof e)throw new Error("size passed to alloc must be a number.");if("function"===typeof a.Buffer.alloc)return a.Buffer.alloc(e,t,r);var n=new a.Buffer(e);return void 0!==t&&"function"===typeof n.fill&&n.fill(t,void 0,void 0,r),n},toStream:function(e){a.Buffer.isBuffer(e)||(e=a.buffer.toBuffer(e));var t=new a.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,i=0;for(r=0;r>>8^t[255&(r^e.readUInt8(n))]}return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"===typeof t&&(t=a.buffer.toBuffer(t)),a.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return a.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return a.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var i=a.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"===typeof t&&(t=a.buffer.toBuffer(t));var o=a.arraySliceFn(t),s=a.Buffer.isBuffer(t);if(a.isBrowser()&&"undefined"!==typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),n&&"object"===typeof t&&"function"===typeof t.on&&!s)t.on("data",(function(e){i.update(e)})),t.on("error",(function(e){n(e)})),t.on("end",(function(){n(null,i.digest(r))}));else{if(!n||!o||s||"undefined"===typeof FileReader){a.isBrowser()&&"object"===typeof t&&!s&&(t=new a.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return n&&n(null,u),u}var c=0,p=new FileReader;p.onerror=function(){n(new Error("Failed to read data."))},p.onload=function(){var e=new a.Buffer(new Uint8Array(p.result));i.update(e),c+=e.length,p._continueReading()},p._continueReading=function(){if(c>=t.size)n(null,i.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),p.readAsArrayBuffer(o.call(t,c,e))}},p._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!==typeof Promise&&(t=Promise),"function"!==typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var n=0;n=500||429===n});i&&o.retryable&&(o.retryAfter=i),u(o)}}))}),u)};i.util.defer(c)},uuid:{v4:function(){return r(37).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,n=t.service.api.operations[r].output||{};n.payload&&e.data[n.payload]&&(e.data[n.payload]=e.data[n.payload].toString())},defer:function(e){"object"===typeof t&&"function"===typeof t.nextTick?t.nextTick(e):"function"===typeof n?n(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){var r={},n={};if(Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_POOL_ID:"us-east-1:97857d62-278f-4299-989d-cb5677f621c2",REACT_APP_REGION:"us-east-1",REACT_APP_S3_BUCKET:"ngp-app-upload-prd",REACT_APP_USER_POOL_ID:"us-east-1_GoFCuq1y7",REACT_APP_WEB_ID:"58lkvle8ereakcanjqjjnu7f0l"})[a.configOptInEnv])n=e.loadFrom({isConfig:!0,filename:Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_POOL_ID:"us-east-1:97857d62-278f-4299-989d-cb5677f621c2",REACT_APP_REGION:"us-east-1",REACT_APP_S3_BUCKET:"ngp-app-upload-prd",REACT_APP_USER_POOL_ID:"us-east-1_GoFCuq1y7",REACT_APP_WEB_ID:"58lkvle8ereakcanjqjjnu7f0l"})[a.sharedConfigFileEnv]});for(var i=e.loadFrom({filename:t||Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_POOL_ID:"us-east-1:97857d62-278f-4299-989d-cb5677f621c2",REACT_APP_REGION:"us-east-1",REACT_APP_S3_BUCKET:"ngp-app-upload-prd",REACT_APP_USER_POOL_ID:"us-east-1_GoFCuq1y7",REACT_APP_WEB_ID:"58lkvle8ereakcanjqjjnu7f0l"})[a.configOptInEnv]&&Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_POOL_ID:"us-east-1:97857d62-278f-4299-989d-cb5677f621c2",REACT_APP_REGION:"us-east-1",REACT_APP_S3_BUCKET:"ngp-app-upload-prd",REACT_APP_USER_POOL_ID:"us-east-1_GoFCuq1y7",REACT_APP_WEB_ID:"58lkvle8ereakcanjqjjnu7f0l"})[a.sharedCredentialsFileEnv]}),o=0,s=Object.keys(n);o"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"},a=0;a<24;a+=1)i[112+a]="F"+(a+1);for(var o=0;o<26;o+=1){var s=o+65;i[s]=[String.fromCharCode(s+32),String.fromCharCode(s)]}var u={codes:i,getCode:function(e){return n(e)?e.keyCode||e.which||this[e.key]:this[e]},getKey:function(e){var t=n(e);if(t&&e.key)return e.key;var r=i[t?e.keyCode||e.which:e];return Array.isArray(r)&&(r=t?r[e.shiftKey?1:0]:r[0]),r},Cancel:3,Help:6,Backspace:8,Tab:9,Clear:12,Enter:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Accept:30,ModeChange:31," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,0:48,")":48,1:49,"!":49,2:50,"@":50,3:51,"#":51,4:52,$:52,5:53,"%":53,6:54,"^":54,7:55,"&":55,8:56,"*":56,9:57,"(":57,a:65,A:65,b:66,B:66,c:67,C:67,d:68,D:68,e:69,E:69,f:70,F:70,g:71,G:71,h:72,H:72,i:73,I:73,j:74,J:74,k:75,K:75,l:76,L:76,m:77,M:77,n:78,N:78,o:79,O:79,p:80,P:80,q:81,Q:81,r:82,R:82,s:83,S:83,t:84,T:84,u:85,U:85,v:86,V:86,w:87,W:87,x:88,X:88,y:89,Y:89,z:90,Z:90,OS:91,ContextMenu:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,VolumeMute:181,VolumeDown:182,VolumeUp:183,";":186,":":186,"=":187,"+":187,",":188,"<":188,"-":189,_:189,".":190,">":190,"/":191,"?":191,"`":192,"~":192,"[":219,"{":219,"\\":220,"|":220,"]":221,"}":221,"'":222,'"':222,Meta:224,AltGraph:225,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251};u.Spacebar=u[" "],u.Digit0=u[0],u.Digit1=u[1],u.Digit2=u[2],u.Digit3=u[3],u.Digit4=u[4],u.Digit5=u[5],u.Digit6=u[6],u.Digit7=u[7],u.Digit8=u[8],u.Digit9=u[9],u.Tilde=u["~"],u.GraveAccent=u["`"],u.ExclamationPoint=u["!"],u.AtSign=u["@"],u.PoundSign=u["#"],u.PercentSign=u["%"],u.Caret=u["^"],u.Ampersand=u["&"],u.PlusSign=u["+"],u.MinusSign=u["-"],u.EqualsSign=u["="],u.DivisionSign=u["/"],u.MultiplicationSign=u["*"],u.Comma=u[","],u.Decimal=u["."],u.Colon=u[":"],u.Semicolon=u[";"],u.Pipe=u["|"],u.BackSlash=u["\\"],u.QuestionMark=u["?"],u.SingleQuote=u["'"],u.DoubleQuote=u['"'],u.LeftCurlyBrace=u["{"],u.RightCurlyBrace=u["}"],u.LeftParenthesis=u["("],u.RightParenthesis=u[")"],u.LeftAngleBracket=u["<"],u.RightAngleBracket=u[">"],u.LeftSquareBracket=u["["],u.RightSquareBracket=u["]"],e.exports=u},,function(e,t,r){var n=r(360),i=r(361),a=i;a.v1=n,a.v4=i,e.exports=a},function(e,t,r){"use strict";var n=r(1),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]this._config.bufferSize)return c.debug("Exceeded analytics events buffer size"),e.handlers.reject(new Error("Exceeded the size of analytics events buffer"));var r=((t={})[e.params.event.eventId]=e,t);this._buffer.push(r)},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,r=Math.min(t,e),n=this._buffer.splice(0,r);this._putEvents(n)}},e.prototype._putEvents=function(e){return s(this,void 0,void 0,(function(){var t,r,n,i;return u(this,(function(a){switch(a.label){case 0:t=this._bufferToMap(e),r=this._generateBatchEventParams(t),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._client.putEvents(r).promise()];case 2:return n=a.sent(),this._processPutEventsSuccessResponse(n,t),[3,4];case 3:return i=a.sent(),[2,this._handlePutEventsFailure(i,t)];case 4:return[2]}}))}))},e.prototype._generateBatchEventParams=function(e){var t={ApplicationId:"",EventsRequest:{BatchItem:{}}};return Object.values(e).forEach((function(e){var r=e.params,n=r.event,i=r.timestamp,a=r.config,o=n.name,s=n.attributes,u=n.metrics,c=n.eventId,p=n.session,l=a.appId,m=a.endpointId,d=t.EventsRequest.BatchItem;t.ApplicationId=t.ApplicationId||l,d[m]||(d[m]={Endpoint:{},Events:{}}),d[m].Events[c]={EventType:o,Timestamp:new Date(i).toISOString(),Attributes:s,Metrics:u,Session:p}})),t},e.prototype._handlePutEventsFailure=function(e,t){c.debug("_putEvents Failed:",e);var r=e.statusCode;if(p.includes(r)){var n=Object.values(t);this._retry(n)}else;},e.prototype._processPutEventsSuccessResponse=function(e,t){var r=e.EventsResponse.Results,n=[];Object.entries(r).forEach((function(e){var r=e[0],i=e[1].EventsItemResponse;Object.entries(i).forEach((function(e){var i,a,o=e[0],s=e[1],u=s.StatusCode,m=s.Message,d=t[o],y={EventsResponse:{Results:(i={},i[r]={EventsItemResponse:(a={},a[o]={StatusCode:u,Message:m},a)},i)}};if(l.includes(u))d.handlers.resolve(y);else{if(!p.includes(u)){var h=d.params.event.name;return c.error("event "+o+" : "+h+" failed with error: "+m),d.handlers.reject(y)}n.push(d)}}))})),n.length&&this._retry(n)},e.prototype._retry=function(e){var t,r=[];e.forEach((function(e){var t,n=e.params,i=n.event,a=i.eventId,o=i.name;if(n.resendLimit-- >0)return c.debug("resending event "+a+" : "+o+" with "+n.resendLimit+" retry attempts remaining"),void r.push((t={},t[a]=e,t));c.debug("no retry attempts remaining for event "+a+" : "+o)})),(t=this._buffer).unshift.apply(t,r)},e.prototype._bufferToMap=function(e){return e.reduce((function(e,t){var r=Object.entries(t)[0],n=r[0],i=r[1];return e[n]=i,e}),{})},e}(),d=function(){return(d=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0?(S.debug("resending event "+e.eventName+" with "+e.resendLimit+" retry times left"),this._pinpointPutEvents(e,t)):S.debug("retry times used up for event "+e.eventName)},e.prototype._updateEndpoint=function(e){return y(this,void 0,void 0,(function(){var t,r,i,a,o,s,u,c,p,l,m;return h(this,(function(d){switch(d.label){case 0:t=e.params,r=e.handlers,i=t.config,a=t.event,o=i.appId,s=i.endpointId,u=this._endpointRequest(i,n.j.transferKeyToLowerCase(a,[],["attributes","userAttributes","Attributes","UserAttributes"])),c={ApplicationId:o,EndpointId:s,EndpointRequest:u},d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.pinpointClient.updateEndpoint(c).promise()];case 2:return p=d.sent(),S.debug("updateEndpoint success",p),this._endpointGenerating=!1,this._resumeBuffer(),r.resolve(p),[2];case 3:return l=d.sent(),m={err:l,update_params:c,endpointObject:e},[2,this._handleEndpointUpdateFailure(m)];case 4:return[2]}}))}))},e.prototype._handleEndpointUpdateFailure=function(e){return y(this,void 0,void 0,(function(){var t,r,n;return h(this,(function(i){switch(t=e.err,r=e.endpointObject,n=t.statusCode,S.debug("updateEndpoint failed",t),n){case 400:return[2,this._handleEndpointUpdateBadRequest(e)];case 403:return[2,this._handleEndpointUpdateForbidden(e)];default:if(v.includes(n))return!0,[2,this._retryEndpointUpdate(r,!0)];r.handlers.reject(t)}return[2]}))}))},e.prototype._handleEndpointUpdateBadRequest=function(e){return y(this,void 0,void 0,(function(){var t,r,n,i,a,o,s;return h(this,(function(u){switch(u.label){case 0:if(t=e.err,r=e.update_params,n=e.endpointObject,i=t.message,a=r.ApplicationId,o=r.EndpointRequest,!String(i).startsWith("Exceeded maximum endpoint per user count"))return[2,n.handlers.reject(t)];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this._removeUnusedEndpoints(a,o.User.UserId)];case 2:return u.sent(),S.debug("Removed unused endpoints successfully"),this._retryEndpointUpdate(n),[3,4];case 3:return s=u.sent(),S.warn("Failed to remove unused endpoints with error: "+s),S.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,n.handlers.reject(s)];case 4:return[2]}}))}))},e.prototype._handleEndpointUpdateForbidden=function(e){var t=e.err,r=e.endpointObject,n=t.code,i=t.retryable;if("ExpiredTokenException"!==n&&!i)return r.handlers.reject(t);this._retryEndpointUpdate(r)},e.prototype._retryEndpointUpdate=function(e,t){void 0===t&&(t=!1),S.debug("_retryEndpointUpdate",e);var r=e.params;if(r.resendLimit-- >0)return S.debug("resending endpoint update "+r.event.eventId+" with "+r.resendLimit+" retry attempts remaining"),void this._endpointBuffer.unshift(e);S.warn("resending endpoint update "+r.event.eventId+" failed after "+r.config.resendLimit+" attempts"),this._endpointGenerating&&S.error("Initial endpoint update failed. ")},e.prototype._removeUnusedEndpoints=function(e,t){return y(this,void 0,void 0,(function(){var r=this;return h(this,(function(n){return[2,new Promise((function(n,i){r.pinpointClient.getUserEndpoints({ApplicationId:e,UserId:t},(function(a,o){if(a)return S.debug("Failed to get endpoints associated with the userId: "+t+" with error",a),i(a);var s=o.EndpointsResponse.Item;S.debug("get endpoints associated with the userId: "+t+" with data",s);for(var u=s[0],c=1;c0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0},e}(),me=r(174),de=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(t){a(t)}}function s(e){try{u(n.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},ye=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&this._config.flushSize<=_e?this._config.flushSize:xe,this._config.flushInterval=this._config.flushInterval||we,this._sessionManager=new Ae,Object(ke.isEmpty)(this._config.trackingId)||(this._sessionInfo=this._sessionManager.retrieveSessionInfo(this._config.trackingId)),this._isBrowser=n.j.browserOrNode().isBrowser,this._setupTimer()}e.prototype._setupTimer=function(){this._timer&&clearInterval(this._timer);var e=this._config,t=(e.flushSize,e.flushInterval),r=this;this._timer=setInterval((function(){r._sendFromBuffer()}),t)},e.prototype.record=function(e){return Re(this,void 0,void 0,(function(){var t,r,n,i,a;return Pe(this,(function(o){switch(o.label){case 0:return[4,this._getCredentials()];case 1:return(t=o.sent())?(Object.assign(e,{config:this._config,credentials:t,sentAt:(new Date).getTime()/1e3}),r=e.event,n=r.eventType,i=r.properties,"Identify"===n?(this._sessionManager.updateSessionInfo(i&&i.userId?i.userId:"",this._sessionInfo),[2]):(Object(ke.isEmpty)(e.event.userId)||this._sessionManager.updateSessionInfo(e.event.userId,this._sessionInfo),a=this.generateRequestParams(e,this._sessionInfo),"MediaAutoTrack"!==n?[3,7]:this._isBrowser?Object(ke.isEmpty)(Object(ke.get)(a,"eventData.properties.domElementId",null))?[3,3]:[4,this.isElementFullyLoaded(this.loadElement,a.eventData.properties.domElementId,500,5)]:[3,5])):[2,Promise.resolve(!1)];case 2:return o.sent()?new De(a,this):Ee.debug("Cannot find the media element."),[3,4];case 3:Ee.debug("Missing domElementId field in 'properties' for MediaAutoTrack event type."),o.label=4;case 4:return[3,6];case 5:Ee.debug("MediaAutoTrack only for browser"),o.label=6;case 6:return[2];case 7:return[2,this.putToBuffer(a)]}}))}))},e.prototype.loadElement=function(e){return new Promise((function(t,r){return document.getElementById(e)&&document.getElementById(e).clientHeight?t(!0):r(!0)}))},e.prototype.isElementFullyLoaded=function(e,t,r,n){var i=this;return new Promise((function(a,o){return e(t).then(a).catch((function(s){return n-1>0?(u=r,new Promise((function(e){return setTimeout(e,u)}))).then(i.isElementFullyLoaded.bind(null,e,t,r,n-1)).then(a).catch(o):o(s);var u}))}))},e.prototype.getCategory=function(){return"Analytics"},e.prototype.getProviderName=function(){return"AmazonPersonalize"},e.prototype.configure=function(e){Ee.debug("configure Analytics",e);var t=e||{};return this._config=Object.assign({},this._config,t),Object(ke.isEmpty)(this._config.trackingId)||(this._sessionInfo=this._sessionManager.retrieveSessionInfo(this._config.trackingId)),this._setupTimer(),this._config},e.prototype.generateRequestParams=function(e,t){var r={},n=e.event,i=n.eventType,a=n.properties;return r.eventData={eventType:i,properties:a},r.sessionInfo=t,r.sentAt=e.sentAt,r.credentials=e.credentials,r.config=e.config,r},e.prototype._sendEvents=function(e){var t=e.length;if(0!==t){var r=e[0],n=r.config,i=r.credentials,a=r.sessionInfo;if(!this._init(n,i))return!1;if(t>0){for(var o=[],s=0;s0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]>>2]>>>24-a%4*8&255;t[n+a>>>2]|=o<<24-(n+a)%4*8}else for(a=0;a>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){t=t;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new o.init(r,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new o.init(r,t)}},p=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},l=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*u,i);if(u){for(var p=0;pa?1*n:0})),!0},t.objectLessAttributes=function(e,t){var r=Object.assign({},e);return t&&("string"===typeof t?delete r[t]:t.forEach((function(e){delete r[e]}))),r},t.filenameToContentType=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),i=r.filter((function(e){return n.endsWith("."+e.ext)}));return i.length>0?i[0].type:t},t.isTextFile=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},t.generateRandomString=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r=32;r>0;r-=1)e+=t[Math.floor(Math.random()*t.length)];return e},t.makeQuerablePromise=function(e){if(e.isResolved)return e;var t=!0,r=!1,n=!1,i=e.then((function(e){return n=!0,t=!1,e}),(function(e){throw r=!0,t=!1,e}));return i.isFullfilled=function(){return n},i.isPending=function(){return t},i.isRejected=function(){return r},i},t.browserOrNode=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof e&&null!=e.versions&&null!=e.versions.node}},t.transferKeyToLowerCase=function(e,r,n){if(void 0===r&&(r=[]),void 0===n&&(n=[]),!t.isStrictObject(e))return e;var i={};for(var a in e){if(e.hasOwnProperty(a))i[r.includes(a)?a:a[0].toLowerCase()+a.slice(1)]=n.includes(a)?e[a]:t.transferKeyToLowerCase(e[a],r,n)}return i},t.transferKeyToUpperCase=function(e,r,n){if(void 0===r&&(r=[]),void 0===n&&(n=[]),!t.isStrictObject(e))return e;var i={};for(var a in e){if(e.hasOwnProperty(a))i[r.includes(a)?a:a[0].toUpperCase()+a.slice(1)]=n.includes(a)?e[a]:t.transferKeyToUpperCase(e[a],r,n)}return i},t.isStrictObject=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},t}();t.a=n}).call(this,r(66))},function(e,t,r){"use strict";var n=r(93),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a={};function o(e){return Boolean(e&&"string"===typeof e.kind)}function s(e,t,r){var n=e[t];if(n){if(!r&&"function"===typeof n)return n;var i=r?n.leave:n.enter;if("function"===typeof i)return i}else{var a=r?e.leave:e.enter;if(a){if("function"===typeof a)return a;var o=a[t];if("function"===typeof o)return o}}}function u(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,n=void 0,u=Array.isArray(e),c=[e],p=-1,l=[],m=void 0,d=void 0,y=void 0,h=[],f=[],b=e;do{var g=++p===c.length,S=g&&0!==l.length;if(g){if(d=0===f.length?void 0:h[h.length-1],m=y,y=f.pop(),S){if(u)m=m.slice();else{var v={};for(var I in m)m.hasOwnProperty(I)&&(v[I]=m[I]);m=v}for(var N=0,C=0;C0||b(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||b(0,"column in locationOffset is 1-indexed and must be positive")};function I(e,t,r){return new n.a("Syntax Error: ".concat(r),void 0,e,[t])}function N(e){for(var t=e.split(/\r\n|[\n\r]/g),r=null,n=1;n0&&T(t[0]);)t.shift();for(;t.length>0&&T(t[t.length-1]);)t.pop();return t.join("\n")}function C(e){for(var t=0;t",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function P(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}var E=String.prototype.charCodeAt,x=String.prototype.slice;function _(e,t,r,n,i,a,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=a,this.next=null}function w(e){return isNaN(e)?R.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function q(e,t){var r=e.source,n=r.body,i=n.length,a=function(e,t,r){var n=e.length,i=t;for(;i=i)return new _(R.EOF,i,i,o,s,t);var u=E.call(n,a);switch(u){case 33:return new _(R.BANG,a,a+1,o,s,t);case 35:return function(e,t,r,n,i){var a,o=e.body,s=t;do{a=E.call(o,++s)}while(null!==a&&(a>31||9===a));return new _(R.COMMENT,t,s,r,n,i,x.call(o,t+1,s))}(r,a,o,s,t);case 36:return new _(R.DOLLAR,a,a+1,o,s,t);case 38:return new _(R.AMP,a,a+1,o,s,t);case 40:return new _(R.PAREN_L,a,a+1,o,s,t);case 41:return new _(R.PAREN_R,a,a+1,o,s,t);case 46:if(46===E.call(n,a+1)&&46===E.call(n,a+2))return new _(R.SPREAD,a,a+3,o,s,t);break;case 58:return new _(R.COLON,a,a+1,o,s,t);case 61:return new _(R.EQUALS,a,a+1,o,s,t);case 64:return new _(R.AT,a,a+1,o,s,t);case 91:return new _(R.BRACKET_L,a,a+1,o,s,t);case 93:return new _(R.BRACKET_R,a,a+1,o,s,t);case 123:return new _(R.BRACE_L,a,a+1,o,s,t);case 124:return new _(R.PIPE,a,a+1,o,s,t);case 125:return new _(R.BRACE_R,a,a+1,o,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){var a=e.body,o=a.length,s=t+1,u=0;for(;s!==o&&null!==(u=E.call(a,s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new _(R.NAME,t,s,r,n,i,x.call(a,t,s))}(r,a,o,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,a){var o=e.body,s=r,u=t,c=!1;45===s&&(s=E.call(o,++u));if(48===s){if((s=E.call(o,++u))>=48&&s<=57)throw I(e,u,"Invalid number, unexpected digit after 0: ".concat(w(s),"."))}else u=M(e,u,s),s=E.call(o,u);46===s&&(c=!0,s=E.call(o,++u),u=M(e,u,s),s=E.call(o,u));69!==s&&101!==s||(c=!0,43!==(s=E.call(o,++u))&&45!==s||(s=E.call(o,++u)),u=M(e,u,s));return new _(c?R.FLOAT:R.INT,t,u,n,i,a,x.call(o,t,u))}(r,a,u,o,s,t);case 34:return 34===E.call(n,a+1)&&34===E.call(n,a+2)?function(e,t,r,n,i){var a=e.body,o=t+3,s=o,u=0,c="";for(;o=48&&a<=57){do{a=E.call(n,++i)}while(a>=48&&a<=57);return i}throw I(e,i,"Invalid number, expected digit but got: ".concat(w(a),"."))}function O(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}_.prototype.toJSON=_.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};var L=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),B=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function U(e,t){var r="string"===typeof e?new v(e):e;if(!(r instanceof v))throw new TypeError("Must provide Source. Received: ".concat(f(r)));return function(e){var t=e.token;return{kind:L.DOCUMENT,definitions:xe(e,R.SOF,F,R.EOF),loc:Ce(e,t)}}(k(r,t||{}))}function G(e){var t=De(e,R.NAME);return{kind:L.NAME,value:t.value,loc:Ce(e,t)}}function F(e){if(ke(e,R.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return V(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return ce(e);case"extend":return function(e){var t=e.lookahead();if(t.kind===R.NAME)switch(t.value){case"schema":return function(e){var t=e.token;Re(e,"extend"),Re(e,"schema");var r=ae(e,!0),n=ke(e,R.BRACE_L)?xe(e,R.BRACE_L,me,R.BRACE_R):[];if(0===r.length&&0===n.length)throw Pe(e);return{kind:L.SCHEMA_EXTENSION,directives:r,operationTypes:n,loc:Ce(e,t)}}(e);case"scalar":return function(e){var t=e.token;Re(e,"extend"),Re(e,"scalar");var r=G(e),n=ae(e,!0);if(0===n.length)throw Pe(e);return{kind:L.SCALAR_TYPE_EXTENSION,name:r,directives:n,loc:Ce(e,t)}}(e);case"type":return function(e){var t=e.token;Re(e,"extend"),Re(e,"type");var r=G(e),n=de(e),i=ae(e,!0),a=ye(e);if(0===n.length&&0===i.length&&0===a.length)throw Pe(e);return{kind:L.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a,loc:Ce(e,t)}}(e);case"interface":return function(e){var t=e.token;Re(e,"extend"),Re(e,"interface");var r=G(e),n=ae(e,!0),i=ye(e);if(0===n.length&&0===i.length)throw Pe(e);return{kind:L.INTERFACE_TYPE_EXTENSION,name:r,directives:n,fields:i,loc:Ce(e,t)}}(e);case"union":return function(e){var t=e.token;Re(e,"extend"),Re(e,"union");var r=G(e),n=ae(e,!0),i=ge(e);if(0===n.length&&0===i.length)throw Pe(e);return{kind:L.UNION_TYPE_EXTENSION,name:r,directives:n,types:i,loc:Ce(e,t)}}(e);case"enum":return function(e){var t=e.token;Re(e,"extend"),Re(e,"enum");var r=G(e),n=ae(e,!0),i=Se(e);if(0===n.length&&0===i.length)throw Pe(e);return{kind:L.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i,loc:Ce(e,t)}}(e);case"input":return function(e){var t=e.token;Re(e,"extend"),Re(e,"input");var r=G(e),n=ae(e,!0),i=Ie(e);if(0===n.length&&0===i.length)throw Pe(e);return{kind:L.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i,loc:Ce(e,t)}}(e)}throw Pe(e,t)}(e)}else{if(ke(e,R.BRACE_L))return V(e);if(pe(e))return ce(e)}throw Pe(e)}function V(e){if(ke(e,R.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return j(e);case"fragment":return function(e){var t=e.token;if(Re(e,"fragment"),e.options.experimentalFragmentVariables)return{kind:L.FRAGMENT_DEFINITION,name:X(e),variableDefinitions:K(e),typeCondition:(Re(e,"on"),ue(e)),directives:ae(e,!1),selectionSet:J(e),loc:Ce(e,t)};return{kind:L.FRAGMENT_DEFINITION,name:X(e),typeCondition:(Re(e,"on"),ue(e)),directives:ae(e,!1),selectionSet:J(e),loc:Ce(e,t)}}(e)}else if(ke(e,R.BRACE_L))return j(e);throw Pe(e)}function j(e){var t=e.token;if(ke(e,R.BRACE_L))return{kind:L.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:J(e),loc:Ce(e,t)};var r,n=z(e);return ke(e,R.NAME)&&(r=G(e)),{kind:L.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:K(e),directives:ae(e,!1),selectionSet:J(e),loc:Ce(e,t)}}function z(e){var t=De(e,R.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw Pe(e,t)}function K(e){return ke(e,R.PAREN_L)?xe(e,R.PAREN_L,W,R.PAREN_R):[]}function W(e){var t=e.token;return e.options.experimentalVariableDefinitionDirectives?{kind:L.VARIABLE_DEFINITION,variable:H(e),type:(De(e,R.COLON),se(e)),defaultValue:Ae(e,R.EQUALS)?ee(e,!0):void 0,directives:ae(e,!0),loc:Ce(e,t)}:{kind:L.VARIABLE_DEFINITION,variable:H(e),type:(De(e,R.COLON),se(e)),defaultValue:Ae(e,R.EQUALS)?ee(e,!0):void 0,loc:Ce(e,t)}}function H(e){var t=e.token;return De(e,R.DOLLAR),{kind:L.VARIABLE,name:G(e),loc:Ce(e,t)}}function J(e){var t=e.token;return{kind:L.SELECTION_SET,selections:xe(e,R.BRACE_L,Q,R.BRACE_R),loc:Ce(e,t)}}function Q(e){return ke(e,R.SPREAD)?function(e){var t,r=e.token;if(De(e,R.SPREAD),ke(e,R.NAME)&&"on"!==e.token.value)return{kind:L.FRAGMENT_SPREAD,name:X(e),directives:ae(e,!1),loc:Ce(e,r)};"on"===e.token.value&&(e.advance(),t=ue(e));return{kind:L.INLINE_FRAGMENT,typeCondition:t,directives:ae(e,!1),selectionSet:J(e),loc:Ce(e,r)}}(e):function(e){var t,r,n=e.token,i=G(e);Ae(e,R.COLON)?(t=i,r=G(e)):r=i;return{kind:L.FIELD,alias:t,name:r,arguments:Z(e,!1),directives:ae(e,!1),selectionSet:ke(e,R.BRACE_L)?J(e):void 0,loc:Ce(e,n)}}(e)}function Z(e,t){var r=t?$:Y;return ke(e,R.PAREN_L)?xe(e,R.PAREN_L,r,R.PAREN_R):[]}function Y(e){var t=e.token;return{kind:L.ARGUMENT,name:G(e),value:(De(e,R.COLON),ee(e,!1)),loc:Ce(e,t)}}function $(e){var t=e.token;return{kind:L.ARGUMENT,name:G(e),value:(De(e,R.COLON),re(e)),loc:Ce(e,t)}}function X(e){if("on"===e.token.value)throw Pe(e);return G(e)}function ee(e,t){var r=e.token;switch(r.kind){case R.BRACKET_L:return function(e,t){var r=e.token,n=t?re:ne;return{kind:L.LIST,values:Ee(e,R.BRACKET_L,n,R.BRACKET_R),loc:Ce(e,r)}}(e,t);case R.BRACE_L:return function(e,t){var r=e.token;De(e,R.BRACE_L);var n=[];for(;!Ae(e,R.BRACE_R);)n.push(ie(e,t));return{kind:L.OBJECT,fields:n,loc:Ce(e,r)}}(e,t);case R.INT:return e.advance(),{kind:L.INT,value:r.value,loc:Ce(e,r)};case R.FLOAT:return e.advance(),{kind:L.FLOAT,value:r.value,loc:Ce(e,r)};case R.STRING:case R.BLOCK_STRING:return te(e);case R.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:L.BOOLEAN,value:"true"===r.value,loc:Ce(e,r)}):"null"===r.value?(e.advance(),{kind:L.NULL,loc:Ce(e,r)}):(e.advance(),{kind:L.ENUM,value:r.value,loc:Ce(e,r)});case R.DOLLAR:if(!t)return H(e)}throw Pe(e)}function te(e){var t=e.token;return e.advance(),{kind:L.STRING,value:t.value,block:t.kind===R.BLOCK_STRING,loc:Ce(e,t)}}function re(e){return ee(e,!0)}function ne(e){return ee(e,!1)}function ie(e,t){var r=e.token;return{kind:L.OBJECT_FIELD,name:G(e),value:(De(e,R.COLON),ee(e,t)),loc:Ce(e,r)}}function ae(e,t){for(var r=[];ke(e,R.AT);)r.push(oe(e,t));return r}function oe(e,t){var r=e.token;return De(e,R.AT),{kind:L.DIRECTIVE,name:G(e),arguments:Z(e,t),loc:Ce(e,r)}}function se(e){var t,r=e.token;return Ae(e,R.BRACKET_L)?(t=se(e),De(e,R.BRACKET_R),t={kind:L.LIST_TYPE,type:t,loc:Ce(e,r)}):t=ue(e),Ae(e,R.BANG)?{kind:L.NON_NULL_TYPE,type:t,loc:Ce(e,r)}:t}function ue(e){var t=e.token;return{kind:L.NAMED_TYPE,name:G(e),loc:Ce(e,t)}}function ce(e){var t=pe(e)?e.lookahead():e.token;if(t.kind===R.NAME)switch(t.value){case"schema":return function(e){var t=e.token;Re(e,"schema");var r=ae(e,!0),n=xe(e,R.BRACE_L,me,R.BRACE_R);return{kind:L.SCHEMA_DEFINITION,directives:r,operationTypes:n,loc:Ce(e,t)}}(e);case"scalar":return function(e){var t=e.token,r=le(e);Re(e,"scalar");var n=G(e),i=ae(e,!0);return{kind:L.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i,loc:Ce(e,t)}}(e);case"type":return function(e){var t=e.token,r=le(e);Re(e,"type");var n=G(e),i=de(e),a=ae(e,!0),o=ye(e);return{kind:L.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o,loc:Ce(e,t)}}(e);case"interface":return function(e){var t=e.token,r=le(e);Re(e,"interface");var n=G(e),i=ae(e,!0),a=ye(e);return{kind:L.INTERFACE_TYPE_DEFINITION,description:r,name:n,directives:i,fields:a,loc:Ce(e,t)}}(e);case"union":return function(e){var t=e.token,r=le(e);Re(e,"union");var n=G(e),i=ae(e,!0),a=ge(e);return{kind:L.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:a,loc:Ce(e,t)}}(e);case"enum":return function(e){var t=e.token,r=le(e);Re(e,"enum");var n=G(e),i=ae(e,!0),a=Se(e);return{kind:L.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:a,loc:Ce(e,t)}}(e);case"input":return function(e){var t=e.token,r=le(e);Re(e,"input");var n=G(e),i=ae(e,!0),a=Ie(e);return{kind:L.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:a,loc:Ce(e,t)}}(e);case"directive":return function(e){var t=e.token,r=le(e);Re(e,"directive"),De(e,R.AT);var n=G(e),i=fe(e);Re(e,"on");var a=function(e){Ae(e,R.PIPE);var t=[];do{t.push(Ne(e))}while(Ae(e,R.PIPE));return t}(e);return{kind:L.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,locations:a,loc:Ce(e,t)}}(e)}throw Pe(e,t)}function pe(e){return ke(e,R.STRING)||ke(e,R.BLOCK_STRING)}function le(e){if(pe(e))return te(e)}function me(e){var t=e.token,r=z(e);De(e,R.COLON);var n=ue(e);return{kind:L.OPERATION_TYPE_DEFINITION,operation:r,type:n,loc:Ce(e,t)}}function de(e){var t=[];if("implements"===e.token.value){e.advance(),Ae(e,R.AMP);do{t.push(ue(e))}while(Ae(e,R.AMP)||e.options.allowLegacySDLImplementsInterfaces&&ke(e,R.NAME))}return t}function ye(e){return e.options.allowLegacySDLEmptyFields&&ke(e,R.BRACE_L)&&e.lookahead().kind===R.BRACE_R?(e.advance(),e.advance(),[]):ke(e,R.BRACE_L)?xe(e,R.BRACE_L,he,R.BRACE_R):[]}function he(e){var t=e.token,r=le(e),n=G(e),i=fe(e);De(e,R.COLON);var a=se(e),o=ae(e,!0);return{kind:L.FIELD_DEFINITION,description:r,name:n,arguments:i,type:a,directives:o,loc:Ce(e,t)}}function fe(e){return ke(e,R.PAREN_L)?xe(e,R.PAREN_L,be,R.PAREN_R):[]}function be(e){var t=e.token,r=le(e),n=G(e);De(e,R.COLON);var i,a=se(e);Ae(e,R.EQUALS)&&(i=re(e));var o=ae(e,!0);return{kind:L.INPUT_VALUE_DEFINITION,description:r,name:n,type:a,defaultValue:i,directives:o,loc:Ce(e,t)}}function ge(e){var t=[];if(Ae(e,R.EQUALS)){Ae(e,R.PIPE);do{t.push(ue(e))}while(Ae(e,R.PIPE))}return t}function Se(e){return ke(e,R.BRACE_L)?xe(e,R.BRACE_L,ve,R.BRACE_R):[]}function ve(e){var t=e.token,r=le(e),n=G(e),i=ae(e,!0);return{kind:L.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i,loc:Ce(e,t)}}function Ie(e){return ke(e,R.BRACE_L)?xe(e,R.BRACE_L,be,R.BRACE_R):[]}function Ne(e){var t=e.token,r=G(e);if(B.hasOwnProperty(r.value))return r;throw Pe(e,t)}function Ce(e,t){if(!e.options.noLocation)return new Te(t,e.lastToken,e.source)}function Te(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function ke(e,t){return e.token.kind===t}function Ae(e,t){var r=e.token.kind===t;return r&&e.advance(),r}function De(e,t){var r=e.token;if(r.kind===t)return e.advance(),r;throw I(e.source,r.start,"Expected ".concat(t,", found ").concat(P(r)))}function Re(e,t){var r=e.token;if(r.kind===R.NAME&&r.value===t)return e.advance(),r;throw I(e.source,r.start,'Expected "'.concat(t,'", found ').concat(P(r)))}function Pe(e,t){var r=t||e.token;return I(e.source,r.start,"Unexpected ".concat(P(r)))}function Ee(e,t,r,n){De(e,t);for(var i=[];!Ae(e,n);)i.push(r(e));return i}function xe(e,t,r,n){De(e,t);for(var i=[r(e)];!Ae(e,n);)i.push(r(e));return i}Te.prototype.toJSON=Te.prototype.inspect=function(){return{start:this.start,end:this.end}};var _e=r(1),we=r(114),qe=r.n(we),Me=function(){return(Me=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=n;if("+"!==o&&o!==s)return!1}return n===i.length})(n,e)&&r.push(t)}));var n=JSON.parse(t);"object"===typeof n&&(n[S]=e),r.forEach((function(e){e.forEach((function(e){return e.next(n)}))}))}catch(i){b.warn("Error handling message",i,t)}},t.prototype.subscribe=function(e,t){var r=this;void 0===t&&(t={});var n=[].concat(e);return b.debug("Subscribing to topic(s)",n.join(",")),new s((function(e){var i;n.forEach((function(t){var n=r._topicObservers.get(t);n||(n=new Set,r._topicObservers.set(t,n)),n.add(e)}));var a=t.clientId,o=void 0===a?r.clientId:a,s=r._clientIdObservers.get(o);return s||(s=new Set),s.add(e),r._clientIdObservers.set(o,s),y(r,void 0,void 0,(function(){var r,a,s,u;return h(this,(function(c){switch(c.label){case 0:return void 0!==(r=t.url)?[3,2]:[4,this.endpoint];case 1:return s=c.sent(),[3,3];case 2:s=r,c.label=3;case 3:a=s,c.label=4;case 4:return c.trys.push([4,6,,7]),[4,this.connect(o,{url:a})];case 5:return i=c.sent(),n.forEach((function(e){i.subscribe(e)})),[3,7];case 6:return u=c.sent(),e.error(u),[3,7];case 7:return[2]}}))})),function(){return b.debug("Unsubscribing from topic(s)",n.join(",")),i&&(r._clientIdObservers.get(o).delete(e),n.forEach((function(e){i.isConnected()&&i.unsubscribe(e);var t=r._topicObservers.get(e)||new Set;t.forEach((function(e){return e.complete()})),t.clear()})),0===r._clientIdObservers.get(o).size&&(r.disconnect(o),r._clientIdObservers.delete(o))),null}}))},t}(c.a),I=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),N=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(t){a(t)}}function s(e){try{u(n.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},C=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]-1}));if(n){var i=n.client,a=n.url;e[i]||(e[i]={url:a,topics:new Set}),e[i].topics.add(t)}return e}),{})),[4,Promise.all(s.map((function(e){var t=e[0],r=e[1],i=r.url,a=r.topics;return N(u,void 0,void 0,(function(){var e,r,o=this;return C(this,(function(s){switch(s.label){case 0:e=null,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.connect(t,{clientId:t,url:i})];case 2:return e=s.sent(),[3,4];case 3:return r=s.sent(),n.error({message:"Failed to connect",error:r}),n.complete(),[2,void 0];case 4:return a.forEach((function(t){e.isConnected()&&(e.subscribe(t),o._topicClient.set(t,e))})),[2,e]}}))}))})))];case 1:return c.sent(),[2]}}))})),function(){A.debug("Unsubscribing from topic(s)",i.join(",")),i.forEach((function(e){var t=r._topicClient.get(e);t&&t.isConnected()&&(t.unsubscribe(e),r._topicClient.delete(e),Array.from(r._topicClient.values()).some((function(e){return e===t}))||r.disconnect(t.clientId)),r._topicObservers.delete(e)}))}}));return s.from(n).map((function(e){var t=r.getTopicForValue(e),n=r._topicAlias.get(t);return e.data=Object.entries(e.data).reduce((function(e,t){var r=t[0],i=t[1];return e[n||r]=i,e}),{}),e}))},t}(v),R=r(228),P=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),E=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(t){a(t)}}function s(e){try{u(n.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},x=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]",e),null):t},e.prototype.removePluggable=function(e){this._convertPluggables=this._convertPluggables.filter((function(t){return t.getProviderName()!==e})),this._identifyPluggables=this._identifyPluggables.filter((function(t){return t.getProviderName()!==e})),this._interpretPluggables=this._interpretPluggables.filter((function(t){return t.getProviderName()!==e}))},e.prototype.configure=function(e){var t=this,r=e?e.predictions||e:{};r=z(z({},r),e),this._options=Object.assign({},this._options,r),W.debug("configure Predictions",this._options),this.getAllProviders().forEach((function(e){return t.configurePluggable(e)}))},e.prototype.interpret=function(e,t){return this.getPluggableToExecute(this._interpretPluggables,t).interpret(e)},e.prototype.convert=function(e,t){return this.getPluggableToExecute(this._convertPluggables,t).convert(e)},e.prototype.identify=function(e,t){return this.getPluggableToExecute(this._identifyPluggables,t).identify(e)},e.prototype.getPluggableToExecute=function(e,t){if(t&&t.providerName)return K(e).find((function(e){return e.getProviderName()===t.providerName}));if(1===e.length)return e[0];throw new Error("More than one or no providers are configured, Either specify a provider name or configure exactly one provider")},e.prototype.getAllProviders=function(){return K(this._convertPluggables,this._identifyPluggables,this._interpretPluggables)},e.prototype.configurePluggable=function(e){var t=Object.assign({},this._options.predictions,this._options[e.getCategory().toLowerCase()]);e.configure(t)},e.prototype.implementsConvertPluggable=function(e){return e&&"function"===typeof e.convert},e.prototype.implementsIdentifyPluggable=function(e){return e&&"function"===typeof e.identify},e.prototype.implementsInterpretPluggable=function(e){return e&&"function"===typeof e.interpret},e}(),J=r(229),Q=r(76),Z=r(115),Y=r(40),$=r(277);function X(e,t){if(e){var r={};return(t||Object.keys(e)).forEach((function(t){var n;if(e.hasOwnProperty(t)){var i=t.charAt(0).toLowerCase()+t.substr(1);Object.assign(r,((n={})[i]=e[t],n))}})),r}}function ee(e,t){if(e)return e.map((function(e){return X(e,t)}))}function te(e){return new Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(n.result)},n.onerror=function(e){r(e)};try{n.readAsArrayBuffer(e)}catch(i){r(i)}}))}function re(e){if(e)return X(e.BoundingBox)}function ne(e){if(e)return ee(e.Polygon)}function ie(e){var t={text:{fullText:"",words:[],lines:[],linesDetailed:[]}};if(0===e.length)return t;var r=Array(),n=Array(),i={};if(e.forEach((function(e){switch(e.BlockType){case"LINE":t.text.lines.push(e.Text),t.text.linesDetailed.push({text:e.Text,polygon:ne(e.Geometry),boundingBox:re(e.Geometry),page:e.Page});break;case"WORD":t.text.fullText+=e.Text+" ",t.text.words.push({text:e.Text,polygon:ne(e.Geometry),boundingBox:re(e.Geometry)}),i[e.Id]=e;break;case"SELECTION_ELEMENT":var a="SELECTED"===e.SelectionStatus;t.text.selections||(t.text.selections=[]),t.text.selections.push({selected:a,polygon:ne(e.Geometry),boundingBox:re(e.Geometry)}),i[e.Id]=e;break;case"TABLE":r.push(e);break;case"KEY_VALUE_SET":n.push(e),i[e.Id]=e;break;default:i[e.Id]=e}})),t.text.fullText=t.text.fullText.substr(0,t.text.fullText.length-1),0!==r.length){var a=Array();r.forEach((function(e){a.push(function(e,t){var r;r=[],e.Relationships.forEach((function(e){e.Ids.forEach((function(e){var n=t[e],i=n.RowIndex-1,a=n.ColumnIndex-1,o=ae(n,t),s={text:o.text,boundingBox:re(n.Geometry),polygon:ne(n.Geometry),selected:o.selected,rowSpan:n.RowSpan,columnSpan:n.ColumnSpan};r[i]||(r[i]=[]),r[i][a]=s}))}));var n=r.length,i=r[0].length;return{size:{rows:n,columns:i},table:r,boundingBox:re(e.Geometry),polygon:ne(e.Geometry)}}(e,i))})),t.text.tables=a}if(0!==n.length){var o=Array();n.forEach((function(e){-1!==e.EntityTypes.indexOf("KEY")&&o.push(function(e,t){var r,n="",i="";return e.Relationships.forEach((function(a){if("CHILD"===a.Type){var o=ae(e,t);n=o.text}else"VALUE"===a.Type&&a.Ids.forEach((function(e){var n=ae(t[e],t);i=n.text,null!=n.selected&&(r=n.selected)}))})),{key:n,value:{text:i,selected:r},polygon:ne(e.Geometry),boundingBox:re(e.Geometry)}}(e,i))})),t.text.keyValues=o}return t}function ae(e,t){var r,n="";return e.Relationships?(e.Relationships.forEach((function(e){e.Ids.forEach((function(e){var i=t[e];"WORD"===i.BlockType?n+=i.Text+" ":"SELECTION_ELEMENT"===i.BlockType&&(r="SELECTED"===i.SelectionStatus)}))})),{text:n=n.substr(0,n.length-1),selected:r}):{text:"",selected:void 0}}var oe=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),se=function(){return(se=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]a.Blocks.length?r(i):r(ie(a.Blocks))}))}))):(b={Document:m,FeatureTypes:y},this.textract.analyzeDocument(b,(function(e,t){if(e)return n(e);var i=t.Blocks;r(ie(i))}))),[2]}}))}))}))},t.prototype.identifyLabels=function(e){var t=this;return new Promise((function(r,n){return ue(t,void 0,void 0,(function(){var t,i,a,o,s,c,p,l,m,d,y,h;return ce(this,(function(f){switch(f.label){case 0:return[4,u.e.get()];case 1:return(t=f.sent())?(i=this._config.identifyLabels,o=(a=void 0===i?{}:i).region,s=void 0===o?"":o,c=a.defaults,p=(void 0===c?{}:c).type,l=void 0===p?"LABELS":p,this.rekognition=new Z({region:s,credentials:t}),[4,this.configureSource(e.labels.source).then((function(e){m=e})).catch((function(e){return n(e)}))]):[2,n("No credentials")];case 2:return f.sent(),d={Image:m},y=[],"LABELS"!==(h=e.labels.type||l)&&"ALL"!==h||y.push(this.detectLabels(d)),"UNSAFE"!==h&&"ALL"!==h||y.push(this.detectModerationLabels(d)),Promise.all(y).then((function(e){var t={};e.forEach((function(e){t=se(se({},t),e)})),r(t)})).catch((function(e){return n(e)})),[2]}}))}))}))},t.prototype.detectLabels=function(e){var t=this;return new Promise((function(r,n){t.rekognition.detectLabels(e,(function(e,t){if(e)return n(e);if(!t.Labels)return r({labels:null});var i=t.Labels.map((function(e){var t=e.Instances?e.Instances.map((function(e){return X(e.BoundingBox)})):void 0;return{name:e.Name,boundingBoxes:t,metadata:{confidence:e.Confidence,parents:ee(e.Parents)}}}));return r({labels:i})}))}))},t.prototype.detectModerationLabels=function(e){var t=this;return new Promise((function(r,n){t.rekognition.detectModerationLabels(e,(function(e,t){return e?n(e):0!==t.ModerationLabels.length?r({unsafe:"YES"}):r({unsafe:"NO"})}))}))},t.prototype.identifyEntities=function(e){var t=this;return new Promise((function(r,n){return ue(t,void 0,void 0,(function(){var t,i,a,o,s,c,p,l,m,d,y,h,f,b,g,S,v,I,N,C,T,k=this;return ce(this,(function(A){switch(A.label){case 0:return[4,u.e.get()];case 1:return(t=A.sent())?(i=this._config.identifyEntities,o=(a=void 0===i?{}:i).region,s=void 0===o?"":o,c=a.celebrityDetectionEnabled,p=void 0!==c&&c,l=a.defaults,d=(m=void 0===l?{}:l).collectionId,y=void 0===d?"":d,h=m.maxEntities,f=void 0===h?50:h,this.rekognition=new Z({region:s,credentials:t}),[4,this.configureSource(e.entities.source).then((function(e){return b=e})).catch((function(e){return n(e)}))]):[2,n("No credentials")];case 2:if(A.sent(),g={Image:b},Object(Y.d)(e.entities)&&e.entities.celebrityDetection){if(!p)return[2,n("Error: You have to enable celebrity detection first")];this.rekognition.recognizeCelebrities(g,(function(e,t){if(e)return n(e);var i=t.CelebrityFaces.map((function(e){return{boundingBox:X(e.Face.BoundingBox),landmarks:ee(e.Face.Landmarks),metadata:se(se({},X(e,["Id","Name","Urls"])),{pose:X(e.Face.Pose)})}}));r({entities:i})}))}else Object(Y.e)(e.entities)&&e.entities.collection?(S=e.entities,v=S.collectionId,I=void 0===v?y:v,N=S.maxEntities,C=void 0===N?f:N,T=se(se({},g),{CollectionId:I,MaxFaces:C}),this.rekognition.searchFacesByImage(T,(function(e,t){if(e)return n(e);var i=t.FaceMatches.map((function(e){return{boundingBox:X(e.Face.BoundingBox),metadata:{externalImageId:k.decodeExternalImageId(e.Face.ExternalImageId),similarity:e.Similarity}}}));r({entities:i})}))):this.rekognition.detectFaces(g,(function(e,t){if(e)return n(e);var i=t.FaceDetails.map((function(e){var t=["Smile","Eyeglasses","Sunglasses","Gender","Beard","Mustache","EyesOpen","MouthOpen"],r=X(e,t);return e.Emotions&&(r.emotions=e.Emotions.map((function(e){return e.Type}))),{boundingBox:X(e.BoundingBox),landmarks:ee(e.Landmarks),ageRange:X(e.AgeRange),attributes:X(e,t),metadata:{confidence:e.Confidence,pose:X(e.Pose)}}}));r({entities:i})}));return[2]}}))}))}))},t.prototype.decodeExternalImageId=function(e){return(""+e).replace(/::/g,"/")},t}(Q.a),le=r(278),me=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),de=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(t){a(t)}}function s(e){try{u(n.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},ye=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=0||(i[r]=e[r]);return i}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n;n=r(831),e.exports=n.default,e.exports.instance=n.instance},function(e,t,r){"use strict";var n=r(220),i=r(412),a=Object.prototype.toString;function o(e){return"[object Array]"===a.call(e)}function s(e){return null!==e&&"object"===typeof e}function u(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var r=0,n=e.length;r",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(c),l=["%","/","?",";","#"].concat(p),m=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(217);function S(e,t,r){if(e&&i.isObject(e)&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}a.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),s=-1!==a&&a127?w+="x":w+=_[q];if(!w.match(d)){var O=E.slice(0,D),L=E.slice(D+1),B=_.match(y);B&&(O.push(B[1]),L.unshift(B[2])),L.length&&(S="/"+L.join(".")+S),this.hostname=O.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var U=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+U,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==S[0]&&(S="/"+S))}if(!h[N])for(D=0,x=p.length;D0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!C.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=C.slice(-1)[0],A=(r.host||e.host||C.length>1)&&("."===k||".."===k)||""===k,D=0,R=C.length;R>=0;R--)"."===(k=C[R])?C.splice(R,1):".."===k?(C.splice(R,1),D++):D&&(C.splice(R,1),D--);if(!I&&!N)for(;D--;D)C.unshift("..");!I||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),A&&"/"!==C.join("/").substr(-1)&&C.push("");var P,E=""===C[0]||C[0]&&"/"===C[0].charAt(0);T&&(r.hostname=r.host=E?"":C.length?C.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(I=I||r.host&&C.length)&&!E&&C.unshift(""),C.length?r.pathname=C.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){"use strict";var n=r(1),i={keyPrefix:"aws-amplify-cache",capacityInBytes:1048576,itemMaxSize:21e4,defaultTTL:2592e5,defaultPriority:5,warningThreshold:.8,storage:(new n.q).getStorage()};function a(e){var t=0;t=e.length;for(var r=e.length;r>=0;r-=1){var n=e.charCodeAt(r);n>127&&n<=2047?t+=1:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&(r-=1)}return t}function o(){return(new Date).getTime()}function s(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var u={},c=function(){function e(){}return e.clear=function(){u={}},e.getItem=function(e){return u[e]||null},e.setItem=function(e,t){u[e]=t},e.removeItem=function(e){delete u[e]},e}(),p=function(e){this.key=e||"",this.prevNode=null,this.nextNode=null},l=function(){function e(){this.head=new p,this.tail=new p,this.hashtable={},this.length=0,this.head.nextNode=this.tail,this.tail.prevNode=this.head}return e.prototype.insertNodeToHead=function(e){var t=this.head.nextNode;this.head.nextNode=e,e.nextNode=t,e.prevNode=this.head,t.prevNode=e,this.length=this.length+1},e.prototype.removeNode=function(e){e.prevNode.nextNode=e.nextNode,e.nextNode.prevNode=e.prevNode,e.prevNode=null,e.nextNode=null,this.length=this.length-1},e.prototype.isEmpty=function(){return 0===this.length},e.prototype.refresh=function(e){var t=this.hashtable[e];this.removeNode(t),this.insertNodeToHead(t)},e.prototype.insertItem=function(e){var t=new p(e);this.hashtable[e]=t,this.insertNodeToHead(t)},e.prototype.getLastItem=function(){return this.tail.prevNode.key},e.prototype.removeItem=function(e){var t=this.hashtable[e];this.removeNode(t),delete this.hashtable[e]},e.prototype.getSize=function(){return this.length},e.prototype.containsKey=function(e){return e in this.hashtable},e.prototype.clearList=function(){for(var e=0,t=Object.keys(this.hashtable);ethis.config.capacityInBytes&&(m.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(m.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=i.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(m.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=i.warningThreshold);this.config.capacityInBytes>5242880&&(m.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,r){var n={key:e,data:t,timestamp:o(),visitedTime:o(),priority:r.priority,expires:r.expires,type:typeof t,byteSize:0};return n.byteSize=a(JSON.stringify(n)),n.byteSize=a(JSON.stringify(n)),n},e.prototype.configure=function(e){return e?(e.keyPrefix&&m.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),y=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=new n.c("Cache"),f=new(function(e){function t(t){var r=this,n=t?Object.assign({},i,t):i;return(r=e.call(this,n)||this).config.storage=n.storage,r.getItem=r.getItem.bind(r),r.setItem=r.setItem.bind(r),r.removeItem=r.removeItem.bind(r),r}return y(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=o(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var t=this.config.storage.getItem(e),r=JSON.parse(t);return o()>=r.expires},t.prototype._removeItem=function(e,t){var r=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(r),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(r){this._decreaseCurSizeInBytes(t.byteSize),h.error("Failed to set item "+r)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,r=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>r?t:r},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],r=0;rt.priority?-1:e.priority5)h.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var a=this.fillCacheItem(n,t,i);if(a.byteSize>this.config.itemMaxSize)h.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var s=this.config.storage.getItem(n);if(s&&this._removeItem(n,JSON.parse(s).byteSize),this._isCacheFull(a.byteSize)){var u=this._findValidKeys();if(this._isCacheFull(a.byteSize)){var c=this._sizeToPop(a.byteSize);this._popOutItems(u,c)}}this._setItem(n,a)}catch(p){h.warn("setItem failed! "+p)}}}else h.warn("The value of item should not be undefined!");else h.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){h.log("Get item: key is "+e+" with options "+t);var r=null,n=this.config.keyPrefix+e;if(n===this.config.keyPrefix||n===this.cacheCurSizeKey)return h.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(r=this.config.storage.getItem(n))){if(!this._isExpired(n)){var i=JSON.parse(r);return(i=this._refreshItem(i,n)).data}this._removeItem(n,JSON.parse(r).byteSize),r=null}if(t&&void 0!==t.callback){var a=t.callback();return null!==a&&this.setItem(e,a,t),a}return null}catch(o){return h.warn("getItem failed! "+o),null}},t.prototype.removeItem=function(e){h.log("Remove item: key is "+e);var t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!==this.cacheCurSizeKey)try{var r=this.config.storage.getItem(t);r&&this._removeItem(t,JSON.parse(r).byteSize)}catch(n){h.warn("removeItem failed! "+n)}},t.prototype.clear=function(){h.log("Clear Cache");for(var e=[],t=0;t=r.expires},t.prototype._removeItem=function(e,t){this.cacheList[t].removeItem(e),this._decreaseCurSizeInBytes(JSON.parse(c.getItem(e)).byteSize),c.removeItem(e)},t.prototype._setItem=function(e,t,r){this.cacheList[r].insertItem(e),this._increaseCurSizeInBytes(t.byteSize),c.setItem(e,JSON.stringify(t))},t.prototype._isCacheFull=function(e){return this.curSizeInBytes+e>this.config.capacityInBytes},t.prototype.containsKey=function(e){for(var t=this.config.keyPrefix+e,r=0;r5)g.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var a=this.fillCacheItem(n,t,i);if(a.byteSize>this.config.itemMaxSize)g.warn("Item with key: "+e+" you are trying to put into is too big!");else{var s=this.containsKey(e);-1!==s&&this._removeItem(n,s-1);for(var u=this.maxPriority-1;this._isCacheFull(a.byteSize)&&u>=0;)if(this.cacheList[u].isEmpty())u-=1;else{var c=this.cacheList[u].getLastItem();this._removeItem(c,u)}this._setItem(n,a,Number(a.priority)-1)}}}else g.warn("The value of item should not be undefined!");else g.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){var r=null,n=this.config.keyPrefix+e;if(n===this.config.keyPrefix||n===this.cacheCurSizeKey)return g.warn("Invalid key: should not be empty or 'CurSize'"),null;var i=this.containsKey(e);if(-1!==i){if(!this._isExpired(n)){r=c.getItem(n);var a=JSON.parse(r);return this.cacheList[a.priority-1].refresh(n),a.data}this._removeItem(n,i-1)}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null},t.prototype.removeItem=function(e){var t=this.config.keyPrefix+e,r=this.containsKey(e);-1!==r&&this._removeItem(t,r-1)},t.prototype.clear=function(){for(var e=0;e-1:!!p&&n(e,t,r)>-1}},function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";(function(e){var n=r(188),i=r.n(n),a=r(292),o=r.n(a),s=r(0),u=r.n(s),c=r(293),p=r(113),l=r(189),m=(r(9),r(308)),d=r(309),y=function(e,t){for(var r=[e[0]],n=0,i=t.length;n=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},I=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},N=function(e){return"object"===("undefined"===typeof e?"undefined":h(e))&&e.constructor===Object},C=Object.freeze([]),T=Object.freeze({});function k(e){return"function"===typeof e}function A(e){return e.displayName||e.name||"Component"}function D(e){return e&&"string"===typeof e.styledComponentId}var R="undefined"!==typeof e&&(Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_POOL_ID:"us-east-1:97857d62-278f-4299-989d-cb5677f621c2",REACT_APP_REGION:"us-east-1",REACT_APP_S3_BUCKET:"ngp-app-upload-prd",REACT_APP_USER_POOL_ID:"us-east-1_GoFCuq1y7",REACT_APP_WEB_ID:"58lkvle8ereakcanjqjjnu7f0l"}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_POOL_ID:"us-east-1:97857d62-278f-4299-989d-cb5677f621c2",REACT_APP_REGION:"us-east-1",REACT_APP_S3_BUCKET:"ngp-app-upload-prd",REACT_APP_USER_POOL_ID:"us-east-1_GoFCuq1y7",REACT_APP_WEB_ID:"58lkvle8ereakcanjqjjnu7f0l"}).SC_ATTR)||"data-styled",P="undefined"!==typeof window&&"HTMLElement"in window,E="boolean"===typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"undefined"!==typeof e&&(Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_POOL_ID:"us-east-1:97857d62-278f-4299-989d-cb5677f621c2",REACT_APP_REGION:"us-east-1",REACT_APP_S3_BUCKET:"ngp-app-upload-prd",REACT_APP_USER_POOL_ID:"us-east-1_GoFCuq1y7",REACT_APP_WEB_ID:"58lkvle8ereakcanjqjjnu7f0l"}).REACT_APP_SC_DISABLE_SPEEDY||Object({NODE_ENV:"production",PUBLIC_URL:"",REACT_APP_POOL_ID:"us-east-1:97857d62-278f-4299-989d-cb5677f621c2",REACT_APP_REGION:"us-east-1",REACT_APP_S3_BUCKET:"ngp-app-upload-prd",REACT_APP_USER_POOL_ID:"us-east-1_GoFCuq1y7",REACT_APP_WEB_ID:"58lkvle8ereakcanjqjjnu7f0l"}).SC_DISABLE_SPEEDY)||!1;var x=function(e){function t(r){f(this,t);for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a0?" Additional arguments: "+i.join(", "):"")));return I(o)}return S(t,e),t}(Error),_=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,w=function(e){var t=""+(e||""),r=[];return t.replace(_,(function(e,t,n){return r.push({componentId:t,matchIndex:n}),e})),r.map((function(e,n){var i=e.componentId,a=e.matchIndex,o=r[n+1];return{componentId:i,cssFromDOM:o?t.slice(a,o.matchIndex):t.slice(a)}}))},q=/^\s*\/\/.*$/gm,M=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),O=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),L=[],B=function(e){if(-2===e){var t=L;return L=[],t}},U=o()((function(e){L.push(e)})),G=void 0,F=void 0,V=void 0,j=function(e,t,r){return t>0&&-1!==r.slice(0,t).indexOf(F)&&r.slice(t-F.length,t)!==F?"."+G:e};O.use([function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(F)>0&&(r[0]=r[0].replace(V,j))},U,B]),M.use([U,B]);var z=function(e){return M("",e)};function K(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",i=e.join("").replace(q,""),a=t&&r?r+" "+t+" { "+i+" }":i;return G=n,F=t,V=new RegExp("\\"+F+"\\b","g"),O(r||!t?"":t,a)}var W=function(){return r.nc},H=function(e,t,r){r&&((e[t]||(e[t]=Object.create(null)))[r]=!0)},J=function(e,t){e[t]=Object.create(null)},Q=function(e){return function(t,r){return void 0!==e[t]&&e[t][r]}},Z=function(e){var t="";for(var r in e)t+=Object.keys(e[r]).join(" ")+" ";return t.trim()},Y=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,r=0;r"+e()+""}},re=function(e,t){return function(){var r,n=((r={})[R]=Z(t),r["data-styled-version"]="4.4.1",r),i=W();return i&&(n.nonce=i),u.a.createElement("style",g({},n,{dangerouslySetInnerHTML:{__html:e()}}))}},ne=function(e){return function(){return Object.keys(e)}},ie=function(e,t){return e.createTextNode(X(t))},ae=function e(t,r){var n=void 0===t?Object.create(null):t,i=void 0===r?Object.create(null):r,a=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},o=function(){var e="";for(var t in i){var r=i[t][0];r&&(e+=X(t)+r)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var r in e)t[r]=g({},e[r]);return t}(n),r=Object.create(null);for(var a in i)r[a]=[i[a][0]];return e(t,r)},css:o,getIds:ne(i),hasNameForId:Q(n),insertMarker:a,insertRules:function(e,t,r){a(e)[0]+=t.join(" "),H(n,e,r)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",J(n,e))},sealed:!1,styleTag:null,toElement:re(o,n),toHTML:te(o,n)}},oe=function(e,t,r,n,i){if(P&&!r){var a=function(e,t,r){var n=document;e?n=e.ownerDocument:t&&(n=t.ownerDocument);var i=n.createElement("style");i.setAttribute(R,""),i.setAttribute("data-styled-version","4.4.1");var a=W();if(a&&i.setAttribute("nonce",a),i.appendChild(n.createTextNode("")),e&&!t)e.appendChild(i);else{if(!t||!e||!t.parentNode)throw new x(6);t.parentNode.insertBefore(i,r?t:t.nextSibling)}return i}(e,t,n);return E?function(e,t){var r=Object.create(null),n=Object.create(null),i=void 0!==t,a=!1,o=function(t){var i=n[t];return void 0!==i?i:(n[t]=ie(e.ownerDocument,t),e.appendChild(n[t]),r[t]=Object.create(null),n[t])},s=function(){var e="";for(var t in n)e+=n[t].data;return e};return{clone:function(){throw new x(5)},css:s,getIds:ne(n),hasNameForId:Q(r),insertMarker:o,insertRules:function(e,n,s){for(var u=o(e),c=[],p=n.length,l=0;l0&&(a=!0,t().insertRules(e+"-import",c))},removeRules:function(o){var s=n[o];if(void 0!==s){var u=ie(e.ownerDocument,o);e.replaceChild(u,s),n[o]=u,J(r,o),i&&a&&t().removeRules(o+"-import")}},sealed:!1,styleTag:e,toElement:re(s,r),toHTML:te(s,r)}}(a,i):function(e,t){var r=Object.create(null),n=Object.create(null),i=[],a=void 0!==t,o=!1,s=function(e){var t=n[e];return void 0!==t?t:(n[e]=i.length,i.push(0),J(r,e),n[e])},u=function(){var t=Y(e).cssRules,r="";for(var a in n){r+=X(a);for(var o=n[a],s=ee(i,o),u=s-i[o];u0&&(o=!0,t().insertRules(n+"-import",y)),i[p]+=d,H(r,n,c)},removeRules:function(s){var u=n[s];if(void 0!==u&&!1!==e.isConnected){var c=i[u];!function(e,t,r){for(var n=t-r,i=t;i>n;i-=1)e.deleteRule(i)}(Y(e),ee(i,u)-1,c),i[u]=0,J(r,s),a&&o&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:re(u,r),toHTML:te(u,r)}}(a,i)}return ae()},se=/\s+/,ue=void 0;ue=P?E?40:1e3:-1;var ce=0,pe=void 0,le=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var r=t.tags[0];return t.importRuleTag=oe(t.target,r?r.styleTag:null,t.forceServer,!0)},ce+=1,this.id=ce,this.forceServer=n,this.target=n?null:r,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!P||this.forceServer)return this;var e=[],t=[],r=!1,n=document.querySelectorAll("style["+R+'][data-styled-version="4.4.1"]'),i=n.length;if(!i)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0];pe=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var r=e.getIds(),n=e.clone(),i=0;i1?t-1:0),n=1;n=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++i;switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+((1540483477*(n>>>16)&65535)<<16)}return((n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16))^n>>>15)>>>0}var Ie=52,Ne=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ce(e){var t="",r=void 0;for(r=e;r>Ie;r=Math.floor(r/Ie))t=Ne(r%Ie)+t;return Ne(r%Ie)+t}function Te(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:T,n=!!r&&e.theme===r.theme,i=e.theme&&!n?e.theme:t||r.theme;return i},Pe=/[[\].#*$><+~=|^:(),"'`-]+/g,Ee=/(^-|-$)/g;function xe(e){return e.replace(Pe,"-").replace(Ee,"")}function _e(e){return"string"===typeof e&&!0}var we={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Me=((ke={})[p.ForwardRef]={$$typeof:!0,render:!0},ke),Oe=Object.defineProperty,Le=Object.getOwnPropertyNames,Be=Object.getOwnPropertySymbols,Ue=void 0===Be?function(){return[]}:Be,Ge=Object.getOwnPropertyDescriptor,Fe=Object.getPrototypeOf,Ve=Object.prototype,je=Array.prototype;function ze(e,t,r){if("string"!==typeof t){var n=Fe(t);n&&n!==Ve&&ze(e,n,r);for(var i=je.concat(Le(t),Ue(t)),a=Me[e.$$typeof]||we,o=Me[t.$$typeof]||we,s=i.length,u=void 0,c=void 0;s--;)if(c=i[s],!qe[c]&&(!r||!r[c])&&(!o||!o[c])&&(!a||!a[c])&&(u=Ge(t,c)))try{Oe(e,c,u)}catch(p){}return e}return e}var Ke=Object(s.createContext)(),We=Ke.Consumer,He=(function(e){function t(r){f(this,t);var n=I(this,e.call(this,r));return n.getContext=Object(l.a)(n.getContext.bind(n)),n.renderInner=n.renderInner.bind(n),n}S(t,e),t.prototype.render=function(){return this.props.children?u.a.createElement(Ke.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return u.a.createElement(Ke.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(k(e))return e(t);if(null===e||Array.isArray(e)||"object"!==("undefined"===typeof e?"undefined":h(e)))throw new x(8);return g({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)}}(s.Component),function(){function e(){f(this,e),this.masterSheet=le.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new x(2);return u.a.createElement(Qe,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new x(3)}}(),Object(s.createContext)()),Je=He.Consumer,Qe=function(e){function t(r){f(this,t);var n=I(this,e.call(this,r));return n.getContext=Object(l.a)(n.getContext),n}return S(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new le(t);throw new x(4)},t.prototype.render=function(){var e=this.props,t=e.children,r=e.sheet,n=e.target;return u.a.createElement(He.Provider,{value:this.getContext(r,n)},t)},t}(s.Component),Ze={};var Ye=function(e){function t(){f(this,t);var r=I(this,e.call(this));return r.attrs={},r.renderOuter=r.renderOuter.bind(r),r.renderInner=r.renderInner.bind(r),r}return S(t,e),t.prototype.render=function(){return u.a.createElement(Je,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:le.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():u.a.createElement(We,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,r=t.componentStyle,n=t.defaultProps,i=(t.displayName,t.foldedComponentIds),a=t.styledComponentId,o=t.target,u=void 0;u=r.isStatic?this.generateAndInjectStyles(T,this.props):this.generateAndInjectStyles(Re(this.props,e,n)||T,this.props);var c=this.props.as||this.attrs.as||o,p=_e(c),l={},d=g({},this.props,this.attrs),y=void 0;for(y in d)"forwardedComponent"!==y&&"as"!==y&&("forwardedRef"===y?l.ref=d[y]:"forwardedAs"===y?l.as=d[y]:p&&!Object(m.a)(y)||(l[y]=d[y]));return this.props.style&&this.attrs.style&&(l.style=g({},this.attrs.style,this.props.style)),l.className=Array.prototype.concat(i,a,u!==a?u:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(c,l)},t.prototype.buildExecutionContext=function(e,t,r){var n=this,i=g({},t,{theme:e});return r.length?(this.attrs={},r.forEach((function(e){var t,r=e,a=!1,o=void 0,s=void 0;for(s in k(r)&&(r=r(i),a=!0),r)o=r[s],a||!k(o)||(t=o)&&t.prototype&&t.prototype.isReactComponent||D(o)||(o=o(i)),n.attrs[s]=o,i[s]=o})),i):i},t.prototype.generateAndInjectStyles=function(e,t){var r=t.forwardedComponent,n=r.attrs,i=r.componentStyle;r.warnTooManyClasses;return i.isStatic&&!n.length?i.generateAndInjectStyles(T,this.styleSheet):i.generateAndInjectStyles(this.buildExecutionContext(e,t,n),this.styleSheet)},t}(s.Component);function $e(e,t,r){var n=D(e),i=!_e(e),a=t.displayName,o=void 0===a?function(e){return _e(e)?"styled."+e:"Styled("+A(e)+")"}(e):a,s=t.componentId,c=void 0===s?function(e,t,r){var n="string"!==typeof t?"sc":xe(t),i=(Ze[n]||0)+1;Ze[n]=i;var a=n+"-"+e.generateName(n+i);return r?r+"-"+a:a}(De,t.displayName,t.parentComponentId):s,p=t.ParentComponent,l=void 0===p?Ye:p,m=t.attrs,y=void 0===m?C:m,h=t.displayName&&t.componentId?xe(t.displayName)+"-"+t.componentId:t.componentId||c,f=n&&e.attrs?Array.prototype.concat(e.attrs,y).filter(Boolean):y,b=new De(n?e.componentStyle.rules.concat(r):r,f,h),S=void 0,I=function(e,t){return u.a.createElement(l,g({},e,{forwardedComponent:S,forwardedRef:t}))};return I.displayName=o,(S=u.a.forwardRef(I)).displayName=o,S.attrs=f,S.componentStyle=b,S.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):C,S.styledComponentId=h,S.target=n?e.target:e,S.withComponent=function(e){var n=t.componentId,i=v(t,["componentId"]),a=n&&n+"-"+(_e(e)?e:xe(A(e)));return $e(e,g({},i,{attrs:f,componentId:a,ParentComponent:l}),r)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Object(d.a)(e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},i&&ze(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Xe=function(e){return function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;if(!Object(p.isValidElementType)(r))throw new x(1,String(r));var i=function(){return t(r,n,Se.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,r,g({},n,i))},i.attrs=function(i){return e(t,r,g({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}($e,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Xe[e]=Xe(e)}));!function(){function e(t,r){f(this,e),this.rules=t,this.componentId=r,this.isStatic=Te(t,C),le.master.hasId(r)||le.master.deferredInject(r,[])}e.prototype.createStyles=function(e,t){var r=K(ge(this.rules,e,t),"");t.inject(this.componentId,r)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)}}();P&&(window.scCGSHMRCache={});t.a=Xe}).call(this,r(66))},function(e,t,r){e.exports=r(396).Observable},function(e,t,r){"use strict";function n(e,t){for(var r=0;r"}try{s.currentTarget=Object(n.c)(o.currentTarget)?Object(a.i)(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(u){s.currentTarget=""}for(var i in"undefined"!==typeof CustomEvent&&Object(n.g)(e,CustomEvent)&&(s.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,i)&&(s[i]=o);return s}return e}function p(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function l(e,t,r){void 0===t&&(t=3),void 0===r&&(r=102400);var n=y(e,t);return p(n)>r?l(e,t-1,r):n}function m(t,r){return"domain"===r&&t&&"object"===typeof t&&t._events?"[Domain]":"domainEmitter"===r?"[DomainEmitter]":"undefined"!==typeof e&&t===e?"[Global]":"undefined"!==typeof window&&t===window?"[Window]":"undefined"!==typeof document&&t===document?"[Document]":Object(n.l)(t)?"[SyntheticEvent]":"number"===typeof t&&t!==t?"[NaN]":void 0===t?"[undefined]":"function"===typeof t?"[Function: "+Object(a.f)(t)+"]":t}function d(e,t,r,a){if(void 0===r&&(r=1/0),void 0===a&&(a=new i.a),0===r)return function(e){var t=Object.prototype.toString.call(e);if("string"===typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=m(e);return Object(n.i)(r)?r:t}(t);if(null!==t&&void 0!==t&&"function"===typeof t.toJSON)return t.toJSON();var o=m(t,e);if(Object(n.i)(o))return o;var s=c(t),u=Array.isArray(t)?[]:{};if(a.memoize(t))return"[Circular ~]";for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(u[p]=d(p,s[p],r-1,a));return a.unmemoize(t),u}function y(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,r){return d(e,r,t)})))}catch(r){return"**non-serializable**"}}function h(e,t){void 0===t&&(t=40);var r=Object.keys(c(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return Object(o.d)(r[0],t);for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length?i:Object(o.d)(i,t)}return""}}).call(this,r(57))},function(e,t){var r,n,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var u,c=[],p=!1,l=-1;function m(){p&&u&&(p=!1,u.length?c=u.concat(c):l=-1,c.length&&d())}function d(){if(!p){var e=s(m);p=!0;for(var t=c.length;t;){for(u=c,c=[];++l1)for(var r=1;rn&&(t=n);var i=Math.max(t-60,0);i<5&&(i=0);var a=Math.min(i+140,n);return a>n-5&&(a=n),a===n&&(i=Math.max(a-140,0)),r=r.slice(i,a),i>0&&(r="'{snip} "+r),a1){if("number"===typeof(a=e({path:"/"},n.defaults,a)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*a.expires),a.expires=s}a.expires=a.expires?a.expires.toUTCString():"";try{o=JSON.stringify(i),/^[\{\[]/.test(o)&&(i=o)}catch(f){}i=r.write?r.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var u="";for(var c in a)a[c]&&(u+="; "+c,!0!==a[c]&&(u+="="+a[c]));return document.cookie=t+"="+i+u}t||(o={});for(var p=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,m=0;m0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&(this.defaultSignUpFields=this.defaultSignUpFields.filter((function(t){return!e.props.signUpConfig.hiddenDefaults.includes(t.key)}))),this.checkCustomSignUpFields()?(this.props.signUpConfig&&this.props.signUpConfig.hideAllDefaults||this.defaultSignUpFields.forEach((function(t){-1===e.signUpFields.findIndex((function(e){return e.key===t.key}))&&e.signUpFields.push(t)})),this.signUpFields.sort((function(e,t){return e.displayOrder&&t.displayOrder?e.displayOrdert.displayOrder?1:e.key0},t.prototype.signUp=function(){var e=this;this.setState({requestPending:!0}),this.inputs.dial_code||(this.inputs.dial_code=this.getDefaultDialCode());var t=this.validate();if(t&&t.length>0)return this.error("The following fields need to be filled out: "+t.join(", "));if(!s.a||"function"!==typeof s.a.signUp)throw new Error("No Auth module found, please ensure @aws-amplify/auth is imported");var r={username:this.inputs.username,password:this.inputs.password,attributes:{}},n=Object.keys(this.inputs),i=Object.values(this.inputs);n.forEach((function(t,n){if(!["username","password","checkedValue","dial_code"].includes(t)&&"phone_line_number"!==t&&"dial_code"!==t&&"error"!==t){var a=(e.needPrefix(t)?"custom:":"")+t;r.attributes[a]=i[n]}})),this.phone_number&&(r.attributes.phone_number=this.phone_number);var a=!1;if(this.signUpFields.forEach((function(t){t.label===e.getUsernameLabel()&&(lt.debug("Changing the username to the value of "+t.label),r.username=r.attributes[t.key]||r.username,a=!0)})),!a&&!r.username)throw new Error("Couldn't find the label: "+this.getUsernameLabel()+", in sign up fields according to usernameAttributes!");s.a.signUp(r).then((function(t){e.setState({requestPending:!1}),e.changeState("confirmSignUp",t.user.username)})).catch((function(t){return e.setState({requestPending:!1}),e.error(t)}))},t.prototype.showComponent=function(e){var r=this,i=this.props.hide;return i&&i.includes(t)?null:(this.checkCustomSignUpFields()&&(this.signUpFields=this.props.signUpConfig.signUpFields),this.sortFields(),o.createElement(d,{theme:e,"data-test":oe.section},o.createElement(y,{theme:e,"data-test":oe.headerSection},n.g.get(this.header)),o.createElement(S,{theme:e,"data-test":oe.bodySection},this.signUpFields.map((function(t){return"phone_number"!==t.key?o.createElement(D,{theme:e,key:t.key},t.required?o.createElement(O,{theme:e},n.g.get(t.label)," *"):o.createElement(O,{theme:e},n.g.get(t.label)),o.createElement(k,{autoFocus:0===r.signUpFields.findIndex((function(e){return e.key===t.key})),placeholder:n.g.get(t.placeholder),theme:e,type:t.type,name:t.key,key:t.key,onChange:r.handleInputChange,"data-test":oe.nonPhoneNumberInput})):o.createElement(ge,{theme:e,required:t.required,defaultDialCode:r.getDefaultDialCode(),label:t.label,placeholder:t.placeholder,onChangeText:r.onPhoneNumberChanged,key:"phone_number"})}))),o.createElement(f,{theme:e,"data-test":oe.footerSection},o.createElement(b,{theme:e},o.createElement(R,{disabled:this.state.requestPending,onClick:this.signUp,theme:e,"data-test":oe.createAccountButton},n.g.get("Create Account"))),o.createElement(g,{theme:e},n.g.get("Have an account? "),o.createElement(w,{theme:e,onClick:function(){return r.changeState("signIn")},"data-test":oe.signInLink},n.g.get("Sign in"))))))},t}(Ie),dt=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),yt=new n.c("ForgotPassword"),ht=function(e){function t(t){var r=e.call(this,t)||this;return r.send=r.send.bind(r),r.submit=r.submit.bind(r),r._validAuthStates=["forgotPassword"],r.state={delivery:null},r}return dt(t,e),t.prototype.send=function(){var e=this,t=this.props.authData,r=void 0===t?{}:t,n=this.getUsernameFromInput()||r.username;if(!s.a||"function"!==typeof s.a.forgotPassword)throw new Error("No Auth module found, please ensure @aws-amplify/auth is imported");s.a.forgotPassword(n).then((function(t){yt.debug(t),e.setState({delivery:t.CodeDeliveryDetails})})).catch((function(t){return e.error(t)}))},t.prototype.submit=function(){var e=this,t=this.props.authData,r=void 0===t?{}:t,n=this.inputs,i=n.code,a=n.password,o=this.getUsernameFromInput()||r.username;if(!s.a||"function"!==typeof s.a.forgotPasswordSubmit)throw new Error("No Auth module found, please ensure @aws-amplify/auth is imported");s.a.forgotPasswordSubmit(o,i,a).then((function(t){yt.debug(t),e.changeState("signIn"),e.setState({delivery:null})})).catch((function(t){return e.error(t)}))},t.prototype.sendView=function(){var e=this.props.theme||c;return o.createElement("div",null,this.renderUsernameField(e))},t.prototype.submitView=function(){var e=this.props.theme||c;return o.createElement("div",null,o.createElement(D,{theme:e},o.createElement(O,{theme:e},n.g.get("Code")," *"),o.createElement(k,{placeholder:n.g.get("Code"),theme:e,key:"code",name:"code",autoComplete:"off",onChange:this.handleInputChange})),o.createElement(D,{theme:e},o.createElement(O,{theme:e},n.g.get("New Password")," *"),o.createElement(k,{placeholder:n.g.get("New Password"),theme:e,type:"password",key:"password",name:"password",autoComplete:"off",onChange:this.handleInputChange})))},t.prototype.showComponent=function(e){var r=this,i=this.props,a=(i.authState,i.hide),s=i.authData,u=void 0===s?{}:s;return a&&a.includes(t)?null:o.createElement(d,{theme:e,"data-test":fe.section},o.createElement(y,{theme:e,"data-test":fe.headerSection},n.g.get("Reset your password")),o.createElement(S,{theme:e,"data-test":fe.bodySection},this.state.delivery||u.username?this.submitView():this.sendView()),o.createElement(f,{theme:e},o.createElement(b,{theme:e},this.state.delivery||u.username?o.createElement(R,{theme:e,onClick:this.submit,"data-test":fe.submitButton},n.g.get("Submit")):o.createElement(R,{theme:e,onClick:this.send,"data-test":fe.sendCodeButton},n.g.get("Send Code"))),o.createElement(g,{theme:e},this.state.delivery||u.username?o.createElement(w,{theme:e,onClick:this.send,"data-test":fe.resendCodeLink},n.g.get("Resend Code")):o.createElement(w,{theme:e,onClick:function(){return r.changeState("signIn")},"data-test":fe.backToSignInLink},n.g.get("Back to Sign In")))))},t}(Ie),ft=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),bt=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(t){a(t)}}function s(e){try{u(n.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},gt=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]2?r[2]:r[0];return n.g.get(r[0],i)}var Kt=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Wt=new n.c("Authenticator"),Ht=function(e){var t=e.children;return o.createElement(o.Fragment,null,t)},Jt=function(e){function t(t){var r=e.call(this,t)||this;return r.handleStateChange=r.handleStateChange.bind(r),r.handleAuthEvent=r.handleAuthEvent.bind(r),r.onHubCapsule=r.onHubCapsule.bind(r),r._initialAuthState=r.props.authState||"signIn",r.state={authState:"loading"},n.f.listen("auth",r.onHubCapsule),r}return Kt(t,e),t.prototype.componentDidMount=function(){var e=this.props.amplifyConfig;e&&n.s.configure(e),this._isMounted=!0;var t=localStorage.getItem(Ne.SIGNING_IN_WITH_HOSTEDUI_KEY);localStorage.removeItem(Ne.SIGNING_IN_WITH_HOSTEDUI_KEY),"true"!==t&&this.checkUser()},t.prototype.componentWillUnmount=function(){this._isMounted=!1},t.prototype.checkUser=function(){var e=this;if(!s.a||"function"!==typeof s.a.currentAuthenticatedUser)throw new Error("No Auth module found, please ensure @aws-amplify/auth is imported");return s.a.currentAuthenticatedUser().then((function(t){e._isMounted&&e.handleStateChange("signedIn",t)})).catch((function(t){if(e._isMounted){var r=null;try{r=localStorage.getItem("amplify-authenticator-authState")}catch(n){Wt.debug("Failed to get the auth state from local storage",n)}("signedIn"===r?s.a.signOut():Promise.resolve()).then((function(){return e.handleStateChange(e._initialAuthState)})).catch((function(e){Wt.debug("Failed to sign out",e)}))}}))},t.prototype.onHubCapsule=function(e){var t=e.channel,r=e.payload;e.source;if("auth"===t)switch(r.event){case"cognitoHostedUI":this.handleStateChange("signedIn",r.data);break;case"cognitoHostedUI_failure":case"parsingUrl_failure":case"signOut":case"customGreetingSignOut":this.handleStateChange("signIn",null);break;case"parsingCallbackUrl":localStorage.setItem(Ne.SIGNING_IN_WITH_HOSTEDUI_KEY,"true")}},t.prototype.handleStateChange=function(e,t){if(Wt.debug("authenticator state change "+e,t),e!==this.state.authState){"signedOut"===e&&(e="signIn");try{localStorage.setItem("amplify-authenticator-authState",e)}catch(r){Wt.debug("Failed to set the auth state into local storage",r)}this._isMounted&&this.setState({authState:e,authData:t,error:null,showToast:!1}),this.props.onStateChange&&this.props.onStateChange(e,t)}},t.prototype.handleAuthEvent=function(e,t,r){if(void 0===r&&(r=!0),"error"===t.type){var n=this.props.errorMessage||zt,i="string"===typeof n?n:n(t.data);this.setState({error:i,showToast:r})}},t.prototype.render=function(){var e=this,t=this.state,r=t.authState,i=t.authData,a=this.props.theme||c,s=this.props.errorMessage||zt,u=void 0===this.props.container?l:this.props.container||Ht,p=this.props,m=p.hideDefault,d=p.hide,y=void 0===d?[]:d,h=p.federated,f=p.signUpConfig,b=p.usernameAttributes;m&&(y=y.concat([nt,vt,Nt,kt,mt,Et,qt,ht,Vt,Dt]));var g=[];"object"===typeof this.props.children&&(Array.isArray(this.props.children)?g=this.props.children:g.push(this.props.children));var S=[o.createElement(nt,{federated:h}),o.createElement(vt,{federated:h}),o.createElement(Nt,null),o.createElement(kt,null),o.createElement(mt,{signUpConfig:f}),o.createElement(Et,null),o.createElement(qt,null),o.createElement(ht,null),o.createElement(Vt,null),o.createElement(Dt,null)],v=o.Children.map(g,(function(e){return e.props.override}));y=y.filter((function(e){return!g.find((function(t){return t.type===e}))}));var I=o.Children.map(g,(function(t,n){return o.cloneElement(t,{key:"aws-amplify-authenticator-props-children-"+n,theme:a,messageMap:s,authState:r,authData:i,onStateChange:e.handleStateChange,onAuthEvent:e.handleAuthEvent,hide:y,override:v,usernameAttributes:b})})),N=(m?[]:o.Children.map(S,(function(t,n){return o.cloneElement(t,{key:"aws-amplify-authenticator-default-children-"+n,theme:a,messageMap:s,authState:r,authData:i,onStateChange:e.handleStateChange,onAuthEvent:e.handleAuthEvent,hide:y,override:v,usernameAttributes:b})}))).concat(I),C=this.state.error;return o.createElement(u,{theme:a},this.state.showToast&&o.createElement(V,{theme:a,onClose:function(){return e.setState({showToast:!1})},"data-test":ie.signInError},n.g.get(C)),N)},t}(o.Component),Qt=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zt=function(){return(Zt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0,signUpConfig:this.authConfig.signUpConfig,usernameAttributes:this.authConfig.usernameAttributes,onStateChange:this.handleAuthStateChange,children:this.authConfig.authenticatorComponents||[]})):null,o.createElement(e,Zt({},this.props,{authState:r,authData:n,onStateChange:this.handleAuthStateChange}))):o.createElement(Jt,Zt({},this.props,{theme:this.authConfig.theme,federated:this.authConfig.federated||this.props.federated,hideDefault:this.authConfig.authenticatorComponents&&this.authConfig.authenticatorComponents.length>0,signUpConfig:this.authConfig.signUpConfig,usernameAttributes:this.authConfig.usernameAttributes,onStateChange:this.handleAuthStateChange,children:this.authConfig.authenticatorComponents||[]}))},u}(o.Component)}(function(e){function t(t){var r=e.call(this,t)||this;return r.state={auth:"init"},r.handleAuthState=r.handleAuthState.bind(r),r.renderChildren=r.renderChildren.bind(r),r}Qt(t,e),t.prototype.handleAuthState=function(e,t){this.setState({auth:e,authData:t})},t.prototype.renderChildren=function(){return this.props.children(this.state.auth)},t.prototype.render=function(){return o.createElement("div",null,o.createElement(Jt,Zt({},this.props,{onStateChange:this.handleAuthState})),this.renderChildren())}})(o.Component),r(43),function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)}}();!function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)}}();var $t=r(25),Xt=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),er={width:"100%",height:"100%",display:"inline-block",position:"absolute",left:0,top:0,opacity:0,cursor:"pointer"},tr=new n.c("Picker"),rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xt(t,e),t.prototype.handleInput=function(e){var t=e.target.files[0];if(t){var r=t.name,n=t.size,i=t.type;tr.debug(t);var a=this.props.onPick;a&&a({file:t,name:r,size:n,type:i})}},t.prototype.render=function(){var e=this,t=this.props.title||"Pick a File",r=this.props.accept||"*/*",i=this.props.theme||c,a=Object.assign({},{position:"relative"},i.pickerPicker),s=Object.assign({},er,i.pickerInput);return o.createElement("div",{style:a},o.createElement(P,{theme:i},n.g.get(t)),o.createElement("input",{title:n.g.get(t),type:"file",accept:r,style:s,onChange:function(t){return e.handleInput(t)}}))},t}(o.Component),nr=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ir={maxWidth:"100%"},ar=(new n.c("PhotoPicker"),function(e){function t(t){var r=e.call(this,t)||this;return r.handlePick=r.handlePick.bind(r),r.state={previewSrc:t.previewSrc},r}return nr(t,e),t.prototype.handlePick=function(e){var t=this,r=e.file,n=(e.name,e.size,e.type,this.props),i=n.preview,a=n.onPick,o=n.onLoad;if(a&&a(e),i){var s=new FileReader;s.onload=function(e){var r=e.target.result;t.setState({previewSrc:r}),o&&o(r)},s.readAsDataURL(r)}},t.prototype.render=function(){var e=this.props.preview,t=this.state.previewSrc,r=this.props.headerText||"Photos",i=this.props.headerHint||"Add your photos by clicking below",a=this.props.title||"Select a Photo",s=this.props.theme||c,u=Object.assign({},ir,s.pickerPreview),p=!(e&&"hidden"!==e);return o.createElement(d,{theme:s},o.createElement(y,{theme:s,hint:i},n.g.get(r)),o.createElement(S,{theme:s},t?p?"The image has been selected":o.createElement("img",{src:t,style:u}):o.createElement(z,{theme:s})),o.createElement(rr,{title:a,accept:"image/*",theme:s,onPick:this.handlePick}))},t}(o.Component));function or(e,t){var r=e.name,n=e.size,i=e.type,a=encodeURI(r);if(t){var o=typeof t;(a="string"===o?t:"function"===o?t({name:r,size:n,type:i}):encodeURI(JSON.stringify(t)))||(a="empty_key")}return a.replace(/\s/g,"_")}var sr=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ur=new n.c("Storage.S3Image"),cr=function(e){function t(t){var r=e.call(this,t)||this;r._isMounted=!1,r.handleOnLoad=r.handleOnLoad.bind(r),r.handleOnError=r.handleOnError.bind(r),r.handlePick=r.handlePick.bind(r),r.handleClick=r.handleClick.bind(r);var n=r.props.src||a.e;return r.state={src:n},r}return sr(t,e),t.prototype.getImageSource=function(e,t,r,n){var i=this;if(!$t.a||"function"!==typeof $t.a.get)throw new Error("No Storage module found, please ensure @aws-amplify/storage is imported");$t.a.get(e,{level:t||"public",track:r,identityId:n}).then((function(e){i._isMounted&&i.setState({src:e})})).catch((function(e){return ur.debug(e)}))},t.prototype.load=function(){var e=this.props,t=e.imgKey,r=e.path,n=e.body,i=e.contentType,a=e.level,o=e.track,s=e.identityId;if(t||r){var u=this,c=t||r;if(ur.debug("loading "+c+"..."),n){var p=i||"binary/octet-stream";if(!$t.a||"function"!==typeof $t.a.put)throw new Error("No Storage module found, please ensure @aws-amplify/storage is imported");$t.a.put(c,n,{contentType:p,level:a||"public",track:o}).then((function(e){ur.debug(e),u.getImageSource(c,a,o,s)})).catch((function(e){return ur.debug(e)}))}else u.getImageSource(c,a,o,s)}else ur.debug("empty imgKey and path")},t.prototype.handleOnLoad=function(e){var t=this.props.onLoad;t&&t(this.state.src)},t.prototype.handleOnError=function(e){var t=this.props.onError;t&&t(this.state.src)},t.prototype.handlePick=function(e){var t=this,r=this.props.path||"",n=this.props,i=n.imgKey,a=n.level,o=n.fileToKey,s=n.track,u=n.identityId,c=e.file,p=(e.name,e.size,e.type),l=i||r+or(e,o);if(!$t.a||"function"!==typeof $t.a.put)throw new Error("No Storage module found, please ensure @aws-amplify/storage is imported");$t.a.put(l,c,{level:a||"public",contentType:p,track:s}).then((function(e){ur.debug("handle pick data",e),t.getImageSource(l,a,s,u)})).catch((function(e){return ur.debug("handle pick error",e)}))},t.prototype.handleClick=function(e){var t=this.props.onClick;t&&t(e)},t.prototype.componentDidMount=function(){this._isMounted=!0,this.load()},t.prototype.componentWillUnmount=function(){this._isMounted=!1},t.prototype.componentDidUpdate=function(e){(e.path!==this.props.path||e.imgKey!==this.props.imgKey||e.body!==this.props.body||e.level!==this.props.level)&&this.load()},t.prototype.imageEl=function(e,t){if(!e)return null;var r=this.props.selected;return o.createElement("div",{style:{position:"relative"},onClick:this.handleClick},o.createElement("img",{style:t.photoImg,src:e,onLoad:this.handleOnLoad,onError:this.handleOnError}),o.createElement("div",{style:r?t.overlaySelected:t.overlay}))},t.prototype.render=function(){var e=this.props,t=e.hidden,r=e.style,n=e.picker,i=e.translate,a=e.imgKey,s=this.state.src;if(i&&(s="string"===typeof i?i:i({type:"image",key:a,content:s})),!s&&!n)return null;var u=this.props.theme||xt.c,c=t?xt.c.hidden:Object.assign({},u.photo,r);return o.createElement("div",{style:c},c?this.imageEl(s,u):null,n?o.createElement("div",null,o.createElement(ar,{key:"picker",onPick:this.handlePick,theme:u})):null)},t}(o.Component),pr=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),lr={},mr={maxWidth:"100%"},dr=(new n.c("TextPicker"),function(e){function t(t){var r=e.call(this,t)||this;return r.handlePick=r.handlePick.bind(r),r.state={previewText:t.previewText},r}return pr(t,e),t.prototype.handlePick=function(e){var t=this,r=e.file,n=(e.name,e.size,e.type,this.props),i=n.preview,a=n.onPick,o=n.onLoad;if(a&&a(e),i){var s=new FileReader;s.onload=function(e){var r=e.target.result;t.setState({previewText:r}),o&&o(r)},s.readAsText(r)}},t.prototype.render=function(){var e=this.props.preview,t=this.state.previewText,r=this.props.title||"Pick a File",n=this.props.theme||xt.c,i=Object.assign({},lr,n.picker),a=Object.assign({},mr,n.pickerPreview,n.halfHeight,e&&"hidden"!==e?{}:xt.c.hidden);return o.createElement("div",{style:i},t?o.createElement("div",{style:a},o.createElement("pre",{style:n.pre},t)):null,o.createElement(rr,{title:r,accept:"text/*",theme:n,onPick:this.handlePick}))},t}(o.Component)),yr=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),hr=new n.c("Storage.S3Text"),fr=function(e){function t(t){var r=e.call(this,t)||this;r._isMounted=!1,r.handleOnLoad=r.handleOnLoad.bind(r),r.handleOnError=r.handleOnError.bind(r),r.handlePick=r.handlePick.bind(r),r.handleClick=r.handleClick.bind(r);var n=t.text,i=t.textKey;return r.state={text:n||"",textKey:i||""},r}return yr(t,e),t.prototype.getText=function(e,t,r,n){var i=this;if(!$t.a||"function"!==typeof $t.a.get)throw new Error("No Storage module found, please ensure @aws-amplify/storage is imported");$t.a.get(e,{download:!0,level:t||"public",track:r,identityId:n}).then((function(e){hr.debug(e);var t=e.Body.toString("utf8");i._isMounted&&i.setState({text:t}),i.handleOnLoad(t)})).catch((function(e){hr.debug(e),i.handleOnError(e)}))},t.prototype.load=function(){var e=this.props,t=e.path,r=e.textKey,n=e.body,i=e.contentType,a=e.level,o=e.track,s=e.identityId;if(r||t){var u=this,c=r||t;if(hr.debug("loading "+c+"..."),n){var p=i||"text/*";if(!$t.a||"function"!==typeof $t.a.put)throw new Error("No Storage module found, please ensure @aws-amplify/storage is imported");$t.a.put(c,n,{contentType:p,level:a||"public",track:o}).then((function(e){hr.debug(e),u.getText(c,a,o,s)})).catch((function(e){return hr.debug(e)}))}else u.getText(c,a,o,s)}else hr.debug("empty textKey and path")},t.prototype.handleOnLoad=function(e){var t=this.props.onLoad;t&&t(e)},t.prototype.handleOnError=function(e){var t=this.props.onError;t&&t(e)},t.prototype.handlePick=function(e){var t=this,r=this.props.path||"",n=this.props,i=n.textKey,a=n.level,o=n.fileToKey,s=n.track,u=n.identityId,c=e.file,p=(e.name,e.size,e.type),l=i||r+or(e,o);if(!$t.a||"function"!==typeof $t.a.put)throw new Error("No Storage module found, please ensure @aws-amplify/storage is imported");$t.a.put(l,c,{level:a||"public",contentType:p,track:s}).then((function(e){hr.debug("handle pick data",e),t.getText(l,a,s,u)})).catch((function(e){return hr.debug("handle pick error",e)}))},t.prototype.handleClick=function(e){var t=this.props.onClick;t&&t(e)},t.prototype.componentDidMount=function(){this._isMounted=!0,this.load()},t.prototype.componentWillUnmount=function(){this._isMounted=!1},t.prototype.componentDidUpdate=function(e){(e.path!==this.props.path||e.textKey!==this.props.textKey||e.body!==this.props.body)&&this.load()},t.prototype.textEl=function(e,t){if(!e)return null;var r=this.props.selected;return o.createElement("div",{style:{position:"relative"},onClick:this.handleClick},o.createElement("pre",{style:t.pre},e),o.createElement("div",{style:r?t.overlaySelected:t.overlay}))},t.prototype.render=function(){var e=this.props,t=e.hidden,r=e.style,n=e.picker,i=e.translate,a=e.textKey,s=this.state.text;if(i&&(s="string"===typeof i?i:i({type:"text",key:a,content:s})),!s&&!n)return null;var u=this.props.theme||xt.c,c=t?xt.c.hidden:Object.assign({},u.text,r);return o.createElement("div",{style:c},c?this.textEl(s,u):null,n?o.createElement("div",null,o.createElement(dr,{key:"picker",onPick:this.handlePick,theme:u})):null)},t}(o.Component),br=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),gr=new n.c("Storage.S3Album"),Sr=(function(e){function t(t){var r=e.call(this,t)||this;return r._isMounted=!1,r.handlePick=r.handlePick.bind(r),r.handleClick=r.handleClick.bind(r),r.list=r.list.bind(r),r.marshal=r.marshal.bind(r),r.state={items:[],ts:(new Date).getTime()},r}br(t,e),t.prototype.getKey=function(e){var t=this.props.fileToKey,r=e.name,n=e.size,i=e.type,a=encodeURI(r);if(t){var o=typeof t;(a="string"===o?t:"function"===o?t({name:r,size:n,type:i}):encodeURI(JSON.stringify(t)))||(gr.debug("key is empty"),a="empty_key")}return a.replace(/\s/g,"_")},t.prototype.handlePick=function(e){var t=this,r=this.props,n=r.onPick,i=r.onLoad,a=r.onError,o=r.track,s=r.level;n&&n(e);var u=this.props.path||"",c=e.file,p=(e.name,e.size,e.type),l=u+this.getKey(e);if(!$t.a||"function"!==typeof $t.a.put)throw new Error("No Storage module found, please ensure @aws-amplify/storage is imported");$t.a.put(l,c,{level:s||"public",contentType:p,track:o}).then((function(e){gr.debug("handle pick data",e);var r=t.state.items;if(0===r.filter((function(e){return e.key===l})).length){var n=r.concat(e);t.marshal(n)}else gr.debug("update an item");i&&i(e)})).catch((function(e){gr.debug("handle pick error",e),a&&a(e)})),this._isMounted&&this.setState({ts:(new Date).getTime()})},t.prototype.handleClick=function(e){var t=this.props,r=t.onClickItem,n=t.select,i=t.onSelect;(r&&r(e),n)&&(e.selected=!e.selected,this._isMounted&&this.setState({items:this.state.items.slice()}),i&&i(e,this.state.items.filter((function(e){return e.selected}))))},t.prototype.componentDidMount=function(){this._isMounted=!0,this.list()},t.prototype.componentWillUnmount=function(){this._isMounted=!1},t.prototype.componentDidUpdate=function(e,t){this.props.path===e.path&&this.props.ts===e.ts&&this.props.select===e.select||(this.props.select||this.state.items.forEach((function(e){return e.selected=!1})),this.props.onSelect&&this.props.onSelect(null,[]),this.list())},t.prototype.list=function(){var e=this,t=this.props,r=t.path,n=t.level,i=t.track,a=t.identityId;if(gr.debug("Album path: "+r),!$t.a||"function"!==typeof $t.a.list)throw new Error("No Storage module found, please ensure @aws-amplify/storage is imported");return $t.a.list(r,{level:n||"public",track:i,identityId:a}).then((function(t){gr.debug("album list",t),e.marshal(t)})).catch((function(e){return gr.warn(e),[]}))},t.prototype.contentType=function(e){return n.j.filenameToContentType(e.key,"image/*")},t.prototype.marshal=function(e){var t=this,r=this.props.contentType||"";e.forEach((function(e){if(!e.contentType){var n="string"===typeof r;e.contentType=n?r:r(e),e.contentType||(e.contentType=t.contentType(e))}}));var n=this.filter(e);n=this.sort(n),this._isMounted&&this.setState({items:n})},t.prototype.filter=function(e){var t=this.props.filter;return t?t(e):e},t.prototype.sort=function(e){var t=this.props.sort,r=typeof t;if("function"===r)return t(e);if(["string","undefined"].includes(r)){var i=(t||"lastModified").split(/\s+/),a=i[0],o=i.length>1?i[1]:"";return o="lastModified"===a?"asc"===o?"asc":"desc":"desc"===o?"desc":"asc",n.j.sortByField(e,a,o),e}return gr.warn("invalid sort. done nothing. should be a string or function"),e},t.prototype.render=function(){var e=this,t=this.props,r=t.picker,i=t.translateItem,a=t.level,s=t.identityId,u=this.state,c=u.items,p=u.ts,l=this.props.pickerTitle||"Pick",m=this.props.theme||xt.c,d=c.map((function(t){return t.contentType&&n.j.isTextFile(t.contentType)?o.createElement(fr,{key:t.key,textKey:t.key,theme:m,style:m.albumText,selected:t.selected,translate:i,level:a,identityId:s,onClick:function(){return e.handleClick(t)}}):o.createElement(cr,{key:t.key,imgKey:t.key,theme:m,style:m.albumPhoto,selected:t.selected,translate:i,level:a,identityId:s,onClick:function(){return e.handleClick(t)}})}));return o.createElement("div",null,o.createElement("div",{style:m.album},d),r?o.createElement(rr,{key:p,title:l,accept:"image/*, text/*",onPick:this.handlePick,theme:m}):null)}}(o.Component),function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}()),vr=function(){return(vr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1&&void 0!==arguments[1]?arguments[1]:{},r=t.htmlProps,n=void 0===r?u:r,a=t.includeAria,s=void 0===a||a,c={},p={};return o()(e,(function(e,t){var r=s&&(/^aria-.*$/.test(t)||"role"===t);(i()(n,t)||r?c:p)[t]=e})),[c,p]}},function(e,t,r){var n=r(841),i=r(842),a=r(843);e.exports=function(e){return n(e)||i(e)||a()}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(1),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"===typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function d(){s.apply(this,arguments),this.toType=function(e){var t=i.base64.decode(e);if(this.isSensitive&&i.isNode()&&"function"===typeof i.Buffer.alloc){var r=i.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=i.base64.encode}function y(){d.apply(this,arguments)}function h(){s.apply(this,arguments),this.toType=function(e){return"boolean"===typeof e?e:null===e||void 0===e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:p,map:l,boolean:h,timestamp:function(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)a(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)a(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)a(this,"timestampFormat","rfc822");else if("querystring"===this.location)a(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":a(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":a(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"===typeof e.toUTCString?e:"string"===typeof e||"number"===typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:m,base64:y,binary:d},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var n=s.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter((function(e){return!e.match(/documentation/)})));var a=function(){n.constructor.call(this,e,t,r)};return a.prototype=n,new a}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var o=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+o)},s.shapes={StructureShape:c,ListShape:p,MapShape:l,StringShape:m,BooleanShape:h,Base64Shape:y},e.exports=s},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n=r(67).Symbol;e.exports=n},function(e,t,r){var n=r(33),i=r(168),a=r(783),o=r(84);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:a(o(e))}},function(e,t,r){var n=r(258);e.exports=function(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}},function(e,t,r){var n=r(134),i=r(263),a=r(265);e.exports=function(e,t){return a(i(e,t,n),e+"")}},function(e,t,r){"use strict";e.exports=r(804)},function(e,t,r){e.exports=r(411)},function(e,t,r){r(12);var n=r(5),i=n.Service,a=n.apiLoader;a.services.rekognition={},n.Rekognition=i.defineService("rekognition",["2016-06-27"]),Object.defineProperty(a.services.rekognition,"2016-06-27",{get:function(){var e=r(440);return e.paginators=r(441).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Rekognition},function(e,t,r){"use strict";t.a=function(e,t){var r=e.handledProps,n=void 0===r?[]:r;return Object.keys(t).reduce((function(e,r){return"childKey"===r?e:(-1===n.indexOf(r)&&(e[r]=t[r]),e)}),{})}},function(e,t,r){"use strict";t.a=function(e,t,r){var n=e.defaultProps,i=void 0===n?{}:n;if(t.as&&t.as!==i.as)return t.as;if(r){var a=r();if(a)return a}return t.href?"a":i.as||"div"}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n,i=r(31);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(n||(n={}));var a=function(){function e(e){var t=this;this._state=n.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(n.RESOLVED,e)},this._reject=function(e){t._setResult(n.REJECTED,e)},this._setResult=function(e,r){t._state===n.PENDING&&(Object(i.m)(r)?r.then(t._resolve,t._reject):(t._state=e,t._value=r,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){t._state!==n.PENDING&&(t._state===n.REJECTED?t._handlers.forEach((function(e){e.onrejected&&e.onrejected(t._value)})):t._handlers.forEach((function(e){e.onfulfilled&&e.onfulfilled(t._value)})),t._handlers=[])};try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,r){r(t)}))},e.all=function(t){return new e((function(r,n){if(Array.isArray(t))if(0!==t.length){var i=t.length,a=[];t.forEach((function(t,o){e.resolve(t).then((function(e){a[o]=e,0===(i-=1)&&r(a)})).then(null,n)}))}else r([]);else n(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,r){var n=this;return new e((function(e,i){n._attachHandler({onfulfilled:function(r){if(t)try{return void e(t(r))}catch(n){return void i(n)}else e(r)},onrejected:function(t){if(r)try{return void e(r(t))}catch(n){return void i(n)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var r=this;return new e((function(e,n){var i,a;return r.then((function(e){a=!1,i=e,t&&t()}),(function(e){a=!0,i=e,t&&t()})).then((function(){a?n(i):e(i)}))}))},e}()},function(e,t,r){"use strict";var n={};r.r(n),r.d(n,"initialize",(function(){return V})),r.d(n,"ga",(function(){return j})),r.d(n,"set",(function(){return z})),r.d(n,"send",(function(){return K})),r.d(n,"pageview",(function(){return W})),r.d(n,"modalview",(function(){return H})),r.d(n,"timing",(function(){return J})),r.d(n,"event",(function(){return Q})),r.d(n,"exception",(function(){return Z})),r.d(n,"plugin",(function(){return Y})),r.d(n,"outboundLink",(function(){return $})),r.d(n,"testModeAPI",(function(){return X})),r.d(n,"default",(function(){return ee}));var i=r(0),a=r.n(i),o=r(9),s=r.n(o);function u(e){console.warn("[react-ga]",e)}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 p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m(e,t){for(var r=0;r0&&t+e.length!==r.length&&e.search(I)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&r.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})):e}var T=function(e){var t,r,n,i,a,o,s,u="https://www.google-analytics.com/analytics.js";e&&e.gaAddress?u=e.gaAddress:e&&e.debug&&(u="https://www.google-analytics.com/analytics_debug.js"),t=window,r=document,n="script",i=u,a="ga",t.GoogleAnalyticsObject=a,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*new Date,o=r.createElement(n),s=r.getElementsByTagName(n)[0],o.async=1,o.src=i,s.parentNode.insertBefore(o,s)};function k(e){console.info("[react-ga]",e)}var A=[],D={calls:A,ga:function(){for(var e=arguments.length,t=new Array(e),r=0;r=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){return(x="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 _(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t1?t-1:0),n=1;n0&&(B.apply(void 0,t),q&&(k("called ga('arguments');"),k("with arguments: ".concat(JSON.stringify(t))))),window.ga}function z(e,t){e?"object"===x(e)?(0===Object.keys(e).length&&u("empty `fieldsObject` given to .set()"),G(t,"set",e),q&&(k("called ga('set', fieldsObject);"),k("with fieldsObject: ".concat(JSON.stringify(e))))):u("Expected `fieldsObject` arg to be an Object"):u("`fieldsObject` is required in .set()")}function K(e,t){G(t,"send",e),q&&(k("called ga('send', fieldObject);"),k("with fieldObject: ".concat(JSON.stringify(e))),k("with trackers: ".concat(JSON.stringify(t))))}function W(e,t,r){if(e){var n=v(e);if(""!==n){var i={};if(r&&(i.title=r),G(t,"send",function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,r=e.variable,n=e.value,i=e.label,a=arguments.length>1?arguments[1]:void 0;if(t&&r&&n&&"number"===typeof n){var o={hitType:"timing",timingCategory:U(t),timingVar:U(r),timingValue:n};i&&(o.timingLabel=U(i)),K(o,a)}else u("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number")}function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,r=e.action,n=e.label,i=e.value,a=e.nonInteraction,o=e.transport,s=R(e,["category","action","label","value","nonInteraction","transport"]),c=arguments.length>1?arguments[1]:void 0;if(t&&r){var p={hitType:"event",eventCategory:U(t),eventAction:U(r)};n&&(p.eventLabel=U(n)),"undefined"!==typeof i&&("number"!==typeof i?u("Expected `args.value` arg to be a Number."):p.eventValue=i),"undefined"!==typeof a&&("boolean"!==typeof a?u("`args.nonInteraction` must be a boolean."):p.nonInteraction=a),"undefined"!==typeof o&&("string"!==typeof o?u("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(o)&&u("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),p.transport=o)),Object.keys(s).filter((function(e){return"dimension"===e.substr(0,"dimension".length)})).forEach((function(e){p[e]=s[e]})),Object.keys(s).filter((function(e){return"metric"===e.substr(0,"metric".length)})).forEach((function(e){p[e]=s[e]})),K(p,c)}else u("args.category AND args.action are required in event()")}function Z(e,t){var r=e.description,n=e.fatal,i={hitType:"exception"};r&&(i.exDescription=U(r)),"undefined"!==typeof n&&("boolean"!==typeof n?u("`args.fatal` must be a boolean."):i.exFatal=n),K(i,t)}var Y={require:function(e,t,r){if(e){var n=v(e);if(""!==n){var i=r?"".concat(r,".require"):"require";if(t){if("object"!==x(t))return void u("Expected `options` arg to be an Object");0===Object.keys(t).length&&u("Empty `options` given to .require()"),j(i,n,t),q&&k("called ga('require', '".concat(n,"', ").concat(JSON.stringify(t)))}else j(i,n),q&&k("called ga('require', '".concat(n,"');"))}else u("`name` cannot be an empty string in .require()")}else u("`name` is required in .require()")},execute:function(e,t){var r,n;if(1===(arguments.length<=2?0:arguments.length-2)?r=arguments.length<=2?void 0:arguments[2]:(n=arguments.length<=2?void 0:arguments[2],r=arguments.length<=3?void 0:arguments[3]),"string"!==typeof e)u("Expected `pluginName` arg to be a String.");else if("string"!==typeof t)u("Expected `action` arg to be a String.");else{var i="".concat(e,":").concat(t);r=r||null,n&&r?(j(i,n,r),q&&(k("called ga('".concat(i,"');")),k('actionType: "'.concat(n,'" with payload: ').concat(JSON.stringify(r))))):r?(j(i,r),q&&(k("called ga('".concat(i,"');")),k("with payload: ".concat(JSON.stringify(r))))):(j(i),q&&k("called ga('".concat(i,"');")))}}};function $(e,t,r){if("function"===typeof t)if(e&&e.label){var n={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:U(e.label)},i=!1,a=setTimeout((function(){i=!0,t()}),250);n.hitCallback=function(){clearTimeout(a),i||t()},K(n,r)}else u("args.label is required in outboundLink()");else u("hitCallback function is required")}var X=D,ee={initialize:V,ga:j,set:z,send:K,pageview:W,modalview:H,timing:J,event:Q,exception:Z,plugin:Y,outboundLink:$,testModeAPI:D};function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}S.origTrackLink=S.trackLink,S.trackLink=$;var ne=S;t.a=function(e){for(var t=1;t=0?"&":"?";var u=[];n.arrayEach(Object.keys(o).sort(),(function(e){Array.isArray(o[e])||(o[e]=[o[e]]);for(var t=0;t-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"===typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"===typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},function(e,t,r){var n=r(732),i=r(733),a=r(734),o=r(735),s=r(736);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e>>7)^(y<<14|y>>>18)^y>>>3,f=c[d-2],b=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;c[d]=h+c[d-7]+b+c[d-16]}var g=n&i^n&a^i&a,S=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),v=m+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&p^~s&l)+u[d]+c[d];m=l,l=p,p=s,s=o+v|0,o=a,a=i,i=n,n=v+(S+g)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+a|0,r[3]=r[3]+o|0,r[4]=r[4]+s|0,r[5]=r[5]+p|0,r[6]=r[6]+l|0,r[7]=r[7]+m|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(p),t.HmacSHA256=a._createHmacHelper(p)}(Math),i.SHA256)}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(59),i=r(76),a=r(1),o=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=new a.c("AbstractConvertPredictionsProvider"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getCategory=function(){return"Convert"},t.prototype.convert=function(e){return Object(n.m)(e)?(s.debug("translateText"),this.translateText(e)):Object(n.l)(e)?(s.debug("textToSpeech"),this.convertTextToSpeech(e)):Object(n.j)(e)?(s.debug("textToSpeech"),this.convertSpeechToText(e)):void 0},t.prototype.translateText=function(e){throw new Error("convertText is not implemented by this provider")},t.prototype.convertTextToSpeech=function(e){throw new Error("convertTextToSpeech is not implemented by this provider")},t.prototype.convertSpeechToText=function(e){throw new Error("convertSpeechToText is not implemented by this provider")},t}(i.c)},function(e,t,r){var n=r(72),i=r(33),a=r(68),o="[object String]";e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&n(e)==o}},function(e,t,r){!function(t,n){var i;e.exports=(i=r(44),function(){var e=i,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var r=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a>>6-o%4*2;i[a>>>2]|=(s|u)<<24-a%4*8,a++}return t.create(i,a)}(e,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),i.enc.Base64)}()},function(e,t,r){r(12);var n=r(5),i=n.Service,a=n.apiLoader;a.services.lexruntime={},n.LexRuntime=i.defineService("lexruntime",["2016-11-28"]),Object.defineProperty(a.services.lexruntime,"2016-11-28",{get:function(){var e=r(427);return e.paginators=r(428).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.LexRuntime},function(e,t,r){var n=r(729)(r(180));e.exports=n},function(e,t,r){var n=r(72),i=r(802),a=r(68),o="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,p=u.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!a(e)||n(e)!=o)return!1;var t=i(e);if(null===t)return!0;var r=p.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}},function(e,t,r){var n=r(810),i=r(84),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(a,n).replace(o,"")}},function(e,t,r){var n=r(247),i=r(823),a=r(82),o=r(33);e.exports=function(e,t){return(o(e)?n:i)(e,a(t,3))}},function(e,t,r){"use strict";function n(e){return(n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return(i="function"===typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}r.d(t,"a",(function(){return i}))},function(e,t,r){"use strict";var n=r(3),i=r.n(n),a=r(16),o=r.n(a),s=r(17),u=r.n(s),c=r(18),p=r.n(c),l=r(15),m=r.n(l),d=r(4),y=r.n(d),h=r(19),f=r.n(h),b=r(2),g=r.n(b),S=r(48),v=r.n(S),I=r(11),N=r.n(I),C=r(6),T=r.n(C),k=(r(9),r(0)),A=r.n(k),D=r(28),R=r(116),P=r(117),E=r(7),x=r(181),_=r(78),w=r(307);function q(e){var t=e.children,r=e.className,n=e.content,a=T()("detail",r),o=Object(R.a)(q,e),s=Object(P.a)(q,e);return A.a.createElement(s,i()({},o,{className:a}),E.a.isNil(t)?n:t)}q.handledProps=["as","children","className","content"],q.propTypes={},q.create=Object(x.f)(q,(function(e){return{content:e}}));var M=q;function O(e){var t=e.children,r=e.circular,n=e.className,a=e.color,o=e.content,s=e.size,u=e.tag,c=T()("ui",a,s,Object(D.a)(r,"circular"),Object(D.a)(u,"tag"),"labels",n),p=Object(R.a)(O,e),l=Object(P.a)(O,e);return A.a.createElement(l,i()({},p,{className:c}),E.a.isNil(t)?o:t)}O.handledProps=["as","children","circular","className","color","content","size","tag"],O.propTypes={};var L=O;r.d(t,"a",(function(){return B}));var B=function(e){function t(){var e,r;o()(this,t);for(var n=arguments.length,i=new Array(n),a=0;a=0?n.__spread(this._breadcrumbs,[r]).slice(-t):n.__spread(this._breadcrumbs,[r]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=n.__assign({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=n.__assign({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=n.__assign({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=n.__assign({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._span&&(e.contexts=n.__assign({trace:this._span.getTraceContext()},e.contexts)),this._applyFingerprint(e),e.breadcrumbs=n.__spread(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(n.__spread(u(),this._eventProcessors),e,t)},e}();function u(){var e=Object(o.g)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function c(e){u().push(e)}},function(e,t){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u0)try{var i=JSON.parse(r.body.toString());(i.__type||i.code)&&(t.code=(i.__type||i.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new a;e.data=n.parse(t,r)}}}},function(e,t,r){var n=r(32);function i(){}function a(e,t){if(t&&void 0!==e&&null!==e)switch(t.type){case"structure":return function(e,t){var r={};return n.each(e,(function(e,n){var i=t.members[e];if(i){if("body"!==i.location)return;var o=i.isLocationName?i.name:e,s=a(n,i);void 0!==s&&(r[o]=s)}})),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,(function(e,n){var i=a(n,t.value);void 0!==i&&(r[e]=i)})),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,(function(e){var n=a(e,t.member);void 0!==n&&r.push(n)})),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(a(e,t))},e.exports=i},function(e,t,r){var n=r(32);function i(){}function a(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;var r={},i=t.members;return n.each(i,(function(t,n){var i=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var o=a(e[i],n);void 0!==o&&(r[t]=o)}})),r}(e,t);case"map":return function(e,t){if(null==e)return;var r={};return n.each(e,(function(e,n){var i=a(n,t.value);r[e]=void 0===i?null:i})),r}(e,t);case"list":return function(e,t){if(null==e)return;var r=[];return n.arrayEach(e,(function(e){var n=a(e,t.member);void 0===n?r.push(null):r.push(n)})),r}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return a(JSON.parse(e),t)},e.exports=i},function(e,t,r){var n=r(32),i=r(5);e.exports={populateHostPrefix:function(e){if(!e.service.config.hostPrefixEnabled)return e;var t=e.service.api.operations[e.operation];if(function(e){var t=e.service.api,r=t.operations[e.operation],i=t.endpointOperation&&t.endpointOperation===n.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===i}(e))return e;if(t.endpoint&&t.endpoint.hostPrefix){var r=function(e,t,r){return n.each(r.members,(function(r,i){if(!0===i.hostLabel){if("string"!==typeof t[r]||""===t[r])throw n.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"});var a=new RegExp("\\{"+r+"\\}","g");e=e.replace(a,t[r])}})),e}(t.endpoint.hostPrefix,e.params,t.input);!function(e,t){e.host&&(e.host=t+e.host);e.hostname&&(e.hostname=t+e.hostname)}(e.httpRequest.endpoint,r),function(e){var t=e.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;n.arrayEach(t,(function(e){if(!e.length||e.length<1||e.length>63)throw n.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw i.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}))}(e.httpRequest.endpoint.hostname)}return e}}},function(e,t,r){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,i){if(e===i)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(i))return!1;if(!0===t(e)){if(e.length!==i.length)return!1;for(var a=0;a":!0,"=":!0,"!":!0},f={" ":!0,"\t":!0,"\n":!0};function b(e){return e>="0"&&e<="9"||"-"===e}function g(){}g.prototype={tokenize:function(e){var t,r,n,i,a=[];for(this._current=0;this._current="a"&&i<="z"||i>="A"&&i<="Z"||"_"===i)t=this._current,r=this._consumeUnquotedIdentifier(e),a.push({type:"UnquotedIdentifier",value:r,start:t});else if(void 0!==y[e[this._current]])a.push({type:y[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(b(e[this._current]))n=this._consumeNumber(e),a.push(n);else if("["===e[this._current])n=this._consumeLBracket(e),a.push(n);else if('"'===e[this._current])t=this._current,r=this._consumeQuotedIdentifier(e),a.push({type:"QuotedIdentifier",value:r,start:t});else if("'"===e[this._current])t=this._current,r=this._consumeRawStringLiteral(e),a.push({type:"Literal",value:r,start:t});else if("`"===e[this._current]){t=this._current;var o=this._consumeLiteral(e);a.push({type:"Literal",value:o,start:t})}else if(void 0!==h[e[this._current]])a.push(this._consumeOperator(e));else if(void 0!==f[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,a.push({type:"And",value:"&&",start:t})):a.push({type:"Expref",value:"&",start:t});else{if("|"!==e[this._current]){var s=new Error("Unknown character:"+e[this._current]);throw s.name="LexerError",s}t=this._current,this._current++,"|"===e[this._current]?(this._current++,a.push({type:"Or",value:"||",start:t})):a.push({type:"Pipe",value:"|",start:t})}return a},_consumeUnquotedIdentifier:function(e){var t,r=this._current;for(this._current++;this._current="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"_"===t);)this._current++;return e.slice(r,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var r=e.length;'"'!==e[this._current]&&this._current"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,n=e.length;"`"!==e[this._current]&&this._current=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(t){return!1}}};var S={};function v(){}function I(e){this.runtime=e}function N(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[o]}]},avg:{_func:this._functionAvg,_signature:[{types:[m]}]},ceil:{_func:this._functionCeil,_signature:[{types:[o]}]},contains:{_func:this._functionContains,_signature:[{types:[u,c]},{types:[s]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[u]},{types:[u]}]},floor:{_func:this._functionFloor,_signature:[{types:[o]}]},length:{_func:this._functionLength,_signature:[{types:[u,c,p]}]},map:{_func:this._functionMap,_signature:[{types:[l]},{types:[c]}]},max:{_func:this._functionMax,_signature:[{types:[m,d]}]},merge:{_func:this._functionMerge,_signature:[{types:[p],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[c]},{types:[l]}]},sum:{_func:this._functionSum,_signature:[{types:[m]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[u]},{types:[u]}]},min:{_func:this._functionMin,_signature:[{types:[m,d]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[c]},{types:[l]}]},type:{_func:this._functionType,_signature:[{types:[s]}]},keys:{_func:this._functionKeys,_signature:[{types:[p]}]},values:{_func:this._functionValues,_signature:[{types:[p]}]},sort:{_func:this._functionSort,_signature:[{types:[d,m]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[c]},{types:[l]}]},join:{_func:this._functionJoin,_signature:[{types:[u]},{types:[d]}]},reverse:{_func:this._functionReverse,_signature:[{types:[u,c]}]},to_array:{_func:this._functionToArray,_signature:[{types:[s]}]},to_string:{_func:this._functionToString,_signature:[{types:[s]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[s]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[s],variadic:!0}]}}}S.EOF=0,S.UnquotedIdentifier=0,S.QuotedIdentifier=0,S.Rbracket=0,S.Rparen=0,S.Comma=0,S.Rbrace=0,S.Number=0,S.Current=0,S.Expref=0,S.Pipe=1,S.Or=2,S.And=3,S.EQ=5,S.GT=5,S.LT=5,S.GTE=5,S.LTE=5,S.NE=5,S.Flatten=9,S.Star=20,S.Filter=21,S.Dot=40,S.Not=45,S.Lbrace=50,S.Lbracket=55,S.Lparen=60,v.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw n.name="ParserError",n}return t},_loadTokens:function(e){var t=(new g).tokenize(e);t.push({type:"EOF",value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),n=this._lookahead(0);e=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(S[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n=[],i=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),i.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),r={type:"KeyValuePair",name:t,value:this.expression(0)},n.push(r),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:n}}},I.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,a){var o,s,u,c,p,l,m,d,y;switch(e.type){case"Field":return null===a?null:r(a)?void 0===(l=a[e.name])?null:l:null;case"Subexpression":for(u=this.visit(e.children[0],a),y=1;y0)for(y=g;yS;y+=v)u.push(a[y]);return u;case"Projection":var I=this.visit(e.children[0],a);if(!t(I))return null;for(d=[],y=0;yp;break;case"GTE":u=c>=p;break;case"LT":u=c=e&&(t=r<0?e-1:e),t}},N.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n,i,a,o;if(r[r.length-1].variadic){if(t.length=0;n--)r+=t[n];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],i=e[1],a=0;a0){if(this._getTypeName(e[0][0])===o)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n0){if(this._getTypeName(e[0][0])===o)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;ns?1:os&&(s=r,t=i[c]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],i=e[0],a=this.createKeyFunction(n,[o,u]),s=1/0,c=0;c-1&&e%1==0&&e<=r}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){var n=r(248),i=r(777),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},function(e,t,r){var n=r(778),i=r(158),a=r(779),o=r(250),s=r(780),u=r(72),c=r(243),p=c(n),l=c(i),m=c(a),d=c(o),y=c(s),h=u;(n&&"[object DataView]"!=h(new n(new ArrayBuffer(1)))||i&&"[object Map]"!=h(new i)||a&&"[object Promise]"!=h(a.resolve())||o&&"[object Set]"!=h(new o)||s&&"[object WeakMap]"!=h(new s))&&(h=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case p:return"[object DataView]";case l:return"[object Map]";case m:return"[object Promise]";case d:return"[object Set]";case y:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,r){var n=r(33),i=r(133),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||(o.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,r){var n=r(262);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},function(e,t){e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++ni?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n0&&a(p)?r>1?e(p,r-1,a,o,s):n(s,p):o||(s[s.length]=p)}return s}},function(e,t,r){r(12);var n=r(5),i=n.Service,a=n.apiLoader;a.services.kinesis={},n.Kinesis=i.defineService("kinesis",["2013-12-02"]),Object.defineProperty(a.services.kinesis,"2013-12-02",{get:function(){var e=r(398);return e.paginators=r(399).pagination,e.waiters=r(400).waiters,e},enumerable:!0,configurable:!0}),e.exports=n.Kinesis},function(e,t,r){r(12);var n=r(5),i=n.Service,a=n.apiLoader;a.services.firehose={},n.Firehose=i.defineService("firehose",["2015-08-04"]),Object.defineProperty(a.services.firehose,"2015-08-04",{get:function(){var e=r(401);return e.paginators=r(402).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Firehose},function(e,t,r){r(12);var n=r(5),i=n.Service,a=n.apiLoader;a.services.personalizeevents={},n.PersonalizeEvents=i.defineService("personalizeevents",["2018-03-22"]),Object.defineProperty(a.services.personalizeevents,"2018-03-22",{get:function(){var e=r(403);return e.paginators=r(404).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.PersonalizeEvents},function(e,t,r){r(12);var n=r(5),i=n.Service,a=n.apiLoader;a.services.s3={},n.S3=i.defineService("s3",["2006-03-01"]),r(406),Object.defineProperty(a.services.s3,"2006-03-01",{get:function(){var e=r(408);return e.paginators=r(409).pagination,e.waiters=r(410).waiters,e},enumerable:!0,configurable:!0}),e.exports=n.S3},function(e,t,r){r(12);var n=r(5),i=n.Service,a=n.apiLoader;a.services.translate={},n.Translate=i.defineService("translate",["2017-07-01"]),Object.defineProperty(a.services.translate,"2017-07-01",{get:function(){var e=r(429);return e.paginators=r(430).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Translate},function(e,t,r){r(12);var n=r(5),i=n.Service,a=n.apiLoader;a.services.polly={},n.Polly=i.defineService("polly",["2016-06-10"]),r(431),Object.defineProperty(a.services.polly,"2016-06-10",{get:function(){var e=r(433);return e.paginators=r(434).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Polly},function(e,t,r){var n=r(257),i=r(82),a=r(111),o=Math.max;e.exports=function(e,t,r){var s=null==e?0:e.length;if(!s)return-1;var u=null==r?0:a(r);return u<0&&(u=o(s+u,0)),n(e,i(t,3),u)}},function(e,t,r){"use strict";r.d(t,"e",(function(){return k})),r.d(t,"f",(function(){return A})),r.d(t,"a",(function(){return D})),r.d(t,"b",(function(){return R})),r.d(t,"c",(function(){return P})),r.d(t,"d",(function(){return E}));var n=r(24),i=r.n(n),a=(r(74),r(282)),o=r.n(a),s=r(33),u=r.n(s),c=r(143),p=r.n(c),l=r(85),m=r.n(l),d=r(283),y=r.n(d),h=r(139),f=r.n(h),b=r(284),g=r.n(b),S=r(20),v=r.n(S),I=r(6),N=r.n(I),C=r(0),T=r.n(C);function k(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("function"!==typeof e&&"string"!==typeof e)throw new Error("createShorthand() Component must be a string or function.");if(v()(r)||g()(r))return null;var a=f()(r),s=y()(r),c=m()(r),l=Object(C.isValidElement)(r),d=p()(r),h=a||s||u()(r);if(!c&&!l&&!d&&!h)return null;var b=n.defaultProps,S=void 0===b?{}:b,I=l&&r.props||d&&r||h&&t(r),k=n.overrideProps,A=void 0===k?{}:k;A=m()(A)?A(i()({},S,I)):A;var D=i()({},S,I,A);if(S.className||A.className||I.className){var R=N()(S.className,A.className,I.className);D.className=o()(R.split(" ")).join(" ")}if((S.style||A.style||I.style)&&(D.style=i()({},S.style,I.style,A.style)),v()(D.key)){var P=D.childKey,E=n.autoGenerateKey,x=void 0===E||E;v()(P)?x&&(a||s)&&(D.key=r):(D.key="function"===typeof P?P(D):P,delete D.childKey)}return l?Object(C.cloneElement)(r,D):h||d?T.a.createElement(e,D):c?r(e,D,D.children):void 0}function A(e,t){if("function"!==typeof e&&"string"!==typeof e)throw new Error("createShorthandFactory() Component must be a string or function.");return function(r,n){return k(e,t,r,n)}}k.handledProps=[];var D=A("div",(function(e){return{children:e}})),R=(A("iframe",(function(e){return{src:e}})),A("img",(function(e){return{src:e}})),A("input",(function(e){return{type:e}}))),P=A("label",(function(e){return{children:e}})),E=A("p",(function(e){return{children:e}}))},function(e,t){e.exports=function(){}},function(e,t,r){var n=r(829),i=r(99),a=r(830),o=r(33);e.exports=function(e,t){return(o(e)?n:i)(e,a(t))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(438);t.fromUtf8=function(e){var t=n.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},t.toUtf8=function(e){return n.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,r){var n=r(803);e.exports=d,e.exports.parse=a,e.exports.compile=function(e,t){return s(a(e,t))},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=m;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var r,n=[],a=0,o=0,s="",p=t&&t.delimiter||"/";null!=(r=i.exec(e));){var l=r[0],m=r[1],d=r.index;if(s+=e.slice(o,d),o=d+l.length,m)s+=m[1];else{var y=e[o],h=r[2],f=r[3],b=r[4],g=r[5],S=r[6],v=r[7];s&&(n.push(s),s="");var I=null!=h&&null!=y&&y!==h,N="+"===S||"*"===S,C="?"===S||"*"===S,T=r[2]||p,k=b||g;n.push({name:f||a++,prefix:h||"",delimiter:T,optional:C,repeat:N,partial:I,asterisk:!!v,pattern:k?c(k):v?".*":"[^"+u(T)+"]+?"})}}return o])/g,g=/([[}=:>])\s+/g,S=/(\{[^{]+?);(?=\})/g,v=/\s{2,}/g,I=/([^\(])(:+) */g,N=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,k=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,D=/stretch|:\s*\w+\-(?:conte|avail)/,R=/([^-])(image-set\()/,P="-webkit-",E="-moz-",x="-ms-",_=59,w=125,q=123,M=40,O=41,L=91,B=93,U=10,G=13,F=9,V=64,j=32,z=38,K=45,W=95,H=42,J=44,Q=58,Z=39,Y=34,$=47,X=62,ee=43,te=126,re=0,ne=12,ie=11,ae=107,oe=109,se=115,ue=112,ce=111,pe=105,le=99,me=100,de=112,ye=1,he=1,fe=0,be=1,ge=1,Se=1,ve=0,Ie=0,Ne=0,Ce=[],Te=[],ke=0,Ae=null,De=-2,Re=-1,Pe=0,Ee=1,xe=2,_e=3,we=0,qe=1,Me="",Oe="",Le="";function Be(e,t,i,a,o){for(var s,u,p=0,l=0,m=0,d=0,b=0,g=0,S=0,v=0,N=0,T=0,k=0,A=0,D=0,R=0,W=0,ve=0,Te=0,Ae=0,De=0,Re=i.length,Ge=Re-1,We="",He="",Je="",Qe="",Ze="",Ye="";W0&&(He=He.replace(n,"")),He.trim().length>0)){switch(S){case j:case F:case _:case G:case U:break;default:He+=i.charAt(W)}S=_}if(1===Te)switch(S){case q:case w:case _:case Y:case Z:case M:case O:case J:Te=0;case F:case G:case U:case j:break;default:for(Te=0,De=W,b=S,W--,S=_;De0&&(++W,S=b);case q:De=Re}}switch(S){case q:for(b=(He=He.trim()).charCodeAt(0),k=1,De=++W;W0&&(He=He.replace(n,"")),g=He.charCodeAt(1)){case me:case oe:case se:case K:s=t;break;default:s=Ce}if(De=(Je=Be(t,s,Je,g,o+1)).length,Ne>0&&0===De&&(De=He.length),ke>0&&(s=Ue(Ce,He,Ae),u=ze(_e,Je,s,t,he,ye,De,g,o,a),He=s.join(""),void 0!==u&&0===(De=(Je=u.trim()).length)&&(g=0,Je="")),De>0)switch(g){case se:He=He.replace(C,je);case me:case oe:case K:Je=He+"{"+Je+"}";break;case ae:Je=(He=He.replace(y,"$1 $2"+(qe>0?Me:"")))+"{"+Je+"}",Je=1===ge||2===ge&&Ve("@"+Je,3)?"@"+P+Je+"@"+Je:"@"+Je;break;default:Je=He+Je,a===de&&(Qe+=Je,Je="")}else Je="";break;default:Je=Be(t,Ue(t,He,Ae),Je,a,o+1)}Ze+=Je,A=0,Te=0,R=0,ve=0,Ae=0,D=0,He="",Je="",S=i.charCodeAt(++W);break;case w:case _:if((De=(He=(ve>0?He.replace(n,""):He).trim()).length)>1)switch(0===R&&((b=He.charCodeAt(0))===K||b>96&&b<123)&&(De=(He=He.replace(" ",":")).length),ke>0&&void 0!==(u=ze(Ee,He,t,e,he,ye,Qe.length,a,o,a))&&0===(De=(He=u.trim()).length)&&(He="\0\0"),b=He.charCodeAt(0),g=He.charCodeAt(1),b){case re:break;case V:if(g===pe||g===le){Ye+=He+i.charAt(W);break}default:if(He.charCodeAt(De-1)===Q)break;Qe+=Fe(He,b,g,He.charCodeAt(2))}A=0,Te=0,R=0,ve=0,Ae=0,He="",S=i.charCodeAt(++W)}}switch(S){case G:case U:if(l+d+m+p+Ie===0)switch(T){case O:case Z:case Y:case V:case te:case X:case H:case ee:case $:case K:case Q:case J:case _:case q:case w:break;default:R>0&&(Te=1)}l===$?l=0:be+A===0&&a!==ae&&He.length>0&&(ve=1,He+="\0"),ke*we>0&&ze(Pe,He,t,e,he,ye,Qe.length,a,o,a),ye=1,he++;break;case _:case w:if(l+d+m+p===0){ye++;break}default:switch(ye++,We=i.charAt(W),S){case F:case j:if(d+p+l===0)switch(v){case J:case Q:case F:case j:We="";break;default:S!==j&&(We=" ")}break;case re:We="\\0";break;case ne:We="\\f";break;case ie:We="\\v";break;case z:d+l+p===0&&be>0&&(Ae=1,ve=1,We="\f"+We);break;case 108:if(d+l+p+fe===0&&R>0)switch(W-R){case 2:v===ue&&i.charCodeAt(W-3)===Q&&(fe=v);case 8:N===ce&&(fe=N)}break;case Q:d+l+p===0&&(R=W);break;case J:l+m+d+p===0&&(ve=1,We+="\r");break;case Y:case Z:0===l&&(d=d===S?0:0===d?S:d);break;case L:d+l+m===0&&p++;break;case B:d+l+m===0&&p--;break;case O:d+l+p===0&&m--;break;case M:if(d+l+p===0){if(0===A)switch(2*v+3*N){case 533:break;default:k=0,A=1}m++}break;case V:l+m+d+p+R+D===0&&(D=1);break;case H:case $:if(d+p+m>0)break;switch(l){case 0:switch(2*S+3*i.charCodeAt(W+1)){case 235:l=$;break;case 220:De=W,l=H}break;case H:S===$&&v===H&&De+2!==W&&(33===i.charCodeAt(De+2)&&(Qe+=i.substring(De,W+1)),We="",l=0)}}if(0===l){if(be+d+p+D===0&&a!==ae&&S!==_)switch(S){case J:case te:case X:case ee:case O:case M:if(0===A){switch(v){case F:case j:case U:case G:We+="\0";break;default:We="\0"+We+(S===J?"":"\0")}ve=1}else switch(S){case M:R+7===W&&108===v&&(R=0),A=++k;break;case O:0==(A=--k)&&(ve=1,We+="\0")}break;case F:case j:switch(v){case re:case q:case w:case _:case J:case ne:case F:case j:case U:case G:break;default:0===A&&(ve=1,We+="\0")}}He+=We,S!==j&&S!==F&&(T=S)}}N=v,v=S,W++}if(De=Qe.length,Ne>0&&0===De&&0===Ze.length&&0===t[0].length==0&&(a!==oe||1===t.length&&(be>0?Oe:Le)===t[0])&&(De=t.join(",").length+2),De>0){if(s=0===be&&a!==ae?function(e){for(var t,r,i=0,a=e.length,o=Array(a);i1)){if(m=u.charCodeAt(u.length-1),d=r.charCodeAt(0),t="",0!==p)switch(m){case H:case te:case X:case ee:case j:case M:break;default:t=" "}switch(d){case z:r=t+Oe;case te:case X:case ee:case j:case O:case M:break;case L:r=t+r+Oe;break;case Q:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(Se>0){r=t+r.substring(8,l-1);break}default:(p<1||s[p-1].length<1)&&(r=t+Oe+r)}break;case J:t="";default:r=l>1&&r.indexOf(":")>0?t+r.replace(I,"$1"+Oe+"$2"):t+r+Oe}u+=r}o[i]=u.replace(n,"").trim()}return o}(t):t,ke>0&&void 0!==(u=ze(xe,Qe,s,e,he,ye,De,a,o,a))&&0===(Qe=u).length)return Ye+Qe+Ze;if(Qe=s.join(",")+"{"+Qe+"}",ge*fe!=0){switch(2!==ge||Ve(Qe,2)||(fe=0),fe){case ce:Qe=Qe.replace(f,":"+E+"$1")+Qe;break;case ue:Qe=Qe.replace(h,"::"+P+"input-$1")+Qe.replace(h,"::"+E+"$1")+Qe.replace(h,":"+x+"input-$1")+Qe}fe=0}}return Ye+Qe+Ze}function Ue(e,t,r){var n=t.trim().split(p),i=n,a=n.length,o=e.length;switch(o){case 0:case 1:for(var s=0,u=0===o?"":e[0]+" ";s0&&be>0)return i.replace(m,"$1").replace(l,"$1"+Le);break;default:return e.trim()+i.replace(l,"$1"+e.trim())}default:if(r*be>0&&i.indexOf("\f")>0)return i.replace(l,(e.charCodeAt(0)===Q?"":"$1")+e.trim())}return e+i}function Fe(e,t,r,n){var c,p=0,l=e+";",m=2*t+3*r+4*n;if(944===m)return function(e){var t=e.length,r=e.indexOf(":",9)+1,n=e.substring(0,r).trim(),i=e.substring(r,t-1).trim();switch(e.charCodeAt(9)*qe){case 0:break;case K:if(110!==e.charCodeAt(10))break;default:var a=i.split((i="",s)),o=0;for(r=0,t=a.length;oV&&l<90||l>96&&l<123||l===W||l===K&&c.charCodeAt(1)!==K))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Me}}p[r++]=c}i+=(0===o?"":",")+p.join(" ")}}return i=n+i+";",1===ge||2===ge&&Ve(i,1)?P+i+i:i}(l);if(0===ge||2===ge&&!Ve(l,1))return l;switch(m){case 1015:return 97===l.charCodeAt(10)?P+l+l:l;case 951:return 116===l.charCodeAt(3)?P+l+l:l;case 963:return 110===l.charCodeAt(5)?P+l+l:l;case 1009:if(100!==l.charCodeAt(4))break;case 969:case 942:return P+l+l;case 978:return P+l+E+l+l;case 1019:case 983:return P+l+E+l+x+l+l;case 883:return l.charCodeAt(8)===K?P+l+l:l.indexOf("image-set(",11)>0?l.replace(R,"$1"+P+"$2")+l:l;case 932:if(l.charCodeAt(4)===K)switch(l.charCodeAt(5)){case 103:return P+"box-"+l.replace("-grow","")+P+l+x+l.replace("grow","positive")+l;case 115:return P+l+x+l.replace("shrink","negative")+l;case 98:return P+l+x+l.replace("basis","preferred-size")+l}return P+l+x+l+l;case 964:return P+l+x+"flex-"+l+l;case 1023:if(99!==l.charCodeAt(8))break;return c=l.substring(l.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),P+"box-pack"+c+P+l+x+"flex-pack"+c+l;case 1005:return a.test(l)?l.replace(i,":"+P)+l.replace(i,":"+E)+l:l;case 1e3:switch(p=(c=l.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(p)){case 226:c=l.replace(N,"tb");break;case 232:c=l.replace(N,"tb-rl");break;case 220:c=l.replace(N,"lr");break;default:return l}return P+l+x+c+l;case 1017:if(-1===l.indexOf("sticky",9))return l;case 975:switch(p=(l=e).length-10,m=(c=(33===l.charCodeAt(p)?l.substring(0,p):l).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:l=l.replace(c,P+c)+";"+l;break;case 207:case 102:l=l.replace(c,P+(m>102?"inline-":"")+"box")+";"+l.replace(c,P+c)+";"+l.replace(c,x+c+"box")+";"+l}return l+";";case 938:if(l.charCodeAt(5)===K)switch(l.charCodeAt(6)){case 105:return c=l.replace("-items",""),P+l+P+"box-"+c+x+"flex-"+c+l;case 115:return P+l+x+"flex-item-"+l.replace(k,"")+l;default:return P+l+x+"flex-line-pack"+l.replace("align-content","").replace(k,"")+l}break;case 973:case 989:if(l.charCodeAt(3)!==K||122===l.charCodeAt(4))break;case 931:case 953:if(!0===D.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?Fe(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):l.replace(c,P+c)+l.replace(c,E+c.replace("fill-",""))+l;break;case 962:if(l=P+l+(102===l.charCodeAt(5)?x+l:"")+l,r+n===211&&105===l.charCodeAt(13)&&l.indexOf("transform",10)>0)return l.substring(0,l.indexOf(";",27)+1).replace(o,"$1"+P+"$2")+l}return l}function Ve(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10),i=e.substring(r+1,e.length-1);return Ae(2!==t?n:n.replace(A,"$1"),i,t)}function je(e,t){var r=Fe(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(T," or ($1)").substring(4):"("+t+")"}function ze(e,t,r,n,i,a,o,s,u,c){for(var p,l=0,m=t;l0&&(Me=i.replace(d,a===L?"":"-")),a=1,1===be?Le=i:Oe=i;var o,s=[Le];ke>0&&void 0!==(o=ze(Re,r,s,s,he,ye,0,0,0,0))&&"string"==typeof o&&(r=o);var u=Be(Ce,s,r,0,0);return ke>0&&void 0!==(o=ze(De,u,s,s,he,ye,u.length,0,0,0))&&"string"!=typeof(u=o)&&(a=0),Me="",Le="",Oe="",fe=0,he=1,ye=1,ve*a==0?u:u.replace(n,"").replace(b,"").replace(g,"$1").replace(S,"$1").replace(v," ")}return He.use=function e(t){switch(t){case void 0:case null:ke=Te.length=0;break;default:if("function"==typeof t)Te[ke++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r1?t-1:0),n=1;n=y.startTime+p.duration;else if(p.decay)b=h+S/(1-.998)*(1-Math.exp(-(1-.998)*(t-y.startTime))),(l=Math.abs(y.lastPosition-b)<.1)&&(f=b);else{m=void 0!==y.lastTime?y.lastTime:t,S=void 0!==y.lastVelocity?y.lastVelocity:p.initialVelocity,t>m+64&&(m=t);for(var v=Math.floor(t-m),I=0;If:b=e);++r);return r-1}(e,a);return function(e,t,r,n,i,a,o,s,u){var c=u?u(e):e;if(cr){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===i)return n;if(t===r)return e<=t?n:i;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=a(c),n===-1/0?c=-c:i===1/0?c+=n:c=c*(i-n)+n;return c}(e,a[t],a[t+1],i[t],i[t+1],u,o,s,n.map)}}var V=function(e){function t(e,r,n,o){var s;return Object(u.a)(this,t),(s=Object(i.a)(this,Object(a.a)(t).call(this))).calc=void 0,s.payload=e instanceof T&&!(e instanceof t)?e.getPayload():Array.isArray(e)?e:[e],s.calc=F(r,n,o),s}return Object(s.a)(t,e),Object(c.a)(t,[{key:"getValue",value:function(){return this.calc.apply(this,n(this.payload.map((function(e){return e.getValue()}))))}},{key:"updateConfig",value:function(e,t,r){this.calc=F(e,t,r)}},{key:"interpolate",value:function(e,r,n){return new t(this,e,r,n)}}]),t}(T);var j=function(e){function t(e){var r,n;return Object(u.a)(this,t),r=Object(i.a)(this,Object(a.a)(t).call(this)),n=Object(o.a)(r),r.animatedStyles=new Set,r.value=void 0,r.startPosition=void 0,r.lastPosition=void 0,r.lastVelocity=void 0,r.startTime=void 0,r.lastTime=void 0,r.done=!1,r.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},r.value=e,r.startPosition=e,r.lastPosition=e,r}return Object(s.a)(t,e),Object(c.a)(t,[{key:"flush",value:function(){0===this.animatedStyles.size&&function e(t,r){"update"in t?r.add(t):t.getChildren().forEach((function(t){return e(t,r)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(e,t,r){return new V(this,e,t,r)}}]),t}(C),z=function(e){function t(e){var r;return Object(u.a)(this,t),(r=Object(i.a)(this,Object(a.a)(t).call(this))).payload=e.map((function(e){return new j(e)})),r}return Object(s.a)(t,e),Object(c.a)(t,[{key:"setValue",value:function(e,t){var r=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,n){return r.payload[n].setValue(e,t)})):this.payload.forEach((function(r){return r.setValue(e,t)}))}},{key:"getValue",value:function(){return this.payload.map((function(e){return e.getValue()}))}},{key:"interpolate",value:function(e,t){return new V(this,e,t)}}]),t}(T),K=0,W=function(){function e(){var t=this;Object(u.a)(this,e),this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return t.interpolations},this.id=K++}return Object(c.a)(e,[{key:"update",value:function(e){if(!e)return this;var t=v(e),r=t.delay,n=void 0===r?0:r,i=t.to,a=Object(m.a)(t,["delay","to"]);if(h.arr(i)||h.fun(i))this.queue.push(Object(l.a)({},a,{delay:n,to:i}));else if(i){var o={};Object.entries(i).forEach((function(e){var t=e[0],r=e[1],i=Object(l.a)({to:Object(p.a)({},t,r),delay:S(n,t)},a),s=o[i.delay]&&o[i.delay].to;o[i.delay]=Object(l.a)({},o[i.delay],i,{to:Object(l.a)({},s,i.to)})})),this.queue=Object.values(o)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this}},{key:"start",value:function(e){var t,r=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,n=void 0===t?{}:t,i=e.to,a=void 0===i?{}:i;h.obj(n)&&(r.merged=Object(l.a)({},n,r.merged)),h.obj(a)&&(r.merged=Object(l.a)({},r.merged,a))}));var n=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,a){var o=t.delay,s=Object(m.a)(t,["delay"]),u=function(t){a===i.length-1&&n===r.guid&&t&&(r.idle=!0,r.props.onRest&&r.props.onRest(r.merged)),e&&e()},c=h.arr(s.to)||h.fun(s.to);o?setTimeout((function(){n===r.guid&&(c?r.runAsync(s,u):r.diff(s).start(u))}),o):c?r.runAsync(s,u):r.diff(s).start(u)}))}else h.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,U.has(t)||U.add(t),B||(B=!0,P(q||G));return this}},{key:"stop",value:function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this}},{key:"pause",value:function(e){var t;return this.stop(!0),e&&(t=this,U.has(t)&&U.delete(t)),this}},{key:"runAsync",value:function(e,t){var r=this,n=this,i=(e.delay,Object(m.a)(e,["delay"])),a=this.local,o=Promise.resolve(void 0);if(h.arr(i.to))for(var s=function(e){var t=e,n=Object(l.a)({},i,v(i.to[t]));h.arr(n.config)&&(n.config=n.config[t]),o=o.then((function(){if(a===r.guid)return new Promise((function(e){return r.diff(n).start(e)}))}))},u=0;u1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ce(e,t,r){var n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,a=ue(i,n,e+1/3),o=ue(i,n,e),s=ue(i,n,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function pe(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function le(e){return(parseFloat(e)%360+360)%360/360}function me(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function de(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ye(e){var t=function(e){var t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=oe.exec(e))?parseInt(t[1]+"ff",16)>>>0:Z.hasOwnProperty(e)?Z[e]:(t=ee.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|255)>>>0:(t=te.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|me(t[4]))>>>0:(t=ie.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=se.exec(e))?parseInt(t[1],16)>>>0:(t=ae.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=re.exec(e))?(255|ce(le(t[1]),de(t[2]),de(t[3])))>>>0:(t=ne.exec(e))?(ce(le(t[1]),de(t[2]),de(t[3]))|me(t[4]))>>>0:null}(e);if(null===t)return e;var r=(16711680&(t=t||0))>>>16,n=(65280&t)>>>8,i=(255&t)/255;return"rgba(".concat((4278190080&t)>>>24,", ").concat(r,", ").concat(n,", ").concat(i,")")}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,fe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,be=new RegExp("(".concat(Object.keys(Z).join("|"),")"),"g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Se=["Webkit","Ms","Moz","O"];function ve(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return Se.forEach((function(r){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(r,t)]=e[t]})),e}),ge);var Ie={};O((function(e){return new Q(e)})),_("div"),E((function(e){var t=e.output.map((function(e){return e.replace(fe,ye)})).map((function(e){return e.replace(be,ye)})),r=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return r[t].push(+e)}))}));var n=t[0].match(he).map((function(t,n){return F(Object(l.a)({},e,{output:r[n]}))}));return function(e){var r=0;return t[0].replace(he,(function(){return n[r++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,r,n,i){return"rgba(".concat(Math.round(t),", ").concat(Math.round(r),", ").concat(Math.round(n),", ").concat(i,")")}))}})),D(Z),A((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var r=t.style,n=t.children,i=t.scrollTop,a=t.scrollLeft,o=Object(m.a)(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==n&&(e.textContent=n),r)if(r.hasOwnProperty(u)){var c=0===u.indexOf("--"),p=ve(u,r[u],c);"float"===u&&(u="cssFloat"),c?e.style.setProperty(u,p):e.style[u]=p}for(var l in o){var d=s?l:Ie[l]||(Ie[l]=l.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));"undefined"!==typeof e.getAttribute(d)&&e.setAttribute(d,o[l])}}),(function(e){return e}));var Ne,Ce,Te=(Ne=function(e){return Object(d.forwardRef)((function(t,r){var n=f(),i=Object(d.useRef)(!0),a=Object(d.useRef)(null),o=Object(d.useRef)(null),s=Object(d.useCallback)((function(e){var t=a.current;a.current=new L(e,(function(){var e=!1;o.current&&(e=I.fn(o.current,a.current.getAnimatedValue())),o.current&&!1!==e||n()})),t&&t.detach()}),[]);Object(d.useEffect)((function(){return function(){i.current=!1,a.current&&a.current.detach()}}),[]),Object(d.useImperativeHandle)(r,(function(){return M(o,i,n)})),s(t);var u,c=a.current.getValue(),p=(c.scrollTop,c.scrollLeft,Object(m.a)(c,["scrollTop","scrollLeft"])),b=(u=e,!h.fun(u)||u.prototype instanceof y.a.Component?function(e){return o.current=function(e,t){return t&&(h.fun(t)?t(e):h.obj(t)&&(t.current=e)),e}(e,r)}:void 0);return y.a.createElement(e,Object(l.a)({},p,{ref:b}))}))},void 0===(Ce=!1)&&(Ce=!0),function(e){return(h.arr(e)?e:Object.keys(e)).reduce((function(e,t){var r=Ce?t[0].toLowerCase()+t.substring(1):t;return e[r]=Ne(r),e}),Ne)})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"])},,,,,,,function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var r,s,u=o(e),c=1;c0){var l=(t=new n.XML.Parser).parse(o.toString(),u);i.update(e.data,l)}}}},function(e,t,r){var n=r(202),i=r(206),a=r(107),o=r(207),s=r(208),u=r(32),c=u.property,p=u.memoizedProperty;e.exports=function(e,t){var r=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{},c(this,"isApi",!0,!1),c(this,"apiVersion",e.metadata.apiVersion),c(this,"endpointPrefix",e.metadata.endpointPrefix),c(this,"signingName",e.metadata.signingName),c(this,"globalEndpoint",e.metadata.globalEndpoint),c(this,"signatureVersion",e.metadata.signatureVersion),c(this,"jsonVersion",e.metadata.jsonVersion),c(this,"targetPrefix",e.metadata.targetPrefix),c(this,"protocol",e.metadata.protocol),c(this,"timestampFormat",e.metadata.timestampFormat),c(this,"xmlNamespaceUri",e.metadata.xmlNamespace),c(this,"abbreviation",e.metadata.serviceAbbreviation),c(this,"fullName",e.metadata.serviceFullName),c(this,"serviceId",e.metadata.serviceId),p(this,"className",(function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null})),c(this,"operations",new n(e.operations,t,(function(e,r){return new i(e,r,t)}),u.string.lowerFirst,(function(e,t){!0===t.endpointoperation&&c(r,"endpointOperation",u.string.lowerFirst(e))}))),c(this,"shapes",new n(e.shapes,t,(function(e,r){return a.create(r,t)}))),c(this,"paginators",new n(e.paginators,t,(function(e,r){return new o(e,r,t)}))),c(this,"waiters",new n(e.waiters,t,(function(e,r){return new s(e,r,t)}),u.string.lowerFirst)),t.documentation&&(c(this,"documentation",e.documentation),c(this,"documentationUrl",e.documentationUrl))}},function(e,t,r){var n=r(107),i=r(32),a=i.property,o=i.memoizedProperty;e.exports=function(e,t,r){var i=this;r=r||{},a(this,"name",t.name||e),a(this,"api",r.api,!1),t.http=t.http||{},a(this,"endpoint",t.endpoint),a(this,"httpMethod",t.http.method||"POST"),a(this,"httpPath",t.http.requestUri||"/"),a(this,"authtype",t.authtype||""),a(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),o(this,"input",(function(){return t.input?n.create(t.input,r):new n.create({type:"structure"},r)})),o(this,"output",(function(){return t.output?n.create(t.output,r):new n.create({type:"structure"},r)})),o(this,"errors",(function(){var e=[];if(!t.errors)return null;for(var i=0;i-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var a=this,o=i||null;function s(i){if(i&&(o=n.util.error(o||new Error,i),a._haltHandlersOnError))return r.call(a,o);a.callListeners(e,t,r,o)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(a,t.concat([s]));try{u.apply(a,t)}catch(c){o=n.util.error(o||new Error,c)}if(o&&a._haltHandlersOnError)return void r.call(a,o)}r.call(a,o)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,(function(e,r){"function"===typeof r&&(r=[r]),n.util.arrayEach(r,(function(r){t.on(e,r)}))})),t},addNamedListener:function(e,t,r,n){return this[e]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(e,t,r,n){return r._isAsync=!0,this.addNamedListener(e,t,r,n)},addNamedListeners:function(e){var t=this;return e((function(){t.addNamedListener.apply(t,arguments)}),(function(){t.addNamedAsyncListener.apply(t,arguments)})),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},function(e,t,r){var n=r(5);n.Credentials=n.util.inherit({constructor:function(){if(n.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"===typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=n.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh((function(r){r||(t.expired=!1),e&&e(r)})):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load((function(e){n.util.arrayEach(r.refreshCallbacks,(function(r){t?r(e):n.util.defer((function(){r(e)}))})),r.refreshCallbacks.length=0}))},load:function(e){e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},function(e,t,r){var n=r(5);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){var t=this;if(0===t.providers.length)return e(new Error("No providers")),t;if(1===t.resolveCallbacks.push(e)){var r=0,i=t.providers.slice(0);!function e(a,o){if(!a&&o||r===i.length)return n.util.arrayEach(t.resolveCallbacks,(function(e){e(a,o)})),void(t.resolveCallbacks.length=0);var s=i[r++];(o="function"===typeof s?s.call():s).get?o.get((function(t){e(t,t?null:o)})):e(null,o)}()}return t}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},function(e,t,r){var n=r(5),i=n.util.inherit;n.Endpoint=i({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),"undefined"===typeof e||null===e)throw new Error("Invalid endpoint: "+e);if("string"!==typeof e)return n.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:n.config.sslEnabled)?"https":"http")+"://"+e);n.util.update(this,n.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),n.HttpRequest=i({constructor:function(e,t){e=new n.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=n.util.userAgent()},getUserAgentHeaderName:function(){return(n.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"===typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=n.util.queryStringParse(e),n.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new n.Endpoint(e);this.endpoint=t,this.path=t.path||"/"}}),n.HttpResponse=i({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),n.HttpClient=i({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(e,t,r){var n=r(5),i=n.util.inherit;n.Signers.V3=i(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return n.util.arrayEach(this.headersToSign(),(function(t){e.push(t.toLowerCase())})),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),(function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())})),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,(function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)})),e},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),n.util.crypto.sha256(e.join("\n"))}}),e.exports=n.Signers.V3},function(e,t,r){var n=r(5),i={},a=[],o="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,o].join("/")},getSigningKey:function(e,t,r,s,u){var c=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((u=!1!==u)&&c in i)return i[c];var p=n.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),l=n.util.crypto.hmac(p,r,"buffer"),m=n.util.crypto.hmac(l,s,"buffer"),d=n.util.crypto.hmac(m,o,"buffer");return u&&(i[c]=d,a.push(c),a.length>50&&delete i[a.shift()]),d},emptyCache:function(){i={},a=[]}}},function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},function(e,t,r){"use strict";t.decode=t.parse=r(372),t.encode=t.stringify=r(373)},function(e,t,r){r(12);var n=r(5),i=n.Service,a=n.apiLoader;a.services.cognitoidentity={},n.CognitoIdentity=i.defineService("cognitoidentity",["2014-06-30"]),r(388),Object.defineProperty(a.services.cognitoidentity,"2014-06-30",{get:function(){var e=r(389);return e.paginators=r(390).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.CognitoIdentity},function(e,t,r){!function(t,n){var i;e.exports=(i=r(44),function(){if("function"==typeof ArrayBuffer){var e=i.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 r=e.byteLength,n=[],i=0;i>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),i.lib.WordArray)}()},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){s.headers[e]=n.merge(a)})),e.exports=s}).call(this,r(66))},function(e,t,r){"use strict";var n=r(52),i=r(418),a=r(221),o=r(420),s=r(421),u=r(225);e.exports=function(e){return new Promise((function(t,c){var p=e.data,l=e.headers;n.isFormData(p)&&delete l["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",y=e.auth.password||"";l.Authorization="Basic "+btoa(d+":"+y)}if(m.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,m.onreadystatechange=function(){if(m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in m?o(m.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};i(t,c,n),m=null}},m.onabort=function(){m&&(c(u("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){c(u("Network Error",e,null,m)),m=null},m.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",m)),m=null},n.isStandardBrowserEnv()){var h=r(422),f=(e.withCredentials||s(e.url))&&e.xsrfCookieName?h.read(e.xsrfCookieName):void 0;f&&(l[e.xsrfHeaderName]=f)}if("setRequestHeader"in m&&n.forEach(l,(function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete l[t]:m.setRequestHeader(t,e)})),e.withCredentials&&(m.withCredentials=!0),e.responseType)try{m.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"===typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){m&&(m.abort(),c(e),m=null)})),void 0===p&&(p=null),m.send(p)}))}},function(e,t,r){"use strict";var n=r(419);e.exports=function(e,t,r,i,a){var o=new Error(e);return n(o,t,r,i,a)}},function(e,t,r){"use strict";var n=r(52);e.exports=function(e,t){t=t||{};var r={};return n.forEach(["url","method","params","data"],(function(e){"undefined"!==typeof t[e]&&(r[e]=t[e])})),n.forEach(["headers","auth","proxy"],(function(i){n.isObject(t[i])?r[i]=n.deepMerge(e[i],t[i]):"undefined"!==typeof t[i]?r[i]=t[i]:n.isObject(e[i])?r[i]=n.deepMerge(e[i]):"undefined"!==typeof e[i]&&(r[i]=e[i])})),n.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(n){"undefined"!==typeof t[n]?r[n]=t[n]:"undefined"!==typeof e[n]&&(r[n]=e[n])})),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return T}));var n,i,a,o=r(63),s=r(93),u=r(54),c=r(37),p=r(1),l=r(55),m=r(8),d=r(102),y=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(){return(h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0?setTimeout(this._closeSocketWhenFlushed.bind(this),1e3):(this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=a.CLOSED):this.socketStatus=a.CLOSED},r.prototype._handleIncomingSubscriptionMessage=function(e){g.debug("subscription message from AWS AppSync RealTime: "+e.data);var t=JSON.parse(e.data),r=t.id,a=void 0===r?"":r,o=t.payload,u=t.type,c=this.subscriptionObserverMap.get(a)||{},l=c.observer,m=void 0===l?null:l,d=c.query,y=void 0===d?"":d,f=c.variables,b=void 0===f?{}:f,v=c.startAckTimeoutId,I=c.subscriptionReadyCallback,N=c.subscriptionFailedCallback;if(g.debug({id:a,observer:m,query:y,variables:b}),u===n.GQL_DATA&&o&&o.data)m?m.next(o):g.debug("observer not found for id: "+a);else if(u!==n.GQL_START_ACK){if(u===n.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._timeoutDisconnect.bind(this),this.keepAliveTimeout));if(u===n.GQL_ERROR){C=i.FAILED;this.subscriptionObserverMap.set(a,{observer:m,query:y,variables:b,startAckTimeoutId:v,subscriptionReadyCallback:I,subscriptionFailedCallback:N,subscriptionState:C}),m.error({errors:[h({},new s.a("Connection failed: "+JSON.stringify(o)))]}),clearTimeout(v),m.complete(),"function"===typeof N&&N()}}else{g.debug("subscription ready for "+JSON.stringify({query:y,variables:b})),"function"===typeof I&&I(),clearTimeout(v),function(e,t,r){p.f.dispatch("api",{event:e,data:t,message:r},"PubSub",S)}("connected",{query:y,variables:b},"Connection established for subscription");var C=i.CONNECTED;this.subscriptionObserverMap.set(a,{observer:m,query:y,variables:b,startAckTimeoutId:null,subscriptionState:C,subscriptionReadyCallback:I,subscriptionFailedCallback:N})}},r.prototype._timeoutDisconnect=function(){this.subscriptionObserverMap.forEach((function(e){var t=e.observer;t.error({errors:[h({},new s.a("Timeout disconnect"))]}),t.complete()})),this.subscriptionObserverMap=new Map,this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=a.CLOSED},r.prototype._timeoutStartSubscriptionAck=function(e){var t=this.subscriptionObserverMap.get(e),r=t.observer,n=t.query,a=t.variables;this.subscriptionObserverMap.set(e,{observer:r,query:n,variables:a,subscriptionState:i.FAILED}),r.error({errors:[h({},new s.a("Subscription timeout "+JSON.stringify({query:n,variables:a})))]}),r.complete(),g.debug("timeoutStartSubscription",JSON.stringify({query:n,variables:a}))},r.prototype._initializeWebSocketConnection=function(t){var r=this,n=t.appSyncGraphqlEndpoint,i=t.authenticationType,o=t.apiKey,s=t.region;if(this.socketStatus!==a.READY)return new Promise((function(t,u){return f(r,void 0,void 0,(function(){var r,c,p,l,m,d,y,h,f;return b(this,(function(b){switch(b.label){case 0:if(this.promiseArray.push({res:t,rej:u}),this.socketStatus!==a.CLOSED)return[3,5];b.label=1;case 1:return b.trys.push([1,4,,5]),this.socketStatus=a.CONNECTING,r=n.replace("https://","wss://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta"),c="{}",m=(l=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:i,payload:c,canonicalUri:"/connect",apiKey:o,appSyncGraphqlEndpoint:n,region:s})];case 2:return p=m.apply(l,[b.sent()]),d=e.from(p).toString("base64"),y=e.from(c).toString("base64"),h=r+"?header="+d+"&payload="+y,[4,this._initializeRetryableHandshake({awsRealTimeUrl:h})];case 3:return b.sent(),this.promiseArray.forEach((function(e){var t=e.res;g.debug("Notifying connection successful"),t()})),this.socketStatus=a.READY,this.promiseArray=[],[3,5];case 4:return f=b.sent(),this.promiseArray.forEach((function(e){return(0,e.rej)(f)})),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=a.CLOSED,[3,5];case 5:return[2]}}))}))}))},r.prototype._initializeRetryableHandshake=function(e){var t=e.awsRealTimeUrl;return f(this,void 0,void 0,(function(){return b(this,(function(e){switch(e.label){case 0:return g.debug("Initializaling retryable Handshake"),[4,Object(p.t)(this._initializeHandshake.bind(this),[{awsRealTimeUrl:t}],5e3)];case 1:return e.sent(),[2]}}))}))},r.prototype._initializeHandshake=function(e){var t=e.awsRealTimeUrl;return f(this,void 0,void 0,(function(){var e,r,i,a=this;return b(this,(function(o){switch(o.label){case 0:g.debug("Initializing handshake "+t),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,new Promise((function(e,r){var n=new WebSocket(t,"graphql-ws");n.onerror=function(){g.debug("WebSocket connection error")},n.onclose=function(){r(new Error("Connection handshake error"))},n.onopen=function(){return a.awsRealTimeSocket=n,e()}}))];case 2:return o.sent(),[4,new Promise((function(e,t){var r=!1;a.awsRealTimeSocket.onerror=function(e){g.debug("WebSocket closed "+JSON.stringify(e))},a.awsRealTimeSocket.onclose=function(e){g.debug("WebSocket closed "+e.reason),t(new Error(JSON.stringify(e)))},a.awsRealTimeSocket.onmessage=function(i){g.debug("subscription message from AWS AppSyncRealTime: "+i.data+" ");var o=JSON.parse(i.data),s=o.type,u=o.payload,c=(void 0===u?{}:u).connectionTimeoutMs,p=void 0===c?C:c;if(s===n.GQL_CONNECTION_ACK)return r=!0,a.keepAliveTimeout=p,a.awsRealTimeSocket.onmessage=a._handleIncomingSubscriptionMessage.bind(a),a.awsRealTimeSocket.onerror=g.debug,void e("Cool, connected to AWS AppSyncRealTime");if(s===n.GQL_CONNECTION_ERROR){var l=o.payload,m=(void 0===l?{}:l).errors,d=(void 0===m?[]:m)[0],y=void 0===d?{}:d,h=y.errorType,f=void 0===h?"":h,b=y.errorCode;t({errorType:f,errorCode:void 0===b?0:b})}};var i={type:n.GQL_CONNECTION_INIT};a.awsRealTimeSocket.send(JSON.stringify(i)),setTimeout(function(){r||t(new Error("Connection timeout: ack from AWSRealTime was not received on "+N+" ms"))}.bind(a),N)}))];case 3:return o.sent(),[3,5];case 4:throw e=o.sent(),r=e.errorType,i=e.errorCode,v.includes(i)?new p.l(r):r?new Error(r):e;case 5:return[2]}}))}))},r.prototype._awsRealTimeHeaderBasedAuth=function(e){var t=e.authenticationType,r=e.payload,n=e.canonicalUri,i=e.appSyncGraphqlEndpoint,a=e.apiKey,o=e.region;return f(this,void 0,void 0,(function(){var e,s,c;return b(this,(function(p){switch(p.label){case 0:return e={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeCUPHeader.bind(this)},"function"!==typeof(s=e[t])?(g.debug("Authentication type "+t+" not supported"),[2,""]):(c=u.parse(i).host,[4,s({payload:r,canonicalUri:n,appSyncGraphqlEndpoint:i,apiKey:a,region:o,host:c})]);case 1:return[2,p.sent()]}}))}))},r.prototype._awsRealTimeCUPHeader=function(e){var t=e.host;return f(this,void 0,void 0,(function(){return b(this,(function(e){switch(e.label){case 0:return[4,m.a.currentSession()];case 1:return[2,{Authorization:e.sent().getAccessToken().getJwtToken(),host:t}]}}))}))},r.prototype._awsRealTimeOPENIDHeader=function(e){var t=e.host;return f(this,void 0,void 0,(function(){var e;return b(this,(function(r){switch(r.label){case 0:return[4,l.a.getItem("federatedInfo")];case 1:if(!(e=r.sent())||!e.token)throw new Error("No federated jwt");return[2,{Authorization:e.token,host:t}]}}))}))},r.prototype._awsRealTimeApiKeyHeader=function(e){var t=e.apiKey,r=e.host;return f(this,void 0,void 0,(function(){var e,n;return b(this,(function(i){return e=new Date,n=e.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:r,"x-amz-date":n,"x-api-key":t}]}))}))},r.prototype._awsRealTimeIAMHeader=function(e){var t=e.payload,r=e.canonicalUri,n=e.appSyncGraphqlEndpoint,i=e.region;return f(this,void 0,void 0,(function(){var e,a,o;return b(this,(function(s){switch(s.label){case 0:return e={region:i,service:"appsync"},[4,this._ensureCredentials()];case 1:if(!s.sent())throw new Error("No credentials");return[4,p.e.get().then((function(e){return{secret_key:e.secretAccessKey,access_key:e.accessKeyId,session_token:e.sessionToken}}))];case 2:return a=s.sent(),o={url:""+n+r,data:t,method:"POST",headers:h({},I)},[2,p.p.sign(o,a,e).headers]}}))}))},r.prototype._ensureCredentials=function(){return p.e.get().then((function(e){if(!e)return!1;var t=p.e.shear(e);return g.debug("set credentials for AWSAppSyncRealTimeProvider",t),!0})).catch((function(e){return g.warn("ensure credentials error",e),!1}))},r}(d.a)}).call(this,r(23).Buffer)},function(e,t,r){"use strict";(function(e){var n=r(138),i=r(178),a=r(179),o=r(40),s=r(1),u=r(276),c=r(184),p=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(t){a(t)}}function s(e){try{u(n.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},m=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i.Transcript.Results[0].Alternatives.length>0&&i.Transcript.Results[0].Alternatives[0].Transcript.length>0&&(!1===i.Transcript.Results[0].IsPartial?(r=i.Transcript.Results[0].Alternatives[0].Transcript+"\n",d.debug({decodedMessage:r})):d.debug({transcript:i.Transcript.Results[0].Alternatives[0]})),r},r.prototype.sendDataToTranscribe=function(t){var n=this,i=t.connection,a=t.raw;return new Promise((function(t,o){var s="";if(i.onmessage=function(e){try{var t=r.serializeDataFromTranscribe(e);t&&(s+=t+" ")}catch(n){d.debug(n),o(n.message)}},i.onerror=function(e){d.debug({errorEvent:e}),o("failed to transcribe, network error")},i.onclose=function(e){return d.debug({closeEvent:e}),t(s.trim())},d.debug({raw:a}),Array.isArray(a))for(var u=0;u0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var r=new Uint8Array(8),n=7,i=Math.abs(Math.round(t));n>-1&&i>0;n--,i/=256)r[n]=i;return t<0&&a(r),new e(r)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&a(e),parseInt(n.toHex(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function a(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}t.Int64=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(10);t.crc32=function(e){return(new i).update(e).digest()};var i=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var i=n.__values(e),o=i.next();!o.done;o=i.next()){var s=o.value;this.checksum=this.checksum>>>8^a[255&(this.checksum^s)]}}catch(u){t={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=i;var a=Uint32Array.from([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117])},function(e,t,r){var n=r(5).util;function i(e){var t=["Buffer","File","Blob","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"];if(n.isNode()){var r=n.stream.Stream;if(n.Buffer.isBuffer(e)||e instanceof r)return!0}for(var i=0;i=256;)e-=255;return r.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)r.EXP_TABLE[n]=1<0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]m))return!1;var y=p.get(e);if(y&&p.get(t))return y==t;var h=-1,f=!0,b=r&s?new n:void 0;for(p.set(e,t),p.set(t,e);++h=t?e:t)),e}},function(e,t,r){var n=r(128),i=r(169),a=r(170),o=r(97),s=r(165),u=r(129),c=200;e.exports=function(e,t,r,p){var l=-1,m=i,d=!0,y=e.length,h=[],f=t.length;if(!y)return h;r&&(t=o(t,s(r))),p?(m=a,d=!1):t.length>=c&&(m=u,d=!1,t=new n(t));e:for(;++l=c){var f=t?null:s(e);if(f)return u(f);d=!1,l=o,h=new n}else h=t?[]:y;e:for(;++p3&&void 0!==arguments[3]&&arguments[3],i=t[e];if(void 0!==i)return i;if(n){var a=t[T(e)];if(void 0!==a)return a;if(r){var o=r[e];if(void 0!==o)return o}}return"checked"!==e&&("value"===e?t.multiple?[]:"":void 0)},A=function(e){function t(){var e,r;o()(this,t);for(var n=arguments.length,a=new Array(n),s=0;s0&&r.setState(n,t)}));var u=r.constructor.autoControlledProps,c=N()(y()(r),"getInitialAutoControlledState",r.props)||{},l=u.reduce((function(e,t){return e[t]=k(t,r.props,c,!0),e}),{});return r.state=i()({},c,l),r}return f()(t,e),u()(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.constructor.autoControlledProps.reduce((function(t,r){return!v()(e[r])&&(t[r]=e[r]),t}),{});Object.keys(t).length>0&&this.setState(t)}}]),t}(C.Component)},function(e,t,r){var n=r(827),i=r(255);e.exports=function(e,t){return null!=e&&i(e,t,n)}},function(e,t,r){"use strict";var n=r(74),i=r.n(n),a=r(20),o=r.n(a),s="object"===("undefined"===typeof document?"undefined":i()(document))&&null!==document,u="object"===("undefined"===typeof window?"undefined":i()(window))&&null!==window&&window.self===window;t.a=function e(){return o()(e.override)?s&&u:e.override}},function(e,t,r){"use strict";var n=r(187),i=r.n(n),a=r(288),o=r.n(a),s=r(11),u=r.n(s),c=r(20),p=r.n(c),l=r(77),m=r.n(l);t.a=function(e,t){if(m()([t,e],p.a))return!1;if(t.target&&(u()(t.target,"setAttribute","data-suir-click-target",!0),document.querySelector("[data-suir-click-target=true]")))return u()(t.target,"removeAttribute","data-suir-click-target"),e.contains(t.target);var r=t.clientX,n=t.clientY;if(m()([r,n],p.a))return!1;var a=e.getClientRects();if(!e.offsetWidth||!e.offsetHeight||!a||!a.length)return!1;var s=o()(a),c=s.top,l=s.bottom,d=s.left,y=s.right;return!m()([c,l,d,y],p.a)&&(i()(n,c,l+.001)&&i()(r,d,y+.001))}},function(e,t,r){var n=r(844),i=r(110),a=r(131),o=r(95),s=r(98);e.exports=function(e,t,r,u){if(!o(e))return e;for(var c=-1,p=(t=i(t,e)).length,l=p-1,m=e;null!=m&&++c0){var o=r.substring(0,i),s=r.substring(i+n.length);r=o+t[a]+s}return r},u=[0,6,77,81,73,115,100,112,3],c=[0,4,77,81,84,84,4],p=function(e,t){for(var r in this.type=e,t)t.hasOwnProperty(r)&&(this[r]=t[r])};function l(e,t){var n,i=t,a=e[t],o=a>>4,s=a&=15;t+=1;var u=0,c=1;do{if(t==e.length)return[null,i];u+=(127&(n=e[t++]))*c,c*=128}while(0!==(128&n));var l=t+u;if(l>e.length)return[null,i];var m=new p(o);switch(o){case r.CONNACK:1&e[t++]&&(m.sessionPresent=!0),m.returnCode=e[t++];break;case r.PUBLISH:var d=s>>1&3,h=y(e,t),f=b(e,t+=2,h);t+=h,d>0&&(m.messageIdentifier=y(e,t),t+=2);var g=new I(e.subarray(t,l));1==(1&s)&&(g.retained=!0),8==(8&s)&&(g.duplicate=!0),g.qos=d,g.destinationName=f,m.payloadMessage=g;break;case r.PUBACK:case r.PUBREC:case r.PUBREL:case r.PUBCOMP:case r.UNSUBACK:m.messageIdentifier=y(e,t);break;case r.SUBACK:m.messageIdentifier=y(e,t),t+=2,m.returnCode=e.subarray(t,l)}return[m,l]}function m(e,t,r){return t[r++]=e>>8,t[r++]=e%256,r}function d(e,t,r,n){return f(e,r,n=m(t,r,n)),n+t}function y(e,t){return 256*e[t]+e[t+1]}function h(e){for(var t=0,r=0;r2047?(55296<=n&&n<=56319&&(r++,t++),t+=3):n>127?t+=2:t++}return t}function f(e,t,r){for(var n=r,i=0;i>6&31|192,t[n++]=63&o|128):o<=65535?(t[n++]=o>>12&15|224,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>18&7|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t}function b(e,t,r){for(var n,i="",o=t;o65535&&(n-=65536,i+=String.fromCharCode(55296+(n>>10)),n=56320+(1023&n)),i+=String.fromCharCode(n)}return i}p.prototype.encode=function(){var e,t=(15&this.type)<<4,n=0,i=[],a=0;switch(void 0!==this.messageIdentifier&&(n+=2),this.type){case r.CONNECT:switch(this.mqttVersion){case 3:n+=u.length+3;break;case 4:n+=c.length+3}n+=h(this.clientId)+2,void 0!==this.willMessage&&(n+=h(this.willMessage.destinationName)+2,(e=this.willMessage.payloadBytes)instanceof Uint8Array||(e=new Uint8Array(s)),n+=e.byteLength+2),void 0!==this.userName&&(n+=h(this.userName)+2),void 0!==this.password&&(n+=h(this.password)+2);break;case r.SUBSCRIBE:t|=2;for(var o=0;o>=7)>0&&(n|=128),t[r++]=n}while(e>0&&r<4);return t}(n),l=p.length+1,y=new ArrayBuffer(n+l),f=new Uint8Array(y);if(f[0]=t,f.set(p,1),this.type==r.PUBLISH)l=d(this.payloadMessage.destinationName,a,f,l);else if(this.type==r.CONNECT){switch(this.mqttVersion){case 3:f.set(u,l),l+=u.length;break;case 4:f.set(c,l),l+=c.length}var b=0;this.cleanSession&&(b=2),void 0!==this.willMessage&&(b|=4,b|=this.willMessage.qos<<3,this.willMessage.retained&&(b|=32)),void 0!==this.userName&&(b|=128),void 0!==this.password&&(b|=64),f[l++]=b,l=m(this.keepAliveInterval,f,l)}switch(void 0!==this.messageIdentifier&&(l=m(this.messageIdentifier,f,l)),this.type){case r.CONNECT:l=d(this.clientId,h(this.clientId),f,l),void 0!==this.willMessage&&(l=d(this.willMessage.destinationName,h(this.willMessage.destinationName),f,l),l=m(e.byteLength,f,l),f.set(e,l),l+=e.byteLength),void 0!==this.userName&&(l=d(this.userName,h(this.userName),f,l)),void 0!==this.password&&(l=d(this.password,h(this.password),f,l));break;case r.PUBLISH:f.set(s,l);break;case r.SUBSCRIBE:for(o=0;o0&&(this.timeout=setTimeout(i(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},S=function(e,t,r,n){t||(t=30),this.timeout=setTimeout(function(e,t,r){return function(){return e.apply(t,r)}}(r,e,n),1e3*t),this.cancel=function(){clearTimeout(this.timeout)}},v=function(r,n,i,o,u){if(!("WebSocket"in e&&null!==e.WebSocket))throw new Error(s(a.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in e&&null!==e.ArrayBuffer))throw new Error(s(a.UNSUPPORTED,["ArrayBuffer"]));for(var c in this._trace("Paho.Client",r,n,i,o,u),this.host=n,this.port=i,this.path=o,this.uri=r,this.clientId=u,this._wsuri=null,this._localKey=n+":"+i+("/mqtt"!=o?":"+o:"")+":"+u+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,t)0!==c.indexOf("Sent:"+this._localKey)&&0!==c.indexOf("Received:"+this._localKey)||this.restore(c)};v.prototype.host=null,v.prototype.port=null,v.prototype.path=null,v.prototype.uri=null,v.prototype.clientId=null,v.prototype.socket=null,v.prototype.connected=!1,v.prototype.maxMessageIdentifier=65536,v.prototype.connectOptions=null,v.prototype.hostIndex=null,v.prototype.onConnected=null,v.prototype.onConnectionLost=null,v.prototype.onMessageDelivered=null,v.prototype.onMessageArrived=null,v.prototype.traceFunction=null,v.prototype._msg_queue=null,v.prototype._buffered_msg_queue=null,v.prototype._connectTimeout=null,v.prototype.sendPinger=null,v.prototype.receivePinger=null,v.prototype._reconnectInterval=1,v.prototype._reconnecting=!1,v.prototype._reconnectTimeout=null,v.prototype.disconnectedPublishing=!1,v.prototype.disconnectedBufferSize=5e3,v.prototype.receiveBuffer=null,v.prototype._traceBuffer=null,v.prototype._MAX_TRACE_ENTRIES=100,v.prototype.connect=function(e){var t=this._traceMask(e,"password");if(this._trace("Client.connect",t,this.socket,this.connected),this.connected)throw new Error(s(a.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(s(a.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=e,this._reconnectInterval=1,this._reconnecting=!1,e.uris?(this.hostIndex=0,this._doConnect(e.uris[0])):this._doConnect(this.uri)},v.prototype.subscribe=function(e,t){if(this._trace("Client.subscribe",e,t),!this.connected)throw new Error(s(a.INVALID_STATE,["not connected"]));var n=new p(r.SUBSCRIBE);n.topics=e.constructor===Array?e:[e],void 0===t.qos&&(t.qos=0),n.requestedQos=[];for(var i=0;i0?this._requires_ack(t):this.onMessageDelivered&&(this._notify_msg_sent[t]=this.onMessageDelivered(t.payloadMessage)),this._schedule_message(t);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(s(a.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(s(a.BUFFER_FULL,[this.disconnectedBufferSize]));e.qos>0?this._requires_ack(t):(t.sequence=++this._sequence,this._buffered_msg_queue.unshift(t))}},v.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(s(a.INVALID_STATE,["not connecting or connected"]));var e=new p(r.DISCONNECT);this._notify_msg_sent[e]=i(this._disconnected,this),this._schedule_message(e)},v.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var e in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",e,this._sentMessages[e]);for(var e in this._receivedMessages)this._trace("_receivedMessages ",e,this._receivedMessages[e]);return this._traceBuffer}},v.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},v.prototype.stopTrace=function(){delete this._traceBuffer},v.prototype._doConnect=function(e){if(this.connectOptions.useSSL){var t=e.split(":");t[0]="wss",e=t.join(":")}this._wsuri=e,this.connected=!1,this.connectOptions.mqttVersion<4?this.socket=new WebSocket(e,["mqttv3.1"]):this.socket=new WebSocket(e,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=i(this._on_socket_open,this),this.socket.onmessage=i(this._on_socket_message,this),this.socket.onerror=i(this._on_socket_error,this),this.socket.onclose=i(this._on_socket_close,this),this.sendPinger=new g(this,this.connectOptions.keepAliveInterval),this.receivePinger=new g(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new S(this,this.connectOptions.timeout,this._disconnected,[a.CONNECT_TIMEOUT.code,s(a.CONNECT_TIMEOUT)])},v.prototype._schedule_message=function(e){this._msg_queue.unshift(e),this.connected&&this._process_queue()},v.prototype.store=function(e,n){var i={type:n.type,messageIdentifier:n.messageIdentifier,version:1};switch(n.type){case r.PUBLISH:n.pubRecReceived&&(i.pubRecReceived=!0),i.payloadMessage={};for(var o="",u=n.payloadMessage.payloadBytes,c=0;c=2;){var d=parseInt(u.substring(0,2),16);u=u.substring(2,u.length),l[m++]=d}var y=new I(l);y.qos=i.payloadMessage.qos,y.destinationName=i.payloadMessage.destinationName,i.payloadMessage.duplicate&&(y.duplicate=!0),i.payloadMessage.retained&&(y.retained=!0),o.payloadMessage=y;break;default:throw Error(s(a.INVALID_STORED_DATA,[e,n]))}0===e.indexOf("Sent:"+this._localKey)?(o.payloadMessage.duplicate=!0,this._sentMessages[o.messageIdentifier]=o):0===e.indexOf("Received:"+this._localKey)&&(this._receivedMessages[o.messageIdentifier]=o)},v.prototype._process_queue=function(){for(var e=null;e=this._msg_queue.pop();)this._socket_send(e),this._notify_msg_sent[e]&&(this._notify_msg_sent[e](),delete this._notify_msg_sent[e])},v.prototype._requires_ack=function(e){var t=Object.keys(this._sentMessages).length;if(t>this.maxMessageIdentifier)throw Error("Too many messages:"+t);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;e.messageIdentifier=this._message_identifier,this._sentMessages[e.messageIdentifier]=e,e.type===r.PUBLISH&&this.store("Sent:",e),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},v.prototype._on_socket_open=function(){var e=new p(r.CONNECT,this.connectOptions);e.clientId=this.clientId,this._socket_send(e)},v.prototype._on_socket_message=function(e){this._trace("Client._on_socket_message",e.data);for(var t=this._deframeMessages(e.data),r=0;r0)for(var m=null;m=this._buffered_msg_queue.pop();)c.push(m),this.onMessageDelivered&&(this._notify_msg_sent[m]=this.onMessageDelivered(m.payloadMessage));c=c.sort((function(e,t){return e.sequence-t.sequence}));for(var d=0,y=c.length;d65535)throw new Error(s(a.INVALID_ARGUMENT,[i,"clientId"]));var d=new v(o,e,t,r,i);Object.defineProperties(this,{host:{get:function(){return e},set:function(){throw new Error(s(a.UNSUPPORTED_OPERATION))}},port:{get:function(){return t},set:function(){throw new Error(s(a.UNSUPPORTED_OPERATION))}},path:{get:function(){return r},set:function(){throw new Error(s(a.UNSUPPORTED_OPERATION))}},uri:{get:function(){return o},set:function(){throw new Error(s(a.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return d.clientId},set:function(){throw new Error(s(a.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return d.onConnected},set:function(e){if("function"!==typeof e)throw new Error(s(a.INVALID_TYPE,[typeof e,"onConnected"]));d.onConnected=e}},disconnectedPublishing:{get:function(){return d.disconnectedPublishing},set:function(e){d.disconnectedPublishing=e}},disconnectedBufferSize:{get:function(){return d.disconnectedBufferSize},set:function(e){d.disconnectedBufferSize=e}},onConnectionLost:{get:function(){return d.onConnectionLost},set:function(e){if("function"!==typeof e)throw new Error(s(a.INVALID_TYPE,[typeof e,"onConnectionLost"]));d.onConnectionLost=e}},onMessageDelivered:{get:function(){return d.onMessageDelivered},set:function(e){if("function"!==typeof e)throw new Error(s(a.INVALID_TYPE,[typeof e,"onMessageDelivered"]));d.onMessageDelivered=e}},onMessageArrived:{get:function(){return d.onMessageArrived},set:function(e){if("function"!==typeof e)throw new Error(s(a.INVALID_TYPE,[typeof e,"onMessageArrived"]));d.onMessageArrived=e}},trace:{get:function(){return d.traceFunction},set:function(e){if("function"!==typeof e)throw new Error(s(a.INVALID_TYPE,[typeof e,"onTrace"]));d.traceFunction=e}}}),this.connect=function(e){if(n(e=e||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===e.keepAliveInterval&&(e.keepAliveInterval=60),e.mqttVersion>4||e.mqttVersion<3)throw new Error(s(a.INVALID_ARGUMENT,[e.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===e.mqttVersion?(e.mqttVersionExplicit=!1,e.mqttVersion=4):e.mqttVersionExplicit=!0,void 0!==e.password&&void 0===e.userName)throw new Error(s(a.INVALID_ARGUMENT,[e.password,"connectOptions.password"]));if(e.willMessage){if(!(e.willMessage instanceof I))throw new Error(s(a.INVALID_TYPE,[e.willMessage,"connectOptions.willMessage"]));if(e.willMessage.stringPayload=null,"undefined"===typeof e.willMessage.destinationName)throw new Error(s(a.INVALID_TYPE,[typeof e.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if("undefined"===typeof e.cleanSession&&(e.cleanSession=!0),e.hosts){if(!(e.hosts instanceof Array))throw new Error(s(a.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));if(e.hosts.length<1)throw new Error(s(a.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));for(var t=!1,i=0;i=3&&(i.qos=r),arguments.length>=4&&(i.retained=n),d.send(i)},this.publish=function(e,t,r,n){var i;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof I)&&"string"!==typeof e)throw new Error("Invalid argument:"+typeof e);if("undefined"===typeof(i=e).destinationName)throw new Error(s(a.INVALID_ARGUMENT,[i.destinationName,"Message.destinationName"]));d.send(i)}else(i=new I(t)).destinationName=e,arguments.length>=3&&(i.qos=r),arguments.length>=4&&(i.retained=n),d.send(i)},this.disconnect=function(){d.disconnect()},this.getTraceLog=function(){return d.getTraceLog()},this.startTrace=function(){d.startTrace()},this.stopTrace=function(){d.stopTrace()},this.isConnected=function(){return d.connected}},Message:I}}("undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},e.exports=r()}).call(this,r(57))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(10);n.__exportStar(r(435),t),n.__exportStar(r(231),t)},function(e,t,r){r(12);var n=r(5),i=n.Service,a=n.apiLoader;a.services.textract={},n.Textract=i.defineService("textract",["2018-06-27"]),Object.defineProperty(a.services.textract,"2018-06-27",{get:function(){var e=r(442);return e.paginators=r(443).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.Textract},function(e,t,r){r(12);var n=r(5);"undefined"!==typeof window&&(window.AWS=n),e.exports=n,"undefined"!==typeof self&&(self.AWS=n),r(444)},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(){function e(){this._hasWeakSet="function"===typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t>>0,n=0;n0)for(r=0;r=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,G=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},V={};function j(e,t,r,n){var i=n;"string"===typeof n&&(i=function(){return this[n]()}),e&&(V[e]=i),t&&(V[t[0]]=function(){return B(i.apply(this,arguments),t[1],t[2])}),r&&(V[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e,t){return e.isValid()?(t=K(t,e.localeData()),F[t]=F[t]||function(e){var t,r,n,i=e.match(U);for(t=0,r=i.length;t=0&&G.test(e);)e=e.replace(G,n),G.lastIndex=0,r-=1;return e}var W=/\d/,H=/\d\d/,J=/\d{3}/,Q=/\d{4}/,Z=/[+-]?\d{6}/,Y=/\d\d?/,$=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,ee=/\d{1,3}/,te=/\d{1,4}/,re=/[+-]?\d{1,6}/,ne=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue={};function ce(e,t,r){ue[e]=P(t)?t:function(e,n){return e&&r?r:t}}function pe(e,t){return p(ue,e)?ue[e](t._strict,t._locale):new RegExp(le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,i){return t||r||n||i}))))}function le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var me={};function de(e,t){var r,n=t;for("string"===typeof e&&(e=[e]),s(t)&&(n=function(e,r){r[t]=N(e)}),r=0;r68?1900:2e3)};var De,Re=Pe("FullYear",!0);function Pe(e,t){return function(r){return null!=r?(xe(this,e,r),n.updateOffset(this,t),this):Ee(this,e)}}function Ee(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function xe(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&Ae(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),_e(r,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function _e(e,t){if(isNaN(e)||isNaN(t))return NaN;var r,n=(t%(r=12)+r)%r;return e+=(t-n)/12,1===n?Ae(e)?29:28:31-n%7%2}De=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,r,n,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,i,a,o),s}function je(e){var t;if(e<100&&e>=0){var r=Array.prototype.slice.call(arguments);r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function ze(e,t,r){var n=7+t-r;return-(7+je(e,0,n).getUTCDay()-t)%7+n-1}function Ke(e,t,r,n,i){var a,o,s=1+7*(t-1)+(7+r-n)%7+ze(e,n,i);return s<=0?o=ke(a=e-1)+s:s>ke(e)?(a=e+1,o=s-ke(e)):(a=e,o=s),{year:a,dayOfYear:o}}function We(e,t,r){var n,i,a=ze(e.year(),t,r),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?n=o+He(i=e.year()-1,t,r):o>He(e.year(),t,r)?(n=o-He(e.year(),t,r),i=e.year()+1):(i=e.year(),n=o),{week:n,year:i}}function He(e,t,r){var n=ze(e,t,r),i=ze(e+1,t,r);return(ke(e)-n+i)/7}function Je(e,t){return e.slice(t,7).concat(e.slice(0,t))}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),w("week","w"),w("isoWeek","W"),L("week",5),L("isoWeek",5),ce("w",Y),ce("ww",Y,H),ce("W",Y),ce("WW",Y,H),ye(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=N(e)})),j("d",0,"do","day"),j("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),j("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),j("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),w("day","d"),w("weekday","e"),w("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),ce("d",Y),ce("e",Y),ce("E",Y),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),ye(["dd","ddd","dddd"],(function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);null!=i?t.d=i:d(r).invalidWeekday=e})),ye(["d","e","E"],(function(e,t,r,n){t[n]=N(e)}));var Qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function $e(e,t,r){var n,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=De.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=De.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=De.call(this._weekdaysParse,o))?i:-1!==(i=De.call(this._shortWeekdaysParse,o))?i:-1!==(i=De.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,o))?i:-1!==(i=De.call(this._weekdaysParse,o))?i:-1!==(i=De.call(this._minWeekdaysParse,o))?i:null:-1!==(i=De.call(this._minWeekdaysParse,o))?i:-1!==(i=De.call(this._weekdaysParse,o))?i:-1!==(i=De.call(this._shortWeekdaysParse,o))?i:null}var Xe=se,et=se,tt=se;function rt(){function e(e,t){return t.length-e.length}var t,r,n,i,a,o=[],s=[],u=[],c=[];for(t=0;t<7;t++)r=m([2e3,1]).day(t),n=this.weekdaysMin(r,""),i=this.weekdaysShort(r,""),a=this.weekdays(r,""),o.push(n),s.push(i),u.push(a),c.push(n),c.push(i),c.push(a);for(o.sort(e),s.sort(e),u.sort(e),c.sort(e),t=0;t<7;t++)s[t]=le(s[t]),u[t]=le(u[t]),c[t]=le(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function nt(){return this.hours()%12||12}function it(e,t){j(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function at(e,t){return t._meridiemParse}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,nt),j("k",["kk",2],0,(function(){return this.hours()||24})),j("hmm",0,0,(function(){return""+nt.apply(this)+B(this.minutes(),2)})),j("hmmss",0,0,(function(){return""+nt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),j("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),j("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),it("a",!0),it("A",!1),w("hour","h"),L("hour",13),ce("a",at),ce("A",at),ce("H",Y),ce("h",Y),ce("k",Y),ce("HH",Y,H),ce("hh",Y,H),ce("kk",Y,H),ce("hmm",$),ce("hmmss",X),ce("Hmm",$),ce("Hmmss",X),de(["H","HH"],Se),de(["k","kk"],(function(e,t,r){var n=N(e);t[Se]=24===n?0:n})),de(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),de(["h","hh"],(function(e,t,r){t[Se]=N(e),d(r).bigHour=!0})),de("hmm",(function(e,t,r){var n=e.length-2;t[Se]=N(e.substr(0,n)),t[ve]=N(e.substr(n)),d(r).bigHour=!0})),de("hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[Se]=N(e.substr(0,n)),t[ve]=N(e.substr(n,2)),t[Ie]=N(e.substr(i)),d(r).bigHour=!0})),de("Hmm",(function(e,t,r){var n=e.length-2;t[Se]=N(e.substr(0,n)),t[ve]=N(e.substr(n))})),de("Hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[Se]=N(e.substr(0,n)),t[ve]=N(e.substr(n,2)),t[Ie]=N(e.substr(i))}));var ot,st=Pe("Hours",!0),ut={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:qe,monthsShort:Me,week:{dow:0,doy:6},weekdays:Qe,weekdaysMin:Ye,weekdaysShort:Ze,meridiemParse:/[ap]\.?m?\.?/i},ct={},pt={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function mt(t){var r=null;if(!ct[t]&&"undefined"!==typeof e&&e&&e.exports)try{r=ot._abbr,!function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),dt(r)}catch(n){}return ct[t]}function dt(e,t){var r;return e&&((r=o(t)?ht(e):yt(e,t))?ot=r:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function yt(e,t){if(null!==t){var r,n=ut;if(t.abbr=e,null!=ct[e])R("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ct[e]._config;else if(null!=t.parentLocale)if(null!=ct[t.parentLocale])n=ct[t.parentLocale]._config;else{if(null==(r=mt(t.parentLocale)))return pt[t.parentLocale]||(pt[t.parentLocale]=[]),pt[t.parentLocale].push({name:e,config:t}),null;n=r._config}return ct[e]=new x(E(n,t)),pt[e]&&pt[e].forEach((function(e){yt(e.name,e.config)})),dt(e),ct[e]}return delete ct[e],null}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!i(e)){if(t=mt(e))return t;e=[e]}return function(e){for(var t,r,n,i,a=0;a0;){if(n=mt(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&C(i,r,!0)>=t-1)break;t--}a++}return ot}(e)}function ft(e){var t,r=e._a;return r&&-2===d(e).overflow&&(t=r[be]<0||r[be]>11?be:r[ge]<1||r[ge]>_e(r[fe],r[be])?ge:r[Se]<0||r[Se]>24||24===r[Se]&&(0!==r[ve]||0!==r[Ie]||0!==r[Ne])?Se:r[ve]<0||r[ve]>59?ve:r[Ie]<0||r[Ie]>59?Ie:r[Ne]<0||r[Ne]>999?Ne:-1,d(e)._overflowDayOfYear&&(tge)&&(t=ge),d(e)._overflowWeeks&&-1===t&&(t=Ce),d(e)._overflowWeekday&&-1===t&&(t=Te),d(e).overflow=t),e}function bt(e,t,r){return null!=e?e:null!=t?t:r}function gt(e){var t,r,i,a,o,s=[];if(!e._d){for(i=function(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ge]&&null==e._a[be]&&function(e){var t,r,n,i,a,o,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,o=4,r=bt(t.GG,e._a[fe],We(wt(),1,4).year),n=bt(t.W,1),((i=bt(t.E,1))<1||i>7)&&(u=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var c=We(wt(),a,o);r=bt(t.gg,e._a[fe],c.year),n=bt(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(u=!0)):i=a}n<1||n>He(r,a,o)?d(e)._overflowWeeks=!0:null!=u?d(e)._overflowWeekday=!0:(s=Ke(r,n,i,a,o),e._a[fe]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=bt(e._a[fe],i[fe]),(e._dayOfYear>ke(o)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),r=je(o,0,e._dayOfYear),e._a[be]=r.getUTCMonth(),e._a[ge]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Se]&&0===e._a[ve]&&0===e._a[Ie]&&0===e._a[Ne]&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?je:Ve).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==a&&(d(e).weekdayMismatch=!0)}}var St=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,It=/Z|[+-]\d\d(?::?\d\d)?/,Nt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ct=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tt=/^\/?Date\((\-?\d+)/i;function kt(e){var t,r,n,i,a,o,s=e._i,u=St.exec(s)||vt.exec(s);if(u){for(d(e).iso=!0,t=0,r=Nt.length;t0&&d(e).unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),c+=r.length),V[a]?(r?d(e).empty=!1:d(e).unusedTokens.push(a),he(a,r,e)):e._strict&&!r&&d(e).unusedTokens.push(a);d(e).charsLeftOver=u-c,s.length>0&&d(e).unusedInput.push(s),e._a[Se]<=12&&!0===d(e).bigHour&&e._a[Se]>0&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[Se]=function(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[Se],e._meridiem),gt(e),ft(e)}else Pt(e);else kt(e)}function xt(e){var t=e._i,r=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===r&&""===t?h({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new S(ft(t)):(u(t)?e._d=t:i(r)?function(e){var t,r,n,i,a;if(0===e._f.length)return d(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:h()}));function Ot(e,t){var r,n;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return wt();for(r=t[0],n=1;n=0?new Date(e+400,t,r)-cr:new Date(e,t,r).valueOf()}function mr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-cr:Date.UTC(e,t,r)}function dr(e,t){j(0,[e,e.length],0,t)}function yr(e,t,r,n,i){var a;return null==e?We(this,n,i).year:(t>(a=He(e,n,i))&&(t=a),hr.call(this,e,t,r,n,i))}function hr(e,t,r,n,i){var a=Ke(e,t,r,n,i),o=je(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}j(0,["gg",2],0,(function(){return this.weekYear()%100})),j(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),dr("gggg","weekYear"),dr("ggggg","weekYear"),dr("GGGG","isoWeekYear"),dr("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),ce("G",ie),ce("g",ie),ce("GG",Y,H),ce("gg",Y,H),ce("GGGG",te,Q),ce("gggg",te,Q),ce("GGGGG",re,Z),ce("ggggg",re,Z),ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=N(e)})),ye(["gg","GG"],(function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)})),j("Q",0,"Qo","quarter"),w("quarter","Q"),L("quarter",7),ce("Q",W),de("Q",(function(e,t){t[be]=3*(N(e)-1)})),j("D",["DD",2],"Do","date"),w("date","D"),L("date",9),ce("D",Y),ce("DD",Y,H),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),de(["D","DD"],ge),de("Do",(function(e,t){t[ge]=N(e.match(Y)[0])}));var fr=Pe("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),L("dayOfYear",4),ce("DDD",ee),ce("DDDD",J),de(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=N(e)})),j("m",["mm",2],0,"minute"),w("minute","m"),L("minute",14),ce("m",Y),ce("mm",Y,H),de(["m","mm"],ve);var br=Pe("Minutes",!1);j("s",["ss",2],0,"second"),w("second","s"),L("second",15),ce("s",Y),ce("ss",Y,H),de(["s","ss"],Ie);var gr,Sr=Pe("Seconds",!1);for(j("S",0,0,(function(){return~~(this.millisecond()/100)})),j(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),j(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),j(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),j(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),j(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),j(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),w("millisecond","ms"),L("millisecond",16),ce("S",ee,W),ce("SS",ee,H),ce("SSS",ee,J),gr="SSSS";gr.length<=9;gr+="S")ce(gr,ne);function vr(e,t){t[Ne]=N(1e3*("0."+e))}for(gr="S";gr.length<=9;gr+="S")de(gr,vr);var Ir=Pe("Milliseconds",!1);j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var Nr=S.prototype;function Cr(e){return e}Nr.add=er,Nr.calendar=function(e,t){var r=e||wt(),i=zt(r,this).startOf("day"),a=n.calendarFormat(this,i)||"sameElse",o=t&&(P(t[a])?t[a].call(this,r):t[a]);return this.format(o||this.localeData().calendar(a,this,wt(r)))},Nr.clone=function(){return new S(this)},Nr.diff=function(e,t,r){var n,i,a;if(!this.isValid())return NaN;if(!(n=zt(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=q(t)){case"year":a=rr(this,n)/12;break;case"month":a=rr(this,n);break;case"quarter":a=rr(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-i)/864e5;break;case"week":a=(this-n-i)/6048e5;break;default:a=this-n}return r?a:I(a)},Nr.endOf=function(e){var t;if(void 0===(e=q(e))||"millisecond"===e||!this.isValid())return this;var r=this._isUTC?mr:lr;switch(e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ur-pr(t+(this._isUTC?0:this.utcOffset()*sr),ur)-1;break;case"minute":t=this._d.valueOf(),t+=sr-pr(t,sr)-1;break;case"second":t=this._d.valueOf(),t+=or-pr(t,or)-1}return this._d.setTime(t),n.updateOffset(this,!0),this},Nr.format=function(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},Nr.from=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||wt(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Nr.fromNow=function(e){return this.from(wt(),e)},Nr.to=function(e,t){return this.isValid()&&(v(e)&&e.isValid()||wt(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Nr.toNow=function(e){return this.to(wt(),e)},Nr.get=function(e){return P(this[e=q(e)])?this[e]():this},Nr.invalidAt=function(){return d(this).overflow},Nr.isAfter=function(e,t){var r=v(e)?e:wt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=q(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()9999?z(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(r,"Z")):z(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Nr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(r+n+"-MM-DD[T]HH:mm:ss.SSS"+i)},Nr.toJSON=function(){return this.isValid()?this.toISOString():null},Nr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Nr.unix=function(){return Math.floor(this.valueOf()/1e3)},Nr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Nr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Nr.year=Re,Nr.isLeapYear=function(){return Ae(this.year())},Nr.weekYear=function(e){return yr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Nr.isoWeekYear=function(e){return yr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Nr.quarter=Nr.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Nr.month=Be,Nr.daysInMonth=function(){return _e(this.year(),this.month())},Nr.week=Nr.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Nr.isoWeek=Nr.isoWeeks=function(e){var t=We(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Nr.weeksInYear=function(){var e=this.localeData()._week;return He(this.year(),e.dow,e.doy)},Nr.isoWeeksInYear=function(){return He(this.year(),1,4)},Nr.date=fr,Nr.day=Nr.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Nr.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Nr.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Nr.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Nr.hour=Nr.hours=st,Nr.minute=Nr.minutes=br,Nr.second=Nr.seconds=Sr,Nr.millisecond=Nr.milliseconds=Ir,Nr.utcOffset=function(e,t,r){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=jt(oe,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(i=Kt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Xt(this,Qt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Kt(this)},Nr.utc=function(e){return this.utcOffset(0,e)},Nr.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Kt(this),"m")),this},Nr.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=jt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Nr.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?wt(e).utcOffset():0,(this.utcOffset()-e)%60===0)},Nr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Nr.isLocal=function(){return!!this.isValid()&&!this._isUTC},Nr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Nr.isUtc=Wt,Nr.isUTC=Wt,Nr.zoneAbbr=function(){return this._isUTC?"UTC":""},Nr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Nr.dates=k("dates accessor is deprecated. Use date instead.",fr),Nr.months=k("months accessor is deprecated. Use month instead",Be),Nr.years=k("years accessor is deprecated. Use year instead",Re),Nr.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Nr.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=xt(e))._a){var t=e._isUTC?m(e._a):wt(e._a);this._isDSTShifted=this.isValid()&&C(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var Tr=x.prototype;function kr(e,t,r,n){var i=ht(),a=m().set(n,t);return i[r](a,e)}function Ar(e,t,r){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return kr(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=kr(e,n,r,"month");return i}function Dr(e,t,r,n){"boolean"===typeof e?(s(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,s(t)&&(r=t,t=void 0),t=t||"");var i,a=ht(),o=e?a._week.dow:0;if(null!=r)return kr(t,(r+o)%7,n,"day");var u=[];for(i=0;i<7;i++)u[i]=kr(t,(i+o)%7,n,"day");return u}Tr.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return P(n)?n.call(t,r):n},Tr.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},Tr.invalidDate=function(){return this._invalidDate},Tr.ordinal=function(e){return this._ordinal.replace("%d",e)},Tr.preparse=Cr,Tr.postformat=Cr,Tr.relativeTime=function(e,t,r,n){var i=this._relativeTime[r];return P(i)?i(e,t,r,n):i.replace(/%d/i,e)},Tr.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return P(r)?r(t):r.replace(/%s/i,t)},Tr.set=function(e){var t,r;for(r in e)P(t=e[r])?this[r]=t:this["_"+r]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Tr.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||we).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},Tr.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[we.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tr.monthsParse=function(e,t,r){var n,i,a;if(this._monthsParseExact)return Oe.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=m([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},Tr.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Ge),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Tr.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Ue),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Tr.week=function(e){return We(e,this._week.dow,this._week.doy).week},Tr.firstDayOfYear=function(){return this._week.doy},Tr.firstDayOfWeek=function(){return this._week.dow},Tr.weekdays=function(e,t){var r=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Je(r,this._week.dow):e?r[e.day()]:r},Tr.weekdaysMin=function(e){return!0===e?Je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Tr.weekdaysShort=function(e){return!0===e?Je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Tr.weekdaysParse=function(e,t,r){var n,i,a;if(this._weekdaysParseExact)return $e.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=m([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},Tr.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Tr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tr.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Tr.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},dt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===N(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=k("moment.lang is deprecated. Use moment.locale instead.",dt),n.langData=k("moment.langData is deprecated. Use moment.localeData instead.",ht);var Rr=Math.abs;function Pr(e,t,r,n){var i=Qt(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function Er(e){return e<0?Math.floor(e):Math.ceil(e)}function xr(e){return 4800*e/146097}function _r(e){return 146097*e/4800}function wr(e){return function(){return this.as(e)}}var qr=wr("ms"),Mr=wr("s"),Or=wr("m"),Lr=wr("h"),Br=wr("d"),Ur=wr("w"),Gr=wr("M"),Fr=wr("Q"),Vr=wr("y");function jr(e){return function(){return this.isValid()?this._data[e]:NaN}}var zr=jr("milliseconds"),Kr=jr("seconds"),Wr=jr("minutes"),Hr=jr("hours"),Jr=jr("days"),Qr=jr("months"),Zr=jr("years"),Yr=Math.round,$r={ss:44,s:45,m:45,h:22,d:26,M:11};function Xr(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}var en=Math.abs;function tn(e){return(e>0)-(e<0)||+e}function rn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r=en(this._milliseconds)/1e3,n=en(this._days),i=en(this._months);e=I(r/60),t=I(e/60),r%=60,e%=60;var a=I(i/12),o=i%=12,s=n,u=t,c=e,p=r?r.toFixed(3).replace(/\.?0+$/,""):"",l=this.asSeconds();if(!l)return"P0D";var m=l<0?"-":"",d=tn(this._months)!==tn(l)?"-":"",y=tn(this._days)!==tn(l)?"-":"",h=tn(this._milliseconds)!==tn(l)?"-":"";return m+"P"+(a?d+a+"Y":"")+(o?d+o+"M":"")+(s?y+s+"D":"")+(u||c||p?"T":"")+(u?h+u+"H":"")+(c?h+c+"M":"")+(p?h+p+"S":"")}var nn=Bt.prototype;return nn.isValid=function(){return this._isValid},nn.abs=function(){var e=this._data;return this._milliseconds=Rr(this._milliseconds),this._days=Rr(this._days),this._months=Rr(this._months),e.milliseconds=Rr(e.milliseconds),e.seconds=Rr(e.seconds),e.minutes=Rr(e.minutes),e.hours=Rr(e.hours),e.months=Rr(e.months),e.years=Rr(e.years),this},nn.add=function(e,t){return Pr(this,e,t,1)},nn.subtract=function(e,t){return Pr(this,e,t,-1)},nn.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=q(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+xr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(_r(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},nn.asMilliseconds=qr,nn.asSeconds=Mr,nn.asMinutes=Or,nn.asHours=Lr,nn.asDays=Br,nn.asWeeks=Ur,nn.asMonths=Gr,nn.asQuarters=Fr,nn.asYears=Vr,nn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*N(this._months/12):NaN},nn._bubble=function(){var e,t,r,n,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Er(_r(s)+o),o=0,s=0),u.milliseconds=a%1e3,e=I(a/1e3),u.seconds=e%60,t=I(e/60),u.minutes=t%60,r=I(t/60),u.hours=r%24,o+=I(r/24),i=I(xr(o)),s+=i,o-=Er(_r(i)),n=I(s/12),s%=12,u.days=o,u.months=s,u.years=n,this},nn.clone=function(){return Qt(this)},nn.get=function(e){return e=q(e),this.isValid()?this[e+"s"]():NaN},nn.milliseconds=zr,nn.seconds=Kr,nn.minutes=Wr,nn.hours=Hr,nn.days=Jr,nn.weeks=function(){return I(this.days()/7)},nn.months=Qr,nn.years=Zr,nn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),r=function(e,t,r){var n=Qt(e).abs(),i=Yr(n.as("s")),a=Yr(n.as("m")),o=Yr(n.as("h")),s=Yr(n.as("d")),u=Yr(n.as("M")),c=Yr(n.as("y")),p=i<=$r.ss&&["s",i]||i<$r.s&&["ss",i]||a<=1&&["m"]||a<$r.m&&["mm",a]||o<=1&&["h"]||o<$r.h&&["hh",o]||s<=1&&["d"]||s<$r.d&&["dd",s]||u<=1&&["M"]||u<$r.M&&["MM",u]||c<=1&&["y"]||["yy",c];return p[2]=t,p[3]=+e>0,p[4]=r,Xr.apply(null,p)}(this,!e,t);return e&&(r=t.pastFuture(+this,r)),t.postformat(r)},nn.toISOString=rn,nn.toString=rn,nn.toJSON=rn,nn.locale=nr,nn.localeData=ar,nn.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rn),nn.lang=ir,j("X",0,0,"unix"),j("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),de("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e,10))})),de("x",(function(e,t,r){r._d=new Date(N(e))})),n.version="2.24.0",t=wt,n.fn=Nr,n.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},n.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=m,n.unix=function(e){return wt(1e3*e)},n.months=function(e,t){return Ar(e,t,"months")},n.isDate=u,n.locale=dt,n.invalid=h,n.duration=Qt,n.isMoment=v,n.weekdays=function(e,t,r){return Dr(e,t,r,"weekdays")},n.parseZone=function(){return wt.apply(null,arguments).parseZone()},n.localeData=ht,n.isDuration=Ut,n.monthsShort=function(e,t){return Ar(e,t,"monthsShort")},n.weekdaysMin=function(e,t,r){return Dr(e,t,r,"weekdaysMin")},n.defineLocale=yt,n.updateLocale=function(e,t){if(null!=t){var r,n,i=ut;null!=(n=mt(e))&&(i=n._config),t=E(i,t),(r=new x(t)).parentLocale=ct[e],ct[e]=r,dt(e)}else null!=ct[e]&&(null!=ct[e].parentLocale?ct[e]=ct[e].parentLocale:null!=ct[e]&&delete ct[e]);return ct[e]},n.locales=function(){return A(ct)},n.weekdaysShort=function(e,t,r){return Dr(e,t,r,"weekdaysShort")},n.normalizeUnits=q,n.relativeTimeRounding=function(e){return void 0===e?Yr:"function"===typeof e&&(Yr=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==$r[e]&&(void 0===t?$r[e]:($r[e]=t,"s"===e&&($r.ss=t-1),!0))},n.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},n.prototype=Nr,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}).call(this,r(108)(e))},function(e,t,r){"use strict";var n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],i=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],a=function(e,t){var r=e;return"string"===typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};e.exports=function(e,t){if(!Number.isFinite(e))throw new TypeError("Expected a finite number, got ".concat(typeof e,": ").concat(e));var r=(t=Object.assign({bits:!1},t)).bits?i:n;if(t.signed&&0===e)return" 0 "+r[0];var o=e<0,s=o?"-":t.signed?"+":"";if(o&&(e=-e),e<1)return s+a(e,t.locale)+" "+r[0];var u=Math.min(Math.floor(Math.log10(e)/3),r.length-1);return e=Number((e/Math.pow(1e3,u)).toPrecision(3)),s+a(e,t.locale)+" "+r[u]}},function(e,t,r){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(r){}}return function(r,n,i,a,o,s,u,c,p,l){switch(r){case 1:if(0===p&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+n),"";default:return n+(0===l?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}}()},function(e,t,r){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},,function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(90);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0;m--){var d=o[m];"."===d?a(o,m):".."===d?(a(o,m),l++):l&&(a(o,m),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&i(o[0])||o.unshift("");var y=o.join("/");return r&&"/"!==y.substr(-1)&&(y+="/"),y};var s=r(56);function u(e){return"/"===e.charAt(0)?e:"/"+e}function c(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function l(e){var t=e.pathname,r=e.search,n=e.hash,i=t||"/";return r&&"?"!==r&&(i+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(i+="#"===n.charAt(0)?n:"#"+n),i}function m(e,t,r,i){var a;"string"===typeof e?(a=function(e){var t=e||"/",r="",n="",i=t.indexOf("#");-1!==i&&(n=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(r=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e)).state=t:(void 0===(a=Object(n.a)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return r&&(a.key=r),i?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=o(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname="/"),a}function d(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,i){if(null!=e){var a="function"===typeof e?e(t,r):e;"string"===typeof a?"function"===typeof n?n(a,i):i(!0):i(!1!==a)}else i(!0)},appendListener:function(e){var r=!0;function n(){r&&e.apply(void 0,arguments)}return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),n=0;nx.length&&x.push(e)}function q(e,t,r){return null==e?0:function e(t,r,n,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case o:u=!0}}if(u)return n(i,t,""===r?"."+M(t,0):r),1;if(u=0,r=""===r?".":r+":",Array.isArray(t))for(var c=0;c