Date.now()||(this.lastEventType=i,this.pointerDown(t,i)&&(!this.rmMouseMove&&this.pointerMove&&(this.rmMouseMove=this.plt.registerListener(this.plt.doc(),"mousemove",this.pointerMove,this.option)),this.rmMouseUp||(this.rmMouseUp=this.plt.registerListener(this.plt.doc(),"mouseup",this.bindMouseUp,this.option))))},t.prototype.handleTouchEnd=function(t){this.stopTouch(),this.pointerUp&&this.pointerUp(t,o)},t.prototype.handleMouseUp=function(t){this.stopMouse(),this.pointerUp&&this.pointerUp(t,i)},t.prototype.stopTouch=function(){this.rmTouchMove&&this.rmTouchMove(),this.rmTouchEnd&&this.rmTouchEnd(),this.rmTouchCancel&&this.rmTouchCancel(),this.rmTouchMove=this.rmTouchEnd=this.rmTouchCancel=null},t.prototype.stopMouse=function(){this.rmMouseMove&&this.rmMouseMove(),this.rmMouseUp&&this.rmMouseUp(),this.rmMouseMove=this.rmMouseUp=null},t.prototype.stop=function(){this.stopTouch(),this.stopMouse()},t.prototype.destroy=function(){this.rmTouchStart&&this.rmTouchStart(),this.rmMouseStart&&this.rmMouseStart(),this.stop(),this.ele=this.pointerUp=this.pointerMove=this.pointerDown=this.rmTouchStart=this.rmMouseStart=null},t}(),i=1,o=2},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(2),n(17),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}()},function(t,e,n){"use strict";n(2),n(17),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}()},function(t,e,n){"use strict";n(2),n(17),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}()},function(t,e,n){"use strict";n(2),n(17),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}()},function(t,e,n){"use strict";n(2),n(17),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}()},function(t,e,n){"use strict";n(2),n(4),n(38),n(94),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(426))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(333))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(23);e.map=function(t,e){return r.map(t,e)(this)}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t){this.wait=t,this.timer=null}return t.prototype.debounce=function(t){this.callback=t,this.schedule()},t.prototype.schedule=function(){this.cancel(),this.wait<=0?this.callback():this.timer=setTimeout(this.callback,this.wait)},t.prototype.cancel=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},t}()},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(42),i=function(){function t(t,e,n){this._app=t,this._plt=e,this._dom=n,this.isScrolling=!1,this.initialized=!1,this._eventsEnabled=!1,this._t=0,this._l=0,this.ev={timeStamp:0,scrollTop:0,scrollLeft:0,scrollHeight:0,scrollWidth:0,contentHeight:0,contentWidth:0,contentTop:0,contentBottom:0,startY:0,startX:0,deltaY:0,deltaX:0,velocityY:0,velocityX:0,directionY:"down",directionX:null,domWrite:n.write.bind(n)}}return t.prototype.init=function(t,e,n){this._el=t,this.initialized||(this.initialized=!0,this._js?this.enableJsScroll(e,n):this.enableNativeScrolling())},t.prototype.enableEvents=function(){this._eventsEnabled=!0},t.prototype.setScrolling=function(t,e){this.isScrolling?t?this.onScroll&&this.onScroll(e):(this.isScrolling=!1,this.onScrollEnd&&this.onScrollEnd(e)):t&&(this.isScrolling=!0,this.onScrollStart&&this.onScrollStart(e))},t.prototype.enableNativeScrolling=function(){if(this._js=!1,this._el){var t=this,e=t.ev,n=[];t._lsn&&t._lsn(),t._lsn=t._plt.registerListener(t._el,"scroll",function(r){if(t._app.setScrolling(),t._eventsEnabled){if(e.timeStamp=r.timeStamp,e.timeStamp||(e.timeStamp=Date.now()),e.scrollTop=t.getTop(),e.scrollLeft=t.getLeft(),t.isScrolling||(e.startY=e.scrollTop,e.startX=e.scrollLeft,e.velocityY=e.velocityX=0,e.deltaY=e.deltaX=0,n.length=0),n.push(e.scrollTop,e.scrollLeft,e.timeStamp),n.length>3){e.deltaY=e.scrollTop-e.startY,e.deltaX=e.scrollLeft-e.startX;for(var i=n.length-1,s=i,a=e.timeStamp-100,u=i;u>0&&n[u]>a;u-=3)s=u;if(s!==i){var c=n[s-2]-n[i-2],h=n[s-1]-n[i-1],f=l/(n[i]-n[s]);e.velocityY=c*f,e.velocityX=h*f,e.directionY=c>0?"up":"down",e.directionX=h>0?"left":"right"}}t.setScrolling(!0,e),t._dom.cancel(t._endTmr),t._endTmr=t._dom.read(function(){e.velocityY=e.velocityX=0,t.setScrolling(!1,e),t._endTmr=null},o)}},c)}},t.prototype.enableJsScroll=function(t,e){function n(){p||(p=h.scrollHeight-h.parentElement.offsetHeight+t+e)}function i(t){d.timeStamp=t,d.velocityY&&(d.velocityY*=u,n(),o._t=Math.min(Math.max(o._t+d.velocityY,0),p),d.scrollTop=o._t,o.onScroll(d),o._dom.write(function(){o.setTop(o._t),o._t>0&&o._ta?f=o._dom.read(function(t){i(t)}):(o.isScrolling=!1,d.velocityY=d.velocityX=0,o.onScrollEnd(d))}))}var o=this;o._js=!0;var h=o._el;if(h){var f,p,d=o.ev,m=[],v=o._plt,g=v.registerListener(h,"touchstart",function(t){m.length=0,p=null,o._dom.cancel(f),m.push(Object(r.f)(t).y,t.timeStamp)},c),_=v.registerListener(h,"touchmove",function(t){if(m.length){d.timeStamp=t.timeStamp;var e=Object(r.f)(t).y;n(),o._t-=e-m[m.length-2],o._t=Math.min(Math.max(o._t,0),p),m.push(e,d.timeStamp),o.isScrolling||(d.startY=o._t,d.velocityY=d.deltaY=0,o.isScrolling=!0,o.onScrollStart(d)),o._dom.write(function(){o.setTop(o._t)})}},c),y=v.registerListener(h,"touchend",function(t){if(o._dom.cancel(f),!m.length&&o.isScrolling)return o.isScrolling=!1,d.velocityY=d.velocityX=0,void o.onScrollEnd(d);var e=Object(r.f)(t).y;m.push(e,t.timeStamp);for(var a=m.length-1,u=a,c=t.timeStamp-100,h=a;h>0&&m[h]>c;h-=2)u=h;u!==a?(d.velocityY=(m[u-1]-m[a-1])/(m[a]-m[u])*l,Math.abs(d.velocityY)>s&&(n(),f=o._dom.read(function(t){i(t)}))):(o.isScrolling=!1,d.velocityY=0,o.onScrollEnd(d));m.length=0},c);h.parentElement.classList.add("js-scroll"),o._lsn&&o._lsn(),o._lsn=function(){g(),_(),y(),h.parentElement.classList.remove("js-scroll")}}},t.prototype.getTop=function(){return this._js?this._t:this._t=this._el.scrollTop},t.prototype.getLeft=function(){return this._js?0:this._l=this._el.scrollLeft},t.prototype.setTop=function(t){this._t=t,this._js?this._el.style[this._plt.Css.transform]="translate3d("+-1*this._l+"px,"+-1*t+"px,0px)":this._el.scrollTop=t},t.prototype.setLeft=function(t){this._l=t,this._js?this._el.style[this._plt.Css.transform]="translate3d("+-1*t+"px,"+-1*this._t+"px,0px)":this._el.scrollLeft=t},t.prototype.scrollTo=function(t,e,n,r){function i(o){if(p++,!s._el||d||p>h)return s.setScrolling(!1,null),a.style[f]="",void r();var m=Math.min(1,(o-u)/n),v=--m*m*m+1;l!==e&&s.setTop(v*(e-l)+l),c!==t&&s.setLeft(Math.floor(v*(t-c)+c)),v<1?s._plt.raf(i):(d=!0,s.setScrolling(!1,null),a.style[f]="",r())}var o;void 0===r&&(o=new Promise(function(t){r=t}));var s=this,a=s._el;if(!a)return r(),o;if(n<32)return s.setTop(e),s.setLeft(t),r(),o;var u,l=a.scrollTop,c=a.scrollLeft,h=n/16+100,f=s._plt.Css.transform,p=0,d=!1;return s.setScrolling(!0,null),s.isScrolling=!0,s._dom.write(function(t){u=t,i(t)},16),o},t.prototype.scrollToTop=function(t){return this.scrollTo(0,0,t)},t.prototype.scrollToBottom=function(t){var e=0;return this._el&&(e=this._el.scrollHeight-this._el.clientHeight),this.scrollTo(0,e,t)},t.prototype.stop=function(){this.setScrolling(!1,null)},t.prototype.destroy=function(){this.stop(),this._endTmr&&this._dom.cancel(this._endTmr),this._lsn&&this._lsn();var t=this.ev;t.domWrite=t.contentElement=t.fixedElement=t.scrollElement=t.headerElement=null,this._lsn=this._el=this._dom=this.ev=t=null,this.onScrollStart=this.onScroll=this.onScrollEnd=null},t}(),o=80,s=4,a=.12,u=.97,l=1e3/60,c={passive:!0,zone:!1}},function(t,e,n){"use strict";function r(t){return t.$ionIndex}e.b=r,e.a=function(t,e){for(var n=0;t&&n<4;){if(void 0!==r(t))return e&&t.parentNode!==e?null:t;t=t.parentNode,n++}return null}},function(t,e,n){"use strict";n(2),n(17),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}()},function(t,e,n){"use strict";n(0),n(9),n(2),n(157),n(38),n(94),n(46),n(4),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}(),this&&this.__assign||Object},function(t,e,n){"use strict";var r=n(0),i=n(4),o=n(179),s=n(58),a=n(108),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new s.a(this.plt,t.querySelector("ion-backdrop")),n=new s.a(this.plt,t.querySelector(".picker-wrapper"));e.fromTo("opacity",.01,.26),n.fromTo("translateY","100%","0%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(400).add(e).add(n)},e}(a.a),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new s.a(this.plt,t.querySelector("ion-backdrop")),n=new s.a(this.plt,t.querySelector(".picker-wrapper"));e.fromTo("opacity",.26,0),n.fromTo("translateY","0%","100%"),this.easing("cubic-bezier(.36,.66,.04,1)").duration(450).add(e).add(n)},e}(a.a),h=n(7);n.d(e,"a",function(){return p});var f=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(t){function e(e,n,s){void 0===n&&(n={});var a=this;return n||(n={}),n.columns=n.columns||[],n.buttons=n.buttons||[],n.enableBackdropDismiss=!Object(i.l)(n.enableBackdropDismiss)||Boolean(n.enableBackdropDismiss),a=t.call(this,o.a,n,null)||this,a._app=e,a.isOverlay=!0,a.ionChange=new r.m,s.setTransition("picker-slide-in",l),s.setTransition("picker-slide-out",c),a}return f(e,t),e.prototype.getTransitionName=function(t){return this._nav&&this._nav.config.get("back"===t?"pickerLeave":"pickerEnter")},e.prototype.addButton=function(t){this.data.buttons.push(t)},e.prototype.addColumn=function(t){this.data.columns.push(t)},e.prototype.getColumns=function(){return this.data.columns},e.prototype.getColumn=function(t){return this.getColumns().find(function(e){return e.name===t})},e.prototype.refresh=function(){this._cmp&&this._cmp.instance.refresh&&this._cmp.instance.refresh()},e.prototype.setCssClass=function(t){this.data.cssClass=t},e.prototype.present=function(t){return void 0===t&&(t={}),this._app.present(this,t)},e}(h.a)},function(t,e,n){"use strict";n(30),n(11),n(4),n(5)},function(t,e,n){"use strict";n(2),n(233)},function(t,e,n){"use strict";var r=n(343);n.n(r),n(2),n(30),n(42),n(11),n(38),n(94),n(4),n(5),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(429)},function(t,e,n){"use strict";n(2),n(17),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}}()},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(4),n(5),n(234)},function(t,e,n){"use strict";var r=n(4),i=n(143),o=n(181),s=n(58),a=n(108),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new s.a(this.plt,t.querySelector("ion-backdrop")),n=new s.a(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.01,1).fromTo("scale",1.1,1),e.fromTo("opacity",.01,.3),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(a.a),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new s.a(this.plt,t.querySelector("ion-backdrop")),n=new s.a(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.99,0).fromTo("scale",1,.9),e.fromTo("opacity",.3,0),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(a.a),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new s.a(this.plt,t.querySelector("ion-backdrop")),n=new s.a(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.01,1).fromTo("scale",1.1,1),e.fromTo("opacity",.01,.5),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(a.a),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new s.a(this.plt,t.querySelector("ion-backdrop")),n=new s.a(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.99,0).fromTo("scale",1,.9),e.fromTo("opacity",.5,0),this.easing("ease-in-out").duration(200).add(e).add(n)},e}(a.a),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.init=function(){var t=this.enteringView.pageRef().nativeElement,e=new s.a(this.plt,t.querySelector("ion-backdrop")),n=new s.a(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.01,1).fromTo("scale",1.3,1),e.fromTo("opacity",.01,.16),this.easing("cubic-bezier(0,0,0.05,1)").duration(200).add(e).add(n)},e}(a.a),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.init=function(){var t=this.leavingView.pageRef().nativeElement,e=new s.a(this.plt,t.querySelector("ion-backdrop")),n=new s.a(this.plt,t.querySelector(".loading-wrapper"));n.fromTo("opacity",.99,0).fromTo("scale",1,1.3),e.fromTo("opacity",.16,0),this.easing("ease-out").duration(150).add(e).add(n)},e}(a.a),m=n(7);n.d(e,"a",function(){return g});var v=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(t){function e(e,n,i){void 0===n&&(n={});var s=this;return n.showBackdrop=!Object(r.l)(n.showBackdrop)||!!n.showBackdrop,n.enableBackdropDismiss=!!Object(r.l)(n.enableBackdropDismiss)&&!!n.enableBackdropDismiss,n.dismissOnPageChange=!!Object(r.l)(n.dismissOnPageChange)&&!!n.dismissOnPageChange,s=t.call(this,o.a,n,null)||this,s._app=e,s.isOverlay=!0,i.setTransition("loading-pop-in",l),i.setTransition("loading-pop-out",c),i.setTransition("loading-md-pop-in",h),i.setTransition("loading-md-pop-out",f),i.setTransition("loading-wp-pop-in",p),i.setTransition("loading-wp-pop-out",d),s}return v(e,t),e.prototype.getTransitionName=function(t){return this._nav&&this._nav.config.get("back"===t?"loadingLeave":"loadingEnter")},e.prototype.setContent=function(t){return this.data.content=t,this},e.prototype.setSpinner=function(t){return this.data.spinner=t,this},e.prototype.setCssClass=function(t){return this.data.cssClass=t,this},e.prototype.setShowBackdrop=function(t){return this.data.showBackdrop=t,this},e.prototype.setDuration=function(t){return this.data.duration=t,this},e.prototype.present=function(t){return void 0===t&&(t={}),this._app.present(this,t,i.b)},e.prototype.dismissAll=function(){this._nav&&this._nav.popAll()},e}(m.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(17),i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(t){function e(e,n,r){return t.call(this,e,n,r,"toolbar")||this}return i(e,t),e.prototype._setTitle=function(t){this._title=t},e.prototype.getTitleText=function(){return this._title&&this._title.getTitleText()||""},e}(r.a)},function(t,e,n){"use strict";var r=n(237),i=n(4),o=n(143),s=n(183),a=n(58),u=n(123),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.enteringView.pageRef().nativeElement,n=e.querySelector("ion-backdrop"),r=new a.a(this.plt,n),i=new a.a(this.plt,e.querySelector(".modal-wrapper"));i.beforeStyles({opacity:1}),i.fromTo("translateY","100%","0%"),r.fromTo("opacity",.01,.4),this.element(this.enteringView.pageRef()).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(400).add(r).add(i)},e}(u.a),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.leavingView.pageRef().nativeElement,n=new a.a(this.plt,e.querySelector("ion-backdrop")),r=e.querySelector(".modal-wrapper"),i=r.getBoundingClientRect(),o=new a.a(this.plt,r);o.fromTo("translateY","0px",this.plt.height()-i.top+"px"),n.fromTo("opacity",.4,0),this.element(this.leavingView.pageRef()).easing("ease-out").duration(250).add(n).add(o)},e}(u.a),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.enteringView.pageRef().nativeElement,n=new a.a(this.plt,e.querySelector("ion-backdrop")),r=new a.a(this.plt,e.querySelector(".modal-wrapper"));n.fromTo("opacity",.01,.4),r.fromTo("translateY","40px","0px"),r.fromTo("opacity",.01,1);this.element(this.enteringView.pageRef()).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).add(n).add(r)},e}(u.a),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.init=function(){t.prototype.init.call(this);var e=this.leavingView.pageRef().nativeElement,n=new a.a(this.plt,e.querySelector("ion-backdrop")),r=new a.a(this.plt,e.querySelector(".modal-wrapper"));n.fromTo("opacity",.4,0),r.fromTo("translateY","0px","40px"),r.fromTo("opacity",.99,0),this.element(this.leavingView.pageRef()).duration(200).easing("cubic-bezier(0.47,0,0.745,0.715)").add(r).add(n)},e}(u.a),d=n(7),m=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(t){function e(e,n,r,o,a){void 0===o&&(o={});var u=this;return r=r||{},r.component=n,o.showBackdrop=!Object(i.l)(o.showBackdrop)||!!o.showBackdrop,o.enableBackdropDismiss=!Object(i.l)(o.enableBackdropDismiss)||!!o.enableBackdropDismiss,r.opts=o,u=t.call(this,s.a,r,null)||this,u._app=e,u._enterAnimation=o.enterAnimation,u._leaveAnimation=o.leaveAnimation,u.isOverlay=!0,a.setTransition("modal-slide-in",c),a.setTransition("modal-slide-out",h),a.setTransition("modal-md-slide-in",f),a.setTransition("modal-md-slide-out",p),u}return m(e,t),e.prototype.getTransitionName=function(t){var e;if("back"===t){if(this._leaveAnimation)return this._leaveAnimation;e="modalLeave"}else{if(this._enterAnimation)return this._enterAnimation;e="modalEnter"}return this._nav&&this._nav.config.get(e)},e.prototype.present=function(t){return void 0===t&&(t={}),t.minClickBlockDuration=t.minClickBlockDuration||400,this._app.present(this,t,o.c)},e}(d.a);n.d(e,"a",function(){return _});var g=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(t){function e(e,n,r,i,o,s){void 0===i&&(i={});var a=t.call(this,e,n,o,s)||this;return a.data=r,a.opts=i,a.isOverlay=!0,a}return g(e,t),e.prototype.getImplementation=function(){return new v(this._app,this._component,this.data,this.opts,this._config)},e}(r.a)},,function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";function t(e){return t.result?t.result:e&&"function"==typeof e.getSerializer?t.result=e.getSerializer():Promise.reject(new Error("localforage.getSerializer() was not available! localforage v1.4+ is required!"))}function e(t,n){return(e.result=e.result||{})[n]?e.result[n]:t&&"function"==typeof t.getDriver?e.result[n]=t.getDriver(n):Promise.reject(new Error("localforage.getDriver() was not available! localforage v1.4+ is required!"))}function n(t){return e(t,t.WEBSQL)}function r(){return i.then(function(){if("undefined"!=typeof sqlitePlugin&&"function"==typeof sqlitePlugin.openDatabase)return sqlitePlugin.openDatabase;throw new Error("SQLite plugin is not present.")})}var i=new Promise(function(t,e){"undefined"!=typeof sqlitePlugin?t():"undefined"==typeof cordova?e(new Error("cordova is not defined.")):document.addEventListener("deviceready",function(){return t()},!1)}).catch(function(){return Promise.resolve()}),o={_driver:"cordovaSQLiteDriver",_initStorage:function(e){var i=this,o={db:null};if(e)for(var s in e)o[s]="string"!=typeof e[s]?e[s].toString():e[s];var a=r().then(function(t){return new Promise(function(e,n){try{o.location=o.location||"default",o.db=t({name:o.name,version:String(o.version),description:o.description,size:o.size,key:o.dbKey,location:o.location})}catch(t){n(t)}o.db.transaction(function(t){t.executeSql("CREATE TABLE IF NOT EXISTS "+o.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){i._dbInfo=o,e()},function(t,e){n(e)})})})}),u=t(i),l=n(i);return Promise.all([u,l,a]).then(function(t){return o.serializer=t[0],a})},_support:function(){return r().then(function(t){return!!t}).catch(function(){return!1})}};return function(t){function e(t,e){t[e]=function(){var t=this,r=arguments;return n(t).then(function(n){return n[e].apply(t,r)})}}for(var r=["clear","getItem","iterate","key","keys","length","removeItem","setItem"],i=0,o=r.length;i=0;){var s=e*this[t++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i}function s(t,e,n,r,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var u=32767&this[t],l=this[t++]>>15,c=a*u+l*s;i=((u=s*u+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+a*l+(i>>>30),n[r++]=1073741823&u}return i}function a(t,e,n,r,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var u=16383&this[t],l=this[t++]>>14,c=a*u+l*s;i=((u=s*u+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+a*l,n[r++]=268435455&u}return i}function u(t){return C.charAt(t)}function l(t,e){var n=A[t.charCodeAt(e)];return null==n?-1:n}function c(t){var e=i();return e.fromInt(t),e}function h(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function f(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(e,e),e},f.prototype.revert=function(t){var e=i();return t.copyTo(e),this.reduce(e),e},f.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},f.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},f.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var i=t.length,o=!1,s=0;--i>=0;){var a=l(t,i);a<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=a:s+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-s):this[this.t-1]|=a<=this.DB&&(s-=this.DB))}this.clamp(),o&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var n=t;n=0;--n)e[n+s+1]=this[n]>>i|a,a=(this[n]&o)<=0;--n)e[n]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<>r;for(var s=n+1;s>r;r>0&&(e[this.t-n-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),o=n.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o=0;)t[n]=0;for(n=0;n=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,n){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t0?(o.lShiftTo(c,a),s.lShiftTo(c,n)):(o.copyTo(a),s.copyTo(n));var f=a.t,p=a[f-1];if(0!=p){var d=p*(1<1?a[f-2]>>this.F2:0),m=this.FV/d,v=(1<=0&&(n[n.t++]=1,n.subTo(b,n)),r.ONE.dlShiftTo(f,b),b.subTo(a,a);a.t=0;){var w=n[--_]==p?this.DM:Math.floor(n[_]*m+(n[_-1]+g)*v);if((n[_]+=a.am(0,w,n,y,0,f))0&&n.rShiftTo(c,n),u<0&&r.ZERO.subTo(n,n)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return e=e*(2-(15&t)*e)&15,e=e*(2-(255&t)*e)&255,e=e*(2-((65535&t)*e&65535))&65535,(e=e*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},r.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n>=this.DB;if(t.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString();var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");e=2}var n,r=(1<0)for(a>a)>0&&(i=!0,o=u(n));s>=0;)a>(a+=this.DB-e)):(n=this[s]>>(a-=e)&r,a<=0&&(a+=this.DB,--s)),n>0&&(i=!0),i&&(o+=u(n));return i?o:"0"},r.prototype.negate=function(){var t=i();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+h(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=i();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.equals=function(t){return 0==this.compareTo(t)},r.prototype.add=function(t){var e=i();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=i();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=i();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=i();return this.divRemTo(t,e,null),e},r.prototype.modPow=function(t,e,n){var r,o=t.bitLength(),s=c(1),a=new f(e);if(o<=0)return s;r=o<18?1:o<48?3:o<144?4:o<768?5:6;var u=new Array,l=3,p=r-1,d=(1<1){var m=i();for(a.sqrTo(u[1],m);l<=d;)u[l]=i(),a.mulTo(m,u[l-2],u[l]),l+=2}var v,g,_=t.t-1,y=!0,b=i();for(o=h(t[_])-1;_>=0;){for(o>=p?v=t[_]>>o-p&d:(v=(t[_]&(1<0&&(v|=t[_-1]>>this.DB+o-p)),l=r;0==(1&v);)v>>=1,--l;if((o-=l)<0&&(o+=this.DB,--_),y)u[v].copyTo(s),y=!1;else{for(;l>1;)a.sqrTo(s,b),a.sqrTo(b,s),l-=2;l>0?a.sqrTo(s,b):(g=s,s=b,b=g),a.mulTo(b,u[v],s)}for(;_>=0&&0==(t[_]&1<0&&void 0!==arguments[0]?arguments[0]:{}).AccessToken;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n||""))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(O),P=function(t){function e(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).IdToken;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n||""))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(O),I=function(){function t(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).RefreshToken;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.token=e||""}return t.prototype.getToken=function(){return this.token},t}(),R=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.IdToken,r=e.RefreshToken,i=e.AccessToken,o=e.ClockDrift;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null==i||null==n)throw new Error("Id token and Access Token must be present.");this.idToken=n,this.refreshToken=r,this.accessToken=i,this.clockDrift=void 0===o?this.calculateClockDrift():o}return t.prototype.getIdToken=function(){return this.idToken},t.prototype.getRefreshToken=function(){return this.refreshToken},t.prototype.getAccessToken=function(){return this.accessToken},t.prototype.getClockDrift=function(){return this.clockDrift},t.prototype.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.prototype.isValid=function(){var t=Math.floor(new Date/1e3)-this.clockDrift;return t0&&void 0!==arguments[0]?arguments[0]:{},n=e.Name,r=e.Value;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.Name=n||"",this.Value=r||""}return t.prototype.getValue=function(){return this.Value},t.prototype.setValue=function(t){return this.Value=t,this},t.prototype.getName=function(){return this.Name},t.prototype.setName=function(t){return this.Name=t,this},t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.toJSON=function(){return{Name:this.Name,Value:this.Value}},t}(),L={},F=function(){function t(){p(this,t)}return t.setItem=function(t,e){return L[t]=e,L[t]},t.getItem=function(t){return Object.prototype.hasOwnProperty.call(L,t)?L[t]:void 0},t.removeItem=function(t){return delete L[t]},t.clear=function(){return L={}},t}(),B=function(){function t(){p(this,t);try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(t){this.storageWindow=F}}return t.prototype.getStorage=function(){return this.storageWindow},t}(),V=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null==e||null==e.Username||null==e.Pool)throw new Error("Username and pool information are required.");this.username=e.Username||"",this.pool=e.Pool,this.Session=null,this.client=e.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=e.Storage||(new B).getStorage()}return t.prototype.setSignInUserSession=function(t){this.clearCachedTokens(),this.signInUserSession=t,this.cacheTokens()},t.prototype.getSignInUserSession=function(){return this.signInUserSession},t.prototype.getUsername=function(){return this.username},t.prototype.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.prototype.setAuthenticationFlowType=function(t){this.authenticationFlowType=t},t.prototype.initiateAuth=function(t,e){var n=this,r=t.getAuthParameters();r.USERNAME=this.username;var i={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:t.getValidationData()};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",i,function(t,r){if(t)return e.onFailure(t);var i=r.ChallengeParameters;return"CUSTOM_CHALLENGE"===r.ChallengeName?(n.Session=r.Session,e.customChallenge(i)):(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(),e.onSuccess(n.signInUserSession))})},t.prototype.authenticateUser=function(t,e){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(t,e):"USER_SRP_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(t,e):e.onFailure(new Error("Authentication flow type is invalid."))},t.prototype.authenticateUserDefaultAuth=function(t,e){var n=this,r=new k(this.pool.getUserPoolId().split("_")[1]),i=new N,o=void 0,s=void 0,a={};null!=this.deviceKey&&(a.DEVICE_KEY=this.deviceKey),a.USERNAME=this.username,r.getLargeAValue(function(u,l){u&&e.onFailure(u),a.SRP_A=l.toString(16),"CUSTOM_AUTH"===n.authenticationFlowType&&(a.CHALLENGE_NAME="SRP_A");var c={AuthFlow:n.authenticationFlowType,ClientId:n.pool.getClientId(),AuthParameters:a,ClientMetadata:t.getValidationData()};n.getUserContextData(n.username)&&(c.UserContextData=n.getUserContextData(n.username)),n.client.request("InitiateAuth",c,function(a,u){if(a)return e.onFailure(a);var l=u.ChallengeParameters;n.username=l.USER_ID_FOR_SRP,o=new y(l.SRP_B,16),s=new y(l.SALT,16),n.getCachedDeviceKeyAndPassword(),r.getPasswordAuthenticationKey(n.username,t.getPassword(),o,s,function(t,o){t&&e.onFailure(t);var s=i.getNowString(),a=_.lib.WordArray.create(g.Buffer.concat([g.Buffer.from(n.pool.getUserPoolId().split("_")[1],"utf8"),g.Buffer.from(n.username,"utf8"),g.Buffer.from(l.SECRET_BLOCK,"base64"),g.Buffer.from(s,"utf8")])),c=_.lib.WordArray.create(o),h=_.enc.Base64.stringify(_.HmacSHA256(a,c)),f={};f.USERNAME=n.username,f.PASSWORD_CLAIM_SECRET_BLOCK=l.SECRET_BLOCK,f.TIMESTAMP=s,f.PASSWORD_CLAIM_SIGNATURE=h,null!=n.deviceKey&&(f.DEVICE_KEY=n.deviceKey);var p={ChallengeName:"PASSWORD_VERIFIER",ClientId:n.pool.getClientId(),ChallengeResponses:f,Session:u.Session};n.getUserContextData()&&(p.UserContextData=n.getUserContextData()),function t(e,r){return n.client.request("RespondToAuthChallenge",e,function(i,o){return i&&"ResourceNotFoundException"===i.code&&-1!==i.message.toLowerCase().indexOf("device")?(f.DEVICE_KEY=null,n.deviceKey=null,n.randomPassword=null,n.deviceGroupKey=null,n.clearCachedDeviceKeyAndPassword(),t(e,r)):r(i,o)})}(p,function(t,i){return t?e.onFailure(t):n.authenticateUserInternal(i,r,e)})})})})},t.prototype.authenticateUserPlainUsernamePassword=function(t,e){var n=this,r={};if(r.USERNAME=this.username,r.PASSWORD=t.getPassword(),r.PASSWORD){var i=new k(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(r.DEVICE_KEY=this.deviceKey);var o={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:t.getValidationData()};this.getUserContextData(this.username)&&(o.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",o,function(t,r){return t?e.onFailure(t):n.authenticateUserInternal(r,i,e)})}else e.onFailure(new Error("PASSWORD parameter is required"))},t.prototype.authenticateUserInternal=function(t,e,n){var r=this,i=t.ChallengeName,o=t.ChallengeParameters;if("SMS_MFA"===i)return this.Session=t.Session,n.mfaRequired(i,o);if("SELECT_MFA_TYPE"===i)return this.Session=t.Session,n.selectMFAType(i,o);if("MFA_SETUP"===i)return this.Session=t.Session,n.mfaSetup(i,o);if("SOFTWARE_TOKEN_MFA"===i)return this.Session=t.Session,n.totpRequired(i,o);if("CUSTOM_CHALLENGE"===i)return this.Session=t.Session,n.customChallenge(o);if("NEW_PASSWORD_REQUIRED"===i){this.Session=t.Session;var s=null,a=null,u=[],l=e.getNewPasswordRequiredChallengeUserAttributePrefix();if(o&&(s=JSON.parse(t.ChallengeParameters.userAttributes),a=JSON.parse(t.ChallengeParameters.requiredAttributes)),a)for(var c=0;c>>7)^(d<<14|d>>>18)^d>>>3)+l[p-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+l[p-16]}var v=r&i^r&o^i&o,g=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&c^~a&h)+u[p]+l[p];f=h,h=c,c=a,a=s+g|0,s=o,o=i,i=r,r=g+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+c|0,n[6]=n[6]+h|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(c),n.HmacSHA256=o._createHmacHelper(c)}(Math),t.SHA256})},function(t,e,n){!function(e,r,i){t.exports=r(n(15),n(184))}(0,function(t){return function(){function e(){return o.create.apply(o,arguments)}var n=t,r=n.lib.Hasher,i=n.x64,o=i.Word,s=i.WordArray,a=n.algo,u=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=e()}();var c=a.SHA512=r.extend({_doReset:function(){this._hash=new s.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=n[5],h=n[6],f=n[7],p=r.high,d=r.low,m=i.high,v=i.low,g=o.high,_=o.low,y=s.high,b=s.low,w=a.high,S=a.low,C=c.high,A=c.low,E=h.high,x=h.low,k=f.high,O=f.low,T=p,P=d,I=m,R=v,D=g,j=_,N=y,M=b,L=w,F=S,B=C,V=A,U=E,H=x,z=k,q=O,W=0;W<80;W++){var G=l[W];if(W<16)var Y=G.high=0|t[e+2*W],K=G.low=0|t[e+2*W+1];else{var X=l[W-15],Q=X.high,Z=X.low,J=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^(Z>>>7|Q<<25),$=l[W-2],tt=$.high,et=$.low,nt=(et>>>19|tt<<13)^(et<<3|tt>>>29)^(et>>>6|tt<<26),rt=l[W-7],it=l[W-16],ot=it.low;G.high=Y=(Y=(Y=((Q>>>1|Z<<31)^(Q>>>8|Z<<24)^Q>>>7)+rt.high+((K=J+rt.low)>>>0>>0?1:0))+((tt>>>19|et<<13)^(tt<<3|et>>>29)^tt>>>6)+((K=K+nt)>>>0>>0?1:0))+it.high+((K=K+ot)>>>0>>0?1:0),G.low=K}var st,at=L&B^~L&U,ut=F&V^~F&H,lt=T&I^T&D^I&D,ct=(P>>>28|T<<4)^(P<<30|T>>>2)^(P<<25|T>>>7),ht=u[W],ft=ht.low,pt=z+((L>>>14|F<<18)^(L>>>18|F<<14)^(L<<23|F>>>9))+((st=q+((F>>>14|L<<18)^(F>>>18|L<<14)^(F<<23|L>>>9)))>>>0>>0?1:0),dt=ct+(P&R^P&j^R&j);z=U,q=H,U=B,H=V,B=L,V=F,L=N+(pt=(pt=(pt=pt+at+((st=st+ut)>>>0>>0?1:0))+ht.high+((st=st+ft)>>>0>>0?1:0))+Y+((st=st+K)>>>0>>0?1:0))+((F=M+st|0)>>>0>>0?1:0)|0,N=D,M=j,D=I,j=R,I=T,R=P,T=pt+(((T>>>28|P<<4)^(T<<30|P>>>2)^(T<<25|P>>>7))+lt+(dt>>>0>>0?1:0))+((P=st+dt|0)>>>0>>0?1:0)|0}d=r.low=d+P,r.high=p+T+(d>>>0>>0?1:0),v=i.low=v+R,i.high=m+I+(v>>>0>>0?1:0),_=o.low=_+j,o.high=g+D+(_>>>0>>0?1:0),b=s.low=b+M,s.high=y+N+(b>>>0>>0?1:0),S=a.low=S+F,a.high=w+L+(S>>>0>>0?1:0),A=c.low=A+V,c.high=C+B+(A>>>0